21 lines
6.7 MiB
21 lines
6.7 MiB
!function(){"use strict";const e=new class{constructor(){this.listeners=[],this.unexpectedErrorHandler=function(e){setTimeout(()=>{if(e.stack){if(i.isErrorNoTelemetry(e))throw new i(e.message+"\n\n"+e.stack);throw new Error(e.message+"\n\n"+e.stack)}throw e},0)}}emit(e){this.listeners.forEach(n=>{n(e)})}onUnexpectedError(e){this.unexpectedErrorHandler(e),this.emit(e)}onUnexpectedExternalError(e){this.unexpectedErrorHandler(e)}};function n(n){(function(e){if(e instanceof o)return!0;return e instanceof Error&&e.name===r&&e.message===r})(n)||e.onUnexpectedError(n)}function t(e){if(e instanceof Error){const{name:n,message:r,cause:o}=e;return{$isError:!0,name:n,message:r,stack:e.stacktrace||e.stack,noTelemetry:i.isErrorNoTelemetry(e),cause:o?t(o):void 0,code:e.code}}return e}const r="Canceled";class o extends Error{constructor(){super(r),this.name=this.message}}class i extends Error{constructor(e){super(e),this.name="CodeExpectedError"}static fromError(e){if(e instanceof i)return e;const n=new i;return n.message=e.message,n.stack=e.stack,n}static isErrorNoTelemetry(e){return"CodeExpectedError"===e.name}}class a extends Error{constructor(e){super(e||"An unexpected bug occurred."),Object.setPrototypeOf(this,a.prototype)}}function s(e,n="Unreachable"){throw new Error(n)}function l(e){e()||(e(),n(new a("Assertion Failed")))}function c(e,n){let t=0;for(;t<e.length-1;){if(!n(e[t],e[t+1]))return!1;t++}return!0}function d(e){return!!e&&"function"==typeof e[Symbol.iterator]}var u;function p(e){if(u.is(e)){const t=[];for(const r of e)if(r)try{r.dispose()}catch(n){t.push(n)}if(1===t.length)throw t[0];if(t.length>1)throw new AggregateError(t,"Encountered errors while disposing of store");return Array.isArray(e)?[]:e}if(e)return e.dispose(),e}!function(e){function n(e){return!!e&&"object"==typeof e&&"function"==typeof e[Symbol.iterator]}e.is=n;const t=Object.freeze([]);function*r(e){yield e}e.empty=function(){return t},e.single=r,e.wrap=function(e){return n(e)?e:r(e)},e.from=function(e){return e||t},e.reverse=function*(e){for(let n=e.length-1;n>=0;n--)yield e[n]},e.isEmpty=function(e){return!e||!0===e[Symbol.iterator]().next().done},e.first=function(e){return e[Symbol.iterator]().next().value},e.some=function(e,n){let t=0;for(const r of e)if(n(r,t++))return!0;return!1},e.every=function(e,n){let t=0;for(const r of e)if(!n(r,t++))return!1;return!0},e.find=function(e,n){for(const t of e)if(n(t))return t},e.filter=function*(e,n){for(const t of e)n(t)&&(yield t)},e.map=function*(e,n){let t=0;for(const r of e)yield n(r,t++)},e.flatMap=function*(e,n){let t=0;for(const r of e)yield*n(r,t++)},e.concat=function*(...e){for(const n of e)d(n)?yield*n:yield n},e.reduce=function(e,n,t){let r=t;for(const o of e)r=n(r,o);return r},e.length=function(e){let n=0;for(const t of e)n++;return n},e.slice=function*(e,n,t=e.length){for(n<-e.length&&(n=0),n<0&&(n+=e.length),t<0?t+=e.length:t>e.length&&(t=e.length);n<t;n++)yield e[n]},e.consume=function(n,t=Number.POSITIVE_INFINITY){const r=[];if(0===t)return[r,n];const o=n[Symbol.iterator]();for(let i=0;i<t;i++){const n=o.next();if(n.done)return[r,e.empty()];r.push(n.value)}return[r,{[Symbol.iterator]:()=>o}]},e.asyncToArray=async function(e){const n=[];for await(const t of e)n.push(t);return n},e.asyncToArrayFlat=async function(e){let n=[];for await(const t of e)n=n.concat(t);return n}}(u||(u={}));class f{constructor(e){this._isDisposed=!1,this._fn=e}dispose(){if(!this._isDisposed){if(!this._fn)throw new Error("Unbound disposable context: Need to use an arrow function to preserve the value of this");this._isDisposed=!0,this._fn()}}}function m(e){return new f(e)}class h{static{this.DISABLE_DISPOSED_WARNING=!1}constructor(){this._toDispose=new Set,this._isDisposed=!1}dispose(){this._isDisposed||(this._isDisposed=!0,this.clear())}get isDisposed(){return this._isDisposed}clear(){if(0!==this._toDispose.size)try{p(this._toDispose)}finally{this._toDispose.clear()}}add(e){if(!e||e===_.None)return e;if(e===this)throw new Error("Cannot register a disposable on itself!");return this._isDisposed||this._toDispose.add(e),e}delete(e){if(e){if(e===this)throw new Error("Cannot dispose a disposable on itself!");this._toDispose.delete(e),e.dispose()}}}class _{static{this.None=Object.freeze({dispose(){}})}constructor(){this._store=new h,this._store}dispose(){this._store.dispose()}_register(e){if(e===this)throw new Error("Cannot register a disposable on itself!");return this._store.add(e)}}class g{static{this.Undefined=new g(void 0)}constructor(e){this.element=e,this.next=g.Undefined,this.prev=g.Undefined}}class y{constructor(){this._first=g.Undefined,this._last=g.Undefined,this._size=0}get size(){return this._size}isEmpty(){return this._first===g.Undefined}clear(){let e=this._first;for(;e!==g.Undefined;){const n=e.next;e.prev=g.Undefined,e.next=g.Undefined,e=n}this._first=g.Undefined,this._last=g.Undefined,this._size=0}unshift(e){return this._insert(e,!1)}push(e){return this._insert(e,!0)}_insert(e,n){const t=new g(e);if(this._first===g.Undefined)this._first=t,this._last=t;else if(n){const e=this._last;this._last=t,t.prev=e,e.next=t}else{const e=this._first;this._first=t,t.next=e,e.prev=t}this._size+=1;let r=!1;return()=>{r||(r=!0,this._remove(t))}}shift(){if(this._first!==g.Undefined){const e=this._first.element;return this._remove(this._first),e}}pop(){if(this._last!==g.Undefined){const e=this._last.element;return this._remove(this._last),e}}_remove(e){if(e.prev!==g.Undefined&&e.next!==g.Undefined){const n=e.prev;n.next=e.next,e.next.prev=n}else e.prev===g.Undefined&&e.next===g.Undefined?(this._first=g.Undefined,this._last=g.Undefined):e.next===g.Undefined?(this._last=this._last.prev,this._last.next=g.Undefined):e.prev===g.Undefined&&(this._first=this._first.next,this._first.prev=g.Undefined);this._size-=1}*[Symbol.iterator](){let e=this._first;for(;e!==g.Undefined;)yield e.element,e=e.next}}const v=globalThis.performance.now.bind(globalThis.performance);class b{static create(e){return new b(e)}constructor(e){this._now=!1===e?Date.now:v,this._startTime=this._now(),this._stopTime=-1}stop(){this._stopTime=this._now()}reset(){this._startTime=this._now(),this._stopTime=-1}elapsed(){return-1!==this._stopTime?this._stopTime-this._startTime:this._now()-this._startTime}}var T;!function(e){function n(e){return(n,t=null,r)=>{let o,i=!1;return o=e(e=>{if(!i)return o?o.dispose():i=!0,n.call(t,e)},null,r),i&&o.dispose(),o}}function t(e,n,t){return o((t,r=null,o)=>e(e=>t.call(r,n(e)),null,o),t)}function r(e,n,t){return o((t,r=null,o)=>e(e=>n(e)&&t.call(r,e),null,o),t)}function o(e,n){let t;const r=new D({onWillAddFirstListener(){t=e(r.fire,r)},onDidRemoveLastListener(){t?.dispose()}});return n?.add(r),r.event}function i(e,n,t=100,r=!1,o=!1,i,a){let s,l,c,d,u=0;const p=new D({leakWarningThreshold:i,onWillAddFirstListener(){s=e(e=>{u++,l=n(l,e),r&&!c&&(p.fire(l),l=void 0),d=()=>{const e=l;l=void 0,c=void 0,(!r||u>1)&&p.fire(e),u=0},"number"==typeof t?(c&&clearTimeout(c),c=setTimeout(d,t)):void 0===c&&(c=null,queueMicrotask(d))})},onWillRemoveListener(){o&&u>0&&d?.()},onDidRemoveLastListener(){d=void 0,s.dispose()}});return a?.add(p),p.event}e.None=()=>_.None,e.defer=function(e,n){return i(e,()=>{},0,void 0,!0,void 0,n)},e.once=n,e.onceIf=function(n,t){return e.once(e.filter(n,t))},e.map=t,e.forEach=function(e,n,t){return o((t,r=null,o)=>e(e=>{n(e),t.call(r,e)},null,o),t)},e.filter=r,e.signal=function(e){return e},e.any=function(...e){return(n,t=null,r)=>{const o=function(...e){return m(()=>p(e))}(...e.map(e=>e(e=>n.call(t,e))));return function(e,n){n instanceof Array?n.push(e):n&&n.add(e);return e}(o,r)}},e.reduce=function(e,n,r,o){let i=r;return t(e,e=>(i=n(i,e),i),o)},e.debounce=i,e.accumulate=function(n,t=0,r){return e.debounce(n,(e,n)=>e?(e.push(n),e):[n],t,void 0,!0,void 0,r)},e.latch=function(e,n=(e,n)=>e===n,t){let o,i=!0;return r(e,e=>{const t=i||!n(e,o);return i=!1,o=e,t},t)},e.split=function(n,t,r){return[e.filter(n,t,r),e.filter(n,e=>!t(e),r)]},e.buffer=function(e,n=!1,t=[],r){let o=t.slice(),i=e(e=>{o?o.push(e):s.fire(e)});r&&r.add(i);const a=()=>{o?.forEach(e=>s.fire(e)),o=null},s=new D({onWillAddFirstListener(){i||(i=e(e=>s.fire(e)),r&&r.add(i))},onDidAddFirstListener(){o&&(n?setTimeout(a):a())},onDidRemoveLastListener(){i&&i.dispose(),i=null}});return r&&r.add(s),s.event},e.chain=function(e,n){return(t,r,o)=>{const i=n(new s);return e(function(e){const n=i.evaluate(e);n!==a&&t.call(r,n)},void 0,o)}};const a=Symbol("HaltChainable");class s{constructor(){this.steps=[]}map(e){return this.steps.push(e),this}forEach(e){return this.steps.push(n=>(e(n),n)),this}filter(e){return this.steps.push(n=>e(n)?n:a),this}reduce(e,n){let t=n;return this.steps.push(n=>(t=e(t,n),t)),this}latch(e=(e,n)=>e===n){let n,t=!0;return this.steps.push(r=>{const o=t||!e(r,n);return t=!1,n=r,o?r:a}),this}evaluate(e){for(const n of this.steps)if((e=n(e))===a)break;return e}}e.fromNodeEventEmitter=function(e,n,t=e=>e){const r=(...e)=>o.fire(t(...e)),o=new D({onWillAddFirstListener:()=>e.on(n,r),onDidRemoveLastListener:()=>e.removeListener(n,r)});return o.event},e.fromDOMEventEmitter=function(e,n,t=e=>e){const r=(...e)=>o.fire(t(...e)),o=new D({onWillAddFirstListener:()=>e.addEventListener(n,r),onDidRemoveLastListener:()=>e.removeEventListener(n,r)});return o.event},e.toPromise=function(e,t){let r;const o=new Promise((o,i)=>{const a=n(e)(o,null,t);r=()=>a.dispose()});return o.cancel=r,o},e.forward=function(e,n){return e(e=>n.fire(e))},e.runAndSubscribe=function(e,n,t){return n(t),e(e=>n(e))};class l{constructor(e,n){this._observable=e,this._counter=0,this._hasChanged=!1;const t={onWillAddFirstListener:()=>{e.addObserver(this),this._observable.reportChanges()},onDidRemoveLastListener:()=>{e.removeObserver(this)}};this.emitter=new D(t),n&&n.add(this.emitter)}beginUpdate(e){this._counter++}handlePossibleChange(e){}handleChange(e,n){this._hasChanged=!0}endUpdate(e){this._counter--,0===this._counter&&(this._observable.reportChanges(),this._hasChanged&&(this._hasChanged=!1,this.emitter.fire(this._observable.get())))}}e.fromObservable=function(e,n){return new l(e,n).emitter.event},e.fromObservableLight=function(e){return(n,t,r)=>{let o=0,i=!1;const a={beginUpdate(){o++},endUpdate(){o--,0===o&&(e.reportChanges(),i&&(i=!1,n.call(t)))},handlePossibleChange(){},handleChange(){i=!0}};e.addObserver(a),e.reportChanges();const s={dispose(){e.removeObserver(a)}};return r instanceof h?r.add(s):Array.isArray(r)&&r.push(s),s}}}(T||(T={}));class S{static{this.all=new Set}static{this._idPool=0}constructor(e){this.listenerCount=0,this.invocationCount=0,this.elapsedOverall=0,this.durations=[],this.name=`${e}_${S._idPool++}`,S.all.add(this)}start(e){this._stopWatch=new b,this.listenerCount=e}stop(){if(this._stopWatch){const e=this._stopWatch.elapsed();this.durations.push(e),this.elapsedOverall+=e,this.invocationCount+=1,this._stopWatch=void 0}}}class E{static{this._idPool=1}constructor(e,n,t=(E._idPool++).toString(16).padStart(3,"0")){this._errorHandler=e,this.threshold=n,this.name=t,this._warnCountdown=0}dispose(){this._stacks?.clear()}check(e,n){const t=this.threshold;if(t<=0||n<t)return;this._stacks||(this._stacks=new Map);const r=this._stacks.get(e.value)||0;if(this._stacks.set(e.value,r+1),this._warnCountdown-=1,this._warnCountdown<=0){this._warnCountdown=.5*t;const[e,r]=this.getMostFrequentStack(),o=`[${this.name}] potential listener LEAK detected, having ${n} listeners already. MOST frequent listener (${r}):`,i=new x(o,e);this._errorHandler(i)}return()=>{const n=this._stacks.get(e.value)||0;this._stacks.set(e.value,n-1)}}getMostFrequentStack(){if(!this._stacks)return;let e,n=0;for(const[t,r]of this._stacks)(!e||n<r)&&(e=[t,r],n=r);return e}}class A{static create(){const e=new Error;return new A(e.stack??"")}constructor(e){this.value=e}print(){}}class x extends Error{constructor(e,n){super(e),this.name="ListenerLeakError",this.stack=n}}class R extends Error{constructor(e,n){super(e),this.name="ListenerRefusalError",this.stack=n}}class I{constructor(e){this.value=e}}class D{constructor(e){this._size=0,this._options=e,this._leakageMon=this._options?.leakWarningThreshold?new E(e?.onListenerError??n,this._options?.leakWarningThreshold??-1):void 0,this._perfMon=this._options?._profName?new S(this._options._profName):void 0,this._deliveryQueue=this._options?.deliveryQueue}dispose(){this._disposed||(this._disposed=!0,this._deliveryQueue?.current===this&&this._deliveryQueue.reset(),this._listeners&&(this._listeners=void 0,this._size=0),this._options?.onDidRemoveLastListener?.(),this._leakageMon?.dispose())}get event(){return this._event??=(e,t,r)=>{if(this._leakageMon&&this._size>this._leakageMon.threshold**2){const e=`[${this._leakageMon.name}] REFUSES to accept new listeners because it exceeded its threshold by far (${this._size} vs ${this._leakageMon.threshold})`,t=this._leakageMon.getMostFrequentStack()??["UNKNOWN stack",-1],r=new R(`${e}. HINT: Stack shows most frequent listener (${t[1]}-times)`,t[0]);return(this._options?.onListenerError||n)(r),_.None}if(this._disposed)return _.None;t&&(e=e.bind(t));const o=new I(e);let i;this._leakageMon&&this._size>=Math.ceil(.2*this._leakageMon.threshold)&&(o.stack=A.create(),i=this._leakageMon.check(o.stack,this._size+1)),this._listeners?this._listeners instanceof I?(this._deliveryQueue??=new C,this._listeners=[this._listeners,o]):this._listeners.push(o):(this._options?.onWillAddFirstListener?.(this),this._listeners=o,this._options?.onDidAddFirstListener?.(this)),this._options?.onDidAddListener?.(this),this._size++;const a=m(()=>{i?.(),this._removeListener(o)});return r instanceof h?r.add(a):Array.isArray(r)&&r.push(a),a},this._event}_removeListener(e){if(this._options?.onWillRemoveListener?.(this),!this._listeners)return;if(1===this._size)return this._listeners=void 0,this._options?.onDidRemoveLastListener?.(this),void(this._size=0);const n=this._listeners,t=n.indexOf(e);if(-1===t)throw new Error("Attempted to dispose unknown listener");this._size--,n[t]=void 0;const r=this._deliveryQueue.current===this;if(2*this._size<=n.length){let e=0;for(let t=0;t<n.length;t++)n[t]?n[e++]=n[t]:r&&e<this._deliveryQueue.end&&(this._deliveryQueue.end--,e<this._deliveryQueue.i&&this._deliveryQueue.i--);n.length=e}}_deliver(e,t){if(!e)return;const r=this._options?.onListenerError||n;if(r)try{e.value(t)}catch(o){r(o)}else e.value(t)}_deliverQueue(e){const n=e.current._listeners;for(;e.i<e.end;)this._deliver(n[e.i++],e.value);e.reset()}fire(e){if(this._deliveryQueue?.current&&(this._deliverQueue(this._deliveryQueue),this._perfMon?.stop()),this._perfMon?.start(this._size),this._listeners)if(this._listeners instanceof I)this._deliver(this._listeners,e);else{const n=this._deliveryQueue;n.enqueue(this,e,this._listeners.length),this._deliverQueue(n)}else;this._perfMon?.stop()}hasListeners(){return this._size>0}}class C{constructor(){this.i=-1,this.end=0}enqueue(e,n,t){this.i=0,this.end=t,this.current=e,this.value=n}reset(){this.i=this.end,this.current=void 0,this.value=void 0}}function N(){return globalThis._VSCODE_NLS_LANGUAGE}const M="pseudo"===N()||"undefined"!=typeof document&&document.location&&"string"==typeof document.location.hash&&document.location.hash.indexOf("pseudo=true")>=0;function P(e,n){let t;return t=0===n.length?e:e.replace(/\{(\d+)\}/g,(e,t)=>{const r=t[0],o=n[r];let i=e;return"string"==typeof o?i=o:"number"!=typeof o&&"boolean"!=typeof o&&null!=o||(i=String(o)),i}),M&&(t="["+t.replace(/[aouei]/g,"$&$&")+"]"),t}function L(e,n,...t){return P("number"==typeof e?function(e,n){const t=globalThis._VSCODE_NLS_MESSAGES?.[e];if("string"!=typeof t){if("string"==typeof n)return n;throw new Error(`!!! NLS MISSING: ${e} !!!`)}return t}(e,n):n,t)}const k="en";let w,O,F,W=!1,z=!1,B=!1,G=k,V=k;const j=globalThis;let U;void 0!==j.vscode&&void 0!==j.vscode.process?U=j.vscode.process:"undefined"!=typeof process&&"string"==typeof process?.versions?.node&&(U=process);const H="string"==typeof U?.versions?.electron&&"renderer"===U?.type;if("object"==typeof U){W="win32"===U.platform,z="darwin"===U.platform,B="linux"===U.platform,B&&U.env.SNAP&&U.env.SNAP_REVISION,U.env.CI||U.env.BUILD_ARTIFACTSTAGINGDIRECTORY||U.env.GITHUB_WORKSPACE,w=k,G=k;const e=U.env.VSCODE_NLS_CONFIG;if(e)try{const n=JSON.parse(e);w=n.userLocale,V=n.osLocale,G=n.resolvedLanguage||k,O=n.languagePack?.translationsConfigFile}catch(bi){}}else"object"!=typeof navigator||H||(F=navigator.userAgent,W=F.indexOf("Windows")>=0,z=F.indexOf("Macintosh")>=0,(F.indexOf("Macintosh")>=0||F.indexOf("iPad")>=0||F.indexOf("iPhone")>=0)&&navigator.maxTouchPoints&&navigator.maxTouchPoints,B=F.indexOf("Linux")>=0,F?.indexOf("Mobi"),G=N()||k,w=navigator.language.toLowerCase(),V=w);const K=W,q=z,J=F,X="function"==typeof j.postMessage&&!j.importScripts;(()=>{if(X){const e=[];j.addEventListener("message",n=>{if(n.data&&n.data.vscodeScheduleAsyncWork)for(let t=0,r=e.length;t<r;t++){const r=e[t];if(r.id===n.data.vscodeScheduleAsyncWork)return e.splice(t,1),void r.callback()}});let n=0;return t=>{const r=++n;e.push({id:r,callback:t}),j.postMessage({vscodeScheduleAsyncWork:r},"*")}}})();const Y=!!(J&&J.indexOf("Chrome")>=0);function $(e){return e}J&&J.indexOf("Firefox"),!Y&&J&&J.indexOf("Safari"),J&&J.indexOf("Edg/"),J&&J.indexOf("Android");class Q{constructor(e,n){this.lastCache=void 0,this.lastArgKey=void 0,"function"==typeof e?(this._fn=e,this._computeKey=$):(this._fn=n,this._computeKey=e.getCacheKey)}get(e){const n=this._computeKey(e);return this.lastArgKey!==n&&(this.lastArgKey=n,this.lastCache=this._fn(e)),this.lastCache}}var Z;!function(e){e[e.Uninitialized=0]="Uninitialized",e[e.Running=1]="Running",e[e.Completed=2]="Completed"}(Z||(Z={}));class ee{constructor(e){this.executor=e,this._state=Z.Uninitialized}get value(){if(this._state===Z.Uninitialized){this._state=Z.Running;try{this._value=this.executor()}catch(e){this._error=e}finally{this._state=Z.Completed}}else if(this._state===Z.Running)throw new Error("Cannot read the value of a lazy that is being initialized");if(this._error)throw this._error;return this._value}get rawValue(){return this._value}}function ne(e){return e>=65&&e<=90}function te(e){return 55296<=e&&e<=56319}function re(e,n,t){const r=e.charCodeAt(t);if(te(r)&&t+1<n){const n=e.charCodeAt(t+1);if(function(e){return 56320<=e&&e<=57343}(n))return n-56320+(r-55296<<10)+65536}return r}const oe=/^[\t\n\r\x20-\x7E]*$/;function ie(e){return oe.test(e)}class ae{static{this.ambiguousCharacterData=new ee(()=>JSON.parse('{"_common":[8232,32,8233,32,5760,32,8192,32,8193,32,8194,32,8195,32,8196,32,8197,32,8198,32,8200,32,8201,32,8202,32,8287,32,8199,32,8239,32,2042,95,65101,95,65102,95,65103,95,8208,45,8209,45,8210,45,65112,45,1748,45,8259,45,727,45,8722,45,10134,45,11450,45,1549,44,1643,44,184,44,42233,44,894,59,2307,58,2691,58,1417,58,1795,58,1796,58,5868,58,65072,58,6147,58,6153,58,8282,58,1475,58,760,58,42889,58,8758,58,720,58,42237,58,451,33,11601,33,660,63,577,63,2429,63,5038,63,42731,63,119149,46,8228,46,1793,46,1794,46,42510,46,68176,46,1632,46,1776,46,42232,46,1373,96,65287,96,8219,96,1523,96,8242,96,1370,96,8175,96,65344,96,900,96,8189,96,8125,96,8127,96,8190,96,697,96,884,96,712,96,714,96,715,96,756,96,699,96,701,96,700,96,702,96,42892,96,1497,96,2036,96,2037,96,5194,96,5836,96,94033,96,94034,96,65339,91,10088,40,10098,40,12308,40,64830,40,65341,93,10089,41,10099,41,12309,41,64831,41,10100,123,119060,123,10101,125,65342,94,8270,42,1645,42,8727,42,66335,42,5941,47,8257,47,8725,47,8260,47,9585,47,10187,47,10744,47,119354,47,12755,47,12339,47,11462,47,20031,47,12035,47,65340,92,65128,92,8726,92,10189,92,10741,92,10745,92,119311,92,119355,92,12756,92,20022,92,12034,92,42872,38,708,94,710,94,5869,43,10133,43,66203,43,8249,60,10094,60,706,60,119350,60,5176,60,5810,60,5120,61,11840,61,12448,61,42239,61,8250,62,10095,62,707,62,119351,62,5171,62,94015,62,8275,126,732,126,8128,126,8764,126,65372,124,65293,45,118002,50,120784,50,120794,50,120804,50,120814,50,120824,50,130034,50,42842,50,423,50,1000,50,42564,50,5311,50,42735,50,119302,51,118003,51,120785,51,120795,51,120805,51,120815,51,120825,51,130035,51,42923,51,540,51,439,51,42858,51,11468,51,1248,51,94011,51,71882,51,118004,52,120786,52,120796,52,120806,52,120816,52,120826,52,130036,52,5070,52,71855,52,118005,53,120787,53,120797,53,120807,53,120817,53,120827,53,130037,53,444,53,71867,53,118006,54,120788,54,120798,54,120808,54,120818,54,120828,54,130038,54,11474,54,5102,54,71893,54,119314,55,118007,55,120789,55,120799,55,120809,55,120819,55,120829,55,130039,55,66770,55,71878,55,2819,56,2538,56,2666,56,125131,56,118008,56,120790,56,120800,56,120810,56,120820,56,120830,56,130040,56,547,56,546,56,66330,56,2663,57,2920,57,2541,57,3437,57,118009,57,120791,57,120801,57,120811,57,120821,57,120831,57,130041,57,42862,57,11466,57,71884,57,71852,57,71894,57,9082,97,65345,97,119834,97,119886,97,119938,97,119990,97,120042,97,120094,97,120146,97,120198,97,120250,97,120302,97,120354,97,120406,97,120458,97,593,97,945,97,120514,97,120572,97,120630,97,120688,97,120746,97,65313,65,117974,65,119808,65,119860,65,119912,65,119964,65,120016,65,120068,65,120120,65,120172,65,120224,65,120276,65,120328,65,120380,65,120432,65,913,65,120488,65,120546,65,120604,65,120662,65,120720,65,5034,65,5573,65,42222,65,94016,65,66208,65,119835,98,119887,98,119939,98,119991,98,120043,98,120095,98,120147,98,120199,98,120251,98,120303,98,120355,98,120407,98,120459,98,388,98,5071,98,5234,98,5551,98,65314,66,8492,66,117975,66,119809,66,119861,66,119913,66,120017,66,120069,66,120121,66,120173,66,120225,66,120277,66,120329,66,120381,66,120433,66,42932,66,914,66,120489,66,120547,66,120605,66,120663,66,120721,66,5108,66,5623,66,42192,66,66178,66,66209,66,66305,66,65347,99,8573,99,119836,99,119888,99,119940,99,119992,99,120044,99,120096,99,120148,99,120200,99,120252,99,120304,99,120356,99,120408,99,120460,99,7428,99,1010,99,11429,99,43951,99,66621,99,128844,67,71913,67,71922,67,65315,67,8557,67,8450,67,8493,67,117976,67,119810,67,119862,67,119914,67,119966,67,120018,67,120174,67,120226,67,120278,67,120330,67,120382,67,120434,67,1017,67,11428,67,5087,67,42202,67,66210,67,66306,67,66581,67,66844,67,8574,100,8518,100,119837,100,119889,100,119941,100,119993,100,120045,100,120097,100,120149,100,120201,100,120253,100,120305,100,120357,100,120409,100,120461,100,1281,100,5095,100,5231,100,42194,100,8558,68,8517,68,117977,68,119811,68,119863,68,119915,68,119967,68,120019,68,120071,68,120123,68,120175,68,120227,68,120279,68,120331,68,120383,68,120435,68,5024,68,5598,68,5610,68,42195,68,8494,101,65349,101,8495,101,8519,101,119838,101,119890,101,119942,101,120046,101,120098,101,120150,101,120202,101,120254,101,120306,101,120358,101,120410,101,120462,101,43826,101,1213,101,8959,69,65317,69,8496,69,117978,69,119812,69,119864,69,119916,69,120020,69,120072,69,120124,69,120176,69,120228,69,120280,69,120332,69,120384,69,120436,69,917,69,120492,69,120550,69,120608,69,120666,69,120724,69,11577,69,5036,69,42224,69,71846,69,71854,69,66182,69,119839,102,119891,102,119943,102,119995,102,120047,102,120099,102,120151,102,120203,102,120255,102,120307,102,120359,102,120411,102,120463,102,43829,102,42905,102,383,102,7837,102,1412,102,119315,70,8497,70,117979,70,119813,70,119865,70,119917,70,120021,70,120073,70,120125,70,120177,70,120229,70,120281,70,120333,70,120385,70,120437,70,42904,70,988,70,120778,70,5556,70,42205,70,71874,70,71842,70,66183,70,66213,70,66853,70,65351,103,8458,103,119840,103,119892,103,119944,103,120048,103,120100,103,120152,103,120204,103,120256,103,120308,103,120360,103,120412,103,120464,103,609,103,7555,103,397,103,1409,103,117980,71,119814,71,119866,71,119918,71,119970,71,120022,71,120074,71,120126,71,120178,71,120230,71,120282,71,120334,71,120386,71,120438,71,1292,71,5056,71,5107,71,42198,71,65352,104,8462,104,119841,104,119945,104,119997,104,120049,104,120101,104,120153,104,120205,104,120257,104,120309,104,120361,104,120413,104,120465,104,1211,104,1392,104,5058,104,65320,72,8459,72,8460,72,8461,72,117981,72,119815,72,119867,72,119919,72,120023,72,120179,72,120231,72,120283,72,120335,72,120387,72,120439,72,919,72,120494,72,120552,72,120610,72,120668,72,120726,72,11406,72,5051,72,5500,72,42215,72,66255,72,731,105,9075,105,65353,105,8560,105,8505,105,8520,105,119842,105,119894,105,119946,105,119998,105,120050,105,120102,105,120154,105,120206,105,120258,105,120310,105,120362,105,120414,105,120466,105,120484,105,618,105,617,105,953,105,8126,105,890,105,120522,105,120580,105,120638,105,120696,105,120754,105,1110,105,42567,105,1231,105,43893,105,5029,105,71875,105,65354,106,8521,106,119843,106,119895,106,119947,106,119999,106,120051,106,120103,106,120155,106,120207,106,120259,106,120311,106,120363,106,120415,106,120467,106,1011,106,1112,106,65322,74,117983,74,119817,74,119869,74,119921,74,119973,74,120025,74,120077,74,120129,74,120181,74,120233,74,120285,74,120337,74,120389,74,120441,74,42930,74,895,74,1032,74,5035,74,5261,74,42201,74,119844,107,119896,107,119948,107,120000,107,120052,107,120104,107,120156,107,120208,107,120260,107,120312,107,120364,107,120416,107,120468,107,8490,75,65323,75,117984,75,119818,75,119870,75,119922,75,119974,75,120026,75,120078,75,120130,75,120182,75,120234,75,120286,75,120338,75,120390,75,120442,75,922,75,120497,75,120555,75,120613,75,120671,75,120729,75,11412,75,5094,75,5845,75,42199,75,66840,75,1472,108,8739,73,9213,73,65512,73,1633,108,1777,73,66336,108,125127,108,118001,108,120783,73,120793,73,120803,73,120813,73,120823,73,130033,73,65321,73,8544,73,8464,73,8465,73,117982,108,119816,73,119868,73,119920,73,120024,73,120128,73,120180,73,120232,73,120284,73,120336,73,120388,73,120440,73,65356,108,8572,73,8467,108,119845,108,119897,108,119949,108,120001,108,120053,108,120105,73,120157,73,120209,73,120261,73,120313,73,120365,73,120417,73,120469,73,448,73,120496,73,120554,73,120612,73,120670,73,120728,73,11410,73,1030,73,1216,73,1493,108,1503,108,1575,108,126464,108,126592,108,65166,108,65165,108,1994,108,11599,73,5825,73,42226,73,93992,73,66186,124,66313,124,119338,76,8556,76,8466,76,117985,76,119819,76,119871,76,119923,76,120027,76,120079,76,120131,76,120183,76,120235,76,120287,76,120339,76,120391,76,120443,76,11472,76,5086,76,5290,76,42209,76,93974,76,71843,76,71858,76,66587,76,66854,76,65325,77,8559,77,8499,77,117986,77,119820,77,119872,77,119924,77,120028,77,120080,77,120132,77,120184,77,120236,77,120288,77,120340,77,120392,77,120444,77,924,77,120499,77,120557,77,120615,77,120673,77,120731,77,1018,77,11416,77,5047,77,5616,77,5846,77,42207,77,66224,77,66321,77,119847,110,119899,110,119951,110,120003,110,120055,110,120107,110,120159,110,120211,110,120263,110,120315,110,120367,110,120419,110,120471,110,1400,110,1404,110,65326,78,8469,78,117987,78,119821,78,119873,78,119925,78,119977,78,120029,78,120081,78,120185,78,120237,78,120289,78,120341,78,120393,78,120445,78,925,78,120500,78,120558,78,120616,78,120674,78,120732,78,11418,78,42208,78,66835,78,3074,111,3202,111,3330,111,3458,111,2406,111,2662,111,2790,111,3046,111,3174,111,3302,111,3430,111,3664,111,3792,111,4160,111,1637,111,1781,111,65359,111,8500,111,119848,111,119900,111,119952,111,120056,111,120108,111,120160,111,120212,111,120264,111,120316,111,120368,111,120420,111,120472,111,7439,111,7441,111,43837,111,959,111,120528,111,120586,111,120644,111,120702,111,120760,111,963,111,120532,111,120590,111,120648,111,120706,111,120764,111,11423,111,4351,111,1413,111,1505,111,1607,111,126500,111,126564,111,126596,111,65259,111,65260,111,65258,111,65257,111,1726,111,64428,111,64429,111,64427,111,64426,111,1729,111,64424,111,64425,111,64423,111,64422,111,1749,111,3360,111,4125,111,66794,111,71880,111,71895,111,66604,111,1984,79,2534,79,2918,79,12295,79,70864,79,71904,79,118000,79,120782,79,120792,79,120802,79,120812,79,120822,79,130032,79,65327,79,117988,79,119822,79,119874,79,119926,79,119978,79,120030,79,120082,79,120134,79,120186,79,120238,79,120290,79,120342,79,120394,79,120446,79,927,79,120502,79,120560,79,120618,79,120676,79,120734,79,11422,79,1365,79,11604,79,4816,79,2848,79,66754,79,42227,79,71861,79,66194,79,66219,79,66564,79,66838,79,9076,112,65360,112,119849,112,119901,112,119953,112,120005,112,120057,112,120109,112,120161,112,120213,112,120265,112,120317,112,120369,112,120421,112,120473,112,961,112,120530,112,120544,112,120588,112,120602,112,120646,112,120660,112,120704,112,120718,112,120762,112,120776,112,11427,112,65328,80,8473,80,117989,80,119823,80,119875,80,119927,80,119979,80,120031,80,120083,80,120187,80,120239,80,120291,80,120343,80,120395,80,120447,80,929,80,120504,80,120562,80,120620,80,120678,80,120736,80,11426,80,5090,80,5229,80,42193,80,66197,80,119850,113,119902,113,119954,113,120006,113,120058,113,120110,113,120162,113,120214,113,120266,113,120318,113,120370,113,120422,113,120474,113,1307,113,1379,113,1382,113,8474,81,117990,81,119824,81,119876,81,119928,81,119980,81,120032,81,120084,81,120188,81,120240,81,120292,81,120344,81,120396,81,120448,81,11605,81,119851,114,119903,114,119955,114,120007,114,120059,114,120111,114,120163,114,120215,114,120267,114,120319,114,120371,114,120423,114,120475,114,43847,114,43848,114,7462,114,11397,114,43905,114,119318,82,8475,82,8476,82,8477,82,117991,82,119825,82,119877,82,119929,82,120033,82,120189,82,120241,82,120293,82,120345,82,120397,82,120449,82,422,82,5025,82,5074,82,66740,82,5511,82,42211,82,94005,82,65363,115,119852,115,119904,115,119956,115,120008,115,120060,115,120112,115,120164,115,120216,115,120268,115,120320,115,120372,115,120424,115,120476,115,42801,115,445,115,1109,115,43946,115,71873,115,66632,115,65331,83,117992,83,119826,83,119878,83,119930,83,119982,83,120034,83,120086,83,120138,83,120190,83,120242,83,120294,83,120346,83,120398,83,120450,83,1029,83,1359,83,5077,83,5082,83,42210,83,94010,83,66198,83,66592,83,119853,116,119905,116,119957,116,120009,116,120061,116,120113,116,120165,116,120217,116,120269,116,120321,116,120373,116,120425,116,120477,116,8868,84,10201,84,128872,84,65332,84,117993,84,119827,84,119879,84,119931,84,119983,84,120035,84,120087,84,120139,84,120191,84,120243,84,120295,84,120347,84,120399,84,120451,84,932,84,120507,84,120565,84,120623,84,120681,84,120739,84,11430,84,5026,84,42196,84,93962,84,71868,84,66199,84,66225,84,66325,84,119854,117,119906,117,119958,117,120010,117,120062,117,120114,117,120166,117,120218,117,120270,117,120322,117,120374,117,120426,117,120478,117,42911,117,7452,117,43854,117,43858,117,651,117,965,117,120534,117,120592,117,120650,117,120708,117,120766,117,1405,117,66806,117,71896,117,8746,85,8899,85,117994,85,119828,85,119880,85,119932,85,119984,85,120036,85,120088,85,120140,85,120192,85,120244,85,120296,85,120348,85,120400,85,120452,85,1357,85,4608,85,66766,85,5196,85,42228,85,94018,85,71864,85,8744,118,8897,118,65366,118,8564,118,119855,118,119907,118,119959,118,120011,118,120063,118,120115,118,120167,118,120219,118,120271,118,120323,118,120375,118,120427,118,120479,118,7456,118,957,118,120526,118,120584,118,120642,118,120700,118,120758,118,1141,118,1496,118,71430,118,43945,118,71872,118,119309,86,1639,86,1783,86,8548,86,117995,86,119829,86,119881,86,119933,86,119985,86,120037,86,120089,86,120141,86,120193,86,120245,86,120297,86,120349,86,120401,86,120453,86,1140,86,11576,86,5081,86,5167,86,42719,86,42214,86,93960,86,71840,86,66845,86,623,119,119856,119,119908,119,119960,119,120012,119,120064,119,120116,119,120168,119,120220,119,120272,119,120324,119,120376,119,120428,119,120480,119,7457,119,1121,119,1309,119,1377,119,71434,119,71438,119,71439,119,43907,119,71910,87,71919,87,117996,87,119830,87,119882,87,119934,87,119986,87,120038,87,120090,87,120142,87,120194,87,120246,87,120298,87,120350,87,120402,87,120454,87,1308,87,5043,87,5076,87,42218,87,5742,120,10539,120,10540,120,10799,120,65368,120,8569,120,119857,120,119909,120,119961,120,120013,120,120065,120,120117,120,120169,120,120221,120,120273,120,120325,120,120377,120,120429,120,120481,120,5441,120,5501,120,5741,88,9587,88,66338,88,71916,88,65336,88,8553,88,117997,88,119831,88,119883,88,119935,88,119987,88,120039,88,120091,88,120143,88,120195,88,120247,88,120299,88,120351,88,120403,88,120455,88,42931,88,935,88,120510,88,120568,88,120626,88,120684,88,120742,88,11436,88,11613,88,5815,88,42219,88,66192,88,66228,88,66327,88,66855,88,611,121,7564,121,65369,121,119858,121,119910,121,119962,121,120014,121,120066,121,120118,121,120170,121,120222,121,120274,121,120326,121,120378,121,120430,121,120482,121,655,121,7935,121,43866,121,947,121,8509,121,120516,121,120574,121,120632,121,120690,121,120748,121,1199,121,4327,121,71900,121,65337,89,117998,89,119832,89,119884,89,119936,89,119988,89,120040,89,120092,89,120144,89,120196,89,120248,89,120300,89,120352,89,120404,89,120456,89,933,89,978,89,120508,89,120566,89,120624,89,120682,89,120740,89,11432,89,1198,89,5033,89,5053,89,42220,89,94019,89,71844,89,66226,89,119859,122,119911,122,119963,122,120015,122,120067,122,120119,122,120171,122,120223,122,120275,122,120327,122,120379,122,120431,122,120483,122,7458,122,43923,122,71876,122,71909,90,66293,90,65338,90,8484,90,8488,90,117999,90,119833,90,119885,90,119937,90,119989,90,120041,90,120197,90,120249,90,120301,90,120353,90,120405,90,120457,90,918,90,120493,90,120551,90,120609,90,120667,90,120725,90,5059,90,42204,90,71849,90,65282,34,65283,35,65284,36,65285,37,65286,38,65290,42,65291,43,65294,46,65295,47,65296,48,65298,50,65299,51,65300,52,65301,53,65302,54,65303,55,65304,56,65305,57,65308,60,65309,61,65310,62,65312,64,65316,68,65318,70,65319,71,65324,76,65329,81,65330,82,65333,85,65334,86,65335,87,65343,95,65346,98,65348,100,65350,102,65355,107,65357,109,65358,110,65361,113,65362,114,65364,116,65365,117,65367,119,65370,122,65371,123,65373,125,119846,109],"_default":[160,32,8211,45,65374,126,8218,44,65306,58,65281,33,8216,96,8217,96,8245,96,180,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,921,73,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,215,120,1093,120,1061,88,1091,121,1059,89,65288,40,65289,41,65292,44,65297,49,65307,59,65311,63],"cs":[65374,126,8218,44,65306,58,65281,33,8216,96,8245,96,180,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,921,73,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,1093,120,1061,88,1091,121,1059,89,65288,40,65289,41,65292,44,65297,49,65307,59,65311,63],"de":[65374,126,65306,58,65281,33,8245,96,180,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,921,73,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,1093,120,1061,88,1091,121,1059,89,65288,40,65289,41,65292,44,65297,49,65307,59,65311,63],"es":[8211,45,65374,126,8218,44,65306,58,65281,33,8245,96,180,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,215,120,1093,120,1061,88,1091,121,1059,89,65288,40,65289,41,65292,44,65297,49,65307,59,65311,63],"fr":[65374,126,8218,44,65306,58,65281,33,8216,96,8245,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,921,73,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,215,120,1093,120,1061,88,1091,121,1059,89,65288,40,65289,41,65292,44,65297,49,65307,59,65311,63],"it":[160,32,8211,45,65374,126,8218,44,65306,58,65281,33,8245,96,180,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,921,73,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,215,120,1093,120,1061,88,1091,121,1059,89,65288,40,65289,41,65292,44,65297,49,65307,59,65311,63],"ja":[8211,45,8218,44,65281,33,8216,96,8245,96,180,96,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,921,73,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,215,120,1093,120,1061,88,1091,121,1059,89,65292,44,65297,49,65307,59],"ko":[8211,45,65374,126,8218,44,65306,58,65281,33,8245,96,180,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,921,73,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,215,120,1093,120,1061,88,1091,121,1059,89,65288,40,65289,41,65292,44,65297,49,65307,59,65311,63],"pl":[65374,126,65306,58,65281,33,8216,96,8245,96,180,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,921,73,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,215,120,1093,120,1061,88,1091,121,1059,89,65288,40,65289,41,65292,44,65297,49,65307,59,65311,63],"pt-BR":[65374,126,8218,44,65306,58,65281,33,8216,96,8245,96,180,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,921,73,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,215,120,1093,120,1061,88,1091,121,1059,89,65288,40,65289,41,65292,44,65297,49,65307,59,65311,63],"qps-ploc":[160,32,8211,45,65374,126,8218,44,65306,58,65281,33,8216,96,8245,96,180,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,921,73,1052,77,1086,111,1054,79,1088,112,1056,80,1075,114,1058,84,215,120,1093,120,1061,88,1091,121,1059,89,65288,40,65289,41,65292,44,65297,49,65307,59,65311,63],"ru":[65374,126,8218,44,65306,58,65281,33,8216,96,8245,96,180,96,12494,47,305,105,921,73,1009,112,215,120,65288,40,65289,41,65292,44,65297,49,65307,59,65311,63],"tr":[160,32,8211,45,65374,126,8218,44,65306,58,65281,33,8245,96,180,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,1050,75,921,73,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,215,120,1093,120,1061,88,1091,121,1059,89,65288,40,65289,41,65292,44,65297,49,65307,59,65311,63],"zh-hans":[160,32,65374,126,8218,44,8245,96,180,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,921,73,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,215,120,1093,120,1061,88,1091,121,1059,89,65297,49],"zh-hant":[8211,45,65374,126,8218,44,180,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,921,73,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,215,120,1093,120,1061,88,1091,121,1059,89]}'))}static{this.cache=new Q({getCacheKey:JSON.stringify},e=>{function n(e){const n=new Map;for(let t=0;t<e.length;t+=2)n.set(e[t],e[t+1]);return n}function t(e,n){if(!e)return n;const t=new Map;for(const[r,o]of e)n.has(r)&&t.set(r,o);return t}const r=this.ambiguousCharacterData.value;let o,i=e.filter(e=>!e.startsWith("_")&&Object.hasOwn(r,e));0===i.length&&(i=["_default"]);for(const s of i){o=t(o,n(r[s]))}const a=function(e,n){const t=new Map(e);for(const[r,o]of n)t.set(r,o);return t}(n(r._common),o);return new ae(a)})}static getInstance(e){return ae.cache.get(Array.from(e))}static{this._locales=new ee(()=>Object.keys(ae.ambiguousCharacterData.value).filter(e=>!e.startsWith("_")))}static getLocales(){return ae._locales.value}constructor(e){this.confusableDictionary=e}isAmbiguous(e){return this.confusableDictionary.has(e)}getPrimaryConfusable(e){return this.confusableDictionary.get(e)}getConfusableCodePoints(){return new Set(this.confusableDictionary.keys())}}class se{static getRawData(){return JSON.parse('{"_common":[11,12,13,127,847,1564,4447,4448,6068,6069,6155,6156,6157,6158,7355,7356,8192,8193,8194,8195,8196,8197,8198,8199,8200,8201,8202,8204,8205,8206,8207,8234,8235,8236,8237,8238,8239,8287,8288,8289,8290,8291,8292,8293,8294,8295,8296,8297,8298,8299,8300,8301,8302,8303,10240,12644,65024,65025,65026,65027,65028,65029,65030,65031,65032,65033,65034,65035,65036,65037,65038,65039,65279,65440,65520,65521,65522,65523,65524,65525,65526,65527,65528,65532,78844,119155,119156,119157,119158,119159,119160,119161,119162,917504,917505,917506,917507,917508,917509,917510,917511,917512,917513,917514,917515,917516,917517,917518,917519,917520,917521,917522,917523,917524,917525,917526,917527,917528,917529,917530,917531,917532,917533,917534,917535,917536,917537,917538,917539,917540,917541,917542,917543,917544,917545,917546,917547,917548,917549,917550,917551,917552,917553,917554,917555,917556,917557,917558,917559,917560,917561,917562,917563,917564,917565,917566,917567,917568,917569,917570,917571,917572,917573,917574,917575,917576,917577,917578,917579,917580,917581,917582,917583,917584,917585,917586,917587,917588,917589,917590,917591,917592,917593,917594,917595,917596,917597,917598,917599,917600,917601,917602,917603,917604,917605,917606,917607,917608,917609,917610,917611,917612,917613,917614,917615,917616,917617,917618,917619,917620,917621,917622,917623,917624,917625,917626,917627,917628,917629,917630,917631,917760,917761,917762,917763,917764,917765,917766,917767,917768,917769,917770,917771,917772,917773,917774,917775,917776,917777,917778,917779,917780,917781,917782,917783,917784,917785,917786,917787,917788,917789,917790,917791,917792,917793,917794,917795,917796,917797,917798,917799,917800,917801,917802,917803,917804,917805,917806,917807,917808,917809,917810,917811,917812,917813,917814,917815,917816,917817,917818,917819,917820,917821,917822,917823,917824,917825,917826,917827,917828,917829,917830,917831,917832,917833,917834,917835,917836,917837,917838,917839,917840,917841,917842,917843,917844,917845,917846,917847,917848,917849,917850,917851,917852,917853,917854,917855,917856,917857,917858,917859,917860,917861,917862,917863,917864,917865,917866,917867,917868,917869,917870,917871,917872,917873,917874,917875,917876,917877,917878,917879,917880,917881,917882,917883,917884,917885,917886,917887,917888,917889,917890,917891,917892,917893,917894,917895,917896,917897,917898,917899,917900,917901,917902,917903,917904,917905,917906,917907,917908,917909,917910,917911,917912,917913,917914,917915,917916,917917,917918,917919,917920,917921,917922,917923,917924,917925,917926,917927,917928,917929,917930,917931,917932,917933,917934,917935,917936,917937,917938,917939,917940,917941,917942,917943,917944,917945,917946,917947,917948,917949,917950,917951,917952,917953,917954,917955,917956,917957,917958,917959,917960,917961,917962,917963,917964,917965,917966,917967,917968,917969,917970,917971,917972,917973,917974,917975,917976,917977,917978,917979,917980,917981,917982,917983,917984,917985,917986,917987,917988,917989,917990,917991,917992,917993,917994,917995,917996,917997,917998,917999],"cs":[173,8203,12288],"de":[173,8203,12288],"es":[8203,12288],"fr":[173,8203,12288],"it":[160,173,12288],"ja":[173],"ko":[173,12288],"pl":[173,8203,12288],"pt-BR":[173,8203,12288],"qps-ploc":[160,173,8203,12288],"ru":[173,12288],"tr":[160,173,8203,12288],"zh-hans":[160,173,8203,12288],"zh-hant":[173,12288]}')}static{this._data=void 0}static getData(){return this._data||(this._data=new Set([...Object.values(se.getRawData())].flat())),this._data}static isInvisibleCharacter(e){return se.getData().has(e)}static get codePoints(){return se.getData()}}const le="default";class ce{constructor(e,n,t,r,o){this.vsWorker=e,this.req=n,this.channel=t,this.method=r,this.args=o,this.type=0}}class de{constructor(e,n,t,r){this.vsWorker=e,this.seq=n,this.res=t,this.err=r,this.type=1}}class ue{constructor(e,n,t,r,o){this.vsWorker=e,this.req=n,this.channel=t,this.eventName=r,this.arg=o,this.type=2}}class pe{constructor(e,n,t){this.vsWorker=e,this.req=n,this.event=t,this.type=3}}class fe{constructor(e,n){this.vsWorker=e,this.req=n,this.type=4}}class me{constructor(e){this._workerId=-1,this._handler=e,this._lastSentReq=0,this._pendingReplies=Object.create(null),this._pendingEmitters=new Map,this._pendingEvents=new Map}setWorkerId(e){this._workerId=e}async sendMessage(e,n,t){const r=String(++this._lastSentReq);return new Promise((o,i)=>{this._pendingReplies[r]={resolve:o,reject:i},this._send(new ce(this._workerId,r,e,n,t))})}listen(e,n,t){let r=null;const o=new D({onWillAddFirstListener:()=>{r=String(++this._lastSentReq),this._pendingEmitters.set(r,o),this._send(new ue(this._workerId,r,e,n,t))},onDidRemoveLastListener:()=>{this._pendingEmitters.delete(r),this._send(new fe(this._workerId,r)),r=null}});return o.event}handleMessage(e){e&&e.vsWorker&&(-1!==this._workerId&&e.vsWorker!==this._workerId||this._handleMessage(e))}createProxyToRemoteChannel(e,n){const t={get:(t,r)=>("string"!=typeof r||t[r]||(_e(r)?t[r]=n=>this.listen(e,r,n):he(r)?t[r]=this.listen(e,r,void 0):36===r.charCodeAt(0)&&(t[r]=async(...t)=>(await(n?.()),this.sendMessage(e,r,t)))),t[r])};return new Proxy(Object.create(null),t)}_handleMessage(e){switch(e.type){case 1:return this._handleReplyMessage(e);case 0:return this._handleRequestMessage(e);case 2:return this._handleSubscribeEventMessage(e);case 3:return this._handleEventMessage(e);case 4:return this._handleUnsubscribeEventMessage(e)}}_handleReplyMessage(e){if(!this._pendingReplies[e.seq])return;const n=this._pendingReplies[e.seq];if(delete this._pendingReplies[e.seq],e.err){let t=e.err;if(e.err.$isError){const n=new Error;n.name=e.err.name,n.message=e.err.message,n.stack=e.err.stack,t=n}return void n.reject(t)}n.resolve(e.res)}_handleRequestMessage(e){const n=e.req;this._handler.handleMessage(e.channel,e.method,e.args).then(e=>{this._send(new de(this._workerId,n,e,void 0))},e=>{e.detail instanceof Error&&(e.detail=t(e.detail)),this._send(new de(this._workerId,n,void 0,t(e)))})}_handleSubscribeEventMessage(e){const n=e.req,t=this._handler.handleEvent(e.channel,e.eventName,e.arg)(e=>{this._send(new pe(this._workerId,n,e))});this._pendingEvents.set(n,t)}_handleEventMessage(e){this._pendingEmitters.has(e.req)&&this._pendingEmitters.get(e.req).fire(e.event)}_handleUnsubscribeEventMessage(e){this._pendingEvents.has(e.req)&&(this._pendingEvents.get(e.req).dispose(),this._pendingEvents.delete(e.req))}_send(e){const n=[];if(0===e.type)for(let t=0;t<e.args.length;t++){const r=e.args[t];r instanceof ArrayBuffer&&n.push(r)}else 1===e.type&&e.res instanceof ArrayBuffer&&n.push(e.res);this._handler.sendMessage(e,n)}}function he(e){return"o"===e[0]&&"n"===e[1]&&ne(e.charCodeAt(2))}function _e(e){return/^onDynamic/.test(e)&&ne(e.charCodeAt(9))}class ge{constructor(e,n){this._localChannels=new Map,this._remoteChannels=new Map,this._protocol=new me({sendMessage:(n,t)=>{e(n,t)},handleMessage:(e,n,t)=>this._handleMessage(e,n,t),handleEvent:(e,n,t)=>this._handleEvent(e,n,t)}),this.requestHandler=n(this)}onmessage(e){this._protocol.handleMessage(e)}_handleMessage(e,n,t){if(e===le&&"$initialize"===n)return this.initialize(t[0]);const r=e===le?this.requestHandler:this._localChannels.get(e);if(!r)return Promise.reject(new Error(`Missing channel ${e} on worker thread`));const o=r[n];if("function"!=typeof o)return Promise.reject(new Error(`Missing method ${n} on worker thread channel ${e}`));try{return Promise.resolve(o.apply(r,t))}catch(bi){return Promise.reject(bi)}}_handleEvent(e,n,t){const r=e===le?this.requestHandler:this._localChannels.get(e);if(!r)throw new Error(`Missing channel ${e} on worker thread`);if(_e(n)){const e=r[n];if("function"!=typeof e)throw new Error(`Missing dynamic event ${n} on request handler.`);const o=e.call(r,t);if("function"!=typeof o)throw new Error(`Missing dynamic event ${n} on request handler.`);return o}if(he(n)){const e=r[n];if("function"!=typeof e)throw new Error(`Missing event ${n} on request handler.`);return e}throw new Error(`Malformed event name ${n}`)}getChannel(e){if(!this._remoteChannels.has(e)){const n=this._protocol.createProxyToRemoteChannel(e);this._remoteChannels.set(e,n)}return this._remoteChannels.get(e)}async initialize(e){this._protocol.setWorkerId(e)}}let ye=!1;class ve{constructor(e,n,t,r){this.originalStart=e,this.originalLength=n,this.modifiedStart=t,this.modifiedLength=r}getOriginalEnd(){return this.originalStart+this.originalLength}getModifiedEnd(){return this.modifiedStart+this.modifiedLength}}function be(e,n){return(n<<5)-n+e|0}function Te(e,n){n=be(149417,n);for(let t=0,r=e.length;t<r;t++)n=be(e.charCodeAt(t),n);return n}new ee(()=>new Uint8Array(256));class Se{constructor(e){this.source=e}getElements(){const e=this.source,n=new Int32Array(e.length);for(let t=0,r=e.length;t<r;t++)n[t]=e.charCodeAt(t);return n}}function Ee(e,n,t){return new Ie(new Se(e),new Se(n)).ComputeDiff(t).changes}class Ae{static Assert(e,n){if(!e)throw new Error(n)}}class xe{static Copy(e,n,t,r,o){for(let i=0;i<o;i++)t[r+i]=e[n+i]}static Copy2(e,n,t,r,o){for(let i=0;i<o;i++)t[r+i]=e[n+i]}}class Re{constructor(){this.m_changes=[],this.m_originalStart=1073741824,this.m_modifiedStart=1073741824,this.m_originalCount=0,this.m_modifiedCount=0}MarkNextChange(){(this.m_originalCount>0||this.m_modifiedCount>0)&&this.m_changes.push(new ve(this.m_originalStart,this.m_originalCount,this.m_modifiedStart,this.m_modifiedCount)),this.m_originalCount=0,this.m_modifiedCount=0,this.m_originalStart=1073741824,this.m_modifiedStart=1073741824}AddOriginalElement(e,n){this.m_originalStart=Math.min(this.m_originalStart,e),this.m_modifiedStart=Math.min(this.m_modifiedStart,n),this.m_originalCount++}AddModifiedElement(e,n){this.m_originalStart=Math.min(this.m_originalStart,e),this.m_modifiedStart=Math.min(this.m_modifiedStart,n),this.m_modifiedCount++}getChanges(){return(this.m_originalCount>0||this.m_modifiedCount>0)&&this.MarkNextChange(),this.m_changes}getReverseChanges(){return(this.m_originalCount>0||this.m_modifiedCount>0)&&this.MarkNextChange(),this.m_changes.reverse(),this.m_changes}}class Ie{constructor(e,n,t=null){this.ContinueProcessingPredicate=t,this._originalSequence=e,this._modifiedSequence=n;const[r,o,i]=Ie._getElements(e),[a,s,l]=Ie._getElements(n);this._hasStrings=i&&l,this._originalStringElements=r,this._originalElementsOrHash=o,this._modifiedStringElements=a,this._modifiedElementsOrHash=s,this.m_forwardHistory=[],this.m_reverseHistory=[]}static _isStringArray(e){return e.length>0&&"string"==typeof e[0]}static _getElements(e){const n=e.getElements();if(Ie._isStringArray(n)){const e=new Int32Array(n.length);for(let t=0,r=n.length;t<r;t++)e[t]=Te(n[t],0);return[n,e,!0]}return n instanceof Int32Array?[[],n,!1]:[[],new Int32Array(n),!1]}ElementsAreEqual(e,n){return this._originalElementsOrHash[e]===this._modifiedElementsOrHash[n]&&(!this._hasStrings||this._originalStringElements[e]===this._modifiedStringElements[n])}ElementsAreStrictEqual(e,n){if(!this.ElementsAreEqual(e,n))return!1;return Ie._getStrictElement(this._originalSequence,e)===Ie._getStrictElement(this._modifiedSequence,n)}static _getStrictElement(e,n){return"function"==typeof e.getStrictElement?e.getStrictElement(n):null}OriginalElementsAreEqual(e,n){return this._originalElementsOrHash[e]===this._originalElementsOrHash[n]&&(!this._hasStrings||this._originalStringElements[e]===this._originalStringElements[n])}ModifiedElementsAreEqual(e,n){return this._modifiedElementsOrHash[e]===this._modifiedElementsOrHash[n]&&(!this._hasStrings||this._modifiedStringElements[e]===this._modifiedStringElements[n])}ComputeDiff(e){return this._ComputeDiff(0,this._originalElementsOrHash.length-1,0,this._modifiedElementsOrHash.length-1,e)}_ComputeDiff(e,n,t,r,o){const i=[!1];let a=this.ComputeDiffRecursive(e,n,t,r,i);return o&&(a=this.PrettifyChanges(a)),{quitEarly:i[0],changes:a}}ComputeDiffRecursive(e,n,t,r,o){for(o[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){let o;return t<=r?(Ae.Assert(e===n+1,"originalStart should only be one more than originalEnd"),o=[new ve(e,0,t,r-t+1)]):e<=n?(Ae.Assert(t===r+1,"modifiedStart should only be one more than modifiedEnd"),o=[new ve(e,n-e+1,t,0)]):(Ae.Assert(e===n+1,"originalStart should only be one more than originalEnd"),Ae.Assert(t===r+1,"modifiedStart should only be one more than modifiedEnd"),o=[]),o}const i=[0],a=[0],s=this.ComputeRecursionPoint(e,n,t,r,i,a,o),l=i[0],c=a[0];if(null!==s)return s;if(!o[0]){const i=this.ComputeDiffRecursive(e,l,t,c,o);let a=[];return a=o[0]?[new ve(l+1,n-(l+1)+1,c+1,r-(c+1)+1)]:this.ComputeDiffRecursive(l+1,n,c+1,r,o),this.ConcatenateChanges(i,a)}return[new ve(e,n-e+1,t,r-t+1)]}WALKTRACE(e,n,t,r,o,i,a,s,l,c,d,u,p,f,m,h,_,g){let y=null,v=null,b=new Re,T=n,S=t,E=p[0]-h[0]-r,A=-1073741824,x=this.m_forwardHistory.length-1;do{const n=E+e;n===T||n<S&&l[n-1]<l[n+1]?(f=(d=l[n+1])-E-r,d<A&&b.MarkNextChange(),A=d,b.AddModifiedElement(d+1,f),E=n+1-e):(f=(d=l[n-1]+1)-E-r,d<A&&b.MarkNextChange(),A=d-1,b.AddOriginalElement(d,f+1),E=n-1-e),x>=0&&(e=(l=this.m_forwardHistory[x])[0],T=1,S=l.length-1)}while(--x>=-1);if(y=b.getReverseChanges(),g[0]){let e=p[0]+1,n=h[0]+1;if(null!==y&&y.length>0){const t=y[y.length-1];e=Math.max(e,t.getOriginalEnd()),n=Math.max(n,t.getModifiedEnd())}v=[new ve(e,u-e+1,n,m-n+1)]}else{b=new Re,T=i,S=a,E=p[0]-h[0]-s,A=1073741824,x=_?this.m_reverseHistory.length-1:this.m_reverseHistory.length-2;do{const e=E+o;e===T||e<S&&c[e-1]>=c[e+1]?(f=(d=c[e+1]-1)-E-s,d>A&&b.MarkNextChange(),A=d+1,b.AddOriginalElement(d+1,f+1),E=e+1-o):(f=(d=c[e-1])-E-s,d>A&&b.MarkNextChange(),A=d,b.AddModifiedElement(d+1,f+1),E=e-1-o),x>=0&&(o=(c=this.m_reverseHistory[x])[0],T=1,S=c.length-1)}while(--x>=-1);v=b.getChanges()}return this.ConcatenateChanges(y,v)}ComputeRecursionPoint(e,n,t,r,o,i,a){let s=0,l=0,c=0,d=0,u=0,p=0;e--,t--,o[0]=0,i[0]=0,this.m_forwardHistory=[],this.m_reverseHistory=[];const f=n-e+(r-t),m=f+1,h=new Int32Array(m),_=new Int32Array(m),g=r-t,y=n-e,v=e-t,b=n-r,T=(y-g)%2==0;h[g]=e,_[y]=n,a[0]=!1;for(let S=1;S<=f/2+1;S++){let f=0,E=0;c=this.ClipDiagonalBound(g-S,S,g,m),d=this.ClipDiagonalBound(g+S,S,g,m);for(let e=c;e<=d;e+=2){s=e===c||e<d&&h[e-1]<h[e+1]?h[e+1]:h[e-1]+1,l=s-(e-g)-v;const t=s;for(;s<n&&l<r&&this.ElementsAreEqual(s+1,l+1);)s++,l++;if(h[e]=s,s+l>f+E&&(f=s,E=l),!T&&Math.abs(e-y)<=S-1&&s>=_[e])return o[0]=s,i[0]=l,t<=_[e]&&S<=1448?this.WALKTRACE(g,c,d,v,y,u,p,b,h,_,s,n,o,l,r,i,T,a):null}const A=(f-e+(E-t)-S)/2;if(null!==this.ContinueProcessingPredicate&&!this.ContinueProcessingPredicate(f,A))return a[0]=!0,o[0]=f,i[0]=E,A>0&&S<=1448?this.WALKTRACE(g,c,d,v,y,u,p,b,h,_,s,n,o,l,r,i,T,a):(e++,t++,[new ve(e,n-e+1,t,r-t+1)]);u=this.ClipDiagonalBound(y-S,S,y,m),p=this.ClipDiagonalBound(y+S,S,y,m);for(let m=u;m<=p;m+=2){s=m===u||m<p&&_[m-1]>=_[m+1]?_[m+1]-1:_[m-1],l=s-(m-y)-b;const f=s;for(;s>e&&l>t&&this.ElementsAreEqual(s,l);)s--,l--;if(_[m]=s,T&&Math.abs(m-g)<=S&&s<=h[m])return o[0]=s,i[0]=l,f>=h[m]&&S<=1448?this.WALKTRACE(g,c,d,v,y,u,p,b,h,_,s,n,o,l,r,i,T,a):null}if(S<=1447){let e=new Int32Array(d-c+2);e[0]=g-c+1,xe.Copy2(h,c,e,1,d-c+1),this.m_forwardHistory.push(e),e=new Int32Array(p-u+2),e[0]=y-u+1,xe.Copy2(_,u,e,1,p-u+1),this.m_reverseHistory.push(e)}}return this.WALKTRACE(g,c,d,v,y,u,p,b,h,_,s,n,o,l,r,i,T,a)}PrettifyChanges(e){for(let n=0;n<e.length;n++){const t=e[n],r=n<e.length-1?e[n+1].originalStart:this._originalElementsOrHash.length,o=n<e.length-1?e[n+1].modifiedStart:this._modifiedElementsOrHash.length,i=t.originalLength>0,a=t.modifiedLength>0;for(;t.originalStart+t.originalLength<r&&t.modifiedStart+t.modifiedLength<o&&(!i||this.OriginalElementsAreEqual(t.originalStart,t.originalStart+t.originalLength))&&(!a||this.ModifiedElementsAreEqual(t.modifiedStart,t.modifiedStart+t.modifiedLength));){const e=this.ElementsAreStrictEqual(t.originalStart,t.modifiedStart);if(this.ElementsAreStrictEqual(t.originalStart+t.originalLength,t.modifiedStart+t.modifiedLength)&&!e)break;t.originalStart++,t.modifiedStart++}const 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(let n=e.length-1;n>=0;n--){const t=e[n];let r=0,o=0;if(n>0){const t=e[n-1];r=t.originalStart+t.originalLength,o=t.modifiedStart+t.modifiedLength}const i=t.originalLength>0,a=t.modifiedLength>0;let s=0,l=this._boundaryScore(t.originalStart,t.originalLength,t.modifiedStart,t.modifiedLength);for(let e=1;;e++){const n=t.originalStart-e,c=t.modifiedStart-e;if(n<r||c<o)break;if(i&&!this.OriginalElementsAreEqual(n,n+t.originalLength))break;if(a&&!this.ModifiedElementsAreEqual(c,c+t.modifiedLength))break;const d=(n===r&&c===o?5:0)+this._boundaryScore(n,t.originalLength,c,t.modifiedLength);d>l&&(l=d,s=e)}t.originalStart-=s,t.modifiedStart-=s;const c=[null];n>0&&this.ChangesOverlap(e[n-1],e[n],c)&&(e[n-1]=c[0],e.splice(n,1),n++)}if(this._hasStrings)for(let n=1,t=e.length;n<t;n++){const t=e[n-1],r=e[n],o=r.originalStart-t.originalStart-t.originalLength,i=t.originalStart,a=r.originalStart+r.originalLength,s=a-i,l=t.modifiedStart,c=r.modifiedStart+r.modifiedLength,d=c-l;if(o<5&&s<20&&d<20){const e=this._findBetterContiguousSequence(i,s,l,d,o);if(e){const[n,i]=e;n===t.originalStart+t.originalLength&&i===t.modifiedStart+t.modifiedLength||(t.originalLength=n-t.originalStart,t.modifiedLength=i-t.modifiedStart,r.originalStart=n+o,r.modifiedStart=i+o,r.originalLength=a-r.originalStart,r.modifiedLength=c-r.modifiedStart)}}}return e}_findBetterContiguousSequence(e,n,t,r,o){if(n<o||r<o)return null;const i=e+n-o+1,a=t+r-o+1;let s=0,l=0,c=0;for(let d=e;d<i;d++)for(let e=t;e<a;e++){const n=this._contiguousSequenceScore(d,e,o);n>0&&n>s&&(s=n,l=d,c=e)}return s>0?[l,c]:null}_contiguousSequenceScore(e,n,t){let r=0;for(let o=0;o<t;o++){if(!this.ElementsAreEqual(e+o,n+o))return 0;r+=this._originalStringElements[e+o].length}return r}_OriginalIsBoundary(e){return e<=0||e>=this._originalElementsOrHash.length-1||this._hasStrings&&/^\s*$/.test(this._originalStringElements[e])}_OriginalRegionIsBoundary(e,n){if(this._OriginalIsBoundary(e)||this._OriginalIsBoundary(e-1))return!0;if(n>0){const t=e+n;if(this._OriginalIsBoundary(t-1)||this._OriginalIsBoundary(t))return!0}return!1}_ModifiedIsBoundary(e){return e<=0||e>=this._modifiedElementsOrHash.length-1||this._hasStrings&&/^\s*$/.test(this._modifiedStringElements[e])}_ModifiedRegionIsBoundary(e,n){if(this._ModifiedIsBoundary(e)||this._ModifiedIsBoundary(e-1))return!0;if(n>0){const t=e+n;if(this._ModifiedIsBoundary(t-1)||this._ModifiedIsBoundary(t))return!0}return!1}_boundaryScore(e,n,t,r){return(this._OriginalRegionIsBoundary(e,n)?1:0)+(this._ModifiedRegionIsBoundary(t,r)?1:0)}ConcatenateChanges(e,n){const t=[];if(0===e.length||0===n.length)return n.length>0?n:e;if(this.ChangesOverlap(e[e.length-1],n[0],t)){const r=new Array(e.length+n.length-1);return xe.Copy(e,0,r,0,e.length-1),r[e.length-1]=t[0],xe.Copy(n,1,r,e.length,n.length-1),r}{const t=new Array(e.length+n.length);return xe.Copy(e,0,t,0,e.length),xe.Copy(n,0,t,e.length,n.length),t}}ChangesOverlap(e,n,t){if(Ae.Assert(e.originalStart<=n.originalStart,"Left change is not less than or equal to right change"),Ae.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){const r=e.originalStart;let o=e.originalLength;const i=e.modifiedStart;let a=e.modifiedLength;return e.originalStart+e.originalLength>=n.originalStart&&(o=n.originalStart+n.originalLength-e.originalStart),e.modifiedStart+e.modifiedLength>=n.modifiedStart&&(a=n.modifiedStart+n.modifiedLength-e.modifiedStart),t[0]=new ve(r,o,i,a),!0}return t[0]=null,!1}ClipDiagonalBound(e,n,t,r){if(e>=0&&e<r)return e;const o=n%2==0;if(e<0){return o===(t%2==0)?0:1}return o===((r-t-1)%2==0)?r-1:r-2}}class De{constructor(e,n){this.lineNumber=e,this.column=n}with(e=this.lineNumber,n=this.column){return e===this.lineNumber&&n===this.column?this:new De(e,n)}delta(e=0,n=0){return this.with(Math.max(1,this.lineNumber+e),Math.max(1,this.column+n))}equals(e){return De.equals(this,e)}static equals(e,n){return!e&&!n||!!e&&!!n&&e.lineNumber===n.lineNumber&&e.column===n.column}isBefore(e){return De.isBefore(this,e)}static isBefore(e,n){return e.lineNumber<n.lineNumber||!(n.lineNumber<e.lineNumber)&&e.column<n.column}isBeforeOrEqual(e){return De.isBeforeOrEqual(this,e)}static isBeforeOrEqual(e,n){return e.lineNumber<n.lineNumber||!(n.lineNumber<e.lineNumber)&&e.column<=n.column}static compare(e,n){const t=0|e.lineNumber,r=0|n.lineNumber;if(t===r){return(0|e.column)-(0|n.column)}return t-r}clone(){return new De(this.lineNumber,this.column)}toString(){return"("+this.lineNumber+","+this.column+")"}static lift(e){return new De(e.lineNumber,e.column)}static isIPosition(e){return!!e&&"number"==typeof e.lineNumber&&"number"==typeof e.column}toJSON(){return{lineNumber:this.lineNumber,column:this.column}}}class Ce{constructor(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)}isEmpty(){return Ce.isEmpty(this)}static isEmpty(e){return e.startLineNumber===e.endLineNumber&&e.startColumn===e.endColumn}containsPosition(e){return Ce.containsPosition(this,e)}static containsPosition(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))}static strictContainsPosition(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))}containsRange(e){return Ce.containsRange(this,e)}static containsRange(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)))}strictContainsRange(e){return Ce.strictContainsRange(this,e)}static strictContainsRange(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)))}plusRange(e){return Ce.plusRange(this,e)}static plusRange(e,n){let t,r,o,i;return n.startLineNumber<e.startLineNumber?(t=n.startLineNumber,r=n.startColumn):n.startLineNumber===e.startLineNumber?(t=n.startLineNumber,r=Math.min(n.startColumn,e.startColumn)):(t=e.startLineNumber,r=e.startColumn),n.endLineNumber>e.endLineNumber?(o=n.endLineNumber,i=n.endColumn):n.endLineNumber===e.endLineNumber?(o=n.endLineNumber,i=Math.max(n.endColumn,e.endColumn)):(o=e.endLineNumber,i=e.endColumn),new Ce(t,r,o,i)}intersectRanges(e){return Ce.intersectRanges(this,e)}static intersectRanges(e,n){let t=e.startLineNumber,r=e.startColumn,o=e.endLineNumber,i=e.endColumn;const a=n.startLineNumber,s=n.startColumn,l=n.endLineNumber,c=n.endColumn;return t<a?(t=a,r=s):t===a&&(r=Math.max(r,s)),o>l?(o=l,i=c):o===l&&(i=Math.min(i,c)),t>o||t===o&&r>i?null:new Ce(t,r,o,i)}equalsRange(e){return Ce.equalsRange(this,e)}static equalsRange(e,n){return!e&&!n||!!e&&!!n&&e.startLineNumber===n.startLineNumber&&e.startColumn===n.startColumn&&e.endLineNumber===n.endLineNumber&&e.endColumn===n.endColumn}getEndPosition(){return Ce.getEndPosition(this)}static getEndPosition(e){return new De(e.endLineNumber,e.endColumn)}getStartPosition(){return Ce.getStartPosition(this)}static getStartPosition(e){return new De(e.startLineNumber,e.startColumn)}toString(){return"["+this.startLineNumber+","+this.startColumn+" -> "+this.endLineNumber+","+this.endColumn+"]"}setEndPosition(e,n){return new Ce(this.startLineNumber,this.startColumn,e,n)}setStartPosition(e,n){return new Ce(e,n,this.endLineNumber,this.endColumn)}collapseToStart(){return Ce.collapseToStart(this)}static collapseToStart(e){return new Ce(e.startLineNumber,e.startColumn,e.startLineNumber,e.startColumn)}collapseToEnd(){return Ce.collapseToEnd(this)}static collapseToEnd(e){return new Ce(e.endLineNumber,e.endColumn,e.endLineNumber,e.endColumn)}delta(e){return new Ce(this.startLineNumber+e,this.startColumn,this.endLineNumber+e,this.endColumn)}isSingleLine(){return this.startLineNumber===this.endLineNumber}static fromPositions(e,n=e){return new Ce(e.lineNumber,e.column,n.lineNumber,n.column)}static lift(e){return e?new Ce(e.startLineNumber,e.startColumn,e.endLineNumber,e.endColumn):null}static isIRange(e){return!!e&&"number"==typeof e.startLineNumber&&"number"==typeof e.startColumn&&"number"==typeof e.endLineNumber&&"number"==typeof e.endColumn}static areIntersectingOrTouching(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)}static areIntersecting(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)}static areOnlyIntersecting(e,n){return!(e.endLineNumber<n.startLineNumber-1||e.endLineNumber===n.startLineNumber&&e.endColumn<n.startColumn-1)&&!(n.endLineNumber<e.startLineNumber-1||n.endLineNumber===e.startLineNumber&&n.endColumn<e.startColumn-1)}static compareRangesUsingStarts(e,n){if(e&&n){const t=0|e.startLineNumber,r=0|n.startLineNumber;if(t===r){const t=0|e.startColumn,r=0|n.startColumn;if(t===r){const t=0|e.endLineNumber,r=0|n.endLineNumber;if(t===r){return(0|e.endColumn)-(0|n.endColumn)}return t-r}return t-r}return t-r}return(e?1:0)-(n?1:0)}static compareRangesUsingEnds(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}static spansMultipleLines(e){return e.endLineNumber>e.startLineNumber}toJSON(){return this}}function Ne(e){return e<0?0:e>255?255:0|e}function Me(e){return e<0?0:e>4294967295?4294967295:0|e}class Pe{constructor(e){const n=Ne(e);this._defaultValue=n,this._asciiMap=Pe._createAsciiMap(n),this._map=new Map}static _createAsciiMap(e){const n=new Uint8Array(256);return n.fill(e),n}set(e,n){const t=Ne(n);e>=0&&e<256?this._asciiMap[e]=t:this._map.set(e,t)}get(e){return e>=0&&e<256?this._asciiMap[e]:this._map.get(e)||this._defaultValue}clear(){this._asciiMap.fill(this._defaultValue),this._map.clear()}}class Le{constructor(e,n,t){const r=new Uint8Array(e*n);for(let o=0,i=e*n;o<i;o++)r[o]=t;this._data=r,this.rows=e,this.cols=n}get(e,n){return this._data[e*this.cols+n]}set(e,n,t){this._data[e*this.cols+n]=t}}class ke{constructor(e){let n=0,t=0;for(let o=0,i=e.length;o<i;o++){const[r,i,a]=e[o];i>n&&(n=i),r>t&&(t=r),a>t&&(t=a)}n++,t++;const r=new Le(t,n,0);for(let o=0,i=e.length;o<i;o++){const[n,t,i]=e[o];r.set(n,t,i)}this._states=r,this._maxCharCode=n}nextState(e,n){return n<0||n>=this._maxCharCode?0:this._states.get(e,n)}}let we=null;let Oe=null;class Fe{static _createLink(e,n,t,r,o){let i=o-1;do{const t=n.charCodeAt(i);if(2!==e.get(t))break;i--}while(i>r);if(r>0){const e=n.charCodeAt(r-1),t=n.charCodeAt(i);(40===e&&41===t||91===e&&93===t||123===e&&125===t)&&i--}return{range:{startLineNumber:t,startColumn:r+1,endLineNumber:t,endColumn:i+2},url:n.substring(r,i+1)}}static computeLinks(e,n=function(){return null===we&&(we=new ke([[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]])),we}()){const t=function(){if(null===Oe){Oe=new Pe(0);const e=" \t<>'\"、。。、,.:;‘〈「『〔([{「」}])〕』」〉’`~…|";for(let t=0;t<e.length;t++)Oe.set(e.charCodeAt(t),1);const n=".,;:";for(let t=0;t<n.length;t++)Oe.set(n.charCodeAt(t),2)}return Oe}(),r=[];for(let o=1,i=e.getLineCount();o<=i;o++){const i=e.getLineContent(o),a=i.length;let s=0,l=0,c=0,d=1,u=!1,p=!1,f=!1,m=!1;for(;s<a;){let e=!1;const a=i.charCodeAt(s);if(13===d){let n;switch(a){case 40:u=!0,n=0;break;case 41:n=u?0:1;break;case 91:f=!0,p=!0,n=0;break;case 93:f=!1,n=p?0:1;break;case 123:m=!0,n=0;break;case 125:n=m?0:1;break;case 39:case 34:case 96:n=c===a?1:39===c||34===c||96===c?0:1;break;case 42:n=42===c?1:0;break;case 32:n=f?0:1;break;default:n=t.get(a)}1===n&&(r.push(Fe._createLink(t,i,o,l,s)),e=!0)}else if(12===d){let n;91===a?(p=!0,n=0):n=t.get(a),1===n?e=!0:d=13}else d=n.nextState(d,a),0===d&&(e=!0);e&&(d=1,u=!1,p=!1,m=!1,l=s+1,c=a),s++}13===d&&r.push(Fe._createLink(t,i,o,l,a))}return r}}class We{constructor(){this._defaultValueSet=[["true","false"],["True","False"],["Private","Public","Friend","ReadOnly","Partial","Protected","WriteOnly"],["public","protected","private"]]}static{this.INSTANCE=new We}navigateValueSet(e,n,t,r,o){if(e&&n){const t=this.doNavigateValueSet(n,o);if(t)return{range:e,value:t}}if(t&&r){const e=this.doNavigateValueSet(r,o);if(e)return{range:t,value:e}}return null}doNavigateValueSet(e,n){const t=this.numberReplace(e,n);return null!==t?t:this.textReplace(e,n)}numberReplace(e,n){const t=Math.pow(10,e.length-(e.lastIndexOf(".")+1));let r=Number(e);const o=parseFloat(e);return isNaN(r)||isNaN(o)||r!==o?null:0!==r||n?(r=Math.floor(r*t),r+=n?t:-t,String(r/t)):null}textReplace(e,n){return this.valueSetsReplace(this._defaultValueSet,e,n)}valueSetsReplace(e,n,t){let r=null;for(let o=0,i=e.length;null===r&&o<i;o++)r=this.valueSetReplace(e[o],n,t);return r}valueSetReplace(e,n,t){let r=e.indexOf(n);return r>=0?(r+=t?1:-1,r<0?r=e.length-1:r%=e.length,e[r]):null}}const ze=Object.freeze(function(e,n){const t=setTimeout(e.bind(n),0);return{dispose(){clearTimeout(t)}}});var Be;!function(e){e.isCancellationToken=function(n){return n===e.None||n===e.Cancelled||(n instanceof Ge||!(!n||"object"!=typeof n)&&("boolean"==typeof n.isCancellationRequested&&"function"==typeof n.onCancellationRequested))},e.None=Object.freeze({isCancellationRequested:!1,onCancellationRequested:T.None}),e.Cancelled=Object.freeze({isCancellationRequested:!0,onCancellationRequested:ze})}(Be||(Be={}));class Ge{constructor(){this._isCancelled=!1,this._emitter=null}cancel(){this._isCancelled||(this._isCancelled=!0,this._emitter&&(this._emitter.fire(void 0),this.dispose()))}get isCancellationRequested(){return this._isCancelled}get onCancellationRequested(){return this._isCancelled?ze:(this._emitter||(this._emitter=new D),this._emitter.event)}dispose(){this._emitter&&(this._emitter.dispose(),this._emitter=null)}}class Ve{constructor(e){this._token=void 0,this._parentListener=void 0,this._parentListener=e&&e.onCancellationRequested(this.cancel,this)}get token(){return this._token||(this._token=new Ge),this._token}cancel(){this._token?this._token instanceof Ge&&this._token.cancel():this._token=Be.Cancelled}dispose(e=!1){e&&this.cancel(),this._parentListener?.dispose(),this._token?this._token instanceof Ge&&this._token.dispose():this._token=Be.None}}class je{constructor(){this._keyCodeToStr=[],this._strToKeyCode=Object.create(null)}define(e,n){this._keyCodeToStr[e]=n,this._strToKeyCode[n.toLowerCase()]=e}keyCodeToStr(e){return this._keyCodeToStr[e]}strToKeyCode(e){return this._strToKeyCode[e.toLowerCase()]||0}}const Ue=new je,He=new je,Ke=new je,qe=new Array(230),Je=Object.create(null),Xe=Object.create(null);var Ye;!function(){const e="",n=[[1,0,"None",0,"unknown",0,"VK_UNKNOWN",e,e],[1,1,"Hyper",0,e,0,e,e,e],[1,2,"Super",0,e,0,e,e,e],[1,3,"Fn",0,e,0,e,e,e],[1,4,"FnLock",0,e,0,e,e,e],[1,5,"Suspend",0,e,0,e,e,e],[1,6,"Resume",0,e,0,e,e,e],[1,7,"Turbo",0,e,0,e,e,e],[1,8,"Sleep",0,e,0,"VK_SLEEP",e,e],[1,9,"WakeUp",0,e,0,e,e,e],[0,10,"KeyA",31,"A",65,"VK_A",e,e],[0,11,"KeyB",32,"B",66,"VK_B",e,e],[0,12,"KeyC",33,"C",67,"VK_C",e,e],[0,13,"KeyD",34,"D",68,"VK_D",e,e],[0,14,"KeyE",35,"E",69,"VK_E",e,e],[0,15,"KeyF",36,"F",70,"VK_F",e,e],[0,16,"KeyG",37,"G",71,"VK_G",e,e],[0,17,"KeyH",38,"H",72,"VK_H",e,e],[0,18,"KeyI",39,"I",73,"VK_I",e,e],[0,19,"KeyJ",40,"J",74,"VK_J",e,e],[0,20,"KeyK",41,"K",75,"VK_K",e,e],[0,21,"KeyL",42,"L",76,"VK_L",e,e],[0,22,"KeyM",43,"M",77,"VK_M",e,e],[0,23,"KeyN",44,"N",78,"VK_N",e,e],[0,24,"KeyO",45,"O",79,"VK_O",e,e],[0,25,"KeyP",46,"P",80,"VK_P",e,e],[0,26,"KeyQ",47,"Q",81,"VK_Q",e,e],[0,27,"KeyR",48,"R",82,"VK_R",e,e],[0,28,"KeyS",49,"S",83,"VK_S",e,e],[0,29,"KeyT",50,"T",84,"VK_T",e,e],[0,30,"KeyU",51,"U",85,"VK_U",e,e],[0,31,"KeyV",52,"V",86,"VK_V",e,e],[0,32,"KeyW",53,"W",87,"VK_W",e,e],[0,33,"KeyX",54,"X",88,"VK_X",e,e],[0,34,"KeyY",55,"Y",89,"VK_Y",e,e],[0,35,"KeyZ",56,"Z",90,"VK_Z",e,e],[0,36,"Digit1",22,"1",49,"VK_1",e,e],[0,37,"Digit2",23,"2",50,"VK_2",e,e],[0,38,"Digit3",24,"3",51,"VK_3",e,e],[0,39,"Digit4",25,"4",52,"VK_4",e,e],[0,40,"Digit5",26,"5",53,"VK_5",e,e],[0,41,"Digit6",27,"6",54,"VK_6",e,e],[0,42,"Digit7",28,"7",55,"VK_7",e,e],[0,43,"Digit8",29,"8",56,"VK_8",e,e],[0,44,"Digit9",30,"9",57,"VK_9",e,e],[0,45,"Digit0",21,"0",48,"VK_0",e,e],[1,46,"Enter",3,"Enter",13,"VK_RETURN",e,e],[1,47,"Escape",9,"Escape",27,"VK_ESCAPE",e,e],[1,48,"Backspace",1,"Backspace",8,"VK_BACK",e,e],[1,49,"Tab",2,"Tab",9,"VK_TAB",e,e],[1,50,"Space",10,"Space",32,"VK_SPACE",e,e],[0,51,"Minus",88,"-",189,"VK_OEM_MINUS","-","OEM_MINUS"],[0,52,"Equal",86,"=",187,"VK_OEM_PLUS","=","OEM_PLUS"],[0,53,"BracketLeft",92,"[",219,"VK_OEM_4","[","OEM_4"],[0,54,"BracketRight",94,"]",221,"VK_OEM_6","]","OEM_6"],[0,55,"Backslash",93,"\\",220,"VK_OEM_5","\\","OEM_5"],[0,56,"IntlHash",0,e,0,e,e,e],[0,57,"Semicolon",85,";",186,"VK_OEM_1",";","OEM_1"],[0,58,"Quote",95,"'",222,"VK_OEM_7","'","OEM_7"],[0,59,"Backquote",91,"`",192,"VK_OEM_3","`","OEM_3"],[0,60,"Comma",87,",",188,"VK_OEM_COMMA",",","OEM_COMMA"],[0,61,"Period",89,".",190,"VK_OEM_PERIOD",".","OEM_PERIOD"],[0,62,"Slash",90,"/",191,"VK_OEM_2","/","OEM_2"],[1,63,"CapsLock",8,"CapsLock",20,"VK_CAPITAL",e,e],[1,64,"F1",59,"F1",112,"VK_F1",e,e],[1,65,"F2",60,"F2",113,"VK_F2",e,e],[1,66,"F3",61,"F3",114,"VK_F3",e,e],[1,67,"F4",62,"F4",115,"VK_F4",e,e],[1,68,"F5",63,"F5",116,"VK_F5",e,e],[1,69,"F6",64,"F6",117,"VK_F6",e,e],[1,70,"F7",65,"F7",118,"VK_F7",e,e],[1,71,"F8",66,"F8",119,"VK_F8",e,e],[1,72,"F9",67,"F9",120,"VK_F9",e,e],[1,73,"F10",68,"F10",121,"VK_F10",e,e],[1,74,"F11",69,"F11",122,"VK_F11",e,e],[1,75,"F12",70,"F12",123,"VK_F12",e,e],[1,76,"PrintScreen",0,e,0,e,e,e],[1,77,"ScrollLock",84,"ScrollLock",145,"VK_SCROLL",e,e],[1,78,"Pause",7,"PauseBreak",19,"VK_PAUSE",e,e],[1,79,"Insert",19,"Insert",45,"VK_INSERT",e,e],[1,80,"Home",14,"Home",36,"VK_HOME",e,e],[1,81,"PageUp",11,"PageUp",33,"VK_PRIOR",e,e],[1,82,"Delete",20,"Delete",46,"VK_DELETE",e,e],[1,83,"End",13,"End",35,"VK_END",e,e],[1,84,"PageDown",12,"PageDown",34,"VK_NEXT",e,e],[1,85,"ArrowRight",17,"RightArrow",39,"VK_RIGHT","Right",e],[1,86,"ArrowLeft",15,"LeftArrow",37,"VK_LEFT","Left",e],[1,87,"ArrowDown",18,"DownArrow",40,"VK_DOWN","Down",e],[1,88,"ArrowUp",16,"UpArrow",38,"VK_UP","Up",e],[1,89,"NumLock",83,"NumLock",144,"VK_NUMLOCK",e,e],[1,90,"NumpadDivide",113,"NumPad_Divide",111,"VK_DIVIDE",e,e],[1,91,"NumpadMultiply",108,"NumPad_Multiply",106,"VK_MULTIPLY",e,e],[1,92,"NumpadSubtract",111,"NumPad_Subtract",109,"VK_SUBTRACT",e,e],[1,93,"NumpadAdd",109,"NumPad_Add",107,"VK_ADD",e,e],[1,94,"NumpadEnter",3,e,0,e,e,e],[1,95,"Numpad1",99,"NumPad1",97,"VK_NUMPAD1",e,e],[1,96,"Numpad2",100,"NumPad2",98,"VK_NUMPAD2",e,e],[1,97,"Numpad3",101,"NumPad3",99,"VK_NUMPAD3",e,e],[1,98,"Numpad4",102,"NumPad4",100,"VK_NUMPAD4",e,e],[1,99,"Numpad5",103,"NumPad5",101,"VK_NUMPAD5",e,e],[1,100,"Numpad6",104,"NumPad6",102,"VK_NUMPAD6",e,e],[1,101,"Numpad7",105,"NumPad7",103,"VK_NUMPAD7",e,e],[1,102,"Numpad8",106,"NumPad8",104,"VK_NUMPAD8",e,e],[1,103,"Numpad9",107,"NumPad9",105,"VK_NUMPAD9",e,e],[1,104,"Numpad0",98,"NumPad0",96,"VK_NUMPAD0",e,e],[1,105,"NumpadDecimal",112,"NumPad_Decimal",110,"VK_DECIMAL",e,e],[0,106,"IntlBackslash",97,"OEM_102",226,"VK_OEM_102",e,e],[1,107,"ContextMenu",58,"ContextMenu",93,e,e,e],[1,108,"Power",0,e,0,e,e,e],[1,109,"NumpadEqual",0,e,0,e,e,e],[1,110,"F13",71,"F13",124,"VK_F13",e,e],[1,111,"F14",72,"F14",125,"VK_F14",e,e],[1,112,"F15",73,"F15",126,"VK_F15",e,e],[1,113,"F16",74,"F16",127,"VK_F16",e,e],[1,114,"F17",75,"F17",128,"VK_F17",e,e],[1,115,"F18",76,"F18",129,"VK_F18",e,e],[1,116,"F19",77,"F19",130,"VK_F19",e,e],[1,117,"F20",78,"F20",131,"VK_F20",e,e],[1,118,"F21",79,"F21",132,"VK_F21",e,e],[1,119,"F22",80,"F22",133,"VK_F22",e,e],[1,120,"F23",81,"F23",134,"VK_F23",e,e],[1,121,"F24",82,"F24",135,"VK_F24",e,e],[1,122,"Open",0,e,0,e,e,e],[1,123,"Help",0,e,0,e,e,e],[1,124,"Select",0,e,0,e,e,e],[1,125,"Again",0,e,0,e,e,e],[1,126,"Undo",0,e,0,e,e,e],[1,127,"Cut",0,e,0,e,e,e],[1,128,"Copy",0,e,0,e,e,e],[1,129,"Paste",0,e,0,e,e,e],[1,130,"Find",0,e,0,e,e,e],[1,131,"AudioVolumeMute",117,"AudioVolumeMute",173,"VK_VOLUME_MUTE",e,e],[1,132,"AudioVolumeUp",118,"AudioVolumeUp",175,"VK_VOLUME_UP",e,e],[1,133,"AudioVolumeDown",119,"AudioVolumeDown",174,"VK_VOLUME_DOWN",e,e],[1,134,"NumpadComma",110,"NumPad_Separator",108,"VK_SEPARATOR",e,e],[0,135,"IntlRo",115,"ABNT_C1",193,"VK_ABNT_C1",e,e],[1,136,"KanaMode",0,e,0,e,e,e],[0,137,"IntlYen",0,e,0,e,e,e],[1,138,"Convert",0,e,0,e,e,e],[1,139,"NonConvert",0,e,0,e,e,e],[1,140,"Lang1",0,e,0,e,e,e],[1,141,"Lang2",0,e,0,e,e,e],[1,142,"Lang3",0,e,0,e,e,e],[1,143,"Lang4",0,e,0,e,e,e],[1,144,"Lang5",0,e,0,e,e,e],[1,145,"Abort",0,e,0,e,e,e],[1,146,"Props",0,e,0,e,e,e],[1,147,"NumpadParenLeft",0,e,0,e,e,e],[1,148,"NumpadParenRight",0,e,0,e,e,e],[1,149,"NumpadBackspace",0,e,0,e,e,e],[1,150,"NumpadMemoryStore",0,e,0,e,e,e],[1,151,"NumpadMemoryRecall",0,e,0,e,e,e],[1,152,"NumpadMemoryClear",0,e,0,e,e,e],[1,153,"NumpadMemoryAdd",0,e,0,e,e,e],[1,154,"NumpadMemorySubtract",0,e,0,e,e,e],[1,155,"NumpadClear",131,"Clear",12,"VK_CLEAR",e,e],[1,156,"NumpadClearEntry",0,e,0,e,e,e],[1,0,e,5,"Ctrl",17,"VK_CONTROL",e,e],[1,0,e,4,"Shift",16,"VK_SHIFT",e,e],[1,0,e,6,"Alt",18,"VK_MENU",e,e],[1,0,e,57,"Meta",91,"VK_COMMAND",e,e],[1,157,"ControlLeft",5,e,0,"VK_LCONTROL",e,e],[1,158,"ShiftLeft",4,e,0,"VK_LSHIFT",e,e],[1,159,"AltLeft",6,e,0,"VK_LMENU",e,e],[1,160,"MetaLeft",57,e,0,"VK_LWIN",e,e],[1,161,"ControlRight",5,e,0,"VK_RCONTROL",e,e],[1,162,"ShiftRight",4,e,0,"VK_RSHIFT",e,e],[1,163,"AltRight",6,e,0,"VK_RMENU",e,e],[1,164,"MetaRight",57,e,0,"VK_RWIN",e,e],[1,165,"BrightnessUp",0,e,0,e,e,e],[1,166,"BrightnessDown",0,e,0,e,e,e],[1,167,"MediaPlay",0,e,0,e,e,e],[1,168,"MediaRecord",0,e,0,e,e,e],[1,169,"MediaFastForward",0,e,0,e,e,e],[1,170,"MediaRewind",0,e,0,e,e,e],[1,171,"MediaTrackNext",124,"MediaTrackNext",176,"VK_MEDIA_NEXT_TRACK",e,e],[1,172,"MediaTrackPrevious",125,"MediaTrackPrevious",177,"VK_MEDIA_PREV_TRACK",e,e],[1,173,"MediaStop",126,"MediaStop",178,"VK_MEDIA_STOP",e,e],[1,174,"Eject",0,e,0,e,e,e],[1,175,"MediaPlayPause",127,"MediaPlayPause",179,"VK_MEDIA_PLAY_PAUSE",e,e],[1,176,"MediaSelect",128,"LaunchMediaPlayer",181,"VK_MEDIA_LAUNCH_MEDIA_SELECT",e,e],[1,177,"LaunchMail",129,"LaunchMail",180,"VK_MEDIA_LAUNCH_MAIL",e,e],[1,178,"LaunchApp2",130,"LaunchApp2",183,"VK_MEDIA_LAUNCH_APP2",e,e],[1,179,"LaunchApp1",0,e,0,"VK_MEDIA_LAUNCH_APP1",e,e],[1,180,"SelectTask",0,e,0,e,e,e],[1,181,"LaunchScreenSaver",0,e,0,e,e,e],[1,182,"BrowserSearch",120,"BrowserSearch",170,"VK_BROWSER_SEARCH",e,e],[1,183,"BrowserHome",121,"BrowserHome",172,"VK_BROWSER_HOME",e,e],[1,184,"BrowserBack",122,"BrowserBack",166,"VK_BROWSER_BACK",e,e],[1,185,"BrowserForward",123,"BrowserForward",167,"VK_BROWSER_FORWARD",e,e],[1,186,"BrowserStop",0,e,0,"VK_BROWSER_STOP",e,e],[1,187,"BrowserRefresh",0,e,0,"VK_BROWSER_REFRESH",e,e],[1,188,"BrowserFavorites",0,e,0,"VK_BROWSER_FAVORITES",e,e],[1,189,"ZoomToggle",0,e,0,e,e,e],[1,190,"MailReply",0,e,0,e,e,e],[1,191,"MailForward",0,e,0,e,e,e],[1,192,"MailSend",0,e,0,e,e,e],[1,0,e,114,"KeyInComposition",229,e,e,e],[1,0,e,116,"ABNT_C2",194,"VK_ABNT_C2",e,e],[1,0,e,96,"OEM_8",223,"VK_OEM_8",e,e],[1,0,e,0,e,0,"VK_KANA",e,e],[1,0,e,0,e,0,"VK_HANGUL",e,e],[1,0,e,0,e,0,"VK_JUNJA",e,e],[1,0,e,0,e,0,"VK_FINAL",e,e],[1,0,e,0,e,0,"VK_HANJA",e,e],[1,0,e,0,e,0,"VK_KANJI",e,e],[1,0,e,0,e,0,"VK_CONVERT",e,e],[1,0,e,0,e,0,"VK_NONCONVERT",e,e],[1,0,e,0,e,0,"VK_ACCEPT",e,e],[1,0,e,0,e,0,"VK_MODECHANGE",e,e],[1,0,e,0,e,0,"VK_SELECT",e,e],[1,0,e,0,e,0,"VK_PRINT",e,e],[1,0,e,0,e,0,"VK_EXECUTE",e,e],[1,0,e,0,e,0,"VK_SNAPSHOT",e,e],[1,0,e,0,e,0,"VK_HELP",e,e],[1,0,e,0,e,0,"VK_APPS",e,e],[1,0,e,0,e,0,"VK_PROCESSKEY",e,e],[1,0,e,0,e,0,"VK_PACKET",e,e],[1,0,e,0,e,0,"VK_DBE_SBCSCHAR",e,e],[1,0,e,0,e,0,"VK_DBE_DBCSCHAR",e,e],[1,0,e,0,e,0,"VK_ATTN",e,e],[1,0,e,0,e,0,"VK_CRSEL",e,e],[1,0,e,0,e,0,"VK_EXSEL",e,e],[1,0,e,0,e,0,"VK_EREOF",e,e],[1,0,e,0,e,0,"VK_PLAY",e,e],[1,0,e,0,e,0,"VK_ZOOM",e,e],[1,0,e,0,e,0,"VK_NONAME",e,e],[1,0,e,0,e,0,"VK_PA1",e,e],[1,0,e,0,e,0,"VK_OEM_CLEAR",e,e]],t=[],r=[];for(const o of n){const[e,n,i,a,s,l,c,d,u]=o;if(r[n]||(r[n]=!0,Je[i]=n,Xe[i.toLowerCase()]=n),!t[a]){if(t[a]=!0,!s)throw new Error(`String representation missing for key code ${a} around scan code ${i}`);Ue.define(a,s),He.define(a,d||s),Ke.define(a,u||d||s)}l&&(qe[l]=a)}}(),function(e){e.toString=function(e){return Ue.keyCodeToStr(e)},e.fromString=function(e){return Ue.strToKeyCode(e)},e.toUserSettingsUS=function(e){return He.keyCodeToStr(e)},e.toUserSettingsGeneral=function(e){return Ke.keyCodeToStr(e)},e.fromUserSettings=function(e){return He.strToKeyCode(e)||Ke.strToKeyCode(e)},e.toElectronAccelerator=function(e){if(e>=98&&e<=113)return null;switch(e){case 16:return"Up";case 18:return"Down";case 15:return"Left";case 17:return"Right"}return Ue.keyCodeToStr(e)}}(Ye||(Ye={}));var $e={};let Qe;const Ze=globalThis.vscode;if(void 0!==Ze&&void 0!==Ze.process){const e=Ze.process;Qe={get platform(){return e.platform},get arch(){return e.arch},get env(){return e.env},cwd:()=>e.cwd()}}else Qe="undefined"!=typeof process&&"string"==typeof process?.versions?.node?{get platform(){return process.platform},get arch(){return process.arch},get env(){return $e},cwd:()=>$e.VSCODE_CWD||process.cwd()}:{get platform(){return K?"win32":q?"darwin":"linux"},get arch(){},get env(){return{}},cwd:()=>"/"};const en=Qe.cwd,nn=Qe.env,tn=Qe.platform,rn=46,on=47,an=92,sn=58;class ln extends Error{constructor(e,n,t){let r;"string"==typeof n&&0===n.indexOf("not ")?(r="must not be",n=n.replace(/^not /,"")):r="must be";const o=-1!==e.indexOf(".")?"property":"argument";let i=`The "${e}" ${o} ${r} of type ${n}`;i+=". Received type "+typeof t,super(i),this.code="ERR_INVALID_ARG_TYPE"}}function cn(e,n){if("string"!=typeof e)throw new ln(n,"string",e)}const dn="win32"===tn;function un(e){return e===on||e===an}function pn(e){return e===on}function fn(e){return e>=65&&e<=90||e>=97&&e<=122}function mn(e,n,t,r){let o="",i=0,a=-1,s=0,l=0;for(let c=0;c<=e.length;++c){if(c<e.length)l=e.charCodeAt(c);else{if(r(l))break;l=on}if(r(l)){if(a===c-1||1===s);else if(2===s){if(o.length<2||2!==i||o.charCodeAt(o.length-1)!==rn||o.charCodeAt(o.length-2)!==rn){if(o.length>2){const e=o.lastIndexOf(t);-1===e?(o="",i=0):(o=o.slice(0,e),i=o.length-1-o.lastIndexOf(t)),a=c,s=0;continue}if(0!==o.length){o="",i=0,a=c,s=0;continue}}n&&(o+=o.length>0?`${t}..`:"..",i=2)}else o.length>0?o+=`${t}${e.slice(a+1,c)}`:o=e.slice(a+1,c),i=c-a-1;a=c,s=0}else l===rn&&-1!==s?++s:s=-1}return o}function hn(e,n){!function(e,n){if(null===e||"object"!=typeof e)throw new ln(n,"Object",e)}(n,"pathObject");const t=n.dir||n.root,r=n.base||`${n.name||""}${o=n.ext,o?`${"."===o[0]?"":"."}${o}`:""}`;var o;return t?t===n.root?`${t}${r}`:`${t}${e}${r}`:r}const _n={resolve(...e){let n="",t="",r=!1;for(let o=e.length-1;o>=-1;o--){let i;if(o>=0){if(i=e[o],cn(i,`paths[${o}]`),0===i.length)continue}else 0===n.length?i=en():(i=nn[`=${n}`]||en(),(void 0===i||i.slice(0,2).toLowerCase()!==n.toLowerCase()&&i.charCodeAt(2)===an)&&(i=`${n}\\`));const a=i.length;let s=0,l="",c=!1;const d=i.charCodeAt(0);if(1===a)un(d)&&(s=1,c=!0);else if(un(d))if(c=!0,un(i.charCodeAt(1))){let e=2,n=e;for(;e<a&&!un(i.charCodeAt(e));)e++;if(e<a&&e!==n){const t=i.slice(n,e);for(n=e;e<a&&un(i.charCodeAt(e));)e++;if(e<a&&e!==n){for(n=e;e<a&&!un(i.charCodeAt(e));)e++;e!==a&&e===n||(l=`\\\\${t}\\${i.slice(n,e)}`,s=e)}}}else s=1;else fn(d)&&i.charCodeAt(1)===sn&&(l=i.slice(0,2),s=2,a>2&&un(i.charCodeAt(2))&&(c=!0,s=3));if(l.length>0)if(n.length>0){if(l.toLowerCase()!==n.toLowerCase())continue}else n=l;if(r){if(n.length>0)break}else if(t=`${i.slice(s)}\\${t}`,r=c,c&&n.length>0)break}return t=mn(t,!r,"\\",un),r?`${n}\\${t}`:`${n}${t}`||"."},normalize(e){cn(e,"path");const n=e.length;if(0===n)return".";let t,r=0,o=!1;const i=e.charCodeAt(0);if(1===n)return pn(i)?"\\":e;if(un(i))if(o=!0,un(e.charCodeAt(1))){let o=2,i=o;for(;o<n&&!un(e.charCodeAt(o));)o++;if(o<n&&o!==i){const a=e.slice(i,o);for(i=o;o<n&&un(e.charCodeAt(o));)o++;if(o<n&&o!==i){for(i=o;o<n&&!un(e.charCodeAt(o));)o++;if(o===n)return`\\\\${a}\\${e.slice(i)}\\`;o!==i&&(t=`\\\\${a}\\${e.slice(i,o)}`,r=o)}}}else r=1;else fn(i)&&e.charCodeAt(1)===sn&&(t=e.slice(0,2),r=2,n>2&&un(e.charCodeAt(2))&&(o=!0,r=3));let a=r<n?mn(e.slice(r),!o,"\\",un):"";if(0!==a.length||o||(a="."),a.length>0&&un(e.charCodeAt(n-1))&&(a+="\\"),!o&&void 0===t&&e.includes(":")){if(a.length>=2&&fn(a.charCodeAt(0))&&a.charCodeAt(1)===sn)return`.\\${a}`;let t=e.indexOf(":");do{if(t===n-1||un(e.charCodeAt(t+1)))return`.\\${a}`}while(-1!==(t=e.indexOf(":",t+1)))}return void 0===t?o?`\\${a}`:a:o?`${t}\\${a}`:`${t}${a}`},isAbsolute(e){cn(e,"path");const n=e.length;if(0===n)return!1;const t=e.charCodeAt(0);return un(t)||n>2&&fn(t)&&e.charCodeAt(1)===sn&&un(e.charCodeAt(2))},join(...e){if(0===e.length)return".";let n,t;for(let i=0;i<e.length;++i){const r=e[i];cn(r,"path"),r.length>0&&(void 0===n?n=t=r:n+=`\\${r}`)}if(void 0===n)return".";let r=!0,o=0;if("string"==typeof t&&un(t.charCodeAt(0))){++o;const e=t.length;e>1&&un(t.charCodeAt(1))&&(++o,e>2&&(un(t.charCodeAt(2))?++o:r=!1))}if(r){for(;o<n.length&&un(n.charCodeAt(o));)o++;o>=2&&(n=`\\${n.slice(o)}`)}return _n.normalize(n)},relative(e,n){if(cn(e,"from"),cn(n,"to"),e===n)return"";const t=_n.resolve(e),r=_n.resolve(n);if(t===r)return"";if((e=t.toLowerCase())===(n=r.toLowerCase()))return"";if(t.length!==e.length||r.length!==n.length){const e=t.split("\\"),n=r.split("\\");""===e[e.length-1]&&e.pop(),""===n[n.length-1]&&n.pop();const o=e.length,i=n.length,a=o<i?o:i;let s;for(s=0;s<a&&e[s].toLowerCase()===n[s].toLowerCase();s++);return 0===s?r:s===a?i>a?n.slice(s).join("\\"):o>a?"..\\".repeat(o-1-s)+"..":"":"..\\".repeat(o-s)+n.slice(s).join("\\")}let o=0;for(;o<e.length&&e.charCodeAt(o)===an;)o++;let i=e.length;for(;i-1>o&&e.charCodeAt(i-1)===an;)i--;const a=i-o;let s=0;for(;s<n.length&&n.charCodeAt(s)===an;)s++;let l=n.length;for(;l-1>s&&n.charCodeAt(l-1)===an;)l--;const c=l-s,d=a<c?a:c;let u=-1,p=0;for(;p<d;p++){const t=e.charCodeAt(o+p);if(t!==n.charCodeAt(s+p))break;t===an&&(u=p)}if(p!==d){if(-1===u)return r}else{if(c>d){if(n.charCodeAt(s+p)===an)return r.slice(s+p+1);if(2===p)return r.slice(s+p)}a>d&&(e.charCodeAt(o+p)===an?u=p:2===p&&(u=3)),-1===u&&(u=0)}let f="";for(p=o+u+1;p<=i;++p)p!==i&&e.charCodeAt(p)!==an||(f+=0===f.length?"..":"\\..");return s+=u,f.length>0?`${f}${r.slice(s,l)}`:(r.charCodeAt(s)===an&&++s,r.slice(s,l))},toNamespacedPath(e){if("string"!=typeof e||0===e.length)return e;const n=_n.resolve(e);if(n.length<=2)return e;if(n.charCodeAt(0)===an){if(n.charCodeAt(1)===an){const e=n.charCodeAt(2);if(63!==e&&e!==rn)return`\\\\?\\UNC\\${n.slice(2)}`}}else if(fn(n.charCodeAt(0))&&n.charCodeAt(1)===sn&&n.charCodeAt(2)===an)return`\\\\?\\${n}`;return n},dirname(e){cn(e,"path");const n=e.length;if(0===n)return".";let t=-1,r=0;const o=e.charCodeAt(0);if(1===n)return un(o)?e:".";if(un(o)){if(t=r=1,un(e.charCodeAt(1))){let o=2,i=o;for(;o<n&&!un(e.charCodeAt(o));)o++;if(o<n&&o!==i){for(i=o;o<n&&un(e.charCodeAt(o));)o++;if(o<n&&o!==i){for(i=o;o<n&&!un(e.charCodeAt(o));)o++;if(o===n)return e;o!==i&&(t=r=o+1)}}}}else fn(o)&&e.charCodeAt(1)===sn&&(t=n>2&&un(e.charCodeAt(2))?3:2,r=t);let i=-1,a=!0;for(let s=n-1;s>=r;--s)if(un(e.charCodeAt(s))){if(!a){i=s;break}}else a=!1;if(-1===i){if(-1===t)return".";i=t}return e.slice(0,i)},basename(e,n){void 0!==n&&cn(n,"suffix"),cn(e,"path");let t,r=0,o=-1,i=!0;if(e.length>=2&&fn(e.charCodeAt(0))&&e.charCodeAt(1)===sn&&(r=2),void 0!==n&&n.length>0&&n.length<=e.length){if(n===e)return"";let a=n.length-1,s=-1;for(t=e.length-1;t>=r;--t){const l=e.charCodeAt(t);if(un(l)){if(!i){r=t+1;break}}else-1===s&&(i=!1,s=t+1),a>=0&&(l===n.charCodeAt(a)?-1===--a&&(o=t):(a=-1,o=s))}return r===o?o=s:-1===o&&(o=e.length),e.slice(r,o)}for(t=e.length-1;t>=r;--t)if(un(e.charCodeAt(t))){if(!i){r=t+1;break}}else-1===o&&(i=!1,o=t+1);return-1===o?"":e.slice(r,o)},extname(e){cn(e,"path");let n=0,t=-1,r=0,o=-1,i=!0,a=0;e.length>=2&&e.charCodeAt(1)===sn&&fn(e.charCodeAt(0))&&(n=r=2);for(let s=e.length-1;s>=n;--s){const n=e.charCodeAt(s);if(un(n)){if(!i){r=s+1;break}}else-1===o&&(i=!1,o=s+1),n===rn?-1===t?t=s:1!==a&&(a=1):-1!==t&&(a=-1)}return-1===t||-1===o||0===a||1===a&&t===o-1&&t===r+1?"":e.slice(t,o)},format:hn.bind(null,"\\"),parse(e){cn(e,"path");const n={root:"",dir:"",base:"",ext:"",name:""};if(0===e.length)return n;const t=e.length;let r=0,o=e.charCodeAt(0);if(1===t)return un(o)?(n.root=n.dir=e,n):(n.base=n.name=e,n);if(un(o)){if(r=1,un(e.charCodeAt(1))){let n=2,o=n;for(;n<t&&!un(e.charCodeAt(n));)n++;if(n<t&&n!==o){for(o=n;n<t&&un(e.charCodeAt(n));)n++;if(n<t&&n!==o){for(o=n;n<t&&!un(e.charCodeAt(n));)n++;n===t?r=n:n!==o&&(r=n+1)}}}}else if(fn(o)&&e.charCodeAt(1)===sn){if(t<=2)return n.root=n.dir=e,n;if(r=2,un(e.charCodeAt(2))){if(3===t)return n.root=n.dir=e,n;r=3}}r>0&&(n.root=e.slice(0,r));let i=-1,a=r,s=-1,l=!0,c=e.length-1,d=0;for(;c>=r;--c)if(o=e.charCodeAt(c),un(o)){if(!l){a=c+1;break}}else-1===s&&(l=!1,s=c+1),o===rn?-1===i?i=c:1!==d&&(d=1):-1!==i&&(d=-1);return-1!==s&&(-1===i||0===d||1===d&&i===s-1&&i===a+1?n.base=n.name=e.slice(a,s):(n.name=e.slice(a,i),n.base=e.slice(a,s),n.ext=e.slice(i,s))),n.dir=a>0&&a!==r?e.slice(0,a-1):n.root,n},sep:"\\",delimiter:";",win32:null,posix:null},gn=(()=>{if(dn){const e=/\\/g;return()=>{const n=en().replace(e,"/");return n.slice(n.indexOf("/"))}}return()=>en()})(),yn={resolve(...e){let n="",t=!1;for(let r=e.length-1;r>=0&&!t;r--){const o=e[r];cn(o,`paths[${r}]`),0!==o.length&&(n=`${o}/${n}`,t=o.charCodeAt(0)===on)}if(!t){const e=gn();n=`${e}/${n}`,t=e.charCodeAt(0)===on}return n=mn(n,!t,"/",pn),t?`/${n}`:n.length>0?n:"."},normalize(e){if(cn(e,"path"),0===e.length)return".";const n=e.charCodeAt(0)===on,t=e.charCodeAt(e.length-1)===on;return 0===(e=mn(e,!n,"/",pn)).length?n?"/":t?"./":".":(t&&(e+="/"),n?`/${e}`:e)},isAbsolute:e=>(cn(e,"path"),e.length>0&&e.charCodeAt(0)===on),join(...e){if(0===e.length)return".";const n=[];for(let t=0;t<e.length;++t){const r=e[t];cn(r,"path"),r.length>0&&n.push(r)}return 0===n.length?".":yn.normalize(n.join("/"))},relative(e,n){if(cn(e,"from"),cn(n,"to"),e===n)return"";if((e=yn.resolve(e))===(n=yn.resolve(n)))return"";const t=e.length,r=t-1,o=n.length-1,i=r<o?r:o;let a=-1,s=0;for(;s<i;s++){const t=e.charCodeAt(1+s);if(t!==n.charCodeAt(1+s))break;t===on&&(a=s)}if(s===i)if(o>i){if(n.charCodeAt(1+s)===on)return n.slice(1+s+1);if(0===s)return n.slice(1+s)}else r>i&&(e.charCodeAt(1+s)===on?a=s:0===s&&(a=0));let l="";for(s=1+a+1;s<=t;++s)s!==t&&e.charCodeAt(s)!==on||(l+=0===l.length?"..":"/..");return`${l}${n.slice(1+a)}`},toNamespacedPath:e=>e,dirname(e){if(cn(e,"path"),0===e.length)return".";const n=e.charCodeAt(0)===on;let t=-1,r=!0;for(let o=e.length-1;o>=1;--o)if(e.charCodeAt(o)===on){if(!r){t=o;break}}else r=!1;return-1===t?n?"/":".":n&&1===t?"//":e.slice(0,t)},basename(e,n){void 0!==n&&cn(n,"suffix"),cn(e,"path");let t,r=0,o=-1,i=!0;if(void 0!==n&&n.length>0&&n.length<=e.length){if(n===e)return"";let a=n.length-1,s=-1;for(t=e.length-1;t>=0;--t){const l=e.charCodeAt(t);if(l===on){if(!i){r=t+1;break}}else-1===s&&(i=!1,s=t+1),a>=0&&(l===n.charCodeAt(a)?-1===--a&&(o=t):(a=-1,o=s))}return r===o?o=s:-1===o&&(o=e.length),e.slice(r,o)}for(t=e.length-1;t>=0;--t)if(e.charCodeAt(t)===on){if(!i){r=t+1;break}}else-1===o&&(i=!1,o=t+1);return-1===o?"":e.slice(r,o)},extname(e){cn(e,"path");let n=-1,t=0,r=-1,o=!0,i=0;for(let a=e.length-1;a>=0;--a){const s=e[a];if("/"!==s)-1===r&&(o=!1,r=a+1),"."===s?-1===n?n=a:1!==i&&(i=1):-1!==n&&(i=-1);else if(!o){t=a+1;break}}return-1===n||-1===r||0===i||1===i&&n===r-1&&n===t+1?"":e.slice(n,r)},format:hn.bind(null,"/"),parse(e){cn(e,"path");const n={root:"",dir:"",base:"",ext:"",name:""};if(0===e.length)return n;const t=e.charCodeAt(0)===on;let r;t?(n.root="/",r=1):r=0;let o=-1,i=0,a=-1,s=!0,l=e.length-1,c=0;for(;l>=r;--l){const n=e.charCodeAt(l);if(n!==on)-1===a&&(s=!1,a=l+1),n===rn?-1===o?o=l:1!==c&&(c=1):-1!==o&&(c=-1);else if(!s){i=l+1;break}}if(-1!==a){const r=0===i&&t?1:i;-1===o||0===c||1===c&&o===a-1&&o===i+1?n.base=n.name=e.slice(r,a):(n.name=e.slice(r,o),n.base=e.slice(r,a),n.ext=e.slice(o,a))}return i>0?n.dir=e.slice(0,i-1):t&&(n.dir="/"),n},sep:"/",delimiter:":",win32:null,posix:null};yn.win32=_n.win32=_n,yn.posix=_n.posix=yn,dn?_n.normalize:yn.normalize,dn?_n.resolve:yn.resolve,dn?_n.relative:yn.relative,dn?_n.dirname:yn.dirname,dn?_n.basename:yn.basename,dn?_n.extname:yn.extname,dn?_n.sep:yn.sep;const vn=/^\w[\w\d+.-]*$/,bn=/^\//,Tn=/^\/\//;const Sn="",En="/",An=/^(([^:/?#]+?):)?(\/\/([^/?#]*))?([^?#]*)(\?([^#]*))?(#(.*))?/;class xn{static isUri(e){return e instanceof xn||!(!e||"object"!=typeof e)&&("string"==typeof e.authority&&"string"==typeof e.fragment&&"string"==typeof e.path&&"string"==typeof e.query&&"string"==typeof e.scheme&&"string"==typeof e.fsPath&&"function"==typeof e.with&&"function"==typeof e.toString)}constructor(e,n,t,r,o,i=!1){"object"==typeof e?(this.scheme=e.scheme||Sn,this.authority=e.authority||Sn,this.path=e.path||Sn,this.query=e.query||Sn,this.fragment=e.fragment||Sn):(this.scheme=function(e,n){return e||n?e:"file"}(e,i),this.authority=n||Sn,this.path=function(e,n){switch(e){case"https":case"http":case"file":n?n[0]!==En&&(n=En+n):n=En}return n}(this.scheme,t||Sn),this.query=r||Sn,this.fragment=o||Sn,function(e,n){if(!e.scheme&&n)throw new Error(`[UriError]: Scheme is missing: {scheme: "", authority: "${e.authority}", path: "${e.path}", query: "${e.query}", fragment: "${e.fragment}"}`);if(e.scheme&&!vn.test(e.scheme))throw new Error("[UriError]: Scheme contains illegal characters.");if(e.path)if(e.authority){if(!bn.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(Tn.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))}get fsPath(){return Mn(this,!1)}with(e){if(!e)return this;let{scheme:n,authority:t,path:r,query:o,fragment:i}=e;return void 0===n?n=this.scheme:null===n&&(n=Sn),void 0===t?t=this.authority:null===t&&(t=Sn),void 0===r?r=this.path:null===r&&(r=Sn),void 0===o?o=this.query:null===o&&(o=Sn),void 0===i?i=this.fragment:null===i&&(i=Sn),n===this.scheme&&t===this.authority&&r===this.path&&o===this.query&&i===this.fragment?this:new In(n,t,r,o,i)}static parse(e,n=!1){const t=An.exec(e);return t?new In(t[2]||Sn,wn(t[4]||Sn),wn(t[5]||Sn),wn(t[7]||Sn),wn(t[9]||Sn),n):new In(Sn,Sn,Sn,Sn,Sn)}static file(e){let n=Sn;if(K&&(e=e.replace(/\\/g,En)),e[0]===En&&e[1]===En){const t=e.indexOf(En,2);-1===t?(n=e.substring(2),e=En):(n=e.substring(2,t),e=e.substring(t)||En)}return new In("file",n,e,Sn,Sn)}static from(e,n){return new In(e.scheme,e.authority,e.path,e.query,e.fragment,n)}static joinPath(e,...n){if(!e.path)throw new Error("[UriError]: cannot call joinPath on URI without path");let t;return t=K&&"file"===e.scheme?xn.file(_n.join(Mn(e,!0),...n)).path:yn.join(e.path,...n),e.with({path:t})}toString(e=!1){return Pn(this,e)}toJSON(){return this}static revive(e){if(e){if(e instanceof xn)return e;{const n=new In(e);return n._formatted=e.external??null,n._fsPath=e._sep===Rn?e.fsPath??null:null,n}}return e}}const Rn=K?1:void 0;class In extends xn{constructor(){super(...arguments),this._formatted=null,this._fsPath=null}get fsPath(){return this._fsPath||(this._fsPath=Mn(this,!1)),this._fsPath}toString(e=!1){return e?Pn(this,!0):(this._formatted||(this._formatted=Pn(this,!1)),this._formatted)}toJSON(){const e={$mid:1};return this._fsPath&&(e.fsPath=this._fsPath,e._sep=Rn),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}}const Dn={58:"%3A",47:"%2F",63:"%3F",35:"%23",91:"%5B",93:"%5D",64:"%40",33:"%21",36:"%24",38:"%26",39:"%27",40:"%28",41:"%29",42:"%2A",43:"%2B",44:"%2C",59:"%3B",61:"%3D",32:"%20"};function Cn(e,n,t){let r,o=-1;for(let i=0;i<e.length;i++){const a=e.charCodeAt(i);if(a>=97&&a<=122||a>=65&&a<=90||a>=48&&a<=57||45===a||46===a||95===a||126===a||n&&47===a||t&&91===a||t&&93===a||t&&58===a)-1!==o&&(r+=encodeURIComponent(e.substring(o,i)),o=-1),void 0!==r&&(r+=e.charAt(i));else{void 0===r&&(r=e.substr(0,i));const n=Dn[a];void 0!==n?(-1!==o&&(r+=encodeURIComponent(e.substring(o,i)),o=-1),r+=n):-1===o&&(o=i)}}return-1!==o&&(r+=encodeURIComponent(e.substring(o))),void 0!==r?r:e}function Nn(e){let n;for(let t=0;t<e.length;t++){const r=e.charCodeAt(t);35===r||63===r?(void 0===n&&(n=e.substr(0,t)),n+=Dn[r]):void 0!==n&&(n+=e[t])}return void 0!==n?n:e}function Mn(e,n){let t;return t=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)?n?e.path.substr(1):e.path[1].toLowerCase()+e.path.substr(2):e.path,K&&(t=t.replace(/\//g,"\\")),t}function Pn(e,n){const t=n?Nn:Cn;let r="",{scheme:o,authority:i,path:a,query:s,fragment:l}=e;if(o&&(r+=o,r+=":"),(i||"file"===o)&&(r+=En,r+=En),i){let e=i.indexOf("@");if(-1!==e){const n=i.substr(0,e);i=i.substr(e+1),e=n.lastIndexOf(":"),-1===e?r+=t(n,!1,!1):(r+=t(n.substr(0,e),!1,!1),r+=":",r+=t(n.substr(e+1),!1,!0)),r+="@"}i=i.toLowerCase(),e=i.lastIndexOf(":"),-1===e?r+=t(i,!1,!0):(r+=t(i.substr(0,e),!1,!0),r+=i.substr(e))}if(a){if(a.length>=3&&47===a.charCodeAt(0)&&58===a.charCodeAt(2)){const e=a.charCodeAt(1);e>=65&&e<=90&&(a=`/${String.fromCharCode(e+32)}:${a.substr(3)}`)}else if(a.length>=2&&58===a.charCodeAt(1)){const e=a.charCodeAt(0);e>=65&&e<=90&&(a=`${String.fromCharCode(e+32)}:${a.substr(2)}`)}r+=t(a,!0,!1)}return s&&(r+="?",r+=t(s,!1,!1)),l&&(r+="#",r+=n?l:Cn(l,!1,!1)),r}function Ln(e){try{return decodeURIComponent(e)}catch{return e.length>3?e.substr(0,3)+Ln(e.substr(3)):e}}const kn=/(%[0-9A-Za-z][0-9A-Za-z])+/g;function wn(e){return e.match(kn)?e.replace(kn,e=>Ln(e)):e}class On extends Ce{constructor(e,n,t,r){super(e,n,t,r),this.selectionStartLineNumber=e,this.selectionStartColumn=n,this.positionLineNumber=t,this.positionColumn=r}toString(){return"["+this.selectionStartLineNumber+","+this.selectionStartColumn+" -> "+this.positionLineNumber+","+this.positionColumn+"]"}equalsSelection(e){return On.selectionsEqual(this,e)}static selectionsEqual(e,n){return e.selectionStartLineNumber===n.selectionStartLineNumber&&e.selectionStartColumn===n.selectionStartColumn&&e.positionLineNumber===n.positionLineNumber&&e.positionColumn===n.positionColumn}getDirection(){return this.selectionStartLineNumber===this.startLineNumber&&this.selectionStartColumn===this.startColumn?0:1}setEndPosition(e,n){return 0===this.getDirection()?new On(this.startLineNumber,this.startColumn,e,n):new On(e,n,this.startLineNumber,this.startColumn)}getPosition(){return new De(this.positionLineNumber,this.positionColumn)}getSelectionStart(){return new De(this.selectionStartLineNumber,this.selectionStartColumn)}setStartPosition(e,n){return 0===this.getDirection()?new On(e,n,this.endLineNumber,this.endColumn):new On(this.endLineNumber,this.endColumn,e,n)}static fromPositions(e,n=e){return new On(e.lineNumber,e.column,n.lineNumber,n.column)}static fromRange(e,n){return 0===n?new On(e.startLineNumber,e.startColumn,e.endLineNumber,e.endColumn):new On(e.endLineNumber,e.endColumn,e.startLineNumber,e.startColumn)}static liftSelection(e){return new On(e.selectionStartLineNumber,e.selectionStartColumn,e.positionLineNumber,e.positionColumn)}static selectionsArrEqual(e,n){if(e&&!n||!e&&n)return!1;if(!e&&!n)return!0;if(e.length!==n.length)return!1;for(let t=0,r=e.length;t<r;t++)if(!this.selectionsEqual(e[t],n[t]))return!1;return!0}static isISelection(e){return!!e&&"number"==typeof e.selectionStartLineNumber&&"number"==typeof e.selectionStartColumn&&"number"==typeof e.positionLineNumber&&"number"==typeof e.positionColumn}static createWithDirection(e,n,t,r,o){return 0===o?new On(e,n,t,r):new On(t,r,e,n)}}const Fn=Object.create(null);function Wn(e,n){if("string"==typeof n){const t=Fn[n];if(void 0===t)throw new Error(`${e} references an unknown codicon: ${n}`);n=t}return Fn[e]=n,{id:e}}const zn={...{add:Wn("add",6e4),plus:Wn("plus",6e4),gistNew:Wn("gist-new",6e4),repoCreate:Wn("repo-create",6e4),lightbulb:Wn("lightbulb",60001),lightBulb:Wn("light-bulb",60001),repo:Wn("repo",60002),repoDelete:Wn("repo-delete",60002),gistFork:Wn("gist-fork",60003),repoForked:Wn("repo-forked",60003),gitPullRequest:Wn("git-pull-request",60004),gitPullRequestAbandoned:Wn("git-pull-request-abandoned",60004),recordKeys:Wn("record-keys",60005),keyboard:Wn("keyboard",60005),tag:Wn("tag",60006),gitPullRequestLabel:Wn("git-pull-request-label",60006),tagAdd:Wn("tag-add",60006),tagRemove:Wn("tag-remove",60006),person:Wn("person",60007),personFollow:Wn("person-follow",60007),personOutline:Wn("person-outline",60007),personFilled:Wn("person-filled",60007),sourceControl:Wn("source-control",60008),mirror:Wn("mirror",60009),mirrorPublic:Wn("mirror-public",60009),star:Wn("star",60010),starAdd:Wn("star-add",60010),starDelete:Wn("star-delete",60010),starEmpty:Wn("star-empty",60010),comment:Wn("comment",60011),commentAdd:Wn("comment-add",60011),alert:Wn("alert",60012),warning:Wn("warning",60012),search:Wn("search",60013),searchSave:Wn("search-save",60013),logOut:Wn("log-out",60014),signOut:Wn("sign-out",60014),logIn:Wn("log-in",60015),signIn:Wn("sign-in",60015),eye:Wn("eye",60016),eyeUnwatch:Wn("eye-unwatch",60016),eyeWatch:Wn("eye-watch",60016),circleFilled:Wn("circle-filled",60017),primitiveDot:Wn("primitive-dot",60017),closeDirty:Wn("close-dirty",60017),debugBreakpoint:Wn("debug-breakpoint",60017),debugBreakpointDisabled:Wn("debug-breakpoint-disabled",60017),debugHint:Wn("debug-hint",60017),terminalDecorationSuccess:Wn("terminal-decoration-success",60017),primitiveSquare:Wn("primitive-square",60018),edit:Wn("edit",60019),pencil:Wn("pencil",60019),info:Wn("info",60020),issueOpened:Wn("issue-opened",60020),gistPrivate:Wn("gist-private",60021),gitForkPrivate:Wn("git-fork-private",60021),lock:Wn("lock",60021),mirrorPrivate:Wn("mirror-private",60021),close:Wn("close",60022),removeClose:Wn("remove-close",60022),x:Wn("x",60022),repoSync:Wn("repo-sync",60023),sync:Wn("sync",60023),clone:Wn("clone",60024),desktopDownload:Wn("desktop-download",60024),beaker:Wn("beaker",60025),microscope:Wn("microscope",60025),vm:Wn("vm",60026),deviceDesktop:Wn("device-desktop",60026),file:Wn("file",60027),more:Wn("more",60028),ellipsis:Wn("ellipsis",60028),kebabHorizontal:Wn("kebab-horizontal",60028),mailReply:Wn("mail-reply",60029),reply:Wn("reply",60029),organization:Wn("organization",60030),organizationFilled:Wn("organization-filled",60030),organizationOutline:Wn("organization-outline",60030),newFile:Wn("new-file",60031),fileAdd:Wn("file-add",60031),newFolder:Wn("new-folder",60032),fileDirectoryCreate:Wn("file-directory-create",60032),trash:Wn("trash",60033),trashcan:Wn("trashcan",60033),history:Wn("history",60034),clock:Wn("clock",60034),folder:Wn("folder",60035),fileDirectory:Wn("file-directory",60035),symbolFolder:Wn("symbol-folder",60035),logoGithub:Wn("logo-github",60036),markGithub:Wn("mark-github",60036),github:Wn("github",60036),terminal:Wn("terminal",60037),console:Wn("console",60037),repl:Wn("repl",60037),zap:Wn("zap",60038),symbolEvent:Wn("symbol-event",60038),error:Wn("error",60039),stop:Wn("stop",60039),variable:Wn("variable",60040),symbolVariable:Wn("symbol-variable",60040),array:Wn("array",60042),symbolArray:Wn("symbol-array",60042),symbolModule:Wn("symbol-module",60043),symbolPackage:Wn("symbol-package",60043),symbolNamespace:Wn("symbol-namespace",60043),symbolObject:Wn("symbol-object",60043),symbolMethod:Wn("symbol-method",60044),symbolFunction:Wn("symbol-function",60044),symbolConstructor:Wn("symbol-constructor",60044),symbolBoolean:Wn("symbol-boolean",60047),symbolNull:Wn("symbol-null",60047),symbolNumeric:Wn("symbol-numeric",60048),symbolNumber:Wn("symbol-number",60048),symbolStructure:Wn("symbol-structure",60049),symbolStruct:Wn("symbol-struct",60049),symbolParameter:Wn("symbol-parameter",60050),symbolTypeParameter:Wn("symbol-type-parameter",60050),symbolKey:Wn("symbol-key",60051),symbolText:Wn("symbol-text",60051),symbolReference:Wn("symbol-reference",60052),goToFile:Wn("go-to-file",60052),symbolEnum:Wn("symbol-enum",60053),symbolValue:Wn("symbol-value",60053),symbolRuler:Wn("symbol-ruler",60054),symbolUnit:Wn("symbol-unit",60054),activateBreakpoints:Wn("activate-breakpoints",60055),archive:Wn("archive",60056),arrowBoth:Wn("arrow-both",60057),arrowDown:Wn("arrow-down",60058),arrowLeft:Wn("arrow-left",60059),arrowRight:Wn("arrow-right",60060),arrowSmallDown:Wn("arrow-small-down",60061),arrowSmallLeft:Wn("arrow-small-left",60062),arrowSmallRight:Wn("arrow-small-right",60063),arrowSmallUp:Wn("arrow-small-up",60064),arrowUp:Wn("arrow-up",60065),bell:Wn("bell",60066),bold:Wn("bold",60067),book:Wn("book",60068),bookmark:Wn("bookmark",60069),debugBreakpointConditionalUnverified:Wn("debug-breakpoint-conditional-unverified",60070),debugBreakpointConditional:Wn("debug-breakpoint-conditional",60071),debugBreakpointConditionalDisabled:Wn("debug-breakpoint-conditional-disabled",60071),debugBreakpointDataUnverified:Wn("debug-breakpoint-data-unverified",60072),debugBreakpointData:Wn("debug-breakpoint-data",60073),debugBreakpointDataDisabled:Wn("debug-breakpoint-data-disabled",60073),debugBreakpointLogUnverified:Wn("debug-breakpoint-log-unverified",60074),debugBreakpointLog:Wn("debug-breakpoint-log",60075),debugBreakpointLogDisabled:Wn("debug-breakpoint-log-disabled",60075),briefcase:Wn("briefcase",60076),broadcast:Wn("broadcast",60077),browser:Wn("browser",60078),bug:Wn("bug",60079),calendar:Wn("calendar",60080),caseSensitive:Wn("case-sensitive",60081),check:Wn("check",60082),checklist:Wn("checklist",60083),chevronDown:Wn("chevron-down",60084),chevronLeft:Wn("chevron-left",60085),chevronRight:Wn("chevron-right",60086),chevronUp:Wn("chevron-up",60087),chromeClose:Wn("chrome-close",60088),chromeMaximize:Wn("chrome-maximize",60089),chromeMinimize:Wn("chrome-minimize",60090),chromeRestore:Wn("chrome-restore",60091),circleOutline:Wn("circle-outline",60092),circle:Wn("circle",60092),debugBreakpointUnverified:Wn("debug-breakpoint-unverified",60092),terminalDecorationIncomplete:Wn("terminal-decoration-incomplete",60092),circleSlash:Wn("circle-slash",60093),circuitBoard:Wn("circuit-board",60094),clearAll:Wn("clear-all",60095),clippy:Wn("clippy",60096),closeAll:Wn("close-all",60097),cloudDownload:Wn("cloud-download",60098),cloudUpload:Wn("cloud-upload",60099),code:Wn("code",60100),collapseAll:Wn("collapse-all",60101),colorMode:Wn("color-mode",60102),commentDiscussion:Wn("comment-discussion",60103),creditCard:Wn("credit-card",60105),dash:Wn("dash",60108),dashboard:Wn("dashboard",60109),database:Wn("database",60110),debugContinue:Wn("debug-continue",60111),debugDisconnect:Wn("debug-disconnect",60112),debugPause:Wn("debug-pause",60113),debugRestart:Wn("debug-restart",60114),debugStart:Wn("debug-start",60115),debugStepInto:Wn("debug-step-into",60116),debugStepOut:Wn("debug-step-out",60117),debugStepOver:Wn("debug-step-over",60118),debugStop:Wn("debug-stop",60119),debug:Wn("debug",60120),deviceCameraVideo:Wn("device-camera-video",60121),deviceCamera:Wn("device-camera",60122),deviceMobile:Wn("device-mobile",60123),diffAdded:Wn("diff-added",60124),diffIgnored:Wn("diff-ignored",60125),diffModified:Wn("diff-modified",60126),diffRemoved:Wn("diff-removed",60127),diffRenamed:Wn("diff-renamed",60128),diff:Wn("diff",60129),diffSidebyside:Wn("diff-sidebyside",60129),discard:Wn("discard",60130),editorLayout:Wn("editor-layout",60131),emptyWindow:Wn("empty-window",60132),exclude:Wn("exclude",60133),extensions:Wn("extensions",60134),eyeClosed:Wn("eye-closed",60135),fileBinary:Wn("file-binary",60136),fileCode:Wn("file-code",60137),fileMedia:Wn("file-media",60138),filePdf:Wn("file-pdf",60139),fileSubmodule:Wn("file-submodule",60140),fileSymlinkDirectory:Wn("file-symlink-directory",60141),fileSymlinkFile:Wn("file-symlink-file",60142),fileZip:Wn("file-zip",60143),files:Wn("files",60144),filter:Wn("filter",60145),flame:Wn("flame",60146),foldDown:Wn("fold-down",60147),foldUp:Wn("fold-up",60148),fold:Wn("fold",60149),folderActive:Wn("folder-active",60150),folderOpened:Wn("folder-opened",60151),gear:Wn("gear",60152),gift:Wn("gift",60153),gistSecret:Wn("gist-secret",60154),gist:Wn("gist",60155),gitCommit:Wn("git-commit",60156),gitCompare:Wn("git-compare",60157),compareChanges:Wn("compare-changes",60157),gitMerge:Wn("git-merge",60158),githubAction:Wn("github-action",60159),githubAlt:Wn("github-alt",60160),globe:Wn("globe",60161),grabber:Wn("grabber",60162),graph:Wn("graph",60163),gripper:Wn("gripper",60164),heart:Wn("heart",60165),home:Wn("home",60166),horizontalRule:Wn("horizontal-rule",60167),hubot:Wn("hubot",60168),inbox:Wn("inbox",60169),issueReopened:Wn("issue-reopened",60171),issues:Wn("issues",60172),italic:Wn("italic",60173),jersey:Wn("jersey",60174),json:Wn("json",60175),kebabVertical:Wn("kebab-vertical",60176),key:Wn("key",60177),law:Wn("law",60178),lightbulbAutofix:Wn("lightbulb-autofix",60179),linkExternal:Wn("link-external",60180),link:Wn("link",60181),listOrdered:Wn("list-ordered",60182),listUnordered:Wn("list-unordered",60183),liveShare:Wn("live-share",60184),loading:Wn("loading",60185),location:Wn("location",60186),mailRead:Wn("mail-read",60187),mail:Wn("mail",60188),markdown:Wn("markdown",60189),megaphone:Wn("megaphone",60190),mention:Wn("mention",60191),milestone:Wn("milestone",60192),gitPullRequestMilestone:Wn("git-pull-request-milestone",60192),mortarBoard:Wn("mortar-board",60193),move:Wn("move",60194),multipleWindows:Wn("multiple-windows",60195),mute:Wn("mute",60196),noNewline:Wn("no-newline",60197),note:Wn("note",60198),octoface:Wn("octoface",60199),openPreview:Wn("open-preview",60200),package:Wn("package",60201),paintcan:Wn("paintcan",60202),pin:Wn("pin",60203),play:Wn("play",60204),run:Wn("run",60204),plug:Wn("plug",60205),preserveCase:Wn("preserve-case",60206),preview:Wn("preview",60207),project:Wn("project",60208),pulse:Wn("pulse",60209),question:Wn("question",60210),quote:Wn("quote",60211),radioTower:Wn("radio-tower",60212),reactions:Wn("reactions",60213),references:Wn("references",60214),refresh:Wn("refresh",60215),regex:Wn("regex",60216),remoteExplorer:Wn("remote-explorer",60217),remote:Wn("remote",60218),remove:Wn("remove",60219),replaceAll:Wn("replace-all",60220),replace:Wn("replace",60221),repoClone:Wn("repo-clone",60222),repoForcePush:Wn("repo-force-push",60223),repoPull:Wn("repo-pull",60224),repoPush:Wn("repo-push",60225),report:Wn("report",60226),requestChanges:Wn("request-changes",60227),rocket:Wn("rocket",60228),rootFolderOpened:Wn("root-folder-opened",60229),rootFolder:Wn("root-folder",60230),rss:Wn("rss",60231),ruby:Wn("ruby",60232),saveAll:Wn("save-all",60233),saveAs:Wn("save-as",60234),save:Wn("save",60235),screenFull:Wn("screen-full",60236),screenNormal:Wn("screen-normal",60237),searchStop:Wn("search-stop",60238),server:Wn("server",60240),settingsGear:Wn("settings-gear",60241),settings:Wn("settings",60242),shield:Wn("shield",60243),smiley:Wn("smiley",60244),sortPrecedence:Wn("sort-precedence",60245),splitHorizontal:Wn("split-horizontal",60246),splitVertical:Wn("split-vertical",60247),squirrel:Wn("squirrel",60248),starFull:Wn("star-full",60249),starHalf:Wn("star-half",60250),symbolClass:Wn("symbol-class",60251),symbolColor:Wn("symbol-color",60252),symbolConstant:Wn("symbol-constant",60253),symbolEnumMember:Wn("symbol-enum-member",60254),symbolField:Wn("symbol-field",60255),symbolFile:Wn("symbol-file",60256),symbolInterface:Wn("symbol-interface",60257),symbolKeyword:Wn("symbol-keyword",60258),symbolMisc:Wn("symbol-misc",60259),symbolOperator:Wn("symbol-operator",60260),symbolProperty:Wn("symbol-property",60261),wrench:Wn("wrench",60261),wrenchSubaction:Wn("wrench-subaction",60261),symbolSnippet:Wn("symbol-snippet",60262),tasklist:Wn("tasklist",60263),telescope:Wn("telescope",60264),textSize:Wn("text-size",60265),threeBars:Wn("three-bars",60266),thumbsdown:Wn("thumbsdown",60267),thumbsup:Wn("thumbsup",60268),tools:Wn("tools",60269),triangleDown:Wn("triangle-down",60270),triangleLeft:Wn("triangle-left",60271),triangleRight:Wn("triangle-right",60272),triangleUp:Wn("triangle-up",60273),twitter:Wn("twitter",60274),unfold:Wn("unfold",60275),unlock:Wn("unlock",60276),unmute:Wn("unmute",60277),unverified:Wn("unverified",60278),verified:Wn("verified",60279),versions:Wn("versions",60280),vmActive:Wn("vm-active",60281),vmOutline:Wn("vm-outline",60282),vmRunning:Wn("vm-running",60283),watch:Wn("watch",60284),whitespace:Wn("whitespace",60285),wholeWord:Wn("whole-word",60286),window:Wn("window",60287),wordWrap:Wn("word-wrap",60288),zoomIn:Wn("zoom-in",60289),zoomOut:Wn("zoom-out",60290),listFilter:Wn("list-filter",60291),listFlat:Wn("list-flat",60292),listSelection:Wn("list-selection",60293),selection:Wn("selection",60293),listTree:Wn("list-tree",60294),debugBreakpointFunctionUnverified:Wn("debug-breakpoint-function-unverified",60295),debugBreakpointFunction:Wn("debug-breakpoint-function",60296),debugBreakpointFunctionDisabled:Wn("debug-breakpoint-function-disabled",60296),debugStackframeActive:Wn("debug-stackframe-active",60297),circleSmallFilled:Wn("circle-small-filled",60298),debugStackframeDot:Wn("debug-stackframe-dot",60298),terminalDecorationMark:Wn("terminal-decoration-mark",60298),debugStackframe:Wn("debug-stackframe",60299),debugStackframeFocused:Wn("debug-stackframe-focused",60299),debugBreakpointUnsupported:Wn("debug-breakpoint-unsupported",60300),symbolString:Wn("symbol-string",60301),debugReverseContinue:Wn("debug-reverse-continue",60302),debugStepBack:Wn("debug-step-back",60303),debugRestartFrame:Wn("debug-restart-frame",60304),debugAlt:Wn("debug-alt",60305),callIncoming:Wn("call-incoming",60306),callOutgoing:Wn("call-outgoing",60307),menu:Wn("menu",60308),expandAll:Wn("expand-all",60309),feedback:Wn("feedback",60310),gitPullRequestReviewer:Wn("git-pull-request-reviewer",60310),groupByRefType:Wn("group-by-ref-type",60311),ungroupByRefType:Wn("ungroup-by-ref-type",60312),account:Wn("account",60313),gitPullRequestAssignee:Wn("git-pull-request-assignee",60313),bellDot:Wn("bell-dot",60314),debugConsole:Wn("debug-console",60315),library:Wn("library",60316),output:Wn("output",60317),runAll:Wn("run-all",60318),syncIgnored:Wn("sync-ignored",60319),pinned:Wn("pinned",60320),githubInverted:Wn("github-inverted",60321),serverProcess:Wn("server-process",60322),serverEnvironment:Wn("server-environment",60323),pass:Wn("pass",60324),issueClosed:Wn("issue-closed",60324),stopCircle:Wn("stop-circle",60325),playCircle:Wn("play-circle",60326),record:Wn("record",60327),debugAltSmall:Wn("debug-alt-small",60328),vmConnect:Wn("vm-connect",60329),cloud:Wn("cloud",60330),merge:Wn("merge",60331),export:Wn("export",60332),graphLeft:Wn("graph-left",60333),magnet:Wn("magnet",60334),notebook:Wn("notebook",60335),redo:Wn("redo",60336),checkAll:Wn("check-all",60337),pinnedDirty:Wn("pinned-dirty",60338),passFilled:Wn("pass-filled",60339),circleLargeFilled:Wn("circle-large-filled",60340),circleLarge:Wn("circle-large",60341),circleLargeOutline:Wn("circle-large-outline",60341),combine:Wn("combine",60342),gather:Wn("gather",60342),table:Wn("table",60343),variableGroup:Wn("variable-group",60344),typeHierarchy:Wn("type-hierarchy",60345),typeHierarchySub:Wn("type-hierarchy-sub",60346),typeHierarchySuper:Wn("type-hierarchy-super",60347),gitPullRequestCreate:Wn("git-pull-request-create",60348),runAbove:Wn("run-above",60349),runBelow:Wn("run-below",60350),notebookTemplate:Wn("notebook-template",60351),debugRerun:Wn("debug-rerun",60352),workspaceTrusted:Wn("workspace-trusted",60353),workspaceUntrusted:Wn("workspace-untrusted",60354),workspaceUnknown:Wn("workspace-unknown",60355),terminalCmd:Wn("terminal-cmd",60356),terminalDebian:Wn("terminal-debian",60357),terminalLinux:Wn("terminal-linux",60358),terminalPowershell:Wn("terminal-powershell",60359),terminalTmux:Wn("terminal-tmux",60360),terminalUbuntu:Wn("terminal-ubuntu",60361),terminalBash:Wn("terminal-bash",60362),arrowSwap:Wn("arrow-swap",60363),copy:Wn("copy",60364),personAdd:Wn("person-add",60365),filterFilled:Wn("filter-filled",60366),wand:Wn("wand",60367),debugLineByLine:Wn("debug-line-by-line",60368),inspect:Wn("inspect",60369),layers:Wn("layers",60370),layersDot:Wn("layers-dot",60371),layersActive:Wn("layers-active",60372),compass:Wn("compass",60373),compassDot:Wn("compass-dot",60374),compassActive:Wn("compass-active",60375),azure:Wn("azure",60376),issueDraft:Wn("issue-draft",60377),gitPullRequestClosed:Wn("git-pull-request-closed",60378),gitPullRequestDraft:Wn("git-pull-request-draft",60379),debugAll:Wn("debug-all",60380),debugCoverage:Wn("debug-coverage",60381),runErrors:Wn("run-errors",60382),folderLibrary:Wn("folder-library",60383),debugContinueSmall:Wn("debug-continue-small",60384),beakerStop:Wn("beaker-stop",60385),graphLine:Wn("graph-line",60386),graphScatter:Wn("graph-scatter",60387),pieChart:Wn("pie-chart",60388),bracket:Wn("bracket",60175),bracketDot:Wn("bracket-dot",60389),bracketError:Wn("bracket-error",60390),lockSmall:Wn("lock-small",60391),azureDevops:Wn("azure-devops",60392),verifiedFilled:Wn("verified-filled",60393),newline:Wn("newline",60394),layout:Wn("layout",60395),layoutActivitybarLeft:Wn("layout-activitybar-left",60396),layoutActivitybarRight:Wn("layout-activitybar-right",60397),layoutPanelLeft:Wn("layout-panel-left",60398),layoutPanelCenter:Wn("layout-panel-center",60399),layoutPanelJustify:Wn("layout-panel-justify",60400),layoutPanelRight:Wn("layout-panel-right",60401),layoutPanel:Wn("layout-panel",60402),layoutSidebarLeft:Wn("layout-sidebar-left",60403),layoutSidebarRight:Wn("layout-sidebar-right",60404),layoutStatusbar:Wn("layout-statusbar",60405),layoutMenubar:Wn("layout-menubar",60406),layoutCentered:Wn("layout-centered",60407),target:Wn("target",60408),indent:Wn("indent",60409),recordSmall:Wn("record-small",60410),errorSmall:Wn("error-small",60411),terminalDecorationError:Wn("terminal-decoration-error",60411),arrowCircleDown:Wn("arrow-circle-down",60412),arrowCircleLeft:Wn("arrow-circle-left",60413),arrowCircleRight:Wn("arrow-circle-right",60414),arrowCircleUp:Wn("arrow-circle-up",60415),layoutSidebarRightOff:Wn("layout-sidebar-right-off",60416),layoutPanelOff:Wn("layout-panel-off",60417),layoutSidebarLeftOff:Wn("layout-sidebar-left-off",60418),blank:Wn("blank",60419),heartFilled:Wn("heart-filled",60420),map:Wn("map",60421),mapHorizontal:Wn("map-horizontal",60421),foldHorizontal:Wn("fold-horizontal",60421),mapFilled:Wn("map-filled",60422),mapHorizontalFilled:Wn("map-horizontal-filled",60422),foldHorizontalFilled:Wn("fold-horizontal-filled",60422),circleSmall:Wn("circle-small",60423),bellSlash:Wn("bell-slash",60424),bellSlashDot:Wn("bell-slash-dot",60425),commentUnresolved:Wn("comment-unresolved",60426),gitPullRequestGoToChanges:Wn("git-pull-request-go-to-changes",60427),gitPullRequestNewChanges:Wn("git-pull-request-new-changes",60428),searchFuzzy:Wn("search-fuzzy",60429),commentDraft:Wn("comment-draft",60430),send:Wn("send",60431),sparkle:Wn("sparkle",60432),insert:Wn("insert",60433),mic:Wn("mic",60434),thumbsdownFilled:Wn("thumbsdown-filled",60435),thumbsupFilled:Wn("thumbsup-filled",60436),coffee:Wn("coffee",60437),snake:Wn("snake",60438),game:Wn("game",60439),vr:Wn("vr",60440),chip:Wn("chip",60441),piano:Wn("piano",60442),music:Wn("music",60443),micFilled:Wn("mic-filled",60444),repoFetch:Wn("repo-fetch",60445),copilot:Wn("copilot",60446),lightbulbSparkle:Wn("lightbulb-sparkle",60447),robot:Wn("robot",60448),sparkleFilled:Wn("sparkle-filled",60449),diffSingle:Wn("diff-single",60450),diffMultiple:Wn("diff-multiple",60451),surroundWith:Wn("surround-with",60452),share:Wn("share",60453),gitStash:Wn("git-stash",60454),gitStashApply:Wn("git-stash-apply",60455),gitStashPop:Wn("git-stash-pop",60456),vscode:Wn("vscode",60457),vscodeInsiders:Wn("vscode-insiders",60458),codeOss:Wn("code-oss",60459),runCoverage:Wn("run-coverage",60460),runAllCoverage:Wn("run-all-coverage",60461),coverage:Wn("coverage",60462),githubProject:Wn("github-project",60463),mapVertical:Wn("map-vertical",60464),foldVertical:Wn("fold-vertical",60464),mapVerticalFilled:Wn("map-vertical-filled",60465),foldVerticalFilled:Wn("fold-vertical-filled",60465),goToSearch:Wn("go-to-search",60466),percentage:Wn("percentage",60467),sortPercentage:Wn("sort-percentage",60467),attach:Wn("attach",60468),goToEditingSession:Wn("go-to-editing-session",60469),editSession:Wn("edit-session",60470),codeReview:Wn("code-review",60471),copilotWarning:Wn("copilot-warning",60472),python:Wn("python",60473),copilotLarge:Wn("copilot-large",60474),copilotWarningLarge:Wn("copilot-warning-large",60475),keyboardTab:Wn("keyboard-tab",60476),copilotBlocked:Wn("copilot-blocked",60477),copilotNotConnected:Wn("copilot-not-connected",60478),flag:Wn("flag",60479),lightbulbEmpty:Wn("lightbulb-empty",60480),symbolMethodArrow:Wn("symbol-method-arrow",60481),copilotUnavailable:Wn("copilot-unavailable",60482),repoPinned:Wn("repo-pinned",60483),keyboardTabAbove:Wn("keyboard-tab-above",60484),keyboardTabBelow:Wn("keyboard-tab-below",60485),gitPullRequestDone:Wn("git-pull-request-done",60486),mcp:Wn("mcp",60487),extensionsLarge:Wn("extensions-large",60488),layoutPanelDock:Wn("layout-panel-dock",60489),layoutSidebarLeftDock:Wn("layout-sidebar-left-dock",60490),layoutSidebarRightDock:Wn("layout-sidebar-right-dock",60491),copilotInProgress:Wn("copilot-in-progress",60492),copilotError:Wn("copilot-error",60493),copilotSuccess:Wn("copilot-success",60494),chatSparkle:Wn("chat-sparkle",60495),searchSparkle:Wn("search-sparkle",60496),editSparkle:Wn("edit-sparkle",60497),copilotSnooze:Wn("copilot-snooze",60498),sendToRemoteAgent:Wn("send-to-remote-agent",60499),commentDiscussionSparkle:Wn("comment-discussion-sparkle",60500),chatSparkleWarning:Wn("chat-sparkle-warning",60501),chatSparkleError:Wn("chat-sparkle-error",60502),collection:Wn("collection",60503),newCollection:Wn("new-collection",60504),thinking:Wn("thinking",60505),build:Wn("build",60506),commentDiscussionQuote:Wn("comment-discussion-quote",60507),cursor:Wn("cursor",60508),eraser:Wn("eraser",60509),fileText:Wn("file-text",60510),gitLens:Wn("git-lens",60511),quotes:Wn("quotes",60512),rename:Wn("rename",60513),runWithDeps:Wn("run-with-deps",60514),debugConnected:Wn("debug-connected",60515),strikethrough:Wn("strikethrough",60516),openInProduct:Wn("open-in-product",60517),indexZero:Wn("index-zero",60518),agent:Wn("agent",60519),editCode:Wn("edit-code",60520),repoSelected:Wn("repo-selected",60521),skip:Wn("skip",60522),mergeInto:Wn("merge-into",60523),gitBranchChanges:Wn("git-branch-changes",60524),gitBranchStagedChanges:Wn("git-branch-staged-changes",60525),gitBranchConflicts:Wn("git-branch-conflicts",60526),gitBranch:Wn("git-branch",60527),gitBranchCreate:Wn("git-branch-create",60527),gitBranchDelete:Wn("git-branch-delete",60527),searchLarge:Wn("search-large",60528),terminalGitBash:Wn("terminal-git-bash",60529)},...{dialogError:Wn("dialog-error","error"),dialogWarning:Wn("dialog-warning","warning"),dialogInfo:Wn("dialog-info","info"),dialogClose:Wn("dialog-close","close"),treeItemExpanded:Wn("tree-item-expanded","chevron-down"),treeFilterOnTypeOn:Wn("tree-filter-on-type-on","list-filter"),treeFilterOnTypeOff:Wn("tree-filter-on-type-off","list-selection"),treeFilterClear:Wn("tree-filter-clear","close"),treeItemLoading:Wn("tree-item-loading","loading"),menuSelection:Wn("menu-selection","check"),menuSubmenu:Wn("menu-submenu","chevron-right"),menuBarMore:Wn("menubar-more","more"),scrollbarButtonLeft:Wn("scrollbar-button-left","triangle-left"),scrollbarButtonRight:Wn("scrollbar-button-right","triangle-right"),scrollbarButtonUp:Wn("scrollbar-button-up","triangle-up"),scrollbarButtonDown:Wn("scrollbar-button-down","triangle-down"),toolBarMore:Wn("toolbar-more","more"),quickInputBack:Wn("quick-input-back","arrow-left"),dropDownButton:Wn("drop-down-button",60084),symbolCustomColor:Wn("symbol-customcolor",60252),exportIcon:Wn("export",60332),workspaceUnspecified:Wn("workspace-unspecified",60355),newLine:Wn("newline",60394),thumbsDownFilled:Wn("thumbsdown-filled",60435),thumbsUpFilled:Wn("thumbsup-filled",60436),gitFetch:Wn("git-fetch",60445),lightbulbSparkleAutofix:Wn("lightbulb-sparkle-autofix",60447),debugBreakpointPending:Wn("debug-breakpoint-pending",60377)}};class Bn extends _{get isResolved(){return this._isResolved}constructor(e,n,t){super(),this._registry=e,this._languageId=n,this._factory=t,this._isDisposed=!1,this._resolvePromise=null,this._isResolved=!1}dispose(){this._isDisposed=!0,super.dispose()}async resolve(){return this._resolvePromise||(this._resolvePromise=this._create()),this._resolvePromise}async _create(){const e=await this._factory.tokenizationSupport;this._isResolved=!0,e&&!this._isDisposed&&this._register(this._registry.register(this._languageId,e))}}class Gn{constructor(e,n,t){this.offset=e,this.type=n,this.language=t,this._tokenBrand=void 0}toString(){return"("+this.offset+", "+this.type+")"}}var Vn,jn,Un,Hn,Kn,qn,Jn,Xn,Yn,$n,Qn,Zn,et,nt,tt,rt,ot,it,at,st,lt,ct,dt,ut,pt,ft,mt,ht,_t,gt,yt,vt,bt,Tt,St,Et,At,xt,Rt,It,Dt,Ct,Nt,Mt,Pt,Lt,kt,wt,Ot,Ft,Wt,zt,Bt,Gt,Vt,jt,Ut,Ht,Kt,qt,Jt,Xt,Yt,$t,Qt,Zt;!function(e){e[e.Increase=0]="Increase",e[e.Decrease=1]="Decrease"}(Vn||(Vn={})),function(e){const n=new Map;n.set(0,zn.symbolMethod),n.set(1,zn.symbolFunction),n.set(2,zn.symbolConstructor),n.set(3,zn.symbolField),n.set(4,zn.symbolVariable),n.set(5,zn.symbolClass),n.set(6,zn.symbolStruct),n.set(7,zn.symbolInterface),n.set(8,zn.symbolModule),n.set(9,zn.symbolProperty),n.set(10,zn.symbolEvent),n.set(11,zn.symbolOperator),n.set(12,zn.symbolUnit),n.set(13,zn.symbolValue),n.set(15,zn.symbolEnum),n.set(14,zn.symbolConstant),n.set(15,zn.symbolEnum),n.set(16,zn.symbolEnumMember),n.set(17,zn.symbolKeyword),n.set(28,zn.symbolSnippet),n.set(18,zn.symbolText),n.set(19,zn.symbolColor),n.set(20,zn.symbolFile),n.set(21,zn.symbolReference),n.set(22,zn.symbolCustomColor),n.set(23,zn.symbolFolder),n.set(24,zn.symbolTypeParameter),n.set(25,zn.account),n.set(26,zn.issues),n.set(27,zn.tools),e.toIcon=function(e){let t=n.get(e);return t||(t=zn.symbolProperty),t},e.toLabel=function(e){switch(e){case 0:return L(728,"Method");case 1:return L(729,"Function");case 2:return L(730,"Constructor");case 3:return L(731,"Field");case 4:return L(732,"Variable");case 5:return L(733,"Class");case 6:return L(734,"Struct");case 7:return L(735,"Interface");case 8:return L(736,"Module");case 9:return L(737,"Property");case 10:return L(738,"Event");case 11:return L(739,"Operator");case 12:return L(740,"Unit");case 13:return L(741,"Value");case 14:return L(742,"Constant");case 15:return L(743,"Enum");case 16:return L(744,"Enum Member");case 17:return L(745,"Keyword");case 18:return L(746,"Text");case 19:return L(747,"Color");case 20:return L(748,"File");case 21:return L(749,"Reference");case 22:return L(750,"Custom Color");case 23:return L(751,"Folder");case 24:return L(752,"Type Parameter");case 25:return L(753,"User");case 26:return L(754,"Issue");case 27:return L(755,"Tool");case 28:return L(756,"Snippet");default:return""}};const t=new Map;t.set("method",0),t.set("function",1),t.set("constructor",2),t.set("field",3),t.set("variable",4),t.set("class",5),t.set("struct",6),t.set("interface",7),t.set("module",8),t.set("property",9),t.set("event",10),t.set("operator",11),t.set("unit",12),t.set("value",13),t.set("constant",14),t.set("enum",15),t.set("enum-member",16),t.set("enumMember",16),t.set("keyword",17),t.set("snippet",28),t.set("text",18),t.set("color",19),t.set("file",20),t.set("reference",21),t.set("customcolor",22),t.set("folder",23),t.set("type-parameter",24),t.set("typeParameter",24),t.set("account",25),t.set("issue",26),t.set("tool",27),e.fromString=function(e,n){let r=t.get(e);return void 0!==r||n||(r=9),r}}(jn||(jn={})),function(e){e[e.Automatic=0]="Automatic",e[e.Explicit=1]="Explicit"}(Un||(Un={})),function(e){e[e.Code=1]="Code",e[e.Label=2]="Label"}(Hn||(Hn={})),function(e){e[e.Accepted=0]="Accepted",e[e.Rejected=1]="Rejected",e[e.Ignored=2]="Ignored"}(Kn||(Kn={})),function(e){e[e.Automatic=0]="Automatic",e[e.PasteAs=1]="PasteAs"}(qn||(qn={})),function(e){e[e.Invoke=1]="Invoke",e[e.TriggerCharacter=2]="TriggerCharacter",e[e.ContentChange=3]="ContentChange"}(Jn||(Jn={})),function(e){e[e.Text=0]="Text",e[e.Read=1]="Read",e[e.Write=2]="Write"}(Xn||(Xn={})),L(757,"array"),L(758,"boolean"),L(759,"class"),L(760,"constant"),L(761,"constructor"),L(762,"enumeration"),L(763,"enumeration member"),L(764,"event"),L(765,"field"),L(766,"file"),L(767,"function"),L(768,"interface"),L(769,"key"),L(770,"method"),L(771,"module"),L(772,"namespace"),L(773,"null"),L(774,"number"),L(775,"object"),L(776,"operator"),L(777,"package"),L(778,"property"),L(779,"string"),L(780,"struct"),L(781,"type parameter"),L(782,"variable"),function(e){const n=new Map;n.set(0,zn.symbolFile),n.set(1,zn.symbolModule),n.set(2,zn.symbolNamespace),n.set(3,zn.symbolPackage),n.set(4,zn.symbolClass),n.set(5,zn.symbolMethod),n.set(6,zn.symbolProperty),n.set(7,zn.symbolField),n.set(8,zn.symbolConstructor),n.set(9,zn.symbolEnum),n.set(10,zn.symbolInterface),n.set(11,zn.symbolFunction),n.set(12,zn.symbolVariable),n.set(13,zn.symbolConstant),n.set(14,zn.symbolString),n.set(15,zn.symbolNumber),n.set(16,zn.symbolBoolean),n.set(17,zn.symbolArray),n.set(18,zn.symbolObject),n.set(19,zn.symbolKey),n.set(20,zn.symbolNull),n.set(21,zn.symbolEnumMember),n.set(22,zn.symbolStruct),n.set(23,zn.symbolEvent),n.set(24,zn.symbolOperator),n.set(25,zn.symbolTypeParameter),e.toIcon=function(e){let t=n.get(e);return t||(t=zn.symbolProperty),t};const t=new Map;t.set(0,20),t.set(1,8),t.set(2,8),t.set(3,8),t.set(4,5),t.set(5,0),t.set(6,9),t.set(7,3),t.set(8,2),t.set(9,15),t.set(10,7),t.set(11,1),t.set(12,4),t.set(13,14),t.set(14,18),t.set(15,13),t.set(16,13),t.set(17,13),t.set(18,13),t.set(19,17),t.set(20,13),t.set(21,16),t.set(22,6),t.set(23,10),t.set(24,11),t.set(25,24),e.toCompletionKind=function(e){let n=t.get(e);return void 0===n&&(n=20),n}}(Yn||(Yn={}));class er{static{this.Comment=new er("comment")}static{this.Imports=new er("imports")}static{this.Region=new er("region")}static fromValue(e){switch(e){case"comment":return er.Comment;case"imports":return er.Imports;case"region":return er.Region}return new er(e)}constructor(e){this.value=e}}!function(e){e[e.AIGenerated=1]="AIGenerated"}($n||($n={})),function(e){e[e.Invoke=0]="Invoke",e[e.Automatic=1]="Automatic"}(Qn||(Qn={})),function(e){e.is=function(e){return!(!e||"object"!=typeof e)&&("string"==typeof e.id&&"string"==typeof e.title)}}(Zn||(Zn={})),function(e){e[e.Type=1]="Type",e[e.Parameter=2]="Parameter"}(et||(et={})),new class{constructor(){this._tokenizationSupports=new Map,this._factories=new Map,this._onDidChange=new D,this.onDidChange=this._onDidChange.event,this._colorMap=null}handleChange(e){this._onDidChange.fire({changedLanguages:e,changedColorMap:!1})}register(e,n){return this._tokenizationSupports.set(e,n),this.handleChange([e]),m(()=>{this._tokenizationSupports.get(e)===n&&(this._tokenizationSupports.delete(e),this.handleChange([e]))})}get(e){return this._tokenizationSupports.get(e)||null}registerFactory(e,n){this._factories.get(e)?.dispose();const t=new Bn(this,e,n);return this._factories.set(e,t),m(()=>{const n=this._factories.get(e);n&&n===t&&(this._factories.delete(e),n.dispose())})}async getOrCreate(e){const n=this.get(e);if(n)return n;const t=this._factories.get(e);return!t||t.isResolved?null:(await t.resolve(),this.get(e))}isResolved(e){if(this.get(e))return!0;const n=this._factories.get(e);return!(n&&!n.isResolved)}setColorMap(e){this._colorMap=e,this._onDidChange.fire({changedLanguages:Array.from(this._tokenizationSupports.keys()),changedColorMap:!0})}getColorMap(){return this._colorMap}getDefaultBackground(){return this._colorMap&&this._colorMap.length>2?this._colorMap[2]:null}},function(e){e[e.Unknown=0]="Unknown",e[e.Disabled=1]="Disabled",e[e.Enabled=2]="Enabled"}(nt||(nt={})),function(e){e[e.Invoke=1]="Invoke",e[e.Auto=2]="Auto"}(tt||(tt={})),function(e){e[e.None=0]="None",e[e.KeepWhitespace=1]="KeepWhitespace",e[e.InsertAsSnippet=4]="InsertAsSnippet"}(rt||(rt={})),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.User=25]="User",e[e.Issue=26]="Issue",e[e.Tool=27]="Tool",e[e.Snippet=28]="Snippet"}(ot||(ot={})),function(e){e[e.Deprecated=1]="Deprecated"}(it||(it={})),function(e){e[e.Invoke=0]="Invoke",e[e.TriggerCharacter=1]="TriggerCharacter",e[e.TriggerForIncompleteCompletions=2]="TriggerForIncompleteCompletions"}(at||(at={})),function(e){e[e.EXACT=0]="EXACT",e[e.ABOVE=1]="ABOVE",e[e.BELOW=2]="BELOW"}(st||(st={})),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"}(lt||(lt={})),function(e){e[e.LF=1]="LF",e[e.CRLF=2]="CRLF"}(ct||(ct={})),function(e){e[e.Text=0]="Text",e[e.Read=1]="Read",e[e.Write=2]="Write"}(dt||(dt={})),function(e){e[e.None=0]="None",e[e.Keep=1]="Keep",e[e.Brackets=2]="Brackets",e[e.Advanced=3]="Advanced",e[e.Full=4]="Full"}(ut||(ut={})),function(e){e[e.acceptSuggestionOnCommitCharacter=0]="acceptSuggestionOnCommitCharacter",e[e.acceptSuggestionOnEnter=1]="acceptSuggestionOnEnter",e[e.accessibilitySupport=2]="accessibilitySupport",e[e.accessibilityPageSize=3]="accessibilityPageSize",e[e.allowOverflow=4]="allowOverflow",e[e.allowVariableLineHeights=5]="allowVariableLineHeights",e[e.allowVariableFonts=6]="allowVariableFonts",e[e.allowVariableFontsInAccessibilityMode=7]="allowVariableFontsInAccessibilityMode",e[e.ariaLabel=8]="ariaLabel",e[e.ariaRequired=9]="ariaRequired",e[e.autoClosingBrackets=10]="autoClosingBrackets",e[e.autoClosingComments=11]="autoClosingComments",e[e.screenReaderAnnounceInlineSuggestion=12]="screenReaderAnnounceInlineSuggestion",e[e.autoClosingDelete=13]="autoClosingDelete",e[e.autoClosingOvertype=14]="autoClosingOvertype",e[e.autoClosingQuotes=15]="autoClosingQuotes",e[e.autoIndent=16]="autoIndent",e[e.autoIndentOnPaste=17]="autoIndentOnPaste",e[e.autoIndentOnPasteWithinString=18]="autoIndentOnPasteWithinString",e[e.automaticLayout=19]="automaticLayout",e[e.autoSurround=20]="autoSurround",e[e.bracketPairColorization=21]="bracketPairColorization",e[e.guides=22]="guides",e[e.codeLens=23]="codeLens",e[e.codeLensFontFamily=24]="codeLensFontFamily",e[e.codeLensFontSize=25]="codeLensFontSize",e[e.colorDecorators=26]="colorDecorators",e[e.colorDecoratorsLimit=27]="colorDecoratorsLimit",e[e.columnSelection=28]="columnSelection",e[e.comments=29]="comments",e[e.contextmenu=30]="contextmenu",e[e.copyWithSyntaxHighlighting=31]="copyWithSyntaxHighlighting",e[e.cursorBlinking=32]="cursorBlinking",e[e.cursorSmoothCaretAnimation=33]="cursorSmoothCaretAnimation",e[e.cursorStyle=34]="cursorStyle",e[e.cursorSurroundingLines=35]="cursorSurroundingLines",e[e.cursorSurroundingLinesStyle=36]="cursorSurroundingLinesStyle",e[e.cursorWidth=37]="cursorWidth",e[e.cursorHeight=38]="cursorHeight",e[e.disableLayerHinting=39]="disableLayerHinting",e[e.disableMonospaceOptimizations=40]="disableMonospaceOptimizations",e[e.domReadOnly=41]="domReadOnly",e[e.dragAndDrop=42]="dragAndDrop",e[e.dropIntoEditor=43]="dropIntoEditor",e[e.editContext=44]="editContext",e[e.emptySelectionClipboard=45]="emptySelectionClipboard",e[e.experimentalGpuAcceleration=46]="experimentalGpuAcceleration",e[e.experimentalWhitespaceRendering=47]="experimentalWhitespaceRendering",e[e.extraEditorClassName=48]="extraEditorClassName",e[e.fastScrollSensitivity=49]="fastScrollSensitivity",e[e.find=50]="find",e[e.fixedOverflowWidgets=51]="fixedOverflowWidgets",e[e.folding=52]="folding",e[e.foldingStrategy=53]="foldingStrategy",e[e.foldingHighlight=54]="foldingHighlight",e[e.foldingImportsByDefault=55]="foldingImportsByDefault",e[e.foldingMaximumRegions=56]="foldingMaximumRegions",e[e.unfoldOnClickAfterEndOfLine=57]="unfoldOnClickAfterEndOfLine",e[e.fontFamily=58]="fontFamily",e[e.fontInfo=59]="fontInfo",e[e.fontLigatures=60]="fontLigatures",e[e.fontSize=61]="fontSize",e[e.fontWeight=62]="fontWeight",e[e.fontVariations=63]="fontVariations",e[e.formatOnPaste=64]="formatOnPaste",e[e.formatOnType=65]="formatOnType",e[e.glyphMargin=66]="glyphMargin",e[e.gotoLocation=67]="gotoLocation",e[e.hideCursorInOverviewRuler=68]="hideCursorInOverviewRuler",e[e.hover=69]="hover",e[e.inDiffEditor=70]="inDiffEditor",e[e.inlineSuggest=71]="inlineSuggest",e[e.letterSpacing=72]="letterSpacing",e[e.lightbulb=73]="lightbulb",e[e.lineDecorationsWidth=74]="lineDecorationsWidth",e[e.lineHeight=75]="lineHeight",e[e.lineNumbers=76]="lineNumbers",e[e.lineNumbersMinChars=77]="lineNumbersMinChars",e[e.linkedEditing=78]="linkedEditing",e[e.links=79]="links",e[e.matchBrackets=80]="matchBrackets",e[e.minimap=81]="minimap",e[e.mouseStyle=82]="mouseStyle",e[e.mouseWheelScrollSensitivity=83]="mouseWheelScrollSensitivity",e[e.mouseWheelZoom=84]="mouseWheelZoom",e[e.multiCursorMergeOverlapping=85]="multiCursorMergeOverlapping",e[e.multiCursorModifier=86]="multiCursorModifier",e[e.mouseMiddleClickAction=87]="mouseMiddleClickAction",e[e.multiCursorPaste=88]="multiCursorPaste",e[e.multiCursorLimit=89]="multiCursorLimit",e[e.occurrencesHighlight=90]="occurrencesHighlight",e[e.occurrencesHighlightDelay=91]="occurrencesHighlightDelay",e[e.overtypeCursorStyle=92]="overtypeCursorStyle",e[e.overtypeOnPaste=93]="overtypeOnPaste",e[e.overviewRulerBorder=94]="overviewRulerBorder",e[e.overviewRulerLanes=95]="overviewRulerLanes",e[e.padding=96]="padding",e[e.pasteAs=97]="pasteAs",e[e.parameterHints=98]="parameterHints",e[e.peekWidgetDefaultFocus=99]="peekWidgetDefaultFocus",e[e.placeholder=100]="placeholder",e[e.definitionLinkOpensInPeek=101]="definitionLinkOpensInPeek",e[e.quickSuggestions=102]="quickSuggestions",e[e.quickSuggestionsDelay=103]="quickSuggestionsDelay",e[e.readOnly=104]="readOnly",e[e.readOnlyMessage=105]="readOnlyMessage",e[e.renameOnType=106]="renameOnType",e[e.renderRichScreenReaderContent=107]="renderRichScreenReaderContent",e[e.renderControlCharacters=108]="renderControlCharacters",e[e.renderFinalNewline=109]="renderFinalNewline",e[e.renderLineHighlight=110]="renderLineHighlight",e[e.renderLineHighlightOnlyWhenFocus=111]="renderLineHighlightOnlyWhenFocus",e[e.renderValidationDecorations=112]="renderValidationDecorations",e[e.renderWhitespace=113]="renderWhitespace",e[e.revealHorizontalRightPadding=114]="revealHorizontalRightPadding",e[e.roundedSelection=115]="roundedSelection",e[e.rulers=116]="rulers",e[e.scrollbar=117]="scrollbar",e[e.scrollBeyondLastColumn=118]="scrollBeyondLastColumn",e[e.scrollBeyondLastLine=119]="scrollBeyondLastLine",e[e.scrollPredominantAxis=120]="scrollPredominantAxis",e[e.selectionClipboard=121]="selectionClipboard",e[e.selectionHighlight=122]="selectionHighlight",e[e.selectionHighlightMaxLength=123]="selectionHighlightMaxLength",e[e.selectionHighlightMultiline=124]="selectionHighlightMultiline",e[e.selectOnLineNumbers=125]="selectOnLineNumbers",e[e.showFoldingControls=126]="showFoldingControls",e[e.showUnused=127]="showUnused",e[e.snippetSuggestions=128]="snippetSuggestions",e[e.smartSelect=129]="smartSelect",e[e.smoothScrolling=130]="smoothScrolling",e[e.stickyScroll=131]="stickyScroll",e[e.stickyTabStops=132]="stickyTabStops",e[e.stopRenderingLineAfter=133]="stopRenderingLineAfter",e[e.suggest=134]="suggest",e[e.suggestFontSize=135]="suggestFontSize",e[e.suggestLineHeight=136]="suggestLineHeight",e[e.suggestOnTriggerCharacters=137]="suggestOnTriggerCharacters",e[e.suggestSelection=138]="suggestSelection",e[e.tabCompletion=139]="tabCompletion",e[e.tabIndex=140]="tabIndex",e[e.trimWhitespaceOnDelete=141]="trimWhitespaceOnDelete",e[e.unicodeHighlighting=142]="unicodeHighlighting",e[e.unusualLineTerminators=143]="unusualLineTerminators",e[e.useShadowDOM=144]="useShadowDOM",e[e.useTabStops=145]="useTabStops",e[e.wordBreak=146]="wordBreak",e[e.wordSegmenterLocales=147]="wordSegmenterLocales",e[e.wordSeparators=148]="wordSeparators",e[e.wordWrap=149]="wordWrap",e[e.wordWrapBreakAfterCharacters=150]="wordWrapBreakAfterCharacters",e[e.wordWrapBreakBeforeCharacters=151]="wordWrapBreakBeforeCharacters",e[e.wordWrapColumn=152]="wordWrapColumn",e[e.wordWrapOverride1=153]="wordWrapOverride1",e[e.wordWrapOverride2=154]="wordWrapOverride2",e[e.wrappingIndent=155]="wrappingIndent",e[e.wrappingStrategy=156]="wrappingStrategy",e[e.showDeprecated=157]="showDeprecated",e[e.inertialScroll=158]="inertialScroll",e[e.inlayHints=159]="inlayHints",e[e.wrapOnEscapedLineFeeds=160]="wrapOnEscapedLineFeeds",e[e.effectiveCursorStyle=161]="effectiveCursorStyle",e[e.editorClassName=162]="editorClassName",e[e.pixelRatio=163]="pixelRatio",e[e.tabFocusMode=164]="tabFocusMode",e[e.layoutInfo=165]="layoutInfo",e[e.wrappingInfo=166]="wrappingInfo",e[e.defaultColorDecorators=167]="defaultColorDecorators",e[e.colorDecoratorsActivatedOn=168]="colorDecoratorsActivatedOn",e[e.inlineCompletionsAccessibilityVerbose=169]="inlineCompletionsAccessibilityVerbose",e[e.effectiveEditContext=170]="effectiveEditContext",e[e.scrollOnMiddleClick=171]="scrollOnMiddleClick",e[e.effectiveAllowVariableFonts=172]="effectiveAllowVariableFonts"}(pt||(pt={})),function(e){e[e.TextDefined=0]="TextDefined",e[e.LF=1]="LF",e[e.CRLF=2]="CRLF"}(ft||(ft={})),function(e){e[e.LF=0]="LF",e[e.CRLF=1]="CRLF"}(mt||(mt={})),function(e){e[e.Left=1]="Left",e[e.Center=2]="Center",e[e.Right=3]="Right"}(ht||(ht={})),function(e){e[e.Increase=0]="Increase",e[e.Decrease=1]="Decrease"}(_t||(_t={})),function(e){e[e.None=0]="None",e[e.Indent=1]="Indent",e[e.IndentOutdent=2]="IndentOutdent",e[e.Outdent=3]="Outdent"}(gt||(gt={})),function(e){e[e.Both=0]="Both",e[e.Right=1]="Right",e[e.Left=2]="Left",e[e.None=3]="None"}(yt||(yt={})),function(e){e[e.Type=1]="Type",e[e.Parameter=2]="Parameter"}(vt||(vt={})),function(e){e[e.Accepted=0]="Accepted",e[e.Rejected=1]="Rejected",e[e.Ignored=2]="Ignored"}(bt||(bt={})),function(e){e[e.Code=1]="Code",e[e.Label=2]="Label"}(Tt||(Tt={})),function(e){e[e.Automatic=0]="Automatic",e[e.Explicit=1]="Explicit"}(St||(St={})),function(e){e[e.DependsOnKbLayout=-1]="DependsOnKbLayout",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.Digit0=21]="Digit0",e[e.Digit1=22]="Digit1",e[e.Digit2=23]="Digit2",e[e.Digit3=24]="Digit3",e[e.Digit4=25]="Digit4",e[e.Digit5=26]="Digit5",e[e.Digit6=27]="Digit6",e[e.Digit7=28]="Digit7",e[e.Digit8=29]="Digit8",e[e.Digit9=30]="Digit9",e[e.KeyA=31]="KeyA",e[e.KeyB=32]="KeyB",e[e.KeyC=33]="KeyC",e[e.KeyD=34]="KeyD",e[e.KeyE=35]="KeyE",e[e.KeyF=36]="KeyF",e[e.KeyG=37]="KeyG",e[e.KeyH=38]="KeyH",e[e.KeyI=39]="KeyI",e[e.KeyJ=40]="KeyJ",e[e.KeyK=41]="KeyK",e[e.KeyL=42]="KeyL",e[e.KeyM=43]="KeyM",e[e.KeyN=44]="KeyN",e[e.KeyO=45]="KeyO",e[e.KeyP=46]="KeyP",e[e.KeyQ=47]="KeyQ",e[e.KeyR=48]="KeyR",e[e.KeyS=49]="KeyS",e[e.KeyT=50]="KeyT",e[e.KeyU=51]="KeyU",e[e.KeyV=52]="KeyV",e[e.KeyW=53]="KeyW",e[e.KeyX=54]="KeyX",e[e.KeyY=55]="KeyY",e[e.KeyZ=56]="KeyZ",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.F20=78]="F20",e[e.F21=79]="F21",e[e.F22=80]="F22",e[e.F23=81]="F23",e[e.F24=82]="F24",e[e.NumLock=83]="NumLock",e[e.ScrollLock=84]="ScrollLock",e[e.Semicolon=85]="Semicolon",e[e.Equal=86]="Equal",e[e.Comma=87]="Comma",e[e.Minus=88]="Minus",e[e.Period=89]="Period",e[e.Slash=90]="Slash",e[e.Backquote=91]="Backquote",e[e.BracketLeft=92]="BracketLeft",e[e.Backslash=93]="Backslash",e[e.BracketRight=94]="BracketRight",e[e.Quote=95]="Quote",e[e.OEM_8=96]="OEM_8",e[e.IntlBackslash=97]="IntlBackslash",e[e.Numpad0=98]="Numpad0",e[e.Numpad1=99]="Numpad1",e[e.Numpad2=100]="Numpad2",e[e.Numpad3=101]="Numpad3",e[e.Numpad4=102]="Numpad4",e[e.Numpad5=103]="Numpad5",e[e.Numpad6=104]="Numpad6",e[e.Numpad7=105]="Numpad7",e[e.Numpad8=106]="Numpad8",e[e.Numpad9=107]="Numpad9",e[e.NumpadMultiply=108]="NumpadMultiply",e[e.NumpadAdd=109]="NumpadAdd",e[e.NUMPAD_SEPARATOR=110]="NUMPAD_SEPARATOR",e[e.NumpadSubtract=111]="NumpadSubtract",e[e.NumpadDecimal=112]="NumpadDecimal",e[e.NumpadDivide=113]="NumpadDivide",e[e.KEY_IN_COMPOSITION=114]="KEY_IN_COMPOSITION",e[e.ABNT_C1=115]="ABNT_C1",e[e.ABNT_C2=116]="ABNT_C2",e[e.AudioVolumeMute=117]="AudioVolumeMute",e[e.AudioVolumeUp=118]="AudioVolumeUp",e[e.AudioVolumeDown=119]="AudioVolumeDown",e[e.BrowserSearch=120]="BrowserSearch",e[e.BrowserHome=121]="BrowserHome",e[e.BrowserBack=122]="BrowserBack",e[e.BrowserForward=123]="BrowserForward",e[e.MediaTrackNext=124]="MediaTrackNext",e[e.MediaTrackPrevious=125]="MediaTrackPrevious",e[e.MediaStop=126]="MediaStop",e[e.MediaPlayPause=127]="MediaPlayPause",e[e.LaunchMediaPlayer=128]="LaunchMediaPlayer",e[e.LaunchMail=129]="LaunchMail",e[e.LaunchApp2=130]="LaunchApp2",e[e.Clear=131]="Clear",e[e.MAX_VALUE=132]="MAX_VALUE"}(Et||(Et={})),function(e){e[e.Hint=1]="Hint",e[e.Info=2]="Info",e[e.Warning=4]="Warning",e[e.Error=8]="Error"}(At||(At={})),function(e){e[e.Unnecessary=1]="Unnecessary",e[e.Deprecated=2]="Deprecated"}(xt||(xt={})),function(e){e[e.Inline=1]="Inline",e[e.Gutter=2]="Gutter"}(Rt||(Rt={})),function(e){e[e.Normal=1]="Normal",e[e.Underlined=2]="Underlined"}(It||(It={})),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"}(Dt||(Dt={})),function(e){e[e.AIGenerated=1]="AIGenerated"}(Ct||(Ct={})),function(e){e[e.Invoke=0]="Invoke",e[e.Automatic=1]="Automatic"}(Nt||(Nt={})),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"}(Mt||(Mt={})),function(e){e[e.Left=1]="Left",e[e.Center=2]="Center",e[e.Right=4]="Right",e[e.Full=7]="Full"}(Pt||(Pt={})),function(e){e[e.Word=0]="Word",e[e.Line=1]="Line",e[e.Suggest=2]="Suggest"}(Lt||(Lt={})),function(e){e[e.Left=0]="Left",e[e.Right=1]="Right",e[e.None=2]="None",e[e.LeftOfInjectedText=3]="LeftOfInjectedText",e[e.RightOfInjectedText=4]="RightOfInjectedText"}(kt||(kt={})),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"}(wt||(wt={})),function(e){e[e.None=0]="None",e[e.Text=1]="Text",e[e.Blocks=2]="Blocks"}(Ot||(Ot={})),function(e){e[e.Smooth=0]="Smooth",e[e.Immediate=1]="Immediate"}(Ft||(Ft={})),function(e){e[e.Auto=1]="Auto",e[e.Hidden=2]="Hidden",e[e.Visible=3]="Visible"}(Wt||(Wt={})),function(e){e[e.LTR=0]="LTR",e[e.RTL=1]="RTL"}(zt||(zt={})),function(e){e.Off="off",e.OnCode="onCode",e.On="on"}(Bt||(Bt={})),function(e){e[e.Invoke=1]="Invoke",e[e.TriggerCharacter=2]="TriggerCharacter",e[e.ContentChange=3]="ContentChange"}(Gt||(Gt={})),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"}(Vt||(Vt={})),function(e){e[e.Deprecated=1]="Deprecated"}(jt||(jt={})),function(e){e[e.LTR=0]="LTR",e[e.RTL=1]="RTL"}(Ut||(Ut={})),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"}(Ht||(Ht={})),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"}(Kt||(Kt={})),function(e){e[e.AlwaysGrowsWhenTypingAtEdges=0]="AlwaysGrowsWhenTypingAtEdges",e[e.NeverGrowsWhenTypingAtEdges=1]="NeverGrowsWhenTypingAtEdges",e[e.GrowsOnlyWhenTypingBefore=2]="GrowsOnlyWhenTypingBefore",e[e.GrowsOnlyWhenTypingAfter=3]="GrowsOnlyWhenTypingAfter"}(qt||(qt={})),function(e){e[e.None=0]="None",e[e.Same=1]="Same",e[e.Indent=2]="Indent",e[e.DeepIndent=3]="DeepIndent"}(Jt||(Jt={}));class nr{static{this.CtrlCmd=2048}static{this.Shift=1024}static{this.Alt=512}static{this.WinCtrl=256}static chord(e,n){return function(e,n){return(e|(65535&n)<<16>>>0)>>>0}(e,n)}}class tr{constructor(){this[Xt]="LinkedMap",this._map=new Map,this._head=void 0,this._tail=void 0,this._size=0,this._state=0}clear(){this._map.clear(),this._head=void 0,this._tail=void 0,this._size=0,this._state++}isEmpty(){return!this._head&&!this._tail}get size(){return this._size}get first(){return this._head?.value}get last(){return this._tail?.value}has(e){return this._map.has(e)}get(e,n=0){const t=this._map.get(e);if(t)return 0!==n&&this.touch(t,n),t.value}set(e,n,t=0){let r=this._map.get(e);if(r)r.value=n,0!==t&&this.touch(r,t);else{switch(r={key:e,value:n,next:void 0,previous:void 0},t){case 0:case 2:default:this.addItemLast(r);break;case 1:this.addItemFirst(r)}this._map.set(e,r),this._size++}return this}delete(e){return!!this.remove(e)}remove(e){const n=this._map.get(e);if(n)return this._map.delete(e),this.removeItem(n),this._size--,n.value}shift(){if(!this._head&&!this._tail)return;if(!this._head||!this._tail)throw new Error("Invalid list");const e=this._head;return this._map.delete(e.key),this.removeItem(e),this._size--,e.value}forEach(e,n){const t=this._state;let r=this._head;for(;r;){if(n?e.bind(n)(r.value,r.key,this):e(r.value,r.key,this),this._state!==t)throw new Error("LinkedMap got modified during iteration.");r=r.next}}keys(){const e=this,n=this._state;let t=this._head;const r={[Symbol.iterator]:()=>r,next(){if(e._state!==n)throw new Error("LinkedMap got modified during iteration.");if(t){const e={value:t.key,done:!1};return t=t.next,e}return{value:void 0,done:!0}}};return r}values(){const e=this,n=this._state;let t=this._head;const r={[Symbol.iterator]:()=>r,next(){if(e._state!==n)throw new Error("LinkedMap got modified during iteration.");if(t){const e={value:t.value,done:!1};return t=t.next,e}return{value:void 0,done:!0}}};return r}entries(){const e=this,n=this._state;let t=this._head;const r={[Symbol.iterator]:()=>r,next(){if(e._state!==n)throw new Error("LinkedMap got modified during iteration.");if(t){const e={value:[t.key,t.value],done:!1};return t=t.next,e}return{value:void 0,done:!0}}};return r}[(Xt=Symbol.toStringTag,Symbol.iterator)](){return this.entries()}trimOld(e){if(e>=this.size)return;if(0===e)return void this.clear();let n=this._head,t=this.size;for(;n&&t>e;)this._map.delete(n.key),n=n.next,t--;this._head=n,this._size=t,n&&(n.previous=void 0),this._state++}trimNew(e){if(e>=this.size)return;if(0===e)return void this.clear();let n=this._tail,t=this.size;for(;n&&t>e;)this._map.delete(n.key),n=n.previous,t--;this._tail=n,this._size=t,n&&(n.next=void 0),this._state++}addItemFirst(e){if(this._head||this._tail){if(!this._head)throw new Error("Invalid list");e.next=this._head,this._head.previous=e}else this._tail=e;this._head=e,this._state++}addItemLast(e){if(this._head||this._tail){if(!this._tail)throw new Error("Invalid list");e.previous=this._tail,this._tail.next=e}else this._head=e;this._tail=e,this._state++}removeItem(e){if(e===this._head&&e===this._tail)this._head=void 0,this._tail=void 0;else if(e===this._head){if(!e.next)throw new Error("Invalid list");e.next.previous=void 0,this._head=e.next}else if(e===this._tail){if(!e.previous)throw new Error("Invalid list");e.previous.next=void 0,this._tail=e.previous}else{const n=e.next,t=e.previous;if(!n||!t)throw new Error("Invalid list");n.previous=t,t.next=n}e.next=void 0,e.previous=void 0,this._state++}touch(e,n){if(!this._head||!this._tail)throw new Error("Invalid list");if(1===n||2===n)if(1===n){if(e===this._head)return;const n=e.next,t=e.previous;e===this._tail?(t.next=void 0,this._tail=t):(n.previous=t,t.next=n),e.previous=void 0,e.next=this._head,this._head.previous=e,this._head=e,this._state++}else if(2===n){if(e===this._tail)return;const n=e.next,t=e.previous;e===this._head?(n.previous=void 0,this._head=n):(n.previous=t,t.next=n),e.next=void 0,e.previous=this._tail,this._tail.next=e,this._tail=e,this._state++}}toJSON(){const e=[];return this.forEach((n,t)=>{e.push([t,n])}),e}fromJSON(e){this.clear();for(const[n,t]of e)this.set(n,t)}}class rr extends tr{constructor(e,n=1){super(),this._limit=e,this._ratio=Math.min(Math.max(0,n),1)}get limit(){return this._limit}set limit(e){this._limit=e,this.checkTrim()}get(e,n=2){return super.get(e,n)}peek(e){return super.get(e,0)}set(e,n){return super.set(e,n,2),this}checkTrim(){this.size>this._limit&&this.trim(Math.round(this._limit*this._ratio))}}class or{constructor(){this.map=new Map}add(e,n){let t=this.map.get(e);t||(t=new Set,this.map.set(e,t)),t.add(n)}delete(e,n){const t=this.map.get(e);t&&(t.delete(n),0===t.size&&this.map.delete(e))}forEach(e,n){const t=this.map.get(e);t&&t.forEach(n)}}function ir(e,n,t,r,o){return function(e,n,t,r,o){if(0===r)return!0;const i=n.charCodeAt(r-1);if(0!==e.get(i))return!0;if(13===i||10===i)return!0;if(o>0){const t=n.charCodeAt(r);if(0!==e.get(t))return!0}return!1}(e,n,0,r,o)&&function(e,n,t,r,o){if(r+o===t)return!0;const i=n.charCodeAt(r+o);if(0!==e.get(i))return!0;if(13===i||10===i)return!0;if(o>0){const t=n.charCodeAt(r+o-1);if(0!==e.get(t))return!0}return!1}(e,n,t,r,o)}new class extends rr{constructor(e,n=1){super(e,n)}trim(e){this.trimOld(e)}set(e,n){return super.set(e,n),this.checkTrim(),this}}(10),function(e){e[e.Left=1]="Left",e[e.Center=2]="Center",e[e.Right=4]="Right",e[e.Full=7]="Full"}(Yt||(Yt={})),function(e){e[e.Left=1]="Left",e[e.Center=2]="Center",e[e.Right=3]="Right"}($t||($t={})),function(e){e[e.LTR=0]="LTR",e[e.RTL=1]="RTL"}(Qt||(Qt={})),function(e){e[e.Both=0]="Both",e[e.Right=1]="Right",e[e.Left=2]="Left",e[e.None=3]="None"}(Zt||(Zt={}));class ar{constructor(e,n){this._wordSeparators=e,this._searchRegex=n,this._prevMatchStartIndex=-1,this._prevMatchLength=0}reset(e){this._searchRegex.lastIndex=e,this._prevMatchStartIndex=-1,this._prevMatchLength=0}next(e){const n=e.length;let t;do{if(this._prevMatchStartIndex+this._prevMatchLength===n)return null;if(t=this._searchRegex.exec(e),!t)return null;const r=t.index,o=t[0].length;if(r===this._prevMatchStartIndex&&o===this._prevMatchLength){if(0===o){re(e,n,this._searchRegex.lastIndex)>65535?this._searchRegex.lastIndex+=2:this._searchRegex.lastIndex+=1;continue}return null}if(this._prevMatchStartIndex=r,this._prevMatchLength=o,!this._wordSeparators||ir(this._wordSeparators,e,n,r,o))return t}while(t);return null}}const sr=function(e=""){let n="(-?\\d*\\.\\d\\w*)|([^";for(const t of"`~!@#$%^&*()-=+[{]}\\|;:'\",.<>/?")e.indexOf(t)>=0||(n+="\\"+t);return n+="\\s]+)",new RegExp(n,"g")}();function lr(e){let n=sr;if(e&&e instanceof RegExp)if(e.global)n=e;else{let 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}const cr=new y;function dr(e,n,t,r,o){if(n=lr(n),o||(o=u.first(cr)),t.length>o.maxLen){let i=e-o.maxLen/2;return i<0?i=0:r+=i,dr(e,n,t=t.substring(i,e+o.maxLen/2),r,o)}const i=Date.now(),a=e-1-r;let s=-1,l=null;for(let c=1;!(Date.now()-i>=o.timeBudget);c++){const e=a-o.windowSize*c;n.lastIndex=Math.max(0,e);const r=ur(n,t,a,s);if(!r&&l)break;if(l=r,e<=0)break;s=e}if(l){const e={word:l[0],startColumn:r+1+l.index,endColumn:r+1+l.index+l[0].length};return n.lastIndex=0,e}return null}function ur(e,n,t,r){let o;for(;o=e.exec(n);){const n=o.index||0;if(n<=t&&e.lastIndex>=t)return o;if(r>0&&n>r)return null}return null}cr.unshift({maxLen:1e3,windowSize:15,timeBudget:150});class pr{static computeUnicodeHighlights(e,n,t){const r=t?t.startLineNumber:1,o=t?t.endLineNumber:e.getLineCount(),i=new fr(n),a=i.getCandidateCodePoints();let l;var c,d;l="allNonBasicAscii"===a?new RegExp("[^\\t\\n\\r\\x20-\\x7E]","g"):new RegExp(""+(c=Array.from(a),`[${d=c.map(e=>String.fromCodePoint(e)).join(""),d.replace(/[\\\{\}\*\+\?\|\^\$\.\[\]\(\)]/g,"\\$&")}]`),"g");const u=new ar(null,l),p=[];let f,m=!1,h=0,_=0,g=0;e:for(let y=r,v=o;y<=v;y++){const n=e.getLineContent(y),t=n.length;u.reset(0);do{if(f=u.next(n),f){let e=f.index,r=f.index+f[0].length;if(e>0){te(n.charCodeAt(e-1))&&e--}if(r+1<t){te(n.charCodeAt(r-1))&&r++}const o=n.substring(e,r);let a=dr(e+1,sr,n,0);a&&a.endColumn<=e+1&&(a=null);const l=i.shouldHighlightNonBasicASCII(o,a?a.word:null);if(0!==l){3===l?h++:2===l?_++:1===l?g++:s();const n=1e3;if(p.length>=n){m=!0;break e}p.push(new Ce(y,e+1,y,r+1))}}}while(f)}return{ranges:p,hasMore:m,ambiguousCharacterCount:h,invisibleCharacterCount:_,nonBasicAsciiCharacterCount:g}}static computeUnicodeHighlightReason(e,n){const t=new fr(n);switch(t.shouldHighlightNonBasicASCII(e,null)){case 0:return null;case 2:return{kind:1};case 3:{const r=e.codePointAt(0),o=t.ambiguousCharacters.getPrimaryConfusable(r),i=ae.getLocales().filter(e=>!ae.getInstance(new Set([...n.allowedLocales,e])).isAmbiguous(r));return{kind:0,confusableWith:String.fromCodePoint(o),notAmbiguousInLocales:i}}case 1:return{kind:2}}}}class fr{constructor(e){this.options=e,this.allowedCodePoints=new Set(e.allowedCodePoints),this.ambiguousCharacters=ae.getInstance(new Set(e.allowedLocales))}getCandidateCodePoints(){if(this.options.nonBasicASCII)return"allNonBasicAscii";const e=new Set;if(this.options.invisibleCharacters)for(const n of se.codePoints)mr(String.fromCodePoint(n))||e.add(n);if(this.options.ambiguousCharacters)for(const n of this.ambiguousCharacters.getConfusableCodePoints())e.add(n);for(const n of this.allowedCodePoints)e.delete(n);return e}shouldHighlightNonBasicASCII(e,n){const t=e.codePointAt(0);if(this.allowedCodePoints.has(t))return 0;if(this.options.nonBasicASCII)return 1;let r=!1,o=!1;if(n)for(const i of n){const e=i.codePointAt(0),n=ie(i);r=r||n,n||this.ambiguousCharacters.isAmbiguous(e)||se.isInvisibleCharacter(e)||(o=!0)}return!r&&o?0:this.options.invisibleCharacters&&!mr(e)&&se.isInvisibleCharacter(t)?2:this.options.ambiguousCharacters&&this.ambiguousCharacters.isAmbiguous(t)?3:0}}function mr(e){return" "===e||"\n"===e||"\t"===e}class hr{constructor(e,n,t){this.changes=e,this.moves=n,this.hitTimeout=t}}class _r{constructor(e,n){this.lineRangeMapping=e,this.changes=n}}var gr;function yr(e,n){return(t,r)=>n(e(t),e(r))}!function(e){e.isLessThan=function(e){return e<0},e.isLessThanOrEqual=function(e){return e<=0},e.isGreaterThan=function(e){return e>0},e.isNeitherLessOrGreaterThan=function(e){return 0===e},e.greaterThan=1,e.lessThan=-1,e.neitherLessOrGreaterThan=0}(gr||(gr={}));const vr=(e,n)=>e-n;class br{static{this.empty=new br(e=>{})}constructor(e){this.iterate=e}toArray(){const e=[];return this.iterate(n=>(e.push(n),!0)),e}filter(e){return new br(n=>this.iterate(t=>!e(t)||n(t)))}map(e){return new br(n=>this.iterate(t=>n(e(t))))}findLast(e){let n;return this.iterate(t=>(e(t)&&(n=t),!0)),n}findLastMaxBy(e){let n,t=!0;return this.iterate(r=>((t||gr.isGreaterThan(e(r,n)))&&(t=!1,n=r),!0)),n}}class Tr{static fromTo(e,n){return new Tr(e,n)}static addRange(e,n){let t=0;for(;t<n.length&&n[t].endExclusive<e.start;)t++;let r=t;for(;r<n.length&&n[r].start<=e.endExclusive;)r++;if(t===r)n.splice(t,0,e);else{const o=Math.min(e.start,n[t].start),i=Math.max(e.endExclusive,n[r-1].endExclusive);n.splice(t,r-t,new Tr(o,i))}}static tryCreate(e,n){if(!(e>n))return new Tr(e,n)}static ofLength(e){return new Tr(0,e)}static ofStartAndLength(e,n){return new Tr(e,e+n)}static emptyAt(e){return new Tr(e,e)}constructor(e,n){if(this.start=e,this.endExclusive=n,e>n)throw new a(`Invalid range: ${this.toString()}`)}get isEmpty(){return this.start===this.endExclusive}delta(e){return new Tr(this.start+e,this.endExclusive+e)}deltaStart(e){return new Tr(this.start+e,this.endExclusive)}deltaEnd(e){return new Tr(this.start,this.endExclusive+e)}get length(){return this.endExclusive-this.start}toString(){return`[${this.start}, ${this.endExclusive})`}equals(e){return this.start===e.start&&this.endExclusive===e.endExclusive}contains(e){return this.start<=e&&e<this.endExclusive}join(e){return new Tr(Math.min(this.start,e.start),Math.max(this.endExclusive,e.endExclusive))}intersect(e){const n=Math.max(this.start,e.start),t=Math.min(this.endExclusive,e.endExclusive);if(n<=t)return new Tr(n,t)}intersectionLength(e){const n=Math.max(this.start,e.start),t=Math.min(this.endExclusive,e.endExclusive);return Math.max(0,t-n)}intersects(e){return Math.max(this.start,e.start)<Math.min(this.endExclusive,e.endExclusive)}intersectsOrTouches(e){return Math.max(this.start,e.start)<=Math.min(this.endExclusive,e.endExclusive)}isBefore(e){return this.endExclusive<=e.start}isAfter(e){return this.start>=e.endExclusive}slice(e){return e.slice(this.start,this.endExclusive)}substring(e){return e.substring(this.start,this.endExclusive)}clip(e){if(this.isEmpty)throw new a(`Invalid clipping range: ${this.toString()}`);return Math.max(this.start,Math.min(this.endExclusive-1,e))}clipCyclic(e){if(this.isEmpty)throw new a(`Invalid clipping range: ${this.toString()}`);return e<this.start?this.endExclusive-(this.start-e)%this.length:e>=this.endExclusive?this.start+(e-this.start)%this.length:e}forEach(e){for(let n=this.start;n<this.endExclusive;n++)e(n)}joinRightTouching(e){if(this.endExclusive!==e.start)throw new a(`Invalid join: ${this.toString()} and ${e.toString()}`);return new Tr(this.start,e.endExclusive)}}function Sr(e,n){const t=Er(e,n);return-1===t?void 0:e[t]}function Er(e,n,t=0,r=e.length){let o=t,i=r;for(;o<i;){const t=Math.floor((o+i)/2);n(e[t])?o=t+1:i=t}return o-1}function Ar(e,n,t=0,r=e.length){let o=t,i=r;for(;o<i;){const t=Math.floor((o+i)/2);n(e[t])?i=t:o=t+1}return o}class xr{static{this.assertInvariants=!1}constructor(e){this._array=e,this._findLastMonotonousLastIdx=0}findLastMonotonous(e){if(xr.assertInvariants){if(this._prevFindLastPredicate)for(const n of this._array)if(this._prevFindLastPredicate(n)&&!e(n))throw new Error("MonotonousArray: current predicate must be weaker than (or equal to) the previous predicate.");this._prevFindLastPredicate=e}const n=Er(this._array,e,this._findLastMonotonousLastIdx);return this._findLastMonotonousLastIdx=n+1,-1===n?void 0:this._array[n]}}class Rr{static ofLength(e,n){return new Rr(e,e+n)}static fromRange(e){return new Rr(e.startLineNumber,e.endLineNumber)}static fromRangeInclusive(e){return new Rr(e.startLineNumber,e.endLineNumber+1)}static{this.compareByStart=yr(e=>e.startLineNumber,vr)}static joinMany(e){if(0===e.length)return[];let n=new Ir(e[0].slice());for(let t=1;t<e.length;t++)n=n.getUnion(new Ir(e[t].slice()));return n.ranges}static join(e){if(0===e.length)throw new a("lineRanges cannot be empty");let n=e[0].startLineNumber,t=e[0].endLineNumberExclusive;for(let r=1;r<e.length;r++)n=Math.min(n,e[r].startLineNumber),t=Math.max(t,e[r].endLineNumberExclusive);return new Rr(n,t)}static deserialize(e){return new Rr(e[0],e[1])}constructor(e,n){if(e>n)throw new a(`startLineNumber ${e} cannot be after endLineNumberExclusive ${n}`);this.startLineNumber=e,this.endLineNumberExclusive=n}contains(e){return this.startLineNumber<=e&&e<this.endLineNumberExclusive}get isEmpty(){return this.startLineNumber===this.endLineNumberExclusive}delta(e){return new Rr(this.startLineNumber+e,this.endLineNumberExclusive+e)}deltaLength(e){return new Rr(this.startLineNumber,this.endLineNumberExclusive+e)}get length(){return this.endLineNumberExclusive-this.startLineNumber}join(e){return new Rr(Math.min(this.startLineNumber,e.startLineNumber),Math.max(this.endLineNumberExclusive,e.endLineNumberExclusive))}toString(){return`[${this.startLineNumber},${this.endLineNumberExclusive})`}intersect(e){const n=Math.max(this.startLineNumber,e.startLineNumber),t=Math.min(this.endLineNumberExclusive,e.endLineNumberExclusive);if(n<=t)return new Rr(n,t)}intersectsStrict(e){return this.startLineNumber<e.endLineNumberExclusive&&e.startLineNumber<this.endLineNumberExclusive}intersectsOrTouches(e){return this.startLineNumber<=e.endLineNumberExclusive&&e.startLineNumber<=this.endLineNumberExclusive}equals(e){return this.startLineNumber===e.startLineNumber&&this.endLineNumberExclusive===e.endLineNumberExclusive}toInclusiveRange(){return this.isEmpty?null:new Ce(this.startLineNumber,1,this.endLineNumberExclusive-1,Number.MAX_SAFE_INTEGER)}toExclusiveRange(){return new Ce(this.startLineNumber,1,this.endLineNumberExclusive,1)}mapToLineArray(e){const n=[];for(let t=this.startLineNumber;t<this.endLineNumberExclusive;t++)n.push(e(t));return n}forEach(e){for(let n=this.startLineNumber;n<this.endLineNumberExclusive;n++)e(n)}serialize(){return[this.startLineNumber,this.endLineNumberExclusive]}toOffsetRange(){return new Tr(this.startLineNumber-1,this.endLineNumberExclusive-1)}addMargin(e,n){return new Rr(this.startLineNumber-e,this.endLineNumberExclusive+n)}}class Ir{constructor(e=[]){this._normalizedRanges=e}get ranges(){return this._normalizedRanges}addRange(e){if(0===e.length)return;const n=Ar(this._normalizedRanges,n=>n.endLineNumberExclusive>=e.startLineNumber),t=Er(this._normalizedRanges,n=>n.startLineNumber<=e.endLineNumberExclusive)+1;if(n===t)this._normalizedRanges.splice(n,0,e);else if(n===t-1){const t=this._normalizedRanges[n];this._normalizedRanges[n]=t.join(e)}else{const r=this._normalizedRanges[n].join(this._normalizedRanges[t-1]).join(e);this._normalizedRanges.splice(n,t-n,r)}}contains(e){const n=Sr(this._normalizedRanges,n=>n.startLineNumber<=e);return!!n&&n.endLineNumberExclusive>e}intersects(e){const n=Sr(this._normalizedRanges,n=>n.startLineNumber<e.endLineNumberExclusive);return!!n&&n.endLineNumberExclusive>e.startLineNumber}getUnion(e){if(0===this._normalizedRanges.length)return e;if(0===e._normalizedRanges.length)return this;const n=[];let t=0,r=0,o=null;for(;t<this._normalizedRanges.length||r<e._normalizedRanges.length;){let i=null;if(t<this._normalizedRanges.length&&r<e._normalizedRanges.length){const n=this._normalizedRanges[t],o=e._normalizedRanges[r];n.startLineNumber<o.startLineNumber?(i=n,t++):(i=o,r++)}else t<this._normalizedRanges.length?(i=this._normalizedRanges[t],t++):(i=e._normalizedRanges[r],r++);null===o?o=i:o.endLineNumberExclusive>=i.startLineNumber?o=new Rr(o.startLineNumber,Math.max(o.endLineNumberExclusive,i.endLineNumberExclusive)):(n.push(o),o=i)}return null!==o&&n.push(o),new Ir(n)}subtractFrom(e){const n=Ar(this._normalizedRanges,n=>n.endLineNumberExclusive>=e.startLineNumber),t=Er(this._normalizedRanges,n=>n.startLineNumber<=e.endLineNumberExclusive)+1;if(n===t)return new Ir([e]);const r=[];let o=e.startLineNumber;for(let i=n;i<t;i++){const e=this._normalizedRanges[i];e.startLineNumber>o&&r.push(new Rr(o,e.startLineNumber)),o=e.endLineNumberExclusive}return o<e.endLineNumberExclusive&&r.push(new Rr(o,e.endLineNumberExclusive)),new Ir(r)}toString(){return this._normalizedRanges.map(e=>e.toString()).join(", ")}getIntersection(e){const n=[];let t=0,r=0;for(;t<this._normalizedRanges.length&&r<e._normalizedRanges.length;){const o=this._normalizedRanges[t],i=e._normalizedRanges[r],a=o.intersect(i);a&&!a.isEmpty&&n.push(a),o.endLineNumberExclusive<i.endLineNumberExclusive?t++:r++}return new Ir(n)}getWithDelta(e){return new Ir(this._normalizedRanges.map(n=>n.delta(e)))}}class Dr{static{this.zero=new Dr(0,0)}static betweenPositions(e,n){return e.lineNumber===n.lineNumber?new Dr(0,n.column-e.column):new Dr(n.lineNumber-e.lineNumber,n.column-1)}static fromPosition(e){return new Dr(e.lineNumber-1,e.column-1)}static ofRange(e){return Dr.betweenPositions(e.getStartPosition(),e.getEndPosition())}static ofText(e){let n=0,t=0;for(const r of e)"\n"===r?(n++,t=0):t++;return new Dr(n,t)}constructor(e,n){this.lineCount=e,this.columnCount=n}isGreaterThanOrEqualTo(e){return this.lineCount!==e.lineCount?this.lineCount>e.lineCount:this.columnCount>=e.columnCount}add(e){return 0===e.lineCount?new Dr(this.lineCount,this.columnCount+e.columnCount):new Dr(this.lineCount+e.lineCount,e.columnCount)}createRange(e){return 0===this.lineCount?new Ce(e.lineNumber,e.column,e.lineNumber,e.column+this.columnCount):new Ce(e.lineNumber,e.column,e.lineNumber+this.lineCount,this.columnCount+1)}toRange(){return new Ce(1,1,this.lineCount+1,this.columnCount+1)}toLineRange(){return Rr.ofLength(1,this.lineCount+1)}addToPosition(e){return 0===this.lineCount?new De(e.lineNumber,e.column+this.columnCount):new De(e.lineNumber+this.lineCount,this.columnCount+1)}toString(){return`${this.lineCount},${this.columnCount}`}}class Cr{getOffsetRange(e){return new Tr(this.getOffset(e.getStartPosition()),this.getOffset(e.getEndPosition()))}getRange(e){return Ce.fromPositions(this.getPosition(e.start),this.getPosition(e.endExclusive))}getStringReplacement(e){return new Nr.deps.StringReplacement(this.getOffsetRange(e.range),e.text)}getTextReplacement(e){return new Nr.deps.TextReplacement(this.getRange(e.replaceRange),e.newText)}getTextEdit(e){const n=e.replacements.map(e=>this.getTextReplacement(e));return new Nr.deps.TextEdit(n)}}class Nr{static{this._deps=void 0}static get deps(){if(!this._deps)throw new Error("Dependencies not set. Call _setDependencies first.");return this._deps}}class Mr extends Cr{constructor(e){super(),this.text=e,this.lineStartOffsetByLineIdx=[],this.lineEndOffsetByLineIdx=[],this.lineStartOffsetByLineIdx.push(0);for(let n=0;n<e.length;n++)"\n"===e.charAt(n)&&(this.lineStartOffsetByLineIdx.push(n+1),n>0&&"\r"===e.charAt(n-1)?this.lineEndOffsetByLineIdx.push(n-1):this.lineEndOffsetByLineIdx.push(n));this.lineEndOffsetByLineIdx.push(e.length)}getOffset(e){const n=this._validatePosition(e);return this.lineStartOffsetByLineIdx[n.lineNumber-1]+n.column-1}_validatePosition(e){if(e.lineNumber<1)return new De(1,1);const n=this.textLength.lineCount+1;if(e.lineNumber>n){const e=this.getLineLength(n);return new De(n,e+1)}if(e.column<1)return new De(e.lineNumber,1);const t=this.getLineLength(e.lineNumber);return e.column-1>t?new De(e.lineNumber,t+1):e}getPosition(e){const n=Er(this.lineStartOffsetByLineIdx,n=>n<=e),t=n+1,r=e-this.lineStartOffsetByLineIdx[n]+1;return new De(t,r)}get textLength(){const e=this.lineStartOffsetByLineIdx.length-1;return new Nr.deps.TextLength(e,this.text.length-this.lineStartOffsetByLineIdx[e])}getLineLength(e){return this.lineEndOffsetByLineIdx[e-1]-this.lineStartOffsetByLineIdx[e-1]}}class Pr{constructor(){this._transformer=void 0}get endPositionExclusive(){return this.length.addToPosition(new De(1,1))}get lineRange(){return this.length.toLineRange()}getValue(){return this.getValueOfRange(this.length.toRange())}getValueOfOffsetRange(e){return this.getValueOfRange(this.getTransformer().getRange(e))}getLineLength(e){return this.getValueOfRange(new Ce(e,1,e,Number.MAX_SAFE_INTEGER)).length}getTransformer(){return this._transformer||(this._transformer=new Mr(this.getValue())),this._transformer}getLineAt(e){return this.getValueOfRange(new Ce(e,1,e,Number.MAX_SAFE_INTEGER))}}class Lr extends Pr{constructor(e,n){!function(e,n="unexpected state"){if(!e)throw"string"==typeof n?new a(`Assertion Failed: ${n}`):n}(n>=1),super(),this._getLineContent=e,this._lineCount=n}getValueOfRange(e){if(e.startLineNumber===e.endLineNumber)return this._getLineContent(e.startLineNumber).substring(e.startColumn-1,e.endColumn-1);let n=this._getLineContent(e.startLineNumber).substring(e.startColumn-1);for(let t=e.startLineNumber+1;t<e.endLineNumber;t++)n+="\n"+this._getLineContent(t);return n+="\n"+this._getLineContent(e.endLineNumber).substring(0,e.endColumn-1),n}getLineLength(e){return this._getLineContent(e).length}get length(){const e=this._getLineContent(this._lineCount);return new Dr(this._lineCount-1,e.length)}}class kr extends Lr{constructor(e){super(n=>e[n-1],e.length)}}class wr{static joinReplacements(e,n){if(0===e.length)throw new a;if(1===e.length)return e[0];const t=e[0].range.getStartPosition(),r=e[e.length-1].range.getEndPosition();let o="";for(let i=0;i<e.length;i++){const t=e[i];if(o+=t.text,i<e.length-1){const r=e[i+1],a=Ce.fromPositions(t.range.getEndPosition(),r.range.getStartPosition());o+=n.getValueOfRange(a)}}return new wr(Ce.fromPositions(t,r),o)}static fromStringReplacement(e,n){return new wr(n.getTransformer().getRange(e.replaceRange),e.newText)}static delete(e){return new wr(e,"")}constructor(e,n){this.range=e,this.text=n}get isEmpty(){return this.range.isEmpty()&&0===this.text.length}static equals(e,n){return e.range.equalsRange(n.range)&&e.text===n.text}equals(e){return wr.equals(this,e)}removeCommonPrefixAndSuffix(e){return this.removeCommonPrefix(e).removeCommonSuffix(e)}removeCommonPrefix(e){const n=e.getValueOfRange(this.range).replaceAll("\r\n","\n"),t=this.text.replaceAll("\r\n","\n"),r=function(e,n){const t=Math.min(e.length,n.length);let r;for(r=0;r<t;r++)if(e.charCodeAt(r)!==n.charCodeAt(r))return r;return t}(n,t),o=Dr.ofText(n.substring(0,r)).addToPosition(this.range.getStartPosition()),i=t.substring(r),a=Ce.fromPositions(o,this.range.getEndPosition());return new wr(a,i)}removeCommonSuffix(e){const n=e.getValueOfRange(this.range).replaceAll("\r\n","\n"),t=this.text.replaceAll("\r\n","\n"),r=function(e,n){const t=Math.min(e.length,n.length);let r;const o=e.length-1,i=n.length-1;for(r=0;r<t;r++)if(e.charCodeAt(o-r)!==n.charCodeAt(i-r))return r;return t}(n,t),o=Dr.ofText(n.substring(0,n.length-r)).addToPosition(this.range.getStartPosition()),i=t.substring(0,t.length-r),a=Ce.fromPositions(this.range.getStartPosition(),o);return new wr(a,i)}toString(){const e=this.range.getStartPosition(),n=this.range.getEndPosition();return`(${e.lineNumber},${e.column} -> ${n.lineNumber},${n.column}): "${this.text}"`}}class Or{static inverse(e,n,t){const r=[];let o=1,i=1;for(const s of e){const e=new Or(new Rr(o,s.original.startLineNumber),new Rr(i,s.modified.startLineNumber));e.modified.isEmpty||r.push(e),o=s.original.endLineNumberExclusive,i=s.modified.endLineNumberExclusive}const a=new Or(new Rr(o,n+1),new Rr(i,t+1));return a.modified.isEmpty||r.push(a),r}static clip(e,n,t){const r=[];for(const o of e){const e=o.original.intersect(n),i=o.modified.intersect(t);e&&!e.isEmpty&&i&&!i.isEmpty&&r.push(new Or(e,i))}return r}constructor(e,n){this.original=e,this.modified=n}toString(){return`{${this.original.toString()}->${this.modified.toString()}}`}flip(){return new Or(this.modified,this.original)}join(e){return new Or(this.original.join(e.original),this.modified.join(e.modified))}toRangeMapping(){const e=this.original.toInclusiveRange(),n=this.modified.toInclusiveRange();if(e&&n)return new Br(e,n);if(1===this.original.startLineNumber||1===this.modified.startLineNumber){if(1!==this.modified.startLineNumber||1!==this.original.startLineNumber)throw new a("not a valid diff");return new Br(new Ce(this.original.startLineNumber,1,this.original.endLineNumberExclusive,1),new Ce(this.modified.startLineNumber,1,this.modified.endLineNumberExclusive,1))}return new Br(new Ce(this.original.startLineNumber-1,Number.MAX_SAFE_INTEGER,this.original.endLineNumberExclusive-1,Number.MAX_SAFE_INTEGER),new Ce(this.modified.startLineNumber-1,Number.MAX_SAFE_INTEGER,this.modified.endLineNumberExclusive-1,Number.MAX_SAFE_INTEGER))}toRangeMapping2(e,n){if(Wr(this.original.endLineNumberExclusive,e)&&Wr(this.modified.endLineNumberExclusive,n))return new Br(new Ce(this.original.startLineNumber,1,this.original.endLineNumberExclusive,1),new Ce(this.modified.startLineNumber,1,this.modified.endLineNumberExclusive,1));if(!this.original.isEmpty&&!this.modified.isEmpty)return new Br(Ce.fromPositions(new De(this.original.startLineNumber,1),Fr(new De(this.original.endLineNumberExclusive-1,Number.MAX_SAFE_INTEGER),e)),Ce.fromPositions(new De(this.modified.startLineNumber,1),Fr(new De(this.modified.endLineNumberExclusive-1,Number.MAX_SAFE_INTEGER),n)));if(this.original.startLineNumber>1&&this.modified.startLineNumber>1)return new Br(Ce.fromPositions(Fr(new De(this.original.startLineNumber-1,Number.MAX_SAFE_INTEGER),e),Fr(new De(this.original.endLineNumberExclusive-1,Number.MAX_SAFE_INTEGER),e)),Ce.fromPositions(Fr(new De(this.modified.startLineNumber-1,Number.MAX_SAFE_INTEGER),n),Fr(new De(this.modified.endLineNumberExclusive-1,Number.MAX_SAFE_INTEGER),n)));throw new a}}function Fr(e,n){if(e.lineNumber<1)return new De(1,1);if(e.lineNumber>n.length)return new De(n.length,n[n.length-1].length+1);const t=n[e.lineNumber-1];return e.column>t.length+1?new De(e.lineNumber,t.length+1):e}function Wr(e,n){return e>=1&&e<=n.length}class zr extends Or{static fromRangeMappings(e){const n=Rr.join(e.map(e=>Rr.fromRangeInclusive(e.originalRange))),t=Rr.join(e.map(e=>Rr.fromRangeInclusive(e.modifiedRange)));return new zr(n,t,e)}constructor(e,n,t){super(e,n),this.innerChanges=t}flip(){return new zr(this.modified,this.original,this.innerChanges?.map(e=>e.flip()))}withInnerChangesFromLineRanges(){return new zr(this.original,this.modified,[this.toRangeMapping()])}}class Br{static fromEdit(e){const n=e.getNewRanges();return e.replacements.map((e,t)=>new Br(e.range,n[t]))}static assertSorted(e){for(let n=1;n<e.length;n++){const t=e[n-1],r=e[n];if(!t.originalRange.getEndPosition().isBeforeOrEqual(r.originalRange.getStartPosition())||!t.modifiedRange.getEndPosition().isBeforeOrEqual(r.modifiedRange.getStartPosition()))throw new a("Range mappings must be sorted")}}constructor(e,n){this.originalRange=e,this.modifiedRange=n}toString(){return`{${this.originalRange.toString()}->${this.modifiedRange.toString()}}`}flip(){return new Br(this.modifiedRange,this.originalRange)}toTextEdit(e){const n=e.getValueOfRange(this.modifiedRange);return new wr(this.originalRange,n)}}function Gr(e,n,t,r=!1){const o=[];for(const i of function*(e,n){let t,r;for(const o of e)void 0!==r&&n(r,o)?t.push(o):(t&&(yield t),t=[o]),r=o;t&&(yield t)}(e.map(e=>function(e,n,t){let r=0,o=0;1===e.modifiedRange.endColumn&&1===e.originalRange.endColumn&&e.originalRange.startLineNumber+r<=e.originalRange.endLineNumber&&e.modifiedRange.startLineNumber+r<=e.modifiedRange.endLineNumber&&(o=-1);e.modifiedRange.startColumn-1>=t.getLineLength(e.modifiedRange.startLineNumber)&&e.originalRange.startColumn-1>=n.getLineLength(e.originalRange.startLineNumber)&&e.originalRange.startLineNumber<=e.originalRange.endLineNumber+o&&e.modifiedRange.startLineNumber<=e.modifiedRange.endLineNumber+o&&(r=1);const i=new Rr(e.originalRange.startLineNumber+r,e.originalRange.endLineNumber+1+o),a=new Rr(e.modifiedRange.startLineNumber+r,e.modifiedRange.endLineNumber+1+o);return new zr(i,a,[e])}(e,n,t)),(e,n)=>e.original.intersectsOrTouches(n.original)||e.modified.intersectsOrTouches(n.modified))){const e=i[0],n=i[i.length-1];o.push(new zr(e.original.join(n.original),e.modified.join(n.modified),i.map(e=>e.innerChanges[0])))}return l(()=>{if(!r&&o.length>0){if(o[0].modified.startLineNumber!==o[0].original.startLineNumber)return!1;if(t.length.lineCount-o[o.length-1].modified.endLineNumberExclusive!==n.length.lineCount-o[o.length-1].original.endLineNumberExclusive)return!1}return c(o,(e,n)=>n.original.startLineNumber-e.original.endLineNumberExclusive===n.modified.startLineNumber-e.modified.endLineNumberExclusive&&e.original.endLineNumberExclusive<n.original.startLineNumber&&e.modified.endLineNumberExclusive<n.modified.startLineNumber)}),o}class Vr{computeDiff(e,n,t){const r=new Jr(e,n,{maxComputationTime:t.maxComputationTimeMs,shouldIgnoreTrimWhitespace:t.ignoreTrimWhitespace,shouldComputeCharChanges:!0,shouldMakePrettyDiff:!0,shouldPostProcessCharChanges:!0}).computeDiff(),o=[];let i=null;for(const a of r.changes){let e,n;e=0===a.originalEndLineNumber?new Rr(a.originalStartLineNumber+1,a.originalStartLineNumber+1):new Rr(a.originalStartLineNumber,a.originalEndLineNumber+1),n=0===a.modifiedEndLineNumber?new Rr(a.modifiedStartLineNumber+1,a.modifiedStartLineNumber+1):new Rr(a.modifiedStartLineNumber,a.modifiedEndLineNumber+1);let t=new zr(e,n,a.charChanges?.map(e=>new Br(new Ce(e.originalStartLineNumber,e.originalStartColumn,e.originalEndLineNumber,e.originalEndColumn),new Ce(e.modifiedStartLineNumber,e.modifiedStartColumn,e.modifiedEndLineNumber,e.modifiedEndColumn))));i&&(i.modified.endLineNumberExclusive!==t.modified.startLineNumber&&i.original.endLineNumberExclusive!==t.original.startLineNumber||(t=new zr(i.original.join(t.original),i.modified.join(t.modified),i.innerChanges&&t.innerChanges?i.innerChanges.concat(t.innerChanges):void 0),o.pop())),o.push(t),i=t}return l(()=>c(o,(e,n)=>n.original.startLineNumber-e.original.endLineNumberExclusive===n.modified.startLineNumber-e.modified.endLineNumberExclusive&&e.original.endLineNumberExclusive<n.original.startLineNumber&&e.modified.endLineNumberExclusive<n.modified.startLineNumber)),new hr(o,[],r.quitEarly)}}function jr(e,n,t,r){return new Ie(e,n,t).ComputeDiff(r)}let Ur=class{constructor(e){const n=[],t=[];for(let r=0,o=e.length;r<o;r++)n[r]=Xr(e[r],1),t[r]=Yr(e[r],1);this.lines=e,this._startColumns=n,this._endColumns=t}getElements(){const e=[];for(let n=0,t=this.lines.length;n<t;n++)e[n]=this.lines[n].substring(this._startColumns[n]-1,this._endColumns[n]-1);return e}getStrictElement(e){return this.lines[e]}getStartLineNumber(e){return e+1}getEndLineNumber(e){return e+1}createCharSequence(e,n,t){const r=[],o=[],i=[];let a=0;for(let s=n;s<=t;s++){const n=this.lines[s],l=e?this._startColumns[s]:1,c=e?this._endColumns[s]:n.length+1;for(let e=l;e<c;e++)r[a]=n.charCodeAt(e-1),o[a]=s+1,i[a]=e,a++;!e&&s<t&&(r[a]=10,o[a]=s+1,i[a]=n.length+1,a++)}return new Hr(r,o,i)}};class Hr{constructor(e,n,t){this._charCodes=e,this._lineNumbers=n,this._columns=t}toString(){return"["+this._charCodes.map((e,n)=>(10===e?"\\n":String.fromCharCode(e))+`-(${this._lineNumbers[n]},${this._columns[n]})`).join(", ")+"]"}_assertIndex(e,n){if(e<0||e>=n.length)throw new Error("Illegal index")}getElements(){return this._charCodes}getStartLineNumber(e){return e>0&&e===this._lineNumbers.length?this.getEndLineNumber(e-1):(this._assertIndex(e,this._lineNumbers),this._lineNumbers[e])}getEndLineNumber(e){return-1===e?this.getStartLineNumber(e+1):(this._assertIndex(e,this._lineNumbers),10===this._charCodes[e]?this._lineNumbers[e]+1:this._lineNumbers[e])}getStartColumn(e){return e>0&&e===this._columns.length?this.getEndColumn(e-1):(this._assertIndex(e,this._columns),this._columns[e])}getEndColumn(e){return-1===e?this.getStartColumn(e+1):(this._assertIndex(e,this._columns),10===this._charCodes[e]?1:this._columns[e]+1)}}class Kr{constructor(e,n,t,r,o,i,a,s){this.originalStartLineNumber=e,this.originalStartColumn=n,this.originalEndLineNumber=t,this.originalEndColumn=r,this.modifiedStartLineNumber=o,this.modifiedStartColumn=i,this.modifiedEndLineNumber=a,this.modifiedEndColumn=s}static createFromDiffChange(e,n,t){const r=n.getStartLineNumber(e.originalStart),o=n.getStartColumn(e.originalStart),i=n.getEndLineNumber(e.originalStart+e.originalLength-1),a=n.getEndColumn(e.originalStart+e.originalLength-1),s=t.getStartLineNumber(e.modifiedStart),l=t.getStartColumn(e.modifiedStart),c=t.getEndLineNumber(e.modifiedStart+e.modifiedLength-1),d=t.getEndColumn(e.modifiedStart+e.modifiedLength-1);return new Kr(r,o,i,a,s,l,c,d)}}class qr{constructor(e,n,t,r,o){this.originalStartLineNumber=e,this.originalEndLineNumber=n,this.modifiedStartLineNumber=t,this.modifiedEndLineNumber=r,this.charChanges=o}static createFromDiffResult(e,n,t,r,o,i,a){let s,l,c,d,u;if(0===n.originalLength?(s=t.getStartLineNumber(n.originalStart)-1,l=0):(s=t.getStartLineNumber(n.originalStart),l=t.getEndLineNumber(n.originalStart+n.originalLength-1)),0===n.modifiedLength?(c=r.getStartLineNumber(n.modifiedStart)-1,d=0):(c=r.getStartLineNumber(n.modifiedStart),d=r.getEndLineNumber(n.modifiedStart+n.modifiedLength-1)),i&&n.originalLength>0&&n.originalLength<20&&n.modifiedLength>0&&n.modifiedLength<20&&o()){const i=t.createCharSequence(e,n.originalStart,n.originalStart+n.originalLength-1),s=r.createCharSequence(e,n.modifiedStart,n.modifiedStart+n.modifiedLength-1);if(i.getElements().length>0&&s.getElements().length>0){let e=jr(i,s,o,!0).changes;a&&(e=function(e){if(e.length<=1)return e;const n=[e[0]];let t=n[0];for(let r=1,o=e.length;r<o;r++){const o=e[r],i=o.originalStart-(t.originalStart+t.originalLength),a=o.modifiedStart-(t.modifiedStart+t.modifiedLength);Math.min(i,a)<3?(t.originalLength=o.originalStart+o.originalLength-t.originalStart,t.modifiedLength=o.modifiedStart+o.modifiedLength-t.modifiedStart):(n.push(o),t=o)}return n}(e)),u=[];for(let n=0,t=e.length;n<t;n++)u.push(Kr.createFromDiffChange(e[n],i,s))}}return new qr(s,l,c,d,u)}}class Jr{constructor(e,n,t){this.shouldComputeCharChanges=t.shouldComputeCharChanges,this.shouldPostProcessCharChanges=t.shouldPostProcessCharChanges,this.shouldIgnoreTrimWhitespace=t.shouldIgnoreTrimWhitespace,this.shouldMakePrettyDiff=t.shouldMakePrettyDiff,this.originalLines=e,this.modifiedLines=n,this.original=new Ur(e),this.modified=new Ur(n),this.continueLineDiff=$r(t.maxComputationTime),this.continueCharDiff=$r(0===t.maxComputationTime?0:Math.min(t.maxComputationTime,5e3))}computeDiff(){if(1===this.original.lines.length&&0===this.original.lines[0].length)return 1===this.modified.lines.length&&0===this.modified.lines[0].length?{quitEarly:!1,changes:[]}:{quitEarly:!1,changes:[{originalStartLineNumber:1,originalEndLineNumber:1,modifiedStartLineNumber:1,modifiedEndLineNumber:this.modified.lines.length,charChanges:void 0}]};if(1===this.modified.lines.length&&0===this.modified.lines[0].length)return{quitEarly:!1,changes:[{originalStartLineNumber:1,originalEndLineNumber:this.original.lines.length,modifiedStartLineNumber:1,modifiedEndLineNumber:1,charChanges:void 0}]};const e=jr(this.original,this.modified,this.continueLineDiff,this.shouldMakePrettyDiff),n=e.changes,t=e.quitEarly;if(this.shouldIgnoreTrimWhitespace){const e=[];for(let t=0,r=n.length;t<r;t++)e.push(qr.createFromDiffResult(this.shouldIgnoreTrimWhitespace,n[t],this.original,this.modified,this.continueCharDiff,this.shouldComputeCharChanges,this.shouldPostProcessCharChanges));return{quitEarly:t,changes:e}}const r=[];let o=0,i=0;for(let a=-1,s=n.length;a<s;a++){const e=a+1<s?n[a+1]:null,t=e?e.originalStart:this.originalLines.length,l=e?e.modifiedStart:this.modifiedLines.length;for(;o<t&&i<l;){const e=this.originalLines[o],n=this.modifiedLines[i];if(e!==n){{let t=Xr(e,1),a=Xr(n,1);for(;t>1&&a>1;){if(e.charCodeAt(t-2)!==n.charCodeAt(a-2))break;t--,a--}(t>1||a>1)&&this._pushTrimWhitespaceCharChange(r,o+1,1,t,i+1,1,a)}{let t=Yr(e,1),a=Yr(n,1);const s=e.length+1,l=n.length+1;for(;t<s&&a<l;){if(e.charCodeAt(t-1)!==e.charCodeAt(a-1))break;t++,a++}(t<s||a<l)&&this._pushTrimWhitespaceCharChange(r,o+1,t,s,i+1,a,l)}}o++,i++}e&&(r.push(qr.createFromDiffResult(this.shouldIgnoreTrimWhitespace,e,this.original,this.modified,this.continueCharDiff,this.shouldComputeCharChanges,this.shouldPostProcessCharChanges)),o+=e.originalLength,i+=e.modifiedLength)}return{quitEarly:t,changes:r}}_pushTrimWhitespaceCharChange(e,n,t,r,o,i,a){if(this._mergeTrimWhitespaceCharChange(e,n,t,r,o,i,a))return;let s;this.shouldComputeCharChanges&&(s=[new Kr(n,t,n,r,o,i,o,a)]),e.push(new qr(n,n,o,o,s))}_mergeTrimWhitespaceCharChange(e,n,t,r,o,i,a){const s=e.length;if(0===s)return!1;const l=e[s-1];return 0!==l.originalEndLineNumber&&0!==l.modifiedEndLineNumber&&(l.originalEndLineNumber===n&&l.modifiedEndLineNumber===o?(this.shouldComputeCharChanges&&l.charChanges&&l.charChanges.push(new Kr(n,t,n,r,o,i,o,a)),!0):l.originalEndLineNumber+1===n&&l.modifiedEndLineNumber+1===o&&(l.originalEndLineNumber=n,l.modifiedEndLineNumber=o,this.shouldComputeCharChanges&&l.charChanges&&l.charChanges.push(new Kr(n,t,n,r,o,i,o,a)),!0))}}function Xr(e,n){const t=function(e){for(let n=0,t=e.length;n<t;n++){const t=e.charCodeAt(n);if(32!==t&&9!==t)return n}return-1}(e);return-1===t?n:t+1}function Yr(e,n){const t=function(e,n=e.length-1){for(let t=n;t>=0;t--){const n=e.charCodeAt(t);if(32!==n&&9!==n)return t}return-1}(e);return-1===t?n:t+2}function $r(e){if(0===e)return()=>!0;const n=Date.now();return()=>Date.now()-n<e}class Qr{static trivial(e,n){return new Qr([new Zr(Tr.ofLength(e.length),Tr.ofLength(n.length))],!1)}static trivialTimedOut(e,n){return new Qr([new Zr(Tr.ofLength(e.length),Tr.ofLength(n.length))],!0)}constructor(e,n){this.diffs=e,this.hitTimeout=n}}class Zr{static invert(e,n){const t=[];return function(e,n){for(let t=0;t<=e.length;t++)n(0===t?void 0:e[t-1],t===e.length?void 0:e[t])}(e,(e,r)=>{t.push(Zr.fromOffsetPairs(e?e.getEndExclusives():eo.zero,r?r.getStarts():new eo(n,(e?e.seq2Range.endExclusive-e.seq1Range.endExclusive:0)+n)))}),t}static fromOffsetPairs(e,n){return new Zr(new Tr(e.offset1,n.offset1),new Tr(e.offset2,n.offset2))}static assertSorted(e){let n;for(const t of e){if(n&&!(n.seq1Range.endExclusive<=t.seq1Range.start&&n.seq2Range.endExclusive<=t.seq2Range.start))throw new a("Sequence diffs must be sorted");n=t}}constructor(e,n){this.seq1Range=e,this.seq2Range=n}swap(){return new Zr(this.seq2Range,this.seq1Range)}toString(){return`${this.seq1Range} <-> ${this.seq2Range}`}join(e){return new Zr(this.seq1Range.join(e.seq1Range),this.seq2Range.join(e.seq2Range))}delta(e){return 0===e?this:new Zr(this.seq1Range.delta(e),this.seq2Range.delta(e))}deltaStart(e){return 0===e?this:new Zr(this.seq1Range.deltaStart(e),this.seq2Range.deltaStart(e))}deltaEnd(e){return 0===e?this:new Zr(this.seq1Range.deltaEnd(e),this.seq2Range.deltaEnd(e))}intersect(e){const n=this.seq1Range.intersect(e.seq1Range),t=this.seq2Range.intersect(e.seq2Range);if(n&&t)return new Zr(n,t)}getStarts(){return new eo(this.seq1Range.start,this.seq2Range.start)}getEndExclusives(){return new eo(this.seq1Range.endExclusive,this.seq2Range.endExclusive)}}class eo{static{this.zero=new eo(0,0)}static{this.max=new eo(Number.MAX_SAFE_INTEGER,Number.MAX_SAFE_INTEGER)}constructor(e,n){this.offset1=e,this.offset2=n}toString(){return`${this.offset1} <-> ${this.offset2}`}delta(e){return 0===e?this:new eo(this.offset1+e,this.offset2+e)}equals(e){return this.offset1===e.offset1&&this.offset2===e.offset2}}class no{static{this.instance=new no}isValid(){return!0}}class to{constructor(e){if(this.timeout=e,this.startTime=Date.now(),this.valid=!0,e<=0)throw new a("timeout must be positive")}isValid(){return!(Date.now()-this.startTime<this.timeout)&&this.valid&&(this.valid=!1),this.valid}}class ro{constructor(e,n){this.width=e,this.height=n,this.array=[],this.array=new Array(e*n)}get(e,n){return this.array[e+n*this.width]}set(e,n,t){this.array[e+n*this.width]=t}}function oo(e){return 32===e||9===e}class io{static{this.chrKeys=new Map}static getKey(e){let n=this.chrKeys.get(e);return void 0===n&&(n=this.chrKeys.size,this.chrKeys.set(e,n)),n}constructor(e,n,t){this.range=e,this.lines=n,this.source=t,this.histogram=[];let r=0;for(let o=e.startLineNumber-1;o<e.endLineNumberExclusive-1;o++){const e=n[o];for(let n=0;n<e.length;n++){r++;const t=e[n],o=io.getKey(t);this.histogram[o]=(this.histogram[o]||0)+1}r++;const t=io.getKey("\n");this.histogram[t]=(this.histogram[t]||0)+1}this.totalCount=r}computeSimilarity(e){let n=0;const t=Math.max(this.histogram.length,e.histogram.length);for(let r=0;r<t;r++)n+=Math.abs((this.histogram[r]??0)-(e.histogram[r]??0));return 1-n/(this.totalCount+e.totalCount)}}class ao{compute(e,n,t=no.instance,r){if(0===e.length||0===n.length)return Qr.trivial(e,n);const o=new ro(e.length,n.length),i=new ro(e.length,n.length),a=new ro(e.length,n.length);for(let f=0;f<e.length;f++)for(let s=0;s<n.length;s++){if(!t.isValid())return Qr.trivialTimedOut(e,n);const l=0===f?0:o.get(f-1,s),c=0===s?0:o.get(f,s-1);let d;e.getElement(f)===n.getElement(s)?(d=0===f||0===s?0:o.get(f-1,s-1),f>0&&s>0&&3===i.get(f-1,s-1)&&(d+=a.get(f-1,s-1)),d+=r?r(f,s):1):d=-1;const u=Math.max(l,c,d);if(u===d){const e=f>0&&s>0?a.get(f-1,s-1):0;a.set(f,s,e+1),i.set(f,s,3)}else u===l?(a.set(f,s,0),i.set(f,s,1)):u===c&&(a.set(f,s,0),i.set(f,s,2));o.set(f,s,u)}const s=[];let l=e.length,c=n.length;function d(e,n){e+1===l&&n+1===c||s.push(new Zr(new Tr(e+1,l),new Tr(n+1,c))),l=e,c=n}let u=e.length-1,p=n.length-1;for(;u>=0&&p>=0;)3===i.get(u,p)?(d(u,p),u--,p--):1===i.get(u,p)?u--:p--;return d(-1,-1),s.reverse(),new Qr(s,!1)}}class so{compute(e,n,t=no.instance){if(0===e.length||0===n.length)return Qr.trivial(e,n);const r=e,o=n;function i(e,n){for(;e<r.length&&n<o.length&&r.getElement(e)===o.getElement(n);)e++,n++;return e}let a=0;const s=new co;s.set(0,i(0,0));const l=new uo;l.set(0,0===s.get(0)?null:new lo(null,0,0,s.get(0)));let c=0;e:for(;;){if(a++,!t.isValid())return Qr.trivialTimedOut(r,o);const e=-Math.min(a,o.length+a%2),n=Math.min(a,r.length+a%2);for(c=e;c<=n;c+=2){const t=c===n?-1:s.get(c+1),a=c===e?-1:s.get(c-1)+1,d=Math.min(Math.max(t,a),r.length),u=d-c;if(d>r.length||u>o.length)continue;const p=i(d,u);s.set(c,p);const f=d===t?l.get(c+1):l.get(c-1);if(l.set(c,p!==d?new lo(f,d,u,p-d):f),s.get(c)===r.length&&s.get(c)-c===o.length)break e}}let d=l.get(c);const u=[];let p=r.length,f=o.length;for(;;){const e=d?d.x+d.length:0,n=d?d.y+d.length:0;if(e===p&&n===f||u.push(new Zr(new Tr(e,p),new Tr(n,f))),!d)break;p=d.x,f=d.y,d=d.prev}return u.reverse(),new Qr(u,!1)}}class lo{constructor(e,n,t,r){this.prev=e,this.x=n,this.y=t,this.length=r}}class co{constructor(){this.positiveArr=new Int32Array(10),this.negativeArr=new Int32Array(10)}get(e){return e<0?(e=-e-1,this.negativeArr[e]):this.positiveArr[e]}set(e,n){if(e<0){if((e=-e-1)>=this.negativeArr.length){const e=this.negativeArr;this.negativeArr=new Int32Array(2*e.length),this.negativeArr.set(e)}this.negativeArr[e]=n}else{if(e>=this.positiveArr.length){const e=this.positiveArr;this.positiveArr=new Int32Array(2*e.length),this.positiveArr.set(e)}this.positiveArr[e]=n}}}class uo{constructor(){this.positiveArr=[],this.negativeArr=[]}get(e){return e<0?(e=-e-1,this.negativeArr[e]):this.positiveArr[e]}set(e,n){e<0?(e=-e-1,this.negativeArr[e]=n):this.positiveArr[e]=n}}class po{constructor(e,n,t){this.lines=e,this.range=n,this.considerWhitespaceChanges=t,this.elements=[],this.firstElementOffsetByLineIdx=[],this.lineStartOffsets=[],this.trimmedWsLengthsByLineIdx=[],this.firstElementOffsetByLineIdx.push(0);for(let r=this.range.startLineNumber;r<=this.range.endLineNumber;r++){let n=e[r-1],o=0;r===this.range.startLineNumber&&this.range.startColumn>1&&(o=this.range.startColumn-1,n=n.substring(o)),this.lineStartOffsets.push(o);let i=0;if(!t){const e=n.trimStart();i=n.length-e.length,n=e.trimEnd()}this.trimmedWsLengthsByLineIdx.push(i);const a=r===this.range.endLineNumber?Math.min(this.range.endColumn-1-o-i,n.length):n.length;for(let e=0;e<a;e++)this.elements.push(n.charCodeAt(e));r<this.range.endLineNumber&&(this.elements.push("\n".charCodeAt(0)),this.firstElementOffsetByLineIdx.push(this.elements.length))}}toString(){return`Slice: "${this.text}"`}get text(){return this.getText(new Tr(0,this.length))}getText(e){return this.elements.slice(e.start,e.endExclusive).map(e=>String.fromCharCode(e)).join("")}getElement(e){return this.elements[e]}get length(){return this.elements.length}getBoundaryScore(e){const n=go(e>0?this.elements[e-1]:-1),t=go(e<this.elements.length?this.elements[e]:-1);if(7===n&&8===t)return 0;if(8===n)return 150;let r=0;return n!==t&&(r+=10,0===n&&1===t&&(r+=1)),r+=_o(n),r+=_o(t),r}translateOffset(e,n="right"){const t=Er(this.firstElementOffsetByLineIdx,n=>n<=e),r=e-this.firstElementOffsetByLineIdx[t];return new De(this.range.startLineNumber+t,1+this.lineStartOffsets[t]+r+(0===r&&"left"===n?0:this.trimmedWsLengthsByLineIdx[t]))}translateRange(e){const n=this.translateOffset(e.start,"right"),t=this.translateOffset(e.endExclusive,"left");return t.isBefore(n)?Ce.fromPositions(t,t):Ce.fromPositions(n,t)}findWordContaining(e){if(e<0||e>=this.elements.length)return;if(!fo(this.elements[e]))return;let n=e;for(;n>0&&fo(this.elements[n-1]);)n--;let t=e;for(;t<this.elements.length&&fo(this.elements[t]);)t++;return new Tr(n,t)}findSubWordContaining(e){if(e<0||e>=this.elements.length)return;if(!fo(this.elements[e]))return;let n=e;for(;n>0&&fo(this.elements[n-1])&&!mo(this.elements[n]);)n--;let t=e;for(;t<this.elements.length&&fo(this.elements[t])&&!mo(this.elements[t]);)t++;return new Tr(n,t)}countLinesIn(e){return this.translateOffset(e.endExclusive).lineNumber-this.translateOffset(e.start).lineNumber}isStronglyEqual(e,n){return this.elements[e]===this.elements[n]}extendToFullLines(e){const n=Sr(this.firstElementOffsetByLineIdx,n=>n<=e.start)??0,t=function(e,n){const t=Ar(e,n);return t===e.length?void 0:e[t]}(this.firstElementOffsetByLineIdx,n=>e.endExclusive<=n)??this.elements.length;return new Tr(n,t)}}function fo(e){return e>=97&&e<=122||e>=65&&e<=90||e>=48&&e<=57}function mo(e){return e>=65&&e<=90}const ho={0:0,1:0,2:0,3:10,4:2,5:30,6:3,7:10,8:10};function _o(e){return ho[e]}function go(e){return 10===e?8:13===e?7:oo(e)?6:e>=97&&e<=122?0:e>=65&&e<=90?1:e>=48&&e<=57?2:-1===e?3:44===e||59===e?5:4}function yo(e,n,t,r,o,i){let{moves:a,excludedChanges:s}=function(e,n,t,r){const o=[],i=e.filter(e=>e.modified.isEmpty&&e.original.length>=3).map(e=>new io(e.original,n,e)),a=new Set(e.filter(e=>e.original.isEmpty&&e.modified.length>=3).map(e=>new io(e.modified,t,e))),s=new Set;for(const l of i){let e,n=-1;for(const t of a){const r=l.computeSimilarity(t);r>n&&(n=r,e=t)}if(n>.9&&e&&(a.delete(e),o.push(new Or(l.range,e.range)),s.add(l.source),s.add(e.source)),!r.isValid())return{moves:o,excludedChanges:s}}return{moves:o,excludedChanges:s}}(e,n,t,i);if(!i.isValid())return[];const l=function(e,n,t,r,o,i){const a=[],s=new or;for(const f of e)for(let e=f.original.startLineNumber;e<f.original.endLineNumberExclusive-2;e++){const t=`${n[e-1]}:${n[e+1-1]}:${n[e+2-1]}`;s.add(t,{range:new Rr(e,e+3)})}const l=[];e.sort(yr(e=>e.modified.startLineNumber,vr));for(const f of e){let e=[];for(let n=f.modified.startLineNumber;n<f.modified.endLineNumberExclusive-2;n++){const r=`${t[n-1]}:${t[n+1-1]}:${t[n+2-1]}`,o=new Rr(n,n+3),i=[];s.forEach(r,({range:n})=>{for(const r of e)if(r.originalLineRange.endLineNumberExclusive+1===n.endLineNumberExclusive&&r.modifiedLineRange.endLineNumberExclusive+1===o.endLineNumberExclusive)return r.originalLineRange=new Rr(r.originalLineRange.startLineNumber,n.endLineNumberExclusive),r.modifiedLineRange=new Rr(r.modifiedLineRange.startLineNumber,o.endLineNumberExclusive),void i.push(r);const t={modifiedLineRange:o,originalLineRange:n};l.push(t),i.push(t)}),e=i}if(!i.isValid())return[]}l.sort((c=yr(e=>e.modifiedLineRange.length,vr),(e,n)=>-c(e,n)));var c;const d=new Ir,u=new Ir;for(const f of l){const e=f.modifiedLineRange.startLineNumber-f.originalLineRange.startLineNumber,n=d.subtractFrom(f.modifiedLineRange),t=u.subtractFrom(f.originalLineRange).getWithDelta(e),r=n.getIntersection(t);for(const o of r.ranges){if(o.length<3)continue;const n=o,t=o.delta(-e);a.push(new Or(t,n)),d.addRange(n),u.addRange(t)}}a.sort(yr(e=>e.original.startLineNumber,vr));const p=new xr(e);for(let f=0;f<a.length;f++){const n=a[f],t=p.findLastMonotonous(e=>e.original.startLineNumber<=n.original.startLineNumber),s=Sr(e,e=>e.modified.startLineNumber<=n.modified.startLineNumber),l=Math.max(n.original.startLineNumber-t.original.startLineNumber,n.modified.startLineNumber-s.modified.startLineNumber),c=p.findLastMonotonous(e=>e.original.startLineNumber<n.original.endLineNumberExclusive),m=Sr(e,e=>e.modified.startLineNumber<n.modified.endLineNumberExclusive),h=Math.max(c.original.endLineNumberExclusive-n.original.endLineNumberExclusive,m.modified.endLineNumberExclusive-n.modified.endLineNumberExclusive);let _,g;for(_=0;_<l;_++){const e=n.original.startLineNumber-_-1,t=n.modified.startLineNumber-_-1;if(e>r.length||t>o.length)break;if(d.contains(t)||u.contains(e))break;if(!vo(r[e-1],o[t-1],i))break}for(_>0&&(u.addRange(new Rr(n.original.startLineNumber-_,n.original.startLineNumber)),d.addRange(new Rr(n.modified.startLineNumber-_,n.modified.startLineNumber))),g=0;g<h;g++){const e=n.original.endLineNumberExclusive+g,t=n.modified.endLineNumberExclusive+g;if(e>r.length||t>o.length)break;if(d.contains(t)||u.contains(e))break;if(!vo(r[e-1],o[t-1],i))break}g>0&&(u.addRange(new Rr(n.original.endLineNumberExclusive,n.original.endLineNumberExclusive+g)),d.addRange(new Rr(n.modified.endLineNumberExclusive,n.modified.endLineNumberExclusive+g))),(_>0||g>0)&&(a[f]=new Or(new Rr(n.original.startLineNumber-_,n.original.endLineNumberExclusive+g),new Rr(n.modified.startLineNumber-_,n.modified.endLineNumberExclusive+g)))}return a}(e.filter(e=>!s.has(e)),r,o,n,t,i);return function(e,n){for(const t of n)e.push(t)}(a,l),a=function(e){if(0===e.length)return e;e.sort(yr(e=>e.original.startLineNumber,vr));const n=[e[0]];for(let t=1;t<e.length;t++){const r=n[n.length-1],o=e[t],i=o.original.startLineNumber-r.original.endLineNumberExclusive,a=o.modified.startLineNumber-r.modified.endLineNumberExclusive;i>=0&&a>=0&&i+a<=2?n[n.length-1]=r.join(o):n.push(o)}return n}(a),a=a.filter(e=>{const t=e.original.toOffsetRange().slice(n).map(e=>e.trim());return t.join("\n").length>=15&&function(e,n){let t=0;for(const r of e)n(r)&&t++;return t}(t,e=>e.length>=2)>=2}),a=function(e,n){const t=new xr(e);return n=n.filter(n=>(t.findLastMonotonous(e=>e.original.startLineNumber<n.original.endLineNumberExclusive)||new Or(new Rr(1,1),new Rr(1,1)))!==Sr(e,e=>e.modified.startLineNumber<n.modified.endLineNumberExclusive)),n}(e,a),a}function vo(e,n,t){if(e.trim()===n.trim())return!0;if(e.length>300&&n.length>300)return!1;const r=(new so).compute(new po([e],new Ce(1,1,1,e.length),!1),new po([n],new Ce(1,1,1,n.length),!1),t);let o=0;const i=Zr.invert(r.diffs,e.length);for(const s of i)s.seq1Range.forEach(n=>{oo(e.charCodeAt(n))||o++});const a=function(n){let t=0;for(let r=0;r<e.length;r++)oo(n.charCodeAt(r))||t++;return t}(e.length>n.length?e:n);return o/a>.6&&a>10}function bo(e,n,t){let r=t;return r=To(e,n,r),r=To(e,n,r),r=function(e,n,t){if(!e.getBoundaryScore||!n.getBoundaryScore)return t;for(let r=0;r<t.length;r++){const o=r>0?t[r-1]:void 0,i=t[r],a=r+1<t.length?t[r+1]:void 0,s=new Tr(o?o.seq1Range.endExclusive+1:0,a?a.seq1Range.start-1:e.length),l=new Tr(o?o.seq2Range.endExclusive+1:0,a?a.seq2Range.start-1:n.length);i.seq1Range.isEmpty?t[r]=So(i,e,n,s,l):i.seq2Range.isEmpty&&(t[r]=So(i.swap(),n,e,l,s).swap())}return t}(e,n,r),r}function To(e,n,t){if(0===t.length)return t;const r=[];r.push(t[0]);for(let i=1;i<t.length;i++){const o=r[r.length-1];let a=t[i];if(a.seq1Range.isEmpty||a.seq2Range.isEmpty){const t=a.seq1Range.start-o.seq1Range.endExclusive;let i;for(i=1;i<=t&&(e.getElement(a.seq1Range.start-i)===e.getElement(a.seq1Range.endExclusive-i)&&n.getElement(a.seq2Range.start-i)===n.getElement(a.seq2Range.endExclusive-i));i++);if(i--,i===t){r[r.length-1]=new Zr(new Tr(o.seq1Range.start,a.seq1Range.endExclusive-t),new Tr(o.seq2Range.start,a.seq2Range.endExclusive-t));continue}a=a.delta(-i)}r.push(a)}const o=[];for(let i=0;i<r.length-1;i++){const t=r[i+1];let a=r[i];if(a.seq1Range.isEmpty||a.seq2Range.isEmpty){const o=t.seq1Range.start-a.seq1Range.endExclusive;let s;for(s=0;s<o&&(e.isStronglyEqual(a.seq1Range.start+s,a.seq1Range.endExclusive+s)&&n.isStronglyEqual(a.seq2Range.start+s,a.seq2Range.endExclusive+s));s++);if(s===o){r[i+1]=new Zr(new Tr(a.seq1Range.start+o,t.seq1Range.endExclusive),new Tr(a.seq2Range.start+o,t.seq2Range.endExclusive));continue}s>0&&(a=a.delta(s))}o.push(a)}return r.length>0&&o.push(r[r.length-1]),o}function So(e,n,t,r,o){let i=1;for(;e.seq1Range.start-i>=r.start&&e.seq2Range.start-i>=o.start&&t.isStronglyEqual(e.seq2Range.start-i,e.seq2Range.endExclusive-i)&&i<100;)i++;i--;let a=0;for(;e.seq1Range.start+a<r.endExclusive&&e.seq2Range.endExclusive+a<o.endExclusive&&t.isStronglyEqual(e.seq2Range.start+a,e.seq2Range.endExclusive+a)&&a<100;)a++;if(0===i&&0===a)return e;let s=0,l=-1;for(let c=-i;c<=a;c++){const r=e.seq2Range.start+c,o=e.seq2Range.endExclusive+c,i=e.seq1Range.start+c,a=n.getBoundaryScore(i)+t.getBoundaryScore(r)+t.getBoundaryScore(o);a>l&&(l=a,s=c)}return e.delta(s)}function Eo(e,n,t,r,o=!1){const i=Zr.invert(t,e.length),a=[];let s=new eo(0,0);function l(t,l){if(t.offset1<s.offset1||t.offset2<s.offset2)return;const c=r(e,t.offset1),d=r(n,t.offset2);if(!c||!d)return;let u=new Zr(c,d);const p=u.intersect(l);let f=p.seq1Range.length,m=p.seq2Range.length;for(;i.length>0;){const t=i[0];if(!(t.seq1Range.intersects(u.seq1Range)||t.seq2Range.intersects(u.seq2Range)))break;const o=r(e,t.seq1Range.start),a=r(n,t.seq2Range.start),s=new Zr(o,a),l=s.intersect(t);if(f+=l.seq1Range.length,m+=l.seq2Range.length,u=u.join(s),!(u.seq1Range.endExclusive>=t.seq1Range.endExclusive))break;i.shift()}(o&&f+m<u.seq1Range.length+u.seq2Range.length||f+m<2*(u.seq1Range.length+u.seq2Range.length)/3)&&a.push(u),s=u.getEndExclusives()}for(;i.length>0;){const e=i.shift();e.seq1Range.isEmpty||(l(e.getStarts(),e),l(e.getEndExclusives().delta(-1),e))}return function(e,n){const t=[];for(;e.length>0||n.length>0;){const r=e[0],o=n[0];let i;i=r&&(!o||r.seq1Range.start<o.seq1Range.start)?e.shift():n.shift(),t.length>0&&t[t.length-1].seq1Range.endExclusive>=i.seq1Range.start?t[t.length-1]=t[t.length-1].join(i):t.push(i)}return t}(t,a)}class Ao{constructor(e,n){this.trimmedHash=e,this.lines=n}getElement(e){return this.trimmedHash[e]}get length(){return this.trimmedHash.length}getBoundaryScore(e){return 1e3-((0===e?0:xo(this.lines[e-1]))+(e===this.lines.length?0:xo(this.lines[e])))}getText(e){return this.lines.slice(e.start,e.endExclusive).join("\n")}isStronglyEqual(e,n){return this.lines[e]===this.lines[n]}}function xo(e){let n=0;for(;n<e.length&&(32===e.charCodeAt(n)||9===e.charCodeAt(n));)n++;return n}class Ro{constructor(){this.dynamicProgrammingDiffing=new ao,this.myersDiffingAlgorithm=new so}computeDiff(e,n,t){if(e.length<=1&&function(e,n,t=(e,n)=>e===n){if(e===n)return!0;if(!e||!n)return!1;if(e.length!==n.length)return!1;for(let r=0,o=e.length;r<o;r++)if(!t(e[r],n[r]))return!1;return!0}(e,n,(e,n)=>e===n))return new hr([],[],!1);if(1===e.length&&0===e[0].length||1===n.length&&0===n[0].length)return new hr([new zr(new Rr(1,e.length+1),new Rr(1,n.length+1),[new Br(new Ce(1,1,e.length,e[e.length-1].length+1),new Ce(1,1,n.length,n[n.length-1].length+1))])],[],!1);const r=0===t.maxComputationTimeMs?no.instance:new to(t.maxComputationTimeMs),o=!t.ignoreTrimWhitespace,i=new Map;function a(e){let n=i.get(e);return void 0===n&&(n=i.size,i.set(e,n)),n}const s=e.map(e=>a(e.trim())),c=n.map(e=>a(e.trim())),d=new Ao(s,e),u=new Ao(c,n),p=(()=>d.length+u.length<1700?this.dynamicProgrammingDiffing.compute(d,u,r,(t,r)=>e[t]===n[r]?0===n[r].length?.1:1+Math.log(1+n[r].length):.99):this.myersDiffingAlgorithm.compute(d,u,r))();let f=p.diffs,m=p.hitTimeout;f=bo(d,u,f),f=function(e,n,t){let r=t;if(0===r.length)return r;let o,i=0;do{o=!1;const a=[r[0]];for(let s=1;s<r.length;s++){const l=r[s],c=a[a.length-1];function d(n,t){const r=new Tr(c.seq1Range.endExclusive,l.seq1Range.start);return e.getText(r).replace(/\s/g,"").length<=4&&(n.seq1Range.length+n.seq2Range.length>5||t.seq1Range.length+t.seq2Range.length>5)}d(c,l)?(o=!0,a[a.length-1]=a[a.length-1].join(l)):a.push(l)}r=a}while(i++<10&&o);return r}(d,0,f);const h=[],_=i=>{if(o)for(let a=0;a<i;a++){const i=g+a,s=y+a;if(e[i]!==n[s]){const a=this.refineDiff(e,n,new Zr(new Tr(i,i+1),new Tr(s,s+1)),r,o,t);for(const e of a.mappings)h.push(e);a.hitTimeout&&(m=!0)}}};let g=0,y=0;for(const E of f){l(()=>E.seq1Range.start-g===E.seq2Range.start-y);_(E.seq1Range.start-g),g=E.seq1Range.endExclusive,y=E.seq2Range.endExclusive;const i=this.refineDiff(e,n,E,r,o,t);i.hitTimeout&&(m=!0);for(const e of i.mappings)h.push(e)}_(e.length-g);const v=new kr(e),b=new kr(n),T=Gr(h,v,b);let S=[];return t.computeMoves&&(S=this.computeMoves(T,e,n,s,c,r,o,t)),l(()=>{function t(e,n){if(e.lineNumber<1||e.lineNumber>n.length)return!1;const t=n[e.lineNumber-1];return!(e.column<1||e.column>t.length+1)}function r(e,n){return!(e.startLineNumber<1||e.startLineNumber>n.length+1)&&!(e.endLineNumberExclusive<1||e.endLineNumberExclusive>n.length+1)}for(const o of T){if(!o.innerChanges)return!1;for(const r of o.innerChanges){if(!(t(r.modifiedRange.getStartPosition(),n)&&t(r.modifiedRange.getEndPosition(),n)&&t(r.originalRange.getStartPosition(),e)&&t(r.originalRange.getEndPosition(),e)))return!1}if(!r(o.modified,n)||!r(o.original,e))return!1}return!0}),new hr(T,S,m)}computeMoves(e,n,t,r,o,i,a,s){return yo(e,n,t,r,o,i).map(e=>{const r=Gr(this.refineDiff(n,t,new Zr(e.original.toOffsetRange(),e.modified.toOffsetRange()),i,a,s).mappings,new kr(n),new kr(t),!0);return new _r(e,r)})}refineDiff(e,n,t,r,o,i){var a;const s=new Or(new Rr((a=t).seq1Range.start+1,a.seq1Range.endExclusive+1),new Rr(a.seq2Range.start+1,a.seq2Range.endExclusive+1)).toRangeMapping2(e,n),l=new po(e,s.originalRange,o),c=new po(n,s.modifiedRange,o),d=l.length+c.length<500?this.dynamicProgrammingDiffing.compute(l,c,r):this.myersDiffingAlgorithm.compute(l,c,r);let u=d.diffs;u=bo(l,c,u),u=Eo(l,c,u,(e,n)=>e.findWordContaining(n)),i.extendToSubwords&&(u=Eo(l,c,u,(e,n)=>e.findSubWordContaining(n),!0)),u=function(e,n,t){const r=[];for(const o of t){const e=r[r.length-1];e&&(o.seq1Range.start-e.seq1Range.endExclusive<=2||o.seq2Range.start-e.seq2Range.endExclusive<=2)?r[r.length-1]=new Zr(e.seq1Range.join(o.seq1Range),e.seq2Range.join(o.seq2Range)):r.push(o)}return r}(0,0,u),u=function(e,n,t){let r=t;if(0===r.length)return r;let o,i=0;do{o=!1;const s=[r[0]];for(let l=1;l<r.length;l++){const c=r[l],d=s[s.length-1];function u(t,r){const o=new Tr(d.seq1Range.endExclusive,c.seq1Range.start);if(e.countLinesIn(o)>5||o.length>500)return!1;const i=e.getText(o).trim();if(i.length>20||i.split(/\r\n|\r|\n/).length>1)return!1;const a=e.countLinesIn(t.seq1Range),s=t.seq1Range.length,l=n.countLinesIn(t.seq2Range),u=t.seq2Range.length,p=e.countLinesIn(r.seq1Range),f=r.seq1Range.length,m=n.countLinesIn(r.seq2Range),h=r.seq2Range.length;function _(e){return Math.min(e,130)}return Math.pow(Math.pow(_(40*a+s),1.5)+Math.pow(_(40*l+u),1.5),1.5)+Math.pow(Math.pow(_(40*p+f),1.5)+Math.pow(_(40*m+h),1.5),1.5)>74184.96480721243}u(d,c)?(o=!0,s[s.length-1]=s[s.length-1].join(c)):s.push(c)}r=s}while(i++<10&&o);const a=[];return function(e,n){for(let t=0;t<e.length;t++)n(0===t?void 0:e[t-1],e[t],t+1===e.length?void 0:e[t+1])}(r,(n,t,r)=>{let o=t;function i(e){return e.length>0&&e.trim().length<=3&&t.seq1Range.length+t.seq2Range.length>100}const s=e.extendToFullLines(t.seq1Range),l=e.getText(new Tr(s.start,t.seq1Range.start));i(l)&&(o=o.deltaStart(-l.length));const c=e.getText(new Tr(t.seq1Range.endExclusive,s.endExclusive));i(c)&&(o=o.deltaEnd(c.length));const d=Zr.fromOffsetPairs(n?n.getEndExclusives():eo.zero,r?r.getStarts():eo.max),u=o.intersect(d);a.length>0&&u.getStarts().equals(a[a.length-1].getEndExclusives())?a[a.length-1]=a[a.length-1].join(u):a.push(u)}),a}(l,c,u);return{mappings:u.map(e=>new Br(l.translateRange(e.seq1Range),c.translateRange(e.seq2Range))),hitTimeout:d.hitTimeout}}}const Io=()=>new Vr,Do=()=>new Ro;function Co(e,n){const t=Math.pow(10,n);return Math.round(e*t)/t}class No{constructor(e,n,t,r=1){this._rgbaBrand=void 0,this.r=0|Math.min(255,Math.max(0,e)),this.g=0|Math.min(255,Math.max(0,n)),this.b=0|Math.min(255,Math.max(0,t)),this.a=Co(Math.max(Math.min(1,r),0),3)}static equals(e,n){return e.r===n.r&&e.g===n.g&&e.b===n.b&&e.a===n.a}}class Mo{constructor(e,n,t,r){this._hslaBrand=void 0,this.h=0|Math.max(Math.min(360,e),0),this.s=Co(Math.max(Math.min(1,n),0),3),this.l=Co(Math.max(Math.min(1,t),0),3),this.a=Co(Math.max(Math.min(1,r),0),3)}static equals(e,n){return e.h===n.h&&e.s===n.s&&e.l===n.l&&e.a===n.a}static fromRGBA(e){const n=e.r/255,t=e.g/255,r=e.b/255,o=e.a,i=Math.max(n,t,r),a=Math.min(n,t,r);let s=0,l=0;const c=(a+i)/2,d=i-a;if(d>0){switch(l=Math.min(c<=.5?d/(2*c):d/(2-2*c),1),i){case n:s=(t-r)/d+(t<r?6:0);break;case t:s=(r-n)/d+2;break;case r:s=(n-t)/d+4}s*=60,s=Math.round(s)}return new Mo(s,l,c,o)}static _hue2rgb(e,n,t){return t<0&&(t+=1),t>1&&(t-=1),t<1/6?e+6*(n-e)*t:t<.5?n:t<2/3?e+(n-e)*(2/3-t)*6:e}static toRGBA(e){const n=e.h/360,{s:t,l:r,a:o}=e;let i,a,s;if(0===t)i=a=s=r;else{const e=r<.5?r*(1+t):r+t-r*t,o=2*r-e;i=Mo._hue2rgb(o,e,n+1/3),a=Mo._hue2rgb(o,e,n),s=Mo._hue2rgb(o,e,n-1/3)}return new No(Math.round(255*i),Math.round(255*a),Math.round(255*s),o)}}class Po{constructor(e,n,t,r){this._hsvaBrand=void 0,this.h=0|Math.max(Math.min(360,e),0),this.s=Co(Math.max(Math.min(1,n),0),3),this.v=Co(Math.max(Math.min(1,t),0),3),this.a=Co(Math.max(Math.min(1,r),0),3)}static equals(e,n){return e.h===n.h&&e.s===n.s&&e.v===n.v&&e.a===n.a}static fromRGBA(e){const n=e.r/255,t=e.g/255,r=e.b/255,o=Math.max(n,t,r),i=o-Math.min(n,t,r),a=0===o?0:i/o;let s;return s=0===i?0:o===n?((t-r)/i%6+6)%6:o===t?(r-n)/i+2:(n-t)/i+4,new Po(Math.round(60*s),a,o,e.a)}static toRGBA(e){const{h:n,s:t,v:r,a:o}=e,i=r*t,a=i*(1-Math.abs(n/60%2-1)),s=r-i;let[l,c,d]=[0,0,0];return n<60?(l=i,c=a):n<120?(l=a,c=i):n<180?(c=i,d=a):n<240?(c=a,d=i):n<300?(l=a,d=i):n<=360&&(l=i,d=a),l=Math.round(255*(l+s)),c=Math.round(255*(c+s)),d=Math.round(255*(d+s)),new No(l,c,d,o)}}class Lo{static fromHex(e){return Lo.Format.CSS.parseHex(e)||Lo.red}static equals(e,n){return!e&&!n||!(!e||!n)&&e.equals(n)}get hsla(){return this._hsla?this._hsla:Mo.fromRGBA(this.rgba)}get hsva(){return this._hsva?this._hsva:Po.fromRGBA(this.rgba)}constructor(e){if(!e)throw new Error("Color needs a value");if(e instanceof No)this.rgba=e;else if(e instanceof Mo)this._hsla=e,this.rgba=Mo.toRGBA(e);else{if(!(e instanceof Po))throw new Error("Invalid color ctor argument");this._hsva=e,this.rgba=Po.toRGBA(e)}}equals(e){return!!e&&No.equals(this.rgba,e.rgba)&&Mo.equals(this.hsla,e.hsla)&&Po.equals(this.hsva,e.hsva)}getRelativeLuminance(){return Co(.2126*Lo._relativeLuminanceForComponent(this.rgba.r)+.7152*Lo._relativeLuminanceForComponent(this.rgba.g)+.0722*Lo._relativeLuminanceForComponent(this.rgba.b),4)}static _relativeLuminanceForComponent(e){const n=e/255;return n<=.03928?n/12.92:Math.pow((n+.055)/1.055,2.4)}isLighter(){return(299*this.rgba.r+587*this.rgba.g+114*this.rgba.b)/1e3>=128}isLighterThan(e){return this.getRelativeLuminance()>e.getRelativeLuminance()}isDarkerThan(e){return this.getRelativeLuminance()<e.getRelativeLuminance()}lighten(e){return new Lo(new Mo(this.hsla.h,this.hsla.s,this.hsla.l+this.hsla.l*e,this.hsla.a))}darken(e){return new Lo(new Mo(this.hsla.h,this.hsla.s,this.hsla.l-this.hsla.l*e,this.hsla.a))}transparent(e){const{r:n,g:t,b:r,a:o}=this.rgba;return new Lo(new No(n,t,r,o*e))}isTransparent(){return 0===this.rgba.a}isOpaque(){return 1===this.rgba.a}opposite(){return new Lo(new No(255-this.rgba.r,255-this.rgba.g,255-this.rgba.b,this.rgba.a))}mix(e,n=.5){const t=Math.min(Math.max(n,0),1),r=this.rgba,o=e.rgba,i=r.r+(o.r-r.r)*t,a=r.g+(o.g-r.g)*t,s=r.b+(o.b-r.b)*t,l=r.a+(o.a-r.a)*t;return new Lo(new No(i,a,s,l))}makeOpaque(e){if(this.isOpaque()||1!==e.rgba.a)return this;const{r:n,g:t,b:r,a:o}=this.rgba;return new Lo(new No(e.rgba.r-o*(e.rgba.r-n),e.rgba.g-o*(e.rgba.g-t),e.rgba.b-o*(e.rgba.b-r),1))}toString(){return this._toString||(this._toString=Lo.Format.CSS.format(this)),this._toString}toNumber32Bit(){return this._toNumber32Bit||(this._toNumber32Bit=(this.rgba.r<<24|this.rgba.g<<16|this.rgba.b<<8|255*this.rgba.a)>>>0),this._toNumber32Bit}static getLighterColor(e,n,t){if(e.isLighterThan(n))return e;t=t||.5;const r=e.getRelativeLuminance(),o=n.getRelativeLuminance();return t=t*(o-r)/o,e.lighten(t)}static getDarkerColor(e,n,t){if(e.isDarkerThan(n))return e;t=t||.5;const r=e.getRelativeLuminance();return t=t*(r-n.getRelativeLuminance())/r,e.darken(t)}static{this.white=new Lo(new No(255,255,255,1))}static{this.black=new Lo(new No(0,0,0,1))}static{this.red=new Lo(new No(255,0,0,1))}static{this.blue=new Lo(new No(0,0,255,1))}static{this.green=new Lo(new No(0,255,0,1))}static{this.cyan=new Lo(new No(0,255,255,1))}static{this.lightgrey=new Lo(new No(211,211,211,1))}static{this.transparent=new Lo(new No(0,0,0,0))}}function ko(e){const n=[];for(const t of e){const e=Number(t);(e||0===e&&""!==t.replace(/\s/g,""))&&n.push(e)}return n}function wo(e,n,t,r){return{red:e/255,blue:t/255,green:n/255,alpha:r}}function Oo(e,n){const t=n.index,r=n[0].length;if(void 0===t)return;const o=e.positionAt(t);return{startLineNumber:o.lineNumber,startColumn:o.column,endLineNumber:o.lineNumber,endColumn:o.column+r}}function Fo(e,n){if(!e)return;const t=Lo.Format.CSS.parseHex(n);return t?{range:e,color:wo(t.rgba.r,t.rgba.g,t.rgba.b,t.rgba.a)}:void 0}function Wo(e,n,t){if(!e||1!==n.length)return;const r=ko(n[0].values());return{range:e,color:wo(r[0],r[1],r[2],t?r[3]:1)}}function zo(e,n,t){if(!e||1!==n.length)return;const r=ko(n[0].values()),o=new Lo(new Mo(r[0],r[1]/100,r[2]/100,t?r[3]:1));return{range:e,color:wo(o.rgba.r,o.rgba.g,o.rgba.b,o.rgba.a)}}function Bo(e,n){return"string"==typeof e?[...e.matchAll(n)]:e.findMatches(n)}function Go(e){return e&&"function"==typeof e.getValue&&"function"==typeof e.positionAt?function(e){const n=[],t=Bo(e,/\b(rgb|rgba|hsl|hsla)(\([0-9\s,.\%]*\))|^(#)([A-Fa-f0-9]{3})\b|^(#)([A-Fa-f0-9]{4})\b|^(#)([A-Fa-f0-9]{6})\b|^(#)([A-Fa-f0-9]{8})\b|(?<=['"\s])(#)([A-Fa-f0-9]{3})\b|(?<=['"\s])(#)([A-Fa-f0-9]{4})\b|(?<=['"\s])(#)([A-Fa-f0-9]{6})\b|(?<=['"\s])(#)([A-Fa-f0-9]{8})\b/gm);if(t.length>0)for(const r of t){const t=r.filter(e=>void 0!==e),o=t[1],i=t[2];if(!i)continue;let a;if("rgb"===o){const n=/^\(\s*(25[0-5]|2[0-4][0-9]|1[0-9]{2}|[1-9][0-9]|[0-9])\s*,\s*(25[0-5]|2[0-4][0-9]|1[0-9]{2}|[1-9][0-9]|[0-9])\s*,\s*(25[0-5]|2[0-4][0-9]|1[0-9]{2}|[1-9][0-9]|[0-9])\s*\)$/gm;a=Wo(Oo(e,r),Bo(i,n),!1)}else if("rgba"===o){const n=/^\(\s*(25[0-5]|2[0-4][0-9]|1[0-9]{2}|[1-9][0-9]|[0-9])\s*,\s*(25[0-5]|2[0-4][0-9]|1[0-9]{2}|[1-9][0-9]|[0-9])\s*,\s*(25[0-5]|2[0-4][0-9]|1[0-9]{2}|[1-9][0-9]|[0-9])\s*,\s*(0[.][0-9]+|[.][0-9]+|[01][.]|[01])\s*\)$/gm;a=Wo(Oo(e,r),Bo(i,n),!0)}else if("hsl"===o){const n=/^\(\s*((?:360(?:\.0+)?|(?:36[0]|3[0-5][0-9]|[12][0-9][0-9]|[1-9]?[0-9])(?:\.\d+)?))\s*[\s,]\s*(100|\d{1,2}[.]\d*|\d{1,2})%\s*[\s,]\s*(100|\d{1,2}[.]\d*|\d{1,2})%\s*\)$/gm;a=zo(Oo(e,r),Bo(i,n),!1)}else if("hsla"===o){const n=/^\(\s*((?:360(?:\.0+)?|(?:36[0]|3[0-5][0-9]|[12][0-9][0-9]|[1-9]?[0-9])(?:\.\d+)?))\s*[\s,]\s*(100|\d{1,2}[.]\d*|\d{1,2})%\s*[\s,]\s*(100|\d{1,2}[.]\d*|\d{1,2})%\s*[\s,]\s*(0[.][0-9]+|[.][0-9]+|[01][.]0*|[01])\s*\)$/gm;a=zo(Oo(e,r),Bo(i,n),!0)}else"#"===o&&(a=Fo(Oo(e,r),o+i));a&&n.push(a)}return n}(e):[]}!function(e){var n;(function(n){function t(e){const n=e.toString(16);return 2!==n.length?"0"+n:n}function r(n){const t=n.length;if(0===t)return null;if(35!==n.charCodeAt(0))return null;if(7===t){const t=16*o(n.charCodeAt(1))+o(n.charCodeAt(2)),r=16*o(n.charCodeAt(3))+o(n.charCodeAt(4)),i=16*o(n.charCodeAt(5))+o(n.charCodeAt(6));return new e(new No(t,r,i,1))}if(9===t){const t=16*o(n.charCodeAt(1))+o(n.charCodeAt(2)),r=16*o(n.charCodeAt(3))+o(n.charCodeAt(4)),i=16*o(n.charCodeAt(5))+o(n.charCodeAt(6)),a=16*o(n.charCodeAt(7))+o(n.charCodeAt(8));return new e(new No(t,r,i,a/255))}if(4===t){const t=o(n.charCodeAt(1)),r=o(n.charCodeAt(2)),i=o(n.charCodeAt(3));return new e(new No(16*t+t,16*r+r,16*i+i))}if(5===t){const t=o(n.charCodeAt(1)),r=o(n.charCodeAt(2)),i=o(n.charCodeAt(3)),a=o(n.charCodeAt(4));return new e(new No(16*t+t,16*r+r,16*i+i,(16*a+a)/255))}return null}function o(e){switch(e){case 48:return 0;case 49:return 1;case 50:return 2;case 51:return 3;case 52:return 4;case 53:return 5;case 54:return 6;case 55:return 7;case 56:return 8;case 57:return 9;case 97:case 65:return 10;case 98:case 66:return 11;case 99:case 67:return 12;case 100:case 68:return 13;case 101:case 69:return 14;case 102:case 70:return 15}return 0}n.formatRGB=function(n){return 1===n.rgba.a?`rgb(${n.rgba.r}, ${n.rgba.g}, ${n.rgba.b})`:e.Format.CSS.formatRGBA(n)},n.formatRGBA=function(e){return`rgba(${e.rgba.r}, ${e.rgba.g}, ${e.rgba.b}, ${+e.rgba.a.toFixed(2)})`},n.formatHSL=function(n){return 1===n.hsla.a?`hsl(${n.hsla.h}, ${Math.round(100*n.hsla.s)}%, ${Math.round(100*n.hsla.l)}%)`:e.Format.CSS.formatHSLA(n)},n.formatHSLA=function(e){return`hsla(${e.hsla.h}, ${Math.round(100*e.hsla.s)}%, ${Math.round(100*e.hsla.l)}%, ${e.hsla.a.toFixed(2)})`},n.formatHex=function(e){return`#${t(e.rgba.r)}${t(e.rgba.g)}${t(e.rgba.b)}`},n.formatHexA=function(n,r=!1){return r&&1===n.rgba.a?e.Format.CSS.formatHex(n):`#${t(n.rgba.r)}${t(n.rgba.g)}${t(n.rgba.b)}${t(Math.round(255*n.rgba.a))}`},n.format=function(n){return n.isOpaque()?e.Format.CSS.formatHex(n):e.Format.CSS.formatRGBA(n)},n.parse=function(n){if("transparent"===n)return e.transparent;if(n.startsWith("#"))return r(n);if(n.startsWith("rgba(")){const t=n.match(/rgba\((?<r>(?:\+|-)?\d+), *(?<g>(?:\+|-)?\d+), *(?<b>(?:\+|-)?\d+), *(?<a>(?:\+|-)?\d+(\.\d+)?)\)/);if(!t)throw new Error("Invalid color format "+n);const r=parseInt(t.groups?.r??"0"),o=parseInt(t.groups?.g??"0"),i=parseInt(t.groups?.b??"0"),a=parseFloat(t.groups?.a??"0");return new e(new No(r,o,i,a))}if(n.startsWith("rgb(")){const t=n.match(/rgb\((?<r>(?:\+|-)?\d+), *(?<g>(?:\+|-)?\d+), *(?<b>(?:\+|-)?\d+)\)/);if(!t)throw new Error("Invalid color format "+n);const r=parseInt(t.groups?.r??"0"),o=parseInt(t.groups?.g??"0"),i=parseInt(t.groups?.b??"0");return new e(new No(r,o,i))}return function(n){switch(n){case"aliceblue":return new e(new No(240,248,255,1));case"antiquewhite":return new e(new No(250,235,215,1));case"aqua":case"cyan":return new e(new No(0,255,255,1));case"aquamarine":return new e(new No(127,255,212,1));case"azure":return new e(new No(240,255,255,1));case"beige":return new e(new No(245,245,220,1));case"bisque":return new e(new No(255,228,196,1));case"black":return new e(new No(0,0,0,1));case"blanchedalmond":return new e(new No(255,235,205,1));case"blue":return new e(new No(0,0,255,1));case"blueviolet":return new e(new No(138,43,226,1));case"brown":return new e(new No(165,42,42,1));case"burlywood":return new e(new No(222,184,135,1));case"cadetblue":return new e(new No(95,158,160,1));case"chartreuse":return new e(new No(127,255,0,1));case"chocolate":return new e(new No(210,105,30,1));case"coral":return new e(new No(255,127,80,1));case"cornflowerblue":return new e(new No(100,149,237,1));case"cornsilk":return new e(new No(255,248,220,1));case"crimson":return new e(new No(220,20,60,1));case"darkblue":return new e(new No(0,0,139,1));case"darkcyan":return new e(new No(0,139,139,1));case"darkgoldenrod":return new e(new No(184,134,11,1));case"darkgray":case"darkgrey":return new e(new No(169,169,169,1));case"darkgreen":return new e(new No(0,100,0,1));case"darkkhaki":return new e(new No(189,183,107,1));case"darkmagenta":return new e(new No(139,0,139,1));case"darkolivegreen":return new e(new No(85,107,47,1));case"darkorange":return new e(new No(255,140,0,1));case"darkorchid":return new e(new No(153,50,204,1));case"darkred":return new e(new No(139,0,0,1));case"darksalmon":return new e(new No(233,150,122,1));case"darkseagreen":return new e(new No(143,188,143,1));case"darkslateblue":return new e(new No(72,61,139,1));case"darkslategray":case"darkslategrey":return new e(new No(47,79,79,1));case"darkturquoise":return new e(new No(0,206,209,1));case"darkviolet":return new e(new No(148,0,211,1));case"deeppink":return new e(new No(255,20,147,1));case"deepskyblue":return new e(new No(0,191,255,1));case"dimgray":case"dimgrey":return new e(new No(105,105,105,1));case"dodgerblue":return new e(new No(30,144,255,1));case"firebrick":return new e(new No(178,34,34,1));case"floralwhite":return new e(new No(255,250,240,1));case"forestgreen":return new e(new No(34,139,34,1));case"fuchsia":case"magenta":return new e(new No(255,0,255,1));case"gainsboro":return new e(new No(220,220,220,1));case"ghostwhite":return new e(new No(248,248,255,1));case"gold":return new e(new No(255,215,0,1));case"goldenrod":return new e(new No(218,165,32,1));case"gray":case"grey":return new e(new No(128,128,128,1));case"green":return new e(new No(0,128,0,1));case"greenyellow":return new e(new No(173,255,47,1));case"honeydew":return new e(new No(240,255,240,1));case"hotpink":return new e(new No(255,105,180,1));case"indianred":return new e(new No(205,92,92,1));case"indigo":return new e(new No(75,0,130,1));case"ivory":return new e(new No(255,255,240,1));case"khaki":return new e(new No(240,230,140,1));case"lavender":return new e(new No(230,230,250,1));case"lavenderblush":return new e(new No(255,240,245,1));case"lawngreen":return new e(new No(124,252,0,1));case"lemonchiffon":return new e(new No(255,250,205,1));case"lightblue":return new e(new No(173,216,230,1));case"lightcoral":return new e(new No(240,128,128,1));case"lightcyan":return new e(new No(224,255,255,1));case"lightgoldenrodyellow":return new e(new No(250,250,210,1));case"lightgray":case"lightgrey":return new e(new No(211,211,211,1));case"lightgreen":return new e(new No(144,238,144,1));case"lightpink":return new e(new No(255,182,193,1));case"lightsalmon":return new e(new No(255,160,122,1));case"lightseagreen":return new e(new No(32,178,170,1));case"lightskyblue":return new e(new No(135,206,250,1));case"lightslategray":case"lightslategrey":return new e(new No(119,136,153,1));case"lightsteelblue":return new e(new No(176,196,222,1));case"lightyellow":return new e(new No(255,255,224,1));case"lime":return new e(new No(0,255,0,1));case"limegreen":return new e(new No(50,205,50,1));case"linen":return new e(new No(250,240,230,1));case"maroon":return new e(new No(128,0,0,1));case"mediumaquamarine":return new e(new No(102,205,170,1));case"mediumblue":return new e(new No(0,0,205,1));case"mediumorchid":return new e(new No(186,85,211,1));case"mediumpurple":return new e(new No(147,112,219,1));case"mediumseagreen":return new e(new No(60,179,113,1));case"mediumslateblue":return new e(new No(123,104,238,1));case"mediumspringgreen":return new e(new No(0,250,154,1));case"mediumturquoise":return new e(new No(72,209,204,1));case"mediumvioletred":return new e(new No(199,21,133,1));case"midnightblue":return new e(new No(25,25,112,1));case"mintcream":return new e(new No(245,255,250,1));case"mistyrose":return new e(new No(255,228,225,1));case"moccasin":return new e(new No(255,228,181,1));case"navajowhite":return new e(new No(255,222,173,1));case"navy":return new e(new No(0,0,128,1));case"oldlace":return new e(new No(253,245,230,1));case"olive":return new e(new No(128,128,0,1));case"olivedrab":return new e(new No(107,142,35,1));case"orange":return new e(new No(255,165,0,1));case"orangered":return new e(new No(255,69,0,1));case"orchid":return new e(new No(218,112,214,1));case"palegoldenrod":return new e(new No(238,232,170,1));case"palegreen":return new e(new No(152,251,152,1));case"paleturquoise":return new e(new No(175,238,238,1));case"palevioletred":return new e(new No(219,112,147,1));case"papayawhip":return new e(new No(255,239,213,1));case"peachpuff":return new e(new No(255,218,185,1));case"peru":return new e(new No(205,133,63,1));case"pink":return new e(new No(255,192,203,1));case"plum":return new e(new No(221,160,221,1));case"powderblue":return new e(new No(176,224,230,1));case"purple":return new e(new No(128,0,128,1));case"rebeccapurple":return new e(new No(102,51,153,1));case"red":return new e(new No(255,0,0,1));case"rosybrown":return new e(new No(188,143,143,1));case"royalblue":return new e(new No(65,105,225,1));case"saddlebrown":return new e(new No(139,69,19,1));case"salmon":return new e(new No(250,128,114,1));case"sandybrown":return new e(new No(244,164,96,1));case"seagreen":return new e(new No(46,139,87,1));case"seashell":return new e(new No(255,245,238,1));case"sienna":return new e(new No(160,82,45,1));case"silver":return new e(new No(192,192,192,1));case"skyblue":return new e(new No(135,206,235,1));case"slateblue":return new e(new No(106,90,205,1));case"slategray":case"slategrey":return new e(new No(112,128,144,1));case"snow":return new e(new No(255,250,250,1));case"springgreen":return new e(new No(0,255,127,1));case"steelblue":return new e(new No(70,130,180,1));case"tan":return new e(new No(210,180,140,1));case"teal":return new e(new No(0,128,128,1));case"thistle":return new e(new No(216,191,216,1));case"tomato":return new e(new No(255,99,71,1));case"turquoise":return new e(new No(64,224,208,1));case"violet":return new e(new No(238,130,238,1));case"wheat":return new e(new No(245,222,179,1));case"white":return new e(new No(255,255,255,1));case"whitesmoke":return new e(new No(245,245,245,1));case"yellow":return new e(new No(255,255,0,1));case"yellowgreen":return new e(new No(154,205,50,1));default:return null}}(n)},n.parseHex=r})((n=e.Format||(e.Format={})).CSS||(n.CSS={}))}(Lo||(Lo={}));const Vo=/^-+|-+$/g,jo=100;function Uo(e,n){let t=[];if(n.findRegionSectionHeaders&&n.foldingRules?.markers){const r=function(e,n){const t=[],r=e.getLineCount();for(let o=1;o<=r;o++){const r=e.getLineContent(o),i=r.match(n.foldingRules.markers.start);if(i){const e={startLineNumber:o,startColumn:i[0].length+1,endLineNumber:o,endColumn:r.length+1};if(e.endColumn>e.startColumn){const n={range:e,...Ho(r.substring(i[0].length)),shouldBeInComments:!1};(n.text||n.hasSeparatorLine)&&t.push(n)}}}return t}(e,n);t=t.concat(r)}if(n.findMarkSectionHeaders){const r=function(e,n){const t=[],r=e.getLineCount();if(!n.markSectionHeaderRegex||""===n.markSectionHeaderRegex.trim())return t;const o=function(e){if(!e||0===e.length)return!1;for(let n=0,t=e.length;n<t;n++){const r=e.charCodeAt(n);if(10===r)return!0;if(92===r){if(n++,n>=t)break;const r=e.charCodeAt(n);if(110===r||114===r||87===r)return!0}}return!1}(n.markSectionHeaderRegex),i=new RegExp(n.markSectionHeaderRegex,"gdm"+(o?"s":""));if(a=i,"^"!==a.source&&"^$"!==a.source&&"$"!==a.source&&"^\\s*$"!==a.source&&a.exec("")&&0===a.lastIndex)return t;var a;for(let s=1;s<=r;s+=95){const n=Math.min(s+jo-1,r),o=[];for(let t=s;t<=n;t++)o.push(e.getLineContent(t));const a=o.join("\n");let l;for(i.lastIndex=0;null!==(l=i.exec(a));){const e=a.substring(0,l.index),n=s+(e.match(/\n/g)||[]).length,r=l[0].split("\n"),o=r.length,c=n+o-1,d=e.lastIndexOf("\n")+1,u=l.index-d+1,p=r[r.length-1],f={range:{startLineNumber:n,startColumn:u,endLineNumber:c,endColumn:1===o?u+l[0].length:p.length+1},text:(l.groups??{}).label??"",hasSeparatorLine:""!==((l.groups??{}).separator??""),shouldBeInComments:!0};(f.text||f.hasSeparatorLine)&&(0===t.length||t[t.length-1].range.endLineNumber<f.range.startLineNumber)&&t.push(f),i.lastIndex=l.index+l[0].length}}return t}(e,n);t=t.concat(r)}return t}function Ho(e){const n=(e=e.trim()).startsWith("-");return{text:e=e.replace(Vo,""),hasSeparatorLine:n}}class Ko{get isRejected(){return 1===this.outcome?.outcome}get isSettled(){return!!this.outcome}constructor(){this.p=new Promise((e,n)=>{this.completeCallback=e,this.errorCallback=n})}complete(e){return this.isSettled?Promise.resolve():new Promise(n=>{this.completeCallback(e),this.outcome={outcome:0,value:e},n()})}error(e){return this.isSettled?Promise.resolve():new Promise(n=>{this.errorCallback(e),this.outcome={outcome:1,value:e},n()})}cancel(){return this.error(new o)}}var qo;!function(e){e.settled=async function(e){let n;const t=await Promise.all(e.map(e=>e.then(e=>e,e=>{n||(n=e)})));if(void 0!==n)throw n;return t},e.withAsyncBody=function(e){return new Promise(async(n,t)=>{try{await e(n,t)}catch(r){t(r)}})}}(qo||(qo={}));class Jo{constructor(){this._unsatisfiedConsumers=[],this._unconsumedValues=[]}get hasFinalValue(){return!!this._finalValue}produce(e){if(this._ensureNoFinalValue(),this._unsatisfiedConsumers.length>0){const n=this._unsatisfiedConsumers.shift();this._resolveOrRejectDeferred(n,e)}else this._unconsumedValues.push(e)}produceFinal(e){this._ensureNoFinalValue(),this._finalValue=e;for(const n of this._unsatisfiedConsumers)this._resolveOrRejectDeferred(n,e);this._unsatisfiedConsumers.length=0}_ensureNoFinalValue(){if(this._finalValue)throw new a("ProducerConsumer: cannot produce after final value has been set")}_resolveOrRejectDeferred(e,n){n.ok?e.complete(n.value):e.error(n.error)}consume(){if(this._unconsumedValues.length>0||this._finalValue){const e=this._unconsumedValues.length>0?this._unconsumedValues.shift():this._finalValue;return e.ok?Promise.resolve(e.value):Promise.reject(e.error)}{const e=new Ko;return this._unsatisfiedConsumers.push(e),e.p}}}class Xo{constructor(e,n){this._onReturn=n,this._producerConsumer=new Jo,this._iterator={next:()=>this._producerConsumer.consume(),return:()=>(this._onReturn?.(),Promise.resolve({done:!0,value:void 0})),throw:async e=>(this._finishError(e),{done:!0,value:void 0})},queueMicrotask(async()=>{const n=e({emitOne:e=>this._producerConsumer.produce({ok:!0,value:{done:!1,value:e}}),emitMany:e=>{for(const n of e)this._producerConsumer.produce({ok:!0,value:{done:!1,value:n}})},reject:e=>this._finishError(e)});if(!this._producerConsumer.hasFinalValue)try{await n,this._finishOk()}catch(t){this._finishError(t)}})}static fromArray(e){return new Xo(n=>{n.emitMany(e)})}static fromPromise(e){return new Xo(async n=>{n.emitMany(await e)})}static fromPromisesResolveOrder(e){return new Xo(async n=>{await Promise.all(e.map(async e=>n.emitOne(await e)))})}static merge(e){return new Xo(async n=>{await Promise.all(e.map(async e=>{for await(const t of e)n.emitOne(t)}))})}static{this.EMPTY=Xo.fromArray([])}static map(e,n){return new Xo(async t=>{for await(const r of e)t.emitOne(n(r))})}map(e){return Xo.map(this,e)}static coalesce(e){return Xo.filter(e,e=>!!e)}coalesce(){return Xo.coalesce(this)}static filter(e,n){return new Xo(async t=>{for await(const r of e)n(r)&&t.emitOne(r)})}filter(e){return Xo.filter(this,e)}_finishOk(){this._producerConsumer.hasFinalValue||this._producerConsumer.produceFinal({ok:!0,value:{done:!0,value:void 0}})}_finishError(e){this._producerConsumer.hasFinalValue||this._producerConsumer.produceFinal({ok:!1,error:e})}[Symbol.asyncIterator](){return this._iterator}}class Yo{constructor(e){this.values=e,this.prefixSum=new Uint32Array(e.length),this.prefixSumValidIndex=new Int32Array(1),this.prefixSumValidIndex[0]=-1}insertValues(e,n){e=Me(e);const t=this.values,r=this.prefixSum,o=n.length;return 0!==o&&(this.values=new Uint32Array(t.length+o),this.values.set(t.subarray(0,e),0),this.values.set(t.subarray(e),e+o),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)}setValue(e,n){return e=Me(e),n=Me(n),this.values[e]!==n&&(this.values[e]=n,e-1<this.prefixSumValidIndex[0]&&(this.prefixSumValidIndex[0]=e-1),!0)}removeValues(e,n){e=Me(e),n=Me(n);const t=this.values,r=this.prefixSum;if(e>=t.length)return!1;const o=t.length-e;return n>=o&&(n=o),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)}getTotalSum(){return 0===this.values.length?0:this._getPrefixSum(this.values.length-1)}getPrefixSum(e){return e<0?0:(e=Me(e),this._getPrefixSum(e))}_getPrefixSum(e){if(e<=this.prefixSumValidIndex[0])return this.prefixSum[e];let n=this.prefixSumValidIndex[0]+1;0===n&&(this.prefixSum[0]=this.values[0],n++),e>=this.values.length&&(e=this.values.length-1);for(let 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]}getIndexOf(e){e=Math.floor(e),this.getTotalSum();let n=0,t=this.values.length-1,r=0,o=0,i=0;for(;n<=t;)if(r=n+(t-n)/2|0,o=this.prefixSum[r],i=o-this.values[r],e<i)t=r-1;else{if(!(e>=o))break;n=r+1}return new $o(r,e-i)}}class $o{constructor(e,n){this.index=e,this.remainder=n,this._prefixSumIndexOfResultBrand=void 0,this.index=e,this.remainder=n}}class Qo{constructor(e,n,t,r){this._uri=e,this._lines=n,this._eol=t,this._versionId=r,this._lineStarts=null,this._cachedTextValue=null}dispose(){this._lines.length=0}get version(){return this._versionId}getText(){return null===this._cachedTextValue&&(this._cachedTextValue=this._lines.join(this._eol)),this._cachedTextValue}onEvents(e){e.eol&&e.eol!==this._eol&&(this._eol=e.eol,this._lineStarts=null);const n=e.changes;for(const t of n)this._acceptDeleteRange(t.range),this._acceptInsertText(new De(t.range.startLineNumber,t.range.startColumn),t.text);this._versionId=e.versionId,this._cachedTextValue=null}_ensureLineStarts(){if(!this._lineStarts){const e=this._eol.length,n=this._lines.length,t=new Uint32Array(n);for(let r=0;r<n;r++)t[r]=this._lines[r].length+e;this._lineStarts=new Yo(t)}}_setLineText(e,n){this._lines[e]=n,this._lineStarts&&this._lineStarts.setValue(e,this._lines[e].length+this._eol.length)}_acceptDeleteRange(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))}}_acceptInsertText(e,n){if(0===n.length)return;const t=n.split(/\r\n|\r|\n/);if(1===t.length)return void 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));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]);const r=new Uint32Array(t.length-1);for(let o=1;o<t.length;o++)this._lines.splice(e.lineNumber+o-1,0,t[o]),r[o-1]=t[o].length+this._eol.length;this._lineStarts&&this._lineStarts.insertValues(e.lineNumber,r)}}class Zo{constructor(){this._models=Object.create(null)}getModel(e){return this._models[e]}getModels(){const e=[];return Object.keys(this._models).forEach(n=>e.push(this._models[n])),e}$acceptNewModel(e){this._models[e.url]=new ei(xn.parse(e.url),e.lines,e.EOL,e.versionId)}$acceptModelChanged(e,n){if(!this._models[e])return;this._models[e].onEvents(n)}$acceptRemovedModel(e){this._models[e]&&delete this._models[e]}}class ei extends Qo{get uri(){return this._uri}get eol(){return this._eol}getValue(){return this.getText()}findMatches(e){const n=[];for(let t=0;t<this._lines.length;t++){const r=this._lines[t],o=this.offsetAt(new De(t+1,1)),i=r.matchAll(e);for(const e of i)(e.index||0===e.index)&&(e.index=e.index+o),n.push(e)}return n}getLinesContent(){return this._lines.slice(0)}getLineCount(){return this._lines.length}getLineContent(e){return this._lines[e-1]}getWordAtPosition(e,n){const t=dr(e.column,lr(n),this._lines[e.lineNumber-1],0);return t?new Ce(e.lineNumber,t.startColumn,e.lineNumber,t.endColumn):null}words(e){const n=this._lines,t=this._wordenize.bind(this);let r=0,o="",i=0,a=[];return{*[Symbol.iterator](){for(;;)if(i<a.length){const e=o.substring(a[i].start,a[i].end);i+=1,yield e}else{if(!(r<n.length))break;o=n[r],a=t(o,e),i=0,r+=1}}}}getLineWords(e,n){const t=this._lines[e-1],r=this._wordenize(t,n),o=[];for(const i of r)o.push({word:t.substring(i.start,i.end),startColumn:i.start+1,endColumn:i.end+1});return o}_wordenize(e,n){const t=[];let r;for(n.lastIndex=0;(r=n.exec(e))&&0!==r[0].length;)t.push({start:r.index,end:r.index+r[0].length});return t}getValueInRange(e){if((e=this._validateRange(e)).startLineNumber===e.endLineNumber)return this._lines[e.startLineNumber-1].substring(e.startColumn-1,e.endColumn-1);const n=this._eol,t=e.startLineNumber-1,r=e.endLineNumber-1,o=[];o.push(this._lines[t].substring(e.startColumn-1));for(let i=t+1;i<r;i++)o.push(this._lines[i]);return o.push(this._lines[r].substring(0,e.endColumn-1)),o.join(n)}offsetAt(e){return e=this._validatePosition(e),this._ensureLineStarts(),this._lineStarts.getPrefixSum(e.lineNumber-2)+(e.column-1)}positionAt(e){e=Math.floor(e),e=Math.max(0,e),this._ensureLineStarts();const n=this._lineStarts.getIndexOf(e),t=this._lines[n.index].length;return{lineNumber:1+n.index,column:1+Math.min(n.remainder,t)}}_validateRange(e){const 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}_validatePosition(e){if(!De.isIPosition(e))throw new Error("bad position");let{lineNumber:n,column:t}=e,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{const e=this._lines[n-1].length+1;t<1?(t=1,r=!0):t>e&&(t=e,r=!0)}return r?{lineNumber:n,column:t}:e}}class ni{constructor(e=null){this._foreignModule=e,this._requestHandlerBrand=void 0,this._workerTextModelSyncServer=new Zo}dispose(){}async $ping(){return"pong"}_getModel(e){return this._workerTextModelSyncServer.getModel(e)}getModels(){return this._workerTextModelSyncServer.getModels()}$acceptNewModel(e){this._workerTextModelSyncServer.$acceptNewModel(e)}$acceptModelChanged(e,n){this._workerTextModelSyncServer.$acceptModelChanged(e,n)}$acceptRemovedModel(e){this._workerTextModelSyncServer.$acceptRemovedModel(e)}async $computeUnicodeHighlights(e,n,t){const r=this._getModel(e);return r?pr.computeUnicodeHighlights(r,n,t):{ranges:[],hasMore:!1,ambiguousCharacterCount:0,invisibleCharacterCount:0,nonBasicAsciiCharacterCount:0}}async $findSectionHeaders(e,n){const t=this._getModel(e);return t?Uo(t,n):[]}async $computeDiff(e,n,t,r){const o=this._getModel(e),i=this._getModel(n);if(!o||!i)return null;return ni.computeDiff(o,i,t,r)}static computeDiff(e,n,t,r){const o="advanced"===r?Do():Io(),i=e.getLinesContent(),a=n.getLinesContent(),s=o.computeDiff(i,a,t);function l(e){return e.map(e=>[e.original.startLineNumber,e.original.endLineNumberExclusive,e.modified.startLineNumber,e.modified.endLineNumberExclusive,e.innerChanges?.map(e=>[e.originalRange.startLineNumber,e.originalRange.startColumn,e.originalRange.endLineNumber,e.originalRange.endColumn,e.modifiedRange.startLineNumber,e.modifiedRange.startColumn,e.modifiedRange.endLineNumber,e.modifiedRange.endColumn])])}return{identical:!(s.changes.length>0)&&this._modelsAreIdentical(e,n),quitEarly:s.hitTimeout,changes:l(s.changes),moves:s.moves.map(e=>[e.lineRangeMapping.original.startLineNumber,e.lineRangeMapping.original.endLineNumberExclusive,e.lineRangeMapping.modified.startLineNumber,e.lineRangeMapping.modified.endLineNumberExclusive,l(e.changes)])}}static _modelsAreIdentical(e,n){const t=e.getLineCount();if(t!==n.getLineCount())return!1;for(let r=1;r<=t;r++){if(e.getLineContent(r)!==n.getLineContent(r))return!1}return!0}static{this._diffLimit=1e5}async $computeMoreMinimalEdits(e,n,t){const r=this._getModel(e);if(!r)return n;const o=[];let i;n=n.slice(0).sort((e,n)=>{if(e.range&&n.range)return Ce.compareRangesUsingStarts(e.range,n.range);return(e.range?0:1)-(n.range?0:1)});let a=0;for(let s=1;s<n.length;s++)Ce.getEndPosition(n[a].range).equals(Ce.getStartPosition(n[s].range))?(n[a].range=Ce.fromPositions(Ce.getStartPosition(n[a].range),Ce.getEndPosition(n[s].range)),n[a].text+=n[s].text):(a++,n[a]=n[s]);n.length=a+1;for(let{range:s,text:l,eol:c}of n){if("number"==typeof c&&(i=c),Ce.isEmpty(s)&&!l)continue;const e=r.getValueInRange(s);if(l=l.replace(/\r\n|\n|\r/g,r.eol),e===l)continue;if(Math.max(l.length,e.length)>ni._diffLimit){o.push({range:s,text:l});continue}const n=Ee(e,l,t),a=r.offsetAt(Ce.lift(s).getStartPosition());for(const t of n){const e=r.positionAt(a+t.originalStart),n=r.positionAt(a+t.originalStart+t.originalLength),i={text:l.substr(t.modifiedStart,t.modifiedLength),range:{startLineNumber:e.lineNumber,startColumn:e.column,endLineNumber:n.lineNumber,endColumn:n.column}};r.getValueInRange(i.range)!==i.text&&o.push(i)}}return"number"==typeof i&&o.push({eol:i,text:"",range:{startLineNumber:0,startColumn:0,endLineNumber:0,endColumn:0}}),o}async $computeLinks(e){const n=this._getModel(e);return n?function(e){return e&&"function"==typeof e.getLineCount&&"function"==typeof e.getLineContent?Fe.computeLinks(e):[]}(n):null}async $computeDefaultDocumentColors(e){const n=this._getModel(e);return n?Go(n):null}static{this._suggestionsLimit=1e4}async $textualSuggest(e,n,t,r){const o=new b,i=new RegExp(t,r),a=new Set;e:for(const s of e){const e=this._getModel(s);if(e)for(const t of e.words(i))if(t!==n&&isNaN(Number(t))&&(a.add(t),a.size>ni._suggestionsLimit))break e}return{words:Array.from(a),duration:o.elapsed()}}async $computeWordRanges(e,n,t,r){const o=this._getModel(e);if(!o)return Object.create(null);const i=new RegExp(t,r),a=Object.create(null);for(let s=n.startLineNumber;s<n.endLineNumber;s++){const e=o.getLineWords(s,i);for(const n of e){if(!isNaN(Number(n.word)))continue;let e=a[n.word];e||(e=[],a[n.word]=e),e.push({startLineNumber:s,startColumn:n.startColumn,endLineNumber:s,endColumn:n.endColumn})}}return a}async $navigateValueSet(e,n,t,r,o){const i=this._getModel(e);if(!i)return null;const a=new RegExp(r,o);n.startColumn===n.endColumn&&(n={startLineNumber:n.startLineNumber,startColumn:n.startColumn,endLineNumber:n.endLineNumber,endColumn:n.endColumn+1});const s=i.getValueInRange(n),l=i.getWordAtPosition({lineNumber:n.startLineNumber,column:n.startColumn},a);if(!l)return null;const c=i.getValueInRange(l);return We.INSTANCE.navigateValueSet(n,s,l,c,t)}$fmr(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(bi){return Promise.reject(bi)}}}"function"==typeof importScripts&&(globalThis.monaco={editor:void 0,languages:void 0,CancellationTokenSource:Ve,Emitter:D,KeyCode:Et,KeyMod:nr,Position:De,Range:Ce,Selection:On,SelectionDirection:zt,MarkerSeverity:At,MarkerTag:xt,Uri:xn,Token:Gn});class ti{static{this.CHANNEL_NAME="editorWorkerHost"}static getChannel(e){return e.getChannel(ti.CHANNEL_NAME)}static setChannel(e,n){e.setChannel(ti.CHANNEL_NAME,n)}}function ri(e){let n;const t=function(e){if(ye)throw new Error("WebWorker already initialized!");ye=!0;const n=new ge(e=>globalThis.postMessage(e),n=>e(n));return globalThis.onmessage=e=>{n.onmessage(e.data)},n}(r=>{const o=ti.getChannel(r),i=new Proxy({},{get(e,n,t){if("then"!==n){if("string"!=typeof n)throw new Error("Not supported");return(...e)=>o.$fhr(n,e)}}});return n=e({host:i,getMirrorModels:()=>t.requestHandler.getModels()}),new ni(n)});return n}var oi=void 0,ii={};
|
||
/*! *****************************************************************************
|
||
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.
|
||
***************************************************************************** */(e=>{var n=Object.defineProperty,t=(e,t)=>{for(var r in t)n(e,r,{get:t[r],enumerable:!0})},r={};t(r,{ANONYMOUS:()=>IZ,AccessFlags:()=>Xr,AssertionLevel:()=>mn,AssignmentDeclarationKind:()=>io,AssignmentKind:()=>$_,Associativity:()=>oy,BreakpointResolver:()=>y5,BuilderFileEmit:()=>sH,BuilderProgramKind:()=>OH,BuilderState:()=>iH,CallHierarchy:()=>b5,CharacterCodes:()=>So,CheckFlags:()=>Vr,CheckMode:()=>rB,ClassificationType:()=>eY,ClassificationTypeNames:()=>ZX,CommentDirectiveType:()=>Er,Comparison:()=>a,CompletionInfoFlags:()=>KX,CompletionTriggerKind:()=>WX,Completions:()=>Pae,ContainerFlags:()=>tz,ContextFlags:()=>Lr,Debug:()=>dt,DiagnosticCategory:()=>ao,Diagnostics:()=>fa,DocumentHighlights:()=>L0,ElementFlags:()=>Jr,EmitFlags:()=>Ro,EmitHint:()=>No,EmitOnly:()=>Ir,EndOfLineState:()=>XX,ExitStatus:()=>Cr,ExportKind:()=>v0,Extension:()=>Eo,ExternalEmitHelpers:()=>Co,FileIncludeKind:()=>xr,FilePreprocessingDiagnosticsKind:()=>Rr,FileSystemEntryKind:()=>ii,FileWatcherEventKind:()=>zo,FindAllReferences:()=>kle,FlattenLevel:()=>kG,FlowFlags:()=>Sr,ForegroundColorEscapeSequences:()=>iU,FunctionFlags:()=>Og,GeneratedIdentifierFlags:()=>vr,GetLiteralTextFlags:()=>af,GoToDefinition:()=>Tce,HighlightSpanKind:()=>BX,IdentifierNameMap:()=>cG,ImportKind:()=>y0,ImportsNotUsedAsValues:()=>_o,IndentStyle:()=>GX,IndexFlags:()=>Yr,IndexKind:()=>eo,InferenceFlags:()=>ro,InferencePriority:()=>to,InlayHintKind:()=>zX,InlayHints:()=>zce,InternalEmitFlags:()=>Io,InternalNodeBuilderFlags:()=>wr,InternalSymbolName:()=>jr,IntersectionFlags:()=>Pr,InvalidatedProjectKind:()=>Cq,JSDocParsingMode:()=>Oo,JsDoc:()=>Uce,JsTyping:()=>rX,JsxEmit:()=>ho,JsxFlags:()=>_r,JsxReferenceKind:()=>$r,LanguageFeatureMinimumTarget:()=>Do,LanguageServiceMode:()=>kX,LanguageVariant:()=>bo,LexicalEnvironmentFlags:()=>Po,ListFormat:()=>Lo,LogLevel:()=>ut,MapCode:()=>dde,MemberOverrideStatus:()=>Nr,ModifierFlags:()=>hr,ModuleDetectionKind:()=>co,ModuleInstanceState:()=>QW,ModuleKind:()=>mo,ModuleResolutionKind:()=>lo,ModuleSpecifierEnding:()=>GE,NavigateTo:()=>i2,NavigationBar:()=>_2,NewLineKind:()=>go,NodeBuilderFlags:()=>kr,NodeCheckFlags:()=>Ur,NodeFactoryFlags:()=>iR,NodeFlags:()=>mr,NodeResolutionFeatures:()=>XF,ObjectFlags:()=>Kr,OperationCanceledException:()=>Ar,OperatorPrecedence:()=>cy,OrganizeImports:()=>_de,OrganizeImportsMode:()=>FX,OuterExpressionKinds:()=>Mo,OutliningElementsCollector:()=>Jde,OutliningSpanKind:()=>qX,OutputFileType:()=>JX,PackageJsonAutoImportPreference:()=>LX,PackageJsonDependencyGroup:()=>PX,PatternMatchKind:()=>a1,PollingInterval:()=>Bo,PollingWatchKind:()=>fo,PragmaKindFlags:()=>ko,PredicateSemantics:()=>yr,PreparePasteEdits:()=>Mme,PrivateIdentifierKind:()=>lI,ProcessLevel:()=>nV,ProgramUpdateLevel:()=>Oj,QuotePreference:()=>fQ,RegularExpressionFlags:()=>br,RelationComparisonResult:()=>gr,Rename:()=>rue,ScriptElementKind:()=>$X,ScriptElementKindModifier:()=>QX,ScriptKind:()=>yo,ScriptSnapshot:()=>xX,ScriptTarget:()=>vo,SemanticClassificationFormat:()=>OX,SemanticMeaning:()=>tY,SemicolonPreference:()=>VX,SignatureCheckMode:()=>oB,SignatureFlags:()=>Zr,SignatureHelp:()=>due,SignatureInfo:()=>aH,SignatureKind:()=>Qr,SmartSelectionRange:()=>Oue,SnippetKind:()=>xo,StatisticType:()=>hJ,StructureIsReused:()=>Dr,SymbolAccessibility:()=>Wr,SymbolDisplay:()=>que,SymbolDisplayPartKind:()=>HX,SymbolFlags:()=>Gr,SymbolFormatFlags:()=>Fr,SyntaxKind:()=>fr,Ternary:()=>oo,ThrottledCancellationToken:()=>c5,TokenClass:()=>YX,TokenFlags:()=>Tr,TransformFlags:()=>Ao,TypeFacts:()=>nB,TypeFlags:()=>Hr,TypeFormatFlags:()=>Or,TypeMapKind:()=>no,TypePredicateKind:()=>zr,TypeReferenceSerializationKind:()=>Br,UnionReduction:()=>Mr,UpToDateStatusType:()=>nq,VarianceFlags:()=>qr,Version:()=>vt,VersionRange:()=>Tt,WatchDirectoryFlags:()=>To,WatchDirectoryKind:()=>po,WatchFileKind:()=>uo,WatchLogLevel:()=>Uj,WatchType:()=>zK,accessPrivateIdentifier:()=>NG,addEmitFlags:()=>RR,addEmitHelper:()=>KR,addEmitHelpers:()=>qR,addInternalEmitFlags:()=>DR,addNodeFactoryPatcher:()=>sR,addObjectAllocatorPatcher:()=>jT,addRange:()=>ae,addRelatedInfo:()=>dA,addSyntheticLeadingComment:()=>zR,addSyntheticTrailingComment:()=>VR,addToSeen:()=>AT,advancedAsyncSuperHelper:()=>jI,affectsDeclarationPathOptionDeclarations:()=>jk,affectsEmitOptionDeclarations:()=>Vk,allKeysStartWithDot:()=>RW,altDirectorySeparator:()=>fi,and:()=>Zn,append:()=>re,appendIfUnique:()=>le,arrayFrom:()=>Le,arrayIsEqualTo:()=>ee,arrayIsHomogeneous:()=>RA,arrayOf:()=>Pe,arrayReverseIterator:()=>de,arrayToMap:()=>Oe,arrayToMultiMap:()=>We,arrayToNumericMap:()=>Fe,assertType:()=>tt,assign:()=>ke,asyncSuperHelper:()=>VI,attachFileToDiagnostics:()=>QT,base64decode:()=>Db,base64encode:()=>Ib,binarySearch:()=>Ee,binarySearchKey:()=>Ae,bindSourceFile:()=>iz,breakIntoCharacterSpans:()=>E1,breakIntoWordSpans:()=>A1,buildLinkParts:()=>$Q,buildOpts:()=>ew,buildOverload:()=>Vme,bundlerModuleNameResolver:()=>$F,canBeConvertedToAsync:()=>J1,canHaveDecorators:()=>NL,canHaveExportModifier:()=>XA,canHaveFlowNode:()=>F_,canHaveIllegalDecorators:()=>YP,canHaveIllegalModifiers:()=>$P,canHaveIllegalType:()=>JP,canHaveIllegalTypeParameters:()=>XP,canHaveJSDoc:()=>W_,canHaveLocals:()=>du,canHaveModifiers:()=>CL,canHaveModuleSpecifier:()=>b_,canHaveSymbol:()=>cu,canIncludeBindAndCheckDiagnostics:()=>gA,canJsonReportNoInputFiles:()=>EO,canProduceDiagnostics:()=>kV,canUsePropertyAccess:()=>$A,canWatchAffectingLocation:()=>iK,canWatchAtTypes:()=>tK,canWatchDirectoryOrFile:()=>eK,canWatchDirectoryOrFilePath:()=>nK,cartesianProduct:()=>it,cast:()=>nn,chainBundle:()=>tG,chainDiagnosticMessages:()=>rS,changeAnyExtension:()=>Yi,changeCompilerHostLikeToUseCache:()=>nU,changeExtension:()=>YE,changeFullExtension:()=>$i,changesAffectModuleResolution:()=>tp,changesAffectingProgramStructure:()=>rp,characterCodeToRegularExpressionFlag:()=>Oa,childIsDecorated:()=>yh,classElementOrClassElementParameterIsDecorated:()=>bh,classHasClassThisAssignment:()=>HG,classHasDeclaredOrExplicitlyAssignedName:()=>$G,classHasExplicitlyAssignedName:()=>YG,classOrConstructorParameterIsDecorated:()=>vh,classicNameResolver:()=>HW,classifier:()=>z5,cleanExtendedConfigCache:()=>zj,clear:()=>I,clearMap:()=>hT,clearSharedExtendedConfigFileWatcher:()=>Wj,climbPastPropertyAccess:()=>_Y,clone:()=>Ge,cloneCompilerOptions:()=>F$,closeFileWatcher:()=>aT,closeFileWatcherOf:()=>qj,codefix:()=>G5,collapseTextChangeRangesAcrossMultipleVersions:()=>el,collectExternalModuleInfo:()=>aG,combine:()=>oe,combinePaths:()=>zi,commandLineOptionOfCustomType:()=>Yk,commentPragmas:()=>wo,commonOptionsWithBuild:()=>Ok,compact:()=>ne,compareBooleans:()=>kn,compareDataObjects:()=>mT,compareDiagnostics:()=>aS,compareEmitHelpers:()=>dI,compareNumberOfDirectorySeparators:()=>HE,comparePaths:()=>ta,comparePathsCaseInsensitive:()=>na,comparePathsCaseSensitive:()=>ea,comparePatternKeys:()=>DW,compareProperties:()=>Ln,compareStringsCaseInsensitive:()=>En,compareStringsCaseInsensitiveEslintCompatible:()=>An,compareStringsCaseSensitive:()=>xn,compareStringsCaseSensitiveUI:()=>Pn,compareTextSpans:()=>bn,compareValues:()=>vn,compilerOptionsAffectDeclarationPath:()=>XS,compilerOptionsAffectEmit:()=>JS,compilerOptionsAffectSemanticDiagnostics:()=>qS,compilerOptionsDidYouMeanDiagnostics:()=>hw,compilerOptionsIndicateEsModules:()=>sQ,computeCommonSourceDirectoryOfFilenames:()=>Yj,computeLineAndCharacterOfPosition:()=>Ga,computeLineOfPosition:()=>Va,computeLineStarts:()=>Fa,computePositionOfLineAndCharacter:()=>za,computeSignatureWithDiagnostics:()=>zH,computeSuggestionDiagnostics:()=>W1,computedOptions:()=>bS,concatenate:()=>K,concatenateDiagnosticMessageChains:()=>oS,consumesNodeCoreModules:()=>KZ,contains:()=>S,containsIgnoredPath:()=>FA,containsObjectRestOrSpread:()=>IL,containsParseError:()=>Tp,containsPath:()=>ra,convertCompilerOptionsForTelemetry:()=>nF,convertCompilerOptionsFromJson:()=>DO,convertJsonOption:()=>OO,convertToBase64:()=>Rb,convertToJson:()=>Kw,convertToObject:()=>Hw,convertToOptionsWithAbsolutePaths:()=>oO,convertToRelativePath:()=>sa,convertToTSConfig:()=>Xw,convertTypeAcquisitionFromJson:()=>CO,copyComments:()=>pZ,copyEntries:()=>lp,copyLeadingComments:()=>hZ,copyProperties:()=>je,copyTrailingAsLeadingComments:()=>gZ,copyTrailingComments:()=>_Z,couldStartTrivia:()=>Za,countWhere:()=>A,createAbstractBuilder:()=>$H,createAccessorPropertyBackingField:()=>TL,createAccessorPropertyGetRedirector:()=>SL,createAccessorPropertySetRedirector:()=>EL,createBaseNodeFactory:()=>Qx,createBinaryExpressionTrampoline:()=>mL,createBuilderProgram:()=>BH,createBuilderProgramUsingIncrementalBuildInfo:()=>HH,createBuilderStatusReporter:()=>lq,createCacheableExportInfoMap:()=>b0,createCachedDirectoryStructureHost:()=>wj,createClassifier:()=>P0,createCommentDirectivesMap:()=>jp,createCompilerDiagnostic:()=>nS,createCompilerDiagnosticForInvalidCustomType:()=>aw,createCompilerDiagnosticFromMessageChain:()=>tS,createCompilerHost:()=>$j,createCompilerHostFromProgramHost:()=>GK,createCompilerHostWorker:()=>eU,createDetachedDiagnostic:()=>XT,createDiagnosticCollection:()=>fy,createDiagnosticForFileFromMessageChain:()=>Xf,createDiagnosticForNode:()=>Vf,createDiagnosticForNodeArray:()=>jf,createDiagnosticForNodeArrayFromMessageChain:()=>Kf,createDiagnosticForNodeFromMessageChain:()=>Hf,createDiagnosticForNodeInSourceFile:()=>Uf,createDiagnosticForRange:()=>$f,createDiagnosticMessageChainFromDiagnostic:()=>Yf,createDiagnosticReporter:()=>_K,createDocumentPositionMapper:()=>$B,createDocumentRegistry:()=>J0,createDocumentRegistryInternal:()=>X0,createEmitAndSemanticDiagnosticsBuilderProgram:()=>YH,createEmitHelperFactory:()=>cI,createEmptyExports:()=>lP,createEvaluator:()=>bx,createExpressionForJsxElement:()=>fP,createExpressionForJsxFragment:()=>mP,createExpressionForObjectLiteralElementLike:()=>yP,createExpressionForPropertyName:()=>gP,createExpressionFromEntityName:()=>_P,createExternalHelpersImportDeclarationIfNeeded:()=>OP,createFileDiagnostic:()=>ZT,createFileDiagnosticFromMessageChain:()=>Jf,createFlowNode:()=>rz,createForOfBindingStatement:()=>hP,createFutureSourceFile:()=>g0,createGetCanonicalFileName:()=>Hn,createGetIsolatedDeclarationErrors:()=>FV,createGetSourceFile:()=>Qj,createGetSymbolAccessibilityDiagnosticForNode:()=>OV,createGetSymbolAccessibilityDiagnosticForNodeName:()=>wV,createGetSymbolWalker:()=>uz,createIncrementalCompilerHost:()=>$K,createIncrementalProgram:()=>QK,createJsxFactoryExpression:()=>pP,createLanguageService:()=>p5,createLanguageServiceSourceFile:()=>i5,createMemberAccessForPropertyName:()=>cP,createModeAwareCache:()=>OF,createModeAwareCacheKey:()=>wF,createModeMismatchDetails:()=>_p,createModuleNotFoundChain:()=>hp,createModuleResolutionCache:()=>GF,createModuleResolutionLoader:()=>DU,createModuleResolutionLoaderUsingGlobalCache:()=>pK,createModuleSpecifierResolutionHost:()=>lQ,createMultiMap:()=>He,createNameResolver:()=>Ex,createNodeConverters:()=>nR,createNodeFactory:()=>lR,createOptionNameMap:()=>tw,createOverload:()=>Gme,createPackageJsonImportFilter:()=>HZ,createPackageJsonInfo:()=>UZ,createParenthesizerRules:()=>Zx,createPatternMatcher:()=>l1,createPrinter:()=>Mj,createPrinterWithDefaults:()=>Ij,createPrinterWithRemoveComments:()=>Dj,createPrinterWithRemoveCommentsNeverAsciiEscape:()=>Cj,createPrinterWithRemoveCommentsOmitTrailingSemicolon:()=>Nj,createProgram:()=>UU,createProgramDiagnostics:()=>rH,createProgramHost:()=>UK,createPropertyNameNodeForIdentifierOrLiteral:()=>HA,createQueue:()=>Je,createRange:()=>Ob,createRedirectedBuilderProgram:()=>JH,createResolutionCache:()=>fK,createRuntimeTypeSerializer:()=>lV,createScanner:()=>vs,createSemanticDiagnosticsBuilderProgram:()=>XH,createSet:()=>Xe,createSolutionBuilder:()=>pq,createSolutionBuilderHost:()=>dq,createSolutionBuilderWithWatch:()=>fq,createSolutionBuilderWithWatchHost:()=>uq,createSortedArray:()=>$,createSourceFile:()=>sk,createSourceMapGenerator:()=>PB,createSourceMapSource:()=>bR,createSuperAccessVariableStatement:()=>pV,createSymbolTable:()=>Qu,createSymlinkCache:()=>nE,createSyntacticTypeNodeBuilder:()=>tX,createSystemWatchFunctions:()=>li,createTextChange:()=>X$,createTextChangeFromStartLength:()=>J$,createTextChangeRange:()=>Qs,createTextRangeFromNode:()=>H$,createTextRangeFromSpan:()=>q$,createTextSpan:()=>Js,createTextSpanFromBounds:()=>Xs,createTextSpanFromNode:()=>j$,createTextSpanFromRange:()=>K$,createTextSpanFromStringLiteralLikeContent:()=>U$,createTextWriter:()=>Fy,createTokenRange:()=>Gb,createTypeChecker:()=>pB,createTypeReferenceDirectiveResolutionCache:()=>VF,createTypeReferenceResolutionLoader:()=>MU,createWatchCompilerHost:()=>ZK,createWatchCompilerHostOfConfigFile:()=>qK,createWatchCompilerHostOfFilesAndCompilerOptions:()=>JK,createWatchFactory:()=>BK,createWatchHost:()=>WK,createWatchProgram:()=>eq,createWatchStatusReporter:()=>bK,createWriteFileMeasuringIO:()=>Zj,declarationNameToString:()=>Of,decodeMappings:()=>BB,decodedTextSpanIntersectsWith:()=>js,deduplicate:()=>Y,defaultHoverMaximumTruncationLength:()=>Xu,defaultInitCompilerOptions:()=>iw,defaultMaximumTruncationLength:()=>qu,diagnosticCategoryName:()=>so,diagnosticToString:()=>d0,diagnosticsEqualityComparer:()=>dS,directoryProbablyExists:()=>Pb,directorySeparator:()=>pi,displayPart:()=>WQ,displayPartsToString:()=>e5,disposeEmitNodes:()=>ER,documentSpansEqual:()=>DQ,dumpTracingLegend:()=>pr,elementAt:()=>pe,elideNodes:()=>_L,emitDetachedComments:()=>Av,emitFiles:()=>Ej,emitFilesAndReportErrors:()=>kK,emitFilesAndReportErrorsAndGetExitStatus:()=>wK,emitModuleKindIsNonNodeESM:()=>WS,emitNewLineBeforeLeadingCommentOfPosition:()=>Ev,emitResolverSkipsTypeChecking:()=>Sj,emitSkippedWithNoDiagnostics:()=>XU,emptyArray:()=>s,emptyFileSystemEntries:()=>sA,emptyMap:()=>l,emptyOptions:()=>wX,endsWith:()=>Fn,ensurePathIsNonModuleName:()=>Xi,ensureScriptKind:()=>AE,ensureTrailingDirectorySeparator:()=>Ji,entityNameToString:()=>Gf,enumerateInsertsAndDeletes:()=>ot,equalOwnProperties:()=>we,equateStringsCaseInsensitive:()=>_n,equateStringsCaseSensitive:()=>gn,equateValues:()=>hn,escapeJsxAttributeString:()=>My,escapeLeadingUnderscores:()=>gl,escapeNonAsciiString:()=>Ry,escapeSnippetText:()=>jA,escapeString:()=>Ay,escapeTemplateSubstitution:()=>hy,evaluatorResult:()=>vx,every:()=>g,exclusivelyPrefixedNodeCoreModules:()=>Nx,executeCommandLine:()=>PJ,expandPreOrPostfixIncrementOrDecrementExpression:()=>vP,explainFiles:()=>DK,explainIfFileIsRedirectAndImpliedFormat:()=>CK,exportAssignmentIsAlias:()=>yg,expressionResultIsUnused:()=>OA,extend:()=>Ve,extensionFromPath:()=>rA,extensionIsTS:()=>nA,extensionsNotSupportingExtensionlessResolution:()=>wE,externalHelpersModuleNameText:()=>Ku,factory:()=>vR,fileExtensionIs:()=>xi,fileExtensionIsOneOf:()=>Ri,fileIncludeReasonToDiagnostics:()=>PK,fileShouldUseJavaScriptRequire:()=>h0,filter:()=>x,filterMutate:()=>R,filterSemanticDiagnostics:()=>$U,find:()=>y,findAncestor:()=>ml,findBestPatternMatch:()=>Jn,findChildOfKind:()=>qY,findComputedPropertyNameCacheAssignment:()=>AL,findConfigFile:()=>Jj,findConstructorDeclaration:()=>Sx,findContainingList:()=>JY,findDiagnosticForNode:()=>XZ,findFirstNonJsxWhitespaceToken:()=>c$,findIndex:()=>b,findLast:()=>v,findLastIndex:()=>T,findListItemInfo:()=>HY,findModifier:()=>AQ,findNextToken:()=>u$,findPackageJson:()=>jZ,findPackageJsons:()=>VZ,findPrecedingMatchingToken:()=>S$,findPrecedingToken:()=>p$,findSuperStatementIndexPath:()=>gG,findTokenOnLeftOfPosition:()=>d$,findUseStrictPrologue:()=>AP,first:()=>he,firstDefined:()=>p,firstDefinedIterator:()=>f,firstIterator:()=>_e,firstOrOnly:()=>e0,firstOrUndefined:()=>fe,firstOrUndefinedIterator:()=>me,fixupCompilerOptions:()=>o2,flatMap:()=>P,flatMapIterator:()=>k,flatMapToMutable:()=>L,flatten:()=>M,flattenCommaList:()=>RL,flattenDestructuringAssignment:()=>wG,flattenDestructuringBinding:()=>WG,flattenDiagnosticMessageText:()=>gU,forEach:()=>d,forEachAncestor:()=>ip,forEachAncestorDirectory:()=>da,forEachAncestorDirectoryStoppingAtGlobalCache:()=>kW,forEachChild:()=>rk,forEachChildRecursively:()=>ok,forEachDynamicImportOrRequireCall:()=>Px,forEachEmittedFile:()=>rj,forEachEnclosingBlockScopeContainer:()=>wf,forEachEntry:()=>ap,forEachExternalModuleToImportFrom:()=>E0,forEachImportClauseDeclaration:()=>D_,forEachKey:()=>sp,forEachLeadingCommentRange:()=>ls,forEachNameInAccessChainWalkingLeft:()=>MT,forEachNameOfDefaultExport:()=>M0,forEachOptionsSyntaxByName:()=>Gx,forEachProjectReference:()=>Wx,forEachPropertyAssignment:()=>qm,forEachResolvedProjectReference:()=>Fx,forEachReturnStatement:()=>Mm,forEachRight:()=>u,forEachTrailingCommentRange:()=>cs,forEachTsConfigPropArray:()=>Ym,forEachUnique:()=>NQ,forEachYieldExpression:()=>Pm,formatColorAndReset:()=>fU,formatDiagnostic:()=>oU,formatDiagnostics:()=>rU,formatDiagnosticsWithColorAndContext:()=>_U,formatGeneratedName:()=>bL,formatGeneratedNamePart:()=>yL,formatLocation:()=>hU,formatMessage:()=>eS,formatStringFromArgs:()=>HT,formatting:()=>Mpe,generateDjb2Hash:()=>Fo,generateTSConfig:()=>rO,getAdjustedReferenceLocation:()=>r$,getAdjustedRenameLocation:()=>o$,getAliasDeclarationFromName:()=>_g,getAllAccessorDeclarations:()=>_v,getAllDecoratorsOfClass:()=>AG,getAllDecoratorsOfClassElement:()=>xG,getAllJSDocTags:()=>dc,getAllJSDocTagsOfKind:()=>uc,getAllKeys:()=>Ne,getAllProjectOutputs:()=>vj,getAllSuperTypeNodes:()=>Ag,getAllowImportingTsExtensions:()=>TS,getAllowJSCompilerOption:()=>OS,getAllowSyntheticDefaultImports:()=>DS,getAncestor:()=>Ig,getAnyExtensionFromPath:()=>ki,getAreDeclarationMapsEnabled:()=>wS,getAssignedExpandoInitializer:()=>Xh,getAssignedName:()=>Cl,getAssignmentDeclarationKind:()=>o_,getAssignmentDeclarationPropertyAccessKind:()=>m_,getAssignmentTargetKind:()=>Z_,getAutomaticTypeDirectiveNames:()=>DF,getBaseFileName:()=>Pi,getBinaryOperatorPrecedence:()=>uy,getBuildInfo:()=>xj,getBuildInfoFileVersionMap:()=>KH,getBuildInfoText:()=>Aj,getBuildOrderFromAnyBuildOrder:()=>sq,getBuilderCreationParameters:()=>FH,getBuilderFileEmit:()=>cH,getCanonicalDiagnostic:()=>Qf,getCheckFlags:()=>sT,getClassExtendsHeritageElement:()=>Sg,getClassLikeDeclarationOfSymbol:()=>vT,getCombinedLocalAndExportSymbolFlags:()=>dT,getCombinedModifierFlags:()=>sl,getCombinedNodeFlags:()=>cl,getCombinedNodeFlagsAlwaysIncludeJSDoc:()=>ll,getCommentRange:()=>wR,getCommonSourceDirectory:()=>gj,getCommonSourceDirectoryOfConfig:()=>yj,getCompilerOptionValue:()=>YS,getConditions:()=>RF,getConfigFileParsingDiagnostics:()=>BU,getConstantValue:()=>UR,getContainerFlags:()=>cz,getContainerNode:()=>NY,getContainingClass:()=>Zm,getContainingClassExcludingClassDecorators:()=>th,getContainingClassStaticBlock:()=>eh,getContainingFunction:()=>$m,getContainingFunctionDeclaration:()=>Qm,getContainingFunctionOrClassStaticBlock:()=>nh,getContainingNodeArray:()=>WA,getContainingObjectLiteralElement:()=>m5,getContextualTypeFromParent:()=>TZ,getContextualTypeFromParentOrAncestorTypeNode:()=>QY,getDeclarationDiagnostics:()=>WV,getDeclarationEmitExtensionForPath:()=>Jy,getDeclarationEmitOutputFilePath:()=>Ky,getDeclarationEmitOutputFilePathWorker:()=>qy,getDeclarationFileExtension:()=>vk,getDeclarationFromName:()=>fg,getDeclarationModifierFlagsFromSymbol:()=>lT,getDeclarationOfKind:()=>Yu,getDeclarationsOfKind:()=>$u,getDeclaredExpandoInitializer:()=>Jh,getDecorators:()=>Nl,getDefaultCompilerOptions:()=>n5,getDefaultFormatCodeSettings:()=>jX,getDefaultLibFileName:()=>Ms,getDefaultLibFilePath:()=>_5,getDefaultLikeExportInfo:()=>C0,getDefaultLikeExportNameFromDeclaration:()=>t0,getDefaultResolutionModeForFileWorker:()=>JU,getDiagnosticText:()=>Sw,getDiagnosticsWithinSpan:()=>YZ,getDirectoryPath:()=>Mi,getDirectoryToWatchFailedLookupLocation:()=>aK,getDirectoryToWatchFailedLookupLocationFromTypeRoot:()=>cK,getDocumentPositionMapper:()=>w1,getDocumentSpansEqualityComparer:()=>CQ,getESModuleInterop:()=>IS,getEditsForFileRename:()=>Q0,getEffectiveBaseTypeNode:()=>Tg,getEffectiveConstraintOfTypeParameter:()=>mc,getEffectiveContainerForJSDocTemplateTag:()=>j_,getEffectiveImplementsTypeNodes:()=>Eg,getEffectiveInitializer:()=>qh,getEffectiveJSDocHost:()=>K_,getEffectiveModifierFlags:()=>jv,getEffectiveModifierFlagsAlwaysIncludeJSDoc:()=>Uv,getEffectiveModifierFlagsNoCache:()=>Jv,getEffectiveReturnTypeNode:()=>vv,getEffectiveSetAccessorTypeAnnotationNode:()=>Tv,getEffectiveTypeAnnotationNode:()=>gv,getEffectiveTypeParameterDeclarations:()=>fc,getEffectiveTypeRoots:()=>vF,getElementOrPropertyAccessArgumentExpressionOrName:()=>p_,getElementOrPropertyAccessName:()=>f_,getElementsOfBindingOrAssignmentPattern:()=>KP,getEmitDeclarations:()=>PS,getEmitFlags:()=>tf,getEmitHelpers:()=>XR,getEmitModuleDetectionKind:()=>xS,getEmitModuleFormatOfFileWorker:()=>KU,getEmitModuleKind:()=>ES,getEmitModuleResolutionKind:()=>AS,getEmitScriptTarget:()=>SS,getEmitStandardClassFields:()=>KS,getEnclosingBlockScopeContainer:()=>kf,getEnclosingContainer:()=>Lf,getEncodedSemanticClassifications:()=>G0,getEncodedSyntacticClassifications:()=>K0,getEndLinePosition:()=>Dp,getEntityNameFromTypeNode:()=>fh,getEntrypointsFromPackageJsonInfo:()=>_W,getErrorCountForSummary:()=>SK,getErrorSpanForNode:()=>nm,getErrorSummaryText:()=>RK,getEscapedTextOfIdentifierOrLiteral:()=>Kg,getEscapedTextOfJsxAttributeName:()=>ix,getEscapedTextOfJsxNamespacedName:()=>lx,getExpandoInitializer:()=>Yh,getExportAssignmentExpression:()=>vg,getExportInfoMap:()=>D0,getExportNeedsImportStarHelper:()=>rG,getExpressionAssociativity:()=>iy,getExpressionPrecedence:()=>sy,getExternalHelpersModuleName:()=>kP,getExternalModuleImportEqualsDeclarationExpression:()=>Dh,getExternalModuleName:()=>x_,getExternalModuleNameFromDeclaration:()=>jy,getExternalModuleNameFromPath:()=>Uy,getExternalModuleNameLiteral:()=>WP,getExternalModuleRequireArgument:()=>Ch,getFallbackOptions:()=>Kj,getFileEmitOutput:()=>oH,getFileMatcherPatterns:()=>vE,getFileNamesFromConfigSpecs:()=>jO,getFileWatcherEventKind:()=>Qo,getFilesInErrorForSummary:()=>EK,getFirstConstructorWithBody:()=>sv,getFirstIdentifier:()=>ub,getFirstNonSpaceCharacterPosition:()=>dZ,getFirstProjectOutput:()=>Tj,getFixableErrorSpanExpression:()=>QZ,getFormatCodeSettingsForWriting:()=>u0,getFullWidth:()=>dp,getFunctionFlags:()=>Fg,getHeritageClause:()=>Rg,getHostSignatureFromJSDoc:()=>H_,getIdentifierAutoGenerate:()=>iI,getIdentifierGeneratedImportReference:()=>sI,getIdentifierTypeArguments:()=>rI,getImmediatelyInvokedFunctionExpression:()=>lh,getImpliedNodeFormatForEmitWorker:()=>qU,getImpliedNodeFormatForFile:()=>GU,getImpliedNodeFormatForFileWorker:()=>VU,getImportNeedsImportDefaultHelper:()=>iG,getImportNeedsImportStarHelper:()=>oG,getIndentString:()=>wy,getInferredLibraryNameResolveFrom:()=>kU,getInitializedVariables:()=>rT,getInitializerOfBinaryExpression:()=>h_,getInitializerOfBindingOrAssignmentElement:()=>BP,getInterfaceBaseTypeNodes:()=>xg,getInternalEmitFlags:()=>rf,getInvokedExpression:()=>mh,getIsFileExcluded:()=>I0,getIsolatedModules:()=>RS,getJSDocAugmentsTag:()=>zl,getJSDocClassTag:()=>Gl,getJSDocCommentRanges:()=>Sm,getJSDocCommentsAndTags:()=>z_,getJSDocDeprecatedTag:()=>$l,getJSDocDeprecatedTagNoCache:()=>Ql,getJSDocEnumTag:()=>Zl,getJSDocHost:()=>q_,getJSDocImplementsTags:()=>Bl,getJSDocOverloadTags:()=>U_,getJSDocOverrideTagNoCache:()=>Yl,getJSDocParameterTags:()=>Ll,getJSDocParameterTagsNoCache:()=>kl,getJSDocPrivateTag:()=>Ul,getJSDocPrivateTagNoCache:()=>Hl,getJSDocProtectedTag:()=>Kl,getJSDocProtectedTagNoCache:()=>ql,getJSDocPublicTag:()=>Vl,getJSDocPublicTagNoCache:()=>jl,getJSDocReadonlyTag:()=>Jl,getJSDocReadonlyTagNoCache:()=>Xl,getJSDocReturnTag:()=>nc,getJSDocReturnType:()=>ac,getJSDocRoot:()=>J_,getJSDocSatisfiesExpressionType:()=>rx,getJSDocSatisfiesTag:()=>rc,getJSDocTags:()=>lc,getJSDocTemplateTag:()=>tc,getJSDocThisTag:()=>ec,getJSDocType:()=>ic,getJSDocTypeAliasName:()=>qP,getJSDocTypeAssertionType:()=>CP,getJSDocTypeParameterDeclarations:()=>bv,getJSDocTypeParameterTags:()=>Ol,getJSDocTypeParameterTagsNoCache:()=>Fl,getJSDocTypeTag:()=>oc,getJSXImplicitImportBase:()=>QS,getJSXRuntimeImport:()=>ZS,getJSXTransformEnabled:()=>$S,getKeyForCompilerOptions:()=>PF,getLanguageVariant:()=>fS,getLastChild:()=>ET,getLeadingCommentRanges:()=>fs,getLeadingCommentRangesOfNode:()=>Tm,getLeftmostAccessExpression:()=>NT,getLeftmostExpression:()=>PT,getLibFileNameFromLibReference:()=>Ox,getLibNameFromLibReference:()=>wx,getLibraryNameFromLibFileName:()=>wU,getLineAndCharacterOfPosition:()=>Ua,getLineInfo:()=>OB,getLineOfLocalPosition:()=>iv,getLineStartPositionForPosition:()=>kY,getLineStarts:()=>Ba,getLinesBetweenPositionAndNextNonWhitespaceCharacter:()=>Zb,getLinesBetweenPositionAndPrecedingNonWhitespaceCharacter:()=>Qb,getLinesBetweenPositions:()=>ja,getLinesBetweenRangeEndAndRangeStart:()=>qb,getLinesBetweenRangeEndPositions:()=>Jb,getLiteralText:()=>sf,getLocalNameForExternalImport:()=>FP,getLocalSymbolForExportDefault:()=>Eb,getLocaleSpecificMessage:()=>JT,getLocaleTimeString:()=>vK,getMappedContextSpan:()=>kQ,getMappedDocumentSpan:()=>LQ,getMappedLocation:()=>PQ,getMatchedFileSpec:()=>NK,getMatchedIncludeSpec:()=>MK,getMeaningFromDeclaration:()=>rY,getMeaningFromLocation:()=>oY,getMembersOfDeclaration:()=>km,getModeForFileReference:()=>yU,getModeForResolutionAtIndex:()=>vU,getModeForUsageLocation:()=>TU,getModifiedTime:()=>Vo,getModifiers:()=>Ml,getModuleInstanceState:()=>ZW,getModuleNameStringLiteralAt:()=>tH,getModuleSpecifierEndingPreference:()=>VE,getModuleSpecifierResolverHost:()=>cQ,getNameForExportedSymbol:()=>n0,getNameFromImportAttribute:()=>gx,getNameFromIndexInfo:()=>Ff,getNameFromPropertyName:()=>oQ,getNameOfAccessExpression:()=>DT,getNameOfCompilerOptionValue:()=>eO,getNameOfDeclaration:()=>Dl,getNameOfExpando:()=>Qh,getNameOfJSDocTypedef:()=>xl,getNameOfScriptTarget:()=>HS,getNameOrArgument:()=>u_,getNameTable:()=>f5,getNamespaceDeclarationNode:()=>R_,getNewLineCharacter:()=>wb,getNewLineKind:()=>c0,getNewLineOrDefaultFromHost:()=>ZQ,getNewTargetContainer:()=>ah,getNextJSDocCommentLocation:()=>G_,getNodeChildren:()=>oP,getNodeForGeneratedName:()=>gL,getNodeId:()=>cB,getNodeKind:()=>MY,getNodeModifiers:()=>C$,getNodeModulePathParts:()=>qA,getNonAssignedNameOfDeclaration:()=>Il,getNonAssignmentOperatorForCompoundAssignment:()=>mG,getNonAugmentationDeclaration:()=>bf,getNonDecoratorTokenPosOfNode:()=>Hp,getNonIncrementalBuildInfoRoots:()=>qH,getNonModifierTokenPosOfNode:()=>Kp,getNormalizedAbsolutePath:()=>Vi,getNormalizedAbsolutePathWithoutRoot:()=>Hi,getNormalizedPathComponents:()=>Gi,getObjectFlags:()=>bT,getOperatorAssociativity:()=>ay,getOperatorPrecedence:()=>dy,getOptionFromName:()=>gw,getOptionsForLibraryResolution:()=>jF,getOptionsNameMap:()=>rw,getOptionsSyntaxByArrayElementValue:()=>zx,getOptionsSyntaxByValue:()=>Bx,getOrCreateEmitNode:()=>SR,getOrUpdate:()=>z,getOriginalNode:()=>fl,getOriginalNodeId:()=>ZB,getOutputDeclarationFileName:()=>dj,getOutputDeclarationFileNameWorker:()=>uj,getOutputExtension:()=>lj,getOutputFileNames:()=>bj,getOutputJSFileNameWorker:()=>fj,getOutputPathsFor:()=>aj,getOwnEmitOutputFilePath:()=>Hy,getOwnKeys:()=>Ce,getOwnValues:()=>Me,getPackageJsonTypesVersionsPaths:()=>yF,getPackageNameFromTypesPackageName:()=>VW,getPackageScopeForPath:()=>vW,getParameterSymbolFromJSDoc:()=>V_,getParentNodeInSpan:()=>SQ,getParseTreeNode:()=>_l,getParsedCommandLineOfConfigFile:()=>Ew,getPathComponents:()=>wi,getPathFromPathComponents:()=>Oi,getPathUpdater:()=>Z0,getPathsBasePath:()=>$y,getPatternFromSpec:()=>_E,getPendingEmitKindWithSeen:()=>TH,getPositionOfLineAndCharacter:()=>Wa,getPossibleGenericSignatures:()=>A$,getPossibleOriginalInputExtensionForExtension:()=>Xy,getPossibleOriginalInputPathWithoutChangingExt:()=>Yy,getPossibleTypeArgumentsInfo:()=>x$,getPreEmitDiagnostics:()=>tU,getPrecedingNonSpaceCharacterPosition:()=>uZ,getPrivateIdentifier:()=>DG,getProperties:()=>yG,getProperty:()=>De,getPropertyAssignmentAliasLikeExpression:()=>bg,getPropertyNameForPropertyNameNode:()=>jg,getPropertyNameFromType:()=>px,getPropertyNameOfBindingOrAssignmentElement:()=>jP,getPropertySymbolFromBindingElement:()=>TQ,getPropertySymbolsFromContextualType:()=>h5,getQuoteFromPreference:()=>_Q,getQuotePreference:()=>hQ,getRangesWhere:()=>H,getRefactorContextSpan:()=>$Z,getReferencedFileLocation:()=>WU,getRegexFromPattern:()=>bE,getRegularExpressionForWildcard:()=>fE,getRegularExpressionsForWildcards:()=>mE,getRelativePathFromDirectory:()=>aa,getRelativePathFromFile:()=>la,getRelativePathToDirectoryOrUrl:()=>ca,getRenameLocation:()=>mZ,getReplacementSpanForContextToken:()=>V$,getResolutionDiagnostic:()=>eH,getResolutionModeOverride:()=>AU,getResolveJsonModule:()=>MS,getResolvePackageJsonExports:()=>CS,getResolvePackageJsonImports:()=>NS,getResolvedExternalModuleName:()=>Gy,getResolvedModuleFromResolution:()=>fp,getResolvedTypeReferenceDirectiveFromResolution:()=>mp,getRestIndicatorOfBindingOrAssignmentElement:()=>VP,getRestParameterElementType:()=>Lm,getRightMostAssignedExpression:()=>e_,getRootDeclaration:()=>ny,getRootDirectoryOfResolutionCache:()=>dK,getRootLength:()=>Ni,getScriptKind:()=>aZ,getScriptKindFromFileName:()=>xE,getScriptTargetFeatures:()=>of,getSelectedEffectiveModifierFlags:()=>Bv,getSelectedSyntacticModifierFlags:()=>Gv,getSemanticClassifications:()=>z0,getSemanticJsxChildren:()=>py,getSetAccessorTypeAnnotationNode:()=>cv,getSetAccessorValueParameter:()=>lv,getSetExternalModuleIndicator:()=>gS,getShebang:()=>hs,getSingleVariableOfVariableStatement:()=>w_,getSnapshotText:()=>nQ,getSnippetElement:()=>$R,getSourceFileOfModule:()=>Ep,getSourceFileOfNode:()=>Sp,getSourceFilePathInNewDir:()=>ev,getSourceFileVersionAsHashFromText:()=>VK,getSourceFilesToEmit:()=>Qy,getSourceMapRange:()=>CR,getSourceMapper:()=>k1,getSourceTextOfNodeFromSourceFile:()=>qp,getSpanOfTokenAtPosition:()=>Zf,getSpellingSuggestion:()=>wn,getStartPositionOfLine:()=>Rp,getStartPositionOfRange:()=>$b,getStartsOnNewLine:()=>LR,getStaticPropertiesAndClassStaticBlock:()=>bG,getStrictOptionValue:()=>US,getStringComparer:()=>Rn,getSubPatternFromSpec:()=>gE,getSuperCallFromStatement:()=>hG,getSuperContainer:()=>sh,getSupportedCodeFixes:()=>t5,getSupportedExtensions:()=>OE,getSupportedExtensionsWithJsonIfResolveJsonModule:()=>FE,getSwitchedType:()=>RZ,getSymbolId:()=>dB,getSymbolNameForPrivateIdentifier:()=>qg,getSymbolTarget:()=>sZ,getSyntacticClassifications:()=>H0,getSyntacticModifierFlags:()=>Hv,getSyntacticModifierFlagsNoCache:()=>Xv,getSynthesizedDeepClone:()=>Vx,getSynthesizedDeepCloneWithReplacements:()=>jx,getSynthesizedDeepClones:()=>Hx,getSynthesizedDeepClonesWithReplacements:()=>Kx,getSyntheticLeadingComments:()=>FR,getSyntheticTrailingComments:()=>BR,getTargetLabel:()=>gY,getTargetOfBindingOrAssignmentElement:()=>GP,getTemporaryModuleResolutionState:()=>yW,getTextOfConstantValue:()=>lf,getTextOfIdentifierOrLiteral:()=>Hg,getTextOfJSDocComment:()=>pc,getTextOfJsxAttributeName:()=>ax,getTextOfJsxNamespacedName:()=>cx,getTextOfNode:()=>Zp,getTextOfNodeFromSourceText:()=>Qp,getTextOfPropertyName:()=>Bf,getThisContainer:()=>rh,getThisParameter:()=>dv,getTokenAtPosition:()=>s$,getTokenPosOfNode:()=>Up,getTokenSourceMapRange:()=>MR,getTouchingPropertyName:()=>i$,getTouchingToken:()=>a$,getTrailingCommentRanges:()=>ms,getTrailingSemicolonDeferringWriter:()=>Wy,getTransformers:()=>HV,getTsBuildInfoEmitOutputFilePath:()=>oj,getTsConfigObjectLiteralExpression:()=>Jm,getTsConfigPropArrayElementValue:()=>Xm,getTypeAnnotationNode:()=>yv,getTypeArgumentOrTypeParameterList:()=>N$,getTypeKeywordOfTypeOnlyImport:()=>RQ,getTypeNode:()=>nI,getTypeNodeIfAccessible:()=>DZ,getTypeParameterFromJsDoc:()=>X_,getTypeParameterOwner:()=>nl,getTypesPackageName:()=>BW,getUILocale:()=>Nn,getUniqueName:()=>fZ,getUniqueSymbolId:()=>cZ,getUseDefineForClassFields:()=>FS,getWatchErrorSummaryDiagnosticMessage:()=>AK,getWatchFactory:()=>Hj,group:()=>ze,groupBy:()=>Be,guessIndentation:()=>Wu,handleNoEmitOptions:()=>YU,handleWatchOptionsConfigDirTemplateSubstitution:()=>fO,hasAbstractModifier:()=>wv,hasAccessorModifier:()=>Fv,hasAmbientModifier:()=>Ov,hasChangesInResolutions:()=>bp,hasContextSensitiveParameters:()=>zA,hasDecorators:()=>zv,hasDocComment:()=>I$,hasDynamicName:()=>Gg,hasEffectiveModifier:()=>Nv,hasEffectiveModifiers:()=>Dv,hasEffectiveReadonlyModifier:()=>Wv,hasExtension:()=>Ai,hasImplementationTSFileExtension:()=>BE,hasIndexSignature:()=>xZ,hasInferredType:()=>Rx,hasInitializer:()=>Lu,hasInvalidEscape:()=>gy,hasJSDocNodes:()=>Mu,hasJSDocParameterTags:()=>Wl,hasJSFileExtension:()=>WE,hasJsonModuleEmitEnabled:()=>zS,hasOnlyExpressionInitializer:()=>ku,hasOverrideModifier:()=>kv,hasPossibleExternalModuleReference:()=>Mf,hasProperty:()=>Ie,hasPropertyAccessExpressionWithName:()=>yY,hasQuestionToken:()=>C_,hasRecordedExternalHelpers:()=>wP,hasResolutionModeOverride:()=>mx,hasRestParameter:()=>Gu,hasScopeMarker:()=>$d,hasStaticModifier:()=>Lv,hasSyntacticModifier:()=>Mv,hasSyntacticModifiers:()=>Cv,hasTSFileExtension:()=>zE,hasTabstop:()=>QA,hasTrailingDirectorySeparator:()=>Ii,hasType:()=>Pu,hasTypeArguments:()=>Y_,hasZeroOrOneAsteriskCharacter:()=>eE,hostGetCanonicalFileName:()=>By,hostUsesCaseSensitiveFileNames:()=>zy,idText:()=>vl,identifierIsThisKeyword:()=>hv,identifierToKeywordKind:()=>bl,identity:()=>sn,identitySourceMapConsumer:()=>QB,ignoreSourceNewlines:()=>ZR,ignoredPaths:()=>Zo,importFromModuleSpecifier:()=>S_,importSyntaxAffectsModuleResolution:()=>yS,indexOfAnyCharCode:()=>E,indexOfNode:()=>nf,indicesOf:()=>J,inferredTypesContainingFile:()=>LU,injectClassNamedEvaluationHelperBlockIfMissing:()=>QG,injectClassThisAssignmentIfMissing:()=>KG,insertImports:()=>xQ,insertSorted:()=>Q,insertStatementAfterCustomPrologue:()=>Bp,insertStatementAfterStandardPrologue:()=>zp,insertStatementsAfterCustomPrologue:()=>Wp,insertStatementsAfterStandardPrologue:()=>Fp,intersperse:()=>_,intrinsicTagNameToString:()=>dx,introducesArgumentsExoticObject:()=>Bm,inverseJsxOptionMap:()=>Mk,isAbstractConstructorSymbol:()=>yT,isAbstractModifier:()=>vD,isAccessExpression:()=>IT,isAccessibilityModifier:()=>O$,isAccessor:()=>hd,isAccessorModifier:()=>TD,isAliasableExpression:()=>gg,isAmbientModule:()=>pf,isAmbientPropertyDeclaration:()=>Ef,isAnyDirectorySeparator:()=>_i,isAnyImportOrBareOrAccessedRequire:()=>Df,isAnyImportOrReExport:()=>Pf,isAnyImportOrRequireStatement:()=>Cf,isAnyImportSyntax:()=>If,isAnySupportedFileExtension:()=>oA,isApplicableVersionedTypesKey:()=>MW,isArgumentExpressionOfElementAccess:()=>xY,isArray:()=>Ye,isArrayBindingElement:()=>Id,isArrayBindingOrAssignmentElement:()=>kd,isArrayBindingOrAssignmentPattern:()=>Ld,isArrayBindingPattern:()=>pC,isArrayLiteralExpression:()=>mC,isArrayLiteralOrObjectLiteralDestructuringPattern:()=>W$,isArrayTypeNode:()=>qD,isArrowFunction:()=>AC,isAsExpression:()=>zC,isAssertClause:()=>DN,isAssertEntry:()=>CN,isAssertionExpression:()=>Jd,isAssertsKeyword:()=>hD,isAssignmentDeclaration:()=>Kh,isAssignmentExpression:()=>sb,isAssignmentOperator:()=>ob,isAssignmentPattern:()=>Rd,isAssignmentTarget:()=>eg,isAsteriskToken:()=>oD,isAsyncFunction:()=>Wg,isAsyncModifier:()=>mD,isAutoAccessorPropertyDeclaration:()=>_d,isAwaitExpression:()=>DC,isAwaitKeyword:()=>_D,isBigIntLiteral:()=>KI,isBinaryExpression:()=>MC,isBinaryLogicalOperator:()=>Qv,isBinaryOperatorToken:()=>sL,isBindableObjectDefinePropertyCall:()=>i_,isBindableStaticAccessExpression:()=>l_,isBindableStaticElementAccessExpression:()=>c_,isBindableStaticNameExpression:()=>d_,isBindingElement:()=>fC,isBindingElementOfBareOrAccessedRequire:()=>Gh,isBindingName:()=>id,isBindingOrAssignmentElement:()=>Cd,isBindingOrAssignmentPattern:()=>Nd,isBindingPattern:()=>xd,isBlock:()=>JC,isBlockLike:()=>_0,isBlockOrCatchScoped:()=>df,isBlockScope:()=>Af,isBlockScopedContainerTopLevel:()=>_f,isBooleanLiteral:()=>cd,isBreakOrContinueStatement:()=>Dc,isBreakStatement:()=>iN,isBuildCommand:()=>MJ,isBuildInfoFile:()=>tj,isBuilderProgram:()=>IK,isBundle:()=>pM,isCallChain:()=>vc,isCallExpression:()=>yC,isCallExpressionTarget:()=>aY,isCallLikeExpression:()=>Wd,isCallLikeOrFunctionLikeExpression:()=>Fd,isCallOrNewExpression:()=>zd,isCallOrNewExpressionTarget:()=>lY,isCallSignatureDeclaration:()=>WD,isCallToHelper:()=>UI,isCaseBlock:()=>SN,isCaseClause:()=>rM,isCaseKeyword:()=>AD,isCaseOrDefaultClause:()=>xu,isCatchClause:()=>aM,isCatchClauseVariableDeclaration:()=>GA,isCatchClauseVariableDeclarationOrBindingElement:()=>uf,isCheckJsEnabledForFile:()=>aA,isCircularBuildOrder:()=>aq,isClassDeclaration:()=>_N,isClassElement:()=>fd,isClassExpression:()=>OC,isClassInstanceProperty:()=>gd,isClassLike:()=>md,isClassMemberModifier:()=>nd,isClassNamedEvaluationHelperBlock:()=>XG,isClassOrTypeElement:()=>Td,isClassStaticBlockDeclaration:()=>kD,isClassThisAssignmentBlock:()=>UG,isColonToken:()=>sD,isCommaExpression:()=>RP,isCommaListExpression:()=>HC,isCommaSequence:()=>IP,isCommaToken:()=>nD,isComment:()=>M$,isCommonJsExportPropertyAssignment:()=>Wm,isCommonJsExportedExpression:()=>Fm,isCompoundAssignment:()=>fG,isComputedNonLiteralName:()=>Wf,isComputedPropertyName:()=>RD,isConciseBody:()=>nu,isConditionalExpression:()=>PC,isConditionalTypeNode:()=>eC,isConstAssertion:()=>Tx,isConstTypeReference:()=>xc,isConstructSignatureDeclaration:()=>zD,isConstructorDeclaration:()=>wD,isConstructorTypeNode:()=>UD,isContextualKeyword:()=>Mg,isContinueStatement:()=>oN,isCustomPrologue:()=>gm,isDebuggerStatement:()=>pN,isDeclaration:()=>fu,isDeclarationBindingElement:()=>Dd,isDeclarationFileName:()=>yk,isDeclarationName:()=>pg,isDeclarationNameOfEnumOrNamespace:()=>tT,isDeclarationReadonly:()=>am,isDeclarationStatement:()=>mu,isDeclarationWithTypeParameterChildren:()=>Rf,isDeclarationWithTypeParameters:()=>xf,isDecorator:()=>CD,isDecoratorTarget:()=>dY,isDefaultClause:()=>oM,isDefaultImport:()=>I_,isDefaultModifier:()=>fD,isDefaultedExpandoInitializer:()=>$h,isDeleteExpression:()=>xC,isDeleteTarget:()=>dg,isDeprecatedDeclaration:()=>s0,isDestructuringAssignment:()=>lb,isDiskPathRoot:()=>vi,isDoStatement:()=>ZC,isDocumentRegistryEntry:()=>q0,isDotDotDotToken:()=>eD,isDottedName:()=>pb,isDynamicName:()=>Vg,isEffectiveExternalModule:()=>Tf,isEffectiveStrictModeSourceFile:()=>Sf,isElementAccessChain:()=>yc,isElementAccessExpression:()=>gC,isEmittedFileOfProgram:()=>jj,isEmptyArrayLiteral:()=>Sb,isEmptyBindingElement:()=>ol,isEmptyBindingPattern:()=>rl,isEmptyObjectLiteral:()=>Tb,isEmptyStatement:()=>YC,isEmptyStringLiteral:()=>Th,isEntityName:()=>rd,isEntityNameExpression:()=>db,isEnumConst:()=>im,isEnumDeclaration:()=>vN,isEnumMember:()=>dM,isEqualityOperatorKind:()=>EZ,isEqualsGreaterThanToken:()=>cD,isExclamationToken:()=>iD,isExcludedFile:()=>UO,isExclusivelyTypeOnlyImportOrExport:()=>bU,isExpandoPropertyDeclaration:()=>fx,isExportAssignment:()=>ON,isExportDeclaration:()=>FN,isExportModifier:()=>pD,isExportName:()=>SP,isExportNamespaceAsDefaultDeclaration:()=>Jp,isExportOrDefaultModifier:()=>hL,isExportSpecifier:()=>zN,isExportsIdentifier:()=>n_,isExportsOrModuleExportsOrAlias:()=>lz,isExpression:()=>qd,isExpressionNode:()=>Eh,isExpressionOfExternalModuleImportEqualsDeclaration:()=>CY,isExpressionOfOptionalChainRoot:()=>Sc,isExpressionStatement:()=>$C,isExpressionWithTypeArguments:()=>WC,isExpressionWithTypeArgumentsInClassExtendsClause:()=>cb,isExternalModule:()=>dk,isExternalModuleAugmentation:()=>yf,isExternalModuleImportEqualsDeclaration:()=>Ih,isExternalModuleIndicator:()=>Zd,isExternalModuleNameRelative:()=>Ds,isExternalModuleReference:()=>UN,isExternalModuleSymbol:()=>ep,isExternalOrCommonJsModule:()=>rm,isFileLevelReservedGeneratedIdentifier:()=>Yc,isFileLevelUniqueName:()=>Cp,isFileProbablyExternalModule:()=>OL,isFirstDeclarationOfSymbolParameter:()=>wQ,isFixablePromiseHandler:()=>j1,isForInOrOfStatement:()=>eu,isForInStatement:()=>tN,isForInitializer:()=>ru,isForOfStatement:()=>rN,isForStatement:()=>nN,isFullSourceFile:()=>Mh,isFunctionBlock:()=>Vm,isFunctionBody:()=>tu,isFunctionDeclaration:()=>hN,isFunctionExpression:()=>EC,isFunctionExpressionOrArrowFunction:()=>VA,isFunctionLike:()=>ad,isFunctionLikeDeclaration:()=>ld,isFunctionLikeKind:()=>ud,isFunctionLikeOrClassStaticBlockDeclaration:()=>sd,isFunctionOrConstructorTypeNode:()=>Ad,isFunctionOrModuleBlock:()=>pd,isFunctionSymbol:()=>v_,isFunctionTypeNode:()=>jD,isGeneratedIdentifier:()=>Jc,isGeneratedPrivateIdentifier:()=>Xc,isGetAccessor:()=>Nu,isGetAccessorDeclaration:()=>OD,isGetOrSetAccessorDeclaration:()=>_c,isGlobalScopeAugmentation:()=>gf,isGlobalSourceFile:()=>tm,isGrammarError:()=>Pp,isHeritageClause:()=>iM,isHoistedFunction:()=>ym,isHoistedVariableStatement:()=>bm,isIdentifier:()=>dD,isIdentifierANonContextualKeyword:()=>kg,isIdentifierName:()=>hg,isIdentifierOrThisTypeNode:()=>ZP,isIdentifierPart:()=>gs,isIdentifierStart:()=>_s,isIdentifierText:()=>ys,isIdentifierTypePredicate:()=>Hm,isIdentifierTypeReference:()=>xA,isIfStatement:()=>QC,isIgnoredFileFromWildCardWatching:()=>Vj,isImplicitGlob:()=>hE,isImportAttribute:()=>MN,isImportAttributeName:()=>qc,isImportAttributes:()=>NN,isImportCall:()=>fm,isImportClause:()=>RN,isImportDeclaration:()=>xN,isImportEqualsDeclaration:()=>AN,isImportKeyword:()=>ED,isImportMeta:()=>mm,isImportOrExportSpecifier:()=>Gc,isImportOrExportSpecifierName:()=>iZ,isImportSpecifier:()=>wN,isImportTypeAssertionContainer:()=>IN,isImportTypeNode:()=>lC,isImportable:()=>T0,isInComment:()=>R$,isInCompoundLikeAssignment:()=>ng,isInExpressionContext:()=>Ah,isInJSDoc:()=>Oh,isInJSFile:()=>Lh,isInJSXText:()=>b$,isInJsonFile:()=>kh,isInNonReferenceComment:()=>B$,isInReferenceComment:()=>z$,isInRightSideOfInternalImportEqualsDeclaration:()=>iY,isInString:()=>_$,isInTemplateString:()=>v$,isInTopLevelContext:()=>ih,isInTypeQuery:()=>fv,isIncrementalBuildInfo:()=>PH,isIncrementalBundleEmitBuildInfo:()=>MH,isIncrementalCompilation:()=>kS,isIndexSignatureDeclaration:()=>BD,isIndexedAccessTypeNode:()=>iC,isInferTypeNode:()=>nC,isInfinityOrNaNString:()=>BA,isInitializedProperty:()=>TG,isInitializedVariable:()=>oT,isInsideJsxElement:()=>T$,isInsideJsxElementOrAttribute:()=>g$,isInsideNodeModules:()=>qZ,isInsideTemplateLiteral:()=>w$,isInstanceOfExpression:()=>vb,isInstantiatedModule:()=>uB,isInterfaceDeclaration:()=>gN,isInternalDeclaration:()=>Uu,isInternalModuleImportEqualsDeclaration:()=>Nh,isInternalName:()=>bP,isIntersectionTypeNode:()=>ZD,isIntrinsicJsxName:()=>Ly,isIterationStatement:()=>Xd,isJSDoc:()=>IM,isJSDocAllType:()=>vM,isJSDocAugmentsTag:()=>NM,isJSDocAuthorTag:()=>MM,isJSDocCallbackTag:()=>LM,isJSDocClassTag:()=>PM,isJSDocCommentContainingNode:()=>Iu,isJSDocConstructSignature:()=>N_,isJSDocDeprecatedTag:()=>BM,isJSDocEnumTag:()=>VM,isJSDocFunctionType:()=>AM,isJSDocImplementsTag:()=>$M,isJSDocImportTag:()=>eP,isJSDocIndexSignature:()=>Fh,isJSDocLikeText:()=>wL,isJSDocLink:()=>_M,isJSDocLinkCode:()=>gM,isJSDocLinkLike:()=>Bu,isJSDocLinkPlain:()=>yM,isJSDocMemberName:()=>hM,isJSDocNameReference:()=>mM,isJSDocNamepathType:()=>RM,isJSDocNamespaceBody:()=>au,isJSDocNode:()=>Ru,isJSDocNonNullableType:()=>SM,isJSDocNullableType:()=>TM,isJSDocOptionalParameter:()=>ZA,isJSDocOptionalType:()=>EM,isJSDocOverloadTag:()=>zM,isJSDocOverrideTag:()=>WM,isJSDocParameterTag:()=>jM,isJSDocPrivateTag:()=>wM,isJSDocPropertyLikeTag:()=>Nc,isJSDocPropertyTag:()=>YM,isJSDocProtectedTag:()=>OM,isJSDocPublicTag:()=>kM,isJSDocReadonlyTag:()=>FM,isJSDocReturnTag:()=>UM,isJSDocSatisfiesExpression:()=>tx,isJSDocSatisfiesTag:()=>QM,isJSDocSeeTag:()=>GM,isJSDocSignature:()=>CM,isJSDocTag:()=>Du,isJSDocTemplateTag:()=>qM,isJSDocThisTag:()=>HM,isJSDocThrowsTag:()=>ZM,isJSDocTypeAlias:()=>M_,isJSDocTypeAssertion:()=>DP,isJSDocTypeExpression:()=>fM,isJSDocTypeLiteral:()=>DM,isJSDocTypeTag:()=>KM,isJSDocTypedefTag:()=>JM,isJSDocUnknownTag:()=>XM,isJSDocUnknownType:()=>bM,isJSDocVariadicType:()=>xM,isJSXTagName:()=>Sh,isJsonEqual:()=>yA,isJsonSourceFile:()=>om,isJsxAttribute:()=>QN,isJsxAttributeLike:()=>Tu,isJsxAttributeName:()=>sx,isJsxAttributes:()=>ZN,isJsxCallLike:()=>Au,isJsxChild:()=>bu,isJsxClosingElement:()=>JN,isJsxClosingFragment:()=>$N,isJsxElement:()=>HN,isJsxExpression:()=>nM,isJsxFragment:()=>XN,isJsxNamespacedName:()=>tM,isJsxOpeningElement:()=>qN,isJsxOpeningFragment:()=>YN,isJsxOpeningLikeElement:()=>Eu,isJsxOpeningLikeElementTagName:()=>uY,isJsxSelfClosingElement:()=>KN,isJsxSpreadAttribute:()=>eM,isJsxTagNameExpression:()=>vu,isJsxText:()=>JI,isJumpStatementTarget:()=>vY,isKeyword:()=>Dg,isKeywordOrPunctuation:()=>Ng,isKnownSymbol:()=>Jg,isLabelName:()=>TY,isLabelOfLabeledStatement:()=>bY,isLabeledStatement:()=>cN,isLateVisibilityPaintedStatement:()=>Nf,isLeftHandSideExpression:()=>Gd,isLet:()=>um,isLineBreak:()=>qa,isLiteralComputedPropertyDeclarationName:()=>mg,isLiteralExpression:()=>Oc,isLiteralExpressionOfObject:()=>Fc,isLiteralImportTypeNode:()=>hm,isLiteralKind:()=>wc,isLiteralNameOfPropertyDeclarationOrIndexAccess:()=>DY,isLiteralTypeLiteral:()=>Kd,isLiteralTypeNode:()=>sC,isLocalName:()=>TP,isLogicalOperator:()=>Zv,isLogicalOrCoalescingAssignmentExpression:()=>nb,isLogicalOrCoalescingAssignmentOperator:()=>eb,isLogicalOrCoalescingBinaryExpression:()=>rb,isLogicalOrCoalescingBinaryOperator:()=>tb,isMappedTypeNode:()=>aC,isMemberName:()=>hc,isMetaProperty:()=>VC,isMethodDeclaration:()=>LD,isMethodOrAccessor:()=>yd,isMethodSignature:()=>PD,isMinusToken:()=>rD,isMissingDeclaration:()=>GN,isMissingPackageJsonInfo:()=>NF,isModifier:()=>td,isModifierKind:()=>Zc,isModifierLike:()=>vd,isModuleAugmentationExternal:()=>vf,isModuleBlock:()=>TN,isModuleBody:()=>ou,isModuleDeclaration:()=>bN,isModuleExportName:()=>BN,isModuleExportsAccessExpression:()=>r_,isModuleIdentifier:()=>t_,isModuleName:()=>tL,isModuleOrEnumDeclaration:()=>lu,isModuleReference:()=>yu,isModuleSpecifierLike:()=>vQ,isModuleWithStringLiteralName:()=>ff,isNameOfFunctionDeclaration:()=>IY,isNameOfModuleDeclaration:()=>RY,isNamedDeclaration:()=>Rl,isNamedEvaluation:()=>Qg,isNamedEvaluationSource:()=>$g,isNamedExportBindings:()=>Cc,isNamedExports:()=>WN,isNamedImportBindings:()=>su,isNamedImports:()=>kN,isNamedImportsOrExports:()=>CT,isNamedTupleMember:()=>XD,isNamespaceBody:()=>iu,isNamespaceExport:()=>LN,isNamespaceExportDeclaration:()=>EN,isNamespaceImport:()=>PN,isNamespaceReexportDeclaration:()=>Rh,isNewExpression:()=>vC,isNewExpressionTarget:()=>sY,isNewScopeNode:()=>kx,isNoSubstitutionTemplateLiteral:()=>YI,isNodeArray:()=>kc,isNodeArrayMultiLine:()=>Xb,isNodeDescendantOf:()=>ug,isNodeKind:()=>Mc,isNodeLikeSystem:()=>ct,isNodeModulesDirectory:()=>ua,isNodeWithPossibleHoistedDeclaration:()=>tg,isNonContextualKeyword:()=>Pg,isNonGlobalAmbientModule:()=>mf,isNonNullAccess:()=>nx,isNonNullChain:()=>Ic,isNonNullExpression:()=>GC,isNonStaticMethodOrAccessorWithPrivateName:()=>SG,isNotEmittedStatement:()=>VN,isNullishCoalesce:()=>Ac,isNumber:()=>Ze,isNumericLiteral:()=>HI,isNumericLiteralName:()=>UA,isObjectBindingElementWithoutPropertyName:()=>bQ,isObjectBindingOrAssignmentElement:()=>Pd,isObjectBindingOrAssignmentPattern:()=>Md,isObjectBindingPattern:()=>uC,isObjectLiteralElement:()=>wu,isObjectLiteralElementLike:()=>Sd,isObjectLiteralExpression:()=>hC,isObjectLiteralMethod:()=>jm,isObjectLiteralOrClassExpressionMethodOrAccessor:()=>Um,isObjectTypeDeclaration:()=>xT,isOmittedExpression:()=>FC,isOptionalChain:()=>bc,isOptionalChainRoot:()=>Tc,isOptionalDeclaration:()=>ex,isOptionalJSDocPropertyLikeTag:()=>YA,isOptionalTypeNode:()=>YD,isOuterExpression:()=>NP,isOutermostOptionalChain:()=>Ec,isOverrideModifier:()=>bD,isPackageJsonInfo:()=>CF,isPackedArrayLiteral:()=>wA,isParameter:()=>DD,isParameterPropertyDeclaration:()=>tl,isParameterPropertyModifier:()=>ed,isParenthesizedExpression:()=>SC,isParenthesizedTypeNode:()=>tC,isParseTreeNode:()=>hl,isPartOfParameterDeclaration:()=>ey,isPartOfTypeNode:()=>Cm,isPartOfTypeOnlyImportOrExportDeclaration:()=>Hc,isPartOfTypeQuery:()=>xh,isPartiallyEmittedExpression:()=>UC,isPatternMatch:()=>Qn,isPinnedComment:()=>Vp,isPlainJsFile:()=>Ap,isPlusToken:()=>tD,isPossiblyTypeArgumentPosition:()=>E$,isPostfixUnaryExpression:()=>NC,isPrefixUnaryExpression:()=>CC,isPrimitiveLiteralValue:()=>Ax,isPrivateIdentifier:()=>uD,isPrivateIdentifierClassElementDeclaration:()=>$c,isPrivateIdentifierPropertyAccessExpression:()=>Qc,isPrivateIdentifierSymbol:()=>Xg,isProgramUptoDate:()=>zU,isPrologueDirective:()=>_m,isPropertyAccessChain:()=>gc,isPropertyAccessEntityNameExpression:()=>fb,isPropertyAccessExpression:()=>_C,isPropertyAccessOrQualifiedName:()=>Od,isPropertyAccessOrQualifiedNameOrImportTypeNode:()=>wd,isPropertyAssignment:()=>sM,isPropertyDeclaration:()=>MD,isPropertyName:()=>od,isPropertyNameLiteral:()=>Ug,isPropertySignature:()=>ND,isPrototypeAccess:()=>hb,isPrototypePropertyAssignment:()=>__,isPunctuation:()=>Cg,isPushOrUnshiftIdentifier:()=>Zg,isQualifiedName:()=>xD,isQuestionDotToken:()=>lD,isQuestionOrExclamationToken:()=>QP,isQuestionOrPlusOrMinusToken:()=>nL,isQuestionToken:()=>aD,isReadonlyKeyword:()=>gD,isReadonlyKeywordOrPlusOrMinusToken:()=>eL,isRecognizedTripleSlashComment:()=>Gp,isReferenceFileLocation:()=>FU,isReferencedFile:()=>OU,isRegularExpressionLiteral:()=>XI,isRequireCall:()=>Wh,isRequireVariableStatement:()=>jh,isRestParameter:()=>Vu,isRestTypeNode:()=>$D,isReturnStatement:()=>aN,isReturnStatementWithFixablePromiseHandler:()=>V1,isRightSideOfAccessExpression:()=>gb,isRightSideOfInstanceofExpression:()=>bb,isRightSideOfPropertyAccess:()=>AY,isRightSideOfQualifiedName:()=>EY,isRightSideOfQualifiedNameOrPropertyAccess:()=>_b,isRightSideOfQualifiedNameOrPropertyAccessOrJSDocMemberName:()=>yb,isRootedDiskPath:()=>yi,isSameEntityName:()=>Zh,isSatisfiesExpression:()=>BC,isSemicolonClassElement:()=>qC,isSetAccessor:()=>Cu,isSetAccessorDeclaration:()=>FD,isShiftOperatorOrHigher:()=>rL,isShorthandAmbientModuleSymbol:()=>hf,isShorthandPropertyAssignment:()=>lM,isSideEffectImport:()=>Ix,isSignedNumericLiteral:()=>Bg,isSimpleCopiableExpression:()=>uG,isSimpleInlineableExpression:()=>pG,isSimpleParameterList:()=>PG,isSingleOrDoubleQuote:()=>Uh,isSolutionConfig:()=>SO,isSourceElement:()=>yx,isSourceFile:()=>uM,isSourceFileFromLibrary:()=>f0,isSourceFileJS:()=>Ph,isSourceFileNotJson:()=>wh,isSourceMapping:()=>VB,isSpecialPropertyDeclaration:()=>g_,isSpreadAssignment:()=>cM,isSpreadElement:()=>wC,isStatement:()=>_u,isStatementButNotDeclaration:()=>hu,isStatementOrBlock:()=>gu,isStatementWithLocals:()=>xp,isStatic:()=>Pv,isStaticModifier:()=>yD,isString:()=>Qe,isStringANonContextualKeyword:()=>Lg,isStringAndEmptyAnonymousObjectIntersection:()=>k$,isStringDoubleQuoted:()=>Hh,isStringLiteral:()=>qI,isStringLiteralLike:()=>zu,isStringLiteralOrJsxExpression:()=>Su,isStringLiteralOrTemplate:()=>AZ,isStringOrNumericLiteralLike:()=>zg,isStringOrRegularExpressionOrTemplateLiteral:()=>P$,isStringTextContainingNode:()=>Kc,isSuperCall:()=>pm,isSuperKeyword:()=>SD,isSuperProperty:()=>ch,isSupportedSourceFileName:()=>jE,isSwitchStatement:()=>lN,isSyntaxList:()=>nP,isSyntheticExpression:()=>jC,isSyntheticReference:()=>jN,isTagName:()=>SY,isTaggedTemplateExpression:()=>bC,isTaggedTemplateTag:()=>cY,isTemplateExpression:()=>LC,isTemplateHead:()=>$I,isTemplateLiteral:()=>Bd,isTemplateLiteralKind:()=>Wc,isTemplateLiteralToken:()=>zc,isTemplateLiteralTypeNode:()=>dC,isTemplateLiteralTypeSpan:()=>cC,isTemplateMiddle:()=>QI,isTemplateMiddleOrTemplateTail:()=>Bc,isTemplateSpan:()=>KC,isTemplateTail:()=>ZI,isTextWhiteSpaceLike:()=>MQ,isThis:()=>PY,isThisContainerOrFunctionBlock:()=>oh,isThisIdentifier:()=>pv,isThisInTypeQuery:()=>mv,isThisInitializedDeclaration:()=>uh,isThisInitializedObjectBindingExpression:()=>ph,isThisProperty:()=>dh,isThisTypeNode:()=>rC,isThisTypeParameter:()=>KA,isThisTypePredicate:()=>Km,isThrowStatement:()=>dN,isToken:()=>Lc,isTokenKind:()=>Pc,isTraceEnabled:()=>oF,isTransientSymbol:()=>Zu,isTrivia:()=>wg,isTryStatement:()=>uN,isTupleTypeNode:()=>JD,isTypeAlias:()=>P_,isTypeAliasDeclaration:()=>yN,isTypeAssertionExpression:()=>TC,isTypeDeclaration:()=>JA,isTypeElement:()=>bd,isTypeKeyword:()=>$$,isTypeKeywordTokenOrIdentifier:()=>Z$,isTypeLiteralNode:()=>KD,isTypeNode:()=>Ed,isTypeNodeKind:()=>RT,isTypeOfExpression:()=>RC,isTypeOnlyExportDeclaration:()=>jc,isTypeOnlyImportDeclaration:()=>Vc,isTypeOnlyImportOrExportDeclaration:()=>Uc,isTypeOperatorNode:()=>oC,isTypeParameterDeclaration:()=>ID,isTypePredicateNode:()=>GD,isTypeQueryNode:()=>HD,isTypeReferenceNode:()=>VD,isTypeReferenceType:()=>Ou,isTypeUsableAsPropertyName:()=>ux,isUMDExportSymbol:()=>TT,isUnaryExpression:()=>jd,isUnaryExpressionWithWrite:()=>Hd,isUnicodeIdentifierStart:()=>Ca,isUnionTypeNode:()=>QD,isUrl:()=>gi,isValidBigIntString:()=>EA,isValidESSymbolDeclaration:()=>zm,isValidTypeOnlyAliasUseSite:()=>AA,isValueSignatureDeclaration:()=>rg,isVarAwaitUsing:()=>sm,isVarConst:()=>cm,isVarConstLike:()=>dm,isVarUsing:()=>lm,isVariableDeclaration:()=>fN,isVariableDeclarationInVariableStatement:()=>Om,isVariableDeclarationInitializedToBareOrAccessedRequire:()=>Bh,isVariableDeclarationInitializedToRequire:()=>zh,isVariableDeclarationList:()=>mN,isVariableLike:()=>wm,isVariableStatement:()=>XC,isVoidExpression:()=>IC,isWatchSet:()=>iT,isWhileStatement:()=>eN,isWhiteSpaceLike:()=>Ha,isWhiteSpaceSingleLine:()=>Ka,isWithStatement:()=>sN,isWriteAccess:()=>pT,isWriteOnlyAccess:()=>uT,isYieldExpression:()=>kC,jsxModeNeedsExplicitImport:()=>p0,keywordPart:()=>BQ,last:()=>ye,lastOrUndefined:()=>ge,length:()=>c,libMap:()=>kk,libs:()=>Lk,lineBreakPart:()=>eZ,loadModuleFromGlobalCache:()=>JW,loadWithModeAwareCache:()=>PU,makeIdentifierFromModuleName:()=>cf,makeImport:()=>uQ,makeStringLiteral:()=>pQ,mangleScopedPackageName:()=>GW,map:()=>D,mapAllOrFail:()=>O,mapDefined:()=>F,mapDefinedIterator:()=>W,mapEntries:()=>j,mapIterator:()=>C,mapOneOrMany:()=>ZZ,mapToDisplayParts:()=>nZ,matchFiles:()=>TE,matchPatternOrExact:()=>lA,matchedText:()=>qn,matchesExclude:()=>KO,matchesExcludeWorker:()=>qO,maxBy:()=>Tn,maybeBind:()=>Ue,maybeSetLocalizedDiagnosticMessages:()=>qT,memoize:()=>pn,memoizeOne:()=>fn,min:()=>Sn,minAndMax:()=>uA,missingFileModifiedTime:()=>Go,modifierToFlag:()=>$v,modifiersToFlags:()=>Yv,moduleExportNameIsDefault:()=>$p,moduleExportNameTextEscaped:()=>Yp,moduleExportNameTextUnescaped:()=>Xp,moduleOptionDeclaration:()=>Wk,moduleResolutionIsEqualTo:()=>pp,moduleResolutionNameAndModeGetter:()=>IU,moduleResolutionOptionDeclarations:()=>Uk,moduleResolutionSupportsPackageJsonExportsAndImports:()=>VS,moduleResolutionUsesNodeModules:()=>dQ,moduleSpecifierToValidIdentifier:()=>o0,moduleSpecifiers:()=>pz,moduleSupportsImportAttributes:()=>jS,moduleSymbolToValidIdentifier:()=>r0,moveEmitHelpers:()=>YR,moveRangeEnd:()=>Fb,moveRangePastDecorators:()=>zb,moveRangePastModifiers:()=>Bb,moveRangePos:()=>Wb,moveSyntheticComments:()=>jR,mutateMap:()=>gT,mutateMapSkippingNewValues:()=>_T,needsParentheses:()=>bZ,needsScopeMarker:()=>Qd,newCaseClauseTracker:()=>m0,newPrivateEnvironment:()=>IG,noEmitNotification:()=>QV,noEmitSubstitution:()=>$V,noTransformers:()=>UV,noTruncationMaximumTruncationLength:()=>Ju,nodeCanBeDecorated:()=>hh,nodeCoreModules:()=>Mx,nodeHasName:()=>Al,nodeIsDecorated:()=>_h,nodeIsMissing:()=>Np,nodeIsPresent:()=>Mp,nodeIsSynthesized:()=>ry,nodeModuleNameResolver:()=>QF,nodeModulesPathPart:()=>oW,nodeNextJsonConfigResolver:()=>ZF,nodeOrChildIsDecorated:()=>gh,nodeOverlapsWithStartEnd:()=>BY,nodePosToString:()=>Ip,nodeSeenTracker:()=>eQ,nodeStartsNewLexicalEnvironment:()=>ty,noop:()=>tn,noopFileWatcher:()=>OK,normalizePath:()=>ji,normalizeSlashes:()=>Fi,normalizeSpans:()=>qs,not:()=>nt,notImplemented:()=>un,notImplementedResolver:()=>Rj,nullNodeConverters:()=>rR,nullParenthesizerRules:()=>eR,nullTransformationContext:()=>ej,objectAllocator:()=>GT,operatorPart:()=>VQ,optionDeclarations:()=>Bk,optionMapToObject:()=>$w,optionsAffectingProgramStructure:()=>Kk,optionsForBuild:()=>Zk,optionsForWatch:()=>wk,optionsHaveChanges:()=>op,or:()=>et,orderedRemoveItem:()=>Gn,orderedRemoveItemAt:()=>Vn,packageIdToPackageName:()=>gp,packageIdToString:()=>yp,parameterIsThisKeyword:()=>uv,parameterNamePart:()=>jQ,parseBaseNodeFactory:()=>ML,parseBigInt:()=>TA,parseBuildCommand:()=>Tw,parseCommandLine:()=>_w,parseCommandLineWorker:()=>pw,parseConfigFileTextToJson:()=>xw,parseConfigFileWithSystem:()=>TK,parseConfigHostFromCompilerHostLike:()=>QU,parseCustomTypeOption:()=>lw,parseIsolatedEntityName:()=>lk,parseIsolatedJSDocComment:()=>pk,parseJSDocTypeExpressionForTests:()=>fk,parseJsonConfigFileContent:()=>aO,parseJsonSourceFileConfigFileContent:()=>sO,parseJsonText:()=>ck,parseListTypeOption:()=>cw,parseNodeFactory:()=>PL,parseNodeModuleFromPath:()=>aW,parsePackageName:()=>xW,parsePseudoBigInt:()=>vA,parseValidBigInt:()=>SA,pasteEdits:()=>Lme,patchWriteFileEnsuringDirectory:()=>ci,pathContainsNodeModules:()=>iW,pathIsAbsolute:()=>Ti,pathIsBareSpecifier:()=>Ei,pathIsRelative:()=>Si,patternText:()=>Kn,performIncrementalCompilation:()=>XK,performance:()=>jt,positionBelongsToNode:()=>VY,positionIsASICandidate:()=>kZ,positionIsSynthesized:()=>eA,positionsAreOnSameLine:()=>Yb,preProcessFile:()=>P1,probablyUsesSemicolons:()=>wZ,processCommentPragmas:()=>bk,processPragmasIntoFields:()=>Tk,processTaggedTemplateExpression:()=>tV,programContainsEsModules:()=>aQ,programContainsModules:()=>iQ,projectReferenceIsEqualTo:()=>up,propertyNamePart:()=>UQ,pseudoBigIntToString:()=>bA,punctuationPart:()=>GQ,pushIfUnique:()=>se,quote:()=>SZ,quotePreferenceFromString:()=>mQ,rangeContainsPosition:()=>OY,rangeContainsPositionExclusive:()=>FY,rangeContainsRange:()=>eT,rangeContainsRangeExclusive:()=>wY,rangeContainsStartEnd:()=>WY,rangeEndIsOnSameLineAsRangeStart:()=>Kb,rangeEndPositionsAreOnSameLine:()=>Ub,rangeEquals:()=>ue,rangeIsOnSingleLine:()=>Vb,rangeOfNode:()=>pA,rangeOfTypeParameters:()=>fA,rangeOverlapsWithStartEnd:()=>zY,rangeStartIsOnSameLineAsRangeEnd:()=>Hb,rangeStartPositionsAreOnSameLine:()=>jb,readBuilderProgram:()=>YK,readConfigFile:()=>Aw,readJson:()=>Nb,readJsonConfigFile:()=>Rw,readJsonOrUndefined:()=>Cb,reduceEachLeadingCommentRange:()=>ds,reduceEachTrailingCommentRange:()=>us,reduceLeft:()=>xe,reduceLeftIterator:()=>m,reducePathComponents:()=>Wi,refactor:()=>p8,regExpEscape:()=>iE,regularExpressionFlagToCharacterCode:()=>wa,relativeComplement:()=>te,removeAllComments:()=>AR,removeEmitHelper:()=>JR,removeExtension:()=>XE,removeFileExtension:()=>qE,removeIgnoredPath:()=>QH,removeMinAndVersionNumbers:()=>Bn,removePrefix:()=>Yn,removeSuffix:()=>Wn,removeTrailingDirectorySeparator:()=>qi,repeatString:()=>tQ,replaceElement:()=>Se,replaceFirstStar:()=>_x,resolutionExtensionIsTSOrJson:()=>tA,resolveConfigFileProjectName:()=>tq,resolveJSModule:()=>JF,resolveLibrary:()=>UF,resolveModuleName:()=>KF,resolveModuleNameFromCache:()=>HF,resolvePackageNameToPackageJson:()=>IF,resolvePath:()=>Bi,resolveProjectReferencePath:()=>ZU,resolveTripleslashReference:()=>Xj,resolveTypeReferenceDirective:()=>AF,resolvingEmptyArray:()=>Hu,returnFalse:()=>rn,returnNoopFileWatcher:()=>FK,returnTrue:()=>on,returnUndefined:()=>an,returnsPromise:()=>G1,rewriteModuleSpecifier:()=>LG,sameFlatMap:()=>w,sameMap:()=>N,sameMapping:()=>GB,scanTokenAtPosition:()=>em,scanner:()=>nY,semanticDiagnosticsOptionDeclarations:()=>Gk,serializeCompilerOptions:()=>nO,server:()=>Hge,servicesVersion:()=>w4,setCommentRange:()=>OR,setConfigFileInOptions:()=>lO,setConstantValue:()=>HR,setEmitFlags:()=>xR,setGetSourceFileAsHashVersioned:()=>jK,setIdentifierAutoGenerate:()=>oI,setIdentifierGeneratedImportReference:()=>aI,setIdentifierTypeArguments:()=>tI,setInternalEmitFlags:()=>IR,setLocalizedDiagnosticMessages:()=>KT,setNodeChildren:()=>iP,setNodeFlags:()=>MA,setObjectAllocator:()=>UT,setOriginalNode:()=>TR,setParent:()=>PA,setParentRecursive:()=>LA,setPrivateIdentifier:()=>CG,setSnippetElement:()=>QR,setSourceMapRange:()=>NR,setStackTraceLimit:()=>Wo,setStartsOnNewLine:()=>kR,setSyntheticLeadingComments:()=>WR,setSyntheticTrailingComments:()=>GR,setSys:()=>ui,setSysLog:()=>ti,setTextRange:()=>DL,setTextRangeEnd:()=>DA,setTextRangePos:()=>IA,setTextRangePosEnd:()=>CA,setTextRangePosWidth:()=>NA,setTokenSourceMapRange:()=>PR,setTypeNode:()=>eI,setUILocale:()=>Mn,setValueDeclaration:()=>y_,shouldAllowImportingTsExtension:()=>qW,shouldPreserveConstEnums:()=>LS,shouldRewriteModuleSpecifier:()=>A_,shouldUseUriStyleNodeCoreModules:()=>l0,showModuleSpecifier:()=>ST,signatureHasRestParameter:()=>_B,signatureToDisplayParts:()=>oZ,single:()=>be,singleElementArray:()=>rt,singleIterator:()=>G,singleOrMany:()=>Te,singleOrUndefined:()=>ve,skipAlias:()=>cT,skipConstraint:()=>rQ,skipOuterExpressions:()=>MP,skipParentheses:()=>cg,skipPartiallyEmittedExpressions:()=>Rc,skipTrivia:()=>es,skipTypeChecking:()=>mA,skipTypeCheckingIgnoringNoCheck:()=>hA,skipTypeParentheses:()=>lg,skipWhile:()=>lt,sliceAfter:()=>cA,some:()=>U,sortAndDeduplicate:()=>Z,sortAndDeduplicateDiagnostics:()=>Cs,sourceFileAffectingCompilerOptions:()=>Hk,sourceFileMayBeEmitted:()=>Zy,sourceMapCommentRegExp:()=>kB,sourceMapCommentRegExpDontCareLineStart:()=>LB,spacePart:()=>zQ,spanMap:()=>V,startEndContainsRange:()=>nT,startEndOverlapsWithStartEnd:()=>GY,startOnNewLine:()=>LP,startTracing:()=>ur,startsWith:()=>Xn,startsWithDirectory:()=>oa,startsWithUnderscore:()=>a0,startsWithUseStrict:()=>xP,stringContainsAt:()=>i0,stringToToken:()=>La,stripQuotes:()=>Py,supportedDeclarationExtensions:()=>LE,supportedJSExtensionsFlat:()=>NE,supportedLocaleDirectories:()=>ul,supportedTSExtensionsFlat:()=>IE,supportedTSImplementationExtensions:()=>kE,suppressLeadingAndTrailingTrivia:()=>qx,suppressLeadingTrivia:()=>Jx,suppressTrailingTrivia:()=>Xx,symbolEscapedNameNoDefault:()=>yQ,symbolName:()=>Tl,symbolNameNoDefault:()=>gQ,symbolToDisplayParts:()=>rZ,sys:()=>di,sysLog:()=>ni,tagNamesAreEquivalent:()=>Dk,takeWhile:()=>st,targetOptionDeclaration:()=>Fk,targetToLibMap:()=>Ns,testFormatSettings:()=>UX,textChangeRangeIsUnchanged:()=>$s,textChangeRangeNewSpan:()=>Ys,textChanges:()=>tpe,textOrKeywordPart:()=>HQ,textPart:()=>KQ,textRangeContainsPositionInclusive:()=>ws,textRangeContainsTextSpan:()=>Ws,textRangeIntersectsWithTextSpan:()=>Hs,textSpanContainsPosition:()=>ks,textSpanContainsTextRange:()=>Fs,textSpanContainsTextSpan:()=>Os,textSpanEnd:()=>Ps,textSpanIntersection:()=>Ks,textSpanIntersectsWith:()=>Vs,textSpanIntersectsWithPosition:()=>Us,textSpanIntersectsWithTextSpan:()=>Gs,textSpanIsEmpty:()=>Ls,textSpanOverlap:()=>Bs,textSpanOverlapsWith:()=>zs,textSpansEqual:()=>IQ,textToKeywordObj:()=>_a,timestamp:()=>Vt,toArray:()=>$e,toBuilderFileEmit:()=>jH,toBuilderStateFileInfoForMultiEmit:()=>VH,toEditorSettings:()=>Q4,toFileNameLowerCase:()=>dn,toPath:()=>Ki,toProgramEmitPending:()=>UH,toSorted:()=>ce,tokenIsIdentifierOrKeyword:()=>ma,tokenIsIdentifierOrKeywordOrGreaterThan:()=>ha,tokenToString:()=>Pa,trace:()=>rF,tracing:()=>Kt,tracingEnabled:()=>qt,transferSourceFileChildren:()=>sP,transform:()=>g5,transformClassFields:()=>aV,transformDeclarations:()=>GV,transformECMAScriptModule:()=>PV,transformES2015:()=>IV,transformES2016:()=>xV,transformES2017:()=>uV,transformES2018:()=>fV,transformES2019:()=>mV,transformES2020:()=>hV,transformES2021:()=>_V,transformESDecorators:()=>dV,transformESNext:()=>gV,transformGenerators:()=>DV,transformImpliedNodeFormatDependentModule:()=>LV,transformJsx:()=>EV,transformLegacyDecorators:()=>cV,transformModule:()=>CV,transformNamedEvaluation:()=>eV,transformNodes:()=>ZV,transformSystemModule:()=>MV,transformTypeScript:()=>iV,transpile:()=>r2,transpileDeclaration:()=>$1,transpileModule:()=>Y1,transpileOptionValueCompilerOptions:()=>qk,tryAddToSet:()=>B,tryAndIgnoreErrors:()=>BZ,tryCast:()=>en,tryDirectoryExists:()=>zZ,tryExtractTSExtension:()=>Ab,tryFileExists:()=>WZ,tryGetClassExtendingExpressionWithTypeArguments:()=>ib,tryGetClassImplementingOrExtendingExpressionWithTypeArguments:()=>ab,tryGetDirectories:()=>OZ,tryGetExtensionFromPath:()=>iA,tryGetImportFromModuleSpecifier:()=>E_,tryGetJSDocSatisfiesTypeNode:()=>ox,tryGetModuleNameFromFile:()=>zP,tryGetModuleSpecifierFromDeclaration:()=>T_,tryGetNativePerformanceHooks:()=>zt,tryGetPropertyAccessOrIdentifierToString:()=>mb,tryGetPropertyNameOfBindingOrAssignmentElement:()=>UP,tryGetSourceMappingURL:()=>FB,tryGetTextOfPropertyName:()=>zf,tryParseJson:()=>Mb,tryParsePattern:()=>$E,tryParsePatterns:()=>ZE,tryParseRawSourceMap:()=>zB,tryReadDirectory:()=>FZ,tryReadFile:()=>Iw,tryRemoveDirectoryPrefix:()=>rE,tryRemoveExtension:()=>JE,tryRemovePrefix:()=>$n,tryRemoveSuffix:()=>zn,tscBuildOption:()=>Qk,typeAcquisitionDeclarations:()=>nw,typeAliasNamePart:()=>qQ,typeDirectiveIsEqualTo:()=>vp,typeKeywords:()=>Y$,typeParameterNamePart:()=>JQ,typeToDisplayParts:()=>tZ,unchangedPollThresholds:()=>Ko,unchangedTextChangeRange:()=>Zs,unescapeLeadingUnderscores:()=>yl,unmangleScopedPackageName:()=>jW,unorderedRemoveItem:()=>Un,unprefixedNodeCoreModules:()=>Cx,unreachableCodeIsError:()=>BS,unsetNodeChildren:()=>aP,unusedLabelIsError:()=>GS,unwrapInnermostStatementOfLabel:()=>Gm,unwrapParenthesizedExpression:()=>xx,updateErrorForNoInputFiles:()=>AO,updateLanguageServiceSourceFile:()=>a5,updateMissingFilePathsWatch:()=>Bj,updateResolutionField:()=>fF,updateSharedExtendedConfigFileWatcher:()=>Fj,updateSourceFile:()=>uk,updateWatchingWildcardDirectories:()=>Gj,usingSingleLineStringWriter:()=>cp,utf16EncodeAsString:()=>Es,validateLocaleAndSetLanguage:()=>pl,version:()=>i,versionMajorMinor:()=>o,visitArray:()=>TB,visitCommaListElements:()=>DB,visitEachChild:()=>CB,visitFunctionBody:()=>RB,visitIterationBody:()=>IB,visitLexicalEnvironment:()=>EB,visitNode:()=>vB,visitNodes:()=>bB,visitParameterList:()=>AB,walkUpBindingElementsAndPatterns:()=>il,walkUpOuterExpressions:()=>PP,walkUpParenthesizedExpressions:()=>ag,walkUpParenthesizedTypes:()=>ig,walkUpParenthesizedTypesAndGetParentAndChild:()=>sg,whitespaceOrMapCommentRegExp:()=>wB,writeCommentRange:()=>xv,writeFile:()=>tv,writeFileEnsuringDirectories:()=>ov,zipWith:()=>h}),e.exports=r;var o="5.9",i="5.9.3",a=(e=>(e[e.LessThan=-1]="LessThan",e[e.EqualTo=0]="EqualTo",e[e.GreaterThan=1]="GreaterThan",e))(a||{}),s=[],l=new Map;function c(e){return void 0!==e?e.length:0}function d(e,n){if(void 0!==e)for(let t=0;t<e.length;t++){const r=n(e[t],t);if(r)return r}}function u(e,n){if(void 0!==e)for(let t=e.length-1;t>=0;t--){const r=n(e[t],t);if(r)return r}}function p(e,n){if(void 0!==e)for(let t=0;t<e.length;t++){const r=n(e[t],t);if(void 0!==r)return r}}function f(e,n){for(const t of e){const e=n(t);if(void 0!==e)return e}}function m(e,n,t){let r=t;if(e){let t=0;for(const o of e)r=n(r,o,t),t++}return r}function h(e,n,t){const r=[];dt.assertEqual(e.length,n.length);for(let o=0;o<e.length;o++)r.push(t(e[o],n[o],o));return r}function _(e,n){if(e.length<=1)return e;const t=[];for(let r=0,o=e.length;r<o;r++)0!==r&&t.push(n),t.push(e[r]);return t}function g(e,n){if(void 0!==e)for(let t=0;t<e.length;t++)if(!n(e[t],t))return!1;return!0}function y(e,n,t){if(void 0!==e)for(let r=t??0;r<e.length;r++){const t=e[r];if(n(t,r))return t}}function v(e,n,t){if(void 0!==e)for(let r=t??e.length-1;r>=0;r--){const t=e[r];if(n(t,r))return t}}function b(e,n,t){if(void 0===e)return-1;for(let r=t??0;r<e.length;r++)if(n(e[r],r))return r;return-1}function T(e,n,t){if(void 0===e)return-1;for(let r=t??e.length-1;r>=0;r--)if(n(e[r],r))return r;return-1}function S(e,n,t=hn){if(void 0!==e)for(let r=0;r<e.length;r++)if(t(e[r],n))return!0;return!1}function E(e,n,t){for(let r=t??0;r<e.length;r++)if(S(n,e.charCodeAt(r)))return r;return-1}function A(e,n){let t=0;if(void 0!==e)for(let r=0;r<e.length;r++){n(e[r],r)&&t++}return t}function x(e,n){if(void 0!==e){const t=e.length;let r=0;for(;r<t&&n(e[r]);)r++;if(r<t){const o=e.slice(0,r);for(r++;r<t;){const t=e[r];n(t)&&o.push(t),r++}return o}}return e}function R(e,n){let t=0;for(let r=0;r<e.length;r++)n(e[r],r,e)&&(e[t]=e[r],t++);e.length=t}function I(e){e.length=0}function D(e,n){let t;if(void 0!==e){t=[];for(let r=0;r<e.length;r++)t.push(n(e[r],r))}return t}function*C(e,n){for(const t of e)yield n(t)}function N(e,n){if(void 0!==e)for(let t=0;t<e.length;t++){const r=e[t],o=n(r,t);if(r!==o){const r=e.slice(0,t);for(r.push(o),t++;t<e.length;t++)r.push(n(e[t],t));return r}}return e}function M(e){const n=[];for(let t=0;t<e.length;t++){const r=e[t];r&&(Ye(r)?ae(n,r):n.push(r))}return n}function P(e,n){let t;if(void 0!==e)for(let r=0;r<e.length;r++){const o=n(e[r],r);o&&(t=Ye(o)?ae(t,o):re(t,o))}return t??s}function L(e,n){const t=[];if(void 0!==e)for(let r=0;r<e.length;r++){const o=n(e[r],r);o&&(Ye(o)?ae(t,o):t.push(o))}return t}function*k(e,n){for(const t of e){const e=n(t);e&&(yield*e)}}function w(e,n){let t;if(void 0!==e)for(let r=0;r<e.length;r++){const o=e[r],i=n(o,r);(t||o!==i||Ye(i))&&(t||(t=e.slice(0,r)),Ye(i)?ae(t,i):t.push(i))}return t??e}function O(e,n){const t=[];for(let r=0;r<e.length;r++){const o=n(e[r],r);if(void 0===o)return;t.push(o)}return t}function F(e,n){const t=[];if(void 0!==e)for(let r=0;r<e.length;r++){const o=n(e[r],r);void 0!==o&&t.push(o)}return t}function*W(e,n){for(const t of e){const e=n(t);void 0!==e&&(yield e)}}function z(e,n,t){if(e.has(n))return e.get(n);const r=t();return e.set(n,r),r}function B(e,n){return!e.has(n)&&(e.add(n),!0)}function*G(e){yield e}function V(e,n,t){let r;if(void 0!==e){r=[];const o=e.length;let i,a,s=0,l=0;for(;s<o;){for(;l<o;){if(a=n(e[l],l),0===l)i=a;else if(a!==i)break;l++}if(s<l){const n=t(e.slice(s,l),i,s,l);n&&r.push(n),s=l}i=a,l++}}return r}function j(e,n){if(void 0===e)return;const t=new Map;return e.forEach((e,r)=>{const[o,i]=n(r,e);t.set(o,i)}),t}function U(e,n){if(void 0!==e){if(void 0===n)return e.length>0;for(let t=0;t<e.length;t++)if(n(e[t]))return!0}return!1}function H(e,n,t){let r;for(let o=0;o<e.length;o++)n(e[o])?r=void 0===r?o:r:void 0!==r&&(t(r,o),r=void 0);void 0!==r&&t(r,e.length)}function K(e,n){return void 0===n||0===n.length?e:void 0===e||0===e.length?n:[...e,...n]}function q(e,n){return n}function J(e){return e.map(q)}function X(e,n,t){const r=J(e);!function(e,n,t){n.sort((n,r)=>t(e[n],e[r])||vn(n,r))}(e,r,t);let o=e[r[0]];const i=[r[0]];for(let a=1;a<r.length;a++){const t=r[a],s=e[t];n(o,s)||(i.push(t),o=s)}return i.sort(),i.map(n=>e[n])}function Y(e,n,t){return 0===e.length?[]:1===e.length?e.slice():t?X(e,n,t):function(e,n){const t=[];for(let r=0;r<e.length;r++)se(t,e[r],n);return t}(e,n)}function $(){return[]}function Q(e,n,t,r,o){if(0===e.length)return e.push(n),!0;const i=Ee(e,n,sn,t);if(i<0){if(r&&!o){const t=~i;if(t>0&&r(n,e[t-1]))return!1;if(t<e.length&&r(n,e[t]))return e.splice(t,1,n),!0}return e.splice(~i,0,n),!0}return!!o&&(e.splice(i,0,n),!0)}function Z(e,n,t){return function(e,n){if(0===e.length)return s;let t=e[0];const r=[t];for(let o=1;o<e.length;o++){const i=e[o];switch(n(i,t)){case!0:case 0:continue;case-1:return dt.fail("Array is unsorted.")}r.push(t=i)}return r}(ce(e,n),t??n??xn)}function ee(e,n,t=hn){if(void 0===e||void 0===n)return e===n;if(e.length!==n.length)return!1;for(let r=0;r<e.length;r++)if(!t(e[r],n[r],r))return!1;return!0}function ne(e){let n;if(void 0!==e)for(let t=0;t<e.length;t++){const r=e[t];(n??!r)&&(n??(n=e.slice(0,t)),r&&n.push(r))}return n??e}function te(e,n,t){if(!n||!e||0===n.length||0===e.length)return n;const r=[];e:for(let o=0,i=0;i<n.length;i++){i>0&&dt.assertGreaterThanOrEqual(t(n[i],n[i-1]),0);n:for(const a=o;o<e.length;o++)switch(o>a&&dt.assertGreaterThanOrEqual(t(e[o],e[o-1]),0),t(n[i],e[o])){case-1:r.push(n[i]);continue e;case 0:continue e;case 1:continue n}}return r}function re(e,n){return void 0===n?e:void 0===e?[n]:(e.push(n),e)}function oe(e,n){return void 0===e?n:void 0===n?e:Ye(e)?Ye(n)?K(e,n):re(e,n):Ye(n)?re(n,e):[e,n]}function ie(e,n){return n<0?e.length+n:n}function ae(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:ie(n,t),r=void 0===r?n.length:ie(n,r);for(let o=t;o<r&&o<n.length;o++)void 0!==n[o]&&e.push(n[o]);return e}function se(e,n,t){return!S(e,n,t)&&(e.push(n),!0)}function le(e,n,t){return void 0!==e?(se(e,n,t),e):[n]}function ce(e,n){return 0===e.length?s:e.slice().sort(n)}function*de(e){for(let n=e.length-1;n>=0;n--)yield e[n]}function ue(e,n,t,r){for(;t<r;){if(e[t]!==n[t])return!1;t++}return!0}var pe=Array.prototype.at?(e,n)=>null==e?void 0:e.at(n):(e,n)=>{if(void 0!==e&&(n=ie(e,n))<e.length)return e[n]};function fe(e){return void 0===e||0===e.length?void 0:e[0]}function me(e){if(void 0!==e)for(const n of e)return n}function he(e){return dt.assert(0!==e.length),e[0]}function _e(e){for(const n of e)return n;dt.fail("iterator is empty")}function ge(e){return void 0===e||0===e.length?void 0:e[e.length-1]}function ye(e){return dt.assert(0!==e.length),e[e.length-1]}function ve(e){return void 0!==e&&1===e.length?e[0]:void 0}function be(e){return dt.checkDefined(ve(e))}function Te(e){return void 0!==e&&1===e.length?e[0]:e}function Se(e,n,t){const r=e.slice(0);return r[n]=t,r}function Ee(e,n,t,r,o){return Ae(e,t(n),t,r,o)}function Ae(e,n,t,r,o){if(!U(e))return-1;let i=o??0,a=e.length-1;for(;i<=a;){const o=i+(a-i>>1);switch(r(t(e[o],o),n)){case-1:i=o+1;break;case 0:return o;case 1:a=o-1}}return~i}function xe(e,n,t,r,o){if(e&&e.length>0){const i=e.length;if(i>0){let a=void 0===r||r<0?0:r;const s=void 0===o||a+o>i-1?i-1:a+o;let l;for(arguments.length<=2?(l=e[a],a++):l=t;a<=s;)l=n(l,e[a],a),a++;return l}}return t}var Re=Object.prototype.hasOwnProperty;function Ie(e,n){return Re.call(e,n)}function De(e,n){return Re.call(e,n)?e[n]:void 0}function Ce(e){const n=[];for(const t in e)Re.call(e,t)&&n.push(t);return n}function Ne(e){const n=[];do{const t=Object.getOwnPropertyNames(e);for(const e of t)se(n,e)}while(e=Object.getPrototypeOf(e));return n}function Me(e){const n=[];for(const t in e)Re.call(e,t)&&n.push(e[t]);return n}function Pe(e,n){const t=new Array(e);for(let r=0;r<e;r++)t[r]=n(r);return t}function Le(e,n){const t=[];for(const r of e)t.push(n?n(r):r);return t}function ke(e,...n){for(const t of n)if(void 0!==t)for(const n in t)Ie(t,n)&&(e[n]=t[n]);return e}function we(e,n,t=hn){if(e===n)return!0;if(!e||!n)return!1;for(const r in e)if(Re.call(e,r)){if(!Re.call(n,r))return!1;if(!t(e[r],n[r]))return!1}for(const r in n)if(Re.call(n,r)&&!Re.call(e,r))return!1;return!0}function Oe(e,n,t=sn){const r=new Map;for(let o=0;o<e.length;o++){const i=e[o],a=n(i);void 0!==a&&r.set(a,t(i))}return r}function Fe(e,n,t=sn){const r=[];for(let o=0;o<e.length;o++){const i=e[o];r[n(i)]=t(i)}return r}function We(e,n,t=sn){const r=He();for(let o=0;o<e.length;o++){const i=e[o];r.add(n(i),t(i))}return r}function ze(e,n,t=sn){return Le(We(e,n).values(),t)}function Be(e,n){const t={};if(void 0!==e)for(let r=0;r<e.length;r++){const o=e[r],i=`${n(o)}`;(t[i]??(t[i]=[])).push(o)}return t}function Ge(e){const n={};for(const t in e)Re.call(e,t)&&(n[t]=e[t]);return n}function Ve(e,n){const t={};for(const r in n)Re.call(n,r)&&(t[r]=n[r]);for(const r in e)Re.call(e,r)&&(t[r]=e[r]);return t}function je(e,n){for(const t in n)Re.call(n,t)&&(e[t]=n[t])}function Ue(e,n){return null==n?void 0:n.bind(e)}function He(){const e=new Map;return e.add=Ke,e.remove=qe,e}function Ke(e,n){let t=this.get(e);return void 0!==t?t.push(n):this.set(e,t=[n]),t}function qe(e,n){const t=this.get(e);void 0!==t&&(Un(t,n),t.length||this.delete(e))}function Je(e){const n=(null==e?void 0:e.slice())??[];let t=0;function r(){return t===n.length}return{enqueue:function(...e){n.push(...e)},dequeue:function(){if(r())throw new Error("Queue is empty");const e=n[t];if(n[t]=void 0,t++,t>100&&t>n.length>>1){const e=n.length-t;n.copyWithin(0,t),n.length=e,t=0}return e},isEmpty:r}}function Xe(e,n){const t=new Map;let r=0;function*o(){for(const e of t.values())Ye(e)?yield*e:yield e}const i={has(r){const o=e(r);if(!t.has(o))return!1;const i=t.get(o);return Ye(i)?S(i,r,n):n(i,r)},add(o){const i=e(o);if(t.has(i)){const e=t.get(i);if(Ye(e))S(e,o,n)||(e.push(o),r++);else{const a=e;n(a,o)||(t.set(i,[a,o]),r++)}}else t.set(i,o),r++;return this},delete(o){const i=e(o);if(!t.has(i))return!1;const a=t.get(i);if(Ye(a)){for(let e=0;e<a.length;e++)if(n(a[e],o))return 1===a.length?t.delete(i):2===a.length?t.set(i,a[1-e]):jn(a,e),r--,!0}else{if(n(a,o))return t.delete(i),r--,!0}return!1},clear(){t.clear(),r=0},get size(){return r},forEach(e){for(const n of Le(t.values()))if(Ye(n))for(const t of n)e(t,t,i);else{e(n,n,i)}},keys:()=>o(),values:()=>o(),*entries(){for(const e of o())yield[e,e]},[Symbol.iterator]:()=>o(),[Symbol.toStringTag]:t[Symbol.toStringTag]};return i}function Ye(e){return Array.isArray(e)}function $e(e){return Ye(e)?e:[e]}function Qe(e){return"string"==typeof e}function Ze(e){return"number"==typeof e}function en(e,n){return void 0!==e&&n(e)?e:void 0}function nn(e,n){return void 0!==e&&n(e)?e:dt.fail(`Invalid cast. The supplied value ${e} did not pass the test '${dt.getFunctionName(n)}'.`)}function tn(e){}function rn(){return!1}function on(){return!0}function an(){}function sn(e){return e}function ln(e){return e.toLowerCase()}var cn=/[^\u0130\u0131\u00DFa-z0-9\\/:\-_. ]+/g;function dn(e){return cn.test(e)?e.replace(cn,ln):e}function un(){throw new Error("Not implemented")}function pn(e){let n;return()=>(e&&(n=e(),e=void 0),n)}function fn(e){const n=new Map;return t=>{const r=`${typeof t}:${t}`;let o=n.get(r);return void 0!==o||n.has(r)||(o=e(t),n.set(r,o)),o}}var mn=(e=>(e[e.None=0]="None",e[e.Normal=1]="Normal",e[e.Aggressive=2]="Aggressive",e[e.VeryAggressive=3]="VeryAggressive",e))(mn||{});function hn(e,n){return e===n}function _n(e,n){return e===n||void 0!==e&&void 0!==n&&e.toUpperCase()===n.toUpperCase()}function gn(e,n){return hn(e,n)}function yn(e,n){return e===n?0:void 0===e?-1:void 0===n?1:e<n?-1:1}function vn(e,n){return yn(e,n)}function bn(e,n){return vn(null==e?void 0:e.start,null==n?void 0:n.start)||vn(null==e?void 0:e.length,null==n?void 0:n.length)}function Tn(e,n,t){for(let r=0;r<e.length;r++)n=Math.max(n,t(e[r]));return n}function Sn(e,n){return xe(e,(e,t)=>-1===n(e,t)?e:t)}function En(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 An(e,n){return e===n?0:void 0===e?-1:void 0===n?1:(e=e.toLowerCase())<(n=n.toLowerCase())?-1:e>n?1:0}function xn(e,n){return yn(e,n)}function Rn(e){return e?En:xn}var In,Dn,Cn=(()=>function(e){const n=new Intl.Collator(e,{usage:"sort",sensitivity:"variant",numeric:!0}).compare;return(e,t)=>function(e,n,t){if(e===n)return 0;if(void 0===e)return-1;if(void 0===n)return 1;const r=t(e,n);return r<0?-1:r>0?1:0}(e,t,n)})();function Nn(){return Dn}function Mn(e){Dn!==e&&(Dn=e,In=void 0)}function Pn(e,n){return In??(In=Cn(Dn)),In(e,n)}function Ln(e,n,t,r){return e===n?0:void 0===e?-1:void 0===n?1:r(e[t],n[t])}function kn(e,n){return vn(e?1:0,n?1:0)}function wn(e,n,t){const r=Math.max(2,Math.floor(.34*e.length));let o,i=Math.floor(.4*e.length)+1;for(const a of n){const n=t(a);if(void 0!==n&&Math.abs(n.length-e.length)<=r){if(n===e)continue;if(n.length<3&&n.toLowerCase()!==e.toLowerCase())continue;const t=On(e,n,i-.1);if(void 0===t)continue;dt.assert(t<i),i=t,o=a}}return o}function On(e,n,t){let r=new Array(n.length+1),o=new Array(n.length+1);const i=t+.01;for(let s=0;s<=n.length;s++)r[s]=s;for(let s=1;s<=e.length;s++){const a=e.charCodeAt(s-1),l=Math.ceil(s>t?s-t:1),c=Math.floor(n.length>t+s?t+s:n.length);o[0]=s;let d=s;for(let e=1;e<l;e++)o[e]=i;for(let t=l;t<=c;t++){const i=e[s-1].toLowerCase()===n[t-1].toLowerCase()?r[t-1]+.1:r[t-1]+2,l=a===n.charCodeAt(t-1)?r[t-1]:Math.min(r[t]+1,o[t-1]+1,i);o[t]=l,d=Math.min(d,l)}for(let e=c+1;e<=n.length;e++)o[e]=i;if(d>t)return;const u=r;r=o,o=u}const a=r[n.length];return a>t?void 0:a}function Fn(e,n,t){const r=e.length-n.length;return r>=0&&(t?_n(e.slice(r),n):e.indexOf(n,r)===r)}function Wn(e,n){return Fn(e,n)?e.slice(0,e.length-n.length):e}function zn(e,n){return Fn(e,n)?e.slice(0,e.length-n.length):void 0}function Bn(e){let n=e.length;for(let t=n-1;t>0;t--){let r=e.charCodeAt(t);if(r>=48&&r<=57)do{--t,r=e.charCodeAt(t)}while(t>0&&r>=48&&r<=57);else{if(!(t>4)||110!==r&&78!==r)break;if(--t,r=e.charCodeAt(t),105!==r&&73!==r)break;if(--t,r=e.charCodeAt(t),109!==r&&77!==r)break;--t,r=e.charCodeAt(t)}if(45!==r&&46!==r)break;n=t}return n===e.length?e:e.slice(0,n)}function Gn(e,n){for(let t=0;t<e.length;t++)if(e[t]===n)return Vn(e,t),!0;return!1}function Vn(e,n){for(let t=n;t<e.length-1;t++)e[t]=e[t+1];e.pop()}function jn(e,n){e[n]=e[e.length-1],e.pop()}function Un(e,n){return function(e,n){for(let t=0;t<e.length;t++)if(n(e[t]))return jn(e,t),!0;return!1}(e,e=>e===n)}function Hn(e){return e?sn:dn}function Kn({prefix:e,suffix:n}){return`${e}*${n}`}function qn(e,n){return dt.assert(Qn(e,n)),n.substring(e.prefix.length,n.length-e.suffix.length)}function Jn(e,n,t){let r,o=-1;for(let i=0;i<e.length;i++){const a=e[i],s=n(a);s.prefix.length>o&&Qn(s,t)&&(o=s.prefix.length,r=a)}return r}function Xn(e,n,t){return t?_n(e.slice(0,n.length),n):0===e.lastIndexOf(n,0)}function Yn(e,n){return Xn(e,n)?e.substr(n.length):e}function $n(e,n,t=sn){return Xn(t(e),t(n))?e.substring(n.length):void 0}function Qn({prefix:e,suffix:n},t){return t.length>=e.length+n.length&&Xn(t,e)&&Fn(t,n)}function Zn(e,n){return t=>e(t)&&n(t)}function et(...e){return(...n)=>{let t;for(const r of e)if(t=r(...n),t)return t;return t}}function nt(e){return(...n)=>!e(...n)}function tt(e){}function rt(e){return void 0===e?void 0:[e]}function ot(e,n,t,r,o,i){i??(i=tn);let a=0,s=0;const l=e.length,c=n.length;let d=!1;for(;a<l&&s<c;){const l=e[a],c=n[s],u=t(l,c);-1===u?(r(l),a++,d=!0):1===u?(o(c),s++,d=!0):(i(c,l),a++,s++)}for(;a<l;)r(e[a++]),d=!0;for(;s<c;)o(n[s++]),d=!0;return d}function it(e){const n=[];return at(e,n,void 0,0),n}function at(e,n,t,r){for(const o of e[r]){let i;t?(i=t.slice(),i.push(o)):i=[o],r===e.length-1?n.push(i):at(e,n,i,r+1)}}function st(e,n){if(void 0!==e){const t=e.length;let r=0;for(;r<t&&n(e[r]);)r++;return e.slice(0,r)}}function lt(e,n){if(void 0!==e){const t=e.length;let r=0;for(;r<t&&n(e[r]);)r++;return e.slice(r)}}function ct(){return"undefined"!=typeof process&&!!process.nextTick&&!process.browser&&!1}var dt,ut=(e=>(e[e.Off=0]="Off",e[e.Error=1]="Error",e[e.Warning=2]="Warning",e[e.Info=3]="Info",e[e.Verbose=4]="Verbose",e))(ut||{});(e=>{let n=0;function t(n){return e.currentLogLevel<=n}function r(n,r){e.loggingHost&&t(n)&&e.loggingHost.log(n,r)}function o(e){r(3,e)}var i;e.currentLogLevel=2,e.isDebugging=!1,e.shouldLog=t,e.log=o,(i=o=e.log||(e.log={})).error=function(e){r(1,e)},i.warn=function(e){r(2,e)},i.log=function(e){r(3,e)},i.trace=function(e){r(4,e)};const a={};function s(e){return n>=e}function l(n,t){return!!s(n)||(a[t]={level:n,assertion:e[t]},e[t]=tn,!1)}function c(e,n){const t=new Error(e?`Debug Failure. ${e}`:"Debug Failure.");throw Error.captureStackTrace&&Error.captureStackTrace(t,n||c),t}function d(e,n,t,r){e||(n=n?`False expression: ${n}`:"False expression.",t&&(n+="\r\nVerbose Debug Information: "+("string"==typeof t?t:t())),c(n,r||d))}function u(e,n,t){null==e&&c(n,t||u)}function p(e,n,t){for(const r of e)u(r,n,t||p)}function f(e,n="Illegal value:",t){return c(`${n} ${"object"==typeof e&&Ie(e,"kind")&&Ie(e,"pos")?"SyntaxKind: "+v(e.kind):JSON.stringify(e)}`,t||f)}function m(e){if("function"!=typeof e)return"";if(Ie(e,"name"))return e.name;{const n=Function.prototype.toString.call(e),t=/^function\s+([\w$]+)\s*\(/.exec(n);return t?t[1]:""}}function _(e=0,n,t){const r=function(e){const n=y.get(e);if(n)return n;const t=[];for(const o in e){const n=e[o];"number"==typeof n&&t.push([n,o])}const r=ce(t,(e,n)=>vn(e[0],n[0]));return y.set(e,r),r}(n);if(0===e)return r.length>0&&0===r[0][0]?r[0][1]:"0";if(t){const n=[];let t=e;for(const[o,i]of r){if(o>e)break;0!==o&&o&e&&(n.push(i),t&=~o)}if(0===t)return n.join("|")}else for(const[o,i]of r)if(o===e)return i;return e.toString()}e.getAssertionLevel=function(){return n},e.setAssertionLevel=function(t){const r=n;if(n=t,t>r)for(const n of Ce(a)){const r=a[n];void 0!==r&&e[n]!==r.assertion&&t>=r.level&&(e[n]=r,a[n]=void 0)}},e.shouldAssert=s,e.fail=c,e.failBadSyntaxKind=function e(n,t,r){return c(`${t||"Unexpected node."}\r\nNode ${v(n.kind)} was unexpected.`,r||e)},e.assert=d,e.assertEqual=function e(n,t,r,o,i){if(n!==t){c(`Expected ${n} === ${t}. ${r?o?`${r} ${o}`:r:""}`,i||e)}},e.assertLessThan=function e(n,t,r,o){n>=t&&c(`Expected ${n} < ${t}. ${r||""}`,o||e)},e.assertLessThanOrEqual=function e(n,t,r){n>t&&c(`Expected ${n} <= ${t}`,r||e)},e.assertGreaterThanOrEqual=function e(n,t,r){n<t&&c(`Expected ${n} >= ${t}`,r||e)},e.assertIsDefined=u,e.checkDefined=function e(n,t,r){return u(n,t,r||e),n},e.assertEachIsDefined=p,e.checkEachDefined=function e(n,t,r){return p(n,t,r||e),n},e.assertNever=f,e.assertEachNode=function e(n,t,r,o){l(1,"assertEachNode")&&d(void 0===t||g(n,t),r||"Unexpected node.",()=>`Node array did not pass test '${m(t)}'.`,o||e)},e.assertNode=function e(n,t,r,o){l(1,"assertNode")&&d(void 0!==n&&(void 0===t||t(n)),r||"Unexpected node.",()=>`Node ${v(null==n?void 0:n.kind)} did not pass test '${m(t)}'.`,o||e)},e.assertNotNode=function e(n,t,r,o){l(1,"assertNotNode")&&d(void 0===n||void 0===t||!t(n),r||"Unexpected node.",()=>`Node ${v(n.kind)} should not have passed test '${m(t)}'.`,o||e)},e.assertOptionalNode=function e(n,t,r,o){l(1,"assertOptionalNode")&&d(void 0===t||void 0===n||t(n),r||"Unexpected node.",()=>`Node ${v(null==n?void 0:n.kind)} did not pass test '${m(t)}'.`,o||e)},e.assertOptionalToken=function e(n,t,r,o){l(1,"assertOptionalToken")&&d(void 0===t||void 0===n||n.kind===t,r||"Unexpected node.",()=>`Node ${v(null==n?void 0:n.kind)} was not a '${v(t)}' token.`,o||e)},e.assertMissingNode=function e(n,t,r){l(1,"assertMissingNode")&&d(void 0===n,t||"Unexpected node.",()=>`Node ${v(n.kind)} was unexpected'.`,r||e)},e.type=function(e){},e.getFunctionName=m,e.formatSymbol=function(e){return`{ name: ${yl(e.escapedName)}; flags: ${A(e.flags)}; declarations: ${D(e.declarations,e=>v(e.kind))} }`},e.formatEnum=_;const y=new Map;function v(e){return _(e,fr,!1)}function b(e){return _(e,mr,!0)}function T(e){return _(e,hr,!0)}function S(e){return _(e,Ao,!0)}function E(e){return _(e,Ro,!0)}function A(e){return _(e,Gr,!0)}function x(e){return _(e,Hr,!0)}function R(e){return _(e,Zr,!0)}function I(e){return _(e,Kr,!0)}function C(e){return _(e,Sr,!0)}e.formatSyntaxKind=v,e.formatSnippetKind=function(e){return _(e,xo,!1)},e.formatScriptKind=function(e){return _(e,yo,!1)},e.formatNodeFlags=b,e.formatNodeCheckFlags=function(e){return _(e,Ur,!0)},e.formatModifierFlags=T,e.formatTransformFlags=S,e.formatEmitFlags=E,e.formatSymbolFlags=A,e.formatTypeFlags=x,e.formatSignatureFlags=R,e.formatObjectFlags=I,e.formatFlowFlags=C,e.formatRelationComparisonResult=function(e){return _(e,gr,!0)},e.formatCheckMode=function(e){return _(e,rB,!0)},e.formatSignatureCheckMode=function(e){return _(e,oB,!0)},e.formatTypeFacts=function(e){return _(e,nB,!0)};let N,M,P=!1;function L(e){"__debugFlowFlags"in e||Object.defineProperties(e,{__tsDebuggerDisplay:{value(){const e=2&this.flags?"FlowStart":4&this.flags?"FlowBranchLabel":8&this.flags?"FlowLoopLabel":16&this.flags?"FlowAssignment":32&this.flags?"FlowTrueCondition":64&this.flags?"FlowFalseCondition":128&this.flags?"FlowSwitchClause":256&this.flags?"FlowArrayMutation":512&this.flags?"FlowCall":1024&this.flags?"FlowReduceLabel":1&this.flags?"FlowUnreachable":"UnknownFlow",n=-2048&this.flags;return`${e}${n?` (${C(n)})`:""}`}},__debugFlowFlags:{get(){return _(this.flags,Sr,!0)}},__debugToString:{value(){return O(this)}}})}function k(e){"__tsDebuggerDisplay"in e||Object.defineProperties(e,{__tsDebuggerDisplay:{value:e=>`NodeArray ${e=String(e).replace(/(?:,[\s\w]+:[^,]+)+\]$/,"]")}`}})}e.attachFlowNodeDebugInfo=function(e){return P&&("function"==typeof Object.setPrototypeOf?(N||(N=Object.create(Object.prototype),L(N)),Object.setPrototypeOf(e,N)):L(e)),e},e.attachNodeArrayDebugInfo=function(e){P&&("function"==typeof Object.setPrototypeOf?(M||(M=Object.create(Array.prototype),k(M)),Object.setPrototypeOf(e,M)):k(e))},e.enableDebugInfo=function(){if(P)return;const e=new WeakMap,n=new WeakMap;Object.defineProperties(GT.getSymbolConstructor().prototype,{__tsDebuggerDisplay:{value(){const e=33554432&this.flags?"TransientSymbol":"Symbol",n=-33554433&this.flags;return`${e} '${Tl(this)}'${n?` (${A(n)})`:""}`}},__debugFlags:{get(){return A(this.flags)}}}),Object.defineProperties(GT.getTypeConstructor().prototype,{__tsDebuggerDisplay:{value(){const e=67359327&this.flags?`IntrinsicType ${this.intrinsicName}${this.debugIntrinsicName?` (${this.debugIntrinsicName})`:""}`:98304&this.flags?"NullableType":384&this.flags?`LiteralType ${JSON.stringify(this.value)}`:2048&this.flags?`LiteralType ${this.value.negative?"-":""}${this.value.base10Value}n`:8192&this.flags?"UniqueESSymbolType":32&this.flags?"EnumType":1048576&this.flags?"UnionType":2097152&this.flags?"IntersectionType":4194304&this.flags?"IndexType":8388608&this.flags?"IndexedAccessType":16777216&this.flags?"ConditionalType":33554432&this.flags?"SubstitutionType":262144&this.flags?"TypeParameter":524288&this.flags?3&this.objectFlags?"InterfaceType":4&this.objectFlags?"TypeReference":8&this.objectFlags?"TupleType":16&this.objectFlags?"AnonymousType":32&this.objectFlags?"MappedType":1024&this.objectFlags?"ReverseMappedType":256&this.objectFlags?"EvolvingArrayType":"ObjectType":"Type",n=524288&this.flags?-1344&this.objectFlags:0;return`${e}${this.symbol?` '${Tl(this.symbol)}'`:""}${n?` (${I(n)})`:""}`}},__debugFlags:{get(){return x(this.flags)}},__debugObjectFlags:{get(){return 524288&this.flags?I(this.objectFlags):""}},__debugTypeToString:{value(){let n=e.get(this);return void 0===n&&(n=this.checker.typeToString(this),e.set(this,n)),n}}}),Object.defineProperties(GT.getSignatureConstructor().prototype,{__debugFlags:{get(){return R(this.flags)}},__debugSignatureToString:{value(){var e;return null==(e=this.checker)?void 0:e.signatureToString(this)}}});const t=[GT.getNodeConstructor(),GT.getIdentifierConstructor(),GT.getTokenConstructor(),GT.getSourceFileConstructor()];for(const r of t)Ie(r.prototype,"__debugKind")||Object.defineProperties(r.prototype,{__tsDebuggerDisplay:{value(){return`${Jc(this)?"GeneratedIdentifier":dD(this)?`Identifier '${vl(this)}'`:uD(this)?`PrivateIdentifier '${vl(this)}'`:qI(this)?`StringLiteral ${JSON.stringify(this.text.length<10?this.text:this.text.slice(10)+"...")}`:HI(this)?`NumericLiteral ${this.text}`:KI(this)?`BigIntLiteral ${this.text}n`:ID(this)?"TypeParameterDeclaration":DD(this)?"ParameterDeclaration":wD(this)?"ConstructorDeclaration":OD(this)?"GetAccessorDeclaration":FD(this)?"SetAccessorDeclaration":WD(this)?"CallSignatureDeclaration":zD(this)?"ConstructSignatureDeclaration":BD(this)?"IndexSignatureDeclaration":GD(this)?"TypePredicateNode":VD(this)?"TypeReferenceNode":jD(this)?"FunctionTypeNode":UD(this)?"ConstructorTypeNode":HD(this)?"TypeQueryNode":KD(this)?"TypeLiteralNode":qD(this)?"ArrayTypeNode":JD(this)?"TupleTypeNode":YD(this)?"OptionalTypeNode":$D(this)?"RestTypeNode":QD(this)?"UnionTypeNode":ZD(this)?"IntersectionTypeNode":eC(this)?"ConditionalTypeNode":nC(this)?"InferTypeNode":tC(this)?"ParenthesizedTypeNode":rC(this)?"ThisTypeNode":oC(this)?"TypeOperatorNode":iC(this)?"IndexedAccessTypeNode":aC(this)?"MappedTypeNode":sC(this)?"LiteralTypeNode":XD(this)?"NamedTupleMember":lC(this)?"ImportTypeNode":v(this.kind)}${this.flags?` (${b(this.flags)})`:""}`}},__debugKind:{get(){return v(this.kind)}},__debugNodeFlags:{get(){return b(this.flags)}},__debugModifierFlags:{get(){return T(Jv(this))}},__debugTransformFlags:{get(){return S(this.transformFlags)}},__debugIsParseTreeNode:{get(){return hl(this)}},__debugEmitFlags:{get(){return E(tf(this))}},__debugGetText:{value(e){if(ry(this))return"";let t=n.get(this);if(void 0===t){const r=_l(this),o=r&&Sp(r);t=o?qp(o,r,e):"",n.set(this,t)}return t}}});P=!0},e.formatVariance=function(e){const n=7&e;let t=0===n?"in out":3===n?"[bivariant]":2===n?"in":1===n?"out":4===n?"[independent]":"";return 8&e?t+=" (unmeasurable)":16&e&&(t+=" (unreliable)"),t};class w{__debugToString(){var e;switch(this.kind){case 3:return(null==(e=this.debugInfo)?void 0:e.call(this))||"(function mapper)";case 0:return`${this.source.__debugTypeToString()} -> ${this.target.__debugTypeToString()}`;case 1:return h(this.sources,this.targets||D(this.sources,()=>"any"),(e,n)=>`${e.__debugTypeToString()} -> ${"string"==typeof n?n:n.__debugTypeToString()}`).join(", ");case 2:return h(this.sources,this.targets,(e,n)=>`${e.__debugTypeToString()} -> ${n().__debugTypeToString()}`).join(", ");case 5:case 4:return`m1: ${this.mapper1.__debugToString().split("\n").join("\n ")}\nm2: ${this.mapper2.__debugToString().split("\n").join("\n ")}`;default:return f(this)}}}function O(e){let n,t=-1;function r(e){return e.id||(e.id=t,t--),e.id}var o;let i;var a;(o=n||(n={})).lr="─",o.ud="│",o.dr="╭",o.dl="╮",o.ul="╯",o.ur="╰",o.udr="├",o.udl="┤",o.dlr="┬",o.ulr="┴",o.udlr="╫",(a=i||(i={}))[a.None=0]="None",a[a.Up=1]="Up",a[a.Down=2]="Down",a[a.Left=4]="Left",a[a.Right=8]="Right",a[a.UpDown=3]="UpDown",a[a.LeftRight=12]="LeftRight",a[a.UpLeft=5]="UpLeft",a[a.UpRight=9]="UpRight",a[a.DownLeft=6]="DownLeft",a[a.DownRight=10]="DownRight",a[a.UpDownLeft=7]="UpDownLeft",a[a.UpDownRight=11]="UpDownRight",a[a.UpLeftRight=13]="UpLeftRight",a[a.DownLeftRight=14]="DownLeftRight",a[a.UpDownLeftRight=15]="UpDownLeftRight",a[a.NoChildren=16]="NoChildren";const s=Object.create(null),l=[],c=m(e,new Set);for(const S of l)S.text=y(S.flowNode,S.circular),_(S);const d=function e(n){let t=0;for(const r of p(n))t=Math.max(t,e(r));return t+1}(c),u=function(e){const n=b(Array(e),0);for(const t of l)n[t.level]=Math.max(n[t.level],t.text.length);return n}(d);return function e(n,t){if(-1===n.lane){n.lane=t,n.endLane=t;const r=p(n);for(let o=0;o<r.length;o++){o>0&&t++;const i=r[o];e(i,t),i.endLane>n.endLane&&(t=i.endLane)}n.endLane=t}}(c,0),function(){const e=u.length,n=Tn(l,0,e=>e.lane)+1,t=b(Array(n),""),r=u.map(()=>Array(n)),o=u.map(()=>b(Array(n),0));for(const a of l){r[a.level][a.lane]=a;const e=p(a);for(let t=0;t<e.length;t++){const n=e[t];let r=8;n.lane===a.lane&&(r|=4),t>0&&(r|=1),t<e.length-1&&(r|=2),o[a.level][n.lane]|=r}0===e.length&&(o[a.level][a.lane]|=16);const n=f(a);for(let t=0;t<n.length;t++){const e=n[t];let r=4;t>0&&(r|=1),t<n.length-1&&(r|=2),o[a.level-1][e.lane]|=r}}for(let a=0;a<e;a++)for(let e=0;e<n;e++){const n=a>0?o[a-1][e]:0,t=e>0?o[a][e-1]:0;let r=o[a][e];r||(8&n&&(r|=12),2&t&&(r|=3),o[a][e]=r)}for(let a=0;a<e;a++)for(let n=0;n<t.length;n++){const t=o[a][n],s=4&t?"─":" ",l=r[a][n];l?(i(n,l.text),a<e-1&&(i(n," "),i(n,T(s,u[a]-l.text.length)))):a<e-1&&i(n,T(s,u[a]+1)),i(n,v(t)),i(n,8&t&&a<e-1&&!r[a+1][n]?"─":" ")}return`\n${t.join("\n")}\n`;function i(e,n){t[e]+=n}}();function p(e){const n=[];for(const t of e.edges)t.source===e&&n.push(t.target);return n}function f(e){const n=[];for(const t of e.edges)t.target===e&&n.push(t.source);return n}function m(e,n){const t=r(e);let o=s[t];if(o&&n.has(e))return o.circular=!0,o={id:-1,flowNode:e,edges:[],text:"",lane:-1,endLane:-1,level:-1,circular:"circularity"},l.push(o),o;if(n.add(e),!o)if(s[t]=o={id:t,flowNode:e,edges:[],text:"",lane:-1,endLane:-1,level:-1,circular:!1},l.push(o),12&(i=e).flags&&i.antecedent)for(const r of e.antecedent)h(o,r,n);else(function(e){return!!(2032&e.flags)})(e)&&h(o,e.antecedent,n);var i;return n.delete(e),o}function h(e,n,t){const r=m(n,t),o={source:e,target:r};e.edges.push(o),r.edges.push(o)}function _(e){if(-1!==e.level)return e.level;let n=0;for(const t of f(e))n=Math.max(n,_(t)+1);return e.level=n}function g(e){return qp(Sp(e),e,!1)}function y(e,n){let t=function(e){if(2&e)return"Start";if(4&e)return"Branch";if(8&e)return"Loop";if(16&e)return"Assignment";if(32&e)return"True";if(64&e)return"False";if(128&e)return"SwitchClause";if(256&e)return"ArrayMutation";if(512&e)return"Call";if(1024&e)return"ReduceLabel";if(1&e)return"Unreachable";throw new Error}(e.flags);if(n&&(t=`${t}#${r(e)}`),128&e.flags){const n=[],{switchStatement:r,clauseStart:o,clauseEnd:i}=e.node;for(let e=o;e<i;e++){const t=r.caseBlock.clauses[e];oM(t)?n.push("default"):n.push(g(t.expression))}t+=` (${n.join(", ")})`}else(function(e){return!!(882&e.flags)})(e)&&e.node&&(t+=` (${g(e.node)})`);return"circularity"===n?`Circular(${t})`:t}function v(e){switch(e){case 3:return"│";case 12:return"─";case 5:return"╯";case 9:return"╰";case 6:return"╮";case 10:return"╭";case 7:return"┤";case 11:return"├";case 13:return"┴";case 14:return"┬";case 15:return"╫"}return" "}function b(e,n){if(e.fill)e.fill(n);else for(let t=0;t<e.length;t++)e[t]=n;return e}function T(e,n){if(e.repeat)return n>0?e.repeat(n):"";let t="";for(;t.length<n;)t+=e;return t}}e.DebugTypeMapper=w,e.attachDebugPrototypeIfDebug=function(n){return e.isDebugging?Object.setPrototypeOf(n,w.prototype):n},e.printControlFlowGraph=function(e){},e.formatControlFlowGraph=O})(dt||(dt={}));var pt=/^(0|[1-9]\d*)(?:\.(0|[1-9]\d*)(?:\.(0|[1-9]\d*)(?:-([a-z0-9-.]+))?(?:\+([a-z0-9-.]+))?)?)?$/i,ft=/^(?:0|[1-9]\d*|[a-z-][a-z0-9-]*)(?:\.(?:0|[1-9]\d*|[a-z-][a-z0-9-]*))*$/i,mt=/^(?:0|[1-9]\d*|[a-z-][a-z0-9-]*)$/i,ht=/^[a-z0-9-]+(?:\.[a-z0-9-]+)*$/i,_t=/^[a-z0-9-]+$/i,gt=/^(?:0|[1-9]\d*)$/,yt=class e{constructor(e,n=0,t=0,r="",o=""){if("string"==typeof e){const i=dt.checkDefined(bt(e),"Invalid version");({major:e,minor:n,patch:t,prerelease:r,build:o}=i)}dt.assert(e>=0,"Invalid argument: major"),dt.assert(n>=0,"Invalid argument: minor"),dt.assert(t>=0,"Invalid argument: patch");const i=r?Ye(r)?r:r.split("."):s,a=o?Ye(o)?o:o.split("."):s;dt.assert(g(i,e=>mt.test(e)),"Invalid argument: prerelease"),dt.assert(g(a,e=>_t.test(e)),"Invalid argument: build"),this.major=e,this.minor=n,this.patch=t,this.prerelease=i,this.build=a}static tryParse(n){const t=bt(n);if(!t)return;const{major:r,minor:o,patch:i,prerelease:a,build:s}=t;return new e(r,o,i,a,s)}compareTo(e){return this===e?0:void 0===e?1:vn(this.major,e.major)||vn(this.minor,e.minor)||vn(this.patch,e.patch)||function(e,n){if(e===n)return 0;if(0===e.length)return 0===n.length?0:1;if(0===n.length)return-1;const t=Math.min(e.length,n.length);for(let r=0;r<t;r++){const t=e[r],o=n[r];if(t===o)continue;const i=gt.test(t),a=gt.test(o);if(i||a){if(i!==a)return i?-1:1;const e=vn(+t,+o);if(e)return e}else{const e=xn(t,o);if(e)return e}}return vn(e.length,n.length)}(this.prerelease,e.prerelease)}increment(n){switch(n){case"major":return new e(this.major+1,0,0);case"minor":return new e(this.major,this.minor+1,0);case"patch":return new e(this.major,this.minor,this.patch+1);default:return dt.assertNever(n)}}with(n){const{major:t=this.major,minor:r=this.minor,patch:o=this.patch,prerelease:i=this.prerelease,build:a=this.build}=n;return new e(t,r,o,i,a)}toString(){let e=`${this.major}.${this.minor}.${this.patch}`;return U(this.prerelease)&&(e+=`-${this.prerelease.join(".")}`),U(this.build)&&(e+=`+${this.build.join(".")}`),e}};yt.zero=new yt(0,0,0,["0"]);var vt=yt;function bt(e){const n=pt.exec(e);if(!n)return;const[,t,r="0",o="0",i="",a=""]=n;return i&&!ft.test(i)||a&&!ht.test(a)?void 0:{major:parseInt(t,10),minor:parseInt(r,10),patch:parseInt(o,10),prerelease:i,build:a}}var Tt=class e{constructor(e){this._alternatives=e?dt.checkDefined(It(e),"Invalid range spec."):s}static tryParse(n){const t=It(n);if(t){const n=new e("");return n._alternatives=t,n}}test(e){return"string"==typeof e&&(e=new vt(e)),function(e,n){if(0===n.length)return!0;for(const t of n)if(Lt(e,t))return!0;return!1}(e,this._alternatives)}toString(){return D(this._alternatives,wt).join(" || ")||"*"}},St=/\|\|/,Et=/\s+/,At=/^([x*0]|[1-9]\d*)(?:\.([x*0]|[1-9]\d*)(?:\.([x*0]|[1-9]\d*)(?:-([a-z0-9-.]+))?(?:\+([a-z0-9-.]+))?)?)?$/i,xt=/^\s*([a-z0-9-+.*]+)\s+-\s+([a-z0-9-+.*]+)\s*$/i,Rt=/^([~^<>=]|<=|>=)?\s*([a-z0-9-+.*]+)$/i;function It(e){const n=[];for(let t of e.trim().split(St)){if(!t)continue;const e=[];t=t.trim();const r=xt.exec(t);if(r){if(!Ct(r[1],r[2],e))return}else for(const n of t.split(Et)){const t=Rt.exec(n.trim());if(!t||!Nt(t[1],t[2],e))return}n.push(e)}return n}function Dt(e){const n=At.exec(e);if(!n)return;const[,t,r="*",o="*",i,a]=n;return{version:new vt(Mt(t)?0:parseInt(t,10),Mt(t)||Mt(r)?0:parseInt(r,10),Mt(t)||Mt(r)||Mt(o)?0:parseInt(o,10),i,a),major:t,minor:r,patch:o}}function Ct(e,n,t){const r=Dt(e);if(!r)return!1;const o=Dt(n);return!!o&&(Mt(r.major)||t.push(Pt(">=",r.version)),Mt(o.major)||t.push(Mt(o.minor)?Pt("<",o.version.increment("major")):Mt(o.patch)?Pt("<",o.version.increment("minor")):Pt("<=",o.version)),!0)}function Nt(e,n,t){const r=Dt(n);if(!r)return!1;const{version:o,major:i,minor:a,patch:s}=r;if(Mt(i))"<"!==e&&">"!==e||t.push(Pt("<",vt.zero));else switch(e){case"~":t.push(Pt(">=",o)),t.push(Pt("<",o.increment(Mt(a)?"major":"minor")));break;case"^":t.push(Pt(">=",o)),t.push(Pt("<",o.increment(o.major>0||Mt(a)?"major":o.minor>0||Mt(s)?"minor":"patch")));break;case"<":case">=":t.push(Mt(a)||Mt(s)?Pt(e,o.with({prerelease:"0"})):Pt(e,o));break;case"<=":case">":t.push(Mt(a)?Pt("<="===e?"<":">=",o.increment("major").with({prerelease:"0"})):Mt(s)?Pt("<="===e?"<":">=",o.increment("minor").with({prerelease:"0"})):Pt(e,o));break;case"=":case void 0:Mt(a)||Mt(s)?(t.push(Pt(">=",o.with({prerelease:"0"}))),t.push(Pt("<",o.increment(Mt(a)?"major":"minor").with({prerelease:"0"})))):t.push(Pt("=",o));break;default:return!1}return!0}function Mt(e){return"*"===e||"x"===e||"X"===e}function Pt(e,n){return{operator:e,operand:n}}function Lt(e,n){for(const t of n)if(!kt(e,t.operator,t.operand))return!1;return!0}function kt(e,n,t){const r=e.compareTo(t);switch(n){case"<":return r<0;case"<=":return r<=0;case">":return r>0;case">=":return r>=0;case"=":return 0===r;default:return dt.assertNever(n)}}function wt(e){return D(e,Ot).join(" ")}function Ot(e){return`${e.operator}${e.operand}`}var Ft=function(){const e=function(){if(ct(),"object"==typeof performance)return{shouldWriteNativeEvents:!0,performance:performance}}();if(!e)return;const{shouldWriteNativeEvents:n,performance:t}=e,r={shouldWriteNativeEvents:n,performance:void 0,performanceTime:void 0};return"number"==typeof t.timeOrigin&&"function"==typeof t.now&&(r.performanceTime=t),r.performanceTime&&"function"==typeof t.mark&&"function"==typeof t.measure&&"function"==typeof t.clearMarks&&"function"==typeof t.clearMeasures&&(r.performance=t),r}(),Wt=null==Ft?void 0:Ft.performanceTime;function zt(){return Ft}var Bt,Gt,Vt=Wt?()=>Wt.now():Date.now,jt={};function Ut(e,n,t,r){return e?Ht(n,t,r):Jt}function Ht(e,n,t){let r=0;return{enter:function(){1===++r&&er(n)},exit:function(){0===--r?(er(t),nr(e,n,t)):r<0&&dt.fail("enter/exit count does not match.")}}}t(jt,{clearMarks:()=>sr,clearMeasures:()=>ar,createTimer:()=>Ht,createTimerIf:()=>Ut,disable:()=>dr,enable:()=>cr,forEachMark:()=>ir,forEachMeasure:()=>or,getCount:()=>tr,getDuration:()=>rr,isEnabled:()=>lr,mark:()=>er,measure:()=>nr,nullTimer:()=>Jt});var Kt,qt,Jt={enter:tn,exit:tn},Xt=!1,Yt=Vt(),$t=new Map,Qt=new Map,Zt=new Map;function er(e){if(Xt){const n=Qt.get(e)??0;Qt.set(e,n+1),$t.set(e,Vt()),null==Gt||Gt.mark(e),"function"==typeof onProfilerEvent&&onProfilerEvent(e)}}function nr(e,n,t){if(Xt){const r=(void 0!==t?$t.get(t):void 0)??Vt(),o=(void 0!==n?$t.get(n):void 0)??Yt,i=Zt.get(e)||0;Zt.set(e,i+(r-o)),null==Gt||Gt.measure(e,n,t)}}function tr(e){return Qt.get(e)||0}function rr(e){return Zt.get(e)||0}function or(e){Zt.forEach((n,t)=>e(t,n))}function ir(e){$t.forEach((n,t)=>e(t))}function ar(e){void 0!==e?Zt.delete(e):Zt.clear(),null==Gt||Gt.clearMeasures(e)}function sr(e){void 0!==e?(Qt.delete(e),$t.delete(e)):(Qt.clear(),$t.clear()),null==Gt||Gt.clearMarks(e)}function lr(){return Xt}function cr(e=di){var n;return Xt||(Xt=!0,Bt||(Bt=zt()),(null==Bt?void 0:Bt.performance)&&(Yt=Bt.performance.timeOrigin,(Bt.shouldWriteNativeEvents||(null==(n=null==e?void 0:e.cpuProfilingEnabled)?void 0:n.call(e))||(null==e?void 0:e.debugMode))&&(Gt=Bt.performance))),!0}function dr(){Xt&&($t.clear(),Qt.clear(),Zt.clear(),Gt=void 0,Xt=!1)}(e=>{let n,t,r=0,o=0;const i=[];let a;const s=[];var l;e.startTracing=function(l,c,d){if(dt.assert(!Kt,"Tracing already started"),void 0===n)try{n=oi("fs")}catch(bi){throw new Error(`tracing requires having fs\n(original error: ${bi.message||bi})`)}t=l,i.length=0,void 0===a&&(a=zi(c,"legend.json")),n.existsSync(c)||n.mkdirSync(c,{recursive:!0});const u="build"===t?`.${process.pid}-${++r}`:"server"===t?`.${process.pid}`:"",p=zi(c,`trace${u}.json`),f=zi(c,`types${u}.json`);s.push({configFilePath:d,tracePath:p,typesPath:f}),o=n.openSync(p,"w"),Kt=e;const m={cat:"__metadata",ph:"M",ts:1e3*Vt(),pid:1,tid:1};n.writeSync(o,"[\n"+[{name:"process_name",args:{name:"tsc"},...m},{name:"thread_name",args:{name:"Main"},...m},{name:"TracingStartedInBrowser",...m,cat:"disabled-by-default-devtools.timeline"}].map(e=>JSON.stringify(e)).join(",\n"))},e.stopTracing=function(){dt.assert(Kt,"Tracing is not in progress"),dt.assert(!!i.length==("server"!==t)),n.writeSync(o,"\n]\n"),n.closeSync(o),Kt=void 0,i.length?function(e){var t,r,o,i,a,l,c,d,u,p,m,h,_,g,y,v,b,T,S;er("beginDumpTypes");const E=s[s.length-1].typesPath,A=n.openSync(E,"w"),x=new Map;n.writeSync(A,"[");const R=e.length;for(let s=0;s<R;s++){const E=e[s],I=E.objectFlags,D=E.aliasSymbol??E.symbol;let C;if(16&I|2944&E.flags)try{C=null==(t=E.checker)?void 0:t.typeToString(E)}catch{C=void 0}let N={};if(8388608&E.flags){const e=E;N={indexedAccessObjectType:null==(r=e.objectType)?void 0:r.id,indexedAccessIndexType:null==(o=e.indexType)?void 0:o.id}}let M={};if(4&I){const e=E;M={instantiatedType:null==(i=e.target)?void 0:i.id,typeArguments:null==(a=e.resolvedTypeArguments)?void 0:a.map(e=>e.id),referenceLocation:f(e.node)}}let P={};if(16777216&E.flags){const e=E;P={conditionalCheckType:null==(l=e.checkType)?void 0:l.id,conditionalExtendsType:null==(c=e.extendsType)?void 0:c.id,conditionalTrueType:(null==(d=e.resolvedTrueType)?void 0:d.id)??-1,conditionalFalseType:(null==(u=e.resolvedFalseType)?void 0:u.id)??-1}}let L={};if(33554432&E.flags){const e=E;L={substitutionBaseType:null==(p=e.baseType)?void 0:p.id,constraintType:null==(m=e.constraint)?void 0:m.id}}let k={};if(1024&I){const e=E;k={reverseMappedSourceType:null==(h=e.source)?void 0:h.id,reverseMappedMappedType:null==(_=e.mappedType)?void 0:_.id,reverseMappedConstraintType:null==(g=e.constraintType)?void 0:g.id}}let w,O={};if(256&I){const e=E;O={evolvingArrayElementType:e.elementType.id,evolvingArrayFinalType:null==(y=e.finalArrayType)?void 0:y.id}}const F=E.checker.getRecursionIdentity(E);F&&(w=x.get(F),w||(w=x.size,x.set(F,w)));const W={id:E.id,intrinsicName:E.intrinsicName,symbolName:(null==D?void 0:D.escapedName)&&yl(D.escapedName),recursionId:w,isTuple:!!(8&I)||void 0,unionTypes:1048576&E.flags?null==(v=E.types)?void 0:v.map(e=>e.id):void 0,intersectionTypes:2097152&E.flags?E.types.map(e=>e.id):void 0,aliasTypeArguments:null==(b=E.aliasTypeArguments)?void 0:b.map(e=>e.id),keyofType:4194304&E.flags?null==(T=E.type)?void 0:T.id:void 0,...N,...M,...P,...L,...k,...O,destructuringPattern:f(E.pattern),firstDeclaration:f(null==(S=null==D?void 0:D.declarations)?void 0:S[0]),flags:dt.formatTypeFlags(E.flags).split("|"),display:C};n.writeSync(A,JSON.stringify(W)),s<R-1&&n.writeSync(A,",\n")}n.writeSync(A,"]\n"),n.closeSync(A),er("endDumpTypes"),nr("Dump types","beginDumpTypes","endDumpTypes")}(i):s[s.length-1].typesPath=void 0},e.recordType=function(e){"server"!==t&&i.push(e)},(l=e.Phase||(e.Phase={})).Parse="parse",l.Program="program",l.Bind="bind",l.Check="check",l.CheckTypes="checkTypes",l.Emit="emit",l.Session="session",e.instant=function(e,n,t){p("I",e,n,t,'"s":"g"')};const c=[];e.push=function(e,n,t,r=!1){r&&p("B",e,n,t),c.push({phase:e,name:n,args:t,time:1e3*Vt(),separateBeginAndEnd:r})},e.pop=function(e){dt.assert(c.length>0),u(c.length-1,1e3*Vt(),e),c.length--},e.popAll=function(){const e=1e3*Vt();for(let n=c.length-1;n>=0;n--)u(n,e);c.length=0};const d=1e4;function u(e,n,t){const{phase:r,name:o,args:i,time:a,separateBeginAndEnd:s}=c[e];s?(dt.assert(!t,"`results` are not supported for events with `separateBeginAndEnd`"),p("E",r,o,i,void 0,n)):d-a%d<=n-a&&p("X",r,o,{...i,results:t},'"dur":'+(n-a),a)}function p(e,r,i,a,s,l=1e3*Vt()){"server"===t&&"checkTypes"===r||(er("beginTracing"),n.writeSync(o,`,\n{"pid":1,"tid":1,"ph":"${e}","cat":"${r}","ts":${l},"name":"${i}"`),s&&n.writeSync(o,`,${s}`),a&&n.writeSync(o,`,"args":${JSON.stringify(a)}`),n.writeSync(o,"}"),er("endTracing"),nr("Tracing","beginTracing","endTracing"))}function f(e){const n=Sp(e);return n?{path:n.path,start:t(Ua(n,e.pos)),end:t(Ua(n,e.end))}:void 0;function t(e){return{line:e.line+1,character:e.character+1}}}e.dumpLegend=function(){a&&n.writeFileSync(a,JSON.stringify(s))}})(qt||(qt={}));var ur=qt.startTracing,pr=qt.dumpLegend,fr=(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.NonTextFileMarkerTrivia=8]="NonTextFileMarkerTrivia",e[e.NumericLiteral=9]="NumericLiteral",e[e.BigIntLiteral=10]="BigIntLiteral",e[e.StringLiteral=11]="StringLiteral",e[e.JsxText=12]="JsxText",e[e.JsxTextAllWhiteSpaces=13]="JsxTextAllWhiteSpaces",e[e.RegularExpressionLiteral=14]="RegularExpressionLiteral",e[e.NoSubstitutionTemplateLiteral=15]="NoSubstitutionTemplateLiteral",e[e.TemplateHead=16]="TemplateHead",e[e.TemplateMiddle=17]="TemplateMiddle",e[e.TemplateTail=18]="TemplateTail",e[e.OpenBraceToken=19]="OpenBraceToken",e[e.CloseBraceToken=20]="CloseBraceToken",e[e.OpenParenToken=21]="OpenParenToken",e[e.CloseParenToken=22]="CloseParenToken",e[e.OpenBracketToken=23]="OpenBracketToken",e[e.CloseBracketToken=24]="CloseBracketToken",e[e.DotToken=25]="DotToken",e[e.DotDotDotToken=26]="DotDotDotToken",e[e.SemicolonToken=27]="SemicolonToken",e[e.CommaToken=28]="CommaToken",e[e.QuestionDotToken=29]="QuestionDotToken",e[e.LessThanToken=30]="LessThanToken",e[e.LessThanSlashToken=31]="LessThanSlashToken",e[e.GreaterThanToken=32]="GreaterThanToken",e[e.LessThanEqualsToken=33]="LessThanEqualsToken",e[e.GreaterThanEqualsToken=34]="GreaterThanEqualsToken",e[e.EqualsEqualsToken=35]="EqualsEqualsToken",e[e.ExclamationEqualsToken=36]="ExclamationEqualsToken",e[e.EqualsEqualsEqualsToken=37]="EqualsEqualsEqualsToken",e[e.ExclamationEqualsEqualsToken=38]="ExclamationEqualsEqualsToken",e[e.EqualsGreaterThanToken=39]="EqualsGreaterThanToken",e[e.PlusToken=40]="PlusToken",e[e.MinusToken=41]="MinusToken",e[e.AsteriskToken=42]="AsteriskToken",e[e.AsteriskAsteriskToken=43]="AsteriskAsteriskToken",e[e.SlashToken=44]="SlashToken",e[e.PercentToken=45]="PercentToken",e[e.PlusPlusToken=46]="PlusPlusToken",e[e.MinusMinusToken=47]="MinusMinusToken",e[e.LessThanLessThanToken=48]="LessThanLessThanToken",e[e.GreaterThanGreaterThanToken=49]="GreaterThanGreaterThanToken",e[e.GreaterThanGreaterThanGreaterThanToken=50]="GreaterThanGreaterThanGreaterThanToken",e[e.AmpersandToken=51]="AmpersandToken",e[e.BarToken=52]="BarToken",e[e.CaretToken=53]="CaretToken",e[e.ExclamationToken=54]="ExclamationToken",e[e.TildeToken=55]="TildeToken",e[e.AmpersandAmpersandToken=56]="AmpersandAmpersandToken",e[e.BarBarToken=57]="BarBarToken",e[e.QuestionToken=58]="QuestionToken",e[e.ColonToken=59]="ColonToken",e[e.AtToken=60]="AtToken",e[e.QuestionQuestionToken=61]="QuestionQuestionToken",e[e.BacktickToken=62]="BacktickToken",e[e.HashToken=63]="HashToken",e[e.EqualsToken=64]="EqualsToken",e[e.PlusEqualsToken=65]="PlusEqualsToken",e[e.MinusEqualsToken=66]="MinusEqualsToken",e[e.AsteriskEqualsToken=67]="AsteriskEqualsToken",e[e.AsteriskAsteriskEqualsToken=68]="AsteriskAsteriskEqualsToken",e[e.SlashEqualsToken=69]="SlashEqualsToken",e[e.PercentEqualsToken=70]="PercentEqualsToken",e[e.LessThanLessThanEqualsToken=71]="LessThanLessThanEqualsToken",e[e.GreaterThanGreaterThanEqualsToken=72]="GreaterThanGreaterThanEqualsToken",e[e.GreaterThanGreaterThanGreaterThanEqualsToken=73]="GreaterThanGreaterThanGreaterThanEqualsToken",e[e.AmpersandEqualsToken=74]="AmpersandEqualsToken",e[e.BarEqualsToken=75]="BarEqualsToken",e[e.BarBarEqualsToken=76]="BarBarEqualsToken",e[e.AmpersandAmpersandEqualsToken=77]="AmpersandAmpersandEqualsToken",e[e.QuestionQuestionEqualsToken=78]="QuestionQuestionEqualsToken",e[e.CaretEqualsToken=79]="CaretEqualsToken",e[e.Identifier=80]="Identifier",e[e.PrivateIdentifier=81]="PrivateIdentifier",e[e.JSDocCommentTextToken=82]="JSDocCommentTextToken",e[e.BreakKeyword=83]="BreakKeyword",e[e.CaseKeyword=84]="CaseKeyword",e[e.CatchKeyword=85]="CatchKeyword",e[e.ClassKeyword=86]="ClassKeyword",e[e.ConstKeyword=87]="ConstKeyword",e[e.ContinueKeyword=88]="ContinueKeyword",e[e.DebuggerKeyword=89]="DebuggerKeyword",e[e.DefaultKeyword=90]="DefaultKeyword",e[e.DeleteKeyword=91]="DeleteKeyword",e[e.DoKeyword=92]="DoKeyword",e[e.ElseKeyword=93]="ElseKeyword",e[e.EnumKeyword=94]="EnumKeyword",e[e.ExportKeyword=95]="ExportKeyword",e[e.ExtendsKeyword=96]="ExtendsKeyword",e[e.FalseKeyword=97]="FalseKeyword",e[e.FinallyKeyword=98]="FinallyKeyword",e[e.ForKeyword=99]="ForKeyword",e[e.FunctionKeyword=100]="FunctionKeyword",e[e.IfKeyword=101]="IfKeyword",e[e.ImportKeyword=102]="ImportKeyword",e[e.InKeyword=103]="InKeyword",e[e.InstanceOfKeyword=104]="InstanceOfKeyword",e[e.NewKeyword=105]="NewKeyword",e[e.NullKeyword=106]="NullKeyword",e[e.ReturnKeyword=107]="ReturnKeyword",e[e.SuperKeyword=108]="SuperKeyword",e[e.SwitchKeyword=109]="SwitchKeyword",e[e.ThisKeyword=110]="ThisKeyword",e[e.ThrowKeyword=111]="ThrowKeyword",e[e.TrueKeyword=112]="TrueKeyword",e[e.TryKeyword=113]="TryKeyword",e[e.TypeOfKeyword=114]="TypeOfKeyword",e[e.VarKeyword=115]="VarKeyword",e[e.VoidKeyword=116]="VoidKeyword",e[e.WhileKeyword=117]="WhileKeyword",e[e.WithKeyword=118]="WithKeyword",e[e.ImplementsKeyword=119]="ImplementsKeyword",e[e.InterfaceKeyword=120]="InterfaceKeyword",e[e.LetKeyword=121]="LetKeyword",e[e.PackageKeyword=122]="PackageKeyword",e[e.PrivateKeyword=123]="PrivateKeyword",e[e.ProtectedKeyword=124]="ProtectedKeyword",e[e.PublicKeyword=125]="PublicKeyword",e[e.StaticKeyword=126]="StaticKeyword",e[e.YieldKeyword=127]="YieldKeyword",e[e.AbstractKeyword=128]="AbstractKeyword",e[e.AccessorKeyword=129]="AccessorKeyword",e[e.AsKeyword=130]="AsKeyword",e[e.AssertsKeyword=131]="AssertsKeyword",e[e.AssertKeyword=132]="AssertKeyword",e[e.AnyKeyword=133]="AnyKeyword",e[e.AsyncKeyword=134]="AsyncKeyword",e[e.AwaitKeyword=135]="AwaitKeyword",e[e.BooleanKeyword=136]="BooleanKeyword",e[e.ConstructorKeyword=137]="ConstructorKeyword",e[e.DeclareKeyword=138]="DeclareKeyword",e[e.GetKeyword=139]="GetKeyword",e[e.InferKeyword=140]="InferKeyword",e[e.IntrinsicKeyword=141]="IntrinsicKeyword",e[e.IsKeyword=142]="IsKeyword",e[e.KeyOfKeyword=143]="KeyOfKeyword",e[e.ModuleKeyword=144]="ModuleKeyword",e[e.NamespaceKeyword=145]="NamespaceKeyword",e[e.NeverKeyword=146]="NeverKeyword",e[e.OutKeyword=147]="OutKeyword",e[e.ReadonlyKeyword=148]="ReadonlyKeyword",e[e.RequireKeyword=149]="RequireKeyword",e[e.NumberKeyword=150]="NumberKeyword",e[e.ObjectKeyword=151]="ObjectKeyword",e[e.SatisfiesKeyword=152]="SatisfiesKeyword",e[e.SetKeyword=153]="SetKeyword",e[e.StringKeyword=154]="StringKeyword",e[e.SymbolKeyword=155]="SymbolKeyword",e[e.TypeKeyword=156]="TypeKeyword",e[e.UndefinedKeyword=157]="UndefinedKeyword",e[e.UniqueKeyword=158]="UniqueKeyword",e[e.UnknownKeyword=159]="UnknownKeyword",e[e.UsingKeyword=160]="UsingKeyword",e[e.FromKeyword=161]="FromKeyword",e[e.GlobalKeyword=162]="GlobalKeyword",e[e.BigIntKeyword=163]="BigIntKeyword",e[e.OverrideKeyword=164]="OverrideKeyword",e[e.OfKeyword=165]="OfKeyword",e[e.DeferKeyword=166]="DeferKeyword",e[e.QualifiedName=167]="QualifiedName",e[e.ComputedPropertyName=168]="ComputedPropertyName",e[e.TypeParameter=169]="TypeParameter",e[e.Parameter=170]="Parameter",e[e.Decorator=171]="Decorator",e[e.PropertySignature=172]="PropertySignature",e[e.PropertyDeclaration=173]="PropertyDeclaration",e[e.MethodSignature=174]="MethodSignature",e[e.MethodDeclaration=175]="MethodDeclaration",e[e.ClassStaticBlockDeclaration=176]="ClassStaticBlockDeclaration",e[e.Constructor=177]="Constructor",e[e.GetAccessor=178]="GetAccessor",e[e.SetAccessor=179]="SetAccessor",e[e.CallSignature=180]="CallSignature",e[e.ConstructSignature=181]="ConstructSignature",e[e.IndexSignature=182]="IndexSignature",e[e.TypePredicate=183]="TypePredicate",e[e.TypeReference=184]="TypeReference",e[e.FunctionType=185]="FunctionType",e[e.ConstructorType=186]="ConstructorType",e[e.TypeQuery=187]="TypeQuery",e[e.TypeLiteral=188]="TypeLiteral",e[e.ArrayType=189]="ArrayType",e[e.TupleType=190]="TupleType",e[e.OptionalType=191]="OptionalType",e[e.RestType=192]="RestType",e[e.UnionType=193]="UnionType",e[e.IntersectionType=194]="IntersectionType",e[e.ConditionalType=195]="ConditionalType",e[e.InferType=196]="InferType",e[e.ParenthesizedType=197]="ParenthesizedType",e[e.ThisType=198]="ThisType",e[e.TypeOperator=199]="TypeOperator",e[e.IndexedAccessType=200]="IndexedAccessType",e[e.MappedType=201]="MappedType",e[e.LiteralType=202]="LiteralType",e[e.NamedTupleMember=203]="NamedTupleMember",e[e.TemplateLiteralType=204]="TemplateLiteralType",e[e.TemplateLiteralTypeSpan=205]="TemplateLiteralTypeSpan",e[e.ImportType=206]="ImportType",e[e.ObjectBindingPattern=207]="ObjectBindingPattern",e[e.ArrayBindingPattern=208]="ArrayBindingPattern",e[e.BindingElement=209]="BindingElement",e[e.ArrayLiteralExpression=210]="ArrayLiteralExpression",e[e.ObjectLiteralExpression=211]="ObjectLiteralExpression",e[e.PropertyAccessExpression=212]="PropertyAccessExpression",e[e.ElementAccessExpression=213]="ElementAccessExpression",e[e.CallExpression=214]="CallExpression",e[e.NewExpression=215]="NewExpression",e[e.TaggedTemplateExpression=216]="TaggedTemplateExpression",e[e.TypeAssertionExpression=217]="TypeAssertionExpression",e[e.ParenthesizedExpression=218]="ParenthesizedExpression",e[e.FunctionExpression=219]="FunctionExpression",e[e.ArrowFunction=220]="ArrowFunction",e[e.DeleteExpression=221]="DeleteExpression",e[e.TypeOfExpression=222]="TypeOfExpression",e[e.VoidExpression=223]="VoidExpression",e[e.AwaitExpression=224]="AwaitExpression",e[e.PrefixUnaryExpression=225]="PrefixUnaryExpression",e[e.PostfixUnaryExpression=226]="PostfixUnaryExpression",e[e.BinaryExpression=227]="BinaryExpression",e[e.ConditionalExpression=228]="ConditionalExpression",e[e.TemplateExpression=229]="TemplateExpression",e[e.YieldExpression=230]="YieldExpression",e[e.SpreadElement=231]="SpreadElement",e[e.ClassExpression=232]="ClassExpression",e[e.OmittedExpression=233]="OmittedExpression",e[e.ExpressionWithTypeArguments=234]="ExpressionWithTypeArguments",e[e.AsExpression=235]="AsExpression",e[e.NonNullExpression=236]="NonNullExpression",e[e.MetaProperty=237]="MetaProperty",e[e.SyntheticExpression=238]="SyntheticExpression",e[e.SatisfiesExpression=239]="SatisfiesExpression",e[e.TemplateSpan=240]="TemplateSpan",e[e.SemicolonClassElement=241]="SemicolonClassElement",e[e.Block=242]="Block",e[e.EmptyStatement=243]="EmptyStatement",e[e.VariableStatement=244]="VariableStatement",e[e.ExpressionStatement=245]="ExpressionStatement",e[e.IfStatement=246]="IfStatement",e[e.DoStatement=247]="DoStatement",e[e.WhileStatement=248]="WhileStatement",e[e.ForStatement=249]="ForStatement",e[e.ForInStatement=250]="ForInStatement",e[e.ForOfStatement=251]="ForOfStatement",e[e.ContinueStatement=252]="ContinueStatement",e[e.BreakStatement=253]="BreakStatement",e[e.ReturnStatement=254]="ReturnStatement",e[e.WithStatement=255]="WithStatement",e[e.SwitchStatement=256]="SwitchStatement",e[e.LabeledStatement=257]="LabeledStatement",e[e.ThrowStatement=258]="ThrowStatement",e[e.TryStatement=259]="TryStatement",e[e.DebuggerStatement=260]="DebuggerStatement",e[e.VariableDeclaration=261]="VariableDeclaration",e[e.VariableDeclarationList=262]="VariableDeclarationList",e[e.FunctionDeclaration=263]="FunctionDeclaration",e[e.ClassDeclaration=264]="ClassDeclaration",e[e.InterfaceDeclaration=265]="InterfaceDeclaration",e[e.TypeAliasDeclaration=266]="TypeAliasDeclaration",e[e.EnumDeclaration=267]="EnumDeclaration",e[e.ModuleDeclaration=268]="ModuleDeclaration",e[e.ModuleBlock=269]="ModuleBlock",e[e.CaseBlock=270]="CaseBlock",e[e.NamespaceExportDeclaration=271]="NamespaceExportDeclaration",e[e.ImportEqualsDeclaration=272]="ImportEqualsDeclaration",e[e.ImportDeclaration=273]="ImportDeclaration",e[e.ImportClause=274]="ImportClause",e[e.NamespaceImport=275]="NamespaceImport",e[e.NamedImports=276]="NamedImports",e[e.ImportSpecifier=277]="ImportSpecifier",e[e.ExportAssignment=278]="ExportAssignment",e[e.ExportDeclaration=279]="ExportDeclaration",e[e.NamedExports=280]="NamedExports",e[e.NamespaceExport=281]="NamespaceExport",e[e.ExportSpecifier=282]="ExportSpecifier",e[e.MissingDeclaration=283]="MissingDeclaration",e[e.ExternalModuleReference=284]="ExternalModuleReference",e[e.JsxElement=285]="JsxElement",e[e.JsxSelfClosingElement=286]="JsxSelfClosingElement",e[e.JsxOpeningElement=287]="JsxOpeningElement",e[e.JsxClosingElement=288]="JsxClosingElement",e[e.JsxFragment=289]="JsxFragment",e[e.JsxOpeningFragment=290]="JsxOpeningFragment",e[e.JsxClosingFragment=291]="JsxClosingFragment",e[e.JsxAttribute=292]="JsxAttribute",e[e.JsxAttributes=293]="JsxAttributes",e[e.JsxSpreadAttribute=294]="JsxSpreadAttribute",e[e.JsxExpression=295]="JsxExpression",e[e.JsxNamespacedName=296]="JsxNamespacedName",e[e.CaseClause=297]="CaseClause",e[e.DefaultClause=298]="DefaultClause",e[e.HeritageClause=299]="HeritageClause",e[e.CatchClause=300]="CatchClause",e[e.ImportAttributes=301]="ImportAttributes",e[e.ImportAttribute=302]="ImportAttribute",e[e.AssertClause=301]="AssertClause",e[e.AssertEntry=302]="AssertEntry",e[e.ImportTypeAssertionContainer=303]="ImportTypeAssertionContainer",e[e.PropertyAssignment=304]="PropertyAssignment",e[e.ShorthandPropertyAssignment=305]="ShorthandPropertyAssignment",e[e.SpreadAssignment=306]="SpreadAssignment",e[e.EnumMember=307]="EnumMember",e[e.SourceFile=308]="SourceFile",e[e.Bundle=309]="Bundle",e[e.JSDocTypeExpression=310]="JSDocTypeExpression",e[e.JSDocNameReference=311]="JSDocNameReference",e[e.JSDocMemberName=312]="JSDocMemberName",e[e.JSDocAllType=313]="JSDocAllType",e[e.JSDocUnknownType=314]="JSDocUnknownType",e[e.JSDocNullableType=315]="JSDocNullableType",e[e.JSDocNonNullableType=316]="JSDocNonNullableType",e[e.JSDocOptionalType=317]="JSDocOptionalType",e[e.JSDocFunctionType=318]="JSDocFunctionType",e[e.JSDocVariadicType=319]="JSDocVariadicType",e[e.JSDocNamepathType=320]="JSDocNamepathType",e[e.JSDoc=321]="JSDoc",e[e.JSDocComment=321]="JSDocComment",e[e.JSDocText=322]="JSDocText",e[e.JSDocTypeLiteral=323]="JSDocTypeLiteral",e[e.JSDocSignature=324]="JSDocSignature",e[e.JSDocLink=325]="JSDocLink",e[e.JSDocLinkCode=326]="JSDocLinkCode",e[e.JSDocLinkPlain=327]="JSDocLinkPlain",e[e.JSDocTag=328]="JSDocTag",e[e.JSDocAugmentsTag=329]="JSDocAugmentsTag",e[e.JSDocImplementsTag=330]="JSDocImplementsTag",e[e.JSDocAuthorTag=331]="JSDocAuthorTag",e[e.JSDocDeprecatedTag=332]="JSDocDeprecatedTag",e[e.JSDocClassTag=333]="JSDocClassTag",e[e.JSDocPublicTag=334]="JSDocPublicTag",e[e.JSDocPrivateTag=335]="JSDocPrivateTag",e[e.JSDocProtectedTag=336]="JSDocProtectedTag",e[e.JSDocReadonlyTag=337]="JSDocReadonlyTag",e[e.JSDocOverrideTag=338]="JSDocOverrideTag",e[e.JSDocCallbackTag=339]="JSDocCallbackTag",e[e.JSDocOverloadTag=340]="JSDocOverloadTag",e[e.JSDocEnumTag=341]="JSDocEnumTag",e[e.JSDocParameterTag=342]="JSDocParameterTag",e[e.JSDocReturnTag=343]="JSDocReturnTag",e[e.JSDocThisTag=344]="JSDocThisTag",e[e.JSDocTypeTag=345]="JSDocTypeTag",e[e.JSDocTemplateTag=346]="JSDocTemplateTag",e[e.JSDocTypedefTag=347]="JSDocTypedefTag",e[e.JSDocSeeTag=348]="JSDocSeeTag",e[e.JSDocPropertyTag=349]="JSDocPropertyTag",e[e.JSDocThrowsTag=350]="JSDocThrowsTag",e[e.JSDocSatisfiesTag=351]="JSDocSatisfiesTag",e[e.JSDocImportTag=352]="JSDocImportTag",e[e.SyntaxList=353]="SyntaxList",e[e.NotEmittedStatement=354]="NotEmittedStatement",e[e.NotEmittedTypeElement=355]="NotEmittedTypeElement",e[e.PartiallyEmittedExpression=356]="PartiallyEmittedExpression",e[e.CommaListExpression=357]="CommaListExpression",e[e.SyntheticReferenceExpression=358]="SyntheticReferenceExpression",e[e.Count=359]="Count",e[e.FirstAssignment=64]="FirstAssignment",e[e.LastAssignment=79]="LastAssignment",e[e.FirstCompoundAssignment=65]="FirstCompoundAssignment",e[e.LastCompoundAssignment=79]="LastCompoundAssignment",e[e.FirstReservedWord=83]="FirstReservedWord",e[e.LastReservedWord=118]="LastReservedWord",e[e.FirstKeyword=83]="FirstKeyword",e[e.LastKeyword=166]="LastKeyword",e[e.FirstFutureReservedWord=119]="FirstFutureReservedWord",e[e.LastFutureReservedWord=127]="LastFutureReservedWord",e[e.FirstTypeNode=183]="FirstTypeNode",e[e.LastTypeNode=206]="LastTypeNode",e[e.FirstPunctuation=19]="FirstPunctuation",e[e.LastPunctuation=79]="LastPunctuation",e[e.FirstToken=0]="FirstToken",e[e.LastToken=166]="LastToken",e[e.FirstTriviaToken=2]="FirstTriviaToken",e[e.LastTriviaToken=7]="LastTriviaToken",e[e.FirstLiteralToken=9]="FirstLiteralToken",e[e.LastLiteralToken=15]="LastLiteralToken",e[e.FirstTemplateToken=15]="FirstTemplateToken",e[e.LastTemplateToken=18]="LastTemplateToken",e[e.FirstBinaryOperator=30]="FirstBinaryOperator",e[e.LastBinaryOperator=79]="LastBinaryOperator",e[e.FirstStatement=244]="FirstStatement",e[e.LastStatement=260]="LastStatement",e[e.FirstNode=167]="FirstNode",e[e.FirstJSDocNode=310]="FirstJSDocNode",e[e.LastJSDocNode=352]="LastJSDocNode",e[e.FirstJSDocTagNode=328]="FirstJSDocTagNode",e[e.LastJSDocTagNode=352]="LastJSDocTagNode",e[e.FirstContextualKeyword=128]="FirstContextualKeyword",e[e.LastContextualKeyword=166]="LastContextualKeyword",e))(fr||{}),mr=(e=>(e[e.None=0]="None",e[e.Let=1]="Let",e[e.Const=2]="Const",e[e.Using=4]="Using",e[e.AwaitUsing=6]="AwaitUsing",e[e.NestedNamespace=8]="NestedNamespace",e[e.Synthesized=16]="Synthesized",e[e.Namespace=32]="Namespace",e[e.OptionalChain=64]="OptionalChain",e[e.ExportContext=128]="ExportContext",e[e.ContainsThis=256]="ContainsThis",e[e.HasImplicitReturn=512]="HasImplicitReturn",e[e.HasExplicitReturn=1024]="HasExplicitReturn",e[e.GlobalAugmentation=2048]="GlobalAugmentation",e[e.HasAsyncFunctions=4096]="HasAsyncFunctions",e[e.DisallowInContext=8192]="DisallowInContext",e[e.YieldContext=16384]="YieldContext",e[e.DecoratorContext=32768]="DecoratorContext",e[e.AwaitContext=65536]="AwaitContext",e[e.DisallowConditionalTypesContext=131072]="DisallowConditionalTypesContext",e[e.ThisNodeHasError=262144]="ThisNodeHasError",e[e.JavaScriptFile=524288]="JavaScriptFile",e[e.ThisNodeOrAnySubNodesHasError=1048576]="ThisNodeOrAnySubNodesHasError",e[e.HasAggregatedChildData=2097152]="HasAggregatedChildData",e[e.PossiblyContainsDynamicImport=4194304]="PossiblyContainsDynamicImport",e[e.PossiblyContainsImportMeta=8388608]="PossiblyContainsImportMeta",e[e.JSDoc=16777216]="JSDoc",e[e.Ambient=33554432]="Ambient",e[e.InWithStatement=67108864]="InWithStatement",e[e.JsonFile=134217728]="JsonFile",e[e.TypeCached=268435456]="TypeCached",e[e.Deprecated=536870912]="Deprecated",e[e.BlockScoped=7]="BlockScoped",e[e.Constant=6]="Constant",e[e.ReachabilityCheckFlags=1536]="ReachabilityCheckFlags",e[e.ReachabilityAndEmitFlags=5632]="ReachabilityAndEmitFlags",e[e.ContextFlags=101441536]="ContextFlags",e[e.TypeExcludesFlags=81920]="TypeExcludesFlags",e[e.PermanentlySetIncrementalFlags=12582912]="PermanentlySetIncrementalFlags",e[e.IdentifierHasExtendedUnicodeEscape=256]="IdentifierHasExtendedUnicodeEscape",e[e.IdentifierIsInJSDocNamespace=4096]="IdentifierIsInJSDocNamespace",e))(mr||{}),hr=(e=>(e[e.None=0]="None",e[e.Public=1]="Public",e[e.Private=2]="Private",e[e.Protected=4]="Protected",e[e.Readonly=8]="Readonly",e[e.Override=16]="Override",e[e.Export=32]="Export",e[e.Abstract=64]="Abstract",e[e.Ambient=128]="Ambient",e[e.Static=256]="Static",e[e.Accessor=512]="Accessor",e[e.Async=1024]="Async",e[e.Default=2048]="Default",e[e.Const=4096]="Const",e[e.In=8192]="In",e[e.Out=16384]="Out",e[e.Decorator=32768]="Decorator",e[e.Deprecated=65536]="Deprecated",e[e.JSDocPublic=8388608]="JSDocPublic",e[e.JSDocPrivate=16777216]="JSDocPrivate",e[e.JSDocProtected=33554432]="JSDocProtected",e[e.JSDocReadonly=67108864]="JSDocReadonly",e[e.JSDocOverride=134217728]="JSDocOverride",e[e.SyntacticOrJSDocModifiers=31]="SyntacticOrJSDocModifiers",e[e.SyntacticOnlyModifiers=65504]="SyntacticOnlyModifiers",e[e.SyntacticModifiers=65535]="SyntacticModifiers",e[e.JSDocCacheOnlyModifiers=260046848]="JSDocCacheOnlyModifiers",e[e.JSDocOnlyModifiers=65536]="JSDocOnlyModifiers",e[e.NonCacheOnlyModifiers=131071]="NonCacheOnlyModifiers",e[e.HasComputedJSDocModifiers=268435456]="HasComputedJSDocModifiers",e[e.HasComputedFlags=536870912]="HasComputedFlags",e[e.AccessibilityModifier=7]="AccessibilityModifier",e[e.ParameterPropertyModifier=31]="ParameterPropertyModifier",e[e.NonPublicAccessibilityModifier=6]="NonPublicAccessibilityModifier",e[e.TypeScriptModifier=28895]="TypeScriptModifier",e[e.ExportDefault=2080]="ExportDefault",e[e.All=131071]="All",e[e.Modifier=98303]="Modifier",e))(hr||{}),_r=(e=>(e[e.None=0]="None",e[e.IntrinsicNamedElement=1]="IntrinsicNamedElement",e[e.IntrinsicIndexedElement=2]="IntrinsicIndexedElement",e[e.IntrinsicElement=3]="IntrinsicElement",e))(_r||{}),gr=(e=>(e[e.None=0]="None",e[e.Succeeded=1]="Succeeded",e[e.Failed=2]="Failed",e[e.ReportsUnmeasurable=8]="ReportsUnmeasurable",e[e.ReportsUnreliable=16]="ReportsUnreliable",e[e.ReportsMask=24]="ReportsMask",e[e.ComplexityOverflow=32]="ComplexityOverflow",e[e.StackDepthOverflow=64]="StackDepthOverflow",e[e.Overflow=96]="Overflow",e))(gr||{}),yr=(e=>(e[e.None=0]="None",e[e.Always=1]="Always",e[e.Never=2]="Never",e[e.Sometimes=3]="Sometimes",e))(yr||{}),vr=(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[e.AllowNameSubstitution=64]="AllowNameSubstitution",e))(vr||{}),br=(e=>(e[e.None=0]="None",e[e.HasIndices=1]="HasIndices",e[e.Global=2]="Global",e[e.IgnoreCase=4]="IgnoreCase",e[e.Multiline=8]="Multiline",e[e.DotAll=16]="DotAll",e[e.Unicode=32]="Unicode",e[e.UnicodeSets=64]="UnicodeSets",e[e.Sticky=128]="Sticky",e[e.AnyUnicodeMode=96]="AnyUnicodeMode",e[e.Modifiers=28]="Modifiers",e))(br||{}),Tr=(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.ContainsInvalidEscape=2048]="ContainsInvalidEscape",e[e.HexEscape=4096]="HexEscape",e[e.ContainsLeadingZero=8192]="ContainsLeadingZero",e[e.ContainsInvalidSeparator=16384]="ContainsInvalidSeparator",e[e.PrecedingJSDocLeadingAsterisks=32768]="PrecedingJSDocLeadingAsterisks",e[e.BinaryOrOctalSpecifier=384]="BinaryOrOctalSpecifier",e[e.WithSpecifier=448]="WithSpecifier",e[e.StringLiteralFlags=7176]="StringLiteralFlags",e[e.NumericLiteralFlags=25584]="NumericLiteralFlags",e[e.TemplateLiteralLikeFlags=7176]="TemplateLiteralLikeFlags",e[e.IsInvalid=26656]="IsInvalid",e))(Tr||{}),Sr=(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.Call=512]="Call",e[e.ReduceLabel=1024]="ReduceLabel",e[e.Referenced=2048]="Referenced",e[e.Shared=4096]="Shared",e[e.Label=12]="Label",e[e.Condition=96]="Condition",e))(Sr||{}),Er=(e=>(e[e.ExpectError=0]="ExpectError",e[e.Ignore=1]="Ignore",e))(Er||{}),Ar=class{},xr=(e=>(e[e.RootFile=0]="RootFile",e[e.SourceFromProjectReference=1]="SourceFromProjectReference",e[e.OutputFromProjectReference=2]="OutputFromProjectReference",e[e.Import=3]="Import",e[e.ReferenceFile=4]="ReferenceFile",e[e.TypeReferenceDirective=5]="TypeReferenceDirective",e[e.LibFile=6]="LibFile",e[e.LibReferenceDirective=7]="LibReferenceDirective",e[e.AutomaticTypeDirectiveFile=8]="AutomaticTypeDirectiveFile",e))(xr||{}),Rr=(e=>(e[e.FilePreprocessingLibReferenceDiagnostic=0]="FilePreprocessingLibReferenceDiagnostic",e[e.FilePreprocessingFileExplainingDiagnostic=1]="FilePreprocessingFileExplainingDiagnostic",e[e.ResolutionDiagnostics=2]="ResolutionDiagnostics",e))(Rr||{}),Ir=(e=>(e[e.Js=0]="Js",e[e.Dts=1]="Dts",e[e.BuilderSignature=2]="BuilderSignature",e))(Ir||{}),Dr=(e=>(e[e.Not=0]="Not",e[e.SafeModules=1]="SafeModules",e[e.Completely=2]="Completely",e))(Dr||{}),Cr=(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[e.ProjectReferenceCycle_OutputsSkipped=4]="ProjectReferenceCycle_OutputsSkipped",e))(Cr||{}),Nr=(e=>(e[e.Ok=0]="Ok",e[e.NeedsOverride=1]="NeedsOverride",e[e.HasInvalidOverride=2]="HasInvalidOverride",e))(Nr||{}),Mr=(e=>(e[e.None=0]="None",e[e.Literal=1]="Literal",e[e.Subtype=2]="Subtype",e))(Mr||{}),Pr=(e=>(e[e.None=0]="None",e[e.NoSupertypeReduction=1]="NoSupertypeReduction",e[e.NoConstraintReduction=2]="NoConstraintReduction",e))(Pr||{}),Lr=(e=>(e[e.None=0]="None",e[e.Signature=1]="Signature",e[e.NoConstraints=2]="NoConstraints",e[e.Completions=4]="Completions",e[e.SkipBindingPatterns=8]="SkipBindingPatterns",e))(Lr||{}),kr=(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.UseSingleQuotesForStringLiteralType=268435456]="UseSingleQuotesForStringLiteralType",e[e.NoTypeReduction=536870912]="NoTypeReduction",e[e.OmitThisParameter=33554432]="OmitThisParameter",e[e.AllowThisInObjectLiteral=32768]="AllowThisInObjectLiteral",e[e.AllowQualifiedNameInPlaceOfIdentifier=65536]="AllowQualifiedNameInPlaceOfIdentifier",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.IgnoreErrors=70221824]="IgnoreErrors",e[e.InObjectTypeLiteral=4194304]="InObjectTypeLiteral",e[e.InTypeAlias=8388608]="InTypeAlias",e[e.InInitialEntityName=16777216]="InInitialEntityName",e))(kr||{}),wr=(e=>(e[e.None=0]="None",e[e.WriteComputedProps=1]="WriteComputedProps",e[e.NoSyntacticPrinter=2]="NoSyntacticPrinter",e[e.DoNotIncludeSymbolChain=4]="DoNotIncludeSymbolChain",e[e.AllowUnresolvedNames=8]="AllowUnresolvedNames",e))(wr||{}),Or=(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.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.UseSingleQuotesForStringLiteralType=268435456]="UseSingleQuotesForStringLiteralType",e[e.NoTypeReduction=536870912]="NoTypeReduction",e[e.OmitThisParameter=33554432]="OmitThisParameter",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.NodeBuilderFlagsMask=848330095]="NodeBuilderFlagsMask",e))(Or||{}),Fr=(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.WriteComputedProps=16]="WriteComputedProps",e[e.DoNotIncludeSymbolChain=32]="DoNotIncludeSymbolChain",e))(Fr||{}),Wr=(e=>(e[e.Accessible=0]="Accessible",e[e.NotAccessible=1]="NotAccessible",e[e.CannotBeNamed=2]="CannotBeNamed",e[e.NotResolved=3]="NotResolved",e))(Wr||{}),zr=(e=>(e[e.This=0]="This",e[e.Identifier=1]="Identifier",e[e.AssertsThis=2]="AssertsThis",e[e.AssertsIdentifier=3]="AssertsIdentifier",e))(zr||{}),Br=(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))(Br||{}),Gr=(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=-1]="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.AccessorExcludes=13247]="AccessorExcludes",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.ExportSupportsDefaultModifier=112]="ExportSupportsDefaultModifier",e[e.ExportDoesNotSupportDefaultModifier=-113]="ExportDoesNotSupportDefaultModifier",e[e.Classifiable=2885600]="Classifiable",e[e.LateBindingContainer=6256]="LateBindingContainer",e))(Gr||{}),Vr=(e=>(e[e.None=0]="None",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.HasNeverType=131072]="HasNeverType",e[e.Mapped=262144]="Mapped",e[e.StripOptional=524288]="StripOptional",e[e.Unresolved=1048576]="Unresolved",e[e.Synthetic=6]="Synthetic",e[e.Discriminant=192]="Discriminant",e[e.Partial=48]="Partial",e))(Vr||{}),jr=(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.InstantiationExpression="__instantiationExpression",e.ImportAttributes="__importAttributes",e))(jr||{}),Ur=(e=>(e[e.None=0]="None",e[e.TypeChecked=1]="TypeChecked",e[e.LexicalThis=2]="LexicalThis",e[e.CaptureThis=4]="CaptureThis",e[e.CaptureNewTarget=8]="CaptureNewTarget",e[e.SuperInstance=16]="SuperInstance",e[e.SuperStatic=32]="SuperStatic",e[e.ContextChecked=64]="ContextChecked",e[e.MethodWithSuperPropertyAccessInAsync=128]="MethodWithSuperPropertyAccessInAsync",e[e.MethodWithSuperPropertyAssignmentInAsync=256]="MethodWithSuperPropertyAssignmentInAsync",e[e.CaptureArguments=512]="CaptureArguments",e[e.EnumValuesComputed=1024]="EnumValuesComputed",e[e.LexicalModuleMergesWithClass=2048]="LexicalModuleMergesWithClass",e[e.LoopWithCapturedBlockScopedBinding=4096]="LoopWithCapturedBlockScopedBinding",e[e.ContainsCapturedBlockScopeBinding=8192]="ContainsCapturedBlockScopeBinding",e[e.CapturedBlockScopedBinding=16384]="CapturedBlockScopedBinding",e[e.BlockScopedBindingInLoop=32768]="BlockScopedBindingInLoop",e[e.NeedsLoopOutParameter=65536]="NeedsLoopOutParameter",e[e.AssignmentsMarked=131072]="AssignmentsMarked",e[e.ContainsConstructorReference=262144]="ContainsConstructorReference",e[e.ConstructorReference=536870912]="ConstructorReference",e[e.ContainsClassWithPrivateIdentifiers=1048576]="ContainsClassWithPrivateIdentifiers",e[e.ContainsSuperPropertyInStaticInitializer=2097152]="ContainsSuperPropertyInStaticInitializer",e[e.InCheckIdentifier=4194304]="InCheckIdentifier",e[e.PartiallyTypeChecked=8388608]="PartiallyTypeChecked",e[e.LazyFlags=539358128]="LazyFlags",e))(Ur||{}),Hr=(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.TemplateLiteral=134217728]="TemplateLiteral",e[e.StringMapping=268435456]="StringMapping",e[e.Reserved1=536870912]="Reserved1",e[e.Reserved2=1073741824]="Reserved2",e[e.AnyOrUnknown=3]="AnyOrUnknown",e[e.Nullable=98304]="Nullable",e[e.Literal=2944]="Literal",e[e.Unit=109472]="Unit",e[e.Freshable=2976]="Freshable",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.StringLike=402653316]="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.Primitive=402784252]="Primitive",e[e.DefinitelyNonNullable=470302716]="DefinitelyNonNullable",e[e.DisjointDomains=469892092]="DisjointDomains",e[e.UnionOrIntersection=3145728]="UnionOrIntersection",e[e.StructuredType=3670016]="StructuredType",e[e.TypeVariable=8650752]="TypeVariable",e[e.InstantiableNonPrimitive=58982400]="InstantiableNonPrimitive",e[e.InstantiablePrimitive=406847488]="InstantiablePrimitive",e[e.Instantiable=465829888]="Instantiable",e[e.StructuredOrInstantiable=469499904]="StructuredOrInstantiable",e[e.ObjectFlagsType=3899393]="ObjectFlagsType",e[e.Simplifiable=25165824]="Simplifiable",e[e.Singleton=67358815]="Singleton",e[e.Narrowable=536624127]="Narrowable",e[e.IncludesMask=473694207]="IncludesMask",e[e.IncludesMissingType=262144]="IncludesMissingType",e[e.IncludesNonWideningType=4194304]="IncludesNonWideningType",e[e.IncludesWildcard=8388608]="IncludesWildcard",e[e.IncludesEmptyObject=16777216]="IncludesEmptyObject",e[e.IncludesInstantiable=33554432]="IncludesInstantiable",e[e.IncludesConstrainedTypeVariable=536870912]="IncludesConstrainedTypeVariable",e[e.IncludesError=1073741824]="IncludesError",e[e.NotPrimitiveUnion=36323331]="NotPrimitiveUnion",e))(Hr||{}),Kr=(e=>(e[e.None=0]="None",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.ReverseMapped=1024]="ReverseMapped",e[e.JsxAttributes=2048]="JsxAttributes",e[e.JSLiteral=4096]="JSLiteral",e[e.FreshLiteral=8192]="FreshLiteral",e[e.ArrayLiteral=16384]="ArrayLiteral",e[e.PrimitiveUnion=32768]="PrimitiveUnion",e[e.ContainsWideningType=65536]="ContainsWideningType",e[e.ContainsObjectOrArrayLiteral=131072]="ContainsObjectOrArrayLiteral",e[e.NonInferrableType=262144]="NonInferrableType",e[e.CouldContainTypeVariablesComputed=524288]="CouldContainTypeVariablesComputed",e[e.CouldContainTypeVariables=1048576]="CouldContainTypeVariables",e[e.SingleSignatureType=134217728]="SingleSignatureType",e[e.ClassOrInterface=3]="ClassOrInterface",e[e.RequiresWidening=196608]="RequiresWidening",e[e.PropagatingFlags=458752]="PropagatingFlags",e[e.InstantiatedMapped=96]="InstantiatedMapped",e[e.ObjectTypeKindMask=1343]="ObjectTypeKindMask",e[e.ContainsSpread=2097152]="ContainsSpread",e[e.ObjectRestType=4194304]="ObjectRestType",e[e.InstantiationExpressionType=8388608]="InstantiationExpressionType",e[e.IsClassInstanceClone=16777216]="IsClassInstanceClone",e[e.IdenticalBaseTypeCalculated=33554432]="IdenticalBaseTypeCalculated",e[e.IdenticalBaseTypeExists=67108864]="IdenticalBaseTypeExists",e[e.IsGenericTypeComputed=2097152]="IsGenericTypeComputed",e[e.IsGenericObjectType=4194304]="IsGenericObjectType",e[e.IsGenericIndexType=8388608]="IsGenericIndexType",e[e.IsGenericType=12582912]="IsGenericType",e[e.ContainsIntersections=16777216]="ContainsIntersections",e[e.IsUnknownLikeUnionComputed=33554432]="IsUnknownLikeUnionComputed",e[e.IsUnknownLikeUnion=67108864]="IsUnknownLikeUnion",e[e.IsNeverIntersectionComputed=16777216]="IsNeverIntersectionComputed",e[e.IsNeverIntersection=33554432]="IsNeverIntersection",e[e.IsConstrainedTypeVariable=67108864]="IsConstrainedTypeVariable",e))(Kr||{}),qr=(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))(qr||{}),Jr=(e=>(e[e.Required=1]="Required",e[e.Optional=2]="Optional",e[e.Rest=4]="Rest",e[e.Variadic=8]="Variadic",e[e.Fixed=3]="Fixed",e[e.Variable=12]="Variable",e[e.NonRequired=14]="NonRequired",e[e.NonRest=11]="NonRest",e))(Jr||{}),Xr=(e=>(e[e.None=0]="None",e[e.IncludeUndefined=1]="IncludeUndefined",e[e.NoIndexSignatures=2]="NoIndexSignatures",e[e.Writing=4]="Writing",e[e.CacheSymbol=8]="CacheSymbol",e[e.AllowMissing=16]="AllowMissing",e[e.ExpressionPosition=32]="ExpressionPosition",e[e.ReportDeprecated=64]="ReportDeprecated",e[e.SuppressNoImplicitAnyError=128]="SuppressNoImplicitAnyError",e[e.Contextual=256]="Contextual",e[e.Persistent=1]="Persistent",e))(Xr||{}),Yr=(e=>(e[e.None=0]="None",e[e.StringsOnly=1]="StringsOnly",e[e.NoIndexSignatures=2]="NoIndexSignatures",e[e.NoReducibleCheck=4]="NoReducibleCheck",e))(Yr||{}),$r=(e=>(e[e.Component=0]="Component",e[e.Function=1]="Function",e[e.Mixed=2]="Mixed",e))($r||{}),Qr=(e=>(e[e.Call=0]="Call",e[e.Construct=1]="Construct",e))(Qr||{}),Zr=(e=>(e[e.None=0]="None",e[e.HasRestParameter=1]="HasRestParameter",e[e.HasLiteralTypes=2]="HasLiteralTypes",e[e.Abstract=4]="Abstract",e[e.IsInnerCallChain=8]="IsInnerCallChain",e[e.IsOuterCallChain=16]="IsOuterCallChain",e[e.IsUntypedSignatureInJSFile=32]="IsUntypedSignatureInJSFile",e[e.IsNonInferrable=64]="IsNonInferrable",e[e.IsSignatureCandidateForOverloadFailure=128]="IsSignatureCandidateForOverloadFailure",e[e.PropagatingFlags=167]="PropagatingFlags",e[e.CallChainFlags=24]="CallChainFlags",e))(Zr||{}),eo=(e=>(e[e.String=0]="String",e[e.Number=1]="Number",e))(eo||{}),no=(e=>(e[e.Simple=0]="Simple",e[e.Array=1]="Array",e[e.Deferred=2]="Deferred",e[e.Function=3]="Function",e[e.Composite=4]="Composite",e[e.Merged=5]="Merged",e))(no||{}),to=(e=>(e[e.None=0]="None",e[e.NakedTypeVariable=1]="NakedTypeVariable",e[e.SpeculativeTuple=2]="SpeculativeTuple",e[e.SubstituteSource=4]="SubstituteSource",e[e.HomomorphicMappedType=8]="HomomorphicMappedType",e[e.PartialHomomorphicMappedType=16]="PartialHomomorphicMappedType",e[e.MappedTypeConstraint=32]="MappedTypeConstraint",e[e.ContravariantConditional=64]="ContravariantConditional",e[e.ReturnType=128]="ReturnType",e[e.LiteralKeyof=256]="LiteralKeyof",e[e.NoConstraints=512]="NoConstraints",e[e.AlwaysStrict=1024]="AlwaysStrict",e[e.MaxValue=2048]="MaxValue",e[e.PriorityImpliesCombination=416]="PriorityImpliesCombination",e[e.Circularity=-1]="Circularity",e))(to||{}),ro=(e=>(e[e.None=0]="None",e[e.NoDefault=1]="NoDefault",e[e.AnyDefault=2]="AnyDefault",e[e.SkippedGenericFunction=4]="SkippedGenericFunction",e))(ro||{}),oo=(e=>(e[e.False=0]="False",e[e.Unknown=1]="Unknown",e[e.Maybe=3]="Maybe",e[e.True=-1]="True",e))(oo||{}),io=(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))(io||{}),ao=(e=>(e[e.Warning=0]="Warning",e[e.Error=1]="Error",e[e.Suggestion=2]="Suggestion",e[e.Message=3]="Message",e))(ao||{});function so(e,n=!0){const t=ao[e.category];return n?t.toLowerCase():t}var lo=(e=>(e[e.Classic=1]="Classic",e[e.NodeJs=2]="NodeJs",e[e.Node10=2]="Node10",e[e.Node16=3]="Node16",e[e.NodeNext=99]="NodeNext",e[e.Bundler=100]="Bundler",e))(lo||{}),co=(e=>(e[e.Legacy=1]="Legacy",e[e.Auto=2]="Auto",e[e.Force=3]="Force",e))(co||{}),uo=(e=>(e[e.FixedPollingInterval=0]="FixedPollingInterval",e[e.PriorityPollingInterval=1]="PriorityPollingInterval",e[e.DynamicPriorityPolling=2]="DynamicPriorityPolling",e[e.FixedChunkSizePolling=3]="FixedChunkSizePolling",e[e.UseFsEvents=4]="UseFsEvents",e[e.UseFsEventsOnParentDirectory=5]="UseFsEventsOnParentDirectory",e))(uo||{}),po=(e=>(e[e.UseFsEvents=0]="UseFsEvents",e[e.FixedPollingInterval=1]="FixedPollingInterval",e[e.DynamicPriorityPolling=2]="DynamicPriorityPolling",e[e.FixedChunkSizePolling=3]="FixedChunkSizePolling",e))(po||{}),fo=(e=>(e[e.FixedInterval=0]="FixedInterval",e[e.PriorityInterval=1]="PriorityInterval",e[e.DynamicPriority=2]="DynamicPriority",e[e.FixedChunkSize=3]="FixedChunkSize",e))(fo||{}),mo=(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.ES2020=6]="ES2020",e[e.ES2022=7]="ES2022",e[e.ESNext=99]="ESNext",e[e.Node16=100]="Node16",e[e.Node18=101]="Node18",e[e.Node20=102]="Node20",e[e.NodeNext=199]="NodeNext",e[e.Preserve=200]="Preserve",e))(mo||{}),ho=(e=>(e[e.None=0]="None",e[e.Preserve=1]="Preserve",e[e.React=2]="React",e[e.ReactNative=3]="ReactNative",e[e.ReactJSX=4]="ReactJSX",e[e.ReactJSXDev=5]="ReactJSXDev",e))(ho||{}),_o=(e=>(e[e.Remove=0]="Remove",e[e.Preserve=1]="Preserve",e[e.Error=2]="Error",e))(_o||{}),go=(e=>(e[e.CarriageReturnLineFeed=0]="CarriageReturnLineFeed",e[e.LineFeed=1]="LineFeed",e))(go||{}),yo=(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))(yo||{}),vo=(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.ES2021=8]="ES2021",e[e.ES2022=9]="ES2022",e[e.ES2023=10]="ES2023",e[e.ES2024=11]="ES2024",e[e.ESNext=99]="ESNext",e[e.JSON=100]="JSON",e[e.Latest=99]="Latest",e))(vo||{}),bo=(e=>(e[e.Standard=0]="Standard",e[e.JSX=1]="JSX",e))(bo||{}),To=(e=>(e[e.None=0]="None",e[e.Recursive=1]="Recursive",e))(To||{}),So=(e=>(e[e.EOF=-1]="EOF",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.replacementCharacter=65533]="replacementCharacter",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))(So||{}),Eo=(e=>(e.Ts=".ts",e.Tsx=".tsx",e.Dts=".d.ts",e.Js=".js",e.Jsx=".jsx",e.Json=".json",e.TsBuildInfo=".tsbuildinfo",e.Mjs=".mjs",e.Mts=".mts",e.Dmts=".d.mts",e.Cjs=".cjs",e.Cts=".cts",e.Dcts=".d.cts",e))(Eo||{}),Ao=(e=>(e[e.None=0]="None",e[e.ContainsTypeScript=1]="ContainsTypeScript",e[e.ContainsJsx=2]="ContainsJsx",e[e.ContainsESNext=4]="ContainsESNext",e[e.ContainsES2022=8]="ContainsES2022",e[e.ContainsES2021=16]="ContainsES2021",e[e.ContainsES2020=32]="ContainsES2020",e[e.ContainsES2019=64]="ContainsES2019",e[e.ContainsES2018=128]="ContainsES2018",e[e.ContainsES2017=256]="ContainsES2017",e[e.ContainsES2016=512]="ContainsES2016",e[e.ContainsES2015=1024]="ContainsES2015",e[e.ContainsGenerator=2048]="ContainsGenerator",e[e.ContainsDestructuringAssignment=4096]="ContainsDestructuringAssignment",e[e.ContainsTypeScriptClassSyntax=8192]="ContainsTypeScriptClassSyntax",e[e.ContainsLexicalThis=16384]="ContainsLexicalThis",e[e.ContainsRestOrSpread=32768]="ContainsRestOrSpread",e[e.ContainsObjectRestOrSpread=65536]="ContainsObjectRestOrSpread",e[e.ContainsComputedPropertyName=131072]="ContainsComputedPropertyName",e[e.ContainsBlockScopedBinding=262144]="ContainsBlockScopedBinding",e[e.ContainsBindingPattern=524288]="ContainsBindingPattern",e[e.ContainsYield=1048576]="ContainsYield",e[e.ContainsAwait=2097152]="ContainsAwait",e[e.ContainsHoistedDeclarationOrCompletion=4194304]="ContainsHoistedDeclarationOrCompletion",e[e.ContainsDynamicImport=8388608]="ContainsDynamicImport",e[e.ContainsClassFields=16777216]="ContainsClassFields",e[e.ContainsDecorators=33554432]="ContainsDecorators",e[e.ContainsPossibleTopLevelAwait=67108864]="ContainsPossibleTopLevelAwait",e[e.ContainsLexicalSuper=134217728]="ContainsLexicalSuper",e[e.ContainsUpdateExpressionForIdentifier=268435456]="ContainsUpdateExpressionForIdentifier",e[e.ContainsPrivateIdentifierInExpression=536870912]="ContainsPrivateIdentifierInExpression",e[e.HasComputedFlags=-2147483648]="HasComputedFlags",e[e.AssertTypeScript=1]="AssertTypeScript",e[e.AssertJsx=2]="AssertJsx",e[e.AssertESNext=4]="AssertESNext",e[e.AssertES2022=8]="AssertES2022",e[e.AssertES2021=16]="AssertES2021",e[e.AssertES2020=32]="AssertES2020",e[e.AssertES2019=64]="AssertES2019",e[e.AssertES2018=128]="AssertES2018",e[e.AssertES2017=256]="AssertES2017",e[e.AssertES2016=512]="AssertES2016",e[e.AssertES2015=1024]="AssertES2015",e[e.AssertGenerator=2048]="AssertGenerator",e[e.AssertDestructuringAssignment=4096]="AssertDestructuringAssignment",e[e.OuterExpressionExcludes=-2147483648]="OuterExpressionExcludes",e[e.PropertyAccessExcludes=-2147483648]="PropertyAccessExcludes",e[e.NodeExcludes=-2147483648]="NodeExcludes",e[e.ArrowFunctionExcludes=-2072174592]="ArrowFunctionExcludes",e[e.FunctionExcludes=-1937940480]="FunctionExcludes",e[e.ConstructorExcludes=-1937948672]="ConstructorExcludes",e[e.MethodOrAccessorExcludes=-2005057536]="MethodOrAccessorExcludes",e[e.PropertyExcludes=-2013249536]="PropertyExcludes",e[e.ClassExcludes=-2147344384]="ClassExcludes",e[e.ModuleExcludes=-1941676032]="ModuleExcludes",e[e.TypeExcludes=-2]="TypeExcludes",e[e.ObjectLiteralExcludes=-2147278848]="ObjectLiteralExcludes",e[e.ArrayLiteralOrCallOrNewExcludes=-2147450880]="ArrayLiteralOrCallOrNewExcludes",e[e.VariableDeclarationListExcludes=-2146893824]="VariableDeclarationListExcludes",e[e.ParameterExcludes=-2147483648]="ParameterExcludes",e[e.CatchClauseExcludes=-2147418112]="CatchClauseExcludes",e[e.BindingPatternExcludes=-2147450880]="BindingPatternExcludes",e[e.ContainsLexicalThisOrSuper=134234112]="ContainsLexicalThisOrSuper",e[e.PropertyNamePropagatingFlags=134234112]="PropertyNamePropagatingFlags",e))(Ao||{}),xo=(e=>(e[e.TabStop=0]="TabStop",e[e.Placeholder=1]="Placeholder",e[e.Choice=2]="Choice",e[e.Variable=3]="Variable",e))(xo||{}),Ro=(e=>(e[e.None=0]="None",e[e.SingleLine=1]="SingleLine",e[e.MultiLine=2]="MultiLine",e[e.AdviseOnEmitNode=4]="AdviseOnEmitNode",e[e.NoSubstitution=8]="NoSubstitution",e[e.CapturesThis=16]="CapturesThis",e[e.NoLeadingSourceMap=32]="NoLeadingSourceMap",e[e.NoTrailingSourceMap=64]="NoTrailingSourceMap",e[e.NoSourceMap=96]="NoSourceMap",e[e.NoNestedSourceMaps=128]="NoNestedSourceMaps",e[e.NoTokenLeadingSourceMaps=256]="NoTokenLeadingSourceMaps",e[e.NoTokenTrailingSourceMaps=512]="NoTokenTrailingSourceMaps",e[e.NoTokenSourceMaps=768]="NoTokenSourceMaps",e[e.NoLeadingComments=1024]="NoLeadingComments",e[e.NoTrailingComments=2048]="NoTrailingComments",e[e.NoComments=3072]="NoComments",e[e.NoNestedComments=4096]="NoNestedComments",e[e.HelperName=8192]="HelperName",e[e.ExportName=16384]="ExportName",e[e.LocalName=32768]="LocalName",e[e.InternalName=65536]="InternalName",e[e.Indented=131072]="Indented",e[e.NoIndentation=262144]="NoIndentation",e[e.AsyncFunctionBody=524288]="AsyncFunctionBody",e[e.ReuseTempVariableScope=1048576]="ReuseTempVariableScope",e[e.CustomPrologue=2097152]="CustomPrologue",e[e.NoHoisting=4194304]="NoHoisting",e[e.Iterator=8388608]="Iterator",e[e.NoAsciiEscaping=16777216]="NoAsciiEscaping",e))(Ro||{}),Io=(e=>(e[e.None=0]="None",e[e.TypeScriptClassWrapper=1]="TypeScriptClassWrapper",e[e.NeverApplyImportHelper=2]="NeverApplyImportHelper",e[e.IgnoreSourceNewlines=4]="IgnoreSourceNewlines",e[e.Immutable=8]="Immutable",e[e.IndirectCall=16]="IndirectCall",e[e.TransformPrivateStaticElements=32]="TransformPrivateStaticElements",e))(Io||{}),Do={Classes:2,ForOf:2,Generators:2,Iteration:2,SpreadElements:2,RestElements:2,TaggedTemplates:2,DestructuringAssignment:2,BindingPatterns:2,ArrowFunctions:2,BlockScopedVariables:2,ObjectAssign:2,RegularExpressionFlagsUnicode:2,RegularExpressionFlagsSticky:2,Exponentiation:3,AsyncFunctions:4,ForAwaitOf:5,AsyncGenerators:5,AsyncIteration:5,ObjectSpreadRest:5,RegularExpressionFlagsDotAll:5,BindinglessCatch:6,BigInt:7,NullishCoalesce:7,OptionalChaining:7,LogicalAssignment:8,TopLevelAwait:9,ClassFields:9,PrivateNamesAndClassStaticBlocks:9,RegularExpressionFlagsHasIndices:9,ShebangComments:10,RegularExpressionFlagsUnicodeSets:11,UsingAndAwaitUsing:99,ClassAndClassElementDecorators:99},Co=(e=>(e[e.Extends=1]="Extends",e[e.Assign=2]="Assign",e[e.Rest=4]="Rest",e[e.Decorate=8]="Decorate",e[e.ESDecorateAndRunInitializers=8]="ESDecorateAndRunInitializers",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.SpreadArray=1024]="SpreadArray",e[e.Await=2048]="Await",e[e.AsyncGenerator=4096]="AsyncGenerator",e[e.AsyncDelegator=8192]="AsyncDelegator",e[e.AsyncValues=16384]="AsyncValues",e[e.ExportStar=32768]="ExportStar",e[e.ImportStar=65536]="ImportStar",e[e.ImportDefault=131072]="ImportDefault",e[e.MakeTemplateObject=262144]="MakeTemplateObject",e[e.ClassPrivateFieldGet=524288]="ClassPrivateFieldGet",e[e.ClassPrivateFieldSet=1048576]="ClassPrivateFieldSet",e[e.ClassPrivateFieldIn=2097152]="ClassPrivateFieldIn",e[e.SetFunctionName=4194304]="SetFunctionName",e[e.PropKey=8388608]="PropKey",e[e.AddDisposableResourceAndDisposeResources=16777216]="AddDisposableResourceAndDisposeResources",e[e.RewriteRelativeImportExtension=33554432]="RewriteRelativeImportExtension",e[e.FirstEmitHelper=1]="FirstEmitHelper",e[e.LastEmitHelper=16777216]="LastEmitHelper",e[e.ForOfIncludes=256]="ForOfIncludes",e[e.ForAwaitOfIncludes=16384]="ForAwaitOfIncludes",e[e.AsyncGeneratorIncludes=6144]="AsyncGeneratorIncludes",e[e.AsyncDelegatorIncludes=26624]="AsyncDelegatorIncludes",e[e.SpreadIncludes=1536]="SpreadIncludes",e))(Co||{}),No=(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[e.JsxAttributeValue=6]="JsxAttributeValue",e[e.ImportTypeNodeAttributes=7]="ImportTypeNodeAttributes",e))(No||{}),Mo=(e=>(e[e.Parentheses=1]="Parentheses",e[e.TypeAssertions=2]="TypeAssertions",e[e.NonNullAssertions=4]="NonNullAssertions",e[e.PartiallyEmittedExpressions=8]="PartiallyEmittedExpressions",e[e.ExpressionsWithTypeArguments=16]="ExpressionsWithTypeArguments",e[e.Satisfies=32]="Satisfies",e[e.Assertions=38]="Assertions",e[e.All=63]="All",e[e.ExcludeJSDocTypeAssertion=-2147483648]="ExcludeJSDocTypeAssertion",e))(Mo||{}),Po=(e=>(e[e.None=0]="None",e[e.InParameters=1]="InParameters",e[e.VariablesHoistedInParameters=2]="VariablesHoistedInParameters",e))(Po||{}),Lo=(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.SpaceAfterList=2097152]="SpaceAfterList",e[e.Modifiers=2359808]="Modifiers",e[e.HeritageClauses=512]="HeritageClauses",e[e.SingleLineTypeLiteralMembers=768]="SingleLineTypeLiteralMembers",e[e.MultiLineTypeLiteralMembers=32897]="MultiLineTypeLiteralMembers",e[e.SingleLineTupleTypeElements=528]="SingleLineTupleTypeElements",e[e.MultiLineTupleTypeElements=657]="MultiLineTupleTypeElements",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.ImportAttributes=526226]="ImportAttributes",e[e.ImportClauseEntries=526226]="ImportClauseEntries",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=2146305]="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))(Lo||{}),ko=(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))(ko||{}),wo={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},{name:"resolution-mode",optional:!0},{name:"preserve",optional:!0}],kind:1},"amd-dependency":{args:[{name:"path"},{name:"name",optional:!0}],kind:1},"amd-module":{args:[{name:"name"}],kind:1},"ts-check":{kind:2},"ts-nocheck":{kind:2},jsx:{args:[{name:"factory"}],kind:4},jsxfrag:{args:[{name:"factory"}],kind:4},jsximportsource:{args:[{name:"factory"}],kind:4},jsxruntime:{args:[{name:"factory"}],kind:4}},Oo=(e=>(e[e.ParseAll=0]="ParseAll",e[e.ParseNone=1]="ParseNone",e[e.ParseForTypeErrors=2]="ParseForTypeErrors",e[e.ParseForTypeInfo=3]="ParseForTypeInfo",e))(Oo||{});function Fo(e){let n=5381;for(let t=0;t<e.length;t++)n=(n<<5)+n+e.charCodeAt(t);return n.toString()}function Wo(){Error.stackTraceLimit<100&&(Error.stackTraceLimit=100)}var zo=(e=>(e[e.Created=0]="Created",e[e.Changed=1]="Changed",e[e.Deleted=2]="Deleted",e))(zo||{}),Bo=(e=>(e[e.High=2e3]="High",e[e.Medium=500]="Medium",e[e.Low=250]="Low",e))(Bo||{}),Go=new Date(0);function Vo(e,n){return e.getModifiedTime(n)||Go}function jo(e){return{250:e.Low,500:e.Medium,2e3:e.High}}var Uo={Low:32,Medium:64,High:256},Ho=jo(Uo),Ko=jo(Uo);function qo(e,n,t,r,o){let i=t;for(let s=n.length;r&&s;a(),s--){const a=n[t];if(!a)continue;if(a.isClosed){n[t]=void 0;continue}r--;const s=$o(a,Vo(e,a.fileName));a.isClosed?n[t]=void 0:(null==o||o(a,t,s),n[t]&&(i<t&&(n[i]=a,n[t]=void 0),i++))}return t;function a(){++t===n.length&&(i<t&&(n.length=i),t=0,i=0)}}function Jo(e){const n=[],t=[],r=a(250),o=a(500),i=a(2e3);return function(t,r,o){const i={fileName:t,callback:r,unchangedPolls:0,mtime:Vo(e,t)};return n.push(i),u(i,o),{close:()=>{i.isClosed=!0,Un(n,i)}}};function a(e){const n=[];return n.pollingInterval=e,n.pollIndex=0,n.pollScheduled=!1,n}function s(e,n){n.pollIndex=c(n,n.pollingInterval,n.pollIndex,Ho[n.pollingInterval]),n.length?f(n.pollingInterval):(dt.assert(0===n.pollIndex),n.pollScheduled=!1)}function l(e,n){c(t,250,0,t.length),s(0,n),!n.pollScheduled&&t.length&&f(250)}function c(n,r,o,i){return qo(e,n,o,i,function(e,o,i){i?(e.unchangedPolls=0,n!==t&&(n[o]=void 0,a=e,t.push(a),p(250))):e.unchangedPolls!==Ko[r]?e.unchangedPolls++:n===t?(e.unchangedPolls=1,n[o]=void 0,u(e,250)):2e3!==r&&(e.unchangedPolls++,n[o]=void 0,u(e,250===r?500:2e3));var a})}function d(e){switch(e){case 250:return r;case 500:return o;case 2e3:return i}}function u(e,n){d(n).push(e),p(n)}function p(e){d(e).pollScheduled||f(e)}function f(n){d(n).pollScheduled=e.setTimeout(250===n?l:s,n,250===n?"pollLowPollingIntervalQueue":"pollPollingIntervalQueue",d(n))}}function Xo(e,n,t,r){const o=He(),i=r?new Map:void 0,a=new Map,s=Hn(n);return function(n,r,l,c){const d=s(n);1===o.add(d,r).length&&i&&i.set(d,t(n)||Go);const u=Mi(d)||".",p=a.get(u)||function(n,r,l){const c=e(n,1,(e,r)=>{if(!Qe(r))return;const a=Vi(r,n),l=s(a),c=a&&o.get(l);if(c){let n,r=1;if(i){const o=i.get(l);if("change"===e&&(n=t(a)||Go,n.getTime()===o.getTime()))return;n||(n=t(a)||Go),i.set(l,n),o===Go?r=0:n===Go&&(r=2)}for(const e of c)e(a,r,n)}},!1,500,l);return c.referenceCount=0,a.set(r,c),c}(Mi(n)||".",u,c);return p.referenceCount++,{close:()=>{1===p.referenceCount?(p.close(),a.delete(u)):p.referenceCount--,o.remove(d,r)}}}}function Yo(e,n,t,r,o){const i=Hn(n)(t),a=e.get(i);return a?a.callbacks.push(r):e.set(i,{watcher:o((n,t,r)=>{var o;return null==(o=e.get(i))?void 0:o.callbacks.slice().forEach(e=>e(n,t,r))}),callbacks:[r]}),{close:()=>{const n=e.get(i);n&&Gn(n.callbacks,r)&&!n.callbacks.length&&(e.delete(i),qj(n))}}}function $o(e,n){const t=e.mtime.getTime(),r=n.getTime();return t!==r&&(e.mtime=n,e.callback(e.fileName,Qo(t,r),n),!0)}function Qo(e,n){return 0===e?0:0===n?2:1}var Zo=["/node_modules/.","/.git","/.#"],ei=tn;function ni(e){return ei(e)}function ti(e){ei=e}function ri({watchDirectory:e,useCaseSensitiveFileNames:n,getCurrentDirectory:t,getAccessibleSortedChildDirectories:r,fileSystemEntryExists:o,realpath:i,setTimeout:a,clearTimeout:l}){const c=new Map,d=He(),u=new Map;let p;const f=Rn(!n),m=Hn(n);return(n,t,r,o)=>r?h(n,o,t):e(n,t,r,o);function h(n,t,r,i){const f=m(n);let h=c.get(f);h?h.refCount++:(h={watcher:e(n,e=>{var r;T(e,t)||((null==t?void 0:t.synchronousWatchDirectory)?((null==(r=c.get(f))?void 0:r.targetWatcher)||_(n,f,e),b(n,f,t)):function(e,n,t,r){const i=c.get(n);if(i&&o(e,1))return void function(e,n,t,r){const o=u.get(n);o?o.fileNames.push(t):u.set(n,{dirName:e,options:r,fileNames:[t]});p&&(l(p),p=void 0);p=a(g,1e3,"timerToUpdateChildWatches")}(e,n,t,r);_(e,n,t),v(i),y(i)}(n,f,e,t))},!1,t),refCount:1,childWatches:s,targetWatcher:void 0,links:void 0},c.set(f,h),b(n,f,t)),i&&(h.links??(h.links=new Set)).add(i);const S=r&&{dirName:n,callback:r};return S&&d.add(f,S),{dirName:n,close:()=>{var e;const n=dt.checkDefined(c.get(f));S&&d.remove(f,S),i&&(null==(e=n.links)||e.delete(i)),n.refCount--,n.refCount||(c.delete(f),n.links=void 0,qj(n),v(n),n.childWatches.forEach(aT))}}}function _(e,n,t,r){var o,i;let a,s;Qe(t)?a=t:s=t,d.forEach((e,t)=>{if((!s||!0!==s.get(t))&&(t===n||Xn(n,t)&&n[t.length]===pi))if(s)if(r){const e=s.get(t);e?e.push(...r):s.set(t,r.slice())}else s.set(t,!0);else e.forEach(({callback:e})=>e(a))}),null==(i=null==(o=c.get(n))?void 0:o.links)||i.forEach(n=>{const t=t=>zi(n,aa(e,t,m));s?_(n,m(n),s,null==r?void 0:r.map(t)):_(n,m(n),t(a))})}function g(){var e;p=void 0,ni(`sysLog:: onTimerToUpdateChildWatches:: ${u.size}`);const n=Vt(),t=new Map;for(;!p&&u.size;){const n=u.entries().next();dt.assert(!n.done);const{value:[r,{dirName:o,options:i,fileNames:a}]}=n;u.delete(r);const s=b(o,r,i);(null==(e=c.get(r))?void 0:e.targetWatcher)||_(o,r,t,s?void 0:a)}ni(`sysLog:: invokingWatchers:: Elapsed:: ${Vt()-n}ms:: ${u.size}`),d.forEach((e,n)=>{const r=t.get(n);r&&e.forEach(({callback:e,dirName:n})=>{Ye(r)?r.forEach(e):e(n)})});ni(`sysLog:: Elapsed:: ${Vt()-n}ms:: onTimerToUpdateChildWatches:: ${u.size} ${p}`)}function y(e){if(!e)return;const n=e.childWatches;e.childWatches=s;for(const t of n)t.close(),y(c.get(m(t.dirName)))}function v(e){(null==e?void 0:e.targetWatcher)&&(e.targetWatcher.close(),e.targetWatcher=void 0)}function b(e,n,t){const a=c.get(n);if(!a)return!1;const l=ji(i(e));let d,u;return 0===f(l,e)?d=ot(o(e,1)?F(r(e),n=>{const r=Vi(n,e);return T(r,t)||0!==f(r,ji(i(r)))?void 0:r}):s,a.childWatches,(e,n)=>f(e,n.dirName),function(e){p(h(e,t))},aT,p):a.targetWatcher&&0===f(l,a.targetWatcher.dirName)?(d=!1,dt.assert(a.childWatches===s)):(v(a),a.targetWatcher=h(l,t,void 0,e),a.childWatches.forEach(aT),d=!0),a.childWatches=u||s,d;function p(e){(u||(u=[])).push(e)}}function T(e,r){return U(Zo,t=>function(e,t){return!!e.includes(t)||!n&&m(e).includes(t)}(e,t))||ai(e,r,n,t)}}var ii=(e=>(e[e.File=0]="File",e[e.Directory=1]="Directory",e))(ii||{});function ai(e,n,t,r){return((null==n?void 0:n.excludeDirectories)||(null==n?void 0:n.excludeFiles))&&(KO(e,null==n?void 0:n.excludeFiles,t,r())||KO(e,null==n?void 0:n.excludeDirectories,t,r()))}function si(e,n,t,r,o){return(i,a)=>{if("rename"===i){const i=a?ji(zi(e,a)):e;a&&ai(i,t,r,o)||n(i)}}}function li({pollingWatchFileWorker:e,getModifiedTime:n,setTimeout:t,clearTimeout:r,fsWatchWorker:o,fileSystemEntryExists:i,useCaseSensitiveFileNames:a,getCurrentDirectory:s,fsSupportsRecursiveFsWatch:l,getAccessibleSortedChildDirectories:c,realpath:d,tscWatchFile:u,useNonPollingWatchers:p,tscWatchDirectory:f,inodeWatching:m,fsWatchWithTimestamp:h,sysLog:_}){const g=new Map,y=new Map,v=new Map;let b,T,S,E,A=!1;return{watchFile:x,watchDirectory:function(e,n,o,u){if(l)return M(e,1,si(e,n,u,a,s),o,500,Kj(u));E||(E=ri({useCaseSensitiveFileNames:a,getCurrentDirectory:s,fileSystemEntryExists:i,getAccessibleSortedChildDirectories:c,watchDirectory:C,realpath:d,setTimeout:t,clearTimeout:r}));return E(e,n,o,u)}};function x(e,t,r,o){o=function(e,n){if(e&&void 0!==e.watchFile)return e;switch(u){case"PriorityPollingInterval":return{watchFile:1};case"DynamicPriorityPolling":return{watchFile:2};case"UseFsEvents":return D(4,1,e);case"UseFsEventsWithFallbackDynamicPolling":return D(4,2,e);case"UseFsEventsOnParentDirectory":n=!0;default:return n?D(5,1,e):{watchFile:4}}}(o,p);const i=dt.checkDefined(o.watchFile);switch(i){case 0:return N(e,t,250,void 0);case 1:return N(e,t,r,void 0);case 2:return R()(e,t,r,void 0);case 3:return I()(e,t,void 0,void 0);case 4:return M(e,0,function(e,n,t){return(r,o,i)=>{"rename"===r?(i||(i=t(e)||Go),n(e,i!==Go?0:2,i)):n(e,1,i)}}(e,t,n),!1,r,Kj(o));case 5:return S||(S=Xo(M,a,n,h)),S(e,t,r,Kj(o));default:dt.assertNever(i)}}function R(){return b||(b=Jo({getModifiedTime:n,setTimeout:t}))}function I(){return T||(T=function(e){const n=[];let t,r=0;return function(t,r){const o={fileName:t,callback:r,mtime:Vo(e,t)};return n.push(o),i(),{close:()=>{o.isClosed=!0,Un(n,o)}}};function o(){t=void 0,r=qo(e,n,r,Ho[250]),i()}function i(){n.length&&!t&&(t=e.setTimeout(o,2e3,"pollQueue"))}}({getModifiedTime:n,setTimeout:t}))}function D(e,n,t){const r=null==t?void 0:t.fallbackPolling;return{watchFile:e,fallbackPolling:void 0===r?n:r}}function C(e,n,t,r){dt.assert(!t);const o=function(e){if(e&&void 0!==e.watchDirectory)return e;switch(f){case"RecursiveDirectoryUsingFsWatchFile":return{watchDirectory:1};case"RecursiveDirectoryUsingDynamicPriorityPolling":return{watchDirectory:2};default:const n=null==e?void 0:e.fallbackPolling;return{watchDirectory:0,fallbackPolling:void 0!==n?n:void 0}}}(r),i=dt.checkDefined(o.watchDirectory);switch(i){case 1:return N(e,()=>n(e),500,void 0);case 2:return R()(e,()=>n(e),500,void 0);case 3:return I()(e,()=>n(e),void 0,void 0);case 0:return M(e,1,si(e,n,r,a,s),t,500,Kj(o));default:dt.assertNever(i)}}function N(n,t,r,o){return Yo(g,a,n,t,t=>e(n,t,r,o))}function M(e,t,r,s,l,c){return Yo(s?v:y,a,e,r,r=>function(e,t,r,a,s,l){let c,d;m&&(c=e.substring(e.lastIndexOf(pi)),d=c.slice(pi.length));let u=i(e,t)?f():v();return{close:()=>{u&&(u.close(),u=void 0)}};function p(n){u&&(_(`sysLog:: ${e}:: Changing watcher to ${n===f?"Present":"Missing"}FileSystemEntryWatcher`),u.close(),u=n())}function f(){if(A)return _(`sysLog:: ${e}:: Defaulting to watchFile`),y();try{const n=(1!==t&&h?P:o)(e,a,m?g:r);return n.on("error",()=>{r("rename",""),p(v)}),n}catch(bi){return A||(A="ENOSPC"===bi.code),_(`sysLog:: ${e}:: Changing to watchFile`),y()}}function g(t,o){let i;if(o&&Fn(o,"~")&&(i=o,o=o.slice(0,o.length-1)),"rename"!==t||o&&o!==d&&!Fn(o,c))i&&r(t,i),r(t,o);else{const a=n(e)||Go;i&&r(t,i,a),r(t,o,a),m?p(a===Go?v:f):a===Go&&p(v)}}function y(){return x(e,function(e){return(n,t,r)=>e(1===t?"change":"rename","",r)}(r),s,l)}function v(){return x(e,(t,o,i)=>{0===o&&(i||(i=n(e)||Go),i!==Go&&(r("rename","",i),p(f)))},s,l)}}(e,t,r,s,l,c))}function P(e,t,r){let i=n(e)||Go;return o(e,t,(t,o,a)=>{"change"===t&&(a||(a=n(e)||Go),a.getTime()===i.getTime())||(i=a||n(e)||Go,r(t,o,i))})}}function ci(e){const n=e.writeFile;e.writeFile=(t,r,o)=>ov(t,r,!!o,(t,r,o)=>n.call(e,t,r,o),n=>e.createDirectory(n),n=>e.directoryExists(n))}var di=void ct();function ui(e){di=e}di&&di.getEnvironmentVariable&&(!function(e){if(!e.getEnvironmentVariable)return;const n=function(e,n){const r=t("TSC_WATCH_POLLINGINTERVAL");return!!r&&(o("Low"),o("Medium"),o("High"),!0);function o(e){n[e]=r[e]||n[e]}}(0,Bo);function t(n){let t;return r("Low"),r("Medium"),r("High"),t;function r(r){const o=function(n,t){return e.getEnvironmentVariable(`${n}_${t.toUpperCase()}`)}(n,r);o&&((t||(t={}))[r]=Number(o))}}function r(e,r){const o=t(e);return(n||o)&&jo(o?{...r,...o}:r)}Ho=r("TSC_WATCH_POLLINGCHUNKSIZE",Uo)||Ho,Ko=r("TSC_WATCH_UNCHANGEDPOLLTHRESHOLDS",Uo)||Ko}(di),dt.setAssertionLevel(/^development$/i.test(di.getEnvironmentVariable("NODE_ENV"))?1:0)),di&&di.debugMode&&(dt.isDebugging=!0);var pi="/",fi="\\",mi="://",hi=/\\/g;function _i(e){return 47===e||92===e}function gi(e){return Ci(e)<0}function yi(e){return Ci(e)>0}function vi(e){const n=Ci(e);return n>0&&n===e.length}function Ti(e){return 0!==Ci(e)}function Si(e){return/^\.\.?(?:$|[\\/])/.test(e)}function Ei(e){return!Ti(e)&&!Si(e)}function Ai(e){return Pi(e).includes(".")}function xi(e,n){return e.length>n.length&&Fn(e,n)}function Ri(e,n){for(const t of n)if(xi(e,t))return!0;return!1}function Ii(e){return e.length>0&&_i(e.charCodeAt(e.length-1))}function Di(e){return e>=97&&e<=122||e>=65&&e<=90}function Ci(e){if(!e)return 0;const n=e.charCodeAt(0);if(47===n||92===n){if(e.charCodeAt(1)!==n)return 1;const t=e.indexOf(47===n?pi:fi,2);return t<0?e.length:t+1}if(Di(n)&&58===e.charCodeAt(1)){const n=e.charCodeAt(2);if(47===n||92===n)return 3;if(2===e.length)return 2}const t=e.indexOf(mi);if(-1!==t){const n=t+mi.length,r=e.indexOf(pi,n);if(-1!==r){const o=e.slice(0,t),i=e.slice(n,r);if("file"===o&&(""===i||"localhost"===i)&&Di(e.charCodeAt(r+1))){const n=function(e,n){const t=e.charCodeAt(n);if(58===t)return n+1;if(37===t&&51===e.charCodeAt(n+1)){const t=e.charCodeAt(n+2);if(97===t||65===t)return n+3}return-1}(e,r+2);if(-1!==n){if(47===e.charCodeAt(n))return~(n+1);if(n===e.length)return~n}}return~(r+1)}return~e.length}return 0}function Ni(e){const n=Ci(e);return n<0?~n:n}function Mi(e){const n=Ni(e=Fi(e));return n===e.length?e:(e=qi(e)).slice(0,Math.max(n,e.lastIndexOf(pi)))}function Pi(e,n,t){if(Ni(e=Fi(e))===e.length)return"";const r=(e=qi(e)).slice(Math.max(Ni(e),e.lastIndexOf(pi)+1)),o=void 0!==n&&void 0!==t?ki(r,n,t):void 0;return o?r.slice(0,r.length-o.length):r}function Li(e,n,t){if(Xn(n,".")||(n="."+n),e.length>=n.length&&46===e.charCodeAt(e.length-n.length)){const r=e.slice(e.length-n.length);if(t(r,n))return r}}function ki(e,n,t){if(n)return function(e,n,t){if("string"==typeof n)return Li(e,n,t)||"";for(const r of n){const n=Li(e,r,t);if(n)return n}return""}(qi(e),n,t?_n:gn);const r=Pi(e),o=r.lastIndexOf(".");return o>=0?r.substring(o):""}function wi(e,n=""){return function(e,n){const t=e.substring(0,n),r=e.substring(n).split(pi);return r.length&&!ge(r)&&r.pop(),[t,...r]}(e=zi(n,e),Ni(e))}function Oi(e,n){if(0===e.length)return"";return(e[0]&&Ji(e[0]))+e.slice(1,n).join(pi)}function Fi(e){return e.includes("\\")?e.replace(hi,pi):e}function Wi(e){if(!U(e))return[];const n=[e[0]];for(let t=1;t<e.length;t++){const r=e[t];if(r&&"."!==r){if(".."===r)if(n.length>1){if(".."!==n[n.length-1]){n.pop();continue}}else if(n[0])continue;n.push(r)}}return n}function zi(e,...n){e&&(e=Fi(e));for(let t of n)t&&(t=Fi(t),e=e&&0===Ni(t)?Ji(e)+t:t);return e}function Bi(e,...n){return ji(U(n)?zi(e,...n):Fi(e))}function Gi(e,n){return Wi(wi(e,n))}function Vi(e,n){let t=Ni(e);0===t&&n?t=Ni(e=zi(n,e)):e=Fi(e);const r=Ui(e);if(void 0!==r)return r.length>t?qi(r):r;const o=e.length,i=e.substring(0,t);let a,s=t,l=s,c=s,d=0!==t;for(;s<o;){l=s;let n=e.charCodeAt(s);for(;47===n&&s+1<o;)s++,n=e.charCodeAt(s);s>l&&(a??(a=e.substring(0,l-1)),l=s);let r=e.indexOf(pi,s+1);-1===r&&(r=o);const u=r-l;if(1===u&&46===e.charCodeAt(s))a??(a=e.substring(0,c));else if(2===u&&46===e.charCodeAt(s)&&46===e.charCodeAt(s+1))if(d)if(void 0===a)a=c-2>=0?e.substring(0,Math.max(t,e.lastIndexOf(pi,c-2))):e.substring(0,c);else{const e=a.lastIndexOf(pi);a=-1!==e?a.substring(0,Math.max(t,e)):i,a.length===t&&(d=0!==t)}else void 0!==a?a+=a.length===t?"..":"/..":c=s+2;else void 0!==a?(a.length!==t&&(a+=pi),d=!0,a+=e.substring(l,r)):(d=!0,c=r);s=r+1}return a??(o>t?qi(e):e)}function ji(e){let n=Ui(e=Fi(e));return void 0!==n?n:(n=Vi(e,""),n&&Ii(e)?Ji(n):n)}function Ui(e){if(!Qi.test(e))return e;let n=e.replace(/\/\.\//g,"/");return n.startsWith("./")&&(n=n.slice(2)),n===e||(e=n,Qi.test(e))?void 0:e}function Hi(e,n){return 0===(t=Gi(e,n)).length?"":t.slice(1).join(pi);var t}function Ki(e,n,t){return t(yi(e)?ji(e):Vi(e,n))}function qi(e){return Ii(e)?e.substr(0,e.length-1):e}function Ji(e){return Ii(e)?e:e+pi}function Xi(e){return Ti(e)||Si(e)?e:"./"+e}function Yi(e,n,t,r){const o=void 0!==t&&void 0!==r?ki(e,t,r):ki(e);return o?e.slice(0,e.length-o.length)+(Xn(n,".")?n:"."+n):e}function $i(e,n){const t=vk(e);return t?e.slice(0,e.length-t.length)+(Xn(n,".")?n:"."+n):Yi(e,n)}var Qi=/\/\/|(?:^|\/)\.\.?(?:$|\/)/;function Zi(e,n,t){if(e===n)return 0;if(void 0===e)return-1;if(void 0===n)return 1;const r=e.substring(0,Ni(e)),o=n.substring(0,Ni(n)),i=En(r,o);if(0!==i)return i;const a=e.substring(r.length),s=n.substring(o.length);if(!Qi.test(a)&&!Qi.test(s))return t(a,s);const l=Wi(wi(e)),c=Wi(wi(n)),d=Math.min(l.length,c.length);for(let u=1;u<d;u++){const e=t(l[u],c[u]);if(0!==e)return e}return vn(l.length,c.length)}function ea(e,n){return Zi(e,n,xn)}function na(e,n){return Zi(e,n,En)}function ta(e,n,t,r){return"string"==typeof t?(e=zi(t,e),n=zi(t,n)):"boolean"==typeof t&&(r=t),Zi(e,n,Rn(r))}function ra(e,n,t,r){if("string"==typeof t?(e=zi(t,e),n=zi(t,n)):"boolean"==typeof t&&(r=t),void 0===e||void 0===n)return!1;if(e===n)return!0;const o=Wi(wi(e)),i=Wi(wi(n));if(i.length<o.length)return!1;const a=r?_n:gn;for(let s=0;s<o.length;s++){if(!(0===s?_n:a)(o[s],i[s]))return!1}return!0}function oa(e,n,t){const r=t(e),o=t(n);return Xn(r,o+"/")||Xn(r,o+"\\")}function ia(e,n,t,r){const o=Wi(wi(e)),i=Wi(wi(n));let a;for(a=0;a<o.length&&a<i.length;a++){if(!(0===a?_n:t)(r(o[a]),r(i[a])))break}if(0===a)return i;const s=i.slice(a),l=[];for(;a<o.length;a++)l.push("..");return["",...l,...s]}function aa(e,n,t){dt.assert(Ni(e)>0==Ni(n)>0,"Paths must either both be absolute or both be relative");return Oi(ia(e,n,"boolean"==typeof t&&t?_n:gn,"function"==typeof t?t:sn))}function sa(e,n,t){return yi(e)?ca(n,e,n,t,!1):e}function la(e,n,t){return Xi(aa(Mi(e),n,t))}function ca(e,n,t,r,o){const i=ia(Bi(t,e),Bi(t,n),gn,r),a=i[0];if(o&&yi(a)){const e=a.charAt(0)===pi?"file://":"file:///";i[0]=e+a}return Oi(i)}function da(e,n){for(;;){const t=n(e);if(void 0!==t)return t;const r=Mi(e);if(r===e)return;e=r}}function ua(e){return Fn(e,"/node_modules")}function pa(e,n,t,r,o,i,a){return{code:e,category:n,key:t,message:r,reportsUnnecessary:o,elidedInCompatabilityPyramid:i,reportsDeprecated:a}}var fa={Unterminated_string_literal:pa(1002,1,"Unterminated_string_literal_1002","Unterminated string literal."),Identifier_expected:pa(1003,1,"Identifier_expected_1003","Identifier expected."),_0_expected:pa(1005,1,"_0_expected_1005","'{0}' expected."),A_file_cannot_have_a_reference_to_itself:pa(1006,1,"A_file_cannot_have_a_reference_to_itself_1006","A file cannot have a reference to itself."),The_parser_expected_to_find_a_1_to_match_the_0_token_here:pa(1007,1,"The_parser_expected_to_find_a_1_to_match_the_0_token_here_1007","The parser expected to find a '{1}' to match the '{0}' token here."),Trailing_comma_not_allowed:pa(1009,1,"Trailing_comma_not_allowed_1009","Trailing comma not allowed."),Asterisk_Slash_expected:pa(1010,1,"Asterisk_Slash_expected_1010","'*/' expected."),An_element_access_expression_should_take_an_argument:pa(1011,1,"An_element_access_expression_should_take_an_argument_1011","An element access expression should take an argument."),Unexpected_token:pa(1012,1,"Unexpected_token_1012","Unexpected token."),A_rest_parameter_or_binding_pattern_may_not_have_a_trailing_comma:pa(1013,1,"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:pa(1014,1,"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:pa(1015,1,"Parameter_cannot_have_question_mark_and_initializer_1015","Parameter cannot have question mark and initializer."),A_required_parameter_cannot_follow_an_optional_parameter:pa(1016,1,"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:pa(1017,1,"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:pa(1018,1,"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:pa(1019,1,"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:pa(1020,1,"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:pa(1021,1,"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:pa(1022,1,"An_index_signature_parameter_must_have_a_type_annotation_1022","An index signature parameter must have a type annotation."),readonly_modifier_can_only_appear_on_a_property_declaration_or_index_signature:pa(1024,1,"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."),An_index_signature_cannot_have_a_trailing_comma:pa(1025,1,"An_index_signature_cannot_have_a_trailing_comma_1025","An index signature cannot have a trailing comma."),Accessibility_modifier_already_seen:pa(1028,1,"Accessibility_modifier_already_seen_1028","Accessibility modifier already seen."),_0_modifier_must_precede_1_modifier:pa(1029,1,"_0_modifier_must_precede_1_modifier_1029","'{0}' modifier must precede '{1}' modifier."),_0_modifier_already_seen:pa(1030,1,"_0_modifier_already_seen_1030","'{0}' modifier already seen."),_0_modifier_cannot_appear_on_class_elements_of_this_kind:pa(1031,1,"_0_modifier_cannot_appear_on_class_elements_of_this_kind_1031","'{0}' modifier cannot appear on class elements of this kind."),super_must_be_followed_by_an_argument_list_or_member_access:pa(1034,1,"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:pa(1035,1,"Only_ambient_modules_can_use_quoted_names_1035","Only ambient modules can use quoted names."),Statements_are_not_allowed_in_ambient_contexts:pa(1036,1,"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:pa(1038,1,"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:pa(1039,1,"Initializers_are_not_allowed_in_ambient_contexts_1039","Initializers are not allowed in ambient contexts."),_0_modifier_cannot_be_used_in_an_ambient_context:pa(1040,1,"_0_modifier_cannot_be_used_in_an_ambient_context_1040","'{0}' modifier cannot be used in an ambient context."),_0_modifier_cannot_be_used_here:pa(1042,1,"_0_modifier_cannot_be_used_here_1042","'{0}' modifier cannot be used here."),_0_modifier_cannot_appear_on_a_module_or_namespace_element:pa(1044,1,"_0_modifier_cannot_appear_on_a_module_or_namespace_element_1044","'{0}' modifier cannot appear on a module or namespace element."),Top_level_declarations_in_d_ts_files_must_start_with_either_a_declare_or_export_modifier:pa(1046,1,"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:pa(1047,1,"A_rest_parameter_cannot_be_optional_1047","A rest parameter cannot be optional."),A_rest_parameter_cannot_have_an_initializer:pa(1048,1,"A_rest_parameter_cannot_have_an_initializer_1048","A rest parameter cannot have an initializer."),A_set_accessor_must_have_exactly_one_parameter:pa(1049,1,"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:pa(1051,1,"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:pa(1052,1,"A_set_accessor_parameter_cannot_have_an_initializer_1052","A 'set' accessor parameter cannot have an initializer."),A_set_accessor_cannot_have_rest_parameter:pa(1053,1,"A_set_accessor_cannot_have_rest_parameter_1053","A 'set' accessor cannot have rest parameter."),A_get_accessor_cannot_have_parameters:pa(1054,1,"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_because_it_does_not_refer_to_a_Promise_compatible_constructor_value:pa(1055,1,"Type_0_is_not_a_valid_async_function_return_type_in_ES5_because_it_does_not_refer_to_a_Promise_compa_1055","Type '{0}' is not a valid async function return type in ES5 because it does not refer to a Promise-compatible constructor value."),Accessors_are_only_available_when_targeting_ECMAScript_5_and_higher:pa(1056,1,"Accessors_are_only_available_when_targeting_ECMAScript_5_and_higher_1056","Accessors are only available when targeting ECMAScript 5 and higher."),The_return_type_of_an_async_function_must_either_be_a_valid_promise_or_must_not_contain_a_callable_then_member:pa(1058,1,"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:pa(1059,1,"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:pa(1060,1,"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:pa(1061,1,"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:pa(1062,1,"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:pa(1063,1,"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_Did_you_mean_to_write_Promise_0:pa(1064,1,"The_return_type_of_an_async_function_or_method_must_be_the_global_Promise_T_type_Did_you_mean_to_wri_1064","The return type of an async function or method must be the global Promise<T> type. Did you mean to write 'Promise<{0}>'?"),The_return_type_of_an_async_function_or_method_must_be_the_global_Promise_T_type:pa(1065,1,"The_return_type_of_an_async_function_or_method_must_be_the_global_Promise_T_type_1065","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:pa(1066,1,"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:pa(1068,1,"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:pa(1069,1,"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:pa(1070,1,"_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:pa(1071,1,"_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:pa(1079,1,"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:pa(1084,1,"Invalid_reference_directive_syntax_1084","Invalid 'reference' directive syntax."),_0_modifier_cannot_appear_on_a_constructor_declaration:pa(1089,1,"_0_modifier_cannot_appear_on_a_constructor_declaration_1089","'{0}' modifier cannot appear on a constructor declaration."),_0_modifier_cannot_appear_on_a_parameter:pa(1090,1,"_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:pa(1091,1,"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:pa(1092,1,"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:pa(1093,1,"Type_annotation_cannot_appear_on_a_constructor_declaration_1093","Type annotation cannot appear on a constructor declaration."),An_accessor_cannot_have_type_parameters:pa(1094,1,"An_accessor_cannot_have_type_parameters_1094","An accessor cannot have type parameters."),A_set_accessor_cannot_have_a_return_type_annotation:pa(1095,1,"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:pa(1096,1,"An_index_signature_must_have_exactly_one_parameter_1096","An index signature must have exactly one parameter."),_0_list_cannot_be_empty:pa(1097,1,"_0_list_cannot_be_empty_1097","'{0}' list cannot be empty."),Type_parameter_list_cannot_be_empty:pa(1098,1,"Type_parameter_list_cannot_be_empty_1098","Type parameter list cannot be empty."),Type_argument_list_cannot_be_empty:pa(1099,1,"Type_argument_list_cannot_be_empty_1099","Type argument list cannot be empty."),Invalid_use_of_0_in_strict_mode:pa(1100,1,"Invalid_use_of_0_in_strict_mode_1100","Invalid use of '{0}' in strict mode."),with_statements_are_not_allowed_in_strict_mode:pa(1101,1,"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:pa(1102,1,"delete_cannot_be_called_on_an_identifier_in_strict_mode_1102","'delete' cannot be called on an identifier in strict mode."),for_await_loops_are_only_allowed_within_async_functions_and_at_the_top_levels_of_modules:pa(1103,1,"for_await_loops_are_only_allowed_within_async_functions_and_at_the_top_levels_of_modules_1103","'for await' loops are only allowed within async functions and at the top levels of modules."),A_continue_statement_can_only_be_used_within_an_enclosing_iteration_statement:pa(1104,1,"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:pa(1105,1,"A_break_statement_can_only_be_used_within_an_enclosing_iteration_or_switch_statement_1105","A 'break' statement can only be used within an enclosing iteration or switch statement."),The_left_hand_side_of_a_for_of_statement_may_not_be_async:pa(1106,1,"The_left_hand_side_of_a_for_of_statement_may_not_be_async_1106","The left-hand side of a 'for...of' statement may not be 'async'."),Jump_target_cannot_cross_function_boundary:pa(1107,1,"Jump_target_cannot_cross_function_boundary_1107","Jump target cannot cross function boundary."),A_return_statement_can_only_be_used_within_a_function_body:pa(1108,1,"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:pa(1109,1,"Expression_expected_1109","Expression expected."),Type_expected:pa(1110,1,"Type_expected_1110","Type expected."),Private_field_0_must_be_declared_in_an_enclosing_class:pa(1111,1,"Private_field_0_must_be_declared_in_an_enclosing_class_1111","Private field '{0}' must be declared in an enclosing class."),A_default_clause_cannot_appear_more_than_once_in_a_switch_statement:pa(1113,1,"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:pa(1114,1,"Duplicate_label_0_1114","Duplicate label '{0}'."),A_continue_statement_can_only_jump_to_a_label_of_an_enclosing_iteration_statement:pa(1115,1,"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:pa(1116,1,"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:pa(1117,1,"An_object_literal_cannot_have_multiple_properties_with_the_same_name_1117","An object literal cannot have multiple properties with the same name."),An_object_literal_cannot_have_multiple_get_Slashset_accessors_with_the_same_name:pa(1118,1,"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:pa(1119,1,"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:pa(1120,1,"An_export_assignment_cannot_have_modifiers_1120","An export assignment cannot have modifiers."),Octal_literals_are_not_allowed_Use_the_syntax_0:pa(1121,1,"Octal_literals_are_not_allowed_Use_the_syntax_0_1121","Octal literals are not allowed. Use the syntax '{0}'."),Variable_declaration_list_cannot_be_empty:pa(1123,1,"Variable_declaration_list_cannot_be_empty_1123","Variable declaration list cannot be empty."),Digit_expected:pa(1124,1,"Digit_expected_1124","Digit expected."),Hexadecimal_digit_expected:pa(1125,1,"Hexadecimal_digit_expected_1125","Hexadecimal digit expected."),Unexpected_end_of_text:pa(1126,1,"Unexpected_end_of_text_1126","Unexpected end of text."),Invalid_character:pa(1127,1,"Invalid_character_1127","Invalid character."),Declaration_or_statement_expected:pa(1128,1,"Declaration_or_statement_expected_1128","Declaration or statement expected."),Statement_expected:pa(1129,1,"Statement_expected_1129","Statement expected."),case_or_default_expected:pa(1130,1,"case_or_default_expected_1130","'case' or 'default' expected."),Property_or_signature_expected:pa(1131,1,"Property_or_signature_expected_1131","Property or signature expected."),Enum_member_expected:pa(1132,1,"Enum_member_expected_1132","Enum member expected."),Variable_declaration_expected:pa(1134,1,"Variable_declaration_expected_1134","Variable declaration expected."),Argument_expression_expected:pa(1135,1,"Argument_expression_expected_1135","Argument expression expected."),Property_assignment_expected:pa(1136,1,"Property_assignment_expected_1136","Property assignment expected."),Expression_or_comma_expected:pa(1137,1,"Expression_or_comma_expected_1137","Expression or comma expected."),Parameter_declaration_expected:pa(1138,1,"Parameter_declaration_expected_1138","Parameter declaration expected."),Type_parameter_declaration_expected:pa(1139,1,"Type_parameter_declaration_expected_1139","Type parameter declaration expected."),Type_argument_expected:pa(1140,1,"Type_argument_expected_1140","Type argument expected."),String_literal_expected:pa(1141,1,"String_literal_expected_1141","String literal expected."),Line_break_not_permitted_here:pa(1142,1,"Line_break_not_permitted_here_1142","Line break not permitted here."),or_expected:pa(1144,1,"or_expected_1144","'{' or ';' expected."),or_JSX_element_expected:pa(1145,1,"or_JSX_element_expected_1145","'{' or JSX element expected."),Declaration_expected:pa(1146,1,"Declaration_expected_1146","Declaration expected."),Import_declarations_in_a_namespace_cannot_reference_a_module:pa(1147,1,"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:pa(1148,1,"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:pa(1149,1,"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."),_0_declarations_must_be_initialized:pa(1155,1,"_0_declarations_must_be_initialized_1155","'{0}' declarations must be initialized."),_0_declarations_can_only_be_declared_inside_a_block:pa(1156,1,"_0_declarations_can_only_be_declared_inside_a_block_1156","'{0}' declarations can only be declared inside a block."),Unterminated_template_literal:pa(1160,1,"Unterminated_template_literal_1160","Unterminated template literal."),Unterminated_regular_expression_literal:pa(1161,1,"Unterminated_regular_expression_literal_1161","Unterminated regular expression literal."),An_object_member_cannot_be_declared_optional:pa(1162,1,"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:pa(1163,1,"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:pa(1164,1,"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:pa(1165,1,"A_computed_property_name_in_an_ambient_context_must_refer_to_an_expression_whose_type_is_a_literal_t_1165","A computed property name in an ambient context must refer to an expression whose type is a literal type or a 'unique symbol' type."),A_computed_property_name_in_a_class_property_declaration_must_have_a_simple_literal_type_or_a_unique_symbol_type:pa(1166,1,"A_computed_property_name_in_a_class_property_declaration_must_have_a_simple_literal_type_or_a_unique_1166","A computed property name in a class property declaration must have a simple literal type or a 'unique symbol' type."),A_computed_property_name_in_a_method_overload_must_refer_to_an_expression_whose_type_is_a_literal_type_or_a_unique_symbol_type:pa(1168,1,"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:pa(1169,1,"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:pa(1170,1,"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:pa(1171,1,"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:pa(1172,1,"extends_clause_already_seen_1172","'extends' clause already seen."),extends_clause_must_precede_implements_clause:pa(1173,1,"extends_clause_must_precede_implements_clause_1173","'extends' clause must precede 'implements' clause."),Classes_can_only_extend_a_single_class:pa(1174,1,"Classes_can_only_extend_a_single_class_1174","Classes can only extend a single class."),implements_clause_already_seen:pa(1175,1,"implements_clause_already_seen_1175","'implements' clause already seen."),Interface_declaration_cannot_have_implements_clause:pa(1176,1,"Interface_declaration_cannot_have_implements_clause_1176","Interface declaration cannot have 'implements' clause."),Binary_digit_expected:pa(1177,1,"Binary_digit_expected_1177","Binary digit expected."),Octal_digit_expected:pa(1178,1,"Octal_digit_expected_1178","Octal digit expected."),Unexpected_token_expected:pa(1179,1,"Unexpected_token_expected_1179","Unexpected token. '{' expected."),Property_destructuring_pattern_expected:pa(1180,1,"Property_destructuring_pattern_expected_1180","Property destructuring pattern expected."),Array_element_destructuring_pattern_expected:pa(1181,1,"Array_element_destructuring_pattern_expected_1181","Array element destructuring pattern expected."),A_destructuring_declaration_must_have_an_initializer:pa(1182,1,"A_destructuring_declaration_must_have_an_initializer_1182","A destructuring declaration must have an initializer."),An_implementation_cannot_be_declared_in_ambient_contexts:pa(1183,1,"An_implementation_cannot_be_declared_in_ambient_contexts_1183","An implementation cannot be declared in ambient contexts."),Modifiers_cannot_appear_here:pa(1184,1,"Modifiers_cannot_appear_here_1184","Modifiers cannot appear here."),Merge_conflict_marker_encountered:pa(1185,1,"Merge_conflict_marker_encountered_1185","Merge conflict marker encountered."),A_rest_element_cannot_have_an_initializer:pa(1186,1,"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:pa(1187,1,"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:pa(1188,1,"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:pa(1189,1,"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:pa(1190,1,"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:pa(1191,1,"An_import_declaration_cannot_have_modifiers_1191","An import declaration cannot have modifiers."),Module_0_has_no_default_export:pa(1192,1,"Module_0_has_no_default_export_1192","Module '{0}' has no default export."),An_export_declaration_cannot_have_modifiers:pa(1193,1,"An_export_declaration_cannot_have_modifiers_1193","An export declaration cannot have modifiers."),Export_declarations_are_not_permitted_in_a_namespace:pa(1194,1,"Export_declarations_are_not_permitted_in_a_namespace_1194","Export declarations are not permitted in a namespace."),export_Asterisk_does_not_re_export_a_default:pa(1195,1,"export_Asterisk_does_not_re_export_a_default_1195","'export *' does not re-export a default."),Catch_clause_variable_type_annotation_must_be_any_or_unknown_if_specified:pa(1196,1,"Catch_clause_variable_type_annotation_must_be_any_or_unknown_if_specified_1196","Catch clause variable type annotation must be 'any' or 'unknown' if specified."),Catch_clause_variable_cannot_have_an_initializer:pa(1197,1,"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:pa(1198,1,"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:pa(1199,1,"Unterminated_Unicode_escape_sequence_1199","Unterminated Unicode escape sequence."),Line_terminator_not_permitted_before_arrow:pa(1200,1,"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:pa(1202,1,"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:pa(1203,1,"Export_assignment_cannot_be_used_when_targeting_ECMAScript_modules_Consider_using_export_default_or__1203","Export assignment cannot be used when targeting ECMAScript modules. Consider using 'export default' or another module format instead."),Re_exporting_a_type_when_0_is_enabled_requires_using_export_type:pa(1205,1,"Re_exporting_a_type_when_0_is_enabled_requires_using_export_type_1205","Re-exporting a type when '{0}' is enabled requires using 'export type'."),Decorators_are_not_valid_here:pa(1206,1,"Decorators_are_not_valid_here_1206","Decorators are not valid here."),Decorators_cannot_be_applied_to_multiple_get_Slashset_accessors_of_the_same_name:pa(1207,1,"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."),Invalid_optional_chain_from_new_expression_Did_you_mean_to_call_0:pa(1209,1,"Invalid_optional_chain_from_new_expression_Did_you_mean_to_call_0_1209","Invalid optional chain from new expression. Did you mean to call '{0}()'?"),Code_contained_in_a_class_is_evaluated_in_JavaScript_s_strict_mode_which_does_not_allow_this_use_of_0_For_more_information_see_https_Colon_Slash_Slashdeveloper_mozilla_org_Slashen_US_Slashdocs_SlashWeb_SlashJavaScript_SlashReference_SlashStrict_mode:pa(1210,1,"Code_contained_in_a_class_is_evaluated_in_JavaScript_s_strict_mode_which_does_not_allow_this_use_of__1210","Code contained in a class is evaluated in JavaScript's strict mode which does not allow this use of '{0}'. For more information, see https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Strict_mode."),A_class_declaration_without_the_default_modifier_must_have_a_name:pa(1211,1,"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:pa(1212,1,"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:pa(1213,1,"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:pa(1214,1,"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:pa(1215,1,"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:pa(1216,1,"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:pa(1218,1,"Export_assignment_is_not_supported_when_module_flag_is_system_1218","Export assignment is not supported when '--module' flag is 'system'."),Generators_are_not_allowed_in_an_ambient_context:pa(1221,1,"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:pa(1222,1,"An_overload_signature_cannot_be_declared_as_a_generator_1222","An overload signature cannot be declared as a generator."),_0_tag_already_specified:pa(1223,1,"_0_tag_already_specified_1223","'{0}' tag already specified."),Signature_0_must_be_a_type_predicate:pa(1224,1,"Signature_0_must_be_a_type_predicate_1224","Signature '{0}' must be a type predicate."),Cannot_find_parameter_0:pa(1225,1,"Cannot_find_parameter_0_1225","Cannot find parameter '{0}'."),Type_predicate_0_is_not_assignable_to_1:pa(1226,1,"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:pa(1227,1,"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:pa(1228,1,"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:pa(1229,1,"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:pa(1230,1,"A_type_predicate_cannot_reference_element_0_in_a_binding_pattern_1230","A type predicate cannot reference element '{0}' in a binding pattern."),An_export_assignment_must_be_at_the_top_level_of_a_file_or_module_declaration:pa(1231,1,"An_export_assignment_must_be_at_the_top_level_of_a_file_or_module_declaration_1231","An export assignment must be at the top level of a file or module declaration."),An_import_declaration_can_only_be_used_at_the_top_level_of_a_namespace_or_module:pa(1232,1,"An_import_declaration_can_only_be_used_at_the_top_level_of_a_namespace_or_module_1232","An import declaration can only be used at the top level of a namespace or module."),An_export_declaration_can_only_be_used_at_the_top_level_of_a_namespace_or_module:pa(1233,1,"An_export_declaration_can_only_be_used_at_the_top_level_of_a_namespace_or_module_1233","An export declaration can only be used at the top level of a namespace or module."),An_ambient_module_declaration_is_only_allowed_at_the_top_level_in_a_file:pa(1234,1,"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_at_the_top_level_of_a_namespace_or_module:pa(1235,1,"A_namespace_declaration_is_only_allowed_at_the_top_level_of_a_namespace_or_module_1235","A namespace declaration is only allowed at the top level of a namespace or module."),The_return_type_of_a_property_decorator_function_must_be_either_void_or_any:pa(1236,1,"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:pa(1237,1,"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:pa(1238,1,"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:pa(1239,1,"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:pa(1240,1,"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:pa(1241,1,"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:pa(1242,1,"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:pa(1243,1,"_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:pa(1244,1,"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:pa(1245,1,"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:pa(1246,1,"An_interface_property_cannot_have_an_initializer_1246","An interface property cannot have an initializer."),A_type_literal_property_cannot_have_an_initializer:pa(1247,1,"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:pa(1248,1,"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:pa(1249,1,"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_ES5:pa(1250,1,"Function_declarations_are_not_allowed_inside_blocks_in_strict_mode_when_targeting_ES5_1250","Function declarations are not allowed inside blocks in strict mode when targeting 'ES5'."),Function_declarations_are_not_allowed_inside_blocks_in_strict_mode_when_targeting_ES5_Class_definitions_are_automatically_in_strict_mode:pa(1251,1,"Function_declarations_are_not_allowed_inside_blocks_in_strict_mode_when_targeting_ES5_Class_definiti_1251","Function declarations are not allowed inside blocks in strict mode when targeting 'ES5'. Class definitions are automatically in strict mode."),Function_declarations_are_not_allowed_inside_blocks_in_strict_mode_when_targeting_ES5_Modules_are_automatically_in_strict_mode:pa(1252,1,"Function_declarations_are_not_allowed_inside_blocks_in_strict_mode_when_targeting_ES5_Modules_are_au_1252","Function declarations are not allowed inside blocks in strict mode when targeting 'ES5'. Modules are automatically in strict mode."),Abstract_properties_can_only_appear_within_an_abstract_class:pa(1253,1,"Abstract_properties_can_only_appear_within_an_abstract_class_1253","Abstract properties can only appear within an abstract class."),A_const_initializer_in_an_ambient_context_must_be_a_string_or_numeric_literal_or_literal_enum_reference:pa(1254,1,"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:pa(1255,1,"A_definite_assignment_assertion_is_not_permitted_in_this_context_1255","A definite assignment assertion '!' is not permitted in this context."),A_required_element_cannot_follow_an_optional_element:pa(1257,1,"A_required_element_cannot_follow_an_optional_element_1257","A required element cannot follow an optional element."),A_default_export_must_be_at_the_top_level_of_a_file_or_module_declaration:pa(1258,1,"A_default_export_must_be_at_the_top_level_of_a_file_or_module_declaration_1258","A default export must be at the top level of a file or module declaration."),Module_0_can_only_be_default_imported_using_the_1_flag:pa(1259,1,"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:pa(1260,1,"Keywords_cannot_contain_escape_characters_1260","Keywords cannot contain escape characters."),Already_included_file_name_0_differs_from_file_name_1_only_in_casing:pa(1261,1,"Already_included_file_name_0_differs_from_file_name_1_only_in_casing_1261","Already included file name '{0}' differs from file name '{1}' only in casing."),Identifier_expected_0_is_a_reserved_word_at_the_top_level_of_a_module:pa(1262,1,"Identifier_expected_0_is_a_reserved_word_at_the_top_level_of_a_module_1262","Identifier expected. '{0}' is a reserved word at the top-level of a module."),Declarations_with_initializers_cannot_also_have_definite_assignment_assertions:pa(1263,1,"Declarations_with_initializers_cannot_also_have_definite_assignment_assertions_1263","Declarations with initializers cannot also have definite assignment assertions."),Declarations_with_definite_assignment_assertions_must_also_have_type_annotations:pa(1264,1,"Declarations_with_definite_assignment_assertions_must_also_have_type_annotations_1264","Declarations with definite assignment assertions must also have type annotations."),A_rest_element_cannot_follow_another_rest_element:pa(1265,1,"A_rest_element_cannot_follow_another_rest_element_1265","A rest element cannot follow another rest element."),An_optional_element_cannot_follow_a_rest_element:pa(1266,1,"An_optional_element_cannot_follow_a_rest_element_1266","An optional element cannot follow a rest element."),Property_0_cannot_have_an_initializer_because_it_is_marked_abstract:pa(1267,1,"Property_0_cannot_have_an_initializer_because_it_is_marked_abstract_1267","Property '{0}' cannot have an initializer because it is marked abstract."),An_index_signature_parameter_type_must_be_string_number_symbol_or_a_template_literal_type:pa(1268,1,"An_index_signature_parameter_type_must_be_string_number_symbol_or_a_template_literal_type_1268","An index signature parameter type must be 'string', 'number', 'symbol', or a template literal type."),Cannot_use_export_import_on_a_type_or_type_only_namespace_when_0_is_enabled:pa(1269,1,"Cannot_use_export_import_on_a_type_or_type_only_namespace_when_0_is_enabled_1269","Cannot use 'export import' on a type or type-only namespace when '{0}' is enabled."),Decorator_function_return_type_0_is_not_assignable_to_type_1:pa(1270,1,"Decorator_function_return_type_0_is_not_assignable_to_type_1_1270","Decorator function return type '{0}' is not assignable to type '{1}'."),Decorator_function_return_type_is_0_but_is_expected_to_be_void_or_any:pa(1271,1,"Decorator_function_return_type_is_0_but_is_expected_to_be_void_or_any_1271","Decorator function return type is '{0}' but is expected to be 'void' or 'any'."),A_type_referenced_in_a_decorated_signature_must_be_imported_with_import_type_or_a_namespace_import_when_isolatedModules_and_emitDecoratorMetadata_are_enabled:pa(1272,1,"A_type_referenced_in_a_decorated_signature_must_be_imported_with_import_type_or_a_namespace_import_w_1272","A type referenced in a decorated signature must be imported with 'import type' or a namespace import when 'isolatedModules' and 'emitDecoratorMetadata' are enabled."),_0_modifier_cannot_appear_on_a_type_parameter:pa(1273,1,"_0_modifier_cannot_appear_on_a_type_parameter_1273","'{0}' modifier cannot appear on a type parameter"),_0_modifier_can_only_appear_on_a_type_parameter_of_a_class_interface_or_type_alias:pa(1274,1,"_0_modifier_can_only_appear_on_a_type_parameter_of_a_class_interface_or_type_alias_1274","'{0}' modifier can only appear on a type parameter of a class, interface or type alias"),accessor_modifier_can_only_appear_on_a_property_declaration:pa(1275,1,"accessor_modifier_can_only_appear_on_a_property_declaration_1275","'accessor' modifier can only appear on a property declaration."),An_accessor_property_cannot_be_declared_optional:pa(1276,1,"An_accessor_property_cannot_be_declared_optional_1276","An 'accessor' property cannot be declared optional."),_0_modifier_can_only_appear_on_a_type_parameter_of_a_function_method_or_class:pa(1277,1,"_0_modifier_can_only_appear_on_a_type_parameter_of_a_function_method_or_class_1277","'{0}' modifier can only appear on a type parameter of a function, method or class"),The_runtime_will_invoke_the_decorator_with_1_arguments_but_the_decorator_expects_0:pa(1278,1,"The_runtime_will_invoke_the_decorator_with_1_arguments_but_the_decorator_expects_0_1278","The runtime will invoke the decorator with {1} arguments, but the decorator expects {0}."),The_runtime_will_invoke_the_decorator_with_1_arguments_but_the_decorator_expects_at_least_0:pa(1279,1,"The_runtime_will_invoke_the_decorator_with_1_arguments_but_the_decorator_expects_at_least_0_1279","The runtime will invoke the decorator with {1} arguments, but the decorator expects at least {0}."),Namespaces_are_not_allowed_in_global_script_files_when_0_is_enabled_If_this_file_is_not_intended_to_be_a_global_script_set_moduleDetection_to_force_or_add_an_empty_export_statement:pa(1280,1,"Namespaces_are_not_allowed_in_global_script_files_when_0_is_enabled_If_this_file_is_not_intended_to__1280","Namespaces are not allowed in global script files when '{0}' is enabled. If this file is not intended to be a global script, set 'moduleDetection' to 'force' or add an empty 'export {}' statement."),Cannot_access_0_from_another_file_without_qualification_when_1_is_enabled_Use_2_instead:pa(1281,1,"Cannot_access_0_from_another_file_without_qualification_when_1_is_enabled_Use_2_instead_1281","Cannot access '{0}' from another file without qualification when '{1}' is enabled. Use '{2}' instead."),An_export_declaration_must_reference_a_value_when_verbatimModuleSyntax_is_enabled_but_0_only_refers_to_a_type:pa(1282,1,"An_export_declaration_must_reference_a_value_when_verbatimModuleSyntax_is_enabled_but_0_only_refers__1282","An 'export =' declaration must reference a value when 'verbatimModuleSyntax' is enabled, but '{0}' only refers to a type."),An_export_declaration_must_reference_a_real_value_when_verbatimModuleSyntax_is_enabled_but_0_resolves_to_a_type_only_declaration:pa(1283,1,"An_export_declaration_must_reference_a_real_value_when_verbatimModuleSyntax_is_enabled_but_0_resolve_1283","An 'export =' declaration must reference a real value when 'verbatimModuleSyntax' is enabled, but '{0}' resolves to a type-only declaration."),An_export_default_must_reference_a_value_when_verbatimModuleSyntax_is_enabled_but_0_only_refers_to_a_type:pa(1284,1,"An_export_default_must_reference_a_value_when_verbatimModuleSyntax_is_enabled_but_0_only_refers_to_a_1284","An 'export default' must reference a value when 'verbatimModuleSyntax' is enabled, but '{0}' only refers to a type."),An_export_default_must_reference_a_real_value_when_verbatimModuleSyntax_is_enabled_but_0_resolves_to_a_type_only_declaration:pa(1285,1,"An_export_default_must_reference_a_real_value_when_verbatimModuleSyntax_is_enabled_but_0_resolves_to_1285","An 'export default' must reference a real value when 'verbatimModuleSyntax' is enabled, but '{0}' resolves to a type-only declaration."),ECMAScript_imports_and_exports_cannot_be_written_in_a_CommonJS_file_under_verbatimModuleSyntax:pa(1286,1,"ECMAScript_imports_and_exports_cannot_be_written_in_a_CommonJS_file_under_verbatimModuleSyntax_1286","ECMAScript imports and exports cannot be written in a CommonJS file under 'verbatimModuleSyntax'."),A_top_level_export_modifier_cannot_be_used_on_value_declarations_in_a_CommonJS_module_when_verbatimModuleSyntax_is_enabled:pa(1287,1,"A_top_level_export_modifier_cannot_be_used_on_value_declarations_in_a_CommonJS_module_when_verbatimM_1287","A top-level 'export' modifier cannot be used on value declarations in a CommonJS module when 'verbatimModuleSyntax' is enabled."),An_import_alias_cannot_resolve_to_a_type_or_type_only_declaration_when_verbatimModuleSyntax_is_enabled:pa(1288,1,"An_import_alias_cannot_resolve_to_a_type_or_type_only_declaration_when_verbatimModuleSyntax_is_enabl_1288","An import alias cannot resolve to a type or type-only declaration when 'verbatimModuleSyntax' is enabled."),_0_resolves_to_a_type_only_declaration_and_must_be_marked_type_only_in_this_file_before_re_exporting_when_1_is_enabled_Consider_using_import_type_where_0_is_imported:pa(1289,1,"_0_resolves_to_a_type_only_declaration_and_must_be_marked_type_only_in_this_file_before_re_exporting_1289","'{0}' resolves to a type-only declaration and must be marked type-only in this file before re-exporting when '{1}' is enabled. Consider using 'import type' where '{0}' is imported."),_0_resolves_to_a_type_only_declaration_and_must_be_marked_type_only_in_this_file_before_re_exporting_when_1_is_enabled_Consider_using_export_type_0_as_default:pa(1290,1,"_0_resolves_to_a_type_only_declaration_and_must_be_marked_type_only_in_this_file_before_re_exporting_1290","'{0}' resolves to a type-only declaration and must be marked type-only in this file before re-exporting when '{1}' is enabled. Consider using 'export type { {0} as default }'."),_0_resolves_to_a_type_and_must_be_marked_type_only_in_this_file_before_re_exporting_when_1_is_enabled_Consider_using_import_type_where_0_is_imported:pa(1291,1,"_0_resolves_to_a_type_and_must_be_marked_type_only_in_this_file_before_re_exporting_when_1_is_enable_1291","'{0}' resolves to a type and must be marked type-only in this file before re-exporting when '{1}' is enabled. Consider using 'import type' where '{0}' is imported."),_0_resolves_to_a_type_and_must_be_marked_type_only_in_this_file_before_re_exporting_when_1_is_enabled_Consider_using_export_type_0_as_default:pa(1292,1,"_0_resolves_to_a_type_and_must_be_marked_type_only_in_this_file_before_re_exporting_when_1_is_enable_1292","'{0}' resolves to a type and must be marked type-only in this file before re-exporting when '{1}' is enabled. Consider using 'export type { {0} as default }'."),ECMAScript_module_syntax_is_not_allowed_in_a_CommonJS_module_when_module_is_set_to_preserve:pa(1293,1,"ECMAScript_module_syntax_is_not_allowed_in_a_CommonJS_module_when_module_is_set_to_preserve_1293","ECMAScript module syntax is not allowed in a CommonJS module when 'module' is set to 'preserve'."),This_syntax_is_not_allowed_when_erasableSyntaxOnly_is_enabled:pa(1294,1,"This_syntax_is_not_allowed_when_erasableSyntaxOnly_is_enabled_1294","This syntax is not allowed when 'erasableSyntaxOnly' is enabled."),ECMAScript_imports_and_exports_cannot_be_written_in_a_CommonJS_file_under_verbatimModuleSyntax_Adjust_the_type_field_in_the_nearest_package_json_to_make_this_file_an_ECMAScript_module_or_adjust_your_verbatimModuleSyntax_module_and_moduleResolution_settings_in_TypeScript:pa(1295,1,"ECMAScript_imports_and_exports_cannot_be_written_in_a_CommonJS_file_under_verbatimModuleSyntax_Adjus_1295","ECMAScript imports and exports cannot be written in a CommonJS file under 'verbatimModuleSyntax'. Adjust the 'type' field in the nearest 'package.json' to make this file an ECMAScript module, or adjust your 'verbatimModuleSyntax', 'module', and 'moduleResolution' settings in TypeScript."),with_statements_are_not_allowed_in_an_async_function_block:pa(1300,1,"with_statements_are_not_allowed_in_an_async_function_block_1300","'with' statements are not allowed in an async function block."),await_expressions_are_only_allowed_within_async_functions_and_at_the_top_levels_of_modules:pa(1308,1,"await_expressions_are_only_allowed_within_async_functions_and_at_the_top_levels_of_modules_1308","'await' expressions are only allowed within async functions and at the top levels of modules."),The_current_file_is_a_CommonJS_module_and_cannot_use_await_at_the_top_level:pa(1309,1,"The_current_file_is_a_CommonJS_module_and_cannot_use_await_at_the_top_level_1309","The current file is a CommonJS module and cannot use 'await' at the top level."),Did_you_mean_to_use_a_Colon_An_can_only_follow_a_property_name_when_the_containing_object_literal_is_part_of_a_destructuring_pattern:pa(1312,1,"Did_you_mean_to_use_a_Colon_An_can_only_follow_a_property_name_when_the_containing_object_literal_is_1312","Did you mean to use a ':'? An '=' can only follow a property name when the containing object literal is part of a destructuring pattern."),The_body_of_an_if_statement_cannot_be_the_empty_statement:pa(1313,1,"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:pa(1314,1,"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:pa(1315,1,"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:pa(1316,1,"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:pa(1317,1,"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:pa(1318,1,"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:pa(1319,1,"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:pa(1320,1,"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:pa(1321,1,"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:pa(1322,1,"Type_of_iterated_elements_of_a_yield_Asterisk_operand_must_either_be_a_valid_promise_or_must_not_con_1322","Type of iterated elements of a 'yield*' operand must either be a valid promise or must not contain a callable 'then' member."),Dynamic_imports_are_only_supported_when_the_module_flag_is_set_to_es2020_es2022_esnext_commonjs_amd_system_umd_node16_node18_node20_or_nodenext:pa(1323,1,"Dynamic_imports_are_only_supported_when_the_module_flag_is_set_to_es2020_es2022_esnext_commonjs_amd__1323","Dynamic imports are only supported when the '--module' flag is set to 'es2020', 'es2022', 'esnext', 'commonjs', 'amd', 'system', 'umd', 'node16', 'node18', 'node20', or 'nodenext'."),Dynamic_imports_only_support_a_second_argument_when_the_module_option_is_set_to_esnext_node16_node18_node20_nodenext_or_preserve:pa(1324,1,"Dynamic_imports_only_support_a_second_argument_when_the_module_option_is_set_to_esnext_node16_node18_1324","Dynamic imports only support a second argument when the '--module' option is set to 'esnext', 'node16', 'node18', 'node20', 'nodenext', or 'preserve'."),Argument_of_dynamic_import_cannot_be_spread_element:pa(1325,1,"Argument_of_dynamic_import_cannot_be_spread_element_1325","Argument of dynamic import cannot be spread element."),This_use_of_import_is_invalid_import_calls_can_be_written_but_they_must_have_parentheses_and_cannot_have_type_arguments:pa(1326,1,"This_use_of_import_is_invalid_import_calls_can_be_written_but_they_must_have_parentheses_and_cannot__1326","This use of 'import' is invalid. 'import()' calls can be written, but they must have parentheses and cannot have type arguments."),String_literal_with_double_quotes_expected:pa(1327,1,"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:pa(1328,1,"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:pa(1329,1,"_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:pa(1330,1,"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:pa(1331,1,"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:pa(1332,1,"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:pa(1333,1,"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:pa(1334,1,"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:pa(1335,1,"unique_symbol_types_are_not_allowed_here_1335","'unique symbol' types are not allowed here."),An_index_signature_parameter_type_cannot_be_a_literal_type_or_generic_type_Consider_using_a_mapped_object_type_instead:pa(1337,1,"An_index_signature_parameter_type_cannot_be_a_literal_type_or_generic_type_Consider_using_a_mapped_o_1337","An index signature parameter type cannot be a literal type or generic type. Consider using a mapped object type instead."),infer_declarations_are_only_permitted_in_the_extends_clause_of_a_conditional_type:pa(1338,1,"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:pa(1339,1,"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:pa(1340,1,"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}')'?"),Class_constructor_may_not_be_an_accessor:pa(1341,1,"Class_constructor_may_not_be_an_accessor_1341","Class constructor may not be an accessor."),The_import_meta_meta_property_is_only_allowed_when_the_module_option_is_es2020_es2022_esnext_system_node16_node18_node20_or_nodenext:pa(1343,1,"The_import_meta_meta_property_is_only_allowed_when_the_module_option_is_es2020_es2022_esnext_system__1343","The 'import.meta' meta-property is only allowed when the '--module' option is 'es2020', 'es2022', 'esnext', 'system', 'node16', 'node18', 'node20', or 'nodenext'."),A_label_is_not_allowed_here:pa(1344,1,"A_label_is_not_allowed_here_1344","'A label is not allowed here."),An_expression_of_type_void_cannot_be_tested_for_truthiness:pa(1345,1,"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:pa(1346,1,"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:pa(1347,1,"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:pa(1348,1,"Non_simple_parameter_declared_here_1348","Non-simple parameter declared here."),use_strict_directive_used_here:pa(1349,1,"use_strict_directive_used_here_1349","'use strict' directive used here."),Print_the_final_configuration_instead_of_building:pa(1350,3,"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:pa(1351,1,"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:pa(1352,1,"A_bigint_literal_cannot_use_exponential_notation_1352","A bigint literal cannot use exponential notation."),A_bigint_literal_must_be_an_integer:pa(1353,1,"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:pa(1354,1,"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:pa(1355,1,"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:pa(1356,1,"Did_you_mean_to_mark_this_function_as_async_1356","Did you mean to mark this function as 'async'?"),An_enum_member_name_must_be_followed_by_a_or:pa(1357,1,"An_enum_member_name_must_be_followed_by_a_or_1357","An enum member name must be followed by a ',', '=', or '}'."),Tagged_template_expressions_are_not_permitted_in_an_optional_chain:pa(1358,1,"Tagged_template_expressions_are_not_permitted_in_an_optional_chain_1358","Tagged template expressions are not permitted in an optional chain."),Identifier_expected_0_is_a_reserved_word_that_cannot_be_used_here:pa(1359,1,"Identifier_expected_0_is_a_reserved_word_that_cannot_be_used_here_1359","Identifier expected. '{0}' is a reserved word that cannot be used here."),Type_0_does_not_satisfy_the_expected_type_1:pa(1360,1,"Type_0_does_not_satisfy_the_expected_type_1_1360","Type '{0}' does not satisfy the expected type '{1}'."),_0_cannot_be_used_as_a_value_because_it_was_imported_using_import_type:pa(1361,1,"_0_cannot_be_used_as_a_value_because_it_was_imported_using_import_type_1361","'{0}' cannot be used as a value because it was imported using 'import type'."),_0_cannot_be_used_as_a_value_because_it_was_exported_using_export_type:pa(1362,1,"_0_cannot_be_used_as_a_value_because_it_was_exported_using_export_type_1362","'{0}' cannot be used as a value because it was exported using 'export type'."),A_type_only_import_can_specify_a_default_import_or_named_bindings_but_not_both:pa(1363,1,"A_type_only_import_can_specify_a_default_import_or_named_bindings_but_not_both_1363","A type-only import can specify a default import or named bindings, but not both."),Convert_to_type_only_export:pa(1364,3,"Convert_to_type_only_export_1364","Convert to type-only export"),Convert_all_re_exported_types_to_type_only_exports:pa(1365,3,"Convert_all_re_exported_types_to_type_only_exports_1365","Convert all re-exported types to type-only exports"),Split_into_two_separate_import_declarations:pa(1366,3,"Split_into_two_separate_import_declarations_1366","Split into two separate import declarations"),Split_all_invalid_type_only_imports:pa(1367,3,"Split_all_invalid_type_only_imports_1367","Split all invalid type-only imports"),Class_constructor_may_not_be_a_generator:pa(1368,1,"Class_constructor_may_not_be_a_generator_1368","Class constructor may not be a generator."),Did_you_mean_0:pa(1369,3,"Did_you_mean_0_1369","Did you mean '{0}'?"),await_expressions_are_only_allowed_at_the_top_level_of_a_file_when_that_file_is_a_module_but_this_file_has_no_imports_or_exports_Consider_adding_an_empty_export_to_make_this_file_a_module:pa(1375,1,"await_expressions_are_only_allowed_at_the_top_level_of_a_file_when_that_file_is_a_module_but_this_fi_1375","'await' expressions are only allowed at the top level of a file when that file is a module, but this file has no imports or exports. Consider adding an empty 'export {}' to make this file a module."),_0_was_imported_here:pa(1376,3,"_0_was_imported_here_1376","'{0}' was imported here."),_0_was_exported_here:pa(1377,3,"_0_was_exported_here_1377","'{0}' was exported here."),Top_level_await_expressions_are_only_allowed_when_the_module_option_is_set_to_es2022_esnext_system_node16_node18_node20_nodenext_or_preserve_and_the_target_option_is_set_to_es2017_or_higher:pa(1378,1,"Top_level_await_expressions_are_only_allowed_when_the_module_option_is_set_to_es2022_esnext_system_n_1378","Top-level 'await' expressions are only allowed when the 'module' option is set to 'es2022', 'esnext', 'system', 'node16', 'node18', 'node20', 'nodenext', or 'preserve', and the 'target' option is set to 'es2017' or higher."),An_import_alias_cannot_reference_a_declaration_that_was_exported_using_export_type:pa(1379,1,"An_import_alias_cannot_reference_a_declaration_that_was_exported_using_export_type_1379","An import alias cannot reference a declaration that was exported using 'export type'."),An_import_alias_cannot_reference_a_declaration_that_was_imported_using_import_type:pa(1380,1,"An_import_alias_cannot_reference_a_declaration_that_was_imported_using_import_type_1380","An import alias cannot reference a declaration that was imported using 'import type'."),Unexpected_token_Did_you_mean_or_rbrace:pa(1381,1,"Unexpected_token_Did_you_mean_or_rbrace_1381","Unexpected token. Did you mean `{'}'}` or `}`?"),Unexpected_token_Did_you_mean_or_gt:pa(1382,1,"Unexpected_token_Did_you_mean_or_gt_1382","Unexpected token. Did you mean `{'>'}` or `>`?"),Function_type_notation_must_be_parenthesized_when_used_in_a_union_type:pa(1385,1,"Function_type_notation_must_be_parenthesized_when_used_in_a_union_type_1385","Function type notation must be parenthesized when used in a union type."),Constructor_type_notation_must_be_parenthesized_when_used_in_a_union_type:pa(1386,1,"Constructor_type_notation_must_be_parenthesized_when_used_in_a_union_type_1386","Constructor type notation must be parenthesized when used in a union type."),Function_type_notation_must_be_parenthesized_when_used_in_an_intersection_type:pa(1387,1,"Function_type_notation_must_be_parenthesized_when_used_in_an_intersection_type_1387","Function type notation must be parenthesized when used in an intersection type."),Constructor_type_notation_must_be_parenthesized_when_used_in_an_intersection_type:pa(1388,1,"Constructor_type_notation_must_be_parenthesized_when_used_in_an_intersection_type_1388","Constructor type notation must be parenthesized when used in an intersection type."),_0_is_not_allowed_as_a_variable_declaration_name:pa(1389,1,"_0_is_not_allowed_as_a_variable_declaration_name_1389","'{0}' is not allowed as a variable declaration name."),_0_is_not_allowed_as_a_parameter_name:pa(1390,1,"_0_is_not_allowed_as_a_parameter_name_1390","'{0}' is not allowed as a parameter name."),An_import_alias_cannot_use_import_type:pa(1392,1,"An_import_alias_cannot_use_import_type_1392","An import alias cannot use 'import type'"),Imported_via_0_from_file_1:pa(1393,3,"Imported_via_0_from_file_1_1393","Imported via {0} from file '{1}'"),Imported_via_0_from_file_1_with_packageId_2:pa(1394,3,"Imported_via_0_from_file_1_with_packageId_2_1394","Imported via {0} from file '{1}' with packageId '{2}'"),Imported_via_0_from_file_1_to_import_importHelpers_as_specified_in_compilerOptions:pa(1395,3,"Imported_via_0_from_file_1_to_import_importHelpers_as_specified_in_compilerOptions_1395","Imported via {0} from file '{1}' to import 'importHelpers' as specified in compilerOptions"),Imported_via_0_from_file_1_with_packageId_2_to_import_importHelpers_as_specified_in_compilerOptions:pa(1396,3,"Imported_via_0_from_file_1_with_packageId_2_to_import_importHelpers_as_specified_in_compilerOptions_1396","Imported via {0} from file '{1}' with packageId '{2}' to import 'importHelpers' as specified in compilerOptions"),Imported_via_0_from_file_1_to_import_jsx_and_jsxs_factory_functions:pa(1397,3,"Imported_via_0_from_file_1_to_import_jsx_and_jsxs_factory_functions_1397","Imported via {0} from file '{1}' to import 'jsx' and 'jsxs' factory functions"),Imported_via_0_from_file_1_with_packageId_2_to_import_jsx_and_jsxs_factory_functions:pa(1398,3,"Imported_via_0_from_file_1_with_packageId_2_to_import_jsx_and_jsxs_factory_functions_1398","Imported via {0} from file '{1}' with packageId '{2}' to import 'jsx' and 'jsxs' factory functions"),File_is_included_via_import_here:pa(1399,3,"File_is_included_via_import_here_1399","File is included via import here."),Referenced_via_0_from_file_1:pa(1400,3,"Referenced_via_0_from_file_1_1400","Referenced via '{0}' from file '{1}'"),File_is_included_via_reference_here:pa(1401,3,"File_is_included_via_reference_here_1401","File is included via reference here."),Type_library_referenced_via_0_from_file_1:pa(1402,3,"Type_library_referenced_via_0_from_file_1_1402","Type library referenced via '{0}' from file '{1}'"),Type_library_referenced_via_0_from_file_1_with_packageId_2:pa(1403,3,"Type_library_referenced_via_0_from_file_1_with_packageId_2_1403","Type library referenced via '{0}' from file '{1}' with packageId '{2}'"),File_is_included_via_type_library_reference_here:pa(1404,3,"File_is_included_via_type_library_reference_here_1404","File is included via type library reference here."),Library_referenced_via_0_from_file_1:pa(1405,3,"Library_referenced_via_0_from_file_1_1405","Library referenced via '{0}' from file '{1}'"),File_is_included_via_library_reference_here:pa(1406,3,"File_is_included_via_library_reference_here_1406","File is included via library reference here."),Matched_by_include_pattern_0_in_1:pa(1407,3,"Matched_by_include_pattern_0_in_1_1407","Matched by include pattern '{0}' in '{1}'"),File_is_matched_by_include_pattern_specified_here:pa(1408,3,"File_is_matched_by_include_pattern_specified_here_1408","File is matched by include pattern specified here."),Part_of_files_list_in_tsconfig_json:pa(1409,3,"Part_of_files_list_in_tsconfig_json_1409","Part of 'files' list in tsconfig.json"),File_is_matched_by_files_list_specified_here:pa(1410,3,"File_is_matched_by_files_list_specified_here_1410","File is matched by 'files' list specified here."),Output_from_referenced_project_0_included_because_1_specified:pa(1411,3,"Output_from_referenced_project_0_included_because_1_specified_1411","Output from referenced project '{0}' included because '{1}' specified"),Output_from_referenced_project_0_included_because_module_is_specified_as_none:pa(1412,3,"Output_from_referenced_project_0_included_because_module_is_specified_as_none_1412","Output from referenced project '{0}' included because '--module' is specified as 'none'"),File_is_output_from_referenced_project_specified_here:pa(1413,3,"File_is_output_from_referenced_project_specified_here_1413","File is output from referenced project specified here."),Source_from_referenced_project_0_included_because_1_specified:pa(1414,3,"Source_from_referenced_project_0_included_because_1_specified_1414","Source from referenced project '{0}' included because '{1}' specified"),Source_from_referenced_project_0_included_because_module_is_specified_as_none:pa(1415,3,"Source_from_referenced_project_0_included_because_module_is_specified_as_none_1415","Source from referenced project '{0}' included because '--module' is specified as 'none'"),File_is_source_from_referenced_project_specified_here:pa(1416,3,"File_is_source_from_referenced_project_specified_here_1416","File is source from referenced project specified here."),Entry_point_of_type_library_0_specified_in_compilerOptions:pa(1417,3,"Entry_point_of_type_library_0_specified_in_compilerOptions_1417","Entry point of type library '{0}' specified in compilerOptions"),Entry_point_of_type_library_0_specified_in_compilerOptions_with_packageId_1:pa(1418,3,"Entry_point_of_type_library_0_specified_in_compilerOptions_with_packageId_1_1418","Entry point of type library '{0}' specified in compilerOptions with packageId '{1}'"),File_is_entry_point_of_type_library_specified_here:pa(1419,3,"File_is_entry_point_of_type_library_specified_here_1419","File is entry point of type library specified here."),Entry_point_for_implicit_type_library_0:pa(1420,3,"Entry_point_for_implicit_type_library_0_1420","Entry point for implicit type library '{0}'"),Entry_point_for_implicit_type_library_0_with_packageId_1:pa(1421,3,"Entry_point_for_implicit_type_library_0_with_packageId_1_1421","Entry point for implicit type library '{0}' with packageId '{1}'"),Library_0_specified_in_compilerOptions:pa(1422,3,"Library_0_specified_in_compilerOptions_1422","Library '{0}' specified in compilerOptions"),File_is_library_specified_here:pa(1423,3,"File_is_library_specified_here_1423","File is library specified here."),Default_library:pa(1424,3,"Default_library_1424","Default library"),Default_library_for_target_0:pa(1425,3,"Default_library_for_target_0_1425","Default library for target '{0}'"),File_is_default_library_for_target_specified_here:pa(1426,3,"File_is_default_library_for_target_specified_here_1426","File is default library for target specified here."),Root_file_specified_for_compilation:pa(1427,3,"Root_file_specified_for_compilation_1427","Root file specified for compilation"),File_is_output_of_project_reference_source_0:pa(1428,3,"File_is_output_of_project_reference_source_0_1428","File is output of project reference source '{0}'"),File_redirects_to_file_0:pa(1429,3,"File_redirects_to_file_0_1429","File redirects to file '{0}'"),The_file_is_in_the_program_because_Colon:pa(1430,3,"The_file_is_in_the_program_because_Colon_1430","The file is in the program because:"),for_await_loops_are_only_allowed_at_the_top_level_of_a_file_when_that_file_is_a_module_but_this_file_has_no_imports_or_exports_Consider_adding_an_empty_export_to_make_this_file_a_module:pa(1431,1,"for_await_loops_are_only_allowed_at_the_top_level_of_a_file_when_that_file_is_a_module_but_this_file_1431","'for await' loops are only allowed at the top level of a file when that file is a module, but this file has no imports or exports. Consider adding an empty 'export {}' to make this file a module."),Top_level_for_await_loops_are_only_allowed_when_the_module_option_is_set_to_es2022_esnext_system_node16_node18_node20_nodenext_or_preserve_and_the_target_option_is_set_to_es2017_or_higher:pa(1432,1,"Top_level_for_await_loops_are_only_allowed_when_the_module_option_is_set_to_es2022_esnext_system_nod_1432","Top-level 'for await' loops are only allowed when the 'module' option is set to 'es2022', 'esnext', 'system', 'node16', 'node18', 'node20', 'nodenext', or 'preserve', and the 'target' option is set to 'es2017' or higher."),Neither_decorators_nor_modifiers_may_be_applied_to_this_parameters:pa(1433,1,"Neither_decorators_nor_modifiers_may_be_applied_to_this_parameters_1433","Neither decorators nor modifiers may be applied to 'this' parameters."),Unexpected_keyword_or_identifier:pa(1434,1,"Unexpected_keyword_or_identifier_1434","Unexpected keyword or identifier."),Unknown_keyword_or_identifier_Did_you_mean_0:pa(1435,1,"Unknown_keyword_or_identifier_Did_you_mean_0_1435","Unknown keyword or identifier. Did you mean '{0}'?"),Decorators_must_precede_the_name_and_all_keywords_of_property_declarations:pa(1436,1,"Decorators_must_precede_the_name_and_all_keywords_of_property_declarations_1436","Decorators must precede the name and all keywords of property declarations."),Namespace_must_be_given_a_name:pa(1437,1,"Namespace_must_be_given_a_name_1437","Namespace must be given a name."),Interface_must_be_given_a_name:pa(1438,1,"Interface_must_be_given_a_name_1438","Interface must be given a name."),Type_alias_must_be_given_a_name:pa(1439,1,"Type_alias_must_be_given_a_name_1439","Type alias must be given a name."),Variable_declaration_not_allowed_at_this_location:pa(1440,1,"Variable_declaration_not_allowed_at_this_location_1440","Variable declaration not allowed at this location."),Cannot_start_a_function_call_in_a_type_annotation:pa(1441,1,"Cannot_start_a_function_call_in_a_type_annotation_1441","Cannot start a function call in a type annotation."),Expected_for_property_initializer:pa(1442,1,"Expected_for_property_initializer_1442","Expected '=' for property initializer."),Module_declaration_names_may_only_use_or_quoted_strings:pa(1443,1,"Module_declaration_names_may_only_use_or_quoted_strings_1443","Module declaration names may only use ' or \" quoted strings."),_0_resolves_to_a_type_only_declaration_and_must_be_re_exported_using_a_type_only_re_export_when_1_is_enabled:pa(1448,1,"_0_resolves_to_a_type_only_declaration_and_must_be_re_exported_using_a_type_only_re_export_when_1_is_1448","'{0}' resolves to a type-only declaration and must be re-exported using a type-only re-export when '{1}' is enabled."),Preserve_unused_imported_values_in_the_JavaScript_output_that_would_otherwise_be_removed:pa(1449,3,"Preserve_unused_imported_values_in_the_JavaScript_output_that_would_otherwise_be_removed_1449","Preserve unused imported values in the JavaScript output that would otherwise be removed."),Dynamic_imports_can_only_accept_a_module_specifier_and_an_optional_set_of_attributes_as_arguments:pa(1450,3,"Dynamic_imports_can_only_accept_a_module_specifier_and_an_optional_set_of_attributes_as_arguments_1450","Dynamic imports can only accept a module specifier and an optional set of attributes as arguments"),Private_identifiers_are_only_allowed_in_class_bodies_and_may_only_be_used_as_part_of_a_class_member_declaration_property_access_or_on_the_left_hand_side_of_an_in_expression:pa(1451,1,"Private_identifiers_are_only_allowed_in_class_bodies_and_may_only_be_used_as_part_of_a_class_member__1451","Private identifiers are only allowed in class bodies and may only be used as part of a class member declaration, property access, or on the left-hand-side of an 'in' expression"),resolution_mode_should_be_either_require_or_import:pa(1453,1,"resolution_mode_should_be_either_require_or_import_1453","`resolution-mode` should be either `require` or `import`."),resolution_mode_can_only_be_set_for_type_only_imports:pa(1454,1,"resolution_mode_can_only_be_set_for_type_only_imports_1454","`resolution-mode` can only be set for type-only imports."),resolution_mode_is_the_only_valid_key_for_type_import_assertions:pa(1455,1,"resolution_mode_is_the_only_valid_key_for_type_import_assertions_1455","`resolution-mode` is the only valid key for type import assertions."),Type_import_assertions_should_have_exactly_one_key_resolution_mode_with_value_import_or_require:pa(1456,1,"Type_import_assertions_should_have_exactly_one_key_resolution_mode_with_value_import_or_require_1456","Type import assertions should have exactly one key - `resolution-mode` - with value `import` or `require`."),Matched_by_default_include_pattern_Asterisk_Asterisk_Slash_Asterisk:pa(1457,3,"Matched_by_default_include_pattern_Asterisk_Asterisk_Slash_Asterisk_1457","Matched by default include pattern '**/*'"),File_is_ECMAScript_module_because_0_has_field_type_with_value_module:pa(1458,3,"File_is_ECMAScript_module_because_0_has_field_type_with_value_module_1458",'File is ECMAScript module because \'{0}\' has field "type" with value "module"'),File_is_CommonJS_module_because_0_has_field_type_whose_value_is_not_module:pa(1459,3,"File_is_CommonJS_module_because_0_has_field_type_whose_value_is_not_module_1459",'File is CommonJS module because \'{0}\' has field "type" whose value is not "module"'),File_is_CommonJS_module_because_0_does_not_have_field_type:pa(1460,3,"File_is_CommonJS_module_because_0_does_not_have_field_type_1460","File is CommonJS module because '{0}' does not have field \"type\""),File_is_CommonJS_module_because_package_json_was_not_found:pa(1461,3,"File_is_CommonJS_module_because_package_json_was_not_found_1461","File is CommonJS module because 'package.json' was not found"),resolution_mode_is_the_only_valid_key_for_type_import_attributes:pa(1463,1,"resolution_mode_is_the_only_valid_key_for_type_import_attributes_1463","'resolution-mode' is the only valid key for type import attributes."),Type_import_attributes_should_have_exactly_one_key_resolution_mode_with_value_import_or_require:pa(1464,1,"Type_import_attributes_should_have_exactly_one_key_resolution_mode_with_value_import_or_require_1464","Type import attributes should have exactly one key - 'resolution-mode' - with value 'import' or 'require'."),The_import_meta_meta_property_is_not_allowed_in_files_which_will_build_into_CommonJS_output:pa(1470,1,"The_import_meta_meta_property_is_not_allowed_in_files_which_will_build_into_CommonJS_output_1470","The 'import.meta' meta-property is not allowed in files which will build into CommonJS output."),Module_0_cannot_be_imported_using_this_construct_The_specifier_only_resolves_to_an_ES_module_which_cannot_be_imported_with_require_Use_an_ECMAScript_import_instead:pa(1471,1,"Module_0_cannot_be_imported_using_this_construct_The_specifier_only_resolves_to_an_ES_module_which_c_1471","Module '{0}' cannot be imported using this construct. The specifier only resolves to an ES module, which cannot be imported with 'require'. Use an ECMAScript import instead."),catch_or_finally_expected:pa(1472,1,"catch_or_finally_expected_1472","'catch' or 'finally' expected."),An_import_declaration_can_only_be_used_at_the_top_level_of_a_module:pa(1473,1,"An_import_declaration_can_only_be_used_at_the_top_level_of_a_module_1473","An import declaration can only be used at the top level of a module."),An_export_declaration_can_only_be_used_at_the_top_level_of_a_module:pa(1474,1,"An_export_declaration_can_only_be_used_at_the_top_level_of_a_module_1474","An export declaration can only be used at the top level of a module."),Control_what_method_is_used_to_detect_module_format_JS_files:pa(1475,3,"Control_what_method_is_used_to_detect_module_format_JS_files_1475","Control what method is used to detect module-format JS files."),auto_Colon_Treat_files_with_imports_exports_import_meta_jsx_with_jsx_Colon_react_jsx_or_esm_format_with_module_Colon_node16_as_modules:pa(1476,3,"auto_Colon_Treat_files_with_imports_exports_import_meta_jsx_with_jsx_Colon_react_jsx_or_esm_format_w_1476",'"auto": Treat files with imports, exports, import.meta, jsx (with jsx: react-jsx), or esm format (with module: node16+) as modules.'),An_instantiation_expression_cannot_be_followed_by_a_property_access:pa(1477,1,"An_instantiation_expression_cannot_be_followed_by_a_property_access_1477","An instantiation expression cannot be followed by a property access."),Identifier_or_string_literal_expected:pa(1478,1,"Identifier_or_string_literal_expected_1478","Identifier or string literal expected."),The_current_file_is_a_CommonJS_module_whose_imports_will_produce_require_calls_however_the_referenced_file_is_an_ECMAScript_module_and_cannot_be_imported_with_require_Consider_writing_a_dynamic_import_0_call_instead:pa(1479,1,"The_current_file_is_a_CommonJS_module_whose_imports_will_produce_require_calls_however_the_reference_1479","The current file is a CommonJS module whose imports will produce 'require' calls; however, the referenced file is an ECMAScript module and cannot be imported with 'require'. Consider writing a dynamic 'import(\"{0}\")' call instead."),To_convert_this_file_to_an_ECMAScript_module_change_its_file_extension_to_0_or_create_a_local_package_json_file_with_type_Colon_module:pa(1480,3,"To_convert_this_file_to_an_ECMAScript_module_change_its_file_extension_to_0_or_create_a_local_packag_1480",'To convert this file to an ECMAScript module, change its file extension to \'{0}\' or create a local package.json file with `{ "type": "module" }`.'),To_convert_this_file_to_an_ECMAScript_module_change_its_file_extension_to_0_or_add_the_field_type_Colon_module_to_1:pa(1481,3,"To_convert_this_file_to_an_ECMAScript_module_change_its_file_extension_to_0_or_add_the_field_type_Co_1481","To convert this file to an ECMAScript module, change its file extension to '{0}', or add the field `\"type\": \"module\"` to '{1}'."),To_convert_this_file_to_an_ECMAScript_module_add_the_field_type_Colon_module_to_0:pa(1482,3,"To_convert_this_file_to_an_ECMAScript_module_add_the_field_type_Colon_module_to_0_1482",'To convert this file to an ECMAScript module, add the field `"type": "module"` to \'{0}\'.'),To_convert_this_file_to_an_ECMAScript_module_create_a_local_package_json_file_with_type_Colon_module:pa(1483,3,"To_convert_this_file_to_an_ECMAScript_module_create_a_local_package_json_file_with_type_Colon_module_1483",'To convert this file to an ECMAScript module, create a local package.json file with `{ "type": "module" }`.'),_0_is_a_type_and_must_be_imported_using_a_type_only_import_when_verbatimModuleSyntax_is_enabled:pa(1484,1,"_0_is_a_type_and_must_be_imported_using_a_type_only_import_when_verbatimModuleSyntax_is_enabled_1484","'{0}' is a type and must be imported using a type-only import when 'verbatimModuleSyntax' is enabled."),_0_resolves_to_a_type_only_declaration_and_must_be_imported_using_a_type_only_import_when_verbatimModuleSyntax_is_enabled:pa(1485,1,"_0_resolves_to_a_type_only_declaration_and_must_be_imported_using_a_type_only_import_when_verbatimMo_1485","'{0}' resolves to a type-only declaration and must be imported using a type-only import when 'verbatimModuleSyntax' is enabled."),Decorator_used_before_export_here:pa(1486,1,"Decorator_used_before_export_here_1486","Decorator used before 'export' here."),Octal_escape_sequences_are_not_allowed_Use_the_syntax_0:pa(1487,1,"Octal_escape_sequences_are_not_allowed_Use_the_syntax_0_1487","Octal escape sequences are not allowed. Use the syntax '{0}'."),Escape_sequence_0_is_not_allowed:pa(1488,1,"Escape_sequence_0_is_not_allowed_1488","Escape sequence '{0}' is not allowed."),Decimals_with_leading_zeros_are_not_allowed:pa(1489,1,"Decimals_with_leading_zeros_are_not_allowed_1489","Decimals with leading zeros are not allowed."),File_appears_to_be_binary:pa(1490,1,"File_appears_to_be_binary_1490","File appears to be binary."),_0_modifier_cannot_appear_on_a_using_declaration:pa(1491,1,"_0_modifier_cannot_appear_on_a_using_declaration_1491","'{0}' modifier cannot appear on a 'using' declaration."),_0_declarations_may_not_have_binding_patterns:pa(1492,1,"_0_declarations_may_not_have_binding_patterns_1492","'{0}' declarations may not have binding patterns."),The_left_hand_side_of_a_for_in_statement_cannot_be_a_using_declaration:pa(1493,1,"The_left_hand_side_of_a_for_in_statement_cannot_be_a_using_declaration_1493","The left-hand side of a 'for...in' statement cannot be a 'using' declaration."),The_left_hand_side_of_a_for_in_statement_cannot_be_an_await_using_declaration:pa(1494,1,"The_left_hand_side_of_a_for_in_statement_cannot_be_an_await_using_declaration_1494","The left-hand side of a 'for...in' statement cannot be an 'await using' declaration."),_0_modifier_cannot_appear_on_an_await_using_declaration:pa(1495,1,"_0_modifier_cannot_appear_on_an_await_using_declaration_1495","'{0}' modifier cannot appear on an 'await using' declaration."),Identifier_string_literal_or_number_literal_expected:pa(1496,1,"Identifier_string_literal_or_number_literal_expected_1496","Identifier, string literal, or number literal expected."),Expression_must_be_enclosed_in_parentheses_to_be_used_as_a_decorator:pa(1497,1,"Expression_must_be_enclosed_in_parentheses_to_be_used_as_a_decorator_1497","Expression must be enclosed in parentheses to be used as a decorator."),Invalid_syntax_in_decorator:pa(1498,1,"Invalid_syntax_in_decorator_1498","Invalid syntax in decorator."),Unknown_regular_expression_flag:pa(1499,1,"Unknown_regular_expression_flag_1499","Unknown regular expression flag."),Duplicate_regular_expression_flag:pa(1500,1,"Duplicate_regular_expression_flag_1500","Duplicate regular expression flag."),This_regular_expression_flag_is_only_available_when_targeting_0_or_later:pa(1501,1,"This_regular_expression_flag_is_only_available_when_targeting_0_or_later_1501","This regular expression flag is only available when targeting '{0}' or later."),The_Unicode_u_flag_and_the_Unicode_Sets_v_flag_cannot_be_set_simultaneously:pa(1502,1,"The_Unicode_u_flag_and_the_Unicode_Sets_v_flag_cannot_be_set_simultaneously_1502","The Unicode (u) flag and the Unicode Sets (v) flag cannot be set simultaneously."),Named_capturing_groups_are_only_available_when_targeting_ES2018_or_later:pa(1503,1,"Named_capturing_groups_are_only_available_when_targeting_ES2018_or_later_1503","Named capturing groups are only available when targeting 'ES2018' or later."),Subpattern_flags_must_be_present_when_there_is_a_minus_sign:pa(1504,1,"Subpattern_flags_must_be_present_when_there_is_a_minus_sign_1504","Subpattern flags must be present when there is a minus sign."),Incomplete_quantifier_Digit_expected:pa(1505,1,"Incomplete_quantifier_Digit_expected_1505","Incomplete quantifier. Digit expected."),Numbers_out_of_order_in_quantifier:pa(1506,1,"Numbers_out_of_order_in_quantifier_1506","Numbers out of order in quantifier."),There_is_nothing_available_for_repetition:pa(1507,1,"There_is_nothing_available_for_repetition_1507","There is nothing available for repetition."),Unexpected_0_Did_you_mean_to_escape_it_with_backslash:pa(1508,1,"Unexpected_0_Did_you_mean_to_escape_it_with_backslash_1508","Unexpected '{0}'. Did you mean to escape it with backslash?"),This_regular_expression_flag_cannot_be_toggled_within_a_subpattern:pa(1509,1,"This_regular_expression_flag_cannot_be_toggled_within_a_subpattern_1509","This regular expression flag cannot be toggled within a subpattern."),k_must_be_followed_by_a_capturing_group_name_enclosed_in_angle_brackets:pa(1510,1,"k_must_be_followed_by_a_capturing_group_name_enclosed_in_angle_brackets_1510","'\\k' must be followed by a capturing group name enclosed in angle brackets."),q_is_only_available_inside_character_class:pa(1511,1,"q_is_only_available_inside_character_class_1511","'\\q' is only available inside character class."),c_must_be_followed_by_an_ASCII_letter:pa(1512,1,"c_must_be_followed_by_an_ASCII_letter_1512","'\\c' must be followed by an ASCII letter."),Undetermined_character_escape:pa(1513,1,"Undetermined_character_escape_1513","Undetermined character escape."),Expected_a_capturing_group_name:pa(1514,1,"Expected_a_capturing_group_name_1514","Expected a capturing group name."),Named_capturing_groups_with_the_same_name_must_be_mutually_exclusive_to_each_other:pa(1515,1,"Named_capturing_groups_with_the_same_name_must_be_mutually_exclusive_to_each_other_1515","Named capturing groups with the same name must be mutually exclusive to each other."),A_character_class_range_must_not_be_bounded_by_another_character_class:pa(1516,1,"A_character_class_range_must_not_be_bounded_by_another_character_class_1516","A character class range must not be bounded by another character class."),Range_out_of_order_in_character_class:pa(1517,1,"Range_out_of_order_in_character_class_1517","Range out of order in character class."),Anything_that_would_possibly_match_more_than_a_single_character_is_invalid_inside_a_negated_character_class:pa(1518,1,"Anything_that_would_possibly_match_more_than_a_single_character_is_invalid_inside_a_negated_characte_1518","Anything that would possibly match more than a single character is invalid inside a negated character class."),Operators_must_not_be_mixed_within_a_character_class_Wrap_it_in_a_nested_class_instead:pa(1519,1,"Operators_must_not_be_mixed_within_a_character_class_Wrap_it_in_a_nested_class_instead_1519","Operators must not be mixed within a character class. Wrap it in a nested class instead."),Expected_a_class_set_operand:pa(1520,1,"Expected_a_class_set_operand_1520","Expected a class set operand."),q_must_be_followed_by_string_alternatives_enclosed_in_braces:pa(1521,1,"q_must_be_followed_by_string_alternatives_enclosed_in_braces_1521","'\\q' must be followed by string alternatives enclosed in braces."),A_character_class_must_not_contain_a_reserved_double_punctuator_Did_you_mean_to_escape_it_with_backslash:pa(1522,1,"A_character_class_must_not_contain_a_reserved_double_punctuator_Did_you_mean_to_escape_it_with_backs_1522","A character class must not contain a reserved double punctuator. Did you mean to escape it with backslash?"),Expected_a_Unicode_property_name:pa(1523,1,"Expected_a_Unicode_property_name_1523","Expected a Unicode property name."),Unknown_Unicode_property_name:pa(1524,1,"Unknown_Unicode_property_name_1524","Unknown Unicode property name."),Expected_a_Unicode_property_value:pa(1525,1,"Expected_a_Unicode_property_value_1525","Expected a Unicode property value."),Unknown_Unicode_property_value:pa(1526,1,"Unknown_Unicode_property_value_1526","Unknown Unicode property value."),Expected_a_Unicode_property_name_or_value:pa(1527,1,"Expected_a_Unicode_property_name_or_value_1527","Expected a Unicode property name or value."),Any_Unicode_property_that_would_possibly_match_more_than_a_single_character_is_only_available_when_the_Unicode_Sets_v_flag_is_set:pa(1528,1,"Any_Unicode_property_that_would_possibly_match_more_than_a_single_character_is_only_available_when_t_1528","Any Unicode property that would possibly match more than a single character is only available when the Unicode Sets (v) flag is set."),Unknown_Unicode_property_name_or_value:pa(1529,1,"Unknown_Unicode_property_name_or_value_1529","Unknown Unicode property name or value."),Unicode_property_value_expressions_are_only_available_when_the_Unicode_u_flag_or_the_Unicode_Sets_v_flag_is_set:pa(1530,1,"Unicode_property_value_expressions_are_only_available_when_the_Unicode_u_flag_or_the_Unicode_Sets_v__1530","Unicode property value expressions are only available when the Unicode (u) flag or the Unicode Sets (v) flag is set."),_0_must_be_followed_by_a_Unicode_property_value_expression_enclosed_in_braces:pa(1531,1,"_0_must_be_followed_by_a_Unicode_property_value_expression_enclosed_in_braces_1531","'\\{0}' must be followed by a Unicode property value expression enclosed in braces."),There_is_no_capturing_group_named_0_in_this_regular_expression:pa(1532,1,"There_is_no_capturing_group_named_0_in_this_regular_expression_1532","There is no capturing group named '{0}' in this regular expression."),This_backreference_refers_to_a_group_that_does_not_exist_There_are_only_0_capturing_groups_in_this_regular_expression:pa(1533,1,"This_backreference_refers_to_a_group_that_does_not_exist_There_are_only_0_capturing_groups_in_this_r_1533","This backreference refers to a group that does not exist. There are only {0} capturing groups in this regular expression."),This_backreference_refers_to_a_group_that_does_not_exist_There_are_no_capturing_groups_in_this_regular_expression:pa(1534,1,"This_backreference_refers_to_a_group_that_does_not_exist_There_are_no_capturing_groups_in_this_regul_1534","This backreference refers to a group that does not exist. There are no capturing groups in this regular expression."),This_character_cannot_be_escaped_in_a_regular_expression:pa(1535,1,"This_character_cannot_be_escaped_in_a_regular_expression_1535","This character cannot be escaped in a regular expression."),Octal_escape_sequences_and_backreferences_are_not_allowed_in_a_character_class_If_this_was_intended_as_an_escape_sequence_use_the_syntax_0_instead:pa(1536,1,"Octal_escape_sequences_and_backreferences_are_not_allowed_in_a_character_class_If_this_was_intended__1536","Octal escape sequences and backreferences are not allowed in a character class. If this was intended as an escape sequence, use the syntax '{0}' instead."),Decimal_escape_sequences_and_backreferences_are_not_allowed_in_a_character_class:pa(1537,1,"Decimal_escape_sequences_and_backreferences_are_not_allowed_in_a_character_class_1537","Decimal escape sequences and backreferences are not allowed in a character class."),Unicode_escape_sequences_are_only_available_when_the_Unicode_u_flag_or_the_Unicode_Sets_v_flag_is_set:pa(1538,1,"Unicode_escape_sequences_are_only_available_when_the_Unicode_u_flag_or_the_Unicode_Sets_v_flag_is_se_1538","Unicode escape sequences are only available when the Unicode (u) flag or the Unicode Sets (v) flag is set."),A_bigint_literal_cannot_be_used_as_a_property_name:pa(1539,1,"A_bigint_literal_cannot_be_used_as_a_property_name_1539","A 'bigint' literal cannot be used as a property name."),A_namespace_declaration_should_not_be_declared_using_the_module_keyword_Please_use_the_namespace_keyword_instead:pa(1540,2,"A_namespace_declaration_should_not_be_declared_using_the_module_keyword_Please_use_the_namespace_key_1540","A 'namespace' declaration should not be declared using the 'module' keyword. Please use the 'namespace' keyword instead.",void 0,void 0,!0),Type_only_import_of_an_ECMAScript_module_from_a_CommonJS_module_must_have_a_resolution_mode_attribute:pa(1541,1,"Type_only_import_of_an_ECMAScript_module_from_a_CommonJS_module_must_have_a_resolution_mode_attribut_1541","Type-only import of an ECMAScript module from a CommonJS module must have a 'resolution-mode' attribute."),Type_import_of_an_ECMAScript_module_from_a_CommonJS_module_must_have_a_resolution_mode_attribute:pa(1542,1,"Type_import_of_an_ECMAScript_module_from_a_CommonJS_module_must_have_a_resolution_mode_attribute_1542","Type import of an ECMAScript module from a CommonJS module must have a 'resolution-mode' attribute."),Importing_a_JSON_file_into_an_ECMAScript_module_requires_a_type_Colon_json_import_attribute_when_module_is_set_to_0:pa(1543,1,"Importing_a_JSON_file_into_an_ECMAScript_module_requires_a_type_Colon_json_import_attribute_when_mod_1543","Importing a JSON file into an ECMAScript module requires a 'type: \"json\"' import attribute when 'module' is set to '{0}'."),Named_imports_from_a_JSON_file_into_an_ECMAScript_module_are_not_allowed_when_module_is_set_to_0:pa(1544,1,"Named_imports_from_a_JSON_file_into_an_ECMAScript_module_are_not_allowed_when_module_is_set_to_0_1544","Named imports from a JSON file into an ECMAScript module are not allowed when 'module' is set to '{0}'."),using_declarations_are_not_allowed_in_ambient_contexts:pa(1545,1,"using_declarations_are_not_allowed_in_ambient_contexts_1545","'using' declarations are not allowed in ambient contexts."),await_using_declarations_are_not_allowed_in_ambient_contexts:pa(1546,1,"await_using_declarations_are_not_allowed_in_ambient_contexts_1546","'await using' declarations are not allowed in ambient contexts."),The_types_of_0_are_incompatible_between_these_types:pa(2200,1,"The_types_of_0_are_incompatible_between_these_types_2200","The types of '{0}' are incompatible between these types."),The_types_returned_by_0_are_incompatible_between_these_types:pa(2201,1,"The_types_returned_by_0_are_incompatible_between_these_types_2201","The types returned by '{0}' are incompatible between these types."),Call_signature_return_types_0_and_1_are_incompatible:pa(2202,1,"Call_signature_return_types_0_and_1_are_incompatible_2202","Call signature return types '{0}' and '{1}' are incompatible.",void 0,!0),Construct_signature_return_types_0_and_1_are_incompatible:pa(2203,1,"Construct_signature_return_types_0_and_1_are_incompatible_2203","Construct signature return types '{0}' and '{1}' are incompatible.",void 0,!0),Call_signatures_with_no_arguments_have_incompatible_return_types_0_and_1:pa(2204,1,"Call_signatures_with_no_arguments_have_incompatible_return_types_0_and_1_2204","Call signatures with no arguments have incompatible return types '{0}' and '{1}'.",void 0,!0),Construct_signatures_with_no_arguments_have_incompatible_return_types_0_and_1:pa(2205,1,"Construct_signatures_with_no_arguments_have_incompatible_return_types_0_and_1_2205","Construct signatures with no arguments have incompatible return types '{0}' and '{1}'.",void 0,!0),The_type_modifier_cannot_be_used_on_a_named_import_when_import_type_is_used_on_its_import_statement:pa(2206,1,"The_type_modifier_cannot_be_used_on_a_named_import_when_import_type_is_used_on_its_import_statement_2206","The 'type' modifier cannot be used on a named import when 'import type' is used on its import statement."),The_type_modifier_cannot_be_used_on_a_named_export_when_export_type_is_used_on_its_export_statement:pa(2207,1,"The_type_modifier_cannot_be_used_on_a_named_export_when_export_type_is_used_on_its_export_statement_2207","The 'type' modifier cannot be used on a named export when 'export type' is used on its export statement."),This_type_parameter_might_need_an_extends_0_constraint:pa(2208,1,"This_type_parameter_might_need_an_extends_0_constraint_2208","This type parameter might need an `extends {0}` constraint."),The_project_root_is_ambiguous_but_is_required_to_resolve_export_map_entry_0_in_file_1_Supply_the_rootDir_compiler_option_to_disambiguate:pa(2209,1,"The_project_root_is_ambiguous_but_is_required_to_resolve_export_map_entry_0_in_file_1_Supply_the_roo_2209","The project root is ambiguous, but is required to resolve export map entry '{0}' in file '{1}'. Supply the `rootDir` compiler option to disambiguate."),The_project_root_is_ambiguous_but_is_required_to_resolve_import_map_entry_0_in_file_1_Supply_the_rootDir_compiler_option_to_disambiguate:pa(2210,1,"The_project_root_is_ambiguous_but_is_required_to_resolve_import_map_entry_0_in_file_1_Supply_the_roo_2210","The project root is ambiguous, but is required to resolve import map entry '{0}' in file '{1}'. Supply the `rootDir` compiler option to disambiguate."),Add_extends_constraint:pa(2211,3,"Add_extends_constraint_2211","Add `extends` constraint."),Add_extends_constraint_to_all_type_parameters:pa(2212,3,"Add_extends_constraint_to_all_type_parameters_2212","Add `extends` constraint to all type parameters"),Duplicate_identifier_0:pa(2300,1,"Duplicate_identifier_0_2300","Duplicate identifier '{0}'."),Initializer_of_instance_member_variable_0_cannot_reference_identifier_1_declared_in_the_constructor:pa(2301,1,"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:pa(2302,1,"Static_members_cannot_reference_class_type_parameters_2302","Static members cannot reference class type parameters."),Circular_definition_of_import_alias_0:pa(2303,1,"Circular_definition_of_import_alias_0_2303","Circular definition of import alias '{0}'."),Cannot_find_name_0:pa(2304,1,"Cannot_find_name_0_2304","Cannot find name '{0}'."),Module_0_has_no_exported_member_1:pa(2305,1,"Module_0_has_no_exported_member_1_2305","Module '{0}' has no exported member '{1}'."),File_0_is_not_a_module:pa(2306,1,"File_0_is_not_a_module_2306","File '{0}' is not a module."),Cannot_find_module_0_or_its_corresponding_type_declarations:pa(2307,1,"Cannot_find_module_0_or_its_corresponding_type_declarations_2307","Cannot find module '{0}' or its corresponding type declarations."),Module_0_has_already_exported_a_member_named_1_Consider_explicitly_re_exporting_to_resolve_the_ambiguity:pa(2308,1,"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:pa(2309,1,"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:pa(2310,1,"Type_0_recursively_references_itself_as_a_base_type_2310","Type '{0}' recursively references itself as a base type."),Cannot_find_name_0_Did_you_mean_to_write_this_in_an_async_function:pa(2311,1,"Cannot_find_name_0_Did_you_mean_to_write_this_in_an_async_function_2311","Cannot find name '{0}'. Did you mean to write this in an async function?"),An_interface_can_only_extend_an_object_type_or_intersection_of_object_types_with_statically_known_members:pa(2312,1,"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:pa(2313,1,"Type_parameter_0_has_a_circular_constraint_2313","Type parameter '{0}' has a circular constraint."),Generic_type_0_requires_1_type_argument_s:pa(2314,1,"Generic_type_0_requires_1_type_argument_s_2314","Generic type '{0}' requires {1} type argument(s)."),Type_0_is_not_generic:pa(2315,1,"Type_0_is_not_generic_2315","Type '{0}' is not generic."),Global_type_0_must_be_a_class_or_interface_type:pa(2316,1,"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:pa(2317,1,"Global_type_0_must_have_1_type_parameter_s_2317","Global type '{0}' must have {1} type parameter(s)."),Cannot_find_global_type_0:pa(2318,1,"Cannot_find_global_type_0_2318","Cannot find global type '{0}'."),Named_property_0_of_types_1_and_2_are_not_identical:pa(2319,1,"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:pa(2320,1,"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:pa(2321,1,"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:pa(2322,1,"Type_0_is_not_assignable_to_type_1_2322","Type '{0}' is not assignable to type '{1}'."),Cannot_redeclare_exported_variable_0:pa(2323,1,"Cannot_redeclare_exported_variable_0_2323","Cannot redeclare exported variable '{0}'."),Property_0_is_missing_in_type_1:pa(2324,1,"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:pa(2325,1,"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:pa(2326,1,"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:pa(2327,1,"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:pa(2328,1,"Types_of_parameters_0_and_1_are_incompatible_2328","Types of parameters '{0}' and '{1}' are incompatible."),Index_signature_for_type_0_is_missing_in_type_1:pa(2329,1,"Index_signature_for_type_0_is_missing_in_type_1_2329","Index signature for type '{0}' is missing in type '{1}'."),_0_and_1_index_signatures_are_incompatible:pa(2330,1,"_0_and_1_index_signatures_are_incompatible_2330","'{0}' and '{1}' index signatures are incompatible."),this_cannot_be_referenced_in_a_module_or_namespace_body:pa(2331,1,"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:pa(2332,1,"this_cannot_be_referenced_in_current_location_2332","'this' cannot be referenced in current location."),this_cannot_be_referenced_in_a_static_property_initializer:pa(2334,1,"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:pa(2335,1,"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:pa(2336,1,"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:pa(2337,1,"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:pa(2338,1,"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:pa(2339,1,"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:pa(2340,1,"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:pa(2341,1,"Property_0_is_private_and_only_accessible_within_class_1_2341","Property '{0}' is private and only accessible within class '{1}'."),This_syntax_requires_an_imported_helper_named_1_which_does_not_exist_in_0_Consider_upgrading_your_version_of_0:pa(2343,1,"This_syntax_requires_an_imported_helper_named_1_which_does_not_exist_in_0_Consider_upgrading_your_ve_2343","This syntax requires an imported helper named '{1}' which does not exist in '{0}'. Consider upgrading your version of '{0}'."),Type_0_does_not_satisfy_the_constraint_1:pa(2344,1,"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:pa(2345,1,"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:pa(2346,1,"Call_target_does_not_contain_any_signatures_2346","Call target does not contain any signatures."),Untyped_function_calls_may_not_accept_type_arguments:pa(2347,1,"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:pa(2348,1,"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:pa(2349,1,"This_expression_is_not_callable_2349","This expression is not callable."),Only_a_void_function_can_be_called_with_the_new_keyword:pa(2350,1,"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:pa(2351,1,"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:pa(2352,1,"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:pa(2353,1,"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:pa(2354,1,"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_undefined_void_nor_any_must_return_a_value:pa(2355,1,"A_function_whose_declared_type_is_neither_undefined_void_nor_any_must_return_a_value_2355","A function whose declared type is neither 'undefined', 'void', nor 'any' must return a value."),An_arithmetic_operand_must_be_of_type_any_number_bigint_or_an_enum_type:pa(2356,1,"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:pa(2357,1,"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:pa(2358,1,"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_either_of_type_any_a_class_function_or_other_type_assignable_to_the_Function_interface_type_or_an_object_type_with_a_Symbol_hasInstance_method:pa(2359,1,"The_right_hand_side_of_an_instanceof_expression_must_be_either_of_type_any_a_class_function_or_other_2359","The right-hand side of an 'instanceof' expression must be either of type 'any', a class, function, or other type assignable to the 'Function' interface type, or an object type with a 'Symbol.hasInstance' method."),The_left_hand_side_of_an_arithmetic_operation_must_be_of_type_any_number_bigint_or_an_enum_type:pa(2362,1,"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:pa(2363,1,"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:pa(2364,1,"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:pa(2365,1,"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:pa(2366,1,"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_comparison_appears_to_be_unintentional_because_the_types_0_and_1_have_no_overlap:pa(2367,1,"This_comparison_appears_to_be_unintentional_because_the_types_0_and_1_have_no_overlap_2367","This comparison appears to be unintentional because the types '{0}' and '{1}' have no overlap."),Type_parameter_name_cannot_be_0:pa(2368,1,"Type_parameter_name_cannot_be_0_2368","Type parameter name cannot be '{0}'."),A_parameter_property_is_only_allowed_in_a_constructor_implementation:pa(2369,1,"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:pa(2370,1,"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:pa(2371,1,"A_parameter_initializer_is_only_allowed_in_a_function_or_constructor_implementation_2371","A parameter initializer is only allowed in a function or constructor implementation."),Parameter_0_cannot_reference_itself:pa(2372,1,"Parameter_0_cannot_reference_itself_2372","Parameter '{0}' cannot reference itself."),Parameter_0_cannot_reference_identifier_1_declared_after_it:pa(2373,1,"Parameter_0_cannot_reference_identifier_1_declared_after_it_2373","Parameter '{0}' cannot reference identifier '{1}' declared after it."),Duplicate_index_signature_for_type_0:pa(2374,1,"Duplicate_index_signature_for_type_0_2374","Duplicate index signature for type '{0}'."),Type_0_is_not_assignable_to_type_1_with_exactOptionalPropertyTypes_Colon_true_Consider_adding_undefined_to_the_types_of_the_target_s_properties:pa(2375,1,"Type_0_is_not_assignable_to_type_1_with_exactOptionalPropertyTypes_Colon_true_Consider_adding_undefi_2375","Type '{0}' is not assignable to type '{1}' with 'exactOptionalPropertyTypes: true'. Consider adding 'undefined' to the types of the target's properties."),A_super_call_must_be_the_first_statement_in_the_constructor_to_refer_to_super_or_this_when_a_derived_class_contains_initialized_properties_parameter_properties_or_private_identifiers:pa(2376,1,"A_super_call_must_be_the_first_statement_in_the_constructor_to_refer_to_super_or_this_when_a_derived_2376","A 'super' call must be the first statement in the constructor to refer to 'super' or 'this' when a derived class contains initialized properties, parameter properties, or private identifiers."),Constructors_for_derived_classes_must_contain_a_super_call:pa(2377,1,"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:pa(2378,1,"A_get_accessor_must_return_a_value_2378","A 'get' accessor must return a value."),Argument_of_type_0_is_not_assignable_to_parameter_of_type_1_with_exactOptionalPropertyTypes_Colon_true_Consider_adding_undefined_to_the_types_of_the_target_s_properties:pa(2379,1,"Argument_of_type_0_is_not_assignable_to_parameter_of_type_1_with_exactOptionalPropertyTypes_Colon_tr_2379","Argument of type '{0}' is not assignable to parameter of type '{1}' with 'exactOptionalPropertyTypes: true'. Consider adding 'undefined' to the types of the target's properties."),Overload_signatures_must_all_be_exported_or_non_exported:pa(2383,1,"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:pa(2384,1,"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:pa(2385,1,"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:pa(2386,1,"Overload_signatures_must_all_be_optional_or_required_2386","Overload signatures must all be optional or required."),Function_overload_must_be_static:pa(2387,1,"Function_overload_must_be_static_2387","Function overload must be static."),Function_overload_must_not_be_static:pa(2388,1,"Function_overload_must_not_be_static_2388","Function overload must not be static."),Function_implementation_name_must_be_0:pa(2389,1,"Function_implementation_name_must_be_0_2389","Function implementation name must be '{0}'."),Constructor_implementation_is_missing:pa(2390,1,"Constructor_implementation_is_missing_2390","Constructor implementation is missing."),Function_implementation_is_missing_or_not_immediately_following_the_declaration:pa(2391,1,"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:pa(2392,1,"Multiple_constructor_implementations_are_not_allowed_2392","Multiple constructor implementations are not allowed."),Duplicate_function_implementation:pa(2393,1,"Duplicate_function_implementation_2393","Duplicate function implementation."),This_overload_signature_is_not_compatible_with_its_implementation_signature:pa(2394,1,"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:pa(2395,1,"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:pa(2396,1,"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:pa(2397,1,"Declaration_name_conflicts_with_built_in_global_identifier_0_2397","Declaration name conflicts with built-in global identifier '{0}'."),constructor_cannot_be_used_as_a_parameter_property_name:pa(2398,1,"constructor_cannot_be_used_as_a_parameter_property_name_2398","'constructor' cannot be used as a parameter property name."),Duplicate_identifier_this_Compiler_uses_variable_declaration_this_to_capture_this_reference:pa(2399,1,"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:pa(2400,1,"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."),A_super_call_must_be_a_root_level_statement_within_a_constructor_of_a_derived_class_that_contains_initialized_properties_parameter_properties_or_private_identifiers:pa(2401,1,"A_super_call_must_be_a_root_level_statement_within_a_constructor_of_a_derived_class_that_contains_in_2401","A 'super' call must be a root-level statement within a constructor of a derived class that contains initialized properties, parameter properties, or private identifiers."),Expression_resolves_to_super_that_compiler_uses_to_capture_base_class_reference:pa(2402,1,"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:pa(2403,1,"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:pa(2404,1,"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:pa(2405,1,"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:pa(2406,1,"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:pa(2407,1,"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:pa(2408,1,"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:pa(2409,1,"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:pa(2410,1,"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'."),Type_0_is_not_assignable_to_type_1_with_exactOptionalPropertyTypes_Colon_true_Consider_adding_undefined_to_the_type_of_the_target:pa(2412,1,"Type_0_is_not_assignable_to_type_1_with_exactOptionalPropertyTypes_Colon_true_Consider_adding_undefi_2412","Type '{0}' is not assignable to type '{1}' with 'exactOptionalPropertyTypes: true'. Consider adding 'undefined' to the type of the target."),Property_0_of_type_1_is_not_assignable_to_2_index_type_3:pa(2411,1,"Property_0_of_type_1_is_not_assignable_to_2_index_type_3_2411","Property '{0}' of type '{1}' is not assignable to '{2}' index type '{3}'."),_0_index_type_1_is_not_assignable_to_2_index_type_3:pa(2413,1,"_0_index_type_1_is_not_assignable_to_2_index_type_3_2413","'{0}' index type '{1}' is not assignable to '{2}' index type '{3}'."),Class_name_cannot_be_0:pa(2414,1,"Class_name_cannot_be_0_2414","Class name cannot be '{0}'."),Class_0_incorrectly_extends_base_class_1:pa(2415,1,"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:pa(2416,1,"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:pa(2417,1,"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:pa(2418,1,"Type_of_computed_property_s_value_is_0_which_is_not_assignable_to_type_1_2418","Type of computed property's value is '{0}', which is not assignable to type '{1}'."),Types_of_construct_signatures_are_incompatible:pa(2419,1,"Types_of_construct_signatures_are_incompatible_2419","Types of construct signatures are incompatible."),Class_0_incorrectly_implements_interface_1:pa(2420,1,"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:pa(2422,1,"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:pa(2423,1,"Class_0_defines_instance_member_function_1_but_extended_class_2_defines_it_as_instance_member_access_2423","Class '{0}' defines instance member function '{1}', but extended class '{2}' defines it as instance member accessor."),Class_0_defines_instance_member_property_1_but_extended_class_2_defines_it_as_instance_member_function:pa(2425,1,"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:pa(2426,1,"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:pa(2427,1,"Interface_name_cannot_be_0_2427","Interface name cannot be '{0}'."),All_declarations_of_0_must_have_identical_type_parameters:pa(2428,1,"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:pa(2430,1,"Interface_0_incorrectly_extends_interface_1_2430","Interface '{0}' incorrectly extends interface '{1}'."),Enum_name_cannot_be_0:pa(2431,1,"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:pa(2432,1,"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:pa(2433,1,"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:pa(2434,1,"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:pa(2435,1,"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:pa(2436,1,"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:pa(2437,1,"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:pa(2438,1,"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:pa(2439,1,"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:pa(2440,1,"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:pa(2441,1,"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:pa(2442,1,"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:pa(2443,1,"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:pa(2444,1,"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:pa(2445,1,"Property_0_is_protected_and_only_accessible_within_class_1_and_its_subclasses_2445","Property '{0}' is protected and only accessible within class '{1}' and its subclasses."),Property_0_is_protected_and_only_accessible_through_an_instance_of_class_1_This_is_an_instance_of_class_2:pa(2446,1,"Property_0_is_protected_and_only_accessible_through_an_instance_of_class_1_This_is_an_instance_of_cl_2446","Property '{0}' is protected and only accessible through an instance of class '{1}'. This is an instance of class '{2}'."),The_0_operator_is_not_allowed_for_boolean_types_Consider_using_1_instead:pa(2447,1,"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:pa(2448,1,"Block_scoped_variable_0_used_before_its_declaration_2448","Block-scoped variable '{0}' used before its declaration."),Class_0_used_before_its_declaration:pa(2449,1,"Class_0_used_before_its_declaration_2449","Class '{0}' used before its declaration."),Enum_0_used_before_its_declaration:pa(2450,1,"Enum_0_used_before_its_declaration_2450","Enum '{0}' used before its declaration."),Cannot_redeclare_block_scoped_variable_0:pa(2451,1,"Cannot_redeclare_block_scoped_variable_0_2451","Cannot redeclare block-scoped variable '{0}'."),An_enum_member_cannot_have_a_numeric_name:pa(2452,1,"An_enum_member_cannot_have_a_numeric_name_2452","An enum member cannot have a numeric name."),Variable_0_is_used_before_being_assigned:pa(2454,1,"Variable_0_is_used_before_being_assigned_2454","Variable '{0}' is used before being assigned."),Type_alias_0_circularly_references_itself:pa(2456,1,"Type_alias_0_circularly_references_itself_2456","Type alias '{0}' circularly references itself."),Type_alias_name_cannot_be_0:pa(2457,1,"Type_alias_name_cannot_be_0_2457","Type alias name cannot be '{0}'."),An_AMD_module_cannot_have_multiple_name_assignments:pa(2458,1,"An_AMD_module_cannot_have_multiple_name_assignments_2458","An AMD module cannot have multiple name assignments."),Module_0_declares_1_locally_but_it_is_not_exported:pa(2459,1,"Module_0_declares_1_locally_but_it_is_not_exported_2459","Module '{0}' declares '{1}' locally, but it is not exported."),Module_0_declares_1_locally_but_it_is_exported_as_2:pa(2460,1,"Module_0_declares_1_locally_but_it_is_exported_as_2_2460","Module '{0}' declares '{1}' locally, but it is exported as '{2}'."),Type_0_is_not_an_array_type:pa(2461,1,"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:pa(2462,1,"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:pa(2463,1,"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:pa(2464,1,"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:pa(2465,1,"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:pa(2466,1,"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:pa(2467,1,"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:pa(2468,1,"Cannot_find_global_value_0_2468","Cannot find global value '{0}'."),The_0_operator_cannot_be_applied_to_type_symbol:pa(2469,1,"The_0_operator_cannot_be_applied_to_type_symbol_2469","The '{0}' operator cannot be applied to type 'symbol'."),Spread_operator_in_new_expressions_is_only_available_when_targeting_ECMAScript_5_and_higher:pa(2472,1,"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:pa(2473,1,"Enum_declarations_must_all_be_const_or_non_const_2473","Enum declarations must all be const or non-const."),const_enum_member_initializers_must_be_constant_expressions:pa(2474,1,"const_enum_member_initializers_must_be_constant_expressions_2474","const enum member initializers must be constant expressions."),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:pa(2475,1,"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:pa(2476,1,"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:pa(2477,1,"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:pa(2478,1,"const_enum_member_initializer_was_evaluated_to_disallowed_value_NaN_2478","'const' enum member initializer was evaluated to disallowed value 'NaN'."),let_is_not_allowed_to_be_used_as_a_name_in_let_or_const_declarations:pa(2480,1,"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:pa(2481,1,"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:pa(2483,1,"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:pa(2484,1,"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:pa(2487,1,"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:pa(2488,1,"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:pa(2489,1,"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:pa(2490,1,"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:pa(2491,1,"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:pa(2492,1,"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:pa(2493,1,"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:pa(2494,1,"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:pa(2495,1,"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_ES5_Consider_using_a_standard_function_expression:pa(2496,1,"The_arguments_object_cannot_be_referenced_in_an_arrow_function_in_ES5_Consider_using_a_standard_func_2496","The 'arguments' object cannot be referenced in an arrow function in 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:pa(2497,1,"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:pa(2498,1,"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:pa(2499,1,"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:pa(2500,1,"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:pa(2501,1,"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:pa(2502,1,"_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:pa(2503,1,"Cannot_find_namespace_0_2503","Cannot find namespace '{0}'."),Type_0_must_have_a_Symbol_asyncIterator_method_that_returns_an_async_iterator:pa(2504,1,"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:pa(2505,1,"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:pa(2506,1,"_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:pa(2507,1,"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:pa(2508,1,"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:pa(2509,1,"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:pa(2510,1,"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:pa(2511,1,"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:pa(2512,1,"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:pa(2513,1,"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."),A_tuple_type_cannot_be_indexed_with_a_negative_value:pa(2514,1,"A_tuple_type_cannot_be_indexed_with_a_negative_value_2514","A tuple type cannot be indexed with a negative value."),Non_abstract_class_0_does_not_implement_inherited_abstract_member_1_from_class_2:pa(2515,1,"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:pa(2516,1,"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:pa(2517,1,"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:pa(2518,1,"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:pa(2519,1,"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:pa(2520,1,"Duplicate_identifier_0_Compiler_uses_declaration_1_to_support_async_functions_2520","Duplicate identifier '{0}'. Compiler uses declaration '{1}' to support async functions."),The_arguments_object_cannot_be_referenced_in_an_async_function_or_method_in_ES5_Consider_using_a_standard_function_or_method:pa(2522,1,"The_arguments_object_cannot_be_referenced_in_an_async_function_or_method_in_ES5_Consider_using_a_sta_2522","The 'arguments' object cannot be referenced in an async function or method in ES5. Consider using a standard function or method."),yield_expressions_cannot_be_used_in_a_parameter_initializer:pa(2523,1,"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:pa(2524,1,"await_expressions_cannot_be_used_in_a_parameter_initializer_2524","'await' expressions cannot be used in a parameter initializer."),A_this_type_is_available_only_in_a_non_static_member_of_a_class_or_interface:pa(2526,1,"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:pa(2527,1,"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:pa(2528,1,"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:pa(2529,1,"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:pa(2530,1,"Property_0_is_incompatible_with_index_signature_2530","Property '{0}' is incompatible with index signature."),Object_is_possibly_null:pa(2531,1,"Object_is_possibly_null_2531","Object is possibly 'null'."),Object_is_possibly_undefined:pa(2532,1,"Object_is_possibly_undefined_2532","Object is possibly 'undefined'."),Object_is_possibly_null_or_undefined:pa(2533,1,"Object_is_possibly_null_or_undefined_2533","Object is possibly 'null' or 'undefined'."),A_function_returning_never_cannot_have_a_reachable_end_point:pa(2534,1,"A_function_returning_never_cannot_have_a_reachable_end_point_2534","A function returning 'never' cannot have a reachable end point."),Type_0_cannot_be_used_to_index_type_1:pa(2536,1,"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:pa(2537,1,"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:pa(2538,1,"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:pa(2539,1,"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:pa(2540,1,"Cannot_assign_to_0_because_it_is_a_read_only_property_2540","Cannot assign to '{0}' because it is a read-only property."),Index_signature_in_type_0_only_permits_reading:pa(2542,1,"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:pa(2543,1,"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:pa(2544,1,"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:pa(2545,1,"A_mixin_class_must_have_a_constructor_with_a_single_rest_parameter_of_type_any_2545","A mixin class must have a constructor with a single rest parameter of type 'any[]'."),The_type_returned_by_the_0_method_of_an_async_iterator_must_be_a_promise_for_a_type_with_a_value_property:pa(2547,1,"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:pa(2548,1,"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:pa(2549,1,"Type_0_is_not_an_array_type_or_a_string_type_or_does_not_have_a_Symbol_iterator_method_that_returns__2549","Type '{0}' is not an array type or a string type or does not have a '[Symbol.iterator]()' method that returns an iterator."),Property_0_does_not_exist_on_type_1_Do_you_need_to_change_your_target_library_Try_changing_the_lib_compiler_option_to_2_or_later:pa(2550,1,"Property_0_does_not_exist_on_type_1_Do_you_need_to_change_your_target_library_Try_changing_the_lib_c_2550","Property '{0}' does not exist on type '{1}'. Do you need to change your target library? Try changing the 'lib' compiler option to '{2}' or later."),Property_0_does_not_exist_on_type_1_Did_you_mean_2:pa(2551,1,"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:pa(2552,1,"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:pa(2553,1,"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:pa(2554,1,"Expected_0_arguments_but_got_1_2554","Expected {0} arguments, but got {1}."),Expected_at_least_0_arguments_but_got_1:pa(2555,1,"Expected_at_least_0_arguments_but_got_1_2555","Expected at least {0} arguments, but got {1}."),A_spread_argument_must_either_have_a_tuple_type_or_be_passed_to_a_rest_parameter:pa(2556,1,"A_spread_argument_must_either_have_a_tuple_type_or_be_passed_to_a_rest_parameter_2556","A spread argument must either have a tuple type or be passed to a rest parameter."),Expected_0_type_arguments_but_got_1:pa(2558,1,"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:pa(2559,1,"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:pa(2560,1,"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:pa(2561,1,"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:pa(2562,1,"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:pa(2563,1,"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:pa(2564,1,"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:pa(2565,1,"Property_0_is_used_before_being_assigned_2565","Property '{0}' is used before being assigned."),A_rest_element_cannot_have_a_property_name:pa(2566,1,"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:pa(2567,1,"Enum_declarations_can_only_merge_with_namespace_or_other_enum_declarations_2567","Enum declarations can only merge with namespace or other enum declarations."),Property_0_may_not_exist_on_type_1_Did_you_mean_2:pa(2568,1,"Property_0_may_not_exist_on_type_1_Did_you_mean_2_2568","Property '{0}' may not exist on type '{1}'. Did you mean '{2}'?"),Could_not_find_name_0_Did_you_mean_1:pa(2570,1,"Could_not_find_name_0_Did_you_mean_1_2570","Could not find name '{0}'. Did you mean '{1}'?"),Object_is_of_type_unknown:pa(2571,1,"Object_is_of_type_unknown_2571","Object is of type 'unknown'."),A_rest_element_type_must_be_an_array_type:pa(2574,1,"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:pa(2575,1,"No_overload_expects_0_arguments_but_overloads_do_exist_that_expect_either_1_or_2_arguments_2575","No overload expects {0} arguments, but overloads do exist that expect either {1} or {2} arguments."),Property_0_does_not_exist_on_type_1_Did_you_mean_to_access_the_static_member_2_instead:pa(2576,1,"Property_0_does_not_exist_on_type_1_Did_you_mean_to_access_the_static_member_2_instead_2576","Property '{0}' does not exist on type '{1}'. Did you mean to access the static member '{2}' instead?"),Return_type_annotation_circularly_references_itself:pa(2577,1,"Return_type_annotation_circularly_references_itself_2577","Return type annotation circularly references itself."),Unused_ts_expect_error_directive:pa(2578,1,"Unused_ts_expect_error_directive_2578","Unused '@ts-expect-error' directive."),Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_node_Try_npm_i_save_dev_types_Slashnode:pa(2580,1,"Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_node_Try_npm_i_save_dev_types_Slashno_2580","Cannot find name '{0}'. Do you need to install type definitions for node? Try `npm i --save-dev @types/node`."),Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_jQuery_Try_npm_i_save_dev_types_Slashjquery:pa(2581,1,"Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_jQuery_Try_npm_i_save_dev_types_Slash_2581","Cannot find name '{0}'. Do you need to install type definitions for jQuery? Try `npm i --save-dev @types/jquery`."),Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_a_test_runner_Try_npm_i_save_dev_types_Slashjest_or_npm_i_save_dev_types_Slashmocha:pa(2582,1,"Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_a_test_runner_Try_npm_i_save_dev_type_2582","Cannot find name '{0}'. Do you need to install type definitions for a test runner? Try `npm i --save-dev @types/jest` or `npm i --save-dev @types/mocha`."),Cannot_find_name_0_Do_you_need_to_change_your_target_library_Try_changing_the_lib_compiler_option_to_1_or_later:pa(2583,1,"Cannot_find_name_0_Do_you_need_to_change_your_target_library_Try_changing_the_lib_compiler_option_to_2583","Cannot find name '{0}'. Do you need to change your target library? Try changing the 'lib' compiler option to '{1}' or later."),Cannot_find_name_0_Do_you_need_to_change_your_target_library_Try_changing_the_lib_compiler_option_to_include_dom:pa(2584,1,"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:pa(2585,1,"_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."),Cannot_assign_to_0_because_it_is_a_constant:pa(2588,1,"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:pa(2589,1,"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:pa(2590,1,"Expression_produces_a_union_type_that_is_too_complex_to_represent_2590","Expression produces a union type that is too complex to represent."),Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_node_Try_npm_i_save_dev_types_Slashnode_and_then_add_node_to_the_types_field_in_your_tsconfig:pa(2591,1,"Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_node_Try_npm_i_save_dev_types_Slashno_2591","Cannot find name '{0}'. Do you need to install type definitions for node? Try `npm i --save-dev @types/node` and then add 'node' to the types field in your tsconfig."),Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_jQuery_Try_npm_i_save_dev_types_Slashjquery_and_then_add_jquery_to_the_types_field_in_your_tsconfig:pa(2592,1,"Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_jQuery_Try_npm_i_save_dev_types_Slash_2592","Cannot find name '{0}'. Do you need to install type definitions for jQuery? Try `npm i --save-dev @types/jquery` and then add 'jquery' to the types field in your tsconfig."),Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_a_test_runner_Try_npm_i_save_dev_types_Slashjest_or_npm_i_save_dev_types_Slashmocha_and_then_add_jest_or_mocha_to_the_types_field_in_your_tsconfig:pa(2593,1,"Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_a_test_runner_Try_npm_i_save_dev_type_2593","Cannot find name '{0}'. Do you need to install type definitions for a test runner? Try `npm i --save-dev @types/jest` or `npm i --save-dev @types/mocha` and then add 'jest' or 'mocha' to the types field in your tsconfig."),This_module_is_declared_with_export_and_can_only_be_used_with_a_default_import_when_using_the_0_flag:pa(2594,1,"This_module_is_declared_with_export_and_can_only_be_used_with_a_default_import_when_using_the_0_flag_2594","This module is declared with 'export =', and can only be used with a default import when using the '{0}' flag."),_0_can_only_be_imported_by_using_a_default_import:pa(2595,1,"_0_can_only_be_imported_by_using_a_default_import_2595","'{0}' can only be imported by using a default import."),_0_can_only_be_imported_by_turning_on_the_esModuleInterop_flag_and_using_a_default_import:pa(2596,1,"_0_can_only_be_imported_by_turning_on_the_esModuleInterop_flag_and_using_a_default_import_2596","'{0}' can only be imported by turning on the 'esModuleInterop' flag and using a default import."),_0_can_only_be_imported_by_using_a_require_call_or_by_using_a_default_import:pa(2597,1,"_0_can_only_be_imported_by_using_a_require_call_or_by_using_a_default_import_2597","'{0}' can only be imported by using a 'require' call or by using a default import."),_0_can_only_be_imported_by_using_a_require_call_or_by_turning_on_the_esModuleInterop_flag_and_using_a_default_import:pa(2598,1,"_0_can_only_be_imported_by_using_a_require_call_or_by_turning_on_the_esModuleInterop_flag_and_using__2598","'{0}' can only be imported by using a 'require' call or by turning on the 'esModuleInterop' flag and using a default import."),JSX_element_implicitly_has_type_any_because_the_global_type_JSX_Element_does_not_exist:pa(2602,1,"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:pa(2603,1,"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:pa(2604,1,"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."),Property_0_of_JSX_spread_attribute_is_not_assignable_to_target_property:pa(2606,1,"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:pa(2607,1,"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:pa(2608,1,"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:pa(2609,1,"JSX_spread_child_must_be_an_array_type_2609","JSX spread child must be an array type."),_0_is_defined_as_an_accessor_in_class_1_but_is_overridden_here_in_2_as_an_instance_property:pa(2610,1,"_0_is_defined_as_an_accessor_in_class_1_but_is_overridden_here_in_2_as_an_instance_property_2610","'{0}' is defined as an accessor in class '{1}', but is overridden here in '{2}' as an instance property."),_0_is_defined_as_a_property_in_class_1_but_is_overridden_here_in_2_as_an_accessor:pa(2611,1,"_0_is_defined_as_a_property_in_class_1_but_is_overridden_here_in_2_as_an_accessor_2611","'{0}' is defined as a property in class '{1}', but is overridden here in '{2}' as an accessor."),Property_0_will_overwrite_the_base_property_in_1_If_this_is_intentional_add_an_initializer_Otherwise_add_a_declare_modifier_or_remove_the_redundant_declaration:pa(2612,1,"Property_0_will_overwrite_the_base_property_in_1_If_this_is_intentional_add_an_initializer_Otherwise_2612","Property '{0}' will overwrite the base property in '{1}'. If this is intentional, add an initializer. Otherwise, add a 'declare' modifier or remove the redundant declaration."),Module_0_has_no_default_export_Did_you_mean_to_use_import_1_from_0_instead:pa(2613,1,"Module_0_has_no_default_export_Did_you_mean_to_use_import_1_from_0_instead_2613","Module '{0}' has no default export. Did you mean to use 'import { {1} } from {0}' instead?"),Module_0_has_no_exported_member_1_Did_you_mean_to_use_import_1_from_0_instead:pa(2614,1,"Module_0_has_no_exported_member_1_Did_you_mean_to_use_import_1_from_0_instead_2614","Module '{0}' has no exported member '{1}'. Did you mean to use 'import {1} from {0}' instead?"),Type_of_property_0_circularly_references_itself_in_mapped_type_1:pa(2615,1,"Type_of_property_0_circularly_references_itself_in_mapped_type_1_2615","Type of property '{0}' circularly references itself in mapped type '{1}'."),_0_can_only_be_imported_by_using_import_1_require_2_or_a_default_import:pa(2616,1,"_0_can_only_be_imported_by_using_import_1_require_2_or_a_default_import_2616","'{0}' can only be imported by using 'import {1} = require({2})' or a default import."),_0_can_only_be_imported_by_using_import_1_require_2_or_by_turning_on_the_esModuleInterop_flag_and_using_a_default_import:pa(2617,1,"_0_can_only_be_imported_by_using_import_1_require_2_or_by_turning_on_the_esModuleInterop_flag_and_us_2617","'{0}' can only be imported by using 'import {1} = require({2})' or by turning on the 'esModuleInterop' flag and using a default import."),Source_has_0_element_s_but_target_requires_1:pa(2618,1,"Source_has_0_element_s_but_target_requires_1_2618","Source has {0} element(s) but target requires {1}."),Source_has_0_element_s_but_target_allows_only_1:pa(2619,1,"Source_has_0_element_s_but_target_allows_only_1_2619","Source has {0} element(s) but target allows only {1}."),Target_requires_0_element_s_but_source_may_have_fewer:pa(2620,1,"Target_requires_0_element_s_but_source_may_have_fewer_2620","Target requires {0} element(s) but source may have fewer."),Target_allows_only_0_element_s_but_source_may_have_more:pa(2621,1,"Target_allows_only_0_element_s_but_source_may_have_more_2621","Target allows only {0} element(s) but source may have more."),Source_provides_no_match_for_required_element_at_position_0_in_target:pa(2623,1,"Source_provides_no_match_for_required_element_at_position_0_in_target_2623","Source provides no match for required element at position {0} in target."),Source_provides_no_match_for_variadic_element_at_position_0_in_target:pa(2624,1,"Source_provides_no_match_for_variadic_element_at_position_0_in_target_2624","Source provides no match for variadic element at position {0} in target."),Variadic_element_at_position_0_in_source_does_not_match_element_at_position_1_in_target:pa(2625,1,"Variadic_element_at_position_0_in_source_does_not_match_element_at_position_1_in_target_2625","Variadic element at position {0} in source does not match element at position {1} in target."),Type_at_position_0_in_source_is_not_compatible_with_type_at_position_1_in_target:pa(2626,1,"Type_at_position_0_in_source_is_not_compatible_with_type_at_position_1_in_target_2626","Type at position {0} in source is not compatible with type at position {1} in target."),Type_at_positions_0_through_1_in_source_is_not_compatible_with_type_at_position_2_in_target:pa(2627,1,"Type_at_positions_0_through_1_in_source_is_not_compatible_with_type_at_position_2_in_target_2627","Type at positions {0} through {1} in source is not compatible with type at position {2} in target."),Cannot_assign_to_0_because_it_is_an_enum:pa(2628,1,"Cannot_assign_to_0_because_it_is_an_enum_2628","Cannot assign to '{0}' because it is an enum."),Cannot_assign_to_0_because_it_is_a_class:pa(2629,1,"Cannot_assign_to_0_because_it_is_a_class_2629","Cannot assign to '{0}' because it is a class."),Cannot_assign_to_0_because_it_is_a_function:pa(2630,1,"Cannot_assign_to_0_because_it_is_a_function_2630","Cannot assign to '{0}' because it is a function."),Cannot_assign_to_0_because_it_is_a_namespace:pa(2631,1,"Cannot_assign_to_0_because_it_is_a_namespace_2631","Cannot assign to '{0}' because it is a namespace."),Cannot_assign_to_0_because_it_is_an_import:pa(2632,1,"Cannot_assign_to_0_because_it_is_an_import_2632","Cannot assign to '{0}' because it is an import."),JSX_property_access_expressions_cannot_include_JSX_namespace_names:pa(2633,1,"JSX_property_access_expressions_cannot_include_JSX_namespace_names_2633","JSX property access expressions cannot include JSX namespace names"),_0_index_signatures_are_incompatible:pa(2634,1,"_0_index_signatures_are_incompatible_2634","'{0}' index signatures are incompatible."),Type_0_has_no_signatures_for_which_the_type_argument_list_is_applicable:pa(2635,1,"Type_0_has_no_signatures_for_which_the_type_argument_list_is_applicable_2635","Type '{0}' has no signatures for which the type argument list is applicable."),Type_0_is_not_assignable_to_type_1_as_implied_by_variance_annotation:pa(2636,1,"Type_0_is_not_assignable_to_type_1_as_implied_by_variance_annotation_2636","Type '{0}' is not assignable to type '{1}' as implied by variance annotation."),Variance_annotations_are_only_supported_in_type_aliases_for_object_function_constructor_and_mapped_types:pa(2637,1,"Variance_annotations_are_only_supported_in_type_aliases_for_object_function_constructor_and_mapped_t_2637","Variance annotations are only supported in type aliases for object, function, constructor, and mapped types."),Type_0_may_represent_a_primitive_value_which_is_not_permitted_as_the_right_operand_of_the_in_operator:pa(2638,1,"Type_0_may_represent_a_primitive_value_which_is_not_permitted_as_the_right_operand_of_the_in_operato_2638","Type '{0}' may represent a primitive value, which is not permitted as the right operand of the 'in' operator."),React_components_cannot_include_JSX_namespace_names:pa(2639,1,"React_components_cannot_include_JSX_namespace_names_2639","React components cannot include JSX namespace names"),Cannot_augment_module_0_with_value_exports_because_it_resolves_to_a_non_module_entity:pa(2649,1,"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."),Non_abstract_class_expression_is_missing_implementations_for_the_following_members_of_0_Colon_1_and_2_more:pa(2650,1,"Non_abstract_class_expression_is_missing_implementations_for_the_following_members_of_0_Colon_1_and__2650","Non-abstract class expression is missing implementations for the following members of '{0}': {1} and {2} more."),A_member_initializer_in_a_enum_declaration_cannot_reference_members_declared_after_it_including_members_defined_in_other_enums:pa(2651,1,"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:pa(2652,1,"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:pa(2653,1,"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}'."),Non_abstract_class_0_is_missing_implementations_for_the_following_members_of_1_Colon_2:pa(2654,1,"Non_abstract_class_0_is_missing_implementations_for_the_following_members_of_1_Colon_2_2654","Non-abstract class '{0}' is missing implementations for the following members of '{1}': {2}."),Non_abstract_class_0_is_missing_implementations_for_the_following_members_of_1_Colon_2_and_3_more:pa(2655,1,"Non_abstract_class_0_is_missing_implementations_for_the_following_members_of_1_Colon_2_and_3_more_2655","Non-abstract class '{0}' is missing implementations for the following members of '{1}': {2} and {3} more."),Non_abstract_class_expression_is_missing_implementations_for_the_following_members_of_0_Colon_1:pa(2656,1,"Non_abstract_class_expression_is_missing_implementations_for_the_following_members_of_0_Colon_1_2656","Non-abstract class expression is missing implementations for the following members of '{0}': {1}."),JSX_expressions_must_have_one_parent_element:pa(2657,1,"JSX_expressions_must_have_one_parent_element_2657","JSX expressions must have one parent element."),Type_0_provides_no_match_for_the_signature_1:pa(2658,1,"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:pa(2659,1,"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:pa(2660,1,"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:pa(2661,1,"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:pa(2662,1,"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:pa(2663,1,"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:pa(2664,1,"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:pa(2665,1,"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:pa(2666,1,"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:pa(2667,1,"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:pa(2668,1,"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:pa(2669,1,"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:pa(2670,1,"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:pa(2671,1,"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:pa(2672,1,"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:pa(2673,1,"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:pa(2674,1,"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:pa(2675,1,"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:pa(2676,1,"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:pa(2677,1,"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:pa(2678,1,"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:pa(2679,1,"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:pa(2680,1,"A_0_parameter_must_be_the_first_parameter_2680","A '{0}' parameter must be the first parameter."),A_constructor_cannot_have_a_this_parameter:pa(2681,1,"A_constructor_cannot_have_a_this_parameter_2681","A constructor cannot have a 'this' parameter."),this_implicitly_has_type_any_because_it_does_not_have_a_type_annotation:pa(2683,1,"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:pa(2684,1,"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:pa(2685,1,"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:pa(2686,1,"_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:pa(2687,1,"All_declarations_of_0_must_have_identical_modifiers_2687","All declarations of '{0}' must have identical modifiers."),Cannot_find_type_definition_file_for_0:pa(2688,1,"Cannot_find_type_definition_file_for_0_2688","Cannot find type definition file for '{0}'."),Cannot_extend_an_interface_0_Did_you_mean_implements:pa(2689,1,"Cannot_extend_an_interface_0_Did_you_mean_implements_2689","Cannot extend an interface '{0}'. Did you mean 'implements'?"),_0_only_refers_to_a_type_but_is_being_used_as_a_value_here_Did_you_mean_to_use_1_in_0:pa(2690,1,"_0_only_refers_to_a_type_but_is_being_used_as_a_value_here_Did_you_mean_to_use_1_in_0_2690","'{0}' only refers to a type, but is being used as a value here. Did you mean to use '{1} in {0}'?"),_0_is_a_primitive_but_1_is_a_wrapper_object_Prefer_using_0_when_possible:pa(2692,1,"_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:pa(2693,1,"_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:pa(2694,1,"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:pa(2695,1,"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:pa(2696,1,"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:pa(2697,1,"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:pa(2698,1,"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:pa(2699,1,"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:pa(2700,1,"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:pa(2701,1,"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:pa(2702,1,"_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:pa(2703,1,"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:pa(2704,1,"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_requires_the_Promise_constructor_Make_sure_you_have_a_declaration_for_the_Promise_constructor_or_include_ES2015_in_your_lib_option:pa(2705,1,"An_async_function_or_method_in_ES5_requires_the_Promise_constructor_Make_sure_you_have_a_declaration_2705","An async function or method in ES5 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:pa(2706,1,"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:pa(2707,1,"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:pa(2708,1,"Cannot_use_namespace_0_as_a_value_2708","Cannot use namespace '{0}' as a value."),Cannot_use_namespace_0_as_a_type:pa(2709,1,"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:pa(2710,1,"_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:pa(2711,1,"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_requires_the_Promise_constructor_Make_sure_you_have_a_declaration_for_the_Promise_constructor_or_include_ES2015_in_your_lib_option:pa(2712,1,"A_dynamic_import_call_in_ES5_requires_the_Promise_constructor_Make_sure_you_have_a_declaration_for_t_2712","A dynamic import call in ES5 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:pa(2713,1,"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:pa(2714,1,"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:pa(2715,1,"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:pa(2716,1,"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:pa(2717,1,"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:pa(2718,1,"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:pa(2719,1,"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:pa(2720,1,"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:pa(2721,1,"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:pa(2722,1,"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:pa(2723,1,"Cannot_invoke_an_object_which_is_possibly_null_or_undefined_2723","Cannot invoke an object which is possibly 'null' or 'undefined'."),_0_has_no_exported_member_named_1_Did_you_mean_2:pa(2724,1,"_0_has_no_exported_member_named_1_Did_you_mean_2_2724","'{0}' has no exported member named '{1}'. Did you mean '{2}'?"),Class_name_cannot_be_Object_when_targeting_ES5_and_above_with_module_0:pa(2725,1,"Class_name_cannot_be_Object_when_targeting_ES5_and_above_with_module_0_2725","Class name cannot be 'Object' when targeting ES5 and above with module {0}."),Cannot_find_lib_definition_for_0:pa(2726,1,"Cannot_find_lib_definition_for_0_2726","Cannot find lib definition for '{0}'."),Cannot_find_lib_definition_for_0_Did_you_mean_1:pa(2727,1,"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:pa(2728,3,"_0_is_declared_here_2728","'{0}' is declared here."),Property_0_is_used_before_its_initialization:pa(2729,1,"Property_0_is_used_before_its_initialization_2729","Property '{0}' is used before its initialization."),An_arrow_function_cannot_have_a_this_parameter:pa(2730,1,"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:pa(2731,1,"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:pa(2732,1,"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:pa(2733,1,"Property_0_was_also_declared_here_2733","Property '{0}' was also declared here."),Are_you_missing_a_semicolon:pa(2734,1,"Are_you_missing_a_semicolon_2734","Are you missing a semicolon?"),Did_you_mean_for_0_to_be_constrained_to_type_new_args_Colon_any_1:pa(2735,1,"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:pa(2736,1,"Operator_0_cannot_be_applied_to_type_1_2736","Operator '{0}' cannot be applied to type '{1}'."),BigInt_literals_are_not_available_when_targeting_lower_than_ES2020:pa(2737,1,"BigInt_literals_are_not_available_when_targeting_lower_than_ES2020_2737","BigInt literals are not available when targeting lower than ES2020."),An_outer_value_of_this_is_shadowed_by_this_container:pa(2738,3,"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:pa(2739,1,"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:pa(2740,1,"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:pa(2741,1,"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:pa(2742,1,"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:pa(2743,1,"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:pa(2744,1,"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:pa(2745,1,"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:pa(2746,1,"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:pa(2747,1,"_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_0_is_enabled:pa(2748,1,"Cannot_access_ambient_const_enums_when_0_is_enabled_2748","Cannot access ambient const enums when '{0}' is enabled."),_0_refers_to_a_value_but_is_being_used_as_a_type_here_Did_you_mean_typeof_0:pa(2749,1,"_0_refers_to_a_value_but_is_being_used_as_a_type_here_Did_you_mean_typeof_0_2749","'{0}' refers to a value, but is being used as a type here. Did you mean 'typeof {0}'?"),The_implementation_signature_is_declared_here:pa(2750,1,"The_implementation_signature_is_declared_here_2750","The implementation signature is declared here."),Circularity_originates_in_type_at_this_location:pa(2751,1,"Circularity_originates_in_type_at_this_location_2751","Circularity originates in type at this location."),The_first_export_default_is_here:pa(2752,1,"The_first_export_default_is_here_2752","The first export default is here."),Another_export_default_is_here:pa(2753,1,"Another_export_default_is_here_2753","Another export default is here."),super_may_not_use_type_arguments:pa(2754,1,"super_may_not_use_type_arguments_2754","'super' may not use type arguments."),No_constituent_of_type_0_is_callable:pa(2755,1,"No_constituent_of_type_0_is_callable_2755","No constituent of type '{0}' is callable."),Not_all_constituents_of_type_0_are_callable:pa(2756,1,"Not_all_constituents_of_type_0_are_callable_2756","Not all constituents of type '{0}' are callable."),Type_0_has_no_call_signatures:pa(2757,1,"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:pa(2758,1,"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:pa(2759,1,"No_constituent_of_type_0_is_constructable_2759","No constituent of type '{0}' is constructable."),Not_all_constituents_of_type_0_are_constructable:pa(2760,1,"Not_all_constituents_of_type_0_are_constructable_2760","Not all constituents of type '{0}' are constructable."),Type_0_has_no_construct_signatures:pa(2761,1,"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:pa(2762,1,"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:pa(2763,1,"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:pa(2764,1,"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:pa(2765,1,"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:pa(2766,1,"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:pa(2767,1,"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:pa(2768,1,"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:pa(2769,1,"No_overload_matches_this_call_2769","No overload matches this call."),The_last_overload_gave_the_following_error:pa(2770,1,"The_last_overload_gave_the_following_error_2770","The last overload gave the following error."),The_last_overload_is_declared_here:pa(2771,1,"The_last_overload_is_declared_here_2771","The last overload is declared here."),Overload_0_of_1_2_gave_the_following_error:pa(2772,1,"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:pa(2773,1,"Did_you_forget_to_use_await_2773","Did you forget to use 'await'?"),This_condition_will_always_return_true_since_this_function_is_always_defined_Did_you_mean_to_call_it_instead:pa(2774,1,"This_condition_will_always_return_true_since_this_function_is_always_defined_Did_you_mean_to_call_it_2774","This condition will always return true since this function is always defined. Did you mean to call it instead?"),Assertions_require_every_name_in_the_call_target_to_be_declared_with_an_explicit_type_annotation:pa(2775,1,"Assertions_require_every_name_in_the_call_target_to_be_declared_with_an_explicit_type_annotation_2775","Assertions require every name in the call target to be declared with an explicit type annotation."),Assertions_require_the_call_target_to_be_an_identifier_or_qualified_name:pa(2776,1,"Assertions_require_the_call_target_to_be_an_identifier_or_qualified_name_2776","Assertions require the call target to be an identifier or qualified name."),The_operand_of_an_increment_or_decrement_operator_may_not_be_an_optional_property_access:pa(2777,1,"The_operand_of_an_increment_or_decrement_operator_may_not_be_an_optional_property_access_2777","The operand of an increment or decrement operator may not be an optional property access."),The_target_of_an_object_rest_assignment_may_not_be_an_optional_property_access:pa(2778,1,"The_target_of_an_object_rest_assignment_may_not_be_an_optional_property_access_2778","The target of an object rest assignment may not be an optional property access."),The_left_hand_side_of_an_assignment_expression_may_not_be_an_optional_property_access:pa(2779,1,"The_left_hand_side_of_an_assignment_expression_may_not_be_an_optional_property_access_2779","The left-hand side of an assignment expression may not be an optional property access."),The_left_hand_side_of_a_for_in_statement_may_not_be_an_optional_property_access:pa(2780,1,"The_left_hand_side_of_a_for_in_statement_may_not_be_an_optional_property_access_2780","The left-hand side of a 'for...in' statement may not be an optional property access."),The_left_hand_side_of_a_for_of_statement_may_not_be_an_optional_property_access:pa(2781,1,"The_left_hand_side_of_a_for_of_statement_may_not_be_an_optional_property_access_2781","The left-hand side of a 'for...of' statement may not be an optional property access."),_0_needs_an_explicit_type_annotation:pa(2782,3,"_0_needs_an_explicit_type_annotation_2782","'{0}' needs an explicit type annotation."),_0_is_specified_more_than_once_so_this_usage_will_be_overwritten:pa(2783,1,"_0_is_specified_more_than_once_so_this_usage_will_be_overwritten_2783","'{0}' is specified more than once, so this usage will be overwritten."),get_and_set_accessors_cannot_declare_this_parameters:pa(2784,1,"get_and_set_accessors_cannot_declare_this_parameters_2784","'get' and 'set' accessors cannot declare 'this' parameters."),This_spread_always_overwrites_this_property:pa(2785,1,"This_spread_always_overwrites_this_property_2785","This spread always overwrites this property."),_0_cannot_be_used_as_a_JSX_component:pa(2786,1,"_0_cannot_be_used_as_a_JSX_component_2786","'{0}' cannot be used as a JSX component."),Its_return_type_0_is_not_a_valid_JSX_element:pa(2787,1,"Its_return_type_0_is_not_a_valid_JSX_element_2787","Its return type '{0}' is not a valid JSX element."),Its_instance_type_0_is_not_a_valid_JSX_element:pa(2788,1,"Its_instance_type_0_is_not_a_valid_JSX_element_2788","Its instance type '{0}' is not a valid JSX element."),Its_element_type_0_is_not_a_valid_JSX_element:pa(2789,1,"Its_element_type_0_is_not_a_valid_JSX_element_2789","Its element type '{0}' is not a valid JSX element."),The_operand_of_a_delete_operator_must_be_optional:pa(2790,1,"The_operand_of_a_delete_operator_must_be_optional_2790","The operand of a 'delete' operator must be optional."),Exponentiation_cannot_be_performed_on_bigint_values_unless_the_target_option_is_set_to_es2016_or_later:pa(2791,1,"Exponentiation_cannot_be_performed_on_bigint_values_unless_the_target_option_is_set_to_es2016_or_lat_2791","Exponentiation cannot be performed on 'bigint' values unless the 'target' option is set to 'es2016' or later."),Cannot_find_module_0_Did_you_mean_to_set_the_moduleResolution_option_to_nodenext_or_to_add_aliases_to_the_paths_option:pa(2792,1,"Cannot_find_module_0_Did_you_mean_to_set_the_moduleResolution_option_to_nodenext_or_to_add_aliases_t_2792","Cannot find module '{0}'. Did you mean to set the 'moduleResolution' option to 'nodenext', or to add aliases to the 'paths' option?"),The_call_would_have_succeeded_against_this_implementation_but_implementation_signatures_of_overloads_are_not_externally_visible:pa(2793,1,"The_call_would_have_succeeded_against_this_implementation_but_implementation_signatures_of_overloads_2793","The call would have succeeded against this implementation, but implementation signatures of overloads are not externally visible."),Expected_0_arguments_but_got_1_Did_you_forget_to_include_void_in_your_type_argument_to_Promise:pa(2794,1,"Expected_0_arguments_but_got_1_Did_you_forget_to_include_void_in_your_type_argument_to_Promise_2794","Expected {0} arguments, but got {1}. Did you forget to include 'void' in your type argument to 'Promise'?"),The_intrinsic_keyword_can_only_be_used_to_declare_compiler_provided_intrinsic_types:pa(2795,1,"The_intrinsic_keyword_can_only_be_used_to_declare_compiler_provided_intrinsic_types_2795","The 'intrinsic' keyword can only be used to declare compiler provided intrinsic types."),It_is_likely_that_you_are_missing_a_comma_to_separate_these_two_template_expressions_They_form_a_tagged_template_expression_which_cannot_be_invoked:pa(2796,1,"It_is_likely_that_you_are_missing_a_comma_to_separate_these_two_template_expressions_They_form_a_tag_2796","It is likely that you are missing a comma to separate these two template expressions. They form a tagged template expression which cannot be invoked."),A_mixin_class_that_extends_from_a_type_variable_containing_an_abstract_construct_signature_must_also_be_declared_abstract:pa(2797,1,"A_mixin_class_that_extends_from_a_type_variable_containing_an_abstract_construct_signature_must_also_2797","A mixin class that extends from a type variable containing an abstract construct signature must also be declared 'abstract'."),The_declaration_was_marked_as_deprecated_here:pa(2798,1,"The_declaration_was_marked_as_deprecated_here_2798","The declaration was marked as deprecated here."),Type_produces_a_tuple_type_that_is_too_large_to_represent:pa(2799,1,"Type_produces_a_tuple_type_that_is_too_large_to_represent_2799","Type produces a tuple type that is too large to represent."),Expression_produces_a_tuple_type_that_is_too_large_to_represent:pa(2800,1,"Expression_produces_a_tuple_type_that_is_too_large_to_represent_2800","Expression produces a tuple type that is too large to represent."),This_condition_will_always_return_true_since_this_0_is_always_defined:pa(2801,1,"This_condition_will_always_return_true_since_this_0_is_always_defined_2801","This condition will always return true since this '{0}' is always defined."),Type_0_can_only_be_iterated_through_when_using_the_downlevelIteration_flag_or_with_a_target_of_es2015_or_higher:pa(2802,1,"Type_0_can_only_be_iterated_through_when_using_the_downlevelIteration_flag_or_with_a_target_of_es201_2802","Type '{0}' can only be iterated through when using the '--downlevelIteration' flag or with a '--target' of 'es2015' or higher."),Cannot_assign_to_private_method_0_Private_methods_are_not_writable:pa(2803,1,"Cannot_assign_to_private_method_0_Private_methods_are_not_writable_2803","Cannot assign to private method '{0}'. Private methods are not writable."),Duplicate_identifier_0_Static_and_instance_elements_cannot_share_the_same_private_name:pa(2804,1,"Duplicate_identifier_0_Static_and_instance_elements_cannot_share_the_same_private_name_2804","Duplicate identifier '{0}'. Static and instance elements cannot share the same private name."),Private_accessor_was_defined_without_a_getter:pa(2806,1,"Private_accessor_was_defined_without_a_getter_2806","Private accessor was defined without a getter."),This_syntax_requires_an_imported_helper_named_1_with_2_parameters_which_is_not_compatible_with_the_one_in_0_Consider_upgrading_your_version_of_0:pa(2807,1,"This_syntax_requires_an_imported_helper_named_1_with_2_parameters_which_is_not_compatible_with_the_o_2807","This syntax requires an imported helper named '{1}' with {2} parameters, which is not compatible with the one in '{0}'. Consider upgrading your version of '{0}'."),A_get_accessor_must_be_at_least_as_accessible_as_the_setter:pa(2808,1,"A_get_accessor_must_be_at_least_as_accessible_as_the_setter_2808","A get accessor must be at least as accessible as the setter"),Declaration_or_statement_expected_This_follows_a_block_of_statements_so_if_you_intended_to_write_a_destructuring_assignment_you_might_need_to_wrap_the_whole_assignment_in_parentheses:pa(2809,1,"Declaration_or_statement_expected_This_follows_a_block_of_statements_so_if_you_intended_to_write_a_d_2809","Declaration or statement expected. This '=' follows a block of statements, so if you intended to write a destructuring assignment, you might need to wrap the whole assignment in parentheses."),Expected_1_argument_but_got_0_new_Promise_needs_a_JSDoc_hint_to_produce_a_resolve_that_can_be_called_without_arguments:pa(2810,1,"Expected_1_argument_but_got_0_new_Promise_needs_a_JSDoc_hint_to_produce_a_resolve_that_can_be_called_2810","Expected 1 argument, but got 0. 'new Promise()' needs a JSDoc hint to produce a 'resolve' that can be called without arguments."),Initializer_for_property_0:pa(2811,1,"Initializer_for_property_0_2811","Initializer for property '{0}'"),Property_0_does_not_exist_on_type_1_Try_changing_the_lib_compiler_option_to_include_dom:pa(2812,1,"Property_0_does_not_exist_on_type_1_Try_changing_the_lib_compiler_option_to_include_dom_2812","Property '{0}' does not exist on type '{1}'. Try changing the 'lib' compiler option to include 'dom'."),Class_declaration_cannot_implement_overload_list_for_0:pa(2813,1,"Class_declaration_cannot_implement_overload_list_for_0_2813","Class declaration cannot implement overload list for '{0}'."),Function_with_bodies_can_only_merge_with_classes_that_are_ambient:pa(2814,1,"Function_with_bodies_can_only_merge_with_classes_that_are_ambient_2814","Function with bodies can only merge with classes that are ambient."),arguments_cannot_be_referenced_in_property_initializers_or_class_static_initialization_blocks:pa(2815,1,"arguments_cannot_be_referenced_in_property_initializers_or_class_static_initialization_blocks_2815","'arguments' cannot be referenced in property initializers or class static initialization blocks."),Cannot_use_this_in_a_static_property_initializer_of_a_decorated_class:pa(2816,1,"Cannot_use_this_in_a_static_property_initializer_of_a_decorated_class_2816","Cannot use 'this' in a static property initializer of a decorated class."),Property_0_has_no_initializer_and_is_not_definitely_assigned_in_a_class_static_block:pa(2817,1,"Property_0_has_no_initializer_and_is_not_definitely_assigned_in_a_class_static_block_2817","Property '{0}' has no initializer and is not definitely assigned in a class static block."),Duplicate_identifier_0_Compiler_reserves_name_1_when_emitting_super_references_in_static_initializers:pa(2818,1,"Duplicate_identifier_0_Compiler_reserves_name_1_when_emitting_super_references_in_static_initializer_2818","Duplicate identifier '{0}'. Compiler reserves name '{1}' when emitting 'super' references in static initializers."),Namespace_name_cannot_be_0:pa(2819,1,"Namespace_name_cannot_be_0_2819","Namespace name cannot be '{0}'."),Type_0_is_not_assignable_to_type_1_Did_you_mean_2:pa(2820,1,"Type_0_is_not_assignable_to_type_1_Did_you_mean_2_2820","Type '{0}' is not assignable to type '{1}'. Did you mean '{2}'?"),Import_assertions_are_only_supported_when_the_module_option_is_set_to_esnext_node18_node20_nodenext_or_preserve:pa(2821,1,"Import_assertions_are_only_supported_when_the_module_option_is_set_to_esnext_node18_node20_nodenext__2821","Import assertions are only supported when the '--module' option is set to 'esnext', 'node18', 'node20', 'nodenext', or 'preserve'."),Import_assertions_cannot_be_used_with_type_only_imports_or_exports:pa(2822,1,"Import_assertions_cannot_be_used_with_type_only_imports_or_exports_2822","Import assertions cannot be used with type-only imports or exports."),Import_attributes_are_only_supported_when_the_module_option_is_set_to_esnext_node18_node20_nodenext_or_preserve:pa(2823,1,"Import_attributes_are_only_supported_when_the_module_option_is_set_to_esnext_node18_node20_nodenext__2823","Import attributes are only supported when the '--module' option is set to 'esnext', 'node18', 'node20', 'nodenext', or 'preserve'."),Cannot_find_namespace_0_Did_you_mean_1:pa(2833,1,"Cannot_find_namespace_0_Did_you_mean_1_2833","Cannot find namespace '{0}'. Did you mean '{1}'?"),Relative_import_paths_need_explicit_file_extensions_in_ECMAScript_imports_when_moduleResolution_is_node16_or_nodenext_Consider_adding_an_extension_to_the_import_path:pa(2834,1,"Relative_import_paths_need_explicit_file_extensions_in_ECMAScript_imports_when_moduleResolution_is_n_2834","Relative import paths need explicit file extensions in ECMAScript imports when '--moduleResolution' is 'node16' or 'nodenext'. Consider adding an extension to the import path."),Relative_import_paths_need_explicit_file_extensions_in_ECMAScript_imports_when_moduleResolution_is_node16_or_nodenext_Did_you_mean_0:pa(2835,1,"Relative_import_paths_need_explicit_file_extensions_in_ECMAScript_imports_when_moduleResolution_is_n_2835","Relative import paths need explicit file extensions in ECMAScript imports when '--moduleResolution' is 'node16' or 'nodenext'. Did you mean '{0}'?"),Import_assertions_are_not_allowed_on_statements_that_compile_to_CommonJS_require_calls:pa(2836,1,"Import_assertions_are_not_allowed_on_statements_that_compile_to_CommonJS_require_calls_2836","Import assertions are not allowed on statements that compile to CommonJS 'require' calls."),Import_assertion_values_must_be_string_literal_expressions:pa(2837,1,"Import_assertion_values_must_be_string_literal_expressions_2837","Import assertion values must be string literal expressions."),All_declarations_of_0_must_have_identical_constraints:pa(2838,1,"All_declarations_of_0_must_have_identical_constraints_2838","All declarations of '{0}' must have identical constraints."),This_condition_will_always_return_0_since_JavaScript_compares_objects_by_reference_not_value:pa(2839,1,"This_condition_will_always_return_0_since_JavaScript_compares_objects_by_reference_not_value_2839","This condition will always return '{0}' since JavaScript compares objects by reference, not value."),An_interface_cannot_extend_a_primitive_type_like_0_It_can_only_extend_other_named_object_types:pa(2840,1,"An_interface_cannot_extend_a_primitive_type_like_0_It_can_only_extend_other_named_object_types_2840","An interface cannot extend a primitive type like '{0}'. It can only extend other named object types."),_0_is_an_unused_renaming_of_1_Did_you_intend_to_use_it_as_a_type_annotation:pa(2842,1,"_0_is_an_unused_renaming_of_1_Did_you_intend_to_use_it_as_a_type_annotation_2842","'{0}' is an unused renaming of '{1}'. Did you intend to use it as a type annotation?"),We_can_only_write_a_type_for_0_by_adding_a_type_for_the_entire_parameter_here:pa(2843,1,"We_can_only_write_a_type_for_0_by_adding_a_type_for_the_entire_parameter_here_2843","We can only write a type for '{0}' by adding a type for the entire parameter here."),Type_of_instance_member_variable_0_cannot_reference_identifier_1_declared_in_the_constructor:pa(2844,1,"Type_of_instance_member_variable_0_cannot_reference_identifier_1_declared_in_the_constructor_2844","Type of instance member variable '{0}' cannot reference identifier '{1}' declared in the constructor."),This_condition_will_always_return_0:pa(2845,1,"This_condition_will_always_return_0_2845","This condition will always return '{0}'."),A_declaration_file_cannot_be_imported_without_import_type_Did_you_mean_to_import_an_implementation_file_0_instead:pa(2846,1,"A_declaration_file_cannot_be_imported_without_import_type_Did_you_mean_to_import_an_implementation_f_2846","A declaration file cannot be imported without 'import type'. Did you mean to import an implementation file '{0}' instead?"),The_right_hand_side_of_an_instanceof_expression_must_not_be_an_instantiation_expression:pa(2848,1,"The_right_hand_side_of_an_instanceof_expression_must_not_be_an_instantiation_expression_2848","The right-hand side of an 'instanceof' expression must not be an instantiation expression."),Target_signature_provides_too_few_arguments_Expected_0_or_more_but_got_1:pa(2849,1,"Target_signature_provides_too_few_arguments_Expected_0_or_more_but_got_1_2849","Target signature provides too few arguments. Expected {0} or more, but got {1}."),The_initializer_of_a_using_declaration_must_be_either_an_object_with_a_Symbol_dispose_method_or_be_null_or_undefined:pa(2850,1,"The_initializer_of_a_using_declaration_must_be_either_an_object_with_a_Symbol_dispose_method_or_be_n_2850","The initializer of a 'using' declaration must be either an object with a '[Symbol.dispose]()' method, or be 'null' or 'undefined'."),The_initializer_of_an_await_using_declaration_must_be_either_an_object_with_a_Symbol_asyncDispose_or_Symbol_dispose_method_or_be_null_or_undefined:pa(2851,1,"The_initializer_of_an_await_using_declaration_must_be_either_an_object_with_a_Symbol_asyncDispose_or_2851","The initializer of an 'await using' declaration must be either an object with a '[Symbol.asyncDispose]()' or '[Symbol.dispose]()' method, or be 'null' or 'undefined'."),await_using_statements_are_only_allowed_within_async_functions_and_at_the_top_levels_of_modules:pa(2852,1,"await_using_statements_are_only_allowed_within_async_functions_and_at_the_top_levels_of_modules_2852","'await using' statements are only allowed within async functions and at the top levels of modules."),await_using_statements_are_only_allowed_at_the_top_level_of_a_file_when_that_file_is_a_module_but_this_file_has_no_imports_or_exports_Consider_adding_an_empty_export_to_make_this_file_a_module:pa(2853,1,"await_using_statements_are_only_allowed_at_the_top_level_of_a_file_when_that_file_is_a_module_but_th_2853","'await using' statements are only allowed at the top level of a file when that file is a module, but this file has no imports or exports. Consider adding an empty 'export {}' to make this file a module."),Top_level_await_using_statements_are_only_allowed_when_the_module_option_is_set_to_es2022_esnext_system_node16_node18_node20_nodenext_or_preserve_and_the_target_option_is_set_to_es2017_or_higher:pa(2854,1,"Top_level_await_using_statements_are_only_allowed_when_the_module_option_is_set_to_es2022_esnext_sys_2854","Top-level 'await using' statements are only allowed when the 'module' option is set to 'es2022', 'esnext', 'system', 'node16', 'node18', 'node20', 'nodenext', or 'preserve', and the 'target' option is set to 'es2017' or higher."),Class_field_0_defined_by_the_parent_class_is_not_accessible_in_the_child_class_via_super:pa(2855,1,"Class_field_0_defined_by_the_parent_class_is_not_accessible_in_the_child_class_via_super_2855","Class field '{0}' defined by the parent class is not accessible in the child class via super."),Import_attributes_are_not_allowed_on_statements_that_compile_to_CommonJS_require_calls:pa(2856,1,"Import_attributes_are_not_allowed_on_statements_that_compile_to_CommonJS_require_calls_2856","Import attributes are not allowed on statements that compile to CommonJS 'require' calls."),Import_attributes_cannot_be_used_with_type_only_imports_or_exports:pa(2857,1,"Import_attributes_cannot_be_used_with_type_only_imports_or_exports_2857","Import attributes cannot be used with type-only imports or exports."),Import_attribute_values_must_be_string_literal_expressions:pa(2858,1,"Import_attribute_values_must_be_string_literal_expressions_2858","Import attribute values must be string literal expressions."),Excessive_complexity_comparing_types_0_and_1:pa(2859,1,"Excessive_complexity_comparing_types_0_and_1_2859","Excessive complexity comparing types '{0}' and '{1}'."),The_left_hand_side_of_an_instanceof_expression_must_be_assignable_to_the_first_argument_of_the_right_hand_side_s_Symbol_hasInstance_method:pa(2860,1,"The_left_hand_side_of_an_instanceof_expression_must_be_assignable_to_the_first_argument_of_the_right_2860","The left-hand side of an 'instanceof' expression must be assignable to the first argument of the right-hand side's '[Symbol.hasInstance]' method."),An_object_s_Symbol_hasInstance_method_must_return_a_boolean_value_for_it_to_be_used_on_the_right_hand_side_of_an_instanceof_expression:pa(2861,1,"An_object_s_Symbol_hasInstance_method_must_return_a_boolean_value_for_it_to_be_used_on_the_right_han_2861","An object's '[Symbol.hasInstance]' method must return a boolean value for it to be used on the right-hand side of an 'instanceof' expression."),Type_0_is_generic_and_can_only_be_indexed_for_reading:pa(2862,1,"Type_0_is_generic_and_can_only_be_indexed_for_reading_2862","Type '{0}' is generic and can only be indexed for reading."),A_class_cannot_extend_a_primitive_type_like_0_Classes_can_only_extend_constructable_values:pa(2863,1,"A_class_cannot_extend_a_primitive_type_like_0_Classes_can_only_extend_constructable_values_2863","A class cannot extend a primitive type like '{0}'. Classes can only extend constructable values."),A_class_cannot_implement_a_primitive_type_like_0_It_can_only_implement_other_named_object_types:pa(2864,1,"A_class_cannot_implement_a_primitive_type_like_0_It_can_only_implement_other_named_object_types_2864","A class cannot implement a primitive type like '{0}'. It can only implement other named object types."),Import_0_conflicts_with_local_value_so_must_be_declared_with_a_type_only_import_when_isolatedModules_is_enabled:pa(2865,1,"Import_0_conflicts_with_local_value_so_must_be_declared_with_a_type_only_import_when_isolatedModules_2865","Import '{0}' conflicts with local value, so must be declared with a type-only import when 'isolatedModules' is enabled."),Import_0_conflicts_with_global_value_used_in_this_file_so_must_be_declared_with_a_type_only_import_when_isolatedModules_is_enabled:pa(2866,1,"Import_0_conflicts_with_global_value_used_in_this_file_so_must_be_declared_with_a_type_only_import_w_2866","Import '{0}' conflicts with global value used in this file, so must be declared with a type-only import when 'isolatedModules' is enabled."),Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_Bun_Try_npm_i_save_dev_types_Slashbun:pa(2867,1,"Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_Bun_Try_npm_i_save_dev_types_Slashbun_2867","Cannot find name '{0}'. Do you need to install type definitions for Bun? Try `npm i --save-dev @types/bun`."),Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_Bun_Try_npm_i_save_dev_types_Slashbun_and_then_add_bun_to_the_types_field_in_your_tsconfig:pa(2868,1,"Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_Bun_Try_npm_i_save_dev_types_Slashbun_2868","Cannot find name '{0}'. Do you need to install type definitions for Bun? Try `npm i --save-dev @types/bun` and then add 'bun' to the types field in your tsconfig."),Right_operand_of_is_unreachable_because_the_left_operand_is_never_nullish:pa(2869,1,"Right_operand_of_is_unreachable_because_the_left_operand_is_never_nullish_2869","Right operand of ?? is unreachable because the left operand is never nullish."),This_binary_expression_is_never_nullish_Are_you_missing_parentheses:pa(2870,1,"This_binary_expression_is_never_nullish_Are_you_missing_parentheses_2870","This binary expression is never nullish. Are you missing parentheses?"),This_expression_is_always_nullish:pa(2871,1,"This_expression_is_always_nullish_2871","This expression is always nullish."),This_kind_of_expression_is_always_truthy:pa(2872,1,"This_kind_of_expression_is_always_truthy_2872","This kind of expression is always truthy."),This_kind_of_expression_is_always_falsy:pa(2873,1,"This_kind_of_expression_is_always_falsy_2873","This kind of expression is always falsy."),This_JSX_tag_requires_0_to_be_in_scope_but_it_could_not_be_found:pa(2874,1,"This_JSX_tag_requires_0_to_be_in_scope_but_it_could_not_be_found_2874","This JSX tag requires '{0}' to be in scope, but it could not be found."),This_JSX_tag_requires_the_module_path_0_to_exist_but_none_could_be_found_Make_sure_you_have_types_for_the_appropriate_package_installed:pa(2875,1,"This_JSX_tag_requires_the_module_path_0_to_exist_but_none_could_be_found_Make_sure_you_have_types_fo_2875","This JSX tag requires the module path '{0}' to exist, but none could be found. Make sure you have types for the appropriate package installed."),This_relative_import_path_is_unsafe_to_rewrite_because_it_looks_like_a_file_name_but_actually_resolves_to_0:pa(2876,1,"This_relative_import_path_is_unsafe_to_rewrite_because_it_looks_like_a_file_name_but_actually_resolv_2876",'This relative import path is unsafe to rewrite because it looks like a file name, but actually resolves to "{0}".'),This_import_uses_a_0_extension_to_resolve_to_an_input_TypeScript_file_but_will_not_be_rewritten_during_emit_because_it_is_not_a_relative_path:pa(2877,1,"This_import_uses_a_0_extension_to_resolve_to_an_input_TypeScript_file_but_will_not_be_rewritten_duri_2877","This import uses a '{0}' extension to resolve to an input TypeScript file, but will not be rewritten during emit because it is not a relative path."),This_import_path_is_unsafe_to_rewrite_because_it_resolves_to_another_project_and_the_relative_path_between_the_projects_output_files_is_not_the_same_as_the_relative_path_between_its_input_files:pa(2878,1,"This_import_path_is_unsafe_to_rewrite_because_it_resolves_to_another_project_and_the_relative_path_b_2878","This import path is unsafe to rewrite because it resolves to another project, and the relative path between the projects' output files is not the same as the relative path between its input files."),Using_JSX_fragments_requires_fragment_factory_0_to_be_in_scope_but_it_could_not_be_found:pa(2879,1,"Using_JSX_fragments_requires_fragment_factory_0_to_be_in_scope_but_it_could_not_be_found_2879","Using JSX fragments requires fragment factory '{0}' to be in scope, but it could not be found."),Import_assertions_have_been_replaced_by_import_attributes_Use_with_instead_of_assert:pa(2880,1,"Import_assertions_have_been_replaced_by_import_attributes_Use_with_instead_of_assert_2880","Import assertions have been replaced by import attributes. Use 'with' instead of 'assert'."),This_expression_is_never_nullish:pa(2881,1,"This_expression_is_never_nullish_2881","This expression is never nullish."),Import_declaration_0_is_using_private_name_1:pa(4e3,1,"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:pa(4002,1,"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:pa(4004,1,"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:pa(4006,1,"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:pa(4008,1,"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:pa(4010,1,"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:pa(4012,1,"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:pa(4014,1,"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:pa(4016,1,"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:pa(4019,1,"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:pa(4020,1,"extends_clause_of_exported_class_0_has_or_is_using_private_name_1_4020","'extends' clause of exported class '{0}' has or is using private name '{1}'."),extends_clause_of_exported_class_has_or_is_using_private_name_0:pa(4021,1,"extends_clause_of_exported_class_has_or_is_using_private_name_0_4021","'extends' clause of exported class has or is using private name '{0}'."),extends_clause_of_exported_interface_0_has_or_is_using_private_name_1:pa(4022,1,"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:pa(4023,1,"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:pa(4024,1,"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:pa(4025,1,"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:pa(4026,1,"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:pa(4027,1,"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:pa(4028,1,"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:pa(4029,1,"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:pa(4030,1,"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:pa(4031,1,"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:pa(4032,1,"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:pa(4033,1,"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:pa(4034,1,"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:pa(4035,1,"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:pa(4036,1,"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:pa(4037,1,"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:pa(4038,1,"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:pa(4039,1,"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:pa(4040,1,"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:pa(4041,1,"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:pa(4042,1,"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:pa(4043,1,"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:pa(4044,1,"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:pa(4045,1,"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:pa(4046,1,"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:pa(4047,1,"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:pa(4048,1,"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:pa(4049,1,"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:pa(4050,1,"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:pa(4051,1,"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:pa(4052,1,"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:pa(4053,1,"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:pa(4054,1,"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:pa(4055,1,"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:pa(4056,1,"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:pa(4057,1,"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:pa(4058,1,"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:pa(4059,1,"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:pa(4060,1,"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:pa(4061,1,"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:pa(4062,1,"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:pa(4063,1,"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:pa(4064,1,"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:pa(4065,1,"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:pa(4066,1,"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:pa(4067,1,"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:pa(4068,1,"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:pa(4069,1,"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:pa(4070,1,"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:pa(4071,1,"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:pa(4072,1,"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:pa(4073,1,"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:pa(4074,1,"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:pa(4075,1,"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:pa(4076,1,"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:pa(4077,1,"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:pa(4078,1,"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:pa(4081,1,"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:pa(4082,1,"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:pa(4083,1,"Type_parameter_0_of_exported_type_alias_has_or_is_using_private_name_1_4083","Type parameter '{0}' of exported type alias has or is using private name '{1}'."),Exported_type_alias_0_has_or_is_using_private_name_1_from_module_2:pa(4084,1,"Exported_type_alias_0_has_or_is_using_private_name_1_from_module_2_4084","Exported type alias '{0}' has or is using private name '{1}' from module {2}."),Extends_clause_for_inferred_type_0_has_or_is_using_private_name_1:pa(4085,1,"Extends_clause_for_inferred_type_0_has_or_is_using_private_name_1_4085","Extends clause for inferred type '{0}' has or is using private name '{1}'."),Parameter_0_of_index_signature_from_exported_interface_has_or_is_using_name_1_from_private_module_2:pa(4091,1,"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:pa(4092,1,"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_anonymous_class_type_may_not_be_private_or_protected:pa(4094,1,"Property_0_of_exported_anonymous_class_type_may_not_be_private_or_protected_4094","Property '{0}' of exported anonymous class type 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:pa(4095,1,"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:pa(4096,1,"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:pa(4097,1,"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:pa(4098,1,"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:pa(4099,1,"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:pa(4100,1,"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:pa(4101,1,"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:pa(4102,1,"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:pa(4103,1,"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:pa(4104,1,"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:pa(4105,1,"Private_or_protected_member_0_cannot_be_accessed_on_a_type_parameter_4105","Private or protected member '{0}' cannot be accessed on a type parameter."),Parameter_0_of_accessor_has_or_is_using_private_name_1:pa(4106,1,"Parameter_0_of_accessor_has_or_is_using_private_name_1_4106","Parameter '{0}' of accessor has or is using private name '{1}'."),Parameter_0_of_accessor_has_or_is_using_name_1_from_private_module_2:pa(4107,1,"Parameter_0_of_accessor_has_or_is_using_name_1_from_private_module_2_4107","Parameter '{0}' of accessor has or is using name '{1}' from private module '{2}'."),Parameter_0_of_accessor_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:pa(4108,1,"Parameter_0_of_accessor_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named_4108","Parameter '{0}' of accessor has or is using name '{1}' from external module '{2}' but cannot be named."),Type_arguments_for_0_circularly_reference_themselves:pa(4109,1,"Type_arguments_for_0_circularly_reference_themselves_4109","Type arguments for '{0}' circularly reference themselves."),Tuple_type_arguments_circularly_reference_themselves:pa(4110,1,"Tuple_type_arguments_circularly_reference_themselves_4110","Tuple type arguments circularly reference themselves."),Property_0_comes_from_an_index_signature_so_it_must_be_accessed_with_0:pa(4111,1,"Property_0_comes_from_an_index_signature_so_it_must_be_accessed_with_0_4111","Property '{0}' comes from an index signature, so it must be accessed with ['{0}']."),This_member_cannot_have_an_override_modifier_because_its_containing_class_0_does_not_extend_another_class:pa(4112,1,"This_member_cannot_have_an_override_modifier_because_its_containing_class_0_does_not_extend_another__4112","This member cannot have an 'override' modifier because its containing class '{0}' does not extend another class."),This_member_cannot_have_an_override_modifier_because_it_is_not_declared_in_the_base_class_0:pa(4113,1,"This_member_cannot_have_an_override_modifier_because_it_is_not_declared_in_the_base_class_0_4113","This member cannot have an 'override' modifier because it is not declared in the base class '{0}'."),This_member_must_have_an_override_modifier_because_it_overrides_a_member_in_the_base_class_0:pa(4114,1,"This_member_must_have_an_override_modifier_because_it_overrides_a_member_in_the_base_class_0_4114","This member must have an 'override' modifier because it overrides a member in the base class '{0}'."),This_parameter_property_must_have_an_override_modifier_because_it_overrides_a_member_in_base_class_0:pa(4115,1,"This_parameter_property_must_have_an_override_modifier_because_it_overrides_a_member_in_base_class_0_4115","This parameter property must have an 'override' modifier because it overrides a member in base class '{0}'."),This_member_must_have_an_override_modifier_because_it_overrides_an_abstract_method_that_is_declared_in_the_base_class_0:pa(4116,1,"This_member_must_have_an_override_modifier_because_it_overrides_an_abstract_method_that_is_declared__4116","This member must have an 'override' modifier because it overrides an abstract method that is declared in the base class '{0}'."),This_member_cannot_have_an_override_modifier_because_it_is_not_declared_in_the_base_class_0_Did_you_mean_1:pa(4117,1,"This_member_cannot_have_an_override_modifier_because_it_is_not_declared_in_the_base_class_0_Did_you__4117","This member cannot have an 'override' modifier because it is not declared in the base class '{0}'. Did you mean '{1}'?"),The_type_of_this_node_cannot_be_serialized_because_its_property_0_cannot_be_serialized:pa(4118,1,"The_type_of_this_node_cannot_be_serialized_because_its_property_0_cannot_be_serialized_4118","The type of this node cannot be serialized because its property '{0}' cannot be serialized."),This_member_must_have_a_JSDoc_comment_with_an_override_tag_because_it_overrides_a_member_in_the_base_class_0:pa(4119,1,"This_member_must_have_a_JSDoc_comment_with_an_override_tag_because_it_overrides_a_member_in_the_base_4119","This member must have a JSDoc comment with an '@override' tag because it overrides a member in the base class '{0}'."),This_parameter_property_must_have_a_JSDoc_comment_with_an_override_tag_because_it_overrides_a_member_in_the_base_class_0:pa(4120,1,"This_parameter_property_must_have_a_JSDoc_comment_with_an_override_tag_because_it_overrides_a_member_4120","This parameter property must have a JSDoc comment with an '@override' tag because it overrides a member in the base class '{0}'."),This_member_cannot_have_a_JSDoc_comment_with_an_override_tag_because_its_containing_class_0_does_not_extend_another_class:pa(4121,1,"This_member_cannot_have_a_JSDoc_comment_with_an_override_tag_because_its_containing_class_0_does_not_4121","This member cannot have a JSDoc comment with an '@override' tag because its containing class '{0}' does not extend another class."),This_member_cannot_have_a_JSDoc_comment_with_an_override_tag_because_it_is_not_declared_in_the_base_class_0:pa(4122,1,"This_member_cannot_have_a_JSDoc_comment_with_an_override_tag_because_it_is_not_declared_in_the_base__4122","This member cannot have a JSDoc comment with an '@override' tag because it is not declared in the base class '{0}'."),This_member_cannot_have_a_JSDoc_comment_with_an_override_tag_because_it_is_not_declared_in_the_base_class_0_Did_you_mean_1:pa(4123,1,"This_member_cannot_have_a_JSDoc_comment_with_an_override_tag_because_it_is_not_declared_in_the_base__4123","This member cannot have a JSDoc comment with an 'override' tag because it is not declared in the base class '{0}'. Did you mean '{1}'?"),Compiler_option_0_of_value_1_is_unstable_Use_nightly_TypeScript_to_silence_this_error_Try_updating_with_npm_install_D_typescript_next:pa(4124,1,"Compiler_option_0_of_value_1_is_unstable_Use_nightly_TypeScript_to_silence_this_error_Try_updating_w_4124","Compiler option '{0}' of value '{1}' is unstable. Use nightly TypeScript to silence this error. Try updating with 'npm install -D typescript@next'."),Each_declaration_of_0_1_differs_in_its_value_where_2_was_expected_but_3_was_given:pa(4125,1,"Each_declaration_of_0_1_differs_in_its_value_where_2_was_expected_but_3_was_given_4125","Each declaration of '{0}.{1}' differs in its value, where '{2}' was expected but '{3}' was given."),One_value_of_0_1_is_the_string_2_and_the_other_is_assumed_to_be_an_unknown_numeric_value:pa(4126,1,"One_value_of_0_1_is_the_string_2_and_the_other_is_assumed_to_be_an_unknown_numeric_value_4126","One value of '{0}.{1}' is the string '{2}', and the other is assumed to be an unknown numeric value."),This_member_cannot_have_an_override_modifier_because_its_name_is_dynamic:pa(4127,1,"This_member_cannot_have_an_override_modifier_because_its_name_is_dynamic_4127","This member cannot have an 'override' modifier because its name is dynamic."),This_member_cannot_have_a_JSDoc_comment_with_an_override_tag_because_its_name_is_dynamic:pa(4128,1,"This_member_cannot_have_a_JSDoc_comment_with_an_override_tag_because_its_name_is_dynamic_4128","This member cannot have a JSDoc comment with an '@override' tag because its name is dynamic."),The_current_host_does_not_support_the_0_option:pa(5001,1,"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:pa(5009,1,"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:pa(5010,1,"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:pa(5012,1,"Cannot_read_file_0_Colon_1_5012","Cannot read file '{0}': {1}."),Unknown_compiler_option_0:pa(5023,1,"Unknown_compiler_option_0_5023","Unknown compiler option '{0}'."),Compiler_option_0_requires_a_value_of_type_1:pa(5024,1,"Compiler_option_0_requires_a_value_of_type_1_5024","Compiler option '{0}' requires a value of type {1}."),Unknown_compiler_option_0_Did_you_mean_1:pa(5025,1,"Unknown_compiler_option_0_Did_you_mean_1_5025","Unknown compiler option '{0}'. Did you mean '{1}'?"),Could_not_write_file_0_Colon_1:pa(5033,1,"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:pa(5042,1,"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:pa(5047,1,"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:pa(5051,1,"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:pa(5052,1,"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:pa(5053,1,"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:pa(5054,1,"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:pa(5055,1,"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:pa(5056,1,"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:pa(5057,1,"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:pa(5058,1,"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:pa(5059,1,"Invalid_value_for_reactNamespace_0_is_not_a_valid_identifier_5059","Invalid value for '--reactNamespace'. '{0}' is not a valid identifier."),Pattern_0_can_have_at_most_one_Asterisk_character:pa(5061,1,"Pattern_0_can_have_at_most_one_Asterisk_character_5061","Pattern '{0}' can have at most one '*' character."),Substitution_0_in_pattern_1_can_have_at_most_one_Asterisk_character:pa(5062,1,"Substitution_0_in_pattern_1_can_have_at_most_one_Asterisk_character_5062","Substitution '{0}' in pattern '{1}' can have at most one '*' character."),Substitutions_for_pattern_0_should_be_an_array:pa(5063,1,"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:pa(5064,1,"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:pa(5065,1,"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:pa(5066,1,"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:pa(5067,1,"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:pa(5068,1,"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:pa(5069,1,"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_when_moduleResolution_is_set_to_classic:pa(5070,1,"Option_resolveJsonModule_cannot_be_specified_when_moduleResolution_is_set_to_classic_5070","Option '--resolveJsonModule' cannot be specified when 'moduleResolution' is set to 'classic'."),Option_resolveJsonModule_cannot_be_specified_when_module_is_set_to_none_system_or_umd:pa(5071,1,"Option_resolveJsonModule_cannot_be_specified_when_module_is_set_to_none_system_or_umd_5071","Option '--resolveJsonModule' cannot be specified when 'module' is set to 'none', 'system', or 'umd'."),Unknown_build_option_0:pa(5072,1,"Unknown_build_option_0_5072","Unknown build option '{0}'."),Build_option_0_requires_a_value_of_type_1:pa(5073,1,"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:pa(5074,1,"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:pa(5075,1,"_0_is_assignable_to_the_constraint_of_type_1_but_1_could_be_instantiated_with_a_different_subtype_of_5075","'{0}' is assignable to the constraint of type '{1}', but '{1}' could be instantiated with a different subtype of constraint '{2}'."),_0_and_1_operations_cannot_be_mixed_without_parentheses:pa(5076,1,"_0_and_1_operations_cannot_be_mixed_without_parentheses_5076","'{0}' and '{1}' operations cannot be mixed without parentheses."),Unknown_build_option_0_Did_you_mean_1:pa(5077,1,"Unknown_build_option_0_Did_you_mean_1_5077","Unknown build option '{0}'. Did you mean '{1}'?"),Unknown_watch_option_0:pa(5078,1,"Unknown_watch_option_0_5078","Unknown watch option '{0}'."),Unknown_watch_option_0_Did_you_mean_1:pa(5079,1,"Unknown_watch_option_0_Did_you_mean_1_5079","Unknown watch option '{0}'. Did you mean '{1}'?"),Watch_option_0_requires_a_value_of_type_1:pa(5080,1,"Watch_option_0_requires_a_value_of_type_1_5080","Watch option '{0}' requires a value of type {1}."),Cannot_find_a_tsconfig_json_file_at_the_current_directory_Colon_0:pa(5081,1,"Cannot_find_a_tsconfig_json_file_at_the_current_directory_Colon_0_5081","Cannot find a tsconfig.json file at the current directory: {0}."),_0_could_be_instantiated_with_an_arbitrary_type_which_could_be_unrelated_to_1:pa(5082,1,"_0_could_be_instantiated_with_an_arbitrary_type_which_could_be_unrelated_to_1_5082","'{0}' could be instantiated with an arbitrary type which could be unrelated to '{1}'."),Cannot_read_file_0:pa(5083,1,"Cannot_read_file_0_5083","Cannot read file '{0}'."),A_tuple_member_cannot_be_both_optional_and_rest:pa(5085,1,"A_tuple_member_cannot_be_both_optional_and_rest_5085","A tuple member cannot be both optional and rest."),A_labeled_tuple_element_is_declared_as_optional_with_a_question_mark_after_the_name_and_before_the_colon_rather_than_after_the_type:pa(5086,1,"A_labeled_tuple_element_is_declared_as_optional_with_a_question_mark_after_the_name_and_before_the_c_5086","A labeled tuple element is declared as optional with a question mark after the name and before the colon, rather than after the type."),A_labeled_tuple_element_is_declared_as_rest_with_a_before_the_name_rather_than_before_the_type:pa(5087,1,"A_labeled_tuple_element_is_declared_as_rest_with_a_before_the_name_rather_than_before_the_type_5087","A labeled tuple element is declared as rest with a '...' before the name, rather than before the type."),The_inferred_type_of_0_references_a_type_with_a_cyclic_structure_which_cannot_be_trivially_serialized_A_type_annotation_is_necessary:pa(5088,1,"The_inferred_type_of_0_references_a_type_with_a_cyclic_structure_which_cannot_be_trivially_serialize_5088","The inferred type of '{0}' references a type with a cyclic structure which cannot be trivially serialized. A type annotation is necessary."),Option_0_cannot_be_specified_when_option_jsx_is_1:pa(5089,1,"Option_0_cannot_be_specified_when_option_jsx_is_1_5089","Option '{0}' cannot be specified when option 'jsx' is '{1}'."),Non_relative_paths_are_not_allowed_when_baseUrl_is_not_set_Did_you_forget_a_leading_Slash:pa(5090,1,"Non_relative_paths_are_not_allowed_when_baseUrl_is_not_set_Did_you_forget_a_leading_Slash_5090","Non-relative paths are not allowed when 'baseUrl' is not set. Did you forget a leading './'?"),Option_preserveConstEnums_cannot_be_disabled_when_0_is_enabled:pa(5091,1,"Option_preserveConstEnums_cannot_be_disabled_when_0_is_enabled_5091","Option 'preserveConstEnums' cannot be disabled when '{0}' is enabled."),The_root_value_of_a_0_file_must_be_an_object:pa(5092,1,"The_root_value_of_a_0_file_must_be_an_object_5092","The root value of a '{0}' file must be an object."),Compiler_option_0_may_only_be_used_with_build:pa(5093,1,"Compiler_option_0_may_only_be_used_with_build_5093","Compiler option '--{0}' may only be used with '--build'."),Compiler_option_0_may_not_be_used_with_build:pa(5094,1,"Compiler_option_0_may_not_be_used_with_build_5094","Compiler option '--{0}' may not be used with '--build'."),Option_0_can_only_be_used_when_module_is_set_to_preserve_or_to_es2015_or_later:pa(5095,1,"Option_0_can_only_be_used_when_module_is_set_to_preserve_or_to_es2015_or_later_5095","Option '{0}' can only be used when 'module' is set to 'preserve' or to 'es2015' or later."),Option_allowImportingTsExtensions_can_only_be_used_when_either_noEmit_or_emitDeclarationOnly_is_set:pa(5096,1,"Option_allowImportingTsExtensions_can_only_be_used_when_either_noEmit_or_emitDeclarationOnly_is_set_5096","Option 'allowImportingTsExtensions' can only be used when either 'noEmit' or 'emitDeclarationOnly' is set."),An_import_path_can_only_end_with_a_0_extension_when_allowImportingTsExtensions_is_enabled:pa(5097,1,"An_import_path_can_only_end_with_a_0_extension_when_allowImportingTsExtensions_is_enabled_5097","An import path can only end with a '{0}' extension when 'allowImportingTsExtensions' is enabled."),Option_0_can_only_be_used_when_moduleResolution_is_set_to_node16_nodenext_or_bundler:pa(5098,1,"Option_0_can_only_be_used_when_moduleResolution_is_set_to_node16_nodenext_or_bundler_5098","Option '{0}' can only be used when 'moduleResolution' is set to 'node16', 'nodenext', or 'bundler'."),Option_0_is_deprecated_and_will_stop_functioning_in_TypeScript_1_Specify_compilerOption_ignoreDeprecations_Colon_2_to_silence_this_error:pa(5101,1,"Option_0_is_deprecated_and_will_stop_functioning_in_TypeScript_1_Specify_compilerOption_ignoreDeprec_5101","Option '{0}' is deprecated and will stop functioning in TypeScript {1}. Specify compilerOption '\"ignoreDeprecations\": \"{2}\"' to silence this error."),Option_0_has_been_removed_Please_remove_it_from_your_configuration:pa(5102,1,"Option_0_has_been_removed_Please_remove_it_from_your_configuration_5102","Option '{0}' has been removed. Please remove it from your configuration."),Invalid_value_for_ignoreDeprecations:pa(5103,1,"Invalid_value_for_ignoreDeprecations_5103","Invalid value for '--ignoreDeprecations'."),Option_0_is_redundant_and_cannot_be_specified_with_option_1:pa(5104,1,"Option_0_is_redundant_and_cannot_be_specified_with_option_1_5104","Option '{0}' is redundant and cannot be specified with option '{1}'."),Option_verbatimModuleSyntax_cannot_be_used_when_module_is_set_to_UMD_AMD_or_System:pa(5105,1,"Option_verbatimModuleSyntax_cannot_be_used_when_module_is_set_to_UMD_AMD_or_System_5105","Option 'verbatimModuleSyntax' cannot be used when 'module' is set to 'UMD', 'AMD', or 'System'."),Use_0_instead:pa(5106,3,"Use_0_instead_5106","Use '{0}' instead."),Option_0_1_is_deprecated_and_will_stop_functioning_in_TypeScript_2_Specify_compilerOption_ignoreDeprecations_Colon_3_to_silence_this_error:pa(5107,1,"Option_0_1_is_deprecated_and_will_stop_functioning_in_TypeScript_2_Specify_compilerOption_ignoreDepr_5107","Option '{0}={1}' is deprecated and will stop functioning in TypeScript {2}. Specify compilerOption '\"ignoreDeprecations\": \"{3}\"' to silence this error."),Option_0_1_has_been_removed_Please_remove_it_from_your_configuration:pa(5108,1,"Option_0_1_has_been_removed_Please_remove_it_from_your_configuration_5108","Option '{0}={1}' has been removed. Please remove it from your configuration."),Option_moduleResolution_must_be_set_to_0_or_left_unspecified_when_option_module_is_set_to_1:pa(5109,1,"Option_moduleResolution_must_be_set_to_0_or_left_unspecified_when_option_module_is_set_to_1_5109","Option 'moduleResolution' must be set to '{0}' (or left unspecified) when option 'module' is set to '{1}'."),Option_module_must_be_set_to_0_when_option_moduleResolution_is_set_to_1:pa(5110,1,"Option_module_must_be_set_to_0_when_option_moduleResolution_is_set_to_1_5110","Option 'module' must be set to '{0}' when option 'moduleResolution' is set to '{1}'."),Generates_a_sourcemap_for_each_corresponding_d_ts_file:pa(6e3,3,"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:pa(6001,3,"Concatenate_and_emit_output_to_single_file_6001","Concatenate and emit output to single file."),Generates_corresponding_d_ts_file:pa(6002,3,"Generates_corresponding_d_ts_file_6002","Generates corresponding '.d.ts' file."),Specify_the_location_where_debugger_should_locate_TypeScript_files_instead_of_source_locations:pa(6004,3,"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:pa(6005,3,"Watch_input_files_6005","Watch input files."),Redirect_output_structure_to_the_directory:pa(6006,3,"Redirect_output_structure_to_the_directory_6006","Redirect output structure to the directory."),Do_not_erase_const_enum_declarations_in_generated_code:pa(6007,3,"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:pa(6008,3,"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:pa(6009,3,"Do_not_emit_comments_to_output_6009","Do not emit comments to output."),Do_not_emit_outputs:pa(6010,3,"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:pa(6011,3,"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:pa(6012,3,"Skip_type_checking_of_declaration_files_6012","Skip type checking of declaration files."),Do_not_resolve_the_real_path_of_symlinks:pa(6013,3,"Do_not_resolve_the_real_path_of_symlinks_6013","Do not resolve the real path of symlinks."),Only_emit_d_ts_declaration_files:pa(6014,3,"Only_emit_d_ts_declaration_files_6014","Only emit '.d.ts' declaration files."),Specify_ECMAScript_target_version:pa(6015,3,"Specify_ECMAScript_target_version_6015","Specify ECMAScript target version."),Specify_module_code_generation:pa(6016,3,"Specify_module_code_generation_6016","Specify module code generation."),Print_this_message:pa(6017,3,"Print_this_message_6017","Print this message."),Print_the_compiler_s_version:pa(6019,3,"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:pa(6020,3,"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:pa(6023,3,"Syntax_Colon_0_6023","Syntax: {0}"),options:pa(6024,3,"options_6024","options"),file:pa(6025,3,"file_6025","file"),Examples_Colon_0:pa(6026,3,"Examples_Colon_0_6026","Examples: {0}"),Options_Colon:pa(6027,3,"Options_Colon_6027","Options:"),Version_0:pa(6029,3,"Version_0_6029","Version {0}"),Insert_command_line_options_and_files_from_a_file:pa(6030,3,"Insert_command_line_options_and_files_from_a_file_6030","Insert command line options and files from a file."),Starting_compilation_in_watch_mode:pa(6031,3,"Starting_compilation_in_watch_mode_6031","Starting compilation in watch mode..."),File_change_detected_Starting_incremental_compilation:pa(6032,3,"File_change_detected_Starting_incremental_compilation_6032","File change detected. Starting incremental compilation..."),KIND:pa(6034,3,"KIND_6034","KIND"),FILE:pa(6035,3,"FILE_6035","FILE"),VERSION:pa(6036,3,"VERSION_6036","VERSION"),LOCATION:pa(6037,3,"LOCATION_6037","LOCATION"),DIRECTORY:pa(6038,3,"DIRECTORY_6038","DIRECTORY"),STRATEGY:pa(6039,3,"STRATEGY_6039","STRATEGY"),FILE_OR_DIRECTORY:pa(6040,3,"FILE_OR_DIRECTORY_6040","FILE OR DIRECTORY"),Errors_Files:pa(6041,3,"Errors_Files_6041","Errors Files"),Generates_corresponding_map_file:pa(6043,3,"Generates_corresponding_map_file_6043","Generates corresponding '.map' file."),Compiler_option_0_expects_an_argument:pa(6044,1,"Compiler_option_0_expects_an_argument_6044","Compiler option '{0}' expects an argument."),Unterminated_quoted_string_in_response_file_0:pa(6045,1,"Unterminated_quoted_string_in_response_file_0_6045","Unterminated quoted string in response file '{0}'."),Argument_for_0_option_must_be_Colon_1:pa(6046,1,"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:pa(6048,1,"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}'."),Unable_to_open_file_0:pa(6050,1,"Unable_to_open_file_0_6050","Unable to open file '{0}'."),Corrupted_locale_file_0:pa(6051,1,"Corrupted_locale_file_0_6051","Corrupted locale file {0}."),Raise_error_on_expressions_and_declarations_with_an_implied_any_type:pa(6052,3,"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:pa(6053,1,"File_0_not_found_6053","File '{0}' not found."),File_0_has_an_unsupported_extension_The_only_supported_extensions_are_1:pa(6054,1,"File_0_has_an_unsupported_extension_The_only_supported_extensions_are_1_6054","File '{0}' has an unsupported extension. The only supported extensions are {1}."),Suppress_noImplicitAny_errors_for_indexing_objects_lacking_index_signatures:pa(6055,3,"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:pa(6056,3,"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:pa(6058,3,"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:pa(6059,1,"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:pa(6060,3,"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:pa(6061,3,"NEWLINE_6061","NEWLINE"),Option_0_can_only_be_specified_in_tsconfig_json_file_or_set_to_null_on_command_line:pa(6064,1,"Option_0_can_only_be_specified_in_tsconfig_json_file_or_set_to_null_on_command_line_6064","Option '{0}' can only be specified in 'tsconfig.json' file or set to 'null' on command line."),Enables_experimental_support_for_ES7_decorators:pa(6065,3,"Enables_experimental_support_for_ES7_decorators_6065","Enables experimental support for ES7 decorators."),Enables_experimental_support_for_emitting_type_metadata_for_decorators:pa(6066,3,"Enables_experimental_support_for_emitting_type_metadata_for_decorators_6066","Enables experimental support for emitting type metadata for decorators."),Initializes_a_TypeScript_project_and_creates_a_tsconfig_json_file:pa(6070,3,"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:pa(6071,3,"Successfully_created_a_tsconfig_json_file_6071","Successfully created a tsconfig.json file."),Suppress_excess_property_checks_for_object_literals:pa(6072,3,"Suppress_excess_property_checks_for_object_literals_6072","Suppress excess property checks for object literals."),Stylize_errors_and_messages_using_color_and_context_experimental:pa(6073,3,"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:pa(6074,3,"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:pa(6075,3,"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:pa(6076,3,"Report_errors_for_fallthrough_cases_in_switch_statement_6076","Report errors for fallthrough cases in switch statement."),Do_not_report_errors_on_unreachable_code:pa(6077,3,"Do_not_report_errors_on_unreachable_code_6077","Do not report errors on unreachable code."),Disallow_inconsistently_cased_references_to_the_same_file:pa(6078,3,"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:pa(6079,3,"Specify_library_files_to_be_included_in_the_compilation_6079","Specify library files to be included in the compilation."),Specify_JSX_code_generation:pa(6080,3,"Specify_JSX_code_generation_6080","Specify JSX code generation."),Only_amd_and_system_modules_are_supported_alongside_0:pa(6082,1,"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:pa(6083,3,"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:pa(6084,3,"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:pa(6085,3,"Enable_tracing_of_the_name_resolution_process_6085","Enable tracing of the name resolution process."),Resolving_module_0_from_1:pa(6086,3,"Resolving_module_0_from_1_6086","======== Resolving module '{0}' from '{1}'. ========"),Explicitly_specified_module_resolution_kind_Colon_0:pa(6087,3,"Explicitly_specified_module_resolution_kind_Colon_0_6087","Explicitly specified module resolution kind: '{0}'."),Module_resolution_kind_is_not_specified_using_0:pa(6088,3,"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:pa(6089,3,"Module_name_0_was_successfully_resolved_to_1_6089","======== Module name '{0}' was successfully resolved to '{1}'. ========"),Module_name_0_was_not_resolved:pa(6090,3,"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:pa(6091,3,"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:pa(6092,3,"Module_name_0_matched_pattern_1_6092","Module name '{0}', matched pattern '{1}'."),Trying_substitution_0_candidate_module_location_Colon_1:pa(6093,3,"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:pa(6094,3,"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_types_Colon_1:pa(6095,3,"Loading_module_as_file_Slash_folder_candidate_module_location_0_target_file_types_Colon_1_6095","Loading module as file / folder, candidate module location '{0}', target file types: {1}."),File_0_does_not_exist:pa(6096,3,"File_0_does_not_exist_6096","File '{0}' does not exist."),File_0_exists_use_it_as_a_name_resolution_result:pa(6097,3,"File_0_exists_use_it_as_a_name_resolution_result_6097","File '{0}' exists - use it as a name resolution result."),Loading_module_0_from_node_modules_folder_target_file_types_Colon_1:pa(6098,3,"Loading_module_0_from_node_modules_folder_target_file_types_Colon_1_6098","Loading module '{0}' from 'node_modules' folder, target file types: {1}."),Found_package_json_at_0:pa(6099,3,"Found_package_json_at_0_6099","Found 'package.json' at '{0}'."),package_json_does_not_have_a_0_field:pa(6100,3,"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:pa(6101,3,"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:pa(6102,3,"Allow_javascript_files_to_be_compiled_6102","Allow javascript files to be compiled."),Checking_if_0_is_the_longest_matching_prefix_for_1_2:pa(6104,3,"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:pa(6105,3,"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:pa(6106,3,"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:pa(6107,3,"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:pa(6108,3,"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:pa(6109,3,"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:pa(6110,3,"Trying_other_entries_in_rootDirs_6110","Trying other entries in 'rootDirs'."),Module_resolution_using_rootDirs_has_failed:pa(6111,3,"Module_resolution_using_rootDirs_has_failed_6111","Module resolution using 'rootDirs' has failed."),Do_not_emit_use_strict_directives_in_module_output:pa(6112,3,"Do_not_emit_use_strict_directives_in_module_output_6112","Do not emit 'use strict' directives in module output."),Enable_strict_null_checks:pa(6113,3,"Enable_strict_null_checks_6113","Enable strict null checks."),Unknown_option_excludes_Did_you_mean_exclude:pa(6114,1,"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:pa(6115,3,"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:pa(6116,3,"Resolving_type_reference_directive_0_containing_file_1_root_directory_2_6116","======== Resolving type reference directive '{0}', containing file '{1}', root directory '{2}'. ========"),Type_reference_directive_0_was_successfully_resolved_to_1_primary_Colon_2:pa(6119,3,"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:pa(6120,3,"Type_reference_directive_0_was_not_resolved_6120","======== Type reference directive '{0}' was not resolved. ========"),Resolving_with_primary_search_path_0:pa(6121,3,"Resolving_with_primary_search_path_0_6121","Resolving with primary search path '{0}'."),Root_directory_cannot_be_determined_skipping_primary_search_paths:pa(6122,3,"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:pa(6123,3,"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:pa(6124,3,"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:pa(6125,3,"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:pa(6126,3,"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:pa(6127,3,"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:pa(6128,3,"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:pa(6130,3,"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:pa(6131,1,"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:pa(6132,3,"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:pa(6133,1,"_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:pa(6134,3,"Report_errors_on_unused_locals_6134","Report errors on unused locals."),Report_errors_on_unused_parameters:pa(6135,3,"Report_errors_on_unused_parameters_6135","Report errors on unused parameters."),The_maximum_dependency_depth_to_search_under_node_modules_and_load_JavaScript_files:pa(6136,3,"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:pa(6137,1,"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:pa(6138,1,"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:pa(6139,3,"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:pa(6140,1,"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:pa(6141,3,"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:pa(6142,1,"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:pa(6144,3,"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}'."),Specify_the_JSX_factory_function_to_use_when_targeting_react_JSX_emit_e_g_React_createElement_or_h:pa(6146,3,"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:pa(6147,3,"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:pa(6148,3,"Directory_0_does_not_exist_skipping_all_lookups_in_it_6148","Directory '{0}' does not exist, skipping all lookups in it."),Show_diagnostic_information:pa(6149,3,"Show_diagnostic_information_6149","Show diagnostic information."),Show_verbose_diagnostic_information:pa(6150,3,"Show_verbose_diagnostic_information_6150","Show verbose diagnostic information."),Emit_a_single_file_with_source_maps_instead_of_having_a_separate_file:pa(6151,3,"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:pa(6152,3,"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:pa(6153,3,"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:pa(6154,3,"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:pa(6155,3,"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:pa(6156,3,"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:pa(6157,3,"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:pa(6158,3,"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:pa(6159,3,"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:pa(6160,3,"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:pa(6161,3,"List_of_folders_to_include_type_definitions_from_6161","List of folders to include type definitions from."),Disable_size_limitations_on_JavaScript_projects:pa(6162,3,"Disable_size_limitations_on_JavaScript_projects_6162","Disable size limitations on JavaScript projects."),The_character_set_of_the_input_files:pa(6163,3,"The_character_set_of_the_input_files_6163","The character set of the input files."),Skipping_module_0_that_looks_like_an_absolute_URI_target_file_types_Colon_1:pa(6164,3,"Skipping_module_0_that_looks_like_an_absolute_URI_target_file_types_Colon_1_6164","Skipping module '{0}' that looks like an absolute URI, target file types: {1}."),Do_not_truncate_error_messages:pa(6165,3,"Do_not_truncate_error_messages_6165","Do not truncate error messages."),Output_directory_for_generated_declaration_files:pa(6166,3,"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:pa(6167,3,"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:pa(6168,3,"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:pa(6169,3,"Show_all_compiler_options_6169","Show all compiler options."),Deprecated_Use_outFile_instead_Concatenate_and_emit_output_to_single_file:pa(6170,3,"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:pa(6171,3,"Command_line_Options_6171","Command-line Options"),Provide_full_support_for_iterables_in_for_of_spread_and_destructuring_when_targeting_ES5:pa(6179,3,"Provide_full_support_for_iterables_in_for_of_spread_and_destructuring_when_targeting_ES5_6179","Provide full support for iterables in 'for-of', spread, and destructuring when targeting 'ES5'."),Enable_all_strict_type_checking_options:pa(6180,3,"Enable_all_strict_type_checking_options_6180","Enable all strict type-checking options."),Scoped_package_detected_looking_in_0:pa(6182,3,"Scoped_package_detected_looking_in_0_6182","Scoped package detected, looking in '{0}'"),Reusing_resolution_of_module_0_from_1_of_old_program_it_was_successfully_resolved_to_2:pa(6183,3,"Reusing_resolution_of_module_0_from_1_of_old_program_it_was_successfully_resolved_to_2_6183","Reusing resolution of module '{0}' from '{1}' of old program, it was successfully resolved to '{2}'."),Reusing_resolution_of_module_0_from_1_of_old_program_it_was_successfully_resolved_to_2_with_Package_ID_3:pa(6184,3,"Reusing_resolution_of_module_0_from_1_of_old_program_it_was_successfully_resolved_to_2_with_Package__6184","Reusing resolution of module '{0}' from '{1}' of old program, it was successfully resolved to '{2}' with Package ID '{3}'."),Enable_strict_checking_of_function_types:pa(6186,3,"Enable_strict_checking_of_function_types_6186","Enable strict checking of function types."),Enable_strict_checking_of_property_initialization_in_classes:pa(6187,3,"Enable_strict_checking_of_property_initialization_in_classes_6187","Enable strict checking of property initialization in classes."),Numeric_separators_are_not_allowed_here:pa(6188,1,"Numeric_separators_are_not_allowed_here_6188","Numeric separators are not allowed here."),Multiple_consecutive_numeric_separators_are_not_permitted:pa(6189,1,"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:pa(6191,3,"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:pa(6192,1,"All_imports_in_import_declaration_are_unused_6192","All imports in import declaration are unused.",!0),Found_1_error_Watching_for_file_changes:pa(6193,3,"Found_1_error_Watching_for_file_changes_6193","Found 1 error. Watching for file changes."),Found_0_errors_Watching_for_file_changes:pa(6194,3,"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:pa(6195,3,"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:pa(6196,1,"_0_is_declared_but_never_used_6196","'{0}' is declared but never used.",!0),Include_modules_imported_with_json_extension:pa(6197,3,"Include_modules_imported_with_json_extension_6197","Include modules imported with '.json' extension"),All_destructured_elements_are_unused:pa(6198,1,"All_destructured_elements_are_unused_6198","All destructured elements are unused.",!0),All_variables_are_unused:pa(6199,1,"All_variables_are_unused_6199","All variables are unused.",!0),Definitions_of_the_following_identifiers_conflict_with_those_in_another_file_Colon_0:pa(6200,1,"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:pa(6201,3,"Conflicts_are_in_this_file_6201","Conflicts are in this file."),Project_references_may_not_form_a_circular_graph_Cycle_detected_Colon_0:pa(6202,1,"Project_references_may_not_form_a_circular_graph_Cycle_detected_Colon_0_6202","Project references may not form a circular graph. Cycle detected: {0}"),_0_was_also_declared_here:pa(6203,3,"_0_was_also_declared_here_6203","'{0}' was also declared here."),and_here:pa(6204,3,"and_here_6204","and here."),All_type_parameters_are_unused:pa(6205,1,"All_type_parameters_are_unused_6205","All type parameters are unused."),package_json_has_a_typesVersions_field_with_version_specific_path_mappings:pa(6206,3,"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:pa(6207,3,"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:pa(6208,3,"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:pa(6209,3,"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:pa(6210,3,"An_argument_for_0_was_not_provided_6210","An argument for '{0}' was not provided."),An_argument_matching_this_binding_pattern_was_not_provided:pa(6211,3,"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:pa(6212,3,"Did_you_mean_to_call_this_expression_6212","Did you mean to call this expression?"),Did_you_mean_to_use_new_with_this_expression:pa(6213,3,"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:pa(6214,3,"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:pa(6215,3,"Using_compiler_options_of_project_reference_redirect_0_6215","Using compiler options of project reference redirect '{0}'."),Found_1_error:pa(6216,3,"Found_1_error_6216","Found 1 error."),Found_0_errors:pa(6217,3,"Found_0_errors_6217","Found {0} errors."),Module_name_0_was_successfully_resolved_to_1_with_Package_ID_2:pa(6218,3,"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:pa(6219,3,"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:pa(6220,3,"package_json_had_a_falsy_0_field_6220","'package.json' had a falsy '{0}' field."),Disable_use_of_source_files_instead_of_declaration_files_from_referenced_projects:pa(6221,3,"Disable_use_of_source_files_instead_of_declaration_files_from_referenced_projects_6221","Disable use of source files instead of declaration files from referenced projects."),Emit_class_fields_with_Define_instead_of_Set:pa(6222,3,"Emit_class_fields_with_Define_instead_of_Set_6222","Emit class fields with Define instead of Set."),Generates_a_CPU_profile:pa(6223,3,"Generates_a_CPU_profile_6223","Generates a CPU profile."),Disable_solution_searching_for_this_project:pa(6224,3,"Disable_solution_searching_for_this_project_6224","Disable solution searching for this project."),Specify_strategy_for_watching_file_Colon_FixedPollingInterval_default_PriorityPollingInterval_DynamicPriorityPolling_FixedChunkSizePolling_UseFsEvents_UseFsEventsOnParentDirectory:pa(6225,3,"Specify_strategy_for_watching_file_Colon_FixedPollingInterval_default_PriorityPollingInterval_Dynami_6225","Specify strategy for watching file: 'FixedPollingInterval' (default), 'PriorityPollingInterval', 'DynamicPriorityPolling', 'FixedChunkSizePolling', 'UseFsEvents', 'UseFsEventsOnParentDirectory'."),Specify_strategy_for_watching_directory_on_platforms_that_don_t_support_recursive_watching_natively_Colon_UseFsEvents_default_FixedPollingInterval_DynamicPriorityPolling_FixedChunkSizePolling:pa(6226,3,"Specify_strategy_for_watching_directory_on_platforms_that_don_t_support_recursive_watching_natively__6226","Specify strategy for watching directory on platforms that don't support recursive watching natively: 'UseFsEvents' (default), 'FixedPollingInterval', 'DynamicPriorityPolling', 'FixedChunkSizePolling'."),Specify_strategy_for_creating_a_polling_watch_when_it_fails_to_create_using_file_system_events_Colon_FixedInterval_default_PriorityInterval_DynamicPriority_FixedChunkSize:pa(6227,3,"Specify_strategy_for_creating_a_polling_watch_when_it_fails_to_create_using_file_system_events_Colon_6227","Specify strategy for creating a polling watch when it fails to create using file system events: 'FixedInterval' (default), 'PriorityInterval', 'DynamicPriority', 'FixedChunkSize'."),Tag_0_expects_at_least_1_arguments_but_the_JSX_factory_2_provides_at_most_3:pa(6229,1,"Tag_0_expects_at_least_1_arguments_but_the_JSX_factory_2_provides_at_most_3_6229","Tag '{0}' expects at least '{1}' arguments, but the JSX factory '{2}' provides at most '{3}'."),Option_0_can_only_be_specified_in_tsconfig_json_file_or_set_to_false_or_null_on_command_line:pa(6230,1,"Option_0_can_only_be_specified_in_tsconfig_json_file_or_set_to_false_or_null_on_command_line_6230","Option '{0}' can only be specified in 'tsconfig.json' file or set to 'false' or 'null' on command line."),Could_not_resolve_the_path_0_with_the_extensions_Colon_1:pa(6231,1,"Could_not_resolve_the_path_0_with_the_extensions_Colon_1_6231","Could not resolve the path '{0}' with the extensions: {1}."),Declaration_augments_declaration_in_another_file_This_cannot_be_serialized:pa(6232,1,"Declaration_augments_declaration_in_another_file_This_cannot_be_serialized_6232","Declaration augments declaration in another file. This cannot be serialized."),This_is_the_declaration_being_augmented_Consider_moving_the_augmenting_declaration_into_the_same_file:pa(6233,1,"This_is_the_declaration_being_augmented_Consider_moving_the_augmenting_declaration_into_the_same_fil_6233","This is the declaration being augmented. Consider moving the augmenting declaration into the same file."),This_expression_is_not_callable_because_it_is_a_get_accessor_Did_you_mean_to_use_it_without:pa(6234,1,"This_expression_is_not_callable_because_it_is_a_get_accessor_Did_you_mean_to_use_it_without_6234","This expression is not callable because it is a 'get' accessor. Did you mean to use it without '()'?"),Disable_loading_referenced_projects:pa(6235,3,"Disable_loading_referenced_projects_6235","Disable loading referenced projects."),Arguments_for_the_rest_parameter_0_were_not_provided:pa(6236,1,"Arguments_for_the_rest_parameter_0_were_not_provided_6236","Arguments for the rest parameter '{0}' were not provided."),Generates_an_event_trace_and_a_list_of_types:pa(6237,3,"Generates_an_event_trace_and_a_list_of_types_6237","Generates an event trace and a list of types."),Specify_the_module_specifier_to_be_used_to_import_the_jsx_and_jsxs_factory_functions_from_eg_react:pa(6238,1,"Specify_the_module_specifier_to_be_used_to_import_the_jsx_and_jsxs_factory_functions_from_eg_react_6238","Specify the module specifier to be used to import the 'jsx' and 'jsxs' factory functions from. eg, react"),File_0_exists_according_to_earlier_cached_lookups:pa(6239,3,"File_0_exists_according_to_earlier_cached_lookups_6239","File '{0}' exists according to earlier cached lookups."),File_0_does_not_exist_according_to_earlier_cached_lookups:pa(6240,3,"File_0_does_not_exist_according_to_earlier_cached_lookups_6240","File '{0}' does not exist according to earlier cached lookups."),Resolution_for_type_reference_directive_0_was_found_in_cache_from_location_1:pa(6241,3,"Resolution_for_type_reference_directive_0_was_found_in_cache_from_location_1_6241","Resolution for type reference directive '{0}' was found in cache from location '{1}'."),Resolving_type_reference_directive_0_containing_file_1:pa(6242,3,"Resolving_type_reference_directive_0_containing_file_1_6242","======== Resolving type reference directive '{0}', containing file '{1}'. ========"),Interpret_optional_property_types_as_written_rather_than_adding_undefined:pa(6243,3,"Interpret_optional_property_types_as_written_rather_than_adding_undefined_6243","Interpret optional property types as written, rather than adding 'undefined'."),Modules:pa(6244,3,"Modules_6244","Modules"),File_Management:pa(6245,3,"File_Management_6245","File Management"),Emit:pa(6246,3,"Emit_6246","Emit"),JavaScript_Support:pa(6247,3,"JavaScript_Support_6247","JavaScript Support"),Type_Checking:pa(6248,3,"Type_Checking_6248","Type Checking"),Editor_Support:pa(6249,3,"Editor_Support_6249","Editor Support"),Watch_and_Build_Modes:pa(6250,3,"Watch_and_Build_Modes_6250","Watch and Build Modes"),Compiler_Diagnostics:pa(6251,3,"Compiler_Diagnostics_6251","Compiler Diagnostics"),Interop_Constraints:pa(6252,3,"Interop_Constraints_6252","Interop Constraints"),Backwards_Compatibility:pa(6253,3,"Backwards_Compatibility_6253","Backwards Compatibility"),Language_and_Environment:pa(6254,3,"Language_and_Environment_6254","Language and Environment"),Projects:pa(6255,3,"Projects_6255","Projects"),Output_Formatting:pa(6256,3,"Output_Formatting_6256","Output Formatting"),Completeness:pa(6257,3,"Completeness_6257","Completeness"),_0_should_be_set_inside_the_compilerOptions_object_of_the_config_json_file:pa(6258,1,"_0_should_be_set_inside_the_compilerOptions_object_of_the_config_json_file_6258","'{0}' should be set inside the 'compilerOptions' object of the config json file"),Found_1_error_in_0:pa(6259,3,"Found_1_error_in_0_6259","Found 1 error in {0}"),Found_0_errors_in_the_same_file_starting_at_Colon_1:pa(6260,3,"Found_0_errors_in_the_same_file_starting_at_Colon_1_6260","Found {0} errors in the same file, starting at: {1}"),Found_0_errors_in_1_files:pa(6261,3,"Found_0_errors_in_1_files_6261","Found {0} errors in {1} files."),File_name_0_has_a_1_extension_looking_up_2_instead:pa(6262,3,"File_name_0_has_a_1_extension_looking_up_2_instead_6262","File name '{0}' has a '{1}' extension - looking up '{2}' instead."),Module_0_was_resolved_to_1_but_allowArbitraryExtensions_is_not_set:pa(6263,1,"Module_0_was_resolved_to_1_but_allowArbitraryExtensions_is_not_set_6263","Module '{0}' was resolved to '{1}', but '--allowArbitraryExtensions' is not set."),Enable_importing_files_with_any_extension_provided_a_declaration_file_is_present:pa(6264,3,"Enable_importing_files_with_any_extension_provided_a_declaration_file_is_present_6264","Enable importing files with any extension, provided a declaration file is present."),Resolving_type_reference_directive_for_program_that_specifies_custom_typeRoots_skipping_lookup_in_node_modules_folder:pa(6265,3,"Resolving_type_reference_directive_for_program_that_specifies_custom_typeRoots_skipping_lookup_in_no_6265","Resolving type reference directive for program that specifies custom typeRoots, skipping lookup in 'node_modules' folder."),Option_0_can_only_be_specified_on_command_line:pa(6266,1,"Option_0_can_only_be_specified_on_command_line_6266","Option '{0}' can only be specified on command line."),Directory_0_has_no_containing_package_json_scope_Imports_will_not_resolve:pa(6270,3,"Directory_0_has_no_containing_package_json_scope_Imports_will_not_resolve_6270","Directory '{0}' has no containing package.json scope. Imports will not resolve."),Import_specifier_0_does_not_exist_in_package_json_scope_at_path_1:pa(6271,3,"Import_specifier_0_does_not_exist_in_package_json_scope_at_path_1_6271","Import specifier '{0}' does not exist in package.json scope at path '{1}'."),Invalid_import_specifier_0_has_no_possible_resolutions:pa(6272,3,"Invalid_import_specifier_0_has_no_possible_resolutions_6272","Invalid import specifier '{0}' has no possible resolutions."),package_json_scope_0_has_no_imports_defined:pa(6273,3,"package_json_scope_0_has_no_imports_defined_6273","package.json scope '{0}' has no imports defined."),package_json_scope_0_explicitly_maps_specifier_1_to_null:pa(6274,3,"package_json_scope_0_explicitly_maps_specifier_1_to_null_6274","package.json scope '{0}' explicitly maps specifier '{1}' to null."),package_json_scope_0_has_invalid_type_for_target_of_specifier_1:pa(6275,3,"package_json_scope_0_has_invalid_type_for_target_of_specifier_1_6275","package.json scope '{0}' has invalid type for target of specifier '{1}'"),Export_specifier_0_does_not_exist_in_package_json_scope_at_path_1:pa(6276,3,"Export_specifier_0_does_not_exist_in_package_json_scope_at_path_1_6276","Export specifier '{0}' does not exist in package.json scope at path '{1}'."),Resolution_of_non_relative_name_failed_trying_with_modern_Node_resolution_features_disabled_to_see_if_npm_library_needs_configuration_update:pa(6277,3,"Resolution_of_non_relative_name_failed_trying_with_modern_Node_resolution_features_disabled_to_see_i_6277","Resolution of non-relative name failed; trying with modern Node resolution features disabled to see if npm library needs configuration update."),There_are_types_at_0_but_this_result_could_not_be_resolved_when_respecting_package_json_exports_The_1_library_may_need_to_update_its_package_json_or_typings:pa(6278,3,"There_are_types_at_0_but_this_result_could_not_be_resolved_when_respecting_package_json_exports_The__6278","There are types at '{0}', but this result could not be resolved when respecting package.json \"exports\". The '{1}' library may need to update its package.json or typings."),Resolution_of_non_relative_name_failed_trying_with_moduleResolution_bundler_to_see_if_project_may_need_configuration_update:pa(6279,3,"Resolution_of_non_relative_name_failed_trying_with_moduleResolution_bundler_to_see_if_project_may_ne_6279","Resolution of non-relative name failed; trying with '--moduleResolution bundler' to see if project may need configuration update."),There_are_types_at_0_but_this_result_could_not_be_resolved_under_your_current_moduleResolution_setting_Consider_updating_to_node16_nodenext_or_bundler:pa(6280,3,"There_are_types_at_0_but_this_result_could_not_be_resolved_under_your_current_moduleResolution_setti_6280","There are types at '{0}', but this result could not be resolved under your current 'moduleResolution' setting. Consider updating to 'node16', 'nodenext', or 'bundler'."),package_json_has_a_peerDependencies_field:pa(6281,3,"package_json_has_a_peerDependencies_field_6281","'package.json' has a 'peerDependencies' field."),Found_peerDependency_0_with_1_version:pa(6282,3,"Found_peerDependency_0_with_1_version_6282","Found peerDependency '{0}' with '{1}' version."),Failed_to_find_peerDependency_0:pa(6283,3,"Failed_to_find_peerDependency_0_6283","Failed to find peerDependency '{0}'."),File_Layout:pa(6284,3,"File_Layout_6284","File Layout"),Environment_Settings:pa(6285,3,"Environment_Settings_6285","Environment Settings"),See_also_https_Colon_Slash_Slashaka_ms_Slashtsconfig_Slashmodule:pa(6286,3,"See_also_https_Colon_Slash_Slashaka_ms_Slashtsconfig_Slashmodule_6286","See also https://aka.ms/tsconfig/module"),For_nodejs_Colon:pa(6287,3,"For_nodejs_Colon_6287","For nodejs:"),and_npm_install_D_types_Slashnode:pa(6290,3,"and_npm_install_D_types_Slashnode_6290","and npm install -D @types/node"),Other_Outputs:pa(6291,3,"Other_Outputs_6291","Other Outputs"),Stricter_Typechecking_Options:pa(6292,3,"Stricter_Typechecking_Options_6292","Stricter Typechecking Options"),Style_Options:pa(6293,3,"Style_Options_6293","Style Options"),Recommended_Options:pa(6294,3,"Recommended_Options_6294","Recommended Options"),Enable_project_compilation:pa(6302,3,"Enable_project_compilation_6302","Enable project compilation"),Composite_projects_may_not_disable_declaration_emit:pa(6304,1,"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:pa(6305,1,"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:pa(6306,1,"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:pa(6307,1,"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."),Referenced_project_0_may_not_disable_emit:pa(6310,1,"Referenced_project_0_may_not_disable_emit_6310","Referenced project '{0}' may not disable emit."),Project_0_is_out_of_date_because_output_1_is_older_than_input_2:pa(6350,3,"Project_0_is_out_of_date_because_output_1_is_older_than_input_2_6350","Project '{0}' is out of date because output '{1}' is older than input '{2}'"),Project_0_is_up_to_date_because_newest_input_1_is_older_than_output_2:pa(6351,3,"Project_0_is_up_to_date_because_newest_input_1_is_older_than_output_2_6351","Project '{0}' is up to date because newest input '{1}' is older than output '{2}'"),Project_0_is_out_of_date_because_output_file_1_does_not_exist:pa(6352,3,"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:pa(6353,3,"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:pa(6354,3,"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:pa(6355,3,"Projects_in_this_build_Colon_0_6355","Projects in this build: {0}"),A_non_dry_build_would_delete_the_following_files_Colon_0:pa(6356,3,"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:pa(6357,3,"A_non_dry_build_would_build_project_0_6357","A non-dry build would build project '{0}'"),Building_project_0:pa(6358,3,"Building_project_0_6358","Building project '{0}'..."),Updating_output_timestamps_of_project_0:pa(6359,3,"Updating_output_timestamps_of_project_0_6359","Updating output timestamps of project '{0}'..."),Project_0_is_up_to_date:pa(6361,3,"Project_0_is_up_to_date_6361","Project '{0}' is up to date"),Skipping_build_of_project_0_because_its_dependency_1_has_errors:pa(6362,3,"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:pa(6363,3,"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:pa(6364,3,"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:pa(6365,3,"Delete_the_outputs_of_all_projects_6365","Delete the outputs of all projects."),Show_what_would_be_built_or_deleted_if_specified_with_clean:pa(6367,3,"Show_what_would_be_built_or_deleted_if_specified_with_clean_6367","Show what would be built (or deleted, if specified with '--clean')"),Option_build_must_be_the_first_command_line_argument:pa(6369,1,"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:pa(6370,1,"Options_0_and_1_cannot_be_combined_6370","Options '{0}' and '{1}' cannot be combined."),Updating_unchanged_output_timestamps_of_project_0:pa(6371,3,"Updating_unchanged_output_timestamps_of_project_0_6371","Updating unchanged output timestamps of project '{0}'..."),A_non_dry_build_would_update_timestamps_for_output_of_project_0:pa(6374,3,"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}'"),Cannot_write_file_0_because_it_will_overwrite_tsbuildinfo_file_generated_by_referenced_project_1:pa(6377,1,"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}'"),Composite_projects_may_not_disable_incremental_compilation:pa(6379,1,"Composite_projects_may_not_disable_incremental_compilation_6379","Composite projects may not disable incremental compilation."),Specify_file_to_store_incremental_compilation_information:pa(6380,3,"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:pa(6381,3,"Project_0_is_out_of_date_because_output_for_it_was_generated_with_version_1_that_differs_with_curren_6381","Project '{0}' is out of date because output for it was generated with version '{1}' that differs with current version '{2}'"),Skipping_build_of_project_0_because_its_dependency_1_was_not_built:pa(6382,3,"Skipping_build_of_project_0_because_its_dependency_1_was_not_built_6382","Skipping build of project '{0}' because its dependency '{1}' was not built"),Project_0_can_t_be_built_because_its_dependency_1_was_not_built:pa(6383,3,"Project_0_can_t_be_built_because_its_dependency_1_was_not_built_6383","Project '{0}' can't be built because its dependency '{1}' was not built"),Have_recompiles_in_incremental_and_watch_assume_that_changes_within_a_file_will_only_affect_files_directly_depending_on_it:pa(6384,3,"Have_recompiles_in_incremental_and_watch_assume_that_changes_within_a_file_will_only_affect_files_di_6384","Have recompiles in '--incremental' and '--watch' assume that changes within a file will only affect files directly depending on it."),_0_is_deprecated:pa(6385,2,"_0_is_deprecated_6385","'{0}' is deprecated.",void 0,void 0,!0),Performance_timings_for_diagnostics_or_extendedDiagnostics_are_not_available_in_this_session_A_native_implementation_of_the_Web_Performance_API_could_not_be_found:pa(6386,3,"Performance_timings_for_diagnostics_or_extendedDiagnostics_are_not_available_in_this_session_A_nativ_6386","Performance timings for '--diagnostics' or '--extendedDiagnostics' are not available in this session. A native implementation of the Web Performance API could not be found."),The_signature_0_of_1_is_deprecated:pa(6387,2,"The_signature_0_of_1_is_deprecated_6387","The signature '{0}' of '{1}' is deprecated.",void 0,void 0,!0),Project_0_is_being_forcibly_rebuilt:pa(6388,3,"Project_0_is_being_forcibly_rebuilt_6388","Project '{0}' is being forcibly rebuilt"),Reusing_resolution_of_module_0_from_1_of_old_program_it_was_not_resolved:pa(6389,3,"Reusing_resolution_of_module_0_from_1_of_old_program_it_was_not_resolved_6389","Reusing resolution of module '{0}' from '{1}' of old program, it was not resolved."),Reusing_resolution_of_type_reference_directive_0_from_1_of_old_program_it_was_successfully_resolved_to_2:pa(6390,3,"Reusing_resolution_of_type_reference_directive_0_from_1_of_old_program_it_was_successfully_resolved__6390","Reusing resolution of type reference directive '{0}' from '{1}' of old program, it was successfully resolved to '{2}'."),Reusing_resolution_of_type_reference_directive_0_from_1_of_old_program_it_was_successfully_resolved_to_2_with_Package_ID_3:pa(6391,3,"Reusing_resolution_of_type_reference_directive_0_from_1_of_old_program_it_was_successfully_resolved__6391","Reusing resolution of type reference directive '{0}' from '{1}' of old program, it was successfully resolved to '{2}' with Package ID '{3}'."),Reusing_resolution_of_type_reference_directive_0_from_1_of_old_program_it_was_not_resolved:pa(6392,3,"Reusing_resolution_of_type_reference_directive_0_from_1_of_old_program_it_was_not_resolved_6392","Reusing resolution of type reference directive '{0}' from '{1}' of old program, it was not resolved."),Reusing_resolution_of_module_0_from_1_found_in_cache_from_location_2_it_was_successfully_resolved_to_3:pa(6393,3,"Reusing_resolution_of_module_0_from_1_found_in_cache_from_location_2_it_was_successfully_resolved_to_6393","Reusing resolution of module '{0}' from '{1}' found in cache from location '{2}', it was successfully resolved to '{3}'."),Reusing_resolution_of_module_0_from_1_found_in_cache_from_location_2_it_was_successfully_resolved_to_3_with_Package_ID_4:pa(6394,3,"Reusing_resolution_of_module_0_from_1_found_in_cache_from_location_2_it_was_successfully_resolved_to_6394","Reusing resolution of module '{0}' from '{1}' found in cache from location '{2}', it was successfully resolved to '{3}' with Package ID '{4}'."),Reusing_resolution_of_module_0_from_1_found_in_cache_from_location_2_it_was_not_resolved:pa(6395,3,"Reusing_resolution_of_module_0_from_1_found_in_cache_from_location_2_it_was_not_resolved_6395","Reusing resolution of module '{0}' from '{1}' found in cache from location '{2}', it was not resolved."),Reusing_resolution_of_type_reference_directive_0_from_1_found_in_cache_from_location_2_it_was_successfully_resolved_to_3:pa(6396,3,"Reusing_resolution_of_type_reference_directive_0_from_1_found_in_cache_from_location_2_it_was_succes_6396","Reusing resolution of type reference directive '{0}' from '{1}' found in cache from location '{2}', it was successfully resolved to '{3}'."),Reusing_resolution_of_type_reference_directive_0_from_1_found_in_cache_from_location_2_it_was_successfully_resolved_to_3_with_Package_ID_4:pa(6397,3,"Reusing_resolution_of_type_reference_directive_0_from_1_found_in_cache_from_location_2_it_was_succes_6397","Reusing resolution of type reference directive '{0}' from '{1}' found in cache from location '{2}', it was successfully resolved to '{3}' with Package ID '{4}'."),Reusing_resolution_of_type_reference_directive_0_from_1_found_in_cache_from_location_2_it_was_not_resolved:pa(6398,3,"Reusing_resolution_of_type_reference_directive_0_from_1_found_in_cache_from_location_2_it_was_not_re_6398","Reusing resolution of type reference directive '{0}' from '{1}' found in cache from location '{2}', it was not resolved."),Project_0_is_out_of_date_because_buildinfo_file_1_indicates_that_some_of_the_changes_were_not_emitted:pa(6399,3,"Project_0_is_out_of_date_because_buildinfo_file_1_indicates_that_some_of_the_changes_were_not_emitte_6399","Project '{0}' is out of date because buildinfo file '{1}' indicates that some of the changes were not emitted"),Project_0_is_up_to_date_but_needs_to_update_timestamps_of_output_files_that_are_older_than_input_files:pa(6400,3,"Project_0_is_up_to_date_but_needs_to_update_timestamps_of_output_files_that_are_older_than_input_fil_6400","Project '{0}' is up to date but needs to update timestamps of output files that are older than input files"),Project_0_is_out_of_date_because_there_was_error_reading_file_1:pa(6401,3,"Project_0_is_out_of_date_because_there_was_error_reading_file_1_6401","Project '{0}' is out of date because there was error reading file '{1}'"),Resolving_in_0_mode_with_conditions_1:pa(6402,3,"Resolving_in_0_mode_with_conditions_1_6402","Resolving in {0} mode with conditions {1}."),Matched_0_condition_1:pa(6403,3,"Matched_0_condition_1_6403","Matched '{0}' condition '{1}'."),Using_0_subpath_1_with_target_2:pa(6404,3,"Using_0_subpath_1_with_target_2_6404","Using '{0}' subpath '{1}' with target '{2}'."),Saw_non_matching_condition_0:pa(6405,3,"Saw_non_matching_condition_0_6405","Saw non-matching condition '{0}'."),Project_0_is_out_of_date_because_buildinfo_file_1_indicates_there_is_change_in_compilerOptions:pa(6406,3,"Project_0_is_out_of_date_because_buildinfo_file_1_indicates_there_is_change_in_compilerOptions_6406","Project '{0}' is out of date because buildinfo file '{1}' indicates there is change in compilerOptions"),Allow_imports_to_include_TypeScript_file_extensions_Requires_moduleResolution_bundler_and_either_noEmit_or_emitDeclarationOnly_to_be_set:pa(6407,3,"Allow_imports_to_include_TypeScript_file_extensions_Requires_moduleResolution_bundler_and_either_noE_6407","Allow imports to include TypeScript file extensions. Requires '--moduleResolution bundler' and either '--noEmit' or '--emitDeclarationOnly' to be set."),Use_the_package_json_exports_field_when_resolving_package_imports:pa(6408,3,"Use_the_package_json_exports_field_when_resolving_package_imports_6408","Use the package.json 'exports' field when resolving package imports."),Use_the_package_json_imports_field_when_resolving_imports:pa(6409,3,"Use_the_package_json_imports_field_when_resolving_imports_6409","Use the package.json 'imports' field when resolving imports."),Conditions_to_set_in_addition_to_the_resolver_specific_defaults_when_resolving_imports:pa(6410,3,"Conditions_to_set_in_addition_to_the_resolver_specific_defaults_when_resolving_imports_6410","Conditions to set in addition to the resolver-specific defaults when resolving imports."),true_when_moduleResolution_is_node16_nodenext_or_bundler_otherwise_false:pa(6411,3,"true_when_moduleResolution_is_node16_nodenext_or_bundler_otherwise_false_6411","`true` when 'moduleResolution' is 'node16', 'nodenext', or 'bundler'; otherwise `false`."),Project_0_is_out_of_date_because_buildinfo_file_1_indicates_that_file_2_was_root_file_of_compilation_but_not_any_more:pa(6412,3,"Project_0_is_out_of_date_because_buildinfo_file_1_indicates_that_file_2_was_root_file_of_compilation_6412","Project '{0}' is out of date because buildinfo file '{1}' indicates that file '{2}' was root file of compilation but not any more."),Entering_conditional_exports:pa(6413,3,"Entering_conditional_exports_6413","Entering conditional exports."),Resolved_under_condition_0:pa(6414,3,"Resolved_under_condition_0_6414","Resolved under condition '{0}'."),Failed_to_resolve_under_condition_0:pa(6415,3,"Failed_to_resolve_under_condition_0_6415","Failed to resolve under condition '{0}'."),Exiting_conditional_exports:pa(6416,3,"Exiting_conditional_exports_6416","Exiting conditional exports."),Searching_all_ancestor_node_modules_directories_for_preferred_extensions_Colon_0:pa(6417,3,"Searching_all_ancestor_node_modules_directories_for_preferred_extensions_Colon_0_6417","Searching all ancestor node_modules directories for preferred extensions: {0}."),Searching_all_ancestor_node_modules_directories_for_fallback_extensions_Colon_0:pa(6418,3,"Searching_all_ancestor_node_modules_directories_for_fallback_extensions_Colon_0_6418","Searching all ancestor node_modules directories for fallback extensions: {0}."),Project_0_is_out_of_date_because_buildinfo_file_1_indicates_that_program_needs_to_report_errors:pa(6419,3,"Project_0_is_out_of_date_because_buildinfo_file_1_indicates_that_program_needs_to_report_errors_6419","Project '{0}' is out of date because buildinfo file '{1}' indicates that program needs to report errors."),Project_0_is_out_of_date_because_1:pa(6420,3,"Project_0_is_out_of_date_because_1_6420","Project '{0}' is out of date because {1}."),Rewrite_ts_tsx_mts_and_cts_file_extensions_in_relative_import_paths_to_their_JavaScript_equivalent_in_output_files:pa(6421,3,"Rewrite_ts_tsx_mts_and_cts_file_extensions_in_relative_import_paths_to_their_JavaScript_equivalent_i_6421","Rewrite '.ts', '.tsx', '.mts', and '.cts' file extensions in relative import paths to their JavaScript equivalent in output files."),The_expected_type_comes_from_property_0_which_is_declared_here_on_type_1:pa(6500,3,"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:pa(6501,3,"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:pa(6502,3,"The_expected_type_comes_from_the_return_type_of_this_signature_6502","The expected type comes from the return type of this signature."),Print_names_of_files_that_are_part_of_the_compilation_and_then_stop_processing:pa(6503,3,"Print_names_of_files_that_are_part_of_the_compilation_and_then_stop_processing_6503","Print names of files that are part of the compilation and then stop processing."),File_0_is_a_JavaScript_file_Did_you_mean_to_enable_the_allowJs_option:pa(6504,1,"File_0_is_a_JavaScript_file_Did_you_mean_to_enable_the_allowJs_option_6504","File '{0}' is a JavaScript file. Did you mean to enable the 'allowJs' option?"),Print_names_of_files_and_the_reason_they_are_part_of_the_compilation:pa(6505,3,"Print_names_of_files_and_the_reason_they_are_part_of_the_compilation_6505","Print names of files and the reason they are part of the compilation."),Consider_adding_a_declare_modifier_to_this_class:pa(6506,3,"Consider_adding_a_declare_modifier_to_this_class_6506","Consider adding a 'declare' modifier to this class."),Allow_JavaScript_files_to_be_a_part_of_your_program_Use_the_checkJs_option_to_get_errors_from_these_files:pa(6600,3,"Allow_JavaScript_files_to_be_a_part_of_your_program_Use_the_checkJs_option_to_get_errors_from_these__6600","Allow JavaScript files to be a part of your program. Use the 'checkJs' option to get errors from these files."),Allow_import_x_from_y_when_a_module_doesn_t_have_a_default_export:pa(6601,3,"Allow_import_x_from_y_when_a_module_doesn_t_have_a_default_export_6601","Allow 'import x from y' when a module doesn't have a default export."),Allow_accessing_UMD_globals_from_modules:pa(6602,3,"Allow_accessing_UMD_globals_from_modules_6602","Allow accessing UMD globals from modules."),Disable_error_reporting_for_unreachable_code:pa(6603,3,"Disable_error_reporting_for_unreachable_code_6603","Disable error reporting for unreachable code."),Disable_error_reporting_for_unused_labels:pa(6604,3,"Disable_error_reporting_for_unused_labels_6604","Disable error reporting for unused labels."),Ensure_use_strict_is_always_emitted:pa(6605,3,"Ensure_use_strict_is_always_emitted_6605","Ensure 'use strict' is always emitted."),Have_recompiles_in_projects_that_use_incremental_and_watch_mode_assume_that_changes_within_a_file_will_only_affect_files_directly_depending_on_it:pa(6606,3,"Have_recompiles_in_projects_that_use_incremental_and_watch_mode_assume_that_changes_within_a_file_wi_6606","Have recompiles in projects that use 'incremental' and 'watch' mode assume that changes within a file will only affect files directly depending on it."),Specify_the_base_directory_to_resolve_non_relative_module_names:pa(6607,3,"Specify_the_base_directory_to_resolve_non_relative_module_names_6607","Specify the base directory to resolve non-relative module names."),No_longer_supported_In_early_versions_manually_set_the_text_encoding_for_reading_files:pa(6608,3,"No_longer_supported_In_early_versions_manually_set_the_text_encoding_for_reading_files_6608","No longer supported. In early versions, manually set the text encoding for reading files."),Enable_error_reporting_in_type_checked_JavaScript_files:pa(6609,3,"Enable_error_reporting_in_type_checked_JavaScript_files_6609","Enable error reporting in type-checked JavaScript files."),Enable_constraints_that_allow_a_TypeScript_project_to_be_used_with_project_references:pa(6611,3,"Enable_constraints_that_allow_a_TypeScript_project_to_be_used_with_project_references_6611","Enable constraints that allow a TypeScript project to be used with project references."),Generate_d_ts_files_from_TypeScript_and_JavaScript_files_in_your_project:pa(6612,3,"Generate_d_ts_files_from_TypeScript_and_JavaScript_files_in_your_project_6612","Generate .d.ts files from TypeScript and JavaScript files in your project."),Specify_the_output_directory_for_generated_declaration_files:pa(6613,3,"Specify_the_output_directory_for_generated_declaration_files_6613","Specify the output directory for generated declaration files."),Create_sourcemaps_for_d_ts_files:pa(6614,3,"Create_sourcemaps_for_d_ts_files_6614","Create sourcemaps for d.ts files."),Output_compiler_performance_information_after_building:pa(6615,3,"Output_compiler_performance_information_after_building_6615","Output compiler performance information after building."),Disables_inference_for_type_acquisition_by_looking_at_filenames_in_a_project:pa(6616,3,"Disables_inference_for_type_acquisition_by_looking_at_filenames_in_a_project_6616","Disables inference for type acquisition by looking at filenames in a project."),Reduce_the_number_of_projects_loaded_automatically_by_TypeScript:pa(6617,3,"Reduce_the_number_of_projects_loaded_automatically_by_TypeScript_6617","Reduce the number of projects loaded automatically by TypeScript."),Remove_the_20mb_cap_on_total_source_code_size_for_JavaScript_files_in_the_TypeScript_language_server:pa(6618,3,"Remove_the_20mb_cap_on_total_source_code_size_for_JavaScript_files_in_the_TypeScript_language_server_6618","Remove the 20mb cap on total source code size for JavaScript files in the TypeScript language server."),Opt_a_project_out_of_multi_project_reference_checking_when_editing:pa(6619,3,"Opt_a_project_out_of_multi_project_reference_checking_when_editing_6619","Opt a project out of multi-project reference checking when editing."),Disable_preferring_source_files_instead_of_declaration_files_when_referencing_composite_projects:pa(6620,3,"Disable_preferring_source_files_instead_of_declaration_files_when_referencing_composite_projects_6620","Disable preferring source files instead of declaration files when referencing composite projects."),Emit_more_compliant_but_verbose_and_less_performant_JavaScript_for_iteration:pa(6621,3,"Emit_more_compliant_but_verbose_and_less_performant_JavaScript_for_iteration_6621","Emit more compliant, but verbose and less performant JavaScript for iteration."),Emit_a_UTF_8_Byte_Order_Mark_BOM_in_the_beginning_of_output_files:pa(6622,3,"Emit_a_UTF_8_Byte_Order_Mark_BOM_in_the_beginning_of_output_files_6622","Emit a UTF-8 Byte Order Mark (BOM) in the beginning of output files."),Only_output_d_ts_files_and_not_JavaScript_files:pa(6623,3,"Only_output_d_ts_files_and_not_JavaScript_files_6623","Only output d.ts files and not JavaScript files."),Emit_design_type_metadata_for_decorated_declarations_in_source_files:pa(6624,3,"Emit_design_type_metadata_for_decorated_declarations_in_source_files_6624","Emit design-type metadata for decorated declarations in source files."),Disable_the_type_acquisition_for_JavaScript_projects:pa(6625,3,"Disable_the_type_acquisition_for_JavaScript_projects_6625","Disable the type acquisition for JavaScript projects"),Emit_additional_JavaScript_to_ease_support_for_importing_CommonJS_modules_This_enables_allowSyntheticDefaultImports_for_type_compatibility:pa(6626,3,"Emit_additional_JavaScript_to_ease_support_for_importing_CommonJS_modules_This_enables_allowSyntheti_6626","Emit additional JavaScript to ease support for importing CommonJS modules. This enables 'allowSyntheticDefaultImports' for type compatibility."),Filters_results_from_the_include_option:pa(6627,3,"Filters_results_from_the_include_option_6627","Filters results from the `include` option."),Remove_a_list_of_directories_from_the_watch_process:pa(6628,3,"Remove_a_list_of_directories_from_the_watch_process_6628","Remove a list of directories from the watch process."),Remove_a_list_of_files_from_the_watch_mode_s_processing:pa(6629,3,"Remove_a_list_of_files_from_the_watch_mode_s_processing_6629","Remove a list of files from the watch mode's processing."),Enable_experimental_support_for_legacy_experimental_decorators:pa(6630,3,"Enable_experimental_support_for_legacy_experimental_decorators_6630","Enable experimental support for legacy experimental decorators."),Print_files_read_during_the_compilation_including_why_it_was_included:pa(6631,3,"Print_files_read_during_the_compilation_including_why_it_was_included_6631","Print files read during the compilation including why it was included."),Output_more_detailed_compiler_performance_information_after_building:pa(6632,3,"Output_more_detailed_compiler_performance_information_after_building_6632","Output more detailed compiler performance information after building."),Specify_one_or_more_path_or_node_module_references_to_base_configuration_files_from_which_settings_are_inherited:pa(6633,3,"Specify_one_or_more_path_or_node_module_references_to_base_configuration_files_from_which_settings_a_6633","Specify one or more path or node module references to base configuration files from which settings are inherited."),Specify_what_approach_the_watcher_should_use_if_the_system_runs_out_of_native_file_watchers:pa(6634,3,"Specify_what_approach_the_watcher_should_use_if_the_system_runs_out_of_native_file_watchers_6634","Specify what approach the watcher should use if the system runs out of native file watchers."),Include_a_list_of_files_This_does_not_support_glob_patterns_as_opposed_to_include:pa(6635,3,"Include_a_list_of_files_This_does_not_support_glob_patterns_as_opposed_to_include_6635","Include a list of files. This does not support glob patterns, as opposed to `include`."),Build_all_projects_including_those_that_appear_to_be_up_to_date:pa(6636,3,"Build_all_projects_including_those_that_appear_to_be_up_to_date_6636","Build all projects, including those that appear to be up to date."),Ensure_that_casing_is_correct_in_imports:pa(6637,3,"Ensure_that_casing_is_correct_in_imports_6637","Ensure that casing is correct in imports."),Emit_a_v8_CPU_profile_of_the_compiler_run_for_debugging:pa(6638,3,"Emit_a_v8_CPU_profile_of_the_compiler_run_for_debugging_6638","Emit a v8 CPU profile of the compiler run for debugging."),Allow_importing_helper_functions_from_tslib_once_per_project_instead_of_including_them_per_file:pa(6639,3,"Allow_importing_helper_functions_from_tslib_once_per_project_instead_of_including_them_per_file_6639","Allow importing helper functions from tslib once per project, instead of including them per-file."),Skip_building_downstream_projects_on_error_in_upstream_project:pa(6640,3,"Skip_building_downstream_projects_on_error_in_upstream_project_6640","Skip building downstream projects on error in upstream project."),Specify_a_list_of_glob_patterns_that_match_files_to_be_included_in_compilation:pa(6641,3,"Specify_a_list_of_glob_patterns_that_match_files_to_be_included_in_compilation_6641","Specify a list of glob patterns that match files to be included in compilation."),Save_tsbuildinfo_files_to_allow_for_incremental_compilation_of_projects:pa(6642,3,"Save_tsbuildinfo_files_to_allow_for_incremental_compilation_of_projects_6642","Save .tsbuildinfo files to allow for incremental compilation of projects."),Include_sourcemap_files_inside_the_emitted_JavaScript:pa(6643,3,"Include_sourcemap_files_inside_the_emitted_JavaScript_6643","Include sourcemap files inside the emitted JavaScript."),Include_source_code_in_the_sourcemaps_inside_the_emitted_JavaScript:pa(6644,3,"Include_source_code_in_the_sourcemaps_inside_the_emitted_JavaScript_6644","Include source code in the sourcemaps inside the emitted JavaScript."),Ensure_that_each_file_can_be_safely_transpiled_without_relying_on_other_imports:pa(6645,3,"Ensure_that_each_file_can_be_safely_transpiled_without_relying_on_other_imports_6645","Ensure that each file can be safely transpiled without relying on other imports."),Specify_what_JSX_code_is_generated:pa(6646,3,"Specify_what_JSX_code_is_generated_6646","Specify what JSX code is generated."),Specify_the_JSX_factory_function_used_when_targeting_React_JSX_emit_e_g_React_createElement_or_h:pa(6647,3,"Specify_the_JSX_factory_function_used_when_targeting_React_JSX_emit_e_g_React_createElement_or_h_6647","Specify the JSX factory function used when targeting React JSX emit, e.g. 'React.createElement' or 'h'."),Specify_the_JSX_Fragment_reference_used_for_fragments_when_targeting_React_JSX_emit_e_g_React_Fragment_or_Fragment:pa(6648,3,"Specify_the_JSX_Fragment_reference_used_for_fragments_when_targeting_React_JSX_emit_e_g_React_Fragme_6648","Specify the JSX Fragment reference used for fragments when targeting React JSX emit e.g. 'React.Fragment' or 'Fragment'."),Specify_module_specifier_used_to_import_the_JSX_factory_functions_when_using_jsx_Colon_react_jsx_Asterisk:pa(6649,3,"Specify_module_specifier_used_to_import_the_JSX_factory_functions_when_using_jsx_Colon_react_jsx_Ast_6649","Specify module specifier used to import the JSX factory functions when using 'jsx: react-jsx*'."),Make_keyof_only_return_strings_instead_of_string_numbers_or_symbols_Legacy_option:pa(6650,3,"Make_keyof_only_return_strings_instead_of_string_numbers_or_symbols_Legacy_option_6650","Make keyof only return strings instead of string, numbers or symbols. Legacy option."),Specify_a_set_of_bundled_library_declaration_files_that_describe_the_target_runtime_environment:pa(6651,3,"Specify_a_set_of_bundled_library_declaration_files_that_describe_the_target_runtime_environment_6651","Specify a set of bundled library declaration files that describe the target runtime environment."),Print_the_names_of_emitted_files_after_a_compilation:pa(6652,3,"Print_the_names_of_emitted_files_after_a_compilation_6652","Print the names of emitted files after a compilation."),Print_all_of_the_files_read_during_the_compilation:pa(6653,3,"Print_all_of_the_files_read_during_the_compilation_6653","Print all of the files read during the compilation."),Set_the_language_of_the_messaging_from_TypeScript_This_does_not_affect_emit:pa(6654,3,"Set_the_language_of_the_messaging_from_TypeScript_This_does_not_affect_emit_6654","Set the language of the messaging from TypeScript. This does not affect emit."),Specify_the_location_where_debugger_should_locate_map_files_instead_of_generated_locations:pa(6655,3,"Specify_the_location_where_debugger_should_locate_map_files_instead_of_generated_locations_6655","Specify the location where debugger should locate map files instead of generated locations."),Specify_the_maximum_folder_depth_used_for_checking_JavaScript_files_from_node_modules_Only_applicable_with_allowJs:pa(6656,3,"Specify_the_maximum_folder_depth_used_for_checking_JavaScript_files_from_node_modules_Only_applicabl_6656","Specify the maximum folder depth used for checking JavaScript files from 'node_modules'. Only applicable with 'allowJs'."),Specify_what_module_code_is_generated:pa(6657,3,"Specify_what_module_code_is_generated_6657","Specify what module code is generated."),Specify_how_TypeScript_looks_up_a_file_from_a_given_module_specifier:pa(6658,3,"Specify_how_TypeScript_looks_up_a_file_from_a_given_module_specifier_6658","Specify how TypeScript looks up a file from a given module specifier."),Set_the_newline_character_for_emitting_files:pa(6659,3,"Set_the_newline_character_for_emitting_files_6659","Set the newline character for emitting files."),Disable_emitting_files_from_a_compilation:pa(6660,3,"Disable_emitting_files_from_a_compilation_6660","Disable emitting files from a compilation."),Disable_generating_custom_helper_functions_like_extends_in_compiled_output:pa(6661,3,"Disable_generating_custom_helper_functions_like_extends_in_compiled_output_6661","Disable generating custom helper functions like '__extends' in compiled output."),Disable_emitting_files_if_any_type_checking_errors_are_reported:pa(6662,3,"Disable_emitting_files_if_any_type_checking_errors_are_reported_6662","Disable emitting files if any type checking errors are reported."),Disable_truncating_types_in_error_messages:pa(6663,3,"Disable_truncating_types_in_error_messages_6663","Disable truncating types in error messages."),Enable_error_reporting_for_fallthrough_cases_in_switch_statements:pa(6664,3,"Enable_error_reporting_for_fallthrough_cases_in_switch_statements_6664","Enable error reporting for fallthrough cases in switch statements."),Enable_error_reporting_for_expressions_and_declarations_with_an_implied_any_type:pa(6665,3,"Enable_error_reporting_for_expressions_and_declarations_with_an_implied_any_type_6665","Enable error reporting for expressions and declarations with an implied 'any' type."),Ensure_overriding_members_in_derived_classes_are_marked_with_an_override_modifier:pa(6666,3,"Ensure_overriding_members_in_derived_classes_are_marked_with_an_override_modifier_6666","Ensure overriding members in derived classes are marked with an override modifier."),Enable_error_reporting_for_codepaths_that_do_not_explicitly_return_in_a_function:pa(6667,3,"Enable_error_reporting_for_codepaths_that_do_not_explicitly_return_in_a_function_6667","Enable error reporting for codepaths that do not explicitly return in a function."),Enable_error_reporting_when_this_is_given_the_type_any:pa(6668,3,"Enable_error_reporting_when_this_is_given_the_type_any_6668","Enable error reporting when 'this' is given the type 'any'."),Disable_adding_use_strict_directives_in_emitted_JavaScript_files:pa(6669,3,"Disable_adding_use_strict_directives_in_emitted_JavaScript_files_6669","Disable adding 'use strict' directives in emitted JavaScript files."),Disable_including_any_library_files_including_the_default_lib_d_ts:pa(6670,3,"Disable_including_any_library_files_including_the_default_lib_d_ts_6670","Disable including any library files, including the default lib.d.ts."),Enforces_using_indexed_accessors_for_keys_declared_using_an_indexed_type:pa(6671,3,"Enforces_using_indexed_accessors_for_keys_declared_using_an_indexed_type_6671","Enforces using indexed accessors for keys declared using an indexed type."),Disallow_import_s_require_s_or_reference_s_from_expanding_the_number_of_files_TypeScript_should_add_to_a_project:pa(6672,3,"Disallow_import_s_require_s_or_reference_s_from_expanding_the_number_of_files_TypeScript_should_add__6672","Disallow 'import's, 'require's or '<reference>'s from expanding the number of files TypeScript should add to a project."),Disable_strict_checking_of_generic_signatures_in_function_types:pa(6673,3,"Disable_strict_checking_of_generic_signatures_in_function_types_6673","Disable strict checking of generic signatures in function types."),Add_undefined_to_a_type_when_accessed_using_an_index:pa(6674,3,"Add_undefined_to_a_type_when_accessed_using_an_index_6674","Add 'undefined' to a type when accessed using an index."),Enable_error_reporting_when_local_variables_aren_t_read:pa(6675,3,"Enable_error_reporting_when_local_variables_aren_t_read_6675","Enable error reporting when local variables aren't read."),Raise_an_error_when_a_function_parameter_isn_t_read:pa(6676,3,"Raise_an_error_when_a_function_parameter_isn_t_read_6676","Raise an error when a function parameter isn't read."),Deprecated_setting_Use_outFile_instead:pa(6677,3,"Deprecated_setting_Use_outFile_instead_6677","Deprecated setting. Use 'outFile' instead."),Specify_an_output_folder_for_all_emitted_files:pa(6678,3,"Specify_an_output_folder_for_all_emitted_files_6678","Specify an output folder for all emitted files."),Specify_a_file_that_bundles_all_outputs_into_one_JavaScript_file_If_declaration_is_true_also_designates_a_file_that_bundles_all_d_ts_output:pa(6679,3,"Specify_a_file_that_bundles_all_outputs_into_one_JavaScript_file_If_declaration_is_true_also_designa_6679","Specify a file that bundles all outputs into one JavaScript file. If 'declaration' is true, also designates a file that bundles all .d.ts output."),Specify_a_set_of_entries_that_re_map_imports_to_additional_lookup_locations:pa(6680,3,"Specify_a_set_of_entries_that_re_map_imports_to_additional_lookup_locations_6680","Specify a set of entries that re-map imports to additional lookup locations."),Specify_a_list_of_language_service_plugins_to_include:pa(6681,3,"Specify_a_list_of_language_service_plugins_to_include_6681","Specify a list of language service plugins to include."),Disable_erasing_const_enum_declarations_in_generated_code:pa(6682,3,"Disable_erasing_const_enum_declarations_in_generated_code_6682","Disable erasing 'const enum' declarations in generated code."),Disable_resolving_symlinks_to_their_realpath_This_correlates_to_the_same_flag_in_node:pa(6683,3,"Disable_resolving_symlinks_to_their_realpath_This_correlates_to_the_same_flag_in_node_6683","Disable resolving symlinks to their realpath. This correlates to the same flag in node."),Disable_wiping_the_console_in_watch_mode:pa(6684,3,"Disable_wiping_the_console_in_watch_mode_6684","Disable wiping the console in watch mode."),Enable_color_and_formatting_in_TypeScript_s_output_to_make_compiler_errors_easier_to_read:pa(6685,3,"Enable_color_and_formatting_in_TypeScript_s_output_to_make_compiler_errors_easier_to_read_6685","Enable color and formatting in TypeScript's output to make compiler errors easier to read."),Specify_the_object_invoked_for_createElement_This_only_applies_when_targeting_react_JSX_emit:pa(6686,3,"Specify_the_object_invoked_for_createElement_This_only_applies_when_targeting_react_JSX_emit_6686","Specify the object invoked for 'createElement'. This only applies when targeting 'react' JSX emit."),Specify_an_array_of_objects_that_specify_paths_for_projects_Used_in_project_references:pa(6687,3,"Specify_an_array_of_objects_that_specify_paths_for_projects_Used_in_project_references_6687","Specify an array of objects that specify paths for projects. Used in project references."),Disable_emitting_comments:pa(6688,3,"Disable_emitting_comments_6688","Disable emitting comments."),Enable_importing_json_files:pa(6689,3,"Enable_importing_json_files_6689","Enable importing .json files."),Specify_the_root_folder_within_your_source_files:pa(6690,3,"Specify_the_root_folder_within_your_source_files_6690","Specify the root folder within your source files."),Allow_multiple_folders_to_be_treated_as_one_when_resolving_modules:pa(6691,3,"Allow_multiple_folders_to_be_treated_as_one_when_resolving_modules_6691","Allow multiple folders to be treated as one when resolving modules."),Skip_type_checking_d_ts_files_that_are_included_with_TypeScript:pa(6692,3,"Skip_type_checking_d_ts_files_that_are_included_with_TypeScript_6692","Skip type checking .d.ts files that are included with TypeScript."),Skip_type_checking_all_d_ts_files:pa(6693,3,"Skip_type_checking_all_d_ts_files_6693","Skip type checking all .d.ts files."),Create_source_map_files_for_emitted_JavaScript_files:pa(6694,3,"Create_source_map_files_for_emitted_JavaScript_files_6694","Create source map files for emitted JavaScript files."),Specify_the_root_path_for_debuggers_to_find_the_reference_source_code:pa(6695,3,"Specify_the_root_path_for_debuggers_to_find_the_reference_source_code_6695","Specify the root path for debuggers to find the reference source code."),Check_that_the_arguments_for_bind_call_and_apply_methods_match_the_original_function:pa(6697,3,"Check_that_the_arguments_for_bind_call_and_apply_methods_match_the_original_function_6697","Check that the arguments for 'bind', 'call', and 'apply' methods match the original function."),When_assigning_functions_check_to_ensure_parameters_and_the_return_values_are_subtype_compatible:pa(6698,3,"When_assigning_functions_check_to_ensure_parameters_and_the_return_values_are_subtype_compatible_6698","When assigning functions, check to ensure parameters and the return values are subtype-compatible."),When_type_checking_take_into_account_null_and_undefined:pa(6699,3,"When_type_checking_take_into_account_null_and_undefined_6699","When type checking, take into account 'null' and 'undefined'."),Check_for_class_properties_that_are_declared_but_not_set_in_the_constructor:pa(6700,3,"Check_for_class_properties_that_are_declared_but_not_set_in_the_constructor_6700","Check for class properties that are declared but not set in the constructor."),Disable_emitting_declarations_that_have_internal_in_their_JSDoc_comments:pa(6701,3,"Disable_emitting_declarations_that_have_internal_in_their_JSDoc_comments_6701","Disable emitting declarations that have '@internal' in their JSDoc comments."),Disable_reporting_of_excess_property_errors_during_the_creation_of_object_literals:pa(6702,3,"Disable_reporting_of_excess_property_errors_during_the_creation_of_object_literals_6702","Disable reporting of excess property errors during the creation of object literals."),Suppress_noImplicitAny_errors_when_indexing_objects_that_lack_index_signatures:pa(6703,3,"Suppress_noImplicitAny_errors_when_indexing_objects_that_lack_index_signatures_6703","Suppress 'noImplicitAny' errors when indexing objects that lack index signatures."),Synchronously_call_callbacks_and_update_the_state_of_directory_watchers_on_platforms_that_don_t_support_recursive_watching_natively:pa(6704,3,"Synchronously_call_callbacks_and_update_the_state_of_directory_watchers_on_platforms_that_don_t_supp_6704","Synchronously call callbacks and update the state of directory watchers on platforms that don`t support recursive watching natively."),Set_the_JavaScript_language_version_for_emitted_JavaScript_and_include_compatible_library_declarations:pa(6705,3,"Set_the_JavaScript_language_version_for_emitted_JavaScript_and_include_compatible_library_declaratio_6705","Set the JavaScript language version for emitted JavaScript and include compatible library declarations."),Log_paths_used_during_the_moduleResolution_process:pa(6706,3,"Log_paths_used_during_the_moduleResolution_process_6706","Log paths used during the 'moduleResolution' process."),Specify_the_path_to_tsbuildinfo_incremental_compilation_file:pa(6707,3,"Specify_the_path_to_tsbuildinfo_incremental_compilation_file_6707","Specify the path to .tsbuildinfo incremental compilation file."),Specify_options_for_automatic_acquisition_of_declaration_files:pa(6709,3,"Specify_options_for_automatic_acquisition_of_declaration_files_6709","Specify options for automatic acquisition of declaration files."),Specify_multiple_folders_that_act_like_Slashnode_modules_Slash_types:pa(6710,3,"Specify_multiple_folders_that_act_like_Slashnode_modules_Slash_types_6710","Specify multiple folders that act like './node_modules/@types'."),Specify_type_package_names_to_be_included_without_being_referenced_in_a_source_file:pa(6711,3,"Specify_type_package_names_to_be_included_without_being_referenced_in_a_source_file_6711","Specify type package names to be included without being referenced in a source file."),Emit_ECMAScript_standard_compliant_class_fields:pa(6712,3,"Emit_ECMAScript_standard_compliant_class_fields_6712","Emit ECMAScript-standard-compliant class fields."),Enable_verbose_logging:pa(6713,3,"Enable_verbose_logging_6713","Enable verbose logging."),Specify_how_directories_are_watched_on_systems_that_lack_recursive_file_watching_functionality:pa(6714,3,"Specify_how_directories_are_watched_on_systems_that_lack_recursive_file_watching_functionality_6714","Specify how directories are watched on systems that lack recursive file-watching functionality."),Specify_how_the_TypeScript_watch_mode_works:pa(6715,3,"Specify_how_the_TypeScript_watch_mode_works_6715","Specify how the TypeScript watch mode works."),Require_undeclared_properties_from_index_signatures_to_use_element_accesses:pa(6717,3,"Require_undeclared_properties_from_index_signatures_to_use_element_accesses_6717","Require undeclared properties from index signatures to use element accesses."),Specify_emit_Slashchecking_behavior_for_imports_that_are_only_used_for_types:pa(6718,3,"Specify_emit_Slashchecking_behavior_for_imports_that_are_only_used_for_types_6718","Specify emit/checking behavior for imports that are only used for types."),Require_sufficient_annotation_on_exports_so_other_tools_can_trivially_generate_declaration_files:pa(6719,3,"Require_sufficient_annotation_on_exports_so_other_tools_can_trivially_generate_declaration_files_6719","Require sufficient annotation on exports so other tools can trivially generate declaration files."),Built_in_iterators_are_instantiated_with_a_TReturn_type_of_undefined_instead_of_any:pa(6720,3,"Built_in_iterators_are_instantiated_with_a_TReturn_type_of_undefined_instead_of_any_6720","Built-in iterators are instantiated with a 'TReturn' type of 'undefined' instead of 'any'."),Do_not_allow_runtime_constructs_that_are_not_part_of_ECMAScript:pa(6721,3,"Do_not_allow_runtime_constructs_that_are_not_part_of_ECMAScript_6721","Do not allow runtime constructs that are not part of ECMAScript."),Default_catch_clause_variables_as_unknown_instead_of_any:pa(6803,3,"Default_catch_clause_variables_as_unknown_instead_of_any_6803","Default catch clause variables as 'unknown' instead of 'any'."),Do_not_transform_or_elide_any_imports_or_exports_not_marked_as_type_only_ensuring_they_are_written_in_the_output_file_s_format_based_on_the_module_setting:pa(6804,3,"Do_not_transform_or_elide_any_imports_or_exports_not_marked_as_type_only_ensuring_they_are_written_i_6804","Do not transform or elide any imports or exports not marked as type-only, ensuring they are written in the output file's format based on the 'module' setting."),Disable_full_type_checking_only_critical_parse_and_emit_errors_will_be_reported:pa(6805,3,"Disable_full_type_checking_only_critical_parse_and_emit_errors_will_be_reported_6805","Disable full type checking (only critical parse and emit errors will be reported)."),Check_side_effect_imports:pa(6806,3,"Check_side_effect_imports_6806","Check side effect imports."),This_operation_can_be_simplified_This_shift_is_identical_to_0_1_2:pa(6807,1,"This_operation_can_be_simplified_This_shift_is_identical_to_0_1_2_6807","This operation can be simplified. This shift is identical to `{0} {1} {2}`."),Enable_lib_replacement:pa(6808,3,"Enable_lib_replacement_6808","Enable lib replacement."),one_of_Colon:pa(6900,3,"one_of_Colon_6900","one of:"),one_or_more_Colon:pa(6901,3,"one_or_more_Colon_6901","one or more:"),type_Colon:pa(6902,3,"type_Colon_6902","type:"),default_Colon:pa(6903,3,"default_Colon_6903","default:"),module_system_or_esModuleInterop:pa(6904,3,"module_system_or_esModuleInterop_6904",'module === "system" or esModuleInterop'),false_unless_strict_is_set:pa(6905,3,"false_unless_strict_is_set_6905","`false`, unless `strict` is set"),false_unless_composite_is_set:pa(6906,3,"false_unless_composite_is_set_6906","`false`, unless `composite` is set"),node_modules_bower_components_jspm_packages_plus_the_value_of_outDir_if_one_is_specified:pa(6907,3,"node_modules_bower_components_jspm_packages_plus_the_value_of_outDir_if_one_is_specified_6907",'`["node_modules", "bower_components", "jspm_packages"]`, plus the value of `outDir` if one is specified.'),if_files_is_specified_otherwise_Asterisk_Asterisk_Slash_Asterisk:pa(6908,3,"if_files_is_specified_otherwise_Asterisk_Asterisk_Slash_Asterisk_6908",'`[]` if `files` is specified, otherwise `["**/*"]`'),true_if_composite_false_otherwise:pa(6909,3,"true_if_composite_false_otherwise_6909","`true` if `composite`, `false` otherwise"),module_AMD_or_UMD_or_System_or_ES6_then_Classic_Otherwise_Node:pa(69010,3,"module_AMD_or_UMD_or_System_or_ES6_then_Classic_Otherwise_Node_69010","module === `AMD` or `UMD` or `System` or `ES6`, then `Classic`, Otherwise `Node`"),Computed_from_the_list_of_input_files:pa(6911,3,"Computed_from_the_list_of_input_files_6911","Computed from the list of input files"),Platform_specific:pa(6912,3,"Platform_specific_6912","Platform specific"),You_can_learn_about_all_of_the_compiler_options_at_0:pa(6913,3,"You_can_learn_about_all_of_the_compiler_options_at_0_6913","You can learn about all of the compiler options at {0}"),Including_watch_w_will_start_watching_the_current_project_for_the_file_changes_Once_set_you_can_config_watch_mode_with_Colon:pa(6914,3,"Including_watch_w_will_start_watching_the_current_project_for_the_file_changes_Once_set_you_can_conf_6914","Including --watch, -w will start watching the current project for the file changes. Once set, you can config watch mode with:"),Using_build_b_will_make_tsc_behave_more_like_a_build_orchestrator_than_a_compiler_This_is_used_to_trigger_building_composite_projects_which_you_can_learn_more_about_at_0:pa(6915,3,"Using_build_b_will_make_tsc_behave_more_like_a_build_orchestrator_than_a_compiler_This_is_used_to_tr_6915","Using --build, -b will make tsc behave more like a build orchestrator than a compiler. This is used to trigger building composite projects which you can learn more about at {0}"),COMMON_COMMANDS:pa(6916,3,"COMMON_COMMANDS_6916","COMMON COMMANDS"),ALL_COMPILER_OPTIONS:pa(6917,3,"ALL_COMPILER_OPTIONS_6917","ALL COMPILER OPTIONS"),WATCH_OPTIONS:pa(6918,3,"WATCH_OPTIONS_6918","WATCH OPTIONS"),BUILD_OPTIONS:pa(6919,3,"BUILD_OPTIONS_6919","BUILD OPTIONS"),COMMON_COMPILER_OPTIONS:pa(6920,3,"COMMON_COMPILER_OPTIONS_6920","COMMON COMPILER OPTIONS"),COMMAND_LINE_FLAGS:pa(6921,3,"COMMAND_LINE_FLAGS_6921","COMMAND LINE FLAGS"),tsc_Colon_The_TypeScript_Compiler:pa(6922,3,"tsc_Colon_The_TypeScript_Compiler_6922","tsc: The TypeScript Compiler"),Compiles_the_current_project_tsconfig_json_in_the_working_directory:pa(6923,3,"Compiles_the_current_project_tsconfig_json_in_the_working_directory_6923","Compiles the current project (tsconfig.json in the working directory.)"),Ignoring_tsconfig_json_compiles_the_specified_files_with_default_compiler_options:pa(6924,3,"Ignoring_tsconfig_json_compiles_the_specified_files_with_default_compiler_options_6924","Ignoring tsconfig.json, compiles the specified files with default compiler options."),Build_a_composite_project_in_the_working_directory:pa(6925,3,"Build_a_composite_project_in_the_working_directory_6925","Build a composite project in the working directory."),Creates_a_tsconfig_json_with_the_recommended_settings_in_the_working_directory:pa(6926,3,"Creates_a_tsconfig_json_with_the_recommended_settings_in_the_working_directory_6926","Creates a tsconfig.json with the recommended settings in the working directory."),Compiles_the_TypeScript_project_located_at_the_specified_path:pa(6927,3,"Compiles_the_TypeScript_project_located_at_the_specified_path_6927","Compiles the TypeScript project located at the specified path."),An_expanded_version_of_this_information_showing_all_possible_compiler_options:pa(6928,3,"An_expanded_version_of_this_information_showing_all_possible_compiler_options_6928","An expanded version of this information, showing all possible compiler options"),Compiles_the_current_project_with_additional_settings:pa(6929,3,"Compiles_the_current_project_with_additional_settings_6929","Compiles the current project, with additional settings."),true_for_ES2022_and_above_including_ESNext:pa(6930,3,"true_for_ES2022_and_above_including_ESNext_6930","`true` for ES2022 and above, including ESNext."),List_of_file_name_suffixes_to_search_when_resolving_a_module:pa(6931,1,"List_of_file_name_suffixes_to_search_when_resolving_a_module_6931","List of file name suffixes to search when resolving a module."),Variable_0_implicitly_has_an_1_type:pa(7005,1,"Variable_0_implicitly_has_an_1_type_7005","Variable '{0}' implicitly has an '{1}' type."),Parameter_0_implicitly_has_an_1_type:pa(7006,1,"Parameter_0_implicitly_has_an_1_type_7006","Parameter '{0}' implicitly has an '{1}' type."),Member_0_implicitly_has_an_1_type:pa(7008,1,"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:pa(7009,1,"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:pa(7010,1,"_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:pa(7011,1,"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."),This_overload_implicitly_returns_the_type_0_because_it_lacks_a_return_type_annotation:pa(7012,1,"This_overload_implicitly_returns_the_type_0_because_it_lacks_a_return_type_annotation_7012","This overload implicitly returns the type '{0}' because it lacks a return type annotation."),Construct_signature_which_lacks_return_type_annotation_implicitly_has_an_any_return_type:pa(7013,1,"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:pa(7014,1,"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:pa(7015,1,"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:pa(7016,1,"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:pa(7017,1,"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:pa(7018,1,"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:pa(7019,1,"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:pa(7020,1,"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:pa(7022,1,"_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:pa(7023,1,"_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:pa(7024,1,"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_Consider_supplying_a_return_type_annotation:pa(7025,1,"Generator_implicitly_has_yield_type_0_Consider_supplying_a_return_type_annotation_7025","Generator implicitly has yield type '{0}'. Consider supplying a return type annotation."),JSX_element_implicitly_has_type_any_because_no_interface_JSX_0_exists:pa(7026,1,"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:pa(7027,1,"Unreachable_code_detected_7027","Unreachable code detected.",!0),Unused_label:pa(7028,1,"Unused_label_7028","Unused label.",!0),Fallthrough_case_in_switch:pa(7029,1,"Fallthrough_case_in_switch_7029","Fallthrough case in switch."),Not_all_code_paths_return_a_value:pa(7030,1,"Not_all_code_paths_return_a_value_7030","Not all code paths return a value."),Binding_element_0_implicitly_has_an_1_type:pa(7031,1,"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:pa(7032,1,"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:pa(7033,1,"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:pa(7034,1,"Variable_0_implicitly_has_type_1_in_some_locations_where_its_type_cannot_be_determined_7034","Variable '{0}' implicitly has type '{1}' in some locations where its type cannot be determined."),Try_npm_i_save_dev_types_Slash_1_if_it_exists_or_add_a_new_declaration_d_ts_file_containing_declare_module_0:pa(7035,1,"Try_npm_i_save_dev_types_Slash_1_if_it_exists_or_add_a_new_declaration_d_ts_file_containing_declare__7035","Try `npm i --save-dev @types/{1}` if it exists or add a new declaration (.d.ts) file containing `declare module '{0}';`"),Dynamic_import_s_specifier_must_be_of_type_string_but_here_has_type_0:pa(7036,1,"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:pa(7037,3,"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:pa(7038,3,"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:pa(7039,1,"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:pa(7040,1,"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:pa(7041,1,"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:pa(7042,1,"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:pa(7043,2,"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:pa(7044,2,"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:pa(7045,2,"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:pa(7046,2,"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:pa(7047,2,"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:pa(7048,2,"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:pa(7049,2,"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:pa(7050,2,"_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:pa(7051,1,"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:pa(7052,1,"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:pa(7053,1,"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:pa(7054,1,"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:pa(7055,1,"_0_which_lacks_return_type_annotation_implicitly_has_an_1_yield_type_7055","'{0}', which lacks return-type annotation, implicitly has an '{1}' yield type."),The_inferred_type_of_this_node_exceeds_the_maximum_length_the_compiler_will_serialize_An_explicit_type_annotation_is_needed:pa(7056,1,"The_inferred_type_of_this_node_exceeds_the_maximum_length_the_compiler_will_serialize_An_explicit_ty_7056","The inferred type of this node exceeds the maximum length the compiler will serialize. An explicit type annotation is needed."),yield_expression_implicitly_results_in_an_any_type_because_its_containing_generator_lacks_a_return_type_annotation:pa(7057,1,"yield_expression_implicitly_results_in_an_any_type_because_its_containing_generator_lacks_a_return_t_7057","'yield' expression implicitly results in an 'any' type because its containing generator lacks a return-type annotation."),If_the_0_package_actually_exposes_this_module_try_adding_a_new_declaration_d_ts_file_containing_declare_module_1:pa(7058,1,"If_the_0_package_actually_exposes_this_module_try_adding_a_new_declaration_d_ts_file_containing_decl_7058","If the '{0}' package actually exposes this module, try adding a new declaration (.d.ts) file containing `declare module '{1}';`"),This_syntax_is_reserved_in_files_with_the_mts_or_cts_extension_Use_an_as_expression_instead:pa(7059,1,"This_syntax_is_reserved_in_files_with_the_mts_or_cts_extension_Use_an_as_expression_instead_7059","This syntax is reserved in files with the .mts or .cts extension. Use an `as` expression instead."),This_syntax_is_reserved_in_files_with_the_mts_or_cts_extension_Add_a_trailing_comma_or_explicit_constraint:pa(7060,1,"This_syntax_is_reserved_in_files_with_the_mts_or_cts_extension_Add_a_trailing_comma_or_explicit_cons_7060","This syntax is reserved in files with the .mts or .cts extension. Add a trailing comma or explicit constraint."),A_mapped_type_may_not_declare_properties_or_methods:pa(7061,1,"A_mapped_type_may_not_declare_properties_or_methods_7061","A mapped type may not declare properties or methods."),You_cannot_rename_this_element:pa(8e3,1,"You_cannot_rename_this_element_8000","You cannot rename this element."),You_cannot_rename_elements_that_are_defined_in_the_standard_TypeScript_library:pa(8001,1,"You_cannot_rename_elements_that_are_defined_in_the_standard_TypeScript_library_8001","You cannot rename elements that are defined in the standard TypeScript library."),import_can_only_be_used_in_TypeScript_files:pa(8002,1,"import_can_only_be_used_in_TypeScript_files_8002","'import ... =' can only be used in TypeScript files."),export_can_only_be_used_in_TypeScript_files:pa(8003,1,"export_can_only_be_used_in_TypeScript_files_8003","'export =' can only be used in TypeScript files."),Type_parameter_declarations_can_only_be_used_in_TypeScript_files:pa(8004,1,"Type_parameter_declarations_can_only_be_used_in_TypeScript_files_8004","Type parameter declarations can only be used in TypeScript files."),implements_clauses_can_only_be_used_in_TypeScript_files:pa(8005,1,"implements_clauses_can_only_be_used_in_TypeScript_files_8005","'implements' clauses can only be used in TypeScript files."),_0_declarations_can_only_be_used_in_TypeScript_files:pa(8006,1,"_0_declarations_can_only_be_used_in_TypeScript_files_8006","'{0}' declarations can only be used in TypeScript files."),Type_aliases_can_only_be_used_in_TypeScript_files:pa(8008,1,"Type_aliases_can_only_be_used_in_TypeScript_files_8008","Type aliases can only be used in TypeScript files."),The_0_modifier_can_only_be_used_in_TypeScript_files:pa(8009,1,"The_0_modifier_can_only_be_used_in_TypeScript_files_8009","The '{0}' modifier can only be used in TypeScript files."),Type_annotations_can_only_be_used_in_TypeScript_files:pa(8010,1,"Type_annotations_can_only_be_used_in_TypeScript_files_8010","Type annotations can only be used in TypeScript files."),Type_arguments_can_only_be_used_in_TypeScript_files:pa(8011,1,"Type_arguments_can_only_be_used_in_TypeScript_files_8011","Type arguments can only be used in TypeScript files."),Parameter_modifiers_can_only_be_used_in_TypeScript_files:pa(8012,1,"Parameter_modifiers_can_only_be_used_in_TypeScript_files_8012","Parameter modifiers can only be used in TypeScript files."),Non_null_assertions_can_only_be_used_in_TypeScript_files:pa(8013,1,"Non_null_assertions_can_only_be_used_in_TypeScript_files_8013","Non-null assertions can only be used in TypeScript files."),Type_assertion_expressions_can_only_be_used_in_TypeScript_files:pa(8016,1,"Type_assertion_expressions_can_only_be_used_in_TypeScript_files_8016","Type assertion expressions can only be used in TypeScript files."),Signature_declarations_can_only_be_used_in_TypeScript_files:pa(8017,1,"Signature_declarations_can_only_be_used_in_TypeScript_files_8017","Signature declarations can only be used in TypeScript files."),Report_errors_in_js_files:pa(8019,3,"Report_errors_in_js_files_8019","Report errors in .js files."),JSDoc_types_can_only_be_used_inside_documentation_comments:pa(8020,1,"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:pa(8021,1,"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:pa(8022,1,"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:pa(8023,1,"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:pa(8024,1,"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:pa(8025,1,"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:pa(8026,1,"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:pa(8027,1,"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:pa(8028,1,"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:pa(8029,1,"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:pa(8030,1,"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:pa(8031,1,"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:pa(8032,1,"Qualified_name_0_is_not_allowed_without_a_leading_param_object_1_8032","Qualified name '{0}' is not allowed without a leading '@param {object} {1}'."),A_JSDoc_typedef_comment_may_not_contain_multiple_type_tags:pa(8033,1,"A_JSDoc_typedef_comment_may_not_contain_multiple_type_tags_8033","A JSDoc '@typedef' comment may not contain multiple '@type' tags."),The_tag_was_first_specified_here:pa(8034,1,"The_tag_was_first_specified_here_8034","The tag was first specified here."),You_cannot_rename_elements_that_are_defined_in_a_node_modules_folder:pa(8035,1,"You_cannot_rename_elements_that_are_defined_in_a_node_modules_folder_8035","You cannot rename elements that are defined in a 'node_modules' folder."),You_cannot_rename_elements_that_are_defined_in_another_node_modules_folder:pa(8036,1,"You_cannot_rename_elements_that_are_defined_in_another_node_modules_folder_8036","You cannot rename elements that are defined in another 'node_modules' folder."),Type_satisfaction_expressions_can_only_be_used_in_TypeScript_files:pa(8037,1,"Type_satisfaction_expressions_can_only_be_used_in_TypeScript_files_8037","Type satisfaction expressions can only be used in TypeScript files."),Decorators_may_not_appear_after_export_or_export_default_if_they_also_appear_before_export:pa(8038,1,"Decorators_may_not_appear_after_export_or_export_default_if_they_also_appear_before_export_8038","Decorators may not appear after 'export' or 'export default' if they also appear before 'export'."),A_JSDoc_template_tag_may_not_follow_a_typedef_callback_or_overload_tag:pa(8039,1,"A_JSDoc_template_tag_may_not_follow_a_typedef_callback_or_overload_tag_8039","A JSDoc '@template' tag may not follow a '@typedef', '@callback', or '@overload' tag"),Declaration_emit_for_this_file_requires_using_private_name_0_An_explicit_type_annotation_may_unblock_declaration_emit:pa(9005,1,"Declaration_emit_for_this_file_requires_using_private_name_0_An_explicit_type_annotation_may_unblock_9005","Declaration emit for this file requires using private name '{0}'. An explicit type annotation may unblock declaration emit."),Declaration_emit_for_this_file_requires_using_private_name_0_from_module_1_An_explicit_type_annotation_may_unblock_declaration_emit:pa(9006,1,"Declaration_emit_for_this_file_requires_using_private_name_0_from_module_1_An_explicit_type_annotati_9006","Declaration emit for this file requires using private name '{0}' from module '{1}'. An explicit type annotation may unblock declaration emit."),Function_must_have_an_explicit_return_type_annotation_with_isolatedDeclarations:pa(9007,1,"Function_must_have_an_explicit_return_type_annotation_with_isolatedDeclarations_9007","Function must have an explicit return type annotation with --isolatedDeclarations."),Method_must_have_an_explicit_return_type_annotation_with_isolatedDeclarations:pa(9008,1,"Method_must_have_an_explicit_return_type_annotation_with_isolatedDeclarations_9008","Method must have an explicit return type annotation with --isolatedDeclarations."),At_least_one_accessor_must_have_an_explicit_type_annotation_with_isolatedDeclarations:pa(9009,1,"At_least_one_accessor_must_have_an_explicit_type_annotation_with_isolatedDeclarations_9009","At least one accessor must have an explicit type annotation with --isolatedDeclarations."),Variable_must_have_an_explicit_type_annotation_with_isolatedDeclarations:pa(9010,1,"Variable_must_have_an_explicit_type_annotation_with_isolatedDeclarations_9010","Variable must have an explicit type annotation with --isolatedDeclarations."),Parameter_must_have_an_explicit_type_annotation_with_isolatedDeclarations:pa(9011,1,"Parameter_must_have_an_explicit_type_annotation_with_isolatedDeclarations_9011","Parameter must have an explicit type annotation with --isolatedDeclarations."),Property_must_have_an_explicit_type_annotation_with_isolatedDeclarations:pa(9012,1,"Property_must_have_an_explicit_type_annotation_with_isolatedDeclarations_9012","Property must have an explicit type annotation with --isolatedDeclarations."),Expression_type_can_t_be_inferred_with_isolatedDeclarations:pa(9013,1,"Expression_type_can_t_be_inferred_with_isolatedDeclarations_9013","Expression type can't be inferred with --isolatedDeclarations."),Computed_properties_must_be_number_or_string_literals_variables_or_dotted_expressions_with_isolatedDeclarations:pa(9014,1,"Computed_properties_must_be_number_or_string_literals_variables_or_dotted_expressions_with_isolatedD_9014","Computed properties must be number or string literals, variables or dotted expressions with --isolatedDeclarations."),Objects_that_contain_spread_assignments_can_t_be_inferred_with_isolatedDeclarations:pa(9015,1,"Objects_that_contain_spread_assignments_can_t_be_inferred_with_isolatedDeclarations_9015","Objects that contain spread assignments can't be inferred with --isolatedDeclarations."),Objects_that_contain_shorthand_properties_can_t_be_inferred_with_isolatedDeclarations:pa(9016,1,"Objects_that_contain_shorthand_properties_can_t_be_inferred_with_isolatedDeclarations_9016","Objects that contain shorthand properties can't be inferred with --isolatedDeclarations."),Only_const_arrays_can_be_inferred_with_isolatedDeclarations:pa(9017,1,"Only_const_arrays_can_be_inferred_with_isolatedDeclarations_9017","Only const arrays can be inferred with --isolatedDeclarations."),Arrays_with_spread_elements_can_t_inferred_with_isolatedDeclarations:pa(9018,1,"Arrays_with_spread_elements_can_t_inferred_with_isolatedDeclarations_9018","Arrays with spread elements can't inferred with --isolatedDeclarations."),Binding_elements_can_t_be_exported_directly_with_isolatedDeclarations:pa(9019,1,"Binding_elements_can_t_be_exported_directly_with_isolatedDeclarations_9019","Binding elements can't be exported directly with --isolatedDeclarations."),Enum_member_initializers_must_be_computable_without_references_to_external_symbols_with_isolatedDeclarations:pa(9020,1,"Enum_member_initializers_must_be_computable_without_references_to_external_symbols_with_isolatedDecl_9020","Enum member initializers must be computable without references to external symbols with --isolatedDeclarations."),Extends_clause_can_t_contain_an_expression_with_isolatedDeclarations:pa(9021,1,"Extends_clause_can_t_contain_an_expression_with_isolatedDeclarations_9021","Extends clause can't contain an expression with --isolatedDeclarations."),Inference_from_class_expressions_is_not_supported_with_isolatedDeclarations:pa(9022,1,"Inference_from_class_expressions_is_not_supported_with_isolatedDeclarations_9022","Inference from class expressions is not supported with --isolatedDeclarations."),Assigning_properties_to_functions_without_declaring_them_is_not_supported_with_isolatedDeclarations_Add_an_explicit_declaration_for_the_properties_assigned_to_this_function:pa(9023,1,"Assigning_properties_to_functions_without_declaring_them_is_not_supported_with_isolatedDeclarations__9023","Assigning properties to functions without declaring them is not supported with --isolatedDeclarations. Add an explicit declaration for the properties assigned to this function."),Declaration_emit_for_this_parameter_requires_implicitly_adding_undefined_to_its_type_This_is_not_supported_with_isolatedDeclarations:pa(9025,1,"Declaration_emit_for_this_parameter_requires_implicitly_adding_undefined_to_its_type_This_is_not_sup_9025","Declaration emit for this parameter requires implicitly adding undefined to its type. This is not supported with --isolatedDeclarations."),Declaration_emit_for_this_file_requires_preserving_this_import_for_augmentations_This_is_not_supported_with_isolatedDeclarations:pa(9026,1,"Declaration_emit_for_this_file_requires_preserving_this_import_for_augmentations_This_is_not_support_9026","Declaration emit for this file requires preserving this import for augmentations. This is not supported with --isolatedDeclarations."),Add_a_type_annotation_to_the_variable_0:pa(9027,1,"Add_a_type_annotation_to_the_variable_0_9027","Add a type annotation to the variable {0}."),Add_a_type_annotation_to_the_parameter_0:pa(9028,1,"Add_a_type_annotation_to_the_parameter_0_9028","Add a type annotation to the parameter {0}."),Add_a_type_annotation_to_the_property_0:pa(9029,1,"Add_a_type_annotation_to_the_property_0_9029","Add a type annotation to the property {0}."),Add_a_return_type_to_the_function_expression:pa(9030,1,"Add_a_return_type_to_the_function_expression_9030","Add a return type to the function expression."),Add_a_return_type_to_the_function_declaration:pa(9031,1,"Add_a_return_type_to_the_function_declaration_9031","Add a return type to the function declaration."),Add_a_return_type_to_the_get_accessor_declaration:pa(9032,1,"Add_a_return_type_to_the_get_accessor_declaration_9032","Add a return type to the get accessor declaration."),Add_a_type_to_parameter_of_the_set_accessor_declaration:pa(9033,1,"Add_a_type_to_parameter_of_the_set_accessor_declaration_9033","Add a type to parameter of the set accessor declaration."),Add_a_return_type_to_the_method:pa(9034,1,"Add_a_return_type_to_the_method_9034","Add a return type to the method"),Add_satisfies_and_a_type_assertion_to_this_expression_satisfies_T_as_T_to_make_the_type_explicit:pa(9035,1,"Add_satisfies_and_a_type_assertion_to_this_expression_satisfies_T_as_T_to_make_the_type_explicit_9035","Add satisfies and a type assertion to this expression (satisfies T as T) to make the type explicit."),Move_the_expression_in_default_export_to_a_variable_and_add_a_type_annotation_to_it:pa(9036,1,"Move_the_expression_in_default_export_to_a_variable_and_add_a_type_annotation_to_it_9036","Move the expression in default export to a variable and add a type annotation to it."),Default_exports_can_t_be_inferred_with_isolatedDeclarations:pa(9037,1,"Default_exports_can_t_be_inferred_with_isolatedDeclarations_9037","Default exports can't be inferred with --isolatedDeclarations."),Computed_property_names_on_class_or_object_literals_cannot_be_inferred_with_isolatedDeclarations:pa(9038,1,"Computed_property_names_on_class_or_object_literals_cannot_be_inferred_with_isolatedDeclarations_9038","Computed property names on class or object literals cannot be inferred with --isolatedDeclarations."),Type_containing_private_name_0_can_t_be_used_with_isolatedDeclarations:pa(9039,1,"Type_containing_private_name_0_can_t_be_used_with_isolatedDeclarations_9039","Type containing private name '{0}' can't be used with --isolatedDeclarations."),JSX_attributes_must_only_be_assigned_a_non_empty_expression:pa(17e3,1,"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:pa(17001,1,"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:pa(17002,1,"Expected_corresponding_JSX_closing_tag_for_0_17002","Expected corresponding JSX closing tag for '{0}'."),Cannot_use_JSX_unless_the_jsx_flag_is_provided:pa(17004,1,"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:pa(17005,1,"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:pa(17006,1,"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:pa(17007,1,"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:pa(17008,1,"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:pa(17009,1,"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:pa(17010,1,"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:pa(17011,1,"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:pa(17012,1,"_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:pa(17013,1,"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:pa(17014,1,"JSX_fragment_has_no_corresponding_closing_tag_17014","JSX fragment has no corresponding closing tag."),Expected_corresponding_closing_tag_for_JSX_fragment:pa(17015,1,"Expected_corresponding_closing_tag_for_JSX_fragment_17015","Expected corresponding closing tag for JSX fragment."),The_jsxFragmentFactory_compiler_option_must_be_provided_to_use_JSX_fragments_with_the_jsxFactory_compiler_option:pa(17016,1,"The_jsxFragmentFactory_compiler_option_must_be_provided_to_use_JSX_fragments_with_the_jsxFactory_com_17016","The 'jsxFragmentFactory' compiler option must be provided to use JSX fragments with the 'jsxFactory' compiler option."),An_jsxFrag_pragma_is_required_when_using_an_jsx_pragma_with_JSX_fragments:pa(17017,1,"An_jsxFrag_pragma_is_required_when_using_an_jsx_pragma_with_JSX_fragments_17017","An @jsxFrag pragma is required when using an @jsx pragma with JSX fragments."),Unknown_type_acquisition_option_0_Did_you_mean_1:pa(17018,1,"Unknown_type_acquisition_option_0_Did_you_mean_1_17018","Unknown type acquisition option '{0}'. Did you mean '{1}'?"),_0_at_the_end_of_a_type_is_not_valid_TypeScript_syntax_Did_you_mean_to_write_1:pa(17019,1,"_0_at_the_end_of_a_type_is_not_valid_TypeScript_syntax_Did_you_mean_to_write_1_17019","'{0}' at the end of a type is not valid TypeScript syntax. Did you mean to write '{1}'?"),_0_at_the_start_of_a_type_is_not_valid_TypeScript_syntax_Did_you_mean_to_write_1:pa(17020,1,"_0_at_the_start_of_a_type_is_not_valid_TypeScript_syntax_Did_you_mean_to_write_1_17020","'{0}' at the start of a type is not valid TypeScript syntax. Did you mean to write '{1}'?"),Unicode_escape_sequence_cannot_appear_here:pa(17021,1,"Unicode_escape_sequence_cannot_appear_here_17021","Unicode escape sequence cannot appear here."),Circularity_detected_while_resolving_configuration_Colon_0:pa(18e3,1,"Circularity_detected_while_resolving_configuration_Colon_0_18000","Circularity detected while resolving configuration: {0}"),The_files_list_in_config_file_0_is_empty:pa(18002,1,"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:pa(18003,1,"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_ES_module:pa(80001,2,"File_is_a_CommonJS_module_it_may_be_converted_to_an_ES_module_80001","File is a CommonJS module; it may be converted to an ES module."),This_constructor_function_may_be_converted_to_a_class_declaration:pa(80002,2,"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:pa(80003,2,"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:pa(80004,2,"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:pa(80005,2,"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:pa(80006,2,"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:pa(80007,2,"await_has_no_effect_on_the_type_of_this_expression_80007","'await' has no effect on the type of this expression."),Numeric_literals_with_absolute_values_equal_to_2_53_or_greater_are_too_large_to_be_represented_accurately_as_integers:pa(80008,2,"Numeric_literals_with_absolute_values_equal_to_2_53_or_greater_are_too_large_to_be_represented_accur_80008","Numeric literals with absolute values equal to 2^53 or greater are too large to be represented accurately as integers."),JSDoc_typedef_may_be_converted_to_TypeScript_type:pa(80009,2,"JSDoc_typedef_may_be_converted_to_TypeScript_type_80009","JSDoc typedef may be converted to TypeScript type."),JSDoc_typedefs_may_be_converted_to_TypeScript_types:pa(80010,2,"JSDoc_typedefs_may_be_converted_to_TypeScript_types_80010","JSDoc typedefs may be converted to TypeScript types."),Add_missing_super_call:pa(90001,3,"Add_missing_super_call_90001","Add missing 'super()' call"),Make_super_call_the_first_statement_in_the_constructor:pa(90002,3,"Make_super_call_the_first_statement_in_the_constructor_90002","Make 'super()' call the first statement in the constructor"),Change_extends_to_implements:pa(90003,3,"Change_extends_to_implements_90003","Change 'extends' to 'implements'"),Remove_unused_declaration_for_Colon_0:pa(90004,3,"Remove_unused_declaration_for_Colon_0_90004","Remove unused declaration for: '{0}'"),Remove_import_from_0:pa(90005,3,"Remove_import_from_0_90005","Remove import from '{0}'"),Implement_interface_0:pa(90006,3,"Implement_interface_0_90006","Implement interface '{0}'"),Implement_inherited_abstract_class:pa(90007,3,"Implement_inherited_abstract_class_90007","Implement inherited abstract class"),Add_0_to_unresolved_variable:pa(90008,3,"Add_0_to_unresolved_variable_90008","Add '{0}.' to unresolved variable"),Remove_variable_statement:pa(90010,3,"Remove_variable_statement_90010","Remove variable statement"),Remove_template_tag:pa(90011,3,"Remove_template_tag_90011","Remove template tag"),Remove_type_parameters:pa(90012,3,"Remove_type_parameters_90012","Remove type parameters"),Import_0_from_1:pa(90013,3,"Import_0_from_1_90013","Import '{0}' from \"{1}\""),Change_0_to_1:pa(90014,3,"Change_0_to_1_90014","Change '{0}' to '{1}'"),Declare_property_0:pa(90016,3,"Declare_property_0_90016","Declare property '{0}'"),Add_index_signature_for_property_0:pa(90017,3,"Add_index_signature_for_property_0_90017","Add index signature for property '{0}'"),Disable_checking_for_this_file:pa(90018,3,"Disable_checking_for_this_file_90018","Disable checking for this file"),Ignore_this_error_message:pa(90019,3,"Ignore_this_error_message_90019","Ignore this error message"),Initialize_property_0_in_the_constructor:pa(90020,3,"Initialize_property_0_in_the_constructor_90020","Initialize property '{0}' in the constructor"),Initialize_static_property_0:pa(90021,3,"Initialize_static_property_0_90021","Initialize static property '{0}'"),Change_spelling_to_0:pa(90022,3,"Change_spelling_to_0_90022","Change spelling to '{0}'"),Declare_method_0:pa(90023,3,"Declare_method_0_90023","Declare method '{0}'"),Declare_static_method_0:pa(90024,3,"Declare_static_method_0_90024","Declare static method '{0}'"),Prefix_0_with_an_underscore:pa(90025,3,"Prefix_0_with_an_underscore_90025","Prefix '{0}' with an underscore"),Rewrite_as_the_indexed_access_type_0:pa(90026,3,"Rewrite_as_the_indexed_access_type_0_90026","Rewrite as the indexed access type '{0}'"),Declare_static_property_0:pa(90027,3,"Declare_static_property_0_90027","Declare static property '{0}'"),Call_decorator_expression:pa(90028,3,"Call_decorator_expression_90028","Call decorator expression"),Add_async_modifier_to_containing_function:pa(90029,3,"Add_async_modifier_to_containing_function_90029","Add async modifier to containing function"),Replace_infer_0_with_unknown:pa(90030,3,"Replace_infer_0_with_unknown_90030","Replace 'infer {0}' with 'unknown'"),Replace_all_unused_infer_with_unknown:pa(90031,3,"Replace_all_unused_infer_with_unknown_90031","Replace all unused 'infer' with 'unknown'"),Add_parameter_name:pa(90034,3,"Add_parameter_name_90034","Add parameter name"),Declare_private_property_0:pa(90035,3,"Declare_private_property_0_90035","Declare private property '{0}'"),Replace_0_with_Promise_1:pa(90036,3,"Replace_0_with_Promise_1_90036","Replace '{0}' with 'Promise<{1}>'"),Fix_all_incorrect_return_type_of_an_async_functions:pa(90037,3,"Fix_all_incorrect_return_type_of_an_async_functions_90037","Fix all incorrect return type of an async functions"),Declare_private_method_0:pa(90038,3,"Declare_private_method_0_90038","Declare private method '{0}'"),Remove_unused_destructuring_declaration:pa(90039,3,"Remove_unused_destructuring_declaration_90039","Remove unused destructuring declaration"),Remove_unused_declarations_for_Colon_0:pa(90041,3,"Remove_unused_declarations_for_Colon_0_90041","Remove unused declarations for: '{0}'"),Declare_a_private_field_named_0:pa(90053,3,"Declare_a_private_field_named_0_90053","Declare a private field named '{0}'."),Includes_imports_of_types_referenced_by_0:pa(90054,3,"Includes_imports_of_types_referenced_by_0_90054","Includes imports of types referenced by '{0}'"),Remove_type_from_import_declaration_from_0:pa(90055,3,"Remove_type_from_import_declaration_from_0_90055","Remove 'type' from import declaration from \"{0}\""),Remove_type_from_import_of_0_from_1:pa(90056,3,"Remove_type_from_import_of_0_from_1_90056","Remove 'type' from import of '{0}' from \"{1}\""),Add_import_from_0:pa(90057,3,"Add_import_from_0_90057",'Add import from "{0}"'),Update_import_from_0:pa(90058,3,"Update_import_from_0_90058",'Update import from "{0}"'),Export_0_from_module_1:pa(90059,3,"Export_0_from_module_1_90059","Export '{0}' from module '{1}'"),Export_all_referenced_locals:pa(90060,3,"Export_all_referenced_locals_90060","Export all referenced locals"),Update_modifiers_of_0:pa(90061,3,"Update_modifiers_of_0_90061","Update modifiers of '{0}'"),Add_annotation_of_type_0:pa(90062,3,"Add_annotation_of_type_0_90062","Add annotation of type '{0}'"),Add_return_type_0:pa(90063,3,"Add_return_type_0_90063","Add return type '{0}'"),Extract_base_class_to_variable:pa(90064,3,"Extract_base_class_to_variable_90064","Extract base class to variable"),Extract_default_export_to_variable:pa(90065,3,"Extract_default_export_to_variable_90065","Extract default export to variable"),Extract_binding_expressions_to_variable:pa(90066,3,"Extract_binding_expressions_to_variable_90066","Extract binding expressions to variable"),Add_all_missing_type_annotations:pa(90067,3,"Add_all_missing_type_annotations_90067","Add all missing type annotations"),Add_satisfies_and_an_inline_type_assertion_with_0:pa(90068,3,"Add_satisfies_and_an_inline_type_assertion_with_0_90068","Add satisfies and an inline type assertion with '{0}'"),Extract_to_variable_and_replace_with_0_as_typeof_0:pa(90069,3,"Extract_to_variable_and_replace_with_0_as_typeof_0_90069","Extract to variable and replace with '{0} as typeof {0}'"),Mark_array_literal_as_const:pa(90070,3,"Mark_array_literal_as_const_90070","Mark array literal as const"),Annotate_types_of_properties_expando_function_in_a_namespace:pa(90071,3,"Annotate_types_of_properties_expando_function_in_a_namespace_90071","Annotate types of properties expando function in a namespace"),Convert_function_to_an_ES2015_class:pa(95001,3,"Convert_function_to_an_ES2015_class_95001","Convert function to an ES2015 class"),Convert_0_to_1_in_0:pa(95003,3,"Convert_0_to_1_in_0_95003","Convert '{0}' to '{1} in {0}'"),Extract_to_0_in_1:pa(95004,3,"Extract_to_0_in_1_95004","Extract to {0} in {1}"),Extract_function:pa(95005,3,"Extract_function_95005","Extract function"),Extract_constant:pa(95006,3,"Extract_constant_95006","Extract constant"),Extract_to_0_in_enclosing_scope:pa(95007,3,"Extract_to_0_in_enclosing_scope_95007","Extract to {0} in enclosing scope"),Extract_to_0_in_1_scope:pa(95008,3,"Extract_to_0_in_1_scope_95008","Extract to {0} in {1} scope"),Annotate_with_type_from_JSDoc:pa(95009,3,"Annotate_with_type_from_JSDoc_95009","Annotate with type from JSDoc"),Infer_type_of_0_from_usage:pa(95011,3,"Infer_type_of_0_from_usage_95011","Infer type of '{0}' from usage"),Infer_parameter_types_from_usage:pa(95012,3,"Infer_parameter_types_from_usage_95012","Infer parameter types from usage"),Convert_to_default_import:pa(95013,3,"Convert_to_default_import_95013","Convert to default import"),Install_0:pa(95014,3,"Install_0_95014","Install '{0}'"),Replace_import_with_0:pa(95015,3,"Replace_import_with_0_95015","Replace import with '{0}'."),Use_synthetic_default_member:pa(95016,3,"Use_synthetic_default_member_95016","Use synthetic 'default' member."),Convert_to_ES_module:pa(95017,3,"Convert_to_ES_module_95017","Convert to ES module"),Add_undefined_type_to_property_0:pa(95018,3,"Add_undefined_type_to_property_0_95018","Add 'undefined' type to property '{0}'"),Add_initializer_to_property_0:pa(95019,3,"Add_initializer_to_property_0_95019","Add initializer to property '{0}'"),Add_definite_assignment_assertion_to_property_0:pa(95020,3,"Add_definite_assignment_assertion_to_property_0_95020","Add definite assignment assertion to property '{0}'"),Convert_all_type_literals_to_mapped_type:pa(95021,3,"Convert_all_type_literals_to_mapped_type_95021","Convert all type literals to mapped type"),Add_all_missing_members:pa(95022,3,"Add_all_missing_members_95022","Add all missing members"),Infer_all_types_from_usage:pa(95023,3,"Infer_all_types_from_usage_95023","Infer all types from usage"),Delete_all_unused_declarations:pa(95024,3,"Delete_all_unused_declarations_95024","Delete all unused declarations"),Prefix_all_unused_declarations_with_where_possible:pa(95025,3,"Prefix_all_unused_declarations_with_where_possible_95025","Prefix all unused declarations with '_' where possible"),Fix_all_detected_spelling_errors:pa(95026,3,"Fix_all_detected_spelling_errors_95026","Fix all detected spelling errors"),Add_initializers_to_all_uninitialized_properties:pa(95027,3,"Add_initializers_to_all_uninitialized_properties_95027","Add initializers to all uninitialized properties"),Add_definite_assignment_assertions_to_all_uninitialized_properties:pa(95028,3,"Add_definite_assignment_assertions_to_all_uninitialized_properties_95028","Add definite assignment assertions to all uninitialized properties"),Add_undefined_type_to_all_uninitialized_properties:pa(95029,3,"Add_undefined_type_to_all_uninitialized_properties_95029","Add undefined type to all uninitialized properties"),Change_all_jsdoc_style_types_to_TypeScript:pa(95030,3,"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:pa(95031,3,"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:pa(95032,3,"Implement_all_unimplemented_interfaces_95032","Implement all unimplemented interfaces"),Install_all_missing_types_packages:pa(95033,3,"Install_all_missing_types_packages_95033","Install all missing types packages"),Rewrite_all_as_indexed_access_types:pa(95034,3,"Rewrite_all_as_indexed_access_types_95034","Rewrite all as indexed access types"),Convert_all_to_default_imports:pa(95035,3,"Convert_all_to_default_imports_95035","Convert all to default imports"),Make_all_super_calls_the_first_statement_in_their_constructor:pa(95036,3,"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:pa(95037,3,"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:pa(95038,3,"Change_all_extended_interfaces_to_implements_95038","Change all extended interfaces to 'implements'"),Add_all_missing_super_calls:pa(95039,3,"Add_all_missing_super_calls_95039","Add all missing super calls"),Implement_all_inherited_abstract_classes:pa(95040,3,"Implement_all_inherited_abstract_classes_95040","Implement all inherited abstract classes"),Add_all_missing_async_modifiers:pa(95041,3,"Add_all_missing_async_modifiers_95041","Add all missing 'async' modifiers"),Add_ts_ignore_to_all_error_messages:pa(95042,3,"Add_ts_ignore_to_all_error_messages_95042","Add '@ts-ignore' to all error messages"),Annotate_everything_with_types_from_JSDoc:pa(95043,3,"Annotate_everything_with_types_from_JSDoc_95043","Annotate everything with types from JSDoc"),Add_to_all_uncalled_decorators:pa(95044,3,"Add_to_all_uncalled_decorators_95044","Add '()' to all uncalled decorators"),Convert_all_constructor_functions_to_classes:pa(95045,3,"Convert_all_constructor_functions_to_classes_95045","Convert all constructor functions to classes"),Generate_get_and_set_accessors:pa(95046,3,"Generate_get_and_set_accessors_95046","Generate 'get' and 'set' accessors"),Convert_require_to_import:pa(95047,3,"Convert_require_to_import_95047","Convert 'require' to 'import'"),Convert_all_require_to_import:pa(95048,3,"Convert_all_require_to_import_95048","Convert all 'require' to 'import'"),Move_to_a_new_file:pa(95049,3,"Move_to_a_new_file_95049","Move to a new file"),Remove_unreachable_code:pa(95050,3,"Remove_unreachable_code_95050","Remove unreachable code"),Remove_all_unreachable_code:pa(95051,3,"Remove_all_unreachable_code_95051","Remove all unreachable code"),Add_missing_typeof:pa(95052,3,"Add_missing_typeof_95052","Add missing 'typeof'"),Remove_unused_label:pa(95053,3,"Remove_unused_label_95053","Remove unused label"),Remove_all_unused_labels:pa(95054,3,"Remove_all_unused_labels_95054","Remove all unused labels"),Convert_0_to_mapped_object_type:pa(95055,3,"Convert_0_to_mapped_object_type_95055","Convert '{0}' to mapped object type"),Convert_namespace_import_to_named_imports:pa(95056,3,"Convert_namespace_import_to_named_imports_95056","Convert namespace import to named imports"),Convert_named_imports_to_namespace_import:pa(95057,3,"Convert_named_imports_to_namespace_import_95057","Convert named imports to namespace import"),Add_or_remove_braces_in_an_arrow_function:pa(95058,3,"Add_or_remove_braces_in_an_arrow_function_95058","Add or remove braces in an arrow function"),Add_braces_to_arrow_function:pa(95059,3,"Add_braces_to_arrow_function_95059","Add braces to arrow function"),Remove_braces_from_arrow_function:pa(95060,3,"Remove_braces_from_arrow_function_95060","Remove braces from arrow function"),Convert_default_export_to_named_export:pa(95061,3,"Convert_default_export_to_named_export_95061","Convert default export to named export"),Convert_named_export_to_default_export:pa(95062,3,"Convert_named_export_to_default_export_95062","Convert named export to default export"),Add_missing_enum_member_0:pa(95063,3,"Add_missing_enum_member_0_95063","Add missing enum member '{0}'"),Add_all_missing_imports:pa(95064,3,"Add_all_missing_imports_95064","Add all missing imports"),Convert_to_async_function:pa(95065,3,"Convert_to_async_function_95065","Convert to async function"),Convert_all_to_async_functions:pa(95066,3,"Convert_all_to_async_functions_95066","Convert all to async functions"),Add_missing_call_parentheses:pa(95067,3,"Add_missing_call_parentheses_95067","Add missing call parentheses"),Add_all_missing_call_parentheses:pa(95068,3,"Add_all_missing_call_parentheses_95068","Add all missing call parentheses"),Add_unknown_conversion_for_non_overlapping_types:pa(95069,3,"Add_unknown_conversion_for_non_overlapping_types_95069","Add 'unknown' conversion for non-overlapping types"),Add_unknown_to_all_conversions_of_non_overlapping_types:pa(95070,3,"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:pa(95071,3,"Add_missing_new_operator_to_call_95071","Add missing 'new' operator to call"),Add_missing_new_operator_to_all_calls:pa(95072,3,"Add_missing_new_operator_to_all_calls_95072","Add missing 'new' operator to all calls"),Add_names_to_all_parameters_without_names:pa(95073,3,"Add_names_to_all_parameters_without_names_95073","Add names to all parameters without names"),Enable_the_experimentalDecorators_option_in_your_configuration_file:pa(95074,3,"Enable_the_experimentalDecorators_option_in_your_configuration_file_95074","Enable the 'experimentalDecorators' option in your configuration file"),Convert_parameters_to_destructured_object:pa(95075,3,"Convert_parameters_to_destructured_object_95075","Convert parameters to destructured object"),Extract_type:pa(95077,3,"Extract_type_95077","Extract type"),Extract_to_type_alias:pa(95078,3,"Extract_to_type_alias_95078","Extract to type alias"),Extract_to_typedef:pa(95079,3,"Extract_to_typedef_95079","Extract to typedef"),Infer_this_type_of_0_from_usage:pa(95080,3,"Infer_this_type_of_0_from_usage_95080","Infer 'this' type of '{0}' from usage"),Add_const_to_unresolved_variable:pa(95081,3,"Add_const_to_unresolved_variable_95081","Add 'const' to unresolved variable"),Add_const_to_all_unresolved_variables:pa(95082,3,"Add_const_to_all_unresolved_variables_95082","Add 'const' to all unresolved variables"),Add_await:pa(95083,3,"Add_await_95083","Add 'await'"),Add_await_to_initializer_for_0:pa(95084,3,"Add_await_to_initializer_for_0_95084","Add 'await' to initializer for '{0}'"),Fix_all_expressions_possibly_missing_await:pa(95085,3,"Fix_all_expressions_possibly_missing_await_95085","Fix all expressions possibly missing 'await'"),Remove_unnecessary_await:pa(95086,3,"Remove_unnecessary_await_95086","Remove unnecessary 'await'"),Remove_all_unnecessary_uses_of_await:pa(95087,3,"Remove_all_unnecessary_uses_of_await_95087","Remove all unnecessary uses of 'await'"),Enable_the_jsx_flag_in_your_configuration_file:pa(95088,3,"Enable_the_jsx_flag_in_your_configuration_file_95088","Enable the '--jsx' flag in your configuration file"),Add_await_to_initializers:pa(95089,3,"Add_await_to_initializers_95089","Add 'await' to initializers"),Extract_to_interface:pa(95090,3,"Extract_to_interface_95090","Extract to interface"),Convert_to_a_bigint_numeric_literal:pa(95091,3,"Convert_to_a_bigint_numeric_literal_95091","Convert to a bigint numeric literal"),Convert_all_to_bigint_numeric_literals:pa(95092,3,"Convert_all_to_bigint_numeric_literals_95092","Convert all to bigint numeric literals"),Convert_const_to_let:pa(95093,3,"Convert_const_to_let_95093","Convert 'const' to 'let'"),Prefix_with_declare:pa(95094,3,"Prefix_with_declare_95094","Prefix with 'declare'"),Prefix_all_incorrect_property_declarations_with_declare:pa(95095,3,"Prefix_all_incorrect_property_declarations_with_declare_95095","Prefix all incorrect property declarations with 'declare'"),Convert_to_template_string:pa(95096,3,"Convert_to_template_string_95096","Convert to template string"),Add_export_to_make_this_file_into_a_module:pa(95097,3,"Add_export_to_make_this_file_into_a_module_95097","Add 'export {}' to make this file into a module"),Set_the_target_option_in_your_configuration_file_to_0:pa(95098,3,"Set_the_target_option_in_your_configuration_file_to_0_95098","Set the 'target' option in your configuration file to '{0}'"),Set_the_module_option_in_your_configuration_file_to_0:pa(95099,3,"Set_the_module_option_in_your_configuration_file_to_0_95099","Set the 'module' option in your configuration file to '{0}'"),Convert_invalid_character_to_its_html_entity_code:pa(95100,3,"Convert_invalid_character_to_its_html_entity_code_95100","Convert invalid character to its html entity code"),Convert_all_invalid_characters_to_HTML_entity_code:pa(95101,3,"Convert_all_invalid_characters_to_HTML_entity_code_95101","Convert all invalid characters to HTML entity code"),Convert_all_const_to_let:pa(95102,3,"Convert_all_const_to_let_95102","Convert all 'const' to 'let'"),Convert_function_expression_0_to_arrow_function:pa(95105,3,"Convert_function_expression_0_to_arrow_function_95105","Convert function expression '{0}' to arrow function"),Convert_function_declaration_0_to_arrow_function:pa(95106,3,"Convert_function_declaration_0_to_arrow_function_95106","Convert function declaration '{0}' to arrow function"),Fix_all_implicit_this_errors:pa(95107,3,"Fix_all_implicit_this_errors_95107","Fix all implicit-'this' errors"),Wrap_invalid_character_in_an_expression_container:pa(95108,3,"Wrap_invalid_character_in_an_expression_container_95108","Wrap invalid character in an expression container"),Wrap_all_invalid_characters_in_an_expression_container:pa(95109,3,"Wrap_all_invalid_characters_in_an_expression_container_95109","Wrap all invalid characters in an expression container"),Visit_https_Colon_Slash_Slashaka_ms_Slashtsconfig_to_read_more_about_this_file:pa(95110,3,"Visit_https_Colon_Slash_Slashaka_ms_Slashtsconfig_to_read_more_about_this_file_95110","Visit https://aka.ms/tsconfig to read more about this file"),Add_a_return_statement:pa(95111,3,"Add_a_return_statement_95111","Add a return statement"),Remove_braces_from_arrow_function_body:pa(95112,3,"Remove_braces_from_arrow_function_body_95112","Remove braces from arrow function body"),Wrap_the_following_body_with_parentheses_which_should_be_an_object_literal:pa(95113,3,"Wrap_the_following_body_with_parentheses_which_should_be_an_object_literal_95113","Wrap the following body with parentheses which should be an object literal"),Add_all_missing_return_statement:pa(95114,3,"Add_all_missing_return_statement_95114","Add all missing return statement"),Remove_braces_from_all_arrow_function_bodies_with_relevant_issues:pa(95115,3,"Remove_braces_from_all_arrow_function_bodies_with_relevant_issues_95115","Remove braces from all arrow function bodies with relevant issues"),Wrap_all_object_literal_with_parentheses:pa(95116,3,"Wrap_all_object_literal_with_parentheses_95116","Wrap all object literal with parentheses"),Move_labeled_tuple_element_modifiers_to_labels:pa(95117,3,"Move_labeled_tuple_element_modifiers_to_labels_95117","Move labeled tuple element modifiers to labels"),Convert_overload_list_to_single_signature:pa(95118,3,"Convert_overload_list_to_single_signature_95118","Convert overload list to single signature"),Generate_get_and_set_accessors_for_all_overriding_properties:pa(95119,3,"Generate_get_and_set_accessors_for_all_overriding_properties_95119","Generate 'get' and 'set' accessors for all overriding properties"),Wrap_in_JSX_fragment:pa(95120,3,"Wrap_in_JSX_fragment_95120","Wrap in JSX fragment"),Wrap_all_unparented_JSX_in_JSX_fragment:pa(95121,3,"Wrap_all_unparented_JSX_in_JSX_fragment_95121","Wrap all unparented JSX in JSX fragment"),Convert_arrow_function_or_function_expression:pa(95122,3,"Convert_arrow_function_or_function_expression_95122","Convert arrow function or function expression"),Convert_to_anonymous_function:pa(95123,3,"Convert_to_anonymous_function_95123","Convert to anonymous function"),Convert_to_named_function:pa(95124,3,"Convert_to_named_function_95124","Convert to named function"),Convert_to_arrow_function:pa(95125,3,"Convert_to_arrow_function_95125","Convert to arrow function"),Remove_parentheses:pa(95126,3,"Remove_parentheses_95126","Remove parentheses"),Could_not_find_a_containing_arrow_function:pa(95127,3,"Could_not_find_a_containing_arrow_function_95127","Could not find a containing arrow function"),Containing_function_is_not_an_arrow_function:pa(95128,3,"Containing_function_is_not_an_arrow_function_95128","Containing function is not an arrow function"),Could_not_find_export_statement:pa(95129,3,"Could_not_find_export_statement_95129","Could not find export statement"),This_file_already_has_a_default_export:pa(95130,3,"This_file_already_has_a_default_export_95130","This file already has a default export"),Could_not_find_import_clause:pa(95131,3,"Could_not_find_import_clause_95131","Could not find import clause"),Could_not_find_namespace_import_or_named_imports:pa(95132,3,"Could_not_find_namespace_import_or_named_imports_95132","Could not find namespace import or named imports"),Selection_is_not_a_valid_type_node:pa(95133,3,"Selection_is_not_a_valid_type_node_95133","Selection is not a valid type node"),No_type_could_be_extracted_from_this_type_node:pa(95134,3,"No_type_could_be_extracted_from_this_type_node_95134","No type could be extracted from this type node"),Could_not_find_property_for_which_to_generate_accessor:pa(95135,3,"Could_not_find_property_for_which_to_generate_accessor_95135","Could not find property for which to generate accessor"),Name_is_not_valid:pa(95136,3,"Name_is_not_valid_95136","Name is not valid"),Can_only_convert_property_with_modifier:pa(95137,3,"Can_only_convert_property_with_modifier_95137","Can only convert property with modifier"),Switch_each_misused_0_to_1:pa(95138,3,"Switch_each_misused_0_to_1_95138","Switch each misused '{0}' to '{1}'"),Convert_to_optional_chain_expression:pa(95139,3,"Convert_to_optional_chain_expression_95139","Convert to optional chain expression"),Could_not_find_convertible_access_expression:pa(95140,3,"Could_not_find_convertible_access_expression_95140","Could not find convertible access expression"),Could_not_find_matching_access_expressions:pa(95141,3,"Could_not_find_matching_access_expressions_95141","Could not find matching access expressions"),Can_only_convert_logical_AND_access_chains:pa(95142,3,"Can_only_convert_logical_AND_access_chains_95142","Can only convert logical AND access chains"),Add_void_to_Promise_resolved_without_a_value:pa(95143,3,"Add_void_to_Promise_resolved_without_a_value_95143","Add 'void' to Promise resolved without a value"),Add_void_to_all_Promises_resolved_without_a_value:pa(95144,3,"Add_void_to_all_Promises_resolved_without_a_value_95144","Add 'void' to all Promises resolved without a value"),Use_element_access_for_0:pa(95145,3,"Use_element_access_for_0_95145","Use element access for '{0}'"),Use_element_access_for_all_undeclared_properties:pa(95146,3,"Use_element_access_for_all_undeclared_properties_95146","Use element access for all undeclared properties."),Delete_all_unused_imports:pa(95147,3,"Delete_all_unused_imports_95147","Delete all unused imports"),Infer_function_return_type:pa(95148,3,"Infer_function_return_type_95148","Infer function return type"),Return_type_must_be_inferred_from_a_function:pa(95149,3,"Return_type_must_be_inferred_from_a_function_95149","Return type must be inferred from a function"),Could_not_determine_function_return_type:pa(95150,3,"Could_not_determine_function_return_type_95150","Could not determine function return type"),Could_not_convert_to_arrow_function:pa(95151,3,"Could_not_convert_to_arrow_function_95151","Could not convert to arrow function"),Could_not_convert_to_named_function:pa(95152,3,"Could_not_convert_to_named_function_95152","Could not convert to named function"),Could_not_convert_to_anonymous_function:pa(95153,3,"Could_not_convert_to_anonymous_function_95153","Could not convert to anonymous function"),Can_only_convert_string_concatenations_and_string_literals:pa(95154,3,"Can_only_convert_string_concatenations_and_string_literals_95154","Can only convert string concatenations and string literals"),Selection_is_not_a_valid_statement_or_statements:pa(95155,3,"Selection_is_not_a_valid_statement_or_statements_95155","Selection is not a valid statement or statements"),Add_missing_function_declaration_0:pa(95156,3,"Add_missing_function_declaration_0_95156","Add missing function declaration '{0}'"),Add_all_missing_function_declarations:pa(95157,3,"Add_all_missing_function_declarations_95157","Add all missing function declarations"),Method_not_implemented:pa(95158,3,"Method_not_implemented_95158","Method not implemented."),Function_not_implemented:pa(95159,3,"Function_not_implemented_95159","Function not implemented."),Add_override_modifier:pa(95160,3,"Add_override_modifier_95160","Add 'override' modifier"),Remove_override_modifier:pa(95161,3,"Remove_override_modifier_95161","Remove 'override' modifier"),Add_all_missing_override_modifiers:pa(95162,3,"Add_all_missing_override_modifiers_95162","Add all missing 'override' modifiers"),Remove_all_unnecessary_override_modifiers:pa(95163,3,"Remove_all_unnecessary_override_modifiers_95163","Remove all unnecessary 'override' modifiers"),Can_only_convert_named_export:pa(95164,3,"Can_only_convert_named_export_95164","Can only convert named export"),Add_missing_properties:pa(95165,3,"Add_missing_properties_95165","Add missing properties"),Add_all_missing_properties:pa(95166,3,"Add_all_missing_properties_95166","Add all missing properties"),Add_missing_attributes:pa(95167,3,"Add_missing_attributes_95167","Add missing attributes"),Add_all_missing_attributes:pa(95168,3,"Add_all_missing_attributes_95168","Add all missing attributes"),Add_undefined_to_optional_property_type:pa(95169,3,"Add_undefined_to_optional_property_type_95169","Add 'undefined' to optional property type"),Convert_named_imports_to_default_import:pa(95170,3,"Convert_named_imports_to_default_import_95170","Convert named imports to default import"),Delete_unused_param_tag_0:pa(95171,3,"Delete_unused_param_tag_0_95171","Delete unused '@param' tag '{0}'"),Delete_all_unused_param_tags:pa(95172,3,"Delete_all_unused_param_tags_95172","Delete all unused '@param' tags"),Rename_param_tag_name_0_to_1:pa(95173,3,"Rename_param_tag_name_0_to_1_95173","Rename '@param' tag name '{0}' to '{1}'"),Use_0:pa(95174,3,"Use_0_95174","Use `{0}`."),Use_Number_isNaN_in_all_conditions:pa(95175,3,"Use_Number_isNaN_in_all_conditions_95175","Use `Number.isNaN` in all conditions."),Convert_typedef_to_TypeScript_type:pa(95176,3,"Convert_typedef_to_TypeScript_type_95176","Convert typedef to TypeScript type."),Convert_all_typedef_to_TypeScript_types:pa(95177,3,"Convert_all_typedef_to_TypeScript_types_95177","Convert all typedef to TypeScript types."),Move_to_file:pa(95178,3,"Move_to_file_95178","Move to file"),Cannot_move_to_file_selected_file_is_invalid:pa(95179,3,"Cannot_move_to_file_selected_file_is_invalid_95179","Cannot move to file, selected file is invalid"),Use_import_type:pa(95180,3,"Use_import_type_95180","Use 'import type'"),Use_type_0:pa(95181,3,"Use_type_0_95181","Use 'type {0}'"),Fix_all_with_type_only_imports:pa(95182,3,"Fix_all_with_type_only_imports_95182","Fix all with type-only imports"),Cannot_move_statements_to_the_selected_file:pa(95183,3,"Cannot_move_statements_to_the_selected_file_95183","Cannot move statements to the selected file"),Inline_variable:pa(95184,3,"Inline_variable_95184","Inline variable"),Could_not_find_variable_to_inline:pa(95185,3,"Could_not_find_variable_to_inline_95185","Could not find variable to inline."),Variables_with_multiple_declarations_cannot_be_inlined:pa(95186,3,"Variables_with_multiple_declarations_cannot_be_inlined_95186","Variables with multiple declarations cannot be inlined."),Add_missing_comma_for_object_member_completion_0:pa(95187,3,"Add_missing_comma_for_object_member_completion_0_95187","Add missing comma for object member completion '{0}'."),Add_missing_parameter_to_0:pa(95188,3,"Add_missing_parameter_to_0_95188","Add missing parameter to '{0}'"),Add_missing_parameters_to_0:pa(95189,3,"Add_missing_parameters_to_0_95189","Add missing parameters to '{0}'"),Add_all_missing_parameters:pa(95190,3,"Add_all_missing_parameters_95190","Add all missing parameters"),Add_optional_parameter_to_0:pa(95191,3,"Add_optional_parameter_to_0_95191","Add optional parameter to '{0}'"),Add_optional_parameters_to_0:pa(95192,3,"Add_optional_parameters_to_0_95192","Add optional parameters to '{0}'"),Add_all_optional_parameters:pa(95193,3,"Add_all_optional_parameters_95193","Add all optional parameters"),Wrap_in_parentheses:pa(95194,3,"Wrap_in_parentheses_95194","Wrap in parentheses"),Wrap_all_invalid_decorator_expressions_in_parentheses:pa(95195,3,"Wrap_all_invalid_decorator_expressions_in_parentheses_95195","Wrap all invalid decorator expressions in parentheses"),Add_resolution_mode_import_attribute:pa(95196,3,"Add_resolution_mode_import_attribute_95196","Add 'resolution-mode' import attribute"),Add_resolution_mode_import_attribute_to_all_type_only_imports_that_need_it:pa(95197,3,"Add_resolution_mode_import_attribute_to_all_type_only_imports_that_need_it_95197","Add 'resolution-mode' import attribute to all type-only imports that need it"),No_value_exists_in_scope_for_the_shorthand_property_0_Either_declare_one_or_provide_an_initializer:pa(18004,1,"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:pa(18006,1,"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:pa(18007,1,"JSX_expressions_may_not_use_the_comma_operator_Did_you_mean_to_write_an_array_18007","JSX expressions may not use the comma operator. Did you mean to write an array?"),Private_identifiers_cannot_be_used_as_parameters:pa(18009,1,"Private_identifiers_cannot_be_used_as_parameters_18009","Private identifiers cannot be used as parameters."),An_accessibility_modifier_cannot_be_used_with_a_private_identifier:pa(18010,1,"An_accessibility_modifier_cannot_be_used_with_a_private_identifier_18010","An accessibility modifier cannot be used with a private identifier."),The_operand_of_a_delete_operator_cannot_be_a_private_identifier:pa(18011,1,"The_operand_of_a_delete_operator_cannot_be_a_private_identifier_18011","The operand of a 'delete' operator cannot be a private identifier."),constructor_is_a_reserved_word:pa(18012,1,"constructor_is_a_reserved_word_18012","'#constructor' is a reserved word."),Property_0_is_not_accessible_outside_class_1_because_it_has_a_private_identifier:pa(18013,1,"Property_0_is_not_accessible_outside_class_1_because_it_has_a_private_identifier_18013","Property '{0}' is not accessible outside class '{1}' because it has a private identifier."),The_property_0_cannot_be_accessed_on_type_1_within_this_class_because_it_is_shadowed_by_another_private_identifier_with_the_same_spelling:pa(18014,1,"The_property_0_cannot_be_accessed_on_type_1_within_this_class_because_it_is_shadowed_by_another_priv_18014","The property '{0}' cannot be accessed on type '{1}' within this class because it is shadowed by another private identifier with the same spelling."),Property_0_in_type_1_refers_to_a_different_member_that_cannot_be_accessed_from_within_type_2:pa(18015,1,"Property_0_in_type_1_refers_to_a_different_member_that_cannot_be_accessed_from_within_type_2_18015","Property '{0}' in type '{1}' refers to a different member that cannot be accessed from within type '{2}'."),Private_identifiers_are_not_allowed_outside_class_bodies:pa(18016,1,"Private_identifiers_are_not_allowed_outside_class_bodies_18016","Private identifiers are not allowed outside class bodies."),The_shadowing_declaration_of_0_is_defined_here:pa(18017,1,"The_shadowing_declaration_of_0_is_defined_here_18017","The shadowing declaration of '{0}' is defined here"),The_declaration_of_0_that_you_probably_intended_to_use_is_defined_here:pa(18018,1,"The_declaration_of_0_that_you_probably_intended_to_use_is_defined_here_18018","The declaration of '{0}' that you probably intended to use is defined here"),_0_modifier_cannot_be_used_with_a_private_identifier:pa(18019,1,"_0_modifier_cannot_be_used_with_a_private_identifier_18019","'{0}' modifier cannot be used with a private identifier."),An_enum_member_cannot_be_named_with_a_private_identifier:pa(18024,1,"An_enum_member_cannot_be_named_with_a_private_identifier_18024","An enum member cannot be named with a private identifier."),can_only_be_used_at_the_start_of_a_file:pa(18026,1,"can_only_be_used_at_the_start_of_a_file_18026","'#!' can only be used at the start of a file."),Compiler_reserves_name_0_when_emitting_private_identifier_downlevel:pa(18027,1,"Compiler_reserves_name_0_when_emitting_private_identifier_downlevel_18027","Compiler reserves name '{0}' when emitting private identifier downlevel."),Private_identifiers_are_only_available_when_targeting_ECMAScript_2015_and_higher:pa(18028,1,"Private_identifiers_are_only_available_when_targeting_ECMAScript_2015_and_higher_18028","Private identifiers are only available when targeting ECMAScript 2015 and higher."),Private_identifiers_are_not_allowed_in_variable_declarations:pa(18029,1,"Private_identifiers_are_not_allowed_in_variable_declarations_18029","Private identifiers are not allowed in variable declarations."),An_optional_chain_cannot_contain_private_identifiers:pa(18030,1,"An_optional_chain_cannot_contain_private_identifiers_18030","An optional chain cannot contain private identifiers."),The_intersection_0_was_reduced_to_never_because_property_1_has_conflicting_types_in_some_constituents:pa(18031,1,"The_intersection_0_was_reduced_to_never_because_property_1_has_conflicting_types_in_some_constituent_18031","The intersection '{0}' was reduced to 'never' because property '{1}' has conflicting types in some constituents."),The_intersection_0_was_reduced_to_never_because_property_1_exists_in_multiple_constituents_and_is_private_in_some:pa(18032,1,"The_intersection_0_was_reduced_to_never_because_property_1_exists_in_multiple_constituents_and_is_pr_18032","The intersection '{0}' was reduced to 'never' because property '{1}' exists in multiple constituents and is private in some."),Type_0_is_not_assignable_to_type_1_as_required_for_computed_enum_member_values:pa(18033,1,"Type_0_is_not_assignable_to_type_1_as_required_for_computed_enum_member_values_18033","Type '{0}' is not assignable to type '{1}' as required for computed enum member values."),Specify_the_JSX_fragment_factory_function_to_use_when_targeting_react_JSX_emit_with_jsxFactory_compiler_option_is_specified_e_g_Fragment:pa(18034,3,"Specify_the_JSX_fragment_factory_function_to_use_when_targeting_react_JSX_emit_with_jsxFactory_compi_18034","Specify the JSX fragment factory function to use when targeting 'react' JSX emit with 'jsxFactory' compiler option is specified, e.g. 'Fragment'."),Invalid_value_for_jsxFragmentFactory_0_is_not_a_valid_identifier_or_qualified_name:pa(18035,1,"Invalid_value_for_jsxFragmentFactory_0_is_not_a_valid_identifier_or_qualified_name_18035","Invalid value for 'jsxFragmentFactory'. '{0}' is not a valid identifier or qualified-name."),Class_decorators_can_t_be_used_with_static_private_identifier_Consider_removing_the_experimental_decorator:pa(18036,1,"Class_decorators_can_t_be_used_with_static_private_identifier_Consider_removing_the_experimental_dec_18036","Class decorators can't be used with static private identifier. Consider removing the experimental decorator."),await_expression_cannot_be_used_inside_a_class_static_block:pa(18037,1,"await_expression_cannot_be_used_inside_a_class_static_block_18037","'await' expression cannot be used inside a class static block."),for_await_loops_cannot_be_used_inside_a_class_static_block:pa(18038,1,"for_await_loops_cannot_be_used_inside_a_class_static_block_18038","'for await' loops cannot be used inside a class static block."),Invalid_use_of_0_It_cannot_be_used_inside_a_class_static_block:pa(18039,1,"Invalid_use_of_0_It_cannot_be_used_inside_a_class_static_block_18039","Invalid use of '{0}'. It cannot be used inside a class static block."),A_return_statement_cannot_be_used_inside_a_class_static_block:pa(18041,1,"A_return_statement_cannot_be_used_inside_a_class_static_block_18041","A 'return' statement cannot be used inside a class static block."),_0_is_a_type_and_cannot_be_imported_in_JavaScript_files_Use_1_in_a_JSDoc_type_annotation:pa(18042,1,"_0_is_a_type_and_cannot_be_imported_in_JavaScript_files_Use_1_in_a_JSDoc_type_annotation_18042","'{0}' is a type and cannot be imported in JavaScript files. Use '{1}' in a JSDoc type annotation."),Types_cannot_appear_in_export_declarations_in_JavaScript_files:pa(18043,1,"Types_cannot_appear_in_export_declarations_in_JavaScript_files_18043","Types cannot appear in export declarations in JavaScript files."),_0_is_automatically_exported_here:pa(18044,3,"_0_is_automatically_exported_here_18044","'{0}' is automatically exported here."),Properties_with_the_accessor_modifier_are_only_available_when_targeting_ECMAScript_2015_and_higher:pa(18045,1,"Properties_with_the_accessor_modifier_are_only_available_when_targeting_ECMAScript_2015_and_higher_18045","Properties with the 'accessor' modifier are only available when targeting ECMAScript 2015 and higher."),_0_is_of_type_unknown:pa(18046,1,"_0_is_of_type_unknown_18046","'{0}' is of type 'unknown'."),_0_is_possibly_null:pa(18047,1,"_0_is_possibly_null_18047","'{0}' is possibly 'null'."),_0_is_possibly_undefined:pa(18048,1,"_0_is_possibly_undefined_18048","'{0}' is possibly 'undefined'."),_0_is_possibly_null_or_undefined:pa(18049,1,"_0_is_possibly_null_or_undefined_18049","'{0}' is possibly 'null' or 'undefined'."),The_value_0_cannot_be_used_here:pa(18050,1,"The_value_0_cannot_be_used_here_18050","The value '{0}' cannot be used here."),Compiler_option_0_cannot_be_given_an_empty_string:pa(18051,1,"Compiler_option_0_cannot_be_given_an_empty_string_18051","Compiler option '{0}' cannot be given an empty string."),Its_type_0_is_not_a_valid_JSX_element_type:pa(18053,1,"Its_type_0_is_not_a_valid_JSX_element_type_18053","Its type '{0}' is not a valid JSX element type."),await_using_statements_cannot_be_used_inside_a_class_static_block:pa(18054,1,"await_using_statements_cannot_be_used_inside_a_class_static_block_18054","'await using' statements cannot be used inside a class static block."),_0_has_a_string_type_but_must_have_syntactically_recognizable_string_syntax_when_isolatedModules_is_enabled:pa(18055,1,"_0_has_a_string_type_but_must_have_syntactically_recognizable_string_syntax_when_isolatedModules_is__18055","'{0}' has a string type, but must have syntactically recognizable string syntax when 'isolatedModules' is enabled."),Enum_member_following_a_non_literal_numeric_member_must_have_an_initializer_when_isolatedModules_is_enabled:pa(18056,1,"Enum_member_following_a_non_literal_numeric_member_must_have_an_initializer_when_isolatedModules_is__18056","Enum member following a non-literal numeric member must have an initializer when 'isolatedModules' is enabled."),String_literal_import_and_export_names_are_not_supported_when_the_module_flag_is_set_to_es2015_or_es2020:pa(18057,1,"String_literal_import_and_export_names_are_not_supported_when_the_module_flag_is_set_to_es2015_or_es_18057","String literal import and export names are not supported when the '--module' flag is set to 'es2015' or 'es2020'."),Default_imports_are_not_allowed_in_a_deferred_import:pa(18058,1,"Default_imports_are_not_allowed_in_a_deferred_import_18058","Default imports are not allowed in a deferred import."),Named_imports_are_not_allowed_in_a_deferred_import:pa(18059,1,"Named_imports_are_not_allowed_in_a_deferred_import_18059","Named imports are not allowed in a deferred import."),Deferred_imports_are_only_supported_when_the_module_flag_is_set_to_esnext_or_preserve:pa(18060,1,"Deferred_imports_are_only_supported_when_the_module_flag_is_set_to_esnext_or_preserve_18060","Deferred imports are only supported when the '--module' flag is set to 'esnext' or 'preserve'."),_0_is_not_a_valid_meta_property_for_keyword_import_Did_you_mean_meta_or_defer:pa(18061,1,"_0_is_not_a_valid_meta_property_for_keyword_import_Did_you_mean_meta_or_defer_18061","'{0}' is not a valid meta-property for keyword 'import'. Did you mean 'meta' or 'defer'?")};function ma(e){return e>=80}function ha(e){return 32===e||ma(e)}var _a={abstract:128,accessor:129,any:133,as:130,asserts:131,assert:132,bigint:163,boolean:136,break:83,case:84,catch:85,class:86,continue:88,const:87,constructor:137,debugger:89,declare:138,default:90,defer:166,delete:91,do:92,else:93,enum:94,export:95,extends:96,false:97,finally:98,for:99,from:161,function:100,get:139,if:101,implements:119,import:102,in:103,infer:140,instanceof:104,interface:120,intrinsic:141,is:142,keyof:143,let:121,module:144,namespace:145,never:146,new:105,null:106,number:150,object:151,package:122,private:123,protected:124,public:125,override:164,out:147,readonly:148,require:149,global:162,return:107,satisfies:152,set:153,static:126,string:154,super:108,switch:109,symbol:155,this:110,throw:111,true:112,try:113,type:156,typeof:114,undefined:157,unique:158,unknown:159,using:160,var:115,void:116,while:117,with:118,yield:127,async:134,await:135,of:165},ga=new Map(Object.entries(_a)),ya=new Map(Object.entries({..._a,"{":19,"}":20,"(":21,")":22,"[":23,"]":24,".":25,"...":26,";":27,",":28,"<":30,">":32,"<=":33,">=":34,"==":35,"!=":36,"===":37,"!==":38,"=>":39,"+":40,"-":41,"**":43,"*":42,"/":44,"%":45,"++":46,"--":47,"<<":48,"</":31,">>":49,">>>":50,"&":51,"|":52,"^":53,"!":54,"~":55,"&&":56,"||":57,"?":58,"??":61,"?.":29,":":59,"=":64,"+=":65,"-=":66,"*=":67,"**=":68,"/=":69,"%=":70,"<<=":71,">>=":72,">>>=":73,"&=":74,"|=":75,"^=":79,"||=":76,"&&=":77,"??=":78,"@":60,"#":63,"`":62})),va=new Map([[100,1],[103,2],[105,4],[109,8],[115,16],[117,32],[118,64],[121,128]]),ba=new Map([[1,Do.RegularExpressionFlagsHasIndices],[16,Do.RegularExpressionFlagsDotAll],[32,Do.RegularExpressionFlagsUnicode],[64,Do.RegularExpressionFlagsUnicodeSets],[128,Do.RegularExpressionFlagsSticky]]),Ta=[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],Sa=[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],Ea=[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,2160,2183,2185,2190,2208,2249,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,3165,3165,3168,3169,3200,3200,3205,3212,3214,3216,3218,3240,3242,3251,3253,3257,3261,3261,3293,3294,3296,3297,3313,3314,3332,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,5905,5919,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,6988,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,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,12735,12784,12799,13312,19903,19968,42124,42192,42237,42240,42508,42512,42527,42538,42539,42560,42606,42623,42653,42656,42735,42775,42783,42786,42888,42891,42954,42960,42961,42963,42963,42965,42969,42994,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,43881,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,66928,66938,66940,66954,66956,66962,66964,66965,66967,66977,66979,66993,66995,67001,67003,67004,67072,67382,67392,67413,67424,67431,67456,67461,67463,67504,67506,67514,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,69248,69289,69296,69297,69376,69404,69415,69415,69424,69445,69488,69505,69552,69572,69600,69622,69635,69687,69745,69746,69749,69749,69763,69807,69840,69864,69891,69926,69956,69956,69959,69959,69968,70002,70006,70006,70019,70066,70081,70084,70106,70106,70108,70108,70144,70161,70163,70187,70207,70208,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,70753,70784,70831,70852,70853,70855,70855,71040,71086,71128,71131,71168,71215,71236,71236,71296,71338,71352,71352,71424,71450,71488,71494,71680,71723,71840,71903,71935,71942,71945,71945,71948,71955,71957,71958,71960,71983,71999,71999,72001,72001,72096,72103,72106,72144,72161,72161,72163,72163,72192,72192,72203,72242,72250,72250,72272,72272,72284,72329,72349,72349,72368,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,73474,73474,73476,73488,73490,73523,73648,73648,73728,74649,74752,74862,74880,75075,77712,77808,77824,78895,78913,78918,82944,83526,92160,92728,92736,92766,92784,92862,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,101589,101632,101640,110576,110579,110581,110587,110589,110590,110592,110882,110898,110898,110928,110930,110933,110933,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,122624,122654,122661,122666,122928,122989,123136,123180,123191,123197,123214,123214,123536,123565,123584,123627,124112,124139,124896,124902,124904,124907,124909,124910,124912,124926,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,173791,173824,177977,177984,178205,178208,183969,183984,191456,191472,192093,194560,195101,196608,201546,201552,205743],Aa=[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,2160,2183,2185,2190,2200,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,2901,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,3132,3140,3142,3144,3146,3149,3157,3158,3160,3162,3165,3165,3168,3171,3174,3183,3200,3203,3205,3212,3214,3216,3218,3240,3242,3251,3253,3257,3260,3268,3270,3272,3274,3277,3285,3286,3293,3294,3296,3299,3302,3311,3313,3315,3328,3340,3342,3344,3346,3396,3398,3400,3402,3406,3412,3415,3423,3427,3430,3439,3450,3455,3457,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,3790,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,5909,5919,5940,5952,5971,5984,5996,5998,6e3,6002,6003,6016,6099,6103,6103,6108,6109,6112,6121,6155,6157,6159,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,6847,6862,6912,6988,6992,7001,7019,7027,7040,7155,7168,7223,7232,7241,7245,7293,7296,7304,7312,7354,7357,7359,7376,7378,7380,7418,7424,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,8472,8477,8484,8484,8486,8486,8488,8488,8490,8505,8508,8511,8517,8521,8526,8526,8544,8584,11264,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,12543,12549,12591,12593,12686,12704,12735,12784,12799,13312,19903,19968,42124,42192,42237,42240,42508,42512,42539,42560,42607,42612,42621,42623,42737,42775,42783,42786,42888,42891,42954,42960,42961,42963,42963,42965,42969,42994,43047,43052,43052,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,43881,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,65381,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,66928,66938,66940,66954,66956,66962,66964,66965,66967,66977,66979,66993,66995,67001,67003,67004,67072,67382,67392,67413,67424,67431,67456,67461,67463,67504,67506,67514,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,69248,69289,69291,69292,69296,69297,69373,69404,69415,69415,69424,69456,69488,69509,69552,69572,69600,69622,69632,69702,69734,69749,69759,69818,69826,69826,69840,69864,69872,69881,69888,69940,69942,69951,69956,69959,69968,70003,70006,70006,70016,70084,70089,70092,70094,70106,70108,70108,70144,70161,70163,70199,70206,70209,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,70753,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,71488,71494,71680,71738,71840,71913,71935,71942,71945,71945,71948,71955,71957,71958,71960,71989,71991,71992,71995,72003,72016,72025,72096,72103,72106,72151,72154,72161,72163,72164,72192,72254,72263,72263,72272,72345,72349,72349,72368,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,73472,73488,73490,73530,73534,73538,73552,73561,73648,73648,73728,74649,74752,74862,74880,75075,77712,77808,77824,78895,78912,78933,82944,83526,92160,92728,92736,92766,92768,92777,92784,92862,92864,92873,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,94180,94192,94193,94208,100343,100352,101589,101632,101640,110576,110579,110581,110587,110589,110590,110592,110882,110898,110898,110928,110930,110933,110933,110948,110951,110960,111355,113664,113770,113776,113788,113792,113800,113808,113817,113821,113822,118528,118573,118576,118598,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,122624,122654,122661,122666,122880,122886,122888,122904,122907,122913,122915,122916,122918,122922,122928,122989,123023,123023,123136,123180,123184,123197,123200,123209,123214,123214,123536,123566,123584,123641,124112,124153,124896,124902,124904,124907,124909,124910,124912,124926,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,130032,130041,131072,173791,173824,177977,177984,178205,178208,183969,183984,191456,191472,192093,194560,195101,196608,201546,201552,205743,917760,917999],xa=/^\/\/\/?\s*@(ts-expect-error|ts-ignore)/,Ra=/^(?:\/|\*)*\s*@(ts-expect-error|ts-ignore)/,Ia=/@(?:see|link)/i;function Da(e,n){if(e<n[0])return!1;let t,r=0,o=n.length;for(;r+1<o;){if(t=r+(o-r)/2,t-=t%2,n[t]<=e&&e<=n[t+1])return!0;e<n[t]?o=t:r=t+2}return!1}function Ca(e,n){return Da(e,n>=2?Ea:Ta)}function Na(e){const n=[];return e.forEach((e,t)=>{n[e]=t}),n}var Ma=Na(ya);function Pa(e){return Ma[e]}function La(e){return ya.get(e)}var ka=Na(va);function wa(e){return ka[e]}function Oa(e){return va.get(e)}function Fa(e){const n=[];let t=0,r=0;for(;t<e.length;){const o=e.charCodeAt(t);switch(t++,o){case 13:10===e.charCodeAt(t)&&t++;case 10:n.push(r),r=t;break;default:o>127&&qa(o)&&(n.push(r),r=t)}}return n.push(r),n}function Wa(e,n,t,r){return e.getPositionOfLineAndCharacter?e.getPositionOfLineAndCharacter(n,t,r):za(Ba(e),n,t,e.text,r)}function za(e,n,t,r,o){(n<0||n>=e.length)&&(o?n=n<0?0:n>=e.length?e.length-1:n:dt.fail(`Bad line number. Line: ${n}, lineStarts.length: ${e.length} , line map is correct? ${void 0!==r?ee(e,Fa(r)):"unknown"}`));const i=e[n]+t;return o?i>e[n+1]?e[n+1]:"string"==typeof r&&i>r.length?r.length:i:(n<e.length-1?dt.assert(i<e[n+1]):void 0!==r&&dt.assert(i<=r.length),i)}function Ba(e){return e.lineMap||(e.lineMap=Fa(e.text))}function Ga(e,n){const t=Va(e,n);return{line:t,character:n-e[t]}}function Va(e,n,t){let r=Ee(e,n,sn,vn,t);return r<0&&(r=~r-1,dt.assert(-1!==r,"position cannot precede the beginning of the file")),r}function ja(e,n,t){if(n===t)return 0;const r=Ba(e),o=Math.min(n,t),i=o===t,a=i?n:t,s=Va(r,o),l=Va(r,a,s);return i?s-l:l-s}function Ua(e,n){return Ga(Ba(e),n)}function Ha(e){return Ka(e)||qa(e)}function Ka(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 qa(e){return 10===e||13===e||8232===e||8233===e}function Ja(e){return e>=48&&e<=57}function Xa(e){return Ja(e)||e>=65&&e<=70||e>=97&&e<=102}function Ya(e){return e>=65&&e<=90||e>=97&&e<=122}function $a(e){return Ya(e)||Ja(e)||95===e}function Qa(e){return e>=48&&e<=55}function Za(e,n){const 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}}function es(e,n,t,r,o){if(eA(n))return n;let i=!1;for(;;){const a=e.charCodeAt(n);switch(a){case 13:10===e.charCodeAt(n+1)&&n++;case 10:if(n++,t)return n;i=!!o;continue;case 9:case 11:case 12:case 32:n++;continue;case 47:if(r)break;if(47===e.charCodeAt(n+1)){for(n+=2;n<e.length&&!qa(e.charCodeAt(n));)n++;i=!1;continue}if(42===e.charCodeAt(n+1)){for(n+=2;n<e.length;){if(42===e.charCodeAt(n)&&47===e.charCodeAt(n+1)){n+=2;break}n++}i=!1;continue}break;case 60:case 124:case 61:case 62:if(ts(e,n)){n=rs(e,n),i=!1;continue}break;case 35:if(0===n&&is(e,n)){n=as(e,n),i=!1;continue}break;case 42:if(i){n++,i=!1;continue}break;default:if(a>127&&Ha(a)){n++;continue}}return n}}var ns=7;function ts(e,n){if(dt.assert(n>=0),0===n||qa(e.charCodeAt(n-1))){const t=e.charCodeAt(n);if(n+ns<e.length){for(let r=0;r<ns;r++)if(e.charCodeAt(n+r)!==t)return!1;return 61===t||32===e.charCodeAt(n+ns)}}return!1}function rs(e,n,t){t&&t(fa.Merge_conflict_marker_encountered,n,ns);const r=e.charCodeAt(n),o=e.length;if(60===r||62===r)for(;n<o&&!qa(e.charCodeAt(n));)n++;else for(dt.assert(124===r||61===r);n<o;){const t=e.charCodeAt(n);if((61===t||62===t)&&t!==r&&ts(e,n))break;n++}return n}var os=/^#!.*/;function is(e,n){return dt.assert(0===n),os.test(e)}function as(e,n){return n+=os.exec(e)[0].length}function ss(e,n,t,r,o,i,a){let s,l,c,d,u=!1,p=r,f=a;if(0===t){p=!0;const e=hs(n);e&&(t=e.length)}e:for(;t>=0&&t<n.length;){const a=n.charCodeAt(t);switch(a){case 13:10===n.charCodeAt(t+1)&&t++;case 10:if(t++,r)break e;p=!0,u&&(d=!0);continue;case 9:case 11:case 12:case 32:t++;continue;case 47:const m=n.charCodeAt(t+1);let h=!1;if(47===m||42===m){const r=47===m?2:3,a=t;if(t+=2,47===m)for(;t<n.length;){if(qa(n.charCodeAt(t))){h=!0;break}t++}else for(;t<n.length;){if(42===n.charCodeAt(t)&&47===n.charCodeAt(t+1)){t+=2;break}t++}if(p){if(u&&(f=o(s,l,c,d,i,f),!e&&f))return f;s=a,l=t,c=r,d=h,u=!0}continue}break e;default:if(a>127&&Ha(a)){u&&qa(a)&&(d=!0),t++;continue}break e}}return u&&(f=o(s,l,c,d,i,f)),f}function ls(e,n,t,r){return ss(!1,e,n,!1,t,r)}function cs(e,n,t,r){return ss(!1,e,n,!0,t,r)}function ds(e,n,t,r,o){return ss(!0,e,n,!1,t,r,o)}function us(e,n,t,r,o){return ss(!0,e,n,!0,t,r,o)}function ps(e,n,t,r,o,i=[]){return i.push({kind:t,pos:e,end:n,hasTrailingNewLine:r}),i}function fs(e,n){return ds(e,n,ps,void 0,void 0)}function ms(e,n){return us(e,n,ps,void 0,void 0)}function hs(e){const n=os.exec(e);if(n)return n[0]}function _s(e,n){return Ya(e)||36===e||95===e||e>127&&Ca(e,n)}function gs(e,n,t){return $a(e)||36===e||1===t&&(45===e||58===e)||e>127&&function(e,n){return Da(e,n>=2?Aa:Sa)}(e,n)}function ys(e,n,t){let r=bs(e,0);if(!_s(r,n))return!1;for(let o=Ts(r);o<e.length;o+=Ts(r))if(!gs(r=bs(e,o),n,t))return!1;return!0}function vs(e,n,t=0,r,o,i,a){var s,l,c,u,p,f,m,h,_=r,g=0,y=0,v=0;Q(_,i,a);var b={getTokenFullStart:()=>c,getStartPos:()=>c,getTokenEnd:()=>s,getTextPos:()=>s,getToken:()=>p,getTokenStart:()=>u,getTokenPos:()=>u,getTokenText:()=>_.substring(u,s),getTokenValue:()=>f,hasUnicodeEscape:()=>!!(1024&m),hasExtendedUnicodeEscape:()=>!!(8&m),hasPrecedingLineBreak:()=>!!(1&m),hasPrecedingJSDocComment:()=>!!(2&m),hasPrecedingJSDocLeadingAsterisks:()=>!!(32768&m),isIdentifier:()=>80===p||p>118,isReservedWord:()=>p>=83&&p<=118,isUnterminated:()=>!!(4&m),getCommentDirectives:()=>h,getNumericLiteralFlags:()=>25584&m,getTokenFlags:()=>m,reScanGreaterToken:function(){if(32===p){if(62===E(s))return 62===E(s+1)?61===E(s+2)?(s+=3,p=73):(s+=2,p=50):61===E(s+1)?(s+=2,p=72):(s++,p=49);if(61===E(s))return s++,p=34}return p},reScanAsteriskEqualsToken:function(){return dt.assert(67===p,"'reScanAsteriskEqualsToken' should only be called on a '*='"),s=u+1,p=64},reScanSlashToken:function(n){if(44===p||69===p){const t=u+1;s=t;let r=!1,o=!1,a=!1;for(;;){const e=A(s);if(-1===e||qa(e)){m|=4;break}if(r)r=!1;else{if(47===e&&!a)break;91===e?a=!0:92===e?r=!0:93===e?a=!1:a||40!==e||63!==A(s+1)||60!==A(s+2)||61===A(s+3)||33===A(s+3)||(o=!0)}s++}const c=s;if(4&m){s=t,r=!1;let e=0,n=!1,o=0;for(;s<c;){const t=E(s);if(r)r=!1;else if(92===t)r=!0;else if(91===t)e++;else if(93===t&&e)e--;else if(!e)if(123===t)n=!0;else if(125===t&&n)n=!1;else if(!n)if(40===t)o++;else if(41===t&&o)o--;else if(41===t||93===t||125===t)break;s++}for(;Ha(A(s-1))||59===A(s-1);)s--;x(fa.Unterminated_regular_expression_literal,u,s-u)}else{s++;let r=0;for(;;){const t=S(s);if(-1===t||!gs(t,e))break;const o=Ts(t);if(n){const e=Oa(t);void 0===e?x(fa.Unknown_regular_expression_flag,s,o):r&e?x(fa.Duplicate_regular_expression_flag,s,o):96&~(r|e)?(r|=e,H(e,o)):x(fa.The_Unicode_u_flag_and_the_Unicode_Sets_v_flag_cannot_be_set_simultaneously,s,o)}s+=o}n&&$(t,c-t,()=>{!function(n,t,r){var o,a,c,p,m=!!(64&n),h=!!(96&n),g=h||!1,y=!1,v=0,b=[];function T(e){for(;;){if(b.push(p),p=void 0,R(e),p=b.pop(),124!==A(s))return;s++}}function R(n){let t=!1;for(;;){const r=s,o=A(s);switch(o){case-1:return;case 94:case 36:s++,t=!1;break;case 92:switch(A(++s)){case 98:case 66:s++,t=!1;break;default:D(),t=!0}break;case 40:if(63===A(++s))switch(A(++s)){case 61:case 33:s++,t=!g;break;case 60:const n=s;switch(A(++s)){case 61:case 33:s++,t=!1;break;default:P(!1),q(62),e<5&&x(fa.Named_capturing_groups_are_only_available_when_targeting_ES2018_or_later,n,s-n),v++,t=!0}break;default:const r=s,o=I(0);45===A(s)&&(s++,I(o),s===r+1&&x(fa.Subpattern_flags_must_be_present_when_there_is_a_minus_sign,r,s-r)),q(58),t=!0}else v++,t=!0;T(!0),q(41);break;case 123:const i=++s;C();const a=f;if(!g&&!a){t=!0;break}if(44===A(s)){s++,C();const e=f;if(a)e&&Number.parseInt(a)>Number.parseInt(e)&&(g||125===A(s))&&x(fa.Numbers_out_of_order_in_quantifier,i,s-i);else{if(!e&&125!==A(s)){x(fa.Unexpected_0_Did_you_mean_to_escape_it_with_backslash,r,1,String.fromCharCode(o)),t=!0;break}x(fa.Incomplete_quantifier_Digit_expected,i,0)}}else if(!a){g&&x(fa.Unexpected_0_Did_you_mean_to_escape_it_with_backslash,r,1,String.fromCharCode(o)),t=!0;break}if(125!==A(s)){if(!g){t=!0;break}x(fa._0_expected,s,0,String.fromCharCode(125)),s--}case 42:case 43:case 63:63===A(++s)&&s++,t||x(fa.There_is_nothing_available_for_repetition,r,s-r),t=!1;break;case 46:s++,t=!0;break;case 91:s++,m?O():w(),q(93),t=!0;break;case 41:if(n)return;case 93:case 125:(g||41===o)&&x(fa.Unexpected_0_Did_you_mean_to_escape_it_with_backslash,s,1,String.fromCharCode(o)),s++,t=!0;break;case 47:case 124:return;default:K(),t=!0}}}function I(n){for(;;){const t=S(s);if(-1===t||!gs(t,e))break;const r=Ts(t),o=Oa(t);void 0===o?x(fa.Unknown_regular_expression_flag,s,r):n&o?x(fa.Duplicate_regular_expression_flag,s,r):28&o?(n|=o,H(o,r)):x(fa.This_regular_expression_flag_cannot_be_toggled_within_a_subpattern,s,r),s+=r}return n}function D(){switch(dt.assertEqual(E(s-1),92),A(s)){case 107:60===A(++s)?(s++,P(!0),q(62)):(g||r)&&x(fa.k_must_be_followed_by_a_capturing_group_name_enclosed_in_angle_brackets,s-2,2);break;case 113:if(m){s++,x(fa.q_is_only_available_inside_character_class,s-2,2);break}default:dt.assert(V()||N()||M(!0))}}function N(){dt.assertEqual(E(s-1),92);const e=A(s);if(e>=49&&e<=57){const e=s;return C(),c=re(c,{pos:e,end:s,value:+f}),!0}return!1}function M(e){dt.assertEqual(E(s-1),92);let n=A(s);switch(n){case-1:return x(fa.Undetermined_character_escape,s-1,1),"\\";case 99:if(n=A(++s),Ya(n))return s++,String.fromCharCode(31&n);if(g)x(fa.c_must_be_followed_by_an_ASCII_letter,s-2,2);else if(e)return s--,"\\";return String.fromCharCode(n);case 94:case 36:case 47:case 92:case 46:case 42:case 43:case 63:case 40:case 41:case 91:case 93:case 123:case 125:case 124:return s++,String.fromCharCode(n);default:return s--,k(12|(h?16:0)|(e?32:0))}}function P(n){dt.assertEqual(E(s-1),60),u=s,U(S(s),e),s===u?x(fa.Expected_a_capturing_group_name):n?a=re(a,{pos:u,end:s,name:f}):(null==p?void 0:p.has(f))||b.some(e=>null==e?void 0:e.has(f))?x(fa.Named_capturing_groups_with_the_same_name_must_be_mutually_exclusive_to_each_other,u,s-u):(p??(p=new Set),p.add(f),o??(o=new Set),o.add(f))}function L(e){return 93===e||-1===e||s>=l}function w(){for(dt.assertEqual(E(s-1),91),94===A(s)&&s++;;){if(L(A(s)))return;const e=s,n=G();if(45===A(s)){if(L(A(++s)))return;!n&&g&&x(fa.A_character_class_range_must_not_be_bounded_by_another_character_class,e,s-1-e);const t=s,r=G();if(!r&&g){x(fa.A_character_class_range_must_not_be_bounded_by_another_character_class,t,s-t);continue}if(!n)continue;const o=bs(n,0),i=bs(r,0);n.length===Ts(o)&&r.length===Ts(i)&&o>i&&x(fa.Range_out_of_order_in_character_class,e,s-e)}}}function O(){dt.assertEqual(E(s-1),91);let e=!1;94===A(s)&&(s++,e=!0);let n=!1,t=A(s);if(L(t))return;let r,o=s;switch(_.slice(s,s+2)){case"--":case"&&":x(fa.Expected_a_class_set_operand),y=!1;break;default:r=W()}switch(A(s)){case 45:if(45===A(s+1))return e&&y&&x(fa.Anything_that_would_possibly_match_more_than_a_single_character_is_invalid_inside_a_negated_character_class,o,s-o),n=y,F(3),void(y=!e&&n);break;case 38:if(38===A(s+1))return F(2),e&&y&&x(fa.Anything_that_would_possibly_match_more_than_a_single_character_is_invalid_inside_a_negated_character_class,o,s-o),n=y,void(y=!e&&n);x(fa.Unexpected_0_Did_you_mean_to_escape_it_with_backslash,s,1,String.fromCharCode(t));break;default:e&&y&&x(fa.Anything_that_would_possibly_match_more_than_a_single_character_is_invalid_inside_a_negated_character_class,o,s-o),n=y}for(;t=A(s),-1!==t;){switch(t){case 45:if(t=A(++s),L(t))return void(y=!e&&n);if(45===t){s++,x(fa.Operators_must_not_be_mixed_within_a_character_class_Wrap_it_in_a_nested_class_instead,s-2,2),o=s-2,r=_.slice(o,s);continue}{r||x(fa.A_character_class_range_must_not_be_bounded_by_another_character_class,o,s-1-o);const t=s,i=W();if(e&&y&&x(fa.Anything_that_would_possibly_match_more_than_a_single_character_is_invalid_inside_a_negated_character_class,t,s-t),n||(n=y),!i){x(fa.A_character_class_range_must_not_be_bounded_by_another_character_class,t,s-t);break}if(!r)break;const a=bs(r,0),l=bs(i,0);r.length===Ts(a)&&i.length===Ts(l)&&a>l&&x(fa.Range_out_of_order_in_character_class,o,s-o)}break;case 38:o=s,38===A(++s)?(s++,x(fa.Operators_must_not_be_mixed_within_a_character_class_Wrap_it_in_a_nested_class_instead,s-2,2),38===A(s)&&(x(fa.Unexpected_0_Did_you_mean_to_escape_it_with_backslash,s,1,String.fromCharCode(t)),s++)):x(fa.Unexpected_0_Did_you_mean_to_escape_it_with_backslash,s-1,1,String.fromCharCode(t)),r=_.slice(o,s);continue}if(L(A(s)))break;switch(o=s,_.slice(s,s+2)){case"--":case"&&":x(fa.Operators_must_not_be_mixed_within_a_character_class_Wrap_it_in_a_nested_class_instead,s,2),s+=2,r=_.slice(o,s);break;default:r=W()}}y=!e&&n}function F(e){let n=y;for(;;){let t=A(s);if(L(t))break;switch(t){case 45:45===A(++s)?(s++,3!==e&&x(fa.Operators_must_not_be_mixed_within_a_character_class_Wrap_it_in_a_nested_class_instead,s-2,2)):x(fa.Operators_must_not_be_mixed_within_a_character_class_Wrap_it_in_a_nested_class_instead,s-1,1);break;case 38:38===A(++s)?(s++,2!==e&&x(fa.Operators_must_not_be_mixed_within_a_character_class_Wrap_it_in_a_nested_class_instead,s-2,2),38===A(s)&&(x(fa.Unexpected_0_Did_you_mean_to_escape_it_with_backslash,s,1,String.fromCharCode(t)),s++)):x(fa.Unexpected_0_Did_you_mean_to_escape_it_with_backslash,s-1,1,String.fromCharCode(t));break;default:switch(e){case 3:x(fa._0_expected,s,0,"--");break;case 2:x(fa._0_expected,s,0,"&&")}}if(t=A(s),L(t)){x(fa.Expected_a_class_set_operand);break}W(),n&&(n=y)}y=n}function W(){switch(y=!1,A(s)){case-1:return"";case 91:return s++,O(),q(93),"";case 92:if(s++,V())return"";if(113===A(s))return 123===A(++s)?(s++,z(),q(125),""):(x(fa.q_must_be_followed_by_string_alternatives_enclosed_in_braces,s-2,2),"q");s--;default:return B()}}function z(){dt.assertEqual(E(s-1),123);let e=0;for(;;){switch(A(s)){case-1:return;case 125:return void(1!==e&&(y=!0));case 124:1!==e&&(y=!0),s++,i=s,e=0;break;default:B(),e++}}}function B(){const e=A(s);if(-1===e)return"";if(92===e){const e=A(++s);switch(e){case 98:return s++,"\b";case 38:case 45:case 33:case 35:case 37:case 44:case 58:case 59:case 60:case 61:case 62:case 64:case 96:case 126:return s++,String.fromCharCode(e);default:return M(!1)}}else if(e===A(s+1))switch(e){case 38:case 33:case 35:case 37:case 42:case 43:case 44:case 46:case 58:case 59:case 60:case 61:case 62:case 63:case 64:case 96:case 126:return x(fa.A_character_class_must_not_contain_a_reserved_double_punctuator_Did_you_mean_to_escape_it_with_backslash,s,2),s+=2,_.substring(s-2,s)}switch(e){case 47:case 40:case 41:case 91:case 93:case 123:case 125:case 45:case 124:return x(fa.Unexpected_0_Did_you_mean_to_escape_it_with_backslash,s,1,String.fromCharCode(e)),s++,String.fromCharCode(e)}return K()}function G(){if(92!==A(s))return K();{const e=A(++s);switch(e){case 98:return s++,"\b";case 45:return s++,String.fromCharCode(e);default:return V()?"":M(!1)}}}function V(){dt.assertEqual(E(s-1),92);let e=!1;const n=s-1,t=A(s);switch(t){case 100:case 68:case 115:case 83:case 119:case 87:return s++,!0;case 80:e=!0;case 112:if(123===A(++s)){const t=++s,r=j();if(61===A(s)){const e=As.get(r);if(s===t)x(fa.Expected_a_Unicode_property_name);else if(void 0===e){x(fa.Unknown_Unicode_property_name,t,s-t);const e=wn(r,As.keys(),sn);e&&x(fa.Did_you_mean_0,t,s-t,e)}const n=++s,o=j();if(s===n)x(fa.Expected_a_Unicode_property_value);else if(void 0!==e&&!Is[e].has(o)){x(fa.Unknown_Unicode_property_value,n,s-n);const t=wn(o,Is[e],sn);t&&x(fa.Did_you_mean_0,n,s-n,t)}}else if(s===t)x(fa.Expected_a_Unicode_property_name_or_value);else if(Rs.has(r))m?e?x(fa.Anything_that_would_possibly_match_more_than_a_single_character_is_invalid_inside_a_negated_character_class,t,s-t):y=!0:x(fa.Any_Unicode_property_that_would_possibly_match_more_than_a_single_character_is_only_available_when_the_Unicode_Sets_v_flag_is_set,t,s-t);else if(!Is.General_Category.has(r)&&!xs.has(r)){x(fa.Unknown_Unicode_property_name_or_value,t,s-t);const e=wn(r,[...Is.General_Category,...xs,...Rs],sn);e&&x(fa.Did_you_mean_0,t,s-t,e)}q(125),h||x(fa.Unicode_property_value_expressions_are_only_available_when_the_Unicode_u_flag_or_the_Unicode_Sets_v_flag_is_set,n,s-n)}else{if(!g)return s--,!1;x(fa._0_must_be_followed_by_a_Unicode_property_value_expression_enclosed_in_braces,s-2,2,String.fromCharCode(t))}return!0}return!1}function j(){let e="";for(;;){const n=A(s);if(-1===n||!$a(n))break;e+=String.fromCharCode(n),s++}return e}function K(){const e=h?Ts(S(s)):1;return s+=e,e>0?_.substring(s-e,s):""}function q(e){A(s)===e?s++:x(fa._0_expected,s,0,String.fromCharCode(e))}T(!1),d(a,e=>{if(!(null==o?void 0:o.has(e.name))&&(x(fa.There_is_no_capturing_group_named_0_in_this_regular_expression,e.pos,e.end-e.pos,e.name),o)){const n=wn(e.name,o,sn);n&&x(fa.Did_you_mean_0,e.pos,e.end-e.pos,n)}}),d(c,e=>{e.value>v&&(v?x(fa.This_backreference_refers_to_a_group_that_does_not_exist_There_are_only_0_capturing_groups_in_this_regular_expression,e.pos,e.end-e.pos,v):x(fa.This_backreference_refers_to_a_group_that_does_not_exist_There_are_no_capturing_groups_in_this_regular_expression,e.pos,e.end-e.pos))})}(r,0,o)})}f=_.substring(u,s),p=14}return p},reScanTemplateToken:function(e){return s=u,p=L(!e)},reScanTemplateHeadOrNoSubstitutionTemplate:function(){return s=u,p=L(!0)},scanJsxIdentifier:function(){if(ma(p)){for(;s<l;){if(45===E(s)){f+="-",s++;continue}const e=s;if(f+=W(),s===e)break}return z()}return p},scanJsxAttributeValue:J,reScanJsxAttributeValue:function(){return s=u=c,J()},reScanJsxToken:function(e=!0){return s=u=c,p=q(e)},reScanLessThanToken:function(){if(48===p)return s=u+1,p=30;return p},reScanHashToken:function(){if(81===p)return s=u+1,p=63;return p},reScanQuestionToken:function(){return dt.assert(61===p,"'reScanQuestionToken' should only be called on a '??'"),s=u+1,p=58},reScanInvalidIdentifier:function(){dt.assert(0===p,"'reScanInvalidIdentifier' should only be called when the current token is 'SyntaxKind.Unknown'."),s=u=c,m=0;const e=T(s),n=U(e,99);if(n)return p=n;return s+=Ts(e),p},scanJsxToken:q,scanJsDocToken:X,scanJSDocCommentTextToken:function(e){if(c=u=s,m=0,s>=l)return p=1;for(let n=E(s);s<l&&!qa(n)&&96!==n;n=T(++s))if(!e){if(123===n)break;if(64===n&&s-1>=0&&Ka(E(s-1))&&!(s+1<l&&Ha(E(s+1))))break}if(s===u)return X();return f=_.substring(u,s),p=82},scan:V,getText:function(){return _},clearCommentDirectives:function(){h=void 0},setText:Q,setScriptTarget:function(n){e=n},setLanguageVariant:function(e){t=e},setScriptKind:function(e){y=e},setJSDocParsingMode:function(e){v=e},setOnError:function(e){o=e},resetTokenState:Z,setTextPos:Z,setSkipJsDocLeadingAsterisks:function(e){g+=e?1:-1},tryScan:function(e){return Y(e,!1)},lookAhead:function(e){return Y(e,!0)},scanRange:$};return dt.isDebugging&&Object.defineProperty(b,"__debugShowCurrentPositionInText",{get:()=>{const e=b.getText();return e.slice(0,b.getTokenFullStart())+"║"+e.slice(b.getTokenFullStart())}}),b;function T(e){return bs(_,e)}function S(e){return e>=0&&e<l?T(e):-1}function E(e){return _.charCodeAt(e)}function A(e){return e>=0&&e<l?E(e):-1}function x(e,n=s,t,r){if(o){const i=s;s=n,o(e,t||0,r),s=i}}function R(){let e=s,n=!1,t=!1,r="";for(;;){const o=E(s);if(95!==o){if(!Ja(o))break;n=!0,t=!1,s++}else m|=512,n?(n=!1,t=!0,r+=_.substring(e,s)):(m|=16384,x(t?fa.Multiple_consecutive_numeric_separators_are_not_permitted:fa.Numeric_separators_are_not_allowed_here,s,1)),e=++s}return 95===E(s-1)&&(m|=16384,x(fa.Numeric_separators_are_not_allowed_here,s-1,1)),r+_.substring(e,s)}function I(){let e,n,t,r=s;if(48===E(s))if(95===E(++s))m|=16896,x(fa.Numeric_separators_are_not_allowed_here,s,1),s--,e=R();else if(C()){if(f){f=""+parseInt(f,8),m|=32;const e=41===p,n=(e?"-":"")+"0o"+(+f).toString(8);return e&&r--,x(fa.Octal_literals_are_not_allowed_Use_the_syntax_0,r,s-r,n),9}e="0"}else m|=8192,e=""+ +f;else e=R();46===E(s)&&(s++,n=R());let o,i=s;if(69===E(s)||101===E(s)){s++,m|=16,43!==E(s)&&45!==E(s)||s++;const e=s,n=R();n?(t=_.substring(i,e)+n,i=s):x(fa.Digit_expected)}if(512&m?(o=e,n&&(o+="."+n),t&&(o+=t)):o=_.substring(r,i),8192&m)return x(fa.Decimals_with_leading_zeros_are_not_allowed,r,i-r),f=""+ +o,9;if(void 0!==n||16&m)return D(r,void 0===n&&!!(16&m)),f=""+ +o,9;{f=o;const e=G();return D(r),e}}function D(n,t){if(!_s(T(s),e))return;const r=s,{length:o}=W();1===o&&"n"===_[r]?x(t?fa.A_bigint_literal_cannot_use_exponential_notation:fa.A_bigint_literal_must_be_an_integer,n,r-n+1):(x(fa.An_identifier_or_keyword_cannot_immediately_follow_a_numeric_literal,r,o),s=r)}function C(){const e=s;let n=!0;for(;Ja(A(s));)Qa(E(s))||(n=!1),s++;return f=_.substring(e,s),n}function N(e,n){return M(e,!0,n)}function M(e,n,t){let r=[],o=!1,i=!1;for(;r.length<e||n;){let e=E(s);if(t&&95===e)m|=512,o?(o=!1,i=!0):x(i?fa.Multiple_consecutive_numeric_separators_are_not_permitted:fa.Numeric_separators_are_not_allowed_here,s,1),s++;else{if(o=t,e>=65&&e<=70)e+=32;else if(!(e>=48&&e<=57||e>=97&&e<=102))break;r.push(e),s++,i=!1}}return r.length<e&&(r=[]),95===E(s-1)&&x(fa.Numeric_separators_are_not_allowed_here,s-1,1),String.fromCharCode(...r)}function P(e=!1){const n=E(s);let t="",r=++s;for(;;){if(s>=l){t+=_.substring(r,s),m|=4,x(fa.Unterminated_string_literal);break}const o=E(s);if(o===n){t+=_.substring(r,s),s++;break}if(92!==o||e){if((10===o||13===o)&&!e){t+=_.substring(r,s),m|=4,x(fa.Unterminated_string_literal);break}s++}else t+=_.substring(r,s),t+=k(3),r=s}return t}function L(e){const n=96===E(s);let t,r=++s,o="";for(;;){if(s>=l){o+=_.substring(r,s),m|=4,x(fa.Unterminated_template_literal),t=n?15:18;break}const i=E(s);if(96===i){o+=_.substring(r,s),s++,t=n?15:18;break}if(36===i&&s+1<l&&123===E(s+1)){o+=_.substring(r,s),s+=2,t=n?16:17;break}92!==i?13!==i?s++:(o+=_.substring(r,s),++s<l&&10===E(s)&&s++,o+="\n",r=s):(o+=_.substring(r,s),o+=k(1|(e?2:0)),r=s)}return dt.assert(void 0!==t),f=o,t}function k(n){const t=s;if(++s>=l)return x(fa.Unexpected_end_of_text),"";const r=E(s);switch(s++,r){case 48:if(s>=l||!Ja(E(s)))return"\0";case 49:case 50:case 51:s<l&&Qa(E(s))&&s++;case 52:case 53:case 54:case 55:if(s<l&&Qa(E(s))&&s++,m|=2048,6&n){const e=parseInt(_.substring(t+1,s),8);return x(4&n&&!(32&n)&&48!==r?fa.Octal_escape_sequences_and_backreferences_are_not_allowed_in_a_character_class_If_this_was_intended_as_an_escape_sequence_use_the_syntax_0_instead:fa.Octal_escape_sequences_are_not_allowed_Use_the_syntax_0,t,s-t,"\\x"+e.toString(16).padStart(2,"0")),String.fromCharCode(e)}return _.substring(t,s);case 56:case 57:return m|=2048,6&n?(4&n&&!(32&n)?x(fa.Decimal_escape_sequences_and_backreferences_are_not_allowed_in_a_character_class,t,s-t):x(fa.Escape_sequence_0_is_not_allowed,t,s-t,_.substring(t,s)),String.fromCharCode(r)):_.substring(t,s);case 98:return"\b";case 116:return"\t";case 110:return"\n";case 118:return"\v";case 102:return"\f";case 114:return"\r";case 39:return"'";case 34:return'"';case 117:if(s<l&&123===E(s)){s-=2;const e=w(!!(6&n));return 17&n||(m|=2048,6&n&&x(fa.Unicode_escape_sequences_are_only_available_when_the_Unicode_u_flag_or_the_Unicode_Sets_v_flag_is_set,t,s-t)),e}for(;s<t+6;s++)if(!(s<l&&Xa(E(s))))return m|=2048,6&n&&x(fa.Hexadecimal_digit_expected),_.substring(t,s);m|=1024;const o=parseInt(_.substring(t+2,s),16),i=String.fromCharCode(o);if(16&n&&o>=55296&&o<=56319&&s+6<l&&"\\u"===_.substring(s,s+2)&&123!==E(s+2)){const e=s;let n=s+2;for(;n<e+6;n++)if(!Xa(E(n)))return i;const t=parseInt(_.substring(e+2,n),16);if(t>=56320&&t<=57343)return s=n,i+String.fromCharCode(t)}return i;case 120:for(;s<t+4;s++)if(!(s<l&&Xa(E(s))))return m|=2048,6&n&&x(fa.Hexadecimal_digit_expected),_.substring(t,s);return m|=4096,String.fromCharCode(parseInt(_.substring(t+2,s),16));case 13:s<l&&10===E(s)&&s++;case 10:case 8232:case 8233:return"";default:return(16&n||4&n&&!(8&n)&&gs(r,e))&&x(fa.This_character_cannot_be_escaped_in_a_regular_expression,s-2,2),String.fromCharCode(r)}}function w(e){const n=s,t=s+=3,r=N(1,!1),o=r?parseInt(r,16):-1;let i=!1;return o<0?(e&&x(fa.Hexadecimal_digit_expected),i=!0):o>1114111&&(e&&x(fa.An_extended_Unicode_escape_value_must_be_between_0x0_and_0x10FFFF_inclusive,t,s-t),i=!0),s>=l?(e&&x(fa.Unexpected_end_of_text),i=!0):125===E(s)?s++:(e&&x(fa.Unterminated_Unicode_escape_sequence),i=!0),i?(m|=2048,_.substring(n,s)):(m|=8,Es(o))}function O(){if(s+5<l&&117===E(s+1)){const e=s;s+=2;const n=function(e,n){const t=M(e,!1,n);return t?parseInt(t,16):-1}(4,!1);return s=e,n}return-1}function F(){if(117===T(s+1)&&123===T(s+2)){const e=s;s+=3;const n=N(1,!1),t=n?parseInt(n,16):-1;return s=e,t}return-1}function W(){let n="",t=s;for(;s<l;){let r=T(s);if(gs(r,e))s+=Ts(r);else{if(92!==r)break;if(r=F(),r>=0&&gs(r,e)){n+=w(!0),t=s;continue}if(r=O(),!(r>=0&&gs(r,e)))break;m|=1024,n+=_.substring(t,s),n+=Es(r),t=s+=6}}return n+=_.substring(t,s),n}function z(){const e=f.length;if(e>=2&&e<=12){const e=f.charCodeAt(0);if(e>=97&&e<=122){const e=ga.get(f);if(void 0!==e)return p=e}}return p=80}function B(e){let n="",t=!1,r=!1;for(;;){const o=E(s);if(95!==o){if(t=!0,!Ja(o)||o-48>=e)break;n+=_[s],s++,r=!1}else m|=512,t?(t=!1,r=!0):x(r?fa.Multiple_consecutive_numeric_separators_are_not_permitted:fa.Numeric_separators_are_not_allowed_here,s,1),s++}return 95===E(s-1)&&x(fa.Numeric_separators_are_not_allowed_here,s-1,1),n}function G(){if(110===E(s))return f+="n",384&m&&(f=vA(f)+"n"),s++,10;{const e=128&m?parseInt(f.slice(2),2):256&m?parseInt(f.slice(2),8):+f;return f=""+e,9}}function V(){for(c=s,m=0;;){if(u=s,s>=l)return p=1;const r=T(s);if(0===s&&35===r&&is(_,s)){if(s=as(_,s),n)continue;return p=6}switch(r){case 10:case 13:if(m|=1,n){s++;continue}return 13===r&&s+1<l&&10===E(s+1)?s+=2:s++,p=4;case 9:case 11:case 12:case 32:case 160:case 5760:case 8192:case 8193:case 8194:case 8195:case 8196:case 8197:case 8198:case 8199:case 8200:case 8201:case 8202:case 8203:case 8239:case 8287:case 12288:case 65279:if(n){s++;continue}for(;s<l&&Ka(E(s));)s++;return p=5;case 33:return 61===E(s+1)?61===E(s+2)?(s+=3,p=38):(s+=2,p=36):(s++,p=54);case 34:case 39:return f=P(),p=11;case 96:return p=L(!1);case 37:return 61===E(s+1)?(s+=2,p=70):(s++,p=45);case 38:return 38===E(s+1)?61===E(s+2)?(s+=3,p=77):(s+=2,p=56):61===E(s+1)?(s+=2,p=74):(s++,p=51);case 40:return s++,p=21;case 41:return s++,p=22;case 42:if(61===E(s+1))return s+=2,p=67;if(42===E(s+1))return 61===E(s+2)?(s+=3,p=68):(s+=2,p=43);if(s++,g&&!(32768&m)&&1&m){m|=32768;continue}return p=42;case 43:return 43===E(s+1)?(s+=2,p=46):61===E(s+1)?(s+=2,p=65):(s++,p=40);case 44:return s++,p=28;case 45:return 45===E(s+1)?(s+=2,p=47):61===E(s+1)?(s+=2,p=66):(s++,p=41);case 46:return Ja(E(s+1))?(I(),p=9):46===E(s+1)&&46===E(s+2)?(s+=3,p=26):(s++,p=25);case 47:if(47===E(s+1)){for(s+=2;s<l&&!qa(E(s));)s++;if(h=K(h,_.slice(u,s),xa,u),n)continue;return p=2}if(42===E(s+1)){const e=42===E(s+=2)&&47!==E(s+1);let t=!1,r=u;for(;s<l;){const e=E(s);if(42===e&&47===E(s+1)){s+=2,t=!0;break}s++,qa(e)&&(r=s,m|=1)}if(e&&j()&&(m|=2),h=K(h,_.slice(r,s),Ra,r),t||x(fa.Asterisk_Slash_expected),n)continue;return t||(m|=4),p=3}return 61===E(s+1)?(s+=2,p=69):(s++,p=44);case 48:if(s+2<l&&(88===E(s+1)||120===E(s+1)))return s+=2,(f=N(1,!0))||(x(fa.Hexadecimal_digit_expected),f="0"),f="0x"+f,m|=64,p=G();if(s+2<l&&(66===E(s+1)||98===E(s+1)))return s+=2,(f=B(2))||(x(fa.Binary_digit_expected),f="0"),f="0b"+f,m|=128,p=G();if(s+2<l&&(79===E(s+1)||111===E(s+1)))return s+=2,(f=B(8))||(x(fa.Octal_digit_expected),f="0"),f="0o"+f,m|=256,p=G();case 49:case 50:case 51:case 52:case 53:case 54:case 55:case 56:case 57:return p=I();case 58:return s++,p=59;case 59:return s++,p=27;case 60:if(ts(_,s)){if(s=rs(_,s,x),n)continue;return p=7}return 60===E(s+1)?61===E(s+2)?(s+=3,p=71):(s+=2,p=48):61===E(s+1)?(s+=2,p=33):1===t&&47===E(s+1)&&42!==E(s+2)?(s+=2,p=31):(s++,p=30);case 61:if(ts(_,s)){if(s=rs(_,s,x),n)continue;return p=7}return 61===E(s+1)?61===E(s+2)?(s+=3,p=37):(s+=2,p=35):62===E(s+1)?(s+=2,p=39):(s++,p=64);case 62:if(ts(_,s)){if(s=rs(_,s,x),n)continue;return p=7}return s++,p=32;case 63:return 46!==E(s+1)||Ja(E(s+2))?63===E(s+1)?61===E(s+2)?(s+=3,p=78):(s+=2,p=61):(s++,p=58):(s+=2,p=29);case 91:return s++,p=23;case 93:return s++,p=24;case 94:return 61===E(s+1)?(s+=2,p=79):(s++,p=53);case 123:return s++,p=19;case 124:if(ts(_,s)){if(s=rs(_,s,x),n)continue;return p=7}return 124===E(s+1)?61===E(s+2)?(s+=3,p=76):(s+=2,p=57):61===E(s+1)?(s+=2,p=75):(s++,p=52);case 125:return s++,p=20;case 126:return s++,p=55;case 64:return s++,p=60;case 92:const o=F();if(o>=0&&_s(o,e))return f=w(!0)+W(),p=z();const i=O();return i>=0&&_s(i,e)?(s+=6,m|=1024,f=String.fromCharCode(i)+W(),p=z()):(x(fa.Invalid_character),s++,p=0);case 35:if(0!==s&&"!"===_[s+1])return x(fa.can_only_be_used_at_the_start_of_a_file,s,2),s++,p=0;const a=T(s+1);if(92===a){s++;const n=F();if(n>=0&&_s(n,e))return f="#"+w(!0)+W(),p=81;const t=O();if(t>=0&&_s(t,e))return s+=6,m|=1024,f="#"+String.fromCharCode(t)+W(),p=81;s--}return _s(a,e)?(s++,U(a,e)):(f="#",x(fa.Invalid_character,s++,Ts(r))),p=81;case 65533:return x(fa.File_appears_to_be_binary,0,0),s=l,p=8;default:const c=U(r,e);if(c)return p=c;if(Ka(r)){s+=Ts(r);continue}if(qa(r)){m|=1,s+=Ts(r);continue}const d=Ts(r);return x(fa.Invalid_character,s,d),s+=d,p=0}}}function j(){switch(v){case 0:return!0;case 1:return!1}return 3!==y&&4!==y||3!==v&&Ia.test(_.slice(c,s))}function U(e,n){let t=e;if(_s(t,n)){for(s+=Ts(t);s<l&&gs(t=T(s),n);)s+=Ts(t);return f=_.substring(u,s),92===t&&(f+=W()),z()}}function H(n,t){const r=ba.get(n);r&&e<r&&x(fa.This_regular_expression_flag_is_only_available_when_targeting_0_or_later,s,t,HS(r))}function K(e,n,t,r){const o=function(e,n){const t=n.exec(e);if(!t)return;switch(t[1]){case"ts-expect-error":return 0;case"ts-ignore":return 1}return}(n.trimStart(),t);return void 0===o?e:re(e,{range:{pos:r,end:s},type:o})}function q(e=!0){if(c=u=s,s>=l)return p=1;let n=E(s);if(60===n)return 47===E(s+1)?(s+=2,p=31):(s++,p=30);if(123===n)return s++,p=19;let t=0;for(;s<l&&(n=E(s),123!==n);){if(60===n){if(ts(_,s))return s=rs(_,s,x),p=7;break}if(62===n&&x(fa.Unexpected_token_Did_you_mean_or_gt,s,1),125===n&&x(fa.Unexpected_token_Did_you_mean_or_rbrace,s,1),qa(n)&&0===t)t=-1;else{if(!e&&qa(n)&&t>0)break;Ha(n)||(t=s)}s++}return f=_.substring(c,s),-1===t?13:12}function J(){switch(c=s,E(s)){case 34:case 39:return f=P(!0),p=11;default:return V()}}function X(){if(c=u=s,m=0,s>=l)return p=1;const n=T(s);switch(s+=Ts(n),n){case 9:case 11:case 12:case 32:for(;s<l&&Ka(E(s));)s++;return p=5;case 64:return p=60;case 13:10===E(s)&&s++;case 10:return m|=1,p=4;case 42:return p=42;case 123:return p=19;case 125:return p=20;case 91:return p=23;case 93:return p=24;case 40:return p=21;case 41:return p=22;case 60:return p=30;case 62:return p=32;case 61:return p=64;case 44:return p=28;case 46:return p=25;case 96:return p=62;case 35:return p=63;case 92:s--;const n=F();if(n>=0&&_s(n,e))return f=w(!0)+W(),p=z();const t=O();return t>=0&&_s(t,e)?(s+=6,m|=1024,f=String.fromCharCode(t)+W(),p=z()):(s++,p=0)}if(_s(n,e)){let t=n;for(;s<l&&gs(t=T(s),e)||45===t;)s+=Ts(t);return f=_.substring(u,s),92===t&&(f+=W()),p=z()}return p=0}function Y(e,n){const t=s,r=c,o=u,i=p,a=f,l=m,d=e();return d&&!n||(s=t,c=r,u=o,p=i,f=a,m=l),d}function $(e,n,t){const r=l,o=s,i=c,a=u,d=p,g=f,y=m,v=h;Q(_,e,n);const b=t();return l=r,s=o,c=i,u=a,p=d,f=g,m=y,h=v,b}function Q(e,n,t){_=e||"",l=void 0===t?_.length:n+t,Z(n||0)}function Z(e){dt.assert(e>=0),s=e,c=e,u=e,p=0,f=void 0,m=0}}function bs(e,n){return e.codePointAt(n)}function Ts(e){return e>=65536?2:-1===e?0:1}var Ss=String.fromCodePoint?e=>String.fromCodePoint(e):function(e){if(dt.assert(0<=e&&e<=1114111),e<=65535)return String.fromCharCode(e);const n=Math.floor((e-65536)/1024)+55296,t=(e-65536)%1024+56320;return String.fromCharCode(n,t)};function Es(e){return Ss(e)}var As=new Map(Object.entries({General_Category:"General_Category",gc:"General_Category",Script:"Script",sc:"Script",Script_Extensions:"Script_Extensions",scx:"Script_Extensions"})),xs=new Set(["ASCII","ASCII_Hex_Digit","AHex","Alphabetic","Alpha","Any","Assigned","Bidi_Control","Bidi_C","Bidi_Mirrored","Bidi_M","Case_Ignorable","CI","Cased","Changes_When_Casefolded","CWCF","Changes_When_Casemapped","CWCM","Changes_When_Lowercased","CWL","Changes_When_NFKC_Casefolded","CWKCF","Changes_When_Titlecased","CWT","Changes_When_Uppercased","CWU","Dash","Default_Ignorable_Code_Point","DI","Deprecated","Dep","Diacritic","Dia","Emoji","Emoji_Component","EComp","Emoji_Modifier","EMod","Emoji_Modifier_Base","EBase","Emoji_Presentation","EPres","Extended_Pictographic","ExtPict","Extender","Ext","Grapheme_Base","Gr_Base","Grapheme_Extend","Gr_Ext","Hex_Digit","Hex","IDS_Binary_Operator","IDSB","IDS_Trinary_Operator","IDST","ID_Continue","IDC","ID_Start","IDS","Ideographic","Ideo","Join_Control","Join_C","Logical_Order_Exception","LOE","Lowercase","Lower","Math","Noncharacter_Code_Point","NChar","Pattern_Syntax","Pat_Syn","Pattern_White_Space","Pat_WS","Quotation_Mark","QMark","Radical","Regional_Indicator","RI","Sentence_Terminal","STerm","Soft_Dotted","SD","Terminal_Punctuation","Term","Unified_Ideograph","UIdeo","Uppercase","Upper","Variation_Selector","VS","White_Space","space","XID_Continue","XIDC","XID_Start","XIDS"]),Rs=new Set(["Basic_Emoji","Emoji_Keycap_Sequence","RGI_Emoji_Modifier_Sequence","RGI_Emoji_Flag_Sequence","RGI_Emoji_Tag_Sequence","RGI_Emoji_ZWJ_Sequence","RGI_Emoji"]),Is={General_Category:new Set(["C","Other","Cc","Control","cntrl","Cf","Format","Cn","Unassigned","Co","Private_Use","Cs","Surrogate","L","Letter","LC","Cased_Letter","Ll","Lowercase_Letter","Lm","Modifier_Letter","Lo","Other_Letter","Lt","Titlecase_Letter","Lu","Uppercase_Letter","M","Mark","Combining_Mark","Mc","Spacing_Mark","Me","Enclosing_Mark","Mn","Nonspacing_Mark","N","Number","Nd","Decimal_Number","digit","Nl","Letter_Number","No","Other_Number","P","Punctuation","punct","Pc","Connector_Punctuation","Pd","Dash_Punctuation","Pe","Close_Punctuation","Pf","Final_Punctuation","Pi","Initial_Punctuation","Po","Other_Punctuation","Ps","Open_Punctuation","S","Symbol","Sc","Currency_Symbol","Sk","Modifier_Symbol","Sm","Math_Symbol","So","Other_Symbol","Z","Separator","Zl","Line_Separator","Zp","Paragraph_Separator","Zs","Space_Separator"]),Script:new Set(["Adlm","Adlam","Aghb","Caucasian_Albanian","Ahom","Arab","Arabic","Armi","Imperial_Aramaic","Armn","Armenian","Avst","Avestan","Bali","Balinese","Bamu","Bamum","Bass","Bassa_Vah","Batk","Batak","Beng","Bengali","Bhks","Bhaiksuki","Bopo","Bopomofo","Brah","Brahmi","Brai","Braille","Bugi","Buginese","Buhd","Buhid","Cakm","Chakma","Cans","Canadian_Aboriginal","Cari","Carian","Cham","Cher","Cherokee","Chrs","Chorasmian","Copt","Coptic","Qaac","Cpmn","Cypro_Minoan","Cprt","Cypriot","Cyrl","Cyrillic","Deva","Devanagari","Diak","Dives_Akuru","Dogr","Dogra","Dsrt","Deseret","Dupl","Duployan","Egyp","Egyptian_Hieroglyphs","Elba","Elbasan","Elym","Elymaic","Ethi","Ethiopic","Geor","Georgian","Glag","Glagolitic","Gong","Gunjala_Gondi","Gonm","Masaram_Gondi","Goth","Gothic","Gran","Grantha","Grek","Greek","Gujr","Gujarati","Guru","Gurmukhi","Hang","Hangul","Hani","Han","Hano","Hanunoo","Hatr","Hatran","Hebr","Hebrew","Hira","Hiragana","Hluw","Anatolian_Hieroglyphs","Hmng","Pahawh_Hmong","Hmnp","Nyiakeng_Puachue_Hmong","Hrkt","Katakana_Or_Hiragana","Hung","Old_Hungarian","Ital","Old_Italic","Java","Javanese","Kali","Kayah_Li","Kana","Katakana","Kawi","Khar","Kharoshthi","Khmr","Khmer","Khoj","Khojki","Kits","Khitan_Small_Script","Knda","Kannada","Kthi","Kaithi","Lana","Tai_Tham","Laoo","Lao","Latn","Latin","Lepc","Lepcha","Limb","Limbu","Lina","Linear_A","Linb","Linear_B","Lisu","Lyci","Lycian","Lydi","Lydian","Mahj","Mahajani","Maka","Makasar","Mand","Mandaic","Mani","Manichaean","Marc","Marchen","Medf","Medefaidrin","Mend","Mende_Kikakui","Merc","Meroitic_Cursive","Mero","Meroitic_Hieroglyphs","Mlym","Malayalam","Modi","Mong","Mongolian","Mroo","Mro","Mtei","Meetei_Mayek","Mult","Multani","Mymr","Myanmar","Nagm","Nag_Mundari","Nand","Nandinagari","Narb","Old_North_Arabian","Nbat","Nabataean","Newa","Nkoo","Nko","Nshu","Nushu","Ogam","Ogham","Olck","Ol_Chiki","Orkh","Old_Turkic","Orya","Oriya","Osge","Osage","Osma","Osmanya","Ougr","Old_Uyghur","Palm","Palmyrene","Pauc","Pau_Cin_Hau","Perm","Old_Permic","Phag","Phags_Pa","Phli","Inscriptional_Pahlavi","Phlp","Psalter_Pahlavi","Phnx","Phoenician","Plrd","Miao","Prti","Inscriptional_Parthian","Rjng","Rejang","Rohg","Hanifi_Rohingya","Runr","Runic","Samr","Samaritan","Sarb","Old_South_Arabian","Saur","Saurashtra","Sgnw","SignWriting","Shaw","Shavian","Shrd","Sharada","Sidd","Siddham","Sind","Khudawadi","Sinh","Sinhala","Sogd","Sogdian","Sogo","Old_Sogdian","Sora","Sora_Sompeng","Soyo","Soyombo","Sund","Sundanese","Sylo","Syloti_Nagri","Syrc","Syriac","Tagb","Tagbanwa","Takr","Takri","Tale","Tai_Le","Talu","New_Tai_Lue","Taml","Tamil","Tang","Tangut","Tavt","Tai_Viet","Telu","Telugu","Tfng","Tifinagh","Tglg","Tagalog","Thaa","Thaana","Thai","Tibt","Tibetan","Tirh","Tirhuta","Tnsa","Tangsa","Toto","Ugar","Ugaritic","Vaii","Vai","Vith","Vithkuqi","Wara","Warang_Citi","Wcho","Wancho","Xpeo","Old_Persian","Xsux","Cuneiform","Yezi","Yezidi","Yiii","Yi","Zanb","Zanabazar_Square","Zinh","Inherited","Qaai","Zyyy","Common","Zzzz","Unknown"]),Script_Extensions:void 0};function Ds(e){return Si(e)||yi(e)}function Cs(e){return Z(e,aS,dS)}Is.Script_Extensions=Is.Script;var Ns=new Map([[99,"lib.esnext.full.d.ts"],[11,"lib.es2024.full.d.ts"],[10,"lib.es2023.full.d.ts"],[9,"lib.es2022.full.d.ts"],[8,"lib.es2021.full.d.ts"],[7,"lib.es2020.full.d.ts"],[6,"lib.es2019.full.d.ts"],[5,"lib.es2018.full.d.ts"],[4,"lib.es2017.full.d.ts"],[3,"lib.es2016.full.d.ts"],[2,"lib.es6.d.ts"]]);function Ms(e){const n=SS(e);switch(n){case 99:case 11:case 10:case 9:case 8:case 7:case 6:case 5:case 4:case 3:case 2:return Ns.get(n);default:return"lib.d.ts"}}function Ps(e){return e.start+e.length}function Ls(e){return 0===e.length}function ks(e,n){return n>=e.start&&n<Ps(e)}function ws(e,n){return n>=e.pos&&n<=e.end}function Os(e,n){return n.start>=e.start&&Ps(n)<=Ps(e)}function Fs(e,n){return n.pos>=e.start&&n.end<=Ps(e)}function Ws(e,n){return n.start>=e.pos&&Ps(n)<=e.end}function zs(e,n){return void 0!==Bs(e,n)}function Bs(e,n){const t=Ks(e,n);return t&&0===t.length?void 0:t}function Gs(e,n){return js(e.start,e.length,n.start,n.length)}function Vs(e,n,t){return js(e.start,e.length,n,t)}function js(e,n,t,r){return t<=e+n&&t+r>=e}function Us(e,n){return n<=Ps(e)&&n>=e.start}function Hs(e,n){return Vs(n,e.pos,e.end-e.pos)}function Ks(e,n){const t=Math.max(e.start,n.start),r=Math.min(Ps(e),Ps(n));return t<=r?Xs(t,r):void 0}function qs(e){e=e.filter(e=>e.length>0).sort((e,n)=>e.start!==n.start?e.start-n.start:e.length-n.length);const n=[];let t=0;for(;t<e.length;){let r=e[t],o=t+1;for(;o<e.length&&Gs(r,e[o]);){r=Xs(Math.min(r.start,e[o].start),Math.max(Ps(r),Ps(e[o]))),o++}t=o,n.push(r)}return n}function Js(e,n){if(e<0)throw new Error("start < 0");if(n<0)throw new Error("length < 0");return{start:e,length:n}}function Xs(e,n){return Js(e,n-e)}function Ys(e){return Js(e.span.start,e.newLength)}function $s(e){return Ls(e.span)&&0===e.newLength}function Qs(e,n){if(n<0)throw new Error("newLength < 0");return{span:e,newLength:n}}var Zs=Qs(Js(0,0),0);function el(e){if(0===e.length)return Zs;if(1===e.length)return e[0];const n=e[0];let t=n.span.start,r=Ps(n.span),o=t+n.newLength;for(let i=1;i<e.length;i++){const n=e[i],a=t,s=r,l=o,c=n.span.start,d=Ps(n.span),u=c+n.newLength;t=Math.min(a,c),r=Math.max(s,s+(d-l)),o=Math.max(u,u+(l-d))}return Qs(Xs(t,r),o-t)}function nl(e){if(e&&169===e.kind)for(let n=e;n;n=n.parent)if(ad(n)||md(n)||265===n.kind)return n}function tl(e,n){return DD(e)&&Mv(e,31)&&177===n.kind}function rl(e){return!!xd(e)&&g(e.elements,ol)}function ol(e){return!!FC(e)||rl(e.name)}function il(e){let n=e.parent;for(;fC(n.parent);)n=n.parent.parent;return n.parent}function al(e,n){fC(e)&&(e=il(e));let t=n(e);return 261===e.kind&&(e=e.parent),e&&262===e.kind&&(t|=n(e),e=e.parent),e&&244===e.kind&&(t|=n(e)),t}function sl(e){return al(e,jv)}function ll(e){return al(e,Uv)}function cl(e){return al(e,dl)}function dl(e){return e.flags}var ul=["cs","de","es","fr","it","ja","ko","pl","pt-br","ru","tr","zh-cn","zh-tw"];function pl(e,n,t){const r=e.toLowerCase(),o=/^([a-z]+)(?:[_-]([a-z]+))?$/.exec(r);if(!o)return void(t&&t.push(nS(fa.Locale_must_be_of_the_form_language_or_language_territory_For_example_0_or_1,"en","ja-jp")));const i=o[1],a=o[2];function s(e,t,r){let o=zi(Mi(ji(n.getExecutingFilePath())),e);if(t&&(o=o+"-"+t),o=n.resolvePath(zi(o,"diagnosticMessages.generated.json")),!n.fileExists(o))return!1;let i="";try{i=n.readFile(o)}catch{return r&&r.push(nS(fa.Unable_to_open_file_0,o)),!1}try{KT(JSON.parse(i))}catch{return r&&r.push(nS(fa.Corrupted_locale_file_0,o)),!1}return!0}S(ul,r)&&!s(i,a,t)&&s(i,void 0,t),Mn(e)}function fl(e,n){if(e)for(;void 0!==e.original;)e=e.original;return e&&n?n(e)?e:void 0:e}function ml(e,n){for(;e;){const t=n(e);if("quit"===t)return;if(t)return e;e=e.parent}}function hl(e){return!(16&e.flags)}function _l(e,n){if(void 0===e||hl(e))return e;for(e=e.original;e;){if(hl(e))return!n||n(e)?e:void 0;e=e.original}}function gl(e){return e.length>=2&&95===e.charCodeAt(0)&&95===e.charCodeAt(1)?"_"+e:e}function yl(e){const n=e;return n.length>=3&&95===n.charCodeAt(0)&&95===n.charCodeAt(1)&&95===n.charCodeAt(2)?n.substr(1):n}function vl(e){return yl(e.escapedText)}function bl(e){const n=La(e.escapedText);return n?en(n,Dg):void 0}function Tl(e){return e.valueDeclaration&&$c(e.valueDeclaration)?vl(e.valueDeclaration.name):yl(e.escapedName)}function Sl(e){const n=e.parent.parent;if(n){if(fu(n))return El(n);switch(n.kind){case 244:if(n.declarationList&&n.declarationList.declarations[0])return El(n.declarationList.declarations[0]);break;case 245:let e=n.expression;switch(227===e.kind&&64===e.operatorToken.kind&&(e=e.left),e.kind){case 212:return e.name;case 213:const n=e.argumentExpression;if(dD(n))return n}break;case 218:return El(n.expression);case 257:if(fu(n.statement)||qd(n.statement))return El(n.statement)}}}function El(e){const n=Dl(e);return n&&dD(n)?n:void 0}function Al(e,n){return!(!Rl(e)||!dD(e.name)||vl(e.name)!==vl(n))||!(!XC(e)||!U(e.declarationList.declarations,e=>Al(e,n)))}function xl(e){return e.name||Sl(e)}function Rl(e){return!!e.name}function Il(e){switch(e.kind){case 80:return e;case 349:case 342:{const{name:n}=e;if(167===n.kind)return n.right;break}case 214:case 227:{const n=e;switch(o_(n)){case 1:case 4:case 5:case 3:return p_(n.left);case 7:case 8:case 9:return n.arguments[1];default:return}}case 347:return xl(e);case 341:return Sl(e);case 278:{const{expression:n}=e;return dD(n)?n:void 0}case 213:const n=e;if(c_(n))return n.argumentExpression}return e.name}function Dl(e){if(void 0!==e)return Il(e)||(EC(e)||AC(e)||OC(e)?Cl(e):void 0)}function Cl(e){if(e.parent){if(sM(e.parent)||fC(e.parent))return e.parent.name;if(MC(e.parent)&&e===e.parent.right){if(dD(e.parent.left))return e.parent.left;if(IT(e.parent.left))return p_(e.parent.left)}else if(fN(e.parent)&&dD(e.parent.name))return e.parent.name}}function Nl(e){if(zv(e))return x(e.modifiers,CD)}function Ml(e){if(Mv(e,98303))return x(e.modifiers,td)}function Pl(e,n){if(e.name){if(dD(e.name)){const t=e.name.escapedText;return sc(e.parent,n).filter(e=>jM(e)&&dD(e.name)&&e.name.escapedText===t)}{const t=e.parent.parameters.indexOf(e);dt.assert(t>-1,"Parameters should always be in their parents' parameter list");const r=sc(e.parent,n).filter(jM);if(t<r.length)return[r[t]]}}return s}function Ll(e){return Pl(e,!1)}function kl(e){return Pl(e,!0)}function wl(e,n){const t=e.name.escapedText;return sc(e.parent,n).filter(e=>qM(e)&&e.typeParameters.some(e=>e.name.escapedText===t))}function Ol(e){return wl(e,!1)}function Fl(e){return wl(e,!0)}function Wl(e){return!!cc(e,jM)}function zl(e){return cc(e,NM)}function Bl(e){return dc(e,$M)}function Gl(e){return cc(e,PM)}function Vl(e){return cc(e,kM)}function jl(e){return cc(e,kM,!0)}function Ul(e){return cc(e,wM)}function Hl(e){return cc(e,wM,!0)}function Kl(e){return cc(e,OM)}function ql(e){return cc(e,OM,!0)}function Jl(e){return cc(e,FM)}function Xl(e){return cc(e,FM,!0)}function Yl(e){return cc(e,WM,!0)}function $l(e){return cc(e,BM)}function Ql(e){return cc(e,BM,!0)}function Zl(e){return cc(e,VM)}function ec(e){return cc(e,HM)}function nc(e){return cc(e,UM)}function tc(e){return cc(e,qM)}function rc(e){return cc(e,QM)}function oc(e){const n=cc(e,KM);if(n&&n.typeExpression&&n.typeExpression.type)return n}function ic(e){let n=cc(e,KM);return!n&&DD(e)&&(n=y(Ll(e),e=>!!e.typeExpression)),n&&n.typeExpression&&n.typeExpression.type}function ac(e){const n=nc(e);if(n&&n.typeExpression)return n.typeExpression.type;const t=oc(e);if(t&&t.typeExpression){const e=t.typeExpression.type;if(KD(e)){const n=y(e.members,WD);return n&&n.type}if(jD(e)||AM(e))return e.type}}function sc(e,n){var t;if(!W_(e))return s;let r=null==(t=e.jsDoc)?void 0:t.jsDocCache;if(void 0===r||n){const t=z_(e,n);dt.assert(t.length<2||t[0]!==t[1]),r=P(t,e=>IM(e)?e.tags:e),n||(e.jsDoc??(e.jsDoc=[]),e.jsDoc.jsDocCache=r)}return r}function lc(e){return sc(e,!1)}function cc(e,n,t){return y(sc(e,t),n)}function dc(e,n){return lc(e).filter(n)}function uc(e,n){return lc(e).filter(e=>e.kind===n)}function pc(e){return"string"==typeof e?e:null==e?void 0:e.map(e=>322===e.kind?e.text:function(e){const n=325===e.kind?"link":326===e.kind?"linkcode":"linkplain",t=e.name?Gf(e.name):"",r=e.name&&(""===e.text||e.text.startsWith("://"))?"":" ";return`{@${n} ${t}${r}${e.text}}`}(e)).join("")}function fc(e){if(CM(e)){if(zM(e.parent)){const n=J_(e.parent);if(n&&c(n.tags))return P(n.tags,e=>qM(e)?e.typeParameters:void 0)}return s}if(M_(e))return dt.assert(321===e.parent.kind),P(e.parent.tags,e=>qM(e)?e.typeParameters:void 0);if(e.typeParameters)return e.typeParameters;if(XP(e)&&e.typeParameters)return e.typeParameters;if(Lh(e)){const n=bv(e);if(n.length)return n;const t=ic(e);if(t&&jD(t)&&t.typeParameters)return t.typeParameters}return s}function mc(e){return e.constraint?e.constraint:qM(e.parent)&&e===e.parent.typeParameters[0]?e.parent.constraint:void 0}function hc(e){return 80===e.kind||81===e.kind}function _c(e){return 179===e.kind||178===e.kind}function gc(e){return _C(e)&&!!(64&e.flags)}function yc(e){return gC(e)&&!!(64&e.flags)}function vc(e){return yC(e)&&!!(64&e.flags)}function bc(e){const n=e.kind;return!!(64&e.flags)&&(212===n||213===n||214===n||236===n)}function Tc(e){return bc(e)&&!GC(e)&&!!e.questionDotToken}function Sc(e){return Tc(e.parent)&&e.parent.expression===e}function Ec(e){return!bc(e.parent)||Tc(e.parent)||e!==e.parent.expression}function Ac(e){return 227===e.kind&&61===e.operatorToken.kind}function xc(e){return VD(e)&&dD(e.typeName)&&"const"===e.typeName.escapedText&&!e.typeArguments}function Rc(e){return MP(e,8)}function Ic(e){return GC(e)&&!!(64&e.flags)}function Dc(e){return 253===e.kind||252===e.kind}function Cc(e){return 281===e.kind||280===e.kind}function Nc(e){return 349===e.kind||342===e.kind}function Mc(e){return e>=167}function Pc(e){return e>=0&&e<=166}function Lc(e){return Pc(e.kind)}function kc(e){return Ie(e,"pos")&&Ie(e,"end")}function wc(e){return 9<=e&&e<=15}function Oc(e){return wc(e.kind)}function Fc(e){switch(e.kind){case 211:case 210:case 14:case 219:case 232:return!0}return!1}function Wc(e){return 15<=e&&e<=18}function zc(e){return Wc(e.kind)}function Bc(e){const n=e.kind;return 17===n||18===n}function Gc(e){return wN(e)||zN(e)}function Vc(e){switch(e.kind){case 277:return e.isTypeOnly||156===e.parent.parent.phaseModifier;case 275:return 156===e.parent.phaseModifier;case 274:return 156===e.phaseModifier;case 272:return e.isTypeOnly}return!1}function jc(e){switch(e.kind){case 282:return e.isTypeOnly||e.parent.parent.isTypeOnly;case 279:return e.isTypeOnly&&!!e.moduleSpecifier&&!e.exportClause;case 281:return e.parent.isTypeOnly}return!1}function Uc(e){return Vc(e)||jc(e)}function Hc(e){return void 0!==ml(e,Uc)}function Kc(e){return 11===e.kind||Wc(e.kind)}function qc(e){return qI(e)||dD(e)}function Jc(e){var n;return dD(e)&&void 0!==(null==(n=e.emitNode)?void 0:n.autoGenerate)}function Xc(e){var n;return uD(e)&&void 0!==(null==(n=e.emitNode)?void 0:n.autoGenerate)}function Yc(e){const n=e.emitNode.autoGenerate.flags;return!!(32&n)&&!!(16&n)&&!!(8&n)}function $c(e){return(MD(e)||yd(e))&&uD(e.name)}function Qc(e){return _C(e)&&uD(e.name)}function Zc(e){switch(e){case 128:case 129:case 134:case 87:case 138:case 90:case 95:case 103:case 125:case 123:case 124:case 148:case 126:case 147:case 164:return!0}return!1}function ed(e){return!!(31&$v(e))}function nd(e){return ed(e)||126===e||164===e||129===e}function td(e){return Zc(e.kind)}function rd(e){const n=e.kind;return 167===n||80===n}function od(e){const n=e.kind;return 80===n||81===n||11===n||9===n||168===n}function id(e){const n=e.kind;return 80===n||207===n||208===n}function ad(e){return!!e&&ud(e.kind)}function sd(e){return!!e&&(ud(e.kind)||kD(e))}function ld(e){return e&&dd(e.kind)}function cd(e){return 112===e.kind||97===e.kind}function dd(e){switch(e){case 263:case 175:case 177:case 178:case 179:case 219:case 220:return!0;default:return!1}}function ud(e){switch(e){case 174:case 180:case 324:case 181:case 182:case 185:case 318:case 186:return!0;default:return dd(e)}}function pd(e){return uM(e)||TN(e)||JC(e)&&ad(e.parent)}function fd(e){const n=e.kind;return 177===n||173===n||175===n||178===n||179===n||182===n||176===n||241===n}function md(e){return e&&(264===e.kind||232===e.kind)}function hd(e){return e&&(178===e.kind||179===e.kind)}function _d(e){return MD(e)&&Fv(e)}function gd(e){return Lh(e)&&fx(e)?!(l_(e)&&hb(e.expression)||d_(e,!0)):e.parent&&md(e.parent)&&MD(e)&&!Fv(e)}function yd(e){switch(e.kind){case 175:case 178:case 179:return!0;default:return!1}}function vd(e){return td(e)||CD(e)}function bd(e){const n=e.kind;return 181===n||180===n||172===n||174===n||182===n||178===n||179===n||355===n}function Td(e){return bd(e)||fd(e)}function Sd(e){const n=e.kind;return 304===n||305===n||306===n||175===n||178===n||179===n}function Ed(e){return RT(e.kind)}function Ad(e){switch(e.kind){case 185:case 186:return!0}return!1}function xd(e){if(e){const n=e.kind;return 208===n||207===n}return!1}function Rd(e){const n=e.kind;return 210===n||211===n}function Id(e){const n=e.kind;return 209===n||233===n}function Dd(e){switch(e.kind){case 261:case 170:case 209:return!0}return!1}function Cd(e){return fN(e)||DD(e)||Pd(e)||kd(e)}function Nd(e){return Md(e)||Ld(e)}function Md(e){switch(e.kind){case 207:case 211:return!0}return!1}function Pd(e){switch(e.kind){case 209:case 304:case 305:case 306:return!0}return!1}function Ld(e){switch(e.kind){case 208:case 210:return!0}return!1}function kd(e){switch(e.kind){case 209:case 233:case 231:case 210:case 211:case 80:case 212:case 213:return!0}return sb(e,!0)}function wd(e){const n=e.kind;return 212===n||167===n||206===n}function Od(e){const n=e.kind;return 212===n||167===n}function Fd(e){return Wd(e)||VA(e)}function Wd(e){switch(e.kind){case 214:case 215:case 216:case 171:case 287:case 286:case 290:return!0;case 227:return 104===e.operatorToken.kind;default:return!1}}function zd(e){return 214===e.kind||215===e.kind}function Bd(e){const n=e.kind;return 229===n||15===n}function Gd(e){return Vd(Rc(e).kind)}function Vd(e){switch(e){case 212:case 213:case 215:case 214:case 285:case 286:case 289:case 216:case 210:case 218:case 211:case 232:case 219:case 80:case 81:case 14:case 9:case 10:case 11:case 15:case 229:case 97:case 106:case 110:case 112:case 108:case 236:case 234:case 237:case 102:case 283:return!0;default:return!1}}function jd(e){return Ud(Rc(e).kind)}function Ud(e){switch(e){case 225:case 226:case 221:case 222:case 223:case 224:case 217:return!0;default:return Vd(e)}}function Hd(e){switch(e.kind){case 226:return!0;case 225:return 46===e.operator||47===e.operator;default:return!1}}function Kd(e){switch(e.kind){case 106:case 112:case 97:case 225:return!0;default:return Oc(e)}}function qd(e){return function(e){switch(e){case 228:case 230:case 220:case 227:case 231:case 235:case 233:case 357:case 356:case 239:return!0;default:return Ud(e)}}(Rc(e).kind)}function Jd(e){const n=e.kind;return 217===n||235===n}function Xd(e,n){switch(e.kind){case 249:case 250:case 251:case 247:case 248:return!0;case 257:return n&&Xd(e.statement,n)}return!1}function Yd(e){return ON(e)||FN(e)}function $d(e){return U(e,Yd)}function Qd(e){return!(Pf(e)||ON(e)||Mv(e,32)||pf(e))}function Zd(e){return Pf(e)||ON(e)||Mv(e,32)}function eu(e){return 250===e.kind||251===e.kind}function nu(e){return JC(e)||qd(e)}function tu(e){return JC(e)}function ru(e){return mN(e)||qd(e)}function ou(e){const n=e.kind;return 269===n||268===n||80===n}function iu(e){const n=e.kind;return 269===n||268===n}function au(e){const n=e.kind;return 80===n||268===n}function su(e){const n=e.kind;return 276===n||275===n}function lu(e){return 268===e.kind||267===e.kind}function cu(e){switch(e.kind){case 220:case 227:case 209:case 214:case 180:case 264:case 232:case 176:case 177:case 186:case 181:case 213:case 267:case 307:case 278:case 279:case 282:case 263:case 219:case 185:case 178:case 80:case 274:case 272:case 277:case 182:case 265:case 339:case 341:case 318:case 342:case 349:case 324:case 347:case 323:case 292:case 293:case 294:case 201:case 175:case 174:case 268:case 203:case 281:case 271:case 275:case 215:case 15:case 9:case 211:case 170:case 212:case 304:case 173:case 172:case 179:case 305:case 308:case 306:case 11:case 266:case 188:case 169:case 261:return!0;default:return!1}}function du(e){switch(e.kind){case 220:case 242:case 180:case 270:case 300:case 176:case 195:case 177:case 186:case 181:case 249:case 250:case 251:case 263:case 219:case 185:case 178:case 182:case 339:case 341:case 318:case 324:case 347:case 201:case 175:case 174:case 268:case 179:case 308:case 266:return!0;default:return!1}}function uu(e){return 263===e||283===e||264===e||265===e||266===e||267===e||268===e||273===e||272===e||279===e||278===e||271===e}function pu(e){return 253===e||252===e||260===e||247===e||245===e||243===e||250===e||251===e||249===e||246===e||257===e||254===e||256===e||258===e||259===e||244===e||248===e||255===e||354===e}function fu(e){return 169===e.kind?e.parent&&346!==e.parent.kind||Lh(e):220===(n=e.kind)||209===n||264===n||232===n||176===n||177===n||267===n||307===n||282===n||263===n||219===n||178===n||274===n||272===n||277===n||265===n||292===n||175===n||174===n||268===n||271===n||275===n||281===n||170===n||304===n||173===n||172===n||179===n||305===n||266===n||169===n||261===n||347===n||339===n||349===n||203===n;var n}function mu(e){return uu(e.kind)}function hu(e){return pu(e.kind)}function _u(e){const n=e.kind;return pu(n)||uu(n)||function(e){if(242!==e.kind)return!1;if(void 0!==e.parent&&(259===e.parent.kind||300===e.parent.kind))return!1;return!Vm(e)}(e)}function gu(e){const n=e.kind;return pu(n)||uu(n)||242===n}function yu(e){const n=e.kind;return 284===n||167===n||80===n}function vu(e){const n=e.kind;return 110===n||80===n||212===n||296===n}function bu(e){const n=e.kind;return 285===n||295===n||286===n||12===n||289===n}function Tu(e){const n=e.kind;return 292===n||294===n}function Su(e){const n=e.kind;return 11===n||295===n}function Eu(e){const n=e.kind;return 287===n||286===n}function Au(e){const n=e.kind;return 287===n||286===n||290===n}function xu(e){const n=e.kind;return 297===n||298===n}function Ru(e){return e.kind>=310&&e.kind<=352}function Iu(e){return 321===e.kind||320===e.kind||322===e.kind||Bu(e)||Du(e)||DM(e)||CM(e)}function Du(e){return e.kind>=328&&e.kind<=352}function Cu(e){return 179===e.kind}function Nu(e){return 178===e.kind}function Mu(e){if(!W_(e))return!1;const{jsDoc:n}=e;return!!n&&n.length>0}function Pu(e){return!!e.type}function Lu(e){return!!e.initializer}function ku(e){switch(e.kind){case 261:case 170:case 209:case 173:case 304:case 307:return!0;default:return!1}}function wu(e){return 292===e.kind||294===e.kind||Sd(e)}function Ou(e){return 184===e.kind||234===e.kind}var Fu=1073741823;function Wu(e){let n=Fu;for(const t of e){if(!t.length)continue;let e=0;for(;e<t.length&&e<n&&Ha(t.charCodeAt(e));e++);if(e<n&&(n=e),0===n)return 0}return n===Fu?void 0:n}function zu(e){return 11===e.kind||15===e.kind}function Bu(e){return 325===e.kind||326===e.kind||327===e.kind}function Gu(e){const n=ge(e.parameters);return!!n&&Vu(n)}function Vu(e){const n=jM(e)?e.typeExpression&&e.typeExpression.type:e.type;return void 0!==e.dotDotDotToken||!!n&&319===n.kind}function ju(e,n){return n.text.substring(e.pos,e.end).includes("@internal")}function Uu(e,n){n??(n=Sp(e));const t=_l(e);if(t&&170===t.kind){const r=t.parent.parameters.indexOf(t),o=r>0?t.parent.parameters[r-1]:void 0,i=n.text,a=o?K(ms(i,es(i,o.end+1,!1,!0)),fs(i,e.pos)):ms(i,es(i,e.pos,!1,!0));return U(a)&&ju(ye(a),n)}return!!d(t&&Tm(t,n),e=>ju(e,n))}var Hu=[],Ku="tslib",qu=160,Ju=1e6,Xu=500;function Yu(e,n){const t=e.declarations;if(t)for(const r of t)if(r.kind===n)return r}function $u(e,n){return x(e.declarations||s,e=>e.kind===n)}function Qu(e){const n=new Map;if(e)for(const t of e)n.set(t.escapedName,t);return n}function Zu(e){return!!(33554432&e.flags)}function ep(e){return!!(1536&e.flags)&&34===e.escapedName.charCodeAt(0)}var np=function(){var e="";const n=n=>e+=n;return{getText:()=>e,write:n,rawWrite:n,writeKeyword:n,writeOperator:n,writePunctuation:n,writeSpace:n,writeStringLiteral:n,writeLiteral:n,writeParameter:n,writeProperty:n,writeSymbol:(e,t)=>n(e),writeTrailingSemicolon:n,writeComment:n,getTextPos:()=>e.length,getLine:()=>0,getColumn:()=>0,getIndent:()=>0,isAtStartOfLine:()=>!1,hasTrailingComment:()=>!1,hasTrailingWhitespace:()=>!!e.length&&Ha(e.charCodeAt(e.length-1)),writeLine:()=>e+=" ",increaseIndent:tn,decreaseIndent:tn,clear:()=>e=""}}();function tp(e,n){return e.configFilePath!==n.configFilePath||function(e,n){return op(e,n,Uk)}(e,n)}function rp(e,n){return op(e,n,Kk)}function op(e,n,t){return e!==n&&t.some(t=>!yA(YS(e,t),YS(n,t)))}function ip(e,n){for(;;){const t=n(e);if("quit"===t)return;if(void 0!==t)return t;if(uM(e))return;e=e.parent}}function ap(e,n){const t=e.entries();for(const[r,o]of t){const e=n(o,r);if(e)return e}}function sp(e,n){const t=e.keys();for(const r of t){const e=n(r);if(e)return e}}function lp(e,n){e.forEach((e,t)=>{n.set(t,e)})}function cp(e){const n=np.getText();try{return e(np),np.getText()}finally{np.clear(),np.writeKeyword(n)}}function dp(e){return e.end-e.pos}function up(e,n){return e.path===n.path&&!e.prepend==!n.prepend&&!e.circular==!n.circular}function pp(e,n){return e===n||e.resolvedModule===n.resolvedModule||!!e.resolvedModule&&!!n.resolvedModule&&e.resolvedModule.isExternalLibraryImport===n.resolvedModule.isExternalLibraryImport&&e.resolvedModule.extension===n.resolvedModule.extension&&e.resolvedModule.resolvedFileName===n.resolvedModule.resolvedFileName&&e.resolvedModule.originalPath===n.resolvedModule.originalPath&&(t=e.resolvedModule.packageId,r=n.resolvedModule.packageId,t===r||!!t&&!!r&&t.name===r.name&&t.subModuleName===r.subModuleName&&t.version===r.version&&t.peerDependencies===r.peerDependencies)&&e.alternateResult===n.alternateResult;var t,r}function fp(e){return e.resolvedModule}function mp(e){return e.resolvedTypeReferenceDirective}function hp(e,n,t,r,o){var i;const a=null==(i=n.getResolvedModule(e,t,r))?void 0:i.alternateResult,s=a&&(2===AS(n.getCompilerOptions())?[fa.There_are_types_at_0_but_this_result_could_not_be_resolved_under_your_current_moduleResolution_setting_Consider_updating_to_node16_nodenext_or_bundler,[a]]:[fa.There_are_types_at_0_but_this_result_could_not_be_resolved_when_respecting_package_json_exports_The_1_library_may_need_to_update_its_package_json_or_typings,[a,a.includes(oW+"@types/")?`@types/${GW(o)}`:o]]),l=s?rS(void 0,s[0],...s[1]):n.typesPackageExists(o)?rS(void 0,fa.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,GW(o)):n.packageBundlesTypes(o)?rS(void 0,fa.If_the_0_package_actually_exposes_this_module_try_adding_a_new_declaration_d_ts_file_containing_declare_module_1,o,t):rS(void 0,fa.Try_npm_i_save_dev_types_Slash_1_if_it_exists_or_add_a_new_declaration_d_ts_file_containing_declare_module_0,t,GW(o));return l&&(l.repopulateInfo=()=>({moduleReference:t,mode:r,packageName:o===t?void 0:o})),l}function _p(e){const n=iA(e.fileName),t=e.packageJsonScope,r=".ts"===n?".mts":".js"===n?".mjs":void 0,o=t&&!t.contents.packageJsonContent.type?r?rS(void 0,fa.To_convert_this_file_to_an_ECMAScript_module_change_its_file_extension_to_0_or_add_the_field_type_Colon_module_to_1,r,zi(t.packageDirectory,"package.json")):rS(void 0,fa.To_convert_this_file_to_an_ECMAScript_module_add_the_field_type_Colon_module_to_0,zi(t.packageDirectory,"package.json")):r?rS(void 0,fa.To_convert_this_file_to_an_ECMAScript_module_change_its_file_extension_to_0_or_create_a_local_package_json_file_with_type_Colon_module,r):rS(void 0,fa.To_convert_this_file_to_an_ECMAScript_module_create_a_local_package_json_file_with_type_Colon_module);return o.repopulateInfo=()=>!0,o}function gp({name:e,subModuleName:n}){return n?`${e}/${n}`:e}function yp(e){return`${gp(e)}@${e.version}${e.peerDependencies??""}`}function vp(e,n){return e===n||e.resolvedTypeReferenceDirective===n.resolvedTypeReferenceDirective||!!e.resolvedTypeReferenceDirective&&!!n.resolvedTypeReferenceDirective&&e.resolvedTypeReferenceDirective.resolvedFileName===n.resolvedTypeReferenceDirective.resolvedFileName&&!!e.resolvedTypeReferenceDirective.primary==!!n.resolvedTypeReferenceDirective.primary&&e.resolvedTypeReferenceDirective.originalPath===n.resolvedTypeReferenceDirective.originalPath}function bp(e,n,t,r){dt.assert(e.length===n.length);for(let o=0;o<e.length;o++){const i=n[o],a=t(e[o]);if(a?!i||!r(a,i):i)return!0}return!1}function Tp(e){return function(e){if(!(2097152&e.flags)){(!!(262144&e.flags)||rk(e,Tp))&&(e.flags|=1048576),e.flags|=2097152}}(e),!!(1048576&e.flags)}function Sp(e){for(;e&&308!==e.kind;)e=e.parent;return e}function Ep(e){return Sp(e.valueDeclaration||bf(e))}function Ap(e,n){return!(!e||1!==e.scriptKind&&2!==e.scriptKind||e.checkJsDirective||void 0!==n)}function xp(e){switch(e.kind){case 242:case 270:case 249:case 250:case 251:return!0}return!1}function Rp(e,n){return dt.assert(e>=0),Ba(n)[e]}function Ip(e){const n=Sp(e),t=Ua(n,e.pos);return`${n.fileName}(${t.line+1},${t.character+1})`}function Dp(e,n){dt.assert(e>=0);const t=Ba(n),r=e,o=n.text;if(r+1===t.length)return o.length-1;{const e=t[r];let n=t[r+1]-1;for(dt.assert(qa(o.charCodeAt(n)));e<=n&&qa(o.charCodeAt(n));)n--;return n}}function Cp(e,n,t){return!(t&&t(n)||e.identifiers.has(n))}function Np(e){return void 0===e||e.pos===e.end&&e.pos>=0&&1!==e.kind}function Mp(e){return!Np(e)}function Pp(e,n){return ID(e)?n===e.expression:kD(e)?n===e.modifiers:ND(e)?n===e.initializer:MD(e)?n===e.questionToken&&_d(e):sM(e)?n===e.modifiers||n===e.questionToken||n===e.exclamationToken||Lp(e.modifiers,n,vd):lM(e)?n===e.equalsToken||n===e.modifiers||n===e.questionToken||n===e.exclamationToken||Lp(e.modifiers,n,vd):LD(e)?n===e.exclamationToken:wD(e)?n===e.typeParameters||n===e.type||Lp(e.typeParameters,n,ID):OD(e)?n===e.typeParameters||Lp(e.typeParameters,n,ID):FD(e)?n===e.typeParameters||n===e.type||Lp(e.typeParameters,n,ID):!!EN(e)&&(n===e.modifiers||Lp(e.modifiers,n,vd))}function Lp(e,n,t){return!(!e||Ye(n)||!t(n))&&S(e,n)}function kp(e,n,t){if(void 0===n||0===n.length)return e;let r=0;for(;r<e.length&&t(e[r]);++r);return e.splice(r,0,...n),e}function wp(e,n,t){if(void 0===n)return e;let r=0;for(;r<e.length&&t(e[r]);++r);return e.splice(r,0,n),e}function Op(e){return _m(e)||!!(2097152&tf(e))}function Fp(e,n){return kp(e,n,_m)}function Wp(e,n){return kp(e,n,Op)}function zp(e,n){return wp(e,n,_m)}function Bp(e,n){return wp(e,n,Op)}function Gp(e,n,t){if(47===e.charCodeAt(n+1)&&n+2<t&&47===e.charCodeAt(n+2)){const r=e.substring(n,t);return!!(Em.test(r)||Rm.test(r)||Im.test(r)||Am.test(r)||xm.test(r)||Dm.test(r))}return!1}function Vp(e,n){return 42===e.charCodeAt(n+1)&&33===e.charCodeAt(n+2)}function jp(e,n){const t=new Map(n.map(n=>[`${Ua(e,n.range.end).line}`,n])),r=new Map;return{getUnusedExpectations:function(){return Le(t.entries()).filter(([e,n])=>0===n.type&&!r.get(e)).map(([e,n])=>n)},markUsed:function(e){if(!t.has(`${e}`))return!1;return r.set(`${e}`,!0),!0}}}function Up(e,n,t){if(Np(e))return e.pos;if(Ru(e)||12===e.kind)return es((n??Sp(e)).text,e.pos,!1,!0);if(t&&Mu(e))return Up(e.jsDoc[0],n);if(353===e.kind){n??(n=Sp(e));const r=fe(oP(e,n));if(r)return Up(r,n,t)}return es((n??Sp(e)).text,e.pos,!1,!1,Oh(e))}function Hp(e,n){const t=!Np(e)&&CL(e)?v(e.modifiers,CD):void 0;return t?es((n||Sp(e)).text,t.end):Up(e,n)}function Kp(e,n){const t=!Np(e)&&CL(e)&&e.modifiers?ye(e.modifiers):void 0;return t?es((n||Sp(e)).text,t.end):Up(e,n)}function qp(e,n,t=!1){return Qp(e.text,n,t)}function Jp(e){return!!(FN(e)&&e.exportClause&&LN(e.exportClause)&&$p(e.exportClause.name))}function Xp(e){return 11===e.kind?e.text:yl(e.escapedText)}function Yp(e){return 11===e.kind?gl(e.text):e.escapedText}function $p(e){return"default"===(11===e.kind?e.text:e.escapedText)}function Qp(e,n,t=!1){if(Np(n))return"";let r=e.substring(t?n.pos:es(e,n.pos),n.end);return function(e){return!!ml(e,fM)}(n)&&(r=r.split(/\r\n|\n|\r/).map(e=>e.replace(/^\s*\*/,"").trimStart()).join("\n")),r}function Zp(e,n=!1){return qp(Sp(e),e,n)}function ef(e){return e.pos}function nf(e,n){return Ee(e,n,ef,vn)}function tf(e){const n=e.emitNode;return n&&n.flags||0}function rf(e){const n=e.emitNode;return n&&n.internalFlags||0}var of=pn(()=>new Map(Object.entries({Array:new Map(Object.entries({es2015:["find","findIndex","fill","copyWithin","entries","keys","values"],es2016:["includes"],es2019:["flat","flatMap"],es2022:["at"],es2023:["findLastIndex","findLast","toReversed","toSorted","toSpliced","with"]})),Iterator:new Map(Object.entries({es2015:s})),AsyncIterator:new Map(Object.entries({es2015:s})),ArrayBuffer:new Map(Object.entries({es2024:["maxByteLength","resizable","resize","detached","transfer","transferToFixedLength"]})),Atomics:new Map(Object.entries({es2017:["add","and","compareExchange","exchange","isLockFree","load","or","store","sub","wait","notify","xor"],es2024:["waitAsync"],esnext:["pause"]})),SharedArrayBuffer:new Map(Object.entries({es2017:["byteLength","slice"],es2024:["growable","maxByteLength","grow"]})),AsyncIterable:new Map(Object.entries({es2018:s})),AsyncIterableIterator:new Map(Object.entries({es2018:s})),AsyncGenerator:new Map(Object.entries({es2018:s})),AsyncGeneratorFunction:new Map(Object.entries({es2018:s})),RegExp:new Map(Object.entries({es2015:["flags","sticky","unicode"],es2018:["dotAll"],es2024:["unicodeSets"]})),Reflect:new Map(Object.entries({es2015:["apply","construct","defineProperty","deleteProperty","get","getOwnPropertyDescriptor","getPrototypeOf","has","isExtensible","ownKeys","preventExtensions","set","setPrototypeOf"]})),ArrayConstructor:new Map(Object.entries({es2015:["from","of"],esnext:["fromAsync"]})),ObjectConstructor:new Map(Object.entries({es2015:["assign","getOwnPropertySymbols","keys","is","setPrototypeOf"],es2017:["values","entries","getOwnPropertyDescriptors"],es2019:["fromEntries"],es2022:["hasOwn"],es2024:["groupBy"]})),NumberConstructor:new Map(Object.entries({es2015:["isFinite","isInteger","isNaN","isSafeInteger","parseFloat","parseInt"]})),Math:new Map(Object.entries({es2015:["clz32","imul","sign","log10","log2","log1p","expm1","cosh","sinh","tanh","acosh","asinh","atanh","hypot","trunc","fround","cbrt"],esnext:["f16round"]})),Map:new Map(Object.entries({es2015:["entries","keys","values"]})),MapConstructor:new Map(Object.entries({es2024:["groupBy"]})),Set:new Map(Object.entries({es2015:["entries","keys","values"],esnext:["union","intersection","difference","symmetricDifference","isSubsetOf","isSupersetOf","isDisjointFrom"]})),PromiseConstructor:new Map(Object.entries({es2015:["all","race","reject","resolve"],es2020:["allSettled"],es2021:["any"],es2024:["withResolvers"]})),Symbol:new Map(Object.entries({es2015:["for","keyFor"],es2019:["description"]})),WeakMap:new Map(Object.entries({es2015:["entries","keys","values"]})),WeakSet:new Map(Object.entries({es2015:["entries","keys","values"]})),String:new Map(Object.entries({es2015:["codePointAt","includes","endsWith","normalize","repeat","startsWith","anchor","big","blink","bold","fixed","fontcolor","fontsize","italics","link","small","strike","sub","sup"],es2017:["padStart","padEnd"],es2019:["trimStart","trimEnd","trimLeft","trimRight"],es2020:["matchAll"],es2021:["replaceAll"],es2022:["at"],es2024:["isWellFormed","toWellFormed"]})),StringConstructor:new Map(Object.entries({es2015:["fromCodePoint","raw"]})),DateTimeFormat:new Map(Object.entries({es2017:["formatToParts"]})),Promise:new Map(Object.entries({es2015:s,es2018:["finally"]})),RegExpMatchArray:new Map(Object.entries({es2018:["groups"]})),RegExpExecArray:new Map(Object.entries({es2018:["groups"]})),Intl:new Map(Object.entries({es2018:["PluralRules"]})),NumberFormat:new Map(Object.entries({es2018:["formatToParts"]})),SymbolConstructor:new Map(Object.entries({es2020:["matchAll"],esnext:["metadata","dispose","asyncDispose"]})),DataView:new Map(Object.entries({es2020:["setBigInt64","setBigUint64","getBigInt64","getBigUint64"],esnext:["setFloat16","getFloat16"]})),BigInt:new Map(Object.entries({es2020:s})),RelativeTimeFormat:new Map(Object.entries({es2020:["format","formatToParts","resolvedOptions"]})),Int8Array:new Map(Object.entries({es2022:["at"],es2023:["findLastIndex","findLast","toReversed","toSorted","toSpliced","with"]})),Uint8Array:new Map(Object.entries({es2022:["at"],es2023:["findLastIndex","findLast","toReversed","toSorted","toSpliced","with"]})),Uint8ClampedArray:new Map(Object.entries({es2022:["at"],es2023:["findLastIndex","findLast","toReversed","toSorted","toSpliced","with"]})),Int16Array:new Map(Object.entries({es2022:["at"],es2023:["findLastIndex","findLast","toReversed","toSorted","toSpliced","with"]})),Uint16Array:new Map(Object.entries({es2022:["at"],es2023:["findLastIndex","findLast","toReversed","toSorted","toSpliced","with"]})),Int32Array:new Map(Object.entries({es2022:["at"],es2023:["findLastIndex","findLast","toReversed","toSorted","toSpliced","with"]})),Uint32Array:new Map(Object.entries({es2022:["at"],es2023:["findLastIndex","findLast","toReversed","toSorted","toSpliced","with"]})),Float16Array:new Map(Object.entries({esnext:s})),Float32Array:new Map(Object.entries({es2022:["at"],es2023:["findLastIndex","findLast","toReversed","toSorted","toSpliced","with"]})),Float64Array:new Map(Object.entries({es2022:["at"],es2023:["findLastIndex","findLast","toReversed","toSorted","toSpliced","with"]})),BigInt64Array:new Map(Object.entries({es2020:s,es2022:["at"],es2023:["findLastIndex","findLast","toReversed","toSorted","toSpliced","with"]})),BigUint64Array:new Map(Object.entries({es2020:s,es2022:["at"],es2023:["findLastIndex","findLast","toReversed","toSorted","toSpliced","with"]})),Error:new Map(Object.entries({es2022:["cause"]}))}))),af=(e=>(e[e.None=0]="None",e[e.NeverAsciiEscape=1]="NeverAsciiEscape",e[e.JsxAttributeEscape=2]="JsxAttributeEscape",e[e.TerminateUnterminatedLiterals=4]="TerminateUnterminatedLiterals",e[e.AllowNumericSeparator=8]="AllowNumericSeparator",e))(af||{});function sf(e,n,t){if(n&&function(e,n){if(ry(e)||!e.parent||4&n&&e.isUnterminated)return!1;if(HI(e)){if(26656&e.numericLiteralFlags)return!1;if(512&e.numericLiteralFlags)return!!(8&n)}return!KI(e)}(e,t))return qp(n,e);switch(e.kind){case 11:{const n=2&t?My:1&t||16777216&tf(e)?Ay:Ry;return e.singleQuote?"'"+n(e.text,39)+"'":'"'+n(e.text,34)+'"'}case 15:case 16:case 17:case 18:{const n=1&t||16777216&tf(e)?Ay:Ry,r=e.rawText??hy(n(e.text,96));switch(e.kind){case 15:return"`"+r+"`";case 16:return"`"+r+"${";case 17:return"}"+r+"${";case 18:return"}"+r+"`"}break}case 9:case 10:return e.text;case 14:return 4&t&&e.isUnterminated?e.text+(92===e.text.charCodeAt(e.text.length-1)?" /":"/"):e.text}return dt.fail(`Literal kind '${e.kind}' not accounted for.`)}function lf(e){return Qe(e)?`"${Ay(e)}"`:""+e}function cf(e){return Pi(e).replace(/^(\d)/,"_$1").replace(/\W/g,"_")}function df(e){return!!(7&cl(e))||uf(e)}function uf(e){const n=ny(e);return 261===n.kind&&300===n.parent.kind}function pf(e){return bN(e)&&(11===e.name.kind||gf(e))}function ff(e){return bN(e)&&11===e.name.kind}function mf(e){return bN(e)&&qI(e.name)}function hf(e){return!!(n=e.valueDeclaration)&&268===n.kind&&!n.body;var n}function _f(e){return 308===e.kind||268===e.kind||sd(e)}function gf(e){return!!(2048&e.flags)}function yf(e){return pf(e)&&vf(e)}function vf(e){switch(e.parent.kind){case 308:return dk(e.parent);case 269:return pf(e.parent.parent)&&uM(e.parent.parent.parent)&&!dk(e.parent.parent.parent)}return!1}function bf(e){var n;return null==(n=e.declarations)?void 0:n.find(e=>!(yf(e)||bN(e)&&gf(e)))}function Tf(e,n){return dk(e)||(1===(t=ES(n))||100<=t&&t<=199)&&!!e.commonJsModuleIndicator;var t}function Sf(e,n){switch(e.scriptKind){case 1:case 3:case 2:case 4:break;default:return!1}return!e.isDeclarationFile&&(!!US(n,"alwaysStrict")||(!!xP(e.statements)||!(!dk(e)&&!RS(n))))}function Ef(e){return!!(33554432&e.flags)||Mv(e,128)}function Af(e,n){switch(e.kind){case 308:case 270:case 300:case 268:case 249:case 250:case 251:case 177:case 175:case 178:case 179:case 263:case 219:case 220:case 173:case 176:return!0;case 242:return!sd(n)}return!1}function xf(e){switch(dt.type(e),e.kind){case 339:case 347:case 324:return!0;default:return Rf(e)}}function Rf(e){switch(dt.type(e),e.kind){case 180:case 181:case 174:case 182:case 185:case 186:case 318:case 264:case 232:case 265:case 266:case 346:case 263:case 175:case 177:case 178:case 179:case 219:case 220:return!0;default:return!1}}function If(e){switch(e.kind){case 273:case 272:return!0;default:return!1}}function Df(e){return If(e)||Bh(e)}function Cf(e){return If(e)||jh(e)}function Nf(e){switch(e.kind){case 273:case 272:case 244:case 264:case 263:case 268:case 266:case 265:case 267:return!0;default:return!1}}function Mf(e){return Pf(e)||bN(e)||lC(e)||fm(e)}function Pf(e){return If(e)||FN(e)}function Lf(e){return ml(e.parent,e=>!!(1&cz(e)))}function kf(e){return ml(e.parent,e=>Af(e,e.parent))}function wf(e,n){let t=kf(e);for(;t;)n(t),t=kf(t)}function Of(e){return e&&0!==dp(e)?Zp(e):"(Missing)"}function Ff(e){return e.declaration?Of(e.declaration.parameters[0].name):void 0}function Wf(e){return 168===e.kind&&!zg(e.expression)}function zf(e){var n;switch(e.kind){case 80:case 81:return(null==(n=e.emitNode)?void 0:n.autoGenerate)?void 0:e.escapedText;case 11:case 9:case 10:case 15:return gl(e.text);case 168:return zg(e.expression)?gl(e.expression.text):void 0;case 296:return lx(e);default:return dt.assertNever(e)}}function Bf(e){return dt.checkDefined(zf(e))}function Gf(e){switch(e.kind){case 110:return"this";case 81:case 80:return 0===dp(e)?vl(e):Zp(e);case 167:return Gf(e.left)+"."+Gf(e.right);case 212:return dD(e.name)||uD(e.name)?Gf(e.expression)+"."+Gf(e.name):dt.assertNever(e.name);case 312:return Gf(e.left)+"#"+Gf(e.right);case 296:return Gf(e.namespace)+":"+Gf(e.name);default:return dt.assertNever(e)}}function Vf(e,n,...t){return Uf(Sp(e),e,n,...t)}function jf(e,n,t,...r){const o=es(e.text,n.pos);return ZT(e,o,n.end-o,t,...r)}function Uf(e,n,t,...r){const o=nm(e,n);return ZT(e,o.start,o.length,t,...r)}function Hf(e,n,t,r){const o=nm(e,n);return Jf(e,o.start,o.length,t,r)}function Kf(e,n,t,r){const o=es(e.text,n.pos);return Jf(e,o,n.end-o,t,r)}function qf(e,n,t){dt.assertGreaterThanOrEqual(n,0),dt.assertGreaterThanOrEqual(t,0),dt.assertLessThanOrEqual(n,e.length),dt.assertLessThanOrEqual(n+t,e.length)}function Jf(e,n,t,r,o){return qf(e.text,n,t),{file:e,start:n,length:t,code:r.code,category:r.category,messageText:r.next?r:r.messageText,relatedInformation:o,canonicalHead:r.canonicalHead}}function Xf(e,n,t){return{file:e,start:0,length:0,code:n.code,category:n.category,messageText:n.next?n:n.messageText,relatedInformation:t}}function Yf(e){return"string"==typeof e.messageText?{code:e.code,category:e.category,messageText:e.messageText,next:e.next}:e.messageText}function $f(e,n,t){return{file:e,start:n.pos,length:n.end-n.pos,code:t.code,category:t.category,messageText:t.message}}function Qf(e,...n){return{code:e.code,messageText:eS(e,...n)}}function Zf(e,n){const t=vs(e.languageVersion,!0,e.languageVariant,e.text,void 0,n);t.scan();return Xs(t.getTokenStart(),t.getTokenEnd())}function em(e,n){const t=vs(e.languageVersion,!0,e.languageVariant,e.text,void 0,n);return t.scan(),t.getToken()}function nm(e,n){let t=n;switch(n.kind){case 308:{const n=es(e.text,0,!1);return n===e.text.length?Js(0,0):Zf(e,n)}case 261:case 209:case 264:case 232:case 265:case 268:case 267:case 307:case 263:case 219:case 175:case 178:case 179:case 266:case 173:case 172:case 275:t=n.name;break;case 220:return function(e,n){const t=es(e.text,n.pos);if(n.body&&242===n.body.kind){const{line:r}=Ua(e,n.body.pos),{line:o}=Ua(e,n.body.end);if(r<o)return Js(t,Dp(r,e)-t+1)}return Xs(t,n.end)}(e,n);case 297:case 298:return Xs(es(e.text,n.pos),n.statements.length>0?n.statements[0].pos:n.end);case 254:case 230:return Zf(e,es(e.text,n.pos));case 239:return Zf(e,es(e.text,n.expression.end));case 351:return Zf(e,es(e.text,n.tagName.pos));case 177:{const t=n,r=es(e.text,t.pos),o=vs(e.languageVersion,!0,e.languageVariant,e.text,void 0,r);let i=o.scan();for(;137!==i&&1!==i;)i=o.scan();return Xs(r,o.getTokenEnd())}}if(void 0===t)return Zf(e,n.pos);dt.assert(!IM(t));const r=Np(t),o=r||JI(n)?t.pos:es(e.text,t.pos);return r?(dt.assert(o===t.pos,"This failure could trigger https://github.com/Microsoft/TypeScript/issues/20809"),dt.assert(o===t.end,"This failure could trigger https://github.com/Microsoft/TypeScript/issues/20809")):(dt.assert(o>=t.pos,"This failure could trigger https://github.com/Microsoft/TypeScript/issues/20809"),dt.assert(o<=t.end,"This failure could trigger https://github.com/Microsoft/TypeScript/issues/20809")),Xs(o,t.end)}function tm(e){return 308===e.kind&&!rm(e)}function rm(e){return void 0!==(e.externalModuleIndicator||e.commonJsModuleIndicator)}function om(e){return 6===e.scriptKind}function im(e){return!!(4096&sl(e))}function am(e){return!(!(8&sl(e))||tl(e,e.parent))}function sm(e){return 6==(7&cl(e))}function lm(e){return 4==(7&cl(e))}function cm(e){return 2==(7&cl(e))}function dm(e){const n=7&cl(e);return 2===n||4===n||6===n}function um(e){return 1==(7&cl(e))}function pm(e){return 214===e.kind&&108===e.expression.kind}function fm(e){if(214!==e.kind)return!1;const n=e.expression;return 102===n.kind||VC(n)&&102===n.keywordToken&&"defer"===n.name.escapedText}function mm(e){return VC(e)&&102===e.keywordToken&&"meta"===e.name.escapedText}function hm(e){return lC(e)&&sC(e.argument)&&qI(e.argument.literal)}function _m(e){return 245===e.kind&&11===e.expression.kind}function gm(e){return!!(2097152&tf(e))}function ym(e){return gm(e)&&hN(e)}function vm(e){return dD(e.name)&&!e.initializer}function bm(e){return gm(e)&&XC(e)&&g(e.declarationList.declarations,vm)}function Tm(e,n){return 12!==e.kind?fs(n.text,e.pos):void 0}function Sm(e,n){return x(170===e.kind||169===e.kind||219===e.kind||220===e.kind||218===e.kind||261===e.kind||282===e.kind?K(ms(n,e.pos),fs(n,e.pos)):fs(n,e.pos),t=>t.end<=e.end&&42===n.charCodeAt(t.pos+1)&&42===n.charCodeAt(t.pos+2)&&47!==n.charCodeAt(t.pos+3))}var Em=/^\/\/\/\s*<reference\s+path\s*=\s*(?:'[^']*'|"[^"]*").*?\/>/,Am=/^\/\/\/\s*<reference\s+types\s*=\s*(?:'[^']*'|"[^"]*").*?\/>/,xm=/^\/\/\/\s*<reference\s+lib\s*=\s*(?:'[^']*'|"[^"]*").*?\/>/,Rm=/^\/\/\/\s*<amd-dependency\s+path\s*=\s*(?:'[^']*'|"[^"]*").*?\/>/,Im=/^\/\/\/\s*<amd-module\s+(?:\S.*?)??\/>/,Dm=/^\/\/\/\s*<reference\s+no-default-lib\s*=\s*(?:'[^']*'|"[^"]*")\s*\/>/;function Cm(e){if(183<=e.kind&&e.kind<=206)return!0;switch(e.kind){case 133:case 159:case 150:case 163:case 154:case 136:case 155:case 151:case 157:case 106:case 146:return!0;case 116:return 223!==e.parent.kind;case 234:return Nm(e);case 169:return 201===e.parent.kind||196===e.parent.kind;case 80:(167===e.parent.kind&&e.parent.right===e||212===e.parent.kind&&e.parent.name===e)&&(e=e.parent),dt.assert(80===e.kind||167===e.kind||212===e.kind,"'node' was expected to be a qualified name, identifier or property access in 'isPartOfTypeNode'.");case 167:case 212:case 110:{const{parent:n}=e;if(187===n.kind)return!1;if(206===n.kind)return!n.isTypeOf;if(183<=n.kind&&n.kind<=206)return!0;switch(n.kind){case 234:return Nm(n);case 169:case 346:return e===n.constraint;case 173:case 172:case 170:case 261:case 263:case 219:case 220:case 177:case 175:case 174:case 178:case 179:case 180:case 181:case 182:case 217:return e===n.type;case 214:case 215:case 216:return S(n.typeArguments,e)}}}return!1}function Nm(e){return $M(e.parent)||NM(e.parent)||iM(e.parent)&&!cb(e)}function Mm(e,n){return function e(t){switch(t.kind){case 254:return n(t);case 270:case 242:case 246:case 247:case 248:case 249:case 250:case 251:case 255:case 256:case 297:case 298:case 257:case 259:case 300:return rk(t,e)}}(e)}function Pm(e,n){return function e(t){switch(t.kind){case 230:n(t);const r=t.expression;return void(r&&e(r));case 267:case 265:case 268:case 266:return;default:if(ad(t)){if(t.name&&168===t.name.kind)return void e(t.name.expression)}else Cm(t)||rk(t,e)}}(e)}function Lm(e){return e&&189===e.kind?e.elementType:e&&184===e.kind?ve(e.typeArguments):void 0}function km(e){switch(e.kind){case 265:case 264:case 232:case 188:return e.members;case 211:return e.properties}}function wm(e){if(e)switch(e.kind){case 209:case 307:case 170:case 304:case 173:case 172:case 305:case 261:return!0}return!1}function Om(e){return 262===e.parent.kind&&244===e.parent.parent.kind}function Fm(e){return!!Lh(e)&&(hC(e.parent)&&MC(e.parent.parent)&&2===o_(e.parent.parent)||Wm(e.parent))}function Wm(e){return!!Lh(e)&&(MC(e)&&1===o_(e))}function zm(e){return(fN(e)?cm(e)&&dD(e.name)&&Om(e):MD(e)?Wv(e)&&Lv(e):ND(e)&&Wv(e))||Wm(e)}function Bm(e){switch(e.kind){case 175:case 174:case 177:case 178:case 179:case 263:case 219:return!0}return!1}function Gm(e,n){for(;;){if(n&&n(e),257!==e.statement.kind)return e.statement;e=e.statement}}function Vm(e){return e&&242===e.kind&&ad(e.parent)}function jm(e){return e&&175===e.kind&&211===e.parent.kind}function Um(e){return!(175!==e.kind&&178!==e.kind&&179!==e.kind||211!==e.parent.kind&&232!==e.parent.kind)}function Hm(e){return e&&1===e.kind}function Km(e){return e&&0===e.kind}function qm(e,n,t,r){return d(null==e?void 0:e.properties,e=>{if(!sM(e))return;const o=zf(e.name);return n===o||r&&r===o?t(e):void 0})}function Jm(e){if(e&&e.statements.length){return en(e.statements[0].expression,hC)}}function Xm(e,n,t){return Ym(e,n,e=>mC(e.initializer)?y(e.initializer.elements,e=>qI(e)&&e.text===t):void 0)}function Ym(e,n,t){return qm(Jm(e),n,t)}function $m(e){return ml(e.parent,ad)}function Qm(e){return ml(e.parent,ld)}function Zm(e){return ml(e.parent,md)}function eh(e){return ml(e.parent,e=>md(e)||ad(e)?"quit":kD(e))}function nh(e){return ml(e.parent,sd)}function th(e){const n=ml(e.parent,e=>md(e)?"quit":CD(e));return n&&md(n.parent)?Zm(n.parent):Zm(n??e)}function rh(e,n,t){for(dt.assert(308!==e.kind);;){if(!(e=e.parent))return dt.fail();switch(e.kind){case 168:if(t&&md(e.parent.parent))return e;e=e.parent.parent;break;case 171:170===e.parent.kind&&fd(e.parent.parent)?e=e.parent.parent:fd(e.parent)&&(e=e.parent);break;case 220:if(!n)continue;case 263:case 219:case 268:case 176:case 173:case 172:case 175:case 174:case 177:case 178:case 179:case 180:case 181:case 182:case 267:case 308:return e}}}function oh(e){switch(e.kind){case 220:case 263:case 219:case 173:return!0;case 242:switch(e.parent.kind){case 177:case 175:case 178:case 179:return!0;default:return!1}default:return!1}}function ih(e){dD(e)&&(_N(e.parent)||hN(e.parent))&&e.parent.name===e&&(e=e.parent);return uM(rh(e,!0,!1))}function ah(e){const n=rh(e,!1,!1);if(n)switch(n.kind){case 177:case 263:case 219:return n}}function sh(e,n){for(;;){if(!(e=e.parent))return;switch(e.kind){case 168:e=e.parent;break;case 263:case 219:case 220:if(!n)continue;case 173:case 172:case 175:case 174:case 177:case 178:case 179:case 176:return e;case 171:170===e.parent.kind&&fd(e.parent.parent)?e=e.parent.parent:fd(e.parent)&&(e=e.parent)}}}function lh(e){if(219===e.kind||220===e.kind){let n=e,t=e.parent;for(;218===t.kind;)n=t,t=t.parent;if(214===t.kind&&t.expression===n)return t}}function ch(e){const n=e.kind;return(212===n||213===n)&&108===e.expression.kind}function dh(e){const n=e.kind;return(212===n||213===n)&&110===e.expression.kind}function uh(e){var n;return!!e&&fN(e)&&110===(null==(n=e.initializer)?void 0:n.kind)}function ph(e){return!!e&&(lM(e)||sM(e))&&MC(e.parent.parent)&&64===e.parent.parent.operatorToken.kind&&110===e.parent.parent.right.kind}function fh(e){switch(e.kind){case 184:return e.typeName;case 234:return db(e.expression)?e.expression:void 0;case 80:case 167:return e}}function mh(e){switch(e.kind){case 216:return e.tag;case 287:case 286:return e.tagName;case 227:return e.right;case 290:return e;default:return e.expression}}function hh(e,n,t,r){if(e&&Rl(n)&&uD(n.name))return!1;switch(n.kind){case 264:return!0;case 232:return!e;case 173:return void 0!==t&&(e?_N(t):md(t)&&!wv(n)&&!Ov(n));case 178:case 179:case 175:return void 0!==n.body&&void 0!==t&&(e?_N(t):md(t));case 170:return!!e&&(void 0!==t&&void 0!==t.body&&(177===t.kind||175===t.kind||179===t.kind)&&dv(t)!==n&&void 0!==r&&264===r.kind)}return!1}function _h(e,n,t,r){return zv(n)&&hh(e,n,t,r)}function gh(e,n,t,r){return _h(e,n,t,r)||yh(e,n,t)}function yh(e,n,t){switch(n.kind){case 264:return U(n.members,r=>gh(e,r,n,t));case 232:return!e&&U(n.members,r=>gh(e,r,n,t));case 175:case 179:case 177:return U(n.parameters,r=>_h(e,r,n,t));default:return!1}}function vh(e,n){if(_h(e,n))return!0;const t=sv(n);return!!t&&yh(e,t,n)}function bh(e,n,t){let r;if(hd(n)){const{firstAccessor:e,secondAccessor:o,setAccessor:i}=_v(t.members,n),a=zv(e)?e:o&&zv(o)?o:void 0;if(!a||n!==a)return!1;r=null==i?void 0:i.parameters}else LD(n)&&(r=n.parameters);if(_h(e,n,t))return!0;if(r)for(const o of r)if(!uv(o)&&_h(e,o,n,t))return!0;return!1}function Th(e){if(e.textSourceNode){switch(e.textSourceNode.kind){case 11:return Th(e.textSourceNode);case 15:return""===e.text}return!1}return""===e.text}function Sh(e){const{parent:n}=e;return(287===n.kind||286===n.kind||288===n.kind)&&n.tagName===e}function Eh(e){switch(e.kind){case 108:case 106:case 112:case 97:case 14:case 210:case 211:case 212:case 213:case 214:case 215:case 216:case 235:case 217:case 239:case 236:case 218:case 219:case 232:case 220:case 223:case 221:case 222:case 225:case 226:case 227:case 228:case 231:case 229:case 233:case 285:case 286:case 289:case 230:case 224:return!0;case 237:return!fm(e.parent)||e.parent.expression!==e;case 234:return!iM(e.parent)&&!NM(e.parent);case 167:for(;167===e.parent.kind;)e=e.parent;return 187===e.parent.kind||Bu(e.parent)||mM(e.parent)||hM(e.parent)||Sh(e);case 312:for(;hM(e.parent);)e=e.parent;return 187===e.parent.kind||Bu(e.parent)||mM(e.parent)||hM(e.parent)||Sh(e);case 81:return MC(e.parent)&&e.parent.left===e&&103===e.parent.operatorToken.kind;case 80:if(187===e.parent.kind||Bu(e.parent)||mM(e.parent)||hM(e.parent)||Sh(e))return!0;case 9:case 10:case 11:case 15:case 110:return Ah(e);default:return!1}}function Ah(e){const{parent:n}=e;switch(n.kind){case 261:case 170:case 173:case 172:case 307:case 304:case 209:return n.initializer===e;case 245:case 246:case 247:case 248:case 254:case 255:case 256:case 297:case 258:return n.expression===e;case 249:const t=n;return t.initializer===e&&262!==t.initializer.kind||t.condition===e||t.incrementor===e;case 250:case 251:const r=n;return r.initializer===e&&262!==r.initializer.kind||r.expression===e;case 217:case 235:case 240:case 168:case 239:return e===n.expression;case 171:case 295:case 294:case 306:return!0;case 234:return n.expression===e&&!Cm(n);case 305:return n.objectAssignmentInitializer===e;default:return Eh(n)}}function xh(e){for(;167===e.kind||80===e.kind;)e=e.parent;return 187===e.kind}function Rh(e){return LN(e)&&!!e.parent.moduleSpecifier}function Ih(e){return 272===e.kind&&284===e.moduleReference.kind}function Dh(e){return dt.assert(Ih(e)),e.moduleReference.expression}function Ch(e){return Bh(e)&&NT(e.initializer).arguments[0]}function Nh(e){return 272===e.kind&&284!==e.moduleReference.kind}function Mh(e){return 308===(null==e?void 0:e.kind)}function Ph(e){return Lh(e)}function Lh(e){return!!e&&!!(524288&e.flags)}function kh(e){return!!e&&!!(134217728&e.flags)}function wh(e){return!om(e)}function Oh(e){return!!e&&!!(16777216&e.flags)}function Fh(e){return VD(e)&&dD(e.typeName)&&"Object"===e.typeName.escapedText&&e.typeArguments&&2===e.typeArguments.length&&(154===e.typeArguments[0].kind||150===e.typeArguments[0].kind)}function Wh(e,n){if(214!==e.kind)return!1;const{expression:t,arguments:r}=e;if(80!==t.kind||"require"!==t.escapedText)return!1;if(1!==r.length)return!1;const o=r[0];return!n||zu(o)}function zh(e){return Vh(e,!1)}function Bh(e){return Vh(e,!0)}function Gh(e){return fC(e)&&Bh(e.parent.parent)}function Vh(e,n){return fN(e)&&!!e.initializer&&Wh(n?NT(e.initializer):e.initializer,!0)}function jh(e){return XC(e)&&e.declarationList.declarations.length>0&&g(e.declarationList.declarations,e=>zh(e))}function Uh(e){return 39===e||34===e}function Hh(e,n){return 34===qp(n,e).charCodeAt(0)}function Kh(e){return MC(e)||IT(e)||dD(e)||yC(e)}function qh(e){return Lh(e)&&e.initializer&&MC(e.initializer)&&(57===e.initializer.operatorToken.kind||61===e.initializer.operatorToken.kind)&&e.name&&db(e.name)&&Zh(e.name,e.initializer.left)?e.initializer.right:e.initializer}function Jh(e){const n=qh(e);return n&&Yh(n,hb(e.name))}function Xh(e){if(e&&e.parent&&MC(e.parent)&&64===e.parent.operatorToken.kind){const n=hb(e.parent.left);return Yh(e.parent.right,n)||function(e,n,t){const r=MC(n)&&(57===n.operatorToken.kind||61===n.operatorToken.kind)&&Yh(n.right,t);if(r&&Zh(e,n.left))return r}(e.parent.left,e.parent.right,n)}if(e&&yC(e)&&i_(e)){const n=function(e,n){return d(e.properties,e=>sM(e)&&dD(e.name)&&"value"===e.name.escapedText&&e.initializer&&Yh(e.initializer,n))}(e.arguments[2],"prototype"===e.arguments[1].text);if(n)return n}}function Yh(e,n){if(yC(e)){const n=cg(e.expression);return 219===n.kind||220===n.kind?e:void 0}return 219===e.kind||232===e.kind||220===e.kind||hC(e)&&(0===e.properties.length||n)?e:void 0}function $h(e){const n=fN(e.parent)?e.parent.name:MC(e.parent)&&64===e.parent.operatorToken.kind?e.parent.left:void 0;return n&&Yh(e.right,hb(n))&&db(n)&&Zh(n,e.left)}function Qh(e){if(MC(e.parent)){const n=57!==e.parent.operatorToken.kind&&61!==e.parent.operatorToken.kind||!MC(e.parent.parent)?e.parent:e.parent.parent;if(64===n.operatorToken.kind&&dD(n.left))return n.left}else if(fN(e.parent))return e.parent.name}function Zh(e,n){return Ug(e)&&Ug(n)?Hg(e)===Hg(n):hc(e)&&a_(n)&&(110===n.expression.kind||dD(n.expression)&&("window"===n.expression.escapedText||"self"===n.expression.escapedText||"global"===n.expression.escapedText))?Zh(e,u_(n)):!(!a_(e)||!a_(n))&&(f_(e)===f_(n)&&Zh(e.expression,n.expression))}function e_(e){for(;sb(e,!0);)e=e.right;return e}function n_(e){return dD(e)&&"exports"===e.escapedText}function t_(e){return dD(e)&&"module"===e.escapedText}function r_(e){return(_C(e)||s_(e))&&t_(e.expression)&&"exports"===f_(e)}function o_(e){const n=function(e){if(yC(e)){if(!i_(e))return 0;const n=e.arguments[0];return n_(n)||r_(n)?8:l_(n)&&"prototype"===f_(n)?9:7}if(64!==e.operatorToken.kind||!IT(e.left)||(n=e_(e),IC(n)&&HI(n.expression)&&"0"===n.expression.text))return 0;var n;if(d_(e.left.expression,!0)&&"prototype"===f_(e.left)&&hC(h_(e)))return 6;return m_(e.left)}(e);return 5===n||Lh(e)?n:0}function i_(e){return 3===c(e.arguments)&&_C(e.expression)&&dD(e.expression.expression)&&"Object"===vl(e.expression.expression)&&"defineProperty"===vl(e.expression.name)&&zg(e.arguments[1])&&d_(e.arguments[0],!0)}function a_(e){return _C(e)||s_(e)}function s_(e){return gC(e)&&zg(e.argumentExpression)}function l_(e,n){return _C(e)&&(!n&&110===e.expression.kind||dD(e.name)&&d_(e.expression,!0))||c_(e,n)}function c_(e,n){return s_(e)&&(!n&&110===e.expression.kind||db(e.expression)||l_(e.expression,!0))}function d_(e,n){return db(e)||l_(e,n)}function u_(e){return _C(e)?e.name:e.argumentExpression}function p_(e){if(_C(e))return e.name;const n=cg(e.argumentExpression);return HI(n)||zu(n)?n:e}function f_(e){const n=p_(e);if(n){if(dD(n))return n.escapedText;if(zu(n)||HI(n))return gl(n.text)}}function m_(e){if(110===e.expression.kind)return 4;if(r_(e))return 2;if(d_(e.expression,!0)){if(hb(e.expression))return 3;let n=e;for(;!dD(n.expression);)n=n.expression;const t=n.expression;if(("exports"===t.escapedText||"module"===t.escapedText&&"exports"===f_(n))&&l_(e))return 1;if(d_(e,!0)||gC(e)&&Vg(e))return 5}return 0}function h_(e){for(;MC(e.right);)e=e.right;return e.right}function __(e){return MC(e)&&3===o_(e)}function g_(e){return Lh(e)&&e.parent&&245===e.parent.kind&&(!gC(e)||s_(e))&&!!oc(e.parent)}function y_(e,n){const{valueDeclaration:t}=e;(!t||(!(33554432&n.flags)||Lh(n)||33554432&t.flags)&&Kh(t)&&!Kh(n)||t.kind!==n.kind&&function(e){return bN(e)||dD(e)}(t))&&(e.valueDeclaration=n)}function v_(e){if(!e||!e.valueDeclaration)return!1;const n=e.valueDeclaration;return 263===n.kind||fN(n)&&n.initializer&&ad(n.initializer)}function b_(e){switch(null==e?void 0:e.kind){case 261:case 209:case 273:case 279:case 272:case 274:case 281:case 275:case 282:case 277:case 206:return!0}return!1}function T_(e){var n,t;switch(e.kind){case 261:case 209:return null==(n=ml(e.initializer,e=>Wh(e,!0)))?void 0:n.arguments[0];case 273:case 279:case 352:return en(e.moduleSpecifier,zu);case 272:return en(null==(t=en(e.moduleReference,UN))?void 0:t.expression,zu);case 274:case 281:return en(e.parent.moduleSpecifier,zu);case 275:case 282:return en(e.parent.parent.moduleSpecifier,zu);case 277:return en(e.parent.parent.parent.moduleSpecifier,zu);case 206:return hm(e)?e.argument.literal:void 0;default:dt.assertNever(e)}}function S_(e){return E_(e)||dt.failBadSyntaxKind(e.parent)}function E_(e){switch(e.parent.kind){case 273:case 279:case 352:return e.parent;case 284:return e.parent.parent;case 214:return fm(e.parent)||Wh(e.parent,!1)?e.parent:void 0;case 202:if(!qI(e))break;return en(e.parent.parent,lC);default:return}}function A_(e,n){return!!n.rewriteRelativeImportExtensions&&Si(e)&&!yk(e)&&zE(e)}function x_(e){switch(e.kind){case 273:case 279:case 352:return e.moduleSpecifier;case 272:return 284===e.moduleReference.kind?e.moduleReference.expression:void 0;case 206:return hm(e)?e.argument.literal:void 0;case 214:return e.arguments[0];case 268:return 11===e.name.kind?e.name:void 0;default:return dt.assertNever(e)}}function R_(e){switch(e.kind){case 273:return e.importClause&&en(e.importClause.namedBindings,PN);case 272:return e;case 279:return e.exportClause&&en(e.exportClause,LN);default:return dt.assertNever(e)}}function I_(e){return!(273!==e.kind&&352!==e.kind||!e.importClause||!e.importClause.name)}function D_(e,n){if(e.name){const t=n(e);if(t)return t}if(e.namedBindings){const t=PN(e.namedBindings)?n(e.namedBindings):d(e.namedBindings.elements,n);if(t)return t}}function C_(e){switch(e.kind){case 170:case 175:case 174:case 305:case 304:case 173:case 172:return void 0!==e.questionToken}return!1}function N_(e){const n=AM(e)?fe(e.parameters):void 0,t=en(n&&n.name,dD);return!!t&&"new"===t.escapedText}function M_(e){return 347===e.kind||339===e.kind||341===e.kind}function P_(e){return M_(e)||yN(e)}function L_(e){return $C(e)&&MC(e.expression)&&0!==o_(e.expression)&&MC(e.expression.right)&&(57===e.expression.right.operatorToken.kind||61===e.expression.right.operatorToken.kind)?e.expression.right.right:void 0}function k_(e){switch(e.kind){case 244:const n=w_(e);return n&&n.initializer;case 173:case 304:return e.initializer}}function w_(e){return XC(e)?fe(e.declarationList.declarations):void 0}function O_(e){return bN(e)&&e.body&&268===e.body.kind?e.body:void 0}function F_(e){if(e.kind>=244&&e.kind<=260)return!0;switch(e.kind){case 80:case 110:case 108:case 167:case 237:case 213:case 212:case 209:case 219:case 220:case 175:case 178:case 179:return!0;default:return!1}}function W_(e){switch(e.kind){case 220:case 227:case 242:case 253:case 180:case 297:case 264:case 232:case 176:case 177:case 186:case 181:case 252:case 260:case 247:case 213:case 243:case 1:case 267:case 307:case 278:case 279:case 282:case 245:case 250:case 251:case 249:case 263:case 219:case 185:case 178:case 80:case 246:case 273:case 272:case 182:case 265:case 318:case 324:case 257:case 175:case 174:case 268:case 203:case 271:case 211:case 170:case 218:case 212:case 304:case 173:case 172:case 254:case 241:case 179:case 305:case 306:case 256:case 258:case 259:case 266:case 169:case 261:case 244:case 248:case 255:return!0;default:return!1}}function z_(e,n){let t;wm(e)&&Lu(e)&&Mu(e.initializer)&&(t=ae(t,B_(e,e.initializer.jsDoc)));let r=e;for(;r&&r.parent;){if(Mu(r)&&(t=ae(t,B_(e,r.jsDoc))),170===r.kind){t=ae(t,(n?kl:Ll)(r));break}if(169===r.kind){t=ae(t,(n?Fl:Ol)(r));break}r=G_(r)}return t||s}function B_(e,n){const t=ye(n);return P(n,n=>{if(n===t){const t=x(n.tags,n=>function(e,n){return!((KM(n)||QM(n))&&n.parent&&IM(n.parent)&&SC(n.parent.parent)&&n.parent.parent!==e)}(e,n));return n.tags===t?[n]:t}return x(n.tags,zM)})}function G_(e){const n=e.parent;return 304===n.kind||278===n.kind||173===n.kind||245===n.kind&&212===e.kind||254===n.kind||O_(n)||sb(e)?n:n.parent&&(w_(n.parent)===e||sb(n))?n.parent:n.parent&&n.parent.parent&&(w_(n.parent.parent)||k_(n.parent.parent)===e||L_(n.parent.parent))?n.parent.parent:void 0}function V_(e){if(e.symbol)return e.symbol;if(!dD(e.name))return;const n=e.name.escapedText,t=H_(e);if(!t)return;const r=y(t.parameters,e=>80===e.name.kind&&e.name.escapedText===n);return r&&r.symbol}function j_(e){if(IM(e.parent)&&e.parent.tags){const n=y(e.parent.tags,M_);if(n)return n}return H_(e)}function U_(e){return dc(e,zM)}function H_(e){const n=K_(e);if(n)return ND(n)&&n.type&&ad(n.type)?n.type:ad(n)?n:void 0}function K_(e){const n=q_(e);if(n)return L_(n)||function(e){return $C(e)&&MC(e.expression)&&64===e.expression.operatorToken.kind?e_(e.expression):void 0}(n)||k_(n)||w_(n)||O_(n)||n}function q_(e){const n=J_(e);if(!n)return;const t=n.parent;return t&&t.jsDoc&&n===ge(t.jsDoc)?t:void 0}function J_(e){return ml(e.parent,IM)}function X_(e){const n=e.name.escapedText,{typeParameters:t}=e.parent.parent.parent;return t&&y(t,e=>e.name.escapedText===n)}function Y_(e){return!!e.typeArguments}var $_=(e=>(e[e.None=0]="None",e[e.Definite=1]="Definite",e[e.Compound=2]="Compound",e))($_||{});function Q_(e){let n=e.parent;for(;;){switch(n.kind){case 227:const t=n;return ob(t.operatorToken.kind)&&t.left===e?t:void 0;case 225:case 226:const r=n,o=r.operator;return 46===o||47===o?r:void 0;case 250:case 251:const i=n;return i.initializer===e?i:void 0;case 218:case 210:case 231:case 236:e=n;break;case 306:e=n.parent;break;case 305:if(n.name!==e)return;e=n.parent;break;case 304:if(n.name===e)return;e=n.parent;break;default:return}n=e.parent}}function Z_(e){const n=Q_(e);if(!n)return 0;switch(n.kind){case 227:const e=n.operatorToken.kind;return 64===e||eb(e)?1:2;case 225:case 226:return 2;case 250:case 251:return 1}}function eg(e){return!!Q_(e)}function ng(e){const n=Q_(e);return!!n&&sb(n,!0)&&function(e){const n=cg(e.right);return 227===n.kind&&rL(n.operatorToken.kind)}(n)}function tg(e){switch(e.kind){case 242:case 244:case 255:case 246:case 256:case 270:case 297:case 298:case 257:case 249:case 250:case 251:case 247:case 248:case 259:case 300:return!0}return!1}function rg(e){return EC(e)||AC(e)||yd(e)||hN(e)||wD(e)}function og(e,n){for(;e&&e.kind===n;)e=e.parent;return e}function ig(e){return og(e,197)}function ag(e){return og(e,218)}function sg(e){let n;for(;e&&197===e.kind;)n=e,e=e.parent;return[n,e]}function lg(e){for(;tC(e);)e=e.type;return e}function cg(e,n){return MP(e,n?-2147483647:1)}function dg(e){return(212===e.kind||213===e.kind)&&((e=ag(e.parent))&&221===e.kind)}function ug(e,n){for(;e;){if(e===n)return!0;e=e.parent}return!1}function pg(e){return!uM(e)&&!xd(e)&&fu(e.parent)&&e.parent.name===e}function fg(e){const n=e.parent;switch(e.kind){case 11:case 15:case 9:if(RD(n))return n.parent;case 80:if(fu(n))return n.name===e?n:void 0;if(xD(n)){const e=n.parent;return jM(e)&&e.name===n?e:void 0}{const t=n.parent;return MC(t)&&0!==o_(t)&&(t.left.symbol||t.symbol)&&Dl(t)===e?t:void 0}case 81:return fu(n)&&n.name===e?n:void 0;default:return}}function mg(e){return zg(e)&&168===e.parent.kind&&fu(e.parent.parent)}function hg(e){const n=e.parent;switch(n.kind){case 173:case 172:case 175:case 174:case 178:case 179:case 307:case 304:case 212:return n.name===e;case 167:return n.right===e;case 209:case 277:return n.propertyName===e;case 282:case 292:case 286:case 287:case 288:return!0}return!1}function _g(e){switch(e.parent.kind){case 274:case 277:case 275:case 282:case 278:case 272:case 281:return e.parent;case 167:do{e=e.parent}while(167===e.parent.kind);return _g(e)}}function gg(e){return db(e)||OC(e)}function yg(e){return gg(vg(e))}function vg(e){return ON(e)?e.expression:e.right}function bg(e){return 305===e.kind?e.name:304===e.kind?e.initializer:e.parent.right}function Tg(e){const n=Sg(e);if(n&&Lh(e)){const n=zl(e);if(n)return n.class}return n}function Sg(e){const n=Rg(e.heritageClauses,96);return n&&n.types.length>0?n.types[0]:void 0}function Eg(e){if(Lh(e))return Bl(e).map(e=>e.class);{const n=Rg(e.heritageClauses,119);return null==n?void 0:n.types}}function Ag(e){return gN(e)?xg(e)||s:md(e)&&K(rt(Tg(e)),Eg(e))||s}function xg(e){const n=Rg(e.heritageClauses,96);return n?n.types:void 0}function Rg(e,n){if(e)for(const t of e)if(t.token===n)return t}function Ig(e,n){for(;e;){if(e.kind===n)return e;e=e.parent}}function Dg(e){return 83<=e&&e<=166}function Cg(e){return 19<=e&&e<=79}function Ng(e){return Dg(e)||Cg(e)}function Mg(e){return 128<=e&&e<=166}function Pg(e){return Dg(e)&&!Mg(e)}function Lg(e){const n=La(e);return void 0!==n&&Pg(n)}function kg(e){const n=bl(e);return!!n&&!Mg(n)}function wg(e){return 2<=e&&e<=7}var Og=(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))(Og||{});function Fg(e){if(!e)return 4;let n=0;switch(e.kind){case 263:case 219:case 175:e.asteriskToken&&(n|=1);case 220:Mv(e,1024)&&(n|=2)}return e.body||(n|=4),n}function Wg(e){switch(e.kind){case 263:case 219:case 220:case 175:return void 0!==e.body&&void 0===e.asteriskToken&&Mv(e,1024)}return!1}function zg(e){return zu(e)||HI(e)}function Bg(e){return CC(e)&&(40===e.operator||41===e.operator)&&HI(e.operand)}function Gg(e){const n=Dl(e);return!!n&&Vg(n)}function Vg(e){if(168!==e.kind&&213!==e.kind)return!1;const n=gC(e)?cg(e.argumentExpression):e.expression;return!zg(n)&&!Bg(n)}function jg(e){switch(e.kind){case 80:case 81:return e.escapedText;case 11:case 15:case 9:case 10:return gl(e.text);case 168:const n=e.expression;return zg(n)?gl(n.text):Bg(n)?41===n.operator?Pa(n.operator)+n.operand.text:n.operand.text:void 0;case 296:return lx(e);default:return dt.assertNever(e)}}function Ug(e){switch(e.kind){case 80:case 11:case 15:case 9:return!0;default:return!1}}function Hg(e){return hc(e)?vl(e):tM(e)?cx(e):e.text}function Kg(e){return hc(e)?e.escapedText:tM(e)?lx(e):gl(e.text)}function qg(e,n){return`__#${dB(e)}@${n}`}function Jg(e){return Xn(e.escapedName,"__@")}function Xg(e){return Xn(e.escapedName,"__#")}function Yg(e,n){switch((e=MP(e)).kind){case 232:if($G(e))return!1;break;case 219:if(e.name)return!1;break;case 220:break;default:return!1}return"function"!=typeof n||n(e)}function $g(e){switch(e.kind){case 304:return!function(e){return dD(e)?"__proto__"===vl(e):qI(e)&&"__proto__"===e.text}(e.name);case 305:return!!e.objectAssignmentInitializer;case 261:return dD(e.name)&&!!e.initializer;case 170:case 209:return dD(e.name)&&!!e.initializer&&!e.dotDotDotToken;case 173:return!!e.initializer;case 227:switch(e.operatorToken.kind){case 64:case 77:case 76:case 78:return dD(e.left)}break;case 278:return!0}return!1}function Qg(e,n){if(!$g(e))return!1;switch(e.kind){case 304:case 261:case 170:case 209:case 173:return Yg(e.initializer,n);case 305:return Yg(e.objectAssignmentInitializer,n);case 227:return Yg(e.right,n);case 278:return Yg(e.expression,n)}}function Zg(e){return"push"===e.escapedText||"unshift"===e.escapedText}function ey(e){return 170===ny(e).kind}function ny(e){for(;209===e.kind;)e=e.parent.parent;return e}function ty(e){const n=e.kind;return 177===n||219===n||263===n||220===n||175===n||178===n||179===n||268===n||308===n}function ry(e){return eA(e.pos)||eA(e.end)}var oy=(e=>(e[e.Left=0]="Left",e[e.Right=1]="Right",e))(oy||{});function iy(e){const n=ly(e),t=215===e.kind&&void 0!==e.arguments;return ay(e.kind,n,t)}function ay(e,n,t){switch(e){case 215:return t?0:1;case 225:case 222:case 223:case 221:case 224:case 228:case 230:return 1;case 227:switch(n){case 43:case 64:case 65:case 66:case 68:case 67:case 69:case 70:case 71:case 72:case 73:case 74:case 79:case 75:case 76:case 77:case 78:return 1}}return 0}function sy(e){const n=ly(e),t=215===e.kind&&void 0!==e.arguments;return dy(e.kind,n,t)}function ly(e){return 227===e.kind?e.operatorToken.kind:225===e.kind||226===e.kind?e.operator:e.kind}var cy=(e=>(e[e.Comma=0]="Comma",e[e.Spread=1]="Spread",e[e.Yield=2]="Yield",e[e.Assignment=3]="Assignment",e[e.Conditional=4]="Conditional",e[e.LogicalOR=5]="LogicalOR",e[e.Coalesce=5]="Coalesce",e[e.LogicalAND=6]="LogicalAND",e[e.BitwiseOR=7]="BitwiseOR",e[e.BitwiseXOR=8]="BitwiseXOR",e[e.BitwiseAND=9]="BitwiseAND",e[e.Equality=10]="Equality",e[e.Relational=11]="Relational",e[e.Shift=12]="Shift",e[e.Additive=13]="Additive",e[e.Multiplicative=14]="Multiplicative",e[e.Exponentiation=15]="Exponentiation",e[e.Unary=16]="Unary",e[e.Update=17]="Update",e[e.LeftHandSide=18]="LeftHandSide",e[e.Member=19]="Member",e[e.Primary=20]="Primary",e[e.Highest=20]="Highest",e[e.Lowest=0]="Lowest",e[e.Invalid=-1]="Invalid",e))(cy||{});function dy(e,n,t){switch(e){case 357:return 0;case 231:return 1;case 230:return 2;case 228:return 4;case 227:switch(n){case 28:return 0;case 64:case 65:case 66:case 68:case 67:case 69:case 70:case 71:case 72:case 73:case 74:case 79:case 75:case 76:case 77:case 78:return 3;default:return uy(n)}case 217:case 236:case 225:case 222:case 223:case 221:case 224:return 16;case 226:return 17;case 214:return 18;case 215:return t?19:18;case 216:case 212:case 213:case 237:return 19;case 235:case 239:return 11;case 110:case 108:case 80:case 81:case 106:case 112:case 97:case 9:case 10:case 11:case 210:case 211:case 219:case 220:case 232:case 14:case 15:case 229:case 218:case 233:case 285:case 286:case 289:return 20;default:return-1}}function uy(e){switch(e){case 61:case 57:return 5;case 56:return 6;case 52:return 7;case 53:return 8;case 51:return 9;case 35:case 36:case 37:case 38:return 10;case 30:case 32:case 33:case 34:case 104:case 103:case 130:case 152:return 11;case 48:case 49:case 50:return 12;case 40:case 41:return 13;case 42:case 44:case 45:return 14;case 43:return 15}return-1}function py(e){return x(e,e=>{switch(e.kind){case 295:return!!e.expression;case 12:return!e.containsOnlyTriviaWhiteSpaces;default:return!0}})}function fy(){let e=[];const n=[],t=new Map;let r=!1;return{add:function(o){let i;o.file?(i=t.get(o.file.fileName),i||(i=[],t.set(o.file.fileName,i),Q(n,o.file.fileName,xn))):(r&&(r=!1,e=e.slice()),i=e);Q(i,o,sS,dS)},lookup:function(n){let r;r=n.file?t.get(n.file.fileName):e;if(!r)return;const o=Ee(r,n,sn,sS);if(o>=0)return r[o];if(~o>0&&dS(n,r[~o-1]))return r[~o-1];return},getGlobalDiagnostics:function(){return r=!0,e},getDiagnostics:function(r){if(r)return t.get(r)||[];const o=L(n,e=>t.get(e));if(!e.length)return o;return o.unshift(...e),o}}}var my=/\$\{/g;function hy(e){return e.replace(my,"\\${")}function _y(e){return!!(2048&(e.templateFlags||0))}function gy(e){return e&&!!(YI(e)?_y(e):_y(e.head)||U(e.templateSpans,e=>_y(e.literal)))}var yy=/[\\"\u0000-\u001f\u2028\u2029\u0085]/g,vy=/[\\'\u0000-\u001f\u2028\u2029\u0085]/g,by=/\r\n|[\\`\u0000-\u0009\u000b-\u001f\u2028\u2029\u0085]/g,Ty=new Map(Object.entries({"\t":"\\t","\v":"\\v","\f":"\\f","\b":"\\b","\r":"\\r","\n":"\\n","\\":"\\\\",'"':'\\"',"'":"\\'","`":"\\`","\u2028":"\\u2028","\u2029":"\\u2029","
":"\\u0085","\r\n":"\\r\\n"}));function Sy(e){return"\\u"+("0000"+e.toString(16).toUpperCase()).slice(-4)}function Ey(e,n,t){if(0===e.charCodeAt(0)){const r=t.charCodeAt(n+e.length);return r>=48&&r<=57?"\\x00":"\\0"}return Ty.get(e)||Sy(e.charCodeAt(0))}function Ay(e,n){const t=96===n?by:39===n?vy:yy;return e.replace(t,Ey)}var xy=/[^\u0000-\u007F]/g;function Ry(e,n){return e=Ay(e,n),xy.test(e)?e.replace(xy,e=>Sy(e.charCodeAt(0))):e}var Iy=/["\u0000-\u001f\u2028\u2029\u0085]/g,Dy=/['\u0000-\u001f\u2028\u2029\u0085]/g,Cy=new Map(Object.entries({'"':""","'":"'"}));function Ny(e){return 0===e.charCodeAt(0)?"�":Cy.get(e)||"&#x"+e.charCodeAt(0).toString(16).toUpperCase()+";"}function My(e,n){const t=39===n?Dy:Iy;return e.replace(t,Ny)}function Py(e){const n=e.length;return n>=2&&e.charCodeAt(0)===e.charCodeAt(n-1)&&(39===(t=e.charCodeAt(0))||34===t||96===t)?e.substring(1,n-1):e;var t}function Ly(e){const n=e.charCodeAt(0);return n>=97&&n<=122||e.includes("-")}var ky=[""," "];function wy(e){const n=ky[1];for(let t=ky.length;t<=e;t++)ky.push(ky[t-1]+n);return ky[e]}function Oy(){return ky[1].length}function Fy(e){var n,t,r,o,i,a=!1;function s(e){const t=Fa(e);t.length>1?(o=o+t.length-1,i=n.length-e.length+ye(t),r=i-n.length===0):r=!1}function l(e){e&&e.length&&(r&&(e=wy(t)+e,r=!1),n+=e,s(e))}function c(e){e&&(a=!1),l(e)}function d(){n="",t=0,r=!0,o=0,i=0,a=!1}return d(),{write:c,rawWrite:function(e){void 0!==e&&(n+=e,s(e),a=!1)},writeLiteral:function(e){e&&e.length&&c(e)},writeLine:function(t){r&&!t||(o++,i=(n+=e).length,r=!0,a=!1)},increaseIndent:()=>{t++},decreaseIndent:()=>{t--},getIndent:()=>t,getTextPos:()=>n.length,getLine:()=>o,getColumn:()=>r?t*Oy():n.length-i,getText:()=>n,isAtStartOfLine:()=>r,hasTrailingComment:()=>a,hasTrailingWhitespace:()=>!!n.length&&Ha(n.charCodeAt(n.length-1)),clear:d,writeKeyword:c,writeOperator:c,writeParameter:c,writeProperty:c,writePunctuation:c,writeSpace:c,writeStringLiteral:c,writeSymbol:(e,n)=>c(e),writeTrailingSemicolon:c,writeComment:function(e){e&&(a=!0),l(e)}}}function Wy(e){let n=!1;function t(){n&&(e.writeTrailingSemicolon(";"),n=!1)}return{...e,writeTrailingSemicolon(){n=!0},writeLiteral(n){t(),e.writeLiteral(n)},writeStringLiteral(n){t(),e.writeStringLiteral(n)},writeSymbol(n,r){t(),e.writeSymbol(n,r)},writePunctuation(n){t(),e.writePunctuation(n)},writeKeyword(n){t(),e.writeKeyword(n)},writeOperator(n){t(),e.writeOperator(n)},writeParameter(n){t(),e.writeParameter(n)},writeSpace(n){t(),e.writeSpace(n)},writeProperty(n){t(),e.writeProperty(n)},writeComment(n){t(),e.writeComment(n)},writeLine(){t(),e.writeLine()},increaseIndent(){t(),e.increaseIndent()},decreaseIndent(){t(),e.decreaseIndent()}}}function zy(e){return!!e.useCaseSensitiveFileNames&&e.useCaseSensitiveFileNames()}function By(e){return Hn(zy(e))}function Gy(e,n,t){return n.moduleName||Uy(e,n.fileName,t&&t.fileName)}function Vy(e,n){return e.getCanonicalFileName(Vi(n,e.getCurrentDirectory()))}function jy(e,n,t){const r=n.getExternalModuleFileFromDeclaration(t);if(!r||r.isDeclarationFile)return;const o=x_(t);return!o||!zu(o)||Si(o.text)||Vy(e,r.path).includes(Vy(e,Ji(e.getCommonSourceDirectory())))?Gy(e,r):void 0}function Uy(e,n,t){const r=n=>e.getCanonicalFileName(n),o=Ki(t?Mi(t):e.getCommonSourceDirectory(),e.getCurrentDirectory(),r),i=qE(ca(o,Vi(n,e.getCurrentDirectory()),o,r,!1));return t?Xi(i):i}function Hy(e,n,t){const r=n.getCompilerOptions();let o;return o=r.outDir?qE(ev(e,n,r.outDir)):qE(e),o+t}function Ky(e,n){return qy(e,n.getCompilerOptions(),n)}function qy(e,n,t){const r=n.declarationDir||n.outDir,o=r?nv(e,r,t.getCurrentDirectory(),t.getCommonSourceDirectory(),e=>t.getCanonicalFileName(e)):e,i=Jy(o);return qE(o)+i}function Jy(e){return Ri(e,[".mjs",".mts"])?".d.mts":Ri(e,[".cjs",".cts"])?".d.cts":Ri(e,[".json"])?".d.json.ts":".d.ts"}function Xy(e){return Ri(e,[".d.mts",".mjs",".mts"])?[".mts",".mjs"]:Ri(e,[".d.cts",".cjs",".cts"])?[".cts",".cjs"]:Ri(e,[".d.json.ts"])?[".json"]:[".tsx",".ts",".jsx",".js"]}function Yy(e,n,t,r){return t?Bi(r(),aa(t,e,n)):e}function $y(e,n){var t;if(e.paths)return e.baseUrl??dt.checkDefined(e.pathsBasePath||(null==(t=n.getCurrentDirectory)?void 0:t.call(n)),"Encountered 'paths' without a 'baseUrl', config file, or host 'getCurrentDirectory'.")}function Qy(e,n,t){const r=e.getCompilerOptions();if(r.outFile){const n=ES(r),o=r.emitDeclarationOnly||2===n||4===n;return x(e.getSourceFiles(),n=>(o||!dk(n))&&Zy(n,e,t))}return x(void 0===n?e.getSourceFiles():[n],n=>Zy(n,e,t))}function Zy(e,n,t){const r=n.getCompilerOptions();if(r.noEmitForJsFiles&&Ph(e))return!1;if(e.isDeclarationFile)return!1;if(n.isSourceFileFromExternalLibrary(e))return!1;if(t)return!0;if(n.isSourceOfProjectReferenceRedirect(e.fileName))return!1;if(!om(e))return!0;if(n.getRedirectFromSourceFile(e.fileName))return!1;if(r.outFile)return!0;if(!r.outDir)return!1;if(r.rootDir||r.composite&&r.configFilePath){const t=Vi(gj(r,()=>[],n.getCurrentDirectory(),n.getCanonicalFileName),n.getCurrentDirectory()),o=nv(e.fileName,r.outDir,n.getCurrentDirectory(),t,n.getCanonicalFileName);if(0===ta(e.fileName,o,n.getCurrentDirectory(),!n.useCaseSensitiveFileNames()))return!1}return!0}function ev(e,n,t){return nv(e,t,n.getCurrentDirectory(),n.getCommonSourceDirectory(),e=>n.getCanonicalFileName(e))}function nv(e,n,t,r,o){let i=Vi(e,t);return i=0===o(i).indexOf(o(r))?i.substring(r.length):i,zi(n,i)}function tv(e,n,t,r,o,i,a){e.writeFile(t,r,o,e=>{n.add(nS(fa.Could_not_write_file_0_Colon_1,t,e))},i,a)}function rv(e,n,t){if(e.length>Ni(e)&&!t(e)){rv(Mi(e),n,t),n(e)}}function ov(e,n,t,r,o,i){try{r(e,n,t)}catch{rv(Mi(ji(e)),o,i),r(e,n,t)}}function iv(e,n){return Va(Ba(e),n)}function av(e,n){return Va(e,n)}function sv(e){return y(e.members,e=>wD(e)&&Mp(e.body))}function lv(e){if(e&&e.parameters.length>0){const n=2===e.parameters.length&&uv(e.parameters[0]);return e.parameters[n?1:0]}}function cv(e){const n=lv(e);return n&&n.type}function dv(e){if(e.parameters.length&&!CM(e)){const n=e.parameters[0];if(uv(n))return n}}function uv(e){return pv(e.name)}function pv(e){return!!e&&80===e.kind&&hv(e)}function fv(e){return!!ml(e,e=>187===e.kind||80!==e.kind&&167!==e.kind&&"quit")}function mv(e){if(!pv(e))return!1;for(;xD(e.parent)&&e.parent.left===e;)e=e.parent;return 187===e.parent.kind}function hv(e){return"this"===e.escapedText}function _v(e,n){let t,r,o,i;return Gg(n)?(t=n,178===n.kind?o=n:179===n.kind?i=n:dt.fail("Accessor has wrong kind")):d(e,e=>{if(hd(e)&&Pv(e)===Pv(n)){jg(e.name)===jg(n.name)&&(t?r||(r=e):t=e,178!==e.kind||o||(o=e),179!==e.kind||i||(i=e))}}),{firstAccessor:t,secondAccessor:r,getAccessor:o,setAccessor:i}}function gv(e){if(!Lh(e)&&hN(e))return;if(yN(e))return;const n=e.type;return n||!Lh(e)?n:Nc(e)?e.typeExpression&&e.typeExpression.type:ic(e)}function yv(e){return e.type}function vv(e){return CM(e)?e.type&&e.type.typeExpression&&e.type.typeExpression.type:e.type||(Lh(e)?ac(e):void 0)}function bv(e){return P(lc(e),e=>function(e){return qM(e)&&!(321===e.parent.kind&&(e.parent.tags.some(M_)||e.parent.tags.some(zM)))}(e)?e.typeParameters:void 0)}function Tv(e){const n=lv(e);return n&&gv(n)}function Sv(e,n,t,r){!function(e,n,t,r){r&&r.length&&t!==r[0].pos&&av(e,t)!==av(e,r[0].pos)&&n.writeLine()}(e,n,t.pos,r)}function Ev(e,n,t,r){t!==r&&av(e,t)!==av(e,r)&&n.writeLine()}function Av(e,n,t,r,o,i,a){let s,l;if(a?0===o.pos&&(s=x(fs(e,o.pos),function(n){return Vp(e,n.pos)})):s=fs(e,o.pos),s){const a=[];let c;for(const e of s){if(c){const t=av(n,c.end);if(av(n,e.pos)>=t+2)break}a.push(e),c=e}if(a.length){const c=av(n,ye(a).end);av(n,es(e,o.pos))>=c+2&&(Sv(n,t,o,s),function(e,n,t,r,o,i,a,s){if(r&&r.length>0){let o=!1;for(const i of r)o&&(t.writeSpace(" "),o=!1),s(e,n,t,i.pos,i.end,a),i.hasTrailingNewLine?t.writeLine():o=!0;o&&i&&t.writeSpace(" ")}}(e,n,t,a,0,!0,i,r),l={nodePos:o.pos,detachedCommentEndPos:ye(a).end})}}return l}function xv(e,n,t,r,o,i){if(42===e.charCodeAt(r+1)){const a=Ga(n,r),s=n.length;let l;for(let c=r,d=a.line;c<o;d++){const u=d+1===s?e.length+1:n[d+1];if(c!==r){void 0===l&&(l=Iv(e,n[a.line],r));const o=t.getIndent()*Oy()-l+Iv(e,c,u);if(o>0){let e=o%Oy();const n=wy((o-e)/Oy());for(t.rawWrite(n);e;)t.rawWrite(" "),e--}else t.rawWrite("")}Rv(e,o,t,i,c,u),c=u}}else t.writeComment(e.substring(r,o))}function Rv(e,n,t,r,o,i){const a=Math.min(n,i-1),s=e.substring(o,a).trim();s?(t.writeComment(s),a!==n&&t.writeLine()):t.rawWrite(r)}function Iv(e,n,t){let r=0;for(;n<t&&Ka(e.charCodeAt(n));n++)9===e.charCodeAt(n)?r+=Oy()-r%Oy():r++;return r}function Dv(e){return 0!==jv(e)}function Cv(e){return 0!==Hv(e)}function Nv(e,n){return!!Bv(e,n)}function Mv(e,n){return!!Gv(e,n)}function Pv(e){return fd(e)&&Lv(e)||kD(e)}function Lv(e){return Mv(e,256)}function kv(e){return Nv(e,16)}function wv(e){return Mv(e,64)}function Ov(e){return Mv(e,128)}function Fv(e){return Mv(e,512)}function Wv(e){return Nv(e,8)}function zv(e){return Mv(e,32768)}function Bv(e,n){return jv(e)&n}function Gv(e,n){return Hv(e)&n}function Vv(e,n,t){return e.kind>=0&&e.kind<=166?0:(536870912&e.modifierFlagsCache||(e.modifierFlagsCache=536870912|Xv(e)),t||n&&Lh(e)?(268435456&e.modifierFlagsCache||!e.parent||(e.modifierFlagsCache|=268435456|Kv(e)),qv(e.modifierFlagsCache)):65535&e.modifierFlagsCache)}function jv(e){return Vv(e,!0)}function Uv(e){return Vv(e,!0,!0)}function Hv(e){return Vv(e,!1)}function Kv(e){let n=0;return e.parent&&!DD(e)&&(Lh(e)&&(jl(e)&&(n|=8388608),Hl(e)&&(n|=16777216),ql(e)&&(n|=33554432),Xl(e)&&(n|=67108864),Yl(e)&&(n|=134217728)),Ql(e)&&(n|=65536)),n}function qv(e){return 131071&e|(260046848&e)>>>23}function Jv(e){return Xv(e)|function(e){return qv(Kv(e))}(e)}function Xv(e){let n=CL(e)?Yv(e.modifiers):0;return(8&e.flags||80===e.kind&&4096&e.flags)&&(n|=32),n}function Yv(e){let n=0;if(e)for(const t of e)n|=$v(t.kind);return n}function $v(e){switch(e){case 126:return 256;case 125:return 1;case 124:return 4;case 123:return 2;case 128:return 64;case 129:return 512;case 95:return 32;case 138:return 128;case 87:return 4096;case 90:return 2048;case 134:return 1024;case 148:return 8;case 164:return 16;case 103:return 8192;case 147:return 16384;case 171:return 32768}return 0}function Qv(e){return 57===e||56===e}function Zv(e){return Qv(e)||54===e}function eb(e){return 76===e||77===e||78===e}function nb(e){return MC(e)&&eb(e.operatorToken.kind)}function tb(e){return Qv(e)||61===e}function rb(e){return MC(e)&&tb(e.operatorToken.kind)}function ob(e){return e>=64&&e<=79}function ib(e){const n=ab(e);return n&&!n.isImplements?n.class:void 0}function ab(e){if(WC(e)){if(iM(e.parent)&&md(e.parent.parent))return{class:e.parent.parent,isImplements:119===e.parent.token};if(NM(e.parent)){const n=K_(e.parent);if(n&&md(n))return{class:n,isImplements:!1}}}}function sb(e,n){return MC(e)&&(n?64===e.operatorToken.kind:ob(e.operatorToken.kind))&&Gd(e.left)}function lb(e){if(sb(e,!0)){const n=e.left.kind;return 211===n||210===n}return!1}function cb(e){return void 0!==ib(e)}function db(e){return 80===e.kind||fb(e)}function ub(e){switch(e.kind){case 80:return e;case 167:do{e=e.left}while(80!==e.kind);return e;case 212:do{e=e.expression}while(80!==e.kind);return e}}function pb(e){return 80===e.kind||110===e.kind||108===e.kind||237===e.kind||212===e.kind&&pb(e.expression)||218===e.kind&&pb(e.expression)}function fb(e){return _C(e)&&dD(e.name)&&db(e.expression)}function mb(e){if(_C(e)){const n=mb(e.expression);if(void 0!==n)return n+"."+Gf(e.name)}else if(gC(e)){const n=mb(e.expression);if(void 0!==n&&od(e.argumentExpression))return n+"."+jg(e.argumentExpression)}else{if(dD(e))return yl(e.escapedText);if(tM(e))return cx(e)}}function hb(e){return l_(e)&&"prototype"===f_(e)}function _b(e){return 167===e.parent.kind&&e.parent.right===e||212===e.parent.kind&&e.parent.name===e||237===e.parent.kind&&e.parent.name===e}function gb(e){return!!e.parent&&(_C(e.parent)&&e.parent.name===e||gC(e.parent)&&e.parent.argumentExpression===e)}function yb(e){return xD(e.parent)&&e.parent.right===e||_C(e.parent)&&e.parent.name===e||hM(e.parent)&&e.parent.right===e}function vb(e){return MC(e)&&104===e.operatorToken.kind}function bb(e){return vb(e.parent)&&e===e.parent.right}function Tb(e){return 211===e.kind&&0===e.properties.length}function Sb(e){return 210===e.kind&&0===e.elements.length}function Eb(e){if(function(e){return e&&c(e.declarations)>0&&Mv(e.declarations[0],2048)}(e)&&e.declarations)for(const n of e.declarations)if(n.localSymbol)return n.localSymbol}function Ab(e){return y(CE,n=>xi(e,n))}var xb="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=";function Rb(e){let n="";const t=function(e){const n=[],t=e.length;for(let r=0;r<t;r++){const t=e.charCodeAt(r);t<128?n.push(t):t<2048?(n.push(t>>6|192),n.push(63&t|128)):t<65536?(n.push(t>>12|224),n.push(t>>6&63|128),n.push(63&t|128)):t<131072?(n.push(t>>18|240),n.push(t>>12&63|128),n.push(t>>6&63|128),n.push(63&t|128)):dt.assert(!1,"Unexpected code point")}return n}(e);let r=0;const o=t.length;let i,a,s,l;for(;r<o;)i=t[r]>>2,a=(3&t[r])<<4|t[r+1]>>4,s=(15&t[r+1])<<2|t[r+2]>>6,l=63&t[r+2],r+1>=o?s=l=64:r+2>=o&&(l=64),n+=xb.charAt(i)+xb.charAt(a)+xb.charAt(s)+xb.charAt(l),r+=3;return n}function Ib(e,n){return e&&e.base64encode?e.base64encode(n):Rb(n)}function Db(e,n){if(e&&e.base64decode)return e.base64decode(n);const t=n.length,r=[];let o=0;for(;o<t&&n.charCodeAt(o)!==xb.charCodeAt(64);){const e=xb.indexOf(n[o]),t=xb.indexOf(n[o+1]),i=xb.indexOf(n[o+2]),a=xb.indexOf(n[o+3]),s=(63&e)<<2|t>>4&3,l=(15&t)<<4|i>>2&15,c=(3&i)<<6|63&a;0===l&&0!==i?r.push(s):0===c&&0!==a?r.push(s,l):r.push(s,l,c),o+=4}return function(e){let n="",t=0;const r=e.length;for(;t<r;){const r=e[t];if(r<128)n+=String.fromCharCode(r),t++;else if(192&~r)n+=String.fromCharCode(r),t++;else{let o=63&r;t++;let i=e[t];for(;128==(192&i);)o=o<<6|63&i,t++,i=e[t];n+=String.fromCharCode(o)}}return n}(r)}function Cb(e,n){const t=Qe(n)?n:n.readFile(e);if(!t)return;let r=Mb(t);if(void 0===r){const n=xw(e,t);n.error||(r=n.config)}return r}function Nb(e,n){return Cb(e,n)||{}}function Mb(e){try{return JSON.parse(e)}catch{return}}function Pb(e,n){return!n.directoryExists||n.directoryExists(e)}var Lb="\r\n",kb="\n";function wb(e){switch(e.newLine){case 0:return Lb;case 1:case void 0:return kb}}function Ob(e,n=e){return dt.assert(n>=e||-1===n),{pos:e,end:n}}function Fb(e,n){return Ob(e.pos,n)}function Wb(e,n){return Ob(n,e.end)}function zb(e){const n=CL(e)?v(e.modifiers,CD):void 0;return n&&!eA(n.end)?Wb(e,n.end):e}function Bb(e){if(MD(e)||LD(e))return Wb(e,e.name.pos);const n=CL(e)?ge(e.modifiers):void 0;return n&&!eA(n.end)?Wb(e,n.end):zb(e)}function Gb(e,n){return Ob(e,e+Pa(n).length)}function Vb(e,n){return Hb(e,e,n)}function jb(e,n,t){return Yb($b(e,t,!1),$b(n,t,!1),t)}function Ub(e,n,t){return Yb(e.end,n.end,t)}function Hb(e,n,t){return Yb($b(e,t,!1),n.end,t)}function Kb(e,n,t){return Yb(e.end,$b(n,t,!1),t)}function qb(e,n,t,r){const o=$b(n,t,r);return ja(t,e.end,o)}function Jb(e,n,t){return ja(t,e.end,n.end)}function Xb(e,n){return!Yb(e.pos,e.end,n)}function Yb(e,n,t){return 0===ja(t,e,n)}function $b(e,n,t){return eA(e.pos)?-1:es(n.text,e.pos,!1,t)}function Qb(e,n,t,r){const o=es(t.text,e,!1,r),i=function(e,n=0,t){for(;e-- >n;)if(!Ha(t.text.charCodeAt(e)))return e}(o,n,t);return ja(t,i??n,o)}function Zb(e,n,t,r){const o=es(t.text,e,!1,r);return ja(t,e,Math.min(n,o))}function eT(e,n){return nT(e.pos,e.end,n)}function nT(e,n,t){return e<=t.pos&&n>=t.end}function tT(e){const n=_l(e);if(n)switch(n.parent.kind){case 267:case 268:return n===n.parent.name}return!1}function rT(e){return x(e.declarations,oT)}function oT(e){return fN(e)&&void 0!==e.initializer}function iT(e){return e.watch&&Ie(e,"watch")}function aT(e){e.close()}function sT(e){return 33554432&e.flags?e.links.checkFlags:0}function lT(e,n=!1){if(e.valueDeclaration){const t=sl(n&&e.declarations&&y(e.declarations,FD)||32768&e.flags&&y(e.declarations,OD)||e.valueDeclaration);return e.parent&&32&e.parent.flags?t:-8&t}if(6&sT(e)){const n=e.links.checkFlags;return(1024&n?2:256&n?1:4)|(2048&n?256:0)}return 4194304&e.flags?257:0}function cT(e,n){return 2097152&e.flags?n.getAliasedSymbol(e):e}function dT(e){return e.exportSymbol?e.exportSymbol.flags|e.flags:e.flags}function uT(e){return 1===fT(e)}function pT(e){return 0!==fT(e)}function fT(e){const{parent:n}=e;switch(null==n?void 0:n.kind){case 218:case 210:return fT(n);case 226:case 225:const{operator:t}=n;return 46===t||47===t?2:0;case 227:const{left:r,operatorToken:o}=n;return r===e&&ob(o.kind)?64===o.kind?1:2:0;case 212:return n.name!==e?0:fT(n);case 304:{const t=fT(n.parent);return e===n.name?function(e){switch(e){case 0:return 1;case 1:return 0;case 2:return 2;default:return dt.assertNever(e)}}(t):t}case 305:return e===n.objectAssignmentInitializer?0:fT(n.parent);case 250:case 251:return e===n.initializer?1:0;default:return 0}}function mT(e,n){if(!e||!n||Object.keys(e).length!==Object.keys(n).length)return!1;for(const t in e)if("object"==typeof e[t]){if(!mT(e[t],n[t]))return!1}else if("function"!=typeof e[t]&&e[t]!==n[t])return!1;return!0}function hT(e,n){e.forEach(n),e.clear()}function _T(e,n,t){const{onDeleteValue:r,onExistingValue:o}=t;e.forEach((t,i)=>{var a;(null==n?void 0:n.has(i))?o&&o(t,null==(a=n.get)?void 0:a.call(n,i),i):(e.delete(i),r(t,i))})}function gT(e,n,t){_T(e,n,t);const{createNewValue:r}=t;null==n||n.forEach((n,t)=>{e.has(t)||e.set(t,r(t,n))})}function yT(e){if(32&e.flags){const n=vT(e);return!!n&&Mv(n,64)}return!1}function vT(e){var n;return null==(n=e.declarations)?void 0:n.find(md)}function bT(e){return 3899393&e.flags?e.objectFlags:0}function TT(e){return!!e&&!!e.declarations&&!!e.declarations[0]&&EN(e.declarations[0])}function ST({moduleSpecifier:e}){return qI(e)?e.text:Zp(e)}function ET(e){let n;return rk(e,e=>{Mp(e)&&(n=e)},e=>{for(let t=e.length-1;t>=0;t--)if(Mp(e[t])){n=e[t];break}}),n}function AT(e,n){return!e.has(n)&&(e.add(n),!0)}function xT(e){return md(e)||gN(e)||KD(e)}function RT(e){return e>=183&&e<=206||133===e||159===e||150===e||163===e||151===e||136===e||154===e||155===e||116===e||157===e||146===e||141===e||234===e||313===e||314===e||315===e||316===e||317===e||318===e||319===e}function IT(e){return 212===e.kind||213===e.kind}function DT(e){return 212===e.kind?e.name:(dt.assert(213===e.kind),e.argumentExpression)}function CT(e){return 276===e.kind||280===e.kind}function NT(e){for(;IT(e);)e=e.expression;return e}function MT(e,n){if(IT(e.parent)&&gb(e))return function e(t){if(212===t.kind){const e=n(t.name);if(void 0!==e)return e}else if(213===t.kind){if(!dD(t.argumentExpression)&&!zu(t.argumentExpression))return;{const e=n(t.argumentExpression);if(void 0!==e)return e}}if(IT(t.expression))return e(t.expression);if(dD(t.expression))return n(t.expression);return}(e.parent)}function PT(e,n){for(;;){switch(e.kind){case 226:e=e.operand;continue;case 227:e=e.left;continue;case 228:e=e.condition;continue;case 216:e=e.tag;continue;case 214:if(n)return e;case 235:case 213:case 212:case 236:case 356:case 239:e=e.expression;continue}return e}}function LT(e,n){this.flags=e,this.escapedName=n,this.declarations=void 0,this.valueDeclaration=void 0,this.id=0,this.mergeId=0,this.parent=void 0,this.members=void 0,this.exports=void 0,this.exportSymbol=void 0,this.constEnumOnlyModule=void 0,this.isReferenced=void 0,this.lastAssignmentPos=void 0,this.links=void 0}function kT(e,n){this.flags=n,(dt.isDebugging||Kt)&&(this.checker=e)}function wT(e,n){this.flags=n,dt.isDebugging&&(this.checker=e)}function OT(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,this.emitNode=void 0}function FT(e,n,t){this.pos=n,this.end=t,this.kind=e,this.id=0,this.flags=0,this.transformFlags=0,this.parent=void 0,this.emitNode=void 0}function WT(e,n,t){this.pos=n,this.end=t,this.kind=e,this.id=0,this.flags=0,this.transformFlags=0,this.parent=void 0,this.original=void 0,this.emitNode=void 0}function zT(e,n,t){this.fileName=e,this.text=n,this.skipTrivia=t||(e=>e)}var BT,GT={getNodeConstructor:()=>OT,getTokenConstructor:()=>FT,getIdentifierConstructor:()=>WT,getPrivateIdentifierConstructor:()=>OT,getSourceFileConstructor:()=>OT,getSymbolConstructor:()=>LT,getTypeConstructor:()=>kT,getSignatureConstructor:()=>wT,getSourceMapSourceConstructor:()=>zT},VT=[];function jT(e){VT.push(e),e(GT)}function UT(e){Object.assign(GT,e),d(VT,e=>e(GT))}function HT(e,n){return e.replace(/\{(\d+)\}/g,(e,t)=>""+dt.checkDefined(n[+t]))}function KT(e){BT=e}function qT(e){!BT&&e&&(BT=e())}function JT(e){return BT&&BT[e.key]||e.message}function XT(e,n,t,r,o,...i){t+r>n.length&&(r=n.length-t),qf(n,t,r);let a=JT(o);return U(i)&&(a=HT(a,i)),{file:void 0,start:t,length:r,messageText:a,category:o.category,code:o.code,reportsUnnecessary:o.reportsUnnecessary,fileName:e}}function YT(e){return void 0===e.file&&void 0!==e.start&&void 0!==e.length&&"string"==typeof e.fileName}function $T(e,n){const t=n.fileName||"",r=n.text.length;dt.assertEqual(e.fileName,t),dt.assertLessThanOrEqual(e.start,r),dt.assertLessThanOrEqual(e.start+e.length,r);const o={file:n,start:e.start,length:e.length,messageText:e.messageText,category:e.category,code:e.code,reportsUnnecessary:e.reportsUnnecessary};if(e.relatedInformation){o.relatedInformation=[];for(const i of e.relatedInformation)YT(i)&&i.fileName===t?(dt.assertLessThanOrEqual(i.start,r),dt.assertLessThanOrEqual(i.start+i.length,r),o.relatedInformation.push($T(i,n))):o.relatedInformation.push(i)}return o}function QT(e,n){const t=[];for(const r of e)t.push($T(r,n));return t}function ZT(e,n,t,r,...o){qf(e.text,n,t);let i=JT(r);return U(o)&&(i=HT(i,o)),{file:e,start:n,length:t,messageText:i,category:r.category,code:r.code,reportsUnnecessary:r.reportsUnnecessary,reportsDeprecated:r.reportsDeprecated}}function eS(e,...n){let t=JT(e);return U(n)&&(t=HT(t,n)),t}function nS(e,...n){let t=JT(e);return U(n)&&(t=HT(t,n)),{file:void 0,start:void 0,length:void 0,messageText:t,category:e.category,code:e.code,reportsUnnecessary:e.reportsUnnecessary,reportsDeprecated:e.reportsDeprecated}}function tS(e,n){return{file:void 0,start:void 0,length:void 0,code:e.code,category:e.category,messageText:e.next?e:e.messageText,relatedInformation:n}}function rS(e,n,...t){let r=JT(n);return U(t)&&(r=HT(r,t)),{messageText:r,category:n.category,code:n.code,next:void 0===e||Array.isArray(e)?e:[e]}}function oS(e,n){let t=e;for(;t.next;)t=t.next[0];t.next=[n]}function iS(e){return e.file?e.file.path:void 0}function aS(e,n){return sS(e,n)||function(e,n){if(!e.relatedInformation&&!n.relatedInformation)return 0;if(e.relatedInformation&&n.relatedInformation)return vn(n.relatedInformation.length,e.relatedInformation.length)||d(e.relatedInformation,(e,t)=>aS(e,n.relatedInformation[t]))||0;return e.relatedInformation?-1:1}(e,n)||0}function sS(e,n){const t=uS(e),r=uS(n);return xn(iS(e),iS(n))||vn(e.start,n.start)||vn(e.length,n.length)||vn(t,r)||function(e,n){let t=pS(e),r=pS(n);"string"!=typeof t&&(t=t.messageText);"string"!=typeof r&&(r=r.messageText);const o="string"!=typeof e.messageText?e.messageText.next:void 0,i="string"!=typeof n.messageText?n.messageText.next:void 0;let a=xn(t,r);if(a)return a;if(a=function(e,n){if(void 0===e&&void 0===n)return 0;if(void 0===e)return 1;if(void 0===n)return-1;return lS(e,n)||cS(e,n)}(o,i),a)return a;if(e.canonicalHead&&!n.canonicalHead)return-1;if(n.canonicalHead&&!e.canonicalHead)return 1;return 0}(e,n)||0}function lS(e,n){if(void 0===e&&void 0===n)return 0;if(void 0===e)return 1;if(void 0===n)return-1;let t=vn(n.length,e.length);if(t)return t;for(let r=0;r<n.length;r++)if(t=lS(e[r].next,n[r].next),t)return t;return 0}function cS(e,n){let t;for(let r=0;r<n.length;r++){if(t=xn(e[r].messageText,n[r].messageText),t)return t;if(void 0!==e[r].next&&(t=cS(e[r].next,n[r].next),t))return t}return 0}function dS(e,n){const t=uS(e),r=uS(n),o=pS(e),i=pS(n);return 0===xn(iS(e),iS(n))&&0===vn(e.start,n.start)&&0===vn(e.length,n.length)&&0===vn(t,r)&&function(e,n){const t="string"==typeof e?e:e.messageText,r="string"==typeof n?n:n.messageText;return 0===xn(t,r)}(o,i)}function uS(e){var n;return(null==(n=e.canonicalHead)?void 0:n.code)||e.code}function pS(e){var n;return(null==(n=e.canonicalHead)?void 0:n.messageText)||e.messageText}function fS(e){return 4===e||2===e||1===e||6===e?1:0}function mS(e){if(2&e.transformFlags)return Eu(e)||XN(e)?e:rk(e,mS)}function hS(e){return e.isDeclarationFile?void 0:mS(e)}function _S(e,n){return!(99!==qU(e,n)&&!Ri(e.fileName,[".cjs",".cts",".mjs",".mts"])||e.isDeclarationFile)||void 0}function gS(e){switch(xS(e)){case 3:return e=>{e.externalModuleIndicator=OL(e)||!e.isDeclarationFile||void 0};case 1:return e=>{e.externalModuleIndicator=OL(e)};case 2:const n=[OL];4!==e.jsx&&5!==e.jsx||n.push(hS),n.push(_S);const t=et(...n);return n=>{n.externalModuleIndicator=t(n,e)}}}function yS(e){const n=AS(e);return 3<=n&&n<=99||CS(e)||NS(e)}var vS={allowImportingTsExtensions:{dependencies:["rewriteRelativeImportExtensions"],computeValue:e=>!(!e.allowImportingTsExtensions&&!e.rewriteRelativeImportExtensions)},target:{dependencies:["module"],computeValue:e=>(0===e.target?void 0:e.target)??((100===e.module||101===e.module?9:102===e.module&&10)||199===e.module&&99||1)},module:{dependencies:["target"],computeValue:e=>"number"==typeof e.module?e.module:vS.target.computeValue(e)>=2?5:1},moduleResolution:{dependencies:["module","target"],computeValue:e=>{let n=e.moduleResolution;if(void 0===n)switch(vS.module.computeValue(e)){case 1:n=2;break;case 100:case 101:case 102:n=3;break;case 199:n=99;break;case 200:n=100;break;default:n=1}return n}},moduleDetection:{dependencies:["module","target"],computeValue:e=>{if(void 0!==e.moduleDetection)return e.moduleDetection;const n=vS.module.computeValue(e);return 100<=n&&n<=199?3:2}},isolatedModules:{dependencies:["verbatimModuleSyntax"],computeValue:e=>!(!e.isolatedModules&&!e.verbatimModuleSyntax)},esModuleInterop:{dependencies:["module","target"],computeValue:e=>{if(void 0!==e.esModuleInterop)return e.esModuleInterop;switch(vS.module.computeValue(e)){case 100:case 101:case 102:case 199:case 200:return!0}return!1}},allowSyntheticDefaultImports:{dependencies:["module","target","moduleResolution"],computeValue:e=>void 0!==e.allowSyntheticDefaultImports?e.allowSyntheticDefaultImports:vS.esModuleInterop.computeValue(e)||4===vS.module.computeValue(e)||100===vS.moduleResolution.computeValue(e)},resolvePackageJsonExports:{dependencies:["moduleResolution"],computeValue:e=>{const n=vS.moduleResolution.computeValue(e);if(!VS(n))return!1;if(void 0!==e.resolvePackageJsonExports)return e.resolvePackageJsonExports;switch(n){case 3:case 99:case 100:return!0}return!1}},resolvePackageJsonImports:{dependencies:["moduleResolution","resolvePackageJsonExports"],computeValue:e=>{const n=vS.moduleResolution.computeValue(e);if(!VS(n))return!1;if(void 0!==e.resolvePackageJsonImports)return e.resolvePackageJsonImports;switch(n){case 3:case 99:case 100:return!0}return!1}},resolveJsonModule:{dependencies:["moduleResolution","module","target"],computeValue:e=>{if(void 0!==e.resolveJsonModule)return e.resolveJsonModule;switch(vS.module.computeValue(e)){case 102:case 199:return!0}return 100===vS.moduleResolution.computeValue(e)}},declaration:{dependencies:["composite"],computeValue:e=>!(!e.declaration&&!e.composite)},preserveConstEnums:{dependencies:["isolatedModules","verbatimModuleSyntax"],computeValue:e=>!(!e.preserveConstEnums&&!vS.isolatedModules.computeValue(e))},incremental:{dependencies:["composite"],computeValue:e=>!(!e.incremental&&!e.composite)},declarationMap:{dependencies:["declaration","composite"],computeValue:e=>!(!e.declarationMap||!vS.declaration.computeValue(e))},allowJs:{dependencies:["checkJs"],computeValue:e=>void 0===e.allowJs?!!e.checkJs:e.allowJs},useDefineForClassFields:{dependencies:["target","module"],computeValue:e=>void 0===e.useDefineForClassFields?vS.target.computeValue(e)>=9:e.useDefineForClassFields},noImplicitAny:{dependencies:["strict"],computeValue:e=>US(e,"noImplicitAny")},noImplicitThis:{dependencies:["strict"],computeValue:e=>US(e,"noImplicitThis")},strictNullChecks:{dependencies:["strict"],computeValue:e=>US(e,"strictNullChecks")},strictFunctionTypes:{dependencies:["strict"],computeValue:e=>US(e,"strictFunctionTypes")},strictBindCallApply:{dependencies:["strict"],computeValue:e=>US(e,"strictBindCallApply")},strictPropertyInitialization:{dependencies:["strict"],computeValue:e=>US(e,"strictPropertyInitialization")},strictBuiltinIteratorReturn:{dependencies:["strict"],computeValue:e=>US(e,"strictBuiltinIteratorReturn")},alwaysStrict:{dependencies:["strict"],computeValue:e=>US(e,"alwaysStrict")},useUnknownInCatchVariables:{dependencies:["strict"],computeValue:e=>US(e,"useUnknownInCatchVariables")}},bS=vS,TS=vS.allowImportingTsExtensions.computeValue,SS=vS.target.computeValue,ES=vS.module.computeValue,AS=vS.moduleResolution.computeValue,xS=vS.moduleDetection.computeValue,RS=vS.isolatedModules.computeValue,IS=vS.esModuleInterop.computeValue,DS=vS.allowSyntheticDefaultImports.computeValue,CS=vS.resolvePackageJsonExports.computeValue,NS=vS.resolvePackageJsonImports.computeValue,MS=vS.resolveJsonModule.computeValue,PS=vS.declaration.computeValue,LS=vS.preserveConstEnums.computeValue,kS=vS.incremental.computeValue,wS=vS.declarationMap.computeValue,OS=vS.allowJs.computeValue,FS=vS.useDefineForClassFields.computeValue;function WS(e){return e>=5&&e<=99}function zS(e){switch(ES(e)){case 0:case 4:case 3:return!1}return!0}function BS(e){return!1===e.allowUnreachableCode}function GS(e){return!1===e.allowUnusedLabels}function VS(e){return e>=3&&e<=99||100===e}function jS(e){return 101<=e&&e<=199||200===e||99===e}function US(e,n){return void 0===e[n]?!!e.strict:!!e[n]}function HS(e){return ap(Fk.type,(n,t)=>n===e?t:void 0)}function KS(e){return!1!==e.useDefineForClassFields&&SS(e)>=9}function qS(e,n){return op(n,e,Gk)}function JS(e,n){return op(n,e,Vk)}function XS(e,n){return op(n,e,jk)}function YS(e,n){return n.strictFlag?US(e,n.name):n.allowJsFlag?OS(e):e[n.name]}function $S(e){const n=e.jsx;return 2===n||4===n||5===n}function QS(e,n){const t=null==n?void 0:n.pragmas.get("jsximportsource"),r=Ye(t)?t[t.length-1]:t,o=null==n?void 0:n.pragmas.get("jsxruntime"),i=Ye(o)?o[o.length-1]:o;if("classic"!==(null==i?void 0:i.arguments.factory))return 4===e.jsx||5===e.jsx||e.jsxImportSource||r||"automatic"===(null==i?void 0:i.arguments.factory)?(null==r?void 0:r.arguments.factory)||e.jsxImportSource||"react":void 0}function ZS(e,n){return e?`${e}/${5===n.jsx?"jsx-dev-runtime":"jsx-runtime"}`:void 0}function eE(e){let n=!1;for(let t=0;t<e.length;t++)if(42===e.charCodeAt(t)){if(n)return!1;n=!0}return!0}function nE(e,n){let t,r,o,i=!1;return{getSymlinkedFiles:()=>o,getSymlinkedDirectories:()=>t,getSymlinkedDirectoriesByRealpath:()=>r,setSymlinkedFile:(e,n)=>(o||(o=new Map)).set(e,n),setSymlinkedDirectory:(o,i)=>{let a=Ki(o,e,n);FA(a)||(a=Ji(a),!1===i||(null==t?void 0:t.has(a))||(r||(r=He())).add(i.realPath,o),(t||(t=new Map)).set(a,i))},setSymlinksFromResolutions(e,n,t){dt.assert(!i),i=!0,e(e=>a(this,e.resolvedModule)),n(e=>a(this,e.resolvedTypeReferenceDirective)),t.forEach(e=>a(this,e.resolvedTypeReferenceDirective))},hasProcessedResolutions:()=>i,setSymlinksFromResolution(e){a(this,e)},hasAnySymlinks:function(){return!!(null==o?void 0:o.size)||!!t&&!!ap(t,e=>!!e)}};function a(t,r){if(!r||!r.originalPath||!r.resolvedFileName)return;const{resolvedFileName:o,originalPath:i}=r;t.setSymlinkedFile(Ki(i,e,n),o);const[a,l]=function(e,n,t,r){const o=wi(Vi(e,t)),i=wi(Vi(n,t));let a=!1;for(;o.length>=2&&i.length>=2&&!tE(o[o.length-2],r)&&!tE(i[i.length-2],r)&&r(o[o.length-1])===r(i[i.length-1]);)o.pop(),i.pop(),a=!0;return a?[Oi(o),Oi(i)]:void 0}(o,i,e,n)||s;a&&l&&t.setSymlinkedDirectory(l,{real:Ji(a),realPath:Ji(Ki(a,e,n))})}}function tE(e,n){return void 0!==e&&("node_modules"===n(e)||Xn(e,"@"))}function rE(e,n,t){const r=$n(e,n,t);return void 0===r?void 0:_i((o=r).charCodeAt(0))?o.slice(1):void 0;var o}var oE=/[^\w\s/]/g;function iE(e){return e.replace(oE,aE)}function aE(e){return"\\"+e}var sE=[42,63],lE=`(?!(?:${["node_modules","bower_components","jspm_packages"].join("|")})(?:/|$))`,cE={singleAsteriskRegexFragment:"(?:[^./]|(?:\\.(?!min\\.js$))?)*",doubleAsteriskRegexFragment:`(?:/${lE}[^/.][^/]*)*?`,replaceWildcardCharacter:e=>yE(e,cE.singleAsteriskRegexFragment)},dE={singleAsteriskRegexFragment:"[^/]*",doubleAsteriskRegexFragment:`(?:/${lE}[^/.][^/]*)*?`,replaceWildcardCharacter:e=>yE(e,dE.singleAsteriskRegexFragment)},uE={singleAsteriskRegexFragment:"[^/]*",doubleAsteriskRegexFragment:"(?:/.+?)?",replaceWildcardCharacter:e=>yE(e,uE.singleAsteriskRegexFragment)},pE={files:cE,directories:dE,exclude:uE};function fE(e,n,t){const r=mE(e,n,t);if(!r||!r.length)return;return`^(?:${r.map(e=>`(?:${e})`).join("|")})${"exclude"===t?"(?:$|/)":"$"}`}function mE(e,n,t){if(void 0!==e&&0!==e.length)return P(e,e=>e&&gE(e,n,t,pE[t]))}function hE(e){return!/[.*?]/.test(e)}function _E(e,n,t){const r=e&&gE(e,n,t,pE[t]);return r&&`^(?:${r})${"exclude"===t?"(?:$|/)":"$"}`}function gE(e,n,t,{singleAsteriskRegexFragment:r,doubleAsteriskRegexFragment:o,replaceWildcardCharacter:i}=pE[t]){let a="",s=!1;const l=Gi(e,n),c=ye(l);if("exclude"!==t&&"**"===c)return;l[0]=qi(l[0]),hE(c)&&l.push("**","*");let d=0;for(let u of l){if("**"===u)a+=o;else if("directories"===t&&(a+="(?:",d++),s&&(a+=pi),"exclude"!==t){let e="";42===u.charCodeAt(0)?(e+="(?:[^./]"+r+")?",u=u.substr(1)):63===u.charCodeAt(0)&&(e+="[^./]",u=u.substr(1)),e+=u.replace(oE,i),e!==u&&(a+=lE),a+=e}else a+=u.replace(oE,i);s=!0}for(;d>0;)a+=")?",d--;return a}function yE(e,n){return"*"===e?n:"?"===e?"[^/]":"\\"+e}function vE(e,n,t,r,o){e=ji(e);const i=zi(o=ji(o),e);return{includeFilePatterns:D(mE(t,i,"files"),e=>`^${e}$`),includeFilePattern:fE(t,i,"files"),includeDirectoryPattern:fE(t,i,"directories"),excludePattern:fE(n,i,"exclude"),basePaths:SE(e,t,r)}}function bE(e,n){return new RegExp(e,n?"":"i")}function TE(e,n,t,r,o,i,a,s,l){e=ji(e),i=ji(i);const c=vE(e,t,r,o,i),d=c.includeFilePatterns&&c.includeFilePatterns.map(e=>bE(e,o)),u=c.includeDirectoryPattern&&bE(c.includeDirectoryPattern,o),p=c.excludePattern&&bE(c.excludePattern,o),f=d?d.map(()=>[]):[[]],m=new Map,h=Hn(o);for(const g of c.basePaths)_(g,zi(i,g),a);return M(f);function _(e,t,r){const o=h(l(t));if(m.has(o))return;m.set(o,!0);const{files:i,directories:a}=s(e);for(const s of ce(i,xn)){const r=zi(e,s),o=zi(t,s);if((!n||Ri(r,n))&&(!p||!p.test(o)))if(d){const e=b(d,e=>e.test(o));-1!==e&&f[e].push(r)}else f[0].push(r)}if(void 0===r||0!==--r)for(const n of ce(a,xn)){const o=zi(e,n),i=zi(t,n);u&&!u.test(i)||p&&p.test(i)||_(o,i,r)}}}function SE(e,n,t){const r=[e];if(n){const o=[];for(const t of n){const n=yi(t)?t:ji(zi(e,t));o.push(EE(n))}o.sort(Rn(!t));for(const n of o)g(r,r=>!ra(r,n,e,!t))&&r.push(n)}return r}function EE(e){const n=E(e,sE);return n<0?Ai(e)?qi(Mi(e)):e:e.substring(0,e.lastIndexOf(pi,n))}function AE(e,n){return n||xE(e)||3}function xE(e){switch(e.substr(e.lastIndexOf(".")).toLowerCase()){case".js":case".cjs":case".mjs":return 1;case".jsx":return 2;case".ts":case".cts":case".mts":return 3;case".tsx":return 4;case".json":return 6;default:return 0}}var RE=[[".ts",".tsx",".d.ts"],[".cts",".d.cts"],[".mts",".d.mts"]],IE=M(RE),DE=[...RE,[".json"]],CE=[".d.ts",".d.cts",".d.mts",".cts",".mts",".ts",".tsx"],NE=M([[".js",".jsx"],[".mjs"],[".cjs"]]),ME=[[".ts",".tsx",".d.ts",".js",".jsx"],[".cts",".d.cts",".cjs"],[".mts",".d.mts",".mjs"]],PE=[...ME,[".json"]],LE=[".d.ts",".d.cts",".d.mts"],kE=[".ts",".cts",".mts",".tsx"],wE=[".mts",".d.mts",".mjs",".cts",".d.cts",".cjs"];function OE(e,n){const t=e&&OS(e);if(!n||0===n.length)return t?ME:RE;const r=t?ME:RE,o=M(r);return[...r,...F(n,e=>{return 7===e.scriptKind||t&&(1===(n=e.scriptKind)||2===n)&&!o.includes(e.extension)?[e.extension]:void 0;var n})]}function FE(e,n){return e&&MS(e)?n===ME?PE:n===RE?DE:[...n,[".json"]]:n}function WE(e){return U(NE,n=>xi(e,n))}function zE(e){return U(IE,n=>xi(e,n))}function BE(e){return U(kE,n=>xi(e,n))&&!yk(e)}var GE=(e=>(e[e.Minimal=0]="Minimal",e[e.Index=1]="Index",e[e.JsExtension=2]="JsExtension",e[e.TsExtension=3]="TsExtension",e))(GE||{});function VE(e,n,t,r){const o=AS(t),i=3<=o&&o<=99;return"js"===e||99===n&&i?qW(t)&&2!==a()?3:2:"minimal"===e?0:"index"===e?1:qW(t)?a():r&&function({imports:e},n=et(WE,zE)){return p(e,({text:e})=>Si(e)&&!Ri(e,wE)?n(e):void 0)||!1}(r)?2:0;function a(){let e=!1;const o=(null==r?void 0:r.imports.length)?r.imports:r&&Ph(r)?function(e){let n,t=0;for(const r of e.statements){if(t>3)break;jh(r)?n=K(n,r.declarationList.declarations.map(e=>e.initializer)):$C(r)&&Wh(r.expression,!0)?n=re(n,r.expression):t++}return n||s}(r).map(e=>e.arguments[0]):s;for(const a of o)if(Si(a.text)){if(i&&1===n&&99===TU(r,a,t))continue;if(Ri(a.text,wE))continue;if(zE(a.text))return 3;WE(a.text)&&(e=!0)}return e?2:0}}function jE(e,n,t){if(!e)return!1;const r=OE(n,t);for(const o of M(FE(n,r)))if(xi(e,o))return!0;return!1}function UE(e){const n=e.match(/\//g);return n?n.length:0}function HE(e,n){return vn(UE(e),UE(n))}var KE=[".d.ts",".d.mts",".d.cts",".mjs",".mts",".cjs",".cts",".ts",".js",".tsx",".jsx",".json"];function qE(e){for(const n of KE){const t=JE(e,n);if(void 0!==t)return t}return e}function JE(e,n){return xi(e,n)?XE(e,n):void 0}function XE(e,n){return e.substring(0,e.length-n.length)}function YE(e,n){return Yi(e,n,KE,!1)}function $E(e){const n=e.indexOf("*");return-1===n?e:-1!==e.indexOf("*",n+1)?void 0:{prefix:e.substr(0,n),suffix:e.substr(n+1)}}var QE=new WeakMap;function ZE(e){let n,t,r=QE.get(e);if(void 0!==r)return r;const o=Ce(e);for(const i of o){const e=$E(i);void 0!==e&&("string"==typeof e?(n??(n=new Set)).add(e):(t??(t=[])).push(e))}return QE.set(e,r={matchableStringSet:n,patterns:t}),r}function eA(e){return!(e>=0)}function nA(e){return".ts"===e||".tsx"===e||".d.ts"===e||".cts"===e||".mts"===e||".d.mts"===e||".d.cts"===e||Xn(e,".d.")&&Fn(e,".ts")}function tA(e){return nA(e)||".json"===e}function rA(e){const n=iA(e);return void 0!==n?n:dt.fail(`File ${e} has unknown extension.`)}function oA(e){return void 0!==iA(e)}function iA(e){return y(KE,n=>xi(e,n))}function aA(e,n){return e.checkJsDirective?e.checkJsDirective.enabled:n.checkJs}var sA={files:s,directories:s};function lA(e,n){const{matchableStringSet:t,patterns:r}=e;return(null==t?void 0:t.has(n))?n:void 0!==r&&0!==r.length?Jn(r,e=>e,n):void 0}function cA(e,n){const t=e.indexOf(n);return dt.assert(-1!==t),e.slice(t)}function dA(e,...n){return n.length?(e.relatedInformation||(e.relatedInformation=[]),dt.assert(e.relatedInformation!==s,"Diagnostic had empty array singleton for related info, but is still being constructed!"),e.relatedInformation.push(...n),e):e}function uA(e,n){dt.assert(0!==e.length);let t=n(e[0]),r=t;for(let o=1;o<e.length;o++){const i=n(e[o]);i<t?t=i:i>r&&(r=i)}return{min:t,max:r}}function pA(e){return{pos:Up(e),end:e.end}}function fA(e,n){return{pos:n.pos-1,end:Math.min(e.text.length,es(e.text,n.end)+1)}}function mA(e,n,t){return _A(e,n,t,!1)}function hA(e,n,t){return _A(e,n,t,!0)}function _A(e,n,t,r){return n.skipLibCheck&&e.isDeclarationFile||n.skipDefaultLibCheck&&e.hasNoDefaultLib||!r&&n.noCheck||t.isSourceOfProjectReferenceRedirect(e.fileName)||!gA(e,n)}function gA(e,n){if(e.checkJsDirective&&!1===e.checkJsDirective.enabled)return!1;if(3===e.scriptKind||4===e.scriptKind||5===e.scriptKind)return!0;const t=(1===e.scriptKind||2===e.scriptKind)&&aA(e,n);return Ap(e,n.checkJs)||t||7===e.scriptKind}function yA(e,n){return e===n||"object"==typeof e&&null!==e&&"object"==typeof n&&null!==n&&we(e,n,yA)}function vA(e){let 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:const t=e.length-1;let r=0;for(;48===e.charCodeAt(r);)r++;return e.slice(r,t)||"0"}const t=e.length-1,r=(t-2)*n,o=new Uint16Array((r>>>4)+(15&r?1:0));for(let l=t-1,c=0;l>=2;l--,c+=n){const n=c>>>4,t=e.charCodeAt(l),r=(t<=57?t-48:10+t-(t<=70?65:97))<<(15&c);o[n]|=r;const i=r>>>16;i&&(o[n+1]|=i)}let i="",a=o.length-1,s=!0;for(;s;){let e=0;s=!1;for(let n=a;n>=0;n--){const t=e<<16|o[n],r=t/10|0;o[n]=r,e=t-10*r,r&&!s&&(a=n,s=!0)}i=e+i}return i}function bA({negative:e,base10Value:n}){return(e&&"0"!==n?"-":"")+n}function TA(e){if(EA(e,!1))return SA(e)}function SA(e){const n=e.startsWith("-");return{negative:n,base10Value:vA(`${n?e.slice(1):e}n`)}}function EA(e,n){if(""===e)return!1;const t=vs(99,!1);let r=!0;t.setOnError(()=>r=!1),t.setText(e+"n");let o=t.scan();const i=41===o;i&&(o=t.scan());const a=t.getTokenFlags();return r&&10===o&&t.getTokenEnd()===e.length+1&&!(512&a)&&(!n||e===bA({negative:i,base10Value:vA(t.getTokenValue())}))}function AA(e){return!!(33554432&e.flags)||Oh(e)||xh(e)||function(e){if(80!==e.kind)return!1;const n=ml(e.parent,e=>{switch(e.kind){case 299:return!0;case 212:case 234:return!1;default:return"quit"}});return 119===(null==n?void 0:n.token)||265===(null==n?void 0:n.parent.kind)}(e)||function(e){for(;80===e.kind||212===e.kind;)e=e.parent;if(168!==e.kind)return!1;if(Mv(e.parent,64))return!0;const n=e.parent.parent.kind;return 265===n||188===n}(e)||!(Eh(e)||function(e){return dD(e)&&lM(e.parent)&&e.parent.name===e}(e))}function xA(e){return VD(e)&&dD(e.typeName)}function RA(e,n=hn){if(e.length<2)return!0;const t=e[0];for(let r=1,o=e.length;r<o;r++){if(!n(t,e[r]))return!1}return!0}function IA(e,n){return e.pos=n,e}function DA(e,n){return e.end=n,e}function CA(e,n,t){return DA(IA(e,n),t)}function NA(e,n,t){return CA(e,n,n+t)}function MA(e,n){return e&&(e.flags=n),e}function PA(e,n){return e&&n&&(e.parent=n),e}function LA(e,n){return e?(ok(e,Ru(e)?t:function(e,n){return t(e,n)||function(e){if(Mu(e))for(const n of e.jsDoc)t(n,e),ok(n,t)}(e)}),e):e;function t(e,t){if(n&&e.parent===t)return"skip";PA(e,t)}}function kA(e){return!FC(e)}function wA(e){return mC(e)&&g(e.elements,kA)}function OA(e){for(dt.assertIsDefined(e.parent);;){const n=e.parent;if(SC(n))e=n;else{if($C(n)||IC(n)||nN(n)&&(n.initializer===e||n.incrementor===e))return!0;if(HC(n)){if(e!==ye(n.elements))return!0;e=n}else{if(!MC(n)||28!==n.operatorToken.kind)return!1;if(e===n.left)return!0;e=n}}}}function FA(e){return U(Zo,n=>e.includes(n))}function WA(e){if(!e.parent)return;switch(e.kind){case 169:const{parent:n}=e;return 196===n.kind?void 0:n.typeParameters;case 170:return e.parent.parameters;case 205:case 240:return e.parent.templateSpans;case 171:{const{parent:n}=e;return NL(n)?n.modifiers:void 0}case 299:return e.parent.heritageClauses}const{parent:n}=e;if(Du(e))return DM(e.parent)?void 0:e.parent.tags;switch(n.kind){case 188:case 265:return bd(e)?n.members:void 0;case 193:case 194:return n.types;case 190:case 210:case 357:case 276:case 280:return n.elements;case 211:case 293:return n.properties;case 214:case 215:return Ed(e)?n.typeArguments:n.expression===e?void 0:n.arguments;case 285:case 289:return bu(e)?n.children:void 0;case 287:case 286:return Ed(e)?n.typeArguments:void 0;case 242:case 297:case 298:case 269:case 308:return n.statements;case 270:return n.clauses;case 264:case 232:return fd(e)?n.members:void 0;case 267:return dM(e)?n.members:void 0}}function zA(e){if(!e.typeParameters){if(U(e.parameters,e=>!gv(e)))return!0;if(220!==e.kind){const n=fe(e.parameters);if(!n||!uv(n))return!0}}return!1}function BA(e){return"Infinity"===e||"-Infinity"===e||"NaN"===e}function GA(e){return 261===e.kind&&300===e.parent.kind}function VA(e){return 219===e.kind||220===e.kind}function jA(e){return e.replace(/\$/g,()=>"\\$")}function UA(e){return(+e).toString()===e}function HA(e,n,t,r,o){const i=o&&"new"===e;return!i&&ys(e,n)?vR.createIdentifier(e):!r&&!i&&UA(e)&&+e>=0?vR.createNumericLiteral(+e):vR.createStringLiteral(e,!!t)}function KA(e){return!!(262144&e.flags&&e.isThisType)}function qA(e){let n,t=0,r=0,o=0,i=0;var a;(a=n||(n={}))[a.BeforeNodeModules=0]="BeforeNodeModules",a[a.NodeModules=1]="NodeModules",a[a.Scope=2]="Scope",a[a.PackageContent=3]="PackageContent";let s=0,l=0,c=0;for(;l>=0;)switch(s=l,l=e.indexOf("/",s+1),c){case 0:e.indexOf(oW,s)===s&&(t=s,r=l,c=1);break;case 1:case 2:1===c&&"@"===e.charAt(s+1)?c=2:(o=l,c=3);break;case 3:c=e.indexOf(oW,s)===s?1:3}return i=s,c>1?{topLevelNodeModulesIndex:t,topLevelPackageNameIndex:r,packageRootIndex:o,fileNameIndex:i}:void 0}function JA(e){switch(e.kind){case 169:case 264:case 265:case 266:case 267:case 347:case 339:case 341:return!0;case 274:return 156===e.phaseModifier;case 277:return 156===e.parent.parent.phaseModifier;case 282:return e.parent.parent.isTypeOnly;default:return!1}}function XA(e){return vN(e)||XC(e)||hN(e)||_N(e)||gN(e)||JA(e)||bN(e)&&!yf(e)&&!gf(e)}function YA(e){if(!Nc(e))return!1;const{isBracketed:n,typeExpression:t}=e;return n||!!t&&317===t.type.kind}function $A(e,n){if(0===e.length)return!1;const t=e.charCodeAt(0);return 35===t?e.length>1&&_s(e.charCodeAt(1),n):_s(t,n)}function QA(e){var n;return 0===(null==(n=$R(e))?void 0:n.kind)}function ZA(e){return Lh(e)&&(e.type&&317===e.type.kind||Ll(e).some(YA))}function ex(e){switch(e.kind){case 173:case 172:return!!e.questionToken;case 170:return!!e.questionToken||ZA(e);case 349:case 342:return YA(e);default:return!1}}function nx(e){const n=e.kind;return(212===n||213===n)&&GC(e.expression)}function tx(e){return Lh(e)&&SC(e)&&Mu(e)&&!!rc(e)}function rx(e){return dt.checkDefined(ox(e))}function ox(e){const n=rc(e);return n&&n.typeExpression&&n.typeExpression.type}function ix(e){return dD(e)?e.escapedText:lx(e)}function ax(e){return dD(e)?vl(e):cx(e)}function sx(e){const n=e.kind;return 80===n||296===n}function lx(e){return`${e.namespace.escapedText}:${vl(e.name)}`}function cx(e){return`${vl(e.namespace)}:${vl(e.name)}`}function dx(e){return dD(e)?vl(e):cx(e)}function ux(e){return!!(8576&e.flags)}function px(e){return 8192&e.flags?e.escapedName:384&e.flags?gl(""+e.value):dt.fail()}function fx(e){return!!e&&(_C(e)||gC(e)||MC(e))}function mx(e){return void 0!==e&&!!AU(e.attributes)}var hx=String.prototype.replace;function _x(e,n){return hx.call(e,"*",n)}function gx(e){return dD(e.name)?e.name.escapedText:gl(e.name.text)}function yx(e){switch(e.kind){case 169:case 170:case 173:case 172:case 186:case 185:case 180:case 181:case 182:case 175:case 174:case 176:case 177:case 178:case 179:case 184:case 183:case 187:case 188:case 189:case 190:case 193:case 194:case 197:case 191:case 192:case 198:case 199:case 195:case 196:case 204:case 206:case 203:case 329:case 330:case 347:case 339:case 341:case 346:case 345:case 325:case 326:case 327:case 342:case 349:case 318:case 316:case 315:case 313:case 314:case 323:case 319:case 310:case 334:case 336:case 335:case 351:case 344:case 200:case 201:case 263:case 242:case 269:case 244:case 245:case 246:case 247:case 248:case 249:case 250:case 251:case 252:case 253:case 254:case 255:case 256:case 257:case 258:case 259:case 261:case 209:case 264:case 265:case 266:case 267:case 268:case 273:case 272:case 279:case 278:case 243:case 260:case 283:return!0}return!1}function vx(e,n=!1,t=!1,r=!1){return{value:e,isSyntacticallyString:n,resolvedOtherFiles:t,hasExternalReferences:r}}function bx({evaluateElementAccessExpression:e,evaluateEntityNameExpression:n}){function t(r,o){let i=!1,a=!1,s=!1;switch((r=cg(r)).kind){case 225:const l=t(r.operand,o);if(a=l.resolvedOtherFiles,s=l.hasExternalReferences,"number"==typeof l.value)switch(r.operator){case 40:return vx(l.value,i,a,s);case 41:return vx(-l.value,i,a,s);case 55:return vx(~l.value,i,a,s)}break;case 227:{const e=t(r.left,o),n=t(r.right,o);if(i=(e.isSyntacticallyString||n.isSyntacticallyString)&&40===r.operatorToken.kind,a=e.resolvedOtherFiles||n.resolvedOtherFiles,s=e.hasExternalReferences||n.hasExternalReferences,"number"==typeof e.value&&"number"==typeof n.value)switch(r.operatorToken.kind){case 52:return vx(e.value|n.value,i,a,s);case 51:return vx(e.value&n.value,i,a,s);case 49:return vx(e.value>>n.value,i,a,s);case 50:return vx(e.value>>>n.value,i,a,s);case 48:return vx(e.value<<n.value,i,a,s);case 53:return vx(e.value^n.value,i,a,s);case 42:return vx(e.value*n.value,i,a,s);case 44:return vx(e.value/n.value,i,a,s);case 40:return vx(e.value+n.value,i,a,s);case 41:return vx(e.value-n.value,i,a,s);case 45:return vx(e.value%n.value,i,a,s);case 43:return vx(e.value**n.value,i,a,s)}else if(!("string"!=typeof e.value&&"number"!=typeof e.value||"string"!=typeof n.value&&"number"!=typeof n.value||40!==r.operatorToken.kind))return vx(""+e.value+n.value,i,a,s);break}case 11:case 15:return vx(r.text,!0);case 229:return function(e,n){let r=e.head.text,o=!1,i=!1;for(const a of e.templateSpans){const e=t(a.expression,n);if(void 0===e.value)return vx(void 0,!0);r+=e.value,r+=a.literal.text,o||(o=e.resolvedOtherFiles),i||(i=e.hasExternalReferences)}return vx(r,!0,o,i)}(r,o);case 9:return vx(+r.text);case 80:return n(r,o);case 212:if(db(r))return n(r,o);break;case 213:return e(r,o)}return vx(void 0,i,a,s)}return t}function Tx(e){return Jd(e)&&xc(e.type)||KM(e)&&xc(e.typeExpression)}function Sx(e){const n=e.members;for(const t of n)if(177===t.kind&&Mp(t.body))return t}function Ex({compilerOptions:e,requireSymbol:n,argumentsSymbol:t,error:r,getSymbolOfDeclaration:o,globals:i,lookup:a,setRequiresScopeChangeCache:s=an,getRequiresScopeChangeCache:l=an,onPropertyWithInvalidInitializer:c=rn,onFailedToResolveSymbol:u=an,onSuccessfullyResolvedSymbol:p=an}){var f=e.verbatimModuleSyntax?"verbatimModuleSyntax":"isolatedModules",m=KS(e),h=Qu();return function(s,l,d,m,y,T){var S,E,A;const x=s;let R,I,D,C,N,M,P=!1;const L=Qe(l)?l:l.escapedText;e:for(;s;){if("const"===L&&Tx(s))return;if(lu(s)&&I&&s.name===I&&(I=s,s=s.parent),du(s)&&s.locals&&!tm(s)&&(R=a(s.locals,L,d))){let e=!0;if(ad(s)&&I&&I!==s.body?(d&R.flags&788968&&321!==I.kind&&(e=!!(262144&R.flags)&&(!!(16&I.flags)||I===s.type||170===I.kind||342===I.kind||343===I.kind||169===I.kind)),d&R.flags&3&&(_(R,s,I)?e=!1:1&R.flags&&(e=170===I.kind||!!(16&I.flags)||I===s.type&&!!ml(R.valueDeclaration,DD)))):195===s.kind&&(e=I===s.trueType),e)break e;R=void 0}switch(P=P||g(s,I),s.kind){case 308:if(!rm(s))break;case 268:const n=(null==(S=o(s))?void 0:S.exports)||h;if(308===s.kind||bN(s)&&33554432&s.flags&&!gf(s)){if(R=n.get("default")){const e=Eb(R);if(e&&R.flags&d&&e.escapedName===L)break e;R=void 0}const e=n.get(L);if(e&&2097152===e.flags&&(Yu(e,282)||Yu(e,281)))break}if("default"!==L&&(R=a(n,L,2623475&d))){if(!uM(s)||!s.commonJsModuleIndicator||(null==(E=R.declarations)?void 0:E.some(M_)))break e;R=void 0}break;case 267:if(R=a((null==(A=o(s))?void 0:A.exports)||h,L,8&d)){!m||!RS(e)||33554432&s.flags||Sp(s)===Sp(R.valueDeclaration)||r(x,fa.Cannot_access_0_from_another_file_without_qualification_when_1_is_enabled_Use_2_instead,yl(L),f,`${yl(o(s).escapedName)}.${yl(L)}`);break e}break;case 173:if(!Pv(s)){const e=Sx(s.parent);e&&e.locals&&a(e.locals,L,111551&d)&&(dt.assertNode(s,MD),C=s)}break;case 264:case 232:case 265:if(R=a(o(s).members||h,L,788968&d)){if(!b(R,s)){R=void 0;break}if(I&&Pv(I))return void(m&&r(x,fa.Static_members_cannot_reference_class_type_parameters));break e}if(OC(s)&&32&d){const e=s.name;if(e&&L===e.escapedText){R=s.symbol;break e}}break;case 234:if(I===s.expression&&96===s.parent.token){const e=s.parent.parent;if(md(e)&&(R=a(o(e).members,L,788968&d)))return void(m&&r(x,fa.Base_class_expressions_cannot_reference_class_type_parameters))}break;case 168:if(M=s.parent.parent,(md(M)||265===M.kind)&&(R=a(o(M).members,L,788968&d)))return void(m&&r(x,fa.A_computed_property_name_cannot_reference_a_type_parameter_from_its_containing_type));break;case 220:if(SS(e)>=2)break;case 175:case 177:case 178:case 179:case 263:if(3&d&&"arguments"===L){R=t;break e}break;case 219:if(3&d&&"arguments"===L){R=t;break e}if(16&d){const e=s.name;if(e&&L===e.escapedText){R=s.symbol;break e}}break;case 171:s.parent&&170===s.parent.kind&&(s=s.parent),s.parent&&(fd(s.parent)||264===s.parent.kind)&&(s=s.parent);break;case 347:case 339:case 341:case 352:const i=J_(s);i&&(s=i.parent);break;case 170:I&&(I===s.initializer||I===s.name&&xd(I))&&(N||(N=s));break;case 209:I&&(I===s.initializer||I===s.name&&xd(I))&&ey(s)&&!N&&(N=s);break;case 196:if(262144&d){const e=s.typeParameter.name;if(e&&L===e.escapedText){R=s.typeParameter.symbol;break e}}break;case 282:I&&I===s.propertyName&&s.parent.parent.moduleSpecifier&&(s=s.parent.parent.parent)}v(s,I)&&(D=s),I=s,s=qM(s)?j_(s)||s.parent:(jM(s)||UM(s))&&H_(s)||s.parent}!y||!R||D&&R===D.symbol||(R.isReferenced|=d);if(!R){if(I&&(dt.assertNode(I,uM),I.commonJsModuleIndicator&&"exports"===L&&d&I.symbol.flags))return I.symbol;T||(R=a(i,L,d))}if(!R&&x&&Lh(x)&&x.parent&&Wh(x.parent,!1))return n;if(m){if(C&&c(x,L,C,R))return;R?p(x,R,d,I,N,P):u(x,l,d,m)}return R};function _(n,t,r){const o=SS(e),i=t;if(DD(r)&&i.body&&n.valueDeclaration&&n.valueDeclaration.pos>=i.body.pos&&n.valueDeclaration.end<=i.body.end&&o>=2){let e=l(i);return void 0===e&&(e=d(i.parameters,function(e){return a(e.name)||!!e.initializer&&a(e.initializer)})||!1,s(i,e)),!e}return!1;function a(e){switch(e.kind){case 220:case 219:case 263:case 177:return!1;case 175:case 178:case 179:case 304:return a(e.name);case 173:return Lv(e)?!m:a(e.name);default:return Ac(e)||bc(e)?o<7:fC(e)&&e.dotDotDotToken&&uC(e.parent)?o<4:!Ed(e)&&(rk(e,a)||!1)}}}function g(e,n){return 220!==e.kind&&219!==e.kind?HD(e)||(ld(e)||173===e.kind&&!Pv(e))&&(!n||n!==e.name):(!n||n!==e.name)&&(!(!e.asteriskToken&&!Mv(e,1024))||!lh(e))}function v(e,n){switch(e.kind){case 170:return!!n&&n===e.name;case 263:case 264:case 265:case 267:case 266:case 268:return!0;default:return!1}}function b(e,n){if(e.declarations)for(const t of e.declarations)if(169===t.kind){if((qM(t.parent)?q_(t.parent):t.parent)===n)return!(qM(t.parent)&&y(t.parent.parent.tags,M_))}return!1}}function Ax(e,n=!0){switch(dt.type(e),e.kind){case 112:case 97:case 9:case 11:case 15:return!0;case 10:return n;case 225:return 41===e.operator?HI(e.operand)||n&&KI(e.operand):40===e.operator&&HI(e.operand);default:return!1}}function xx(e){for(;218===e.kind;)e=e.expression;return e}function Rx(e){switch(dt.type(e),e.kind){case 170:case 172:case 173:case 209:case 212:case 213:case 227:case 261:case 278:case 304:case 305:case 342:case 349:return!0;default:return!1}}function Ix(e){const n=ml(e,xN);return!!n&&!n.importClause}var Dx=["assert","assert/strict","async_hooks","buffer","child_process","cluster","console","constants","crypto","dgram","diagnostics_channel","dns","dns/promises","domain","events","fs","fs/promises","http","http2","https","inspector","inspector/promises","module","net","os","path","path/posix","path/win32","perf_hooks","process","punycode","querystring","readline","readline/promises","repl","stream","stream/consumers","stream/promises","stream/web","string_decoder","sys","test/mock_loader","timers","timers/promises","tls","trace_events","tty","url","util","util/types","v8","vm","wasi","worker_threads","zlib"],Cx=new Set(Dx),Nx=new Set(["node:sea","node:sqlite","node:test","node:test/reporters"]),Mx=new Set([...Dx,...Dx.map(e=>`node:${e}`),...Nx]);function Px(e,n,t,r){const o=Lh(e),i=/import|require/g;for(;null!==i.exec(e.text);){const a=Lx(e,i.lastIndex,n);if(o&&Wh(a,t))r(a,a.arguments[0]);else if(fm(a)&&a.arguments.length>=1&&(!t||zu(a.arguments[0])))r(a,a.arguments[0]);else if(n&&hm(a))r(a,a.argument.literal);else if(n&&eP(a)){const e=x_(a);e&&qI(e)&&e.text&&r(a,e)}}}function Lx(e,n,t){const r=Lh(e);let o=e;const i=e=>{if(e.pos<=n&&(n<e.end||n===e.end&&1===e.kind))return e};for(;;){const e=r&&t&&Mu(o)&&d(o.jsDoc,i)||rk(o,i);if(!e||VC(e))return o;o=e}}function kx(e){return ad(e)||CM(e)||aC(e)}function wx(e){return dn(e.fileName)}function Ox(e){const n=wx(e);return kk.get(n)}function Fx(e,n){return Wx(void 0,e,e=>e&&n(e))}function Wx(e,n,t,r){let o;return function e(n,i,a){if(r){const e=r(n,a);if(e)return e}let s;return d(i,(e,n)=>{if(e&&(null==o?void 0:o.has(e.sourceFile.path)))return void(s??(s=new Set)).add(e);const r=t(e,a,n);if(r||!e)return r;(o||(o=new Set)).add(e.sourceFile.path)})||d(i,n=>n&&!(null==s?void 0:s.has(n))?e(n.commandLine.projectReferences,n.references,n):void 0)}(e,n,void 0)}function zx(e,n,t){return e&&(r=t,qm(e,n,e=>mC(e.initializer)?y(e.initializer.elements,e=>qI(e)&&e.text===r):void 0));var r}function Bx(e,n,t){return Gx(e,n,e=>qI(e.initializer)&&e.initializer.text===t?e.initializer:void 0)}function Gx(e,n,t){return qm(e,n,t)}function Vx(e,n=!0){const t=e&&Ux(e);return t&&!n&&qx(t),LA(t,!1)}function jx(e,n,t){let r=t(e);return r?TR(r,e):r=Ux(e,t),r&&!n&&qx(r),r}function Ux(e,n){const t=n?e=>jx(e,!0,n):Vx,r=CB(e,t,void 0,n?e=>e&&Kx(e,!0,n):e=>e&&Hx(e),t);if(r===e){return DL(qI(e)?TR(vR.createStringLiteralFromNode(e),e):HI(e)?TR(vR.createNumericLiteral(e.text,e.numericLiteralFlags),e):vR.cloneNode(e),e)}return r.parent=void 0,r}function Hx(e,n=!0){if(e){const t=vR.createNodeArray(e.map(e=>Vx(e,n)),e.hasTrailingComma);return DL(t,e),t}return e}function Kx(e,n,t){return vR.createNodeArray(e.map(e=>jx(e,n,t)),e.hasTrailingComma)}function qx(e){Jx(e),Xx(e)}function Jx(e){Yx(e,1024,$x)}function Xx(e){Yx(e,2048,ET)}function Yx(e,n,t){RR(e,n);const r=t(e);r&&Yx(r,n,t)}function $x(e){return rk(e,e=>e)}function Qx(){let e,n,t,r,o;return{createBaseSourceFileNode:function(e){return new(o||(o=GT.getSourceFileConstructor()))(e,-1,-1)},createBaseIdentifierNode:function(e){return new(t||(t=GT.getIdentifierConstructor()))(e,-1,-1)},createBasePrivateIdentifierNode:function(e){return new(r||(r=GT.getPrivateIdentifierConstructor()))(e,-1,-1)},createBaseTokenNode:function(e){return new(n||(n=GT.getTokenConstructor()))(e,-1,-1)},createBaseNode:function(n){return new(e||(e=GT.getNodeConstructor()))(n,-1,-1)}}}function Zx(e){let n,t;return{getParenthesizeLeftSideOfBinaryForOperator:function(e){n||(n=new Map);let t=n.get(e);t||(t=n=>i(e,n),n.set(e,t));return t},getParenthesizeRightSideOfBinaryForOperator:function(e){t||(t=new Map);let n=t.get(e);n||(n=n=>a(e,void 0,n),t.set(e,n));return n},parenthesizeLeftSideOfBinary:i,parenthesizeRightSideOfBinary:a,parenthesizeExpressionOfComputedPropertyName:function(n){return IP(n)?e.createParenthesizedExpression(n):n},parenthesizeConditionOfConditionalExpression:function(n){const t=dy(228,58),r=Rc(n);if(1!==vn(sy(r),t))return e.createParenthesizedExpression(n);return n},parenthesizeBranchOfConditionalExpression:function(n){return IP(Rc(n))?e.createParenthesizedExpression(n):n},parenthesizeExpressionOfExportDefault:function(n){const t=Rc(n);let r=IP(t);if(!r)switch(PT(t,!1).kind){case 232:case 219:r=!0}return r?e.createParenthesizedExpression(n):n},parenthesizeExpressionOfNew:function(n){const t=PT(n,!0);switch(t.kind){case 214:return e.createParenthesizedExpression(n);case 215:return t.arguments?n:e.createParenthesizedExpression(n)}return s(n)},parenthesizeLeftSideOfAccess:s,parenthesizeOperandOfPostfixUnary:function(n){return Gd(n)?n:DL(e.createParenthesizedExpression(n),n)},parenthesizeOperandOfPrefixUnary:function(n){return jd(n)?n:DL(e.createParenthesizedExpression(n),n)},parenthesizeExpressionsOfCommaDelimitedList:function(n){const t=N(n,l);return DL(e.createNodeArray(t,n.hasTrailingComma),n)},parenthesizeExpressionForDisallowedComma:l,parenthesizeExpressionOfExpressionStatement:function(n){const t=Rc(n);if(yC(t)){const r=t.expression,o=Rc(r).kind;if(219===o||220===o){const o=e.updateCallExpression(t,DL(e.createParenthesizedExpression(r),r),t.typeArguments,t.arguments);return e.restoreOuterExpressions(n,o,8)}}const r=PT(t,!1).kind;if(211===r||219===r)return DL(e.createParenthesizedExpression(n),n);return n},parenthesizeConciseBodyOfArrowFunction:function(n){if(!JC(n)&&(IP(n)||211===PT(n,!1).kind))return DL(e.createParenthesizedExpression(n),n);return n},parenthesizeCheckTypeOfConditionalType:c,parenthesizeExtendsTypeOfConditionalType:function(n){if(195===n.kind)return e.createParenthesizedType(n);return n},parenthesizeConstituentTypesOfUnionType:function(n){return e.createNodeArray(N(n,d))},parenthesizeConstituentTypeOfUnionType:d,parenthesizeConstituentTypesOfIntersectionType:function(n){return e.createNodeArray(N(n,u))},parenthesizeConstituentTypeOfIntersectionType:u,parenthesizeOperandOfTypeOperator:p,parenthesizeOperandOfReadonlyTypeOperator:function(n){if(199===n.kind)return e.createParenthesizedType(n);return p(n)},parenthesizeNonArrayTypeOfPostfixType:f,parenthesizeElementTypesOfTupleType:function(n){return e.createNodeArray(N(n,m))},parenthesizeElementTypeOfTupleType:m,parenthesizeTypeOfOptionalType:function(n){return h(n)?e.createParenthesizedType(n):f(n)},parenthesizeTypeArguments:function(n){if(U(n))return e.createNodeArray(N(n,g))},parenthesizeLeadingTypeArgument:_};function r(e){if(wc((e=Rc(e)).kind))return e.kind;if(227===e.kind&&40===e.operatorToken.kind){if(void 0!==e.cachedLiteralKind)return e.cachedLiteralKind;const n=r(e.left),t=wc(n)&&n===r(e.right)?n:0;return e.cachedLiteralKind=t,t}return 0}function o(n,t,o,i){return 218===Rc(t).kind?t:function(e,n,t,o){const i=Rc(n);if(MC(i)&&(a=e,s=i.operatorToken.kind,61===a?56===s||57===s:61===s&&(56===a||57===a)))return!0;var a,s;const l=dy(227,e),c=ay(227,e);if(!t&&220===n.kind&&l>3)return!0;switch(vn(sy(i),l)){case-1:return!(!t&&1===c&&230===n.kind);case 1:return!1;case 0:if(t)return 1===c;if(MC(i)&&i.operatorToken.kind===e){if(function(e){return 42===e||52===e||51===e||53===e||28===e}(e))return!1;if(40===e){const e=o?r(o):0;if(wc(e)&&e===r(i))return!1}}return 0===iy(i)}}(n,t,o,i)?e.createParenthesizedExpression(t):t}function i(e,n){return o(e,n,!0)}function a(e,n,t){return o(e,t,!1,n)}function s(n,t){const r=Rc(n);return!Gd(r)||215===r.kind&&!r.arguments||!t&&bc(r)?DL(e.createParenthesizedExpression(n),n):n}function l(n){return sy(Rc(n))>dy(227,28)?n:DL(e.createParenthesizedExpression(n),n)}function c(n){switch(n.kind){case 185:case 186:case 195:return e.createParenthesizedType(n)}return n}function d(n){switch(n.kind){case 193:case 194:return e.createParenthesizedType(n)}return c(n)}function u(n){switch(n.kind){case 193:case 194:return e.createParenthesizedType(n)}return d(n)}function p(n){return 194===n.kind?e.createParenthesizedType(n):u(n)}function f(n){switch(n.kind){case 196:case 199:case 187:return e.createParenthesizedType(n)}return p(n)}function m(n){return h(n)?e.createParenthesizedType(n):n}function h(e){return TM(e)?e.postfix:XD(e)||jD(e)||UD(e)||oC(e)?h(e.type):eC(e)?h(e.falseType):QD(e)||ZD(e)?h(ye(e.types)):!!nC(e)&&(!!e.typeParameter.constraint&&h(e.typeParameter.constraint))}function _(n){return Ad(n)&&n.typeParameters?e.createParenthesizedType(n):n}function g(e,n){return 0===n?_(e):e}}var eR={getParenthesizeLeftSideOfBinaryForOperator:e=>sn,getParenthesizeRightSideOfBinaryForOperator:e=>sn,parenthesizeLeftSideOfBinary:(e,n)=>n,parenthesizeRightSideOfBinary:(e,n,t)=>t,parenthesizeExpressionOfComputedPropertyName:sn,parenthesizeConditionOfConditionalExpression:sn,parenthesizeBranchOfConditionalExpression:sn,parenthesizeExpressionOfExportDefault:sn,parenthesizeExpressionOfNew:e=>nn(e,Gd),parenthesizeLeftSideOfAccess:e=>nn(e,Gd),parenthesizeOperandOfPostfixUnary:e=>nn(e,Gd),parenthesizeOperandOfPrefixUnary:e=>nn(e,jd),parenthesizeExpressionsOfCommaDelimitedList:e=>nn(e,kc),parenthesizeExpressionForDisallowedComma:sn,parenthesizeExpressionOfExpressionStatement:sn,parenthesizeConciseBodyOfArrowFunction:sn,parenthesizeCheckTypeOfConditionalType:sn,parenthesizeExtendsTypeOfConditionalType:sn,parenthesizeConstituentTypesOfUnionType:e=>nn(e,kc),parenthesizeConstituentTypeOfUnionType:sn,parenthesizeConstituentTypesOfIntersectionType:e=>nn(e,kc),parenthesizeConstituentTypeOfIntersectionType:sn,parenthesizeOperandOfTypeOperator:sn,parenthesizeOperandOfReadonlyTypeOperator:sn,parenthesizeNonArrayTypeOfPostfixType:sn,parenthesizeElementTypesOfTupleType:e=>nn(e,kc),parenthesizeElementTypeOfTupleType:sn,parenthesizeTypeOfOptionalType:sn,parenthesizeTypeArguments:e=>e&&nn(e,kc),parenthesizeLeadingTypeArgument:sn};function nR(e){return{convertToFunctionBlock:function(n,t){if(JC(n))return n;const r=e.createReturnStatement(n);DL(r,n);const o=e.createBlock([r],t);return DL(o,n),o},convertToFunctionExpression:function(n){var t;if(!n.body)return dt.fail("Cannot convert a FunctionDeclaration without a body");const r=e.createFunctionExpression(null==(t=Ml(n))?void 0:t.filter(e=>!pD(e)&&!fD(e)),n.asteriskToken,n.name,n.typeParameters,n.parameters,n.type,n.body);TR(r,n),DL(r,n),LR(n)&&kR(r,!0);return r},convertToClassExpression:function(n){var t;const r=e.createClassExpression(null==(t=n.modifiers)?void 0:t.filter(e=>!pD(e)&&!fD(e)),n.name,n.typeParameters,n.heritageClauses,n.members);TR(r,n),DL(r,n),LR(n)&&kR(r,!0);return r},convertToArrayAssignmentElement:n,convertToObjectAssignmentElement:t,convertToAssignmentPattern:r,convertToObjectAssignmentPattern:o,convertToArrayAssignmentPattern:i,convertToAssignmentElementTarget:a};function n(n){if(fC(n)){if(n.dotDotDotToken)return dt.assertNode(n.name,dD),TR(DL(e.createSpreadElement(n.name),n),n);const t=a(n.name);return n.initializer?TR(DL(e.createAssignment(t,n.initializer),n),n):t}return nn(n,qd)}function t(n){if(fC(n)){if(n.dotDotDotToken)return dt.assertNode(n.name,dD),TR(DL(e.createSpreadAssignment(n.name),n),n);if(n.propertyName){const t=a(n.name);return TR(DL(e.createPropertyAssignment(n.propertyName,n.initializer?e.createAssignment(t,n.initializer):t),n),n)}return dt.assertNode(n.name,dD),TR(DL(e.createShorthandPropertyAssignment(n.name,n.initializer),n),n)}return nn(n,Sd)}function r(e){switch(e.kind){case 208:case 210:return i(e);case 207:case 211:return o(e)}}function o(n){return uC(n)?TR(DL(e.createObjectLiteralExpression(D(n.elements,t)),n),n):nn(n,hC)}function i(t){return pC(t)?TR(DL(e.createArrayLiteralExpression(D(t.elements,n)),t),t):nn(t,mC)}function a(e){return xd(e)?r(e):nn(e,qd)}}var tR,rR={convertToFunctionBlock:un,convertToFunctionExpression:un,convertToClassExpression:un,convertToArrayAssignmentElement:un,convertToObjectAssignmentElement:un,convertToAssignmentPattern:un,convertToObjectAssignmentPattern:un,convertToArrayAssignmentPattern:un,convertToAssignmentElementTarget:un},oR=0,iR=(e=>(e[e.None=0]="None",e[e.NoParenthesizerRules=1]="NoParenthesizerRules",e[e.NoNodeConverters=2]="NoNodeConverters",e[e.NoIndentationOnFreshPropertyAccess=4]="NoIndentationOnFreshPropertyAccess",e[e.NoOriginalNode=8]="NoOriginalNode",e))(iR||{}),aR=[];function sR(e){aR.push(e)}function lR(e,n){const t=8&e?sn:TR,r=pn(()=>1&e?eR:Zx(b)),o=pn(()=>2&e?rR:nR(b)),i=fn(e=>(n,t)=>wn(n,e,t)),a=fn(e=>n=>Ln(e,n)),l=fn(e=>n=>kn(n,e)),c=fn(e=>()=>function(e){return S(e)}(e)),u=fn(e=>n=>pr(e,n)),p=fn(e=>(n,t)=>function(e,n,t){return n.type!==t?wo(pr(e,t),n):n}(e,n,t)),f=fn(e=>(n,t)=>ur(e,n,t)),m=fn(e=>(n,t)=>function(e,n,t){return n.type!==t?wo(ur(e,t,n.postfix),n):n}(e,n,t)),h=fn(e=>(n,t)=>kr(e,n,t)),_=fn(e=>(n,t,r)=>function(e,n,t=gr(n),r){return n.tagName!==t||n.comment!==r?wo(kr(e,t,r),n):n}(e,n,t,r)),y=fn(e=>(n,t,r)=>wr(e,n,t,r)),v=fn(e=>(n,t,r,o)=>function(e,n,t=gr(n),r,o){return n.tagName!==t||n.typeExpression!==r||n.comment!==o?wo(wr(e,t,r,o),n):n}(e,n,t,r,o)),b={get parenthesizer(){return r()},get converters(){return o()},baseFactory:n,flags:e,createNodeArray:T,createNumericLiteral:x,createBigIntLiteral:R,createStringLiteral:D,createStringLiteralFromNode:function(e){const n=I(Hg(e),void 0);return n.textSourceNode=e,n},createRegularExpressionLiteral:C,createLiteralLikeNode:function(e,n){switch(e){case 9:return x(n,0);case 10:return R(n);case 11:return D(n,void 0);case 12:return Kr(n,!1);case 13:return Kr(n,!0);case 14:return C(n);case 15:return Vn(e,n,void 0,0)}},createIdentifier:P,createTempVariable:L,createLoopVariable:function(e){let n=2;e&&(n|=8);return M("",n,void 0,void 0)},createUniqueName:function(e,n=0,t,r){return dt.assert(!(7&n),"Argument out of range: flags"),dt.assert(32!=(48&n),"GeneratedIdentifierFlags.FileLevel cannot be set without also setting GeneratedIdentifierFlags.Optimistic"),M(e,3|n,t,r)},getGeneratedNameForNode:k,createPrivateIdentifier:function(e){Xn(e,"#")||dt.fail("First character of private identifier must be #: "+e);return O(gl(e))},createUniquePrivateName:function(e,n,t){e&&!Xn(e,"#")&&dt.fail("First character of private identifier must be #: "+e);return F(e??"",8|(e?3:1),n,t)},getGeneratedPrivateNameForNode:function(e,n,t){const r=hc(e)?bL(!0,n,e,t,vl):`#generated@${cB(e)}`,o=F(r,4|(n||t?16:0),n,t);return o.original=e,o},createToken:z,createSuper:function(){return z(108)},createThis:B,createNull:G,createTrue:V,createFalse:j,createModifier:H,createModifiersFromModifierFlags:K,createQualifiedName:q,updateQualifiedName:function(e,n,t){return e.left!==n||e.right!==t?wo(q(n,t),e):e},createComputedPropertyName:J,updateComputedPropertyName:function(e,n){return e.expression!==n?wo(J(n),e):e},createTypeParameterDeclaration:X,updateTypeParameterDeclaration:Y,createParameterDeclaration:$,updateParameterDeclaration:Q,createDecorator:Z,updateDecorator:function(e,n){return e.expression!==n?wo(Z(n),e):e},createPropertySignature:ee,updatePropertySignature:ne,createPropertyDeclaration:te,updatePropertyDeclaration:oe,createMethodSignature:ie,updateMethodSignature:ae,createMethodDeclaration:se,updateMethodDeclaration:le,createConstructorDeclaration:de,updateConstructorDeclaration:ue,createGetAccessorDeclaration:pe,updateGetAccessorDeclaration:fe,createSetAccessorDeclaration:me,updateSetAccessorDeclaration:he,createCallSignature:_e,updateCallSignature:function(e,n,t,r){return e.typeParameters!==n||e.parameters!==t||e.type!==r?A(_e(n,t,r),e):e},createConstructSignature:ye,updateConstructSignature:function(e,n,t,r){return e.typeParameters!==n||e.parameters!==t||e.type!==r?A(ye(n,t,r),e):e},createIndexSignature:be,updateIndexSignature:Te,createClassStaticBlockDeclaration:ce,updateClassStaticBlockDeclaration:function(e,n){return e.body!==n?function(e,n){e!==n&&(e.modifiers=n.modifiers);return wo(e,n)}(ce(n),e):e},createTemplateLiteralTypeSpan:Se,updateTemplateLiteralTypeSpan:function(e,n,t){return e.type!==n||e.literal!==t?wo(Se(n,t),e):e},createKeywordTypeNode:function(e){return z(e)},createTypePredicateNode:Ee,updateTypePredicateNode:function(e,n,t,r){return e.assertsModifier!==n||e.parameterName!==t||e.type!==r?wo(Ee(n,t,r),e):e},createTypeReferenceNode:Ae,updateTypeReferenceNode:function(e,n,t){return e.typeName!==n||e.typeArguments!==t?wo(Ae(n,t),e):e},createFunctionTypeNode:Re,updateFunctionTypeNode:function(e,n,t,r){return e.typeParameters!==n||e.parameters!==t||e.type!==r?function(e,n){e!==n&&(e.modifiers=n.modifiers);return A(e,n)}(Re(n,t,r),e):e},createConstructorTypeNode:De,updateConstructorTypeNode:function(...e){return 5===e.length?Ne(...e):4===e.length?function(e,n,t,r){return Ne(e,e.modifiers,n,t,r)}(...e):dt.fail("Incorrect number of arguments specified.")},createTypeQueryNode:Me,updateTypeQueryNode:function(e,n,t){return e.exprName!==n||e.typeArguments!==t?wo(Me(n,t),e):e},createTypeLiteralNode:Pe,updateTypeLiteralNode:function(e,n){return e.members!==n?wo(Pe(n),e):e},createArrayTypeNode:Le,updateArrayTypeNode:function(e,n){return e.elementType!==n?wo(Le(n),e):e},createTupleTypeNode:ke,updateTupleTypeNode:function(e,n){return e.elements!==n?wo(ke(n),e):e},createNamedTupleMember:we,updateNamedTupleMember:function(e,n,t,r,o){return e.dotDotDotToken!==n||e.name!==t||e.questionToken!==r||e.type!==o?wo(we(n,t,r,o),e):e},createOptionalTypeNode:Oe,updateOptionalTypeNode:function(e,n){return e.type!==n?wo(Oe(n),e):e},createRestTypeNode:Fe,updateRestTypeNode:function(e,n){return e.type!==n?wo(Fe(n),e):e},createUnionTypeNode:function(e){return We(193,e,r().parenthesizeConstituentTypesOfUnionType)},updateUnionTypeNode:function(e,n){return ze(e,n,r().parenthesizeConstituentTypesOfUnionType)},createIntersectionTypeNode:function(e){return We(194,e,r().parenthesizeConstituentTypesOfIntersectionType)},updateIntersectionTypeNode:function(e,n){return ze(e,n,r().parenthesizeConstituentTypesOfIntersectionType)},createConditionalTypeNode:Be,updateConditionalTypeNode:function(e,n,t,r,o){return e.checkType!==n||e.extendsType!==t||e.trueType!==r||e.falseType!==o?wo(Be(n,t,r,o),e):e},createInferTypeNode:Ge,updateInferTypeNode:function(e,n){return e.typeParameter!==n?wo(Ge(n),e):e},createImportTypeNode:je,updateImportTypeNode:function(e,n,t,r,o,i=e.isTypeOf){return e.argument!==n||e.attributes!==t||e.qualifier!==r||e.typeArguments!==o||e.isTypeOf!==i?wo(je(n,t,r,o,i),e):e},createParenthesizedType:Ue,updateParenthesizedType:function(e,n){return e.type!==n?wo(Ue(n),e):e},createThisTypeNode:function(){const e=S(198);return e.transformFlags=1,e},createTypeOperatorNode:He,updateTypeOperatorNode:function(e,n){return e.type!==n?wo(He(e.operator,n),e):e},createIndexedAccessTypeNode:Ke,updateIndexedAccessTypeNode:function(e,n,t){return e.objectType!==n||e.indexType!==t?wo(Ke(n,t),e):e},createMappedTypeNode:qe,updateMappedTypeNode:function(e,n,t,r,o,i,a){return e.readonlyToken!==n||e.typeParameter!==t||e.nameType!==r||e.questionToken!==o||e.type!==i||e.members!==a?wo(qe(n,t,r,o,i,a),e):e},createLiteralTypeNode:Je,updateLiteralTypeNode:function(e,n){return e.literal!==n?wo(Je(n),e):e},createTemplateLiteralType:Ve,updateTemplateLiteralType:function(e,n,t){return e.head!==n||e.templateSpans!==t?wo(Ve(n,t),e):e},createObjectBindingPattern:Xe,updateObjectBindingPattern:function(e,n){return e.elements!==n?wo(Xe(n),e):e},createArrayBindingPattern:$e,updateArrayBindingPattern:function(e,n){return e.elements!==n?wo($e(n),e):e},createBindingElement:Qe,updateBindingElement:function(e,n,t,r,o){return e.propertyName!==t||e.dotDotDotToken!==n||e.name!==r||e.initializer!==o?wo(Qe(n,t,r,o),e):e},createArrayLiteralExpression:Ze,updateArrayLiteralExpression:function(e,n){return e.elements!==n?wo(Ze(n,e.multiLine),e):e},createObjectLiteralExpression:en,updateObjectLiteralExpression:function(e,n){return e.properties!==n?wo(en(n,e.multiLine),e):e},createPropertyAccessExpression:4&e?(e,n)=>xR(rn(e,n),262144):rn,updatePropertyAccessExpression:function(e,n,t){if(gc(e))return ln(e,n,e.questionDotToken,nn(t,dD));return e.expression!==n||e.name!==t?wo(rn(n,t),e):e},createPropertyAccessChain:4&e?(e,n,t)=>xR(an(e,n,t),262144):an,updatePropertyAccessChain:ln,createElementAccessExpression:dn,updateElementAccessExpression:function(e,n,t){if(yc(e))return mn(e,n,e.questionDotToken,t);return e.expression!==n||e.argumentExpression!==t?wo(dn(n,t),e):e},createElementAccessChain:un,updateElementAccessChain:mn,createCallExpression:_n,updateCallExpression:function(e,n,t,r){if(vc(e))return yn(e,n,e.questionDotToken,t,r);return e.expression!==n||e.typeArguments!==t||e.arguments!==r?wo(_n(n,t,r),e):e},createCallChain:gn,updateCallChain:yn,createNewExpression:vn,updateNewExpression:function(e,n,t,r){return e.expression!==n||e.typeArguments!==t||e.arguments!==r?wo(vn(n,t,r),e):e},createTaggedTemplateExpression:bn,updateTaggedTemplateExpression:function(e,n,t,r){return e.tag!==n||e.typeArguments!==t||e.template!==r?wo(bn(n,t,r),e):e},createTypeAssertion:Tn,updateTypeAssertion:Sn,createParenthesizedExpression:En,updateParenthesizedExpression:An,createFunctionExpression:xn,updateFunctionExpression:Rn,createArrowFunction:In,updateArrowFunction:Dn,createDeleteExpression:Cn,updateDeleteExpression:function(e,n){return e.expression!==n?wo(Cn(n),e):e},createTypeOfExpression:Nn,updateTypeOfExpression:function(e,n){return e.expression!==n?wo(Nn(n),e):e},createVoidExpression:Mn,updateVoidExpression:function(e,n){return e.expression!==n?wo(Mn(n),e):e},createAwaitExpression:Pn,updateAwaitExpression:function(e,n){return e.expression!==n?wo(Pn(n),e):e},createPrefixUnaryExpression:Ln,updatePrefixUnaryExpression:function(e,n){return e.operand!==n?wo(Ln(e.operator,n),e):e},createPostfixUnaryExpression:kn,updatePostfixUnaryExpression:function(e,n){return e.operand!==n?wo(kn(n,e.operator),e):e},createBinaryExpression:wn,updateBinaryExpression:function(e,n,t,r){return e.left!==n||e.operatorToken!==t||e.right!==r?wo(wn(n,t,r),e):e},createConditionalExpression:Fn,updateConditionalExpression:function(e,n,t,r,o,i){return e.condition!==n||e.questionToken!==t||e.whenTrue!==r||e.colonToken!==o||e.whenFalse!==i?wo(Fn(n,t,r,o,i),e):e},createTemplateExpression:Wn,updateTemplateExpression:function(e,n,t){return e.head!==n||e.templateSpans!==t?wo(Wn(n,t),e):e},createTemplateHead:function(e,n,t){return Vn(16,e=zn(16,e,n,t),n,t)},createTemplateMiddle:function(e,n,t){return Vn(17,e=zn(16,e,n,t),n,t)},createTemplateTail:function(e,n,t){return Vn(18,e=zn(16,e,n,t),n,t)},createNoSubstitutionTemplateLiteral:function(e,n,t){return Gn(15,e=zn(16,e,n,t),n,t)},createTemplateLiteralLikeNode:Vn,createYieldExpression:jn,updateYieldExpression:function(e,n,t){return e.expression!==t||e.asteriskToken!==n?wo(jn(n,t),e):e},createSpreadElement:Un,updateSpreadElement:function(e,n){return e.expression!==n?wo(Un(n),e):e},createClassExpression:Hn,updateClassExpression:Kn,createOmittedExpression:function(){return S(233)},createExpressionWithTypeArguments:qn,updateExpressionWithTypeArguments:Jn,createAsExpression:Yn,updateAsExpression:$n,createNonNullExpression:Qn,updateNonNullExpression:Zn,createSatisfiesExpression:et,updateSatisfiesExpression:nt,createNonNullChain:tt,updateNonNullChain:rt,createMetaProperty:ot,updateMetaProperty:function(e,n){return e.name!==n?wo(ot(e.keywordToken,n),e):e},createTemplateSpan:it,updateTemplateSpan:function(e,n,t){return e.expression!==n||e.literal!==t?wo(it(n,t),e):e},createSemicolonClassElement:function(){const e=S(241);return e.transformFlags|=1024,e},createBlock:at,updateBlock:function(e,n){return e.statements!==n?wo(at(n,e.multiLine),e):e},createVariableStatement:st,updateVariableStatement:lt,createEmptyStatement:ct,createExpressionStatement:ut,updateExpressionStatement:function(e,n){return e.expression!==n?wo(ut(n),e):e},createIfStatement:pt,updateIfStatement:function(e,n,t,r){return e.expression!==n||e.thenStatement!==t||e.elseStatement!==r?wo(pt(n,t,r),e):e},createDoStatement:ft,updateDoStatement:function(e,n,t){return e.statement!==n||e.expression!==t?wo(ft(n,t),e):e},createWhileStatement:mt,updateWhileStatement:function(e,n,t){return e.expression!==n||e.statement!==t?wo(mt(n,t),e):e},createForStatement:ht,updateForStatement:function(e,n,t,r,o){return e.initializer!==n||e.condition!==t||e.incrementor!==r||e.statement!==o?wo(ht(n,t,r,o),e):e},createForInStatement:_t,updateForInStatement:function(e,n,t,r){return e.initializer!==n||e.expression!==t||e.statement!==r?wo(_t(n,t,r),e):e},createForOfStatement:gt,updateForOfStatement:function(e,n,t,r,o){return e.awaitModifier!==n||e.initializer!==t||e.expression!==r||e.statement!==o?wo(gt(n,t,r,o),e):e},createContinueStatement:yt,updateContinueStatement:function(e,n){return e.label!==n?wo(yt(n),e):e},createBreakStatement:vt,updateBreakStatement:function(e,n){return e.label!==n?wo(vt(n),e):e},createReturnStatement:bt,updateReturnStatement:function(e,n){return e.expression!==n?wo(bt(n),e):e},createWithStatement:Tt,updateWithStatement:function(e,n,t){return e.expression!==n||e.statement!==t?wo(Tt(n,t),e):e},createSwitchStatement:St,updateSwitchStatement:function(e,n,t){return e.expression!==n||e.caseBlock!==t?wo(St(n,t),e):e},createLabeledStatement:Et,updateLabeledStatement:At,createThrowStatement:xt,updateThrowStatement:function(e,n){return e.expression!==n?wo(xt(n),e):e},createTryStatement:Rt,updateTryStatement:function(e,n,t,r){return e.tryBlock!==n||e.catchClause!==t||e.finallyBlock!==r?wo(Rt(n,t,r),e):e},createDebuggerStatement:function(){const e=S(260);return e.jsDoc=void 0,e.flowNode=void 0,e},createVariableDeclaration:It,updateVariableDeclaration:function(e,n,t,r,o){return e.name!==n||e.type!==r||e.exclamationToken!==t||e.initializer!==o?wo(It(n,t,r,o),e):e},createVariableDeclarationList:Dt,updateVariableDeclarationList:function(e,n){return e.declarations!==n?wo(Dt(n,e.flags),e):e},createFunctionDeclaration:Ct,updateFunctionDeclaration:Nt,createClassDeclaration:Mt,updateClassDeclaration:Pt,createInterfaceDeclaration:Lt,updateInterfaceDeclaration:kt,createTypeAliasDeclaration:wt,updateTypeAliasDeclaration:Ot,createEnumDeclaration:Ft,updateEnumDeclaration:Wt,createModuleDeclaration:zt,updateModuleDeclaration:Bt,createModuleBlock:Gt,updateModuleBlock:function(e,n){return e.statements!==n?wo(Gt(n),e):e},createCaseBlock:Vt,updateCaseBlock:function(e,n){return e.clauses!==n?wo(Vt(n),e):e},createNamespaceExportDeclaration:jt,updateNamespaceExportDeclaration:function(e,n){return e.name!==n?function(e,n){e!==n&&(e.modifiers=n.modifiers);return wo(e,n)}(jt(n),e):e},createImportEqualsDeclaration:Ut,updateImportEqualsDeclaration:Ht,createImportDeclaration:Kt,updateImportDeclaration:qt,createImportClause:Jt,updateImportClause:function(e,n,t,r){"boolean"==typeof n&&(n=n?156:void 0);return e.phaseModifier!==n||e.name!==t||e.namedBindings!==r?wo(Jt(n,t,r),e):e},createAssertClause:Xt,updateAssertClause:function(e,n,t){return e.elements!==n||e.multiLine!==t?wo(Xt(n,t),e):e},createAssertEntry:Yt,updateAssertEntry:function(e,n,t){return e.name!==n||e.value!==t?wo(Yt(n,t),e):e},createImportTypeAssertionContainer:$t,updateImportTypeAssertionContainer:function(e,n,t){return e.assertClause!==n||e.multiLine!==t?wo($t(n,t),e):e},createImportAttributes:Qt,updateImportAttributes:function(e,n,t){return e.elements!==n||e.multiLine!==t?wo(Qt(n,t,e.token),e):e},createImportAttribute:Zt,updateImportAttribute:function(e,n,t){return e.name!==n||e.value!==t?wo(Zt(n,t),e):e},createNamespaceImport:er,updateNamespaceImport:function(e,n){return e.name!==n?wo(er(n),e):e},createNamespaceExport:nr,updateNamespaceExport:function(e,n){return e.name!==n?wo(nr(n),e):e},createNamedImports:tr,updateNamedImports:function(e,n){return e.elements!==n?wo(tr(n),e):e},createImportSpecifier:rr,updateImportSpecifier:function(e,n,t,r){return e.isTypeOnly!==n||e.propertyName!==t||e.name!==r?wo(rr(n,t,r),e):e},createExportAssignment:or,updateExportAssignment:ir,createExportDeclaration:ar,updateExportDeclaration:sr,createNamedExports:lr,updateNamedExports:function(e,n){return e.elements!==n?wo(lr(n),e):e},createExportSpecifier:cr,updateExportSpecifier:function(e,n,t,r){return e.isTypeOnly!==n||e.propertyName!==t||e.name!==r?wo(cr(n,t,r),e):e},createMissingDeclaration:function(){const e=E(283);return e.jsDoc=void 0,e},createExternalModuleReference:dr,updateExternalModuleReference:function(e,n){return e.expression!==n?wo(dr(n),e):e},get createJSDocAllType(){return c(313)},get createJSDocUnknownType(){return c(314)},get createJSDocNonNullableType(){return f(316)},get updateJSDocNonNullableType(){return m(316)},get createJSDocNullableType(){return f(315)},get updateJSDocNullableType(){return m(315)},get createJSDocOptionalType(){return u(317)},get updateJSDocOptionalType(){return p(317)},get createJSDocVariadicType(){return u(319)},get updateJSDocVariadicType(){return p(319)},get createJSDocNamepathType(){return u(320)},get updateJSDocNamepathType(){return p(320)},createJSDocFunctionType:fr,updateJSDocFunctionType:function(e,n,t){return e.parameters!==n||e.type!==t?wo(fr(n,t),e):e},createJSDocTypeLiteral:mr,updateJSDocTypeLiteral:function(e,n,t){return e.jsDocPropertyTags!==n||e.isArrayType!==t?wo(mr(n,t),e):e},createJSDocTypeExpression:hr,updateJSDocTypeExpression:function(e,n){return e.type!==n?wo(hr(n),e):e},createJSDocSignature:_r,updateJSDocSignature:function(e,n,t,r){return e.typeParameters!==n||e.parameters!==t||e.type!==r?wo(_r(n,t,r),e):e},createJSDocTemplateTag:br,updateJSDocTemplateTag:function(e,n=gr(e),t,r,o){return e.tagName!==n||e.constraint!==t||e.typeParameters!==r||e.comment!==o?wo(br(n,t,r,o),e):e},createJSDocTypedefTag:Tr,updateJSDocTypedefTag:function(e,n=gr(e),t,r,o){return e.tagName!==n||e.typeExpression!==t||e.fullName!==r||e.comment!==o?wo(Tr(n,t,r,o),e):e},createJSDocParameterTag:Sr,updateJSDocParameterTag:function(e,n=gr(e),t,r,o,i,a){return e.tagName!==n||e.name!==t||e.isBracketed!==r||e.typeExpression!==o||e.isNameFirst!==i||e.comment!==a?wo(Sr(n,t,r,o,i,a),e):e},createJSDocPropertyTag:Er,updateJSDocPropertyTag:function(e,n=gr(e),t,r,o,i,a){return e.tagName!==n||e.name!==t||e.isBracketed!==r||e.typeExpression!==o||e.isNameFirst!==i||e.comment!==a?wo(Er(n,t,r,o,i,a),e):e},createJSDocCallbackTag:Ar,updateJSDocCallbackTag:function(e,n=gr(e),t,r,o){return e.tagName!==n||e.typeExpression!==t||e.fullName!==r||e.comment!==o?wo(Ar(n,t,r,o),e):e},createJSDocOverloadTag:xr,updateJSDocOverloadTag:function(e,n=gr(e),t,r){return e.tagName!==n||e.typeExpression!==t||e.comment!==r?wo(xr(n,t,r),e):e},createJSDocAugmentsTag:Rr,updateJSDocAugmentsTag:function(e,n=gr(e),t,r){return e.tagName!==n||e.class!==t||e.comment!==r?wo(Rr(n,t,r),e):e},createJSDocImplementsTag:Ir,updateJSDocImplementsTag:function(e,n=gr(e),t,r){return e.tagName!==n||e.class!==t||e.comment!==r?wo(Ir(n,t,r),e):e},createJSDocSeeTag:Dr,updateJSDocSeeTag:function(e,n,t,r){return e.tagName!==n||e.name!==t||e.comment!==r?wo(Dr(n,t,r),e):e},createJSDocImportTag:Wr,updateJSDocImportTag:function(e,n,t,r,o,i){return e.tagName!==n||e.comment!==i||e.importClause!==t||e.moduleSpecifier!==r||e.attributes!==o?wo(Wr(n,t,r,o,i),e):e},createJSDocNameReference:Cr,updateJSDocNameReference:function(e,n){return e.name!==n?wo(Cr(n),e):e},createJSDocMemberName:Nr,updateJSDocMemberName:function(e,n,t){return e.left!==n||e.right!==t?wo(Nr(n,t),e):e},createJSDocLink:Mr,updateJSDocLink:function(e,n,t){return e.name!==n?wo(Mr(n,t),e):e},createJSDocLinkCode:Pr,updateJSDocLinkCode:function(e,n,t){return e.name!==n?wo(Pr(n,t),e):e},createJSDocLinkPlain:Lr,updateJSDocLinkPlain:function(e,n,t){return e.name!==n?wo(Lr(n,t),e):e},get createJSDocTypeTag(){return y(345)},get updateJSDocTypeTag(){return v(345)},get createJSDocReturnTag(){return y(343)},get updateJSDocReturnTag(){return v(343)},get createJSDocThisTag(){return y(344)},get updateJSDocThisTag(){return v(344)},get createJSDocAuthorTag(){return h(331)},get updateJSDocAuthorTag(){return _(331)},get createJSDocClassTag(){return h(333)},get updateJSDocClassTag(){return _(333)},get createJSDocPublicTag(){return h(334)},get updateJSDocPublicTag(){return _(334)},get createJSDocPrivateTag(){return h(335)},get updateJSDocPrivateTag(){return _(335)},get createJSDocProtectedTag(){return h(336)},get updateJSDocProtectedTag(){return _(336)},get createJSDocReadonlyTag(){return h(337)},get updateJSDocReadonlyTag(){return _(337)},get createJSDocOverrideTag(){return h(338)},get updateJSDocOverrideTag(){return _(338)},get createJSDocDeprecatedTag(){return h(332)},get updateJSDocDeprecatedTag(){return _(332)},get createJSDocThrowsTag(){return y(350)},get updateJSDocThrowsTag(){return v(350)},get createJSDocSatisfiesTag(){return y(351)},get updateJSDocSatisfiesTag(){return v(351)},createJSDocEnumTag:Fr,updateJSDocEnumTag:function(e,n=gr(e),t,r){return e.tagName!==n||e.typeExpression!==t||e.comment!==r?wo(Fr(n,t,r),e):e},createJSDocUnknownTag:Or,updateJSDocUnknownTag:function(e,n,t){return e.tagName!==n||e.comment!==t?wo(Or(n,t),e):e},createJSDocText:zr,updateJSDocText:function(e,n){return e.text!==n?wo(zr(n),e):e},createJSDocComment:Br,updateJSDocComment:function(e,n,t){return e.comment!==n||e.tags!==t?wo(Br(n,t),e):e},createJsxElement:Gr,updateJsxElement:function(e,n,t,r){return e.openingElement!==n||e.children!==t||e.closingElement!==r?wo(Gr(n,t,r),e):e},createJsxSelfClosingElement:Vr,updateJsxSelfClosingElement:function(e,n,t,r){return e.tagName!==n||e.typeArguments!==t||e.attributes!==r?wo(Vr(n,t,r),e):e},createJsxOpeningElement:jr,updateJsxOpeningElement:function(e,n,t,r){return e.tagName!==n||e.typeArguments!==t||e.attributes!==r?wo(jr(n,t,r),e):e},createJsxClosingElement:Ur,updateJsxClosingElement:function(e,n){return e.tagName!==n?wo(Ur(n),e):e},createJsxFragment:Hr,createJsxText:Kr,updateJsxText:function(e,n,t){return e.text!==n||e.containsOnlyTriviaWhiteSpaces!==t?wo(Kr(n,t),e):e},createJsxOpeningFragment:function(){const e=S(290);return e.transformFlags|=2,e},createJsxJsxClosingFragment:function(){const e=S(291);return e.transformFlags|=2,e},updateJsxFragment:function(e,n,t,r){return e.openingFragment!==n||e.children!==t||e.closingFragment!==r?wo(Hr(n,t,r),e):e},createJsxAttribute:qr,updateJsxAttribute:function(e,n,t){return e.name!==n||e.initializer!==t?wo(qr(n,t),e):e},createJsxAttributes:Jr,updateJsxAttributes:function(e,n){return e.properties!==n?wo(Jr(n),e):e},createJsxSpreadAttribute:Xr,updateJsxSpreadAttribute:function(e,n){return e.expression!==n?wo(Xr(n),e):e},createJsxExpression:Yr,updateJsxExpression:function(e,n){return e.expression!==n?wo(Yr(e.dotDotDotToken,n),e):e},createJsxNamespacedName:$r,updateJsxNamespacedName:function(e,n,t){return e.namespace!==n||e.name!==t?wo($r(n,t),e):e},createCaseClause:Qr,updateCaseClause:function(e,n,t){return e.expression!==n||e.statements!==t?wo(Qr(n,t),e):e},createDefaultClause:Zr,updateDefaultClause:function(e,n){return e.statements!==n?wo(Zr(n),e):e},createHeritageClause:eo,updateHeritageClause:function(e,n){return e.types!==n?wo(eo(e.token,n),e):e},createCatchClause:no,updateCatchClause:function(e,n,t){return e.variableDeclaration!==n||e.block!==t?wo(no(n,t),e):e},createPropertyAssignment:to,updatePropertyAssignment:ro,createShorthandPropertyAssignment:oo,updateShorthandPropertyAssignment:function(e,n,t){return e.name!==n||e.objectAssignmentInitializer!==t?function(e,n){e!==n&&(e.modifiers=n.modifiers,e.questionToken=n.questionToken,e.exclamationToken=n.exclamationToken,e.equalsToken=n.equalsToken);return wo(e,n)}(oo(n,t),e):e},createSpreadAssignment:io,updateSpreadAssignment:function(e,n){return e.expression!==n?wo(io(n),e):e},createEnumMember:ao,updateEnumMember:function(e,n,t){return e.name!==n||e.initializer!==t?wo(ao(n,t),e):e},createSourceFile:function(e,t,r){const o=n.createBaseSourceFileNode(308);return o.statements=T(e),o.endOfFileToken=t,o.flags|=r,o.text="",o.fileName="",o.path="",o.resolvedPath="",o.originalFileName="",o.languageVersion=1,o.languageVariant=0,o.scriptKind=0,o.isDeclarationFile=!1,o.hasNoDefaultLib=!1,o.transformFlags|=mR(o.statements)|fR(o.endOfFileToken),o.locals=void 0,o.nextContainer=void 0,o.endFlowNode=void 0,o.nodeCount=0,o.identifierCount=0,o.symbolCount=0,o.parseDiagnostics=void 0,o.bindDiagnostics=void 0,o.bindSuggestionDiagnostics=void 0,o.lineMap=void 0,o.externalModuleIndicator=void 0,o.setExternalModuleIndicator=void 0,o.pragmas=void 0,o.checkJsDirective=void 0,o.referencedFiles=void 0,o.typeReferenceDirectives=void 0,o.libReferenceDirectives=void 0,o.amdDependencies=void 0,o.commentDirectives=void 0,o.identifiers=void 0,o.packageJsonLocations=void 0,o.packageJsonScope=void 0,o.imports=void 0,o.moduleAugmentations=void 0,o.ambientModuleNames=void 0,o.classifiableNames=void 0,o.impliedNodeFormat=void 0,o},updateSourceFile:function(e,n,t=e.isDeclarationFile,r=e.referencedFiles,o=e.typeReferenceDirectives,i=e.hasNoDefaultLib,a=e.libReferenceDirectives){return e.statements!==n||e.isDeclarationFile!==t||e.referencedFiles!==r||e.typeReferenceDirectives!==o||e.hasNoDefaultLib!==i||e.libReferenceDirectives!==a?wo(function(e,n,t,r,o,i,a){const s=lo(e);return s.statements=T(n),s.isDeclarationFile=t,s.referencedFiles=r,s.typeReferenceDirectives=o,s.hasNoDefaultLib=i,s.libReferenceDirectives=a,s.transformFlags=mR(s.statements)|fR(s.endOfFileToken),s}(e,n,t,r,o,i,a),e):e},createRedirectedSourceFile:so,createBundle:co,updateBundle:function(e,n){return e.sourceFiles!==n?wo(co(n),e):e},createSyntheticExpression:function(e,n=!1,t){const r=S(238);return r.type=e,r.isSpread=n,r.tupleNameSource=t,r},createSyntaxList:function(e){const n=S(353);return n._children=e,n},createNotEmittedStatement:function(e){const n=S(354);return n.original=e,DL(n,e),n},createNotEmittedTypeElement:function(){return S(355)},createPartiallyEmittedExpression:uo,updatePartiallyEmittedExpression:po,createCommaListExpression:mo,updateCommaListExpression:function(e,n){return e.elements!==n?wo(mo(n),e):e},createSyntheticReferenceExpression:ho,updateSyntheticReferenceExpression:function(e,n,t){return e.expression!==n||e.thisArg!==t?wo(ho(n,t),e):e},cloneNode:_o,get createComma(){return i(28)},get createAssignment(){return i(64)},get createLogicalOr(){return i(57)},get createLogicalAnd(){return i(56)},get createBitwiseOr(){return i(52)},get createBitwiseXor(){return i(53)},get createBitwiseAnd(){return i(51)},get createStrictEquality(){return i(37)},get createStrictInequality(){return i(38)},get createEquality(){return i(35)},get createInequality(){return i(36)},get createLessThan(){return i(30)},get createLessThanEquals(){return i(33)},get createGreaterThan(){return i(32)},get createGreaterThanEquals(){return i(34)},get createLeftShift(){return i(48)},get createRightShift(){return i(49)},get createUnsignedRightShift(){return i(50)},get createAdd(){return i(40)},get createSubtract(){return i(41)},get createMultiply(){return i(42)},get createDivide(){return i(44)},get createModulo(){return i(45)},get createExponent(){return i(43)},get createPrefixPlus(){return a(40)},get createPrefixMinus(){return a(41)},get createPrefixIncrement(){return a(46)},get createPrefixDecrement(){return a(47)},get createBitwiseNot(){return a(55)},get createLogicalNot(){return a(54)},get createPostfixIncrement(){return l(46)},get createPostfixDecrement(){return l(47)},createImmediatelyInvokedFunctionExpression:function(e,n,t){return _n(xn(void 0,void 0,void 0,void 0,n?[n]:[],void 0,at(e,!0)),void 0,t?[t]:[])},createImmediatelyInvokedArrowFunction:function(e,n,t){return _n(In(void 0,void 0,n?[n]:[],void 0,void 0,at(e,!0)),void 0,t?[t]:[])},createVoidZero:go,createExportDefault:function(e){return or(void 0,!1,e)},createExternalModuleExport:function(e){return ar(void 0,!1,lr([cr(!1,void 0,e)]))},createTypeCheck:function(e,n){return"null"===n?b.createStrictEquality(e,G()):"undefined"===n?b.createStrictEquality(e,go()):b.createStrictEquality(Nn(e),D(n))},createIsNotTypeCheck:function(e,n){return"null"===n?b.createStrictInequality(e,G()):"undefined"===n?b.createStrictInequality(e,go()):b.createStrictInequality(Nn(e),D(n))},createMethodCall:yo,createGlobalMethodCall:vo,createFunctionBindCall:function(e,n,t){return yo(e,"bind",[n,...t])},createFunctionCallCall:function(e,n,t){return yo(e,"call",[n,...t])},createFunctionApplyCall:function(e,n,t){return yo(e,"apply",[n,t])},createArraySliceCall:function(e,n){return yo(e,"slice",void 0===n?[]:[Po(n)])},createArrayConcatCall:function(e,n){return yo(e,"concat",n)},createObjectDefinePropertyCall:function(e,n,t){return vo("Object","defineProperty",[e,Po(n),t])},createObjectGetOwnPropertyDescriptorCall:function(e,n){return vo("Object","getOwnPropertyDescriptor",[e,Po(n)])},createReflectGetCall:function(e,n,t){return vo("Reflect","get",t?[e,n,t]:[e,n])},createReflectSetCall:function(e,n,t,r){return vo("Reflect","set",r?[e,n,t,r]:[e,n,t])},createPropertyDescriptor:function(e,n){const t=[];bo(t,"enumerable",Po(e.enumerable)),bo(t,"configurable",Po(e.configurable));let r=bo(t,"writable",Po(e.writable));r=bo(t,"value",e.value)||r;let o=bo(t,"get",e.get);return o=bo(t,"set",e.set)||o,dt.assert(!(r&&o),"A PropertyDescriptor may not be both an accessor descriptor and a data descriptor."),en(t,!n)},createCallBinding:function(e,n,t,o=!1){const i=MP(e,63);let a,s;ch(i)?(a=B(),s=i):SD(i)?(a=B(),s=void 0!==t&&t<2?DL(P("_super"),i):i):8192&tf(i)?(a=go(),s=r().parenthesizeLeftSideOfAccess(i,!1)):_C(i)?To(i.expression,o)?(a=L(n),s=rn(DL(b.createAssignment(a,i.expression),i.expression),i.name),DL(s,i)):(a=i.expression,s=i):gC(i)?To(i.expression,o)?(a=L(n),s=dn(DL(b.createAssignment(a,i.expression),i.expression),i.argumentExpression),DL(s,i)):(a=i.expression,s=i):(a=go(),s=r().parenthesizeLeftSideOfAccess(e,!1));return{target:s,thisArg:a}},createAssignmentTargetWrapper:function(e,n){return rn(En(en([me(void 0,"value",[$(void 0,void 0,e,void 0,void 0,void 0)],at([ut(n)]))])),"value")},inlineExpressions:function(e){return e.length>10?mo(e):xe(e,b.createComma)},getInternalName:function(e,n,t){return So(e,n,t,98304)},getLocalName:function(e,n,t,r){return So(e,n,t,32768,r)},getExportName:Eo,getDeclarationName:function(e,n,t){return So(e,n,t)},getNamespaceMemberName:Ao,getExternalModuleOrNamespaceExportName:function(e,n,t,r){if(e&&Mv(n,32))return Ao(e,So(n),t,r);return Eo(n,t,r)},restoreOuterExpressions:function e(n,t,r=63){if(n&&NP(n,r)&&(o=n,!(SC(o)&&ry(o)&&ry(CR(o))&&ry(wR(o)))||U(FR(o))||U(BR(o))))return function(e,n){switch(e.kind){case 218:return An(e,n);case 217:return Sn(e,e.type,n);case 235:return $n(e,n,e.type);case 239:return nt(e,n,e.type);case 236:return Zn(e,n);case 234:return Jn(e,n,e.typeArguments);case 356:return po(e,n)}}(n,e(n.expression,t));var o;return t},restoreEnclosingLabel:function e(n,t,r){if(!t)return n;const o=At(t,t.label,cN(t.statement)?e(n,t.statement):n);r&&r(t);return o},createUseStrictPrologue:Ro,copyPrologue:function(e,n,t,r){const o=Io(e,n,0,t);return Do(e,n,o,r)},copyStandardPrologue:Io,copyCustomPrologue:Do,ensureUseStrict:function(e){if(!AP(e))return DL(T([Ro(),...e]),e);return e},liftToBlock:function(e){return dt.assert(g(e,gu),"Cannot lift nodes to a Block."),ve(e)||at(e)},mergeLexicalEnvironment:function(e,n){if(!U(n))return e;const t=Co(e,_m,0),r=Co(e,ym,t),o=Co(e,bm,r),i=Co(n,_m,0),a=Co(n,ym,i),s=Co(n,bm,a),l=Co(n,gm,s);dt.assert(l===n.length,"Expected declarations to be valid standard or custom prologues");const c=kc(e)?e.slice():e;l>s&&c.splice(o,0,...n.slice(s,l));s>a&&c.splice(r,0,...n.slice(a,s));a>i&&c.splice(t,0,...n.slice(i,a));if(i>0)if(0===t)c.splice(0,0,...n.slice(0,i));else{const r=new Map;for(let n=0;n<t;n++){const t=e[n];r.set(t.expression.text,!0)}for(let e=i-1;e>=0;e--){const t=n[e];r.has(t.expression.text)||c.unshift(t)}}if(kc(e))return DL(T(c,e.hasTrailingComma),e);return e},replaceModifiers:function(e,n){let t;t="number"==typeof n?K(n):n;return ID(e)?Y(e,t,e.name,e.constraint,e.default):DD(e)?Q(e,t,e.dotDotDotToken,e.name,e.questionToken,e.type,e.initializer):UD(e)?Ne(e,t,e.typeParameters,e.parameters,e.type):ND(e)?ne(e,t,e.name,e.questionToken,e.type):MD(e)?oe(e,t,e.name,e.questionToken??e.exclamationToken,e.type,e.initializer):PD(e)?ae(e,t,e.name,e.questionToken,e.typeParameters,e.parameters,e.type):LD(e)?le(e,t,e.asteriskToken,e.name,e.questionToken,e.typeParameters,e.parameters,e.type,e.body):wD(e)?ue(e,t,e.parameters,e.body):OD(e)?fe(e,t,e.name,e.parameters,e.type,e.body):FD(e)?he(e,t,e.name,e.parameters,e.body):BD(e)?Te(e,t,e.parameters,e.type):EC(e)?Rn(e,t,e.asteriskToken,e.name,e.typeParameters,e.parameters,e.type,e.body):AC(e)?Dn(e,t,e.typeParameters,e.parameters,e.type,e.equalsGreaterThanToken,e.body):OC(e)?Kn(e,t,e.name,e.typeParameters,e.heritageClauses,e.members):XC(e)?lt(e,t,e.declarationList):hN(e)?Nt(e,t,e.asteriskToken,e.name,e.typeParameters,e.parameters,e.type,e.body):_N(e)?Pt(e,t,e.name,e.typeParameters,e.heritageClauses,e.members):gN(e)?kt(e,t,e.name,e.typeParameters,e.heritageClauses,e.members):yN(e)?Ot(e,t,e.name,e.typeParameters,e.type):vN(e)?Wt(e,t,e.name,e.members):bN(e)?Bt(e,t,e.name,e.body):AN(e)?Ht(e,t,e.isTypeOnly,e.name,e.moduleReference):xN(e)?qt(e,t,e.importClause,e.moduleSpecifier,e.attributes):ON(e)?ir(e,t,e.expression):FN(e)?sr(e,t,e.isTypeOnly,e.exportClause,e.moduleSpecifier,e.attributes):dt.assertNever(e)},replaceDecoratorsAndModifiers:function(e,n){return DD(e)?Q(e,n,e.dotDotDotToken,e.name,e.questionToken,e.type,e.initializer):MD(e)?oe(e,n,e.name,e.questionToken??e.exclamationToken,e.type,e.initializer):LD(e)?le(e,n,e.asteriskToken,e.name,e.questionToken,e.typeParameters,e.parameters,e.type,e.body):OD(e)?fe(e,n,e.name,e.parameters,e.type,e.body):FD(e)?he(e,n,e.name,e.parameters,e.body):OC(e)?Kn(e,n,e.name,e.typeParameters,e.heritageClauses,e.members):_N(e)?Pt(e,n,e.name,e.typeParameters,e.heritageClauses,e.members):dt.assertNever(e)},replacePropertyName:function(e,n){switch(e.kind){case 178:return fe(e,e.modifiers,n,e.parameters,e.type,e.body);case 179:return he(e,e.modifiers,n,e.parameters,e.body);case 175:return le(e,e.modifiers,e.asteriskToken,n,e.questionToken,e.typeParameters,e.parameters,e.type,e.body);case 174:return ae(e,e.modifiers,n,e.questionToken,e.typeParameters,e.parameters,e.type);case 173:return oe(e,e.modifiers,n,e.questionToken??e.exclamationToken,e.type,e.initializer);case 172:return ne(e,e.modifiers,n,e.questionToken,e.type);case 304:return ro(e,n,e.initializer)}}};return d(aR,e=>e(b)),b;function T(e,n){if(void 0===e||e===s)e=[];else if(kc(e)){if(void 0===n||e.hasTrailingComma===n)return void 0===e.transformFlags&&hR(e),dt.attachNodeArrayDebugInfo(e),e;const t=e.slice();return t.pos=e.pos,t.end=e.end,t.hasTrailingComma=n,t.transformFlags=e.transformFlags,dt.attachNodeArrayDebugInfo(t),t}const t=e.length,r=t>=1&&t<=4?e.slice():e;return r.pos=-1,r.end=-1,r.hasTrailingComma=!!n,r.transformFlags=0,hR(r),dt.attachNodeArrayDebugInfo(r),r}function S(e){return n.createBaseNode(e)}function E(e){const n=S(e);return n.symbol=void 0,n.localSymbol=void 0,n}function A(e,n){return e!==n&&(e.typeArguments=n.typeArguments),wo(e,n)}function x(e,n=0){const t="number"==typeof e?e+"":e;dt.assert(45!==t.charCodeAt(0),"Negative numbers should be created in combination with createPrefixUnaryExpression");const r=E(9);return r.text=t,r.numericLiteralFlags=n,384&n&&(r.transformFlags|=1024),r}function R(e){const n=W(10);return n.text="string"==typeof e?e:bA(e)+"n",n.transformFlags|=32,n}function I(e,n){const t=E(11);return t.text=e,t.singleQuote=n,t}function D(e,n,t){const r=I(e,n);return r.hasExtendedUnicodeEscape=t,t&&(r.transformFlags|=1024),r}function C(e){const n=W(14);return n.text=e,n}function N(e){const t=n.createBaseIdentifierNode(80);return t.escapedText=e,t.jsDoc=void 0,t.flowNode=void 0,t.symbol=void 0,t}function M(e,n,t,r){const o=N(gl(e));return oI(o,{flags:n,id:oR,prefix:t,suffix:r}),oR++,o}function P(e,n,t){void 0===n&&e&&(n=La(e)),80===n&&(n=void 0);const r=N(gl(e));return t&&(r.flags|=256),"await"===r.escapedText&&(r.transformFlags|=67108864),256&r.flags&&(r.transformFlags|=1024),r}function L(e,n,t,r){let o=1;n&&(o|=8);const i=M("",o,t,r);return e&&e(i),i}function k(e,n=0,t,r){dt.assert(!(7&n),"Argument out of range: flags");(t||r)&&(n|=16);const o=M(e?hc(e)?bL(!1,t,e,r,vl):`generated@${cB(e)}`:"",4|n,t,r);return o.original=e,o}function O(e){const t=n.createBasePrivateIdentifierNode(81);return t.escapedText=e,t.transformFlags|=16777216,t}function F(e,n,t,r){const o=O(gl(e));return oI(o,{flags:n,id:oR,prefix:t,suffix:r}),oR++,o}function W(e){return n.createBaseTokenNode(e)}function z(e){dt.assert(e>=0&&e<=166,"Invalid token"),dt.assert(e<=15||e>=18,"Invalid token. Use 'createTemplateLiteralLikeNode' to create template literals."),dt.assert(e<=9||e>=15,"Invalid token. Use 'createLiteralLikeNode' to create literals."),dt.assert(80!==e,"Invalid token. Use 'createIdentifier' to create identifiers");const n=W(e);let t=0;switch(e){case 134:t=384;break;case 160:t=4;break;case 125:case 123:case 124:case 148:case 128:case 138:case 87:case 133:case 150:case 163:case 146:case 151:case 103:case 147:case 164:case 154:case 136:case 155:case 116:case 159:case 157:t=1;break;case 108:t=134218752,n.flowNode=void 0;break;case 126:t=1024;break;case 129:t=16777216;break;case 110:t=16384,n.flowNode=void 0}return t&&(n.transformFlags|=t),n}function B(){return z(110)}function G(){return z(106)}function V(){return z(112)}function j(){return z(97)}function H(e){return z(e)}function K(e){const n=[];return 32&e&&n.push(H(95)),128&e&&n.push(H(138)),2048&e&&n.push(H(90)),4096&e&&n.push(H(87)),1&e&&n.push(H(125)),2&e&&n.push(H(123)),4&e&&n.push(H(124)),64&e&&n.push(H(128)),256&e&&n.push(H(126)),16&e&&n.push(H(164)),8&e&&n.push(H(148)),512&e&&n.push(H(129)),1024&e&&n.push(H(134)),8192&e&&n.push(H(103)),16384&e&&n.push(H(147)),n.length?n:void 0}function q(e,n){const t=S(167);return t.left=e,t.right=Mo(n),t.transformFlags|=fR(t.left)|pR(t.right),t.flowNode=void 0,t}function J(e){const n=S(168);return n.expression=r().parenthesizeExpressionOfComputedPropertyName(e),n.transformFlags|=132096|fR(n.expression),n}function X(e,n,t,r){const o=E(169);return o.modifiers=No(e),o.name=Mo(n),o.constraint=t,o.default=r,o.transformFlags=1,o.expression=void 0,o.jsDoc=void 0,o}function Y(e,n,t,r,o){return e.modifiers!==n||e.name!==t||e.constraint!==r||e.default!==o?wo(X(n,t,r,o),e):e}function $(e,n,t,r,o,i){const a=E(170);return a.modifiers=No(e),a.dotDotDotToken=n,a.name=Mo(t),a.questionToken=r,a.type=o,a.initializer=Lo(i),pv(a.name)?a.transformFlags=1:a.transformFlags=mR(a.modifiers)|fR(a.dotDotDotToken)|uR(a.name)|fR(a.questionToken)|fR(a.initializer)|(a.questionToken??a.type?1:0)|(a.dotDotDotToken??a.initializer?1024:0)|(31&Yv(a.modifiers)?8192:0),a.jsDoc=void 0,a}function Q(e,n,t,r,o,i,a){return e.modifiers!==n||e.dotDotDotToken!==t||e.name!==r||e.questionToken!==o||e.type!==i||e.initializer!==a?wo($(n,t,r,o,i,a),e):e}function Z(e){const n=S(171);return n.expression=r().parenthesizeLeftSideOfAccess(e,!1),n.transformFlags|=33562625|fR(n.expression),n}function ee(e,n,t,r){const o=E(172);return o.modifiers=No(e),o.name=Mo(n),o.type=r,o.questionToken=t,o.transformFlags=1,o.initializer=void 0,o.jsDoc=void 0,o}function ne(e,n,t,r,o){return e.modifiers!==n||e.name!==t||e.questionToken!==r||e.type!==o?function(e,n){e!==n&&(e.initializer=n.initializer);return wo(e,n)}(ee(n,t,r,o),e):e}function te(e,n,t,r,o){const i=E(173);i.modifiers=No(e),i.name=Mo(n),i.questionToken=t&&aD(t)?t:void 0,i.exclamationToken=t&&iD(t)?t:void 0,i.type=r,i.initializer=Lo(o);const a=33554432&i.flags||128&Yv(i.modifiers);return i.transformFlags=mR(i.modifiers)|uR(i.name)|fR(i.initializer)|(a||i.questionToken||i.exclamationToken||i.type?1:0)|(RD(i.name)||256&Yv(i.modifiers)&&i.initializer?8192:0)|16777216,i.jsDoc=void 0,i}function oe(e,n,t,r,o,i){return e.modifiers!==n||e.name!==t||e.questionToken!==(void 0!==r&&aD(r)?r:void 0)||e.exclamationToken!==(void 0!==r&&iD(r)?r:void 0)||e.type!==o||e.initializer!==i?wo(te(n,t,r,o,i),e):e}function ie(e,n,t,r,o,i){const a=E(174);return a.modifiers=No(e),a.name=Mo(n),a.questionToken=t,a.typeParameters=No(r),a.parameters=No(o),a.type=i,a.transformFlags=1,a.jsDoc=void 0,a.locals=void 0,a.nextContainer=void 0,a.typeArguments=void 0,a}function ae(e,n,t,r,o,i,a){return e.modifiers!==n||e.name!==t||e.questionToken!==r||e.typeParameters!==o||e.parameters!==i||e.type!==a?A(ie(n,t,r,o,i,a),e):e}function se(e,n,t,r,o,i,a,s){const l=E(175);if(l.modifiers=No(e),l.asteriskToken=n,l.name=Mo(t),l.questionToken=r,l.exclamationToken=void 0,l.typeParameters=No(o),l.parameters=T(i),l.type=a,l.body=s,l.body){const e=1024&Yv(l.modifiers),n=!!l.asteriskToken,t=e&&n;l.transformFlags=mR(l.modifiers)|fR(l.asteriskToken)|uR(l.name)|fR(l.questionToken)|mR(l.typeParameters)|mR(l.parameters)|fR(l.type)|-67108865&fR(l.body)|(t?128:e?256:n?2048:0)|(l.questionToken||l.typeParameters||l.type?1:0)|1024}else l.transformFlags=1;return l.typeArguments=void 0,l.jsDoc=void 0,l.locals=void 0,l.nextContainer=void 0,l.flowNode=void 0,l.endFlowNode=void 0,l.returnFlowNode=void 0,l}function le(e,n,t,r,o,i,a,s,l){return e.modifiers!==n||e.asteriskToken!==t||e.name!==r||e.questionToken!==o||e.typeParameters!==i||e.parameters!==a||e.type!==s||e.body!==l?function(e,n){e!==n&&(e.exclamationToken=n.exclamationToken);return wo(e,n)}(se(n,t,r,o,i,a,s,l),e):e}function ce(e){const n=E(176);return n.body=e,n.transformFlags=16777216|fR(e),n.modifiers=void 0,n.jsDoc=void 0,n.locals=void 0,n.nextContainer=void 0,n.endFlowNode=void 0,n.returnFlowNode=void 0,n}function de(e,n,t){const r=E(177);return r.modifiers=No(e),r.parameters=T(n),r.body=t,r.body?r.transformFlags=mR(r.modifiers)|mR(r.parameters)|-67108865&fR(r.body)|1024:r.transformFlags=1,r.typeParameters=void 0,r.type=void 0,r.typeArguments=void 0,r.jsDoc=void 0,r.locals=void 0,r.nextContainer=void 0,r.endFlowNode=void 0,r.returnFlowNode=void 0,r}function ue(e,n,t,r){return e.modifiers!==n||e.parameters!==t||e.body!==r?function(e,n){e!==n&&(e.typeParameters=n.typeParameters,e.type=n.type);return A(e,n)}(de(n,t,r),e):e}function pe(e,n,t,r,o){const i=E(178);return i.modifiers=No(e),i.name=Mo(n),i.parameters=T(t),i.type=r,i.body=o,i.body?i.transformFlags=mR(i.modifiers)|uR(i.name)|mR(i.parameters)|fR(i.type)|-67108865&fR(i.body)|(i.type?1:0):i.transformFlags=1,i.typeArguments=void 0,i.typeParameters=void 0,i.jsDoc=void 0,i.locals=void 0,i.nextContainer=void 0,i.flowNode=void 0,i.endFlowNode=void 0,i.returnFlowNode=void 0,i}function fe(e,n,t,r,o,i){return e.modifiers!==n||e.name!==t||e.parameters!==r||e.type!==o||e.body!==i?function(e,n){e!==n&&(e.typeParameters=n.typeParameters);return A(e,n)}(pe(n,t,r,o,i),e):e}function me(e,n,t,r){const o=E(179);return o.modifiers=No(e),o.name=Mo(n),o.parameters=T(t),o.body=r,o.body?o.transformFlags=mR(o.modifiers)|uR(o.name)|mR(o.parameters)|-67108865&fR(o.body)|(o.type?1:0):o.transformFlags=1,o.typeArguments=void 0,o.typeParameters=void 0,o.type=void 0,o.jsDoc=void 0,o.locals=void 0,o.nextContainer=void 0,o.flowNode=void 0,o.endFlowNode=void 0,o.returnFlowNode=void 0,o}function he(e,n,t,r,o){return e.modifiers!==n||e.name!==t||e.parameters!==r||e.body!==o?function(e,n){e!==n&&(e.typeParameters=n.typeParameters,e.type=n.type);return A(e,n)}(me(n,t,r,o),e):e}function _e(e,n,t){const r=E(180);return r.typeParameters=No(e),r.parameters=No(n),r.type=t,r.transformFlags=1,r.jsDoc=void 0,r.locals=void 0,r.nextContainer=void 0,r.typeArguments=void 0,r}function ye(e,n,t){const r=E(181);return r.typeParameters=No(e),r.parameters=No(n),r.type=t,r.transformFlags=1,r.jsDoc=void 0,r.locals=void 0,r.nextContainer=void 0,r.typeArguments=void 0,r}function be(e,n,t){const r=E(182);return r.modifiers=No(e),r.parameters=No(n),r.type=t,r.transformFlags=1,r.jsDoc=void 0,r.locals=void 0,r.nextContainer=void 0,r.typeArguments=void 0,r}function Te(e,n,t,r){return e.parameters!==t||e.type!==r||e.modifiers!==n?A(be(n,t,r),e):e}function Se(e,n){const t=S(205);return t.type=e,t.literal=n,t.transformFlags=1,t}function Ee(e,n,t){const r=S(183);return r.assertsModifier=e,r.parameterName=Mo(n),r.type=t,r.transformFlags=1,r}function Ae(e,n){const t=S(184);return t.typeName=Mo(e),t.typeArguments=n&&r().parenthesizeTypeArguments(T(n)),t.transformFlags=1,t}function Re(e,n,t){const r=E(185);return r.typeParameters=No(e),r.parameters=No(n),r.type=t,r.transformFlags=1,r.modifiers=void 0,r.jsDoc=void 0,r.locals=void 0,r.nextContainer=void 0,r.typeArguments=void 0,r}function De(...e){return 4===e.length?Ce(...e):3===e.length?function(e,n,t){return Ce(void 0,e,n,t)}(...e):dt.fail("Incorrect number of arguments specified.")}function Ce(e,n,t,r){const o=E(186);return o.modifiers=No(e),o.typeParameters=No(n),o.parameters=No(t),o.type=r,o.transformFlags=1,o.jsDoc=void 0,o.locals=void 0,o.nextContainer=void 0,o.typeArguments=void 0,o}function Ne(e,n,t,r,o){return e.modifiers!==n||e.typeParameters!==t||e.parameters!==r||e.type!==o?A(De(n,t,r,o),e):e}function Me(e,n){const t=S(187);return t.exprName=e,t.typeArguments=n&&r().parenthesizeTypeArguments(n),t.transformFlags=1,t}function Pe(e){const n=E(188);return n.members=T(e),n.transformFlags=1,n}function Le(e){const n=S(189);return n.elementType=r().parenthesizeNonArrayTypeOfPostfixType(e),n.transformFlags=1,n}function ke(e){const n=S(190);return n.elements=T(r().parenthesizeElementTypesOfTupleType(e)),n.transformFlags=1,n}function we(e,n,t,r){const o=E(203);return o.dotDotDotToken=e,o.name=n,o.questionToken=t,o.type=r,o.transformFlags=1,o.jsDoc=void 0,o}function Oe(e){const n=S(191);return n.type=r().parenthesizeTypeOfOptionalType(e),n.transformFlags=1,n}function Fe(e){const n=S(192);return n.type=e,n.transformFlags=1,n}function We(e,n,t){const r=S(e);return r.types=b.createNodeArray(t(n)),r.transformFlags=1,r}function ze(e,n,t){return e.types!==n?wo(We(e.kind,n,t),e):e}function Be(e,n,t,o){const i=S(195);return i.checkType=r().parenthesizeCheckTypeOfConditionalType(e),i.extendsType=r().parenthesizeExtendsTypeOfConditionalType(n),i.trueType=t,i.falseType=o,i.transformFlags=1,i.locals=void 0,i.nextContainer=void 0,i}function Ge(e){const n=S(196);return n.typeParameter=e,n.transformFlags=1,n}function Ve(e,n){const t=S(204);return t.head=e,t.templateSpans=T(n),t.transformFlags=1,t}function je(e,n,t,o,i=!1){const a=S(206);return a.argument=e,a.attributes=n,a.assertions&&a.assertions.assertClause&&a.attributes&&(a.assertions.assertClause=a.attributes),a.qualifier=t,a.typeArguments=o&&r().parenthesizeTypeArguments(o),a.isTypeOf=i,a.transformFlags=1,a}function Ue(e){const n=S(197);return n.type=e,n.transformFlags=1,n}function He(e,n){const t=S(199);return t.operator=e,t.type=148===e?r().parenthesizeOperandOfReadonlyTypeOperator(n):r().parenthesizeOperandOfTypeOperator(n),t.transformFlags=1,t}function Ke(e,n){const t=S(200);return t.objectType=r().parenthesizeNonArrayTypeOfPostfixType(e),t.indexType=n,t.transformFlags=1,t}function qe(e,n,t,r,o,i){const a=E(201);return a.readonlyToken=e,a.typeParameter=n,a.nameType=t,a.questionToken=r,a.type=o,a.members=i&&T(i),a.transformFlags=1,a.locals=void 0,a.nextContainer=void 0,a}function Je(e){const n=S(202);return n.literal=e,n.transformFlags=1,n}function Xe(e){const n=S(207);return n.elements=T(e),n.transformFlags|=525312|mR(n.elements),32768&n.transformFlags&&(n.transformFlags|=65664),n}function $e(e){const n=S(208);return n.elements=T(e),n.transformFlags|=525312|mR(n.elements),n}function Qe(e,n,t,r){const o=E(209);return o.dotDotDotToken=e,o.propertyName=Mo(n),o.name=Mo(t),o.initializer=Lo(r),o.transformFlags|=fR(o.dotDotDotToken)|uR(o.propertyName)|uR(o.name)|fR(o.initializer)|(o.dotDotDotToken?32768:0)|1024,o.flowNode=void 0,o}function Ze(e,n){const t=S(210),o=e&&ge(e),i=T(e,!(!o||!FC(o))||void 0);return t.elements=r().parenthesizeExpressionsOfCommaDelimitedList(i),t.multiLine=n,t.transformFlags|=mR(t.elements),t}function en(e,n){const t=E(211);return t.properties=T(e),t.multiLine=n,t.transformFlags|=mR(t.properties),t.jsDoc=void 0,t}function tn(e,n,t){const r=E(212);return r.expression=e,r.questionDotToken=n,r.name=t,r.transformFlags=fR(r.expression)|fR(r.questionDotToken)|(dD(r.name)?pR(r.name):536870912|fR(r.name)),r.jsDoc=void 0,r.flowNode=void 0,r}function rn(e,n){const t=tn(r().parenthesizeLeftSideOfAccess(e,!1),void 0,Mo(n));return SD(e)&&(t.transformFlags|=384),t}function an(e,n,t){const o=tn(r().parenthesizeLeftSideOfAccess(e,!0),n,Mo(t));return o.flags|=64,o.transformFlags|=32,o}function ln(e,n,t,r){return dt.assert(!!(64&e.flags),"Cannot update a PropertyAccessExpression using updatePropertyAccessChain. Use updatePropertyAccess instead."),e.expression!==n||e.questionDotToken!==t||e.name!==r?wo(an(n,t,r),e):e}function cn(e,n,t){const r=E(213);return r.expression=e,r.questionDotToken=n,r.argumentExpression=t,r.transformFlags|=fR(r.expression)|fR(r.questionDotToken)|fR(r.argumentExpression),r.jsDoc=void 0,r.flowNode=void 0,r}function dn(e,n){const t=cn(r().parenthesizeLeftSideOfAccess(e,!1),void 0,Po(n));return SD(e)&&(t.transformFlags|=384),t}function un(e,n,t){const o=cn(r().parenthesizeLeftSideOfAccess(e,!0),n,Po(t));return o.flags|=64,o.transformFlags|=32,o}function mn(e,n,t,r){return dt.assert(!!(64&e.flags),"Cannot update a ElementAccessExpression using updateElementAccessChain. Use updateElementAccess instead."),e.expression!==n||e.questionDotToken!==t||e.argumentExpression!==r?wo(un(n,t,r),e):e}function hn(e,n,t,r){const o=E(214);return o.expression=e,o.questionDotToken=n,o.typeArguments=t,o.arguments=r,o.transformFlags|=fR(o.expression)|fR(o.questionDotToken)|mR(o.typeArguments)|mR(o.arguments),o.typeArguments&&(o.transformFlags|=1),ch(o.expression)&&(o.transformFlags|=16384),o}function _n(e,n,t){const o=hn(r().parenthesizeLeftSideOfAccess(e,!1),void 0,No(n),r().parenthesizeExpressionsOfCommaDelimitedList(T(t)));return ED(o.expression)&&(o.transformFlags|=8388608),o}function gn(e,n,t,o){const i=hn(r().parenthesizeLeftSideOfAccess(e,!0),n,No(t),r().parenthesizeExpressionsOfCommaDelimitedList(T(o)));return i.flags|=64,i.transformFlags|=32,i}function yn(e,n,t,r,o){return dt.assert(!!(64&e.flags),"Cannot update a CallExpression using updateCallChain. Use updateCall instead."),e.expression!==n||e.questionDotToken!==t||e.typeArguments!==r||e.arguments!==o?wo(gn(n,t,r,o),e):e}function vn(e,n,t){const o=E(215);return o.expression=r().parenthesizeExpressionOfNew(e),o.typeArguments=No(n),o.arguments=t?r().parenthesizeExpressionsOfCommaDelimitedList(t):void 0,o.transformFlags|=fR(o.expression)|mR(o.typeArguments)|mR(o.arguments)|32,o.typeArguments&&(o.transformFlags|=1),o}function bn(e,n,t){const o=S(216);return o.tag=r().parenthesizeLeftSideOfAccess(e,!1),o.typeArguments=No(n),o.template=t,o.transformFlags|=fR(o.tag)|mR(o.typeArguments)|fR(o.template)|1024,o.typeArguments&&(o.transformFlags|=1),gy(o.template)&&(o.transformFlags|=128),o}function Tn(e,n){const t=S(217);return t.expression=r().parenthesizeOperandOfPrefixUnary(n),t.type=e,t.transformFlags|=fR(t.expression)|fR(t.type)|1,t}function Sn(e,n,t){return e.type!==n||e.expression!==t?wo(Tn(n,t),e):e}function En(e){const n=S(218);return n.expression=e,n.transformFlags=fR(n.expression),n.jsDoc=void 0,n}function An(e,n){return e.expression!==n?wo(En(n),e):e}function xn(e,n,t,r,o,i,a){const s=E(219);s.modifiers=No(e),s.asteriskToken=n,s.name=Mo(t),s.typeParameters=No(r),s.parameters=T(o),s.type=i,s.body=a;const l=1024&Yv(s.modifiers),c=!!s.asteriskToken,d=l&&c;return s.transformFlags=mR(s.modifiers)|fR(s.asteriskToken)|uR(s.name)|mR(s.typeParameters)|mR(s.parameters)|fR(s.type)|-67108865&fR(s.body)|(d?128:l?256:c?2048:0)|(s.typeParameters||s.type?1:0)|4194304,s.typeArguments=void 0,s.jsDoc=void 0,s.locals=void 0,s.nextContainer=void 0,s.flowNode=void 0,s.endFlowNode=void 0,s.returnFlowNode=void 0,s}function Rn(e,n,t,r,o,i,a,s){return e.name!==r||e.modifiers!==n||e.asteriskToken!==t||e.typeParameters!==o||e.parameters!==i||e.type!==a||e.body!==s?A(xn(n,t,r,o,i,a,s),e):e}function In(e,n,t,o,i,a){const s=E(220);s.modifiers=No(e),s.typeParameters=No(n),s.parameters=T(t),s.type=o,s.equalsGreaterThanToken=i??z(39),s.body=r().parenthesizeConciseBodyOfArrowFunction(a);const l=1024&Yv(s.modifiers);return s.transformFlags=mR(s.modifiers)|mR(s.typeParameters)|mR(s.parameters)|fR(s.type)|fR(s.equalsGreaterThanToken)|-67108865&fR(s.body)|(s.typeParameters||s.type?1:0)|(l?16640:0)|1024,s.typeArguments=void 0,s.jsDoc=void 0,s.locals=void 0,s.nextContainer=void 0,s.flowNode=void 0,s.endFlowNode=void 0,s.returnFlowNode=void 0,s}function Dn(e,n,t,r,o,i,a){return e.modifiers!==n||e.typeParameters!==t||e.parameters!==r||e.type!==o||e.equalsGreaterThanToken!==i||e.body!==a?A(In(n,t,r,o,i,a),e):e}function Cn(e){const n=S(221);return n.expression=r().parenthesizeOperandOfPrefixUnary(e),n.transformFlags|=fR(n.expression),n}function Nn(e){const n=S(222);return n.expression=r().parenthesizeOperandOfPrefixUnary(e),n.transformFlags|=fR(n.expression),n}function Mn(e){const n=S(223);return n.expression=r().parenthesizeOperandOfPrefixUnary(e),n.transformFlags|=fR(n.expression),n}function Pn(e){const n=S(224);return n.expression=r().parenthesizeOperandOfPrefixUnary(e),n.transformFlags|=2097536|fR(n.expression),n}function Ln(e,n){const t=S(225);return t.operator=e,t.operand=r().parenthesizeOperandOfPrefixUnary(n),t.transformFlags|=fR(t.operand),46!==e&&47!==e||!dD(t.operand)||Jc(t.operand)||TP(t.operand)||(t.transformFlags|=268435456),t}function kn(e,n){const t=S(226);return t.operator=n,t.operand=r().parenthesizeOperandOfPostfixUnary(e),t.transformFlags|=fR(t.operand),!dD(t.operand)||Jc(t.operand)||TP(t.operand)||(t.transformFlags|=268435456),t}function wn(e,n,t){const o=E(227),i="number"==typeof(a=n)?z(a):a;var a;const s=i.kind;return o.left=r().parenthesizeLeftSideOfBinary(s,e),o.operatorToken=i,o.right=r().parenthesizeRightSideOfBinary(s,o.left,t),o.transformFlags|=fR(o.left)|fR(o.operatorToken)|fR(o.right),61===s?o.transformFlags|=32:64===s?hC(o.left)?o.transformFlags|=5248|On(o.left):mC(o.left)&&(o.transformFlags|=5120|On(o.left)):43===s||68===s?o.transformFlags|=512:eb(s)&&(o.transformFlags|=16),103===s&&uD(o.left)&&(o.transformFlags|=536870912),o.jsDoc=void 0,o}function On(e){return IL(e)?65536:0}function Fn(e,n,t,o,i){const a=S(228);return a.condition=r().parenthesizeConditionOfConditionalExpression(e),a.questionToken=n??z(58),a.whenTrue=r().parenthesizeBranchOfConditionalExpression(t),a.colonToken=o??z(59),a.whenFalse=r().parenthesizeBranchOfConditionalExpression(i),a.transformFlags|=fR(a.condition)|fR(a.questionToken)|fR(a.whenTrue)|fR(a.colonToken)|fR(a.whenFalse),a.flowNodeWhenFalse=void 0,a.flowNodeWhenTrue=void 0,a}function Wn(e,n){const t=S(229);return t.head=e,t.templateSpans=T(n),t.transformFlags|=fR(t.head)|mR(t.templateSpans)|1024,t}function zn(e,n,t,r=0){let o;if(dt.assert(!(-7177&r),"Unsupported template flags."),void 0!==t&&t!==n&&(o=function(e,n){tR||(tR=vs(99,!1,0));switch(e){case 15:tR.setText("`"+n+"`");break;case 16:tR.setText("`"+n+"${");break;case 17:tR.setText("}"+n+"${");break;case 18:tR.setText("}"+n+"`")}let t,r=tR.scan();20===r&&(r=tR.reScanTemplateToken(!1));if(tR.isUnterminated())return tR.setText(void 0),dR;switch(r){case 15:case 16:case 17:case 18:t=tR.getTokenValue()}if(void 0===t||1!==tR.scan())return tR.setText(void 0),dR;return tR.setText(void 0),t}(e,t),"object"==typeof o))return dt.fail("Invalid raw text");if(void 0===n){if(void 0===o)return dt.fail("Arguments 'text' and 'rawText' may not both be undefined.");n=o}else void 0!==o&&dt.assert(n===o,"Expected argument 'text' to be the normalized (i.e. 'cooked') version of argument 'rawText'.");return n}function Bn(e){let n=1024;return e&&(n|=128),n}function Gn(e,n,t,r){const o=E(e);return o.text=n,o.rawText=t,o.templateFlags=7176&r,o.transformFlags=Bn(o.templateFlags),o}function Vn(e,n,t,r){return 15===e?Gn(e,n,t,r):function(e,n,t,r){const o=W(e);return o.text=n,o.rawText=t,o.templateFlags=7176&r,o.transformFlags=Bn(o.templateFlags),o}(e,n,t,r)}function jn(e,n){dt.assert(!e||!!n,"A `YieldExpression` with an asteriskToken must have an expression.");const t=S(230);return t.expression=n&&r().parenthesizeExpressionForDisallowedComma(n),t.asteriskToken=e,t.transformFlags|=1049728|(fR(t.expression)|fR(t.asteriskToken)),t}function Un(e){const n=S(231);return n.expression=r().parenthesizeExpressionForDisallowedComma(e),n.transformFlags|=33792|fR(n.expression),n}function Hn(e,n,t,r,o){const i=E(232);return i.modifiers=No(e),i.name=Mo(n),i.typeParameters=No(t),i.heritageClauses=No(r),i.members=T(o),i.transformFlags|=mR(i.modifiers)|uR(i.name)|mR(i.typeParameters)|mR(i.heritageClauses)|mR(i.members)|(i.typeParameters?1:0)|1024,i.jsDoc=void 0,i}function Kn(e,n,t,r,o,i){return e.modifiers!==n||e.name!==t||e.typeParameters!==r||e.heritageClauses!==o||e.members!==i?wo(Hn(n,t,r,o,i),e):e}function qn(e,n){const t=S(234);return t.expression=r().parenthesizeLeftSideOfAccess(e,!1),t.typeArguments=n&&r().parenthesizeTypeArguments(n),t.transformFlags|=fR(t.expression)|mR(t.typeArguments)|1024,t}function Jn(e,n,t){return e.expression!==n||e.typeArguments!==t?wo(qn(n,t),e):e}function Yn(e,n){const t=S(235);return t.expression=e,t.type=n,t.transformFlags|=fR(t.expression)|fR(t.type)|1,t}function $n(e,n,t){return e.expression!==n||e.type!==t?wo(Yn(n,t),e):e}function Qn(e){const n=S(236);return n.expression=r().parenthesizeLeftSideOfAccess(e,!1),n.transformFlags|=1|fR(n.expression),n}function Zn(e,n){return Ic(e)?rt(e,n):e.expression!==n?wo(Qn(n),e):e}function et(e,n){const t=S(239);return t.expression=e,t.type=n,t.transformFlags|=fR(t.expression)|fR(t.type)|1,t}function nt(e,n,t){return e.expression!==n||e.type!==t?wo(et(n,t),e):e}function tt(e){const n=S(236);return n.flags|=64,n.expression=r().parenthesizeLeftSideOfAccess(e,!0),n.transformFlags|=1|fR(n.expression),n}function rt(e,n){return dt.assert(!!(64&e.flags),"Cannot update a NonNullExpression using updateNonNullChain. Use updateNonNullExpression instead."),e.expression!==n?wo(tt(n),e):e}function ot(e,n){const t=S(237);switch(t.keywordToken=e,t.name=n,t.transformFlags|=fR(t.name),e){case 105:t.transformFlags|=1024;break;case 102:t.transformFlags|=32;break;default:return dt.assertNever(e)}return t.flowNode=void 0,t}function it(e,n){const t=S(240);return t.expression=e,t.literal=n,t.transformFlags|=fR(t.expression)|fR(t.literal)|1024,t}function at(e,n){const t=S(242);return t.statements=T(e),t.multiLine=n,t.transformFlags|=mR(t.statements),t.jsDoc=void 0,t.locals=void 0,t.nextContainer=void 0,t}function st(e,n){const t=S(244);return t.modifiers=No(e),t.declarationList=Ye(n)?Dt(n):n,t.transformFlags|=mR(t.modifiers)|fR(t.declarationList),128&Yv(t.modifiers)&&(t.transformFlags=1),t.jsDoc=void 0,t.flowNode=void 0,t}function lt(e,n,t){return e.modifiers!==n||e.declarationList!==t?wo(st(n,t),e):e}function ct(){const e=S(243);return e.jsDoc=void 0,e}function ut(e){const n=S(245);return n.expression=r().parenthesizeExpressionOfExpressionStatement(e),n.transformFlags|=fR(n.expression),n.jsDoc=void 0,n.flowNode=void 0,n}function pt(e,n,t){const r=S(246);return r.expression=e,r.thenStatement=ko(n),r.elseStatement=ko(t),r.transformFlags|=fR(r.expression)|fR(r.thenStatement)|fR(r.elseStatement),r.jsDoc=void 0,r.flowNode=void 0,r}function ft(e,n){const t=S(247);return t.statement=ko(e),t.expression=n,t.transformFlags|=fR(t.statement)|fR(t.expression),t.jsDoc=void 0,t.flowNode=void 0,t}function mt(e,n){const t=S(248);return t.expression=e,t.statement=ko(n),t.transformFlags|=fR(t.expression)|fR(t.statement),t.jsDoc=void 0,t.flowNode=void 0,t}function ht(e,n,t,r){const o=S(249);return o.initializer=e,o.condition=n,o.incrementor=t,o.statement=ko(r),o.transformFlags|=fR(o.initializer)|fR(o.condition)|fR(o.incrementor)|fR(o.statement),o.jsDoc=void 0,o.locals=void 0,o.nextContainer=void 0,o.flowNode=void 0,o}function _t(e,n,t){const r=S(250);return r.initializer=e,r.expression=n,r.statement=ko(t),r.transformFlags|=fR(r.initializer)|fR(r.expression)|fR(r.statement),r.jsDoc=void 0,r.locals=void 0,r.nextContainer=void 0,r.flowNode=void 0,r}function gt(e,n,t,o){const i=S(251);return i.awaitModifier=e,i.initializer=n,i.expression=r().parenthesizeExpressionForDisallowedComma(t),i.statement=ko(o),i.transformFlags|=fR(i.awaitModifier)|fR(i.initializer)|fR(i.expression)|fR(i.statement)|1024,e&&(i.transformFlags|=128),i.jsDoc=void 0,i.locals=void 0,i.nextContainer=void 0,i.flowNode=void 0,i}function yt(e){const n=S(252);return n.label=Mo(e),n.transformFlags|=4194304|fR(n.label),n.jsDoc=void 0,n.flowNode=void 0,n}function vt(e){const n=S(253);return n.label=Mo(e),n.transformFlags|=4194304|fR(n.label),n.jsDoc=void 0,n.flowNode=void 0,n}function bt(e){const n=S(254);return n.expression=e,n.transformFlags|=4194432|fR(n.expression),n.jsDoc=void 0,n.flowNode=void 0,n}function Tt(e,n){const t=S(255);return t.expression=e,t.statement=ko(n),t.transformFlags|=fR(t.expression)|fR(t.statement),t.jsDoc=void 0,t.flowNode=void 0,t}function St(e,n){const t=S(256);return t.expression=r().parenthesizeExpressionForDisallowedComma(e),t.caseBlock=n,t.transformFlags|=fR(t.expression)|fR(t.caseBlock),t.jsDoc=void 0,t.flowNode=void 0,t.possiblyExhaustive=!1,t}function Et(e,n){const t=S(257);return t.label=Mo(e),t.statement=ko(n),t.transformFlags|=fR(t.label)|fR(t.statement),t.jsDoc=void 0,t.flowNode=void 0,t}function At(e,n,t){return e.label!==n||e.statement!==t?wo(Et(n,t),e):e}function xt(e){const n=S(258);return n.expression=e,n.transformFlags|=fR(n.expression),n.jsDoc=void 0,n.flowNode=void 0,n}function Rt(e,n,t){const r=S(259);return r.tryBlock=e,r.catchClause=n,r.finallyBlock=t,r.transformFlags|=fR(r.tryBlock)|fR(r.catchClause)|fR(r.finallyBlock),r.jsDoc=void 0,r.flowNode=void 0,r}function It(e,n,t,r){const o=E(261);return o.name=Mo(e),o.exclamationToken=n,o.type=t,o.initializer=Lo(r),o.transformFlags|=uR(o.name)|fR(o.initializer)|(o.exclamationToken??o.type?1:0),o.jsDoc=void 0,o}function Dt(e,n=0){const t=S(262);return t.flags|=7&n,t.declarations=T(e),t.transformFlags|=4194304|mR(t.declarations),7&n&&(t.transformFlags|=263168),4&n&&(t.transformFlags|=4),t}function Ct(e,n,t,r,o,i,a){const s=E(263);if(s.modifiers=No(e),s.asteriskToken=n,s.name=Mo(t),s.typeParameters=No(r),s.parameters=T(o),s.type=i,s.body=a,!s.body||128&Yv(s.modifiers))s.transformFlags=1;else{const e=1024&Yv(s.modifiers),n=!!s.asteriskToken,t=e&&n;s.transformFlags=mR(s.modifiers)|fR(s.asteriskToken)|uR(s.name)|mR(s.typeParameters)|mR(s.parameters)|fR(s.type)|-67108865&fR(s.body)|(t?128:e?256:n?2048:0)|(s.typeParameters||s.type?1:0)|4194304}return s.typeArguments=void 0,s.jsDoc=void 0,s.locals=void 0,s.nextContainer=void 0,s.endFlowNode=void 0,s.returnFlowNode=void 0,s}function Nt(e,n,t,r,o,i,a,s){return e.modifiers!==n||e.asteriskToken!==t||e.name!==r||e.typeParameters!==o||e.parameters!==i||e.type!==a||e.body!==s?function(e,n){e!==n&&e.modifiers===n.modifiers&&(e.modifiers=n.modifiers);return A(e,n)}(Ct(n,t,r,o,i,a,s),e):e}function Mt(e,n,t,r,o){const i=E(264);return i.modifiers=No(e),i.name=Mo(n),i.typeParameters=No(t),i.heritageClauses=No(r),i.members=T(o),128&Yv(i.modifiers)?i.transformFlags=1:(i.transformFlags|=mR(i.modifiers)|uR(i.name)|mR(i.typeParameters)|mR(i.heritageClauses)|mR(i.members)|(i.typeParameters?1:0)|1024,8192&i.transformFlags&&(i.transformFlags|=1)),i.jsDoc=void 0,i}function Pt(e,n,t,r,o,i){return e.modifiers!==n||e.name!==t||e.typeParameters!==r||e.heritageClauses!==o||e.members!==i?wo(Mt(n,t,r,o,i),e):e}function Lt(e,n,t,r,o){const i=E(265);return i.modifiers=No(e),i.name=Mo(n),i.typeParameters=No(t),i.heritageClauses=No(r),i.members=T(o),i.transformFlags=1,i.jsDoc=void 0,i}function kt(e,n,t,r,o,i){return e.modifiers!==n||e.name!==t||e.typeParameters!==r||e.heritageClauses!==o||e.members!==i?wo(Lt(n,t,r,o,i),e):e}function wt(e,n,t,r){const o=E(266);return o.modifiers=No(e),o.name=Mo(n),o.typeParameters=No(t),o.type=r,o.transformFlags=1,o.jsDoc=void 0,o.locals=void 0,o.nextContainer=void 0,o}function Ot(e,n,t,r,o){return e.modifiers!==n||e.name!==t||e.typeParameters!==r||e.type!==o?wo(wt(n,t,r,o),e):e}function Ft(e,n,t){const r=E(267);return r.modifiers=No(e),r.name=Mo(n),r.members=T(t),r.transformFlags|=mR(r.modifiers)|fR(r.name)|mR(r.members)|1,r.transformFlags&=-67108865,r.jsDoc=void 0,r}function Wt(e,n,t,r){return e.modifiers!==n||e.name!==t||e.members!==r?wo(Ft(n,t,r),e):e}function zt(e,n,t,r=0){const o=E(268);return o.modifiers=No(e),o.flags|=2088&r,o.name=n,o.body=t,128&Yv(o.modifiers)?o.transformFlags=1:o.transformFlags|=mR(o.modifiers)|fR(o.name)|fR(o.body)|1,o.transformFlags&=-67108865,o.jsDoc=void 0,o.locals=void 0,o.nextContainer=void 0,o}function Bt(e,n,t,r){return e.modifiers!==n||e.name!==t||e.body!==r?wo(zt(n,t,r,e.flags),e):e}function Gt(e){const n=S(269);return n.statements=T(e),n.transformFlags|=mR(n.statements),n.jsDoc=void 0,n}function Vt(e){const n=S(270);return n.clauses=T(e),n.transformFlags|=mR(n.clauses),n.locals=void 0,n.nextContainer=void 0,n}function jt(e){const n=E(271);return n.name=Mo(e),n.transformFlags|=1|pR(n.name),n.modifiers=void 0,n.jsDoc=void 0,n}function Ut(e,n,t,r){const o=E(272);return o.modifiers=No(e),o.name=Mo(t),o.isTypeOnly=n,o.moduleReference=r,o.transformFlags|=mR(o.modifiers)|pR(o.name)|fR(o.moduleReference),UN(o.moduleReference)||(o.transformFlags|=1),o.transformFlags&=-67108865,o.jsDoc=void 0,o}function Ht(e,n,t,r,o){return e.modifiers!==n||e.isTypeOnly!==t||e.name!==r||e.moduleReference!==o?wo(Ut(n,t,r,o),e):e}function Kt(e,n,t,r){const o=S(273);return o.modifiers=No(e),o.importClause=n,o.moduleSpecifier=t,o.attributes=o.assertClause=r,o.transformFlags|=fR(o.importClause)|fR(o.moduleSpecifier),o.transformFlags&=-67108865,o.jsDoc=void 0,o}function qt(e,n,t,r,o){return e.modifiers!==n||e.importClause!==t||e.moduleSpecifier!==r||e.attributes!==o?wo(Kt(n,t,r,o),e):e}function Jt(e,n,t){const r=E(274);return"boolean"==typeof e&&(e=e?156:void 0),r.isTypeOnly=156===e,r.phaseModifier=e,r.name=n,r.namedBindings=t,r.transformFlags|=fR(r.name)|fR(r.namedBindings),156===e&&(r.transformFlags|=1),r.transformFlags&=-67108865,r}function Xt(e,n){const t=S(301);return t.elements=T(e),t.multiLine=n,t.token=132,t.transformFlags|=4,t}function Yt(e,n){const t=S(302);return t.name=e,t.value=n,t.transformFlags|=4,t}function $t(e,n){const t=S(303);return t.assertClause=e,t.multiLine=n,t}function Qt(e,n,t){const r=S(301);return r.token=t??118,r.elements=T(e),r.multiLine=n,r.transformFlags|=4,r}function Zt(e,n){const t=S(302);return t.name=e,t.value=n,t.transformFlags|=4,t}function er(e){const n=E(275);return n.name=e,n.transformFlags|=fR(n.name),n.transformFlags&=-67108865,n}function nr(e){const n=E(281);return n.name=e,n.transformFlags|=32|fR(n.name),n.transformFlags&=-67108865,n}function tr(e){const n=S(276);return n.elements=T(e),n.transformFlags|=mR(n.elements),n.transformFlags&=-67108865,n}function rr(e,n,t){const r=E(277);return r.isTypeOnly=e,r.propertyName=n,r.name=t,r.transformFlags|=fR(r.propertyName)|fR(r.name),r.transformFlags&=-67108865,r}function or(e,n,t){const o=E(278);return o.modifiers=No(e),o.isExportEquals=n,o.expression=n?r().parenthesizeRightSideOfBinary(64,void 0,t):r().parenthesizeExpressionOfExportDefault(t),o.transformFlags|=mR(o.modifiers)|fR(o.expression),o.transformFlags&=-67108865,o.jsDoc=void 0,o}function ir(e,n,t){return e.modifiers!==n||e.expression!==t?wo(or(n,e.isExportEquals,t),e):e}function ar(e,n,t,r,o){const i=E(279);return i.modifiers=No(e),i.isTypeOnly=n,i.exportClause=t,i.moduleSpecifier=r,i.attributes=i.assertClause=o,i.transformFlags|=mR(i.modifiers)|fR(i.exportClause)|fR(i.moduleSpecifier),i.transformFlags&=-67108865,i.jsDoc=void 0,i}function sr(e,n,t,r,o,i){return e.modifiers!==n||e.isTypeOnly!==t||e.exportClause!==r||e.moduleSpecifier!==o||e.attributes!==i?function(e,n){e!==n&&e.modifiers===n.modifiers&&(e.modifiers=n.modifiers);return wo(e,n)}(ar(n,t,r,o,i),e):e}function lr(e){const n=S(280);return n.elements=T(e),n.transformFlags|=mR(n.elements),n.transformFlags&=-67108865,n}function cr(e,n,t){const r=S(282);return r.isTypeOnly=e,r.propertyName=Mo(n),r.name=Mo(t),r.transformFlags|=fR(r.propertyName)|fR(r.name),r.transformFlags&=-67108865,r.jsDoc=void 0,r}function dr(e){const n=S(284);return n.expression=e,n.transformFlags|=fR(n.expression),n.transformFlags&=-67108865,n}function ur(e,n,t=!1){const o=pr(e,t?n&&r().parenthesizeNonArrayTypeOfPostfixType(n):n);return o.postfix=t,o}function pr(e,n){const t=S(e);return t.type=n,t}function fr(e,n){const t=E(318);return t.parameters=No(e),t.type=n,t.transformFlags=mR(t.parameters)|(t.type?1:0),t.jsDoc=void 0,t.locals=void 0,t.nextContainer=void 0,t.typeArguments=void 0,t}function mr(e,n=!1){const t=E(323);return t.jsDocPropertyTags=No(e),t.isArrayType=n,t}function hr(e){const n=S(310);return n.type=e,n}function _r(e,n,t){const r=E(324);return r.typeParameters=No(e),r.parameters=T(n),r.type=t,r.jsDoc=void 0,r.locals=void 0,r.nextContainer=void 0,r}function gr(e){const n=cR(e.kind);return e.tagName.escapedText===gl(n)?e.tagName:P(n)}function yr(e,n,t){const r=S(e);return r.tagName=n,r.comment=t,r}function vr(e,n,t){const r=E(e);return r.tagName=n,r.comment=t,r}function br(e,n,t,r){const o=yr(346,e??P("template"),r);return o.constraint=n,o.typeParameters=T(t),o}function Tr(e,n,t,r){const o=vr(347,e??P("typedef"),r);return o.typeExpression=n,o.fullName=t,o.name=qP(t),o.locals=void 0,o.nextContainer=void 0,o}function Sr(e,n,t,r,o,i){const a=vr(342,e??P("param"),i);return a.typeExpression=r,a.name=n,a.isNameFirst=!!o,a.isBracketed=t,a}function Er(e,n,t,r,o,i){const a=vr(349,e??P("prop"),i);return a.typeExpression=r,a.name=n,a.isNameFirst=!!o,a.isBracketed=t,a}function Ar(e,n,t,r){const o=vr(339,e??P("callback"),r);return o.typeExpression=n,o.fullName=t,o.name=qP(t),o.locals=void 0,o.nextContainer=void 0,o}function xr(e,n,t){const r=yr(340,e??P("overload"),t);return r.typeExpression=n,r}function Rr(e,n,t){const r=yr(329,e??P("augments"),t);return r.class=n,r}function Ir(e,n,t){const r=yr(330,e??P("implements"),t);return r.class=n,r}function Dr(e,n,t){const r=yr(348,e??P("see"),t);return r.name=n,r}function Cr(e){const n=S(311);return n.name=e,n}function Nr(e,n){const t=S(312);return t.left=e,t.right=n,t.transformFlags|=fR(t.left)|fR(t.right),t}function Mr(e,n){const t=S(325);return t.name=e,t.text=n,t}function Pr(e,n){const t=S(326);return t.name=e,t.text=n,t}function Lr(e,n){const t=S(327);return t.name=e,t.text=n,t}function kr(e,n,t){return yr(e,n??P(cR(e)),t)}function wr(e,n,t,r){const o=yr(e,n??P(cR(e)),r);return o.typeExpression=t,o}function Or(e,n){return yr(328,e,n)}function Fr(e,n,t){const r=vr(341,e??P(cR(341)),t);return r.typeExpression=n,r.locals=void 0,r.nextContainer=void 0,r}function Wr(e,n,t,r,o){const i=yr(352,e??P("import"),o);return i.importClause=n,i.moduleSpecifier=t,i.attributes=r,i.comment=o,i}function zr(e){const n=S(322);return n.text=e,n}function Br(e,n){const t=S(321);return t.comment=e,t.tags=No(n),t}function Gr(e,n,t){const r=S(285);return r.openingElement=e,r.children=T(n),r.closingElement=t,r.transformFlags|=fR(r.openingElement)|mR(r.children)|fR(r.closingElement)|2,r}function Vr(e,n,t){const r=S(286);return r.tagName=e,r.typeArguments=No(n),r.attributes=t,r.transformFlags|=fR(r.tagName)|mR(r.typeArguments)|fR(r.attributes)|2,r.typeArguments&&(r.transformFlags|=1),r}function jr(e,n,t){const r=S(287);return r.tagName=e,r.typeArguments=No(n),r.attributes=t,r.transformFlags|=fR(r.tagName)|mR(r.typeArguments)|fR(r.attributes)|2,n&&(r.transformFlags|=1),r}function Ur(e){const n=S(288);return n.tagName=e,n.transformFlags|=2|fR(n.tagName),n}function Hr(e,n,t){const r=S(289);return r.openingFragment=e,r.children=T(n),r.closingFragment=t,r.transformFlags|=fR(r.openingFragment)|mR(r.children)|fR(r.closingFragment)|2,r}function Kr(e,n){const t=S(12);return t.text=e,t.containsOnlyTriviaWhiteSpaces=!!n,t.transformFlags|=2,t}function qr(e,n){const t=E(292);return t.name=e,t.initializer=n,t.transformFlags|=fR(t.name)|fR(t.initializer)|2,t}function Jr(e){const n=E(293);return n.properties=T(e),n.transformFlags|=2|mR(n.properties),n}function Xr(e){const n=S(294);return n.expression=e,n.transformFlags|=2|fR(n.expression),n}function Yr(e,n){const t=S(295);return t.dotDotDotToken=e,t.expression=n,t.transformFlags|=fR(t.dotDotDotToken)|fR(t.expression)|2,t}function $r(e,n){const t=S(296);return t.namespace=e,t.name=n,t.transformFlags|=fR(t.namespace)|fR(t.name)|2,t}function Qr(e,n){const t=S(297);return t.expression=r().parenthesizeExpressionForDisallowedComma(e),t.statements=T(n),t.transformFlags|=fR(t.expression)|mR(t.statements),t.jsDoc=void 0,t}function Zr(e){const n=S(298);return n.statements=T(e),n.transformFlags=mR(n.statements),n}function eo(e,n){const t=S(299);switch(t.token=e,t.types=T(n),t.transformFlags|=mR(t.types),e){case 96:t.transformFlags|=1024;break;case 119:t.transformFlags|=1;break;default:return dt.assertNever(e)}return t}function no(e,n){const t=S(300);return t.variableDeclaration=function(e){if("string"==typeof e||e&&!fN(e))return It(e,void 0,void 0,void 0);return e}(e),t.block=n,t.transformFlags|=fR(t.variableDeclaration)|fR(t.block)|(e?0:64),t.locals=void 0,t.nextContainer=void 0,t}function to(e,n){const t=E(304);return t.name=Mo(e),t.initializer=r().parenthesizeExpressionForDisallowedComma(n),t.transformFlags|=uR(t.name)|fR(t.initializer),t.modifiers=void 0,t.questionToken=void 0,t.exclamationToken=void 0,t.jsDoc=void 0,t}function ro(e,n,t){return e.name!==n||e.initializer!==t?function(e,n){e!==n&&(e.modifiers=n.modifiers,e.questionToken=n.questionToken,e.exclamationToken=n.exclamationToken);return wo(e,n)}(to(n,t),e):e}function oo(e,n){const t=E(305);return t.name=Mo(e),t.objectAssignmentInitializer=n&&r().parenthesizeExpressionForDisallowedComma(n),t.transformFlags|=pR(t.name)|fR(t.objectAssignmentInitializer)|1024,t.equalsToken=void 0,t.modifiers=void 0,t.questionToken=void 0,t.exclamationToken=void 0,t.jsDoc=void 0,t}function io(e){const n=E(306);return n.expression=r().parenthesizeExpressionForDisallowedComma(e),n.transformFlags|=65664|fR(n.expression),n.jsDoc=void 0,n}function ao(e,n){const t=E(307);return t.name=Mo(e),t.initializer=n&&r().parenthesizeExpressionForDisallowedComma(n),t.transformFlags|=fR(t.name)|fR(t.initializer)|1,t.jsDoc=void 0,t}function so(e){const n=Object.create(e.redirectTarget);return Object.defineProperties(n,{id:{get(){return this.redirectInfo.redirectTarget.id},set(e){this.redirectInfo.redirectTarget.id=e}},symbol:{get(){return this.redirectInfo.redirectTarget.symbol},set(e){this.redirectInfo.redirectTarget.symbol=e}}}),n.redirectInfo=e,n}function lo(e){const r=e.redirectInfo?function(e){const n=so(e.redirectInfo);return n.flags|=-17&e.flags,n.fileName=e.fileName,n.path=e.path,n.resolvedPath=e.resolvedPath,n.originalFileName=e.originalFileName,n.packageJsonLocations=e.packageJsonLocations,n.packageJsonScope=e.packageJsonScope,n.emitNode=void 0,n}(e):function(e){const t=n.createBaseSourceFileNode(308);t.flags|=-17&e.flags;for(const n in e)!Ie(t,n)&&Ie(e,n)&&("emitNode"!==n?t[n]=e[n]:t.emitNode=void 0);return t}(e);return t(r,e),r}function co(e){const n=S(309);return n.sourceFiles=e,n.syntheticFileReferences=void 0,n.syntheticTypeReferences=void 0,n.syntheticLibReferences=void 0,n.hasNoDefaultLib=void 0,n}function uo(e,n){const t=S(356);return t.expression=e,t.original=n,t.transformFlags|=1|fR(t.expression),DL(t,n),t}function po(e,n){return e.expression!==n?wo(uo(n,e.original),e):e}function fo(e){if(ry(e)&&!hl(e)&&!e.original&&!e.emitNode&&!e.id){if(HC(e))return e.elements;if(MC(e)&&nD(e.operatorToken))return[e.left,e.right]}return e}function mo(e){const n=S(357);return n.elements=T(w(e,fo)),n.transformFlags|=mR(n.elements),n}function ho(e,n){const t=S(358);return t.expression=e,t.thisArg=n,t.transformFlags|=fR(t.expression)|fR(t.thisArg),t}function _o(e){if(void 0===e)return e;if(uM(e))return lo(e);if(Jc(e))return function(e){const n=N(e.escapedText);return n.flags|=-17&e.flags,n.transformFlags=e.transformFlags,t(n,e),oI(n,{...e.emitNode.autoGenerate}),n}(e);if(dD(e))return function(e){const n=N(e.escapedText);n.flags|=-17&e.flags,n.jsDoc=e.jsDoc,n.flowNode=e.flowNode,n.symbol=e.symbol,n.transformFlags=e.transformFlags,t(n,e);const r=rI(e);return r&&tI(n,r),n}(e);if(Xc(e))return function(e){const n=O(e.escapedText);return n.flags|=-17&e.flags,n.transformFlags=e.transformFlags,t(n,e),oI(n,{...e.emitNode.autoGenerate}),n}(e);if(uD(e))return function(e){const n=O(e.escapedText);return n.flags|=-17&e.flags,n.transformFlags=e.transformFlags,t(n,e),n}(e);const r=Mc(e.kind)?n.createBaseNode(e.kind):n.createBaseTokenNode(e.kind);r.flags|=-17&e.flags,r.transformFlags=e.transformFlags,t(r,e);for(const n in e)!Ie(r,n)&&Ie(e,n)&&(r[n]=e[n]);return r}function go(){return Mn(x("0"))}function yo(e,n,t){return vc(e)?gn(an(e,void 0,n),void 0,void 0,t):_n(rn(e,n),void 0,t)}function vo(e,n,t){return yo(P(e),n,t)}function bo(e,n,t){return!!t&&(e.push(to(n,t)),!0)}function To(e,n){const t=cg(e);switch(t.kind){case 80:return n;case 110:case 9:case 10:case 11:return!1;case 210:return 0!==t.elements.length;case 211:return t.properties.length>0;default:return!0}}function So(e,n,t,r=0,o){const i=o?e&&Il(e):Dl(e);if(i&&dD(i)&&!Jc(i)){const e=PA(DL(_o(i),i),i.parent);return r|=tf(i),t||(r|=96),n||(r|=3072),r&&xR(e,r),e}return k(e)}function Eo(e,n,t){return So(e,n,t,16384)}function Ao(e,n,t,r){const o=rn(e,ry(n)?n:_o(n));DL(o,n);let i=0;return r||(i|=96),t||(i|=3072),i&&xR(o,i),o}function xo(e){return qI(e.expression)&&"use strict"===e.expression.text}function Ro(){return LP(ut(D("use strict")))}function Io(e,n,t=0,r){dt.assert(0===n.length,"Prologue directives should be at the first statement in the target statements array");let o=!1;const i=e.length;for(;t<i;){const r=e[t];if(!_m(r))break;xo(r)&&(o=!0),n.push(r),t++}return r&&!o&&n.push(Ro()),t}function Do(e,n,t,r,o=on){const i=e.length;for(;void 0!==t&&t<i;){const i=e[t];if(!(2097152&tf(i)&&o(i)))break;re(n,r?vB(i,r,_u):i),t++}return t}function Co(e,n,t){let r=t;for(;r<e.length&&n(e[r]);)r++;return r}function No(e){return e?T(e):void 0}function Mo(e){return"string"==typeof e?P(e):e}function Po(e){return"string"==typeof e?D(e):"number"==typeof e?x(e):"boolean"==typeof e?e?V():j():e}function Lo(e){return e&&r().parenthesizeExpressionForDisallowedComma(e)}function ko(e){return e&&VN(e)?DL(t(ct(),e),e):e}function wo(e,n){return e!==n&&(t(e,n),DL(e,n)),e}}function cR(e){switch(e){case 345:return"type";case 343:return"returns";case 344:return"this";case 341:return"enum";case 331:return"author";case 333:return"class";case 334:return"public";case 335:return"private";case 336:return"protected";case 337:return"readonly";case 338:return"override";case 346:return"template";case 347:return"typedef";case 342:return"param";case 349:return"prop";case 339:return"callback";case 340:return"overload";case 329:return"augments";case 330:return"implements";case 352:return"import";default:return dt.fail(`Unsupported kind: ${dt.formatSyntaxKind(e)}`)}}var dR={};function uR(e){return e&&dD(e)?pR(e):fR(e)}function pR(e){return-67108865&fR(e)}function fR(e){if(!e)return 0;const n=e.transformFlags&~function(e){if(e>=183&&e<=206)return-2;switch(e){case 214:case 215:case 210:case 207:case 208:return-2147450880;case 268:return-1941676032;case 170:case 217:case 239:case 235:case 356:case 218:case 108:case 212:case 213:default:return-2147483648;case 220:return-2072174592;case 219:case 263:return-1937940480;case 262:return-2146893824;case 264:case 232:return-2147344384;case 177:return-1937948672;case 173:return-2013249536;case 175:case 178:case 179:return-2005057536;case 133:case 150:case 163:case 146:case 154:case 151:case 136:case 155:case 116:case 169:case 172:case 174:case 180:case 181:case 182:case 265:case 266:return-2;case 211:return-2147278848;case 300:return-2147418112}}(e.kind);return Rl(e)&&od(e.name)?(t=e.name,n|134234112&t.transformFlags):n;var t}function mR(e){return e?e.transformFlags:0}function hR(e){let n=0;for(const t of e)n|=fR(t);e.transformFlags=n}var _R=Qx();function gR(e){return e.flags|=16,e}var yR,vR=lR(4,{createBaseSourceFileNode:e=>gR(_R.createBaseSourceFileNode(e)),createBaseIdentifierNode:e=>gR(_R.createBaseIdentifierNode(e)),createBasePrivateIdentifierNode:e=>gR(_R.createBasePrivateIdentifierNode(e)),createBaseTokenNode:e=>gR(_R.createBaseTokenNode(e)),createBaseNode:e=>gR(_R.createBaseNode(e))});function bR(e,n,t){return new(yR||(yR=GT.getSourceMapSourceConstructor()))(e,n,t)}function TR(e,n){if(e.original!==n&&(e.original=n,n)){const t=n.emitNode;t&&(e.emitNode=function(e,n){const{flags:t,internalFlags:r,leadingComments:o,trailingComments:i,commentRange:a,sourceMapRange:s,tokenSourceMapRanges:l,constantValue:c,helpers:d,startsOnNewLine:u,snippetElement:p,classThis:f,assignedName:m}=e;n||(n={});t&&(n.flags=t);r&&(n.internalFlags=-9&r);o&&(n.leadingComments=ae(o.slice(),n.leadingComments));i&&(n.trailingComments=ae(i.slice(),n.trailingComments));a&&(n.commentRange=a);s&&(n.sourceMapRange=s);l&&(n.tokenSourceMapRanges=function(e,n){n||(n=[]);for(const t in e)n[t]=e[t];return n}(l,n.tokenSourceMapRanges));void 0!==c&&(n.constantValue=c);if(d)for(const h of d)n.helpers=le(n.helpers,h);void 0!==u&&(n.startsOnNewLine=u);void 0!==p&&(n.snippetElement=p);f&&(n.classThis=f);m&&(n.assignedName=m);return n}(t,e.emitNode))}return e}function SR(e){if(e.emitNode)dt.assert(!(8&e.emitNode.internalFlags),"Invalid attempt to mutate an immutable node.");else{if(hl(e)){if(308===e.kind)return e.emitNode={annotatedNodes:[e]};SR(Sp(_l(Sp(e)))??dt.fail("Could not determine parsed source file.")).annotatedNodes.push(e)}e.emitNode={}}return e.emitNode}function ER(e){var n,t;const r=null==(t=null==(n=Sp(_l(e)))?void 0:n.emitNode)?void 0:t.annotatedNodes;if(r)for(const o of r)o.emitNode=void 0}function AR(e){const n=SR(e);return n.flags|=3072,n.leadingComments=void 0,n.trailingComments=void 0,e}function xR(e,n){return SR(e).flags=n,e}function RR(e,n){const t=SR(e);return t.flags=t.flags|n,e}function IR(e,n){return SR(e).internalFlags=n,e}function DR(e,n){const t=SR(e);return t.internalFlags=t.internalFlags|n,e}function CR(e){var n;return(null==(n=e.emitNode)?void 0:n.sourceMapRange)??e}function NR(e,n){return SR(e).sourceMapRange=n,e}function MR(e,n){var t,r;return null==(r=null==(t=e.emitNode)?void 0:t.tokenSourceMapRanges)?void 0:r[n]}function PR(e,n,t){const r=SR(e);return(r.tokenSourceMapRanges??(r.tokenSourceMapRanges=[]))[n]=t,e}function LR(e){var n;return null==(n=e.emitNode)?void 0:n.startsOnNewLine}function kR(e,n){return SR(e).startsOnNewLine=n,e}function wR(e){var n;return(null==(n=e.emitNode)?void 0:n.commentRange)??e}function OR(e,n){return SR(e).commentRange=n,e}function FR(e){var n;return null==(n=e.emitNode)?void 0:n.leadingComments}function WR(e,n){return SR(e).leadingComments=n,e}function zR(e,n,t,r){return WR(e,re(FR(e),{kind:n,pos:-1,end:-1,hasTrailingNewLine:r,text:t}))}function BR(e){var n;return null==(n=e.emitNode)?void 0:n.trailingComments}function GR(e,n){return SR(e).trailingComments=n,e}function VR(e,n,t,r){return GR(e,re(BR(e),{kind:n,pos:-1,end:-1,hasTrailingNewLine:r,text:t}))}function jR(e,n){WR(e,FR(n)),GR(e,BR(n));const t=SR(n);return t.leadingComments=void 0,t.trailingComments=void 0,e}function UR(e){var n;return null==(n=e.emitNode)?void 0:n.constantValue}function HR(e,n){return SR(e).constantValue=n,e}function KR(e,n){const t=SR(e);return t.helpers=re(t.helpers,n),e}function qR(e,n){if(U(n)){const t=SR(e);for(const e of n)t.helpers=le(t.helpers,e)}return e}function JR(e,n){var t;const r=null==(t=e.emitNode)?void 0:t.helpers;return!!r&&Gn(r,n)}function XR(e){var n;return null==(n=e.emitNode)?void 0:n.helpers}function YR(e,n,t){const r=e.emitNode,o=r&&r.helpers;if(!U(o))return;const i=SR(n);let a=0;for(let s=0;s<o.length;s++){const e=o[s];t(e)?(a++,i.helpers=le(i.helpers,e)):a>0&&(o[s-a]=e)}a>0&&(o.length-=a)}function $R(e){var n;return null==(n=e.emitNode)?void 0:n.snippetElement}function QR(e,n){return SR(e).snippetElement=n,e}function ZR(e){return SR(e).internalFlags|=4,e}function eI(e,n){return SR(e).typeNode=n,e}function nI(e){var n;return null==(n=e.emitNode)?void 0:n.typeNode}function tI(e,n){return SR(e).identifierTypeArguments=n,e}function rI(e){var n;return null==(n=e.emitNode)?void 0:n.identifierTypeArguments}function oI(e,n){return SR(e).autoGenerate=n,e}function iI(e){var n;return null==(n=e.emitNode)?void 0:n.autoGenerate}function aI(e,n){return SR(e).generatedImportReference=n,e}function sI(e){var n;return null==(n=e.emitNode)?void 0:n.generatedImportReference}var lI=(e=>(e.Field="f",e.Method="m",e.Accessor="a",e))(lI||{});function cI(e){const n=e.factory,t=pn(()=>IR(n.createTrue(),8)),r=pn(()=>IR(n.createFalse(),8));return{getUnscopedHelperName:o,createDecorateHelper:function(t,r,i,a){e.requestEmitHelper(pI);const s=[];s.push(n.createArrayLiteralExpression(t,!0)),s.push(r),i&&(s.push(i),a&&s.push(a));return n.createCallExpression(o("__decorate"),void 0,s)},createMetadataHelper:function(t,r){return e.requestEmitHelper(fI),n.createCallExpression(o("__metadata"),void 0,[n.createStringLiteral(t),r])},createParamHelper:function(t,r,i){return e.requestEmitHelper(mI),DL(n.createCallExpression(o("__param"),void 0,[n.createNumericLiteral(r+""),t]),i)},createESDecorateHelper:function(t,r,i,s,l,c){return e.requestEmitHelper(hI),n.createCallExpression(o("__esDecorate"),void 0,[t??n.createNull(),r??n.createNull(),i,a(s),l,c])},createRunInitializersHelper:function(t,r,i){return e.requestEmitHelper(_I),n.createCallExpression(o("__runInitializers"),void 0,i?[t,r,i]:[t,r])},createAssignHelper:function(t){if(SS(e.getCompilerOptions())>=2)return n.createCallExpression(n.createPropertyAccessExpression(n.createIdentifier("Object"),"assign"),void 0,t);return e.requestEmitHelper(gI),n.createCallExpression(o("__assign"),void 0,t)},createAwaitHelper:function(t){return e.requestEmitHelper(yI),n.createCallExpression(o("__await"),void 0,[t])},createAsyncGeneratorHelper:function(t,r){return e.requestEmitHelper(yI),e.requestEmitHelper(vI),(t.emitNode||(t.emitNode={})).flags|=1572864,n.createCallExpression(o("__asyncGenerator"),void 0,[r?n.createThis():n.createVoidZero(),n.createIdentifier("arguments"),t])},createAsyncDelegatorHelper:function(t){return e.requestEmitHelper(yI),e.requestEmitHelper(bI),n.createCallExpression(o("__asyncDelegator"),void 0,[t])},createAsyncValuesHelper:function(t){return e.requestEmitHelper(TI),n.createCallExpression(o("__asyncValues"),void 0,[t])},createRestHelper:function(t,r,i,a){e.requestEmitHelper(SI);const s=[];let l=0;for(let e=0;e<r.length-1;e++){const t=jP(r[e]);if(t)if(RD(t)){dt.assertIsDefined(i,"Encountered computed property name but 'computedTempVariables' argument was not provided.");const e=i[l];l++,s.push(n.createConditionalExpression(n.createTypeCheck(e,"symbol"),void 0,e,void 0,n.createAdd(e,n.createStringLiteral(""))))}else s.push(n.createStringLiteralFromNode(t))}return n.createCallExpression(o("__rest"),void 0,[t,DL(n.createArrayLiteralExpression(s),a)])},createAwaiterHelper:function(t,r,i,a,s){e.requestEmitHelper(EI);const l=n.createFunctionExpression(void 0,n.createToken(42),void 0,void 0,a??[],void 0,s);return(l.emitNode||(l.emitNode={})).flags|=1572864,n.createCallExpression(o("__awaiter"),void 0,[t?n.createThis():n.createVoidZero(),r??n.createVoidZero(),i?_P(n,i):n.createVoidZero(),l])},createExtendsHelper:function(t){return e.requestEmitHelper(AI),n.createCallExpression(o("__extends"),void 0,[t,n.createUniqueName("_super",48)])},createTemplateObjectHelper:function(t,r){return e.requestEmitHelper(xI),n.createCallExpression(o("__makeTemplateObject"),void 0,[t,r])},createSpreadArrayHelper:function(i,a,s){return e.requestEmitHelper(II),n.createCallExpression(o("__spreadArray"),void 0,[i,a,s?t():r()])},createPropKeyHelper:function(t){return e.requestEmitHelper(DI),n.createCallExpression(o("__propKey"),void 0,[t])},createSetFunctionNameHelper:function(n,t,r){return e.requestEmitHelper(CI),e.factory.createCallExpression(o("__setFunctionName"),void 0,r?[n,t,e.factory.createStringLiteral(r)]:[n,t])},createValuesHelper:function(t){return e.requestEmitHelper(NI),n.createCallExpression(o("__values"),void 0,[t])},createReadHelper:function(t,r){return e.requestEmitHelper(RI),n.createCallExpression(o("__read"),void 0,void 0!==r?[t,n.createNumericLiteral(r+"")]:[t])},createGeneratorHelper:function(t){return e.requestEmitHelper(MI),n.createCallExpression(o("__generator"),void 0,[n.createThis(),t])},createImportStarHelper:function(t){return e.requestEmitHelper(LI),n.createCallExpression(o("__importStar"),void 0,[t])},createImportStarCallbackHelper:function(){return e.requestEmitHelper(LI),o("__importStar")},createImportDefaultHelper:function(t){return e.requestEmitHelper(kI),n.createCallExpression(o("__importDefault"),void 0,[t])},createExportStarHelper:function(t,r=n.createIdentifier("exports")){return e.requestEmitHelper(wI),e.requestEmitHelper(PI),n.createCallExpression(o("__exportStar"),void 0,[t,r])},createClassPrivateFieldGetHelper:function(t,r,i,a){let s;e.requestEmitHelper(OI),s=a?[t,r,n.createStringLiteral(i),a]:[t,r,n.createStringLiteral(i)];return n.createCallExpression(o("__classPrivateFieldGet"),void 0,s)},createClassPrivateFieldSetHelper:function(t,r,i,a,s){let l;e.requestEmitHelper(FI),l=s?[t,r,i,n.createStringLiteral(a),s]:[t,r,i,n.createStringLiteral(a)];return n.createCallExpression(o("__classPrivateFieldSet"),void 0,l)},createClassPrivateFieldInHelper:function(t,r){return e.requestEmitHelper(WI),n.createCallExpression(o("__classPrivateFieldIn"),void 0,[t,r])},createAddDisposableResourceHelper:function(t,r,i){return e.requestEmitHelper(zI),n.createCallExpression(o("__addDisposableResource"),void 0,[t,r,i?n.createTrue():n.createFalse()])},createDisposeResourcesHelper:function(t){return e.requestEmitHelper(BI),n.createCallExpression(o("__disposeResources"),void 0,[t])},createRewriteRelativeImportExtensionsHelper:function(t){return e.requestEmitHelper(GI),n.createCallExpression(o("__rewriteRelativeImportExtension"),void 0,1===e.getCompilerOptions().jsx?[t,n.createTrue()]:[t])}};function o(e){return xR(n.createIdentifier(e),8196)}function i(e,t){const r=[];return r.push(function(e){const t=e.computed?e.name:dD(e.name)?n.createStringLiteralFromNode(e.name):e.name;return n.createPropertyAssignment("has",n.createArrowFunction(void 0,void 0,[n.createParameterDeclaration(void 0,void 0,n.createIdentifier("obj"))],void 0,void 0,n.createBinaryExpression(t,103,n.createIdentifier("obj"))))}(e)),t.get&&r.push(function(e){const t=e.computed?n.createElementAccessExpression(n.createIdentifier("obj"),e.name):n.createPropertyAccessExpression(n.createIdentifier("obj"),e.name);return n.createPropertyAssignment("get",n.createArrowFunction(void 0,void 0,[n.createParameterDeclaration(void 0,void 0,n.createIdentifier("obj"))],void 0,void 0,t))}(e)),t.set&&r.push(function(e){const t=e.computed?n.createElementAccessExpression(n.createIdentifier("obj"),e.name):n.createPropertyAccessExpression(n.createIdentifier("obj"),e.name);return n.createPropertyAssignment("set",n.createArrowFunction(void 0,void 0,[n.createParameterDeclaration(void 0,void 0,n.createIdentifier("obj")),n.createParameterDeclaration(void 0,void 0,n.createIdentifier("value"))],void 0,void 0,n.createBlock([n.createExpressionStatement(n.createAssignment(t,n.createIdentifier("value")))])))}(e)),n.createObjectLiteralExpression(r)}function a(e){return"class"===e.kind?function(e){const t=[n.createPropertyAssignment(n.createIdentifier("kind"),n.createStringLiteral("class")),n.createPropertyAssignment(n.createIdentifier("name"),e.name),n.createPropertyAssignment(n.createIdentifier("metadata"),e.metadata)];return n.createObjectLiteralExpression(t)}(e):function(e){const t=[n.createPropertyAssignment(n.createIdentifier("kind"),n.createStringLiteral(e.kind)),n.createPropertyAssignment(n.createIdentifier("name"),e.name.computed?e.name.name:n.createStringLiteralFromNode(e.name.name)),n.createPropertyAssignment(n.createIdentifier("static"),e.static?n.createTrue():n.createFalse()),n.createPropertyAssignment(n.createIdentifier("private"),e.private?n.createTrue():n.createFalse()),n.createPropertyAssignment(n.createIdentifier("access"),i(e.name,e.access)),n.createPropertyAssignment(n.createIdentifier("metadata"),e.metadata)];return n.createObjectLiteralExpression(t)}(e)}}function dI(e,n){return e===n||e.priority===n.priority?0:void 0===e.priority?1:void 0===n.priority?-1:vn(e.priority,n.priority)}function uI(e,...n){return t=>{let r="";for(let o=0;o<n.length;o++)r+=e[o],r+=t(n[o]);return r+=e[e.length-1],r}}var pI={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 };'},fI={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 };'},mI={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 };"},hI={name:"typescript:esDecorate",importName:"__esDecorate",scoped:!1,priority:2,text:'\n var __esDecorate = (this && this.__esDecorate) || function (ctor, descriptorIn, decorators, contextIn, initializers, extraInitializers) {\n function accept(f) { if (f !== void 0 && typeof f !== "function") throw new TypeError("Function expected"); return f; }\n var kind = contextIn.kind, key = kind === "getter" ? "get" : kind === "setter" ? "set" : "value";\n var target = !descriptorIn && ctor ? contextIn["static"] ? ctor : ctor.prototype : null;\n var descriptor = descriptorIn || (target ? Object.getOwnPropertyDescriptor(target, contextIn.name) : {});\n var _, done = false;\n for (var i = decorators.length - 1; i >= 0; i--) {\n var context = {};\n for (var p in contextIn) context[p] = p === "access" ? {} : contextIn[p];\n for (var p in contextIn.access) context.access[p] = contextIn.access[p];\n context.addInitializer = function (f) { if (done) throw new TypeError("Cannot add initializers after decoration has completed"); extraInitializers.push(accept(f || null)); };\n var result = (0, decorators[i])(kind === "accessor" ? { get: descriptor.get, set: descriptor.set } : descriptor[key], context);\n if (kind === "accessor") {\n if (result === void 0) continue;\n if (result === null || typeof result !== "object") throw new TypeError("Object expected");\n if (_ = accept(result.get)) descriptor.get = _;\n if (_ = accept(result.set)) descriptor.set = _;\n if (_ = accept(result.init)) initializers.unshift(_);\n }\n else if (_ = accept(result)) {\n if (kind === "field") initializers.unshift(_);\n else descriptor[key] = _;\n }\n }\n if (target) Object.defineProperty(target, contextIn.name, descriptor);\n done = true;\n };'},_I={name:"typescript:runInitializers",importName:"__runInitializers",scoped:!1,priority:2,text:"\n var __runInitializers = (this && this.__runInitializers) || function (thisArg, initializers, value) {\n var useValue = arguments.length > 2;\n for (var i = 0; i < initializers.length; i++) {\n value = useValue ? initializers[i].call(thisArg, value) : initializers[i].call(thisArg);\n }\n return useValue ? value : void 0;\n };"},gI={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 };"},yI={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); }"},vI={name:"typescript:asyncGenerator",importName:"__asyncGenerator",scoped:!1,dependencies:[yI],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 = Object.create((typeof AsyncIterator === "function" ? AsyncIterator : Object).prototype), verb("next"), verb("throw"), verb("return", awaitReturn), i[Symbol.asyncIterator] = function () { return this; }, i;\n function awaitReturn(f) { return function (v) { return Promise.resolve(v).then(f, reject); }; }\n function verb(n, f) { if (g[n]) { i[n] = function (v) { return new Promise(function (a, b) { q.push([n, v, a, b]) > 1 || resume(n, v); }); }; if (f) i[n] = f(i[n]); } }\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 };'},bI={name:"typescript:asyncDelegator",importName:"__asyncDelegator",scoped:!1,dependencies:[yI],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: false } : f ? f(v) : v; } : f; }\n };'},TI={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 };'},SI={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 };'},EI={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 };'},AI={name:"typescript:extends",importName:"__extends",scoped:!1,priority:0,text:'\n var __extends = (this && this.__extends) || (function () {\n var extendStatics = function (d, b) {\n extendStatics = Object.setPrototypeOf ||\n ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||\n function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };\n return extendStatics(d, b);\n };\n\n return function (d, b) {\n if (typeof b !== "function" && b !== null)\n throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");\n extendStatics(d, b);\n function __() { this.constructor = d; }\n d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\n };\n })();'},xI={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 };'},RI={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 };'},II={name:"typescript:spreadArray",importName:"__spreadArray",scoped:!1,text:"\n var __spreadArray = (this && this.__spreadArray) || function (to, from, pack) {\n if (pack || arguments.length === 2) for (var i = 0, l = from.length, ar; i < l; i++) {\n if (ar || !(i in from)) {\n if (!ar) ar = Array.prototype.slice.call(from, 0, i);\n ar[i] = from[i];\n }\n }\n return to.concat(ar || Array.prototype.slice.call(from));\n };"},DI={name:"typescript:propKey",importName:"__propKey",scoped:!1,text:'\n var __propKey = (this && this.__propKey) || function (x) {\n return typeof x === "symbol" ? x : "".concat(x);\n };'},CI={name:"typescript:setFunctionName",importName:"__setFunctionName",scoped:!1,text:'\n var __setFunctionName = (this && this.__setFunctionName) || function (f, name, prefix) {\n if (typeof name === "symbol") name = name.description ? "[".concat(name.description, "]") : "";\n return Object.defineProperty(f, "name", { configurable: true, value: prefix ? "".concat(prefix, " ", name) : name });\n };'},NI={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 };'},MI={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 = Object.create((typeof Iterator === "function" ? Iterator : Object).prototype);\n return g.next = verb(0), g["throw"] = verb(1), g["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 (g && (g = 0, op[0] && (_ = 0)), _) 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 };'},PI={name:"typescript:commonjscreatebinding",importName:"__createBinding",scoped:!1,priority:1,text:'\n var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {\n if (k2 === undefined) k2 = k;\n var desc = Object.getOwnPropertyDescriptor(m, k);\n if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {\n desc = { enumerable: true, get: function() { return m[k]; } };\n }\n Object.defineProperty(o, k2, desc);\n }) : (function(o, m, k, k2) {\n if (k2 === undefined) k2 = k;\n o[k2] = m[k];\n }));'},LI={name:"typescript:commonjsimportstar",importName:"__importStar",scoped:!1,dependencies:[PI,{name:"typescript:commonjscreatevalue",importName:"__setModuleDefault",scoped:!1,priority:1,text:'\n var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {\n Object.defineProperty(o, "default", { enumerable: true, value: v });\n }) : function(o, v) {\n o["default"] = v;\n });'}],priority:2,text:'\n var __importStar = (this && this.__importStar) || (function () {\n var ownKeys = function(o) {\n ownKeys = Object.getOwnPropertyNames || function (o) {\n var ar = [];\n for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;\n return ar;\n };\n return ownKeys(o);\n };\n return function (mod) {\n if (mod && mod.__esModule) return mod;\n var result = {};\n if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);\n __setModuleDefault(result, mod);\n return result;\n };\n })();'},kI={name:"typescript:commonjsimportdefault",importName:"__importDefault",scoped:!1,text:'\n var __importDefault = (this && this.__importDefault) || function (mod) {\n return (mod && mod.__esModule) ? mod : { "default": mod };\n };'},wI={name:"typescript:export-star",importName:"__exportStar",scoped:!1,dependencies:[PI],priority:2,text:'\n var __exportStar = (this && this.__exportStar) || function(m, exports) {\n for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);\n };'},OI={name:"typescript:classPrivateFieldGet",importName:"__classPrivateFieldGet",scoped:!1,text:'\n var __classPrivateFieldGet = (this && this.__classPrivateFieldGet) || function (receiver, state, kind, f) {\n if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a getter");\n if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError("Cannot read private member from an object whose class did not declare it");\n return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver);\n };'},FI={name:"typescript:classPrivateFieldSet",importName:"__classPrivateFieldSet",scoped:!1,text:'\n var __classPrivateFieldSet = (this && this.__classPrivateFieldSet) || function (receiver, state, value, kind, f) {\n if (kind === "m") throw new TypeError("Private method is not writable");\n if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a setter");\n if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError("Cannot write private member to an object whose class did not declare it");\n return (kind === "a" ? f.call(receiver, value) : f ? f.value = value : state.set(receiver, value)), value;\n };'},WI={name:"typescript:classPrivateFieldIn",importName:"__classPrivateFieldIn",scoped:!1,text:'\n var __classPrivateFieldIn = (this && this.__classPrivateFieldIn) || function(state, receiver) {\n if (receiver === null || (typeof receiver !== "object" && typeof receiver !== "function")) throw new TypeError("Cannot use \'in\' operator on non-object");\n return typeof state === "function" ? receiver === state : state.has(receiver);\n };'},zI={name:"typescript:addDisposableResource",importName:"__addDisposableResource",scoped:!1,text:'\n var __addDisposableResource = (this && this.__addDisposableResource) || function (env, value, async) {\n if (value !== null && value !== void 0) {\n if (typeof value !== "object" && typeof value !== "function") throw new TypeError("Object expected.");\n var dispose, inner;\n if (async) {\n if (!Symbol.asyncDispose) throw new TypeError("Symbol.asyncDispose is not defined.");\n dispose = value[Symbol.asyncDispose];\n }\n if (dispose === void 0) {\n if (!Symbol.dispose) throw new TypeError("Symbol.dispose is not defined.");\n dispose = value[Symbol.dispose];\n if (async) inner = dispose;\n }\n if (typeof dispose !== "function") throw new TypeError("Object not disposable.");\n if (inner) dispose = function() { try { inner.call(this); } catch (e) { return Promise.reject(e); } };\n env.stack.push({ value: value, dispose: dispose, async: async });\n }\n else if (async) {\n env.stack.push({ async: true });\n }\n return value;\n };'},BI={name:"typescript:disposeResources",importName:"__disposeResources",scoped:!1,text:'\n var __disposeResources = (this && this.__disposeResources) || (function (SuppressedError) {\n return function (env) {\n function fail(e) {\n env.error = env.hasError ? new SuppressedError(e, env.error, "An error was suppressed during disposal.") : e;\n env.hasError = true;\n }\n var r, s = 0;\n function next() {\n while (r = env.stack.pop()) {\n try {\n if (!r.async && s === 1) return s = 0, env.stack.push(r), Promise.resolve().then(next);\n if (r.dispose) {\n var result = r.dispose.call(r.value);\n if (r.async) return s |= 2, Promise.resolve(result).then(next, function(e) { fail(e); return next(); });\n }\n else s |= 1;\n }\n catch (e) {\n fail(e);\n }\n }\n if (s === 1) return env.hasError ? Promise.reject(env.error) : Promise.resolve();\n if (env.hasError) throw env.error;\n }\n return next();\n };\n })(typeof SuppressedError === "function" ? SuppressedError : function (error, suppressed, message) {\n var e = new Error(message);\n return e.name = "SuppressedError", e.error = error, e.suppressed = suppressed, e;\n });'},GI={name:"typescript:rewriteRelativeImportExtensions",importName:"__rewriteRelativeImportExtension",scoped:!1,text:'\n var __rewriteRelativeImportExtension = (this && this.__rewriteRelativeImportExtension) || function (path, preserveJsx) {\n if (typeof path === "string" && /^\\.\\.?\\//.test(path)) {\n return path.replace(/\\.(tsx)$|((?:\\.d)?)((?:\\.[^./]+?)?)\\.([cm]?)ts$/i, function (m, tsx, d, ext, cm) {\n return tsx ? preserveJsx ? ".jsx" : ".js" : d && (!ext || !cm) ? m : (d + ext + "." + cm.toLowerCase() + "js");\n });\n }\n return path;\n };'},VI={name:"typescript:async-super",scoped:!0,text:uI`
|
||
const ${"_superIndex"} = name => super[name];`},jI={name:"typescript:advanced-async-super",scoped:!0,text:uI`
|
||
const ${"_superIndex"} = (function (geti, seti) {
|
||
const cache = Object.create(null);
|
||
return name => cache[name] || (cache[name] = { get value() { return geti(name); }, set value(v) { seti(name, v); } });
|
||
})(name => super[name], (name, value) => super[name] = value);`};function UI(e,n){return yC(e)&&dD(e.expression)&&!!(8192&tf(e.expression))&&e.expression.escapedText===n}function HI(e){return 9===e.kind}function KI(e){return 10===e.kind}function qI(e){return 11===e.kind}function JI(e){return 12===e.kind}function XI(e){return 14===e.kind}function YI(e){return 15===e.kind}function $I(e){return 16===e.kind}function QI(e){return 17===e.kind}function ZI(e){return 18===e.kind}function eD(e){return 26===e.kind}function nD(e){return 28===e.kind}function tD(e){return 40===e.kind}function rD(e){return 41===e.kind}function oD(e){return 42===e.kind}function iD(e){return 54===e.kind}function aD(e){return 58===e.kind}function sD(e){return 59===e.kind}function lD(e){return 29===e.kind}function cD(e){return 39===e.kind}function dD(e){return 80===e.kind}function uD(e){return 81===e.kind}function pD(e){return 95===e.kind}function fD(e){return 90===e.kind}function mD(e){return 134===e.kind}function hD(e){return 131===e.kind}function _D(e){return 135===e.kind}function gD(e){return 148===e.kind}function yD(e){return 126===e.kind}function vD(e){return 128===e.kind}function bD(e){return 164===e.kind}function TD(e){return 129===e.kind}function SD(e){return 108===e.kind}function ED(e){return 102===e.kind}function AD(e){return 84===e.kind}function xD(e){return 167===e.kind}function RD(e){return 168===e.kind}function ID(e){return 169===e.kind}function DD(e){return 170===e.kind}function CD(e){return 171===e.kind}function ND(e){return 172===e.kind}function MD(e){return 173===e.kind}function PD(e){return 174===e.kind}function LD(e){return 175===e.kind}function kD(e){return 176===e.kind}function wD(e){return 177===e.kind}function OD(e){return 178===e.kind}function FD(e){return 179===e.kind}function WD(e){return 180===e.kind}function zD(e){return 181===e.kind}function BD(e){return 182===e.kind}function GD(e){return 183===e.kind}function VD(e){return 184===e.kind}function jD(e){return 185===e.kind}function UD(e){return 186===e.kind}function HD(e){return 187===e.kind}function KD(e){return 188===e.kind}function qD(e){return 189===e.kind}function JD(e){return 190===e.kind}function XD(e){return 203===e.kind}function YD(e){return 191===e.kind}function $D(e){return 192===e.kind}function QD(e){return 193===e.kind}function ZD(e){return 194===e.kind}function eC(e){return 195===e.kind}function nC(e){return 196===e.kind}function tC(e){return 197===e.kind}function rC(e){return 198===e.kind}function oC(e){return 199===e.kind}function iC(e){return 200===e.kind}function aC(e){return 201===e.kind}function sC(e){return 202===e.kind}function lC(e){return 206===e.kind}function cC(e){return 205===e.kind}function dC(e){return 204===e.kind}function uC(e){return 207===e.kind}function pC(e){return 208===e.kind}function fC(e){return 209===e.kind}function mC(e){return 210===e.kind}function hC(e){return 211===e.kind}function _C(e){return 212===e.kind}function gC(e){return 213===e.kind}function yC(e){return 214===e.kind}function vC(e){return 215===e.kind}function bC(e){return 216===e.kind}function TC(e){return 217===e.kind}function SC(e){return 218===e.kind}function EC(e){return 219===e.kind}function AC(e){return 220===e.kind}function xC(e){return 221===e.kind}function RC(e){return 222===e.kind}function IC(e){return 223===e.kind}function DC(e){return 224===e.kind}function CC(e){return 225===e.kind}function NC(e){return 226===e.kind}function MC(e){return 227===e.kind}function PC(e){return 228===e.kind}function LC(e){return 229===e.kind}function kC(e){return 230===e.kind}function wC(e){return 231===e.kind}function OC(e){return 232===e.kind}function FC(e){return 233===e.kind}function WC(e){return 234===e.kind}function zC(e){return 235===e.kind}function BC(e){return 239===e.kind}function GC(e){return 236===e.kind}function VC(e){return 237===e.kind}function jC(e){return 238===e.kind}function UC(e){return 356===e.kind}function HC(e){return 357===e.kind}function KC(e){return 240===e.kind}function qC(e){return 241===e.kind}function JC(e){return 242===e.kind}function XC(e){return 244===e.kind}function YC(e){return 243===e.kind}function $C(e){return 245===e.kind}function QC(e){return 246===e.kind}function ZC(e){return 247===e.kind}function eN(e){return 248===e.kind}function nN(e){return 249===e.kind}function tN(e){return 250===e.kind}function rN(e){return 251===e.kind}function oN(e){return 252===e.kind}function iN(e){return 253===e.kind}function aN(e){return 254===e.kind}function sN(e){return 255===e.kind}function lN(e){return 256===e.kind}function cN(e){return 257===e.kind}function dN(e){return 258===e.kind}function uN(e){return 259===e.kind}function pN(e){return 260===e.kind}function fN(e){return 261===e.kind}function mN(e){return 262===e.kind}function hN(e){return 263===e.kind}function _N(e){return 264===e.kind}function gN(e){return 265===e.kind}function yN(e){return 266===e.kind}function vN(e){return 267===e.kind}function bN(e){return 268===e.kind}function TN(e){return 269===e.kind}function SN(e){return 270===e.kind}function EN(e){return 271===e.kind}function AN(e){return 272===e.kind}function xN(e){return 273===e.kind}function RN(e){return 274===e.kind}function IN(e){return 303===e.kind}function DN(e){return 301===e.kind}function CN(e){return 302===e.kind}function NN(e){return 301===e.kind}function MN(e){return 302===e.kind}function PN(e){return 275===e.kind}function LN(e){return 281===e.kind}function kN(e){return 276===e.kind}function wN(e){return 277===e.kind}function ON(e){return 278===e.kind}function FN(e){return 279===e.kind}function WN(e){return 280===e.kind}function zN(e){return 282===e.kind}function BN(e){return 80===e.kind||11===e.kind}function GN(e){return 283===e.kind}function VN(e){return 354===e.kind}function jN(e){return 358===e.kind}function UN(e){return 284===e.kind}function HN(e){return 285===e.kind}function KN(e){return 286===e.kind}function qN(e){return 287===e.kind}function JN(e){return 288===e.kind}function XN(e){return 289===e.kind}function YN(e){return 290===e.kind}function $N(e){return 291===e.kind}function QN(e){return 292===e.kind}function ZN(e){return 293===e.kind}function eM(e){return 294===e.kind}function nM(e){return 295===e.kind}function tM(e){return 296===e.kind}function rM(e){return 297===e.kind}function oM(e){return 298===e.kind}function iM(e){return 299===e.kind}function aM(e){return 300===e.kind}function sM(e){return 304===e.kind}function lM(e){return 305===e.kind}function cM(e){return 306===e.kind}function dM(e){return 307===e.kind}function uM(e){return 308===e.kind}function pM(e){return 309===e.kind}function fM(e){return 310===e.kind}function mM(e){return 311===e.kind}function hM(e){return 312===e.kind}function _M(e){return 325===e.kind}function gM(e){return 326===e.kind}function yM(e){return 327===e.kind}function vM(e){return 313===e.kind}function bM(e){return 314===e.kind}function TM(e){return 315===e.kind}function SM(e){return 316===e.kind}function EM(e){return 317===e.kind}function AM(e){return 318===e.kind}function xM(e){return 319===e.kind}function RM(e){return 320===e.kind}function IM(e){return 321===e.kind}function DM(e){return 323===e.kind}function CM(e){return 324===e.kind}function NM(e){return 329===e.kind}function MM(e){return 331===e.kind}function PM(e){return 333===e.kind}function LM(e){return 339===e.kind}function kM(e){return 334===e.kind}function wM(e){return 335===e.kind}function OM(e){return 336===e.kind}function FM(e){return 337===e.kind}function WM(e){return 338===e.kind}function zM(e){return 340===e.kind}function BM(e){return 332===e.kind}function GM(e){return 348===e.kind}function VM(e){return 341===e.kind}function jM(e){return 342===e.kind}function UM(e){return 343===e.kind}function HM(e){return 344===e.kind}function KM(e){return 345===e.kind}function qM(e){return 346===e.kind}function JM(e){return 347===e.kind}function XM(e){return 328===e.kind}function YM(e){return 349===e.kind}function $M(e){return 330===e.kind}function QM(e){return 351===e.kind}function ZM(e){return 350===e.kind}function eP(e){return 352===e.kind}function nP(e){return 353===e.kind}var tP,rP=new WeakMap;function oP(e,n){var t;const r=e.kind;return Mc(r)?353===r?e._children:null==(t=rP.get(n))?void 0:t.get(e):s}function iP(e,n,t){353===e.kind&&dt.fail("Should not need to re-set the children of a SyntaxList.");let r=rP.get(n);return void 0===r&&(r=new WeakMap,rP.set(n,r)),r.set(e,t),t}function aP(e,n){var t;353===e.kind&&dt.fail("Did not expect to unset the children of a SyntaxList."),null==(t=rP.get(n))||t.delete(e)}function sP(e,n){const t=rP.get(e);void 0!==t&&(rP.delete(e),rP.set(n,t))}function lP(e){return e.createExportDeclaration(void 0,!1,e.createNamedExports([]),void 0)}function cP(e,n,t,r){if(RD(t))return DL(e.createElementAccessExpression(n,t.expression),r);{const r=DL(hc(t)?e.createPropertyAccessExpression(n,t):e.createElementAccessExpression(n,t),t);return RR(r,128),r}}function dP(e,n){const t=PL.createIdentifier(e||"React");return PA(t,_l(n)),t}function uP(e,n,t){if(xD(n)){const r=uP(e,n.left,t),o=e.createIdentifier(vl(n.right));return o.escapedText=n.right.escapedText,e.createPropertyAccessExpression(r,o)}return dP(vl(n),t)}function pP(e,n,t,r){return n?uP(e,n,r):e.createPropertyAccessExpression(dP(t,r),"createElement")}function fP(e,n,t,r,o,i){const a=[t];if(r&&a.push(r),o&&o.length>0)if(r||a.push(e.createNull()),o.length>1)for(const s of o)LP(s),a.push(s);else a.push(o[0]);return DL(e.createCallExpression(n,void 0,a),i)}function mP(e,n,t,r,o,i,a){const s=function(e,n,t,r){return n?uP(e,n,r):e.createPropertyAccessExpression(dP(t,r),"Fragment")}(e,t,r,i),l=[s,e.createNull()];if(o&&o.length>0)if(o.length>1)for(const c of o)LP(c),l.push(c);else l.push(o[0]);return DL(e.createCallExpression(pP(e,n,r,i),void 0,l),a)}function hP(e,n,t){if(mN(n)){const r=he(n.declarations),o=e.updateVariableDeclaration(r,r.name,void 0,void 0,t);return DL(e.createVariableStatement(void 0,e.updateVariableDeclarationList(n,[o])),n)}{const r=DL(e.createAssignment(n,t),n);return DL(e.createExpressionStatement(r),n)}}function _P(e,n){if(xD(n)){const t=_P(e,n.left),r=PA(DL(e.cloneNode(n.right),n.right),n.right.parent);return DL(e.createPropertyAccessExpression(t,r),n)}return PA(DL(e.cloneNode(n),n),n.parent)}function gP(e,n){return dD(n)?e.createStringLiteralFromNode(n):RD(n)?PA(DL(e.cloneNode(n.expression),n.expression),n.expression.parent):PA(DL(e.cloneNode(n),n),n.parent)}function yP(e,n,t,r){switch(t.name&&uD(t.name)&&dt.failBadSyntaxKind(t.name,"Private identifiers are not allowed in object literals."),t.kind){case 178:case 179:return function(e,n,t,r,o){const{firstAccessor:i,getAccessor:a,setAccessor:s}=_v(n,t);if(t===i)return DL(e.createObjectDefinePropertyCall(r,gP(e,t.name),e.createPropertyDescriptor({enumerable:e.createFalse(),configurable:!0,get:a&&DL(TR(e.createFunctionExpression(Ml(a),void 0,void 0,void 0,a.parameters,void 0,a.body),a),a),set:s&&DL(TR(e.createFunctionExpression(Ml(s),void 0,void 0,void 0,s.parameters,void 0,s.body),s),s)},!o)),i)}(e,n.properties,t,r,!!n.multiLine);case 304:return function(e,n,t){return TR(DL(e.createAssignment(cP(e,t,n.name,n.name),n.initializer),n),n)}(e,t,r);case 305:return function(e,n,t){return TR(DL(e.createAssignment(cP(e,t,n.name,n.name),e.cloneNode(n.name)),n),n)}(e,t,r);case 175:return function(e,n,t){return TR(DL(e.createAssignment(cP(e,t,n.name,n.name),TR(DL(e.createFunctionExpression(Ml(n),n.asteriskToken,void 0,void 0,n.parameters,void 0,n.body),n),n)),n),n)}(e,t,r)}}function vP(e,n,t,r,o){const i=n.operator;dt.assert(46===i||47===i,"Expected 'node' to be a pre- or post-increment or pre- or post-decrement expression");const a=e.createTempVariable(r);DL(t=e.createAssignment(a,t),n.operand);let s=CC(n)?e.createPrefixUnaryExpression(i,a):e.createPostfixUnaryExpression(a,i);return DL(s,n),o&&(s=e.createAssignment(o,s),DL(s,n)),DL(t=e.createComma(t,s),n),NC(n)&&DL(t=e.createComma(t,a),n),t}function bP(e){return!!(65536&tf(e))}function TP(e){return!!(32768&tf(e))}function SP(e){return!!(16384&tf(e))}function EP(e){return qI(e.expression)&&"use strict"===e.expression.text}function AP(e){for(const n of e){if(!_m(n))break;if(EP(n))return n}}function xP(e){const n=fe(e);return void 0!==n&&_m(n)&&EP(n)}function RP(e){return 227===e.kind&&28===e.operatorToken.kind}function IP(e){return RP(e)||HC(e)}function DP(e){return SC(e)&&Lh(e)&&!!oc(e)}function CP(e){const n=ic(e);return dt.assertIsDefined(n),n}function NP(e,n=63){switch(e.kind){case 218:return!(-2147483648&n&&DP(e))&&!!(1&n);case 217:case 235:return!!(2&n);case 239:return!!(34&n);case 234:return!!(16&n);case 236:return!!(4&n);case 356:return!!(8&n)}return!1}function MP(e,n=63){for(;NP(e,n);)e=e.expression;return e}function PP(e,n=63){let t=e.parent;for(;NP(t,n);)t=t.parent,dt.assert(t);return t}function LP(e){return kR(e,!0)}function kP(e){const n=fl(e,uM),t=n&&n.emitNode;return t&&t.externalHelpersModuleName}function wP(e){const n=fl(e,uM),t=n&&n.emitNode;return!(!t||!t.externalHelpersModuleName&&!t.externalHelpers)}function OP(e,n,t,r,o,i,a){if(r.importHelpers&&Tf(t,r)){const s=ES(r),l=qU(t,r),c=function(e){return x(XR(e),e=>!e.scoped)}(t);if(1!==l&&(s>=5&&s<=99||99===l||void 0===l&&200===s)){if(c){const r=[];for(const e of c){const n=e.importName;n&&se(r,n)}if(U(r)){r.sort(xn);const o=e.createNamedImports(D(r,r=>Cp(t,r)?e.createImportSpecifier(!1,void 0,e.createIdentifier(r)):e.createImportSpecifier(!1,e.createIdentifier(r),n.getUnscopedHelperName(r))));SR(fl(t,uM)).externalHelpers=!0;const i=e.createImportDeclaration(void 0,e.createImportClause(void 0,void 0,o),e.createStringLiteral(Ku),void 0);return DR(i,2),i}}}else{const n=function(e,n,t,r,o,i){const a=kP(n);if(a)return a;const s=U(r)||(o||IS(t)&&i)&&KU(n,t)<4;if(s){const t=SR(fl(n,uM));return t.externalHelpersModuleName||(t.externalHelpersModuleName=e.createUniqueName(Ku))}}(e,t,r,c,o,i||a);if(n){const t=e.createImportEqualsDeclaration(void 0,!1,n,e.createExternalModuleReference(e.createStringLiteral(Ku)));return DR(t,2),t}}}}function FP(e,n,t){const r=R_(n);if(r&&!I_(n)&&!Jp(n)){const o=r.name;return 11===o.kind?e.getGeneratedNameForNode(n):Jc(o)?o:e.createIdentifier(qp(t,o)||vl(o))}return 273===n.kind&&n.importClause||279===n.kind&&n.moduleSpecifier?e.getGeneratedNameForNode(n):void 0}function WP(e,n,t,r,o,i){const a=x_(n);if(a&&qI(a))return function(e,n,t,r,o){return zP(t,r.getExternalModuleFileFromDeclaration(e),n,o)}(n,r,e,o,i)||function(e,n,t){const r=t.renamedDependencies&&t.renamedDependencies.get(n.text);return r?e.createStringLiteral(r):void 0}(e,a,t)||e.cloneNode(a)}function zP(e,n,t,r){if(n)return n.moduleName?e.createStringLiteral(n.moduleName):!n.isDeclarationFile&&r.outFile?e.createStringLiteral(Uy(t,n.fileName)):void 0}function BP(e){if(Dd(e))return e.initializer;if(sM(e)){const n=e.initializer;return sb(n,!0)?n.right:void 0}return lM(e)?e.objectAssignmentInitializer:sb(e,!0)?e.right:wC(e)?BP(e.expression):void 0}function GP(e){if(Dd(e))return e.name;if(!Sd(e))return sb(e,!0)?GP(e.left):wC(e)?GP(e.expression):e;switch(e.kind){case 304:return GP(e.initializer);case 305:return e.name;case 306:return GP(e.expression)}}function VP(e){switch(e.kind){case 170:case 209:return e.dotDotDotToken;case 231:case 306:return e}}function jP(e){const n=UP(e);return dt.assert(!!n||cM(e),"Invalid property name for binding element."),n}function UP(e){switch(e.kind){case 209:if(e.propertyName){const n=e.propertyName;return uD(n)?dt.failBadSyntaxKind(n):RD(n)&&HP(n.expression)?n.expression:n}break;case 304:if(e.name){const n=e.name;return uD(n)?dt.failBadSyntaxKind(n):RD(n)&&HP(n.expression)?n.expression:n}break;case 306:return e.name&&uD(e.name)?dt.failBadSyntaxKind(e.name):e.name}const n=GP(e);if(n&&od(n))return n}function HP(e){const n=e.kind;return 11===n||9===n}function KP(e){switch(e.kind){case 207:case 208:case 210:return e.elements;case 211:return e.properties}}function qP(e){if(e){let n=e;for(;;){if(dD(n)||!n.body)return dD(n)?n:n.name;n=n.body}}}function JP(e){const n=e.kind;return 177===n||179===n}function XP(e){const n=e.kind;return 177===n||178===n||179===n}function YP(e){const n=e.kind;return 304===n||305===n||263===n||177===n||182===n||176===n||283===n||244===n||265===n||266===n||267===n||268===n||272===n||273===n||271===n||279===n||278===n}function $P(e){const n=e.kind;return 176===n||304===n||305===n||283===n||271===n}function QP(e){return aD(e)||iD(e)}function ZP(e){return dD(e)||rC(e)}function eL(e){return gD(e)||tD(e)||rD(e)}function nL(e){return aD(e)||tD(e)||rD(e)}function tL(e){return dD(e)||qI(e)}function rL(e){return function(e){return 48===e||49===e||50===e}(e)||function(e){return function(e){return 40===e||41===e}(e)||function(e){return function(e){return 43===e}(e)||function(e){return 42===e||44===e||45===e}(e)}(e)}(e)}function oL(e){return function(e){return 35===e||37===e||36===e||38===e}(e)||function(e){return function(e){return 30===e||33===e||32===e||34===e||104===e||103===e}(e)||rL(e)}(e)}function iL(e){return function(e){return 56===e||57===e}(e)||function(e){return function(e){return 51===e||52===e||53===e}(e)||oL(e)}(e)}function aL(e){return function(e){return 61===e||iL(e)||ob(e)}(e)||28===e}function sL(e){return aL(e.kind)}(e=>{function n(e,t,r,o,i,a,l){const c=t>0?i[t-1]:void 0;return dt.assertEqual(r[t],n),i[t]=e.onEnter(o[t],c,l),r[t]=s(e,n),t}function t(e,n,r,o,i,a,d){dt.assertEqual(r[n],t),dt.assertIsDefined(e.onLeft),r[n]=s(e,t);const u=e.onLeft(o[n].left,i[n],o[n]);return u?(c(n,o,u),l(n,r,o,i,u)):n}function r(e,n,t,o,i,a,l){return dt.assertEqual(t[n],r),dt.assertIsDefined(e.onOperator),t[n]=s(e,r),e.onOperator(o[n].operatorToken,i[n],o[n]),n}function o(e,n,t,r,i,a,d){dt.assertEqual(t[n],o),dt.assertIsDefined(e.onRight),t[n]=s(e,o);const u=e.onRight(r[n].right,i[n],r[n]);return u?(c(n,r,u),l(n,t,r,i,u)):n}function i(e,n,t,r,o,a,l){dt.assertEqual(t[n],i),t[n]=s(e,i);const c=e.onExit(r[n],o[n]);if(n>0){if(n--,e.foldState){const r=t[n]===i?"right":"left";o[n]=e.foldState(o[n],c,r)}}else a.value=c;return n}function a(e,n,t,r,o,i,s){return dt.assertEqual(t[n],a),n}function s(e,s){switch(s){case n:if(e.onLeft)return t;case t:if(e.onOperator)return r;case r:if(e.onRight)return o;case o:return i;case i:case a:return a;default:dt.fail("Invalid state")}}function l(e,t,r,o,i){return t[++e]=n,r[e]=i,o[e]=void 0,e}function c(e,n,t){if(dt.shouldAssert(2))for(;e>=0;)dt.assert(n[e]!==t,"Circular traversal detected."),e--}e.enter=n,e.left=t,e.operator=r,e.right=o,e.exit=i,e.done=a,e.nextState=s})(tP||(tP={}));var lL,cL,dL,uL,pL,fL=class{constructor(e,n,t,r,o,i){this.onEnter=e,this.onLeft=n,this.onOperator=t,this.onRight=r,this.onExit=o,this.foldState=i}};function mL(e,n,t,r,o,i){const a=new fL(e,n,t,r,o,i);return function(e,n){const t={value:void 0},r=[tP.enter],o=[e],i=[void 0];let s=0;for(;r[s]!==tP.done;)s=r[s](a,s,r,o,i,t,n);return dt.assertEqual(s,0),t.value}}function hL(e){return function(e){return 95===e||90===e}(e.kind)}function _L(e,n){if(void 0!==n)return 0===n.length?n:DL(e.createNodeArray([],n.hasTrailingComma),n)}function gL(e){var n;const t=e.emitNode.autoGenerate;if(4&t.flags){const r=t.id;let o=e,i=o.original;for(;i;){o=i;const e=null==(n=o.emitNode)?void 0:n.autoGenerate;if(hc(o)&&(void 0===e||4&e.flags&&e.id!==r))break;i=o.original}return o}return e}function yL(e,n){return"object"==typeof e?bL(!1,e.prefix,e.node,e.suffix,n):"string"==typeof e?e.length>0&&35===e.charCodeAt(0)?e.slice(1):e:""}function vL(e,n){return"string"==typeof e?e:function(e,n){return Xc(e)?n(e).slice(1):Jc(e)?n(e):uD(e)?e.escapedText.slice(1):vl(e)}(e,dt.checkDefined(n))}function bL(e,n,t,r,o){return n=yL(n,o),r=yL(r,o),`${e?"#":""}${n}${t=vL(t,o)}${r}`}function TL(e,n,t,r){return e.updatePropertyDeclaration(n,t,e.getGeneratedPrivateNameForNode(n.name,void 0,"_accessor_storage"),void 0,void 0,r)}function SL(e,n,t,r,o=e.createThis()){return e.createGetAccessorDeclaration(t,r,[],void 0,e.createBlock([e.createReturnStatement(e.createPropertyAccessExpression(o,e.getGeneratedPrivateNameForNode(n.name,void 0,"_accessor_storage")))]))}function EL(e,n,t,r,o=e.createThis()){return e.createSetAccessorDeclaration(t,r,[e.createParameterDeclaration(void 0,void 0,"value")],e.createBlock([e.createExpressionStatement(e.createAssignment(e.createPropertyAccessExpression(o,e.getGeneratedPrivateNameForNode(n.name,void 0,"_accessor_storage")),e.createIdentifier("value")))]))}function AL(e){let n=e.expression;for(;;)if(n=MP(n),HC(n))n=ye(n.elements);else{if(!RP(n)){if(sb(n,!0)&&Jc(n.left))return n;break}n=n.right}}function xL(e,n){if(function(e){return SC(e)&&ry(e)&&!e.emitNode}(e))xL(e.expression,n);else if(RP(e))xL(e.left,n),xL(e.right,n);else if(HC(e))for(const t of e.elements)xL(t,n);else n.push(e)}function RL(e){const n=[];return xL(e,n),n}function IL(e){if(65536&e.transformFlags)return!0;if(128&e.transformFlags)for(const n of KP(e)){const e=GP(n);if(e&&Rd(e)){if(65536&e.transformFlags)return!0;if(128&e.transformFlags&&IL(e))return!0}}return!1}function DL(e,n){return n?CA(e,n.pos,n.end):e}function CL(e){const n=e.kind;return 169===n||170===n||172===n||173===n||174===n||175===n||177===n||178===n||179===n||182===n||186===n||219===n||220===n||232===n||244===n||263===n||264===n||265===n||266===n||267===n||268===n||272===n||273===n||278===n||279===n}function NL(e){const n=e.kind;return 170===n||173===n||175===n||178===n||179===n||232===n||264===n}var ML={createBaseSourceFileNode:e=>new(pL||(pL=GT.getSourceFileConstructor()))(e,-1,-1),createBaseIdentifierNode:e=>new(dL||(dL=GT.getIdentifierConstructor()))(e,-1,-1),createBasePrivateIdentifierNode:e=>new(uL||(uL=GT.getPrivateIdentifierConstructor()))(e,-1,-1),createBaseTokenNode:e=>new(cL||(cL=GT.getTokenConstructor()))(e,-1,-1),createBaseNode:e=>new(lL||(lL=GT.getNodeConstructor()))(e,-1,-1)},PL=lR(1,ML);function LL(e,n){return n&&e(n)}function kL(e,n,t){if(t){if(n)return n(t);for(const n of t){const t=e(n);if(t)return t}}}function wL(e,n){return 42===e.charCodeAt(n+1)&&42===e.charCodeAt(n+2)&&47!==e.charCodeAt(n+3)}function OL(e){return d(e.statements,FL)||function(e){return 8388608&e.flags?WL(e):void 0}(e)}function FL(e){return CL(e)&&function(e,n){return U(e.modifiers,e=>e.kind===n)}(e,95)||AN(e)&&UN(e.moduleReference)||xN(e)||ON(e)||FN(e)?e:void 0}function WL(e){return function(e){return VC(e)&&102===e.keywordToken&&"meta"===e.name.escapedText}(e)?e:rk(e,WL)}var zL,BL={167:function(e,n,t){return LL(n,e.left)||LL(n,e.right)},169:function(e,n,t){return kL(n,t,e.modifiers)||LL(n,e.name)||LL(n,e.constraint)||LL(n,e.default)||LL(n,e.expression)},305:function(e,n,t){return kL(n,t,e.modifiers)||LL(n,e.name)||LL(n,e.questionToken)||LL(n,e.exclamationToken)||LL(n,e.equalsToken)||LL(n,e.objectAssignmentInitializer)},306:function(e,n,t){return LL(n,e.expression)},170:function(e,n,t){return kL(n,t,e.modifiers)||LL(n,e.dotDotDotToken)||LL(n,e.name)||LL(n,e.questionToken)||LL(n,e.type)||LL(n,e.initializer)},173:function(e,n,t){return kL(n,t,e.modifiers)||LL(n,e.name)||LL(n,e.questionToken)||LL(n,e.exclamationToken)||LL(n,e.type)||LL(n,e.initializer)},172:function(e,n,t){return kL(n,t,e.modifiers)||LL(n,e.name)||LL(n,e.questionToken)||LL(n,e.type)||LL(n,e.initializer)},304:function(e,n,t){return kL(n,t,e.modifiers)||LL(n,e.name)||LL(n,e.questionToken)||LL(n,e.exclamationToken)||LL(n,e.initializer)},261:function(e,n,t){return LL(n,e.name)||LL(n,e.exclamationToken)||LL(n,e.type)||LL(n,e.initializer)},209:function(e,n,t){return LL(n,e.dotDotDotToken)||LL(n,e.propertyName)||LL(n,e.name)||LL(n,e.initializer)},182:function(e,n,t){return kL(n,t,e.modifiers)||kL(n,t,e.typeParameters)||kL(n,t,e.parameters)||LL(n,e.type)},186:function(e,n,t){return kL(n,t,e.modifiers)||kL(n,t,e.typeParameters)||kL(n,t,e.parameters)||LL(n,e.type)},185:function(e,n,t){return kL(n,t,e.modifiers)||kL(n,t,e.typeParameters)||kL(n,t,e.parameters)||LL(n,e.type)},180:GL,181:GL,175:function(e,n,t){return kL(n,t,e.modifiers)||LL(n,e.asteriskToken)||LL(n,e.name)||LL(n,e.questionToken)||LL(n,e.exclamationToken)||kL(n,t,e.typeParameters)||kL(n,t,e.parameters)||LL(n,e.type)||LL(n,e.body)},174:function(e,n,t){return kL(n,t,e.modifiers)||LL(n,e.name)||LL(n,e.questionToken)||kL(n,t,e.typeParameters)||kL(n,t,e.parameters)||LL(n,e.type)},177:function(e,n,t){return kL(n,t,e.modifiers)||LL(n,e.name)||kL(n,t,e.typeParameters)||kL(n,t,e.parameters)||LL(n,e.type)||LL(n,e.body)},178:function(e,n,t){return kL(n,t,e.modifiers)||LL(n,e.name)||kL(n,t,e.typeParameters)||kL(n,t,e.parameters)||LL(n,e.type)||LL(n,e.body)},179:function(e,n,t){return kL(n,t,e.modifiers)||LL(n,e.name)||kL(n,t,e.typeParameters)||kL(n,t,e.parameters)||LL(n,e.type)||LL(n,e.body)},263:function(e,n,t){return kL(n,t,e.modifiers)||LL(n,e.asteriskToken)||LL(n,e.name)||kL(n,t,e.typeParameters)||kL(n,t,e.parameters)||LL(n,e.type)||LL(n,e.body)},219:function(e,n,t){return kL(n,t,e.modifiers)||LL(n,e.asteriskToken)||LL(n,e.name)||kL(n,t,e.typeParameters)||kL(n,t,e.parameters)||LL(n,e.type)||LL(n,e.body)},220:function(e,n,t){return kL(n,t,e.modifiers)||kL(n,t,e.typeParameters)||kL(n,t,e.parameters)||LL(n,e.type)||LL(n,e.equalsGreaterThanToken)||LL(n,e.body)},176:function(e,n,t){return kL(n,t,e.modifiers)||LL(n,e.body)},184:function(e,n,t){return LL(n,e.typeName)||kL(n,t,e.typeArguments)},183:function(e,n,t){return LL(n,e.assertsModifier)||LL(n,e.parameterName)||LL(n,e.type)},187:function(e,n,t){return LL(n,e.exprName)||kL(n,t,e.typeArguments)},188:function(e,n,t){return kL(n,t,e.members)},189:function(e,n,t){return LL(n,e.elementType)},190:function(e,n,t){return kL(n,t,e.elements)},193:VL,194:VL,195:function(e,n,t){return LL(n,e.checkType)||LL(n,e.extendsType)||LL(n,e.trueType)||LL(n,e.falseType)},196:function(e,n,t){return LL(n,e.typeParameter)},206:function(e,n,t){return LL(n,e.argument)||LL(n,e.attributes)||LL(n,e.qualifier)||kL(n,t,e.typeArguments)},303:function(e,n,t){return LL(n,e.assertClause)},197:jL,199:jL,200:function(e,n,t){return LL(n,e.objectType)||LL(n,e.indexType)},201:function(e,n,t){return LL(n,e.readonlyToken)||LL(n,e.typeParameter)||LL(n,e.nameType)||LL(n,e.questionToken)||LL(n,e.type)||kL(n,t,e.members)},202:function(e,n,t){return LL(n,e.literal)},203:function(e,n,t){return LL(n,e.dotDotDotToken)||LL(n,e.name)||LL(n,e.questionToken)||LL(n,e.type)},207:UL,208:UL,210:function(e,n,t){return kL(n,t,e.elements)},211:function(e,n,t){return kL(n,t,e.properties)},212:function(e,n,t){return LL(n,e.expression)||LL(n,e.questionDotToken)||LL(n,e.name)},213:function(e,n,t){return LL(n,e.expression)||LL(n,e.questionDotToken)||LL(n,e.argumentExpression)},214:HL,215:HL,216:function(e,n,t){return LL(n,e.tag)||LL(n,e.questionDotToken)||kL(n,t,e.typeArguments)||LL(n,e.template)},217:function(e,n,t){return LL(n,e.type)||LL(n,e.expression)},218:function(e,n,t){return LL(n,e.expression)},221:function(e,n,t){return LL(n,e.expression)},222:function(e,n,t){return LL(n,e.expression)},223:function(e,n,t){return LL(n,e.expression)},225:function(e,n,t){return LL(n,e.operand)},230:function(e,n,t){return LL(n,e.asteriskToken)||LL(n,e.expression)},224:function(e,n,t){return LL(n,e.expression)},226:function(e,n,t){return LL(n,e.operand)},227:function(e,n,t){return LL(n,e.left)||LL(n,e.operatorToken)||LL(n,e.right)},235:function(e,n,t){return LL(n,e.expression)||LL(n,e.type)},236:function(e,n,t){return LL(n,e.expression)},239:function(e,n,t){return LL(n,e.expression)||LL(n,e.type)},237:function(e,n,t){return LL(n,e.name)},228:function(e,n,t){return LL(n,e.condition)||LL(n,e.questionToken)||LL(n,e.whenTrue)||LL(n,e.colonToken)||LL(n,e.whenFalse)},231:function(e,n,t){return LL(n,e.expression)},242:KL,269:KL,308:function(e,n,t){return kL(n,t,e.statements)||LL(n,e.endOfFileToken)},244:function(e,n,t){return kL(n,t,e.modifiers)||LL(n,e.declarationList)},262:function(e,n,t){return kL(n,t,e.declarations)},245:function(e,n,t){return LL(n,e.expression)},246:function(e,n,t){return LL(n,e.expression)||LL(n,e.thenStatement)||LL(n,e.elseStatement)},247:function(e,n,t){return LL(n,e.statement)||LL(n,e.expression)},248:function(e,n,t){return LL(n,e.expression)||LL(n,e.statement)},249:function(e,n,t){return LL(n,e.initializer)||LL(n,e.condition)||LL(n,e.incrementor)||LL(n,e.statement)},250:function(e,n,t){return LL(n,e.initializer)||LL(n,e.expression)||LL(n,e.statement)},251:function(e,n,t){return LL(n,e.awaitModifier)||LL(n,e.initializer)||LL(n,e.expression)||LL(n,e.statement)},252:qL,253:qL,254:function(e,n,t){return LL(n,e.expression)},255:function(e,n,t){return LL(n,e.expression)||LL(n,e.statement)},256:function(e,n,t){return LL(n,e.expression)||LL(n,e.caseBlock)},270:function(e,n,t){return kL(n,t,e.clauses)},297:function(e,n,t){return LL(n,e.expression)||kL(n,t,e.statements)},298:function(e,n,t){return kL(n,t,e.statements)},257:function(e,n,t){return LL(n,e.label)||LL(n,e.statement)},258:function(e,n,t){return LL(n,e.expression)},259:function(e,n,t){return LL(n,e.tryBlock)||LL(n,e.catchClause)||LL(n,e.finallyBlock)},300:function(e,n,t){return LL(n,e.variableDeclaration)||LL(n,e.block)},171:function(e,n,t){return LL(n,e.expression)},264:JL,232:JL,265:function(e,n,t){return kL(n,t,e.modifiers)||LL(n,e.name)||kL(n,t,e.typeParameters)||kL(n,t,e.heritageClauses)||kL(n,t,e.members)},266:function(e,n,t){return kL(n,t,e.modifiers)||LL(n,e.name)||kL(n,t,e.typeParameters)||LL(n,e.type)},267:function(e,n,t){return kL(n,t,e.modifiers)||LL(n,e.name)||kL(n,t,e.members)},307:function(e,n,t){return LL(n,e.name)||LL(n,e.initializer)},268:function(e,n,t){return kL(n,t,e.modifiers)||LL(n,e.name)||LL(n,e.body)},272:function(e,n,t){return kL(n,t,e.modifiers)||LL(n,e.name)||LL(n,e.moduleReference)},273:function(e,n,t){return kL(n,t,e.modifiers)||LL(n,e.importClause)||LL(n,e.moduleSpecifier)||LL(n,e.attributes)},274:function(e,n,t){return LL(n,e.name)||LL(n,e.namedBindings)},301:function(e,n,t){return kL(n,t,e.elements)},302:function(e,n,t){return LL(n,e.name)||LL(n,e.value)},271:function(e,n,t){return kL(n,t,e.modifiers)||LL(n,e.name)},275:function(e,n,t){return LL(n,e.name)},281:function(e,n,t){return LL(n,e.name)},276:XL,280:XL,279:function(e,n,t){return kL(n,t,e.modifiers)||LL(n,e.exportClause)||LL(n,e.moduleSpecifier)||LL(n,e.attributes)},277:YL,282:YL,278:function(e,n,t){return kL(n,t,e.modifiers)||LL(n,e.expression)},229:function(e,n,t){return LL(n,e.head)||kL(n,t,e.templateSpans)},240:function(e,n,t){return LL(n,e.expression)||LL(n,e.literal)},204:function(e,n,t){return LL(n,e.head)||kL(n,t,e.templateSpans)},205:function(e,n,t){return LL(n,e.type)||LL(n,e.literal)},168:function(e,n,t){return LL(n,e.expression)},299:function(e,n,t){return kL(n,t,e.types)},234:function(e,n,t){return LL(n,e.expression)||kL(n,t,e.typeArguments)},284:function(e,n,t){return LL(n,e.expression)},283:function(e,n,t){return kL(n,t,e.modifiers)},357:function(e,n,t){return kL(n,t,e.elements)},285:function(e,n,t){return LL(n,e.openingElement)||kL(n,t,e.children)||LL(n,e.closingElement)},289:function(e,n,t){return LL(n,e.openingFragment)||kL(n,t,e.children)||LL(n,e.closingFragment)},286:$L,287:$L,293:function(e,n,t){return kL(n,t,e.properties)},292:function(e,n,t){return LL(n,e.name)||LL(n,e.initializer)},294:function(e,n,t){return LL(n,e.expression)},295:function(e,n,t){return LL(n,e.dotDotDotToken)||LL(n,e.expression)},288:function(e,n,t){return LL(n,e.tagName)},296:function(e,n,t){return LL(n,e.namespace)||LL(n,e.name)},191:QL,192:QL,310:QL,316:QL,315:QL,317:QL,319:QL,318:function(e,n,t){return kL(n,t,e.parameters)||LL(n,e.type)},321:function(e,n,t){return("string"==typeof e.comment?void 0:kL(n,t,e.comment))||kL(n,t,e.tags)},348:function(e,n,t){return LL(n,e.tagName)||LL(n,e.name)||("string"==typeof e.comment?void 0:kL(n,t,e.comment))},311:function(e,n,t){return LL(n,e.name)},312:function(e,n,t){return LL(n,e.left)||LL(n,e.right)},342:ZL,349:ZL,331:function(e,n,t){return LL(n,e.tagName)||("string"==typeof e.comment?void 0:kL(n,t,e.comment))},330:function(e,n,t){return LL(n,e.tagName)||LL(n,e.class)||("string"==typeof e.comment?void 0:kL(n,t,e.comment))},329:function(e,n,t){return LL(n,e.tagName)||LL(n,e.class)||("string"==typeof e.comment?void 0:kL(n,t,e.comment))},346:function(e,n,t){return LL(n,e.tagName)||LL(n,e.constraint)||kL(n,t,e.typeParameters)||("string"==typeof e.comment?void 0:kL(n,t,e.comment))},347:function(e,n,t){return LL(n,e.tagName)||(e.typeExpression&&310===e.typeExpression.kind?LL(n,e.typeExpression)||LL(n,e.fullName)||("string"==typeof e.comment?void 0:kL(n,t,e.comment)):LL(n,e.fullName)||LL(n,e.typeExpression)||("string"==typeof e.comment?void 0:kL(n,t,e.comment)))},339:function(e,n,t){return LL(n,e.tagName)||LL(n,e.fullName)||LL(n,e.typeExpression)||("string"==typeof e.comment?void 0:kL(n,t,e.comment))},343:ek,345:ek,344:ek,341:ek,351:ek,350:ek,340:ek,324:function(e,n,t){return d(e.typeParameters,n)||d(e.parameters,n)||LL(n,e.type)},325:nk,326:nk,327:nk,323:function(e,n,t){return d(e.jsDocPropertyTags,n)},328:tk,333:tk,334:tk,335:tk,336:tk,337:tk,332:tk,338:tk,352:function(e,n,t){return LL(n,e.tagName)||LL(n,e.importClause)||LL(n,e.moduleSpecifier)||LL(n,e.attributes)||("string"==typeof e.comment?void 0:kL(n,t,e.comment))},356:function(e,n,t){return LL(n,e.expression)}};function GL(e,n,t){return kL(n,t,e.typeParameters)||kL(n,t,e.parameters)||LL(n,e.type)}function VL(e,n,t){return kL(n,t,e.types)}function jL(e,n,t){return LL(n,e.type)}function UL(e,n,t){return kL(n,t,e.elements)}function HL(e,n,t){return LL(n,e.expression)||LL(n,e.questionDotToken)||kL(n,t,e.typeArguments)||kL(n,t,e.arguments)}function KL(e,n,t){return kL(n,t,e.statements)}function qL(e,n,t){return LL(n,e.label)}function JL(e,n,t){return kL(n,t,e.modifiers)||LL(n,e.name)||kL(n,t,e.typeParameters)||kL(n,t,e.heritageClauses)||kL(n,t,e.members)}function XL(e,n,t){return kL(n,t,e.elements)}function YL(e,n,t){return LL(n,e.propertyName)||LL(n,e.name)}function $L(e,n,t){return LL(n,e.tagName)||kL(n,t,e.typeArguments)||LL(n,e.attributes)}function QL(e,n,t){return LL(n,e.type)}function ZL(e,n,t){return LL(n,e.tagName)||(e.isNameFirst?LL(n,e.name)||LL(n,e.typeExpression):LL(n,e.typeExpression)||LL(n,e.name))||("string"==typeof e.comment?void 0:kL(n,t,e.comment))}function ek(e,n,t){return LL(n,e.tagName)||LL(n,e.typeExpression)||("string"==typeof e.comment?void 0:kL(n,t,e.comment))}function nk(e,n,t){return LL(n,e.name)}function tk(e,n,t){return LL(n,e.tagName)||("string"==typeof e.comment?void 0:kL(n,t,e.comment))}function rk(e,n,t){if(void 0===e||e.kind<=166)return;const r=BL[e.kind];return void 0===r?void 0:r(e,n,t)}function ok(e,n,t){const r=ik(e),o=[];for(;o.length<r.length;)o.push(e);for(;0!==r.length;){const e=r.pop(),i=o.pop();if(Ye(e)){if(t){const n=t(e,i);if(n){if("skip"===n)continue;return n}}for(let n=e.length-1;n>=0;--n)r.push(e[n]),o.push(i)}else{const t=n(e,i);if(t){if("skip"===t)continue;return t}if(e.kind>=167)for(const n of ik(e))r.push(n),o.push(e)}}}function ik(e){const n=[];return rk(e,t,t),n;function t(e){n.unshift(e)}}function ak(e){e.externalModuleIndicator=OL(e)}function sk(e,n,t,r=!1,o){var i,a;let s;null==(i=Kt)||i.push(Kt.Phase.Parse,"createSourceFile",{path:e},!0),er("beforeParse");const{languageVersion:l,setExternalModuleIndicator:c,impliedNodeFormat:d,jsDocParsingMode:u}="object"==typeof t?t:{languageVersion:t};if(100===l)s=zL.parseSourceFile(e,n,l,void 0,r,6,tn,u);else{const t=void 0===d?c:e=>(e.impliedNodeFormat=d,(c||ak)(e));s=zL.parseSourceFile(e,n,l,void 0,r,o,t,u)}return er("afterParse"),nr("Parse","beforeParse","afterParse"),null==(a=Kt)||a.pop(),s}function lk(e,n){return zL.parseIsolatedEntityName(e,n)}function ck(e,n){return zL.parseJsonText(e,n)}function dk(e){return void 0!==e.externalModuleIndicator}function uk(e,n,t,r=!1){const o=hk.updateSourceFile(e,n,t,r);return o.flags|=12582912&e.flags,o}function pk(e,n,t){const r=zL.JSDocParser.parseIsolatedJSDocComment(e,n,t);return r&&r.jsDoc&&zL.fixupParentReferences(r.jsDoc),r}function fk(e,n,t){return zL.JSDocParser.parseJSDocTypeExpressionForTests(e,n,t)}(e=>{var n,t,r,o,i,a=vs(99,!0),c=40960;function d(e){return S++,e}var u,p,f,m,h,_,g,y,v,T,S,E,A,x,R,I,D=lR(11,{createBaseSourceFileNode:e=>d(new i(e,0,0)),createBaseIdentifierNode:e=>d(new r(e,0,0)),createBasePrivateIdentifierNode:e=>d(new o(e,0,0)),createBaseTokenNode:e=>d(new t(e,0,0)),createBaseNode:e=>d(new n(e,0,0))}),{createNodeArray:C,createNumericLiteral:N,createStringLiteral:M,createLiteralLikeNode:P,createIdentifier:L,createPrivateIdentifier:k,createToken:w,createArrayLiteralExpression:O,createObjectLiteralExpression:W,createPropertyAccessExpression:z,createPropertyAccessChain:B,createElementAccessExpression:G,createElementAccessChain:V,createCallExpression:j,createCallChain:H,createNewExpression:q,createParenthesizedExpression:J,createBlock:X,createVariableStatement:Y,createExpressionStatement:$,createIfStatement:Q,createWhileStatement:Z,createForStatement:ee,createForOfStatement:ne,createVariableDeclaration:te,createVariableDeclarationList:oe}=D,ie=!0,se=!1;function le(e,n,t=2,r,o=!1){ce(e,n,t,r,6,0),p=I,He();const i=Be();let a,s;if(1===Ve())a=En([],i,i),s=vn();else{let e;for(;1!==Ve();){let n;switch(Ve()){case 23:n=fo();break;case 112:case 97:case 106:n=vn();break;case 41:n=rn(()=>9===He()&&59!==He())?Br():ho();break;case 9:case 11:if(rn(()=>59!==He())){n=yt();break}default:n=ho()}e&&Ye(e)?e.push(n):e?e=[e,n]:(e=n,1!==Ve()&&we(fa.Unexpected_token))}const n=Ye(e)?An(O(e),i):dt.checkDefined(e),t=$(n);An(t,i),a=En([t],i),s=yn(1,fa.Unexpected_token)}const l=he(e,2,6,!1,a,s,p,tn);o&&me(l),l.nodeCount=S,l.identifierCount=A,l.identifiers=E,l.parseDiagnostics=QT(g,l),y&&(l.jsDocDiagnostics=QT(y,l));const c=l;return de(),c}function ce(e,s,l,c,d,y){switch(n=GT.getNodeConstructor(),t=GT.getTokenConstructor(),r=GT.getIdentifierConstructor(),o=GT.getPrivateIdentifierConstructor(),i=GT.getSourceFileConstructor(),u=ji(e),f=s,m=l,v=c,h=d,_=fS(d),g=[],x=0,E=new Map,A=0,S=0,p=0,ie=!0,h){case 1:case 2:I=524288;break;case 6:I=134742016;break;default:I=0}se=!1,a.setText(f),a.setOnError(ze),a.setScriptTarget(m),a.setLanguageVariant(_),a.setScriptKind(h),a.setJSDocParsingMode(y)}function de(){a.clearCommentDirectives(),a.setText(""),a.setOnError(void 0),a.setScriptKind(0),a.setJSDocParsingMode(0),f=void 0,m=void 0,v=void 0,h=void 0,_=void 0,p=0,g=void 0,y=void 0,x=0,E=void 0,R=void 0,ie=!0}e.parseSourceFile=function(e,n,t,r,o=!1,i,c,d=0){var m;if(6===(i=AE(e,i))){const i=le(e,n,t,r,o);return Kw(i,null==(m=i.statements[0])?void 0:m.expression,i.parseDiagnostics,!1,void 0),i.referencedFiles=s,i.typeReferenceDirectives=s,i.libReferenceDirectives=s,i.amdDependencies=s,i.hasNoDefaultLib=!1,i.pragmas=l,i}ce(e,n,t,r,i,d);const h=function(e,n,t,r,o){const i=yk(u);i&&(I|=33554432);p=I,He();const s=et(0,zo);dt.assert(1===Ve());const l=Ge(),c=pe(vn(),l),d=he(u,e,t,i,s,c,p,r);bk(d,f),Tk(d,m),d.commentDirectives=a.getCommentDirectives(),d.nodeCount=S,d.identifierCount=A,d.identifiers=E,d.parseDiagnostics=QT(g,d),d.jsDocParsingMode=o,y&&(d.jsDocDiagnostics=QT(y,d));n&&me(d);return d;function m(e,n,t){g.push(XT(u,f,e,n,t))}}(t,o,i,c||ak,d);return de(),h},e.parseIsolatedEntityName=function(e,n){ce("",e,n,void 0,1,0),He();const t=ct(!0),r=1===Ve()&&!g.length;return de(),r?t:void 0},e.parseJsonText=le;let ue=!1;function pe(e,n){if(!n)return e;dt.assert(!e.jsDoc);const t=F(Sm(e,f),n=>Ki.parseJSDocComment(e,n.pos,n.end-n.pos));return t.length&&(e.jsDoc=t),ue&&(ue=!1,e.flags|=536870912),e}function me(e){LA(e,!0)}function he(e,n,t,r,o,i,s,l){let c=D.createSourceFile(o,i,s);if(NA(c,0,f.length),d(c),!r&&dk(c)&&67108864&c.transformFlags){const e=c;c=function(e){const n=v,t=hk.createSyntaxCursor(e);v={currentNode:function(e){const n=t.currentNode(e);return ie&&n&&l(n)&&gk(n),n}};const r=[],o=g;g=[];let i=0,s=c(e.statements,0);for(;-1!==s;){const n=e.statements[i],t=e.statements[s];ae(r,e.statements,i,s),i=d(e.statements,s);const l=b(o,e=>e.start>=n.pos),u=l>=0?b(o,e=>e.start>=t.pos,l):-1;l>=0&&ae(g,o,l,u>=0?u:void 0),nn(()=>{const n=I;for(I|=65536,a.resetTokenState(t.pos),He();1!==Ve();){const n=a.getTokenFullStart(),t=nt(0,zo);if(r.push(t),n===a.getTokenFullStart()&&He(),i>=0){const n=e.statements[i];if(t.end===n.pos)break;t.end>n.pos&&(i=d(e.statements,i+1))}}I=n},2),s=i>=0?c(e.statements,i):-1}if(i>=0){const n=e.statements[i];ae(r,e.statements,i);const t=b(o,e=>e.start>=n.pos);t>=0&&ae(g,o,t)}return v=n,D.updateSourceFile(e,DL(C(r),e.statements));function l(e){return!(65536&e.flags||!(67108864&e.transformFlags))}function c(e,n){for(let t=n;t<e.length;t++)if(l(e[t]))return t;return-1}function d(e,n){for(let t=n;t<e.length;t++)if(!l(e[t]))return t;return-1}}(c),e!==c&&d(c)}return c;function d(o){o.text=f,o.bindDiagnostics=[],o.bindSuggestionDiagnostics=void 0,o.languageVersion=n,o.fileName=e,o.languageVariant=fS(t),o.isDeclarationFile=r,o.scriptKind=t,l(o),o.setExternalModuleIndicator=l}}function _e(e,n){e?I|=n:I&=~n}function ye(e){_e(e,8192)}function ve(e){_e(e,16384)}function be(e){_e(e,32768)}function Te(e){_e(e,65536)}function Se(e,n){const t=e&I;if(t){_e(!1,t);const e=n();return _e(!0,t),e}return n()}function Ee(e,n){const t=e&~I;if(t){_e(!0,t);const e=n();return _e(!1,t),e}return n()}function Ae(e){return Se(8192,e)}function xe(e){return Se(131072,e)}function Re(e){return Ee(131072,e)}function Ie(e){return Ee(65536,e)}function De(e){return Se(65536,e)}function Ce(e){return 0!==(I&e)}function Ne(){return Ce(16384)}function Me(){return Ce(8192)}function Pe(){return Ce(131072)}function Le(){return Ce(32768)}function ke(){return Ce(65536)}function we(e,...n){return Fe(a.getTokenStart(),a.getTokenEnd(),e,...n)}function Oe(e,n,t,...r){const o=ge(g);let i;return o&&e===o.start||(i=XT(u,f,e,n,t,...r),g.push(i)),se=!0,i}function Fe(e,n,t,...r){return Oe(e,n-e,t,...r)}function We(e,n,...t){Fe(e.pos,e.end,n,...t)}function ze(e,n,t){Oe(a.getTokenEnd(),n,e,t)}function Be(){return a.getTokenFullStart()}function Ge(){return a.hasPrecedingJSDocComment()}function Ve(){return T}function je(){return T=a.scan()}function Ue(e){return He(),e()}function He(){return Dg(T)&&(a.hasUnicodeEscape()||a.hasExtendedUnicodeEscape())&&Fe(a.getTokenStart(),a.getTokenEnd(),fa.Keywords_cannot_contain_escape_characters),je()}function Ke(){return T=a.scanJsDocToken()}function qe(e){return T=a.scanJSDocCommentTextToken(e)}function Je(){return T=a.reScanGreaterToken()}function Xe(e){return T=a.reScanTemplateToken(e)}function $e(){return T=a.reScanLessThanToken()}function Qe(){return T=a.reScanHashToken()}function Ze(){return T=a.scanJsxIdentifier()}function en(){return T=a.scanJsxToken()}function nn(e,n){const t=T,r=g.length,o=se,i=I,s=0!==n?a.lookAhead(e):a.tryScan(e);return dt.assert(i===I),s&&0===n||(T=t,2!==n&&(g.length=r),se=o),s}function rn(e){return nn(e,1)}function on(e){return nn(e,0)}function an(){return 80===Ve()||Ve()>118}function ln(){return 80===Ve()||(127!==Ve()||!Ne())&&((135!==Ve()||!ke())&&Ve()>118)}function cn(e,n,t=!0){return Ve()===e?(t&&He(),!0):(n?we(n):we(fa._0_expected,Pa(e)),!1)}e.fixupParentReferences=me;const dn=Object.keys(_a).filter(e=>e.length>2);function un(e){if(bC(e))return void Fe(es(f,e.template.pos),e.template.end,fa.Module_declaration_names_may_only_use_or_quoted_strings);const n=dD(e)?vl(e):void 0;if(!n||!ys(n,m))return void we(fa._0_expected,Pa(27));const t=es(f,e.pos);switch(n){case"const":case"let":case"var":return void Fe(t,e.end,fa.Variable_declaration_not_allowed_at_this_location);case"declare":return;case"interface":return void pn(fa.Interface_name_cannot_be_0,fa.Interface_must_be_given_a_name,19);case"is":return void Fe(t,a.getTokenStart(),fa.A_type_predicate_is_only_allowed_in_return_type_position_for_functions_and_methods);case"module":case"namespace":return void pn(fa.Namespace_name_cannot_be_0,fa.Namespace_must_be_given_a_name,19);case"type":return void pn(fa.Type_alias_name_cannot_be_0,fa.Type_alias_must_be_given_a_name,64)}const r=wn(n,dn,sn)??function(e){for(const n of dn)if(e.length>n.length+2&&Xn(e,n))return`${n} ${e.slice(n.length)}`;return}(n);r?Fe(t,e.end,fa.Unknown_keyword_or_identifier_Did_you_mean_0,r):0!==Ve()&&Fe(t,e.end,fa.Unexpected_keyword_or_identifier)}function pn(e,n,t){Ve()===t?we(n):we(e,a.getTokenValue())}function fn(e){return Ve()===e?(Ke(),!0):(dt.assert(Ng(e)),we(fa._0_expected,Pa(e)),!1)}function mn(e,n,t,r){if(Ve()===n)return void He();const o=we(fa._0_expected,Pa(n));t&&o&&dA(o,XT(u,f,r,1,fa.The_parser_expected_to_find_a_1_to_match_the_0_token_here,Pa(e),Pa(n)))}function hn(e){return Ve()===e&&(He(),!0)}function _n(e){if(Ve()===e)return vn()}function gn(e){if(Ve()===e)return function(){const e=Be(),n=Ve();return Ke(),An(w(n),e)}()}function yn(e,n,t){return _n(e)||xn(e,!1,n||fa._0_expected,t||Pa(e))}function vn(){const e=Be(),n=Ve();return He(),An(w(n),e)}function bn(){return 27===Ve()||(20===Ve()||1===Ve()||a.hasPrecedingLineBreak())}function Tn(){return!!bn()&&(27===Ve()&&He(),!0)}function Sn(){return Tn()||cn(27)}function En(e,n,t,r){const o=C(e,r);return CA(o,n,t??a.getTokenFullStart()),o}function An(e,n,t){return CA(e,n,t??a.getTokenFullStart()),I&&(e.flags|=I),se&&(se=!1,e.flags|=262144),e}function xn(e,n,t,...r){n?Oe(a.getTokenFullStart(),0,t,...r):t&&we(t,...r);const o=Be();return An(80===e?L("",void 0):Wc(e)?D.createTemplateLiteralLikeNode(e,"","",void 0):9===e?N("",void 0):11===e?M("",void 0):283===e?D.createMissingDeclaration():w(e),o)}function Rn(e){let n=E.get(e);return void 0===n&&E.set(e,n=e),n}function In(e,n,t){if(e){A++;const e=a.hasPrecedingJSDocLeadingAsterisks()?a.getTokenStart():Be(),n=Ve(),t=Rn(a.getTokenValue()),r=a.hasExtendedUnicodeEscape();return je(),An(L(t,n,r),e)}if(81===Ve())return we(t||fa.Private_identifiers_are_not_allowed_outside_class_bodies),In(!0);if(0===Ve()&&a.tryScan(()=>80===a.reScanInvalidIdentifier()))return In(!0);A++;const r=1===Ve(),o=a.isReservedWord(),i=a.getTokenText(),s=o?fa.Identifier_expected_0_is_a_reserved_word_that_cannot_be_used_here:fa.Identifier_expected;return xn(80,r,n||s,i)}function Dn(e){return In(an(),void 0,e)}function Cn(e,n){return In(ln(),e,n)}function Nn(e){return In(ma(Ve()),e)}function Mn(){return(a.hasUnicodeEscape()||a.hasExtendedUnicodeEscape())&&we(fa.Unicode_escape_sequence_cannot_appear_here),In(ma(Ve()))}function Pn(){return ma(Ve())||11===Ve()||9===Ve()||10===Ve()}function Ln(e){if(11===Ve()||9===Ve()||10===Ve()){const e=yt();return e.text=Rn(e.text),e}return 23===Ve()?function(){const e=Be();cn(23);const n=Ae(Ar);return cn(24),An(D.createComputedPropertyName(n),e)}():81===Ve()?On():Nn()}function kn(){return Ln()}function On(){const e=Be(),n=k(Rn(a.getTokenValue()));return He(),An(n,e)}function Fn(e){return Ve()===e&&on(zn)}function Wn(){return He(),!a.hasPrecedingLineBreak()&&Vn()}function zn(){switch(Ve()){case 87:return 94===He();case 95:return He(),90===Ve()?rn(jn):156===Ve()?rn(Gn):Bn();case 90:return jn();case 126:return He(),Vn();case 139:case 153:return He(),23===Ve()||Pn();default:return Wn()}}function Bn(){return 60===Ve()||42!==Ve()&&130!==Ve()&&19!==Ve()&&Vn()}function Gn(){return He(),Bn()}function Vn(){return 23===Ve()||19===Ve()||42===Ve()||26===Ve()||Pn()}function jn(){return He(),86===Ve()||100===Ve()||120===Ve()||60===Ve()||128===Ve()&&rn(Ro)||134===Ve()&&rn(Io)}function Un(e,n){if(tt(e))return!0;switch(e){case 0:case 1:case 3:return!(27===Ve()&&n)&&Mo();case 2:return 84===Ve()||90===Ve();case 4:return rn(Gt);case 5:return rn(li)||27===Ve()&&!n;case 6:return 23===Ve()||Pn();case 12:switch(Ve()){case 23:case 42:case 26:case 25:return!0;default:return Pn()}case 18:return Pn();case 9:return 23===Ve()||26===Ve()||Pn();case 24:return ma(Ve())||11===Ve();case 7:return 19===Ve()?rn(Hn):n?ln()&&!Yn():Sr()&&!Yn();case 8:return Xo();case 10:return 28===Ve()||26===Ve()||Xo();case 19:return 103===Ve()||87===Ve()||ln();case 15:switch(Ve()){case 28:case 25:return!0}case 11:return 26===Ve()||Er();case 16:return Nt(!1);case 17:return Nt(!0);case 20:case 21:return 28===Ve()||ar();case 22:return Si();case 23:return(161!==Ve()||!rn(jo))&&(11===Ve()||ma(Ve()));case 13:return ma(Ve())||19===Ve();case 14:case 25:return!0;case 26:return dt.fail("ParsingContext.Count used as a context");default:dt.assertNever(e,"Non-exhaustive case in 'isListElement'.")}}function Hn(){if(dt.assert(19===Ve()),20===He()){const e=He();return 28===e||19===e||96===e||119===e}return!0}function Kn(){return He(),ln()}function qn(){return He(),ma(Ve())}function Jn(){return He(),ha(Ve())}function Yn(){return(119===Ve()||96===Ve())&&rn($n)}function $n(){return He(),Er()}function Qn(){return He(),ar()}function Zn(e){if(1===Ve())return!0;switch(e){case 1:case 2:case 4:case 5:case 6:case 12:case 9:case 23:case 24:return 20===Ve();case 3:return 20===Ve()||84===Ve()||90===Ve();case 7:return 19===Ve()||96===Ve()||119===Ve();case 8:return function(){if(bn())return!0;if(kr(Ve()))return!0;if(39===Ve())return!0;return!1}();case 19:return 32===Ve()||21===Ve()||19===Ve()||96===Ve()||119===Ve();case 11:return 22===Ve()||27===Ve();case 15:case 21:case 10:return 24===Ve();case 17:case 16:case 18:return 22===Ve()||24===Ve();case 20:return 28!==Ve();case 22:return 19===Ve()||20===Ve();case 13:return 32===Ve()||44===Ve();case 14:return 30===Ve()&&rn(Ci);default:return!1}}function et(e,n){const t=x;x|=1<<e;const r=[],o=Be();for(;!Zn(e);)if(Un(e,!1))r.push(nt(e,n));else if(ot(e))break;return x=t,En(r,o)}function nt(e,n){const t=tt(e);return t?rt(t):n()}function tt(e,n){var t;if(!v||!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}(e)||se)return;const r=v.currentNode(n??a.getTokenFullStart());if(Np(r)||function(e){return _k.has(e)}(r)||Tp(r))return;return(101441536&r.flags)===I&&function(e,n){switch(n){case 5:return function(e){if(e)switch(e.kind){case 177:case 182:case 178:case 179:case 173:case 241:return!0;case 175:const n=e;return!(80===n.name.kind&&"constructor"===n.name.escapedText)}return!1}(e);case 2:return function(e){if(e)switch(e.kind){case 297:case 298:return!0}return!1}(e);case 0:case 1:case 3:return function(e){if(e)switch(e.kind){case 263:case 244:case 242:case 246:case 245:case 258:case 254:case 256:case 253:case 252:case 250:case 251:case 249:case 248:case 255:case 243:case 259:case 257:case 247:case 260:case 273:case 272:case 279:case 278:case 268:case 264:case 265:case 267:case 266:return!0}return!1}(e);case 6:return function(e){return 307===e.kind}(e);case 4:return function(e){if(e)switch(e.kind){case 181:case 174:case 182:case 172:case 180:return!0}return!1}(e);case 8:return function(e){if(261!==e.kind)return!1;const n=e;return void 0===n.initializer}(e);case 17:case 16:return function(e){if(170!==e.kind)return!1;const n=e;return void 0===n.initializer}(e)}return!1}(r,e)?(W_(r)&&(null==(t=r.jsDoc)?void 0:t.jsDocCache)&&(r.jsDoc.jsDocCache=void 0),r):void 0}function rt(e){return a.resetTokenState(e.end),He(),e}function ot(e){return function(e){switch(e){case 0:return 90===Ve()?we(fa._0_expected,Pa(95)):we(fa.Declaration_or_statement_expected);case 1:return we(fa.Declaration_or_statement_expected);case 2:return we(fa.case_or_default_expected);case 3:return we(fa.Statement_expected);case 18:case 4:return we(fa.Property_or_signature_expected);case 5:return we(fa.Unexpected_token_A_constructor_method_accessor_or_property_was_expected);case 6:return we(fa.Enum_member_expected);case 7:return we(fa.Expression_expected);case 8:return Dg(Ve())?we(fa._0_is_not_allowed_as_a_variable_declaration_name,Pa(Ve())):we(fa.Variable_declaration_expected);case 9:return we(fa.Property_destructuring_pattern_expected);case 10:return we(fa.Array_element_destructuring_pattern_expected);case 11:return we(fa.Argument_expression_expected);case 12:return we(fa.Property_assignment_expected);case 15:return we(fa.Expression_or_comma_expected);case 17:return we(fa.Parameter_declaration_expected);case 16:return Dg(Ve())?we(fa._0_is_not_allowed_as_a_parameter_name,Pa(Ve())):we(fa.Parameter_declaration_expected);case 19:return we(fa.Type_parameter_declaration_expected);case 20:return we(fa.Type_argument_expected);case 21:return we(fa.Type_expected);case 22:return we(fa.Unexpected_token_expected);case 23:return 161===Ve()?we(fa._0_expected,"}"):we(fa.Identifier_expected);case 13:case 14:case 25:return we(fa.Identifier_expected);case 24:return we(fa.Identifier_or_string_literal_expected);case 26:return dt.fail("ParsingContext.Count used as a context");default:dt.assertNever(e)}}(e),!!function(){dt.assert(x,"Missing parsing context");for(let e=0;e<26;e++)if(x&1<<e&&(Un(e,!0)||Zn(e)))return!0;return!1}()||(He(),!1)}function it(e,n,t){const r=x;x|=1<<e;const o=[],i=Be();let s=-1;for(;;){if(Un(e,!1)){const i=a.getTokenFullStart(),l=nt(e,n);if(!l)return void(x=r);if(o.push(l),s=a.getTokenStart(),hn(28))continue;if(s=-1,Zn(e))break;cn(28,at(e)),t&&27===Ve()&&!a.hasPrecedingLineBreak()&&He(),i===a.getTokenFullStart()&&He();continue}if(Zn(e))break;if(ot(e))break}return x=r,En(o,i,void 0,s>=0)}function at(e){return 6===e?fa.An_enum_member_name_must_be_followed_by_a_or:void 0}function st(){const e=En([],Be());return e.isMissingList=!0,e}function lt(e,n,t,r){if(cn(t)){const t=it(e,n);return cn(r),t}return st()}function ct(e,n){const t=Be();let r=e?Nn(n):Cn(n);for(;hn(25)&&30!==Ve();)r=An(D.createQualifiedName(r,pt(e,!1,!0)),t);return r}function ut(e,n){return An(D.createQualifiedName(e,n),e.pos)}function pt(e,n,t){if(a.hasPrecedingLineBreak()&&ma(Ve())){if(rn(xo))return xn(80,!0,fa.Identifier_expected)}if(81===Ve()){const e=On();return n?e:xn(80,!0,fa.Identifier_expected)}return e?t?Nn():Mn():Cn()}function ft(e){const n=Be();return An(D.createTemplateExpression(vt(e),function(e){const n=Be(),t=[];let r;do{r=gt(e),t.push(r)}while(17===r.literal.kind);return En(t,n)}(e)),n)}function mt(){const e=Be();return An(D.createTemplateLiteralType(vt(!1),function(){const e=Be(),n=[];let t;do{t=ht(),n.push(t)}while(17===t.literal.kind);return En(n,e)}()),e)}function ht(){const e=Be();return An(D.createTemplateLiteralTypeSpan(br(),_t(!1)),e)}function _t(e){return 20===Ve()?(Xe(e),function(){const e=bt(Ve());return dt.assert(17===e.kind||18===e.kind,"Template fragment has wrong token kind"),e}()):yn(18,fa._0_expected,Pa(20))}function gt(e){const n=Be();return An(D.createTemplateSpan(Ae(Ar),_t(e)),n)}function yt(){return bt(Ve())}function vt(e){!e&&26656&a.getTokenFlags()&&Xe(!1);const n=bt(Ve());return dt.assert(16===n.kind,"Template head has wrong token kind"),n}function bt(e){const n=Be(),t=Wc(e)?D.createTemplateLiteralLikeNode(e,a.getTokenValue(),function(e){const n=15===e||18===e,t=a.getTokenText();return t.substring(1,t.length-(a.isUnterminated()?0:n?1:2))}(e),7176&a.getTokenFlags()):9===e?N(a.getTokenValue(),a.getNumericLiteralFlags()):11===e?M(a.getTokenValue(),void 0,a.hasExtendedUnicodeEscape()):wc(e)?P(e,a.getTokenValue()):dt.fail();return a.hasExtendedUnicodeEscape()&&(t.hasExtendedUnicodeEscape=!0),a.isUnterminated()&&(t.isUnterminated=!0),He(),An(t,n)}function Tt(){return ct(!0,fa.Type_expected)}function St(){if(!a.hasPrecedingLineBreak()&&30===$e())return lt(20,br,30,32)}function Et(){const e=Be();return An(D.createTypeReferenceNode(Tt(),St()),e)}function At(e){switch(e.kind){case 184:return Np(e.typeName);case 185:case 186:{const{parameters:n,type:t}=e;return!!n.isMissingList||At(t)}case 197:return At(e.type);default:return!1}}function xt(){const e=Be();return He(),An(D.createThisTypeNode(),e)}function Rt(){const e=Be();let n;return 110!==Ve()&&105!==Ve()||(n=Nn(),cn(59)),An(D.createParameterDeclaration(void 0,void 0,n,void 0,It(),void 0),e)}function It(){a.setSkipJsDocLeadingAsterisks(!0);const e=Be();if(hn(144)){const n=D.createJSDocNamepathType(void 0);e:for(;;)switch(Ve()){case 20:case 1:case 28:case 5:break e;default:Ke()}return a.setSkipJsDocLeadingAsterisks(!1),An(n,e)}const n=hn(26);let t=yr();return a.setSkipJsDocLeadingAsterisks(!1),n&&(t=An(D.createJSDocVariadicType(t),e)),64===Ve()?(He(),An(D.createJSDocOptionalType(t),e)):t}function Dt(){const e=Be(),n=fi(!1,!0),t=Cn();let r,o;hn(96)&&(ar()||!Er()?r=br():o=Gr());const i=hn(64)?br():void 0,a=D.createTypeParameterDeclaration(n,t,r,i);return a.expression=o,An(a,e)}function Ct(){if(30===Ve())return lt(19,Dt,30,32)}function Nt(e){return 26===Ve()||Xo()||Zc(Ve())||60===Ve()||ar(!e)}function Mt(e){return Pt(e)}function Pt(e,n=!0){const t=Be(),r=Ge(),o=e?Ie(()=>fi(!0)):De(()=>fi(!0));if(110===Ve()){const e=D.createParameterDeclaration(o,void 0,In(!0),void 0,Tr(),void 0),n=fe(o);return n&&We(n,fa.Neither_decorators_nor_modifiers_may_be_applied_to_this_parameters),pe(An(e,t),r)}const i=ie;ie=!1;const a=_n(26);if(!n&&!an()&&23!==Ve()&&19!==Ve())return;const s=pe(An(D.createParameterDeclaration(o,a,function(e){const n=Yo(fa.Private_identifiers_cannot_be_used_as_parameters);return 0===dp(n)&&!U(e)&&Zc(Ve())&&He(),n}(o),_n(58),Tr(),xr()),t),r);return ie=i,s}function Lt(e,n){if(function(e,n){if(39===e)return cn(e),!0;if(hn(59))return!0;if(n&&39===Ve())return we(fa._0_expected,Pa(59)),He(),!0;return!1}(e,n))return xe(yr)}function kt(e,n){const t=Ne(),r=ke();ve(!!(1&e)),Te(!!(2&e));const o=32&e?it(17,Rt):it(16,()=>n?Mt(r):Pt(r,!1));return ve(t),Te(r),o}function wt(e){if(!cn(21))return st();const n=kt(e,!0);return cn(22),n}function Ot(){hn(28)||Sn()}function Ft(e){const n=Be(),t=Ge();181===e&&cn(105);const r=Ct(),o=wt(4),i=Lt(59,!0);Ot();return pe(An(180===e?D.createCallSignature(r,o,i):D.createConstructSignature(r,o,i),n),t)}function Wt(){return 23===Ve()&&rn(zt)}function zt(){if(He(),26===Ve()||24===Ve())return!0;if(Zc(Ve())){if(He(),ln())return!0}else{if(!ln())return!1;He()}return 59===Ve()||28===Ve()||58===Ve()&&(He(),59===Ve()||28===Ve()||24===Ve())}function Bt(e,n,t){const r=lt(16,()=>Mt(!1),23,24),o=Tr();Ot();return pe(An(D.createIndexSignature(t,r,o),e),n)}function Gt(){if(21===Ve()||30===Ve()||139===Ve()||153===Ve())return!0;let e=!1;for(;Zc(Ve());)e=!0,He();return 23===Ve()||(Pn()&&(e=!0,He()),!!e&&(21===Ve()||30===Ve()||58===Ve()||59===Ve()||28===Ve()||bn()))}function Vt(){if(21===Ve()||30===Ve())return Ft(180);if(105===Ve()&&rn(jt))return Ft(181);const e=Be(),n=Ge(),t=fi(!1);return Fn(139)?si(e,n,t,178,4):Fn(153)?si(e,n,t,179,4):Wt()?Bt(e,n,t):function(e,n,t){const r=kn(),o=_n(58);let i;if(21===Ve()||30===Ve()){const e=Ct(),n=wt(4),a=Lt(59,!0);i=D.createMethodSignature(t,r,o,e,n,a)}else{const e=Tr();i=D.createPropertySignature(t,r,o,e),64===Ve()&&(i.initializer=xr())}return Ot(),pe(An(i,e),n)}(e,n,t)}function jt(){return He(),21===Ve()||30===Ve()}function Ut(){return 25===He()}function Ht(){switch(He()){case 21:case 30:case 25:return!0}return!1}function Kt(){let e;return cn(19)?(e=et(4,Vt),cn(20)):e=st(),e}function qt(){return He(),40===Ve()||41===Ve()?148===He():(148===Ve()&&He(),23===Ve()&&Kn()&&103===He())}function Jt(){const e=Be();let n;cn(19),148!==Ve()&&40!==Ve()&&41!==Ve()||(n=vn(),148!==n.kind&&cn(148)),cn(23);const t=function(){const e=Be(),n=Nn();cn(103);const t=br();return An(D.createTypeParameterDeclaration(void 0,n,t,void 0),e)}(),r=hn(130)?br():void 0;let o;cn(24),58!==Ve()&&40!==Ve()&&41!==Ve()||(o=vn(),58!==o.kind&&cn(58));const i=Tr();Sn();const a=et(4,Vt);return cn(20),An(D.createMappedTypeNode(n,t,r,o,i,a),e)}function Xt(){const e=Be();if(hn(26))return An(D.createRestTypeNode(br()),e);const n=br();if(TM(n)&&n.pos===n.type.pos){const e=D.createOptionalTypeNode(n.type);return DL(e,n),e.flags=n.flags,e}return n}function Yt(){return 59===He()||58===Ve()&&59===He()}function $t(){return 26===Ve()?ma(He())&&Yt():ma(Ve())&&Yt()}function Qt(){if(rn($t)){const e=Be(),n=Ge(),t=_n(26),r=Nn(),o=_n(58);cn(59);const i=Xt();return pe(An(D.createNamedTupleMember(t,r,o,i),e),n)}return Xt()}function Zt(){const e=Be(),n=Ge(),t=function(){let e;if(128===Ve()){const n=Be();He(),e=En([An(w(128),n)],n)}return e}(),r=hn(105);dt.assert(!t||r,"Per isStartOfFunctionOrConstructorType, a function type cannot have modifiers.");const o=Ct(),i=wt(4),a=Lt(39,!1);return pe(An(r?D.createConstructorTypeNode(t,o,i,a):D.createFunctionTypeNode(o,i,a),e),n)}function er(){const e=vn();return 25===Ve()?void 0:e}function nr(e){const n=Be();e&&He();let t=112===Ve()||97===Ve()||106===Ve()?vn():bt(Ve());return e&&(t=An(D.createPrefixUnaryExpression(41,t),n)),An(D.createLiteralTypeNode(t),n)}function tr(){return He(),102===Ve()}function rr(){p|=4194304;const e=Be(),n=hn(114);cn(102),cn(21);const t=br();let r;if(hn(28)){const e=a.getTokenStart();cn(19);const n=Ve();if(118===n||132===n?He():we(fa._0_expected,Pa(118)),cn(59),r=Li(n,!0),hn(28),!cn(20)){const n=ge(g);n&&n.code===fa._0_expected.code&&dA(n,XT(u,f,e,1,fa.The_parser_expected_to_find_a_1_to_match_the_0_token_here,"{","}"))}}cn(22);const o=hn(25)?Tt():void 0,i=St();return An(D.createImportTypeNode(t,r,o,i,n),e)}function or(){return He(),9===Ve()||10===Ve()}function ir(){switch(Ve()){case 133:case 159:case 154:case 150:case 163:case 155:case 136:case 157:case 146:case 151:return on(er)||Et();case 67:a.reScanAsteriskEqualsToken();case 42:return function(){const e=Be();return He(),An(D.createJSDocAllType(),e)}();case 61:a.reScanQuestionToken();case 58:return function(){const e=Be();return He(),28===Ve()||20===Ve()||22===Ve()||32===Ve()||64===Ve()||52===Ve()?An(D.createJSDocUnknownType(),e):An(D.createJSDocNullableType(br(),!1),e)}();case 100:return function(){const e=Be(),n=Ge();if(on(Ii)){const t=wt(36),r=Lt(59,!1);return pe(An(D.createJSDocFunctionType(t,r),e),n)}return An(D.createTypeReferenceNode(Nn(),void 0),e)}();case 54:return function(){const e=Be();return He(),An(D.createJSDocNonNullableType(ir(),!1),e)}();case 15:case 11:case 9:case 10:case 112:case 97:case 106:return nr();case 41:return rn(or)?nr(!0):Et();case 116:return vn();case 110:{const n=xt();return 142!==Ve()||a.hasPrecedingLineBreak()?n:(e=n,He(),An(D.createTypePredicateNode(void 0,e,br()),e.pos))}case 114:return rn(tr)?rr():function(){const e=Be();cn(114);const n=ct(!0),t=a.hasPrecedingLineBreak()?void 0:Ti();return An(D.createTypeQueryNode(n,t),e)}();case 19:return rn(qt)?Jt():function(){const e=Be();return An(D.createTypeLiteralNode(Kt()),e)}();case 23:return function(){const e=Be();return An(D.createTupleTypeNode(lt(21,Qt,23,24)),e)}();case 21:return function(){const e=Be();cn(21);const n=br();return cn(22),An(D.createParenthesizedType(n),e)}();case 102:return rr();case 131:return rn(xo)?function(){const e=Be(),n=yn(131),t=110===Ve()?xt():Cn(),r=hn(142)?br():void 0;return An(D.createTypePredicateNode(n,t,r),e)}():Et();case 16:return mt();default:return Et()}var e}function ar(e){switch(Ve()){case 133:case 159:case 154:case 150:case 163:case 136:case 148:case 155:case 158:case 116:case 157:case 106:case 110:case 114:case 146:case 19:case 23:case 30:case 52:case 51:case 105:case 11:case 9:case 10:case 112:case 97:case 151:case 42:case 58:case 54:case 26:case 140:case 102:case 131:case 15:case 16:return!0;case 100:return!e;case 41:return!e&&rn(or);case 21:return!e&&rn(sr);default:return ln()}}function sr(){return He(),22===Ve()||Nt(!1)||ar()}function lr(){const e=Be();let n=ir();for(;!a.hasPrecedingLineBreak();)switch(Ve()){case 54:He(),n=An(D.createJSDocNonNullableType(n,!0),e);break;case 58:if(rn(Qn))return n;He(),n=An(D.createJSDocNullableType(n,!0),e);break;case 23:if(cn(23),ar()){const t=br();cn(24),n=An(D.createIndexedAccessTypeNode(n,t),e)}else cn(24),n=An(D.createArrayTypeNode(n),e);break;default:return n}return n}function cr(){if(hn(96)){const e=Re(br);if(Pe()||58!==Ve())return e}}function dr(){const e=Be();return cn(140),An(D.createInferTypeNode(function(){const e=Be(),n=Cn(),t=on(cr);return An(D.createTypeParameterDeclaration(void 0,n,t),e)}()),e)}function ur(){const e=Ve();switch(e){case 143:case 158:case 148:return function(e){const n=Be();return cn(e),An(D.createTypeOperatorNode(e,ur()),n)}(e);case 140:return dr()}return xe(lr)}function pr(e){if(_r()){const n=Zt();let t;return t=jD(n)?e?fa.Function_type_notation_must_be_parenthesized_when_used_in_a_union_type:fa.Function_type_notation_must_be_parenthesized_when_used_in_an_intersection_type:e?fa.Constructor_type_notation_must_be_parenthesized_when_used_in_a_union_type:fa.Constructor_type_notation_must_be_parenthesized_when_used_in_an_intersection_type,We(n,t),n}}function fr(e,n,t){const r=Be(),o=52===e,i=hn(e);let a=i&&pr(o)||n();if(Ve()===e||i){const i=[a];for(;hn(e);)i.push(pr(o)||n());a=An(t(En(i,r)),r)}return a}function mr(){return fr(51,ur,D.createIntersectionTypeNode)}function hr(){return He(),105===Ve()}function _r(){return 30===Ve()||(!(21!==Ve()||!rn(gr))||(105===Ve()||128===Ve()&&rn(hr)))}function gr(){if(He(),22===Ve()||26===Ve())return!0;if(function(){if(Zc(Ve())&&fi(!1),ln()||110===Ve())return He(),!0;if(23===Ve()||19===Ve()){const e=g.length;return Yo(),e===g.length}return!1}()){if(59===Ve()||28===Ve()||58===Ve()||64===Ve())return!0;if(22===Ve()&&(He(),39===Ve()))return!0}return!1}function yr(){const e=Be(),n=ln()&&on(vr),t=br();return n?An(D.createTypePredicateNode(void 0,n,t),e):t}function vr(){const e=Cn();if(142===Ve()&&!a.hasPrecedingLineBreak())return He(),e}function br(){if(81920&I)return Se(81920,br);if(_r())return Zt();const e=Be(),n=fr(52,mr,D.createUnionTypeNode);if(!Pe()&&!a.hasPrecedingLineBreak()&&hn(96)){const t=Re(br);cn(58);const r=xe(br);cn(59);const o=xe(br);return An(D.createConditionalTypeNode(n,t,r,o),e)}return n}function Tr(){return hn(59)?br():void 0}function Sr(){switch(Ve()){case 110:case 108:case 106:case 112:case 97:case 9:case 10:case 11:case 15:case 16:case 21:case 23:case 19:case 100:case 86:case 105:case 44:case 69:case 80:return!0;case 102:return rn(Ht);default:return ln()}}function Er(){if(Sr())return!0;switch(Ve()){case 40:case 41:case 55:case 54:case 91:case 114:case 116:case 46:case 47:case 30:case 135:case 127:case 81:case 60:return!0;default:return!!Or()||ln()}}function Ar(){const e=Le();e&&be(!1);const n=Be();let t,r=Rr(!0);for(;t=_n(28);)r=Wr(r,t,Rr(!0),n);return e&&be(!0),r}function xr(){return hn(64)?Rr(!0):void 0}function Rr(e){if(function(){if(127===Ve())return!!Ne()||rn(Do);return!1}())return function(){const e=Be();return He(),a.hasPrecedingLineBreak()||42!==Ve()&&!Er()?An(D.createYieldExpression(void 0,void 0),e):An(D.createYieldExpression(_n(42),Rr(!0)),e)}();const n=function(e){const n=function(){if(21===Ve()||30===Ve()||134===Ve())return rn(Cr);if(39===Ve())return 1;return 0}();if(0===n)return;return 1===n?Mr(!0,!0):on(()=>function(e){const n=a.getTokenStart();if(null==R?void 0:R.has(n))return;const t=Mr(!1,e);t||(R||(R=new Set)).add(n);return t}(e))}(e)||function(e){if(134===Ve()&&1===rn(Nr)){const n=Be(),t=Ge(),r=mi();return Dr(n,Lr(0),e,t,r)}return}(e);if(n)return n;const t=Be(),r=Ge(),o=Lr(0);return 80===o.kind&&39===Ve()?Dr(t,o,e,r,void 0):Gd(o)&&ob(Je())?Wr(o,vn(),Rr(e),t):function(e,n,t){const r=_n(58);if(!r)return e;let o;return An(D.createConditionalExpression(e,r,Se(c,()=>Rr(!1)),o=yn(59),Mp(o)?Rr(t):xn(80,!1,fa._0_expected,Pa(59))),n)}(o,t,e)}function Ir(){return He(),!a.hasPrecedingLineBreak()&&ln()}function Dr(e,n,t,r,o){dt.assert(39===Ve(),"parseSimpleArrowFunctionExpression should only have been called if we had a =>");const i=D.createParameterDeclaration(void 0,void 0,n,void 0,void 0,void 0);An(i,n.pos);const a=En([i],i.pos,i.end),s=yn(39),l=Pr(!!o,t);return pe(An(D.createArrowFunction(o,void 0,a,void 0,s,l),e),r)}function Cr(){if(134===Ve()){if(He(),a.hasPrecedingLineBreak())return 0;if(21!==Ve()&&30!==Ve())return 0}const e=Ve(),n=He();if(21===e){if(22===n){switch(He()){case 39:case 59:case 19:return 1;default:return 0}}if(23===n||19===n)return 2;if(26===n)return 1;if(Zc(n)&&134!==n&&rn(Kn))return 130===He()?0:1;if(!ln()&&110!==n)return 0;switch(He()){case 59:return 1;case 58:return He(),59===Ve()||28===Ve()||64===Ve()||22===Ve()?1:0;case 28:case 64:case 22:return 2}return 0}if(dt.assert(30===e),!ln()&&87!==Ve())return 0;if(1===_){return rn(()=>{hn(87);const e=He();if(96===e){switch(He()){case 64:case 32:case 44:return!1;default:return!0}}else if(28===e||64===e)return!0;return!1})?1:0}return 2}function Nr(){if(134===Ve()){if(He(),a.hasPrecedingLineBreak()||39===Ve())return 0;const e=Lr(0);if(!a.hasPrecedingLineBreak()&&80===e.kind&&39===Ve())return 1}return 0}function Mr(e,n){const t=Be(),r=Ge(),o=mi(),i=U(o,mD)?2:0,a=Ct();let s;if(cn(21)){if(e)s=kt(i,e);else{const n=kt(i,e);if(!n)return;s=n}if(!cn(22)&&!e)return}else{if(!e)return;s=st()}const l=59===Ve(),c=Lt(59,!1);if(c&&!e&&At(c))return;let d=c;for(;197===(null==d?void 0:d.kind);)d=d.type;const u=d&&AM(d);if(!e&&39!==Ve()&&(u||19!==Ve()))return;const p=Ve(),f=yn(39),m=39===p||19===p?Pr(U(o,mD),n):Cn();if(!n&&l&&59!==Ve())return;return pe(An(D.createArrowFunction(o,a,s,c,f,m),t),r)}function Pr(e,n){if(19===Ve())return vo(e?2:0);if(27!==Ve()&&100!==Ve()&&86!==Ve()&&Mo()&&(19===Ve()||100===Ve()||86===Ve()||60===Ve()||!Er()))return vo(16|(e?2:0));const t=Ne();ve(!1);const r=ie;ie=!1;const o=e?Ie(()=>Rr(n)):De(()=>Rr(n));return ie=r,ve(t),o}function Lr(e){const n=Be();return wr(e,Gr(),n)}function kr(e){return 103===e||165===e}function wr(e,n,t){for(;;){Je();const r=uy(Ve());if(!(43===Ve()?r>=e:r>e))break;if(103===Ve()&&Me())break;if(130===Ve()||152===Ve()){if(a.hasPrecedingLineBreak())break;{const e=Ve();He(),n=152===e?Fr(n,br()):zr(n,br())}}else n=Wr(n,vn(),Lr(r),t)}return n}function Or(){return(!Me()||103!==Ve())&&uy(Ve())>0}function Fr(e,n){return An(D.createSatisfiesExpression(e,n),e.pos)}function Wr(e,n,t,r){return An(D.createBinaryExpression(e,n,t),r)}function zr(e,n){return An(D.createAsExpression(e,n),e.pos)}function Br(){const e=Be();return An(D.createPrefixUnaryExpression(Ve(),Ue(Vr)),e)}function Gr(){if(function(){switch(Ve()){case 40:case 41:case 55:case 54:case 91:case 114:case 116:case 135:return!1;case 30:if(1!==_)return!1;default:return!0}}()){const e=Be(),n=jr();return 43===Ve()?wr(uy(Ve()),n,e):n}const e=Ve(),n=Vr();if(43===Ve()){const t=es(f,n.pos),{end:r}=n;217===n.kind?Fe(t,r,fa.A_type_assertion_expression_is_not_allowed_in_the_left_hand_side_of_an_exponentiation_expression_Consider_enclosing_the_expression_in_parentheses):(dt.assert(Ng(e)),Fe(t,r,fa.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,Pa(e)))}return n}function Vr(){switch(Ve()){case 40:case 41:case 55:case 54:return Br();case 91:return function(){const e=Be();return An(D.createDeleteExpression(Ue(Vr)),e)}();case 114:return function(){const e=Be();return An(D.createTypeOfExpression(Ue(Vr)),e)}();case 116:return function(){const e=Be();return An(D.createVoidExpression(Ue(Vr)),e)}();case 30:return 1===_?Kr(!0,void 0,void 0,!0):function(){dt.assert(1!==_,"Type assertions should never be parsed in JSX; they should be parsed as comparisons or JSX elements/fragments.");const e=Be();cn(30);const n=br();cn(32);const t=Vr();return An(D.createTypeAssertion(n,t),e)}();case 135:if(135===Ve()&&(ke()||rn(Do)))return function(){const e=Be();return An(D.createAwaitExpression(Ue(Vr)),e)}();default:return jr()}}function jr(){if(46===Ve()||47===Ve()){const e=Be();return An(D.createPrefixUnaryExpression(Ve(),Ue(Ur)),e)}if(1===_&&30===Ve()&&rn(Jn))return Kr(!0);const e=Ur();if(dt.assert(Gd(e)),(46===Ve()||47===Ve())&&!a.hasPrecedingLineBreak()){const n=Ve();return He(),An(D.createPostfixUnaryExpression(e,n),e.pos)}return e}function Ur(){const e=Be();let n;return 102===Ve()?rn(jt)?(p|=4194304,n=vn()):rn(Ut)?(He(),He(),n=An(D.createMetaProperty(102,Nn()),e),"defer"===n.name.escapedText?21!==Ve()&&30!==Ve()||(p|=4194304):p|=8388608):n=Hr():n=108===Ve()?function(){const e=Be();let n=vn();if(30===Ve()){const e=Be(),t=on(lo);void 0!==t&&(Fe(e,Be(),fa.super_may_not_use_type_arguments),oo()||(n=D.createExpressionWithTypeArguments(n,t)))}if(21===Ve()||25===Ve()||23===Ve())return n;return yn(25,fa.super_must_be_followed_by_an_argument_list_or_member_access),An(z(n,pt(!0,!0,!0)),e)}():Hr(),ao(e,n)}function Hr(){return ro(Be(),co(),!0)}function Kr(e,n,t,r=!1){const o=Be(),i=function(e){const n=Be();if(cn(30),32===Ve())return en(),An(D.createJsxOpeningFragment(),n);const t=Xr(),r=524288&I?void 0:Ti(),o=function(){const e=Be();return An(D.createJsxAttributes(et(13,$r)),e)}();let i;32===Ve()?(en(),i=D.createJsxOpeningElement(t,r,o)):(cn(44),cn(32,void 0,!1)&&(e?He():en()),i=D.createJsxSelfClosingElement(t,r,o));return An(i,n)}(e);let a;if(287===i.kind){let n,r=Jr(i);const s=r[r.length-1];if(285===(null==s?void 0:s.kind)&&!Dk(s.openingElement.tagName,s.closingElement.tagName)&&Dk(i.tagName,s.closingElement.tagName)){const e=s.children.end,t=An(D.createJsxElement(s.openingElement,s.children,An(D.createJsxClosingElement(An(L(""),e,e)),e,e)),s.openingElement.pos,e);r=En([...r.slice(0,r.length-1),t],r.pos,e),n=s.closingElement}else n=function(e,n){const t=Be();cn(31);const r=Xr();cn(32,void 0,!1)&&(n||!Dk(e.tagName,r)?He():en());return An(D.createJsxClosingElement(r),t)}(i,e),Dk(i.tagName,n.tagName)||(t&&qN(t)&&Dk(n.tagName,t.tagName)?We(i.tagName,fa.JSX_element_0_has_no_corresponding_closing_tag,Qp(f,i.tagName)):We(n.tagName,fa.Expected_corresponding_JSX_closing_tag_for_0,Qp(f,i.tagName)));a=An(D.createJsxElement(i,r,n),o)}else 290===i.kind?a=An(D.createJsxFragment(i,Jr(i),function(e){const n=Be();cn(31),cn(32,fa.Expected_corresponding_closing_tag_for_JSX_fragment,!1)&&(e?He():en());return An(D.createJsxJsxClosingFragment(),n)}(e)),o):(dt.assert(286===i.kind),a=i);if(!r&&e&&30===Ve()){const e=void 0===n?a.pos:n,t=on(()=>Kr(!0,e));if(t){const n=xn(28,!1);return NA(n,t.pos,0),Fe(es(f,e),t.end,fa.JSX_expressions_must_have_one_parent_element),An(D.createBinaryExpression(a,n,t),o)}}return a}function qr(e,n){switch(n){case 1:if(YN(e))We(e,fa.JSX_fragment_has_no_corresponding_closing_tag);else{const n=e.tagName;Fe(Math.min(es(f,n.pos),n.end),n.end,fa.JSX_element_0_has_no_corresponding_closing_tag,Qp(f,e.tagName))}return;case 31:case 7:return;case 12:case 13:return function(){const e=Be(),n=D.createJsxText(a.getTokenValue(),13===T);return T=a.scanJsxToken(),An(n,e)}();case 19:return Yr(!1);case 30:return Kr(!1,void 0,e);default:return dt.assertNever(n)}}function Jr(e){const n=[],t=Be(),r=x;for(x|=16384;;){const t=qr(e,T=a.reScanJsxToken());if(!t)break;if(n.push(t),qN(e)&&285===(null==t?void 0:t.kind)&&!Dk(t.openingElement.tagName,t.closingElement.tagName)&&Dk(e.tagName,t.closingElement.tagName))break}return x=r,En(n,t)}function Xr(){const e=Be(),n=function(){const e=Be();Ze();const n=110===Ve(),t=Mn();if(hn(59))return Ze(),An(D.createJsxNamespacedName(t,Mn()),e);return n?An(D.createToken(110),e):t}();if(tM(n))return n;let t=n;for(;hn(25);)t=An(z(t,pt(!0,!1,!1)),e);return t}function Yr(e){const n=Be();if(!cn(19))return;let t,r;return 20!==Ve()&&(e||(t=_n(26)),r=Ar()),e?cn(20):cn(20,void 0,!1)&&en(),An(D.createJsxExpression(t,r),n)}function $r(){if(19===Ve())return function(){const e=Be();cn(19),cn(26);const n=Ar();return cn(20),An(D.createJsxSpreadAttribute(n),e)}();const e=Be();return An(D.createJsxAttribute(function(){const e=Be();Ze();const n=Mn();if(hn(59))return Ze(),An(D.createJsxNamespacedName(n,Mn()),e);return n}(),function(){if(64===Ve()){if(11===(T=a.scanJsxAttributeValue()))return yt();if(19===Ve())return Yr(!0);if(30===Ve())return Kr(!0);we(fa.or_JSX_element_expected)}return}()),e)}function Qr(){return He(),ma(Ve())||23===Ve()||oo()}function Zr(){return 29===Ve()&&rn(Qr)}function eo(e){if(64&e.flags)return!0;if(GC(e)){let n=e.expression;for(;GC(n)&&!(64&n.flags);)n=n.expression;if(64&n.flags){for(;GC(e);)e.flags|=64,e=e.expression;return!0}}return!1}function no(e,n,t){const r=pt(!0,!0,!0),o=t||eo(n),i=o?B(n,t,r):z(n,r);if(o&&uD(i.name)&&We(i.name,fa.An_optional_chain_cannot_contain_private_identifiers),WC(n)&&n.typeArguments){Fe(n.typeArguments.pos-1,es(f,n.typeArguments.end)+1,fa.An_instantiation_expression_cannot_be_followed_by_a_property_access)}return An(i,e)}function to(e,n,t){let r;if(24===Ve())r=xn(80,!0,fa.An_element_access_expression_should_take_an_argument);else{const e=Ae(Ar);zg(e)&&(e.text=Rn(e.text)),r=e}cn(24);return An(t||eo(n)?V(n,t,r):G(n,r),e)}function ro(e,n,t){for(;;){let r,o=!1;if(t&&Zr()?(r=yn(29),o=ma(Ve())):o=hn(25),o)n=no(e,n,r);else if(!r&&Le()||!hn(23)){if(!oo()){if(!r){if(54===Ve()&&!a.hasPrecedingLineBreak()){He(),n=An(D.createNonNullExpression(n),e);continue}const t=on(lo);if(t){n=An(D.createExpressionWithTypeArguments(n,t),e);continue}}return n}n=r||234!==n.kind?io(e,n,r,void 0):io(e,n.expression,r,n.typeArguments)}else n=to(e,n,r)}}function oo(){return 15===Ve()||16===Ve()}function io(e,n,t,r){const o=D.createTaggedTemplateExpression(n,r,15===Ve()?(Xe(!0),yt()):ft(!0));return(t||64&n.flags)&&(o.flags|=64),o.questionDotToken=t,An(o,e)}function ao(e,n){for(;;){let t;n=ro(e,n,!0);const r=_n(29);if(!r||(t=on(lo),!oo())){if(t||21===Ve()){r||234!==n.kind||(t=n.typeArguments,n=n.expression);const o=so();n=An(r||eo(n)?H(n,r,t,o):j(n,t,o),e);continue}if(r){const t=xn(80,!1,fa.Identifier_expected);n=An(B(n,r,t),e)}break}n=io(e,n,r,t)}return n}function so(){cn(21);const e=it(11,po);return cn(22),e}function lo(){if(524288&I)return;if(30!==$e())return;He();const e=it(20,br);return 32===Je()?(He(),e&&function(){switch(Ve()){case 21:case 15:case 16:return!0;case 30:case 32:case 40:case 41:return!1}return a.hasPrecedingLineBreak()||Or()||!Er()}()?e:void 0):void 0}function co(){switch(Ve()){case 15:26656&a.getTokenFlags()&&Xe(!1);case 9:case 10:case 11:return yt();case 110:case 108:case 106:case 112:case 97:return vn();case 21:return function(){const e=Be(),n=Ge();cn(21);const t=Ae(Ar);return cn(22),pe(An(J(t),e),n)}();case 23:return fo();case 19:return ho();case 134:if(!rn(Io))break;return _o();case 60:return function(){const e=Be(),n=Ge(),t=fi(!0);if(86===Ve())return gi(e,n,t,232);const r=xn(283,!0,fa.Expression_expected);return IA(r,e),r.modifiers=t,r}();case 86:return gi(Be(),Ge(),void 0,232);case 100:return _o();case 105:return function(){const e=Be();if(cn(105),hn(25)){const n=Nn();return An(D.createMetaProperty(105,n),e)}let n,t=ro(Be(),co(),!1);234===t.kind&&(n=t.typeArguments,t=t.expression);29===Ve()&&we(fa.Invalid_optional_chain_from_new_expression_Did_you_mean_to_call_0,Qp(f,t));const r=21===Ve()?so():void 0;return An(q(t,n,r),e)}();case 44:case 69:if(14===(T=a.reScanSlashToken()))return yt();break;case 16:return ft(!1);case 81:return On()}return Cn(fa.Expression_expected)}function uo(){return 26===Ve()?function(){const e=Be();cn(26);const n=Rr(!0);return An(D.createSpreadElement(n),e)}():28===Ve()?An(D.createOmittedExpression(),Be()):Rr(!0)}function po(){return Se(c,uo)}function fo(){const e=Be(),n=a.getTokenStart(),t=cn(23),r=a.hasPrecedingLineBreak(),o=it(15,uo);return mn(23,24,t,n),An(O(o,r),e)}function mo(){const e=Be(),n=Ge();if(_n(26)){const t=Rr(!0);return pe(An(D.createSpreadAssignment(t),e),n)}const t=fi(!0);if(Fn(139))return si(e,n,t,178,0);if(Fn(153))return si(e,n,t,179,0);const r=_n(42),o=ln(),i=kn(),a=_n(58),s=_n(54);if(r||21===Ve()||30===Ve())return oi(e,n,t,r,i,a,s);let l;if(o&&59!==Ve()){const e=_n(64),n=e?Ae(()=>Rr(!0)):void 0;l=D.createShorthandPropertyAssignment(i,n),l.equalsToken=e}else{cn(59);const e=Ae(()=>Rr(!0));l=D.createPropertyAssignment(i,e)}return l.modifiers=t,l.questionToken=a,l.exclamationToken=s,pe(An(l,e),n)}function ho(){const e=Be(),n=a.getTokenStart(),t=cn(19),r=a.hasPrecedingLineBreak(),o=it(12,mo,!0);return mn(19,20,t,n),An(W(o,r),e)}function _o(){const e=Le();be(!1);const n=Be(),t=Ge(),r=fi(!1);cn(100);const o=_n(42),i=o?1:0,a=U(r,mD)?2:0,s=i&&a?Ee(81920,go):i?function(e){return Ee(16384,e)}(go):a?Ie(go):go();const l=Ct(),c=wt(i|a),d=Lt(59,!1),u=vo(i|a);be(e);return pe(An(D.createFunctionExpression(r,o,s,l,c,d,u),n),t)}function go(){return an()?Dn():void 0}function yo(e,n){const t=Be(),r=Ge(),o=a.getTokenStart(),i=cn(19,n);if(i||e){const e=a.hasPrecedingLineBreak(),n=et(1,zo);mn(19,20,i,o);const s=pe(An(X(n,e),t),r);return 64===Ve()&&(we(fa.Declaration_or_statement_expected_This_follows_a_block_of_statements_so_if_you_intended_to_write_a_destructuring_assignment_you_might_need_to_wrap_the_whole_assignment_in_parentheses),He()),s}{const e=st();return pe(An(X(e,void 0),t),r)}}function vo(e,n){const t=Ne();ve(!!(1&e));const r=ke();Te(!!(2&e));const o=ie;ie=!1;const i=Le();i&&be(!1);const a=yo(!!(16&e),n);return i&&be(!0),ie=o,ve(t),Te(r),a}function bo(){const e=Be(),n=Ge();cn(99);const t=_n(135);let r;let o;if(cn(21),27!==Ve()&&(r=115===Ve()||121===Ve()||87===Ve()||160===Ve()&&rn(Lo)||135===Ve()&&rn(Fo)?Zo(!0):Ee(8192,Ar)),t?cn(165):hn(165)){const e=Ae(()=>Rr(!0));cn(22),o=ne(t,r,e,zo())}else if(hn(103)){const e=Ae(Ar);cn(22),o=D.createForInStatement(r,e,zo())}else{cn(27);const e=27!==Ve()&&22!==Ve()?Ae(Ar):void 0;cn(27);const n=22!==Ve()?Ae(Ar):void 0;cn(22),o=ee(r,e,n,zo())}return pe(An(o,e),n)}function To(e){const n=Be(),t=Ge();cn(253===e?83:88);const r=bn()?void 0:Cn();Sn();return pe(An(253===e?D.createBreakStatement(r):D.createContinueStatement(r),n),t)}function So(){return 84===Ve()?function(){const e=Be(),n=Ge();cn(84);const t=Ae(Ar);cn(59);const r=et(3,zo);return pe(An(D.createCaseClause(t,r),e),n)}():function(){const e=Be();cn(90),cn(59);const n=et(3,zo);return An(D.createDefaultClause(n),e)}()}function Eo(){const e=Be(),n=Ge();cn(109),cn(21);const t=Ae(Ar);cn(22);const r=function(){const e=Be();cn(19);const n=et(2,So);return cn(20),An(D.createCaseBlock(n),e)}();return pe(An(D.createSwitchStatement(t,r),e),n)}function Ao(){const e=Be(),n=Ge();cn(113);const t=yo(!1),r=85===Ve()?function(){const e=Be();let n;cn(85),hn(21)?(n=Qo(),cn(22)):n=void 0;const t=yo(!1);return An(D.createCatchClause(n,t),e)}():void 0;let o;return r&&98!==Ve()||(cn(98,fa.catch_or_finally_expected),o=yo(!1)),pe(An(D.createTryStatement(t,r,o),e),n)}function xo(){return He(),ma(Ve())&&!a.hasPrecedingLineBreak()}function Ro(){return He(),86===Ve()&&!a.hasPrecedingLineBreak()}function Io(){return He(),100===Ve()&&!a.hasPrecedingLineBreak()}function Do(){return He(),(ma(Ve())||9===Ve()||10===Ve()||11===Ve())&&!a.hasPrecedingLineBreak()}function Co(){for(;;)switch(Ve()){case 115:case 121:case 87:case 100:case 86:case 94:return!0;case 160:return Oo();case 135:return Wo();case 120:case 156:case 166:return Ir();case 144:case 145:return Ho();case 128:case 129:case 134:case 138:case 123:case 124:case 125:case 148:const e=Ve();if(He(),a.hasPrecedingLineBreak())return!1;if(138===e&&156===Ve())return!0;continue;case 162:return He(),19===Ve()||80===Ve()||95===Ve();case 102:return He(),166===Ve()||11===Ve()||42===Ve()||19===Ve()||ma(Ve());case 95:let n=He();if(156===n&&(n=rn(He)),64===n||42===n||19===n||90===n||130===n||60===n)return!0;continue;case 126:He();continue;default:return!1}}function No(){return rn(Co)}function Mo(){switch(Ve()){case 60:case 27:case 19:case 115:case 121:case 160:case 100:case 86:case 94:case 101:case 92:case 117:case 99:case 88:case 83:case 107:case 118:case 109:case 111:case 113:case 89:case 85:case 98:case 134:case 138:case 120:case 144:case 145:case 156:case 162:case 166:return!0;case 102:return No()||rn(Ht);case 87:case 95:return No();case 129:case 125:case 123:case 124:case 126:case 148:return No()||!rn(xo);default:return Er()}}function Po(){return He(),an()||19===Ve()||23===Ve()}function Lo(){return wo(!0)}function ko(){return He(),64===Ve()||27===Ve()||59===Ve()}function wo(e){return He(),e&&165===Ve()?rn(ko):(an()||19===Ve())&&!a.hasPrecedingLineBreak()}function Oo(){return rn(wo)}function Fo(e){return 160===He()&&wo(e)}function Wo(){return rn(Fo)}function zo(){switch(Ve()){case 27:return function(){const e=Be(),n=Ge();return cn(27),pe(An(D.createEmptyStatement(),e),n)}();case 19:return yo(!1);case 115:return ni(Be(),Ge(),void 0);case 121:if(rn(Po))return ni(Be(),Ge(),void 0);break;case 135:if(Wo())return ni(Be(),Ge(),void 0);break;case 160:if(Oo())return ni(Be(),Ge(),void 0);break;case 100:return ti(Be(),Ge(),void 0);case 86:return _i(Be(),Ge(),void 0);case 101:return function(){const e=Be(),n=Ge();cn(101);const t=a.getTokenStart(),r=cn(21),o=Ae(Ar);mn(21,22,r,t);const i=zo(),s=hn(93)?zo():void 0;return pe(An(Q(o,i,s),e),n)}();case 92:return function(){const e=Be(),n=Ge();cn(92);const t=zo();cn(117);const r=a.getTokenStart(),o=cn(21),i=Ae(Ar);return mn(21,22,o,r),hn(27),pe(An(D.createDoStatement(t,i),e),n)}();case 117:return function(){const e=Be(),n=Ge();cn(117);const t=a.getTokenStart(),r=cn(21),o=Ae(Ar);mn(21,22,r,t);const i=zo();return pe(An(Z(o,i),e),n)}();case 99:return bo();case 88:return To(252);case 83:return To(253);case 107:return function(){const e=Be(),n=Ge();cn(107);const t=bn()?void 0:Ae(Ar);return Sn(),pe(An(D.createReturnStatement(t),e),n)}();case 118:return function(){const e=Be(),n=Ge();cn(118);const t=a.getTokenStart(),r=cn(21),o=Ae(Ar);mn(21,22,r,t);const i=Ee(67108864,zo);return pe(An(D.createWithStatement(o,i),e),n)}();case 109:return Eo();case 111:return function(){const e=Be(),n=Ge();cn(111);let t=a.hasPrecedingLineBreak()?void 0:Ae(Ar);return void 0===t&&(A++,t=An(L(""),Be())),Tn()||un(t),pe(An(D.createThrowStatement(t),e),n)}();case 113:case 85:case 98:return Ao();case 89:return function(){const e=Be(),n=Ge();return cn(89),Sn(),pe(An(D.createDebuggerStatement(),e),n)}();case 60:return Go();case 134:case 120:case 156:case 144:case 145:case 138:case 87:case 94:case 95:case 102:case 123:case 124:case 125:case 128:case 129:case 126:case 148:case 162:if(No())return Go()}return function(){const e=Be();let n,t=Ge();const r=21===Ve(),o=Ae(Ar);return dD(o)&&hn(59)?n=D.createLabeledStatement(o,zo()):(Tn()||un(o),n=$(o),r&&(t=!1)),pe(An(n,e),t)}()}function Bo(e){return 138===e.kind}function Go(){const e=Be(),n=Ge(),t=fi(!0);if(U(t,Bo)){const r=function(e){return Ee(33554432,()=>{const n=tt(x,e);if(n)return rt(n)})}(e);if(r)return r;for(const e of t)e.flags|=33554432;return Ee(33554432,()=>Vo(e,n,t))}return Vo(e,n,t)}function Vo(e,n,t){switch(Ve()){case 115:case 121:case 87:case 160:case 135:return ni(e,n,t);case 100:return ti(e,n,t);case 86:return _i(e,n,t);case 120:return function(e,n,t){cn(120);const r=Cn(),o=Ct(),i=yi(),a=Kt();return pe(An(D.createInterfaceDeclaration(t,r,o,i,a),e),n)}(e,n,t);case 156:return function(e,n,t){cn(156),a.hasPrecedingLineBreak()&&we(fa.Line_break_not_permitted_here);const r=Cn(),o=Ct();cn(64);const i=141===Ve()&&on(er)||br();Sn();return pe(An(D.createTypeAliasDeclaration(t,r,o,i),e),n)}(e,n,t);case 94:return function(e,n,t){cn(94);const r=Cn();let o;cn(19)?(o=Se(81920,()=>it(6,Ei)),cn(20)):o=st();return pe(An(D.createEnumDeclaration(t,r,o),e),n)}(e,n,t);case 162:case 144:case 145:return function(e,n,t){let r=0;if(162===Ve())return Ri(e,n,t);if(hn(145))r|=32;else if(cn(144),11===Ve())return Ri(e,n,t);return xi(e,n,t,r)}(e,n,t);case 102:return function(e,n,t){cn(102);const r=a.getTokenFullStart();let o,i;ln()&&(o=Cn());"type"===(null==o?void 0:o.escapedText)&&(161!==Ve()||ln()&&rn(Uo))&&(ln()||42===Ve()||19===Ve())?(i=156,o=ln()?Cn():void 0):"defer"!==(null==o?void 0:o.escapedText)||(161===Ve()?rn(jo):28===Ve()||64===Ve())||(i=166,o=ln()?Cn():void 0);if(o&&28!==Ve()&&161!==Ve()&&166!==i)return function(e,n,t,r,o){cn(64);const i=149===Ve()&&rn(Ii)?function(){const e=Be();cn(149),cn(21);const n=ki();return cn(22),An(D.createExternalModuleReference(n),e)}():ct(!1);Sn();const a=D.createImportEqualsDeclaration(t,o,r,i),s=pe(An(a,e),n);return s}(e,n,t,o,156===i);const s=Ni(o,r,i,void 0),l=ki(),c=Mi();Sn();return pe(An(D.createImportDeclaration(t,s,l,c),e),n)}(e,n,t);case 95:switch(He(),Ve()){case 90:case 64:return function(e,n,t){const r=ke();let o;Te(!0),hn(64)?o=!0:cn(90);const i=Rr(!0);Sn(),Te(r);return pe(An(D.createExportAssignment(t,o,i),e),n)}(e,n,t);case 130:return function(e,n,t){cn(130),cn(145);const r=Cn();Sn();const o=D.createNamespaceExportDeclaration(r);return o.modifiers=t,pe(An(o,e),n)}(e,n,t);default:return function(e,n,t){const r=ke();let o,i,s;Te(!0);const l=hn(156),c=Be();hn(42)?(hn(130)&&(o=function(e){return An(D.createNamespaceExport(Oi(Nn)),e)}(c)),cn(161),i=ki()):(o=Fi(280),(161===Ve()||11===Ve()&&!a.hasPrecedingLineBreak())&&(cn(161),i=ki()));const d=Ve();!i||118!==d&&132!==d||a.hasPrecedingLineBreak()||(s=Li(d));Sn(),Te(r);return pe(An(D.createExportDeclaration(t,l,o,i,s),e),n)}(e,n,t)}default:if(t){const n=xn(283,!0,fa.Declaration_expected);return IA(n,e),n.modifiers=t,n}return}}function jo(){return 11===He()}function Uo(){return He(),161===Ve()||64===Ve()}function Ho(){return He(),!a.hasPrecedingLineBreak()&&(ln()||11===Ve())}function Ko(e,n){if(19!==Ve()){if(4&e)return void Ot();if(bn())return void Sn()}return vo(e,n)}function qo(){const e=Be();if(28===Ve())return An(D.createOmittedExpression(),e);const n=_n(26),t=Yo(),r=xr();return An(D.createBindingElement(n,void 0,t,r),e)}function Jo(){const e=Be(),n=_n(26),t=an();let r,o=kn();t&&59!==Ve()?(r=o,o=void 0):(cn(59),r=Yo());const i=xr();return An(D.createBindingElement(n,o,r,i),e)}function Xo(){return 19===Ve()||23===Ve()||81===Ve()||an()}function Yo(e){return 23===Ve()?function(){const e=Be();cn(23);const n=Ae(()=>it(10,qo));return cn(24),An(D.createArrayBindingPattern(n),e)}():19===Ve()?function(){const e=Be();cn(19);const n=Ae(()=>it(9,Jo));return cn(20),An(D.createObjectBindingPattern(n),e)}():Dn(e)}function $o(){return Qo(!0)}function Qo(e){const n=Be(),t=Ge(),r=Yo(fa.Private_identifiers_are_not_allowed_in_variable_declarations);let o;e&&80===r.kind&&54===Ve()&&!a.hasPrecedingLineBreak()&&(o=vn());const i=Tr(),s=kr(Ve())?void 0:xr();return pe(An(te(r,o,i,s),n),t)}function Zo(e){const n=Be();let t,r=0;switch(Ve()){case 115:break;case 121:r|=1;break;case 87:r|=2;break;case 160:r|=4;break;case 135:dt.assert(Wo()),r|=6,He();break;default:dt.fail()}if(He(),165===Ve()&&rn(ei))t=st();else{const n=Me();ye(e),t=it(8,e?Qo:$o),ye(n)}return An(oe(t,r),n)}function ei(){return Kn()&&22===He()}function ni(e,n,t){const r=Zo(!1);Sn();return pe(An(Y(t,r),e),n)}function ti(e,n,t){const r=ke(),o=Yv(t);cn(100);const i=_n(42),a=2048&o?go():Dn(),s=i?1:0,l=1024&o?2:0,c=Ct();32&o&&Te(!0);const d=wt(s|l),u=Lt(59,!1),p=Ko(s|l,fa.or_expected);Te(r);return pe(An(D.createFunctionDeclaration(t,i,a,c,d,u,p),e),n)}function ri(e,n,t){return on(()=>{if(137===Ve()?cn(137):11===Ve()&&21===rn(He)?on(()=>{const e=yt();return"constructor"===e.text?e:void 0}):void 0){const r=Ct(),o=wt(0),i=Lt(59,!1),a=Ko(0,fa.or_expected),s=D.createConstructorDeclaration(t,o,a);return s.typeParameters=r,s.type=i,pe(An(s,e),n)}})}function oi(e,n,t,r,o,i,a,s){const l=r?1:0,c=U(t,mD)?2:0,d=Ct(),u=wt(l|c),p=Lt(59,!1),f=Ko(l|c,s),m=D.createMethodDeclaration(t,r,o,i,d,u,p,f);return m.exclamationToken=a,pe(An(m,e),n)}function ii(e,n,t,r,o){const i=o||a.hasPrecedingLineBreak()?void 0:_n(54),s=Tr(),l=Se(90112,xr);!function(e,n,t){if(60!==Ve()||a.hasPrecedingLineBreak())return 21===Ve()?(we(fa.Cannot_start_a_function_call_in_a_type_annotation),void He()):void(!n||bn()?Tn()||(t?we(fa._0_expected,Pa(27)):un(e)):t?we(fa._0_expected,Pa(27)):we(fa.Expected_for_property_initializer));we(fa.Decorators_must_precede_the_name_and_all_keywords_of_property_declarations)}(r,s,l);return pe(An(D.createPropertyDeclaration(t,r,o||i,s,l),e),n)}function ai(e,n,t){const r=_n(42),o=kn(),i=_n(58);return r||21===Ve()||30===Ve()?oi(e,n,t,r,o,i,void 0,fa.or_expected):ii(e,n,t,o,i)}function si(e,n,t,r,o){const i=kn(),a=Ct(),s=wt(0),l=Lt(59,!1),c=Ko(o),d=178===r?D.createGetAccessorDeclaration(t,i,s,l,c):D.createSetAccessorDeclaration(t,i,s,c);return d.typeParameters=a,FD(d)&&(d.type=l),pe(An(d,e),n)}function li(){let e;if(60===Ve())return!0;for(;Zc(Ve());){if(e=Ve(),nd(e))return!0;He()}if(42===Ve())return!0;if(Pn()&&(e=Ve(),He()),23===Ve())return!0;if(void 0!==e){if(!Dg(e)||153===e||139===e)return!0;switch(Ve()){case 21:case 30:case 54:case 59:case 64:case 58:return!0;default:return bn()}}return!1}function ci(e,n,t){yn(126);const r=function(){const e=Ne(),n=ke();ve(!1),Te(!0);const t=yo(!1);return ve(e),Te(n),t}(),o=pe(An(D.createClassStaticBlockDeclaration(r),e),n);return o.modifiers=t,o}function di(){if(ke()&&135===Ve()){const e=Be(),n=Cn(fa.Expression_expected);He();return ao(e,ro(e,n,!0))}return Ur()}function ui(){const e=Be();if(!hn(60))return;const n=Ee(32768,di);return An(D.createDecorator(n),e)}function pi(e,n,t){const r=Be(),o=Ve();if(87===Ve()&&n){if(!on(Wn))return}else{if(t&&126===Ve()&&rn(Di))return;if(e&&126===Ve())return;if(!Zc(Ve())||!on(zn))return}return An(w(o),r)}function fi(e,n,t){const r=Be();let o,i,a,s=!1,l=!1,c=!1;if(e&&60===Ve())for(;i=ui();)o=re(o,i);for(;a=pi(s,n,t);)126===a.kind&&(s=!0),o=re(o,a),l=!0;if(l&&e&&60===Ve())for(;i=ui();)o=re(o,i),c=!0;if(c)for(;a=pi(s,n,t);)126===a.kind&&(s=!0),o=re(o,a);return o&&En(o,r)}function mi(){let e;if(134===Ve()){const n=Be();He();e=En([An(w(134),n)],n)}return e}function hi(){const e=Be(),n=Ge();if(27===Ve())return He(),pe(An(D.createSemicolonClassElement(),e),n);const t=fi(!0,!0,!0);if(126===Ve()&&rn(Di))return ci(e,n,t);if(Fn(139))return si(e,n,t,178,0);if(Fn(153))return si(e,n,t,179,0);if(137===Ve()||11===Ve()){const r=ri(e,n,t);if(r)return r}if(Wt())return Bt(e,n,t);if(ma(Ve())||11===Ve()||9===Ve()||10===Ve()||42===Ve()||23===Ve()){if(U(t,Bo)){for(const e of t)e.flags|=33554432;return Ee(33554432,()=>ai(e,n,t))}return ai(e,n,t)}if(t){const r=xn(80,!0,fa.Declaration_expected);return ii(e,n,t,r,void 0)}return dt.fail("Should not have attempted to parse class member declaration.")}function _i(e,n,t){return gi(e,n,t,264)}function gi(e,n,t,r){const o=ke();cn(86);const i=!an()||119===Ve()&&rn(qn)?void 0:In(an()),a=Ct();U(t,pD)&&Te(!0);const s=yi();let l;cn(19)?(l=et(5,hi),cn(20)):l=st(),Te(o);return pe(An(264===r?D.createClassDeclaration(t,i,a,s,l):D.createClassExpression(t,i,a,s,l),e),n)}function yi(){if(Si())return et(22,vi)}function vi(){const e=Be(),n=Ve();dt.assert(96===n||119===n),He();const t=it(7,bi);return An(D.createHeritageClause(n,t),e)}function bi(){const e=Be(),n=Ur();if(234===n.kind)return n;const t=Ti();return An(D.createExpressionWithTypeArguments(n,t),e)}function Ti(){return 30===Ve()?lt(20,br,30,32):void 0}function Si(){return 96===Ve()||119===Ve()}function Ei(){const e=Be(),n=Ge(),t=kn(),r=Ae(xr);return pe(An(D.createEnumMember(t,r),e),n)}function Ai(){const e=Be();let n;return cn(19)?(n=et(1,zo),cn(20)):n=st(),An(D.createModuleBlock(n),e)}function xi(e,n,t,r){const o=32&r,i=8&r?Nn():Cn(),a=hn(25)?xi(Be(),!1,void 0,8|o):Ai();return pe(An(D.createModuleDeclaration(t,i,a,r),e),n)}function Ri(e,n,t){let r,o,i=0;162===Ve()?(r=Cn(),i|=2048):(r=yt(),r.text=Rn(r.text)),19===Ve()?o=Ai():Sn();return pe(An(D.createModuleDeclaration(t,r,o,i),e),n)}function Ii(){return 21===He()}function Di(){return 19===He()}function Ci(){return 44===He()}function Ni(e,n,t,r=!1){let o;return(e||42===Ve()||19===Ve())&&(o=function(e,n,t,r){let o;e&&!hn(28)||(r&&a.setSkipJsDocLeadingAsterisks(!0),o=42===Ve()?function(){const e=Be();cn(42),cn(130);const n=Cn();return An(D.createNamespaceImport(n),e)}():Fi(276),r&&a.setSkipJsDocLeadingAsterisks(!1));return An(D.createImportClause(t,e,o),n)}(e,n,t,r),cn(161)),o}function Mi(){const e=Ve();if((118===e||132===e)&&!a.hasPrecedingLineBreak())return Li(e)}function Pi(){const e=Be(),n=ma(Ve())?Nn():bt(11);cn(59);const t=Rr(!0);return An(D.createImportAttribute(n,t),e)}function Li(e,n){const t=Be();n||cn(e);const r=a.getTokenStart();if(cn(19)){const n=a.hasPrecedingLineBreak(),o=it(24,Pi,!0);if(!cn(20)){const e=ge(g);e&&e.code===fa._0_expected.code&&dA(e,XT(u,f,r,1,fa.The_parser_expected_to_find_a_1_to_match_the_0_token_here,"{","}"))}return An(D.createImportAttributes(o,n,e),t)}{const n=En([],Be(),void 0,!1);return An(D.createImportAttributes(n,!1,e),t)}}function ki(){if(11===Ve()){const e=yt();return e.text=Rn(e.text),e}return Ar()}function wi(){return ma(Ve())||11===Ve()}function Oi(e){return 11===Ve()?yt():e()}function Fi(e){const n=Be();return An(276===e?D.createNamedImports(lt(23,zi,19,20)):D.createNamedExports(lt(23,Wi,19,20)),n)}function Wi(){const e=Ge();return pe(Bi(282),e)}function zi(){return Bi(277)}function Bi(e){const n=Be();let t,r=Dg(Ve())&&!ln(),o=a.getTokenStart(),i=a.getTokenEnd(),s=!1,l=!0,c=Oi(Nn);if(80===c.kind&&"type"===c.escapedText)if(130===Ve()){const e=Nn();if(130===Ve()){const n=Nn();wi()?(s=!0,t=e,c=Oi(d),l=!1):(t=c,c=n,l=!1)}else wi()?(t=c,l=!1,c=Oi(d)):(s=!0,c=e)}else wi()&&(s=!0,c=Oi(d));l&&130===Ve()&&(t=c,cn(130),c=Oi(d)),277===e&&(80!==c.kind?(Fe(es(f,c.pos),c.end,fa.Identifier_expected),c=CA(xn(80,!1),c.pos,c.pos)):r&&Fe(o,i,fa.Identifier_expected));return An(277===e?D.createImportSpecifier(s,t,c):D.createExportSpecifier(s,t,c),n);function d(){return r=Dg(Ve())&&!ln(),o=a.getTokenStart(),i=a.getTokenEnd(),Nn()}}let Gi;var Vi;let Ui;var Hi;let Ki;(Vi=Gi||(Gi={}))[Vi.SourceElements=0]="SourceElements",Vi[Vi.BlockStatements=1]="BlockStatements",Vi[Vi.SwitchClauses=2]="SwitchClauses",Vi[Vi.SwitchClauseStatements=3]="SwitchClauseStatements",Vi[Vi.TypeMembers=4]="TypeMembers",Vi[Vi.ClassMembers=5]="ClassMembers",Vi[Vi.EnumMembers=6]="EnumMembers",Vi[Vi.HeritageClauseElement=7]="HeritageClauseElement",Vi[Vi.VariableDeclarations=8]="VariableDeclarations",Vi[Vi.ObjectBindingElements=9]="ObjectBindingElements",Vi[Vi.ArrayBindingElements=10]="ArrayBindingElements",Vi[Vi.ArgumentExpressions=11]="ArgumentExpressions",Vi[Vi.ObjectLiteralMembers=12]="ObjectLiteralMembers",Vi[Vi.JsxAttributes=13]="JsxAttributes",Vi[Vi.JsxChildren=14]="JsxChildren",Vi[Vi.ArrayLiteralMembers=15]="ArrayLiteralMembers",Vi[Vi.Parameters=16]="Parameters",Vi[Vi.JSDocParameters=17]="JSDocParameters",Vi[Vi.RestProperties=18]="RestProperties",Vi[Vi.TypeParameters=19]="TypeParameters",Vi[Vi.TypeArguments=20]="TypeArguments",Vi[Vi.TupleElementTypes=21]="TupleElementTypes",Vi[Vi.HeritageClauses=22]="HeritageClauses",Vi[Vi.ImportOrExportSpecifiers=23]="ImportOrExportSpecifiers",Vi[Vi.ImportAttributes=24]="ImportAttributes",Vi[Vi.JSDocComment=25]="JSDocComment",Vi[Vi.Count=26]="Count",(Hi=Ui||(Ui={}))[Hi.False=0]="False",Hi[Hi.True=1]="True",Hi[Hi.Unknown=2]="Unknown",(e=>{function n(e){const n=Be(),t=(e?hn:cn)(19),r=Ee(16777216,It);e&&!t||fn(20);const o=D.createJSDocTypeExpression(r);return me(o),An(o,n)}function t(){const e=Be(),n=hn(19),t=Be();let r=ct(!1);for(;81===Ve();)Qe(),Ke(),r=An(D.createJSDocMemberName(r,Cn()),t);n&&fn(20);const o=D.createJSDocNameReference(r);return me(o),An(o,e)}let r;var o;let i;var s;function l(e=0,r){const o=f,i=void 0===r?o.length:e+r;if(r=i-e,dt.assert(e>=0),dt.assert(e<=i),dt.assert(i<=o.length),!wL(o,e))return;let s,l,c,d,p,m=[];const h=[],_=x;x|=1<<25;const g=a.scanRange(e+3,r-5,function(){let n,t=1,r=e-(o.lastIndexOf("\n",e)+1)+4;function u(e){n||(n=r),m.push(e),r+=e.length}Ke();for(;Z(5););Z(4)&&(t=0,r=0);e:for(;;){switch(Ve()){case 60:v(m),p||(p=Be()),P(E(r)),t=0,n=void 0;break;case 4:m.push(a.getTokenText()),t=0,r=0;break;case 42:const o=a.getTokenText();1===t?(t=2,u(o)):(dt.assert(0===t),t=1,r+=o.length);break;case 5:dt.assert(2!==t,"whitespace shouldn't come from the scanner while saving top-level comment text");const i=a.getTokenText();void 0!==n&&r+i.length>n&&m.push(i.slice(n-r)),r+=i.length;break;case 1:break e;case 82:t=2,u(a.getTokenValue());break;case 19:t=2;const s=a.getTokenFullStart(),l=C(a.getTokenEnd()-1);if(l){d||y(m),h.push(An(D.createJSDocText(m.join("")),d??e,s)),h.push(l),m=[],d=a.getTokenEnd();break}default:t=2,u(a.getTokenText())}2===t?qe(!1):Ke()}const f=m.join("").trimEnd();h.length&&f.length&&h.push(An(D.createJSDocText(f),d??e,p));h.length&&s&&dt.assertIsDefined(p,"having parsed tags implies that the end of the comment span should be set");const _=s&&En(s,l,c);return An(D.createJSDocComment(h.length?En(h,e,p):f.length?f:void 0,_),e,i)});return x=_,g;function y(e){for(;e.length&&("\n"===e[0]||"\r"===e[0]);)e.shift()}function v(e){for(;e.length;){const n=e[e.length-1].trimEnd();if(""!==n){if(n.length<e[e.length-1].length){e[e.length-1]=n;break}break}e.pop()}}function b(){for(;;){if(Ke(),1===Ve())return!0;if(5!==Ve()&&4!==Ve())return!1}}function T(){if(5!==Ve()&&4!==Ve()||!rn(b))for(;5===Ve()||4===Ve();)Ke()}function S(){if((5===Ve()||4===Ve())&&rn(b))return"";let e=a.hasPrecedingLineBreak(),n=!1,t="";for(;e&&42===Ve()||5===Ve()||4===Ve();)t+=a.getTokenText(),4===Ve()?(e=!0,n=!0,t=""):42===Ve()&&(e=!1),Ke();return n?t:""}function E(e){dt.assert(60===Ve());const r=a.getTokenStart();Ke();const o=ee(void 0),i=S();let l;switch(o.escapedText){case"author":l=function(e,n,t,r){const o=Be(),i=function(){const e=[];let n=!1,t=a.getToken();for(;1!==t&&4!==t;){if(30===t)n=!0;else{if(60===t&&!n)break;if(32===t&&n){e.push(a.getTokenText()),a.resetTokenState(a.getTokenEnd());break}}e.push(a.getTokenText()),t=Ke()}return D.createJSDocText(e.join(""))}();let s=a.getTokenFullStart();const l=R(e,s,t,r);l||(s=a.getTokenFullStart());const c="string"!=typeof l?En(K([An(i,o,s)],l),o):i.text+l;return An(D.createJSDocAuthorTag(n,c),e)}(r,o,e,i);break;case"implements":l=function(e,n,t,r){const o=B();return An(D.createJSDocImplementsTag(n,o,R(e,Be(),t,r)),e)}(r,o,e,i);break;case"augments":case"extends":l=function(e,n,t,r){const o=B();return An(D.createJSDocAugmentsTag(n,o,R(e,Be(),t,r)),e)}(r,o,e,i);break;case"class":case"constructor":l=G(r,D.createJSDocClassTag,o,e,i);break;case"public":l=G(r,D.createJSDocPublicTag,o,e,i);break;case"private":l=G(r,D.createJSDocPrivateTag,o,e,i);break;case"protected":l=G(r,D.createJSDocProtectedTag,o,e,i);break;case"readonly":l=G(r,D.createJSDocReadonlyTag,o,e,i);break;case"override":l=G(r,D.createJSDocOverrideTag,o,e,i);break;case"deprecated":ue=!0,l=G(r,D.createJSDocDeprecatedTag,o,e,i);break;case"this":l=V(r,o,e,i);break;case"enum":l=function(e,t,r,o){const i=n(!0);return T(),An(D.createJSDocEnumTag(t,i,R(e,Be(),r,o)),e)}(r,o,e,i);break;case"arg":case"argument":case"param":return F(r,o,2,e);case"return":case"returns":l=function(e,n,t,r){U(s,UM)&&Fe(n.pos,a.getTokenStart(),fa._0_tag_already_specified,yl(n.escapedText));const o=k();return An(D.createJSDocReturnTag(n,o,R(e,Be(),t,r)),e)}(r,o,e,i);break;case"template":l=Q(r,o,e,i);break;case"type":l=W(r,o,e,i);break;case"typedef":l=function(e,n,t,r){let o=k();S();const i=j();T();let a,s=I(t);if(!o||O(o.type)){let n,r,i,s=!1;for(;(n=on(()=>J(t)))&&346!==n.kind;)if(s=!0,345===n.kind){if(r){const e=we(fa.A_JSDoc_typedef_comment_may_not_contain_multiple_type_tags);e&&dA(e,XT(u,f,0,0,fa.The_tag_was_first_specified_here));break}r=n}else i=re(i,n);if(s){const n=o&&189===o.type.kind,t=D.createJSDocTypeLiteral(i,n);o=r&&r.typeExpression&&!O(r.typeExpression.type)?r.typeExpression:An(t,e),a=o.end}}a=a||void 0!==s?Be():(i??o??n).end,s||(s=R(e,a,t,r));const l=D.createJSDocTypedefTag(n,o,i,s);return An(l,e,a)}(r,o,e,i);break;case"callback":l=function(e,n,t,r){const o=j();T();let i=I(t);const a=H(e,t);i||(i=R(e,Be(),t,r));const s=void 0!==i?Be():a.end;return An(D.createJSDocCallbackTag(n,a,o,i),e,s)}(r,o,e,i);break;case"overload":l=function(e,n,t,r){T();let o=I(t);const i=H(e,t);o||(o=R(e,Be(),t,r));const a=void 0!==o?Be():i.end;return An(D.createJSDocOverloadTag(n,i,o),e,a)}(r,o,e,i);break;case"satisfies":l=function(e,t,r,o){const i=n(!1),a=void 0!==r&&void 0!==o?R(e,Be(),r,o):void 0;return An(D.createJSDocSatisfiesTag(t,i,a),e)}(r,o,e,i);break;case"see":l=function(e,n,r,o){const i=23===Ve()||rn(()=>60===Ke()&&ma(Ke())&&M(a.getTokenValue()))?void 0:t(),s=void 0!==r&&void 0!==o?R(e,Be(),r,o):void 0;return An(D.createJSDocSeeTag(n,i,s),e)}(r,o,e,i);break;case"exception":case"throws":l=function(e,n,t,r){const o=k(),i=R(e,Be(),t,r);return An(D.createJSDocThrowsTag(n,o,i),e)}(r,o,e,i);break;case"import":l=function(e,n,t,r){const o=a.getTokenFullStart();let i;ln()&&(i=Cn());const s=Ni(i,o,156,!0),l=ki(),c=Mi(),d=void 0!==t&&void 0!==r?R(e,Be(),t,r):void 0;return An(D.createJSDocImportTag(n,s,l,c,d),e)}(r,o,e,i);break;default:l=function(e,n,t,r){return An(D.createJSDocUnknownTag(n,R(e,Be(),t,r)),e)}(r,o,e,i)}return l}function R(e,n,t,r){return r||(t+=n-e),I(t,r.slice(t))}function I(e,n){const t=Be();let r=[];const o=[];let i,s,l=0;function c(n){s||(s=e),r.push(n),e+=n.length}void 0!==n&&(""!==n&&c(n),l=1);let d=Ve();e:for(;;){switch(d){case 4:l=0,r.push(a.getTokenText()),e=0;break;case 60:a.resetTokenState(a.getTokenEnd()-1);break e;case 1:break e;case 5:dt.assert(2!==l&&3!==l,"whitespace shouldn't come from the scanner while saving comment text");const n=a.getTokenText();void 0!==s&&e+n.length>s&&(r.push(n.slice(s-e)),l=2),e+=n.length;break;case 19:l=2;const d=a.getTokenFullStart(),u=C(a.getTokenEnd()-1);u?(o.push(An(D.createJSDocText(r.join("")),i??t,d)),o.push(u),r=[],i=a.getTokenEnd()):c(a.getTokenText());break;case 62:l=3===l?2:3,c(a.getTokenText());break;case 82:3!==l&&(l=2),c(a.getTokenValue());break;case 42:if(0===l){l=1,e+=1;break}default:3!==l&&(l=2),c(a.getTokenText())}d=2===l||3===l?qe(3===l):Ke()}y(r);const u=r.join("").trimEnd();return o.length?(u.length&&o.push(An(D.createJSDocText(u),i??t)),En(o,t,a.getTokenEnd())):u.length?u:void 0}function C(e){const n=on(N);if(!n)return;Ke(),T();const t=function(){if(ma(Ve())){const e=Be();let n=Nn();for(;hn(25);)n=An(D.createQualifiedName(n,81===Ve()?xn(80,!1):Nn()),e);for(;81===Ve();)Qe(),Ke(),n=An(D.createJSDocMemberName(n,Cn()),e);return n}return}(),r=[];for(;20!==Ve()&&4!==Ve()&&1!==Ve();)r.push(a.getTokenText()),Ke();return An(("link"===n?D.createJSDocLink:"linkcode"===n?D.createJSDocLinkCode:D.createJSDocLinkPlain)(t,r.join("")),e,a.getTokenEnd())}function N(){if(S(),19===Ve()&&60===Ke()&&ma(Ke())){const e=a.getTokenValue();if(M(e))return e}}function M(e){return"link"===e||"linkcode"===e||"linkplain"===e}function P(e){e&&(s?s.push(e):(s=[e],l=e.pos),c=e.end)}function k(){return S(),19===Ve()?n():void 0}function w(){const e=Z(23);e&&T();const n=Z(62),t=function(){let e=ee();hn(23)&&cn(24);for(;hn(25);){const n=ee();hn(23)&&cn(24),e=ut(e,n)}return e}();var r;return n&&(gn(r=62)||(dt.assert(Ng(r)),xn(r,!1,fa._0_expected,Pa(r)))),e&&(T(),_n(64)&&Ar(),cn(24)),{name:t,isBracketed:e}}function O(e){switch(e.kind){case 151:return!0;case 189:return O(e.elementType);default:return VD(e)&&dD(e.typeName)&&"Object"===e.typeName.escapedText&&!e.typeArguments}}function F(e,n,t,r){let o=k(),i=!o;S();const{name:a,isBracketed:s}=w(),l=S();i&&!rn(N)&&(o=k());const c=R(e,Be(),r,l),d=function(e,n,t,r){if(e&&O(e.type)){const o=Be();let i,a;for(;i=on(()=>X(t,r,n));)342===i.kind||349===i.kind?a=re(a,i):346===i.kind&&We(i.tagName,fa.A_JSDoc_template_tag_may_not_follow_a_typedef_callback_or_overload_tag);if(a){const n=An(D.createJSDocTypeLiteral(a,189===e.type.kind),o);return An(D.createJSDocTypeExpression(n),o)}}}(o,a,t,r);d&&(o=d,i=!0);return An(1===t?D.createJSDocPropertyTag(n,a,s,o,i,c):D.createJSDocParameterTag(n,a,s,o,i,c),e)}function W(e,t,r,o){U(s,KM)&&Fe(t.pos,a.getTokenStart(),fa._0_tag_already_specified,yl(t.escapedText));const i=n(!0),l=void 0!==r&&void 0!==o?R(e,Be(),r,o):void 0;return An(D.createJSDocTypeTag(t,i,l),e)}function B(){const e=hn(19),n=Be(),t=function(){const e=Be();let n=ee();for(;hn(25);){const t=ee();n=An(z(n,t),e)}return n}();a.setSkipJsDocLeadingAsterisks(!0);const r=Ti();a.setSkipJsDocLeadingAsterisks(!1);const o=An(D.createExpressionWithTypeArguments(t,r),n);return e&&(T(),cn(20)),o}function G(e,n,t,r,o){return An(n(t,R(e,Be(),r,o)),e)}function V(e,t,r,o){const i=n(!0);return T(),An(D.createJSDocThisTag(t,i,R(e,Be(),r,o)),e)}function j(e){const n=a.getTokenStart();if(!ma(Ve()))return;const t=ee();if(hn(25)){const r=j(!0);return An(D.createModuleDeclaration(void 0,t,r,e?8:void 0),n)}return e&&(t.flags|=4096),t}function H(e,n){const t=function(e){const n=Be();let t,r;for(;t=on(()=>X(4,e));){if(346===t.kind){We(t.tagName,fa.A_JSDoc_template_tag_may_not_follow_a_typedef_callback_or_overload_tag);break}r=re(r,t)}return En(r||[],n)}(n),r=on(()=>{if(Z(60)){const e=E(n);if(e&&343===e.kind)return e}});return An(D.createJSDocSignature(void 0,t,r),e)}function q(e,n){for(;!dD(e)||!dD(n);){if(dD(e)||dD(n)||e.right.escapedText!==n.right.escapedText)return!1;e=e.left,n=n.left}return e.escapedText===n.escapedText}function J(e){return X(1,e)}function X(e,n,t){let r=!0,o=!1;for(;;)switch(Ke()){case 60:if(r){const r=Y(e,n);return!(r&&(342===r.kind||349===r.kind)&&t&&(dD(r.name)||!q(t,r.name.left)))&&r}o=!1;break;case 4:r=!0,o=!1;break;case 42:o&&(r=!1),o=!0;break;case 80:r=!1;break;case 1:return!1}}function Y(e,n){dt.assert(60===Ve());const t=a.getTokenFullStart();Ke();const r=ee(),o=S();let i;switch(r.escapedText){case"type":return 1===e&&W(t,r);case"prop":case"property":i=1;break;case"arg":case"argument":case"param":i=6;break;case"template":return Q(t,r,n,o);case"this":return V(t,r,n,o);default:return!1}return!!(e&i)&&F(t,r,e,n)}function $(){const e=Be(),n=Z(23);n&&T();const t=fi(!1,!0),r=ee(fa.Unexpected_token_A_type_parameter_name_was_expected_without_curly_braces);let o;if(n&&(T(),cn(64),o=Ee(16777216,It),cn(24)),!Np(r))return An(D.createTypeParameterDeclaration(t,r,void 0,o),e)}function Q(e,t,r,o){const i=19===Ve()?n():void 0,a=function(){const e=Be(),n=[];do{T();const e=$();void 0!==e&&n.push(e),S()}while(Z(28));return En(n,e)}();return An(D.createJSDocTemplateTag(t,i,a,R(e,Be(),r,o)),e)}function Z(e){return Ve()===e&&(Ke(),!0)}function ee(e){if(!ma(Ve()))return xn(80,!e,e||fa.Identifier_expected);A++;const n=a.getTokenStart(),t=a.getTokenEnd(),r=Ve(),o=Rn(a.getTokenValue()),i=An(L(o,r),n,t);return Ke(),i}}e.parseJSDocTypeExpressionForTests=function(e,t,r){ce("file.js",e,99,void 0,1,0),a.setText(e,t,r),T=a.scan();const o=n(),i=he("file.js",99,1,!1,[],w(1),0,tn),s=QT(g,i);return y&&(i.jsDocDiagnostics=QT(y,i)),de(),o?{jsDocTypeExpression:o,diagnostics:s}:void 0},e.parseJSDocTypeExpression=n,e.parseJSDocNameReference=t,e.parseIsolatedJSDocComment=function(e,n,t){ce("",e,99,void 0,1,0);const r=Ee(16777216,()=>l(n,t)),o=QT(g,{languageVariant:0,text:e});return de(),r?{jsDoc:r,diagnostics:o}:void 0},e.parseJSDocComment=function(e,n,t){const r=T,o=g.length,i=se,a=Ee(16777216,()=>l(n,t));return PA(a,e),524288&I&&(y||(y=[]),ae(y,g,o)),T=r,g.length=o,se=i,a},(o=r||(r={}))[o.BeginningOfLine=0]="BeginningOfLine",o[o.SawAsterisk=1]="SawAsterisk",o[o.SavingComments=2]="SavingComments",o[o.SavingBackticks=3]="SavingBackticks",(s=i||(i={}))[s.Property=1]="Property",s[s.Parameter=2]="Parameter",s[s.CallbackParameter=4]="CallbackParameter"})(Ki=e.JSDocParser||(e.JSDocParser={}))})(zL||(zL={}));var mk=new WeakSet;var hk,_k=new WeakSet;function gk(e){_k.add(e)}function yk(e){return void 0!==vk(e)}function vk(e){const n=ki(e,LE,!1);if(n)return n;if(xi(e,".ts")){const n=Pi(e),t=n.lastIndexOf(".d.");if(t>=0)return n.substring(t)}}function bk(e,n){const t=[];for(const r of fs(n,0)||s){Rk(t,r,n.substring(r.pos,r.end))}e.pragmas=new Map;for(const r of t){if(e.pragmas.has(r.name)){const n=e.pragmas.get(r.name);n instanceof Array?n.push(r.args):e.pragmas.set(r.name,[n,r.args]);continue}e.pragmas.set(r.name,r.args)}}function Tk(e,n){e.checkJsDirective=void 0,e.referencedFiles=[],e.typeReferenceDirectives=[],e.libReferenceDirectives=[],e.amdDependencies=[],e.hasNoDefaultLib=!1,e.pragmas.forEach((t,r)=>{switch(r){case"reference":{const r=e.referencedFiles,o=e.typeReferenceDirectives,i=e.libReferenceDirectives;d($e(t),t=>{const{types:a,lib:s,path:l,"resolution-mode":c,preserve:d}=t.arguments,u="true"===d||void 0;if("true"===t.arguments["no-default-lib"])e.hasNoDefaultLib=!0;else if(a){const e=function(e,n,t,r){if(e)return"import"===e?99:"require"===e?1:void r(n,t-n,fa.resolution_mode_should_be_either_require_or_import)}(c,a.pos,a.end,n);o.push({pos:a.pos,end:a.end,fileName:a.value,...e?{resolutionMode:e}:{},...u?{preserve:u}:{}})}else s?i.push({pos:s.pos,end:s.end,fileName:s.value,...u?{preserve:u}:{}}):l?r.push({pos:l.pos,end:l.end,fileName:l.value,...u?{preserve:u}:{}}):n(t.range.pos,t.range.end-t.range.pos,fa.Invalid_reference_directive_syntax)});break}case"amd-dependency":e.amdDependencies=D($e(t),e=>({name:e.arguments.name,path:e.arguments.path}));break;case"amd-module":if(t instanceof Array)for(const r of t)e.moduleName&&n(r.range.pos,r.range.end-r.range.pos,fa.An_AMD_module_cannot_have_multiple_name_assignments),e.moduleName=r.arguments.name;else e.moduleName=t.arguments.name;break;case"ts-nocheck":case"ts-check":d($e(t),n=>{(!e.checkJsDirective||n.range.pos>e.checkJsDirective.pos)&&(e.checkJsDirective={enabled:"ts-check"===r,end:n.range.end,pos:n.range.pos})});break;case"jsx":case"jsxfrag":case"jsximportsource":case"jsxruntime":return;default:dt.fail("Unhandled pragma kind")}})}(e=>{function n(e,n,r,i,a,s,l){return void(r?d(e):c(e));function c(e){let r="";if(l&&t(e)&&(r=a.substring(e.pos,e.end)),aP(e,n),CA(e,e.pos+i,e.end+i),l&&t(e)&&dt.assert(r===s.substring(e.pos,e.end)),rk(e,c,d),Mu(e))for(const n of e.jsDoc)c(n);o(e,l)}function d(e){CA(e,e.pos+i,e.end+i);for(const n of e)c(n)}}function t(e){switch(e.kind){case 11:case 9:case 80:return!0}return!1}function r(e,n,t,r,o){dt.assert(e.end>=n,"Adjusting an element that was entirely before the change range"),dt.assert(e.pos<=t,"Adjusting an element that was entirely after the change range"),dt.assert(e.pos<=e.end);const i=Math.min(e.pos,r),a=e.end>=t?e.end+o:Math.min(e.end,r);if(dt.assert(i<=a),e.parent){const n=e.parent;dt.assertGreaterThanOrEqual(i,n.pos),dt.assertLessThanOrEqual(a,n.end)}CA(e,i,a)}function o(e,n){if(n){let n=e.pos;const t=e=>{dt.assert(e.pos>=n),n=e.end};if(Mu(e))for(const r of e.jsDoc)t(r);rk(e,t),dt.assert(n<=e.end)}}function i(e,n){let t,r=e;if(rk(e,function e(o){if(Np(o))return;if(!(o.pos<=n))return dt.assert(o.pos>n),!0;if(o.pos>=r.pos&&(r=o),n<o.end)return rk(o,e),!0;dt.assert(o.end<=n),t=o}),t){const e=function(e){for(;;){const n=ET(e);if(!n)return e;e=n}}(t);e.pos>r.pos&&(r=e)}return r}function a(e,n,t,r){const o=e.text;if(t&&(dt.assert(o.length-t.span.length+t.newLength===n.length),r||dt.shouldAssert(3))){const e=o.substr(0,t.span.start),r=n.substr(0,t.span.start);dt.assert(e===r);const i=o.substring(Ps(t.span),o.length),a=n.substring(Ps(Ys(t)),n.length);dt.assert(i===a)}}function s(e){let n=e.statements,t=0;dt.assert(t<n.length);let r=n[t],o=-1;return{currentNode:i=>(i!==o&&(r&&r.end===i&&t<n.length-1&&(t++,r=n[t]),r&&r.pos===i||function(o){return n=void 0,t=-1,r=void 0,void rk(e,i,a);function i(e){return o>=e.pos&&o<e.end&&(rk(e,i,a),!0)}function a(e){if(o>=e.pos&&o<e.end)for(let s=0;s<e.length;s++){const l=e[s];if(l){if(l.pos===o)return n=e,t=s,r=l,!0;if(l.pos<o&&o<l.end)return rk(l,i,a),!0}}return!1}}(i)),o=i,dt.assert(!r||r.pos===i),r)}}let l;var c;e.updateSourceFile=function(e,t,l,c){if(a(e,t,l,c=c||dt.shouldAssert(2)),$s(l))return e;if(0===e.statements.length)return zL.parseSourceFile(e.fileName,t,e.languageVersion,void 0,!0,e.scriptKind,e.setExternalModuleIndicator,e.jsDocParsingMode);!function(e){mk.has(e)&&dt.fail("Source file has already been incrementally parsed"),mk.add(e)}(e),zL.fixupParentReferences(e);const d=e.text,u=s(e),p=function(e,n){const t=1;let r=n.span.start;for(let s=0;r>0&&s<=t;s++){const n=i(e,r);dt.assert(n.pos<=r);const t=n.pos;r=Math.max(0,t-1)}const o=Xs(r,Ps(n.span)),a=n.newLength+(n.span.start-r);return Qs(o,a)}(e,l);a(e,t,p,c),dt.assert(p.span.start<=l.span.start),dt.assert(Ps(p.span)===Ps(l.span)),dt.assert(Ps(Ys(p))===Ps(Ys(l)));const f=Ys(p).length-p.span.length;!function(e,t,i,a,s,l,c,d){return void u(e);function u(f){if(dt.assert(f.pos<=f.end),f.pos>i)return void n(f,e,!1,s,l,c,d);const m=f.end;if(m>=t){if(gk(f),aP(f,e),r(f,t,i,a,s),rk(f,u,p),Mu(f))for(const e of f.jsDoc)u(e);o(f,d)}else dt.assert(m<t)}function p(o){if(dt.assert(o.pos<=o.end),o.pos>i)return void n(o,e,!0,s,l,c,d);const p=o.end;if(p>=t){gk(o),r(o,t,i,a,s);for(const e of o)u(e)}else dt.assert(p<t)}}(e,p.span.start,Ps(p.span),Ps(Ys(p)),f,d,t,c);const m=zL.parseSourceFile(e.fileName,t,e.languageVersion,u,!0,e.scriptKind,e.setExternalModuleIndicator,e.jsDocParsingMode);return m.commentDirectives=function(e,n,t,r,o,i,a,s){if(!e)return n;let l,c=!1;for(const u of e){const{range:e,type:n}=u;if(e.end<t)l=re(l,u);else if(e.pos>r){d();const t={range:{pos:e.pos+o,end:e.end+o},type:n};l=re(l,t),s&&dt.assert(i.substring(e.pos,e.end)===a.substring(t.range.pos,t.range.end))}}return d(),l;function d(){c||(c=!0,l?n&&l.push(...n):l=n)}}(e.commentDirectives,m.commentDirectives,p.span.start,Ps(p.span),f,d,t,c),m.impliedNodeFormat=e.impliedNodeFormat,sP(e,m),m},e.createSyntaxCursor=s,(c=l||(l={}))[c.Value=-1]="Value"})(hk||(hk={}));var Sk=new Map;function Ek(e){if(Sk.has(e))return Sk.get(e);const n=new RegExp(`(\\s${e}\\s*=\\s*)(?:(?:'([^']*)')|(?:"([^"]*)"))`,"im");return Sk.set(e,n),n}var Ak=/^\/\/\/\s*<(\S+)\s.*?\/>/m,xk=/^\/\/\/?\s*@([^\s:]+)((?:[^\S\r\n]|:).*)?$/m;function Rk(e,n,t){const r=2===n.kind&&Ak.exec(t);if(r){const o=r[1].toLowerCase(),i=wo[o];if(!(i&&1&i.kind))return;if(i.args){const r={};for(const e of i.args){const o=Ek(e.name).exec(t);if(!o&&!e.optional)return;if(o){const t=o[2]||o[3];if(e.captureSpan){const i=n.pos+o.index+o[1].length+1;r[e.name]={value:t,pos:i,end:i+t.length}}else r[e.name]=t}}e.push({name:o,args:{arguments:r,range:n}})}else e.push({name:o,args:{arguments:{},range:n}});return}const o=2===n.kind&&xk.exec(t);if(o)return Ik(e,n,2,o);if(3===n.kind){const r=/@(\S+)(\s+(?:\S.*)?)?$/gm;let o;for(;o=r.exec(t);)Ik(e,n,4,o)}}function Ik(e,n,t,r){if(!r)return;const o=r[1].toLowerCase(),i=wo[o];if(!(i&&i.kind&t))return;const a=function(e,n){if(!n)return{};if(!e.args)return{};const t=n.trim().split(/\s+/),r={};for(let o=0;o<e.args.length;o++){const n=e.args[o];if(!t[o]&&!n.optional)return"fail";if(n.captureSpan)return dt.fail("Capture spans not yet implemented for non-xml pragmas");r[n.name]=t[o]}return r}(i,r[2]);"fail"!==a&&e.push({name:o,args:{arguments:a,range:n}})}function Dk(e,n){return e.kind===n.kind&&(80===e.kind?e.escapedText===n.escapedText:110===e.kind||(296===e.kind?e.namespace.escapedText===n.namespace.escapedText&&e.name.escapedText===n.name.escapedText:e.name.escapedText===n.name.escapedText&&Dk(e.expression,n.expression)))}var Ck={name:"compileOnSave",type:"boolean",defaultValueDescription:!1},Nk=new Map(Object.entries({preserve:1,"react-native":3,"react-jsx":4,"react-jsxdev":5,react:2})),Mk=new Map(C(Nk.entries(),([e,n])=>[""+n,e])),Pk=[["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"],["es2021","lib.es2021.d.ts"],["es2022","lib.es2022.d.ts"],["es2023","lib.es2023.d.ts"],["es2024","lib.es2024.d.ts"],["esnext","lib.esnext.d.ts"],["dom","lib.dom.d.ts"],["dom.iterable","lib.dom.iterable.d.ts"],["dom.asynciterable","lib.dom.asynciterable.d.ts"],["webworker","lib.webworker.d.ts"],["webworker.importscripts","lib.webworker.importscripts.d.ts"],["webworker.iterable","lib.webworker.iterable.d.ts"],["webworker.asynciterable","lib.webworker.asynciterable.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"],["es2016.intl","lib.es2016.intl.d.ts"],["es2017.arraybuffer","lib.es2017.arraybuffer.d.ts"],["es2017.date","lib.es2017.date.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"],["es2019.intl","lib.es2019.intl.d.ts"],["es2020.bigint","lib.es2020.bigint.d.ts"],["es2020.date","lib.es2020.date.d.ts"],["es2020.promise","lib.es2020.promise.d.ts"],["es2020.sharedmemory","lib.es2020.sharedmemory.d.ts"],["es2020.string","lib.es2020.string.d.ts"],["es2020.symbol.wellknown","lib.es2020.symbol.wellknown.d.ts"],["es2020.intl","lib.es2020.intl.d.ts"],["es2020.number","lib.es2020.number.d.ts"],["es2021.promise","lib.es2021.promise.d.ts"],["es2021.string","lib.es2021.string.d.ts"],["es2021.weakref","lib.es2021.weakref.d.ts"],["es2021.intl","lib.es2021.intl.d.ts"],["es2022.array","lib.es2022.array.d.ts"],["es2022.error","lib.es2022.error.d.ts"],["es2022.intl","lib.es2022.intl.d.ts"],["es2022.object","lib.es2022.object.d.ts"],["es2022.string","lib.es2022.string.d.ts"],["es2022.regexp","lib.es2022.regexp.d.ts"],["es2023.array","lib.es2023.array.d.ts"],["es2023.collection","lib.es2023.collection.d.ts"],["es2023.intl","lib.es2023.intl.d.ts"],["es2024.arraybuffer","lib.es2024.arraybuffer.d.ts"],["es2024.collection","lib.es2024.collection.d.ts"],["es2024.object","lib.es2024.object.d.ts"],["es2024.promise","lib.es2024.promise.d.ts"],["es2024.regexp","lib.es2024.regexp.d.ts"],["es2024.sharedmemory","lib.es2024.sharedmemory.d.ts"],["es2024.string","lib.es2024.string.d.ts"],["esnext.array","lib.es2023.array.d.ts"],["esnext.collection","lib.esnext.collection.d.ts"],["esnext.symbol","lib.es2019.symbol.d.ts"],["esnext.asynciterable","lib.es2018.asynciterable.d.ts"],["esnext.intl","lib.esnext.intl.d.ts"],["esnext.disposable","lib.esnext.disposable.d.ts"],["esnext.bigint","lib.es2020.bigint.d.ts"],["esnext.string","lib.es2022.string.d.ts"],["esnext.promise","lib.es2024.promise.d.ts"],["esnext.weakref","lib.es2021.weakref.d.ts"],["esnext.decorators","lib.esnext.decorators.d.ts"],["esnext.object","lib.es2024.object.d.ts"],["esnext.array","lib.esnext.array.d.ts"],["esnext.regexp","lib.es2024.regexp.d.ts"],["esnext.string","lib.es2024.string.d.ts"],["esnext.iterator","lib.esnext.iterator.d.ts"],["esnext.promise","lib.esnext.promise.d.ts"],["esnext.float16","lib.esnext.float16.d.ts"],["esnext.error","lib.esnext.error.d.ts"],["esnext.sharedmemory","lib.esnext.sharedmemory.d.ts"],["decorators","lib.decorators.d.ts"],["decorators.legacy","lib.decorators.legacy.d.ts"]],Lk=Pk.map(e=>e[0]),kk=new Map(Pk),wk=[{name:"watchFile",type:new Map(Object.entries({fixedpollinginterval:0,prioritypollinginterval:1,dynamicprioritypolling:2,fixedchunksizepolling:3,usefsevents:4,usefseventsonparentdirectory:5})),category:fa.Watch_and_Build_Modes,description:fa.Specify_how_the_TypeScript_watch_mode_works,defaultValueDescription:4},{name:"watchDirectory",type:new Map(Object.entries({usefsevents:0,fixedpollinginterval:1,dynamicprioritypolling:2,fixedchunksizepolling:3})),category:fa.Watch_and_Build_Modes,description:fa.Specify_how_directories_are_watched_on_systems_that_lack_recursive_file_watching_functionality,defaultValueDescription:0},{name:"fallbackPolling",type:new Map(Object.entries({fixedinterval:0,priorityinterval:1,dynamicpriority:2,fixedchunksize:3})),category:fa.Watch_and_Build_Modes,description:fa.Specify_what_approach_the_watcher_should_use_if_the_system_runs_out_of_native_file_watchers,defaultValueDescription:1},{name:"synchronousWatchDirectory",type:"boolean",category:fa.Watch_and_Build_Modes,description:fa.Synchronously_call_callbacks_and_update_the_state_of_directory_watchers_on_platforms_that_don_t_support_recursive_watching_natively,defaultValueDescription:!1},{name:"excludeDirectories",type:"list",element:{name:"excludeDirectory",type:"string",isFilePath:!0,extraValidation:XO},allowConfigDirTemplateSubstitution:!0,category:fa.Watch_and_Build_Modes,description:fa.Remove_a_list_of_directories_from_the_watch_process},{name:"excludeFiles",type:"list",element:{name:"excludeFile",type:"string",isFilePath:!0,extraValidation:XO},allowConfigDirTemplateSubstitution:!0,category:fa.Watch_and_Build_Modes,description:fa.Remove_a_list_of_files_from_the_watch_mode_s_processing}],Ok=[{name:"help",shortName:"h",type:"boolean",showInSimplifiedHelpView:!0,isCommandLineOnly:!0,category:fa.Command_line_Options,description:fa.Print_this_message,defaultValueDescription:!1},{name:"help",shortName:"?",type:"boolean",isCommandLineOnly:!0,category:fa.Command_line_Options,defaultValueDescription:!1},{name:"watch",shortName:"w",type:"boolean",showInSimplifiedHelpView:!0,isCommandLineOnly:!0,category:fa.Command_line_Options,description:fa.Watch_input_files,defaultValueDescription:!1},{name:"preserveWatchOutput",type:"boolean",showInSimplifiedHelpView:!1,category:fa.Output_Formatting,description:fa.Disable_wiping_the_console_in_watch_mode,defaultValueDescription:!1},{name:"listFiles",type:"boolean",category:fa.Compiler_Diagnostics,description:fa.Print_all_of_the_files_read_during_the_compilation,defaultValueDescription:!1},{name:"explainFiles",type:"boolean",category:fa.Compiler_Diagnostics,description:fa.Print_files_read_during_the_compilation_including_why_it_was_included,defaultValueDescription:!1},{name:"listEmittedFiles",type:"boolean",category:fa.Compiler_Diagnostics,description:fa.Print_the_names_of_emitted_files_after_a_compilation,defaultValueDescription:!1},{name:"pretty",type:"boolean",showInSimplifiedHelpView:!0,category:fa.Output_Formatting,description:fa.Enable_color_and_formatting_in_TypeScript_s_output_to_make_compiler_errors_easier_to_read,defaultValueDescription:!0},{name:"traceResolution",type:"boolean",category:fa.Compiler_Diagnostics,description:fa.Log_paths_used_during_the_moduleResolution_process,defaultValueDescription:!1},{name:"diagnostics",type:"boolean",category:fa.Compiler_Diagnostics,description:fa.Output_compiler_performance_information_after_building,defaultValueDescription:!1},{name:"extendedDiagnostics",type:"boolean",category:fa.Compiler_Diagnostics,description:fa.Output_more_detailed_compiler_performance_information_after_building,defaultValueDescription:!1},{name:"generateCpuProfile",type:"string",isFilePath:!0,paramType:fa.FILE_OR_DIRECTORY,category:fa.Compiler_Diagnostics,description:fa.Emit_a_v8_CPU_profile_of_the_compiler_run_for_debugging,defaultValueDescription:"profile.cpuprofile"},{name:"generateTrace",type:"string",isFilePath:!0,paramType:fa.DIRECTORY,category:fa.Compiler_Diagnostics,description:fa.Generates_an_event_trace_and_a_list_of_types},{name:"incremental",shortName:"i",type:"boolean",category:fa.Projects,description:fa.Save_tsbuildinfo_files_to_allow_for_incremental_compilation_of_projects,transpileOptionValue:void 0,defaultValueDescription:fa.false_unless_composite_is_set},{name:"declaration",shortName:"d",type:"boolean",affectsBuildInfo:!0,showInSimplifiedHelpView:!0,category:fa.Emit,transpileOptionValue:void 0,description:fa.Generate_d_ts_files_from_TypeScript_and_JavaScript_files_in_your_project,defaultValueDescription:fa.false_unless_composite_is_set},{name:"declarationMap",type:"boolean",affectsBuildInfo:!0,showInSimplifiedHelpView:!0,category:fa.Emit,defaultValueDescription:!1,description:fa.Create_sourcemaps_for_d_ts_files},{name:"emitDeclarationOnly",type:"boolean",affectsBuildInfo:!0,showInSimplifiedHelpView:!0,category:fa.Emit,description:fa.Only_output_d_ts_files_and_not_JavaScript_files,transpileOptionValue:void 0,defaultValueDescription:!1},{name:"sourceMap",type:"boolean",affectsBuildInfo:!0,showInSimplifiedHelpView:!0,category:fa.Emit,defaultValueDescription:!1,description:fa.Create_source_map_files_for_emitted_JavaScript_files},{name:"inlineSourceMap",type:"boolean",affectsBuildInfo:!0,category:fa.Emit,description:fa.Include_sourcemap_files_inside_the_emitted_JavaScript,defaultValueDescription:!1},{name:"noCheck",type:"boolean",showInSimplifiedHelpView:!1,category:fa.Compiler_Diagnostics,description:fa.Disable_full_type_checking_only_critical_parse_and_emit_errors_will_be_reported,transpileOptionValue:!0,defaultValueDescription:!1},{name:"noEmit",type:"boolean",showInSimplifiedHelpView:!0,category:fa.Emit,description:fa.Disable_emitting_files_from_a_compilation,transpileOptionValue:void 0,defaultValueDescription:!1},{name:"assumeChangesOnlyAffectDirectDependencies",type:"boolean",affectsSemanticDiagnostics:!0,affectsEmit:!0,affectsBuildInfo:!0,category:fa.Watch_and_Build_Modes,description:fa.Have_recompiles_in_projects_that_use_incremental_and_watch_mode_assume_that_changes_within_a_file_will_only_affect_files_directly_depending_on_it,defaultValueDescription:!1},{name:"locale",type:"string",category:fa.Command_line_Options,isCommandLineOnly:!0,description:fa.Set_the_language_of_the_messaging_from_TypeScript_This_does_not_affect_emit,defaultValueDescription:fa.Platform_specific}],Fk={name:"target",shortName:"t",type:new Map(Object.entries({es3:0,es5:1,es6:2,es2015:2,es2016:3,es2017:4,es2018:5,es2019:6,es2020:7,es2021:8,es2022:9,es2023:10,es2024:11,esnext:99})),affectsSourceFile:!0,affectsModuleResolution:!0,affectsEmit:!0,affectsBuildInfo:!0,deprecatedKeys:new Set(["es3"]),paramType:fa.VERSION,showInSimplifiedHelpView:!0,category:fa.Language_and_Environment,description:fa.Set_the_JavaScript_language_version_for_emitted_JavaScript_and_include_compatible_library_declarations,defaultValueDescription:1},Wk={name:"module",shortName:"m",type:new Map(Object.entries({none:0,commonjs:1,amd:2,system:4,umd:3,es6:5,es2015:5,es2020:6,es2022:7,esnext:99,node16:100,node18:101,node20:102,nodenext:199,preserve:200})),affectsSourceFile:!0,affectsModuleResolution:!0,affectsEmit:!0,affectsBuildInfo:!0,paramType:fa.KIND,showInSimplifiedHelpView:!0,category:fa.Modules,description:fa.Specify_what_module_code_is_generated,defaultValueDescription:void 0},zk=[{name:"all",type:"boolean",showInSimplifiedHelpView:!0,category:fa.Command_line_Options,description:fa.Show_all_compiler_options,defaultValueDescription:!1},{name:"version",shortName:"v",type:"boolean",showInSimplifiedHelpView:!0,category:fa.Command_line_Options,description:fa.Print_the_compiler_s_version,defaultValueDescription:!1},{name:"init",type:"boolean",showInSimplifiedHelpView:!0,category:fa.Command_line_Options,description:fa.Initializes_a_TypeScript_project_and_creates_a_tsconfig_json_file,defaultValueDescription:!1},{name:"project",shortName:"p",type:"string",isFilePath:!0,showInSimplifiedHelpView:!0,category:fa.Command_line_Options,paramType:fa.FILE_OR_DIRECTORY,description:fa.Compile_the_project_given_the_path_to_its_configuration_file_or_to_a_folder_with_a_tsconfig_json},{name:"showConfig",type:"boolean",showInSimplifiedHelpView:!0,category:fa.Command_line_Options,isCommandLineOnly:!0,description:fa.Print_the_final_configuration_instead_of_building,defaultValueDescription:!1},{name:"listFilesOnly",type:"boolean",category:fa.Command_line_Options,isCommandLineOnly:!0,description:fa.Print_names_of_files_that_are_part_of_the_compilation_and_then_stop_processing,defaultValueDescription:!1},Fk,Wk,{name:"lib",type:"list",element:{name:"lib",type:kk,defaultValueDescription:void 0},affectsProgramStructure:!0,showInSimplifiedHelpView:!0,category:fa.Language_and_Environment,description:fa.Specify_a_set_of_bundled_library_declaration_files_that_describe_the_target_runtime_environment,transpileOptionValue:void 0},{name:"allowJs",type:"boolean",allowJsFlag:!0,affectsBuildInfo:!0,showInSimplifiedHelpView:!0,category:fa.JavaScript_Support,description:fa.Allow_JavaScript_files_to_be_a_part_of_your_program_Use_the_checkJs_option_to_get_errors_from_these_files,defaultValueDescription:!1},{name:"checkJs",type:"boolean",affectsModuleResolution:!0,affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,showInSimplifiedHelpView:!0,category:fa.JavaScript_Support,description:fa.Enable_error_reporting_in_type_checked_JavaScript_files,defaultValueDescription:!1},{name:"jsx",type:Nk,affectsSourceFile:!0,affectsEmit:!0,affectsBuildInfo:!0,affectsModuleResolution:!0,affectsSemanticDiagnostics:!0,paramType:fa.KIND,showInSimplifiedHelpView:!0,category:fa.Language_and_Environment,description:fa.Specify_what_JSX_code_is_generated,defaultValueDescription:void 0},{name:"outFile",type:"string",affectsEmit:!0,affectsBuildInfo:!0,affectsDeclarationPath:!0,isFilePath:!0,paramType:fa.FILE,showInSimplifiedHelpView:!0,category:fa.Emit,description:fa.Specify_a_file_that_bundles_all_outputs_into_one_JavaScript_file_If_declaration_is_true_also_designates_a_file_that_bundles_all_d_ts_output,transpileOptionValue:void 0},{name:"outDir",type:"string",affectsEmit:!0,affectsBuildInfo:!0,affectsDeclarationPath:!0,isFilePath:!0,paramType:fa.DIRECTORY,showInSimplifiedHelpView:!0,category:fa.Emit,description:fa.Specify_an_output_folder_for_all_emitted_files},{name:"rootDir",type:"string",affectsEmit:!0,affectsBuildInfo:!0,affectsDeclarationPath:!0,isFilePath:!0,paramType:fa.LOCATION,category:fa.Modules,description:fa.Specify_the_root_folder_within_your_source_files,defaultValueDescription:fa.Computed_from_the_list_of_input_files},{name:"composite",type:"boolean",affectsBuildInfo:!0,isTSConfigOnly:!0,category:fa.Projects,transpileOptionValue:void 0,defaultValueDescription:!1,description:fa.Enable_constraints_that_allow_a_TypeScript_project_to_be_used_with_project_references},{name:"tsBuildInfoFile",type:"string",affectsEmit:!0,affectsBuildInfo:!0,isFilePath:!0,paramType:fa.FILE,category:fa.Projects,transpileOptionValue:void 0,defaultValueDescription:".tsbuildinfo",description:fa.Specify_the_path_to_tsbuildinfo_incremental_compilation_file},{name:"removeComments",type:"boolean",affectsEmit:!0,affectsBuildInfo:!0,showInSimplifiedHelpView:!0,category:fa.Emit,defaultValueDescription:!1,description:fa.Disable_emitting_comments},{name:"importHelpers",type:"boolean",affectsEmit:!0,affectsBuildInfo:!0,affectsSourceFile:!0,category:fa.Emit,description:fa.Allow_importing_helper_functions_from_tslib_once_per_project_instead_of_including_them_per_file,defaultValueDescription:!1},{name:"importsNotUsedAsValues",type:new Map(Object.entries({remove:0,preserve:1,error:2})),affectsEmit:!0,affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,category:fa.Backwards_Compatibility,description:fa.Specify_emit_Slashchecking_behavior_for_imports_that_are_only_used_for_types,defaultValueDescription:0},{name:"downlevelIteration",type:"boolean",affectsEmit:!0,affectsBuildInfo:!0,category:fa.Emit,description:fa.Emit_more_compliant_but_verbose_and_less_performant_JavaScript_for_iteration,defaultValueDescription:!1},{name:"isolatedModules",type:"boolean",category:fa.Interop_Constraints,description:fa.Ensure_that_each_file_can_be_safely_transpiled_without_relying_on_other_imports,transpileOptionValue:!0,defaultValueDescription:!1},{name:"verbatimModuleSyntax",type:"boolean",affectsEmit:!0,affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,category:fa.Interop_Constraints,description:fa.Do_not_transform_or_elide_any_imports_or_exports_not_marked_as_type_only_ensuring_they_are_written_in_the_output_file_s_format_based_on_the_module_setting,defaultValueDescription:!1},{name:"isolatedDeclarations",type:"boolean",category:fa.Interop_Constraints,description:fa.Require_sufficient_annotation_on_exports_so_other_tools_can_trivially_generate_declaration_files,defaultValueDescription:!1,affectsBuildInfo:!0,affectsSemanticDiagnostics:!0},{name:"erasableSyntaxOnly",type:"boolean",category:fa.Interop_Constraints,description:fa.Do_not_allow_runtime_constructs_that_are_not_part_of_ECMAScript,defaultValueDescription:!1,affectsBuildInfo:!0,affectsSemanticDiagnostics:!0},{name:"libReplacement",type:"boolean",affectsProgramStructure:!0,category:fa.Language_and_Environment,description:fa.Enable_lib_replacement,defaultValueDescription:!0},{name:"strict",type:"boolean",affectsBuildInfo:!0,showInSimplifiedHelpView:!0,category:fa.Type_Checking,description:fa.Enable_all_strict_type_checking_options,defaultValueDescription:!1},{name:"noImplicitAny",type:"boolean",affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,strictFlag:!0,category:fa.Type_Checking,description:fa.Enable_error_reporting_for_expressions_and_declarations_with_an_implied_any_type,defaultValueDescription:fa.false_unless_strict_is_set},{name:"strictNullChecks",type:"boolean",affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,strictFlag:!0,category:fa.Type_Checking,description:fa.When_type_checking_take_into_account_null_and_undefined,defaultValueDescription:fa.false_unless_strict_is_set},{name:"strictFunctionTypes",type:"boolean",affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,strictFlag:!0,category:fa.Type_Checking,description:fa.When_assigning_functions_check_to_ensure_parameters_and_the_return_values_are_subtype_compatible,defaultValueDescription:fa.false_unless_strict_is_set},{name:"strictBindCallApply",type:"boolean",affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,strictFlag:!0,category:fa.Type_Checking,description:fa.Check_that_the_arguments_for_bind_call_and_apply_methods_match_the_original_function,defaultValueDescription:fa.false_unless_strict_is_set},{name:"strictPropertyInitialization",type:"boolean",affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,strictFlag:!0,category:fa.Type_Checking,description:fa.Check_for_class_properties_that_are_declared_but_not_set_in_the_constructor,defaultValueDescription:fa.false_unless_strict_is_set},{name:"strictBuiltinIteratorReturn",type:"boolean",affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,strictFlag:!0,category:fa.Type_Checking,description:fa.Built_in_iterators_are_instantiated_with_a_TReturn_type_of_undefined_instead_of_any,defaultValueDescription:fa.false_unless_strict_is_set},{name:"noImplicitThis",type:"boolean",affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,strictFlag:!0,category:fa.Type_Checking,description:fa.Enable_error_reporting_when_this_is_given_the_type_any,defaultValueDescription:fa.false_unless_strict_is_set},{name:"useUnknownInCatchVariables",type:"boolean",affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,strictFlag:!0,category:fa.Type_Checking,description:fa.Default_catch_clause_variables_as_unknown_instead_of_any,defaultValueDescription:fa.false_unless_strict_is_set},{name:"alwaysStrict",type:"boolean",affectsSourceFile:!0,affectsEmit:!0,affectsBuildInfo:!0,strictFlag:!0,category:fa.Type_Checking,description:fa.Ensure_use_strict_is_always_emitted,defaultValueDescription:fa.false_unless_strict_is_set},{name:"noUnusedLocals",type:"boolean",affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,category:fa.Type_Checking,description:fa.Enable_error_reporting_when_local_variables_aren_t_read,defaultValueDescription:!1},{name:"noUnusedParameters",type:"boolean",affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,category:fa.Type_Checking,description:fa.Raise_an_error_when_a_function_parameter_isn_t_read,defaultValueDescription:!1},{name:"exactOptionalPropertyTypes",type:"boolean",affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,category:fa.Type_Checking,description:fa.Interpret_optional_property_types_as_written_rather_than_adding_undefined,defaultValueDescription:!1},{name:"noImplicitReturns",type:"boolean",affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,category:fa.Type_Checking,description:fa.Enable_error_reporting_for_codepaths_that_do_not_explicitly_return_in_a_function,defaultValueDescription:!1},{name:"noFallthroughCasesInSwitch",type:"boolean",affectsBindDiagnostics:!0,affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,category:fa.Type_Checking,description:fa.Enable_error_reporting_for_fallthrough_cases_in_switch_statements,defaultValueDescription:!1},{name:"noUncheckedIndexedAccess",type:"boolean",affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,category:fa.Type_Checking,description:fa.Add_undefined_to_a_type_when_accessed_using_an_index,defaultValueDescription:!1},{name:"noImplicitOverride",type:"boolean",affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,category:fa.Type_Checking,description:fa.Ensure_overriding_members_in_derived_classes_are_marked_with_an_override_modifier,defaultValueDescription:!1},{name:"noPropertyAccessFromIndexSignature",type:"boolean",affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,showInSimplifiedHelpView:!1,category:fa.Type_Checking,description:fa.Enforces_using_indexed_accessors_for_keys_declared_using_an_indexed_type,defaultValueDescription:!1},{name:"moduleResolution",type:new Map(Object.entries({node10:2,node:2,classic:1,node16:3,nodenext:99,bundler:100})),deprecatedKeys:new Set(["node"]),affectsSourceFile:!0,affectsModuleResolution:!0,paramType:fa.STRATEGY,category:fa.Modules,description:fa.Specify_how_TypeScript_looks_up_a_file_from_a_given_module_specifier,defaultValueDescription:fa.module_AMD_or_UMD_or_System_or_ES6_then_Classic_Otherwise_Node},{name:"baseUrl",type:"string",affectsModuleResolution:!0,isFilePath:!0,category:fa.Modules,description:fa.Specify_the_base_directory_to_resolve_non_relative_module_names},{name:"paths",type:"object",affectsModuleResolution:!0,allowConfigDirTemplateSubstitution:!0,isTSConfigOnly:!0,category:fa.Modules,description:fa.Specify_a_set_of_entries_that_re_map_imports_to_additional_lookup_locations,transpileOptionValue:void 0},{name:"rootDirs",type:"list",isTSConfigOnly:!0,element:{name:"rootDirs",type:"string",isFilePath:!0},affectsModuleResolution:!0,allowConfigDirTemplateSubstitution:!0,category:fa.Modules,description:fa.Allow_multiple_folders_to_be_treated_as_one_when_resolving_modules,transpileOptionValue:void 0,defaultValueDescription:fa.Computed_from_the_list_of_input_files},{name:"typeRoots",type:"list",element:{name:"typeRoots",type:"string",isFilePath:!0},affectsModuleResolution:!0,allowConfigDirTemplateSubstitution:!0,category:fa.Modules,description:fa.Specify_multiple_folders_that_act_like_Slashnode_modules_Slash_types},{name:"types",type:"list",element:{name:"types",type:"string"},affectsProgramStructure:!0,showInSimplifiedHelpView:!0,category:fa.Modules,description:fa.Specify_type_package_names_to_be_included_without_being_referenced_in_a_source_file,transpileOptionValue:void 0},{name:"allowSyntheticDefaultImports",type:"boolean",affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,category:fa.Interop_Constraints,description:fa.Allow_import_x_from_y_when_a_module_doesn_t_have_a_default_export,defaultValueDescription:fa.module_system_or_esModuleInterop},{name:"esModuleInterop",type:"boolean",affectsSemanticDiagnostics:!0,affectsEmit:!0,affectsBuildInfo:!0,showInSimplifiedHelpView:!0,category:fa.Interop_Constraints,description:fa.Emit_additional_JavaScript_to_ease_support_for_importing_CommonJS_modules_This_enables_allowSyntheticDefaultImports_for_type_compatibility,defaultValueDescription:!1},{name:"preserveSymlinks",type:"boolean",category:fa.Interop_Constraints,description:fa.Disable_resolving_symlinks_to_their_realpath_This_correlates_to_the_same_flag_in_node,defaultValueDescription:!1},{name:"allowUmdGlobalAccess",type:"boolean",affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,category:fa.Modules,description:fa.Allow_accessing_UMD_globals_from_modules,defaultValueDescription:!1},{name:"moduleSuffixes",type:"list",element:{name:"suffix",type:"string"},listPreserveFalsyValues:!0,affectsModuleResolution:!0,category:fa.Modules,description:fa.List_of_file_name_suffixes_to_search_when_resolving_a_module},{name:"allowImportingTsExtensions",type:"boolean",affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,category:fa.Modules,description:fa.Allow_imports_to_include_TypeScript_file_extensions_Requires_moduleResolution_bundler_and_either_noEmit_or_emitDeclarationOnly_to_be_set,defaultValueDescription:!1,transpileOptionValue:void 0},{name:"rewriteRelativeImportExtensions",type:"boolean",affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,category:fa.Modules,description:fa.Rewrite_ts_tsx_mts_and_cts_file_extensions_in_relative_import_paths_to_their_JavaScript_equivalent_in_output_files,defaultValueDescription:!1},{name:"resolvePackageJsonExports",type:"boolean",affectsModuleResolution:!0,category:fa.Modules,description:fa.Use_the_package_json_exports_field_when_resolving_package_imports,defaultValueDescription:fa.true_when_moduleResolution_is_node16_nodenext_or_bundler_otherwise_false},{name:"resolvePackageJsonImports",type:"boolean",affectsModuleResolution:!0,category:fa.Modules,description:fa.Use_the_package_json_imports_field_when_resolving_imports,defaultValueDescription:fa.true_when_moduleResolution_is_node16_nodenext_or_bundler_otherwise_false},{name:"customConditions",type:"list",element:{name:"condition",type:"string"},affectsModuleResolution:!0,category:fa.Modules,description:fa.Conditions_to_set_in_addition_to_the_resolver_specific_defaults_when_resolving_imports},{name:"noUncheckedSideEffectImports",type:"boolean",affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,category:fa.Modules,description:fa.Check_side_effect_imports,defaultValueDescription:!1},{name:"sourceRoot",type:"string",affectsEmit:!0,affectsBuildInfo:!0,paramType:fa.LOCATION,category:fa.Emit,description:fa.Specify_the_root_path_for_debuggers_to_find_the_reference_source_code},{name:"mapRoot",type:"string",affectsEmit:!0,affectsBuildInfo:!0,paramType:fa.LOCATION,category:fa.Emit,description:fa.Specify_the_location_where_debugger_should_locate_map_files_instead_of_generated_locations},{name:"inlineSources",type:"boolean",affectsEmit:!0,affectsBuildInfo:!0,category:fa.Emit,description:fa.Include_source_code_in_the_sourcemaps_inside_the_emitted_JavaScript,defaultValueDescription:!1},{name:"experimentalDecorators",type:"boolean",affectsEmit:!0,affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,category:fa.Language_and_Environment,description:fa.Enable_experimental_support_for_legacy_experimental_decorators,defaultValueDescription:!1},{name:"emitDecoratorMetadata",type:"boolean",affectsSemanticDiagnostics:!0,affectsEmit:!0,affectsBuildInfo:!0,category:fa.Language_and_Environment,description:fa.Emit_design_type_metadata_for_decorated_declarations_in_source_files,defaultValueDescription:!1},{name:"jsxFactory",type:"string",category:fa.Language_and_Environment,description:fa.Specify_the_JSX_factory_function_used_when_targeting_React_JSX_emit_e_g_React_createElement_or_h,defaultValueDescription:"`React.createElement`"},{name:"jsxFragmentFactory",type:"string",category:fa.Language_and_Environment,description:fa.Specify_the_JSX_Fragment_reference_used_for_fragments_when_targeting_React_JSX_emit_e_g_React_Fragment_or_Fragment,defaultValueDescription:"React.Fragment"},{name:"jsxImportSource",type:"string",affectsSemanticDiagnostics:!0,affectsEmit:!0,affectsBuildInfo:!0,affectsModuleResolution:!0,affectsSourceFile:!0,category:fa.Language_and_Environment,description:fa.Specify_module_specifier_used_to_import_the_JSX_factory_functions_when_using_jsx_Colon_react_jsx_Asterisk,defaultValueDescription:"react"},{name:"resolveJsonModule",type:"boolean",affectsModuleResolution:!0,category:fa.Modules,description:fa.Enable_importing_json_files,defaultValueDescription:!1},{name:"allowArbitraryExtensions",type:"boolean",affectsProgramStructure:!0,category:fa.Modules,description:fa.Enable_importing_files_with_any_extension_provided_a_declaration_file_is_present,defaultValueDescription:!1},{name:"out",type:"string",affectsEmit:!0,affectsBuildInfo:!0,affectsDeclarationPath:!0,isFilePath:!1,category:fa.Backwards_Compatibility,paramType:fa.FILE,transpileOptionValue:void 0,description:fa.Deprecated_setting_Use_outFile_instead},{name:"reactNamespace",type:"string",affectsEmit:!0,affectsBuildInfo:!0,category:fa.Language_and_Environment,description:fa.Specify_the_object_invoked_for_createElement_This_only_applies_when_targeting_react_JSX_emit,defaultValueDescription:"`React`"},{name:"skipDefaultLibCheck",type:"boolean",affectsBuildInfo:!0,category:fa.Completeness,description:fa.Skip_type_checking_d_ts_files_that_are_included_with_TypeScript,defaultValueDescription:!1},{name:"charset",type:"string",category:fa.Backwards_Compatibility,description:fa.No_longer_supported_In_early_versions_manually_set_the_text_encoding_for_reading_files,defaultValueDescription:"utf8"},{name:"emitBOM",type:"boolean",affectsEmit:!0,affectsBuildInfo:!0,category:fa.Emit,description:fa.Emit_a_UTF_8_Byte_Order_Mark_BOM_in_the_beginning_of_output_files,defaultValueDescription:!1},{name:"newLine",type:new Map(Object.entries({crlf:0,lf:1})),affectsEmit:!0,affectsBuildInfo:!0,paramType:fa.NEWLINE,category:fa.Emit,description:fa.Set_the_newline_character_for_emitting_files,defaultValueDescription:"lf"},{name:"noErrorTruncation",type:"boolean",affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,category:fa.Output_Formatting,description:fa.Disable_truncating_types_in_error_messages,defaultValueDescription:!1},{name:"noLib",type:"boolean",category:fa.Language_and_Environment,affectsProgramStructure:!0,description:fa.Disable_including_any_library_files_including_the_default_lib_d_ts,transpileOptionValue:!0,defaultValueDescription:!1},{name:"noResolve",type:"boolean",affectsModuleResolution:!0,category:fa.Modules,description:fa.Disallow_import_s_require_s_or_reference_s_from_expanding_the_number_of_files_TypeScript_should_add_to_a_project,transpileOptionValue:!0,defaultValueDescription:!1},{name:"stripInternal",type:"boolean",affectsEmit:!0,affectsBuildInfo:!0,category:fa.Emit,description:fa.Disable_emitting_declarations_that_have_internal_in_their_JSDoc_comments,defaultValueDescription:!1},{name:"disableSizeLimit",type:"boolean",affectsProgramStructure:!0,category:fa.Editor_Support,description:fa.Remove_the_20mb_cap_on_total_source_code_size_for_JavaScript_files_in_the_TypeScript_language_server,defaultValueDescription:!1},{name:"disableSourceOfProjectReferenceRedirect",type:"boolean",isTSConfigOnly:!0,category:fa.Projects,description:fa.Disable_preferring_source_files_instead_of_declaration_files_when_referencing_composite_projects,defaultValueDescription:!1},{name:"disableSolutionSearching",type:"boolean",isTSConfigOnly:!0,category:fa.Projects,description:fa.Opt_a_project_out_of_multi_project_reference_checking_when_editing,defaultValueDescription:!1},{name:"disableReferencedProjectLoad",type:"boolean",isTSConfigOnly:!0,category:fa.Projects,description:fa.Reduce_the_number_of_projects_loaded_automatically_by_TypeScript,defaultValueDescription:!1},{name:"noImplicitUseStrict",type:"boolean",affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,category:fa.Backwards_Compatibility,description:fa.Disable_adding_use_strict_directives_in_emitted_JavaScript_files,defaultValueDescription:!1},{name:"noEmitHelpers",type:"boolean",affectsEmit:!0,affectsBuildInfo:!0,category:fa.Emit,description:fa.Disable_generating_custom_helper_functions_like_extends_in_compiled_output,defaultValueDescription:!1},{name:"noEmitOnError",type:"boolean",affectsEmit:!0,affectsBuildInfo:!0,category:fa.Emit,transpileOptionValue:void 0,description:fa.Disable_emitting_files_if_any_type_checking_errors_are_reported,defaultValueDescription:!1},{name:"preserveConstEnums",type:"boolean",affectsEmit:!0,affectsBuildInfo:!0,category:fa.Emit,description:fa.Disable_erasing_const_enum_declarations_in_generated_code,defaultValueDescription:!1},{name:"declarationDir",type:"string",affectsEmit:!0,affectsBuildInfo:!0,affectsDeclarationPath:!0,isFilePath:!0,paramType:fa.DIRECTORY,category:fa.Emit,transpileOptionValue:void 0,description:fa.Specify_the_output_directory_for_generated_declaration_files},{name:"skipLibCheck",type:"boolean",affectsBuildInfo:!0,category:fa.Completeness,description:fa.Skip_type_checking_all_d_ts_files,defaultValueDescription:!1},{name:"allowUnusedLabels",type:"boolean",affectsBindDiagnostics:!0,affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,category:fa.Type_Checking,description:fa.Disable_error_reporting_for_unused_labels,defaultValueDescription:void 0},{name:"allowUnreachableCode",type:"boolean",affectsBindDiagnostics:!0,affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,category:fa.Type_Checking,description:fa.Disable_error_reporting_for_unreachable_code,defaultValueDescription:void 0},{name:"suppressExcessPropertyErrors",type:"boolean",affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,category:fa.Backwards_Compatibility,description:fa.Disable_reporting_of_excess_property_errors_during_the_creation_of_object_literals,defaultValueDescription:!1},{name:"suppressImplicitAnyIndexErrors",type:"boolean",affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,category:fa.Backwards_Compatibility,description:fa.Suppress_noImplicitAny_errors_when_indexing_objects_that_lack_index_signatures,defaultValueDescription:!1},{name:"forceConsistentCasingInFileNames",type:"boolean",affectsModuleResolution:!0,category:fa.Interop_Constraints,description:fa.Ensure_that_casing_is_correct_in_imports,defaultValueDescription:!0},{name:"maxNodeModuleJsDepth",type:"number",affectsModuleResolution:!0,category:fa.JavaScript_Support,description:fa.Specify_the_maximum_folder_depth_used_for_checking_JavaScript_files_from_node_modules_Only_applicable_with_allowJs,defaultValueDescription:0},{name:"noStrictGenericChecks",type:"boolean",affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,category:fa.Backwards_Compatibility,description:fa.Disable_strict_checking_of_generic_signatures_in_function_types,defaultValueDescription:!1},{name:"useDefineForClassFields",type:"boolean",affectsSemanticDiagnostics:!0,affectsEmit:!0,affectsBuildInfo:!0,category:fa.Language_and_Environment,description:fa.Emit_ECMAScript_standard_compliant_class_fields,defaultValueDescription:fa.true_for_ES2022_and_above_including_ESNext},{name:"preserveValueImports",type:"boolean",affectsEmit:!0,affectsBuildInfo:!0,category:fa.Backwards_Compatibility,description:fa.Preserve_unused_imported_values_in_the_JavaScript_output_that_would_otherwise_be_removed,defaultValueDescription:!1},{name:"keyofStringsOnly",type:"boolean",category:fa.Backwards_Compatibility,description:fa.Make_keyof_only_return_strings_instead_of_string_numbers_or_symbols_Legacy_option,defaultValueDescription:!1},{name:"plugins",type:"list",isTSConfigOnly:!0,element:{name:"plugin",type:"object"},description:fa.Specify_a_list_of_language_service_plugins_to_include,category:fa.Editor_Support},{name:"moduleDetection",type:new Map(Object.entries({auto:2,legacy:1,force:3})),affectsSourceFile:!0,affectsModuleResolution:!0,description:fa.Control_what_method_is_used_to_detect_module_format_JS_files,category:fa.Language_and_Environment,defaultValueDescription:fa.auto_Colon_Treat_files_with_imports_exports_import_meta_jsx_with_jsx_Colon_react_jsx_or_esm_format_with_module_Colon_node16_as_modules},{name:"ignoreDeprecations",type:"string",defaultValueDescription:void 0}],Bk=[...Ok,...zk],Gk=Bk.filter(e=>!!e.affectsSemanticDiagnostics),Vk=Bk.filter(e=>!!e.affectsEmit),jk=Bk.filter(e=>!!e.affectsDeclarationPath),Uk=Bk.filter(e=>!!e.affectsModuleResolution),Hk=Bk.filter(e=>!!e.affectsSourceFile||!!e.affectsBindDiagnostics),Kk=Bk.filter(e=>!!e.affectsProgramStructure),qk=Bk.filter(e=>Ie(e,"transpileOptionValue")),Jk=Bk.filter(e=>e.allowConfigDirTemplateSubstitution||!e.isCommandLineOnly&&e.isFilePath),Xk=wk.filter(e=>e.allowConfigDirTemplateSubstitution||!e.isCommandLineOnly&&e.isFilePath),Yk=Bk.filter(function(e){return!Qe(e.type)});var $k,Qk={name:"build",type:"boolean",shortName:"b",showInSimplifiedHelpView:!0,category:fa.Command_line_Options,description:fa.Build_one_or_more_projects_and_their_dependencies_if_out_of_date,defaultValueDescription:!1},Zk=[Qk,{name:"verbose",shortName:"v",category:fa.Command_line_Options,description:fa.Enable_verbose_logging,type:"boolean",defaultValueDescription:!1},{name:"dry",shortName:"d",category:fa.Command_line_Options,description:fa.Show_what_would_be_built_or_deleted_if_specified_with_clean,type:"boolean",defaultValueDescription:!1},{name:"force",shortName:"f",category:fa.Command_line_Options,description:fa.Build_all_projects_including_those_that_appear_to_be_up_to_date,type:"boolean",defaultValueDescription:!1},{name:"clean",category:fa.Command_line_Options,description:fa.Delete_the_outputs_of_all_projects,type:"boolean",defaultValueDescription:!1},{name:"stopBuildOnErrors",category:fa.Command_line_Options,description:fa.Skip_building_downstream_projects_on_error_in_upstream_project,type:"boolean",defaultValueDescription:!1}],ew=[...Ok,...Zk],nw=[{name:"enable",type:"boolean",defaultValueDescription:!1},{name:"include",type:"list",element:{name:"include",type:"string"}},{name:"exclude",type:"list",element:{name:"exclude",type:"string"}},{name:"disableFilenameBasedTypeAcquisition",type:"boolean",defaultValueDescription:!1}];function tw(e){const n=new Map,t=new Map;return d(e,e=>{n.set(e.name.toLowerCase(),e),e.shortName&&t.set(e.shortName,e.name)}),{optionsNameMap:n,shortOptionNames:t}}function rw(){return $k||($k=tw(Bk))}var ow={diagnostic:fa.Compiler_option_0_may_only_be_used_with_build,getOptionsNameMap:vw},iw={module:1,target:3,strict:!0,esModuleInterop:!0,forceConsistentCasingInFileNames:!0,skipLibCheck:!0};function aw(e){return sw(e,nS)}function sw(e,n){const t=Le(e.type.keys()),r=(e.deprecatedKeys?t.filter(n=>!e.deprecatedKeys.has(n)):t).map(e=>`'${e}'`).join(", ");return n(fa.Argument_for_0_option_must_be_Colon_1,`--${e.name}`,r)}function lw(e,n,t){return WO(e,(n??"").trim(),t)}function cw(e,n="",t){if(Xn(n=n.trim(),"-"))return;if("listOrElement"===e.type&&!n.includes(","))return FO(e,n,t);if(""===n)return[];const r=n.split(",");switch(e.element.type){case"number":return F(r,n=>FO(e.element,parseInt(n),t));case"string":return F(r,n=>FO(e.element,n||"",t));case"boolean":case"object":return dt.fail(`List of ${e.element.type} is not yet supported.`);default:return F(r,n=>lw(e.element,n,t))}}function dw(e){return e.name}function uw(e,n,t,r,o){var i;const a=null==(i=n.alternateMode)?void 0:i.getOptionsNameMap().optionsNameMap.get(e.toLowerCase());if(a)return wO(o,r,a!==Qk?n.alternateMode.diagnostic:fa.Option_build_must_be_the_first_command_line_argument,e);const s=wn(e,n.optionDeclarations,dw);return s?wO(o,r,n.unknownDidYouMeanDiagnostic,t||e,s.name):wO(o,r,n.unknownOptionDiagnostic,t||e)}function pw(e,n,t){const r={};let o;const i=[],a=[];return s(n),{options:r,watchOptions:o,fileNames:i,errors:a};function s(n){let t=0;for(;t<n.length;){const s=n[t];if(t++,64===s.charCodeAt(0))l(s.slice(1));else if(45===s.charCodeAt(0)){const i=s.slice(45===s.charCodeAt(1)?2:1),l=yw(e.getOptionsNameMap,i,!0);if(l)t=fw(n,t,e,l,r,a);else{const r=yw(ww.getOptionsNameMap,i,!0);r?t=fw(n,t,ww,r,o||(o={}),a):a.push(uw(i,e,s))}}else i.push(s)}}function l(e){const n=Iw(e,t||(e=>di.readFile(e)));if(!Qe(n))return void a.push(n);const r=[];let o=0;for(;;){for(;o<n.length&&n.charCodeAt(o)<=32;)o++;if(o>=n.length)break;const t=o;if(34===n.charCodeAt(t)){for(o++;o<n.length&&34!==n.charCodeAt(o);)o++;o<n.length?(r.push(n.substring(t+1,o)),o++):a.push(nS(fa.Unterminated_quoted_string_in_response_file_0,e))}else{for(;n.charCodeAt(o)>32;)o++;r.push(n.substring(t,o))}}s(r)}}function fw(e,n,t,r,o,i){if(r.isTSConfigOnly){const t=e[n];"null"===t?(o[r.name]=void 0,n++):"boolean"===r.type?"false"===t?(o[r.name]=FO(r,!1,i),n++):("true"===t&&n++,i.push(nS(fa.Option_0_can_only_be_specified_in_tsconfig_json_file_or_set_to_false_or_null_on_command_line,r.name))):(i.push(nS(fa.Option_0_can_only_be_specified_in_tsconfig_json_file_or_set_to_null_on_command_line,r.name)),t&&!Xn(t,"-")&&n++)}else if(e[n]||"boolean"===r.type||i.push(nS(t.optionTypeMismatchDiagnostic,r.name,qw(r))),"null"!==e[n])switch(r.type){case"number":o[r.name]=FO(r,parseInt(e[n]),i),n++;break;case"boolean":const t=e[n];o[r.name]=FO(r,"false"!==t,i),"false"!==t&&"true"!==t||n++;break;case"string":o[r.name]=FO(r,e[n]||"",i),n++;break;case"list":const a=cw(r,e[n],i);o[r.name]=a||[],a&&n++;break;case"listOrElement":dt.fail("listOrElement not supported here");break;default:o[r.name]=lw(r,e[n],i),n++}else o[r.name]=void 0,n++;return n}var mw,hw={alternateMode:ow,getOptionsNameMap:rw,optionDeclarations:Bk,unknownOptionDiagnostic:fa.Unknown_compiler_option_0,unknownDidYouMeanDiagnostic:fa.Unknown_compiler_option_0_Did_you_mean_1,optionTypeMismatchDiagnostic:fa.Compiler_option_0_expects_an_argument};function _w(e,n){return pw(hw,e,n)}function gw(e,n){return yw(rw,e,n)}function yw(e,n,t=!1){n=n.toLowerCase();const{optionsNameMap:r,shortOptionNames:o}=e();if(t){const e=o.get(n);void 0!==e&&(n=e)}return r.get(n)}function vw(){return mw||(mw=tw(ew))}var bw={alternateMode:{diagnostic:fa.Compiler_option_0_may_not_be_used_with_build,getOptionsNameMap:rw},getOptionsNameMap:vw,optionDeclarations:ew,unknownOptionDiagnostic:fa.Unknown_build_option_0,unknownDidYouMeanDiagnostic:fa.Unknown_build_option_0_Did_you_mean_1,optionTypeMismatchDiagnostic:fa.Build_option_0_requires_a_value_of_type_1};function Tw(e){const{options:n,watchOptions:t,fileNames:r,errors:o}=pw(bw,e),i=n;return 0===r.length&&r.push("."),i.clean&&i.force&&o.push(nS(fa.Options_0_and_1_cannot_be_combined,"clean","force")),i.clean&&i.verbose&&o.push(nS(fa.Options_0_and_1_cannot_be_combined,"clean","verbose")),i.clean&&i.watch&&o.push(nS(fa.Options_0_and_1_cannot_be_combined,"clean","watch")),i.watch&&i.dry&&o.push(nS(fa.Options_0_and_1_cannot_be_combined,"watch","dry")),{buildOptions:i,watchOptions:t,projects:r,errors:o}}function Sw(e,...n){return nn(nS(e,...n).messageText,Qe)}function Ew(e,n,t,r,o,i){const a=Iw(e,e=>t.readFile(e));if(!Qe(a))return void t.onUnRecoverableConfigFileDiagnostic(a);const s=ck(e,a),l=t.getCurrentDirectory();return s.path=Ki(e,l,Hn(t.useCaseSensitiveFileNames)),s.resolvedPath=s.path,s.originalFileName=s.fileName,sO(s,t,Vi(Mi(e),l),n,Vi(e,l),void 0,i,r,o)}function Aw(e,n){const t=Iw(e,n);return Qe(t)?xw(e,t):{config:{},error:t}}function xw(e,n){const t=ck(e,n);return{config:Uw(t,t.parseDiagnostics,void 0),error:t.parseDiagnostics.length?t.parseDiagnostics[0]:void 0}}function Rw(e,n){const t=Iw(e,n);return Qe(t)?ck(e,t):{fileName:e,parseDiagnostics:[t]}}function Iw(e,n){let t;try{t=n(e)}catch(bi){return nS(fa.Cannot_read_file_0_Colon_1,e,bi.message)}return void 0===t?nS(fa.Cannot_read_file_0,e):t}function Dw(e){return Oe(e,dw)}var Cw,Nw={optionDeclarations:nw,unknownOptionDiagnostic:fa.Unknown_type_acquisition_option_0,unknownDidYouMeanDiagnostic:fa.Unknown_type_acquisition_option_0_Did_you_mean_1};function Mw(){return Cw||(Cw=tw(wk))}var Pw,Lw,kw,ww={getOptionsNameMap:Mw,optionDeclarations:wk,unknownOptionDiagnostic:fa.Unknown_watch_option_0,unknownDidYouMeanDiagnostic:fa.Unknown_watch_option_0_Did_you_mean_1,optionTypeMismatchDiagnostic:fa.Watch_option_0_requires_a_value_of_type_1};function Ow(){return Pw||(Pw=Dw(Bk))}function Fw(){return Lw||(Lw=Dw(wk))}function Ww(){return kw||(kw=Dw(nw))}var zw,Bw={name:"extends",type:"listOrElement",element:{name:"extends",type:"string"},category:fa.File_Management,disallowNullOrUndefined:!0},Gw={name:"compilerOptions",type:"object",elementOptions:Ow(),extraKeyDiagnostics:hw},Vw={name:"watchOptions",type:"object",elementOptions:Fw(),extraKeyDiagnostics:ww},jw={name:"typeAcquisition",type:"object",elementOptions:Ww(),extraKeyDiagnostics:Nw};function Uw(e,n,t){var r;const o=null==(r=e.statements[0])?void 0:r.expression;if(o&&211!==o.kind){if(n.push(Uf(e,o,fa.The_root_value_of_a_0_file_must_be_an_object,"jsconfig.json"===Pi(e.fileName)?"jsconfig.json":"tsconfig.json")),mC(o)){const r=y(o.elements,hC);if(r)return Kw(e,r,n,!0,t)}return{}}return Kw(e,o,n,!0,t)}function Hw(e,n){var t;return Kw(e,null==(t=e.statements[0])?void 0:t.expression,n,!0,void 0)}function Kw(e,n,t,r,o){return n?i(n,null==o?void 0:o.rootOptions):r?{}:void 0;function i(n,s){switch(n.kind){case 112:return!0;case 97:return!1;case 106:return null;case 11:return a(n)||t.push(Uf(e,n,fa.String_literal_with_double_quotes_expected)),n.text;case 9:return Number(n.text);case 225:if(41!==n.operator||9!==n.operand.kind)break;return-Number(n.operand.text);case 211:return function(n,s){var l;const c=r?{}:void 0;for(const d of n.properties){if(304!==d.kind){t.push(Uf(e,d,fa.Property_assignment_expected));continue}d.questionToken&&t.push(Uf(e,d.questionToken,fa.The_0_modifier_can_only_be_used_in_TypeScript_files,"?")),a(d.name)||t.push(Uf(e,d.name,fa.String_literal_with_double_quotes_expected));const n=Wf(d.name)?void 0:Bf(d.name),u=n&&yl(n),p=u?null==(l=null==s?void 0:s.elementOptions)?void 0:l.get(u):void 0,f=i(d.initializer,p);void 0!==u&&(r&&(c[u]=f),null==o||o.onPropertySet(u,f,d,s,p))}return c}(n,s);case 210:return function(e,n){if(r)return x(e.map(e=>i(e,n)),e=>void 0!==e);e.forEach(e=>i(e,n))}(n.elements,s&&s.element)}s?t.push(Uf(e,n,fa.Compiler_option_0_requires_a_value_of_type_1,s.name,qw(s))):t.push(Uf(e,n,fa.Property_value_can_only_be_string_literal_numeric_literal_true_false_null_object_literal_or_array_literal))}function a(n){return qI(n)&&Hh(n,e)}}function qw(e){return"listOrElement"===e.type?`${qw(e.element)} or Array`:"list"===e.type?"Array":Qe(e.type)?e.type:"string"}function Jw(e,n){if(e){if(cO(n))return!e.disallowNullOrUndefined;if("list"===e.type)return Ye(n);if("listOrElement"===e.type)return Ye(n)||Jw(e.element,n);return typeof n===(Qe(e.type)?e.type:"string")}return!1}function Xw(e,n,t){var r,o,i;const a=Hn(t.useCaseSensitiveFileNames),s=D(x(e.fileNames,(null==(o=null==(r=e.options.configFile)?void 0:r.configFileSpecs)?void 0:o.validatedIncludeSpecs)?function(e,n,t,r){if(!n)return on;const o=vE(e,t,n,r.useCaseSensitiveFileNames,r.getCurrentDirectory()),i=o.excludePattern&&bE(o.excludePattern,r.useCaseSensitiveFileNames),a=o.includeFilePattern&&bE(o.includeFilePattern,r.useCaseSensitiveFileNames);if(a)return i?e=>!(a.test(e)&&!i.test(e)):e=>!a.test(e);if(i)return e=>i.test(e);return on}(n,e.options.configFile.configFileSpecs.validatedIncludeSpecs,e.options.configFile.configFileSpecs.validatedExcludeSpecs,t):on),e=>la(Vi(n,t.getCurrentDirectory()),Vi(e,t.getCurrentDirectory()),a)),l={configFilePath:Vi(n,t.getCurrentDirectory()),useCaseSensitiveFileNames:t.useCaseSensitiveFileNames},d=nO(e.options,l),u=e.watchOptions&&tO(e.watchOptions,Mw());const p={compilerOptions:{...$w(d),showConfig:void 0,configFile:void 0,configFilePath:void 0,help:void 0,init:void 0,listFiles:void 0,listEmittedFiles:void 0,project:void 0,build:void 0,version:void 0},watchOptions:u&&$w(u),references:D(e.projectReferences,e=>({...e,path:e.originalPath?e.originalPath:"",originalPath:void 0})),files:c(s)?s:void 0,...(null==(i=e.options.configFile)?void 0:i.configFileSpecs)?{include:Qw(e.options.configFile.configFileSpecs.validatedIncludeSpecs),exclude:e.options.configFile.configFileSpecs.validatedExcludeSpecs}:{},compileOnSave:!!e.compileOnSave||void 0},f=new Set(d.keys()),m={};for(const c in bS)if(!f.has(c)&&Yw(c,f)){bS[c].computeValue(e.options)!==bS[c].computeValue({})&&(m[c]=bS[c].computeValue(e.options))}return ke(p.compilerOptions,$w(nO(m,l))),p}function Yw(e,n){const t=new Set;return function e(r){var o;if(AT(t,r))return U(null==(o=bS[r])?void 0:o.dependencies,t=>n.has(t)||e(t));return!1}(e)}function $w(e){return Object.fromEntries(e)}function Qw(e){if(c(e)){if(1!==c(e))return e;if(e[0]!==uO)return e}}function Zw(e){switch(e.type){case"string":case"number":case"boolean":case"object":return;case"list":case"listOrElement":return Zw(e.element);default:return e.type}}function eO(e,n){return ap(n,(n,t)=>{if(n===e)return t})}function nO(e,n){return tO(e,rw(),n)}function tO(e,{optionsNameMap:n},t){const r=new Map,o=t&&Hn(t.useCaseSensitiveFileNames);for(const i in e)if(Ie(e,i)){if(n.has(i)&&(n.get(i).category===fa.Command_line_Options||n.get(i).category===fa.Output_Formatting))continue;const a=e[i],s=n.get(i.toLowerCase());if(s){dt.assert("listOrElement"!==s.type);const e=Zw(s);e?"list"===s.type?r.set(i,a.map(n=>eO(n,e))):r.set(i,eO(a,e)):t&&s.isFilePath?r.set(i,la(t.configFilePath,Vi(a,Mi(t.configFilePath)),o)):t&&"list"===s.type&&s.element.isFilePath?r.set(i,a.map(e=>la(t.configFilePath,Vi(e,Mi(t.configFilePath)),o))):r.set(i,a)}}return r}function rO(e,n){const t=" ",r=[],o=Object.keys(e).filter(e=>"init"!==e&&"help"!==e&&"watch"!==e);if(r.push("{"),r.push(`${t}// ${JT(fa.Visit_https_Colon_Slash_Slashaka_ms_Slashtsconfig_to_read_more_about_this_file)}`),r.push(`${t}"compilerOptions": {`),a(fa.File_Layout),s("rootDir","./src","optional"),s("outDir","./dist","optional"),i(),a(fa.Environment_Settings),a(fa.See_also_https_Colon_Slash_Slashaka_ms_Slashtsconfig_Slashmodule),s("module",199),s("target",99),s("types",[]),e.lib&&s("lib",e.lib),a(fa.For_nodejs_Colon),r.push(`${t}${t}// "lib": ["esnext"],`),r.push(`${t}${t}// "types": ["node"],`),a(fa.and_npm_install_D_types_Slashnode),i(),a(fa.Other_Outputs),s("sourceMap",!0),s("declaration",!0),s("declarationMap",!0),i(),a(fa.Stricter_Typechecking_Options),s("noUncheckedIndexedAccess",!0),s("exactOptionalPropertyTypes",!0),i(),a(fa.Style_Options),s("noImplicitReturns",!0,"optional"),s("noImplicitOverride",!0,"optional"),s("noUnusedLocals",!0,"optional"),s("noUnusedParameters",!0,"optional"),s("noFallthroughCasesInSwitch",!0,"optional"),s("noPropertyAccessFromIndexSignature",!0,"optional"),i(),a(fa.Recommended_Options),s("strict",!0),s("jsx",4),s("verbatimModuleSyntax",!0),s("isolatedModules",!0),s("noUncheckedSideEffectImports",!0),s("moduleDetection",3),s("skipLibCheck",!0),o.length>0)for(i();o.length>0;)s(o[0],e[o[0]]);function i(){r.push("")}function a(e){r.push(`${t}${t}// ${JT(e)}`)}function s(n,i,a="never"){const s=o.indexOf(n);let c;s>=0&&o.splice(s,1),c="always"===a||"never"!==a&&!Ie(e,n);const d=e[n]??i;c?r.push(`${t}${t}// "${n}": ${l(n,d)},`):r.push(`${t}${t}"${n}": ${l(n,d)},`)}function l(e,n){const t=Bk.filter(n=>n.name===e)[0];t||dt.fail(`No option named ${e}?`);const r=t.type instanceof Map?t.type:void 0;if(Ye(n)){const e="element"in t&&t.element.type instanceof Map?t.element.type:void 0;return`[${n.map(n=>c(n,e)).join(", ")}]`}return c(n,r)}function c(e,n){return n&&(e=eO(e,n)??dt.fail(`No matching value of ${e}`)),JSON.stringify(e)}return r.push(`${t}}`),r.push("}"),r.push(""),r.join(n)}function oO(e,n){const t={},r=rw().optionsNameMap;for(const o in e)Ie(e,o)&&(t[o]=iO(r.get(o.toLowerCase()),e[o],n));return t.configFilePath&&(t.configFilePath=n(t.configFilePath)),t}function iO(e,n,t){if(e&&!cO(n)){if("list"===e.type){const r=n;if(e.element.isFilePath&&r.length)return r.map(t)}else if(e.isFilePath)return t(n);dt.assert("listOrElement"!==e.type)}return n}function aO(e,n,t,r,o,i,a,s,l){return pO(e,void 0,n,t,r,l,o,i,a,s)}function sO(e,n,t,r,o,i,a,s,l){var c,d;null==(c=Kt)||c.push(Kt.Phase.Parse,"parseJsonSourceFileConfigFileContent",{path:e.fileName});const u=pO(void 0,e,n,t,r,l,o,i,a,s);return null==(d=Kt)||d.pop(),u}function lO(e,n){n&&Object.defineProperty(e,"configFile",{enumerable:!1,writable:!1,value:n})}function cO(e){return null==e}function dO(e,n){return Mi(Vi(e,n))}var uO="**/*";function pO(e,n,t,r,o={},i,a,s=[],l=[],c){dt.assert(void 0===e&&void 0!==n||void 0!==e&&void 0===n);const d=[],u=xO(e,n,t,r,a,s,d,c),{raw:p}=u,f=mO(Ve(o,u.options||{}),Jk,r),m=fO(i&&u.watchOptions?Ve(i,u.watchOptions):u.watchOptions||i,r);f.configFilePath=a&&Fi(a);const h=ji(a?dO(a,r):r),_=function(){const e=b("references",e=>"object"==typeof e,"object"),t=y(v("files"));if(t){const r="no-prop"===e||Ye(e)&&0===e.length,o=Ie(p,"extends");if(0===t.length&&r&&!o)if(n){const e=a||"tsconfig.json",t=fa.The_files_list_in_config_file_0_is_empty,r=Ym(n,"files",e=>e.initializer),o=wO(n,r,t,e);d.push(o)}else T(fa.The_files_list_in_config_file_0_is_empty,a||"tsconfig.json")}let r=y(v("include"));const o=v("exclude");let i,s,l,c,u=!1,m=y(o);if("no-prop"===o){const e=f.outDir,n=f.declarationDir;(e||n)&&(m=x([e,n],e=>!!e))}void 0===t&&void 0===r&&(r=[uO],u=!0);r&&(i=JO(r,d,!0,n,"include"),l=yO(i,h)||i);m&&(s=JO(m,d,!1,n,"exclude"),c=yO(s,h)||s);const _=x(t,Qe),g=yO(_,h)||_;return{filesSpecs:t,includeSpecs:r,excludeSpecs:m,validatedFilesSpec:g,validatedIncludeSpecs:l,validatedExcludeSpecs:c,validatedFilesSpecBeforeSubstitution:_,validatedIncludeSpecsBeforeSubstitution:i,validatedExcludeSpecsBeforeSubstitution:s,isDefaultIncludeSpec:u}}();return n&&(n.configFileSpecs=_),lO(f,n),{options:f,watchOptions:m,fileNames:function(e){const n=jO(_,e,f,t,l);TO(n,EO(p),s)&&d.push(bO(_,a));return n}(h),projectReferences:function(e){let n;const t=b("references",e=>"object"==typeof e,"object");if(Ye(t))for(const r of t)"string"!=typeof r.path?T(fa.Compiler_option_0_requires_a_value_of_type_1,"reference.path","string"):(n||(n=[])).push({path:Vi(r.path,e),originalPath:r.path,prepend:r.prepend,circular:r.circular});return n}(h),typeAcquisition:u.typeAcquisition||PO(),raw:p,errors:d,wildcardDirectories:YO(_,h,t.useCaseSensitiveFileNames),compileOnSave:!!p.compileOnSave};function y(e){return Ye(e)?e:void 0}function v(e){return b(e,Qe,"string")}function b(e,t,r){if(Ie(p,e)&&!cO(p[e])){if(Ye(p[e])){const o=p[e];return n||g(o,t)||d.push(nS(fa.Compiler_option_0_requires_a_value_of_type_1,e,r)),o}return T(fa.Compiler_option_0_requires_a_value_of_type_1,e,"Array"),"not-array"}return"no-prop"}function T(e,...t){n||d.push(nS(e,...t))}}function fO(e,n){return mO(e,Xk,n)}function mO(e,n,t){if(!e)return e;let r;for(const i of n)if(void 0!==e[i.name]){const n=e[i.name];switch(i.type){case"string":dt.assert(i.isFilePath),_O(n)&&o(i,gO(n,t));break;case"list":dt.assert(i.element.isFilePath);const e=yO(n,t);e&&o(i,e);break;case"object":dt.assert("paths"===i.name);const r=vO(n,t);r&&o(i,r);break;default:dt.fail("option type not supported")}}return r||e;function o(n,t){(r??(r=ke({},e)))[n.name]=t}}var hO="${configDir}";function _O(e){return Qe(e)&&Xn(e,hO,!0)}function gO(e,n){return Vi(e.replace(hO,"./"),n)}function yO(e,n){if(!e)return e;let t;return e.forEach((r,o)=>{_O(r)&&((t??(t=e.slice()))[o]=gO(r,n))}),t}function vO(e,n){let t;return Ce(e).forEach(r=>{if(!Ye(e[r]))return;const o=yO(e[r],n);o&&((t??(t=ke({},e)))[r]=o)}),t}function bO({includeSpecs:e,excludeSpecs:n},t){return nS(fa.No_inputs_were_found_in_config_file_0_Specified_include_paths_were_1_and_exclude_paths_were_2,t||"tsconfig.json",JSON.stringify(e||[]),JSON.stringify(n||[]))}function TO(e,n,t){return 0===e.length&&n&&(!t||0===t.length)}function SO(e){return!e.fileNames.length&&Ie(e.raw,"references")}function EO(e){return!Ie(e,"files")&&!Ie(e,"references")}function AO(e,n,t,r,o){const i=r.length;return TO(e,o)?r.push(bO(t,n)):R(r,e=>!function(e){return e.code===fa.No_inputs_were_found_in_config_file_0_Specified_include_paths_were_1_and_exclude_paths_were_2.code}(e)),i!==r.length}function xO(e,n,t,r,o,i,a,s){var l;const c=Vi(o||"",r=Fi(r));if(i.includes(c))return a.push(nS(fa.Circularity_detected_while_resolving_configuration_Colon_0,[...i,c].join(" -> "))),{raw:e||Hw(n,a)};const d=e?function(e,n,t,r,o){Ie(e,"excludes")&&o.push(nS(fa.Unknown_option_excludes_Did_you_mean_exclude));const i=MO(e.compilerOptions,t,o,r),a=LO(e.typeAcquisition,t,o,r),s=function(e,n,t){return kO(Fw(),e,n,void 0,ww,t)}(e.watchOptions,t,o);e.compileOnSave=function(e,n,t){if(!Ie(e,Ck.name))return!1;const r=OO(Ck,e.compileOnSave,n,t);return"boolean"==typeof r&&r}(e,t,o);const l=e.extends||""===e.extends?RO(e.extends,n,t,r,o):void 0;return{raw:e,options:i,watchOptions:s,typeAcquisition:a,extendedConfigPath:l}}(e,t,r,o,a):function(e,n,t,r,o){const i=NO(r);let a,s,l,c;const d=(void 0===zw&&(zw={name:void 0,type:"object",elementOptions:Dw([Gw,Vw,jw,Bw,{name:"references",type:"list",element:{name:"references",type:"object"},category:fa.Projects},{name:"files",type:"list",element:{name:"files",type:"string"},category:fa.File_Management},{name:"include",type:"list",element:{name:"include",type:"string"},category:fa.File_Management,defaultValueDescription:fa.if_files_is_specified_otherwise_Asterisk_Asterisk_Slash_Asterisk},{name:"exclude",type:"list",element:{name:"exclude",type:"string"},category:fa.File_Management,defaultValueDescription:fa.node_modules_bower_components_jspm_packages_plus_the_value_of_outDir_if_one_is_specified},Ck])}),zw),u=Uw(e,o,{rootOptions:d,onPropertySet:p});a||(a=PO(r));c&&u&&void 0===u.compilerOptions&&o.push(Uf(e,c[0],fa._0_should_be_set_inside_the_compilerOptions_object_of_the_config_json_file,Bf(c[0])));return{raw:u,options:i,watchOptions:s,typeAcquisition:a,extendedConfigPath:l};function p(u,p,f,m,h){if(h&&h!==Bw&&(p=OO(h,p,t,o,f,f.initializer,e)),null==m?void 0:m.name)if(h){let e;m===Gw?e=i:m===Vw?e=s??(s={}):m===jw?e=a??(a=PO(r)):dt.fail("Unknown option"),e[h.name]=p}else u&&(null==m?void 0:m.extraKeyDiagnostics)&&(m.elementOptions?o.push(uw(u,m.extraKeyDiagnostics,void 0,f.name,e)):o.push(Uf(e,f.name,m.extraKeyDiagnostics.unknownOptionDiagnostic,u)));else m===d&&(h===Bw?l=RO(p,n,t,r,o,f,f.initializer,e):h||("excludes"===u&&o.push(Uf(e,f.name,fa.Unknown_option_excludes_Did_you_mean_exclude)),y(zk,e=>e.name===u)&&(c=re(c,f.name))))}}(n,t,r,o,a);if((null==(l=d.options)?void 0:l.paths)&&(d.options.pathsBasePath=r),d.extendedConfigPath){i=i.concat([c]);const e={options:{}};Qe(d.extendedConfigPath)?u(e,d.extendedConfigPath):d.extendedConfigPath.forEach(n=>u(e,n)),e.include&&(d.raw.include=e.include),e.exclude&&(d.raw.exclude=e.exclude),e.files&&(d.raw.files=e.files),void 0===d.raw.compileOnSave&&e.compileOnSave&&(d.raw.compileOnSave=e.compileOnSave),n&&e.extendedSourceFiles&&(n.extendedSourceFiles=Le(e.extendedSourceFiles.keys())),d.options=ke(e.options,d.options),d.watchOptions=d.watchOptions&&e.watchOptions?p(e,d.watchOptions):d.watchOptions||e.watchOptions}return d;function u(e,o){const l=function(e,n,t,r,o,i,a){const s=t.useCaseSensitiveFileNames?n:dn(n);let l,c,d;i&&(l=i.get(s))?({extendedResult:c,extendedConfig:d}=l):(c=Rw(n,e=>t.readFile(e)),c.parseDiagnostics.length||(d=xO(void 0,c,t,Mi(n),Pi(n),r,o,i)),i&&i.set(s,{extendedResult:c,extendedConfig:d}));if(e&&((a.extendedSourceFiles??(a.extendedSourceFiles=new Set)).add(c.fileName),c.extendedSourceFiles))for(const u of c.extendedSourceFiles)a.extendedSourceFiles.add(u);if(c.parseDiagnostics.length)return void o.push(...c.parseDiagnostics);return d}(n,o,t,i,a,s,e);if(l&&l.options){const n=l.raw;let i;const a=a=>{d.raw[a]||n[a]&&(e[a]=D(n[a],e=>_O(e)||yi(e)?e:zi(i||(i=sa(Mi(o),r,Hn(t.useCaseSensitiveFileNames))),e)))};a("include"),a("exclude"),a("files"),void 0!==n.compileOnSave&&(e.compileOnSave=n.compileOnSave),ke(e.options,l.options),e.watchOptions=e.watchOptions&&l.watchOptions?p(e,l.watchOptions):e.watchOptions||l.watchOptions}}function p(e,n){return e.watchOptionsCopied?ke(e.watchOptions,n):(e.watchOptionsCopied=!0,ke({},e.watchOptions,n))}}function RO(e,n,t,r,o,i,a,s){let l;const c=r?dO(r,t):t;if(Qe(e))l=IO(e,n,c,o,a,s);else if(Ye(e)){l=[];for(let r=0;r<e.length;r++){const d=e[r];Qe(d)?l=re(l,IO(d,n,c,o,null==a?void 0:a.elements[r],s)):OO(Bw.element,e,t,o,i,null==a?void 0:a.elements[r],s)}}else OO(Bw,e,t,o,i,a,s);return l}function IO(e,n,t,r,o,i){if(yi(e=Fi(e))||Xn(e,"./")||Xn(e,"../")){let a=Vi(e,t);return n.fileExists(a)||Fn(a,".json")||(a=`${a}.json`,n.fileExists(a))?a:void r.push(wO(i,o,fa.File_0_not_found,e))}const a=ZF(e,zi(t,"tsconfig.json"),n);if(a.resolvedModule)return a.resolvedModule.resolvedFileName;""===e?r.push(wO(i,o,fa.Compiler_option_0_cannot_be_given_an_empty_string,"extends")):r.push(wO(i,o,fa.File_0_not_found,e))}function DO(e,n,t){const r=[];return{options:MO(e,n,r,t),errors:r}}function CO(e,n,t){const r=[];return{options:LO(e,n,r,t),errors:r}}function NO(e){return e&&"jsconfig.json"===Pi(e)?{allowJs:!0,maxNodeModuleJsDepth:2,allowSyntheticDefaultImports:!0,skipLibCheck:!0,noEmit:!0}:{}}function MO(e,n,t,r){const o=NO(r);return kO(Ow(),e,n,o,hw,t),r&&(o.configFilePath=Fi(r)),o}function PO(e){return{enable:!!e&&"jsconfig.json"===Pi(e),include:[],exclude:[]}}function LO(e,n,t,r){const o=PO(r);return kO(Ww(),e,n,o,Nw,t),o}function kO(e,n,t,r,o,i){if(n){for(const a in n){const s=e.get(a);s?(r||(r={}))[s.name]=OO(s,n[a],t,i):i.push(uw(a,o))}return r}}function wO(e,n,t,...r){return e&&n?Uf(e,n,t,...r):nS(t,...r)}function OO(e,n,t,r,o,i,a){if(e.isCommandLineOnly)r.push(wO(a,null==o?void 0:o.name,fa.Option_0_can_only_be_specified_on_command_line,e.name));else{if(Jw(e,n)){const s=e.type;if("list"===s&&Ye(n))return zO(e,n,t,r,o,i,a);if("listOrElement"===s)return Ye(n)?zO(e,n,t,r,o,i,a):OO(e.element,n,t,r,o,i,a);if(!Qe(e.type))return WO(e,n,r,i,a);const l=FO(e,n,r,i,a);return cO(l)?l:function(e,n,t){e.isFilePath&&""===(t=_O(t=Fi(t))?t:Vi(t,n))&&(t=".");return t}(e,t,l)}r.push(wO(a,i,fa.Compiler_option_0_requires_a_value_of_type_1,e.name,qw(e)))}}function FO(e,n,t,r,o){var i;if(cO(n))return;const a=null==(i=e.extraValidation)?void 0:i.call(e,n);if(!a)return n;t.push(wO(o,r,...a))}function WO(e,n,t,r,o){if(cO(n))return;const i=n.toLowerCase(),a=e.type.get(i);if(void 0!==a)return FO(e,a,t,r,o);t.push(sw(e,(e,...n)=>wO(o,r,e,...n)))}function zO(e,n,t,r,o,i,a){return x(D(n,(n,s)=>OO(e.element,n,t,r,o,null==i?void 0:i.elements[s],a)),n=>!!e.listPreserveFalsyValues||!!n)}var BO,GO=/(?:^|\/)\*\*\/?$/,VO=/^[^*?]*(?=\/[^/]*[*?])/;function jO(e,n,t,r,o=s){n=ji(n);const i=Hn(r.useCaseSensitiveFileNames),a=new Map,l=new Map,c=new Map,{validatedFilesSpec:d,validatedIncludeSpecs:u,validatedExcludeSpecs:p}=e,f=OE(t,o),m=FE(t,f);if(d)for(const s of d){const e=Vi(s,n);a.set(i(e),e)}let h;if(u&&u.length>0)for(const y of r.readDirectory(n,M(m),p,u,void 0)){if(xi(y,".json")){if(!h){const e=D(mE(u.filter(e=>Fn(e,".json")),n,"files"),e=>`^${e}$`);h=e?e.map(e=>bE(e,r.useCaseSensitiveFileNames)):s}if(-1!==b(h,e=>e.test(y))){const e=i(y);a.has(e)||c.has(e)||c.set(e,y)}continue}if(ZO(y,a,l,f,i))continue;eF(y,l,f,i);const e=i(y);a.has(e)||l.has(e)||l.set(e,y)}const _=Le(a.values()),g=Le(l.values());return _.concat(g,Le(c.values()))}function UO(e,n,t,r,o){const{validatedFilesSpec:i,validatedIncludeSpecs:a,validatedExcludeSpecs:s}=n;if(!c(a)||!c(s))return!1;t=ji(t);const l=Hn(r);if(i)for(const c of i)if(l(Vi(c,t))===e)return!1;return qO(e,s,r,o,t)}function HO(e){const n=Xn(e,"**/")?0:e.indexOf("/**/");if(-1===n)return!1;return(Fn(e,"/..")?e.length:e.lastIndexOf("/../"))>n}function KO(e,n,t,r){return qO(e,x(n,e=>!HO(e)),t,r)}function qO(e,n,t,r,o){const i=fE(n,zi(ji(r),o),"exclude"),a=i&&bE(i,t);return!!a&&(!!a.test(e)||!Ai(e)&&a.test(Ji(e)))}function JO(e,n,t,r,o){return e.filter(e=>{if(!Qe(e))return!1;const i=XO(e,t);return void 0!==i&&n.push(function(e,n){const t=Xm(r,o,n);return wO(r,t,e,n)}(...i)),void 0===i})}function XO(e,n){return dt.assert("string"==typeof e),n&&GO.test(e)?[fa.File_specification_cannot_end_in_a_recursive_directory_wildcard_Asterisk_Asterisk_Colon_0,e]:HO(e)?[fa.File_specification_cannot_contain_a_parent_directory_that_appears_after_a_recursive_directory_wildcard_Asterisk_Asterisk_Colon_0,e]:void 0}function YO({validatedIncludeSpecs:e,validatedExcludeSpecs:n},t,r){const o=fE(n,t,"exclude"),i=o&&new RegExp(o,r?"":"i"),a={},s=new Map;if(void 0!==e){const n=[];for(const o of e){const e=ji(zi(t,o));if(i&&i.test(e))continue;const l=QO(e,r);if(l){const{key:e,path:t,flags:r}=l,o=s.get(e),i=void 0!==o?a[o]:void 0;(void 0===i||i<r)&&(a[void 0!==o?o:t]=r,void 0===o&&s.set(e,t),1===r&&n.push(e))}}for(const e in a)if(Ie(a,e))for(const o of n){const n=$O(e,r);n!==o&&ra(o,n,t,!r)&&delete a[e]}}return a}function $O(e,n){return n?e:dn(e)}function QO(e,n){const t=VO.exec(e);if(t){const r=e.indexOf("?"),o=e.indexOf("*"),i=e.lastIndexOf(pi);return{key:$O(t[0],n),path:t[0],flags:-1!==r&&r<i||-1!==o&&o<i?1:0}}if(hE(e.substring(e.lastIndexOf(pi)+1))){const t=qi(e);return{key:$O(t,n),path:t,flags:1}}}function ZO(e,n,t,r,o){const i=d(r,n=>Ri(e,n)?n:void 0);if(!i)return!1;for(const a of i){if(xi(e,a)&&(".ts"!==a||!xi(e,".d.ts")))return!1;const r=o(YE(e,a));if(n.has(r)||t.has(r)){if(".d.ts"===a&&(xi(e,".js")||xi(e,".jsx")))continue;return!0}}return!1}function eF(e,n,t,r){const o=d(t,n=>Ri(e,n)?n:void 0);if(o)for(let i=o.length-1;i>=0;i--){const t=o[i];if(xi(e,t))return;const a=r(YE(e,t));n.delete(a)}}function nF(e){const n={};for(const t in e)if(Ie(e,t)){const r=gw(t);void 0!==r&&(n[t]=tF(e[t],r))}return n}function tF(e,n){if(void 0===e)return e;switch(n.type){case"object":case"string":return"";case"number":return"number"==typeof e?e:"";case"boolean":return"boolean"==typeof e?e:"";case"listOrElement":if(!Ye(e))return tF(e,n.element);case"list":const t=n.element;return Ye(e)?F(e,e=>tF(e,t)):"";default:return ap(n.type,(n,t)=>{if(n===e)return t})}}function rF(e,n,...t){e.trace(eS(n,...t))}function oF(e,n){return!!e.traceResolution&&void 0!==n.trace}function iF(e,n,t){let r;if(n&&e){const o=e.contents.packageJsonContent;"string"==typeof o.name&&"string"==typeof o.version&&(r={name:o.name,subModuleName:n.path.slice(e.packageDirectory.length+pi.length),version:o.version,peerDependencies:TW(e,t)})}return n&&{path:n.path,extension:n.ext,packageId:r,resolvedUsingTsExtension:n.resolvedUsingTsExtension}}function aF(e){return iF(void 0,e,void 0)}function sF(e){if(e)return dt.assert(void 0===e.packageId),{path:e.path,ext:e.extension,resolvedUsingTsExtension:e.resolvedUsingTsExtension}}function lF(e){const n=[];return 1&e&&n.push("TypeScript"),2&e&&n.push("JavaScript"),4&e&&n.push("Declaration"),8&e&&n.push("JSON"),n.join(", ")}function cF(e){if(e)return dt.assert(nA(e.extension)),{fileName:e.path,packageId:e.packageId}}function dF(e,n,t,r,o,i,a,s,l){if(!a.resultFromCache&&!a.compilerOptions.preserveSymlinks&&n&&t&&!n.originalPath&&!Ds(e)){const{resolvedFileName:e,originalPath:t}=SF(n.path,a.host,a.traceEnabled);t&&(n={...n,path:e,originalPath:t})}return uF(n,t,r,o,i,a.resultFromCache,s,l)}function uF(e,n,t,r,o,i,a,s){return i?(null==a?void 0:a.isReadonly)?{...i,failedLookupLocations:mF(i.failedLookupLocations,t),affectingLocations:mF(i.affectingLocations,r),resolutionDiagnostics:mF(i.resolutionDiagnostics,o)}:(i.failedLookupLocations=fF(i.failedLookupLocations,t),i.affectingLocations=fF(i.affectingLocations,r),i.resolutionDiagnostics=fF(i.resolutionDiagnostics,o),i):{resolvedModule:e&&{resolvedFileName:e.path,originalPath:!0===e.originalPath?void 0:e.originalPath,extension:e.extension,isExternalLibraryImport:n,packageId:e.packageId,resolvedUsingTsExtension:!!e.resolvedUsingTsExtension},failedLookupLocations:pF(t),affectingLocations:pF(r),resolutionDiagnostics:pF(o),alternateResult:s}}function pF(e){return e.length?e:void 0}function fF(e,n){return(null==n?void 0:n.length)?(null==e?void 0:e.length)?(e.push(...n),e):n:e}function mF(e,n){return(null==e?void 0:e.length)?n.length?[...e,...n]:e.slice():pF(n)}function hF(e,n,t,r){if(!Ie(e,n))return void(r.traceEnabled&&rF(r.host,fa.package_json_does_not_have_a_0_field,n));const o=e[n];if(typeof o===t&&null!==o)return o;r.traceEnabled&&rF(r.host,fa.Expected_type_of_0_field_in_package_json_to_be_1_got_2,n,t,null===o?"null":typeof o)}function _F(e,n,t,r){const o=hF(e,n,"string",r);if(void 0===o)return;if(!o)return void(r.traceEnabled&&rF(r.host,fa.package_json_had_a_falsy_0_field,n));const i=ji(zi(t,o));return r.traceEnabled&&rF(r.host,fa.package_json_has_0_field_1_that_references_2,n,o,i),i}function gF(e,n){const t=function(e,n){const t=hF(e,"typesVersions","object",n);if(void 0!==t)return n.traceEnabled&&rF(n.host,fa.package_json_has_a_typesVersions_field_with_version_specific_path_mappings),t}(e,n);if(void 0===t)return;if(n.traceEnabled)for(const o in t)Ie(t,o)&&!Tt.tryParse(o)&&rF(n.host,fa.package_json_has_a_typesVersions_entry_0_that_is_not_a_valid_semver_range,o);const r=yF(t);if(!r)return void(n.traceEnabled&&rF(n.host,fa.package_json_does_not_have_a_typesVersions_entry_that_matches_version_0,o));const{version:i,paths:a}=r;if("object"==typeof a)return r;n.traceEnabled&&rF(n.host,fa.Expected_type_of_0_field_in_package_json_to_be_1_got_2,`typesVersions['${i}']`,"object",typeof a)}function yF(e){BO||(BO=new vt(i));for(const n in e){if(!Ie(e,n))continue;const t=Tt.tryParse(n);if(void 0!==t&&t.test(BO))return{version:n,paths:e[n]}}}function vF(e,n){if(e.typeRoots)return e.typeRoots;let t;return e.configFilePath?t=Mi(e.configFilePath):n.getCurrentDirectory&&(t=n.getCurrentDirectory()),void 0!==t?function(e){let n;return da(ji(e),e=>{const t=zi(e,bF);(n??(n=[])).push(t)}),n}(t):void 0}var bF=zi("node_modules","@types");function TF(e,n,t){return 0===ta(e,n,!("function"==typeof t.useCaseSensitiveFileNames?t.useCaseSensitiveFileNames():t.useCaseSensitiveFileNames))}function SF(e,n,t){const r=tW(e,n,t),o=TF(e,r,n);return{resolvedFileName:o?e:r,originalPath:o?void 0:e}}function EF(e,n,t){return zi(e,Fn(e,"/node_modules/@types")||Fn(e,"/node_modules/@types/")?zW(n,t):n)}function AF(e,n,t,r,o,i,a){dt.assert("string"==typeof e,"Non-string value passed to `ts.resolveTypeReferenceDirective`, likely by a wrapping package working with an outdated `resolveTypeReferenceDirectives` signature. This is probably not a problem in TS itself.");const s=oF(t,r);o&&(t=o.commandLine.options);const l=n?Mi(n):void 0;let c=l?null==i?void 0:i.getFromDirectoryCache(e,a,l,o):void 0;if(c||!l||Ds(e)||(c=null==i?void 0:i.getFromNonRelativeNameCache(e,a,l,o)),c)return s&&(rF(r,fa.Resolving_type_reference_directive_0_containing_file_1,e,n),o&&rF(r,fa.Using_compiler_options_of_project_reference_redirect_0,o.sourceFile.fileName),rF(r,fa.Resolution_for_type_reference_directive_0_was_found_in_cache_from_location_1,e,l),S(c)),c;const d=vF(t,r);s&&(void 0===n?void 0===d?rF(r,fa.Resolving_type_reference_directive_0_containing_file_not_set_root_directory_not_set,e):rF(r,fa.Resolving_type_reference_directive_0_containing_file_not_set_root_directory_1,e,d):void 0===d?rF(r,fa.Resolving_type_reference_directive_0_containing_file_1_root_directory_not_set,e,n):rF(r,fa.Resolving_type_reference_directive_0_containing_file_1_root_directory_2,e,n,d),o&&rF(r,fa.Using_compiler_options_of_project_reference_redirect_0,o.sourceFile.fileName));const u=[],f=[];let m=xF(t);void 0!==a&&(m|=30);const h=AS(t);99===a&&3<=h&&h<=99&&(m|=32);const _=8&m?RF(t,a):[],g=[],y={compilerOptions:t,host:r,traceEnabled:s,failedLookupLocations:u,affectingLocations:f,packageJsonInfoCache:i,features:m,conditions:_,requestContainingDirectory:l,reportDiagnostic:e=>{g.push(e)},isConfigLookup:!1,candidateIsFromPackageJsonField:!1,resolvedPackageDirectory:!1};let v,b=function(){if(d&&d.length)return s&&rF(r,fa.Resolving_with_primary_search_path_0,d.join(", ")),p(d,n=>{const o=EF(n,e,y),i=Pb(n,r);if(!i&&s&&rF(r,fa.Directory_0_does_not_exist_skipping_all_lookups_in_it,n),t.typeRoots){const e=cW(4,o,!i,y);if(e){const n=aW(e.path);return cF(iF(n?SW(n,!1,y):void 0,e,y))}}return cF(hW(4,o,!i,y))});s&&rF(r,fa.Root_directory_cannot_be_determined_skipping_primary_search_paths)}(),T=!0;if(b||(b=function(){const o=n&&Mi(n);if(void 0!==o){let i;if(t.typeRoots&&Fn(n,LU))s&&rF(r,fa.Resolving_type_reference_directive_for_program_that_specifies_custom_typeRoots_skipping_lookup_in_node_modules_folder);else if(s&&rF(r,fa.Looking_up_in_node_modules_folder_initial_location_0,o),Ds(e)){const{path:n}=nW(o,e);i=rW(4,n,!1,y,!0)}else{const n=PW(4,e,o,y,void 0,void 0);i=n&&n.value}return cF(i)}s&&rF(r,fa.Containing_file_is_not_specified_and_root_directory_cannot_be_determined_skipping_lookup_in_node_modules_folder)}(),T=!1),b){const{fileName:e,packageId:n}=b;let o,i=e;t.preserveSymlinks||({resolvedFileName:i,originalPath:o}=SF(e,r,s)),v={primary:T,resolvedFileName:i,originalPath:o,packageId:n,isExternalLibraryImport:iW(e)}}return c={resolvedTypeReferenceDirective:v,failedLookupLocations:pF(u),affectingLocations:pF(f),resolutionDiagnostics:pF(g)},l&&i&&!i.isReadonly&&(i.getOrCreateCacheForDirectory(l,o).set(e,a,c),Ds(e)||i.getOrCreateCacheForNonRelativeName(e,a,o).set(l,c)),s&&S(c),c;function S(n){var t;(null==(t=n.resolvedTypeReferenceDirective)?void 0:t.resolvedFileName)?n.resolvedTypeReferenceDirective.packageId?rF(r,fa.Type_reference_directive_0_was_successfully_resolved_to_1_with_Package_ID_2_primary_Colon_3,e,n.resolvedTypeReferenceDirective.resolvedFileName,yp(n.resolvedTypeReferenceDirective.packageId),n.resolvedTypeReferenceDirective.primary):rF(r,fa.Type_reference_directive_0_was_successfully_resolved_to_1_primary_Colon_2,e,n.resolvedTypeReferenceDirective.resolvedFileName,n.resolvedTypeReferenceDirective.primary):rF(r,fa.Type_reference_directive_0_was_not_resolved,e)}}function xF(e){let n=0;switch(AS(e)){case 3:case 99:case 100:n=30}return e.resolvePackageJsonExports?n|=8:!1===e.resolvePackageJsonExports&&(n&=-9),e.resolvePackageJsonImports?n|=2:!1===e.resolvePackageJsonImports&&(n&=-3),n}function RF(e,n){const t=AS(e);if(void 0===n)if(100===t)n=99;else if(2===t)return[];const r=99===n?["import"]:["require"];return e.noDtsResolution||r.push("types"),100!==t&&r.push("node"),K(r,e.customConditions)}function IF(e,n,t,r,o){const i=yW(null==o?void 0:o.getPackageJsonInfoCache(),r,t);return kW(r,n,n=>{if("node_modules"!==Pi(n)){const t=zi(n,"node_modules");return SW(zi(t,e),!1,i)}})}function DF(e,n){if(e.types)return e.types;const t=[];if(n.directoryExists&&n.getDirectories){const r=vF(e,n);if(r)for(const e of r)if(n.directoryExists(e))for(const r of n.getDirectories(e)){const o=ji(r),i=zi(e,o,"package.json");if(!(n.fileExists(i)&&null===Nb(i,n).typings)){const e=Pi(o);46!==e.charCodeAt(0)&&t.push(e)}}}return t}function CF(e){return!!(null==e?void 0:e.contents)}function NF(e){return!!e&&!e.contents}function MF(e){var n;if(null===e||"object"!=typeof e)return""+e;if(Ye(e))return`[${null==(n=e.map(e=>MF(e)))?void 0:n.join(",")}]`;let t="{";for(const r in e)Ie(e,r)&&(t+=`${r}: ${MF(e[r])}`);return t+"}"}function PF(e,n){return n.map(n=>MF(YS(e,n))).join("|")+`|${e.pathsBasePath}`}function LF(e,n){const t=new Map,r=new Map;let o=new Map;return e&&t.set(e,o),{getMapOfCacheRedirects:function(e){return e?i(e.commandLine.options,!1):o},getOrCreateMapOfCacheRedirects:function(e){return e?i(e.commandLine.options,!0):o},update:function(n){e!==n&&(e?o=i(n,!0):t.set(n,o),e=n)},clear:function(){const i=e&&n.get(e);o.clear(),t.clear(),n.clear(),r.clear(),e&&(i&&n.set(e,i),t.set(e,o))},getOwnMap:()=>o};function i(n,i){let s=t.get(n);if(s)return s;const l=a(n);if(s=r.get(l),!s){if(e){const n=a(e);n===l?s=o:r.has(n)||r.set(n,o)}i&&(s??(s=new Map)),s&&r.set(l,s)}return s&&t.set(n,s),s}function a(e){let t=n.get(e);return t||n.set(e,t=PF(e,Uk)),t}}function kF(e,n,t,r){const o=e.getOrCreateMapOfCacheRedirects(n);let i=o.get(t);return i||(i=r(),o.set(t,i)),i}function wF(e,n){return void 0===n?e:`${n}|${e}`}function OF(){const e=new Map,n=new Map,t={get:(n,t)=>e.get(r(n,t)),set:(n,o,i)=>(e.set(r(n,o),i),t),delete:(n,o)=>(e.delete(r(n,o)),t),has:(n,t)=>e.has(r(n,t)),forEach:t=>e.forEach((e,r)=>{const[o,i]=n.get(r);return t(e,o,i)}),size:()=>e.size};return t;function r(e,t){const r=wF(e,t);return n.set(r,[e,t]),r}}function FF(e){return e.resolvedModule&&(e.resolvedModule.originalPath||e.resolvedModule.resolvedFileName)}function WF(e){return e.resolvedTypeReferenceDirective&&(e.resolvedTypeReferenceDirective.originalPath||e.resolvedTypeReferenceDirective.resolvedFileName)}function zF(e,n,t,r,o){const i=LF(t,o);return{getFromNonRelativeNameCache:function(e,n,t,r){var o,a;return dt.assert(!Ds(e)),null==(a=null==(o=i.getMapOfCacheRedirects(r))?void 0:o.get(wF(e,n)))?void 0:a.get(t)},getOrCreateCacheForNonRelativeName:function(e,n,t){return dt.assert(!Ds(e)),kF(i,t,wF(e,n),a)},clear:function(){i.clear()},update:function(e){i.update(e)}};function a(){const t=new Map;return{get:function(r){return t.get(Ki(r,e,n))},set:function(o,i){const a=Ki(o,e,n);if(t.has(a))return;t.set(a,i);const s=r(i),l=s&&function(t,r){const o=Ki(Mi(r),e,n);let i=0;const a=Math.min(t.length,o.length);for(;i<a&&t.charCodeAt(i)===o.charCodeAt(i);)i++;if(i===t.length&&(o.length===i||o[i]===pi))return t;const s=Ni(t);if(i<s)return;const l=t.lastIndexOf(pi,i-1);if(-1===l)return;return t.substr(0,Math.max(l,s))}(a,s);let c=a;for(;c!==l;){const e=Mi(c);if(e===c||t.has(e))break;t.set(e,i),c=e}}}}}function BF(e,n,t,r,o,i){i??(i=new Map);const a=function(e,n,t,r){const o=LF(t,r);return{getFromDirectoryCache:function(t,r,i,a){var s,l;const c=Ki(i,e,n);return null==(l=null==(s=o.getMapOfCacheRedirects(a))?void 0:s.get(c))?void 0:l.get(t,r)},getOrCreateCacheForDirectory:function(t,r){const i=Ki(t,e,n);return kF(o,r,i,()=>OF())},clear:function(){o.clear()},update:function(e){o.update(e)},directoryToModuleNameMap:o}}(e,n,t,i),s=zF(e,n,t,o,i);return r??(r=function(e,n){let t;return{getPackageJsonInfo:function(r){return null==t?void 0:t.get(Ki(r,e,n))},setPackageJsonInfo:function(r,o){(t||(t=new Map)).set(Ki(r,e,n),o)},clear:function(){t=void 0},getInternalMap:function(){return t}}}(e,n)),{...r,...a,...s,clear:function(){l(),r.clear()},update:function(e){a.update(e),s.update(e)},getPackageJsonInfoCache:()=>r,clearAllExceptPackageJsonInfoCache:l,optionsToRedirectsKey:i};function l(){a.clear(),s.clear()}}function GF(e,n,t,r,o){const i=BF(e,n,t,r,FF,o);return i.getOrCreateCacheForModuleName=(e,n,t)=>i.getOrCreateCacheForNonRelativeName(e,n,t),i}function VF(e,n,t,r,o){return BF(e,n,t,r,WF,o)}function jF(e){return{moduleResolution:2,traceResolution:e.traceResolution}}function UF(e,n,t,r,o){return KF(e,n,jF(t),r,o)}function HF(e,n,t,r){const o=Mi(n);return t.getFromDirectoryCache(e,r,o,void 0)}function KF(e,n,t,r,o,i,a){const s=oF(t,r);i&&(t=i.commandLine.options),s&&(rF(r,fa.Resolving_module_0_from_1,e,n),i&&rF(r,fa.Using_compiler_options_of_project_reference_redirect_0,i.sourceFile.fileName));const l=Mi(n);let c=null==o?void 0:o.getFromDirectoryCache(e,a,l,i);if(c)s&&rF(r,fa.Resolution_for_module_0_was_found_in_cache_from_location_1,e,l);else{let d=t.moduleResolution;switch(void 0===d?(d=AS(t),s&&rF(r,fa.Module_resolution_kind_is_not_specified_using_0,lo[d])):s&&rF(r,fa.Explicitly_specified_module_resolution_kind_Colon_0,lo[d]),d){case 3:case 99:c=function(e,n,t,r,o,i,a){return YF(30,e,n,t,r,o,i,a)}(e,n,t,r,o,i,a);break;case 2:c=QF(e,n,t,r,o,i,a?RF(t,a):void 0);break;case 1:c=HW(e,n,t,r,o,i);break;case 100:c=$F(e,n,t,r,o,i,a?RF(t,a):void 0);break;default:return dt.fail(`Unexpected moduleResolution: ${d}`)}o&&!o.isReadonly&&(o.getOrCreateCacheForDirectory(l,i).set(e,a,c),Ds(e)||o.getOrCreateCacheForNonRelativeName(e,a,i).set(l,c))}return s&&(c.resolvedModule?c.resolvedModule.packageId?rF(r,fa.Module_name_0_was_successfully_resolved_to_1_with_Package_ID_2,e,c.resolvedModule.resolvedFileName,yp(c.resolvedModule.packageId)):rF(r,fa.Module_name_0_was_successfully_resolved_to_1,e,c.resolvedModule.resolvedFileName):rF(r,fa.Module_name_0_was_not_resolved,e)),c}function qF(e,n,t,r,o){const i=function(e,n,t,r){const{baseUrl:o,paths:i}=r.compilerOptions;if(i&&!Si(n)){r.traceEnabled&&(o&&rF(r.host,fa.baseUrl_option_is_set_to_0_using_this_value_to_resolve_non_relative_module_name_1,o,n),rF(r.host,fa.paths_option_is_specified_looking_for_a_pattern_to_match_module_name_0,n));return FW(e,n,$y(r.compilerOptions,r.host),i,ZE(i),t,!1,r)}}(e,n,r,o);return i?i.value:Ds(n)?function(e,n,t,r,o){if(!o.compilerOptions.rootDirs)return;o.traceEnabled&&rF(o.host,fa.rootDirs_option_is_set_using_it_to_resolve_relative_module_name_0,n);const i=ji(zi(t,n));let a,s;for(const l of o.compilerOptions.rootDirs){let e=ji(l);Fn(e,pi)||(e+=pi);const n=Xn(i,e)&&(void 0===s||s.length<e.length);o.traceEnabled&&rF(o.host,fa.Checking_if_0_is_the_longest_matching_prefix_for_1_2,e,i,n),n&&(s=e,a=l)}if(s){o.traceEnabled&&rF(o.host,fa.Longest_matching_prefix_for_0_is_1,i,s);const n=i.substr(s.length);o.traceEnabled&&rF(o.host,fa.Loading_0_from_the_root_dir_1_candidate_location_2,n,s,i);const l=r(e,i,!Pb(t,o.host),o);if(l)return l;o.traceEnabled&&rF(o.host,fa.Trying_other_entries_in_rootDirs);for(const t of o.compilerOptions.rootDirs){if(t===a)continue;const i=zi(ji(t),n);o.traceEnabled&&rF(o.host,fa.Loading_0_from_the_root_dir_1_candidate_location_2,n,t,i);const s=r(e,i,!Pb(Mi(i),o.host),o);if(s)return s}o.traceEnabled&&rF(o.host,fa.Module_resolution_using_rootDirs_has_failed)}return}(e,n,t,r,o):function(e,n,t,r){const{baseUrl:o}=r.compilerOptions;if(!o)return;r.traceEnabled&&rF(r.host,fa.baseUrl_option_is_set_to_0_using_this_value_to_resolve_non_relative_module_name_1,o,n);const i=ji(zi(o,n));r.traceEnabled&&rF(r.host,fa.Resolving_module_name_0_relative_to_base_url_1_2,n,o,i);return t(e,i,!Pb(Mi(i),r.host),r)}(e,n,r,o)}function JF(e,n,t){const{resolvedModule:r,failedLookupLocations:o}=function(e,n,t){return eW(0,e,n,{moduleResolution:2,allowJs:!0},t,void 0,2,!1,void 0,void 0)}(e,n,t);if(!r)throw new Error(`Could not resolve JS module '${e}' starting at '${n}'. Looked in: ${null==o?void 0:o.join(", ")}`);return r.resolvedFileName}var XF=(e=>(e[e.None=0]="None",e[e.Imports=2]="Imports",e[e.SelfName=4]="SelfName",e[e.Exports=8]="Exports",e[e.ExportsPatternTrailers=16]="ExportsPatternTrailers",e[e.AllFeatures=30]="AllFeatures",e[e.Node16Default=30]="Node16Default",e[e.NodeNextDefault=30]="NodeNextDefault",e[e.BundlerDefault=30]="BundlerDefault",e[e.EsmMode=32]="EsmMode",e))(XF||{});function YF(e,n,t,r,o,i,a,s,l){const c=Mi(t),d=99===s?32:0;let u=r.noDtsResolution?3:7;return MS(r)&&(u|=8),eW(e|d,n,c,r,o,i,u,!1,a,l)}function $F(e,n,t,r,o,i,a){const s=Mi(n);let l=t.noDtsResolution?3:7;return MS(t)&&(l|=8),eW(xF(t),e,s,t,r,o,l,!1,i,a)}function QF(e,n,t,r,o,i,a,s){let l;return s?l=8:t.noDtsResolution?(l=3,MS(t)&&(l|=8)):l=MS(t)?15:7,eW(a?30:0,e,Mi(n),t,r,o,l,!!s,i,a)}function ZF(e,n,t){return eW(30,e,Mi(n),{moduleResolution:99},t,void 0,8,!0,void 0,void 0)}function eW(e,n,t,r,o,i,a,l,d,u){var p,f,m,h,_;const y=oF(r,o),v=[],b=[],T=AS(r);u??(u=RF(r,100===T||2===T?void 0:32&e?99:1));const E=[],A={compilerOptions:r,host:o,traceEnabled:y,failedLookupLocations:v,affectingLocations:b,packageJsonInfoCache:i,features:e,conditions:u??s,requestContainingDirectory:t,reportDiagnostic:e=>{E.push(e)},isConfigLookup:l,candidateIsFromPackageJsonField:!1,resolvedPackageDirectory:!1};let x,R;if(y&&VS(T)&&rF(o,fa.Resolving_in_0_mode_with_conditions_1,32&e?"ESM":"CJS",A.conditions.map(e=>`'${e}'`).join(", ")),2===T){const e=5&a,n=-6&a;x=e&&I(e,A)||n&&I(n,A)||void 0}else x=I(a,A);if(A.resolvedPackageDirectory&&!l&&!Ds(n)){const n=(null==x?void 0:x.value)&&5&a&&!AW(5,x.value.resolved.extension);if((null==(p=null==x?void 0:x.value)?void 0:p.isExternalLibraryImport)&&n&&8&e&&(null==u?void 0:u.includes("import"))){YW(A,fa.Resolution_of_non_relative_name_failed_trying_with_modern_Node_resolution_features_disabled_to_see_if_npm_library_needs_configuration_update);const e=I(5&a,{...A,features:-9&A.features,reportDiagnostic:tn});(null==(f=null==e?void 0:e.value)?void 0:f.isExternalLibraryImport)&&(R=e.value.resolved.path)}else if((!(null==x?void 0:x.value)||n)&&2===T){YW(A,fa.Resolution_of_non_relative_name_failed_trying_with_moduleResolution_bundler_to_see_if_project_may_need_configuration_update);const e={...A.compilerOptions,moduleResolution:100},n=I(5&a,{...A,compilerOptions:e,features:30,conditions:RF(e),reportDiagnostic:tn});(null==(m=null==n?void 0:n.value)?void 0:m.isExternalLibraryImport)&&(R=n.value.resolved.path)}}return dF(n,null==(h=null==x?void 0:x.value)?void 0:h.resolved,null==(_=null==x?void 0:x.value)?void 0:_.isExternalLibraryImport,v,b,E,A,i,R);function I(r,a){const s=qF(r,n,t,(e,n,t,r)=>rW(e,n,t,r,!0),a);if(s)return XW({resolved:s,isExternalLibraryImport:iW(s.path)});if(Ds(n)){const{path:e,parts:o}=nW(t,n),i=rW(r,e,!1,a,!0);return i&&XW({resolved:i,isExternalLibraryImport:S(o,"node_modules")})}{if(2&e&&Xn(n,"#")){const e=function(e,n,t,r,o,i){var a,s;if("#"===n||Xn(n,"#/"))return r.traceEnabled&&rF(r.host,fa.Invalid_import_specifier_0_has_no_possible_resolutions,n),XW(void 0);const l=Vi(t,null==(s=(a=r.host).getCurrentDirectory)?void 0:s.call(a)),c=vW(l,r);if(!c)return r.traceEnabled&&rF(r.host,fa.Directory_0_has_no_containing_package_json_scope_Imports_will_not_resolve,l),XW(void 0);if(!c.contents.packageJsonContent.imports)return r.traceEnabled&&rF(r.host,fa.package_json_scope_0_has_no_imports_defined,c.packageDirectory),XW(void 0);const d=CW(e,r,o,i,n,c.contents.packageJsonContent.imports,c,!0);if(d)return d;r.traceEnabled&&rF(r.host,fa.Import_specifier_0_does_not_exist_in_package_json_scope_at_path_1,n,c.packageDirectory);return XW(void 0)}(r,n,t,a,i,d);if(e)return e.value&&{value:{resolved:e.value,isExternalLibraryImport:!1}}}if(4&e){const e=function(e,n,t,r,o,i){var a,s;const l=Vi(t,null==(s=(a=r.host).getCurrentDirectory)?void 0:s.call(a)),d=vW(l,r);if(!d||!d.contents.packageJsonContent.exports)return;if("string"!=typeof d.contents.packageJsonContent.name)return;const u=wi(n),p=wi(d.contents.packageJsonContent.name);if(!g(p,(e,n)=>u[n]===e))return;const f=u.slice(p.length),m=c(f)?`.${pi}${f.join(pi)}`:".";if(OS(r.compilerOptions)&&!iW(t))return IW(d,e,m,r,o,i);const h=5&e,_=-6&e;return IW(d,h,m,r,o,i)||IW(d,_,m,r,o,i)}(r,n,t,a,i,d);if(e)return e.value&&{value:{resolved:e.value,isExternalLibraryImport:!1}}}if(n.includes(":"))return void(y&&rF(o,fa.Skipping_module_0_that_looks_like_an_absolute_URI_target_file_types_Colon_1,n,lF(r)));y&&rF(o,fa.Loading_module_0_from_node_modules_folder_target_file_types_Colon_1,n,lF(r));let s=PW(r,n,t,a,i,d);return 4&r&&(s??(s=KW(n,a))),s&&{value:s.value&&{resolved:s.value,isExternalLibraryImport:!0}}}}}function nW(e,n){const t=zi(e,n),r=wi(t),o=ge(r);return{path:"."===o||".."===o?Ji(ji(t)):ji(t),parts:r}}function tW(e,n,t){if(!n.realpath)return e;const r=ji(n.realpath(e));return t&&rF(n,fa.Resolving_real_path_for_0_result_1,e,r),r}function rW(e,n,t,r,o){if(r.traceEnabled&&rF(r.host,fa.Loading_module_as_file_Slash_folder_candidate_module_location_0_target_file_types_Colon_1,n,lF(e)),!Ii(n)){if(!t){const e=Mi(n);Pb(e,r.host)||(r.traceEnabled&&rF(r.host,fa.Directory_0_does_not_exist_skipping_all_lookups_in_it,e),t=!0)}const i=cW(e,n,t,r);if(i){const e=o?aW(i.path):void 0;return iF(e?SW(e,!1,r):void 0,i,r)}}if(!t){Pb(n,r.host)||(r.traceEnabled&&rF(r.host,fa.Directory_0_does_not_exist_skipping_all_lookups_in_it,n),t=!0)}if(!(32&r.features))return hW(e,n,t,r,o)}var oW="/node_modules/";function iW(e){return e.includes(oW)}function aW(e,n){const t=ji(e),r=t.lastIndexOf(oW);if(-1===r)return;const o=r+oW.length;let i=sW(t,o,n);return 64===t.charCodeAt(o)&&(i=sW(t,i,n)),t.slice(0,i)}function sW(e,n,t){const r=e.indexOf(pi,n+1);return-1===r?t?e.length:n:r}function lW(e,n,t,r){return aF(cW(e,n,t,r))}function cW(e,n,t,r){const o=dW(e,n,t,r);if(o)return o;if(!(32&r.features)){const o=pW(n,e,"",t,r);if(o)return o}}function dW(e,n,t,r){if(!Pi(n).includes("."))return;let o=qE(n);o===n&&(o=n.substring(0,n.lastIndexOf(".")));const i=n.substring(o.length);return r.traceEnabled&&rF(r.host,fa.File_name_0_has_a_1_extension_stripping_it,n,i),pW(o,e,i,t,r)}function uW(e,n,t,r,o){if(1&e&&Ri(n,kE)||4&e&&Ri(n,LE)){const e=fW(n,r,o),i=Ab(n);return void 0!==e?{path:n,ext:i,resolvedUsingTsExtension:t?!Fn(t,i):void 0}:void 0}if(o.isConfigLookup&&8===e&&xi(n,".json")){return void 0!==fW(n,r,o)?{path:n,ext:".json",resolvedUsingTsExtension:void 0}:void 0}return dW(e,n,r,o)}function pW(e,n,t,r,o){if(!r){const n=Mi(e);n&&(r=!Pb(n,o.host))}switch(t){case".mjs":case".mts":case".d.mts":return 1&n&&i(".mts",".mts"===t||".d.mts"===t)||4&n&&i(".d.mts",".mts"===t||".d.mts"===t)||2&n&&i(".mjs")||void 0;case".cjs":case".cts":case".d.cts":return 1&n&&i(".cts",".cts"===t||".d.cts"===t)||4&n&&i(".d.cts",".cts"===t||".d.cts"===t)||2&n&&i(".cjs")||void 0;case".json":return 4&n&&i(".d.json.ts")||8&n&&i(".json")||void 0;case".tsx":case".jsx":return 1&n&&(i(".tsx",".tsx"===t)||i(".ts",".tsx"===t))||4&n&&i(".d.ts",".tsx"===t)||2&n&&(i(".jsx")||i(".js"))||void 0;case".ts":case".d.ts":case".js":case"":return 1&n&&(i(".ts",".ts"===t||".d.ts"===t)||i(".tsx",".ts"===t||".d.ts"===t))||4&n&&i(".d.ts",".ts"===t||".d.ts"===t)||2&n&&(i(".js")||i(".jsx"))||o.isConfigLookup&&i(".json")||void 0;default:return 4&n&&!yk(e+t)&&i(`.d${t}.ts`)||void 0}function i(n,t){const i=fW(e+n,r,o);return void 0===i?void 0:{path:i,ext:n,resolvedUsingTsExtension:!o.candidateIsFromPackageJsonField&&t}}}function fW(e,n,t){var r;if(!(null==(r=t.compilerOptions.moduleSuffixes)?void 0:r.length))return mW(e,n,t);const o=iA(e)??"",i=o?XE(e,o):e;return d(t.compilerOptions.moduleSuffixes,e=>mW(i+e+o,n,t))}function mW(e,n,t){var r;if(!n){if(t.host.fileExists(e))return t.traceEnabled&&rF(t.host,fa.File_0_exists_use_it_as_a_name_resolution_result,e),e;t.traceEnabled&&rF(t.host,fa.File_0_does_not_exist,e)}null==(r=t.failedLookupLocations)||r.push(e)}function hW(e,n,t,r,o=!0){const i=o?SW(n,t,r):void 0;return iF(i,EW(e,n,t,r,i),r)}function _W(e,n,t,r,o){if(!o&&void 0!==e.contents.resolvedEntrypoints)return e.contents.resolvedEntrypoints;let i;const a=5|(o?2:0),s=xF(n),l=yW(null==r?void 0:r.getPackageJsonInfoCache(),t,n);l.conditions=RF(n),l.requestContainingDirectory=e.packageDirectory;const c=EW(a,e.packageDirectory,!1,l,e);if(i=re(i,null==c?void 0:c.path),8&s&&e.contents.packageJsonContent.exports){const r=Y([RF(n,99),RF(n,1)],ee);for(const n of r){const r={...l,failedLookupLocations:[],conditions:n,host:t},o=gW(e,e.contents.packageJsonContent.exports,r,a);if(o)for(const e of o)i=le(i,e.path)}}return e.contents.resolvedEntrypoints=i||!1}function gW(e,n,t,r){let o;if(Ye(n))for(const a of n)i(a);else if("object"==typeof n&&null!==n&&RW(n))for(const a in n)i(n[a]);else i(n);return o;function i(n){var a,s;if("string"==typeof n&&Xn(n,"./"))if(n.includes("*")&&t.host.readDirectory){if(n.indexOf("*")!==n.lastIndexOf("*"))return!1;t.host.readDirectory(e.packageDirectory,function(e){const n=[];return 1&e&&n.push(...kE),2&e&&n.push(...NE),4&e&&n.push(...LE),8&e&&n.push(".json"),n}(r),void 0,[$i(_x(n,"**/*"),".*")]).forEach(e=>{o=le(o,{path:e,ext:ki(e),resolvedUsingTsExtension:void 0})})}else{const i=wi(n).slice(2);if(i.includes("..")||i.includes(".")||i.includes("node_modules"))return!1;const l=Vi(zi(e.packageDirectory,n),null==(s=(a=t.host).getCurrentDirectory)?void 0:s.call(a)),c=uW(r,l,n,!1,t);if(c)return o=le(o,c,(e,n)=>e.path===n.path),!0}else if(Array.isArray(n))for(const e of n){if(i(e))return!0}else if("object"==typeof n&&null!==n)return d(Ce(n),e=>{if("default"===e||S(t.conditions,e)||MW(t.conditions,e))return i(n[e]),!0})}}function yW(e,n,t){return{host:n,compilerOptions:t,traceEnabled:oF(t,n),failedLookupLocations:void 0,affectingLocations:void 0,packageJsonInfoCache:e,features:0,conditions:s,requestContainingDirectory:void 0,reportDiagnostic:tn,isConfigLookup:!1,candidateIsFromPackageJsonField:!1,resolvedPackageDirectory:!1}}function vW(e,n){return kW(n.host,e,e=>SW(e,!1,n))}function bW(e,n){return void 0===e.contents.versionPaths&&(e.contents.versionPaths=gF(e.contents.packageJsonContent,n)||!1),e.contents.versionPaths||void 0}function TW(e,n){return void 0===e.contents.peerDependencies&&(e.contents.peerDependencies=function(e,n){const t=hF(e.contents.packageJsonContent,"peerDependencies","object",n);if(void 0===t)return;n.traceEnabled&&rF(n.host,fa.package_json_has_a_peerDependencies_field);const r=tW(e.packageDirectory,n.host,n.traceEnabled),o=r.substring(0,r.lastIndexOf("node_modules")+12)+pi;let i="";for(const a in t)if(Ie(t,a)){const e=SW(o+a,!1,n);if(e){const t=e.contents.packageJsonContent.version;i+=`+${a}@${t}`,n.traceEnabled&&rF(n.host,fa.Found_peerDependency_0_with_1_version,a,t)}else n.traceEnabled&&rF(n.host,fa.Failed_to_find_peerDependency_0,a)}return i}(e,n)||!1),e.contents.peerDependencies||void 0}function SW(e,n,t){var r,o,i,a,s,l;const{host:c,traceEnabled:d}=t,u=zi(e,"package.json");if(n)return void(null==(r=t.failedLookupLocations)||r.push(u));const p=null==(o=t.packageJsonInfoCache)?void 0:o.getPackageJsonInfo(u);if(void 0!==p)return CF(p)?(d&&rF(c,fa.File_0_exists_according_to_earlier_cached_lookups,u),null==(i=t.affectingLocations)||i.push(u),p.packageDirectory===e?p:{packageDirectory:e,contents:p.contents}):(p.directoryExists&&d&&rF(c,fa.File_0_does_not_exist_according_to_earlier_cached_lookups,u),void(null==(a=t.failedLookupLocations)||a.push(u)));const f=Pb(e,c);if(f&&c.fileExists(u)){const n=Nb(u,c);d&&rF(c,fa.Found_package_json_at_0,u);const r={packageDirectory:e,contents:{packageJsonContent:n,versionPaths:void 0,resolvedEntrypoints:void 0,peerDependencies:void 0}};return t.packageJsonInfoCache&&!t.packageJsonInfoCache.isReadonly&&t.packageJsonInfoCache.setPackageJsonInfo(u,r),null==(s=t.affectingLocations)||s.push(u),r}f&&d&&rF(c,fa.File_0_does_not_exist,u),t.packageJsonInfoCache&&!t.packageJsonInfoCache.isReadonly&&t.packageJsonInfoCache.setPackageJsonInfo(u,{packageDirectory:e,directoryExists:f}),null==(l=t.failedLookupLocations)||l.push(u)}function EW(e,n,t,r,o){const a=o&&bW(o,r);let s;o&&TF(null==o?void 0:o.packageDirectory,n,r.host)&&(s=r.isConfigLookup?function(e,n,t){return _F(e,"tsconfig",n,t)}(o.contents.packageJsonContent,o.packageDirectory,r):4&e&&function(e,n,t){return _F(e,"typings",n,t)||_F(e,"types",n,t)}(o.contents.packageJsonContent,o.packageDirectory,r)||7&e&&function(e,n,t){return _F(e,"main",n,t)}(o.contents.packageJsonContent,o.packageDirectory,r)||void 0);const l=(e,n,t,r)=>{const i=uW(e,n,void 0,t,r);if(i)return aF(i);const a=4===e?5:e,s=r.features,l=r.candidateIsFromPackageJsonField;r.candidateIsFromPackageJsonField=!0,"module"!==(null==o?void 0:o.contents.packageJsonContent.type)&&(r.features&=-33);const c=rW(a,n,t,r,!1);return r.features=s,r.candidateIsFromPackageJsonField=l,c},c=s?!Pb(Mi(s),r.host):void 0,d=t||!Pb(n,r.host),u=zi(n,r.isConfigLookup?"tsconfig":"index");if(a&&(!s||ra(n,s))){const t=aa(n,s||u,!1);r.traceEnabled&&rF(r.host,fa.package_json_has_a_typesVersions_entry_0_that_matches_compiler_version_1_looking_for_a_pattern_to_match_module_name_2,a.version,i,t);const o=ZE(a.paths),p=FW(e,t,n,a.paths,o,l,c||d,r);if(p)return sF(p.value)}const p=s&&sF(l(e,s,c,r));return p||(32&r.features?void 0:cW(e,u,d,r))}function AW(e,n){return 2&e&&(".js"===n||".jsx"===n||".mjs"===n||".cjs"===n)||1&e&&(".ts"===n||".tsx"===n||".mts"===n||".cts"===n)||4&e&&(".d.ts"===n||".d.mts"===n||".d.cts"===n)||8&e&&".json"===n||!1}function xW(e){let n=e.indexOf(pi);return"@"===e[0]&&(n=e.indexOf(pi,n+1)),-1===n?{packageName:e,rest:""}:{packageName:e.slice(0,n),rest:e.slice(n+1)}}function RW(e){return g(Ce(e),e=>Xn(e,"."))}function IW(e,n,t,r,o,i){if(e.contents.packageJsonContent.exports){if("."===t){let a;if("string"==typeof e.contents.packageJsonContent.exports||Array.isArray(e.contents.packageJsonContent.exports)||"object"==typeof e.contents.packageJsonContent.exports&&!U(Ce(e.contents.packageJsonContent.exports),e=>Xn(e,"."))?a=e.contents.packageJsonContent.exports:Ie(e.contents.packageJsonContent.exports,".")&&(a=e.contents.packageJsonContent.exports["."]),a){return NW(n,r,o,i,t,e,!1)(a,"",!1,".")}}else if(RW(e.contents.packageJsonContent.exports)){if("object"!=typeof e.contents.packageJsonContent.exports)return r.traceEnabled&&rF(r.host,fa.Export_specifier_0_does_not_exist_in_package_json_scope_at_path_1,t,e.packageDirectory),XW(void 0);const a=CW(n,r,o,i,t,e.contents.packageJsonContent.exports,e,!1);if(a)return a}return r.traceEnabled&&rF(r.host,fa.Export_specifier_0_does_not_exist_in_package_json_scope_at_path_1,t,e.packageDirectory),XW(void 0)}}function DW(e,n){const t=e.indexOf("*"),r=n.indexOf("*"),o=-1===t?e.length:t+1,i=-1===r?n.length:r+1;return o>i?-1:i>o||-1===t?1:-1===r||e.length>n.length?-1:n.length>e.length?1:0}function CW(e,n,t,r,o,i,a,s){const l=NW(e,n,t,r,o,a,s);if(!Fn(o,pi)&&!o.includes("*")&&Ie(i,o)){return l(i[o],"",!1,o)}const c=ce(x(Ce(i),e=>function(e){const n=e.indexOf("*");return-1!==n&&n===e.lastIndexOf("*")}(e)||Fn(e,"/")),DW);for(const u of c){if(16&n.features&&d(u,o)){const e=i[u],n=u.indexOf("*");return l(e,o.substring(u.substring(0,n).length,o.length-(u.length-1-n)),!0,u)}if(Fn(u,"*")&&Xn(o,u.substring(0,u.length-1))){return l(i[u],o.substring(u.length-1),!0,u)}if(Xn(o,u)){return l(i[u],o.substring(u.length),!1,u)}}function d(e,n){if(Fn(e,"*"))return!1;const t=e.indexOf("*");return-1!==t&&(Xn(n,e.substring(0,t))&&Fn(n,e.substring(t+1)))}}function NW(e,n,t,r,o,i,a){return function l(d,u,p,f){var m,h;if("string"==typeof d){if(!p&&u.length>0&&!Fn(d,"/"))return n.traceEnabled&&rF(n.host,fa.package_json_scope_0_has_invalid_type_for_target_of_specifier_1,i.packageDirectory,o),XW(void 0);if(!Xn(d,"./")){if(a&&!Xn(d,"../")&&!Xn(d,"/")&&!yi(d)){const o=p?d.replace(/\*/g,u):d+u;YW(n,fa.Using_0_subpath_1_with_target_2,"imports",f,o),YW(n,fa.Resolving_module_0_from_1,o,i.packageDirectory+"/");const a=eW(n.features,o,i.packageDirectory+"/",n.compilerOptions,n.host,t,e,!1,r,n.conditions);return null==(m=n.failedLookupLocations)||m.push(...a.failedLookupLocations??s),null==(h=n.affectingLocations)||h.push(...a.affectingLocations??s),XW(a.resolvedModule?{path:a.resolvedModule.resolvedFileName,extension:a.resolvedModule.extension,packageId:a.resolvedModule.packageId,originalPath:a.resolvedModule.originalPath,resolvedUsingTsExtension:a.resolvedModule.resolvedUsingTsExtension}:void 0)}return n.traceEnabled&&rF(n.host,fa.package_json_scope_0_has_invalid_type_for_target_of_specifier_1,i.packageDirectory,o),XW(void 0)}const l=(Si(d)?wi(d).slice(1):wi(d)).slice(1);if(l.includes("..")||l.includes(".")||l.includes("node_modules"))return n.traceEnabled&&rF(n.host,fa.package_json_scope_0_has_invalid_type_for_target_of_specifier_1,i.packageDirectory,o),XW(void 0);const c=zi(i.packageDirectory,d),y=wi(u);if(y.includes("..")||y.includes(".")||y.includes("node_modules"))return n.traceEnabled&&rF(n.host,fa.package_json_scope_0_has_invalid_type_for_target_of_specifier_1,i.packageDirectory,o),XW(void 0);n.traceEnabled&&rF(n.host,fa.Using_0_subpath_1_with_target_2,a?"imports":"exports",f,p?d.replace(/\*/g,u):d+u);const v=_(p?c.replace(/\*/g,u):c+u),b=function(t,r,o,a){var s,l,c,d;if(!n.isConfigLookup&&(n.compilerOptions.declarationDir||n.compilerOptions.outDir)&&!t.includes("/node_modules/")&&(!n.compilerOptions.configFile||ra(i.packageDirectory,_(n.compilerOptions.configFile.fileName),!$W(n)))){const p=By({useCaseSensitiveFileNames:()=>$W(n)}),f=[];if(n.compilerOptions.rootDir||n.compilerOptions.composite&&n.compilerOptions.configFilePath){const e=_(gj(n.compilerOptions,()=>[],(null==(l=(s=n.host).getCurrentDirectory)?void 0:l.call(s))||"",p));f.push(e)}else if(n.requestContainingDirectory){const e=_(zi(n.requestContainingDirectory,"index.ts")),t=_(gj(n.compilerOptions,()=>[e,_(o)],(null==(d=(c=n.host).getCurrentDirectory)?void 0:d.call(c))||"",p));f.push(t);let r=Ji(t);for(;r&&r.length>1;){const e=wi(r);e.pop();const n=Oi(e);f.unshift(n),r=Ji(n)}}f.length>1&&n.reportDiagnostic(nS(a?fa.The_project_root_is_ambiguous_but_is_required_to_resolve_import_map_entry_0_in_file_1_Supply_the_rootDir_compiler_option_to_disambiguate:fa.The_project_root_is_ambiguous_but_is_required_to_resolve_export_map_entry_0_in_file_1_Supply_the_rootDir_compiler_option_to_disambiguate,""===r?".":r,o));for(const r of f){const o=u(r);for(const a of o)if(ra(a,t,!$W(n))){const o=zi(r,t.slice(a.length+1)),s=[".mjs",".cjs",".js",".json",".d.mts",".d.cts",".d.ts"];for(const t of s)if(xi(o,t)){const r=Xy(o);for(const a of r){if(!AW(e,a))continue;const r=Yi(o,a,t,!$W(n));if(n.host.fileExists(r))return XW(iF(i,uW(e,r,void 0,!1,n),n))}}}}}return;function u(e){var t,r;const o=n.compilerOptions.configFile?(null==(r=(t=n.host).getCurrentDirectory)?void 0:r.call(t))||"":e,i=[];return n.compilerOptions.declarationDir&&i.push(_(g(o,n.compilerOptions.declarationDir))),n.compilerOptions.outDir&&n.compilerOptions.outDir!==n.compilerOptions.declarationDir&&i.push(_(g(o,n.compilerOptions.outDir))),i}}(v,u,zi(i.packageDirectory,"package.json"),a);return b||XW(iF(i,uW(e,v,d,!1,n),n))}if("object"==typeof d&&null!==d){if(!Array.isArray(d)){YW(n,fa.Entering_conditional_exports);for(const e of Ce(d))if("default"===e||n.conditions.includes(e)||MW(n.conditions,e)){YW(n,fa.Matched_0_condition_1,a?"imports":"exports",e);const t=d[e],r=l(t,u,p,f);if(r)return YW(n,fa.Resolved_under_condition_0,e),YW(n,fa.Exiting_conditional_exports),r;YW(n,fa.Failed_to_resolve_under_condition_0,e)}else YW(n,fa.Saw_non_matching_condition_0,e);return void YW(n,fa.Exiting_conditional_exports)}if(!c(d))return n.traceEnabled&&rF(n.host,fa.package_json_scope_0_has_invalid_type_for_target_of_specifier_1,i.packageDirectory,o),XW(void 0);for(const e of d){const n=l(e,u,p,f);if(n)return n}}else if(null===d)return n.traceEnabled&&rF(n.host,fa.package_json_scope_0_explicitly_maps_specifier_1_to_null,i.packageDirectory,o),XW(void 0);n.traceEnabled&&rF(n.host,fa.package_json_scope_0_has_invalid_type_for_target_of_specifier_1,i.packageDirectory,o);return XW(void 0);function _(e){var t,r;return void 0===e?e:Vi(e,null==(r=(t=n.host).getCurrentDirectory)?void 0:r.call(t))}function g(e,n){return Ji(zi(e,n))}}}function MW(e,n){if(!e.includes("types"))return!1;if(!Xn(n,"types@"))return!1;const t=Tt.tryParse(n.substring(6));return!!t&&t.test(i)}function PW(e,n,t,r,o,i){return LW(e,n,t,r,!1,o,i)}function LW(e,n,t,r,o,i,a){const s=0===r.features?void 0:32&r.features||r.conditions.includes("import")?99:1,l=5&e,c=-6&e;if(l){YW(r,fa.Searching_all_ancestor_node_modules_directories_for_preferred_extensions_Colon_0,lF(l));const e=d(l);if(e)return e}if(c&&!o)return YW(r,fa.Searching_all_ancestor_node_modules_directories_for_fallback_extensions_Colon_0,lF(c)),d(c);function d(e){return kW(r.host,Fi(t),t=>{if("node_modules"!==Pi(t)){const l=UW(i,n,s,t,a,r);return l||XW(wW(e,n,t,r,o,i,a))}})}}function kW(e,n,t){var r;const o=null==(r=null==e?void 0:e.getGlobalTypingsCacheLocation)?void 0:r.call(e);return da(n,e=>{const n=t(e);return void 0!==n?n:e!==o&&void 0})||void 0}function wW(e,n,t,r,o,i,a){const s=zi(t,"node_modules"),l=Pb(s,r.host);if(!l&&r.traceEnabled&&rF(r.host,fa.Directory_0_does_not_exist_skipping_all_lookups_in_it,s),!o){const t=OW(e,n,s,l,r,i,a);if(t)return t}if(4&e){const e=zi(s,"@types");let t=l;return l&&!Pb(e,r.host)&&(r.traceEnabled&&rF(r.host,fa.Directory_0_does_not_exist_skipping_all_lookups_in_it,e),t=!1),OW(4,zW(n,r),e,t,r,i,a)}}function OW(e,n,t,r,o,a,l){var c,d;const u=ji(zi(t,n)),{packageName:p,rest:f}=xW(n),m=zi(t,p);let h,_=SW(u,!r,o);if(""!==f&&_&&(!(8&o.features)||!Ie((null==(c=h=SW(m,!r,o))?void 0:c.contents.packageJsonContent)??s,"exports"))){const n=cW(e,u,!r,o);if(n)return aF(n);const t=EW(e,u,!r,o,_);return iF(_,t,o)}const g=(e,n,t,r)=>{let o=(f||!(32&r.features))&&cW(e,n,t,r)||EW(e,n,t,r,_);return!o&&!f&&_&&(void 0===_.contents.packageJsonContent.exports||null===_.contents.packageJsonContent.exports)&&32&r.features&&(o=cW(e,zi(n,"index.js"),t,r)),iF(_,o,r)};if(""!==f&&(_=h??SW(m,!r,o)),_&&(o.resolvedPackageDirectory=!0),_&&_.contents.packageJsonContent.exports&&8&o.features)return null==(d=IW(_,e,zi(".",f),o,a,l))?void 0:d.value;const y=""!==f&&_?bW(_,o):void 0;if(y){o.traceEnabled&&rF(o.host,fa.package_json_has_a_typesVersions_entry_0_that_matches_compiler_version_1_looking_for_a_pattern_to_match_module_name_2,y.version,i,f);const n=r&&Pb(m,o.host),t=ZE(y.paths),a=FW(e,f,m,y.paths,t,g,!n,o);if(a)return a.value}return g(e,u,!r,o)}function FW(e,n,t,r,o,i,a,s){const l=lA(o,n);if(l){const o=Qe(l)?void 0:qn(l,n),c=Qe(l)?l:Kn(l);s.traceEnabled&&rF(s.host,fa.Module_name_0_matched_pattern_1,n,c);return{value:d(r[c],n=>{const r=o?_x(n,o):n,l=ji(zi(t,r));s.traceEnabled&&rF(s.host,fa.Trying_substitution_0_candidate_module_location_Colon_1,n,r);const c=iA(n);if(void 0!==c){const e=fW(l,a,s);if(void 0!==e)return aF({path:e,ext:c,resolvedUsingTsExtension:void 0})}return i(e,l,a||!Pb(Mi(l),s.host),s)})}}}var WW="__";function zW(e,n){const t=GW(e);return n.traceEnabled&&t!==e&&rF(n.host,fa.Scoped_package_detected_looking_in_0,t),t}function BW(e){return`@types/${GW(e)}`}function GW(e){if(Xn(e,"@")){const n=e.replace(pi,WW);if(n!==e)return n.slice(1)}return e}function VW(e){const n=Yn(e,"@types/");return n!==e?jW(n):e}function jW(e){return e.includes(WW)?"@"+e.replace(WW,pi):e}function UW(e,n,t,r,o,i){const a=e&&e.getFromNonRelativeNameCache(n,t,r,o);if(a)return i.traceEnabled&&rF(i.host,fa.Resolution_for_module_0_was_found_in_cache_from_location_1,n,r),i.resultFromCache=a,{value:a.resolvedModule&&{path:a.resolvedModule.resolvedFileName,originalPath:a.resolvedModule.originalPath||!0,extension:a.resolvedModule.extension,packageId:a.resolvedModule.packageId,resolvedUsingTsExtension:a.resolvedModule.resolvedUsingTsExtension}}}function HW(e,n,t,r,o,i){const a=oF(t,r),s=[],l=[],c=Mi(n),d=[],u={compilerOptions:t,host:r,traceEnabled:a,failedLookupLocations:s,affectingLocations:l,packageJsonInfoCache:o,features:0,conditions:[],requestContainingDirectory:c,reportDiagnostic:e=>{d.push(e)},isConfigLookup:!1,candidateIsFromPackageJsonField:!1,resolvedPackageDirectory:!1},p=f(5)||f(2|(t.resolveJsonModule?8:0));return dF(e,p&&p.value,(null==p?void 0:p.value)&&iW(p.value.path),s,l,d,u,o);function f(n){const t=qF(n,e,c,lW,u);if(t)return{value:t};if(Ds(e)){const t=ji(zi(c,e));return XW(lW(n,t,!1,u))}{const t=kW(u.host,c,t=>{const r=UW(o,e,void 0,t,i,u);if(r)return r;const a=ji(zi(t,e));return XW(lW(n,a,!1,u))});if(t)return t;if(5&n){let t=function(e,n,t){return LW(4,e,n,t,!0,void 0,void 0)}(e,c,u);return 4&n&&(t??(t=KW(e,u))),t}}}}function KW(e,n){if(n.compilerOptions.typeRoots)for(const t of n.compilerOptions.typeRoots){const r=EF(t,e,n),o=Pb(t,n.host);!o&&n.traceEnabled&&rF(n.host,fa.Directory_0_does_not_exist_skipping_all_lookups_in_it,t);const i=cW(4,r,!o,n);if(i){const e=aW(i.path);return XW(iF(e?SW(e,!1,n):void 0,i,n))}const a=hW(4,r,!o,n);if(a)return XW(a)}}function qW(e,n){return TS(e)||!!n&&yk(n)}function JW(e,n,t,r,o,i){const a=oF(t,r);a&&rF(r,fa.Auto_discovery_for_typings_is_enabled_in_project_0_Running_extra_resolution_pass_for_module_1_using_cache_location_2,n,e,o);const s=[],l=[],c=[],d={compilerOptions:t,host:r,traceEnabled:a,failedLookupLocations:s,affectingLocations:l,packageJsonInfoCache:i,features:0,conditions:[],requestContainingDirectory:void 0,reportDiagnostic:e=>{c.push(e)},isConfigLookup:!1,candidateIsFromPackageJsonField:!1,resolvedPackageDirectory:!1};return uF(wW(4,e,o,d,!1,void 0,void 0),!0,s,l,c,d.resultFromCache,void 0)}function XW(e){return void 0!==e?{value:e}:void 0}function YW(e,n,...t){e.traceEnabled&&rF(e.host,n,...t)}function $W(e){return!e.host.useCaseSensitiveFileNames||("boolean"==typeof e.host.useCaseSensitiveFileNames?e.host.useCaseSensitiveFileNames:e.host.useCaseSensitiveFileNames())}var QW=(e=>(e[e.NonInstantiated=0]="NonInstantiated",e[e.Instantiated=1]="Instantiated",e[e.ConstEnumOnly=2]="ConstEnumOnly",e))(QW||{});function ZW(e,n){return e.body&&!e.body.parent&&(PA(e.body,e),LA(e.body,!1)),e.body?ez(e.body,n):1}function ez(e,n=new Map){const t=cB(e);if(n.has(t))return n.get(t)||0;n.set(t,void 0);const r=function(e,n){switch(e.kind){case 265:case 266:return 0;case 267:if(im(e))return 2;break;case 273:case 272:if(!Mv(e,32))return 0;break;case 279:const t=e;if(!t.moduleSpecifier&&t.exportClause&&280===t.exportClause.kind){let e=0;for(const r of t.exportClause.elements){const t=nz(r,n);if(t>e&&(e=t),1===e)return e}return e}break;case 269:{let t=0;return rk(e,e=>{const r=ez(e,n);switch(r){case 0:return;case 2:return void(t=2);case 1:return t=1,!0;default:dt.assertNever(r)}}),t}case 268:return ZW(e,n);case 80:if(4096&e.flags)return 0}return 1}(e,n);return n.set(t,r),r}function nz(e,n){const t=e.propertyName||e.name;if(80!==t.kind)return 1;let r=e.parent;for(;r;){if(JC(r)||TN(r)||uM(r)){const e=r.statements;let o;for(const i of e)if(Al(i,t)){i.parent||(PA(i,r),LA(i,!1));const e=ez(i,n);if((void 0===o||e>o)&&(o=e),1===o)return o;272===i.kind&&(o=1)}if(void 0!==o)return o}r=r.parent}return 1}var tz=(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.IsObjectLiteralOrClassExpressionMethodOrAccessor=128]="IsObjectLiteralOrClassExpressionMethodOrAccessor",e))(tz||{});function rz(e,n,t){return dt.attachFlowNodeDebugInfo({flags:e,id:0,node:n,antecedent:t})}var oz=az();function iz(e,n){er("beforeBind"),oz(e,n),er("afterBind"),nr("Bind","beforeBind","afterBind")}function az(){var e,n,t,r,o,i,a,s,l,u,p,f,m,h,_,y,v,b,T,E,A,x,R,I,D,C,N,M=!1,P=0,L=rz(1,void 0,void 0),k=rz(1,void 0,void 0),w=function(){return mL(function(e,n){if(n){n.stackIndex++,PA(e,r);const t=D;He(e);const o=r;r=e,n.skip=!1,n.inStrictModeStack[n.stackIndex]=t,n.parentStack[n.stackIndex]=o}else n={stackIndex:0,skip:!1,inStrictModeStack:[void 0],parentStack:[void 0]};const t=e.operatorToken.kind;if(tb(t)||eb(t)){if(me(e)){const n=ne(),t=f,r=R;R=!1,Ee(e,n,n),f=R?pe(n):t,R||(R=r)}else Ee(e,y,v);n.skip=!0}return n},function(n,t,r){if(!t.skip){const t=e(n);return 28===r.operatorToken.kind&&be(n),t}},function(e,n,t){n.skip||Ge(e)},function(n,t,r){if(!t.skip){const t=e(n);return 28===r.operatorToken.kind&&be(n),t}},function(e,n){if(!n.skip){const n=e.operatorToken.kind;if(ob(n)&&!eg(e)&&(Se(e.left),64===n&&213===e.left.kind)){ee(e.left.expression)&&(f=de(256,f,e))}}const t=n.inStrictModeStack[n.stackIndex],o=n.parentStack[n.stackIndex];void 0!==t&&(D=t);void 0!==o&&(r=o);n.skip=!1,n.stackIndex--},void 0);function e(e){if(e&&MC(e)&&!lb(e))return e;Ge(e)}}();return function(c,d){var g,T;e=c,t=SS(n=d),D=function(e,n){return!(!US(n,"alwaysStrict")||e.isDeclarationFile)||!!e.externalModuleIndicator}(e,d),N=new Set,P=0,C=GT.getSymbolConstructor(),dt.attachFlowNodeDebugInfo(L),dt.attachFlowNodeDebugInfo(k),e.locals||(null==(g=Kt)||g.push(Kt.Phase.Bind,"bindSourceFile",{path:e.path},!0),Ge(e),null==(T=Kt)||T.pop(),e.symbolCount=P,e.classifiableNames=N,function(){if(!l)return;const n=o,t=s,i=a,c=r,d=f;for(const s of l){const n=s.parent.parent;o=Lf(n)||e,a=kf(n)||e,f=rz(2,void 0,void 0),r=s,Ge(s.typeExpression);const t=Dl(s);if((VM(s)||!s.fullName)&&t&&fb(t.parent)){const n=sn(t.parent);if(n){on(e.symbol,t.parent,n,!!ml(t,e=>_C(e)&&"prototype"===e.name.escapedText),!1);const r=o;switch(m_(t.parent)){case 1:case 2:o=rm(e)?e:void 0;break;case 4:o=t.parent.expression;break;case 3:o=t.parent.expression.name;break;case 5:o=lz(e,t.parent.expression)?e:_C(t.parent.expression)?t.parent.expression.name:t.parent.expression;break;case 0:return dt.fail("Shouldn't have detected typedef or enum on non-assignment declaration")}o&&V(s,524288,788968),o=r}}else VM(s)||!s.fullName||80===s.fullName.kind?(r=s.parent,ke(s,524288,788968)):Ge(s.fullName)}o=n,s=t,a=i,r=c,f=d}(),function(){if(void 0===p)return;const n=o,t=s,i=a,l=r,c=f;for(const s of p){const n=q_(s),t=n?Lf(n):void 0,i=n?kf(n):void 0;o=t||e,a=i||e,f=rz(2,void 0,void 0),r=s,Ge(s.importClause)}o=n,s=t,a=i,r=l,f=c}());e=void 0,n=void 0,t=void 0,r=void 0,o=void 0,i=void 0,a=void 0,s=void 0,l=void 0,p=void 0,u=!1,f=void 0,m=void 0,h=void 0,_=void 0,y=void 0,v=void 0,b=void 0,E=void 0,A=!1,x=!1,R=!1,M=!1,I=0};function O(n,t,...r){return Uf(Sp(n)||e,n,t,...r)}function F(e,n){return P++,new C(e,n)}function W(e,n,t){e.flags|=t,n.symbol=e,e.declarations=le(e.declarations,n),1955&t&&!e.exports&&(e.exports=Qu()),6240&t&&!e.members&&(e.members=Qu()),e.constEnumOnlyModule&&304&e.flags&&(e.constEnumOnlyModule=!1),111551&t&&y_(e,n)}function z(e){if(278===e.kind)return e.isExportEquals?"export=":"default";const n=Dl(e);if(n){if(pf(e)){const t=Hg(n);return gf(e)?"__global":`"${t}"`}if(168===n.kind){const e=n.expression;if(zg(e))return gl(e.text);if(Bg(e))return Pa(e.operator)+e.operand.text;dt.fail("Only computed properties with literal names have declaration names")}if(uD(n)){const t=Zm(e);if(!t)return;return qg(t.symbol,n.escapedText)}return tM(n)?lx(n):Ug(n)?Kg(n):void 0}switch(e.kind){case 177:return"__constructor";case 185:case 180:case 324:return"__call";case 186:case 181:return"__new";case 182:return"__index";case 279:return"__export";case 308:return"export=";case 227:if(2===o_(e))return"export=";dt.fail("Unknown binary declaration kind");break;case 318:return N_(e)?"__new":"__call";case 170:dt.assert(318===e.parent.kind,"Impossible parameter parent kind",()=>`parent is: ${dt.formatSyntaxKind(e.parent.kind)}, expected JSDocFunctionType`);return"arg"+e.parent.parameters.indexOf(e)}}function B(e){return Rl(e)?Of(e.name):yl(dt.checkDefined(z(e)))}function G(n,t,r,o,i,a,s){dt.assert(s||!Gg(r));const l=Mv(r,2048)||zN(r)&&$p(r.name),u=s?"__computed":l&&t?"default":z(r);let p;if(void 0===u)p=F(0,"__missing");else if(p=n.get(u),2885600&o&&N.add(u),p){if(a&&!p.isReplaceableByMethod)return p;if(p.flags&i)if(p.isReplaceableByMethod)n.set(u,p=F(0,u));else if(!(3&o&&67108864&p.flags)){Rl(r)&&PA(r.name,r);let n=2&p.flags?fa.Cannot_redeclare_block_scoped_variable_0:fa.Duplicate_identifier_0,t=!0;(384&p.flags||384&o)&&(n=fa.Enum_declarations_can_only_merge_with_namespace_or_other_enum_declarations,t=!1);let i=!1;c(p.declarations)&&(l||p.declarations&&p.declarations.length&&278===r.kind&&!r.isExportEquals)&&(n=fa.A_module_cannot_have_multiple_default_exports,t=!1,i=!0);const a=[];yN(r)&&Np(r.type)&&Mv(r,32)&&2887656&p.flags&&a.push(O(r,fa.Did_you_mean_0,`export type { ${yl(r.name.escapedText)} }`));const s=Dl(r)||r;d(p.declarations,(r,o)=>{const l=Dl(r)||r,c=t?O(l,n,B(r)):O(l,n);e.bindDiagnostics.push(i?dA(c,O(s,0===o?fa.Another_export_default_is_here:fa.and_here)):c),i&&a.push(O(l,fa.The_first_export_default_is_here))});const f=t?O(s,n,B(r)):O(s,n);e.bindDiagnostics.push(dA(f,...a)),p=F(0,u)}}else n.set(u,p=F(0,u)),a&&(p.isReplaceableByMethod=!0);return W(p,r,o),p.parent?dt.assert(p.parent===t,"Existing symbol parent should match new one"):p.parent=t,p}function V(e,n,t){const r=!!(32&sl(e))||function(e){e.parent&&bN(e)&&(e=e.parent);if(!M_(e))return!1;if(!VM(e)&&e.fullName)return!0;const n=Dl(e);return!!n&&(!(!fb(n.parent)||!sn(n.parent))||!!(fu(n.parent)&&32&sl(n.parent)))}(e);if(2097152&n)return 282===e.kind||272===e.kind&&r?G(o.symbol.exports,o.symbol,e,n,t):(dt.assertNode(o,du),G(o.locals,void 0,e,n,t));if(M_(e)&&dt.assert(Lh(e)),!pf(e)&&(r||128&o.flags)){if(!du(o)||!o.locals||Mv(e,2048)&&!z(e))return G(o.symbol.exports,o.symbol,e,n,t);const r=111551&n?1048576:0,i=G(o.locals,void 0,e,r,t);return i.exportSymbol=G(o.symbol.exports,o.symbol,e,n,t),e.localSymbol=i,i}return dt.assertNode(o,du),G(o.locals,void 0,e,n,t)}function j(e){q(e,e=>263===e.kind?Ge(e):void 0),q(e,e=>263!==e.kind?Ge(e):void 0)}function q(e,n=Ge){void 0!==e&&d(e,n)}function J(e){rk(e,Ge,q)}function X(e){const t=M;if(M=!1,function(e){if(!(1&f.flags))return!1;if(f===L){const t=hu(e)&&243!==e.kind||264===e.kind||sz(e,n)||268===e.kind&&function(e){const t=ZW(e);return 1===t||2===t&&LS(n)}(e);if(t&&(f=k,!n.allowUnreachableCode)){const t=BS(n)&&!(33554432&e.flags)&&(!XC(e)||!!(7&cl(e.declarationList))||e.declarationList.declarations.some(e=>!!e.initializer));!function(e,n,t){if(_u(e)&&r(e)&&JC(e.parent)){const{statements:n}=e.parent,o=cA(n,e);H(o,r,(e,n)=>t(o[e],o[n-1]))}else t(e,e);function r(e){return!(hN(e)||o(e)||XC(e)&&!(7&cl(e))&&e.declarationList.declarations.some(e=>!e.initializer))}function o(e){switch(e.kind){case 265:case 266:return!0;case 268:return 1!==ZW(e);case 267:return!sz(e,n);default:return!1}}}(e,n,(e,n)=>Be(t,e,n,fa.Unreachable_code_detected))}}return!0}(e))return F_(e)&&e.flowNode&&(e.flowNode=void 0),J(e),Ve(e),void(M=t);switch(e.kind>=244&&e.kind<=260&&(!n.allowUnreachableCode||254===e.kind)&&(e.flowNode=f),e.kind){case 248:!function(e){const n=ye(e,te()),t=ne(),r=ne();ae(n,f),f=n,_e(e.expression,t,r),f=pe(t),ge(e.statement,r,n),ae(n,f),f=pe(r)}(e);break;case 247:!function(e){const n=te(),t=ye(e,ne()),r=ne();ae(n,f),f=n,ge(e.statement,r,t),ae(t,f),f=pe(t),_e(e.expression,n,r),f=pe(r)}(e);break;case 249:!function(e){const n=ye(e,te()),t=ne(),r=ne(),o=ne();Ge(e.initializer),ae(n,f),f=n,_e(e.condition,t,o),f=pe(t),ge(e.statement,o,r),ae(r,f),f=pe(r),Ge(e.incrementor),ae(n,f),f=pe(o)}(e);break;case 250:case 251:!function(e){const n=ye(e,te()),t=ne();Ge(e.expression),ae(n,f),f=n,251===e.kind&&Ge(e.awaitModifier);ae(t,f),Ge(e.initializer),262!==e.initializer.kind&&Se(e.initializer);ge(e.statement,t,n),ae(n,f),f=pe(t)}(e);break;case 246:!function(e){const n=ne(),t=ne(),r=ne();_e(e.expression,n,t),f=pe(n),Ge(e.thenStatement),ae(r,f),f=pe(t),Ge(e.elseStatement),ae(r,f),f=pe(r)}(e);break;case 254:case 258:!function(e){const n=x;x=!0,Ge(e.expression),x=n,254===e.kind&&(A=!0,_&&ae(_,f));f=L,R=!0}(e);break;case 253:case 252:!function(e){if(Ge(e.label),e.label){const n=function(e){for(let n=E;n;n=n.next)if(n.name===e)return n;return}(e.label.escapedText);n&&(n.referenced=!0,ve(e,n.breakTarget,n.continueTarget))}else ve(e,m,h)}(e);break;case 259:!function(e){const n=_,t=b,r=ne(),o=ne();let i=ne();e.finallyBlock&&(_=o);ae(i,f),b=i,Ge(e.tryBlock),ae(r,f),e.catchClause&&(f=pe(i),i=ne(),ae(i,f),b=i,Ge(e.catchClause),ae(r,f));if(_=n,b=t,e.finallyBlock){const n=ne();n.antecedent=K(K(r.antecedent,i.antecedent),o.antecedent),f=n,Ge(e.finallyBlock),1&f.flags?f=L:(_&&o.antecedent&&ae(_,oe(n,o.antecedent,f)),b&&i.antecedent&&ae(b,oe(n,i.antecedent,f)),f=r.antecedent?oe(n,r.antecedent,f):L)}else f=pe(r)}(e);break;case 256:!function(e){const n=ne();Ge(e.expression);const t=m,r=T;m=n,T=f,Ge(e.caseBlock),ae(n,f);const o=d(e.caseBlock.clauses,e=>298===e.kind);e.possiblyExhaustive=!o&&!n.antecedent,o||ae(n,ce(T,e,0,0));m=t,T=r,f=pe(n)}(e);break;case 270:!function(e){const t=e.clauses,r=112===e.parent.expression.kind||Y(e.parent.expression);let o=L;for(let i=0;i<t.length;i++){const a=i;for(;!t[i].statements.length&&i+1<t.length;)o===L&&(f=T),Ge(t[i]),i++;const s=ne();ae(s,r?ce(T,e.parent,a,i+1):T),ae(s,o),f=pe(s);const l=t[i];Ge(l),o=f,1&f.flags||i===t.length-1||!n.noFallthroughCasesInSwitch||(l.fallthroughFlowNode=f)}}(e);break;case 297:!function(e){const n=f;f=T,Ge(e.expression),f=n,q(e.statements)}(e);break;case 245:!function(e){Ge(e.expression),be(e.expression)}(e);break;case 257:!function(e){const t=ne();E={next:E,name:e.label.escapedText,breakTarget:t,continueTarget:void 0,referenced:!1},Ge(e.label),Ge(e.statement),E.referenced||n.allowUnusedLabels||function(e,n,t){Be(e,n,n,t)}(GS(n),e.label,fa.Unused_label);E=E.next,ae(t,f),f=pe(t)}(e);break;case 225:!function(e){if(54===e.operator){const n=y;y=v,v=n,J(e),v=y,y=n}else J(e),46!==e.operator&&47!==e.operator||Se(e.operand)}(e);break;case 226:!function(e){J(e),(46===e.operator||47===e.operator)&&Se(e.operand)}(e);break;case 227:if(lb(e))return M=t,void function(e){M?(M=!1,Ge(e.operatorToken),Ge(e.right),M=!0,Ge(e.left)):(M=!0,Ge(e.left),M=!1,Ge(e.operatorToken),Ge(e.right));Se(e.left)}(e);w(e);break;case 221:!function(e){J(e),212===e.expression.kind&&Se(e.expression)}(e);break;case 228:!function(e){const n=ne(),t=ne(),r=ne(),o=f,i=R;R=!1,_e(e.condition,n,t),f=pe(n),x&&(e.flowNodeWhenTrue=f);Ge(e.questionToken),Ge(e.whenTrue),ae(r,f),f=pe(t),x&&(e.flowNodeWhenFalse=f);Ge(e.colonToken),Ge(e.whenFalse),ae(r,f),f=R?pe(r):o,R||(R=i)}(e);break;case 261:!function(e){J(e),(e.initializer||eu(e.parent.parent))&&Ae(e)}(e);break;case 212:case 213:!function(e){bc(e)?De(e):J(e)}(e);break;case 214:!function(e){if(bc(e))De(e);else{const n=cg(e.expression);219===n.kind||220===n.kind?(q(e.typeArguments),q(e.arguments),Ge(e.expression)):(J(e),108===e.expression.kind&&(f=ue(f,e)))}if(212===e.expression.kind){const n=e.expression;dD(n.name)&&ee(n.expression)&&Zg(n.name)&&(f=de(256,f,e))}}(e);break;case 236:!function(e){bc(e)?De(e):J(e)}(e);break;case 347:case 339:case 341:!function(e){Ge(e.tagName),341!==e.kind&&e.fullName&&(PA(e.fullName,e),LA(e.fullName,!1));"string"!=typeof e.comment&&q(e.comment)}(e);break;case 352:!function(e){Ge(e.tagName),Ge(e.moduleSpecifier),Ge(e.attributes),"string"!=typeof e.comment&&q(e.comment)}(e);break;case 308:j(e.statements),Ge(e.endOfFileToken);break;case 242:case 269:j(e.statements);break;case 209:!function(e){Ge(e.dotDotDotToken),Ge(e.propertyName),xe(e.initializer),Ge(e.name)}(e);break;case 170:!function(e){q(e.modifiers),Ge(e.dotDotDotToken),Ge(e.questionToken),Ge(e.type),xe(e.initializer),Ge(e.name)}(e);break;case 211:case 210:case 304:case 231:M=t;default:J(e)}Ve(e),M=t}function Y(e){switch(e.kind){case 80:case 110:return!0;case 212:case 213:return Q(e);case 214:return function(e){if(e.arguments)for(const n of e.arguments)if(Q(n))return!0;if(212===e.expression.kind&&Q(e.expression.expression))return!0;return!1}(e);case 218:if(DP(e))return!1;case 236:return Y(e.expression);case 227:return function(e){switch(e.operatorToken.kind){case 64:case 76:case 77:case 78:return Q(e.left);case 35:case 36:case 37:case 38:const n=cg(e.left),t=cg(e.right);return ee(n)||ee(t)||Z(t,n)||Z(n,t)||cd(t)&&Y(n)||cd(n)&&Y(t);case 104:return ee(e.left);case 103:case 28:return Y(e.right)}return!1}(e);case 225:return 54===e.operator&&Y(e.operand);case 222:return Y(e.expression)}return!1}function $(e){switch(e.kind){case 80:case 110:case 108:case 237:return!0;case 212:case 218:case 236:return $(e.expression);case 213:return(zg(e.argumentExpression)||db(e.argumentExpression))&&$(e.expression);case 227:return 28===e.operatorToken.kind&&$(e.right)||ob(e.operatorToken.kind)&&Gd(e.left)}return!1}function Q(e){return $(e)||bc(e)&&Q(e.expression)}function Z(e,n){return RC(e)&&ee(e.expression)&&zu(n)}function ee(e){switch(e.kind){case 218:return ee(e.expression);case 227:switch(e.operatorToken.kind){case 64:return ee(e.left);case 28:return ee(e.right)}}return Q(e)}function ne(){return rz(4,void 0,void 0)}function te(){return rz(8,void 0,void 0)}function oe(e,n,t){return rz(1024,{target:e,antecedents:n},t)}function ie(e){e.flags|=2048&e.flags?4096:2048}function ae(e,n){1&n.flags||S(e.antecedent,n)||((e.antecedent||(e.antecedent=[])).push(n),ie(n))}function se(e,n,t){return 1&n.flags?n:t?!(112===t.kind&&64&e||97===t.kind&&32&e)||Sc(t)||Ac(t.parent)?Y(t)?(ie(n),rz(e,t,n)):n:L:32&e?n:L}function ce(e,n,t,r){return ie(e),rz(128,{switchStatement:n,clauseStart:t,clauseEnd:r},e)}function de(e,n,t){ie(n),R=!0;const r=rz(e,t,n);return b&&ae(b,r),r}function ue(e,n){return ie(e),R=!0,rz(512,n,e)}function pe(e){const n=e.antecedent;return n?1===n.length?n[0]:e:L}function fe(e){for(;;)if(218===e.kind)e=e.expression;else{if(225!==e.kind||54!==e.operator)return rb(e);e=e.operand}}function me(e){for(;SC(e.parent)||CC(e.parent)&&54===e.parent.operator;)e=e.parent;return!(function(e){const n=e.parent;switch(n.kind){case 246:case 248:case 247:return n.expression===e;case 249:case 228:return n.condition===e}return!1}(e)||fe(e.parent)||bc(e.parent)&&e.parent.expression===e)}function he(e,n,t,r){const o=y,i=v;y=t,v=r,e(n),y=o,v=i}function _e(e,n,t){he(Ge,e,n,t),e&&(function(e){return nb(cg(e))}(e)||fe(e)||bc(e)&&Ec(e))||(ae(n,se(32,f,e)),ae(t,se(64,f,e)))}function ge(e,n,t){const r=m,o=h;m=n,h=t,Ge(e),m=r,h=o}function ye(e,n){let t=E;for(;t&&257===e.parent.kind;)t.continueTarget=n,t=t.next,e=e.parent;return n}function ve(e,n,t){const r=253===e.kind?n:t;r&&(ae(r,f),f=L,R=!0)}function be(e){if(214===e.kind){const n=e;108!==n.expression.kind&&pb(n.expression)&&(f=ue(f,n))}}function Te(e){227===e.kind&&64===e.operatorToken.kind?Se(e.left):Se(e)}function Se(e){if($(e))f=de(16,f,e);else if(210===e.kind)for(const n of e.elements)231===n.kind?Se(n.expression):Te(n);else if(211===e.kind)for(const n of e.properties)304===n.kind?Te(n.initializer):305===n.kind?Se(n.name):306===n.kind&&Se(n.expression)}function Ee(e,n,t){const r=ne();56===e.operatorToken.kind||77===e.operatorToken.kind?_e(e.left,r,t):_e(e.left,n,r),f=pe(r),Ge(e.operatorToken),eb(e.operatorToken.kind)?(he(Ge,e.right,n,t),Se(e.left),ae(n,se(32,f,e)),ae(t,se(64,f,e))):_e(e.right,n,t)}function Ae(e){const n=FC(e)?void 0:e.name;if(xd(n))for(const t of n.elements)Ae(t);else f=de(16,f,e)}function xe(e){if(!e)return;const n=f;if(Ge(e),n===L||n===f)return;const t=ne();ae(t,n),ae(t,f),f=pe(t)}function Re(e){switch(e.kind){case 212:Ge(e.questionDotToken),Ge(e.name);break;case 213:Ge(e.questionDotToken),Ge(e.argumentExpression);break;case 214:Ge(e.questionDotToken),q(e.typeArguments),q(e.arguments)}}function Ie(e,n,t){const r=Tc(e)?ne():void 0;!function(e,n,t){he(Ge,e,n,t),bc(e)&&!Ec(e)||(ae(n,se(32,f,e)),ae(t,se(64,f,e)))}(e.expression,r||n,t),r&&(f=pe(r)),he(Re,e,n,t),Ec(e)&&(ae(n,se(32,f,e)),ae(t,se(64,f,e)))}function De(e){if(me(e)){const n=ne(),t=f,r=R;Ie(e,n,n),f=R?pe(n):t,R||(R=r)}else Ie(e,y,v)}function Ce(e){s&&(s.nextContainer=e),s=e}function Ne(n,t,r){switch(o.kind){case 268:return V(n,t,r);case 308:return function(n,t,r){return dk(e)?V(n,t,r):G(e.locals,void 0,n,t,r)}(n,t,r);case 232:case 264:return function(e,n,t){return Pv(e)?G(o.symbol.exports,o.symbol,e,n,t):G(o.symbol.members,o.symbol,e,n,t)}(n,t,r);case 267:return G(o.symbol.exports,o.symbol,n,t,r);case 188:case 323:case 211:case 265:case 293:return G(o.symbol.members,o.symbol,n,t,r);case 185:case 186:case 180:case 181:case 324:case 182:case 175:case 174:case 177:case 178:case 179:case 263:case 219:case 220:case 318:case 176:case 266:case 201:return o.locals&&dt.assertNode(o,du),G(o.locals,void 0,n,t,r)}}function Me(e){33554432&e.flags&&!function(e){const n=uM(e)?e:en(e.body,TN);return!!n&&n.statements.some(e=>FN(e)||ON(e))}(e)?e.flags|=128:e.flags&=-129}function Pe(e){const n=ZW(e),t=0!==n;return Ne(e,t?512:1024,t?110735:0),n}function Le(e,n,t){const r=F(n,t);return 106508&n&&(r.parent=o.symbol),W(r,e,n),r}function ke(e,n,t){switch(a.kind){case 268:V(e,n,t);break;case 308:if(rm(o)){V(e,n,t);break}default:dt.assertNode(a,du),a.locals||(a.locals=Qu(),Ce(a)),G(a.locals,void 0,e,n,t)}}function we(n){if(!(e.parseDiagnostics.length||33554432&n.flags||16777216&n.flags||hg(n))){const t=bl(n);if(void 0===t)return;D&&t>=119&&t<=127?e.bindDiagnostics.push(O(n,function(n){if(Zm(n))return fa.Identifier_expected_0_is_a_reserved_word_in_strict_mode_Class_definitions_are_automatically_in_strict_mode;if(e.externalModuleIndicator)return fa.Identifier_expected_0_is_a_reserved_word_in_strict_mode_Modules_are_automatically_in_strict_mode;return fa.Identifier_expected_0_is_a_reserved_word_in_strict_mode}(n),Of(n))):135===t?dk(e)&&ih(n)?e.bindDiagnostics.push(O(n,fa.Identifier_expected_0_is_a_reserved_word_at_the_top_level_of_a_module,Of(n))):65536&n.flags&&e.bindDiagnostics.push(O(n,fa.Identifier_expected_0_is_a_reserved_word_that_cannot_be_used_here,Of(n))):127===t&&16384&n.flags&&e.bindDiagnostics.push(O(n,fa.Identifier_expected_0_is_a_reserved_word_that_cannot_be_used_here,Of(n)))}}function Oe(n,t){if(t&&80===t.kind){const o=t;if(dD(r=o)&&("eval"===r.escapedText||"arguments"===r.escapedText)){const r=nm(e,t);e.bindDiagnostics.push(ZT(e,r.start,r.length,function(n){if(Zm(n))return fa.Code_contained_in_a_class_is_evaluated_in_JavaScript_s_strict_mode_which_does_not_allow_this_use_of_0_For_more_information_see_https_Colon_Slash_Slashdeveloper_mozilla_org_Slashen_US_Slashdocs_SlashWeb_SlashJavaScript_SlashReference_SlashStrict_mode;if(e.externalModuleIndicator)return fa.Invalid_use_of_0_Modules_are_automatically_in_strict_mode;return fa.Invalid_use_of_0_in_strict_mode}(n),vl(o)))}}var r}function Fe(e){!D||33554432&e.flags||Oe(e,e.name)}function We(n){if(t<2&&308!==a.kind&&268!==a.kind&&!sd(a)){const t=nm(e,n);e.bindDiagnostics.push(ZT(e,t.start,t.length,function(n){return Zm(n)?fa.Function_declarations_are_not_allowed_inside_blocks_in_strict_mode_when_targeting_ES5_Class_definitions_are_automatically_in_strict_mode:e.externalModuleIndicator?fa.Function_declarations_are_not_allowed_inside_blocks_in_strict_mode_when_targeting_ES5_Modules_are_automatically_in_strict_mode:fa.Function_declarations_are_not_allowed_inside_blocks_in_strict_mode_when_targeting_ES5}(n)))}}function ze(n,t,...r){const o=Zf(e,n.pos);e.bindDiagnostics.push(ZT(e,o.start,o.length,t,...r))}function Be(n,t,r,o){!function(n,t,r){const o=ZT(e,t.pos,t.end-t.pos,r);n?e.bindDiagnostics.push(o):e.bindSuggestionDiagnostics=re(e.bindSuggestionDiagnostics,{...o,category:2})}(n,{pos:Up(t,e),end:r.end},o)}function Ge(n){if(!n)return;PA(n,r),Kt&&(n.tracingPath=e.path);const t=D;if(He(n),n.kind>166){const e=r;r=n;const t=cz(n);0===t?X(n):function(e,n){const t=o,r=i,s=a,l=x;if(220===e.kind&&242!==e.body.kind&&(x=!0),1&n?(220!==e.kind&&(i=o),o=a=e,32&n&&(o.locals=Qu(),Ce(o))):2&n&&(a=e,32&n&&(a.locals=void 0)),4&n){const t=f,r=m,o=h,i=_,a=b,s=E,l=A,c=16&n&&!Mv(e,1024)&&!e.asteriskToken&&!!lh(e)||176===e.kind;c||(f=rz(2,void 0,void 0),144&n&&(f.node=e)),_=c||177===e.kind||Lh(e)&&(263===e.kind||219===e.kind)?ne():void 0,b=void 0,m=void 0,h=void 0,E=void 0,A=!1,X(e),e.flags&=-5633,!(1&f.flags)&&8&n&&Mp(e.body)&&(e.flags|=512,A&&(e.flags|=1024),e.endFlowNode=f),308===e.kind&&(e.flags|=I,e.endFlowNode=f),_&&(ae(_,f),f=pe(_),(177===e.kind||176===e.kind||Lh(e)&&(263===e.kind||219===e.kind))&&(e.returnFlowNode=f)),c||(f=t),m=r,h=o,_=i,b=a,E=s,A=l}else 64&n?(u=!1,X(e),dt.assertNotNode(e,dD),e.flags=u?256|e.flags:-257&e.flags):X(e);x=l,o=t,i=r,a=s}(n,t),r=e}else{const e=r;1===n.kind&&(r=n),Ve(n),r=e}D=t}function Ve(e){if(Mu(e))if(Lh(e))for(const n of e.jsDoc)Ge(n);else for(const n of e.jsDoc)PA(n,e),LA(n,!1)}function je(e){if(!D)for(const n of e){if(!_m(n))return;if(Ue(n))return void(D=!0)}}function Ue(n){const t=qp(e,n.expression);return'"use strict"'===t||"'use strict'"===t}function He(t){switch(t.kind){case 80:if(4096&t.flags){let e=t.parent;for(;e&&!M_(e);)e=e.parent;ke(e,524288,788968);break}case 110:return f&&(qd(t)||305===r.kind)&&(t.flowNode=f),we(t);case 167:f&&xh(t)&&(t.flowNode=f);break;case 237:case 108:t.flowNode=f;break;case 81:return function(n){"#constructor"===n.escapedText&&(e.parseDiagnostics.length||e.bindDiagnostics.push(O(n,fa.constructor_is_a_reserved_word,Of(n))))}(t);case 212:case 213:const i=t;f&&$(i)&&(i.flowNode=f),g_(i)&&function(e){110===e.expression.kind?Ye(e):l_(e)&&308===e.parent.parent.kind&&(hb(e.expression)?tn(e,e.parent):rn(e))}(i),Lh(i)&&e.commonJsModuleIndicator&&r_(i)&&!dz(a,"module")&&G(e.locals,void 0,i.expression,134217729,111550);break;case 227:switch(o_(t)){case 1:Je(t);break;case 2:!function(n){if(!qe(n))return;const t=e_(n.right);if(Tb(t)||o===e&&lz(e,t))return;if(hC(t)&&g(t.properties,lM))return void d(t.properties,Xe);const r=yg(n)?2097152:1049092,i=G(e.symbol.exports,e.symbol,n,67108864|r,0);y_(i,n)}(t);break;case 3:tn(t.left,t);break;case 6:!function(e){PA(e.left,e),PA(e.right,e),ln(e.left.expression,e.left,!1,!0)}(t);break;case 4:Ye(t);break;case 5:const n=t.left.expression;if(Lh(t)&&dD(n)){const e=dz(a,n.escapedText);if(uh(null==e?void 0:e.valueDeclaration)){Ye(t);break}}!function(n){var t;const r=cn(n.left.expression,a)||cn(n.left.expression,o);if(!Lh(n)&&!v_(r))return;const i=NT(n.left);if(dD(i)&&2097152&(null==(t=dz(o,i.escapedText))?void 0:t.flags))return;if(PA(n.left,n),PA(n.right,n),dD(n.left.expression)&&o===e&&lz(e,n.left.expression))Je(n);else if(Gg(n)){Le(n,67108868,"__computed");Ze(n,on(r,n.left.expression,sn(n.left),!1,!1))}else rn(nn(n.left,d_))}(t);break;case 0:break;default:dt.fail("Unknown binary expression special property assignment kind")}return function(e){D&&Gd(e.left)&&ob(e.operatorToken.kind)&&Oe(e,e.left)}(t);case 300:return function(e){D&&e.variableDeclaration&&Oe(e,e.variableDeclaration.name)}(t);case 221:return function(n){if(D&&80===n.expression.kind){const t=nm(e,n.expression);e.bindDiagnostics.push(ZT(e,t.start,t.length,fa.delete_cannot_be_called_on_an_identifier_in_strict_mode))}}(t);case 226:return function(e){D&&Oe(e,e.operand)}(t);case 225:return function(e){D&&(46!==e.operator&&47!==e.operator||Oe(e,e.operand))}(t);case 255:return function(e){D&&ze(e,fa.with_statements_are_not_allowed_in_strict_mode)}(t);case 257:return function(e){D&&SS(n)>=2&&(mu(e.statement)||XC(e.statement))&&ze(e.label,fa.A_label_is_not_allowed_here)}(t);case 198:return void(u=!0);case 183:break;case 169:return function(e){if(qM(e.parent)){const n=j_(e.parent);n?(dt.assertNode(n,du),n.locals??(n.locals=Qu()),G(n.locals,void 0,e,262144,526824)):Ne(e,262144,526824)}else if(196===e.parent.kind){const n=function(e){const n=ml(e,e=>e.parent&&eC(e.parent)&&e.parent.extendsType===e);return n&&n.parent}(e.parent);n?(dt.assertNode(n,du),n.locals??(n.locals=Qu()),G(n.locals,void 0,e,262144,526824)):Le(e,262144,z(e))}else Ne(e,262144,526824)}(t);case 170:return pn(t);case 261:return un(t);case 209:return t.flowNode=f,un(t);case 173:case 172:return function(e){const n=_d(e),t=n?13247:0;return fn(e,(n?98304:4)|(e.questionToken?16777216:0),t)}(t);case 304:case 305:return fn(t,4,0);case 307:return fn(t,8,900095);case 180:case 181:case 182:return Ne(t,131072,0);case 175:case 174:return fn(t,8192|(t.questionToken?16777216:0),jm(t)?0:103359);case 263:return function(n){e.isDeclarationFile||33554432&n.flags||Wg(n)&&(I|=4096);Fe(n),D?(We(n),ke(n,16,110991)):Ne(n,16,110991)}(t);case 177:return Ne(t,16384,0);case 178:return fn(t,32768,46015);case 179:return fn(t,65536,78783);case 185:case 318:case 324:case 186:return function(e){const n=F(131072,z(e));W(n,e,131072);const t=F(2048,"__type");W(t,e,2048),t.members=Qu(),t.members.set(n.escapedName,n)}(t);case 188:case 323:case 201:return function(e){return Le(e,2048,"__type")}(t);case 333:return function(e){J(e);const n=H_(e);n&&175!==n.kind&&W(n.symbol,n,32)}(t);case 211:return function(e){return Le(e,4096,"__object")}(t);case 219:case 220:return function(n){e.isDeclarationFile||33554432&n.flags||Wg(n)&&(I|=4096);f&&(n.flowNode=f);Fe(n);const t=n.name?n.name.escapedText:"__function";return Le(n,16,t)}(t);case 214:switch(o_(t)){case 7:return function(e){let n=cn(e.arguments[0]);const t=308===e.parent.parent.kind;n=on(n,e.arguments[0],t,!1,!1),an(e,n,!1)}(t);case 8:return function(e){if(!qe(e))return;const n=dn(e.arguments[0],void 0,(e,n)=>(n&&W(n,e,67110400),n));if(n){const t=1048580;G(n.exports,n,e,t,0)}}(t);case 9:return function(e){const n=cn(e.arguments[0].expression);n&&n.valueDeclaration&&W(n,n.valueDeclaration,32);an(e,n,!0)}(t);case 0:break;default:return dt.fail("Unknown call expression assignment declaration kind")}Lh(t)&&function(n){!e.commonJsModuleIndicator&&Wh(n,!1)&&qe(n)}(t);break;case 232:case 264:return D=!0,function(n){if(264===n.kind)ke(n,32,899503);else{Le(n,32,n.name?n.name.escapedText:"__class"),n.name&&N.add(n.name.escapedText)}const{symbol:t}=n,r=F(4194308,"prototype"),o=t.exports.get(r.escapedName);o&&(n.name&&PA(n.name,n),e.bindDiagnostics.push(O(o.declarations[0],fa.Duplicate_identifier_0,Tl(r))));t.exports.set(r.escapedName,r),r.parent=t}(t);case 265:return ke(t,64,788872);case 266:return ke(t,524288,788968);case 267:return function(e){return im(e)?ke(e,128,899967):ke(e,256,899327)}(t);case 268:return function(n){if(Me(n),pf(n))if(Mv(n,32)&&ze(n,fa.export_modifier_cannot_be_applied_to_ambient_modules_and_module_augmentations_since_they_are_always_visible),vf(n))Pe(n);else{let t;if(11===n.name.kind){const{text:e}=n.name;t=$E(e),void 0===t&&ze(n.name,fa.Pattern_0_can_have_at_most_one_Asterisk_character,e)}const r=Ne(n,512,110735);e.patternAmbientModules=re(e.patternAmbientModules,t&&!Qe(t)?{pattern:t,symbol:r}:void 0)}else{const e=Pe(n);if(0!==e){const{symbol:t}=n;t.constEnumOnlyModule=!(304&t.flags)&&2===e&&!1!==t.constEnumOnlyModule}}}(t);case 293:return function(e){return Le(e,4096,"__jsxAttributes")}(t);case 292:return function(e,n,t){return Ne(e,n,t)}(t,4,0);case 272:case 275:case 277:case 282:return Ne(t,2097152,2097152);case 271:return function(n){U(n.modifiers)&&e.bindDiagnostics.push(O(n,fa.Modifiers_cannot_appear_here));const t=uM(n.parent)?dk(n.parent)?n.parent.isDeclarationFile?void 0:fa.Global_module_exports_may_only_appear_in_declaration_files:fa.Global_module_exports_may_only_appear_in_module_files:fa.Global_module_exports_may_only_appear_at_top_level;t?e.bindDiagnostics.push(O(n,t)):(e.symbol.globalExports=e.symbol.globalExports||Qu(),G(e.symbol.globalExports,e.symbol,n,2097152,2097152))}(t);case 274:return function(e){e.name&&Ne(e,2097152,2097152)}(t);case 279:return function(e){o.symbol&&o.symbol.exports?e.exportClause?LN(e.exportClause)&&(PA(e.exportClause,e),G(o.symbol.exports,o.symbol,e.exportClause,2097152,2097152)):G(o.symbol.exports,o.symbol,e,8388608,0):Le(e,8388608,z(e))}(t);case 278:return function(e){if(o.symbol&&o.symbol.exports){const n=yg(e)?2097152:4,t=G(o.symbol.exports,o.symbol,e,n,-1);e.isExportEquals&&y_(t,e)}else Le(e,111551,z(e))}(t);case 308:return je(t.statements),function(){if(Me(e),dk(e))Ke();else if(om(e)){Ke();const n=e.symbol;G(e.symbol.exports,e.symbol,e,4,-1),e.symbol=n}}();case 242:if(!sd(t.parent))return;case 269:return je(t.statements);case 342:if(324===t.parent.kind)return pn(t);if(323!==t.parent.kind)break;case 349:const s=t;return Ne(s,s.isBracketed||s.typeExpression&&317===s.typeExpression.type.kind?16777220:4,0);case 347:case 339:case 341:return(l||(l=[])).push(t);case 340:return Ge(t.typeExpression);case 352:return(p||(p=[])).push(t)}}function Ke(){Le(e,512,`"${qE(e.fileName)}"`)}function qe(n){return(!e.externalModuleIndicator||!0===e.externalModuleIndicator)&&(e.commonJsModuleIndicator||(e.commonJsModuleIndicator=n,e.externalModuleIndicator||Ke()),!0)}function Je(e){if(!qe(e))return;const n=dn(e.left.expression,void 0,(e,n)=>(n&&W(n,e,67110400),n));if(n){const t=gg(e.right)&&(n_(e.left.expression)||r_(e.left.expression))?2097152:1048580;PA(e.left,e),G(n.exports,n,e.left,t,0)}}function Xe(n){G(e.symbol.exports,e.symbol,n,69206016,0)}function Ye(e){dt.assert(Lh(e));if(MC(e)&&_C(e.left)&&uD(e.left.name)||_C(e)&&uD(e.name))return;const n=rh(e,!1,!1);switch(n.kind){case 263:case 219:let t=n.symbol;if(MC(n.parent)&&64===n.parent.operatorToken.kind){const e=n.parent.left;l_(e)&&hb(e.expression)&&(t=cn(e.expression.expression,i))}t&&t.valueDeclaration&&(t.members=t.members||Qu(),Gg(e)?$e(e,t,t.members):G(t.members,t,e,67108868,0),W(t,t.valueDeclaration,32));break;case 177:case 173:case 175:case 178:case 179:case 176:const r=n.parent,o=Pv(n)?r.symbol.exports:r.symbol.members;Gg(e)?$e(e,r.symbol,o):G(o,r.symbol,e,67108868,0,!0);break;case 308:if(Gg(e))break;n.commonJsModuleIndicator?G(n.symbol.exports,n.symbol,e,1048580,0):Ne(e,1,111550);break;case 268:break;default:dt.failBadSyntaxKind(n)}}function $e(e,n,t){G(t,n,e,4,0,!0,!0),Ze(e,n)}function Ze(e,n){n&&(n.assignmentDeclarationMembers||(n.assignmentDeclarationMembers=new Map)).set(cB(e),e)}function tn(e,n){const t=e.expression,r=t.expression;PA(r,t),PA(t,e),PA(e,n),ln(r,e,!0,!0)}function rn(e){dt.assert(!dD(e)),PA(e.expression,e),ln(e.expression,e,!1,!1)}function on(n,t,r,o,i){if(2097152&(null==n?void 0:n.flags))return n;if(r&&!o){const r=67110400,o=110735;n=dn(t,n,(n,t,i)=>{if(t)return W(t,n,r),t;return G(i?i.exports:e.jsGlobalAugmentations||(e.jsGlobalAugmentations=Qu()),i,n,r,o)})}return i&&n&&n.valueDeclaration&&W(n,n.valueDeclaration,32),n}function an(e,n,t){if(!n||!function(e){if(1072&e.flags)return!0;const n=e.valueDeclaration;if(n&&yC(n))return!!Xh(n);let t=n?fN(n)?n.initializer:MC(n)?n.right:_C(n)&&MC(n.parent)?n.parent.right:void 0:void 0;if(t=t&&e_(t),t){const e=hb(fN(n)?n.name:MC(n)?n.left:n);return!!Yh(!MC(t)||57!==t.operatorToken.kind&&61!==t.operatorToken.kind?t:t.right,e)}return!1}(n))return;const r=t?n.members||(n.members=Qu()):n.exports||(n.exports=Qu());let o=0,i=0;ld(Xh(e))?(o=8192,i=103359):yC(e)&&i_(e)&&(U(e.arguments[2].properties,e=>{const n=Dl(e);return!!n&&dD(n)&&"set"===vl(n)})&&(o|=65540,i|=78783),U(e.arguments[2].properties,e=>{const n=Dl(e);return!!n&&dD(n)&&"get"===vl(n)})&&(o|=32772,i|=46015)),0===o&&(o=4,i=0),G(r,n,e,67108864|o,-67108865&i)}function sn(e){return MC(e.parent)?308===function(e){for(;MC(e.parent);)e=e.parent;return e.parent}(e.parent).parent.kind:308===e.parent.parent.kind}function ln(e,n,t,r){let i=cn(e,a)||cn(e,o);const s=sn(n);i=on(i,n.expression,s,t,r),an(n,i,t)}function cn(e,n=o){if(dD(e))return dz(n,e.escapedText);{const n=cn(e.expression);return n&&n.exports&&n.exports.get(f_(e))}}function dn(n,t,r){if(lz(e,n))return e.symbol;if(dD(n))return r(n,cn(n),t);{const e=dn(n.expression,t,r),o=u_(n);return uD(o)&&dt.fail("unexpected PrivateIdentifier"),r(o,e&&e.exports&&e.exports.get(f_(n)),e)}}function un(e){if(D&&Oe(e,e.name),!xd(e.name)){const n=261===e.kind?e:e.parent.parent;!Lh(e)||!Bh(n)||oc(e)||32&sl(e)?df(e)?ke(e,2,111551):ey(e)?Ne(e,1,111551):Ne(e,1,111550):Ne(e,2097152,2097152)}}function pn(e){if((342!==e.kind||324===o.kind)&&(!D||33554432&e.flags||Oe(e,e.name),xd(e.name)?Le(e,1,"__"+e.parent.parameters.indexOf(e)):Ne(e,1,111551),tl(e,e.parent))){const n=e.parent.parent;G(n.symbol.members,n.symbol,e,4|(e.questionToken?16777216:0),0)}}function fn(n,t,r){return e.isDeclarationFile||33554432&n.flags||!Wg(n)||(I|=4096),f&&Um(n)&&(n.flowNode=f),Gg(n)?Le(n,t,"__computed"):Ne(n,t,r)}}function sz(e,n){return 267===e.kind&&(!im(e)||LS(n))}function lz(e,n){let t=0;const r=Je();for(r.enqueue(n);!r.isEmpty()&&t<100;){if(t++,n_(n=r.dequeue())||r_(n))return!0;if(dD(n)){const t=dz(e,n.escapedText);if(t&&t.valueDeclaration&&fN(t.valueDeclaration)&&t.valueDeclaration.initializer){const e=t.valueDeclaration.initializer;r.enqueue(e),sb(e,!0)&&(r.enqueue(e.left),r.enqueue(e.right))}}}return!1}function cz(e){switch(e.kind){case 232:case 264:case 267:case 211:case 188:case 323:case 293:return 1;case 265:return 65;case 268:case 266:case 201:case 182:return 33;case 308:return 37;case 178:case 179:case 175:if(Um(e))return 173;case 177:case 263:case 174:case 180:case 324:case 318:case 185:case 181:case 186:case 176:return 45;case 352:return 37;case 219:case 220:return 61;case 269:return 4;case 173:return e.initializer?4:0;case 300:case 249:case 250:case 251:case 270:return 34;case 242:return ad(e.parent)||kD(e.parent)?0:34}return 0}function dz(e,n){var t,r,o,i;const a=null==(r=null==(t=en(e,du))?void 0:t.locals)?void 0:r.get(n);return a?a.exportSymbol??a:uM(e)&&e.jsGlobalAugmentations&&e.jsGlobalAugmentations.has(n)?e.jsGlobalAugmentations.get(n):cu(e)?null==(i=null==(o=e.symbol)?void 0:o.exports)?void 0:i.get(n):void 0}function uz(e,n,t,r,o,i,a,s,l,c){return function(u=()=>!0){const p=[],f=[];return{walkType:e=>{try{return m(e),{visitedTypes:Me(p),visitedSymbols:Me(f)}}finally{I(p),I(f)}},walkSymbol:e=>{try{return g(e),{visitedTypes:Me(p),visitedSymbols:Me(f)}}finally{I(p),I(f)}}};function m(e){if(!e)return;if(p[e.id])return;p[e.id]=e;if(!g(e.symbol)){if(524288&e.flags){const t=e,o=t.objectFlags;4&o&&function(e){m(e.target),d(c(e),m)}(e),32&o&&function(e){m(e.typeParameter),m(e.constraintType),m(e.templateType),m(e.modifiersType)}(e),3&o&&(_(n=e),d(n.typeParameters,m),d(r(n),m),m(n.thisType)),24&o&&_(t)}var n;262144&e.flags&&function(e){m(s(e))}(e),3145728&e.flags&&function(e){d(e.types,m)}(e),4194304&e.flags&&function(e){m(e.type)}(e),8388608&e.flags&&function(e){m(e.objectType),m(e.indexType),m(e.constraint)}(e)}}function h(r){const o=n(r);o&&m(o.type),d(r.typeParameters,m);for(const e of r.parameters)g(e);m(e(r)),m(t(r))}function _(e){const n=o(e);for(const t of n.indexInfos)m(t.keyType),m(t.type);for(const t of n.callSignatures)h(t);for(const t of n.constructSignatures)h(t);for(const t of n.properties)g(t)}function g(e){if(!e)return!1;const n=dB(e);if(f[n])return!1;if(f[n]=e,!u(e))return!0;return m(i(e)),e.exports&&e.exports.forEach(g),d(e.declarations,e=>{if(e.type&&187===e.type.kind){const n=e.type;g(a(l(n.exprName)))}}),!1}}}var pz={};t(pz,{RelativePreference:()=>mz,countPathComponents:()=>Dz,forEachFileNameOfModule:()=>Mz,getLocalModuleSpecifierBetweenFileNames:()=>Az,getModuleSpecifier:()=>gz,getModuleSpecifierPreferences:()=>hz,getModuleSpecifiers:()=>Sz,getModuleSpecifiersWithCacheInfo:()=>Ez,getNodeModulesPackageName:()=>yz,tryGetJSExtensionForFile:()=>Vz,tryGetModuleSpecifiersFromCache:()=>bz,tryGetRealFileNameForNonJsDeclarationFileName:()=>Bz,updateModuleSpecifier:()=>_z});var fz=fn(e=>{try{let n=e.indexOf("/");if(0!==n)return new RegExp(e);const t=e.lastIndexOf("/");if(n===t)return new RegExp(e);for(;(n=e.indexOf("/",n+1))!==t;)if("\\"!==e[n-1])return new RegExp(e);const r=e.substring(t+1).replace(/[^iu]/g,"");return e=e.substring(1,t),new RegExp(e,r)}catch{return}}),mz=(e=>(e[e.Relative=0]="Relative",e[e.NonRelative=1]="NonRelative",e[e.Shortest=2]="Shortest",e[e.ExternalNonRelative=3]="ExternalNonRelative",e))(mz||{});function hz({importModuleSpecifierPreference:e,importModuleSpecifierEnding:n,autoImportSpecifierExcludeRegexes:t},r,o,i,a){const s=l();return{excludeRegexes:t,relativePreference:void 0!==a?Ds(a)?0:1:"relative"===e?0:"non-relative"===e?1:"project-relative"===e?3:2,getAllowedEndingsInPreferredOrder:e=>{const n=Hz(i,r,o),t=e!==n?l(e):s,a=AS(o);if(99===(e??n)&&3<=a&&a<=99)return qW(o,i.fileName)?[3,2]:[2];if(1===AS(o))return 2===t?[2,1]:[1,2];const c=qW(o,i.fileName);switch(t){case 2:return c?[2,3,0,1]:[2,0,1];case 3:return[3,0,2,1];case 1:return c?[1,0,3,2]:[1,0,2];case 0:return c?[0,1,3,2]:[0,1,2];default:dt.assertNever(t)}}};function l(e){if(void 0!==a){if(WE(a))return 2;if(Fn(a,"/index"))return 1}return VE(n,e??Hz(i,r,o),o,Mh(i)?i:void 0)}}function _z(e,n,t,r,o,i,a={}){const s=vz(e,n,t,r,o,hz({},o,e,n,i),{},a);if(s!==i)return s}function gz(e,n,t,r,o,i={}){return vz(e,n,t,r,o,hz({},o,e,n),{},i)}function yz(e,n,t,r,o,i={}){const a=Rz(n.fileName,r);return p(Pz(a,t,r,o,e,i),t=>Fz(t,a,n,r,e,o,!0,i.overrideImportMode))}function vz(e,n,t,r,o,i,a,s={}){const l=Rz(t,o);return p(Pz(l,r,o,a,e,s),t=>Fz(t,l,n,o,e,a,void 0,s.overrideImportMode))||Iz(r,l,e,o,s.overrideImportMode||Hz(n,o,e),i)}function bz(e,n,t,r,o={}){const i=Tz(e,n,t,r,o);return i[1]&&{kind:i[0],moduleSpecifiers:i[1],computedWithoutCache:!1}}function Tz(e,n,t,r,o={}){var i;const a=Ep(e);if(!a)return s;const l=null==(i=t.getModuleSpecifierCache)?void 0:i.call(t),c=null==l?void 0:l.get(n.path,a.path,r,o);return[null==c?void 0:c.kind,null==c?void 0:c.moduleSpecifiers,a,null==c?void 0:c.modulePaths,l]}function Sz(e,n,t,r,o,i,a={}){return Ez(e,n,t,r,o,i,a,!1).moduleSpecifiers}function Ez(e,n,t,r,o,i,a={},l){let c=!1;const u=function(e,n){var t;const r=null==(t=e.declarations)?void 0:t.find(e=>mf(e)&&(!yf(e)||!Ds(Hg(e.name))));if(r)return r.name.text;const o=F(e.declarations,e=>{var t,r,o,i;if(!bN(e))return;const a=c(e);if(!((null==(t=null==a?void 0:a.parent)?void 0:t.parent)&&TN(a.parent)&&pf(a.parent.parent)&&uM(a.parent.parent.parent)))return;const s=null==(i=null==(o=null==(r=a.parent.parent.symbol.exports)?void 0:r.get("export="))?void 0:o.valueDeclaration)?void 0:i.expression;if(!s)return;const l=n.getSymbolAtLocation(s);if(!l)return;if((2097152&(null==l?void 0:l.flags)?n.getAliasedSymbol(l):l)===e.symbol)return a.parent.parent;function c(e){for(;8&e.flags;)e=e.parent;return e}}),i=o[0];if(i)return i.name.text}(e,n);if(u)return{kind:"ambient",moduleSpecifiers:l&&xz(u,i.autoImportSpecifierExcludeRegexes)?s:[u],computedWithoutCache:c};let[p,f,m,h,_]=Tz(e,r,o,i,a);if(f)return{kind:p,moduleSpecifiers:f,computedWithoutCache:c};if(!m)return{kind:void 0,moduleSpecifiers:s,computedWithoutCache:c};c=!0,h||(h=kz(Rz(r.fileName,o),m.originalFileName,o,t,a));const g=function(e,n,t,r,o,i={},a){const l=Rz(t.fileName,r),c=hz(o,r,n,t),u=Mh(t)&&d(e,e=>d(r.getFileIncludeReasons().get(Ki(e.path,r.getCurrentDirectory(),l.getCanonicalFileName)),e=>{if(3!==e.kind||e.file!==t.path)return;const n=r.getModeForResolutionAtIndex(t,e.index),o=i.overrideImportMode??r.getDefaultResolutionModeForFile(t);if(n!==o&&void 0!==n&&void 0!==o)return;const a=tH(t,e.index).text;return 1===c.relativePreference&&Si(a)?void 0:a}));if(u)return{kind:void 0,moduleSpecifiers:[u],computedWithoutCache:!0};const p=U(e,e=>e.isInNodeModules);let f,m,h,_;for(const s of e){const e=s.isInNodeModules?Fz(s,l,t,r,n,o,void 0,i.overrideImportMode):void 0;if(e&&(!a||!xz(e,c.excludeRegexes))&&(f=re(f,e),s.isRedirect))return{kind:"node_modules",moduleSpecifiers:f,computedWithoutCache:!0};const d=Iz(s.path,l,n,r,i.overrideImportMode||t.impliedNodeFormat,c,s.isRedirect||!!e);!d||a&&xz(d,c.excludeRegexes)||(s.isRedirect?h=re(h,d):Ei(d)?iW(d)?_=re(_,d):m=re(m,d):(a||!p||s.isInNodeModules)&&(_=re(_,d)))}return(null==m?void 0:m.length)?{kind:"paths",moduleSpecifiers:m,computedWithoutCache:!0}:(null==h?void 0:h.length)?{kind:"redirect",moduleSpecifiers:h,computedWithoutCache:!0}:(null==f?void 0:f.length)?{kind:"node_modules",moduleSpecifiers:f,computedWithoutCache:!0}:{kind:"relative",moduleSpecifiers:_??s,computedWithoutCache:!0}}(h,t,r,o,i,a,l);return null==_||_.set(r.path,m.path,i,a,g.kind,h,g.moduleSpecifiers),g}function Az(e,n,t,r,o,i={}){return Iz(n,Rz(e.fileName,r),t,r,i.overrideImportMode??e.impliedNodeFormat,hz(o,r,t,e))}function xz(e,n){return U(n,n=>{var t;return!!(null==(t=fz(n))?void 0:t.test(e))})}function Rz(e,n){e=Vi(e,n.getCurrentDirectory());const t=Hn(!n.useCaseSensitiveFileNames||n.useCaseSensitiveFileNames()),r=Mi(e);return{getCanonicalFileName:t,importingSourceFileName:e,sourceDirectory:r,canonicalSourceDirectory:t(r)}}function Iz(e,n,t,r,o,{getAllowedEndingsInPreferredOrder:i,relativePreference:a,excludeRegexes:s},l){const{baseUrl:c,paths:u,rootDirs:p}=t;if(l&&!u)return;const{sourceDirectory:f,canonicalSourceDirectory:m,getCanonicalFileName:h}=n,_=i(o),g=p&&function(e,n,t,r,o,i){const a=Wz(n,e,r);if(void 0===a)return;const s=Wz(t,e,r),l=P(s,e=>D(a,n=>Xi(aa(e,n,r)))),c=Sn(l,HE);if(!c)return;return zz(c,o,i)}(p,e,f,h,_,t)||zz(Xi(aa(f,e,h)),_,t);if(!c&&!u&&!NS(t)||0===a)return l?void 0:g;const y=Vi($y(t,r)||c,r.getCurrentDirectory()),v=jz(e,y,h);if(!v)return l?void 0:g;const b=l?void 0:function(e,n,t,r,o,i){var a,s,l;if(!r.readFile||!NS(t))return;const c=Nz(r,n);if(!c)return;const u=zi(c,"package.json"),p=null==(s=null==(a=r.getPackageJsonInfoCache)?void 0:a.call(r))?void 0:s.getPackageJsonInfo(u);if(NF(p)||!r.fileExists(u))return;const f=(null==p?void 0:p.contents.packageJsonContent)||Mb(r.readFile(u)),m=null==f?void 0:f.imports;if(!m)return;const h=RF(t,o);return null==(l=d(Ce(m),n=>{if(!Xn(n,"#")||"#"===n||Xn(n,"#/"))return;const o=Fn(n,"/")?1:n.includes("*")?2:0;return Oz(t,r,e,c,n,m[n],h,o,!0,i)}))?void 0:l.moduleFileToTry}(e,f,t,r,o,function(e){const n=e.indexOf(3);return n>-1&&n<e.indexOf(2)}(_)),T=l||void 0===b?u&&wz(v,u,_,y,h,r,t):void 0;if(l)return T;const S=b??(void 0===T&&void 0!==c?zz(v,_,t):T);if(!S)return g;const E=xz(g,s),A=xz(S,s);if(!E&&A)return g;if(E&&!A)return S;if(1===a&&!Si(S))return S;if(3===a&&!Si(S)){const o=t.configFilePath?Ki(Mi(t.configFilePath),r.getCurrentDirectory(),n.getCanonicalFileName):n.getCanonicalFileName(r.getCurrentDirectory()),i=Ki(e,o,h),a=Xn(m,o),s=Xn(i,o);if(a&&!s||!a&&s)return S;return function(e,n,t){return e===n||void 0!==e&&void 0!==n&&0===ta(e,n,t)}(Nz(r,Mi(i)),Nz(r,f),!zy(r))?g:S}return Uz(S)||Dz(g)<Dz(S)?g:S}function Dz(e){let n=0;for(let t=Xn(e,"./")?2:0;t<e.length;t++)47===e.charCodeAt(t)&&n++;return n}function Cz(e,n){return kn(n.isRedirect,e.isRedirect)||HE(e.path,n.path)}function Nz(e,n){return e.getNearestAncestorDirectoryWithPackageJson?e.getNearestAncestorDirectoryWithPackageJson(n):kW(e,n,n=>e.fileExists(zi(n,"package.json"))?n:void 0)}function Mz(e,n,t,r,o){var i,a;const l=By(t),c=t.getCurrentDirectory(),u=t.isSourceOfProjectReferenceRedirect(n)?null==(i=t.getRedirectFromSourceFile(n))?void 0:i.outputDts:void 0,p=Ki(n,c,l),f=t.redirectTargetsMap.get(p)||s,m=[...u?[u]:s,n,...f].map(e=>Vi(e,c));let h=!g(m,FA);if(!r){const e=d(m,e=>!(h&&FA(e))&&o(e,u===e));if(e)return e}const _=null==(a=t.getSymlinkCache)?void 0:a.call(t).getSymlinkedDirectoriesByRealpath(),y=Vi(n,c);return _&&kW(t,Mi(y),n=>{const t=_.get(Ji(Ki(n,c,l)));if(t)return!oa(e,n,l)&&d(m,e=>{if(!oa(e,n,l))return;const r=aa(n,e,l);for(const n of t){const t=Bi(n,r),i=o(t,e===u);if(h=!0,i)return i}})})||(r?d(m,e=>h&&FA(e)?void 0:o(e,e===u)):void 0)}function Pz(e,n,t,r,o,i={}){var a;const s=Ki(e.importingSourceFileName,t.getCurrentDirectory(),By(t)),l=Ki(n,t.getCurrentDirectory(),By(t)),c=null==(a=t.getModuleSpecifierCache)?void 0:a.call(t);if(c){const e=c.get(s,l,r,i);if(null==e?void 0:e.modulePaths)return e.modulePaths}const d=kz(e,n,t,o,i);return c&&c.setModulePaths(s,l,r,i,d),d}var Lz=["dependencies","peerDependencies","optionalDependencies"];function kz(e,n,t,r,o){var i,a;const l=null==(i=t.getModuleResolutionCache)?void 0:i.call(t),c=null==(a=t.getSymlinkCache)?void 0:a.call(t);if(l&&c&&t.readFile&&!iW(e.importingSourceFileName)){dt.type(t);const n=yW(l.getPackageJsonInfoCache(),t,{}),i=vW(Mi(e.importingSourceFileName),n);if(i){const e=function(e){let n;for(const t of Lz){const r=e[t];r&&"object"==typeof r&&(n=K(n,Ce(r)))}return n}(i.contents.packageJsonContent);for(const n of e||s){const e=KF(n,zi(i.packageDirectory,"package.json"),r,t,l,void 0,o.overrideImportMode);c.setSymlinksFromResolution(e.resolvedModule)}}}const d=new Map;Mz(e.importingSourceFileName,n,t,!0,(n,t)=>{const r=iW(n);d.set(n,{path:e.getCanonicalFileName(n),isRedirect:t,isInNodeModules:r})});const u=[];for(let s=e.canonicalSourceDirectory;0!==d.size;){const e=Ji(s);let n;d.forEach(({path:t,isRedirect:r,isInNodeModules:o},i)=>{Xn(t,e)&&((n||(n=[])).push({path:i,isRedirect:r,isInNodeModules:o}),d.delete(i))}),n&&(n.length>1&&n.sort(Cz),u.push(...n));const t=Mi(s);if(t===s)break;s=t}if(d.size){const e=Le(d.entries(),([e,{isRedirect:n,isInNodeModules:t}])=>({path:e,isRedirect:n,isInNodeModules:t}));e.length>1&&e.sort(Cz),u.push(...e)}return u}function wz(e,n,t,r,o,i,a){for(const l in n)for(const i of n[l]){const n=ji(i),c=jz(n,r,o)??n,d=c.indexOf("*"),u=t.map(n=>({ending:n,value:zz(e,[n],a)}));if(iA(c)&&u.push({ending:void 0,value:e}),-1!==d){const e=c.substring(0,d),n=c.substring(d+1);for(const{ending:t,value:r}of u)if(r.length>=e.length+n.length&&Xn(r,e)&&Fn(r,n)&&s({ending:t,value:r})){const t=r.substring(e.length,r.length-n.length);if(!Si(t))return _x(l,t)}}else if(U(u,e=>0!==e.ending&&c===e.value)||U(u,e=>0===e.ending&&c===e.value&&s(e)))return l}function s({ending:n,value:t}){return 0!==n||t===zz(e,[n],a,i)}}function Oz(e,n,t,r,o,i,a,s,l,c){if("string"==typeof i){const a=!zy(n),d=()=>n.getCommonSourceDirectory(),u=l&&fj(t,e,a,d),p=l&&uj(t,e,a,d),f=Vi(zi(r,i),void 0),m=zE(t)?qE(t)+Vz(t,e):void 0,h=c&&BE(t);switch(s){case 0:if(m&&0===ta(m,f,a)||0===ta(t,f,a)||u&&0===ta(u,f,a)||p&&0===ta(p,f,a))return{moduleFileToTry:o};break;case 1:if(h&&ra(t,f,a)){const e=aa(f,t,!1);return{moduleFileToTry:Vi(zi(zi(o,i),e),void 0)}}if(m&&ra(f,m,a)){const e=aa(f,m,!1);return{moduleFileToTry:Vi(zi(zi(o,i),e),void 0)}}if(!h&&ra(f,t,a)){const e=aa(f,t,!1);return{moduleFileToTry:Vi(zi(zi(o,i),e),void 0)}}if(u&&ra(f,u,a)){const e=aa(f,u,!1);return{moduleFileToTry:zi(o,e)}}if(p&&ra(f,p,a)){const n=$i(aa(f,p,!1),Gz(p,e));return{moduleFileToTry:zi(o,n)}}break;case 2:const n=f.indexOf("*"),r=f.slice(0,n),s=f.slice(n+1);if(h&&Xn(t,r,a)&&Fn(t,s,a)){const e=t.slice(r.length,t.length-s.length);return{moduleFileToTry:_x(o,e)}}if(m&&Xn(m,r,a)&&Fn(m,s,a)){const e=m.slice(r.length,m.length-s.length);return{moduleFileToTry:_x(o,e)}}if(!h&&Xn(t,r,a)&&Fn(t,s,a)){const e=t.slice(r.length,t.length-s.length);return{moduleFileToTry:_x(o,e)}}if(u&&Xn(u,r,a)&&Fn(u,s,a)){const e=u.slice(r.length,u.length-s.length);return{moduleFileToTry:_x(o,e)}}if(p&&Xn(p,r,a)&&Fn(p,s,a)){const n=p.slice(r.length,p.length-s.length),t=_x(o,n),i=Vz(p,e);return i?{moduleFileToTry:$i(t,i)}:void 0}}}else{if(Array.isArray(i))return d(i,i=>Oz(e,n,t,r,o,i,a,s,l,c));if("object"==typeof i&&null!==i)for(const d of Ce(i))if("default"===d||a.indexOf(d)>=0||MW(a,d)){const u=i[d],p=Oz(e,n,t,r,o,u,a,s,l,c);if(p)return p}}}function Fz({path:e,isRedirect:n},{getCanonicalFileName:t,canonicalSourceDirectory:r},o,i,a,s,l,c){if(!i.fileExists||!i.readFile)return;const u=qA(e);if(!u)return;const p=hz(s,i,a,o).getAllowedEndingsInPreferredOrder();let f=e,m=!1;if(!l){let n,t=u.packageRootIndex;for(;;){const{moduleFileToTry:r,packageRootPath:o,blockedByExports:s,verbatimFromExports:l}=v(t);if(1!==AS(a)){if(s)return;if(l)return r}if(o){f=o,m=!0;break}if(n||(n=r),t=e.indexOf(pi,t+1),-1===t){f=zz(n,p,a,i);break}}}if(n&&!m)return;const h=i.getGlobalTypingsCacheLocation&&i.getGlobalTypingsCacheLocation(),_=t(f.substring(0,u.topLevelNodeModulesIndex));if(!(Xn(r,_)||h&&Xn(t(h),_)))return;const g=f.substring(u.topLevelPackageNameIndex+1),y=VW(g);return 1===AS(a)&&y===g?void 0:y;function v(n){var r,s;const l=e.substring(0,n),f=zi(l,"package.json");let m=e,h=!1;const _=null==(s=null==(r=i.getPackageJsonInfoCache)?void 0:r.call(i))?void 0:s.getPackageJsonInfo(f);if(CF(_)||void 0===_&&i.fileExists(f)){const n=(null==_?void 0:_.contents.packageJsonContent)||Mb(i.readFile(f)),r=c||Hz(o,i,a);if(CS(a)){const t=VW(l.substring(u.topLevelPackageNameIndex+1)),o=RF(a,r),s=(null==n?void 0:n.exports)?function(e,n,t,r,o,i,a){return"object"==typeof i&&null!==i&&!Array.isArray(i)&&RW(i)?d(Ce(i),s=>{const l=Vi(zi(o,s),void 0),c=Fn(s,"/")?1:s.includes("*")?2:0;return Oz(e,n,t,r,l,i[s],a,c,!1,!1)}):Oz(e,n,t,r,o,i,a,0,!1,!1)}(a,i,e,l,t,n.exports,o):void 0;if(s)return{...s,verbatimFromExports:!0};if(null==n?void 0:n.exports)return{moduleFileToTry:e,blockedByExports:!0}}const s=(null==n?void 0:n.typesVersions)?yF(n.typesVersions):void 0;if(s){const n=wz(e.slice(l.length+1),s.paths,p,l,t,i,a);void 0===n?h=!0:m=zi(l,n)}const g=(null==n?void 0:n.typings)||(null==n?void 0:n.types)||(null==n?void 0:n.main)||"index.js";if(Qe(g)&&(!h||!lA(ZE(s.paths),g))){const e=Ki(g,l,t),r=t(m);if(qE(e)===qE(r))return{packageRootPath:l,moduleFileToTry:m};if("module"!==(null==n?void 0:n.type)&&!Ri(r,wE)&&Xn(r,e)&&Mi(r)===qi(e)&&"index"===qE(Pi(r)))return{packageRootPath:l,moduleFileToTry:m}}}else{const e=t(m.substring(u.packageRootIndex+1));if("index.d.ts"===e||"index.js"===e||"index.ts"===e||"index.tsx"===e)return{moduleFileToTry:m,packageRootPath:l}}return{moduleFileToTry:m}}}function Wz(e,n,t){return F(n,n=>{const r=jz(e,n,t);return void 0!==r&&Uz(r)?void 0:r})}function zz(e,n,t,r){if(Ri(e,[".json",".mjs",".cjs"]))return e;const o=qE(e);if(e===o)return e;const i=n.indexOf(2),a=n.indexOf(3);if(Ri(e,[".mts",".cts"])&&-1!==a&&a<i)return e;if(Ri(e,[".d.mts",".mts",".d.cts",".cts"]))return o+Gz(e,t);if(!Ri(e,[".d.ts"])&&Ri(e,[".ts"])&&e.includes(".d."))return Bz(e);switch(n[0]){case 0:const a=Wn(o,"/index");return r&&a!==o&&function(e,n){if(!e.fileExists)return;const t=M(OE({allowJs:!0},[{extension:"node",isMixedContent:!1},{extension:"json",isMixedContent:!1,scriptKind:6}]));for(const r of t){const t=n+r;if(e.fileExists(t))return t}}(r,a)?o:a;case 1:return o;case 2:return o+Gz(e,t);case 3:if(yk(e)){const r=n.findIndex(e=>0===e||1===e);return-1!==r&&r<i?o:o+Gz(e,t)}return e;default:return dt.assertNever(n[0])}}function Bz(e){const n=Pi(e);if(!Fn(e,".ts")||!n.includes(".d.")||Ri(n,[".d.ts"]))return;const t=XE(e,".ts"),r=t.substring(t.lastIndexOf("."));return t.substring(0,t.indexOf(".d."))+r}function Gz(e,n){return Vz(e,n)??dt.fail(`Extension ${rA(e)} is unsupported:: FileName:: ${e}`)}function Vz(e,n){const t=iA(e);switch(t){case".ts":case".d.ts":return".js";case".tsx":return 1===n.jsx?".jsx":".js";case".js":case".jsx":case".json":return t;case".d.mts":case".mts":case".mjs":return".mjs";case".d.cts":case".cts":case".cjs":return".cjs";default:return}}function jz(e,n,t){const r=ca(n,e,n,t,!1);return yi(r)?void 0:r}function Uz(e){return Xn(e,"..")}function Hz(e,n,t){return Mh(e)?n.getDefaultResolutionModeForFile(e):JU(e,t)}var Kz,qz,Jz,Xz=/^".+"$/,Yz="(anonymous)",$z=1,Qz=1,Zz=1,eB=1,nB=(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.IsUndefined=16777216]="IsUndefined",e[e.IsNull=33554432]="IsNull",e[e.IsUndefinedOrNull=50331648]="IsUndefinedOrNull",e[e.All=134217727]="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.VoidFacts=9830144]="VoidFacts",e[e.UndefinedFacts=26607360]="UndefinedFacts",e[e.NullFacts=42917664]="NullFacts",e[e.EmptyObjectStrictFacts=83427327]="EmptyObjectStrictFacts",e[e.EmptyObjectFacts=83886079]="EmptyObjectFacts",e[e.UnknownFacts=83886079]="UnknownFacts",e[e.AllTypeofNE=556800]="AllTypeofNE",e[e.OrFactsMask=8256]="OrFactsMask",e[e.AndFactsMask=134209471]="AndFactsMask",e))(nB||{}),tB=new Map(Object.entries({string:256,number:512,bigint:1024,boolean:2048,symbol:4096,undefined:524288,object:8192,function:16384})),rB=(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",e[e.RestBindingElement=32]="RestBindingElement",e[e.TypeOnly=64]="TypeOnly",e))(rB||{}),oB=(e=>(e[e.None=0]="None",e[e.BivariantCallback=1]="BivariantCallback",e[e.StrictCallback=2]="StrictCallback",e[e.IgnoreReturnTypes=4]="IgnoreReturnTypes",e[e.StrictArity=8]="StrictArity",e[e.StrictTopSignature=16]="StrictTopSignature",e[e.Callback=3]="Callback",e))(oB||{}),iB=Zn(fB,function(e){return!hd(e)}),aB=new Map(Object.entries({Uppercase:0,Lowercase:1,Capitalize:2,Uncapitalize:3,NoInfer:4})),sB=class{};function lB(){this.flags=0}function cB(e){return e.id||(e.id=Qz,Qz++),e.id}function dB(e){return e.id||(e.id=$z,$z++),e.id}function uB(e,n){const t=ZW(e);return 1===t||n&&2===t}function pB(e){var n,t,r,o,i=[],a=e=>{i.push(e)},l=GT.getSymbolConstructor(),u=GT.getTypeConstructor(),f=GT.getSignatureConstructor(),m=0,h=0,_=0,E=0,R=0,C=0,L=!1,k=Qu(),w=[1],O=e.getCompilerOptions(),W=SS(O),G=ES(O),V=!!O.experimentalDecorators,j=FS(O),H=KS(O),q=DS(O),X=US(O,"strictNullChecks"),$=US(O,"strictFunctionTypes"),Q=US(O,"strictBindCallApply"),Z=US(O,"strictPropertyInitialization"),ne=US(O,"strictBuiltinIteratorReturn"),oe=US(O,"noImplicitAny"),ie=US(O,"noImplicitThis"),ce=US(O,"useUnknownInCatchVariables"),de=O.exactOptionalPropertyTypes,pe=!!O.noUncheckedSideEffectImports,ve=function(){const e=mL(function(e,n,r){n?(n.stackIndex++,n.skip=!1,t(n,void 0),o(n,void 0)):n={checkMode:r,skip:!1,stackIndex:0,typeStack:[void 0,void 0]};if(Lh(e)&&Xh(e))return n.skip=!0,o(n,HF(e.right,r)),n;!function(e){if(61!==e.operatorToken.kind)return;if(MC(e.parent)){const{left:n,operatorToken:t}=e.parent;MC(n)&&57===t.kind&&HV(n,fa._0_and_1_operations_cannot_be_mixed_without_parentheses,Pa(61),Pa(t.kind))}else if(MC(e.left)){const{operatorToken:n}=e.left;57!==n.kind&&56!==n.kind||HV(e.left,fa._0_and_1_operations_cannot_be_mixed_without_parentheses,Pa(n.kind),Pa(61))}else if(MC(e.right)){const{operatorToken:n}=e.right;56===n.kind&&HV(e.right,fa._0_and_1_operations_cannot_be_mixed_without_parentheses,Pa(61),Pa(n.kind))}(function(e){const n=MP(e.left,63),t=gF(n);3!==t&&Bi(n,1===t?fa.This_expression_is_always_nullish:fa.Right_operand_of_is_unreachable_because_the_left_operand_is_never_nullish)})(e),function(e){const n=MP(e.right,63),t=gF(n);if(function(e){return!MC(e.parent)||61!==e.parent.operatorToken.kind}(e))return;1===t?Bi(n,fa.This_expression_is_always_nullish):2===t&&Bi(n,fa.This_expression_is_never_nullish)}(e)}(e);if(64===e.operatorToken.kind&&(211===e.left.kind||210===e.left.kind))return n.skip=!0,o(n,mF(e.left,HF(e.right,r),r,110===e.right.kind)),n;return n},function(e,t,r){if(!t.skip)return n(t,e)},function(e,n,i){if(!n.skip){const a=r(n);dt.assertIsDefined(a),t(n,a),o(n,void 0);const s=e.kind;if(tb(s)){let e=i.parent;for(;218===e.kind||rb(e);)e=e.parent;(56===s||QC(e))&&vz(i.left,a,QC(e)?e.thenStatement:void 0),Qv(s)&&bz(a,i.left)}}},function(e,t,r){if(!t.skip)return n(t,e)},function(e,n){let i;if(n.skip)i=r(n);else{const t=function(e){return e.typeStack[e.stackIndex]}(n);dt.assertIsDefined(t);const o=r(n);dt.assertIsDefined(o),i=yF(e.left,e.operatorToken,e.right,t,o,n.checkMode,e)}return n.skip=!1,t(n,void 0),o(n,void 0),n.stackIndex--,i},function(e,n,t){return o(e,n),e});return(n,t)=>{const r=e(n,t);return dt.assertIsDefined(r),r};function n(e,n){if(MC(n))return n;o(e,HF(n,e.checkMode))}function t(e,n){e.typeStack[e.stackIndex]=n}function r(e){return e.typeStack[e.stackIndex+1]}function o(e,n){e.typeStack[e.stackIndex+1]=n}}(),be={getReferencedExportContainer:OG,getReferencedImportDeclaration:FG,getReferencedDeclarationWithCollidingName:zG,isDeclarationWithCollidingName:BG,isValueAliasDeclaration:e=>{const n=_l(e);return!n||!Be||GG(n)},hasGlobalName:sV,isReferencedAliasDeclaration:(e,n)=>{const t=_l(e);return!t||!Be||HG(t,n)},hasNodeCheckFlag:(e,n)=>{const t=_l(e);return!!t&&$G(t,n)},isTopLevelValueImportEqualsWithEntityName:VG,isDeclarationVisible:Hl,isImplementationOfOverload:KG,requiresAddingImplicitUndefined:qG,isExpandoFunctionDeclaration:JG,getPropertiesOfContainerFunction:XG,createTypeOfDeclaration:rV,createReturnTypeOfSignatureDeclaration:iV,createTypeOfExpression:aV,createLiteralConstValue:pV,isSymbolAccessible:nl,isEntityNameVisible:pl,getConstantValue:e=>{const n=_l(e,ZG);return n?eV(n):void 0},getEnumMemberValue:e=>{const n=_l(e,dM);return n?QG(n):void 0},collectLinkedAliases:Kl,markLinkedReferences:e=>{const n=_l(e);return n&&EM(n,0)},getReferencedValueDeclaration:cV,getReferencedValueDeclarations:dV,getTypeReferenceSerializationKind:tV,isOptionalParameter:k_,isArgumentsLocalBinding:wG,getExternalModuleFileFromDeclaration:e=>{const n=_l(e,Mf);return n&&_V(n)},isLiteralConstDeclaration:uV,isLateBound:e=>{const n=_l(e,fu),t=n&&Es(n);return!!(t&&4096&sT(t))},getJsxFactoryEntity:fV,getJsxFragmentFactoryEntity:mV,isBindingCapturedByNode:(e,n)=>{const t=_l(e),r=_l(n);return!!t&&!!r&&(fN(r)||fC(r))&&function(e,n){const t=ua(e);return!!t&&S(t.capturedBlockScopeBindings,Es(n))}(t,r)},getDeclarationStatementsForSourceFile:(e,n,t,r)=>{const o=_l(e);dt.assert(o&&308===o.kind,"Non-sourcefile node passed into getDeclarationsForSourceFile");const i=Es(e);return i?(ls(i),i.exports?Te.symbolTableToDeclarationStatements(i.exports,e,n,t,r):[]):e.locals?Te.symbolTableToDeclarationStatements(e.locals,e,n,t,r):[]},isImportRequiredByAugmentation:function(e){const n=Sp(e);if(!n.symbol)return!1;const t=_V(e);if(!t)return!1;if(t===n)return!1;const r=gs(n.symbol);for(const o of Le(r.values()))if(o.mergeId){const e=Ss(o);if(e.declarations)for(const n of e.declarations)if(Sp(n)===t)return!0}return!1},isDefinitelyReferenceToGlobalSymbolObject:Pi,createLateBoundIndexSignatures:(e,n,t,r,o)=>{const i=e.symbol,a=l_(Vd(i)),s=Xg(i),l=s&&iy(s,Le(Cp(i).values()));let d;for(const p of[a,l])if(c(p)){d||(d=[]);for(const e of p){if(e.declaration)continue;if(e===fo)continue;if(e.components&&g(e.components,e=>{var t;return!!(e.name&&RD(e.name)&&db(e.name.expression)&&n&&0===(null==(t=pl(e.name.expression,n,!1))?void 0:t.accessibility))})){const i=x(e.components,e=>!gp(e));d.push(...D(i,i=>{u(i.name.expression);const s=p===a?[vR.createModifier(126)]:void 0;return vR.createPropertyDeclaration(re(s,e.isReadonly?vR.createModifier(148):void 0),i.name,(ND(i)||MD(i)||PD(i)||LD(i)||Nu(i)||Cu(i))&&i.questionToken?vR.createToken(58):void 0,Te.typeToTypeNode(Vd(i.symbol),n,t,r,o),void 0)}));continue}const i=Te.indexInfoToIndexSignatureDeclaration(e,n,t,r,o);i&&p===a&&(i.modifiers||(i.modifiers=vR.createNodeArray())).unshift(vR.createModifier(126)),i&&d.push(i)}}return d;function u(e){if(!o.trackSymbol)return;const t=ub(e),r=je(t,t.escapedText,1160127,void 0,!0);r&&o.trackSymbol(r,n,111551)}},symbolToDeclarations:(e,n,t,r,o,i)=>Te.symbolToDeclarations(e,n,t,r,o,i)},Te=function(){return{syntacticBuilderResolver:{evaluateEntityNameExpression:jB,isExpandoFunctionDeclaration:JG,hasLateBindableName:gp,shouldRemoveDeclaration:(e,n)=>!(8&e.internalFlags&&db(n.name.expression)&&1&uL(n.name).flags),createRecoveryBoundary:e=>function(e){n&&n.throwIfCancellationRequested&&n.throwIfCancellationRequested();let t,r,o=!1;const i=e.tracker,a=e.trackedSymbols;e.trackedSymbols=void 0;const s=e.encounteredError;return e.tracker=new yB(e,{...i.inner,reportCyclicStructureError(){l(()=>i.reportCyclicStructureError())},reportInaccessibleThisError(){l(()=>i.reportInaccessibleThisError())},reportInaccessibleUniqueSymbolError(){l(()=>i.reportInaccessibleUniqueSymbolError())},reportLikelyUnsafeImportRequiredError(e){l(()=>i.reportLikelyUnsafeImportRequiredError(e))},reportNonSerializableProperty(e){l(()=>i.reportNonSerializableProperty(e))},reportPrivateInBaseOfClassExpression(e){l(()=>i.reportPrivateInBaseOfClassExpression(e))},trackSymbol:(e,n,r)=>((t??(t=[])).push([e,n,r]),!1),moduleResolverHost:e.tracker.moduleResolverHost},e.tracker.moduleResolverHost),{startRecoveryScope:c,finalizeBoundary:d,markError:l,hadError:()=>o};function l(e){o=!0,e&&(r??(r=[])).push(e)}function c(){const e=(null==t?void 0:t.length)??0,n=(null==r?void 0:r.length)??0;return()=>{o=!1,t&&(t.length=e),r&&(r.length=n)}}function d(){return e.tracker=i,e.trackedSymbols=a,e.encounteredError=s,null==r||r.forEach(e=>e()),!o&&(null==t||t.forEach(([n,t,r])=>e.tracker.trackSymbol(n,t,r)),!0)}}(e),isDefinitelyReferenceToGlobalSymbolObject:Pi,getAllAccessorDeclarations:oV,requiresAddingImplicitUndefined(e,n,t){var r;switch(e.kind){case 173:case 172:case 349:n??(n=Es(e));const o=Vd(n);return!!(4&n.flags&&16777216&n.flags&&ex(e)&&(null==(r=n.links)?void 0:r.mappedType)&&function(e){const n=1048576&e.flags?e.types[0]:e;return!!(32768&n.flags)&&n!==zn}(o));case 170:case 342:return qG(e,t);default:dt.assertNever(e)}},isOptionalParameter:k_,isUndefinedIdentifierExpression:e=>IG(e)===De,isEntityNameVisible:(e,n,t)=>pl(n,e.enclosingDeclaration,t),serializeExistingTypeNode:(e,n,r)=>function(e,n,r){const o=t(e,n);if(r&&!NC(o,e=>!!(32768&e.flags))&&Se(e,n)){const t=Ae.tryReuseExistingTypeNode(e,n);if(t)return vR.createUnionTypeNode([t,vR.createKeywordTypeNode(157)])}return T(o,e)}(e,n,!!r),serializeReturnTypeForSignature(e,n,t){const r=e,o=G_(n);t??(t=Es(n));const i=r.enclosingSymbolTypes.get(dB(t))??xE(Ag(o),r.mapper);return be(r,o,i)},serializeTypeOfExpression(e,n){const t=e;return T(xE(JR(NG(n)),t.mapper),t)},serializeTypeOfDeclaration(e,n,t){var r;const o=e;t??(t=Es(n));let i=null==(r=o.enclosingSymbolTypes)?void 0:r.get(dB(t));void 0===i&&(i=98304&t.flags&&179===n.kind?xE(Bd(t),o.mapper):!t||133120&t.flags?Mn:xE(dR(Vd(t)),o.mapper));return n&&(DD(n)||jM(n))&&qG(n,o.enclosingDeclaration)&&(i=IR(i)),ge(t,o,i)},serializeNameOfParameter:(e,n)=>H(Es(n),n,e),serializeEntityName(e,n){const t=e,r=IG(n,!0);if(r&&Qs(r,t.enclosingDeclaration))return le(r,t,1160127)},serializeTypeName:(e,n,t,r)=>function(e,n,t,r){const o=t?111551:788968,i=ts(n,o,!0);if(!i)return;const a=2097152&i.flags?Ja(i):i;return 0!==nl(i,e.enclosingDeclaration,o,!1).accessibility?void 0:oe(a,e,o,r)}(e,n,t,r),getJsDocPropertyOverride(e,n,r){const o=e,i=dD(r.name)?r.name:r.name.right,a=nc(t(o,n),i.escapedText);return a&&r.typeExpression&&t(o,r.typeExpression.type)!==a?T(a,o):void 0},enterNewScope(e,n){if(ad(n)||CM(n)){const t=G_(n);return w(e,n,t.parameters,t.typeParameters)}return w(e,n,void 0,eC(n)?sS(n):[Fu(Es(n.typeParameter))])},markNodeReuse:(e,n,t)=>r(e,n,t),trackExistingEntityName:(e,n)=>Te(n,e),trackComputedName(e,n){X(n,e.enclosingDeclaration,e)},getModuleSpecifierOverride(e,n,t){const r=e;if(r.bundled||r.enclosingFile!==Sp(t)){let e=t.text;const o=e,i=ua(n).resolvedSymbol,a=n.isTypeOf?111551:788968,s=i&&0===nl(i,r.enclosingDeclaration,a,!1).accessibility&&Y(i,r,a,!0)[0];if(s&&ep(s))e=ne(s,r);else{const t=_V(n);t&&(e=ne(t.symbol,r))}if(e.includes("/node_modules/")&&(r.encounteredError=!0,r.tracker.reportLikelyUnsafeImportRequiredError&&r.tracker.reportLikelyUnsafeImportRequiredError(e)),e!==o)return e}},canReuseTypeNode:(e,n)=>Se(e,n),canReuseTypeNodeAnnotation(e,n,t,r,o){var i;const a=e;if(void 0===a.enclosingDeclaration)return!1;r??(r=Es(n));let s=null==(i=a.enclosingSymbolTypes)?void 0:i.get(dB(r));void 0===s&&(s=98304&r.flags?179===n.kind?Bd(r):Id(r):rg(n)?Ag(G_(n)):Vd(r));let l=wl(t);return!!ac(l)||(o&&l&&(l=Pc(l,!DD(n))),!!l&&function(e,n,t){if(t===n)return!0;if(!e)return!1;if((ND(e)||MD(e))&&e.questionToken)return fD(n,524288)===t;if(DD(e)&&L_(e))return fD(n,524288)===t;return!1}(n,s,l)&&_e(t,s))}},typeToTypeNode:(e,n,t,r,o,i,a,s)=>l(n,t,r,o,i,a,n=>T(e,n),s),typePredicateToTypePredicateNode:(e,n,t,r,o)=>l(n,t,r,o,void 0,void 0,n=>G(e,n)),serializeTypeForDeclaration:(e,n,t,r,o,i)=>l(t,r,o,i,void 0,void 0,t=>Ae.serializeTypeOfDeclaration(e,n,t)),serializeReturnTypeForSignature:(e,n,t,r,o)=>l(n,t,r,o,void 0,void 0,n=>Ae.serializeReturnTypeForSignature(e,Es(e),n)),serializeTypeForExpression:(e,n,t,r,o)=>l(n,t,r,o,void 0,void 0,n=>Ae.serializeTypeOfExpression(e,n)),indexInfoToIndexSignatureDeclaration:(e,n,t,r,o)=>l(n,t,r,o,void 0,void 0,n=>L(e,n,void 0)),signatureToSignatureDeclaration:(e,n,t,r,o,i,a,s,c)=>l(t,r,o,i,a,s,t=>k(e,n,t),c),symbolToEntityName:(e,n,t,r,o,i)=>l(t,r,o,i,void 0,void 0,t=>se(e,t,n,!1)),symbolToExpression:(e,n,t,r,o,i)=>l(t,r,o,i,void 0,void 0,t=>le(e,t,n)),symbolToTypeParameterDeclarations:(e,n,t,r,o)=>l(n,t,r,o,void 0,void 0,n=>Q(e,n)),symbolToParameterDeclaration:(e,n,t,r,o)=>l(n,t,r,o,void 0,void 0,n=>j(e,n)),typeParameterToDeclaration:(e,n,t,r,o,i,a,s)=>l(n,t,r,o,i,a,n=>B(e,n),s),symbolTableToDeclarationStatements:(e,n,t,r,o)=>l(n,t,r,o,void 0,void 0,n=>Ee(e,n)),symbolToNode:(e,n,t,r,o,a)=>l(t,r,o,a,void 0,void 0,t=>i(e,t,n)),symbolToDeclarations:function(e,n,t,r,o,i){return F(l(void 0,t,void 0,void 0,r,o,n=>function(e,n){const t=Wu(e);n.typeStack.push(t.id),n.typeStack.push(-1);const r=Qu([e]),o=Ee(r,n);return n.typeStack.pop(),n.typeStack.pop(),o}(e,n),i),t=>{switch(t.kind){case 264:return function(e,n){const t=x(n.declarations,md),r=t&&t.length>0?t[0]:e,o=-161&jv(r);OC(r)&&(e=vR.updateClassDeclaration(e,e.modifiers,void 0,e.typeParameters,e.heritageClauses,e.members));return vR.replaceModifiers(e,o)}(t,e);case 267:return a(t,vN,e);case 265:return function(e,n,t){if(!(64&t))return;return a(e,gN,n)}(t,e,n);case 268:return a(t,bN,e);default:return}})}};function t(e,n,t){const r=wl(n);if(!e.mapper)return r;const o=xE(r,e.mapper);return t&&o!==r?void 0:o}function r(e,n,t){if(ry(n)&&16&n.flags&&e.enclosingFile&&e.enclosingFile===Sp(fl(n))||(n=vR.cloneNode(n)),n===t)return n;if(!t)return n;let r=n.original;for(;r&&r!==t;)r=r.original;return r||TR(n,t),e.enclosingFile&&e.enclosingFile===Sp(fl(t))?DL(n,t):n}function i(e,n,t){if(1&n.internalFlags){if(e.valueDeclaration){const n=Dl(e.valueDeclaration);if(n&&RD(n))return n}const r=da(e).nameType;if(r&&9216&r.flags)return n.enclosingDeclaration=r.symbol.valueDeclaration,vR.createComputedPropertyName(le(r.symbol,n,t))}return le(e,n,t)}function a(e,n,t){const r=x(t.declarations,n),o=-161&jv(r&&r.length>0?r[0]:e);return vR.replaceModifiers(e,o)}function l(n,t,r,o,i,a,s,l){const c=(null==o?void 0:o.trackSymbol)?o.moduleResolverHost:4&(r||0)?function(e){return{getCommonSourceDirectory:e.getCommonSourceDirectory?()=>e.getCommonSourceDirectory():()=>"",getCurrentDirectory:()=>e.getCurrentDirectory(),getSymlinkCache:Ue(e,e.getSymlinkCache),getPackageJsonInfoCache:()=>{var n;return null==(n=e.getPackageJsonInfoCache)?void 0:n.call(e)},useCaseSensitiveFileNames:()=>e.useCaseSensitiveFileNames(),redirectTargetsMap:e.redirectTargetsMap,getRedirectFromSourceFile:n=>e.getRedirectFromSourceFile(n),isSourceOfProjectReferenceRedirect:n=>e.isSourceOfProjectReferenceRedirect(n),fileExists:n=>e.fileExists(n),getFileIncludeReasons:()=>e.getFileIncludeReasons(),readFile:e.readFile?n=>e.readFile(n):void 0,getDefaultResolutionModeForFile:n=>e.getDefaultResolutionModeForFile(n),getModeForResolutionAtIndex:(n,t)=>e.getModeForResolutionAtIndex(n,t),getGlobalTypingsCacheLocation:Ue(e,e.getGlobalTypingsCacheLocation)}}(e):void 0;t=t||0;const d=i||(1&t?Ju:qu),u={enclosingDeclaration:n,enclosingFile:n&&Sp(n),flags:t,internalFlags:r||0,tracker:void 0,maxTruncationLength:d,maxExpansionDepth:a??-1,encounteredError:!1,suppressReportInferenceFallback:!1,reportedDiagnostic:!1,visitedTypes:void 0,symbolDepth:void 0,inferTypeParameters:void 0,approximateLength:0,trackedSymbols:void 0,bundled:!!O.outFile&&!!n&&rm(Sp(n)),truncating:!1,usedSymbolNames:void 0,remappedSymbolNames:void 0,remappedSymbolReferences:void 0,reverseMappedStack:void 0,mustCreateTypeParameterSymbolList:!0,typeParameterSymbolList:void 0,mustCreateTypeParametersNamesLookups:!0,typeParameterNames:void 0,typeParameterNamesByText:void 0,typeParameterNamesByTextNextNameCount:void 0,enclosingSymbolTypes:new Map,mapper:void 0,depth:0,typeStack:[],out:{canIncreaseExpansionDepth:!1,truncated:!1}};u.tracker=new yB(u,o,c);const p=s(u);return u.truncating&&1&u.flags&&u.tracker.reportTruncationError(),l&&(l.canIncreaseExpansionDepth=u.out.canIncreaseExpansionDepth,l.truncated=u.out.truncated),u.encounteredError?void 0:p}function u(e,n,t){const r=dB(n),o=e.enclosingSymbolTypes.get(r);return e.enclosingSymbolTypes.set(r,t),function(){o?e.enclosingSymbolTypes.set(r,o):e.enclosingSymbolTypes.delete(r)}}function f(e){const n=e.flags,t=e.internalFlags,r=e.depth;return function(){e.flags=n,e.internalFlags=t,e.depth=r}}function m(e){return e.maxExpansionDepth>=0&&h(e)}function h(e){return e.truncating?e.truncating:e.truncating=e.approximateLength>e.maxTruncationLength}function _(e,n){for(let t=0;t<n.typeStack.length-1;t++)if(n.typeStack[t]===e.id)return!1;return n.depth<n.maxExpansionDepth||n.depth===n.maxExpansionDepth&&!n.out.canIncreaseExpansionDepth}function v(e,n,t=!1){if(!t&&Ol(e))return!1;for(let o=0;o<n.typeStack.length-1;o++)if(n.typeStack[o]===e.id)return!1;const r=n.depth<n.maxExpansionDepth;return r||(n.out.canIncreaseExpansionDepth=!0),r}function T(e,i){const a=f(i);e&&i.typeStack.push(e.id);const l=function(e,i){var a,l;n&&n.throwIfCancellationRequested&&n.throwIfCancellationRequested();const u=8388608&i.flags;i.flags&=-8388609;let p=!1;if(!e)return 262144&i.flags?(i.approximateLength+=3,vR.createKeywordTypeNode(133)):void(i.encounteredError=!0);536870912&i.flags||(e=Qm(e));if(1&e.flags)return e.aliasSymbol?vR.createTypeReferenceNode(te(e.aliasSymbol),M(e.aliasTypeArguments,i)):e===Pn?zR(vR.createKeywordTypeNode(133),3,"unresolved"):(i.approximateLength+=3,vR.createKeywordTypeNode(e===kn?141:133));if(2&e.flags)return vR.createKeywordTypeNode(159);if(4&e.flags)return i.approximateLength+=6,vR.createKeywordTypeNode(154);if(8&e.flags)return i.approximateLength+=6,vR.createKeywordTypeNode(150);if(64&e.flags)return i.approximateLength+=6,vR.createKeywordTypeNode(163);if(16&e.flags&&!e.aliasSymbol)return i.approximateLength+=7,vR.createKeywordTypeNode(136);if(1056&e.flags){if(8&e.symbol.flags){const n=xs(e.symbol),t=oe(n,i,788968);if(Wu(n)===e)return t;const r=Tl(e.symbol);return ys(r,1)?V(t,vR.createTypeReferenceNode(r,void 0)):lC(t)?(t.isTypeOf=!0,vR.createIndexedAccessTypeNode(t,vR.createLiteralTypeNode(vR.createStringLiteral(r)))):VD(t)?vR.createIndexedAccessTypeNode(vR.createTypeQueryNode(t.typeName),vR.createLiteralTypeNode(vR.createStringLiteral(r))):dt.fail("Unhandled type node kind returned from `symbolToTypeNode`.")}if(!v(e,i))return oe(e.symbol,i,788968);p=!0}if(128&e.flags)return i.approximateLength+=e.value.length+2,vR.createLiteralTypeNode(xR(vR.createStringLiteral(e.value,!!(268435456&i.flags)),16777216));if(256&e.flags){const n=e.value;return i.approximateLength+=(""+n).length,vR.createLiteralTypeNode(n<0?vR.createPrefixUnaryExpression(41,vR.createNumericLiteral(-n)):vR.createNumericLiteral(n))}if(2048&e.flags)return i.approximateLength+=bA(e.value).length+1,vR.createLiteralTypeNode(vR.createBigIntLiteral(e.value));if(512&e.flags)return i.approximateLength+=e.intrinsicName.length,vR.createLiteralTypeNode("true"===e.intrinsicName?vR.createTrue():vR.createFalse());if(8192&e.flags){if(!(1048576&i.flags)){if(Qs(e.symbol,i.enclosingDeclaration))return i.approximateLength+=6,oe(e.symbol,i,111551);i.tracker.reportInaccessibleUniqueSymbolError&&i.tracker.reportInaccessibleUniqueSymbolError()}return i.approximateLength+=13,vR.createTypeOperatorNode(158,vR.createKeywordTypeNode(155))}if(16384&e.flags)return i.approximateLength+=4,vR.createKeywordTypeNode(116);if(32768&e.flags)return i.approximateLength+=9,vR.createKeywordTypeNode(157);if(65536&e.flags)return i.approximateLength+=4,vR.createLiteralTypeNode(vR.createNull());if(131072&e.flags)return i.approximateLength+=5,vR.createKeywordTypeNode(146);if(4096&e.flags)return i.approximateLength+=6,vR.createKeywordTypeNode(155);if(67108864&e.flags)return i.approximateLength+=6,vR.createKeywordTypeNode(151);if(KA(e))return 4194304&i.flags&&(i.encounteredError||32768&i.flags||(i.encounteredError=!0),null==(l=(a=i.tracker).reportInaccessibleThisError)||l.call(a)),i.approximateLength+=4,vR.createThisTypeNode();if(!u&&e.aliasSymbol&&(16384&i.flags||(m=e.aliasSymbol,_=i.enclosingDeclaration,0===rl(m,_,788968,!1,!0).accessibility))){if(!v(e,i,!0)){const n=M(e.aliasTypeArguments,i);return!js(e.aliasSymbol.escapedName)||32&e.aliasSymbol.flags?1===c(n)&&e.aliasSymbol===Zt.symbol?vR.createArrayTypeNode(n[0]):oe(e.aliasSymbol,i,788968,n):vR.createTypeReferenceNode(vR.createIdentifier(""),n)}i.depth+=1}var m,_;const y=bT(e);if(4&y)return dt.assert(!!(524288&e.flags)),v(e,i)?(i.depth+=1,F(e,!0,!0)):e.node?W(e,G):G(e);if(262144&e.flags||3&y){if(262144&e.flags&&S(i.inferTypeParameters,e)){let n;i.approximateLength+=Tl(e.symbol).length+6;const t=um(e);if(t){const r=ly(e,!0);r&&kE(t,r)||(i.approximateLength+=9,n=t&&T(t,i))}return vR.createInferTypeNode(z(e,i,n))}if(4&i.flags&&262144&e.flags){const n=ae(e,i);return i.approximateLength+=vl(n).length,vR.createTypeReferenceNode(vR.createIdentifier(vl(n)),void 0)}if(3&y&&v(e,i))return i.depth+=1,F(e,!0,!0);if(e.symbol)return oe(e.symbol,i,788968);const n=(e===Vt||e===jt)&&o&&o.symbol?(e===jt?"sub-":"super-")+Tl(o.symbol):"?";return vR.createTypeReferenceNode(vR.createIdentifier(n),void 0)}1048576&e.flags&&e.origin&&(e=e.origin);if(3145728&e.flags){const n=1048576&e.flags?function(e,n){const t=[];let r=0;for(let o=0;o<e.length;o++){const i=e[o];if(r|=i.flags,!(98304&i.flags)){if(512&i.flags||!n&&1056|i.flags){const n=512&i.flags?st:xu(i);if(1048576&n.flags){const r=n.types.length;if(o+r<=e.length&&xS(e[o+r-1])===xS(n.types[r-1])){t.push(n),o+=r-1;continue}}}t.push(i)}}65536&r&&t.push(jn);32768&r&&t.push(Fn);return t||e}(e.types,p):e.types;if(1===c(n))return T(n[0],i);const t=M(n,i,!0);return t&&t.length>0?1048576&e.flags?vR.createUnionTypeNode(t):vR.createIntersectionTypeNode(t):void(i.encounteredError||262144&i.flags||(i.encounteredError=!0))}if(48&y)return dt.assert(!!(524288&e.flags)),F(e);if(4194304&e.flags){const n=e.type;i.approximateLength+=6;const t=T(n,i);return vR.createTypeOperatorNode(143,t)}if(134217728&e.flags){const n=e.texts,t=e.types,r=vR.createTemplateHead(n[0]),o=vR.createNodeArray(D(t,(e,r)=>vR.createTemplateLiteralTypeSpan(T(e,i),(r<t.length-1?vR.createTemplateMiddle:vR.createTemplateTail)(n[r+1]))));return i.approximateLength+=2,vR.createTemplateLiteralType(r,o)}if(268435456&e.flags){const n=T(e.type,i);return oe(e.symbol,i,788968,[n])}if(8388608&e.flags){const n=T(e.objectType,i),t=T(e.indexType,i);return i.approximateLength+=2,vR.createIndexedAccessTypeNode(n,t)}if(16777216&e.flags)return W(e,e=>b(e));if(33554432&e.flags){const n=T(e.baseType,i),t=ky(e)&&$y("NoInfer",!1);return t?oe(t,i,788968,[n]):n}return dt.fail("Should be unreachable.");function b(e){const n=T(e.checkType,i);if(i.approximateLength+=15,4&i.flags&&e.root.isDistributive&&!(262144&e.checkType.flags)){const r=Vs(Yi(262144,"T")),o=ae(r,i),a=vR.createTypeReferenceNode(o);i.approximateLength+=37;const s=pE(e.root.checkType,r,e.mapper),l=i.inferTypeParameters;i.inferTypeParameters=e.root.inferTypeParameters;const c=T(xE(e.root.extendsType,s),i);i.inferTypeParameters=l;const d=R(xE(t(i,e.root.node.trueType),s)),u=R(xE(t(i,e.root.node.falseType),s));return vR.createConditionalTypeNode(n,vR.createInferTypeNode(vR.createTypeParameterDeclaration(void 0,vR.cloneNode(a.typeName))),vR.createConditionalTypeNode(vR.createTypeReferenceNode(vR.cloneNode(o)),T(e.checkType,i),vR.createConditionalTypeNode(a,c,d,u),vR.createKeywordTypeNode(146)),vR.createKeywordTypeNode(146))}const r=i.inferTypeParameters;i.inferTypeParameters=e.root.inferTypeParameters;const o=T(e.extendsType,i);i.inferTypeParameters=r;const a=R(tS(e)),s=R(iS(e));return vR.createConditionalTypeNode(n,o,a,s)}function R(e){var n,t,r;return 1048576&e.flags?(null==(n=i.visitedTypes)?void 0:n.has(Pb(e)))?(131072&i.flags||(i.encounteredError=!0,null==(r=null==(t=i.tracker)?void 0:t.reportCyclicStructureError)||r.call(t)),E(i)):W(e,e=>T(e,i)):T(e,i)}function C(e){return!!bE(e)}function P(e){return!!e.target&&C(e.target)&&!C(e)}function O(e){var n;dt.assert(!!(524288&e.flags));const r=e.declaration.readonlyToken?vR.createToken(e.declaration.readonlyToken.kind):void 0,o=e.declaration.questionToken?vR.createToken(e.declaration.questionToken.kind):void 0;let a,s,l=xf(e);const c=Sf(e),d=!If(e)&&!(2&Df(e).flags)&&4&i.flags&&!(262144&Ef(e).flags&&4194304&(null==(n=um(Ef(e)))?void 0:n.flags));if(If(e)){if(P(e)&&4&i.flags){const n=Vs(Yi(262144,"T")),t=ae(n,i),r=e.target;s=vR.createTypeReferenceNode(t),l=xE(xf(r),iE([Sf(r),Df(r)],[c,n]))}a=vR.createTypeOperatorNode(143,s||T(Df(e),i))}else if(d){const e=ae(Vs(Yi(262144,"T")),i);s=vR.createTypeReferenceNode(e),a=s}else a=T(Ef(e),i);const u=z(c,i,a),p=w(i,e.declaration,void 0,[Fu(Es(e.declaration.typeParameter))]),f=e.declaration.nameType?T(Af(e),i):void 0,m=T(LR(l,!!(4&Cf(e))),i);p();const h=vR.createMappedTypeNode(r,u,f,o,m,void 0);i.approximateLength+=10;const _=xR(h,1);if(P(e)&&4&i.flags){const n=xE(um(t(i,e.declaration.typeParameter.constraint.type))||On,e.mapper);return vR.createConditionalTypeNode(T(Df(e),i),vR.createInferTypeNode(vR.createTypeParameterDeclaration(void 0,vR.cloneNode(s.typeName),2&n.flags?void 0:T(n,i))),_,vR.createKeywordTypeNode(146))}return d?vR.createConditionalTypeNode(T(Ef(e),i),vR.createInferTypeNode(vR.createTypeParameterDeclaration(void 0,vR.cloneNode(s.typeName),vR.createTypeOperatorNode(143,T(Df(e),i)))),_,vR.createKeywordTypeNode(146)):_}function F(e,n=!1,r=!1){var o,a;const s=e.id,l=e.symbol;if(l){if(!!(8388608&bT(e))){const n=e.node;if(HD(n)&&t(i,n)===e){const e=Ae.tryReuseExistingTypeNode(i,n);if(e)return e}return(null==(o=i.visitedTypes)?void 0:o.has(s))?E(i):W(e,B)}const d=kl(e)?788968:111551;if(Fw(l.valueDeclaration))return oe(l,i,d);if(!r&&(32&l.flags&&!n&&!Cd(l)&&(!(l.valueDeclaration&&md(l.valueDeclaration)&&2048&i.flags)||_N(l.valueDeclaration)&&0===nl(l,i.enclosingDeclaration,d,!1).accessibility)||896&l.flags||c())){if(!v(e,i))return oe(l,i,d);i.depth+=1}if(null==(a=i.visitedTypes)?void 0:a.has(s)){const n=function(e){if(e.symbol&&2048&e.symbol.flags&&e.symbol.declarations){const n=ig(e.symbol.declarations[0].parent);if(yN(n))return Es(n)}return}(e);return n?oe(n,i,788968):E(i)}return W(e,B)}return B(e);function c(){var e;const n=!!(8192&l.flags)&&U(l.declarations,e=>Pv(e)&&!pp(Dl(e))),t=!!(16&l.flags)&&(l.parent||d(l.declarations,e=>308===e.parent.kind||269===e.parent.kind));if(n||t)return(!!(4096&i.flags)||(null==(e=i.visitedTypes)?void 0:e.has(s)))&&(!(8&i.flags)||Qs(l,i.enclosingDeclaration))}}function W(e,n){var t,o,a;const s=e.id,l=16&bT(e)&&e.symbol&&32&e.symbol.flags,c=4&bT(e)&&e.node?"N"+cB(e.node):16777216&e.flags?"N"+cB(e.root.node):e.symbol?(l?"+":"")+dB(e.symbol):void 0;i.visitedTypes||(i.visitedTypes=new Set),c&&!i.symbolDepth&&(i.symbolDepth=new Map);const d=i.maxExpansionDepth>=0?void 0:i.enclosingDeclaration&&ua(i.enclosingDeclaration),u=`${Pb(e)}|${i.flags}|${i.internalFlags}`;d&&(d.serializedTypes||(d.serializedTypes=new Map));const p=null==(t=null==d?void 0:d.serializedTypes)?void 0:t.get(u);if(p)return null==(o=p.trackedSymbols)||o.forEach(([e,n,t])=>i.tracker.trackSymbol(e,n,t)),p.truncating&&(i.truncating=!0),i.approximateLength+=p.addedLength,y(p.node);let f;if(c){if(f=i.symbolDepth.get(c)||0,f>10)return E(i);i.symbolDepth.set(c,f+1)}i.visitedTypes.add(s);const m=i.trackedSymbols;i.trackedSymbols=void 0;const h=i.approximateLength,_=n(e),g=i.approximateLength-h;return i.reportedDiagnostic||i.encounteredError||null==(a=null==d?void 0:d.serializedTypes)||a.set(u,{node:_,truncating:i.truncating,addedLength:g,trackedSymbols:i.trackedSymbols}),i.visitedTypes.delete(s),c&&i.symbolDepth.set(c,f),i.trackedSymbols=m,_;function y(e){return ry(e)||_l(e)!==e?r(i,vR.cloneNode(CB(e,y,void 0,v,y)),e):e}function v(e,n,t,r,o){return e&&0===e.length?DL(vR.createNodeArray(void 0,e.hasTrailingComma),e):bB(e,n,t,r,o)}}function B(e){if(Uf(e)||e.containsError)return O(e);const n=Jf(e);if(!n.properties.length&&!n.indexInfos.length){if(!n.callSignatures.length&&!n.constructSignatures.length)return i.approximateLength+=2,xR(vR.createTypeLiteralNode(void 0),1);if(1===n.callSignatures.length&&!n.constructSignatures.length){return k(n.callSignatures[0],185,i)}if(1===n.constructSignatures.length&&!n.callSignatures.length){return k(n.constructSignatures[0],186,i)}}const t=x(n.constructSignatures,e=>!!(4&e.flags));if(U(t)){const e=D(t,Bg);return n.callSignatures.length+(n.constructSignatures.length-t.length)+n.indexInfos.length+(2048&i.flags?A(n.properties,e=>!(4194304&e.flags)):c(n.properties))&&e.push(function(e){if(0===e.constructSignatures.length)return e;if(e.objectTypeWithoutAbstractConstructSignatures)return e.objectTypeWithoutAbstractConstructSignatures;const n=x(e.constructSignatures,e=>!(4&e.flags));if(e.constructSignatures===n)return e;const t=qs(e.symbol,e.members,e.callSignatures,U(n)?n:s,e.indexInfos);return e.objectTypeWithoutAbstractConstructSignatures=t,t.objectTypeWithoutAbstractConstructSignatures=t,t}(n)),T(Xb(e),i)}const r=f(i);i.flags|=4194304;const o=K(n);r();const a=vR.createTypeLiteralNode(o);return i.approximateLength+=2,xR(a,1024&i.flags?0:1),a}function G(e){let n=by(e);if(e.target===Zt||e.target===tr){if(2&i.flags){const t=T(n[0],i);return vR.createTypeReferenceNode(e.target===Zt?"Array":"ReadonlyArray",[t])}const t=T(n[0],i),r=vR.createArrayTypeNode(t);return e.target===Zt?r:vR.createTypeOperatorNode(148,r)}if(!(8&e.target.objectFlags)){if(2048&i.flags&&e.symbol.valueDeclaration&&md(e.symbol.valueDeclaration)&&!Qs(e.symbol,i.enclosingDeclaration))return F(e);{const t=e.target.outerTypeParameters;let r,o,a=0;if(t){const e=t.length;for(;a<e;){const o=a,s=dy(t[a]);do{a++}while(a<e&&dy(t[a])===s);if(!ue(t,n,o,a)){const e=M(n.slice(o,a),i),t=f(i);i.flags|=16;const l=oe(s,i,788968,e);t(),r=r?V(r,l):l}}}if(n.length>0){let t=0;if(e.target.typeParameters&&(t=Math.min(e.target.typeParameters.length,n.length),(Hd(e,xv(!1))||Hd(e,Rv(!1))||Hd(e,Ev(!1))||Hd(e,Av(!1)))&&(!e.node||!VD(e.node)||!e.node.typeArguments||e.node.typeArguments.length<t)))for(;t>0;){const r=n[t-1],o=Rm(e.target.typeParameters[t-1]);if(!o||!kE(r,o))break;t--}o=M(n.slice(a,t),i)}const s=f(i);i.flags|=16;const l=oe(e.symbol,i,788968,o);return s(),r?V(r,l):l}}if(n=N(n,(n,t)=>LR(n,!!(2&e.target.elementFlags[t]))),n.length>0){const t=Ty(e),r=M(n.slice(0,t),i);if(r){const{labeledElementDeclarations:n}=e.target;for(let o=0;o<r.length;o++){const t=e.target.elementFlags[o],i=null==n?void 0:n[o];r[o]=i?vR.createNamedTupleMember(12&t?vR.createToken(26):void 0,vR.createIdentifier(yl(sO(i))),2&t?vR.createToken(58):void 0,4&t?vR.createArrayTypeNode(r[o]):r[o]):12&t?vR.createRestTypeNode(4&t?vR.createArrayTypeNode(r[o]):r[o]):2&t?vR.createOptionalTypeNode(r[o]):r[o]}const t=xR(vR.createTupleTypeNode(r),1);return e.target.readonly?vR.createTypeOperatorNode(148,t):t}}if(i.encounteredError||524288&i.flags){const n=xR(vR.createTupleTypeNode([]),1);return e.target.readonly?vR.createTypeOperatorNode(148,n):n}i.encounteredError=!0}function V(e,n){if(lC(e)){let t=e.typeArguments,r=e.qualifier;r&&(dD(r)?t!==rI(r)&&(r=tI(vR.cloneNode(r),t)):t!==rI(r.right)&&(r=vR.updateQualifiedName(r,r.left,tI(vR.cloneNode(r.right),t)))),t=n.typeArguments;const o=j(n);for(const e of o)r=r?vR.createQualifiedName(r,e):e;return vR.updateImportTypeNode(e,e.argument,e.attributes,r,t,e.isTypeOf)}{let t=e.typeArguments,r=e.typeName;dD(r)?t!==rI(r)&&(r=tI(vR.cloneNode(r),t)):t!==rI(r.right)&&(r=vR.updateQualifiedName(r,r.left,tI(vR.cloneNode(r.right),t))),t=n.typeArguments;const o=j(n);for(const e of o)r=vR.createQualifiedName(r,e);return vR.updateTypeReferenceNode(e,r,t)}}function j(e){let n=e.typeName;const t=[];for(;!dD(n);)t.unshift(n.right),n=n.left;return t.unshift(n),t}function H(e,n,t){if(e.components){if(g(e.components,e=>{var t;return!!(e.name&&RD(e.name)&&db(e.name.expression)&&n.enclosingDeclaration&&0===(null==(t=pl(e.name.expression,n.enclosingDeclaration,!1))?void 0:t.accessibility))})){return D(x(e.components,e=>!gp(e)),o=>(X(o.name.expression,n.enclosingDeclaration,n),r(n,vR.createPropertySignature(e.isReadonly?[vR.createModifier(148)]:void 0,o.name,(ND(o)||MD(o)||PD(o)||LD(o)||Nu(o)||Cu(o))&&o.questionToken?vR.createToken(58):void 0,t||T(Vd(o.symbol),n)),o)))}}return[L(e,n,t)]}function K(e){if(h(i))return i.out.truncated=!0,1&i.flags?[VR(vR.createNotEmittedTypeElement(),3,"elided")]:[vR.createPropertySignature(void 0,"...",void 0,void 0)];i.typeStack.push(-1);const n=[];for(const o of e.callSignatures)n.push(k(o,180,i));for(const o of e.constructSignatures)4&o.flags||n.push(k(o,181,i));for(const o of e.indexInfos)n.push(...H(o,i,1024&e.objectFlags?E(i):void 0));const t=e.properties;if(!t)return i.typeStack.pop(),n;let r=0;for(const o of t)if(!(xe(i)&&4194304&o.flags)){if(r++,2048&i.flags){if(4194304&o.flags)continue;6&lT(o)&&i.tracker.reportPrivateInBaseOfClassExpression&&i.tracker.reportPrivateInBaseOfClassExpression(yl(o.escapedName))}if(h(i)&&r+2<t.length-1){if(i.out.truncated=!0,1&i.flags){const e=n.pop();n.push(VR(e,3,`... ${t.length-r} more elided ...`))}else n.push(vR.createPropertySignature(void 0,`... ${t.length-r} more ...`,void 0,void 0));I(t[t.length-1],i,n);break}I(o,i,n)}return i.typeStack.pop(),n.length?n:void 0}}(e,i);return e&&i.typeStack.pop(),a(),l}function E(e){return e.approximateLength+=3,1&e.flags?zR(vR.createKeywordTypeNode(133),3,"elided"):vR.createTypeReferenceNode(vR.createIdentifier("..."),void 0)}function R(e,n){var t;return!!(8192&sT(e))&&(S(n.reverseMappedStack,e)||(null==(t=n.reverseMappedStack)?void 0:t[0])&&!(16&bT(ye(n.reverseMappedStack).links.propertyType))||function(){var t;if(((null==(t=n.reverseMappedStack)?void 0:t.length)??0)<3)return!1;for(let r=0;r<3;r++){if(n.reverseMappedStack[n.reverseMappedStack.length-1-r].links.mappedType.symbol!==e.links.mappedType.symbol)return!1}return!0}())}function I(e,n,t){var r;const o=!!(8192&sT(e)),i=R(e,n)?In:jd(e),a=n.enclosingDeclaration;if(n.enclosingDeclaration=void 0,n.tracker.canTrackSymbol&&mp(e.escapedName))if(e.declarations){const t=he(e.declarations);if(gp(t))if(MC(t)){const e=Dl(t);e&&gC(e)&&fb(e.argumentExpression)&&X(e.argumentExpression,a,n)}else X(t.name.expression,a,n)}else n.tracker.reportNonSerializableProperty(hl(e));n.enclosingDeclaration=e.valueDeclaration||(null==(r=e.declarations)?void 0:r[0])||a;const l=pe(e,n);if(n.enclosingDeclaration=a,n.approximateLength+=Tl(e).length+1,98304&e.flags){const r=Bd(e);if(!ac(i)&&!ac(r)){const o=da(e).mapper,a=Yu(e,173);if(i!==r||32&e.parent.flags&&!a){const r=Yu(e,178);if(r){const e=G_(r);t.push(C(n,k(o?_E(e,o):e,178,n,{name:l}),r))}const i=Yu(e,179);if(i){const e=G_(i);t.push(C(n,k(o?_E(e,o):e,179,n,{name:l}),i))}return}if(32&e.parent.flags&&a&&y(a.modifiers,TD)){const e=wp(void 0,void 0,void 0,s,i,void 0,0,0);t.push(C(n,k(e,178,n,{name:l}),a));const o=Yi(1,"arg");o.links.type=r;const c=wp(void 0,void 0,void 0,[o],ct,void 0,0,0);return void t.push(k(c,179,n,{name:l}))}}}const c=16777216&e.flags?vR.createToken(58):void 0;if(8208&e.flags&&!$f(i).length&&!QO(e)){const r=Vh(kC(i,e=>!(32768&e.flags)),0);for(const o of r){const r=k(o,174,n,{name:l,questionToken:c});t.push(f(r,o.declaration||e.valueDeclaration))}if(r.length||!c)return}let d;R(e,n)?d=E(n):(o&&(n.reverseMappedStack||(n.reverseMappedStack=[]),n.reverseMappedStack.push(e)),d=i?ve(n,void 0,i,e):vR.createKeywordTypeNode(133),o&&n.reverseMappedStack.pop());const u=QO(e)?[vR.createToken(148)]:void 0;u&&(n.approximateLength+=9);const p=vR.createPropertySignature(u,l,c,d);function f(t,r){var o;const i=null==(o=e.declarations)?void 0:o.find(e=>349===e.kind);if(i){const e=pc(i.comment);e&&WR(t,[{kind:3,text:"*\n * "+e.replace(/\n/g,"\n * ")+"\n ",pos:-1,end:-1,hasTrailingNewLine:!0}])}else r&&C(n,t,r);return t}t.push(f(p,e.valueDeclaration))}function C(e,n,t){return e.enclosingFile&&e.enclosingFile===Sp(t)?OR(n,t):n}function M(e,n,t){if(U(e)){if(h(n)){if(n.out.truncated=!0,!t)return[1&n.flags?zR(vR.createKeywordTypeNode(133),3,"elided"):vR.createTypeReferenceNode("...",void 0)];if(e.length>2)return[T(e[0],n),1&n.flags?zR(vR.createKeywordTypeNode(133),3,`... ${e.length-2} more elided ...`):vR.createTypeReferenceNode(`... ${e.length-2} more ...`,void 0),T(e[e.length-1],n)]}const r=!(64&n.flags)?He():void 0,o=[];let i=0;for(const t of e){if(i++,h(n)&&i+2<e.length-1){n.out.truncated=!0,o.push(1&n.flags?zR(vR.createKeywordTypeNode(133),3,`... ${e.length-i} more elided ...`):vR.createTypeReferenceNode(`... ${e.length-i} more ...`,void 0));const t=T(e[e.length-1],n);t&&o.push(t);break}n.approximateLength+=2;const a=T(t,n);a&&(o.push(a),r&&xA(a)&&r.add(a.typeName.escapedText,[t,o.length-1]))}if(r){const e=f(n);n.flags|=64,r.forEach(e=>{if(!RA(e,([e],[n])=>function(e,n){return e===n||!!e.symbol&&e.symbol===n.symbol||!!e.aliasSymbol&&e.aliasSymbol===n.aliasSymbol}(e,n)))for(const[t,r]of e)o[r]=T(t,n)}),e()}return o}}function L(e,n,t){const r=Ff(e)||"x",o=T(e.keyType,n),i=vR.createParameterDeclaration(void 0,void 0,r,void 0,o,void 0);return t||(t=T(e.type||In,n)),e.type||2097152&n.flags||(n.encounteredError=!0),n.approximateLength+=r.length+4,vR.createIndexSignature(e.isReadonly?[vR.createToken(148)]:void 0,[i],t)}function k(e,n,r,o){var i;let a,s;const l=zp(e,!0)[0],c=w(r,e.declaration,l,e.typeParameters,e.parameters,e.mapper);r.approximateLength+=3,32&r.flags&&e.target&&e.mapper&&e.target.typeParameters?s=e.target.typeParameters.map(n=>T(xE(n,e.mapper),r)):a=e.typeParameters&&e.typeParameters.map(e=>B(e,r));const d=f(r);r.flags&=-257;const p=(U(l,e=>e!==l[l.length-1]&&!!(32768&sT(e)))?e.parameters:l).map(e=>j(e,r,177===n)),m=33554432&r.flags?void 0:function(e,n){if(e.thisParameter)return j(e.thisParameter,n);if(e.declaration&&Lh(e.declaration)){const r=ec(e.declaration);if(r&&r.typeExpression)return vR.createParameterDeclaration(void 0,void 0,"this",void 0,T(t(n,r.typeExpression),n))}}(e,r);m&&p.unshift(m),d();const h=function(e,n){const t=256&e.flags,r=f(e);t&&(e.flags&=-257);let o;const i=Ag(n);if(!t||!rc(i)){if(n.declaration&&!ry(n.declaration)&&!_(i,e)){const t=Es(n.declaration),r=u(e,t,i);o=Ae.serializeReturnTypeForSignature(n.declaration,t,e),r()}o||(o=be(e,n,i))}o||t||(o=vR.createKeywordTypeNode(133));return r(),o}(r,e);let g=null==o?void 0:o.modifiers;if(186===n&&4&e.flags){const e=Yv(g);g=vR.createModifiersFromModifierFlags(64|e)}const y=180===n?vR.createCallSignature(a,p,h):181===n?vR.createConstructSignature(a,p,h):174===n?vR.createMethodSignature(g,(null==o?void 0:o.name)??vR.createIdentifier(""),null==o?void 0:o.questionToken,a,p,h):175===n?vR.createMethodDeclaration(g,void 0,(null==o?void 0:o.name)??vR.createIdentifier(""),void 0,a,p,h,void 0):177===n?vR.createConstructorDeclaration(g,p,void 0):178===n?vR.createGetAccessorDeclaration(g,(null==o?void 0:o.name)??vR.createIdentifier(""),p,h,void 0):179===n?vR.createSetAccessorDeclaration(g,(null==o?void 0:o.name)??vR.createIdentifier(""),p,void 0):182===n?vR.createIndexSignature(g,p,h):318===n?vR.createJSDocFunctionType(p,h):185===n?vR.createFunctionTypeNode(a,p,h??vR.createTypeReferenceNode(vR.createIdentifier(""))):186===n?vR.createConstructorTypeNode(g,a,p,h??vR.createTypeReferenceNode(vR.createIdentifier(""))):263===n?vR.createFunctionDeclaration(g,void 0,(null==o?void 0:o.name)?nn(o.name,dD):vR.createIdentifier(""),a,p,h,void 0):219===n?vR.createFunctionExpression(g,void 0,(null==o?void 0:o.name)?nn(o.name,dD):vR.createIdentifier(""),a,p,h,vR.createBlock([])):220===n?vR.createArrowFunction(g,a,p,h,void 0,vR.createBlock([])):dt.assertNever(n);if(s&&(y.typeArguments=vR.createNodeArray(s)),324===(null==(i=e.declaration)?void 0:i.kind)&&340===e.declaration.parent.kind){zR(y,3,Zp(e.declaration.parent.parent,!0).slice(2,-2).split(/\r\n|\n|\r/).map(e=>e.replace(/^\s+/," ")).join("\n"),!0)}return null==c||c(),y}function w(e,n,t,r,o,i){const a=fe(e);let l,c;const u=e.enclosingDeclaration,p=e.mapper;if(i&&(e.mapper=i),e.enclosingDeclaration&&n){let n=function(n,t){let r;dt.assert(e.enclosingDeclaration),ua(e.enclosingDeclaration).fakeScopeForSignatureDeclaration===n?r=e.enclosingDeclaration:e.enclosingDeclaration.parent&&ua(e.enclosingDeclaration.parent).fakeScopeForSignatureDeclaration===n&&(r=e.enclosingDeclaration.parent),dt.assertOptionalNode(r,JC);const o=(null==r?void 0:r.locals)??Qu();let i,a;if(t((e,n)=>{if(r){const n=o.get(e);n?a=re(a,{name:e,oldSymbol:n}):i=re(i,e)}o.set(e,n)}),r)return function(){d(i,e=>o.delete(e)),d(a,e=>o.set(e.name,e.oldSymbol))};{const t=vR.createBlock(s);ua(t).fakeScopeForSignatureDeclaration=n,t.locals=o,PA(t,e.enclosingDeclaration),e.enclosingDeclaration=t}};l=U(t)?n("params",e=>{if(t)for(let n=0;n<t.length;n++){const r=t[n],i=null==o?void 0:o[n];o&&i!==r?(e(r.escapedName,Sn),i&&e(i.escapedName,Sn)):d(r.declarations,n=>{return DD(n)&&xd(n.name)?(t(n.name),!0):void 0;function t(n){d(n.elements,n=>{switch(n.kind){case 233:return;case 209:return function(n){if(xd(n.name))return t(n.name);const r=Es(n);e(r.escapedName,r)}(n);default:return dt.assertNever(n)}})}})||e(r.escapedName,r)}}):void 0,4&e.flags&&U(r)&&(c=n("typeParams",n=>{for(const t of r??s){n(ae(t,e).escapedText,t.symbol)}}))}return()=>{null==l||l(),null==c||c(),a(),e.enclosingDeclaration=u,e.mapper=p}}function z(e,n,t){const r=f(n);n.flags&=-513;const o=vR.createModifiersFromModifierFlags(Dx(e)),i=ae(e,n),a=Rm(e),s=a&&T(a,n);return r(),vR.createTypeParameterDeclaration(o,i,t,s)}function B(e,n,r=um(e)){const o=r&&function(e,n,r){return!_(e,r)&&n&&t(r,n)===e&&Ae.tryReuseExistingTypeNode(r,n)||T(e,r)}(r,sy(e),n);return z(e,n,o)}function G(e,n){const t=2===e.kind||3===e.kind?vR.createToken(131):void 0,r=1===e.kind||3===e.kind?xR(vR.createIdentifier(e.parameterName),16777216):vR.createThisTypeNode(),o=e.type&&T(e.type,n);return vR.createTypePredicateNode(t,r,o)}function V(e){const n=Yu(e,170);return n||(Zu(e)?void 0:Yu(e,342))}function j(e,n,t){const r=V(e),o=ve(n,r,Vd(e),e),i=!(8192&n.flags)&&t&&r&&CL(r)?D(Ml(r),vR.cloneNode):void 0,a=r&&Vu(r)||32768&sT(e)?vR.createToken(26):void 0,s=H(e,r,n),l=r&&k_(r)||16384&sT(e)?vR.createToken(58):void 0,c=vR.createParameterDeclaration(i,a,s,l,o,void 0);return n.approximateLength+=Tl(e).length+3,c}function H(e,n,t){return n&&n.name?80===n.name.kind?xR(vR.cloneNode(n.name),16777216):167===n.name.kind?xR(vR.cloneNode(n.name.right),16777216):function e(n){t.tracker.canTrackSymbol&&RD(n)&&up(n)&&X(n.expression,t.enclosingDeclaration,t);let r=CB(n,e,void 0,void 0,e);return fC(r)&&(r=vR.updateBindingElement(r,r.dotDotDotToken,r.propertyName,r.name,void 0)),ry(r)||(r=vR.cloneNode(r)),xR(r,16777217)}(n.name):Tl(e)}function X(e,n,t){if(!t.tracker.canTrackSymbol)return;const r=ub(e),o=je(n,r.escapedText,1160127,void 0,!0);if(o)t.tracker.trackSymbol(o,n,111551);else{const e=je(r,r.escapedText,1160127,void 0,!0);e&&t.tracker.trackSymbol(e,n,111551)}}function Y(e,n,t,r){return n.tracker.trackSymbol(e,n.enclosingDeclaration,t),$(e,n,t,r)}function $(e,n,t,r){let o;return 262144&e.flags||!(n.enclosingDeclaration||64&n.flags)||4&n.internalFlags?o=[e]:(o=dt.checkDefined(function e(t,o,i){let a,s=Ys(t,n.enclosingDeclaration,o,!!(128&n.flags));if(!s||$s(s[0],n.enclosingDeclaration,1===s.length?o:Xs(o))){const r=Is(s?s[0]:t,n.enclosingDeclaration,o);if(c(r)){a=r.map(e=>U(e.declarations,ll)?ne(e,n):void 0);const i=r.map((e,n)=>n);i.sort(l);const c=i.map(e=>r[e]);for(const n of c){const r=e(n,Xs(o),!1);if(r){if(n.exports&&n.exports.get("export=")&&Ms(n.exports.get("export="),t)){s=r;break}s=r.concat(s||[Ns(n,t)||t]);break}}}}if(s)return s;if(i||!(6144&t.flags)){if(!i&&!r&&d(t.declarations,ll))return;return[t]}function l(e,n){const t=a[e],r=a[n];if(t&&r){const e=Si(r);return Si(t)===e?Dz(t)-Dz(r):e?-1:1}return 0}}(e,t,!0)),dt.assert(o&&o.length>0)),o}function Q(e,n){let t;return 524384&OB(e).flags&&(t=vR.createNodeArray(D(ou(e),e=>B(e,n)))),t}function Z(e,n,t){var r;dt.assert(e&&0<=n&&n<e.length);const o=e[n],i=dB(o);if(null==(r=t.typeParameterSymbolList)?void 0:r.has(i))return;let a;if(t.mustCreateTypeParameterSymbolList&&(t.mustCreateTypeParameterSymbolList=!1,t.typeParameterSymbolList=new Set(t.typeParameterSymbolList)),t.typeParameterSymbolList.add(i),512&t.flags&&n<e.length-1){const r=o,i=e[n+1];if(1&sT(i)){const e=function(e){return K(ru(e),ou(e))}(2097152&r.flags?Ja(r):r);a=M(D(e,e=>rE(e,i.links.mapper)),t)}else a=Q(o,t)}return a}function ee(e){return iC(e.objectType)?ee(e.objectType):e}function ne(n,t,r){let o=Yu(n,308);if(!o){const e=p(n.declarations,e=>Cs(e,n));e&&(o=Yu(e,308))}if(o&&void 0!==o.moduleName)return o.moduleName;if(!o&&Xz.test(n.escapedName))return n.escapedName.substring(1,n.escapedName.length-1);if(!t.enclosingFile||!t.tracker.moduleResolverHost)return Xz.test(n.escapedName)?n.escapedName.substring(1,n.escapedName.length-1):Sp(bf(n)).fileName;const i=fl(t.enclosingDeclaration),a=b_(i)?T_(i):void 0,s=t.enclosingFile,l=r||a&&e.getModeForUsageLocation(s,a)||s&&e.getDefaultResolutionModeForFile(s),c=wF(s.path,l),d=da(n);let u=d.specifierCache&&d.specifierCache.get(c);if(!u){const e=!!O.outFile,{moduleResolverHost:o}=t.tracker,i=e?{...O,baseUrl:o.getCommonSourceDirectory()}:O;u=he(Sz(n,qe,i,s,o,{importModuleSpecifierPreference:e?"non-relative":"project-relative",importModuleSpecifierEnding:e?"minimal":99===l?"js":void 0},{overrideImportMode:r})),d.specifierCache??(d.specifierCache=new Map),d.specifierCache.set(c,u)}return u}function te(e){const n=vR.createIdentifier(yl(e.escapedName));return e.parent?vR.createQualifiedName(te(e.parent),n):n}function oe(e,n,t,r){const o=Y(e,n,t,!(16384&n.flags)),i=111551===t;if(U(o[0].declarations,ll)){const e=o.length>1?s(o,o.length-1,1):void 0,t=r||Z(o,0,n),a=Sp(fl(n.enclosingDeclaration)),l=Ep(o[0]);let c,d;if(3!==AS(O)&&99!==AS(O)||99===(null==l?void 0:l.impliedNodeFormat)&&l.impliedNodeFormat!==(null==a?void 0:a.impliedNodeFormat)&&(c=ne(o[0],n,99),d=vR.createImportAttributes(vR.createNodeArray([vR.createImportAttribute(vR.createStringLiteral("resolution-mode"),vR.createStringLiteral("import"))]))),c||(c=ne(o[0],n)),!(67108864&n.flags)&&1!==AS(O)&&c.includes("/node_modules/")){const e=c;if(3===AS(O)||99===AS(O)){const t=99===(null==a?void 0:a.impliedNodeFormat)?1:99;c=ne(o[0],n,t),c.includes("/node_modules/")?c=e:d=vR.createImportAttributes(vR.createNodeArray([vR.createImportAttribute(vR.createStringLiteral("resolution-mode"),vR.createStringLiteral(99===t?"import":"require"))]))}d||(n.encounteredError=!0,n.tracker.reportLikelyUnsafeImportRequiredError&&n.tracker.reportLikelyUnsafeImportRequiredError(e))}const u=vR.createLiteralTypeNode(vR.createStringLiteral(c));if(n.approximateLength+=c.length+10,!e||rd(e)){if(e){tI(dD(e)?e:e.right,void 0)}return vR.createImportTypeNode(u,d,e,t,i)}{const n=ee(e),r=n.objectType.typeName;return vR.createIndexedAccessTypeNode(vR.createImportTypeNode(u,d,r,t,i),n.indexType)}}const a=s(o,o.length-1,0);if(iC(a))return a;if(i)return vR.createTypeQueryNode(a);{const e=dD(a)?a:a.right,n=rI(e);return tI(e,void 0),vR.createTypeReferenceNode(a,n)}function s(e,t,o){const i=t===e.length-1?r:Z(e,t,n),a=e[t],l=e[t-1];let c;if(0===t)n.flags|=16777216,c=Ul(a,n),n.approximateLength+=(c?c.length:0)+1,n.flags^=16777216;else if(l&&_s(l)){ap(_s(l),(e,n)=>{if(Ms(e,a)&&!mp(n)&&"export="!==n)return c=yl(n),!0})}if(void 0===c){const r=p(a.declarations,Dl);if(r&&RD(r)&&rd(r.expression)){const n=s(e,t-1,o);return rd(n)?vR.createIndexedAccessTypeNode(vR.createParenthesizedType(vR.createTypeQueryNode(n)),vR.createTypeQueryNode(r.expression)):n}c=Ul(a,n)}if(n.approximateLength+=c.length+1,!(16&n.flags)&&l&&Cp(l)&&Cp(l).get(a.escapedName)&&Ms(Cp(l).get(a.escapedName),a)){const n=s(e,t-1,o);return iC(n)?vR.createIndexedAccessTypeNode(n,vR.createLiteralTypeNode(vR.createStringLiteral(c))):vR.createIndexedAccessTypeNode(vR.createTypeReferenceNode(n,i),vR.createLiteralTypeNode(vR.createStringLiteral(c)))}const d=xR(vR.createIdentifier(c),16777216);if(i&&tI(d,vR.createNodeArray(i)),d.symbol=a,t>o){const n=s(e,t-1,o);return rd(n)?vR.createQualifiedName(n,d):dt.fail("Impossible construct - an export of an indexed access cannot be reachable")}return d}}function ie(e,n,t){const r=je(n.enclosingDeclaration,e,788968,void 0,!1);return!!(r&&262144&r.flags)&&r!==t.symbol}function ae(e,n){var t,o,i,a;if(4&n.flags&&n.typeParameterNames){const t=n.typeParameterNames.get(Pb(e));if(t)return t}let s=se(e.symbol,n,788968,!0);if(!(80&s.kind))return vR.createIdentifier("(Missing type parameter)");const l=null==(o=null==(t=e.symbol)?void 0:t.declarations)?void 0:o[0];if(l&&ID(l)&&(s=r(n,s,l.name)),4&n.flags){const t=s.escapedText;let r=(null==(i=n.typeParameterNamesByTextNextNameCount)?void 0:i.get(t))||0,o=t;for(;(null==(a=n.typeParameterNamesByText)?void 0:a.has(o))||ie(o,n,e);)r++,o=`${t}_${r}`;if(o!==t){const e=rI(s);s=vR.createIdentifier(o),tI(s,e)}n.mustCreateTypeParametersNamesLookups&&(n.mustCreateTypeParametersNamesLookups=!1,n.typeParameterNames=new Map(n.typeParameterNames),n.typeParameterNamesByTextNextNameCount=new Map(n.typeParameterNamesByTextNextNameCount),n.typeParameterNamesByText=new Set(n.typeParameterNamesByText)),n.typeParameterNamesByTextNextNameCount.set(t,r),n.typeParameterNames.set(Pb(e),s),n.typeParameterNamesByText.add(o)}return s}function se(e,n,t,r){const o=Y(e,n,t);return!r||1===o.length||n.encounteredError||65536&n.flags||(n.encounteredError=!0),function e(t,r){const o=Z(t,r,n),i=t[r];0===r&&(n.flags|=16777216);const a=Ul(i,n);0===r&&(n.flags^=16777216);const s=xR(vR.createIdentifier(a),16777216);o&&tI(s,vR.createNodeArray(o));return s.symbol=i,r>0?vR.createQualifiedName(e(t,r-1),s):s}(o,o.length-1)}function le(e,n,t){const r=Y(e,n,t);return function e(t,r){const o=Z(t,r,n),i=t[r];0===r&&(n.flags|=16777216);let a=Ul(i,n);0===r&&(n.flags^=16777216);let s=a.charCodeAt(0);if(Uh(s)&&U(i.declarations,ll)){const e=ne(i,n);return n.approximateLength+=2+e.length,vR.createStringLiteral(e)}if(0===r||$A(a,W)){const s=xR(vR.createIdentifier(a),16777216);return o&&tI(s,vR.createNodeArray(o)),s.symbol=i,n.approximateLength+=1+a.length,r>0?vR.createPropertyAccessExpression(e(t,r-1),s):s}{let l;if(91===s&&(a=a.substring(1,a.length-1),s=a.charCodeAt(0)),!Uh(s)||8&i.flags)""+ +a===a&&(n.approximateLength+=a.length,l=vR.createNumericLiteral(+a));else{const e=Py(a).replace(/\\./g,e=>e.substring(1));n.approximateLength+=e.length+2,l=vR.createStringLiteral(e,39===s)}if(!l){const e=xR(vR.createIdentifier(a),16777216);o&&tI(e,vR.createNodeArray(o)),e.symbol=i,n.approximateLength+=a.length,l=e}return n.approximateLength+=2,vR.createElementAccessExpression(e(t,r-1),l)}}(r,r.length-1)}function ce(e){const n=Dl(e);if(!n)return!1;if(RD(n)){return!!(402653316&HF(n.expression).flags)}if(gC(n)){return!!(402653316&HF(n.argumentExpression).flags)}return qI(n)}function de(e){const n=Dl(e);return!!(n&&qI(n)&&(n.singleQuote||!ry(n)&&Xn(Zp(n,!1),"'")))}function pe(e,n){const t=function(e){if(e.valueDeclaration&&Rl(e.valueDeclaration)&&uD(e.valueDeclaration.name))return vR.cloneNode(e.valueDeclaration.name);return}(e);if(t){if(!!n.tracker.reportPrivateInBaseOfClassExpression&&2048&n.flags){let n=yl(e.escapedName);return n=n.replace(/__#\d+@#/g,"__#private@#"),HA(n,SS(O),!1,!0,!!(8192&e.flags))}return t}const r=!!c(e.declarations)&&g(e.declarations,ce),o=!!c(e.declarations)&&g(e.declarations,de),i=!!(8192&e.flags),a=function(e,n,t,r,o){const i=da(e).nameType;if(i){if(384&i.flags){const e=""+i.value;return ys(e,SS(O))||!r&&UA(e)?UA(e)&&Xn(e,"-")?vR.createComputedPropertyName(vR.createPrefixUnaryExpression(41,vR.createNumericLiteral(-e))):HA(e,SS(O),t,r,o):vR.createStringLiteral(e,!!t)}if(8192&i.flags)return vR.createComputedPropertyName(le(i.symbol,n,111551))}}(e,n,o,r,i);if(a)return a;return HA(yl(e.escapedName),SS(O),o,r,i)}function fe(e){const n=e.mustCreateTypeParameterSymbolList,t=e.mustCreateTypeParametersNamesLookups;e.mustCreateTypeParameterSymbolList=!0,e.mustCreateTypeParametersNamesLookups=!0;const r=e.typeParameterNames,o=e.typeParameterNamesByText,i=e.typeParameterNamesByTextNextNameCount,a=e.typeParameterSymbolList;return()=>{e.typeParameterNames=r,e.typeParameterNamesByText=o,e.typeParameterNamesByTextNextNameCount=i,e.typeParameterSymbolList=a,e.mustCreateTypeParameterSymbolList=n,e.mustCreateTypeParametersNamesLookups=t}}function me(e,n){return e.declarations&&y(e.declarations,e=>!(!hV(e)||n&&!ml(e,e=>e===n)))}function _e(e,n){if(!(4&bT(n)))return!0;if(!VD(e))return!0;Ky(e);const t=ua(e).resolvedSymbol,r=t&&Wu(t);return!r||r!==n.target||c(e.typeArguments)>=z_(n.target.typeParameters)}function ge(e,n,t){8192&t.flags&&t.symbol===e&&(!n.enclosingDeclaration||U(e.declarations,e=>Sp(e)===n.enclosingFile))&&(n.flags|=1048576);return T(t,n)}function ve(e,n,t,r){var o;let i;const a=n&&(DD(n)||jM(n))&&qG(n,e.enclosingDeclaration),s=n??r.valueDeclaration??me(r)??(null==(o=r.declarations)?void 0:o[0]);if(!_(t,e)&&s){const n=u(e,r,t);hd(s)?i=Ae.serializeTypeOfAccessor(s,r,e):!Rx(s)||ry(s)||196608&bT(t)||(i=Ae.serializeTypeOfDeclaration(s,r,e)),n()}return i||(a&&(t=IR(t)),i=ge(r,e,t)),i??vR.createKeywordTypeNode(133)}function be(e,n,t){const r=e.suppressReportInferenceFallback;e.suppressReportInferenceFallback=!0;const o=fg(n),i=o?G(e.mapper?hE(o,e.mapper):o,e):T(t,e);return e.suppressReportInferenceFallback=r,i}function Te(e,n,t=n.enclosingDeclaration){let o=!1;const i=ub(e);if(Lh(e)&&(n_(i)||r_(i.parent)||xD(i.parent)&&t_(i.parent.left)&&n_(i.parent.right)))return o=!0,{introducesError:o,node:e};const a=ul(e);let s;if(pv(i))return s=Es(rh(i,!1,!1)),0!==nl(s,i,a,!1).accessibility&&(o=!0,n.tracker.reportInaccessibleThisError()),{introducesError:o,node:l(e)};if(s=ts(i,a,!0,!0),n.enclosingDeclaration&&!(s&&262144&s.flags)){s=Ls(s);const t=ts(i,a,!0,!0,n.enclosingDeclaration);if(t===Sn||void 0===t&&void 0!==s||t&&s&&!Ms(Ls(t),s))return t!==Sn&&n.tracker.reportInferenceFallback(e),o=!0,{introducesError:o,node:e,sym:s};s=t}return s?(1&s.flags&&s.valueDeclaration&&(ey(s.valueDeclaration)||jM(s.valueDeclaration))||(262144&s.flags||pg(e)||0===nl(s,t,a,!1).accessibility?n.tracker.trackSymbol(s,t,a):(n.tracker.reportInferenceFallback(e),o=!0)),{introducesError:o,node:l(e)}):{introducesError:o,node:e};function l(e){if(e===i){const t=Wu(s),o=262144&s.flags?ae(t,n):vR.cloneNode(e);return o.symbol=s,r(n,xR(o,16777216),e)}const t=CB(e,e=>l(e),void 0);return r(n,t,e)}}function Se(e,n){const r=t(e,n,!0);if(!r)return!1;if(Lh(n)&&hm(n)){cS(n);const e=ua(n).resolvedSymbol;return!e||!!((n.isTypeOf||788968&e.flags)&&c(n.typeArguments)>=z_(ou(e)))}if(VD(n)){if(xc(n))return!1;const t=ua(n).resolvedSymbol;if(!t)return!1;if(262144&t.flags){const n=Wu(t);return!(e.mapper&&rE(n,e.mapper)!==n)}if(Oh(n))return _e(n,r)&&!Hy(n)&&!!(788968&t.flags)}if(oC(n)&&158===n.operator&&155===n.type.kind){const t=e.enclosingDeclaration&&function(e){for(;ua(e).fakeScopeForSignatureDeclaration;)e=e.parent;return e}(e.enclosingDeclaration);return!!ml(n,e=>e===t)}return!0}function Ee(e,n){var o;const a=ce(vR.createPropertyDeclaration,175,!0),l=ce((e,n,t,r)=>vR.createPropertySignature(e,n,t,r),174,!1),u=n.enclosingDeclaration;let h=[];const _=new Set,v=[],S=n;n={...S,usedSymbolNames:new Set(S.usedSymbolNames),remappedSymbolNames:new Map,remappedSymbolReferences:new Map(null==(o=S.remappedSymbolReferences)?void 0:o.entries()),tracker:void 0};const E={...S.tracker.inner,trackSymbol:(e,t,r)=>{var o,i;if(null==(o=n.remappedSymbolNames)?void 0:o.has(dB(e)))return!1;if(0===nl(e,t,r,!1).accessibility){const t=$(e,n,r);if(!(4&e.flags)){const e=t[0],n=Sp(S.enclosingDeclaration);U(e.declarations,e=>Sp(e)===n)&&z(e)}}else if(null==(i=S.tracker.inner)?void 0:i.trackSymbol)return S.tracker.inner.trackSymbol(e,t,r);return!1}};n.tracker=new yB(n,E,S.tracker.moduleResolverHost),ap(e,(e,n)=>{Ee(e,yl(n))});let A=!n.bundled;const R=e.get("export=");return R&&e.size>1&&2098688&R.flags&&(e=Qu()).set("export=",R),M(e),function(e){e=function(e){const n=b(e,e=>FN(e)&&!e.moduleSpecifier&&!e.attributes&&!!e.exportClause&&WN(e.exportClause));if(n>=0){const t=e[n],r=F(t.exportClause.elements,n=>{if(!n.propertyName&&11!==n.name.kind){const t=n.name,r=x(J(e),n=>Al(e[n],t));if(c(r)&&g(r,n=>XA(e[n]))){for(const n of r)e[n]=C(e[n]);return}}return n});c(r)?e[n]=vR.updateExportDeclaration(t,t.modifiers,t.isTypeOnly,vR.updateNamedExports(t.exportClause,r),t.moduleSpecifier,t.attributes):Vn(e,n)}return e}(e=function(e){const n=x(e,e=>FN(e)&&!e.moduleSpecifier&&!!e.exportClause&&WN(e.exportClause));if(c(n)>1){e=[...x(e,e=>!FN(e)||!!e.moduleSpecifier||!e.exportClause),vR.createExportDeclaration(void 0,!1,vR.createNamedExports(P(n,e=>nn(e.exportClause,WN).elements)),void 0)]}const t=x(e,e=>FN(e)&&!!e.moduleSpecifier&&!!e.exportClause&&WN(e.exportClause));if(c(t)>1){const n=ze(t,e=>qI(e.moduleSpecifier)?">"+e.moduleSpecifier.text:">");if(n.length!==t.length)for(const t of n)t.length>1&&(e=[...x(e,e=>!t.includes(e)),vR.createExportDeclaration(void 0,!1,vR.createNamedExports(P(t,e=>nn(e.exportClause,WN).elements)),t[0].moduleSpecifier)])}return e}(e=function(e){const n=y(e,ON),t=b(e,bN);let r=-1!==t?e[t]:void 0;if(r&&n&&n.isExportEquals&&dD(n.expression)&&dD(r.name)&&vl(r.name)===vl(n.expression)&&r.body&&TN(r.body)){const o=x(e,e=>!!(32&jv(e))),i=r.name;let a=r.body;if(c(o)&&(r=vR.updateModuleDeclaration(r,r.modifiers,r.name,a=vR.updateModuleBlock(a,vR.createNodeArray([...r.body.statements,vR.createExportDeclaration(void 0,!1,vR.createNamedExports(D(P(o,e=>function(e){if(XC(e))return x(D(e.declarationList.declarations,Dl),I);return x([Dl(e)],I)}(e)),e=>vR.createExportSpecifier(!1,void 0,e))),void 0)]))),e=[...e.slice(0,t),r,...e.slice(t+1)]),!y(e,e=>e!==r&&Al(e,i))){h=[];const t=!U(a.statements,e=>Mv(e,32)||ON(e)||FN(e));d(a.statements,e=>{G(e,t?32:0)}),e=[...x(e,e=>e!==r&&e!==n),...h]}}return e}(e))),u&&(uM(u)&&rm(u)||bN(u))&&(!U(e,Zd)||!$d(e)&&U(e,Qd))&&e.push(lP(vR));return e}(h);function I(e){return!!e&&80===e.kind}function C(e){const n=-129&jv(e)|32;return vR.replaceModifiers(e,n)}function N(e){const n=-33&jv(e);return vR.replaceModifiers(e,n)}function M(e,t,r){t||v.push(new Map);let o=0;const i=Array.from(e.values());for(const a of i){if(o++,m(n)&&o+2<e.size-1){n.out.truncated=!0,h.push(Q(`... (${e.size-o} more ...)`)),w(i[i.length-1],!1,!!r);break}w(a,!1,!!r)}t||(v[v.length-1].forEach(e=>{w(e,!0,!!r)}),v.pop())}function w(e,t,r){cm(Vd(e));const o=Ss(e);if(_.has(dB(o)))return;_.add(dB(o));if(!t||c(e.declarations)&&U(e.declarations,e=>!!ml(e,e=>e===u))){const o=fe(n);n.tracker.pushErrorFallbackNode(y(e.declarations,e=>Sp(e)===n.enclosingFile)),O(e,t,r),n.tracker.popErrorFallbackNode(),o()}}function O(e,o,a,l=e.escapedName){var u,p,h,_,v,b,S;const E=yl(l),A="default"===l;if(o&&!(131072&n.flags)&&Lg(E)&&!A)return void(n.encounteredError=!0);let R=A&&!!(-113&e.flags||16&e.flags&&c(cm(Vd(e))))&&!(2097152&e.flags),I=!R&&!o&&Lg(E)&&!A;(R||I)&&(o=!0);const C=(o?0:32)|(A&&!R?2048:0),N=1536&e.flags&&7&e.flags&&"export="!==l,M=N&&ae(Vd(e),e);if((8208&e.flags||M)&&Y(Vd(e),e,Ee(e,E),C),524288&e.flags&&function(e,t,r){var o;const i=Su(e),a=da(e).typeParameters,s=D(a,e=>B(e,n)),l=null==(o=e.declarations)?void 0:o.find(M_),c=pc(l?l.comment||l.parent.comment:void 0),d=f(n);n.flags|=8388608;const u=n.enclosingDeclaration;n.enclosingDeclaration=l;const p=l&&l.typeExpression&&fM(l.typeExpression)&&Ae.tryReuseExistingTypeNode(n,l.typeExpression.type)||T(i,n),m=Ee(e,t);n.approximateLength+=8+((null==c?void 0:c.length)??0)+m.length,G(WR(vR.createTypeAliasDeclaration(void 0,m,s,p),c?[{kind:3,text:"*\n * "+c.replace(/\n/g,"\n * ")+"\n ",pos:-1,end:-1,hasTrailingNewLine:!0}]:[]),r),d(),n.enclosingDeclaration=u}(e,E,C),98311&e.flags&&"export="!==l&&!(4194304&e.flags)&&!(32&e.flags)&&!(8192&e.flags)&&!M)if(a){ie(e)&&(I=!1,R=!1)}else{const t=Vd(e),i=Ee(e,E);if(t.symbol&&t.symbol!==e&&16&t.symbol.flags&&U(t.symbol.declarations,VA)&&((null==(u=t.symbol.members)?void 0:u.size)||(null==(p=t.symbol.exports)?void 0:p.size)))n.remappedSymbolReferences||(n.remappedSymbolReferences=new Map),n.remappedSymbolReferences.set(dB(t.symbol),e),O(t.symbol,o,a,l),n.remappedSymbolReferences.delete(dB(t.symbol));else if(16&e.flags||!ae(t,e)){const a=2&e.flags?rM(e)?2:1:(null==(h=e.parent)?void 0:h.valueDeclaration)&&uM(null==(_=e.parent)?void 0:_.valueDeclaration)?2:void 0,s=!R&&4&e.flags?be(i,e):i;let l=e.declarations&&y(e.declarations,e=>fN(e));l&&mN(l.parent)&&1===l.parent.declarations.length&&(l=l.parent.parent);const c=null==(v=e.declarations)?void 0:v.find(_C);if(c&&MC(c.parent)&&dD(c.parent.right)&&(null==(b=t.symbol)?void 0:b.valueDeclaration)&&uM(t.symbol.valueDeclaration)){const e=i===c.parent.right.escapedText?void 0:c.parent.right;n.approximateLength+=12+((null==(S=null==e?void 0:e.escapedText)?void 0:S.length)??0),G(vR.createExportDeclaration(void 0,!1,vR.createNamedExports([vR.createExportSpecifier(!1,e,i)])),0),n.tracker.trackSymbol(t.symbol,n.enclosingDeclaration,111551)}else{const c=r(n,vR.createVariableStatement(void 0,vR.createVariableDeclarationList([vR.createVariableDeclaration(s,void 0,ve(n,void 0,t,e))],a)),l);n.approximateLength+=7+s.length,G(c,s!==i?-33&C:C),s===i||o||(n.approximateLength+=16+s.length+i.length,G(vR.createExportDeclaration(void 0,!1,vR.createNamedExports([vR.createExportSpecifier(!1,s,i)])),0),I=!1,R=!1)}}else Y(t,e,i,C)}if(384&e.flags&&function(e,t,r){const o=Ee(e,t);n.approximateLength+=9+o.length;const i=[],a=x(cm(Vd(e)),e=>!!(8&e.flags));let s=0;for(const l of a){if(s++,m(n)&&s+2<a.length-1){n.out.truncated=!0,i.push(vR.createEnumMember(` ... ${a.length-s} more ... `));const e=a[a.length-1],t=e.declarations&&e.declarations[0]&&dM(e.declarations[0])?eV(e.declarations[0]):void 0,r=void 0===t?void 0:"string"==typeof t?vR.createStringLiteral(t):vR.createNumericLiteral(t),o=yl(e.escapedName),l=vR.createEnumMember(o,r);i.push(l);break}const e=l.declarations&&l.declarations[0]&&dM(l.declarations[0])?l.declarations[0]:void 0;let t,r;if(xe(n)&&e&&e.initializer)t=Vx(e.initializer),r=e.initializer.end-e.initializer.pos;else{const n=e&&eV(e);t=void 0===n?void 0:"string"==typeof n?vR.createStringLiteral(n):vR.createNumericLiteral(n),r=(null==t?void 0:t.text.length)??0}const o=yl(l.escapedName);n.approximateLength+=4+o.length+r;const c=vR.createEnumMember(o,t);i.push(c)}G(vR.createEnumDeclaration(vR.createModifiersFromModifierFlags(cF(e)?4096:0),o,i),r)}(e,E,C),32&e.flags&&(4&e.flags&&e.valueDeclaration&&MC(e.valueDeclaration.parent)&&OC(e.valueDeclaration.parent.right)?re(e,Ee(e,E),C):function(e,o,i){var a,l;n.approximateLength+=9+o.length;const u=null==(a=e.declarations)?void 0:a.find(md),p=n.enclosingDeclaration;n.enclosingDeclaration=u||p;const f=ou(e),m=D(f,e=>B(e,n));d(f,e=>n.approximateLength+=Tl(e.symbol).length);const h=Lp(bu(e)),_=gu(h),g=u&&Eg(u),y=g&&function(e){const r=F(e,e=>{const r=n.enclosingDeclaration;n.enclosingDeclaration=e;let o=e.expression;if(db(o)){if(dD(o)&&""===vl(o))return i(void 0);let e;if(({introducesError:e,node:o}=Te(o,n)),e)return i(void 0)}return i(vR.createExpressionWithTypeArguments(o,D(e.typeArguments,e=>Ae.tryReuseExistingTypeNode(n,e)||T(t(n,e),n))));function i(e){return n.enclosingDeclaration=r,e}});if(r.length===e.length)return r;return}(g)||F(function(e){let n=s;if(e.symbol.declarations)for(const t of e.symbol.declarations){const e=Eg(t);if(e)for(const t of e){const e=qS(t);ac(e)||(n===s?n=[e]:n.push(e))}}return n}(h),ye),v=Vd(e),b=!!(null==(l=v.symbol)?void 0:l.valueDeclaration)&&md(v.symbol.valueDeclaration),S=b?mu(v):In;n.approximateLength+=(c(_)?8:0)+(c(y)?11:0);const E=[...c(_)?[vR.createHeritageClause(96,D(_,e=>function(e,t,r){const o=ge(e,111551);if(o)return o;const i=be(`${r}_base`),a=vR.createVariableStatement(void 0,vR.createVariableDeclarationList([vR.createVariableDeclaration(i,void 0,T(t,n))],2));return G(a,0),vR.createExpressionWithTypeArguments(vR.createIdentifier(i),void 0)}(e,S,o)))]:[],...c(y)?[vR.createHeritageClause(119,y)]:[]],A=function(e,n,t){if(!c(n))return t;const r=new Map;d(t,e=>{r.set(e.escapedName,e)});for(const o of n){const n=cm(Lp(o,e.thisType));for(const e of n){const n=r.get(e.escapedName);n&&e.parent===n.parent&&r.delete(e.escapedName)}}return Le(r.values())}(h,_,cm(h)),R=x(A,e=>!Re(e)),I=U(A,Re),C=I?xe(n)?j(x(A,Re),!0,_[0],!1):[vR.createPropertyDeclaration(void 0,vR.createPrivateIdentifier("#private"),void 0,void 0,void 0)]:s;I&&!xe(n)&&(n.approximateLength+=9);const N=j(R,!0,_[0],!1),M=j(x(cm(v),e=>!(4194304&e.flags||"prototype"===e.escapedName||te(e))),!0,S,!0),P=!b&&!!e.valueDeclaration&&Lh(e.valueDeclaration)&&!U(Vh(v,1));P&&(n.approximateLength+=21);const L=P?[vR.createConstructorDeclaration(vR.createModifiersFromModifierFlags(2),[],void 0)]:he(1,v,S,177),k=_e(h,_[0]);n.enclosingDeclaration=p,G(r(n,vR.createClassDeclaration(void 0,o,m,E,[...k,...M,...L,...N,...C]),e.declarations&&x(e.declarations,e=>_N(e)||OC(e))[0]),i)}(e,Ee(e,E),C)),(1536&e.flags&&(!N||function(e){return g(X(e),e=>!(111551&Xa(Ka(e))))}(e))||M)&&function(e,t,r){const o=X(e),a=xe(n),l=We(o,n=>n.parent&&n.parent===e||a?"real":"merged"),d=l.get("real")||s,u=l.get("merged")||s;if(c(d)||a){let o;if(a){const t=n.flags;n.flags|=514,o=i(e,n,-1),n.flags=t}else{const r=Ee(e,t);o=vR.createIdentifier(r),n.approximateLength+=r.length}ee(d,o,r,!!(67108880&e.flags))}if(c(u)){const r=Sp(n.enclosingDeclaration),o=Ee(e,t),i=vR.createModuleBlock([vR.createExportDeclaration(void 0,!1,vR.createNamedExports(F(x(u,e=>"export="!==e.escapedName),t=>{var o,i;const a=yl(t.escapedName),s=Ee(t,a),l=t.declarations&&xa(t);if(r&&(l?r!==Sp(l):!U(t.declarations,e=>Sp(e)===r)))return void(null==(i=null==(o=n.tracker)?void 0:o.reportNonlocalAugmentation)||i.call(o,r,e,t));const c=l&&ja(l,!0);z(c||t);const d=c?Ee(c,yl(c.escapedName)):s;return vR.createExportSpecifier(!1,a===d?void 0:d,a)})))]);G(vR.createModuleDeclaration(void 0,vR.createIdentifier(o),i,32),0)}}(e,E,C),64&e.flags&&!(32&e.flags)&&function(e,t,r){const o=Ee(e,t);n.approximateLength+=14+o.length;const i=bu(e),a=ou(e),s=D(a,e=>B(e,n)),l=gu(i),d=c(l)?Xb(l):void 0,u=j(cm(i),!1,d),p=he(0,i,d,180),f=he(1,i,d,181),m=_e(i,d),h=c(l)?[vR.createHeritageClause(96,F(l,e=>ge(e,111551)))]:void 0;G(vR.createInterfaceDeclaration(void 0,o,s,h,[...m,...f,...p,...u]),r)}(e,E,C),2097152&e.flags&&re(e,Ee(e,E),C),4&e.flags&&"export="===e.escapedName&&ie(e),8388608&e.flags&&e.declarations)for(const t of e.declarations){const e=os(t,t.moduleSpecifier);if(!e)continue;const r=t.isTypeOnly,o=ne(e,n);n.approximateLength+=17+o.length,G(vR.createExportDeclaration(void 0,r,void 0,vR.createStringLiteral(o)),0)}if(R){const t=Ee(e,E);n.approximateLength+=16+t.length,G(vR.createExportAssignment(void 0,!1,vR.createIdentifier(t)),0)}else if(I){const t=Ee(e,E);n.approximateLength+=22+E.length+t.length,G(vR.createExportDeclaration(void 0,!1,vR.createNamedExports([vR.createExportSpecifier(!1,t,E)])),0)}}function z(e){if(U(e.declarations,ey))return;dt.assertIsDefined(v[v.length-1]),be(yl(e.escapedName),e);const n=!!(2097152&e.flags)&&!U(e.declarations,e=>!!ml(e,FN)||LN(e)||AN(e)&&!UN(e.moduleReference));v[n?0:v.length-1].set(dB(e),e)}function G(e,t){if(CL(e)){const r=jv(e);let o=0;const i=n.enclosingDeclaration&&(M_(n.enclosingDeclaration)?Sp(n.enclosingDeclaration):n.enclosingDeclaration);32&t&&i&&(function(e){return uM(e)&&(rm(e)||om(e))||pf(e)&&!gf(e)}(i)||bN(i))&&XA(e)&&(o|=32),!A||32&o||i&&33554432&i.flags||!(vN(e)||XC(e)||hN(e)||_N(e)||bN(e))||(o|=128),2048&t&&(_N(e)||gN(e)||hN(e))&&(o|=2048),o&&(e=vR.replaceModifiers(e,o|r)),n.approximateLength+=de(o|r)}h.push(e)}function j(e,t,r,o){const i=[];let s=0;for(const l of e){if(s++,m(n)&&s+2<e.length-1){n.out.truncated=!0;const l=K(`... ${e.length-s} more ... `,t);i.push(l);const c=t?a(e[e.length-1],o,r):ue(e[e.length-1],r);Ye(c)?i.push(...c):i.push(c);break}n.approximateLength+=1;const c=t?a(l,o,r):ue(l,r);Ye(c)?i.push(...c):i.push(c)}return i}function K(e,t){return 1&n.flags?zR(vR.createNotEmittedTypeElement(),3,e):t?vR.createPropertyDeclaration(void 0,e,void 0,void 0,void 0):vR.createPropertySignature(void 0,e,void 0,void 0)}function X(e){let n=Le(_s(e).values());const t=Ss(e);if(t!==e){const e=new Set(n);for(const n of _s(t).values())111551&Xa(Ka(n))||e.add(n);n=Le(e)}return x(n,e=>te(e)&&ys(e.escapedName,99))}function Y(e,t,o,i){const a=Vh(e,0);for(const s of a){n.approximateLength+=1;const e=k(s,263,n,{name:vR.createIdentifier(o)});G(r(n,e,Z(s)),i)}if(!(1536&t.flags&&t.exports&&t.exports.size)){const t=x(cm(e),te);n.approximateLength+=o.length,ee(t,vR.createIdentifier(o),i,!0)}}function Q(e){return 1&n.flags?zR(vR.createEmptyStatement(),3,e):vR.createExpressionStatement(vR.createIdentifier(e))}function Z(e){if(e.declaration&&e.declaration.parent){if(MC(e.declaration.parent)&&5===o_(e.declaration.parent))return e.declaration.parent;if(fN(e.declaration.parent)&&e.declaration.parent.parent)return e.declaration.parent.parent}return e.declaration}function ee(e,t,r,o){const i=dD(t)?32:0,a=xe(n);if(c(e)){n.approximateLength+=14;const l=We(e,e=>!c(e.declarations)||U(e.declarations,e=>Sp(e)===Sp(n.enclosingDeclaration))||a?"local":"remote").get("local")||s;let d=PL.createModuleDeclaration(void 0,t,vR.createModuleBlock([]),i);PA(d,u),d.locals=Qu(e),d.symbol=e[0].parent;const p=h;h=[];const f=A;A=!1;const m={...n,enclosingDeclaration:d},_=n;n=m,M(Qu(l),o,!0),n=_,A=f;const y=h;h=p;const v=D(y,e=>ON(e)&&!e.isExportEquals&&dD(e.expression)?vR.createExportDeclaration(void 0,!1,vR.createNamedExports([vR.createExportSpecifier(!1,e.expression,vR.createIdentifier("default"))])):e),b=g(v,e=>Mv(e,32))?D(v,N):v;d=vR.updateModuleDeclaration(d,d.modifiers,d.name,vR.createModuleBlock(b)),G(d,r)}else a&&(n.approximateLength+=14,G(vR.createModuleDeclaration(void 0,t,vR.createModuleBlock([]),i),r))}function te(e){return!!(2887656&e.flags)||!(4194304&e.flags||"prototype"===e.escapedName||e.valueDeclaration&&Pv(e.valueDeclaration)&&md(e.valueDeclaration.parent))}function re(e,t,r){var o,i,a,s,l;const c=xa(e);if(!c)return dt.fail();const d=Ss(ja(c,!0));if(!d)return;let u=hf(d)&&p(e.declarations,e=>{if(wN(e)||zN(e))return Xp(e.propertyName||e.name);if(MC(e)||ON(e)){const n=ON(e)?e.expression:e.right;if(_C(n))return vl(n.name)}if(Ra(e)){const n=Dl(e);if(n&&dD(n))return vl(n)}})||yl(d.escapedName);"export="===u&&q&&(u="default");const f=Ee(d,u);switch(z(d),c.kind){case 209:if(261===(null==(i=null==(o=c.parent)?void 0:o.parent)?void 0:i.kind)){const e=ne(d.parent||d,n),{propertyName:r}=c,o=r&&dD(r)?vl(r):void 0;n.approximateLength+=24+t.length+e.length+((null==o?void 0:o.length)??0),G(vR.createImportDeclaration(void 0,vR.createImportClause(void 0,void 0,vR.createNamedImports([vR.createImportSpecifier(!1,o?vR.createIdentifier(o):void 0,vR.createIdentifier(t))])),vR.createStringLiteral(e),void 0),0);break}dt.failBadSyntaxKind((null==(a=c.parent)?void 0:a.parent)||c,"Unhandled binding element grandparent kind in declaration serialization");break;case 305:227===(null==(l=null==(s=c.parent)?void 0:s.parent)?void 0:l.kind)&&oe(yl(e.escapedName),f);break;case 261:if(_C(c.initializer)){const e=c.initializer,o=vR.createUniqueName(t),i=ne(d.parent||d,n);n.approximateLength+=22+i.length+vl(o).length,G(vR.createImportEqualsDeclaration(void 0,!1,o,vR.createExternalModuleReference(vR.createStringLiteral(i))),0),n.approximateLength+=12+t.length+vl(o).length+vl(e.name).length,G(vR.createImportEqualsDeclaration(void 0,!1,vR.createIdentifier(t),vR.createQualifiedName(o,e.name)),r);break}case 272:if("export="===d.escapedName&&U(d.declarations,e=>uM(e)&&om(e))){ie(e);break}const p=!(512&d.flags||fN(c));n.approximateLength+=11+t.length+yl(d.escapedName).length,G(vR.createImportEqualsDeclaration(void 0,!1,vR.createIdentifier(t),p?se(d,n,-1,!1):vR.createExternalModuleReference(vR.createStringLiteral(ne(d,n)))),p?r:0);break;case 271:G(vR.createNamespaceExportDeclaration(vl(c.name)),0);break;case 274:{const e=ne(d.parent||d,n),r=n.bundled?vR.createStringLiteral(e):c.parent.moduleSpecifier,o=xN(c.parent)?c.parent.attributes:void 0,i=eP(c.parent);n.approximateLength+=14+t.length+3+(i?4:0),G(vR.createImportDeclaration(void 0,vR.createImportClause(i?156:void 0,vR.createIdentifier(t),void 0),r,o),0);break}case 275:{const e=ne(d.parent||d,n),r=n.bundled?vR.createStringLiteral(e):c.parent.parent.moduleSpecifier,o=eP(c.parent.parent);n.approximateLength+=19+t.length+3+(o?4:0),G(vR.createImportDeclaration(void 0,vR.createImportClause(o?156:void 0,void 0,vR.createNamespaceImport(vR.createIdentifier(t))),r,c.parent.attributes),0);break}case 281:n.approximateLength+=19+t.length+3,G(vR.createExportDeclaration(void 0,!1,vR.createNamespaceExport(vR.createIdentifier(t)),vR.createStringLiteral(ne(d,n))),0);break;case 277:{const e=ne(d.parent||d,n),r=n.bundled?vR.createStringLiteral(e):c.parent.parent.parent.moduleSpecifier,o=eP(c.parent.parent.parent);n.approximateLength+=19+t.length+3+(o?4:0),G(vR.createImportDeclaration(void 0,vR.createImportClause(o?156:void 0,void 0,vR.createNamedImports([vR.createImportSpecifier(!1,t!==u?vR.createIdentifier(u):void 0,vR.createIdentifier(t))])),r,c.parent.parent.parent.attributes),0);break}case 282:const m=c.parent.parent.moduleSpecifier;if(m){const e=c.propertyName;e&&$p(e)&&(u="default")}oe(yl(e.escapedName),m?u:f,m&&zu(m)?vR.createStringLiteral(m.text):void 0);break;case 278:ie(e);break;case 227:case 212:case 213:"default"===e.escapedName||"export="===e.escapedName?ie(e):oe(t,f);break;default:return dt.failBadSyntaxKind(c,"Unhandled alias declaration kind in symbol serializer!")}}function oe(e,t,r){n.approximateLength+=16+e.length+(e!==t?t.length:0),G(vR.createExportDeclaration(void 0,!1,vR.createNamedExports([vR.createExportSpecifier(!1,e!==t?t:void 0,e)]),r),0)}function ie(e){var t;if(4194304&e.flags)return!1;const r=yl(e.escapedName),o="export="===r,i=o||"default"===r,a=e.declarations&&xa(e),s=a&&ja(a,!0);if(s&&c(s.declarations)&&U(s.declarations,e=>Sp(e)===Sp(u))){const t=a&&(ON(a)||MC(a)?vg(a):bg(a)),l=t&&db(t)?function(e){switch(e.kind){case 80:return e;case 167:do{e=e.left}while(80!==e.kind);return e;case 212:do{if(r_(e.expression)&&!uD(e.name))return e.name;e=e.expression}while(80!==e.kind);return e}}(t):void 0,c=l&&ts(l,-1,!0,!0,u);(c||s)&&z(c||s);const d=n.tracker.disableTrackSymbol;if(n.tracker.disableTrackSymbol=!0,i)n.approximateLength+=10,h.push(vR.createExportAssignment(void 0,o,le(s,n,-1)));else if(l===t&&l)oe(r,vl(l));else if(t&&OC(t))oe(r,Ee(s,Tl(s)));else{const t=be(r,e);n.approximateLength+=t.length+10,G(vR.createImportEqualsDeclaration(void 0,!1,vR.createIdentifier(t),se(s,n,-1,!1)),0),oe(r,t)}return n.tracker.disableTrackSymbol=d,!0}{const a=be(r,e),l=JR(Vd(Ss(e)));if(ae(l,e))Y(l,e,a,i?0:32);else{const o=268!==(null==(t=n.enclosingDeclaration)?void 0:t.kind)||98304&e.flags&&!(65536&e.flags)?2:1;n.approximateLength+=a.length+5;G(vR.createVariableStatement(void 0,vR.createVariableDeclarationList([vR.createVariableDeclaration(a,void 0,ve(n,void 0,l,e))],o)),s&&4&s.flags&&"export="===s.escapedName?128:r===a?32:0)}return i?(n.approximateLength+=a.length+10,h.push(vR.createExportAssignment(void 0,o,vR.createIdentifier(a))),!0):r!==a&&(oe(r,a),!0)}}function ae(e,t){var r;const o=Sp(n.enclosingDeclaration);return 48&bT(e)&&!U(null==(r=e.symbol)?void 0:r.declarations,Ed)&&!c(l_(e))&&!kl(e)&&!(!c(x(cm(e),te))&&!c(Vh(e,0)))&&!c(Vh(e,1))&&!me(t,u)&&!(e.symbol&&U(e.symbol.declarations,e=>Sp(e)!==o))&&!U(cm(e),e=>mp(e.escapedName))&&!U(cm(e),e=>U(e.declarations,e=>Sp(e)!==o))&&g(cm(e),e=>!!ys(Tl(e),W)&&(!(98304&e.flags)||jd(e)===Bd(e)))}function ce(e,t,o){return function(i,a,s){var l,c,u,p,f,m;const h=lT(i),_=!!(2&h)&&!xe(n);if(a&&2887656&i.flags)return[];if(4194304&i.flags||"constructor"===i.escapedName||s&&wh(s,i.escapedName)&&QO(wh(s,i.escapedName))===QO(i)&&(16777216&i.flags)==(16777216&wh(s,i.escapedName).flags)&&kE(Vd(i),nc(s,i.escapedName)))return[];const g=-1025&h|(a?256:0),y=pe(i,n),v=null==(l=i.declarations)?void 0:l.find(et(MD,hd,fN,ND,MC,_C));if(98304&i.flags&&o){const e=[];if(65536&i.flags){const t=i.declarations&&d(i.declarations,e=>179===e.kind?e:yC(e)&&i_(e)?d(e.arguments[2].properties,e=>{const n=Dl(e);if(n&&dD(n)&&"set"===vl(n))return e}):void 0);dt.assert(!!t);const o=ld(t)?G_(t).parameters[0]:void 0,a=null==(c=i.declarations)?void 0:c.find(Cu);n.approximateLength+=de(g)+7+(o?Tl(o).length:5)+(_?0:2),e.push(r(n,vR.createSetAccessorDeclaration(vR.createModifiersFromModifierFlags(g),y,[vR.createParameterDeclaration(void 0,void 0,o?H(o,V(o),n):"value",void 0,_?void 0:ve(n,a,Bd(i),i))],void 0),a??v))}if(32768&i.flags){const t=null==(u=i.declarations)?void 0:u.find(Nu);n.approximateLength+=de(g)+8+(_?0:2),e.push(r(n,vR.createGetAccessorDeclaration(vR.createModifiersFromModifierFlags(g),y,[],_?void 0:ve(n,t,Vd(i),i),void 0),t??v))}return e}if(98311&i.flags){const t=(QO(i)?8:0)|g;return n.approximateLength+=2+(_?0:2)+de(t),r(n,e(vR.createModifiersFromModifierFlags(t),y,16777216&i.flags?vR.createToken(58):void 0,_?void 0:ve(n,null==(p=i.declarations)?void 0:p.find(FD),Bd(i),i),void 0),(null==(f=i.declarations)?void 0:f.find(et(MD,fN)))||v)}if(8208&i.flags){const o=Vh(Vd(i),0);if(_){const t=(QO(i)?8:0)|g;return n.approximateLength+=1+de(t),r(n,e(vR.createModifiersFromModifierFlags(t),y,16777216&i.flags?vR.createToken(58):void 0,void 0,void 0),(null==(m=i.declarations)?void 0:m.find(ld))||o[0]&&o[0].declaration||i.declarations&&i.declarations[0])}const a=[];for(const e of o){n.approximateLength+=1;const o=k(e,t,n,{name:y,questionToken:16777216&i.flags?vR.createToken(58):void 0,modifiers:g?vR.createModifiersFromModifierFlags(g):void 0}),s=e.declaration&&__(e.declaration.parent)?e.declaration.parent:e.declaration;a.push(r(n,o,s))}return a}return dt.fail(`Unhandled class member kind! ${i.__debugFlags||i.flags}`)}}function de(e){let n=0;return 32&e&&(n+=7),128&e&&(n+=8),2048&e&&(n+=8),4096&e&&(n+=6),1&e&&(n+=7),2&e&&(n+=8),4&e&&(n+=10),64&e&&(n+=9),256&e&&(n+=7),16&e&&(n+=9),8&e&&(n+=9),512&e&&(n+=9),1024&e&&(n+=6),8192&e&&(n+=3),16384&e&&(n+=4),n}function ue(e,n){return l(e,!1,n)}function he(e,t,o,i){const a=Vh(t,e);if(1===e){if(!o&&g(a,e=>0===c(e.parameters)))return[];if(o){const e=Vh(o,1);if(!c(e)&&g(a,e=>0===c(e.parameters)))return[];if(e.length===a.length){let n=!1;for(let t=0;t<e.length;t++)if(!jx(a[t],e[t],!1,!1,!0,wE)){n=!0;break}if(!n)return[]}}let e=0;for(const n of a)n.declaration&&(e|=Bv(n.declaration,6));if(e)return[r(n,vR.createConstructorDeclaration(vR.createModifiersFromModifierFlags(e),[],void 0),a[0].declaration)]}const s=[];for(const l of a){n.approximateLength+=1;const e=k(l,i,n);s.push(r(n,e,l.declaration))}return s}function _e(e,t){const r=[];for(const o of l_(e)){if(t){const e=u_(t,o.keyType);if(e&&kE(o.type,e.type))continue}r.push(L(o,n,void 0))}return r}function ge(e,t){let r,o;if(e.target&&Zs(e.target.symbol,u,t)?(r=D(by(e),e=>T(e,n)),o=le(e.target.symbol,n,788968)):e.symbol&&Zs(e.symbol,u,t)&&(o=le(e.symbol,n,788968)),o)return vR.createExpressionWithTypeArguments(o,r)}function ye(e){const t=ge(e,788968);return t||(e.symbol?vR.createExpressionWithTypeArguments(le(e.symbol,n,788968),void 0):void 0)}function be(e,t){var r,o;const i=t?dB(t):void 0;if(i&&n.remappedSymbolNames.has(i))return n.remappedSymbolNames.get(i);t&&(e=Se(t,e));let a=0;const s=e;for(;null==(r=n.usedSymbolNames)?void 0:r.has(e);)a++,e=`${s}_${a}`;return null==(o=n.usedSymbolNames)||o.add(e),i&&n.remappedSymbolNames.set(i,e),e}function Se(e,t){if("default"===t||"__class"===t||"__function"===t){const r=f(n);n.flags|=16777216;const o=Ul(e,n);r(),t=o.length>0&&Uh(o.charCodeAt(0))?Py(o):o}return"default"===t?t="_default":"export="===t&&(t="_exports"),t=ys(t,W)&&!Lg(t)?t:"_"+t.replace(/[^a-z0-9]/gi,"_")}function Ee(e,t){const r=dB(e);return n.remappedSymbolNames.has(r)?n.remappedSymbolNames.get(r):(t=Se(e,t),n.remappedSymbolNames.set(r,t),t)}}function xe(e){return-1!==e.maxExpansionDepth}function Re(e){return!!e.valueDeclaration&&Rl(e.valueDeclaration)&&uD(e.valueDeclaration.name)}}(),Ae=tX(O,Te.syntacticBuilderResolver),Re=bx({evaluateElementAccessExpression:function(e,n){const t=e.expression;if(db(t)&&zu(e.argumentExpression)){const r=ts(t,111551,!0);if(r&&384&r.flags){const t=gl(e.argumentExpression.text),o=r.exports.get(t);if(o)return dt.assert(Sp(o.valueDeclaration)===Sp(r.valueDeclaration)),n?UB(e,o,n):QG(o.valueDeclaration)}}return vx(void 0)},evaluateEntityNameExpression:jB}),Ie=Qu(),De=Yi(4,"undefined");De.declarations=[];var Ce=Yi(1536,"globalThis",8);Ce.exports=Ie,Ce.declarations=[],Ie.set(Ce.escapedName,Ce);var Ne,Me,ke,we=Yi(4,"arguments"),Oe=Yi(4,"require"),Fe=O.verbatimModuleSyntax?"verbatimModuleSyntax":"isolatedModules",Be=!O.verbatimModuleSyntax,Ge=0,Ve=0,je=Ex({compilerOptions:O,requireSymbol:Oe,argumentsSymbol:we,globals:Ie,getSymbolOfDeclaration:Es,error:Bi,getRequiresScopeChangeCache:ha,setRequiresScopeChangeCache:_a,lookup:pa,onPropertyWithInvalidInitializer:function(e,n,t,r){if(!H)return e&&!r&&va(e,n,n)||Bi(e,e&&t.type&&ws(t.type,e.pos)?fa.Type_of_instance_member_variable_0_cannot_reference_identifier_1_declared_in_the_constructor:fa.Initializer_of_instance_member_variable_0_cannot_reference_identifier_1_declared_in_the_constructor,Of(t.name),ya(n)),!0;return!1},onFailedToResolveSymbol:function(e,n,t,r){const o=Qe(n)?n:n.escapedText;a(()=>{if(!(e&&(325===e.parent.kind||va(e,o,n)||ba(e)||function(e,n,t){const r=1920|(Lh(e)?111551:0);if(t===r){const t=Ka(je(e,n,788968&~r,void 0,!1)),o=e.parent;if(t){if(xD(o)){dt.assert(o.left===e,"Should only be resolving left side of qualified name as a namespace");const r=o.right.escapedText;if(wh(Wu(t),r))return Bi(o,fa.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,yl(n),yl(r)),!0}return Bi(e,fa._0_only_refers_to_a_type_but_is_being_used_as_a_namespace_here,yl(n)),!0}}return!1}(e,o,t)||function(e,n){if(Sa(n)&&282===e.parent.kind)return Bi(e,fa.Cannot_export_0_Only_local_declarations_can_be_exported_from_a_module,n),!0;return!1}(e,o)||function(e,n,t){if(111127&t){if(Ka(je(e,n,1024,void 0,!1)))return Bi(e,fa.Cannot_use_namespace_0_as_a_value,yl(n)),!0}else if(788544&t){if(Ka(je(e,n,1536,void 0,!1)))return Bi(e,fa.Cannot_use_namespace_0_as_a_type,yl(n)),!0}return!1}(e,o,t)||function(e,n,t){if(111551&t){if(Sa(n)){const t=e.parent.parent;if(t&&t.parent&&iM(t)){const r=t.token;265===t.parent.kind&&96===r?Bi(e,fa.An_interface_cannot_extend_a_primitive_type_like_0_It_can_only_extend_other_named_object_types,yl(n)):md(t.parent)&&96===r?Bi(e,fa.A_class_cannot_extend_a_primitive_type_like_0_Classes_can_only_extend_constructable_values,yl(n)):md(t.parent)&&119===r&&Bi(e,fa.A_class_cannot_implement_a_primitive_type_like_0_It_can_only_implement_other_named_object_types,yl(n))}else Bi(e,fa._0_only_refers_to_a_type_but_is_being_used_as_a_value_here,yl(n));return!0}const t=Ka(je(e,n,788544,void 0,!1)),r=t&&Xa(t);if(t&&void 0!==r&&!(111551&r)){const r=yl(n);return!function(e){switch(e){case"Promise":case"Symbol":case"Map":case"WeakMap":case"Set":case"WeakSet":return!0}return!1}(n)?!function(e,n){const t=ml(e.parent,e=>!RD(e)&&!ND(e)&&(KD(e)||"quit"));if(t&&1===t.members.length){const e=Wu(n);return!!(1048576&e.flags)&&sF(e,384,!0)}return!1}(e,t)?Bi(e,fa._0_only_refers_to_a_type_but_is_being_used_as_a_value_here,r):Bi(e,fa._0_only_refers_to_a_type_but_is_being_used_as_a_value_here_Did_you_mean_to_use_1_in_0,r,"K"===r?"P":"K"):Bi(e,fa._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,r),!0}}return!1}(e,o,t)||function(e,n,t){if(788584&t){const t=Ka(je(e,n,111127,void 0,!1));if(t&&!(1920&t.flags))return Bi(e,fa._0_refers_to_a_value_but_is_being_used_as_a_type_here_Did_you_mean_typeof_0,yl(n)),!0}return!1}(e,o,t)))){let i,a;if(n&&(a=function(e){const n=ya(e),t=of().get(n);return t&&_e(t.keys())}(n),a&&Bi(e,r,ya(n),a)),!a&&Xo<Yo){i=Pk(e,o,t);if((null==i?void 0:i.valueDeclaration)&&pf(i.valueDeclaration)&&gf(i.valueDeclaration)&&(i=void 0),i){const o=hl(i),a=Sk(e,i,!1),s=1920===t||n&&"string"!=typeof n&&ry(n)?fa.Cannot_find_namespace_0_Did_you_mean_1:a?fa.Could_not_find_name_0_Did_you_mean_1:fa.Cannot_find_name_0_Did_you_mean_1,l=zi(e,s,ya(n),o);l.canonicalHead=Qf(r,ya(n)),ji(!a,l),i.valueDeclaration&&dA(l,Vf(i.valueDeclaration,fa._0_is_declared_here,o))}}i||a||!n||Bi(e,r,ya(n)),Xo++}})},onSuccessfullyResolvedSymbol:function(e,n,t,r,o,i){a(()=>{var a;const s=n.escapedName,l=r&&uM(r)&&rm(r);if(e&&(2&t||(32&t||384&t)&&!(111551&~t))){const t=Ls(n);(2&t.flags||32&t.flags||384&t.flags)&&function(e,n){var t;if(dt.assert(!!(2&e.flags||32&e.flags||384&e.flags)),67108881&e.flags&&32&e.flags)return;const r=null==(t=e.declarations)?void 0:t.find(e=>df(e)||md(e)||267===e.kind);if(void 0===r)return dt.fail("checkResolvedBlockScopedVariable could not find block-scoped declaration");if(!(33554432&r.flags||ma(r,n))){let t;const o=Of(Dl(r));2&e.flags?t=Bi(n,fa.Block_scoped_variable_0_used_before_its_declaration,o):32&e.flags?t=Bi(n,fa.Class_0_used_before_its_declaration,o):256&e.flags?t=Bi(n,fa.Enum_0_used_before_its_declaration,o):(dt.assert(!!(128&e.flags)),RS(O)&&(t=Bi(n,fa.Enum_0_used_before_its_declaration,o))),t&&dA(t,Vf(r,fa._0_is_declared_here,o))}}(t,e)}if(l&&!(111551&~t)&&!(16777216&e.flags)){const t=Ss(n);c(t.declarations)&&g(t.declarations,e=>EN(e)||uM(e)&&!!e.symbol.globalExports)&&Ui(!O.allowUmdGlobalAccess,e,fa._0_refers_to_a_UMD_global_but_the_current_file_is_a_module_Consider_adding_an_import_instead,yl(s))}if(o&&!i&&!(111551&~t)){const r=Ss(Pp(n)),i=ny(o);r===Es(o)?Bi(e,fa.Parameter_0_cannot_reference_itself,Of(o.name)):r.valueDeclaration&&r.valueDeclaration.pos>o.pos&&i.parent.locals&&pa(i.parent.locals,r.escapedName,t)===r&&Bi(e,fa.Parameter_0_cannot_reference_identifier_1_declared_after_it,Of(o.name),Of(e))}if(e&&111551&t&&2097152&n.flags&&!(111551&n.flags)&&!AA(e)){const t=Qa(n,111551);if(t){const n=282===t.kind||279===t.kind||281===t.kind?fa._0_cannot_be_used_as_a_value_because_it_was_exported_using_export_type:fa._0_cannot_be_used_as_a_value_because_it_was_imported_using_import_type,r=yl(s);ga(Bi(e,n,r),t,r)}}if(O.isolatedModules&&n&&l&&!(111551&~t)){const e=pa(Ie,s,t)===n&&uM(r)&&r.locals&&pa(r.locals,s,-111552);if(e){const n=null==(a=e.declarations)?void 0:a.find(e=>277===e.kind||274===e.kind||275===e.kind||272===e.kind);n&&!Vc(n)&&Bi(n,fa.Import_0_conflicts_with_global_value_used_in_this_file_so_must_be_declared_with_a_type_only_import_when_isolatedModules_is_enabled,yl(s))}}})}}),Ke=Ex({compilerOptions:O,requireSymbol:Oe,argumentsSymbol:we,globals:Ie,getSymbolOfDeclaration:Es,error:Bi,getRequiresScopeChangeCache:ha,setRequiresScopeChangeCache:_a,lookup:function(e,n,t){const r=pa(e,n,t);if(r)return r;let o;if(e===Ie){o=F(["string","number","boolean","object","bigint","symbol"],n=>e.has(n.charAt(0).toUpperCase()+n.slice(1))?Yi(524288,n):void 0).concat(Le(e.values()))}else o=Le(e.values());return kk(yl(n),o,t)}});const qe={getNodeCount:()=>xe(e.getSourceFiles(),(e,n)=>e+n.nodeCount,0),getIdentifierCount:()=>xe(e.getSourceFiles(),(e,n)=>e+n.identifierCount,0),getSymbolCount:()=>xe(e.getSourceFiles(),(e,n)=>e+n.symbolCount,h),getTypeCount:()=>m,getInstantiationCount:()=>_,getRelationCacheSizes:()=>({assignable:Ei.size,identity:Di.size,subtype:bi.size,strictSubtype:Ti.size}),isUndefinedSymbol:e=>e===De,isArgumentsSymbol:e=>e===we,isUnknownSymbol:e=>e===Sn,getMergedSymbol:Ss,symbolIsValue:Os,getDiagnostics:_G,getGlobalDiagnostics:function(){return gG(),gi.getGlobalDiagnostics()},getRecursionIdentity:zx,getUnmatchedProperties:yI,getTypeOfSymbolAtLocation:(e,n)=>{const t=_l(n);return t?function(e,n){if(e=Ls(e),(80===n.kind||81===n.kind)&&(_b(n)&&(n=n.parent),Eh(n)&&(!eg(n)||pT(n)))){const t=NR(pT(n)&&212===n.kind?uk(n,void 0,!0):VF(n));if(Ls(ua(n).resolvedSymbol)===e)return t}if(pg(n)&&Cu(n.parent)&&Td(n.parent))return Dd(n.parent.symbol);return gb(n)&&pT(n.parent)?Bd(e):jd(e)}(e,t):Mn},getTypeOfSymbol:Vd,getSymbolsOfParameterPropertyDeclaration:(e,n)=>{const t=_l(e,DD);return void 0===t?dt.fail("Cannot get symbols of a synthetic parameter that cannot be resolved to a parse-tree node."):(dt.assert(tl(t,t.parent)),function(e,n){const t=e.parent,r=e.parent.parent,o=pa(t.locals,n,111551),i=pa(Cp(r.symbol),n,111551);if(o&&i)return[o,i];return dt.fail("There should exist two symbols, one as property declaration and one as parameter declaration")}(t,gl(n)))},getDeclaredTypeOfSymbol:Wu,getPropertiesOfType:cm,getPropertyOfType:(e,n)=>wh(e,gl(n)),getPrivateIdentifierPropertyOfType:(e,n,t)=>{const r=_l(t);if(!r)return;const o=mk(gl(n),r);return o?gk(e,o):void 0},getTypeOfPropertyOfType:(e,n)=>nc(e,gl(n)),getIndexInfoOfType:(e,n)=>u_(e,0===n?Hn:Kn),getIndexInfosOfType:l_,getIndexInfosOfIndexSymbol:iy,getSignaturesOfType:Vh,getIndexTypeOfType:(e,n)=>p_(e,0===n?Hn:Kn),getIndexType:e=>fT(e),getBaseTypes:gu,getBaseTypeOfLiteralType:lR,getWidenedType:JR,getWidenedLiteralType:dR,fillMissingTypeArguments:B_,getTypeFromTypeNode:e=>{const n=_l(e,Ed);return n?qS(n):Mn},getParameterType:pO,getParameterIdentifierInfoAtPosition:function(e,n){var t;if(318===(null==(t=e.declaration)?void 0:t.kind))return;const r=e.parameters.length-(_B(e)?1:0);if(n<r){const t=e.parameters[n],r=cO(t);return r?{parameter:r,parameterName:t.escapedName,isRestParameter:!1}:void 0}const o=e.parameters[r]||Sn,i=cO(o);if(!i)return;const a=Vd(o);if(mR(a)){const e=a.target.labeledElementDeclarations,t=null==e?void 0:e[n-r],o=!!(null==t?void 0:t.dotDotDotToken);return t?(dt.assert(dD(t.name)),{parameter:t.name,parameterName:t.name.escapedText,isRestParameter:o}):void 0}if(n===r)return{parameter:i,parameterName:o.escapedName,isRestParameter:!0};return},getPromisedTypeOfPromise:yW,getAwaitedType:e=>xW(e),getReturnTypeOfSignature:Ag,isNullableType:ek,getNullableType:RR,getNonNullableType:DR,getNonOptionalType:NR,getTypeArguments:by,typeToTypeNode:Te.typeToTypeNode,typePredicateToTypePredicateNode:Te.typePredicateToTypePredicateNode,indexInfoToIndexSignatureDeclaration:Te.indexInfoToIndexSignatureDeclaration,signatureToSignatureDeclaration:Te.signatureToSignatureDeclaration,symbolToEntityName:Te.symbolToEntityName,symbolToExpression:Te.symbolToExpression,symbolToNode:Te.symbolToNode,symbolToTypeParameterDeclarations:Te.symbolToTypeParameterDeclarations,symbolToParameterDeclaration:Te.symbolToParameterDeclaration,typeParameterToDeclaration:Te.typeParameterToDeclaration,getSymbolsInScope:(e,n)=>{const t=_l(e);return t?function(e,n){if(67108864&e.flags)return[];const t=Qu();let r=!1;return o(),t.delete("this"),I_(t);function o(){for(;e;){switch(du(e)&&e.locals&&!tm(e)&&a(e.locals,n),e.kind){case 308:if(!dk(e))break;case 268:s(Es(e).exports,2623475&n);break;case 267:a(Es(e).exports,8&n);break;case 232:e.name&&i(e.symbol,n);case 264:case 265:r||a(Cp(Es(e)),788968&n);break;case 219:e.name&&i(e.symbol,n)}Bm(e)&&i(we,n),r=Pv(e),e=e.parent}a(Ie,n)}function i(e,n){if(dT(e)&n){const n=e.escapedName;t.has(n)||t.set(n,e)}}function a(e,n){n&&e.forEach(e=>{i(e,n)})}function s(e,n){n&&e.forEach(e=>{Yu(e,282)||Yu(e,281)||"default"===e.escapedName||i(e,n)})}}(t,n):[]},getSymbolAtLocation:e=>{const n=_l(e);return n?IG(n,!0):void 0},getIndexInfosAtLocation:e=>{const n=_l(e);return n?function(e){if(dD(e)&&_C(e.parent)&&e.parent.name===e){const n=rT(e),t=VF(e.parent.expression);return P(1048576&t.flags?t.types:[t],e=>x(l_(e),e=>a_(n,e.keyType)))}return}(n):void 0},getShorthandAssignmentValueSymbol:e=>{const n=_l(e);return n?function(e){if(e&&305===e.kind)return ts(e.name,2208703,!0);return}(n):void 0},getExportSpecifierLocalTargetSymbol:e=>{const n=_l(e,zN);return n?function(e){if(zN(e)){const n=e.propertyName||e.name;return e.parent.parent.moduleSpecifier?Wa(e.parent.parent,e):11===n.kind?void 0:ts(n,2998271,!0)}return ts(e,2998271,!0)}(n):void 0},getExportSymbolOfSymbol:e=>Ss(e.exportSymbol||e),getTypeAtLocation:e=>{const n=_l(e);return n?DG(n):Mn},getTypeOfAssignmentPattern:e=>{const n=_l(e,Rd);return n&&CG(n)||Mn},getPropertySymbolOfDestructuringAssignment:e=>{const n=_l(e,dD);return n?function(e){const n=CG(nn(e.parent.parent,Rd));return n&&wh(n,e.escapedText)}(n):void 0},signatureToString:(e,n,t,r)=>Sl(e,_l(n),t,r),typeToString:(e,n,t)=>El(e,_l(n),t),symbolToString:(e,n,t,r)=>hl(e,_l(n),t,r),typePredicateToString:(e,n,t)=>Fl(e,_l(n),t),writeSignature:(e,n,t,r,o,i,a,s)=>Sl(e,_l(n),t,r,o,i,a,s),writeType:(e,n,t,r,o,i,a)=>El(e,_l(n),t,r,o,i,a),writeSymbol:(e,n,t,r,o)=>hl(e,_l(n),t,r,o),writeTypePredicate:(e,n,t,r)=>Fl(e,_l(n),t,r),getAugmentedPropertiesOfType:LG,getRootSymbols:function e(n){const t=function(e){if(6&sT(e))return F(da(e).containingType.types,n=>wh(n,e.escapedName));if(33554432&e.flags){const{links:{leftSpread:n,rightSpread:t,syntheticOrigin:r}}=e;return n?[n,t]:r?[r]:rt(function(e){let n,t=e;for(;t=da(t).target;)n=t;return n}(e))}return}(n);return t?P(t,e):[n]},getSymbolOfExpando:zw,getContextualType:(e,n)=>{const t=_l(e,qd);if(t)return 4&n?Xe(t,()=>KP(t,n)):KP(t,n)},getContextualTypeForObjectLiteralElement:e=>{const n=_l(e,Sd);return n?FP(n,void 0):void 0},getContextualTypeForArgumentAtIndex:(e,n)=>{const t=_l(e,Wd);return t&&bP(t,n)},getContextualTypeForJsxAttribute:e=>{const n=_l(e,Tu);return n&&BP(n,void 0)},isContextSensitive:NE,getTypeOfPropertyOfContextualType:RP,getFullyQualifiedName:ns,getResolvedSignature:(e,n,t)=>$e(e,n,t,0),getCandidateSignaturesForStringLiteralCompletions:function(e,n){const t=new Set,r=[];Xe(n,()=>$e(e,r,void 0,0));for(const o of r)t.add(o);r.length=0,Je(n,()=>$e(e,r,void 0,0));for(const o of r)t.add(o);return Le(t)},getResolvedSignatureForSignatureHelp:(e,n,t)=>Je(e,()=>$e(e,n,t,16)),getExpandedParameters:zp,hasEffectiveRestParameter:yO,containsArgumentsReference:$_,getConstantValue:e=>{const n=_l(e,ZG);return n?eV(n):void 0},isValidPropertyAccess:(e,n)=>{const t=_l(e,wd);return!!t&&function(e,n){switch(e.kind){case 212:return Wk(e,108===e.expression.kind,n,JR(HF(e.expression)));case 167:return Wk(e,!1,n,JR(HF(e.left)));case 206:return Wk(e,!1,n,qS(e))}}(t,gl(n))},isValidPropertyAccessForCompletions:(e,n,t)=>{const r=_l(e,_C);return!!r&&Fk(r,n,t)},getSignatureFromDeclaration:e=>{const n=_l(e,ad);return n?G_(n):void 0},isImplementationOfOverload:e=>{const n=_l(e,ad);return n?KG(n):void 0},getImmediateAliasedSymbol:gL,getAliasedSymbol:Ja,getEmitResolver:function(e,n,t){t||_G(e,n);return be},requiresAddingImplicitUndefined:qG,getExportsOfModule:fs,getExportsAndPropertiesOfModule:function(e){const n=fs(e),t=ls(e);if(t!==e){const e=Vd(t);hs(e)&&ae(n,cm(e))}return n},forEachExportAndPropertyOfModule:function(e,n){gs(e).forEach((e,t)=>{js(t)||n(e,t)});const t=ls(e);if(t!==e){const e=Vd(t);hs(e)&&function(e,n){e=qm(e),3670016&e.flags&&Jf(e).members.forEach((e,t)=>{Hs(e,t)&&n(e,t)})}(e,(e,t)=>{n(e,t)})}},getSymbolWalker:uz(function(e){return Cg(e)||In},fg,Ag,gu,Jf,Vd,GI,um,ub,by),getAmbientModules:function(){Ht||(Ht=[],Ie.forEach((e,n)=>{Xz.test(n)&&Ht.push(e)}));return Ht},getJsxIntrinsicTagNamesAt:function(e){const n=RL(Kz.IntrinsicElements,e);return n?cm(n):s},isOptionalParameter:e=>{const n=_l(e,DD);return!!n&&k_(n)},tryGetMemberInModuleExports:(e,n)=>ms(gl(e),n),tryGetMemberInModuleExportsAndProperties:(e,n)=>function(e,n){const t=ms(e,n);if(t)return t;const r=ls(n);if(r===n)return;const o=Vd(r);return hs(o)?wh(o,e):void 0}(gl(e),n),tryFindAmbientModule:e=>D_(e,!0),getApparentType:Vm,getUnionType:Gb,isTypeAssignableTo:BE,createAnonymousType:qs,createSignature:wp,createSymbol:Yi,createIndexInfo:Qg,getAnyType:()=>In,getStringType:()=>Hn,getStringLiteralType:NS,getNumberType:()=>Kn,getNumberLiteralType:kS,getBigIntType:()=>qn,getBigIntLiteralType:wS,getUnknownType:()=>On,createPromiseType:WO,createArrayType:Jv,getElementTypeOfArrayType:Yx,getBooleanType:()=>st,getFalseType:e=>e?$n:Qn,getTrueType:e=>e?tt:ot,getVoidType:()=>ct,getUndefinedType:()=>Fn,getNullType:()=>jn,getESSymbolType:()=>lt,getNeverType:()=>ut,getNonPrimitiveType:()=>ht,getOptionalType:()=>Gn,getPromiseType:()=>_v(!1),getPromiseLikeType:()=>yv(!1),getAnyAsyncIterableType:()=>{const e=Ev(!1);if(e!==kt)return gy(e,[In,In,In])},isSymbolAccessible:nl,isArrayType:Kx,isTupleType:mR,isArrayLikeType:$x,isEmptyAnonymousObjectType:hA,isTypeInvalidDueToUnionDiscriminant:function(e,n){return n.properties.some(n=>{const t=n.name&&(tM(n.name)?NS(ax(n.name)):rT(n.name)),r=t&&ux(t)?px(t):void 0,o=void 0===r?void 0:nc(e,r);return!!o&&sR(o)&&!BE(DG(n),o)})},getExactOptionalProperties:function(e){return cm(e).filter(e=>kR(Vd(e)))},getAllPossiblePropertiesOfTypes:function(e){const n=Gb(e);if(!(1048576&n.flags))return LG(n);const t=Qu();for(const r of e)for(const{escapedName:e}of LG(r))if(!t.has(e)){const r=Jm(n,e);r&&t.set(e,r)}return Le(t.values())},getSuggestedSymbolForNonexistentProperty:Ck,getSuggestedSymbolForNonexistentJSXAttribute:Nk,getSuggestedSymbolForNonexistentSymbol:(e,n,t)=>Pk(e,gl(n),t),getSuggestedSymbolForNonexistentModule:Lk,getSuggestedSymbolForNonexistentClassMember:Dk,getBaseConstraintOfType:Tm,getDefaultFromTypeParameter:e=>e&&262144&e.flags?Rm(e):void 0,resolveName:(e,n,t,r)=>je(n,gl(e),t,void 0,!1,r),getJsxNamespace:e=>yl(Oi(e)),getJsxFragmentFactory:e=>{const n=mV(e);return n&&yl(ub(n).escapedText)},getAccessibleSymbolChain:Ys,getTypePredicateOfSignature:fg,resolveExternalModuleName:e=>{const n=_l(e,qd);return n&&os(n,n,!0)},resolveExternalModuleSymbol:ls,tryGetThisTypeAt:(e,n,t)=>{const r=_l(e);return r&&aP(r,n,t)},getTypeArgumentConstraint:e=>{const n=_l(e,Ed);return n&&function(e){const n=en(e.parent,Ou);if(!n)return;const t=sW(n);if(!t)return;const r=um(t[n.typeArguments.indexOf(e)]);return r&&xE(r,tE(t,iW(n,t)))}(n)},getSuggestionDiagnostics:(t,r)=>{const o=_l(t,uM)||dt.fail("Could not determine parsed source file.");if(mA(o,O,e))return s;let i;try{return n=r,yG(o),dt.assert(!!(1&ua(o).flags)),i=ae(i,yi.getDiagnostics(o.fileName)),zW(hG(o),(e,n,t)=>{Tp(e)||mG(n,!!(33554432&e.flags))||(i||(i=[])).push({...t,category:2})}),i||s}finally{n=void 0}},runWithCancellationToken:(e,t)=>{try{return n=e,t(qe)}finally{n=void 0}},getLocalTypeParametersOfClassOrInterfaceOrTypeAlias:ou,isDeclarationVisible:Hl,isPropertyAccessible:zk,getTypeOnlyAliasDeclaration:Qa,getMemberOverrideModifierStatus:function(e,n,t){if(!n.name)return 0;const r=Es(e),o=Wu(r),i=Lp(o),a=Vd(r),s=Tg(e)&&gu(o),l=(null==s?void 0:s.length)?Lp(he(s),o.thisType):void 0,c=mu(o),d=n.parent?kv(n):Mv(n,16);return kB(e,a,c,l,o,i,d,wv(n),Pv(n),!1,t)},isTypeParameterPossiblyReferenced:vE,typeHasCallOrConstructSignatures:kG,getSymbolFlags:Xa,getTypeArgumentsForResolvedSignature:function(e){return void 0===e.mapper?void 0:YS((e.target||e).typeParameters,e.mapper)},isLibType:Ol};function Je(e,n){if(e=ml(e,Fd)){const t=[],r=[];for(;e;){const n=ua(e);if(t.push([n,n.resolvedSignature]),n.resolvedSignature=void 0,VA(e)){const n=da(Es(e)),t=n.type;r.push([n,t]),n.type=void 0}e=ml(e.parent,Fd)}const o=n();for(const[e,n]of t)e.resolvedSignature=n;for(const[e,n]of r)e.type=n;return o}return n()}function Xe(e,n){const t=ml(e,Wd);if(t){let n=e;do{ua(n).skipDirectInference=!0,n=n.parent}while(n&&n!==t)}L=!0;const r=Je(e,n);if(L=!1,t){let n=e;do{ua(n).skipDirectInference=void 0,n=n.parent}while(n&&n!==t)}return r}function $e(e,n,t,r){const o=_l(e,Wd);Ne=t;const i=o?Ow(o,n,r):void 0;return Ne=void 0,i}var Ze=new Map,tn=new Map,rn=new Map,on=new Map,an=new Map,sn=new Map,ln=new Map,cn=new Map,dn=new Map,un=new Map,pn=new Map,fn=new Map,mn=new Map,_n=new Map,gn=new Map,yn=[],bn=new Map,Tn=new Set,Sn=Yi(4,"unknown"),En=Yi(0,"__resolving__"),An=new Map,xn=new Map,Rn=new Set,In=Bs(1,"any"),Dn=Bs(1,"any",262144,"auto"),Cn=Bs(1,"any",void 0,"wildcard"),Nn=Bs(1,"any",void 0,"blocked string"),Mn=Bs(1,"error"),Pn=Bs(1,"unresolved"),Ln=Bs(1,"any",65536,"non-inferrable"),kn=Bs(1,"intrinsic"),On=Bs(2,"unknown"),Fn=Bs(32768,"undefined"),Wn=X?Fn:Bs(32768,"undefined",65536,"widening"),zn=Bs(32768,"undefined",void 0,"missing"),Bn=de?zn:Fn,Gn=Bs(32768,"undefined",void 0,"optional"),jn=Bs(65536,"null"),Un=X?jn:Bs(65536,"null",65536,"widening"),Hn=Bs(4,"string"),Kn=Bs(8,"number"),qn=Bs(64,"bigint"),$n=Bs(512,"false",void 0,"fresh"),Qn=Bs(512,"false"),tt=Bs(512,"true",void 0,"fresh"),ot=Bs(512,"true");tt.regularType=ot,tt.freshType=tt,ot.regularType=ot,ot.freshType=tt,$n.regularType=Qn,$n.freshType=$n,Qn.regularType=Qn,Qn.freshType=$n;var at,st=Gb([Qn,ot]),lt=Bs(4096,"symbol"),ct=Bs(16384,"void"),ut=Bs(131072,"never"),pt=Bs(131072,"never",262144,"silent"),ft=Bs(131072,"never",void 0,"implicit"),mt=Bs(131072,"never",void 0,"unreachable"),ht=Bs(67108864,"object"),_t=Gb([Hn,Kn]),gt=Gb([Hn,Kn,lt]),yt=Gb([Kn,qn]),vt=Gb([Hn,Kn,st,qn,jn,Fn]),bt=hT(["",""],[Kn]),Tt=aE(e=>{return 262144&e.flags?!(n=e).constraint&&!sy(n)||n.constraint===Ot?n:n.restrictiveInstantiation||(n.restrictiveInstantiation=Vs(n.symbol),n.restrictiveInstantiation.constraint=Ot,n.restrictiveInstantiation):e;var n},()=>"(restrictive mapper)"),St=aE(e=>262144&e.flags?Cn:e,()=>"(permissive mapper)"),Et=Bs(131072,"never",void 0,"unique literal"),At=aE(e=>262144&e.flags?Et:e,()=>"(unique literal mapper)"),xt=aE(e=>(!at||e!==zt&&e!==Bt&&e!==Gt||at(!0),e),()=>"(unmeasurable reporter)"),Rt=aE(e=>(!at||e!==zt&&e!==Bt&&e!==Gt||at(!1),e),()=>"(unreliable reporter)"),It=qs(void 0,k,s,s,s),Dt=qs(void 0,k,s,s,s);Dt.objectFlags|=2048;var Ct=qs(void 0,k,s,s,s);Ct.objectFlags|=141440;var Nt=Yi(2048,"__type");Nt.members=Qu();var Mt=qs(Nt,k,s,s,s),Pt=qs(void 0,k,s,s,s),Lt=X?Gb([Fn,jn,Pt]):On,kt=qs(void 0,k,s,s,s);kt.instantiations=new Map;var wt=qs(void 0,k,s,s,s);wt.objectFlags|=262144;var Ot=qs(void 0,k,s,s,s),Ft=qs(void 0,k,s,s,s),Wt=qs(void 0,k,s,s,s),zt=Vs(),Bt=Vs();Bt.constraint=zt;var Gt=Vs(),Vt=Vs(),jt=Vs();jt.constraint=Vt;var Ut,Ht,qt,Jt,Xt,Yt,$t,Qt,Zt,tr,rr,or,ir,ar,sr,lr,cr,dr,ur,pr,fr,mr,hr,_r,gr,yr,vr,br,Tr,Sr,Er,Ar,xr,Rr,Ir,Dr,Cr,Nr,Mr,Pr,Lr,kr,wr,Or,Fr,Wr,zr,Br,Gr,Vr,jr,Ur,Hr,Kr,qr,Jr,Xr,Yr,$r,Qr,Zr,eo,no,to,ro,oo,io,ao=O_(1,"<<unresolved>>",0,In),so=wp(void 0,void 0,void 0,s,In,void 0,0,0),lo=wp(void 0,void 0,void 0,s,Mn,void 0,0,0),co=wp(void 0,void 0,void 0,s,In,void 0,0,0),uo=wp(void 0,void 0,void 0,s,pt,void 0,0,0),po=Qg(Kn,Hn,!0),fo=Qg(Hn,In,!1),ho=new Map,_o={get yieldType(){return dt.fail("Not supported")},get returnType(){return dt.fail("Not supported")},get nextType(){return dt.fail("Not supported")}},go=Nz(In,In,In),yo=Nz(pt,pt,pt),vo={iterableCacheKey:"iterationTypesOfAsyncIterable",iteratorCacheKey:"iterationTypesOfAsyncIterator",iteratorSymbolName:"asyncIterator",getGlobalIteratorType:function(e){return Dr||(Dr=nv("AsyncIterator",3,e))||kt},getGlobalIterableType:Ev,getGlobalIterableIteratorType:Av,getGlobalIteratorObjectType:function(e){return Pr||(Pr=nv("AsyncIteratorObject",3,e))||kt},getGlobalGeneratorType:function(e){return Lr||(Lr=nv("AsyncGenerator",3,e))||kt},getGlobalBuiltinIteratorTypes:function(){return Mr??(Mr=tv(["ReadableStreamAsyncIterator"],1))},resolveIterationType:(e,n)=>xW(e,n,fa.Type_of_await_operand_must_either_be_a_valid_promise_or_must_not_contain_a_callable_then_member),mustHaveANextMethodDiagnostic:fa.An_async_iterator_must_have_a_next_method,mustBeAMethodDiagnostic:fa.The_0_property_of_an_async_iterator_must_be_a_method,mustHaveAValueDiagnostic:fa.The_type_returned_by_the_0_method_of_an_async_iterator_must_be_a_promise_for_a_type_with_a_value_property},bo={iterableCacheKey:"iterationTypesOfIterable",iteratorCacheKey:"iterationTypesOfIterator",iteratorSymbolName:"iterator",getGlobalIteratorType:function(e){return Tr||(Tr=nv("Iterator",3,e))||kt},getGlobalIterableType:xv,getGlobalIterableIteratorType:Rv,getGlobalIteratorObjectType:function(e){return Er||(Er=nv("IteratorObject",3,e))||kt},getGlobalGeneratorType:function(e){return Ar||(Ar=nv("Generator",3,e))||kt},getGlobalBuiltinIteratorTypes:function(){return Nr??(Nr=tv(["ArrayIterator","MapIterator","SetIterator","StringIterator"],1))},resolveIterationType:(e,n)=>e,mustHaveANextMethodDiagnostic:fa.An_iterator_must_have_a_next_method,mustBeAMethodDiagnostic:fa.The_0_property_of_an_iterator_must_be_a_method,mustHaveAValueDiagnostic:fa.The_type_returned_by_the_0_method_of_an_iterator_must_have_a_value_property},To=new Map,So=new Map,Eo=new Map,Ao=0,xo=0,Ro=0,Io=!1,Co=0,No=[],Mo=[],Po=[],Lo=0,ko=[],wo=[],Oo=[],Fo=0,Wo=[],zo=[],Bo=0,Go=NS(""),Vo=kS(0),jo=wS({negative:!1,base10Value:"0"}),Uo=[],Ho=[],Ko=[],qo=0,Jo=!1,Xo=0,Yo=10,$o=[],Qo=[],Zo=[],ei=[],ni=[],ti=[],ri=[],oi=[],ii=[],ai=[],si=[],li=[],ci=[],di=[],ui=[],pi=[],fi=[],mi=[],hi=[],_i=0,gi=fy(),yi=fy(),vi=Gb(Le(tB.keys(),NS)),bi=new Map,Ti=new Map,Ei=new Map,Ii=new Map,Di=new Map,Ci=new Map,Ni=[[".mts",".mjs"],[".ts",".js"],[".cts",".cjs"],[".mjs",".mjs"],[".js",".js"],[".cjs",".cjs"],[".tsx",1===O.jsx?".jsx":".js"],[".jsx",".jsx"],[".json",".json"]];return function(){for(const t of e.getSourceFiles())iz(t,O);let n;Ut=new Map;for(const t of e.getSourceFiles())if(!t.redirectInfo){if(!rm(t)){const e=t.locals.get("globalThis");if(null==e?void 0:e.declarations)for(const n of e.declarations)gi.add(Vf(n,fa.Declaration_name_conflicts_with_built_in_global_identifier_0,"globalThis"));sa(Ie,t.locals)}if(t.jsGlobalAugmentations&&sa(Ie,t.jsGlobalAugmentations),t.patternAmbientModules&&t.patternAmbientModules.length&&(qt=K(qt,t.patternAmbientModules)),t.moduleAugmentations.length&&(n||(n=[])).push(t.moduleAugmentations),t.symbol&&t.symbol.globalExports){t.symbol.globalExports.forEach((e,n)=>{Ie.has(n)||Ie.set(n,e)})}}if(n)for(const e of n)for(const n of e)gf(n.parent)&&ca(n);(function(){const e=De.escapedName,n=Ie.get(e);n?d(n.declarations,n=>{JA(n)||gi.add(Vf(n,fa.Declaration_name_conflicts_with_built_in_global_identifier_0,yl(e)))}):Ie.set(e,De)})(),da(De).type=Wn,da(we).type=nv("IArguments",0,!0),da(Sn).type=Mn,da(Ce).type=Gs(16,Ce),Zt=nv("Array",1,!0),Xt=nv("Object",0,!0),Yt=nv("Function",0,!0),$t=Q&&nv("CallableFunction",0,!0)||Yt,Qt=Q&&nv("NewableFunction",0,!0)||Yt,rr=nv("String",0,!0),or=nv("Number",0,!0),ir=nv("Boolean",0,!0),ar=nv("RegExp",0,!0),lr=Jv(In),(cr=Jv(Dn))===It&&(cr=qs(void 0,k,s,s,s));if(tr=Vv("ReadonlyArray",1)||Zt,dr=tr?Hv(tr,[In]):lr,sr=Vv("ThisType",1),n)for(const e of n)for(const n of e)gf(n.parent)||ca(n);Ut.forEach(({firstFile:e,secondFile:n,conflictingSymbols:t})=>{if(t.size<8)t.forEach(({isBlockScoped:e,firstFileLocations:n,secondFileLocations:t},r)=>{const o=e?fa.Cannot_redeclare_block_scoped_variable_0:fa.Duplicate_identifier_0;for(const i of n)ia(i,o,r,t);for(const i of t)ia(i,o,r,n)});else{const r=Le(t.keys()).join(", ");gi.add(dA(Vf(e,fa.Definitions_of_the_following_identifiers_conflict_with_those_in_another_file_Colon_0,r),Vf(n,fa.Conflicts_are_in_this_file))),gi.add(dA(Vf(n,fa.Definitions_of_the_following_identifiers_conflict_with_those_in_another_file_Colon_0,r),Vf(e,fa.Conflicts_are_in_this_file)))}}),Ut=void 0}(),qe;function Pi(e){return!!_C(e)&&(!!dD(e.name)&&(!(!_C(e.expression)&&!dD(e.expression))&&(dD(e.expression)?"Symbol"===vl(e.expression)&&GI(e.expression)===(ev("Symbol",1160127,void 0)||Sn):!!dD(e.expression.expression)&&("Symbol"===vl(e.expression.name)&&"globalThis"===vl(e.expression.expression)&&GI(e.expression.expression)===Ce))))}function Li(e){return e?gn.get(e):void 0}function wi(e,n){return e&&gn.set(e,n),n}function Oi(e){if(e){const n=Sp(e);if(n)if(YN(e)){if(n.localJsxFragmentNamespace)return n.localJsxFragmentNamespace;const t=n.pragmas.get("jsxfrag");if(t){const e=Ye(t)?t[0]:t;if(n.localJsxFragmentFactory=lk(e.arguments.factory,W),vB(n.localJsxFragmentFactory,Fi,rd),n.localJsxFragmentFactory)return n.localJsxFragmentNamespace=ub(n.localJsxFragmentFactory).escapedText}const r=mV(e);if(r)return n.localJsxFragmentFactory=r,n.localJsxFragmentNamespace=ub(r).escapedText}else{const e=function(e){if(e.localJsxNamespace)return e.localJsxNamespace;const n=e.pragmas.get("jsx");if(n){const t=Ye(n)?n[0]:n;if(e.localJsxFactory=lk(t.arguments.factory,W),vB(e.localJsxFactory,Fi,rd),e.localJsxFactory)return e.localJsxNamespace=ub(e.localJsxFactory).escapedText}}(n);if(e)return n.localJsxNamespace=e}}return oo||(oo="React",O.jsxFactory?(vB(io=lk(O.jsxFactory,W),Fi),io&&(oo=ub(io).escapedText)):O.reactNamespace&&(oo=gl(O.reactNamespace))),io||(io=vR.createQualifiedName(vR.createIdentifier(yl(oo)),"createElement")),oo}function Fi(e){return CA(e,-1,-1),CB(e,Fi,void 0)}function Wi(e,n,t,...r){const o=Bi(n,t,...r);return o.skippedOn=e,o}function zi(e,n,...t){return e?Vf(e,n,...t):nS(n,...t)}function Bi(e,n,...t){const r=zi(e,n,...t);return gi.add(r),r}function Gi(e){return Ri(Sp(e).fileName,[".cts",".cjs"])?fa.ECMAScript_imports_and_exports_cannot_be_written_in_a_CommonJS_file_under_verbatimModuleSyntax:fa.ECMAScript_imports_and_exports_cannot_be_written_in_a_CommonJS_file_under_verbatimModuleSyntax_Adjust_the_type_field_in_the_nearest_package_json_to_make_this_file_an_ECMAScript_module_or_adjust_your_verbatimModuleSyntax_module_and_moduleResolution_settings_in_TypeScript}function ji(e,n){e?gi.add(n):yi.add({...n,category:2})}function Ui(e,n,t,...r){if(n.pos<0||n.end<0){if(!e)return;const o=Sp(n);return void ji(e,"message"in t?ZT(o,0,0,t,...r):Xf(o,t))}ji(e,"message"in t?Vf(n,t,...r):Hf(Sp(n),n,t))}function Hi(e,n,t,...r){const o=Bi(e,t,...r);if(n){dA(o,Vf(e,fa.Did_you_forget_to_use_await))}return o}function Ki(e,n){const t=Array.isArray(e)?d(e,$l):$l(e);return t&&dA(n,Vf(t,fa.The_declaration_was_marked_as_deprecated_here)),yi.add(n),n}function qi(e){const n=xs(e);return n&&c(e.declarations)>1?64&n.flags?U(e.declarations,Ji):g(e.declarations,Ji):!!e.valueDeclaration&&Ji(e.valueDeclaration)||c(e.declarations)&&g(e.declarations,Ji)}function Ji(e){return!!(536870912&ej(e))}function Xi(e,n,t){return Ki(n,Vf(e,fa._0_is_deprecated,t))}function Yi(e,n,t){h++;const r=new l(33554432|e,n);return r.links=new sB,r.links.checkFlags=t||0,r}function $i(e,n){const t=Yi(1,e);return t.links.type=n,t}function Qi(e,n){const t=Yi(4,e);return t.links.type=n,t}function Zi(e){let 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 ea(e,n){n.mergeId||(n.mergeId=Zz,Zz++),$o[n.mergeId]=e}function na(e){const n=Yi(e.flags,e.escapedName);return n.declarations=e.declarations?e.declarations.slice():[],n.parent=e.parent,e.valueDeclaration&&(n.valueDeclaration=e.valueDeclaration),e.constEnumOnlyModule&&(n.constEnumOnlyModule=!0),e.members&&(n.members=new Map(e.members)),e.exports&&(n.exports=new Map(e.exports)),ea(n,e),n}function ra(e,n,t=!1){if(!(e.flags&Zi(n.flags))||67108864&(n.flags|e.flags)){if(n===e)return e;if(!(33554432&e.flags)){const t=Ka(e);if(t===Sn)return n;if(t.flags&Zi(n.flags)&&!(67108864&(n.flags|t.flags)))return r(e,n),n;e=na(t)}512&n.flags&&512&e.flags&&e.constEnumOnlyModule&&!n.constEnumOnlyModule&&(e.constEnumOnlyModule=!1),e.flags|=n.flags,n.valueDeclaration&&y_(e,n.valueDeclaration),ae(e.declarations,n.declarations),n.members&&(e.members||(e.members=Qu()),sa(e.members,n.members,t)),n.exports&&(e.exports||(e.exports=Qu()),sa(e.exports,n.exports,t,e)),t||ea(e,n)}else 1024&e.flags?e!==Ce&&Bi(n.declarations&&Dl(n.declarations[0]),fa.Cannot_augment_module_0_with_value_exports_because_it_resolves_to_a_non_module_entity,hl(e)):r(e,n);return e;function r(e,n){const t=!!(384&e.flags||384&n.flags),r=!!(2&e.flags||2&n.flags),i=t?fa.Enum_declarations_can_only_merge_with_namespace_or_other_enum_declarations:r?fa.Cannot_redeclare_block_scoped_variable_0:fa.Duplicate_identifier_0,a=n.declarations&&Sp(n.declarations[0]),s=e.declarations&&Sp(e.declarations[0]),l=Ap(a,O.checkJs),c=Ap(s,O.checkJs),d=hl(n);if(a&&s&&Ut&&!t&&a!==s){const t=-1===ta(a.path,s.path)?a:s,i=t===a?s:a,u=z(Ut,`${t.path}|${i.path}`,()=>({firstFile:t,secondFile:i,conflictingSymbols:new Map})),p=z(u.conflictingSymbols,d,()=>({isBlockScoped:r,firstFileLocations:[],secondFileLocations:[]}));l||o(p.firstFileLocations,n),c||o(p.secondFileLocations,e)}else l||oa(n,i,d,e),c||oa(e,i,d,n)}function o(e,n){if(n.declarations)for(const t of n.declarations)se(e,t)}}function oa(e,n,t,r){d(e.declarations,e=>{ia(e,n,t,r.declarations)})}function ia(e,n,t,r){const o=(Yh(e,!1)?Qh(e):Dl(e))||e,i=function(e,n,...t){const r=e?Vf(e,n,...t):nS(n,...t);return gi.lookup(r)||(gi.add(r),r)}(o,n,t);for(const a of r||s){const e=(Yh(a,!1)?Qh(a):Dl(a))||a;if(e===o)continue;i.relatedInformation=i.relatedInformation||[];const n=Vf(e,fa._0_was_also_declared_here,t),r=Vf(e,fa.and_here);c(i.relatedInformation)>=5||U(i.relatedInformation,e=>0===aS(e,r)||0===aS(e,n))||dA(i,c(i.relatedInformation)?r:n)}}function sa(e,n,t=!1,r){n.forEach((n,o)=>{const i=e.get(o),a=i?ra(i,n,t):Ss(n);r&&i&&(a.parent=r),e.set(o,a)})}function ca(e){var n,t,r;const o=e.parent;if((null==(n=o.symbol.declarations)?void 0:n[0])===o)if(gf(o))sa(Ie,o.symbol.exports);else{let n=is(e,e,33554432&e.parent.parent.flags?void 0:fa.Invalid_module_name_in_augmentation_module_0_cannot_be_found,!1,!0);if(!n)return;if(n=ls(n),1920&n.flags)if(U(qt,e=>n===e.symbol)){const t=ra(o.symbol,n,!0);Jt||(Jt=new Map),Jt.set(e.text,t)}else{if((null==(t=n.exports)?void 0:t.get("__export"))&&(null==(r=o.symbol.exports)?void 0:r.size)){const e=Dp(n,"resolvedExports");for(const[t,r]of Le(o.symbol.exports.entries()))e.has(t)&&!n.exports.has(t)&&ra(e.get(t),r)}ra(n,o.symbol)}else Bi(e,fa.Cannot_augment_module_0_because_it_resolves_to_a_non_module_entity,e.text)}else dt.assert(o.symbol.declarations.length>1)}function da(e){if(33554432&e.flags)return e.links;const n=dB(e);return Qo[n]??(Qo[n]=new sB)}function ua(e){const n=cB(e);return Zo[n]||(Zo[n]=new lB)}function pa(e,n,t){if(t){const r=Ss(e.get(n));if(r){if(r.flags&t)return r;if(2097152&r.flags){if(Xa(r)&t)return r}}}}function ma(n,t){const r=Sp(n),o=Sp(t),i=kf(n);if(r!==o){if(G&&(r.externalModuleIndicator||o.externalModuleIndicator)||!O.outFile||fv(t)||33554432&n.flags)return!0;if(a(t,n))return!0;const i=e.getSourceFiles();return i.indexOf(r)<=i.indexOf(o)}if(16777216&t.flags||fv(t)||VI(t))return!0;if(n.pos<=t.pos&&(!MD(n)||!dh(t.parent)||n.initializer||n.exclamationToken)){if(209===n.kind){const e=Ig(t,209);return e?ml(e,fC)!==ml(n,fC)||n.pos<e.pos:ma(Ig(n,261),t)}if(261===n.kind)return!function(e,n){switch(e.parent.parent.kind){case 244:case 249:case 251:if(Ea(n,e,i))return!0}const t=e.parent.parent;return eu(t)&&Ea(n,t.expression,i)}(n,t);if(md(n)){const e=ml(t,e=>e===n?"quit":RD(e)?e.parent.parent===n:!V&&CD(e)&&(e.parent===n||LD(e.parent)&&e.parent.parent===n||_c(e.parent)&&e.parent.parent===n||MD(e.parent)&&e.parent.parent===n||DD(e.parent)&&e.parent.parent.parent===n));return!e||!(V||!CD(e))&&!!ml(t,n=>n===e?"quit":ad(n)&&!lh(n))}return MD(n)?!l(n,t,!1):!tl(n,n.parent)||!(H&&Zm(n)===Zm(t)&&a(t,n))}return!!(282===t.parent.kind||278===t.parent.kind&&t.parent.isExportEquals)||(!(278!==t.kind||!t.isExportEquals)||!!a(t,n)&&(!H||!Zm(n)||!MD(n)&&!tl(n,n.parent)||!l(n,t,!0)));function a(e,n){return s(e,n)}function s(e,n){return!!ml(e,t=>{if(t===i)return"quit";if(ad(t))return!lh(t);if(kD(t))return n.pos<e.pos;const r=en(t.parent,MD);if(r){if(r.initializer===t)if(Pv(t.parent)){if(175===n.kind)return!0;if(MD(n)&&Zm(e)===Zm(n)){const e=n.name;if(dD(e)||uD(e)){if(function(e,n,t,r,o){for(const i of t)if(i.pos>=r&&i.pos<=o){const t=vR.createPropertyAccessExpression(vR.createThis(),e);PA(t.expression,t),PA(t,i),t.flowNode=i.returnFlowNode;if(!_A(kN(t,n,IR(n))))return!0}return!1}(e,Vd(Es(n)),x(n.parent.members,kD),n.parent.pos,t.pos))return!0}}}else{if(!(173===n.kind&&!Pv(n))||Zm(e)!==Zm(n))return!0}}const o=en(t.parent,CD);if(o&&o.expression===t){if(DD(o.parent))return!!s(o.parent.parent.parent,n)||"quit";if(LD(o.parent))return!!s(o.parent.parent,n)||"quit"}return!1})}function l(e,n,t){if(n.end>e.end)return!1;return void 0===ml(n,n=>{if(n===e)return"quit";switch(n.kind){case 220:return!0;case 173:return!t||!(MD(e)&&n.parent===e.parent||tl(e,e.parent)&&n.parent===e.parent.parent)||"quit";case 242:switch(n.parent.kind){case 178:case 175:case 179:return!0;default:return!1}default:return!1}})}}function ha(e){return ua(e).declarationRequiresScopeChange}function _a(e,n){ua(e).declarationRequiresScopeChange=n}function ga(e,n,t){return n?dA(e,Vf(n,282===n.kind||279===n.kind||281===n.kind?fa._0_was_exported_here:fa._0_was_imported_here,t)):e}function ya(e){return Qe(e)?yl(e):Of(e)}function va(e,n,t){if(!dD(e)||e.escapedText!==n||vG(e)||fv(e))return!1;const r=rh(e,!1,!1);let o=r;for(;o;){if(md(o.parent)){const i=Es(o.parent);if(!i)break;if(wh(Vd(i),n))return Bi(e,fa.Cannot_find_name_0_Did_you_mean_the_static_member_1_0,ya(t),hl(i)),!0;if(o===r&&!Pv(o)){if(wh(Wu(i).thisType,n))return Bi(e,fa.Cannot_find_name_0_Did_you_mean_the_instance_member_this_0,ya(t)),!0}}o=o.parent}return!1}function ba(e){const n=Ta(e);return!(!n||!ts(n,64,!0))&&(Bi(e,fa.Cannot_extend_an_interface_0_Did_you_mean_implements,Zp(n)),!0)}function Ta(e){switch(e.kind){case 80:case 212:return e.parent?Ta(e.parent):void 0;case 234:if(db(e.expression))return e.expression;default:return}}function Sa(e){return"any"===e||"string"===e||"number"===e||"boolean"===e||"never"===e||"unknown"===e}function Ea(e,n,t){return!!n&&!!ml(e,e=>e===n||!!(e===t||ad(e)&&(!lh(e)||3&Fg(e)))&&"quit")}function Aa(e){switch(e.kind){case 272:return e;case 274:return e.parent;case 275:return e.parent.parent;case 277:return e.parent.parent.parent;default:return}}function xa(e){return e.declarations&&v(e.declarations,Ra)}function Ra(e){return 272===e.kind||271===e.kind||274===e.kind&&!!e.name||275===e.kind||281===e.kind||277===e.kind||282===e.kind||278===e.kind&&yg(e)||MC(e)&&2===o_(e)&&yg(e)||IT(e)&&MC(e.parent)&&e.parent.left===e&&64===e.parent.operatorToken.kind&&Ia(e.parent.right)||305===e.kind||304===e.kind&&Ia(e.initializer)||261===e.kind&&Bh(e)||209===e.kind&&Bh(e.parent.parent)}function Ia(e){return gg(e)||EC(e)&&Fw(e)}function Da(e,n){const t=Ba(e);if(t){const e=NT(t.expression).arguments[0];return dD(t.name)?Ka(wh(tg(e),t.name.escapedText)):void 0}if(fN(e)||284===e.moduleReference.kind){const t=os(e,Ch(e)||Dh(e)),r=ls(t);if(r&&102<=G&&G<=199){const t=Fa(r,"module.exports",e,n);if(t)return t}return Ya(e,t,r,!1),r}const r=Za(e.moduleReference,n);return function(e,n){if(Ya(e,void 0,n,!1)&&!e.isTypeOnly){const n=Qa(Es(e)),t=282===n.kind||279===n.kind,r=t?fa.An_import_alias_cannot_reference_a_declaration_that_was_exported_using_export_type:fa.An_import_alias_cannot_reference_a_declaration_that_was_imported_using_import_type,o=t?fa._0_was_exported_here:fa._0_was_imported_here,i=279===n.kind?"*":Xp(n.name);dA(Bi(e.moduleReference,r),Vf(n,o,i))}}(e,r),r}function Ca(e,n,t,r){const o=e.exports.get("export="),i=o?wh(Vd(o),n,!0):e.exports.get(n),a=Ka(i,r);return Ya(t,i,a,!1),a}function Na(e){return ON(e)&&!e.isExportEquals||Mv(e,2048)||zN(e)||LN(e)}function Ma(n){return zu(n)?e.getEmitSyntaxForUsageLocation(Sp(n),n):void 0}function La(e,n){if(100<=G&&G<=199){if(99===Ma(e)){n??(n=os(e,e,!0));const t=n&&Ep(n);return t&&(om(t)||".d.json.ts"===vk(t.fileName))}}return!1}function ka(n,t,r,o){const i=n&&Ma(o);if(n&&void 0!==i){const t=e.getImpliedNodeFormatForEmit(n);if(99===i&&1===t&&100<=G&&G<=199)return!0;if(99===i&&99===t)return!1}if(!q)return!1;if(!n||n.isDeclarationFile){const e=Ca(t,"default",void 0,!0);return(!e||!U(e.declarations,Na))&&!Ca(t,gl("__esModule"),void 0,r)}return Ph(n)?"object"!=typeof n.externalModuleIndicator&&!Ca(t,gl("__esModule"),void 0,r):ps(t)}function wa(n,t,r){var o;const i=null==(o=n.declarations)?void 0:o.find(uM),a=Oa(t);let s,l;if(hf(n))s=n;else{if(i&&a&&102<=G&&G<=199&&1===Ma(a)&&99===e.getImpliedNodeFormatForEmit(i)&&(l=Ca(n,"module.exports",t,r)))return IS(O)?(Ya(t,l,void 0,!1),l):void Bi(t.name,fa.Module_0_can_only_be_default_imported_using_the_1_flag,hl(n),"esModuleInterop");s=Ca(n,"default",t,r)}if(!a)return s;const c=La(a,n),d=ka(i,n,r,a);if(s||d||c){if(d||c){const e=ls(n,r)||Ka(n,r);return Ya(t,n,e,!1),e}}else if(ps(n)&&!q){const e=G>=5?"allowSyntheticDefaultImports":"esModuleInterop",r=n.exports.get("export=").valueDeclaration,o=Bi(t.name,fa.Module_0_can_only_be_default_imported_using_the_1_flag,hl(n),e);r&&dA(o,Vf(r,fa.This_module_is_declared_with_export_and_can_only_be_used_with_a_default_import_when_using_the_0_flag,e))}else RN(t)?function(e,n){var t,r,o;if(null==(t=e.exports)?void 0:t.has(n.symbol.escapedName))Bi(n.name,fa.Module_0_has_no_default_export_Did_you_mean_to_use_import_1_from_0_instead,hl(e),hl(n.symbol));else{const t=Bi(n.name,fa.Module_0_has_no_default_export,hl(e)),i=null==(r=e.exports)?void 0:r.get("__export");if(i){const e=null==(o=i.declarations)?void 0:o.find(e=>{var n,t;return!!(FN(e)&&e.moduleSpecifier&&(null==(t=null==(n=os(e,e.moduleSpecifier))?void 0:n.exports)?void 0:t.has("default")))});e&&dA(t,Vf(e,fa.export_Asterisk_does_not_re_export_a_default))}}}(n,t):za(n,n,t,Gc(t)&&t.propertyName||t.name);return Ya(t,s,void 0,!1),s}function Oa(e){switch(e.kind){case 274:return e.parent.moduleSpecifier;case 272:return UN(e.moduleReference)?e.moduleReference.expression:void 0;case 275:case 282:return e.parent.parent.moduleSpecifier;case 277:return e.parent.parent.parent.moduleSpecifier;default:return dt.assertNever(e)}}function Fa(e,n,t,r){var o;if(1536&e.flags){const i=_s(e).get(n),a=Ka(i,r);return Ya(t,i,a,!1,null==(o=da(e).typeOnlyExportStarMap)?void 0:o.get(n),n),a}}function Wa(e,n,t=!1){var r;const o=Ch(e)||e.moduleSpecifier,i=os(e,o),a=!_C(n)&&n.propertyName||n.name;if(!dD(a)&&11!==a.kind)return;const s=Yp(a),l=cs(i,o,!1,"default"===s&&q);if(l&&(s||11===a.kind)){if(hf(i))return i;let c;c=i&&i.exports&&i.exports.get("export=")?wh(Vd(l),s,!0):function(e,n){if(3&e.flags){const t=e.valueDeclaration.type;if(t)return Ka(wh(qS(t),n))}}(l,s),c=Ka(c,t);let d=Fa(l,s,n,t);if(void 0===d&&"default"===s){const e=null==(r=i.declarations)?void 0:r.find(uM);(La(o,i)||ka(e,i,t,o))&&(d=ls(i,t)||Ka(i,t))}const u=d&&c&&d!==c?function(e,n){if(e===Sn&&n===Sn)return Sn;if(790504&e.flags)return e;const t=Yi(e.flags|n.flags,e.escapedName);return dt.assert(e.declarations||n.declarations),t.declarations=Y(K(e.declarations,n.declarations),hn),t.parent=e.parent||n.parent,e.valueDeclaration&&(t.valueDeclaration=e.valueDeclaration),n.members&&(t.members=new Map(n.members)),e.exports&&(t.exports=new Map(e.exports)),t}(c,d):d||c;return Gc(n)&&La(o,i)&&"default"!==s?Bi(a,fa.Named_imports_from_a_JSON_file_into_an_ECMAScript_module_are_not_allowed_when_module_is_set_to_0,mo[G]):u||za(i,l,e,a),u}}function za(e,n,t,r){var o;const i=ns(e,t),a=Of(r),s=dD(r)?Lk(r,n):void 0;if(void 0!==s){const e=hl(s),n=Bi(r,fa._0_has_no_exported_member_named_1_Did_you_mean_2,i,a,e);s.valueDeclaration&&dA(n,Vf(s.valueDeclaration,fa._0_is_declared_here,e))}else(null==(o=e.exports)?void 0:o.has("default"))?Bi(r,fa.Module_0_has_no_exported_member_1_Did_you_mean_to_use_import_1_from_0_instead,i,a):function(e,n,t,r,o){var i,a;const s=null==(a=null==(i=en(r.valueDeclaration,du))?void 0:i.locals)?void 0:a.get(Yp(n)),l=r.exports;if(s){const r=null==l?void 0:l.get("export=");if(r)Ms(r,s)?function(e,n,t,r){if(G>=5){Bi(n,IS(O)?fa._0_can_only_be_imported_by_using_a_default_import:fa._0_can_only_be_imported_by_turning_on_the_esModuleInterop_flag_and_using_a_default_import,t)}else if(Lh(e)){Bi(n,IS(O)?fa._0_can_only_be_imported_by_using_a_require_call_or_by_using_a_default_import:fa._0_can_only_be_imported_by_using_a_require_call_or_by_turning_on_the_esModuleInterop_flag_and_using_a_default_import,t)}else{Bi(n,IS(O)?fa._0_can_only_be_imported_by_using_import_1_require_2_or_a_default_import:fa._0_can_only_be_imported_by_using_import_1_require_2_or_by_turning_on_the_esModuleInterop_flag_and_using_a_default_import,t,t,r)}}(e,n,t,o):Bi(n,fa.Module_0_has_no_exported_member_1,o,t);else{const e=l?y(I_(l),e=>!!Ms(e,s)):void 0,r=e?Bi(n,fa.Module_0_declares_1_locally_but_it_is_exported_as_2,o,t,hl(e)):Bi(n,fa.Module_0_declares_1_locally_but_it_is_not_exported,o,t);s.declarations&&dA(r,...D(s.declarations,(e,n)=>Vf(e,0===n?fa._0_is_declared_here:fa.and_here,t)))}}else Bi(n,fa.Module_0_has_no_exported_member_1,o,t)}(t,r,a,e,i)}function Ba(e){if(fN(e)&&e.initializer&&_C(e.initializer))return e.initializer}function Ga(e,n,t){const r=e.propertyName||e.name;if($p(r)){const n=Oa(e),r=n&&os(e,n);if(r)return wa(r,e,!!t)}const o=e.parent.parent.moduleSpecifier?Wa(e.parent.parent,e,t):11===r.kind?void 0:ts(r,n,!1,t);return Ya(e,void 0,o,!1),o}function Va(e,n){if(OC(e))return EF(e).symbol;if(!rd(e)&&!db(e))return;const t=ts(e,901119,!0,n);return t||(EF(e),ua(e).resolvedSymbol)}function ja(e,n=!1){switch(e.kind){case 272:case 261:return Da(e,n);case 274:return function(e,n){const t=os(e,e.parent.moduleSpecifier);if(t)return wa(t,e,n)}(e,n);case 275:return function(e,n){const t=e.parent.parent.moduleSpecifier,r=os(e,t),o=cs(r,t,n,!1);return Ya(e,r,o,!1),o}(e,n);case 281:return function(e,n){const t=e.parent.moduleSpecifier,r=t&&os(e,t),o=t&&cs(r,t,n,!1);return Ya(e,r,o,!1),o}(e,n);case 277:case 209:return function(e,n){if(wN(e)&&$p(e.propertyName||e.name)){const t=Oa(e),r=t&&os(e,t);if(r)return wa(r,e,n)}const t=fC(e)?ny(e):e.parent.parent.parent,r=Ba(t),o=Wa(t,r||e,n),i=e.propertyName||e.name;return r&&o&&dD(i)?Ka(wh(Vd(o),i.escapedText),n):(Ya(e,void 0,o,!1),o)}(e,n);case 282:return Ga(e,901119,n);case 278:case 227:return function(e,n){const t=Va(ON(e)?e.expression:e.right,n);return Ya(e,void 0,t,!1),t}(e,n);case 271:return function(e,n){if(cu(e.parent)){const t=ls(e.parent.symbol,n);return Ya(e,void 0,t,!1),t}}(e,n);case 305:return ts(e.name,901119,!0,n);case 304:return Va(e.initializer,n);case 213:case 212:return function(e,n){if(MC(e.parent)&&e.parent.left===e&&64===e.parent.operatorToken.kind)return Va(e.parent.right,n)}(e,n);default:return dt.fail()}}function Ha(e,n=901119){return!!e&&(2097152==(e.flags&(2097152|n))||!!(2097152&e.flags&&67108864&e.flags))}function Ka(e,n){return!n&&Ha(e)?Ja(e):e}function Ja(e){dt.assert(!!(2097152&e.flags),"Should only get Alias here.");const n=da(e);if(n.aliasTarget)n.aliasTarget===En&&(n.aliasTarget=Sn);else{n.aliasTarget=En;const t=xa(e);if(!t)return dt.fail();const r=ja(t);n.aliasTarget===En?n.aliasTarget=r||Sn:Bi(t,fa.Circular_definition_of_import_alias_0,hl(e))}return n.aliasTarget}function Xa(e,n,t){const r=n&&Qa(e),o=r&&FN(r),i=r&&(o?os(r.moduleSpecifier,r.moduleSpecifier,!0):Ja(r.symbol)),a=o&&i?gs(i):void 0;let s,l=t?0:e.flags;for(;2097152&e.flags;){const n=Ls(Ja(e));if(!o&&n===i||(null==a?void 0:a.get(n.escapedName))===n)break;if(n===Sn)return-1;if(n===e||(null==s?void 0:s.has(n)))break;2097152&n.flags&&(s?s.add(n):s=new Set([e,n])),l|=n.flags,e=n}return l}function Ya(e,n,t,r,o,i){if(!e||_C(e))return!1;const a=Es(e);if(Uc(e)){return da(a).typeOnlyDeclaration=e,!0}if(o){const e=da(a);return e.typeOnlyDeclaration=o,a.escapedName!==i&&(e.typeOnlyExportStarName=i),!0}const s=da(a);return $a(s,n,r)||$a(s,t,r)}function $a(e,n,t){var r;if(n&&(void 0===e.typeOnlyDeclaration||t&&!1===e.typeOnlyDeclaration)){const t=(null==(r=n.exports)?void 0:r.get("export="))??n,o=t.declarations&&y(t.declarations,Uc);e.typeOnlyDeclaration=o??da(t).typeOnlyDeclaration??!1}return!!e.typeOnlyDeclaration}function Qa(e,n){var t;if(!(2097152&e.flags))return;const r=da(e);if(void 0===r.typeOnlyDeclaration){r.typeOnlyDeclaration=!1;const n=Ka(e);Ya(null==(t=e.declarations)?void 0:t[0],xa(e)&&gL(e),n,!0)}if(void 0===n)return r.typeOnlyDeclaration||void 0;if(r.typeOnlyDeclaration){return Xa(279===r.typeOnlyDeclaration.kind?Ka(gs(r.typeOnlyDeclaration.symbol.parent).get(r.typeOnlyExportStarName||e.escapedName)):Ja(r.typeOnlyDeclaration.symbol))&n?r.typeOnlyDeclaration:void 0}}function Za(e,n){return 80===e.kind&&_b(e)&&(e=e.parent),80===e.kind||167===e.parent.kind?ts(e,1920,!1,n):(dt.assert(272===e.parent.kind),ts(e,901119,!1,n))}function ns(e,n){return e.parent?ns(e.parent,n)+"."+hl(e):hl(e,n,void 0,36)}function ts(e,n,t,r,o){if(Np(e))return;const i=1920|(Lh(e)?111551&n:0);let a;if(80===e.kind){const r=n===i||ry(e)?fa.Cannot_find_namespace_0:BI(ub(e)),s=Lh(e)&&!ry(e)?function(e,n){if(jy(e.parent)){const t=function(e){if(ml(e,e=>Ru(e)||16777216&e.flags?M_(e):"quit"))return;const n=q_(e);if(n&&$C(n)&&__(n.expression)){const e=Es(n.expression.left);if(e)return rs(e)}if(n&&EC(n)&&__(n.parent)&&$C(n.parent.parent)){const e=Es(n.parent.left);if(e)return rs(e)}if(n&&(jm(n)||sM(n))&&MC(n.parent.parent)&&6===o_(n.parent.parent)){const e=Es(n.parent.parent.left);if(e)return rs(e)}const t=K_(e);if(t&&ad(t)){const e=Es(t);return e&&e.valueDeclaration}}(e.parent);if(t)return je(t,e,n,void 0,!0)}}(e,n):void 0;if(a=Ss(je(o||e,e,n,t||s?void 0:r,!0,!1)),!a)return Ss(s)}else if(167===e.kind||212===e.kind){const r=167===e.kind?e.left:e.expression,s=167===e.kind?e.right:e.name;let l=ts(r,i,t,!1,o);if(!l||Np(s))return;if(l===Sn)return l;if(l.valueDeclaration&&Lh(l.valueDeclaration)&&100!==AS(O)&&fN(l.valueDeclaration)&&l.valueDeclaration.initializer&&qw(l.valueDeclaration.initializer)){const e=l.valueDeclaration.initializer.arguments[0],n=os(e,e);if(n){const e=ls(n);e&&(l=e)}}if(a=Ss(pa(_s(l),s.escapedText,n)),!a&&2097152&l.flags&&(a=Ss(pa(_s(Ja(l)),s.escapedText,n))),!a){if(!t){const t=ns(l),r=Of(s),o=Lk(s,l);if(o)return void Bi(s,fa._0_has_no_exported_member_named_1_Did_you_mean_2,t,r,hl(o));const i=xD(e)&&function(e){for(;xD(e.parent);)e=e.parent;return e}(e),a=Xt&&788968&n&&i&&!RC(i.parent)&&function(e){let n=ub(e),t=je(n,n,111551,void 0,!0);if(t){for(;xD(n.parent);){if(t=wh(Vd(t),n.parent.right.escapedText),!t)return;n=n.parent}return t}}(i);if(a)return void Bi(i,fa._0_refers_to_a_value_but_is_being_used_as_a_type_here_Did_you_mean_typeof_0,Gf(i));if(1920&n&&xD(e.parent)){const n=Ss(pa(_s(l),s.escapedText,788968));if(n)return void Bi(e.parent.right,fa.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,hl(n),yl(e.parent.right.escapedText))}Bi(s,fa.Namespace_0_has_no_exported_member_1,t,r)}return}}else dt.assertNever(e,"Unknown entity name kind.");return!ry(e)&&rd(e)&&(2097152&a.flags||278===e.parent.kind)&&Ya(_g(e),a,void 0,!0),a.flags&n||r?a:Ja(a)}function rs(e){const n=e.parent.valueDeclaration;if(!n)return;return(Kh(n)?Xh(n):ku(n)?Jh(n):void 0)||n}function os(e,n,t){const r=1===AS(O)?fa.Cannot_find_module_0_Did_you_mean_to_set_the_moduleResolution_option_to_nodenext_or_to_add_aliases_to_the_paths_option:fa.Cannot_find_module_0_or_its_corresponding_type_declarations;return is(e,n,t?void 0:r,t)}function is(e,n,t,r=!1,o=!1){return zu(n)?as(e,n.text,t,r?void 0:n,o):void 0}function as(n,t,r,o,i=!1){var a,s,l,c,d,u,p,f,m,h,_,g;if(o&&Xn(t,"@types/")){Bi(o,fa.Cannot_import_type_declaration_files_Consider_importing_0_instead_of_1,Yn(t,"@types/"),t)}const y=D_(t,!0);if(y)return y;const v=Sp(n),b=zu(n)?n:(null==(a=bN(n)?n:n.parent&&bN(n.parent)&&n.parent.name===n?n.parent:void 0)?void 0:a.name)||(null==(s=hm(n)?n:void 0)?void 0:s.argument.literal)||(fN(n)&&n.initializer&&Wh(n.initializer,!0)?n.initializer.arguments[0]:void 0)||(null==(l=ml(n,fm))?void 0:l.arguments[0])||(null==(c=ml(n,et(xN,eP,FN)))?void 0:c.moduleSpecifier)||(null==(d=ml(n,Ih))?void 0:d.moduleReference.expression),T=b&&zu(b)?e.getModeForUsageLocation(v,b):e.getDefaultResolutionModeForFile(v),S=AS(O),E=null==(u=e.getResolvedModule(v,t,T))?void 0:u.resolvedModule,A=o&&E&&eH(O,E,v),x=E&&(!A||A===fa.Module_0_was_resolved_to_1_but_jsx_is_not_set)&&e.getSourceFile(E.resolvedFileName);if(x){if(A&&Bi(o,A,t,E.resolvedFileName),E.resolvedUsingTsExtension&&yk(t)){const e=(null==(p=ml(n,xN))?void 0:p.importClause)||ml(n,et(AN,FN));(o&&e&&!e.isTypeOnly||ml(n,fm))&&Bi(o,fa.A_declaration_file_cannot_be_imported_without_import_type_Did_you_mean_to_import_an_implementation_file_0_instead,function(e){const n=XE(t,e);if(WS(G)||99===T){const r=yk(t)&&qW(O);return n+(".mts"===e||".d.mts"===e?r?".mts":".mjs":".cts"===e||".d.mts"===e?r?".cts":".cjs":r?".ts":".js")}return n}(dt.checkDefined(Ab(t))))}else if(E.resolvedUsingTsExtension&&!qW(O,v.fileName)){const e=(null==(f=ml(n,xN))?void 0:f.importClause)||ml(n,et(AN,FN));if(o&&!(null==e?void 0:e.isTypeOnly)&&!ml(n,lC)){const e=dt.checkDefined(Ab(t));Bi(o,fa.An_import_path_can_only_end_with_a_0_extension_when_allowImportingTsExtensions_is_enabled,e)}}else if(O.rewriteRelativeImportExtensions&&!(33554432&n.flags)&&!yk(t)&&!hm(n)&&!Hc(n)){const n=A_(t,O);if(!E.resolvedUsingTsExtension&&n)Bi(o,fa.This_relative_import_path_is_unsafe_to_rewrite_because_it_looks_like_a_file_name_but_actually_resolves_to_0,la(Vi(v.fileName,e.getCurrentDirectory()),E.resolvedFileName,By(e)));else if(E.resolvedUsingTsExtension&&!n&&Zy(x,e))Bi(o,fa.This_import_uses_a_0_extension_to_resolve_to_an_input_TypeScript_file_but_will_not_be_rewritten_during_emit_because_it_is_not_a_relative_path,ki(t));else if(E.resolvedUsingTsExtension&&n){const n=null==(m=e.getRedirectFromSourceFile(x.path))?void 0:m.resolvedRef;if(n){const t=!e.useCaseSensitiveFileNames(),r=e.getCommonSourceDirectory(),i=yj(n.commandLine,t);aa(r,i,t)!==aa(O.outDir||r,n.commandLine.options.outDir||i,t)&&Bi(o,fa.This_import_path_is_unsafe_to_rewrite_because_it_resolves_to_another_project_and_the_relative_path_between_the_projects_output_files_is_not_the_same_as_the_relative_path_between_its_input_files)}}}if(x.symbol){if(o&&E.isExternalLibraryImport&&!tA(E.extension)&&ss(!1,o,v,T,E,t),o&&(100===G||101===G)){const e=1===v.impliedNodeFormat&&!ml(n,fm)||!!ml(n,AN),r=ml(n,e=>lC(e)||FN(e)||xN(e)||eP(e));if(e&&99===x.impliedNodeFormat&&!mx(r))if(ml(n,AN))Bi(o,fa.Module_0_cannot_be_imported_using_this_construct_The_specifier_only_resolves_to_an_ES_module_which_cannot_be_imported_with_require_Use_an_ECMAScript_import_instead,t);else{let e;const n=iA(v.fileName);".ts"!==n&&".js"!==n&&".tsx"!==n&&".jsx"!==n||(e=_p(v));const i=273===(null==r?void 0:r.kind)&&(null==(h=r.importClause)?void 0:h.isTypeOnly)?fa.Type_only_import_of_an_ECMAScript_module_from_a_CommonJS_module_must_have_a_resolution_mode_attribute:206===(null==r?void 0:r.kind)?fa.Type_import_of_an_ECMAScript_module_from_a_CommonJS_module_must_have_a_resolution_mode_attribute:fa.The_current_file_is_a_CommonJS_module_whose_imports_will_produce_require_calls_however_the_referenced_file_is_an_ECMAScript_module_and_cannot_be_imported_with_require_Consider_writing_a_dynamic_import_0_call_instead;gi.add(Hf(Sp(o),o,rS(e,i,t)))}}return Ss(x.symbol)}o&&r&&!Ix(o)&&Bi(o,fa.File_0_is_not_a_module,x.fileName)}else{if(qt){const e=Jn(qt,e=>e.pattern,t);if(e){const n=Jt&&Jt.get(t);return Ss(n?n:e.symbol)}}if(o){if((!E||tA(E.extension)||void 0!==A)&&A!==fa.Could_not_find_a_declaration_file_for_module_0_1_implicitly_has_an_any_type){if(r){if(E){const n=e.getRedirectFromSourceFile(E.resolvedFileName);if(null==n?void 0:n.outputDts)return void Bi(o,fa.Output_file_0_has_not_been_built_from_source_file_1,n.outputDts,E.resolvedFileName)}if(A)Bi(o,A,t,E.resolvedFileName);else{const n=Si(t)&&!Ai(t),i=3===S||99===S;if(!MS(O)&&xi(t,".json")&&1!==S&&zS(O))Bi(o,fa.Cannot_find_module_0_Consider_using_resolveJsonModule_to_import_module_with_json_extension,t);else if(99===T&&i&&n){const n=Vi(t,Mi(v.path)),r=null==(_=Ni.find(([t,r])=>e.fileExists(n+t)))?void 0:_[1];r?Bi(o,fa.Relative_import_paths_need_explicit_file_extensions_in_ECMAScript_imports_when_moduleResolution_is_node16_or_nodenext_Did_you_mean_0,t+r):Bi(o,fa.Relative_import_paths_need_explicit_file_extensions_in_ECMAScript_imports_when_moduleResolution_is_node16_or_nodenext_Consider_adding_an_extension_to_the_import_path)}else if(null==(g=e.getResolvedModule(v,t,T))?void 0:g.alternateResult){Ui(!0,o,rS(hp(v,e,t,T,t),r,t))}else Bi(o,r,t)}}return}if(i){Bi(o,fa.Invalid_module_name_in_augmentation_Module_0_resolves_to_an_untyped_module_at_1_which_cannot_be_augmented,t,E.resolvedFileName)}else ss(oe&&!!r,o,v,T,E,t)}}}function ss(n,t,r,o,{packageId:i,resolvedFileName:a},s){if(Ix(t))return;let l;!Ds(s)&&i&&(l=hp(r,e,s,o,i.name)),Ui(n,t,rS(l,fa.Could_not_find_a_declaration_file_for_module_0_1_implicitly_has_an_any_type,s,a))}function ls(e,n){if(null==e?void 0:e.exports){const t=function(e,n){if(!e||e===Sn||e===n||1===n.exports.size||2097152&e.flags)return e;const t=da(e);if(t.cjsExportMerged)return t.cjsExportMerged;const r=33554432&e.flags?e:na(e);r.flags=512|r.flags,void 0===r.exports&&(r.exports=Qu());n.exports.forEach((e,n)=>{"export="!==n&&r.exports.set(n,r.exports.has(n)?ra(r.exports.get(n),e):e)}),r===e&&(da(r).resolvedExports=void 0,da(r).resolvedMembers=void 0);return da(r).cjsExportMerged=r,t.cjsExportMerged=r}(Ss(Ka(e.exports.get("export="),n)),Ss(e));return Ss(t)||e}}function cs(n,t,r,o){var i;const a=ls(n,r);if(!r&&a){if(!(o||1539&a.flags||Yu(a,308))){const e=G>=5?"allowSyntheticDefaultImports":"esModuleInterop";return Bi(t,fa.This_module_can_only_be_referenced_with_ECMAScript_imports_Slashexports_by_turning_on_the_0_flag_and_referencing_its_default_export,e),a}const s=t.parent,l=xN(s)&&R_(s);if(l||fm(s)){const c=fm(s)?s.arguments[0]:s.moduleSpecifier,d=Vd(a),u=Hw(d,a,n,c);if(u)return us(a,u,s);const p=null==(i=null==n?void 0:n.declarations)?void 0:i.find(uM),f=Ma(c);let m;if(l&&p&&102<=G&&G<=199&&1===f&&99===e.getImpliedNodeFormatForEmit(p)&&(m=Ca(a,"module.exports",l,r)))return o||1539&a.flags||Bi(t,fa.This_module_can_only_be_referenced_with_ECMAScript_imports_Slashexports_by_turning_on_the_0_flag_and_referencing_its_default_export,"esModuleInterop"),IS(O)&&ds(d)?us(m,d,s):m;const h=p&&function(e,n){return 99===e&&1===n}(f,e.getImpliedNodeFormatForEmit(p));if((IS(O)||h)&&(ds(d)||wh(d,"default",!0)||h)){return us(a,3670016&d.flags?Kw(d,a,n,c):Uw(a,a.parent),s)}}}return a}function ds(e){return U(zh(e,0))||U(zh(e,1))}function us(e,n,t){const r=Yi(e.flags,e.escapedName);r.declarations=e.declarations?e.declarations.slice():[],r.parent=e.parent,r.links.target=e,r.links.originatingImport=t,e.valueDeclaration&&(r.valueDeclaration=e.valueDeclaration),e.constEnumOnlyModule&&(r.constEnumOnlyModule=!0),e.members&&(r.members=new Map(e.members)),e.exports&&(r.exports=new Map(e.exports));const o=Jf(n);return r.links.type=qs(r,o.members,s,s,o.indexInfos),r}function ps(e){return void 0!==e.exports.get("export=")}function fs(e){return I_(gs(e))}function ms(e,n){const t=gs(n);if(t)return t.get(e)}function hs(e){return!(402784252&e.flags||1&bT(e)||Kx(e)||mR(e))}function _s(e){return 6256&e.flags?Dp(e,"resolvedExports"):1536&e.flags?gs(e):e.exports||k}function gs(e){const n=da(e);if(!n.resolvedExports){const{exports:t,typeOnlyExportStarMap:r}=Ts(e);n.resolvedExports=t,n.typeOnlyExportStarMap=r}return n.resolvedExports}function bs(e,n,t,r){n&&n.forEach((n,o)=>{if("default"===o)return;const i=e.get(o);if(i){if(t&&r&&i&&Ka(i)!==Ka(n)){const e=t.get(o);e.exportsWithDuplicate?e.exportsWithDuplicate.push(r):e.exportsWithDuplicate=[r]}}else e.set(o,n),t&&r&&t.set(o,{specifierText:Zp(r.moduleSpecifier)})})}function Ts(e){const n=[];let t;const r=new Set,o=function e(o,i,a){!a&&(null==o?void 0:o.exports)&&o.exports.forEach((e,n)=>r.add(n));if(!(o&&o.exports&&se(n,o)))return;const s=new Map(o.exports),l=o.exports.get("__export");if(l){const n=Qu(),t=new Map;if(l.declarations)for(const r of l.declarations){const o=os(r,r.moduleSpecifier);bs(n,e(o,r,a||r.isTypeOnly),t,r)}t.forEach(({exportsWithDuplicate:e},n)=>{if("export="!==n&&e&&e.length&&!s.has(n))for(const r of e)gi.add(Vf(r,fa.Module_0_has_already_exported_a_member_named_1_Consider_explicitly_re_exporting_to_resolve_the_ambiguity,t.get(n).specifierText,yl(n)))}),bs(s,n)}(null==i?void 0:i.isTypeOnly)&&(t??(t=new Map),s.forEach((e,n)=>t.set(n,i)));return s}(e=ls(e))||k;return t&&r.forEach(e=>t.delete(e)),{exports:o,typeOnlyExportStarMap:t}}function Ss(e){let n;return e&&e.mergeId&&(n=$o[e.mergeId])?n:e}function Es(e){return Ss(e.symbol&&Pp(e.symbol))}function As(e){return cu(e)?Es(e):void 0}function xs(e){return Ss(e.parent&&Pp(e.parent))}function Rs(e){var n,t;return(220===(null==(n=e.valueDeclaration)?void 0:n.kind)||219===(null==(t=e.valueDeclaration)?void 0:t.kind))&&As(e.valueDeclaration.parent)||e}function Is(n,t,r){const o=xs(n);if(o&&!(262144&n.flags))return u(o);const i=F(n.declarations,e=>{if(!pf(e)&&e.parent){if(ll(e.parent))return Es(e.parent);if(TN(e.parent)&&e.parent.parent&&ls(Es(e.parent.parent))===n)return Es(e.parent.parent)}if(OC(e)&&MC(e.parent)&&64===e.parent.operatorToken.kind&&IT(e.parent.left)&&db(e.parent.left.expression))return r_(e.parent.left)||n_(e.parent.left.expression)?Es(Sp(e)):(EF(e.parent.left.expression),ua(e.parent.left.expression).resolvedSymbol)});if(!c(i))return;const a=F(i,e=>Ns(e,n)?e:void 0);let l=[],d=[];for(const e of a){const[n,...t]=u(e);l=re(l,n),d=ae(d,t)}return K(l,d);function u(o){const i=F(o.declarations,p),a=t&&function(n,t){const r=Sp(t),o=cB(r),i=da(n);let a;if(i.extendedContainersByFile&&(a=i.extendedContainersByFile.get(o)))return a;if(r&&r.imports){for(const e of r.imports){if(ry(e))continue;const r=os(t,e,!0);r&&(Ns(r,n)&&(a=re(a,r)))}if(c(a))return(i.extendedContainersByFile||(i.extendedContainersByFile=new Map)).set(o,a),a}if(i.extendedContainers)return i.extendedContainers;const l=e.getSourceFiles();for(const e of l){if(!dk(e))continue;const t=Es(e);Ns(t,n)&&(a=re(a,t))}return i.extendedContainers=a||s}(n,t),l=function(e,n){const t=!!c(e.declarations)&&he(e.declarations);if(111551&n&&t&&t.parent&&fN(t.parent)&&(hC(t)&&t===t.parent.initializer||KD(t)&&t===t.parent.type))return Es(t.parent)}(o,r);if(t&&o.flags&Xs(r)&&Ys(o,t,1920,!1))return re(K(K([o],i),a),l);const d=!(o.flags&Xs(r))&&788968&o.flags&&524288&Wu(o).flags&&111551===r?Js(t,e=>ap(e,e=>{if(e.flags&Xs(r)&&Vd(e)===Wu(o))return e})):void 0;let u=d?[d,...i,o]:[...i,o];return u=re(u,l),u=ae(u,a),u}function p(e){return o&&Cs(e,o)}}function Cs(e,n){const t=ol(e),r=t&&t.exports&&t.exports.get("export=");return r&&Ms(r,n)?t:void 0}function Ns(e,n){if(e===xs(n))return n;const t=e.exports&&e.exports.get("export=");if(t&&Ms(t,n))return e;const r=_s(e),o=r.get(n.escapedName);return o&&Ms(o,n)?o:ap(r,e=>{if(Ms(e,n))return e})}function Ms(e,n){if(Ss(Ka(Ss(e)))===Ss(Ka(Ss(n))))return e}function Ls(e){return Ss(e&&!!(1048576&e.flags)&&e.exportSymbol||e)}function Os(e,n){return!!(111551&e.flags||2097152&e.flags&&111551&Xa(e,!n))}function Fs(e){var n;const t=new u(qe,e);return m++,t.id=m,null==(n=Kt)||n.recordType(t),t}function Ws(e,n){const t=Fs(e);return t.symbol=n,t}function zs(e){return new u(qe,e)}function Bs(e,n,t=0,r){!function(e,n){const t=`${e},${n??""}`;Rn.has(t)&&dt.fail(`Duplicate intrinsic type name ${e}${n?` (${n})`:""}; you may need to pass a name to createIntrinsicType.`);Rn.add(t)}(n,r);const o=Fs(e);return o.intrinsicName=n,o.debugIntrinsicName=r,o.objectFlags=52953088|t,o}function Gs(e,n){const t=Ws(524288,n);return t.objectFlags=e,t.members=void 0,t.properties=void 0,t.callSignatures=void 0,t.constructSignatures=void 0,t.indexInfos=void 0,t}function Vs(e){return Ws(262144,e)}function js(e){return 95===e.charCodeAt(0)&&95===e.charCodeAt(1)&&95!==e.charCodeAt(2)&&64!==e.charCodeAt(2)&&35!==e.charCodeAt(2)}function Us(e){let n;return e.forEach((e,t)=>{Hs(e,t)&&(n||(n=[])).push(e)}),n||s}function Hs(e,n){return!js(n)&&Os(e)}function Ks(e,n,t,r,o){const i=e;return i.members=n,i.properties=s,i.callSignatures=t,i.constructSignatures=r,i.indexInfos=o,n!==k&&(i.properties=Us(n)),i}function qs(e,n,t,r,o){return Ks(Gs(16,e),n,t,r,o)}function Js(e,n){let t;for(let r=e;r;r=r.parent){if(du(r)&&r.locals&&!tm(r)&&(t=n(r.locals,void 0,!0,r)))return t;switch(r.kind){case 308:if(!rm(r))break;case 268:const e=Es(r);if(t=n((null==e?void 0:e.exports)||k,void 0,!0,r))return t;break;case 264:case 232:case 265:let o;if((Es(r).members||k).forEach((e,n)=>{788968&e.flags&&(o||(o=Qu())).set(n,e)}),o&&(t=n(o,void 0,!1,r)))return t}}return n(Ie,void 0,!0)}function Xs(e){return 111551===e?111551:1920}function Ys(e,n,t,r,o=new Map){if(!e||function(e){if(e.declarations&&e.declarations.length){for(const n of e.declarations)switch(n.kind){case 173:case 175:case 178:case 179:continue;default:return!1}return!0}return!1}(e))return;const i=da(e),a=i.accessibleChainCache||(i.accessibleChainCache=new Map),s=Js(n,(e,n,t,r)=>r),l=`${r?0:1}|${s?cB(s):0}|${t}`;if(a.has(l))return a.get(l);const c=dB(e);let d=o.get(c);d||o.set(c,d=[]);const u=Js(n,p);return a.set(l,u),u;function p(t,o,i){if(!se(d,t))return;const a=function(t,o,i){if(m(t.get(e.escapedName),void 0,o))return[e];const a=ap(t,t=>{if(2097152&t.flags&&"export="!==t.escapedName&&"default"!==t.escapedName&&!(TT(t)&&n&&dk(Sp(n)))&&(!r||U(t.declarations,Ih))&&(!i||!U(t.declarations,Rh))&&(o||!Yu(t,282))){const e=h(t,Ja(t),o);if(e)return e}if(t.escapedName===e.escapedName&&t.exportSymbol&&m(Ss(t.exportSymbol),void 0,o))return[e]});return a||(t===Ie?h(Ce,Ce,o):void 0)}(t,o,i);return d.pop(),a}function f(e,t){return!$s(e,n,t)||!!Ys(e.parent,n,Xs(t),r,o)}function m(n,r,o){return(e===(r||n)||Ss(e)===Ss(r||n))&&!U(n.declarations,ll)&&(o||f(Ss(n),t))}function h(e,n,r){if(m(e,n,r))return[e];const o=_s(n),i=o&&p(o,!0);return i&&f(e,Xs(t))?[e].concat(i):void 0}}function $s(e,n,t){let r=!1;return Js(n,n=>{let o=Ss(n.get(e.escapedName));if(!o)return!1;if(o===e)return!0;const i=2097152&o.flags&&!Yu(o,282);o=i?Ja(o):o;return!!((i?Xa(o):o.flags)&t)&&(r=!0,!0)}),r}function Qs(e,n){return 0===rl(e,n,111551,!1,!0).accessibility}function Zs(e,n,t){return 0===rl(e,n,t,!1,!1).accessibility}function el(e,n,t,r,o,i){if(!c(e))return;let a,s=!1;for(const l of e){const e=Ys(l,n,r,!1);if(e){a=l;const n=dl(e[0],o);if(n)return n}if(i&&U(l.declarations,ll)){if(o){s=!0;continue}return{accessibility:0}}const c=el(Is(l,n,r),n,t,t===l?Xs(r):r,o,i);if(c)return c}return s?{accessibility:0}:a?{accessibility:1,errorSymbolName:hl(t,n,r),errorModuleName:a!==t?hl(a,n,1920):void 0}:void 0}function nl(e,n,t,r){return rl(e,n,t,r,!0)}function rl(e,n,t,r,o){if(e&&n){const i=el([e],n,e,t,r,o);if(i)return i;const a=d(e.declarations,ol);if(a){if(a!==ol(n))return{accessibility:2,errorSymbolName:hl(e,n,t),errorModuleName:hl(a),errorNode:Lh(n)?n:void 0}}return{accessibility:1,errorSymbolName:hl(e,n,t)}}return{accessibility:0}}function ol(e){const n=ml(e,al);return n&&Es(n)}function al(e){return pf(e)||308===e.kind&&rm(e)}function ll(e){return ff(e)||308===e.kind&&rm(e)}function dl(e,n){let t;if(g(x(e.declarations,e=>80!==e.kind),function(n){var t,o;if(!Hl(n)){const i=Aa(n);if(i&&!Mv(i,32)&&Hl(i.parent))return r(n,i);if(fN(n)&&XC(n.parent.parent)&&!Mv(n.parent.parent,32)&&Hl(n.parent.parent.parent))return r(n,n.parent.parent);if(Nf(n)&&!Mv(n,32)&&Hl(n.parent))return r(n,n);if(fC(n)){if(2097152&e.flags&&Lh(n)&&(null==(t=n.parent)?void 0:t.parent)&&fN(n.parent.parent)&&(null==(o=n.parent.parent.parent)?void 0:o.parent)&&XC(n.parent.parent.parent.parent)&&!Mv(n.parent.parent.parent.parent,32)&&n.parent.parent.parent.parent.parent&&Hl(n.parent.parent.parent.parent.parent))return r(n,n.parent.parent.parent.parent);if(2&e.flags){const e=il(n);if(170===e.kind)return!1;const t=e.parent.parent;return 244===t.kind&&(!!Mv(t,32)||!!Hl(t.parent)&&r(n,t))}}return!1}return!0}))return{accessibility:0,aliasesToMakeVisible:t};function r(e,r){return n&&(ua(e).isVisible=!0,t=le(t,r)),!0}}function ul(e){let n;return n=187===e.parent.kind||234===e.parent.kind&&!Cm(e.parent)||168===e.parent.kind||183===e.parent.kind&&e.parent.parameterName===e?1160127:167===e.kind||212===e.kind||272===e.parent.kind||167===e.parent.kind&&e.parent.left===e||212===e.parent.kind&&e.parent.expression===e||213===e.parent.kind&&e.parent.expression===e?1920:788968,n}function pl(e,n,t=!0){const r=ul(e),o=ub(e),i=je(n,o.escapedText,r,void 0,!1);return i&&262144&i.flags&&788968&r||!i&&pv(o)&&0===nl(Es(rh(o,!1,!1)),o,r,!1).accessibility?{accessibility:0}:i?dl(i,t)||{accessibility:1,errorSymbolName:Zp(o),errorNode:o}:{accessibility:3,errorSymbolName:Zp(o),errorNode:o}}function hl(e,n,t,r=4,o){let i=70221824,a=0;2&r&&(i|=128),1&r&&(i|=512),8&r&&(i|=16384),32&r&&(a|=4),16&r&&(a|=1);const s=4&r?Te.symbolToNode:Te.symbolToEntityName;return o?l(o).getText():cp(l);function l(r){const o=s(e,t,n,i,a),l=308===(null==n?void 0:n.kind)?Cj():Dj(),c=n&&Sp(n);return l.writeNode(4,o,c,r),r}}function Sl(e,n,t=0,r,o,i,a,s){return o?l(o).getText():cp(l);function l(o){let l;l=262144&t?1===r?186:185:1===r?181:180;const c=Te.signatureToSignatureDeclaration(e,l,n,70222336|Pl(t),void 0,void 0,i,a,s),d=Nj(),u=n&&Sp(n);return d.writeNode(4,c,u,Wy(o)),o}}function El(e,n,t=1064960,r=Fy(""),o,i,a){const s=!o&&O.noErrorTruncation||1&t,l=Te.typeToTypeNode(e,n,70221824|Pl(t)|(s?1:0),void 0,void 0,o,i,a);if(void 0===l)return dt.fail("should always get typenode");const c=e!==Pn?Dj():Ij(),d=n&&Sp(n);c.writeNode(4,l,d,r);const u=r.getText(),p=o||(s?2*Ju:2*qu);return u&&u.length>=p?u.substr(0,p-3)+"...":u}function xl(e,n){let t=Cl(e.symbol)?El(e,e.symbol.valueDeclaration):El(e),r=Cl(n.symbol)?El(n,n.symbol.valueDeclaration):El(n);return t===r&&(t=Il(e),r=Il(n)),[t,r]}function Il(e){return El(e,void 0,64)}function Cl(e){return e&&!!e.valueDeclaration&&qd(e.valueDeclaration)&&!NE(e.valueDeclaration)}function Pl(e=0){return 848330095&e}function kl(e){return!!(e.symbol&&32&e.symbol.flags&&(e===bu(e.symbol)||524288&e.flags&&16777216&bT(e)))}function wl(e){return qS(e)}function Ol(n){var t;const r=4&bT(n)?n.target.symbol:n.symbol;return mR(n)||!!(null==(t=null==r?void 0:r.declarations)?void 0:t.some(n=>e.isSourceFileDefaultLibrary(Sp(n))))}function Fl(e,n,t=16384,r){return r?o(r).getText():cp(o);function o(r){const o=70222336|Pl(t),i=Te.typePredicateToTypePredicateNode(e,n,o),a=Dj(),s=n&&Sp(n);return a.writeNode(4,i,s,r),r}}function zl(e){return 2===e?"private":4===e?"protected":"public"}function Bl(e){return e&&e.parent&&269===e.parent.kind&&yf(e.parent.parent)}function Vl(e){return 308===e.kind||pf(e)}function jl(e,n){const t=da(e).nameType;if(t){if(384&t.flags){const e=""+t.value;return ys(e,SS(O))||UA(e)?UA(e)&&Xn(e,"-")?`[${e}]`:e:`"${Ay(e,34)}"`}if(8192&t.flags)return`[${Ul(t.symbol,n)}]`}}function Ul(e,n){var t;if((null==(t=null==n?void 0:n.remappedSymbolReferences)?void 0:t.has(dB(e)))&&(e=n.remappedSymbolReferences.get(dB(e))),n&&"default"===e.escapedName&&!(16384&n.flags)&&(!(16777216&n.flags)||!e.declarations||n.enclosingDeclaration&&ml(e.declarations[0],Vl)!==ml(n.enclosingDeclaration,Vl)))return"default";if(e.declarations&&e.declarations.length){let t=p(e.declarations,e=>Dl(e)?e:void 0);const r=t&&Dl(t);if(t&&r){if(yC(t)&&i_(t))return Tl(e);if(RD(r)&&!(4096&sT(e))){const t=da(e).nameType;if(t&&384&t.flags){const t=jl(e,n);if(void 0!==t)return t}}return Of(r)}if(t||(t=e.declarations[0]),t.parent&&261===t.parent.kind)return Of(t.parent.name);switch(t.kind){case 232:case 219:case 220:return!n||n.encounteredError||131072&n.flags||(n.encounteredError=!0),232===t.kind?"(Anonymous class)":"(Anonymous function)"}}const r=jl(e,n);return void 0!==r?r:Tl(e)}function Hl(e){if(e){const n=ua(e);return void 0===n.isVisible&&(n.isVisible=!!function(){switch(e.kind){case 339:case 347:case 341:return!!(e.parent&&e.parent.parent&&e.parent.parent.parent&&uM(e.parent.parent.parent));case 209:return Hl(e.parent.parent);case 261:if(xd(e.name)&&!e.name.elements.length)return!1;case 268:case 264:case 265:case 266:case 263:case 267:case 272:if(yf(e))return!0;const n=Ql(e);return 32&ZV(e)||272!==e.kind&&308!==n.kind&&33554432&n.flags?Hl(n):tm(n);case 173:case 172:case 178:case 179:case 175:case 174:if(Nv(e,6))return!1;case 177:case 181:case 180:case 182:case 170:case 269:case 185:case 186:case 188:case 184:case 189:case 190:case 193:case 194:case 197:case 203:return Hl(e.parent);case 274:case 275:case 277:return!1;case 169:case 308:case 271:return!0;default:return!1}}()),n.isVisible}return!1}function Kl(e,n){let t,r,o;return 11!==e.kind&&e.parent&&278===e.parent.kind?t=je(e,e,2998271,void 0,!1):282===e.parent.kind&&(t=Ga(e.parent,2998271)),t&&(o=new Set,o.add(dB(t)),function e(t){d(t,t=>{const i=Aa(t)||t;if(n?ua(t).isVisible=!0:(r=r||[],se(r,i)),Nh(t)){const n=ub(t.moduleReference),r=je(t,n.escapedText,901119,void 0,!1);r&&o&&B(o,dB(r))&&e(r.declarations)}})}(t.declarations)),r}function ql(e,n){const t=Jl(e,n);if(t>=0){const{length:e}=Uo;for(let n=t;n<e;n++)Ho[n]=!1;return!1}return Uo.push(e),Ho.push(!0),Ko.push(n),!0}function Jl(e,n){for(let t=Uo.length-1;t>=qo;t--){if(Xl(Uo[t],Ko[t]))return-1;if(Uo[t]===e&&Ko[t]===n)return t}return-1}function Xl(e,n){switch(n){case 0:return!!da(e).type;case 2:return!!da(e).declaredType;case 1:return!!e.resolvedBaseConstructorType;case 3:return!!e.resolvedReturnType;case 4:return!!e.immediateBaseConstraint;case 5:return!!e.resolvedTypeArguments;case 6:return!!e.baseTypesResolved;case 7:return!!da(e).writeType;case 8:return void 0!==ua(e).parameterInitializerContainsUndefined}return dt.assertNever(n)}function Yl(){return Uo.pop(),Ko.pop(),Ho.pop()}function Ql(e){return ml(ny(e),e=>{switch(e.kind){case 261:case 262:case 277:case 276:case 275:case 274:return!1;default:return!0}}).parent}function nc(e,n){const t=wh(e,n);return t?Vd(t):void 0}function tc(e,n){var t;let r;return nc(e,n)||(r=null==(t=S_(e,n))?void 0:t.type)&&Pc(r,!0,!0)}function rc(e){return e&&!!(1&e.flags)}function ac(e){return e===Mn||!!(1&e.flags&&e.aliasSymbol)}function sc(e,n){if(0!==n)return Lc(e,!1,n);const t=Es(e);return t&&da(t).type||Lc(e,!1,n)}function cc(e,n,t){if(131072&(e=kC(e,e=>!(98304&e.flags))).flags)return It;if(1048576&e.flags)return jC(e,e=>cc(e,n,t));let r=Gb(D(n,rT));const o=[],i=[];for(const s of cm(e)){const e=oT(s,8576);BE(e,r)||6&lT(s)||!yS(s)?i.push(e):o.push(s)}if(wT(e)||OT(r)){if(i.length&&(r=Gb([r,...i])),131072&r.flags)return e;const n=(Vr||(Vr=Qy("Omit",2,!0)||Sn),Vr===Sn?void 0:Vr);return n?Ey(n,[e,r]):Mn}const a=Qu();for(const s of o)a.set(s.escapedName,vS(s,!1));const l=qs(t,a,s,s,l_(e));return l.objectFlags|=4194304,l}function uc(e){return!!(465829888&e.flags)&&iF(Tm(e)||On,32768)}function hc(e){return fD(NC(e,uc)?jC(e,e=>465829888&e.flags?Sm(e):e):e,524288)}function gc(e,n){const t=yc(e);return t?kN(t,n):n}function yc(e){const n=function(e){const n=e.parent.parent;switch(n.kind){case 209:case 304:return yc(n);case 210:return yc(e.parent);case 261:return n.initializer;case 227:return n.right}}(e);if(n&&F_(n)&&n.flowNode){const t=Ac(e);if(t){const r=DL(PL.createStringLiteral(t),e),o=Gd(n)?n:PL.createParenthesizedExpression(n),i=DL(PL.createElementAccessExpression(o,r),e);return PA(r,i),PA(i,e),o!==n&&PA(o,i),i.flowNode=n.flowNode,i}}}function Ac(e){const n=e.parent;return 209===e.kind&&207===n.kind?Rc(e.propertyName||e.name):304===e.kind||305===e.kind?Rc(e.name):""+n.elements.indexOf(e)}function Rc(e){const n=rT(e);return 384&n.flags?""+n.value:void 0}function Ic(e){const n=e.dotDotDotToken?32:0,t=sc(e.parent.parent,n);return t&&Dc(e,t,!1)}function Dc(e,n,t){if(rc(n))return n;const r=e.parent;X&&33554432&e.flags&&ey(e)?n=DR(n):X&&r.parent.initializer&&!cD(ZD(r.parent.initializer),65536)&&(n=fD(n,524288));const o=32|(t||sL(e)?16:0);let i;if(207===r.kind)if(e.dotDotDotToken){if(2&(n=Qm(n)).flags||!vL(n))return Bi(e,fa.Rest_types_may_only_be_created_from_object_types),Mn;const t=[];for(const e of r.elements)e.dotDotDotToken||t.push(e.propertyName||e.name);i=cc(n,t,e.symbol)}else{const t=e.propertyName||e.name;i=gc(e,jT(n,rT(t),o,t))}else{const t=Rz(65|(e.dotDotDotToken?0:128),n,Fn,r),a=r.elements.indexOf(e);if(e.dotDotDotToken){const e=jC(n,e=>58982400&e.flags?Sm(e):e);i=LC(e,mR)?jC(e,e=>Ib(e,a)):Jv(t)}else if($x(n)){i=gc(e,HT(n,kS(a),o,e.name)||Mn)}else i=t}return e.initializer?gv(il(e))?X&&!cD(xF(e,0),16777216)?hc(i):i:IF(e,Gb([hc(i),xF(e,0)],2)):i}function Cc(e){const n=ic(e);if(n)return qS(n)}function Mc(e){const n=cg(e,!0);return 210===n.kind&&0===n.elements.length}function Pc(e,n=!1,t=!0){return X&&t?IR(e,n):e}function Lc(e,n,t){if(fN(e)&&250===e.parent.parent.kind){const n=fT(nk(HF(e.parent.parent.expression,t)));return 4456448&n.flags?mT(n):Hn}if(fN(e)&&251===e.parent.parent.kind){return xz(e.parent.parent)||In}if(xd(e.parent))return Ic(e);const r=MD(e)&&!Fv(e)||ND(e)||YM(e),o=n&&ex(e),i=vd(e);if(uf(e))return i?rc(i)||i===On?i:Mn:ce?On:In;if(i)return Pc(i,r,o);if((oe||Lh(e))&&fN(e)&&!xd(e.name)&&!(32&ZV(e))&&!(33554432&e.flags)){if(!(6&ej(e))&&(!e.initializer||function(e){const n=cg(e,!0);return 106===n.kind||80===n.kind&&GI(n)===De}(e.initializer)))return Dn;if(e.initializer&&Mc(e.initializer))return cr}if(DD(e)){if(!e.symbol)return;const n=e.parent;if(179===n.kind&&vp(n)){const t=Yu(Es(e.parent),178);if(t){const r=G_(t),o=LV(n);return o&&e===o?(dt.assert(!o.type),Vd(r.thisParameter)):Ag(r)}}const t=function(e,n){const t=Y_(e);if(!t)return;const r=e.parameters.indexOf(n);return n.dotDotDotToken?mO(t,r):pO(t,r)}(n,e);if(t)return t;const r="this"===e.symbol.escapedName?fP(n):mP(e);if(r)return Pc(r,!1,o)}if(ku(e)&&e.initializer){if(Lh(e)&&!DD(e)){const n=Kc(e,Es(e),Jh(e));if(n)return n}return Pc(IF(e,xF(e,t)),r,o)}if(MD(e)&&(oe||Lh(e))){if(Lv(e)){const n=x(e.parent.members,kD),t=n.length?function(e,n){const t=Xn(e.escapedName,"__#")?vR.createPrivateIdentifier(e.escapedName.split("@")[1]):yl(e.escapedName);for(const r of n){const n=vR.createPropertyAccessExpression(vR.createThis(),t);PA(n.expression,n),PA(n,r),n.flowNode=r.returnFlowNode;const o=Bc(n,e);if(!oe||o!==Dn&&o!==cr||Bi(e.valueDeclaration,fa.Member_0_implicitly_has_an_1_type,hl(e),El(o)),!LC(o,ek))return dz(o)}}(e.symbol,n):128&jv(e)?kx(e.symbol):void 0;return t&&Pc(t,!0,o)}{const n=Sx(e.parent),t=n?zc(e.symbol,n):128&jv(e)?kx(e.symbol):void 0;return t&&Pc(t,!0,o)}}return QN(e)?tt:xd(e.name)?ed(e.name,!1,!0):void 0}function kc(e){if(e.valueDeclaration&&MC(e.valueDeclaration)){const n=da(e);return void 0===n.isConstructorDeclaredProperty&&(n.isConstructorDeclaredProperty=!1,n.isConstructorDeclaredProperty=!!Wc(e)&&g(e.declarations,n=>MC(n)&&SP(n)&&(213!==n.left.kind||zg(n.left.argumentExpression))&&!qc(void 0,n,e,n))),n.isConstructorDeclaredProperty}return!1}function wc(e){const n=e.valueDeclaration;return n&&MD(n)&&!gv(n)&&!n.initializer&&(oe||Lh(n))}function Wc(e){if(e.declarations)for(const n of e.declarations){const e=rh(n,!1,!1);if(e&&(177===e.kind||Fw(e)))return e}}function zc(e,n){const t=Xn(e.escapedName,"__#")?vR.createPrivateIdentifier(e.escapedName.split("@")[1]):yl(e.escapedName),r=vR.createPropertyAccessExpression(vR.createThis(),t);PA(r.expression,r),PA(r,n),r.flowNode=n.returnFlowNode;const o=Bc(r,e);return!oe||o!==Dn&&o!==cr||Bi(e.valueDeclaration,fa.Member_0_implicitly_has_an_1_type,hl(e),El(o)),LC(o,ek)?void 0:dz(o)}function Bc(e,n){const t=(null==n?void 0:n.valueDeclaration)&&(!wc(n)||128&jv(n.valueDeclaration))&&kx(n)||Fn;return kN(e,Dn,t)}function jc(e,n){const t=Xh(e.valueDeclaration);if(t){const n=Lh(t)?oc(t):void 0;if(n&&n.typeExpression)return qS(n.typeExpression);return e.valueDeclaration&&Kc(e.valueDeclaration,e,t)||dR(EF(t))}let r,o=!1,i=!1;if(kc(e)&&(r=zc(e,Wc(e))),!r){let t;if(e.declarations){let a;for(const r of e.declarations){const s=MC(r)||yC(r)?r:IT(r)?MC(r.parent)?r.parent:r:void 0;if(!s)continue;const l=IT(s)?m_(s):o_(s);(4===l||MC(s)&&SP(s,l))&&(Yc(s)?o=!0:i=!0),yC(s)||(a=qc(a,s,e,r)),a||(t||(t=[])).push(MC(s)||yC(s)?Xc(e,n,s,l):ut)}r=a}if(!r){if(!c(t))return Mn;let n=o&&e.declarations?function(e,n){return dt.assert(e.length===n.length),e.filter((e,t)=>{const r=n[t],o=MC(r)?r:MC(r.parent)?r.parent:void 0;return o&&Yc(o)})}(t,e.declarations):void 0;if(i){const t=kx(e);t&&((n||(n=[])).push(t),o=!0)}r=Gb(U(n,e=>!!(-98305&e.flags))?n:t)}}const a=JR(Pc(r,!1,i&&!o));return e.valueDeclaration&&Lh(e.valueDeclaration)&&kC(a,e=>!!(-98305&e.flags))===ut?($R(e.valueDeclaration,In),In):a}function Kc(e,n,t){var r,o;if(!Lh(e)||!t||!hC(t)||t.properties.length)return;const i=Qu();for(;MC(e)||_C(e);){const n=As(e);(null==(r=null==n?void 0:n.exports)?void 0:r.size)&&sa(i,n.exports),e=MC(e)?e.parent:e.parent.parent}const a=As(e);(null==(o=null==a?void 0:a.exports)?void 0:o.size)&&sa(i,a.exports);const l=qs(n,i,s,s,s);return l.objectFlags|=4096,l}function qc(e,n,t,r){var o;const i=gv(n.parent);if(i){const n=JR(qS(i));if(!e)return n;ac(e)||ac(n)||kE(e,n)||fz(void 0,e,r,n)}if(null==(o=t.parent)?void 0:o.valueDeclaration){const e=Rs(t.parent);if(e.valueDeclaration){const n=gv(e.valueDeclaration);if(n){const e=wh(qS(n),t.escapedName);if(e)return jd(e)}}}return e}function Xc(e,n,t,r){if(yC(t)){if(n)return Vd(n);const e=EF(t.arguments[2]),r=nc(e,"value");if(r)return r;const o=nc(e,"get");if(o){const e=ew(o);if(e)return Ag(e)}const i=nc(e,"set");if(i){const e=ew(i);if(e)return TO(e)}return In}if(function(e,n){return _C(e)&&110===e.expression.kind&&ok(n,n=>UI(e,n))}(t.left,t.right))return In;const o=1===r&&(_C(t.left)||gC(t.left))&&(r_(t.left.expression)||dD(t.left.expression)&&n_(t.left.expression)),i=n?Vd(n):o?xS(EF(t.right)):dR(EF(t.right));if(524288&i.flags&&2===r&&"export="===e.escapedName){const t=Jf(i),r=Qu();lp(t.members,r);const o=r.size;n&&!n.exports&&(n.exports=Qu()),(n||e).exports.forEach((e,n)=>{var t;const o=r.get(n);if(!o||o===e||2097152&e.flags)r.set(n,e);else if(111551&e.flags&&111551&o.flags){if(e.valueDeclaration&&o.valueDeclaration&&Sp(e.valueDeclaration)!==Sp(o.valueDeclaration)){const n=yl(e.escapedName),r=(null==(t=en(o.valueDeclaration,Rl))?void 0:t.name)||o.valueDeclaration;dA(Bi(e.valueDeclaration,fa.Duplicate_identifier_0,n),Vf(r,fa._0_was_also_declared_here,n)),dA(Bi(r,fa.Duplicate_identifier_0,n),Vf(e.valueDeclaration,fa._0_was_also_declared_here,n))}const i=Yi(e.flags|o.flags,n);i.links.type=Gb([Vd(e),Vd(o)]),i.valueDeclaration=o.valueDeclaration,i.declarations=K(o.declarations,e.declarations),r.set(n,i)}else r.set(n,ra(e,o))});const a=qs(o!==r.size?void 0:t.symbol,r,t.callSignatures,t.constructSignatures,t.indexInfos);if(o===r.size&&(i.aliasSymbol&&(a.aliasSymbol=i.aliasSymbol,a.aliasTypeArguments=i.aliasTypeArguments),4&bT(i))){a.aliasSymbol=i.symbol;const e=by(i);a.aliasTypeArguments=c(e)?e:void 0}return a.objectFlags|=hy([i])|20608&bT(i),a.symbol&&32&a.symbol.flags&&i===bu(a.symbol)&&(a.objectFlags|=16777216),a}return nR(i)?($R(t,lr),lr):i}function Yc(e){const n=rh(e,!1,!1);return 177===n.kind||263===n.kind||219===n.kind&&!__(n.parent)}function Zc(e,n,t){if(e.initializer){return Pc(DF(e,xF(e,0,xd(e.name)?ed(e.name,!0,!1):On)))}return xd(e.name)?ed(e.name,n,t):(t&&!yd(e)&&$R(e,In),n?Ln:In)}function ed(e,n=!1,t=!1){n&&ko.push(e);const r=207===e.kind?function(e,n,t){const r=Qu();let o,i=131200;d(e.elements,e=>{const a=e.propertyName||e.name;if(e.dotDotDotToken)return void(o=Qg(Hn,In,!1));const s=rT(a);if(!ux(s))return void(i|=512);const l=px(s),c=Yi(4|(e.initializer?16777216:0),l);c.links.type=Zc(e,n,t),r.set(c.escapedName,c)});const a=qs(void 0,r,s,s,o?[o]:s);return a.objectFlags|=i,n&&(a.pattern=e,a.objectFlags|=131072),a}(e,n,t):function(e,n,t){const r=e.elements,o=ge(r),i=o&&209===o.kind&&o.dotDotDotToken?o:void 0;if(0===r.length||1===r.length&&i)return W>=2?qv(In):lr;const a=D(r,e=>FC(e)?In:Zc(e,n,t)),s=T(r,e=>!(e===i||FC(e)||sL(e)),r.length-1)+1;let l=Sb(a,D(r,(e,n)=>e===i?4:n>=s?2:1));return n&&(l=yy(l),l.pattern=e,l.objectFlags|=131072),l}(e,n,t);return n&&ko.pop(),r}function nd(e,n){return ud(Lc(e,!0,0),e,n)}function id(e){const n=ua(e);if(!n.resolvedType){const t=Yi(4096,"__importAttributes"),r=Qu();d(e.elements,e=>{const n=Yi(4,gx(e));n.parent=t,n.links.type=function(e){return xS(EF(e.value))}(e),n.links.target=n,r.set(n.escapedName,n)});const o=qs(t,r,s,s,s);o.objectFlags|=262272,n.resolvedType=o}return n.resolvedType}function dd(e){const n=As(e),t=(r=!1,fr||(fr=$y("SymbolConstructor",r)));var r;return t&&n&&n===t}function ud(e,n,t){return e?(4096&e.flags&&dd(n.parent)&&(e=BS(n)),t&&QR(n,e),8192&e.flags&&(fC(n)||!vd(n))&&e.symbol!==Es(n)&&(e=lt),JR(e)):(e=DD(n)&&n.dotDotDotToken?lr:In,t&&(yd(n)||$R(n,e)),e)}function yd(e){const n=ny(e);return fW(170===n.kind?n.parent:n)}function vd(e){const n=gv(e);if(n)return qS(n)}function bd(e){const n=da(e);if(!n.type){const t=function(e){if(4194304&e.flags)return function(e){const n=Wu(xs(e));return n.typeParameters?gy(n,D(n.typeParameters,e=>In)):n}(e);if(e===Oe)return In;if(134217728&e.flags&&e.valueDeclaration){const n=Es(Sp(e.valueDeclaration)),t=Yi(n.flags,"exports");t.declarations=n.declarations?n.declarations.slice():[],t.parent=e,t.links.target=n,n.valueDeclaration&&(t.valueDeclaration=n.valueDeclaration),n.members&&(t.members=new Map(n.members)),n.exports&&(t.exports=new Map(n.exports));const r=Qu();return r.set("exports",t),qs(e,r,s,s,s)}dt.assertIsDefined(e.valueDeclaration);const n=e.valueDeclaration;if(uM(n)&&om(n))return n.statements.length?JR(dR(HF(n.statements[0].expression))):It;if(hd(n))return Id(e);if(!ql(e,0))return 512&e.flags&&!(67108864&e.flags)?Nd(e):Ld(e);let t;if(278===n.kind)t=ud(vd(n)||EF(n.expression),n);else if(MC(n)||Lh(n)&&(yC(n)||(_C(n)||c_(n))&&MC(n.parent)))t=jc(e);else if(_C(n)||gC(n)||dD(n)||zu(n)||HI(n)||_N(n)||hN(n)||LD(n)&&!jm(n)||PD(n)||uM(n)){if(9136&e.flags)return Nd(e);t=MC(n.parent)?jc(e):vd(n)||In}else if(sM(n))t=vd(n)||PF(n);else if(QN(n))t=vd(n)||SL(n);else if(lM(n))t=vd(n)||MF(n.name,0);else if(jm(n))t=vd(n)||LF(n,0);else if(DD(n)||MD(n)||ND(n)||fN(n)||fC(n)||Nc(n))t=nd(n,!0);else if(vN(n))t=Nd(e);else{if(!dM(n))return dt.fail("Unhandled declaration kind! "+dt.formatSyntaxKind(n.kind)+" for "+dt.formatSymbol(e));t=Md(e)}if(!Yl())return 512&e.flags&&!(67108864&e.flags)?Nd(e):Ld(e);return t}(e);return n.type||function(e){let n=e.valueDeclaration;return!!n&&(fC(n)&&(n=il(n)),!!DD(n)&&PE(n.parent))}(e)||(n.type=t),t}return n.type}function Td(e){if(e)switch(e.kind){case 178:return vv(e);case 179:return Tv(e);case 173:dt.assert(Fv(e));return gv(e)}}function Ad(e){const n=Td(e);return n&&qS(n)}function Id(e){const n=da(e);if(!n.type){if(!ql(e,0))return Mn;const t=Yu(e,178),r=Yu(e,179),o=en(Yu(e,173),_d);let i=t&&Lh(t)&&Cc(t)||Ad(t)||Ad(r)||Ad(o)||t&&t.body&&GO(t)||o&&nd(o,!0);i||(r&&!fW(r)?Ui(oe,r,fa.Property_0_implicitly_has_type_any_because_its_set_accessor_lacks_a_parameter_type_annotation,hl(e)):t&&!fW(t)?Ui(oe,t,fa.Property_0_implicitly_has_type_any_because_its_get_accessor_lacks_a_return_type_annotation,hl(e)):o&&!fW(o)&&Ui(oe,o,fa.Member_0_implicitly_has_an_1_type,hl(e),"any"),i=In),Yl()||(Td(t)?Bi(t,fa._0_is_referenced_directly_or_indirectly_in_its_own_type_annotation,hl(e)):Td(r)||Td(o)?Bi(r,fa._0_is_referenced_directly_or_indirectly_in_its_own_type_annotation,hl(e)):t&&oe&&Bi(t,fa._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,hl(e)),i=In),n.type??(n.type=i)}return n.type}function Dd(e){const n=da(e);if(!n.writeType){if(!ql(e,7))return Mn;const t=Yu(e,179)??en(Yu(e,173),_d);let r=Ad(t);Yl()||(Td(t)&&Bi(t,fa._0_is_referenced_directly_or_indirectly_in_its_own_type_annotation,hl(e)),r=In),n.writeType??(n.writeType=r||Id(e))}return n.writeType}function Cd(e){const n=mu(bu(e));return 8650752&n.flags?n:2097152&n.flags?y(n.types,e=>!!(8650752&e.flags)):void 0}function Nd(e){let n=da(e);const t=n;if(!n.type){const r=e.valueDeclaration&&zw(e.valueDeclaration,!1);if(r){const t=Ww(e,r);t&&(e=t,n=t.links)}t.type=n.type=function(e){const n=e.valueDeclaration;if(1536&e.flags&&hf(e))return In;if(n&&(227===n.kind||IT(n)&&227===n.parent.kind))return jc(e);if(512&e.flags&&n&&uM(n)&&n.commonJsModuleIndicator){const n=ls(e);if(n!==e){if(!ql(e,0))return Mn;const t=Ss(e.exports.get("export=")),r=jc(t,t===n?void 0:n);return Yl()?r:Ld(e)}}const t=Gs(16,e);if(32&e.flags){const n=Cd(e);return n?Xb([t,n]):t}return X&&16777216&e.flags?IR(t,!0):t}(e)}return n.type}function Md(e){const n=da(e);return n.type||(n.type=wu(e))}function Pd(e){const n=da(e);if(!n.type){if(!ql(e,0))return Mn;const t=Ja(e),r=e.declarations&&ja(xa(e),!0),o=p(null==r?void 0:r.declarations,e=>ON(e)?vd(e):void 0);if(n.type??(n.type=(null==r?void 0:r.declarations)&&iG(r.declarations)&&e.declarations.length?function(e){const n=Sp(e.declarations[0]),t=yl(e.escapedName),r=e.declarations.every(e=>Lh(e)&&IT(e)&&r_(e.expression)),o=r?vR.createPropertyAccessExpression(vR.createPropertyAccessExpression(vR.createIdentifier("module"),vR.createIdentifier("exports")),t):vR.createPropertyAccessExpression(vR.createIdentifier("exports"),t);return r&&PA(o.expression.expression,o.expression),PA(o.expression,o),PA(o,n),o.flowNode=n.endFlowNode,kN(o,Dn,Fn)}(r):iG(e.declarations)?Dn:o||(111551&Xa(t)?Vd(t):Mn)),!Yl())return Ld(r??e),n.type??(n.type=Mn)}return n.type}function Ld(e){const n=e.valueDeclaration;if(n){if(gv(n))return Bi(e.valueDeclaration,fa._0_is_referenced_directly_or_indirectly_in_its_own_type_annotation,hl(e)),Mn;oe&&(170!==n.kind||n.initializer)&&Bi(e.valueDeclaration,fa._0_implicitly_has_type_any_because_it_does_not_have_a_type_annotation_and_is_referenced_directly_or_indirectly_in_its_own_initializer,hl(e))}else if(2097152&e.flags){const n=xa(e);n&&Bi(n,fa.Circular_definition_of_import_alias_0,hl(e))}return In}function kd(e){const n=da(e);return n.type||(dt.assertIsDefined(n.deferralParent),dt.assertIsDefined(n.deferralConstituents),n.type=1048576&n.deferralParent.flags?Gb(n.deferralConstituents):Xb(n.deferralConstituents)),n.type}function Bd(e){const n=sT(e);return 2&n?65536&n?function(e){const n=da(e);return!n.writeType&&n.deferralWriteConstituents&&(dt.assertIsDefined(n.deferralParent),dt.assertIsDefined(n.deferralConstituents),n.writeType=1048576&n.deferralParent.flags?Gb(n.deferralWriteConstituents):Xb(n.deferralWriteConstituents)),n.writeType}(e)||kd(e):e.links.writeType||e.links.type:4&e.flags?LR(Vd(e),!!(16777216&e.flags)):98304&e.flags?1&n?function(e){const n=da(e);return n.writeType||(n.writeType=xE(Bd(n.target),n.mapper))}(e):Dd(e):Vd(e)}function Vd(e){const n=sT(e);return 65536&n?kd(e):1&n?function(e){const n=da(e);return n.type||(n.type=xE(Vd(n.target),n.mapper))}(e):262144&n?function(e){var n;if(!e.links.type){const t=e.links.mappedType;if(!ql(e,0))return t.containsError=!0,Mn;const o=xE(xf(t.target||t),fE(t.mapper,Sf(t),e.links.keyType));let i=X&&16777216&e.flags&&!iF(o,49152)?IR(o,!0):524288&e.links.checkFlags?wR(o):o;Yl()||(Bi(r,fa.Type_of_property_0_circularly_references_itself_in_mapped_type_1,hl(e),El(t)),i=Mn),(n=e.links).type??(n.type=i)}return e.links.type}(e):8192&n?function(e){const n=da(e);n.type||(n.type=gI(e.links.propertyType,e.links.mappedType,e.links.constraintType)||On);return n.type}(e):7&e.flags?bd(e):9136&e.flags?Nd(e):8&e.flags?Md(e):98304&e.flags?Id(e):2097152&e.flags?Pd(e):Mn}function jd(e){return LR(Vd(e),!!(16777216&e.flags))}function Ud(e,n){if(void 0===e||!(4&bT(e)))return!1;for(const t of n)if(e.target===t)return!0;return!1}function Hd(e,n){return void 0!==e&&void 0!==n&&!!(4&bT(e))&&e.target===n}function Kd(e){return 4&bT(e)?e.target:e}function Yd(e,n){return function e(t){if(7&bT(t)){const r=Kd(t);return r===n||U(gu(r),e)}if(2097152&t.flags)return U(t.types,e);return!1}(e)}function nu(e,n){for(const t of n)e=le(e,Fu(Es(t)));return e}function tu(e,n){for(;;){if((e=e.parent)&&MC(e)){const n=o_(e);if(6===n||3===n){const n=Es(e.left);n&&n.parent&&!ml(n.parent.valueDeclaration,n=>e===n)&&(e=n.parent.valueDeclaration)}}if(!e)return;const t=e.kind;switch(t){case 264:case 232:case 265:case 180:case 181:case 174:case 185:case 186:case 318:case 263:case 175:case 219:case 220:case 266:case 346:case 347:case 341:case 339:case 201:case 195:{const r=tu(e,n);if((219===t||220===t||jm(e))&&NE(e)){const n=fe(Vh(Vd(Es(e)),0));if(n&&n.typeParameters)return[...r||s,...n.typeParameters]}if(201===t)return re(r,Fu(Es(e.typeParameter)));if(195===t)return K(r,sS(e));const o=nu(r,fc(e)),i=n&&(264===t||232===t||265===t||Fw(e))&&bu(Es(e)).thisType;return i?re(o,i):o}case 342:const r=V_(e);r&&(e=r.valueDeclaration);break;case 321:{const t=tu(e,n);return e.tags?nu(t,P(e.tags,e=>qM(e)?e.typeParameters:void 0)):t}}}}function ru(e){var n;const t=32&e.flags||16&e.flags?e.valueDeclaration:null==(n=e.declarations)?void 0:n.find(e=>{if(265===e.kind)return!0;if(261!==e.kind)return!1;const n=e.initializer;return!!n&&(219===n.kind||220===n.kind)});return dt.assert(!!t,"Class was missing valueDeclaration -OR- non-class had no interface declarations"),tu(t)}function ou(e){if(!e.declarations)return;let n;for(const t of e.declarations)if(265===t.kind||264===t.kind||232===t.kind||Fw(t)||P_(t)){n=nu(n,fc(t))}return n}function iu(e){const n=Vh(e,1);if(1===n.length){const e=n[0];if(!e.typeParameters&&1===e.parameters.length&&_B(e)){const n=iO(e.parameters[0]);return rc(n)||Yx(n)===In}}return!1}function au(e){if(Vh(e,1).length>0)return!0;if(8650752&e.flags){const n=Tm(e);return!!n&&iu(n)}return!1}function su(e){const n=vT(e.symbol);return n&&Tg(n)}function uu(e,n,t){const r=c(n),o=Lh(t);return x(Vh(e,1),e=>(o||r>=z_(e.typeParameters))&&r<=c(e.typeParameters))}function pu(e,n,t){const r=uu(e,n,t),o=D(n,qS);return N(r,e=>U(e.typeParameters)?Ng(e,o,Lh(t)):e)}function mu(e){if(!e.resolvedBaseConstructorType){const n=vT(e.symbol),t=n&&Tg(n),r=su(e);if(!r)return e.resolvedBaseConstructorType=Fn;if(!ql(e,1))return Mn;const o=HF(r.expression);if(t&&r!==t&&(dt.assert(!t.typeArguments),HF(t.expression)),2621440&o.flags&&Jf(o),!Yl())return Bi(e.symbol.valueDeclaration,fa._0_is_referenced_directly_or_indirectly_in_its_own_base_expression,hl(e.symbol)),e.resolvedBaseConstructorType??(e.resolvedBaseConstructorType=Mn);if(!(1&o.flags||o===Un||au(o))){const n=Bi(r.expression,fa.Type_0_is_not_a_constructor_function_type,El(o));if(262144&o.flags){const e=cy(o);let t=On;if(e){const n=Vh(e,1);n[0]&&(t=Ag(n[0]))}o.symbol.declarations&&dA(n,Vf(o.symbol.declarations[0],fa.Did_you_mean_for_0_to_be_constrained_to_type_new_args_Colon_any_1,hl(o.symbol),El(t)))}return e.resolvedBaseConstructorType??(e.resolvedBaseConstructorType=Mn)}e.resolvedBaseConstructorType??(e.resolvedBaseConstructorType=o)}return e.resolvedBaseConstructorType}function hu(e,n){Bi(e,fa.Type_0_recursively_references_itself_as_a_base_type,El(n,void 0,2))}function gu(e){if(!e.baseTypesResolved){if(ql(e,6)&&(8&e.objectFlags?e.resolvedBaseTypes=[yu(e)]:96&e.symbol.flags?(32&e.symbol.flags&&function(e){e.resolvedBaseTypes=Hu;const n=Vm(mu(e));if(!(2621441&n.flags))return e.resolvedBaseTypes=s;const t=su(e);let r;const o=n.symbol?Wu(n.symbol):void 0;if(n.symbol&&32&n.symbol.flags&&function(e){const n=e.outerTypeParameters;if(n){const t=n.length-1,r=by(e);return n[t].symbol!==r[t].symbol}return!0}(o))r=Sy(t,n.symbol);else if(1&n.flags)r=n;else{const o=pu(n,t.typeArguments,t);if(!o.length)return Bi(t.expression,fa.No_base_constructor_has_the_specified_number_of_type_arguments),e.resolvedBaseTypes=s;r=Ag(o[0])}if(ac(r))return e.resolvedBaseTypes=s;const i=Qm(r);if(!vu(i)){const n=rS(Mh(void 0,r),fa.Base_constructor_return_type_0_is_not_an_object_type_or_intersection_of_object_types_with_statically_known_members,El(i));return gi.add(Hf(Sp(t.expression),t.expression,n)),e.resolvedBaseTypes=s}if(e===i||Yd(i,e))return Bi(e.symbol.valueDeclaration,fa.Type_0_recursively_references_itself_as_a_base_type,El(e,void 0,2)),e.resolvedBaseTypes=s;e.resolvedBaseTypes===Hu&&(e.members=void 0);e.resolvedBaseTypes=[i]}(e),64&e.symbol.flags&&function(e){if(e.resolvedBaseTypes=e.resolvedBaseTypes||s,e.symbol.declarations)for(const n of e.symbol.declarations)if(265===n.kind&&xg(n))for(const t of xg(n)){const r=Qm(qS(t));ac(r)||(vu(r)?e===r||Yd(r,e)?hu(n,e):e.resolvedBaseTypes===s?e.resolvedBaseTypes=[r]:e.resolvedBaseTypes.push(r):Bi(t,fa.An_interface_can_only_extend_an_object_type_or_intersection_of_object_types_with_statically_known_members))}}(e)):dt.fail("type must be class or interface"),!Yl()&&e.symbol.declarations))for(const n of e.symbol.declarations)264!==n.kind&&265!==n.kind||hu(n,e);e.baseTypesResolved=!0}return e.resolvedBaseTypes}function yu(e){return Jv(Gb(N(e.typeParameters,(n,t)=>8&e.elementFlags[t]?jT(n,Kn):n)||s),e.readonly)}function vu(e){if(262144&e.flags){const n=Tm(e);if(n)return vu(n)}return!!(67633153&e.flags&&!Uf(e)||2097152&e.flags&&g(e.types,vu))}function bu(e){let n=da(e);const t=n;if(!n.declaredType){const r=32&e.flags?1:2,o=Ww(e,e.valueDeclaration&&function(e){var n;const t=e&&zw(e,!0),r=null==(n=null==t?void 0:t.exports)?void 0:n.get("prototype"),o=(null==r?void 0:r.valueDeclaration)&&function(e){if(!e.parent)return!1;let n=e.parent;for(;n&&212===n.kind;)n=n.parent;if(n&&MC(n)&&hb(n.left)&&64===n.operatorToken.kind){const e=h_(n);return hC(e)&&e}}(r.valueDeclaration);return o?Es(o):void 0}(e.valueDeclaration));o&&(e=o,n=o.links);const i=t.declaredType=n.declaredType=Gs(r,e),a=ru(e),s=ou(e);(a||s||1===r||!function(e){if(!e.declarations)return!0;for(const n of e.declarations)if(265===n.kind){if(256&n.flags)return!1;const e=xg(n);if(e)for(const n of e)if(db(n.expression)){const e=ts(n.expression,788968,!0);if(!e||!(64&e.flags)||bu(e).thisType)return!1}}return!0}(e))&&(i.objectFlags|=4,i.typeParameters=K(a,s),i.outerTypeParameters=a,i.localTypeParameters=s,i.instantiations=new Map,i.instantiations.set(uy(i.typeParameters),i),i.target=i,i.resolvedTypeArguments=i.typeParameters,i.thisType=Vs(e),i.thisType.isThisType=!0,i.thisType.constraint=i)}return n.declaredType}function Su(e){var n;const t=da(e);if(!t.declaredType){if(!ql(e,2))return Mn;const r=dt.checkDefined(null==(n=e.declarations)?void 0:n.find(P_),"Type alias symbol with no valid declaration found"),o=M_(r)?r.typeExpression:r.type;let i=o?qS(o):Mn;if(Yl()){const n=ou(e);n&&(t.typeParameters=n,t.instantiations=new Map,t.instantiations.set(uy(n),i)),i===kn&&"BuiltinIteratorReturn"===e.escapedName&&(i=Iv())}else i=Mn,341===r.kind?Bi(r.typeExpression.type,fa.Type_alias_0_circularly_references_itself,hl(e)):Bi(Rl(r)&&r.name||r,fa.Type_alias_0_circularly_references_itself,hl(e));t.declaredType??(t.declaredType=i)}return t.declaredType}function xu(e){return 1056&e.flags&&8&e.symbol.flags?Wu(xs(e.symbol)):e}function Iu(e){const n=da(e);if(!n.declaredType){const t=[];if(e.declarations)for(const n of e.declarations)if(267===n.kind)for(const r of n.members)if(vp(r)){const n=Es(r),o=QG(r).value,i=TS(void 0!==o?OS(o,dB(e),n):Du(n));da(n).declaredType=i,t.push(xS(i))}const r=t.length?Gb(t,1,e,void 0):Du(e);1048576&r.flags&&(r.flags|=1024,r.symbol=e),n.declaredType=r}return n.declaredType}function Du(e){const n=Ws(32,e),t=Ws(32,e);return n.regularType=n,n.freshType=t,t.regularType=n,t.freshType=t,n}function wu(e){const n=da(e);if(!n.declaredType){const t=Iu(xs(e));n.declaredType||(n.declaredType=t)}return n.declaredType}function Fu(e){const n=da(e);return n.declaredType||(n.declaredType=Vs(e))}function Wu(e){return ju(e)||Mn}function ju(e){return 96&e.flags?bu(e):524288&e.flags?Su(e):262144&e.flags?Fu(e):384&e.flags?Iu(e):8&e.flags?wu(e):2097152&e.flags?function(e){const n=da(e);return n.declaredType||(n.declaredType=Wu(Ja(e)))}(e):void 0}function Uu(e){switch(e.kind){case 133:case 159:case 154:case 150:case 163:case 136:case 155:case 151:case 116:case 157:case 146:case 202:return!0;case 189:return Uu(e.elementType);case 184:return!e.typeArguments||e.typeArguments.every(Uu)}return!1}function Xu(e){const n=mc(e);return!n||Uu(n)}function np(e){const n=gv(e);return n?Uu(n):!Lu(e)}function tp(e){if(e.declarations&&1===e.declarations.length){const n=e.declarations[0];if(n)switch(n.kind){case 173:case 172:return np(n);case 175:case 174:case 177:case 178:case 179:return function(e){const n=vv(e),t=fc(e);return(177===e.kind||!!n&&Uu(n))&&e.parameters.every(np)&&t.every(Xu)}(n)}}return!1}function rp(e,n,t){const r=Qu();for(const o of e)r.set(o.escapedName,t&&tp(o)?o:gE(o,n));return r}function op(e,n){for(const t of n){if(ip(t))continue;const n=e.get(t.escapedName);(!n||n.valueDeclaration&&MC(n.valueDeclaration)&&!kc(n)&&!eh(n.valueDeclaration))&&(e.set(t.escapedName,t),e.set(t.escapedName,t))}}function ip(e){return!!e.valueDeclaration&&$c(e.valueDeclaration)&&Pv(e.valueDeclaration)}function dp(e){if(!e.declaredProperties){const n=e.symbol,t=Cp(n);e.declaredProperties=Us(t),e.declaredCallSignatures=s,e.declaredConstructSignatures=s,e.declaredIndexInfos=s,e.declaredCallSignatures=Q_(t.get("__call")),e.declaredConstructSignatures=Q_(t.get("__new")),e.declaredIndexInfos=oy(n)}return e}function up(e){return fp(e)&&ux(RD(e)?uL(e):EF(e.argumentExpression))}function pp(e){return fp(e)&&BE(RD(e)?uL(e):EF(e.argumentExpression),gt)}function fp(e){if(!RD(e)&&!gC(e))return!1;return db(RD(e)?e.expression:e.argumentExpression)}function mp(e){return 95===e.charCodeAt(0)&&95===e.charCodeAt(1)&&64===e.charCodeAt(2)}function gp(e){const n=Dl(e);return!!n&&up(n)}function yp(e){const n=Dl(e);return!!n&&pp(n)}function vp(e){return!Gg(e)||gp(e)}function bp(e){return Vg(e)&&!up(e)}function Rp(e,n,t,r){dt.assert(!!r.symbol,"The member is expected to have a symbol.");const o=ua(r);if(!o.resolvedSymbol){o.resolvedSymbol=r.symbol;const i=MC(r)?r.left:r.name,a=gC(i)?EF(i.argumentExpression):uL(i);if(ux(a)){const s=px(a),l=r.symbol.flags;let c=t.get(s);c||t.set(s,c=Yi(0,s,4096));const u=n&&n.get(s);if(!(32&e.flags)&&c.flags&Zi(l)){const e=u?K(u.declarations,c.declarations):c.declarations,n=!(8192&a.flags)&&yl(s)||Of(i);d(e,e=>Bi(Dl(e)||e,fa.Property_0_was_also_declared_here,n)),Bi(i||r,fa.Duplicate_property_0,n),c=Yi(0,s,4096)}return c.links.nameType=a,function(e,n,t){dt.assert(!!(4096&sT(e)),"Expected a late-bound symbol."),e.flags|=t,da(n.symbol).lateSymbol=e,e.declarations?n.symbol.isReplaceableByMethod||e.declarations.push(n):e.declarations=[n],111551&t&&y_(e,n)}(c,r,l),c.parent?dt.assert(c.parent===e,"Existing symbol parent should match new one"):c.parent=e,o.resolvedSymbol=c}}return o.resolvedSymbol}function Ip(e,n,t,r){let o=t.get("__index");if(!o){const e=null==n?void 0:n.get("__index");e?(o=na(e),o.links.checkFlags|=4096):o=Yi(0,"__index",4096),t.set("__index",o)}o.declarations?r.symbol.isReplaceableByMethod||o.declarations.push(r):o.declarations=[r]}function Dp(e,n){const t=da(e);if(!t[n]){const r="resolvedExports"===n,o=r?1536&e.flags?Ts(e).exports:e.exports:e.members;t[n]=o||k;const i=Qu();for(const n of e.declarations||s){const t=km(n);if(t)for(const n of t)r===Lv(n)&&(gp(n)?Rp(e,o,i,n):yp(n)&&Ip(0,o,i,n))}const a=Rs(e).assignmentDeclarationMembers;if(a){const n=Le(a.values());for(const t of n){const n=o_(t);r===!(3===n||MC(t)&&SP(t,n)||9===n||6===n)&&gp(t)&&Rp(e,o,i,t)}}let l=function(e,n){if(!(null==e?void 0:e.size))return n;if(!(null==n?void 0:n.size))return e;const t=Qu();return sa(t,e),sa(t,n),t}(o,i);if(33554432&e.flags&&t.cjsExportMerged&&e.declarations)for(const t of e.declarations){const e=da(t.symbol)[n];l?e&&e.forEach((e,n)=>{const t=l.get(n);if(t){if(t===e)return;l.set(n,ra(t,e))}else l.set(n,e)}):l=e}t[n]=l||k}return t[n]}function Cp(e){return 6256&e.flags?Dp(e,"resolvedMembers"):e.members||k}function Pp(e){if(106500&e.flags&&"__computed"===e.escapedName){const n=da(e);if(!n.lateSymbol&&U(e.declarations,gp)){const n=Ss(e.parent);U(e.declarations,Lv)?_s(n):Cp(n)}return n.lateSymbol||(n.lateSymbol=e)}return e}function Lp(e,n,t){if(4&bT(e)){const t=e.target,r=by(e);return c(t.typeParameters)===c(r)?gy(t,K(r,[n||t.thisType])):e}if(2097152&e.flags){const r=N(e.types,e=>Lp(e,n,t));return r!==e.types?Xb(r):e}return t?Vm(e):e}function kp(e,n,t,r){let o,i,a,s,l;ue(t,r,0,t.length)?(i=n.symbol?Cp(n.symbol):Qu(n.declaredProperties),a=n.declaredCallSignatures,s=n.declaredConstructSignatures,l=n.declaredIndexInfos):(o=tE(t,r),i=rp(n.declaredProperties,o,1===t.length),a=eE(n.declaredCallSignatures,o),s=eE(n.declaredConstructSignatures,o),l=nE(n.declaredIndexInfos,o));const c=gu(n);if(c.length){if(n.symbol&&i===Cp(n.symbol)){const e=Qu(n.declaredProperties),t=Xg(n.symbol);t&&e.set("__index",t),i=e}Ks(e,i,a,s,l);const t=ge(r);for(const e of c){const n=t?Lp(xE(e,o),t):e;op(i,cm(n)),a=K(a,Vh(n,0)),s=K(s,Vh(n,1));const r=n!==In?l_(n):[fo];l=K(l,x(r,e=>!Hh(l,e.keyType)))}}Ks(e,i,a,s,l)}function wp(e,n,t,r,o,i,a,s){const l=new f(qe,s);return l.declaration=e,l.typeParameters=n,l.parameters=r,l.thisParameter=t,l.resolvedReturnType=o,l.resolvedTypePredicate=i,l.minArgumentCount=a,l.resolvedMinArgumentCount=void 0,l.target=void 0,l.mapper=void 0,l.compositeSignatures=void 0,l.compositeKind=void 0,l}function Op(e){const n=wp(e.declaration,e.typeParameters,e.thisParameter,e.parameters,void 0,void 0,e.minArgumentCount,167&e.flags);return n.target=e.target,n.mapper=e.mapper,n.compositeSignatures=e.compositeSignatures,n.compositeKind=e.compositeKind,n}function Fp(e,n){const t=Op(e);return t.compositeSignatures=n,t.compositeKind=1048576,t.target=void 0,t.mapper=void 0,t}function Wp(e,n){if((24&e.flags)===n)return e;e.optionalCallSignatureCache||(e.optionalCallSignatureCache={});const t=8===n?"inner":"outer";return e.optionalCallSignatureCache[t]||(e.optionalCallSignatureCache[t]=function(e,n){dt.assert(8===n||16===n,"An optional call signature can either be for an inner call chain or an outer call chain, but not both.");const t=Op(e);return t.flags|=n,t}(e,n))}function zp(e,n){if(_B(e)){const r=e.parameters.length-1,o=e.parameters[r],i=Vd(o);if(mR(i))return[t(i,r,o)];if(!n&&1048576&i.flags&&g(i.types,mR))return D(i.types,e=>t(e,r,o))}return[e.parameters];function t(n,t,r){const o=by(n),i=function(e,n){const t=D(e.target.labeledElementDeclarations,(t,r)=>sO(t,r,e.target.elementFlags[r],n));if(t){const e=[],n=new Set;for(let o=0;o<t.length;o++){B(n,t[o])||e.push(o)}const r=new Map;for(const o of e){let e,i=r.get(t[o])??1;for(;!B(n,e=`${t[o]}_${i}`);)i++;t[o]=e,r.set(t[o],i+1)}}return t}(n,r),a=D(o,(r,o)=>{const a=i&&i[o]?i[o]:lO(e,t+o,n),s=n.target.elementFlags[o],l=Yi(1,a,12&s?32768:2&s?16384:0);return l.links.type=4&s?Jv(r):r,l});return K(e.parameters.slice(0,t),a)}}function Bp(e,n,t,r,o){for(const i of e)if(jx(i,n,t,r,o,t?FE:wE))return i}function Gp(e,n,t){if(n.typeParameters){if(t>0)return;for(let t=1;t<e.length;t++)if(!Bp(e[t],n,!1,!1,!1))return;return[n]}let r;for(let o=0;o<e.length;o++){const i=o===t?n:Bp(e[o],n,!1,!1,!0)||Bp(e[o],n,!0,!1,!0);if(!i)return;r=le(r,i)}return r}function Vp(e){let n,t;for(let r=0;r<e.length;r++){if(0===e[r].length)return s;e[r].length>1&&(t=void 0===t?r:-1);for(const t of e[r])if(!n||!Bp(n,t,!1,!1,!0)){const o=Gp(e,t,r);if(o){let e=t;if(o.length>1){let n=t.thisParameter;const r=d(o,e=>e.thisParameter);if(r){n=BR(r,Xb(F(o,e=>e.thisParameter&&Vd(e.thisParameter))))}e=Fp(t,o),e.thisParameter=n}(n||(n=[])).push(e)}}}if(!c(n)&&-1!==t){const r=e[void 0!==t?t:0];let o=r.slice();for(const n of e)if(n!==r){const e=n[0];if(dt.assert(!!e,"getUnionSignatures bails early on empty signature lists and should not have empty lists on second pass"),o=e.typeParameters&&U(o,n=>!!n.typeParameters&&!jp(e.typeParameters,n.typeParameters))?void 0:D(o,n=>Up(n,e)),!o)break}n=o}return n||s}function jp(e,n){if(c(e)!==c(n))return!1;if(!e||!n)return!0;const t=tE(n,e);for(let r=0;r<e.length;r++){const o=e[r],i=n[r];if(o!==i&&!kE(cy(o)||On,xE(cy(i)||On,t)))return!1}return!0}function Up(e,n){const t=e.typeParameters||n.typeParameters;let r;e.typeParameters&&n.typeParameters&&(r=tE(n.typeParameters,e.typeParameters));let o=166&(e.flags|n.flags);const i=e.declaration,a=function(e,n,t){const r=_O(e),o=_O(n),i=r>=o?e:n,a=i===e?n:e,s=i===e?r:o,l=yO(e)||yO(n),c=l&&!yO(i),d=new Array(s+(c?1:0));for(let u=0;u<s;u++){let p=fO(i,u);i===n&&(p=xE(p,t));let f=fO(a,u)||On;a===n&&(f=xE(f,t));const m=Xb([p,f]),h=l&&!c&&u===s-1,_=u>=gO(i)&&u>=gO(a),g=u>=r?void 0:lO(e,u),y=u>=o?void 0:lO(n,u),v=Yi(1|(_&&!h?16777216:0),(g===y?g:g?y?void 0:g:y)||`arg${u}`,h?32768:_?16384:0);v.links.type=h?Jv(m):m,d[u]=v}if(c){const e=Yi(1,"args",32768);e.links.type=Jv(pO(a,s)),a===n&&(e.links.type=xE(e.links.type,t)),d[s]=e}return d}(e,n,r),s=ge(a);s&&32768&sT(s)&&(o|=1);const l=function(e,n,t){return e&&n?BR(e,Xb([Vd(e),xE(Vd(n),t)])):e||n}(e.thisParameter,n.thisParameter,r),c=wp(i,t,l,a,void 0,void 0,Math.max(e.minArgumentCount,n.minArgumentCount),o);return c.compositeKind=1048576,c.compositeSignatures=K(2097152!==e.compositeKind&&e.compositeSignatures||[e],[n]),r?c.mapper=2097152!==e.compositeKind&&e.mapper&&e.compositeSignatures?dE(e.mapper,r):r:2097152!==e.compositeKind&&e.mapper&&e.compositeSignatures&&(c.mapper=e.mapper),c}function Hp(e){const n=l_(e[0]);if(n){const t=[];for(const r of n){const n=r.keyType;g(e,e=>!!u_(e,n))&&t.push(Qg(n,Gb(D(e,e=>p_(e,n))),U(e,e=>u_(e,n).isReadonly)))}return t}return s}function qp(e,n){return e?n?Xb([e,n]):e:n}function Jp(e){const n=A(e,e=>Vh(e,1).length>0),t=D(e,iu);if(n>0&&n===A(t,e=>e)){const e=t.indexOf(!0);t[e]=!1}return t}function Qp(e,n,t,r){const o=[];for(let i=0;i<n.length;i++)i===r?o.push(e):t[i]&&o.push(Ag(Vh(n[i],1)[0]));return Xb(o)}function ef(e,n){for(const t of n)e&&!g(e,e=>!jx(e,t,!1,!1,!1,wE))||(e=re(e,t));return e}function tf(e,n,t){if(e)for(let r=0;r<e.length;r++){const o=e[r];if(o.keyType===n.keyType)return e[r]=Qg(o.keyType,t?Gb([o.type,n.type]):Xb([o.type,n.type]),t?o.isReadonly||n.isReadonly:o.isReadonly&&n.isReadonly),e}return re(e,n)}function rf(e){if(e.target){Ks(e,k,s,s,s);return void Ks(e,rp($f(e.target),e.mapper,!1),eE(Vh(e.target,0),e.mapper),eE(Vh(e.target,1),e.mapper),nE(l_(e.target),e.mapper))}const n=Ss(e.symbol);if(2048&n.flags){Ks(e,k,s,s,s);const t=Cp(n),r=Q_(t.get("__call")),o=Q_(t.get("__new"));return void Ks(e,t,r,o,oy(n))}let t,r,o=_s(n);if(n===Ce){const e=new Map;o.forEach(n=>{var t;418&n.flags||512&n.flags&&(null==(t=n.declarations)?void 0:t.length)&&g(n.declarations,pf)||e.set(n.escapedName,n)}),o=e}if(Ks(e,o,s,s,s),32&n.flags){const e=mu(bu(n));11272192&e.flags?(o=Qu(function(e){const n=Us(e),t=Yg(e);return t?K(n,[t]):n}(o)),op(o,cm(e))):e===In&&(r=fo)}const i=Yg(o);if(i?t=iy(i,Le(o.values())):(r&&(t=re(t,r)),384&n.flags&&(32&Wu(n).flags||U(e.properties,e=>!!(296&Vd(e).flags)))&&(t=re(t,po))),Ks(e,o,s,s,t||s),8208&n.flags&&(e.callSignatures=Q_(n)),32&n.flags){const t=bu(n);let r=n.members?Q_(n.members.get("__constructor")):s;16&n.flags&&(r=ae(r.slice(),F(e.callSignatures,e=>Fw(e.declaration)?wp(e.declaration,e.typeParameters,e.thisParameter,e.parameters,t,void 0,e.minArgumentCount,167&e.flags):void 0))),r.length||(r=function(e){const n=Vh(mu(e),1),t=vT(e.symbol),r=!!t&&Mv(t,64);if(0===n.length)return[wp(void 0,e.localTypeParameters,void 0,s,e,void 0,0,r?4:0)];const o=su(e),i=Lh(o),a=qy(o),l=c(a),d=[];for(const s of n){const n=z_(s.typeParameters),t=c(s.typeParameters);if(i||l>=n&&l<=t){const o=t?Pg(s,B_(a,s.typeParameters,n,i)):Op(s);o.typeParameters=e.localTypeParameters,o.resolvedReturnType=e,o.flags=r?4|o.flags:-5&o.flags,d.push(o)}}return d}(t)),e.constructSignatures=r}}function af(e,n,t){return xE(e,tE([n.indexType,n.objectType],[kS(0),Sb([t])]))}function sf(e){const n=u_(e.source,Hn),t=Cf(e.mappedType),r=!(1&t),o=4&t?0:16777216,i=n?[Qg(Hn,gI(n.type,e.mappedType,e.constraintType)||On,r&&n.isReadonly)]:s,a=Qu(),l=function(e){const n=Ef(e.mappedType);if(!(1048576&n.flags||2097152&n.flags))return;const t=1048576&n.flags?n.origin:n;if(!(t&&2097152&t.flags))return;const r=Xb(t.types.filter(n=>n!==e.constraintType));return r!==ut?r:void 0}(e);for(const s of cm(e.source)){if(l){if(!BE(oT(s,8576),l))continue}const n=8192|(r&&QO(s)?8:0),t=Yi(4|s.flags&o,s.escapedName,n);if(t.declarations=s.declarations,t.links.nameType=da(s).nameType,t.links.propertyType=Vd(s),8388608&e.constraintType.type.flags&&262144&e.constraintType.type.objectType.flags&&262144&e.constraintType.type.indexType.flags){const n=e.constraintType.type.objectType,r=af(e.mappedType,e.constraintType.type,n);t.links.mappedType=r,t.links.constraintType=fT(n)}else t.links.mappedType=e.mappedType,t.links.constraintType=e.constraintType;a.set(s.escapedName,t)}Ks(e,a,s,s,i)}function lf(e){if(4194304&e.flags){const n=Vm(e.type);return hR(n)?Db(n):fT(n)}if(16777216&e.flags){if(e.root.isDistributive){const n=e.checkType,t=lf(n);if(t!==n)return AE(e,pE(e.root.checkType,t,e.mapper),!1)}return e}if(1048576&e.flags)return jC(e,lf,!0);if(2097152&e.flags){const n=e.types;return 2===n.length&&76&n[0].flags&&n[1]===Mt?e:Xb(N(e.types,lf))}return e}function cf(e){return 4096&sT(e)}function mf(e,n,t,r){for(const o of cm(e))r(oT(o,n));if(1&e.flags)r(Hn);else for(const o of l_(e))(!t||134217732&o.keyType.flags)&&r(o.keyType)}function vf(e){const n=Qu();let t;Ks(e,k,s,s,s);const r=Sf(e),o=Ef(e),i=e.target||e,a=Af(i),l=2!==qf(i),c=xf(i),d=Vm(Df(e)),u=Cf(e);function p(o){IC(a?xE(a,fE(e.mapper,r,o)):o,i=>function(o,i){if(ux(i)){const t=px(i),r=n.get(t);if(r)r.links.nameType=Gb([r.links.nameType,i]),r.links.keyType=Gb([r.links.keyType,o]);else{const r=ux(o)?wh(d,px(o)):void 0,a=!!(4&u||!(8&u)&&r&&16777216&r.flags),s=!!(1&u||!(2&u)&&r&&QO(r)),c=X&&!a&&r&&16777216&r.flags,p=Yi(4|(a?16777216:0),t,262144|(r?cf(r):0)|(s?8:0)|(c?524288:0));p.links.mappedType=e,p.links.nameType=i,p.links.keyType=o,r&&(p.links.syntheticOrigin=r,p.declarations=l?r.declarations:void 0),n.set(t,p)}}else if(ay(i)||33&i.flags){const n=5&i.flags?Hn:40&i.flags?Kn:i,a=xE(c,fE(e.mapper,r,o)),s=v_(d,i),l=Qg(n,a,!!(1&u||!(2&u)&&(null==s?void 0:s.isReadonly)));t=tf(t,l,!0)}}(o,i))}If(e)?mf(d,8576,!1,p):IC(lf(o),p),Ks(e,n,s,s,t||s)}function Sf(e){return e.typeParameter||(e.typeParameter=Fu(Es(e.declaration.typeParameter)))}function Ef(e){return e.constraintType||(e.constraintType=um(Sf(e))||Mn)}function Af(e){return e.declaration.nameType?e.nameType||(e.nameType=xE(qS(e.declaration.nameType),e.mapper)):void 0}function xf(e){return e.templateType||(e.templateType=e.declaration.type?xE(Pc(qS(e.declaration.type),!0,!!(4&Cf(e))),e.mapper):Mn)}function Rf(e){return mc(e.declaration.typeParameter)}function If(e){const n=Rf(e);return 199===n.kind&&143===n.operator}function Df(e){if(!e.modifiersType)if(If(e))e.modifiersType=xE(qS(Rf(e).type),e.mapper);else{const n=Ef(qT(e.declaration)),t=n&&262144&n.flags?um(n):n;e.modifiersType=t&&4194304&t.flags?xE(t.type,e.mapper):On}return e.modifiersType}function Cf(e){const n=e.declaration;return(n.readonlyToken?41===n.readonlyToken.kind?2:1:0)|(n.questionToken?41===n.questionToken.kind?8:4:0)}function Pf(e){const n=Cf(e);return 8&n?-1:4&n?1:0}function zf(e){if(32&bT(e))return Pf(e)||zf(Df(e));if(2097152&e.flags){const n=zf(e.types[0]);return g(e.types,(e,t)=>0===t||zf(e)===n)?n:0}return 0}function Uf(e){if(32&bT(e)){const n=Ef(e);if(OT(n))return!0;const t=Af(e);if(t&&OT(xE(t,oE(Sf(e),n))))return!0}return!1}function qf(e){const n=Af(e);return n?BE(n,Sf(e))?1:2:0}function Jf(e){return e.members||(524288&e.flags?4&e.objectFlags?function(e){const n=dp(e.target),t=K(n.typeParameters,[n.thisType]),r=by(e);kp(e,n,t,r.length===t.length?r:K(r,[e]))}(e):3&e.objectFlags?function(e){kp(e,dp(e),s,s)}(e):1024&e.objectFlags?sf(e):16&e.objectFlags?rf(e):32&e.objectFlags?vf(e):dt.fail("Unhandled object type "+dt.formatObjectFlags(e.objectFlags)):1048576&e.flags?function(e){const n=Vp(D(e.types,e=>e===Yt?[lo]:Vh(e,0))),t=Vp(D(e.types,e=>Vh(e,1))),r=Hp(e.types);Ks(e,k,n,t,r)}(e):2097152&e.flags?function(e){let n,t,r;const o=e.types,i=Jp(o),a=A(i,e=>e);for(let s=0;s<o.length;s++){const l=e.types[s];if(!i[s]){let e=Vh(l,1);e.length&&a>0&&(e=D(e,e=>{const n=Op(e);return n.resolvedReturnType=Qp(Ag(e),o,i,s),n})),t=ef(t,e)}n=ef(n,Vh(l,0)),r=xe(l_(l),(e,n)=>tf(e,n,!1),r)}Ks(e,k,n||s,t||s,r||s)}(e):dt.fail("Unhandled type "+dt.formatTypeFlags(e.flags))),e}function $f(e){return 524288&e.flags?Jf(e).properties:s}function sm(e,n){if(524288&e.flags){const t=Jf(e).members.get(n);if(t&&Os(t))return t}}function lm(e){if(!e.resolvedProperties){const n=Qu();for(const t of e.types){for(const r of cm(t))if(!n.has(r.escapedName)){const t=Ym(e,r.escapedName,!!(2097152&e.flags));t&&n.set(r.escapedName,t)}if(1048576&e.flags&&0===l_(t).length)break}e.resolvedProperties=Us(n)}return e.resolvedProperties}function cm(e){return 3145728&(e=qm(e)).flags?lm(e):$f(e)}function dm(e){return 262144&e.flags?um(e):8388608&e.flags?function(e){return Em(e)?function(e){if(Gm(e))return VT(e.objectType,e.indexType);const n=_m(e.indexType);if(n&&n!==e.indexType){const t=HT(e.objectType,n,e.accessFlags);if(t)return t}const t=_m(e.objectType);if(t&&t!==e.objectType)return HT(t,e.indexType,e.accessFlags);return}(e):void 0}(e):16777216&e.flags?bm(e):Tm(e)}function um(e){return Em(e)?cy(e):void 0}function mm(e,n=0){var t;return n<5&&!(!e||!(262144&e.flags&&U(null==(t=e.symbol)?void 0:t.declarations,e=>Mv(e,4096))||3145728&e.flags&&U(e.types,e=>mm(e,n))||8388608&e.flags&&mm(e.objectType,n+1)||16777216&e.flags&&mm(bm(e),n+1)||33554432&e.flags&&mm(e.baseType,n)||32&bT(e)&&function(e,n){const t=bE(e);return!!t&&mm(t,n)}(e,n)||hR(e)&&b(Mb(e),(t,r)=>!!(8&e.target.elementFlags[r])&&mm(t,n))>=0))}function _m(e){const n=WT(e,!1);return n!==e?n:dm(e)}function gm(e){if(!e.resolvedDefaultConstraint){const n=function(e){return e.resolvedInferredTrueType||(e.resolvedInferredTrueType=e.combinedMapper?xE(qS(e.root.node.trueType),e.combinedMapper):tS(e))}(e),t=iS(e);e.resolvedDefaultConstraint=rc(n)?t:rc(t)?n:Gb([n,t])}return e.resolvedDefaultConstraint}function ym(e){if(void 0!==e.resolvedConstraintOfDistributive)return e.resolvedConstraintOfDistributive||void 0;if(e.root.isDistributive&&e.restrictiveInstantiation!==e){const n=WT(e.checkType,!1),t=n===e.checkType?dm(n):n;if(t&&t!==e.checkType){const n=AE(e,pE(e.root.checkType,t,e.mapper),!0);if(!(131072&n.flags))return e.resolvedConstraintOfDistributive=n,n}}e.resolvedConstraintOfDistributive=!1}function vm(e){return ym(e)||gm(e)}function bm(e){return Em(e)?vm(e):void 0}function Tm(e){if(464781312&e.flags||hR(e)){const n=Am(e);return n!==Ot&&n!==Ft?n:void 0}return 4194304&e.flags?gt:void 0}function Sm(e){return Tm(e)||e}function Em(e){return Am(e)!==Ft}function Am(e){if(e.resolvedBaseConstraint)return e.resolvedBaseConstraint;const n=[];return e.resolvedBaseConstraint=t(e);function t(e){if(!e.immediateBaseConstraint){if(!ql(e,4))return Ft;let t;const i=zx(e);if((n.length<10||n.length<50&&!S(n,i))&&(n.push(i),t=function(e){if(262144&e.flags){const n=cy(e);return e.isThisType||!n?n:o(n)}if(3145728&e.flags){const n=e.types,t=[];let r=!1;for(const e of n){const n=o(e);n?(n!==e&&(r=!0),t.push(n)):r=!0}return r?1048576&e.flags&&t.length===n.length?Gb(t):2097152&e.flags&&t.length?Xb(t):void 0:e}if(4194304&e.flags)return gt;if(134217728&e.flags){const n=e.types,t=F(n,o);return t.length===n.length?hT(e.texts,t):Hn}if(268435456&e.flags){const n=o(e.type);return n&&n!==e.type?gT(e.symbol,n):Hn}if(8388608&e.flags){if(Gm(e))return o(VT(e.objectType,e.indexType));const n=o(e.objectType),t=o(e.indexType),r=n&&t&&HT(n,t,e.accessFlags);return r&&o(r)}if(16777216&e.flags){const n=vm(e);return n&&o(n)}if(33554432&e.flags)return o(zy(e));if(hR(e)){return Sb(D(Mb(e),(n,t)=>{const r=262144&n.flags&&8&e.target.elementFlags[t]&&o(n)||n;return r!==n&&LC(r,e=>Jx(e)&&!hR(e))?r:n}),e.target.elementFlags,e.target.readonly,e.target.labeledElementDeclarations)}return e}(WT(e,!1)),n.pop()),!Yl()){if(262144&e.flags){const n=sy(e);if(n){const t=Bi(n,fa.Type_parameter_0_has_a_circular_constraint,El(e));!r||ug(n,r)||ug(r,n)||dA(t,Vf(r,fa.Circularity_originates_in_type_at_this_location))}}t=Ft}e.immediateBaseConstraint??(e.immediateBaseConstraint=t||Ot)}return e.immediateBaseConstraint}function o(e){const n=t(e);return n!==Ot&&n!==Ft?n:void 0}}function xm(e){if(e.default)e.default===Wt&&(e.default=Ft);else if(e.target){const n=xm(e.target);e.default=n?xE(n,e.mapper):Ot}else{e.default=Wt;const n=e.symbol&&d(e.symbol.declarations,e=>ID(e)&&e.default),t=n?qS(n):Ot;e.default===Wt&&(e.default=t)}return e.default}function Rm(e){const n=xm(e);return n!==Ot&&n!==Ft?n:void 0}function Im(e){return!(!e.symbol||!d(e.symbol.declarations,e=>ID(e)&&e.default))}function Dm(e){return e.resolvedApparentType||(e.resolvedApparentType=function(e){const n=e.target??e,t=bE(n);if(t&&!n.declaration.nameType){const r=Df(e),o=Uf(r)?Dm(r):Tm(r);if(o&&LC(o,e=>Jx(e)||Nm(e)))return xE(n,pE(t,o,e.mapper))}return e}(e))}function Nm(e){return!!(2097152&e.flags)&&g(e.types,Jx)}function Gm(e){let n;return!(!(8388608&e.flags&&32&bT(n=e.objectType)&&!Uf(n)&&OT(e.indexType))||8&Cf(n)||n.declaration.nameType)}function Vm(e){const n=465829888&e.flags?Tm(e)||On:e,t=bT(n);return 32&t?Dm(n):4&t&&n!==e?Lp(n,e):2097152&n.flags?function(e,n){if(e===n)return e.resolvedApparentType||(e.resolvedApparentType=Lp(e,n,!0));const t=`I${Pb(e)},${Pb(n)}`;return Li(t)??wi(t,Lp(e,n,!0))}(n,e):402653316&n.flags?rr:296&n.flags?or:2112&n.flags?Ur||(Ur=nv("BigInt",0,!1))||It:528&n.flags?ir:12288&n.flags?hv():67108864&n.flags?It:4194304&n.flags?gt:2&n.flags&&!X?It:n}function qm(e){return Qm(Vm(Qm(e)))}function Jm(e,n,t){var r,o,i;let a,s,l,d=0;const u=1048576&e.flags;let p,f=4,m=u?0:8,h=!1;for(const S of e.types){const e=Vm(S);if(!(ac(e)||131072&e.flags)){const r=wh(e,n,t),o=r?lT(r):0;if(r){if(106500&r.flags&&(p??(p=u?0:16777216),u?p|=16777216&r.flags:p&=r.flags),a){if(r!==a){if((OB(r)||r)===(OB(a)||a)&&-1===Gx(a,r,(e,n)=>e===n?-1:0))h=!!a.parent&&!!c(ou(a.parent));else{s||(s=new Map,s.set(dB(a),a));const e=dB(r);s.has(e)||s.set(e,r)}98304&d&&(98304&r.flags)!=(98304&d)&&(d=-98305&d|4)}}else a=r,d=98304&r.flags||4;u&&QO(r)?m|=8:u||QO(r)||(m&=-9),m|=(6&o?0:256)|(4&o?512:0)|(2&o?1024:0)|(256&o?2048:0),XL(r)||(f=2)}else if(u){const t=!mp(n)&&S_(e,n);t?(d=-98305&d|4,m|=32|(t.isReadonly?8:0),l=re(l,mR(e)?gR(e)||Fn:t.type)):!LI(e)||2097152&bT(e)?m|=16:(m|=32,l=re(l,Fn))}}}if(!a||u&&(s||48&m)&&1536&m&&(!s||!function(e){let n;for(const t of e){if(!t.declarations)return;if(n){if(n.forEach(e=>{S(t.declarations,e)||n.delete(e)}),0===n.size)return}else n=new Set(t.declarations)}return n}(s.values())))return;if(!(s||16&m||l)){if(h){const n=null==(r=en(a,Zu))?void 0:r.links,t=BR(a,null==n?void 0:n.type);return t.parent=null==(i=null==(o=a.valueDeclaration)?void 0:o.symbol)?void 0:i.parent,t.links.containingType=e,t.links.mapper=null==n?void 0:n.mapper,t.links.writeType=Bd(a),t}return a}const _=s?Le(s.values()):[a];let g,y,v;const b=[];let T,E,A=!1;for(const c of _){E?c.valueDeclaration&&c.valueDeclaration!==E&&(A=!0):E=c.valueDeclaration,g=ae(g,c.declarations);const e=Vd(c);y||(y=e,v=da(c).nameType);const n=Bd(c);(T||n!==e)&&(T=re(T||b.slice(),n)),e!==y&&(m|=64),(sR(e)||PT(e))&&(m|=128),131072&e.flags&&e!==Et&&(m|=131072),b.push(e)}ae(b,l);const x=Yi(d|(p??0),n,f|m);return x.links.containingType=e,!A&&E&&(x.valueDeclaration=E,E.symbol.parent&&(x.parent=E.symbol.parent)),x.declarations=g,x.links.nameType=v,b.length>2?(x.links.checkFlags|=65536,x.links.deferralParent=e,x.links.deferralConstituents=b,x.links.deferralWriteConstituents=T):(x.links.type=u?Gb(b):Xb(b),T&&(x.links.writeType=u?Gb(T):Xb(T))),x}function Xm(e,n,t){var r,o,i;let a=t?null==(r=e.propertyCacheWithoutObjectFunctionPropertyAugment)?void 0:r.get(n):null==(o=e.propertyCache)?void 0:o.get(n);if(!a&&(a=Jm(e,n,t),a)){if((t?e.propertyCacheWithoutObjectFunctionPropertyAugment||(e.propertyCacheWithoutObjectFunctionPropertyAugment=Qu()):e.propertyCache||(e.propertyCache=Qu())).set(n,a),t&&!(48&sT(a))&&!(null==(i=e.propertyCache)?void 0:i.get(n))){(e.propertyCache||(e.propertyCache=Qu())).set(n,a)}}return a}function Ym(e,n,t){const r=Xm(e,n,t);return!r||16&sT(r)?void 0:r}function Qm(e){return 1048576&e.flags&&16777216&e.objectFlags?e.resolvedReducedType||(e.resolvedReducedType=function(e){const n=N(e.types,Qm);if(n===e.types)return e;const t=Gb(n);1048576&t.flags&&(t.resolvedReducedType=t);return t}(e)):2097152&e.flags?(16777216&e.objectFlags||(e.objectFlags|=16777216|(U(lm(e),_h)?33554432:0)),33554432&e.objectFlags?ut:e):e}function _h(e){return gh(e)||yh(e)}function gh(e){return!(16777216&e.flags||192!=(131264&sT(e))||!(131072&Vd(e).flags))}function yh(e){return!e.valueDeclaration&&!!(1024&sT(e))}function Th(e){return!!(1048576&e.flags&&16777216&e.objectFlags&&U(e.types,Th)||2097152&e.flags&&function(e){const n=e.uniqueLiteralFilledInstantiation||(e.uniqueLiteralFilledInstantiation=xE(e,At));return Qm(n)!==n}(e))}function Mh(e,n){if(2097152&n.flags&&33554432&bT(n)){const t=y(lm(n),gh);if(t)return rS(e,fa.The_intersection_0_was_reduced_to_never_because_property_1_has_conflicting_types_in_some_constituents,El(n,void 0,536870912),hl(t));const r=y(lm(n),yh);if(r)return rS(e,fa.The_intersection_0_was_reduced_to_never_because_property_1_exists_in_multiple_constituents_and_is_private_in_some,El(n,void 0,536870912),hl(r))}return e}function wh(e,n,t,r){var o,i;if(524288&(e=qm(e)).flags){const a=Jf(e),s=a.members.get(n);if(s&&!r&&512&(null==(o=e.symbol)?void 0:o.flags)&&(null==(i=da(e.symbol).typeOnlyExportStarMap)?void 0:i.has(n)))return;if(s&&Os(s,r))return s;if(t)return;const l=a===wt?Yt:a.callSignatures.length?$t:a.constructSignatures.length?Qt:void 0;if(l){const e=sm(l,n);if(e)return e}return sm(Xt,n)}if(2097152&e.flags){const r=Ym(e,n,!0);return r||(t?void 0:Ym(e,n,t))}if(1048576&e.flags)return Ym(e,n,t)}function zh(e,n){if(3670016&e.flags){const t=Jf(e);return 0===n?t.callSignatures:t.constructSignatures}return s}function Vh(e,n){const t=zh(qm(e),n);if(0===n&&!c(t)&&1048576&e.flags){if(e.arrayFallbackSignatures)return e.arrayFallbackSignatures;let r;if(LC(e,e=>{var n;return!!(null==(n=e.symbol)?void 0:n.parent)&&function(e){if(!e||!Zt.symbol||!tr.symbol)return!1;return!!Ms(e,Zt.symbol)||!!Ms(e,tr.symbol)}(e.symbol.parent)&&(r?r===e.symbol.escapedName:(r=e.symbol.escapedName,!0))})){const t=Jv(jC(e,e=>rE((jh(e.symbol.parent)?tr:Zt).typeParameters[0],e.mapper)),NC(e,e=>jh(e.symbol.parent)));return e.arrayFallbackSignatures=Vh(nc(t,r),n)}e.arrayFallbackSignatures=t}return t}function jh(e){return!(!e||!tr.symbol)&&!!Ms(e,tr.symbol)}function Hh(e,n){return y(e,e=>e.keyType===n)}function e_(e,n){let t,r,o;for(const i of e)i.keyType===Hn?t=i:a_(n,i.keyType)&&(r?(o||(o=[r])).push(i):r=i);return o?Qg(On,Xb(D(o,e=>e.type)),xe(o,(e,n)=>e&&n.isReadonly,!0)):r||(t&&a_(n,Hn)?t:void 0)}function a_(e,n){return BE(e,n)||n===Hn&&BE(e,Kn)||n===Kn&&(e===bt||!!(128&e.flags)&&UA(e.value))}function s_(e){if(3670016&e.flags){return Jf(e).indexInfos}return s}function l_(e){return s_(qm(e))}function u_(e,n){return Hh(l_(e),n)}function p_(e,n){var t;return null==(t=u_(e,n))?void 0:t.type}function g_(e,n){return l_(e).filter(e=>a_(n,e.keyType))}function v_(e,n){return e_(l_(e),n)}function S_(e,n){return v_(e,mp(n)?lt:NS(yl(n)))}function E_(e){var n;let t;for(const r of fc(e))t=le(t,Fu(r.symbol));return(null==t?void 0:t.length)?t:hN(e)?null==(n=Y_(e))?void 0:n.typeParameters:void 0}function I_(e){const n=[];return e.forEach((e,t)=>{js(t)||n.push(e)}),n}function D_(e,n){if(Ds(e))return;const t=pa(Ie,'"'+e+'"',512);return t&&n?Ss(t):t}function L_(e){return C_(e)||YA(e)||DD(e)&&ZA(e)}function k_(e){if(L_(e))return!0;if(!DD(e))return!1;if(e.initializer){const n=G_(e.parent),t=e.parent.parameters.indexOf(e);return dt.assert(t>=0),t>=gO(n,3)}const n=lh(e.parent);return!!n&&(!e.type&&!e.dotDotDotToken&&e.parent.parameters.indexOf(e)>=mw(n).length)}function O_(e,n,t,r){return{kind:e,parameterName:n,parameterIndex:t,type:r}}function z_(e){let n=0;if(e)for(let t=0;t<e.length;t++)Im(e[t])||(n=t+1);return n}function B_(e,n,t,r){const o=c(n);if(!o)return[];const i=c(e);if(r||i>=t&&i<=o){const t=e?e.slice():[];for(let e=i;e<o;e++)t[e]=Mn;const a=WI(r);for(let e=i;e<o;e++){let o=Rm(n[e]);r&&o&&(kE(o,On)||kE(o,It))&&(o=In),t[e]=o?xE(o,tE(n,t)):a}return t.length=n.length,t}return e&&e.slice()}function G_(e){const n=ua(e);if(!n.resolvedSignature){const t=[];let r,o=0,i=0,a=Lh(e)?ec(e):void 0,s=!1;const l=lh(e),c=N_(e);!l&&Lh(e)&&rg(e)&&!Wl(e)&&!U(e.parameters,e=>!!ic(e))&&!ic(e)&&!oL(e)&&(o|=32);for(let n=c?1:0;n<e.parameters.length;n++){const c=e.parameters[n];if(Lh(c)&&HM(c)){a=c;continue}let d=c.symbol;const u=jM(c)?c.typeExpression&&c.typeExpression.type:c.type;if(d&&4&d.flags&&!xd(c.name)){d=je(c,d.escapedName,111551,void 0,!1)}0===n&&"this"===d.escapedName?(s=!0,r=c.symbol):t.push(d),u&&202===u.kind&&(o|=2);L_(c)||DD(c)&&c.initializer||Vu(c)||l&&t.length>l.arguments.length&&!u||(i=t.length)}if((178===e.kind||179===e.kind)&&vp(e)&&(!s||!r)){const n=178===e.kind?179:178,t=Yu(Es(e),n);t&&(r=function(e){const n=LV(e);return n&&n.symbol}(t))}a&&a.typeExpression&&(r=BR(Yi(1,"this"),qS(a.typeExpression)));const d=CM(e)?K_(e):e,u=d&&wD(d)?bu(Ss(d.parent.symbol)):void 0,f=u?u.localTypeParameters:E_(e);(Gu(e)||Lh(e)&&function(e,n){if(CM(e)||!$_(e))return!1;const t=ge(e.parameters),r=t?Ll(t):lc(e).filter(jM),o=p(r,e=>e.typeExpression&&xM(e.typeExpression.type)?e.typeExpression.type:void 0),i=Yi(3,"args",32768);o?i.links.type=Jv(qS(o.type)):(i.links.checkFlags|=65536,i.links.deferralParent=ut,i.links.deferralConstituents=[lr],i.links.deferralWriteConstituents=[lr]);o&&n.pop();return n.push(i),!0}(e,t))&&(o|=1),(UD(e)&&Mv(e,64)||wD(e)&&Mv(e.parent,64))&&(o|=4),n.resolvedSignature=wp(e,f,r,t,void 0,void 0,i,o)}return n.resolvedSignature}function Y_(e){if(!Lh(e)||!ld(e))return;const n=oc(e);return(null==n?void 0:n.typeExpression)&&ew(qS(n.typeExpression))}function $_(e){const n=ua(e);return void 0===n.containsArgumentsReference&&(512&n.flags?n.containsArgumentsReference=!0:n.containsArgumentsReference=function e(n){if(!n)return!1;switch(n.kind){case 80:return n.escapedText===we.escapedName&&lV(n)===we;case 173:case 175:case 178:case 179:return 168===n.name.kind&&e(n.name);case 212:case 213:return e(n.expression);case 304:return e(n.initializer);default:return!ty(n)&&!Cm(n)&&!!rk(n,e)}}(e.body)),n.containsArgumentsReference}function Q_(e){if(!e||!e.declarations)return s;const n=[];for(let t=0;t<e.declarations.length;t++){const r=e.declarations[t];if(ad(r)){if(t>0&&r.body){const n=e.declarations[t-1];if(r.parent===n.parent&&r.kind===n.kind&&r.pos===n.end)continue}if(Lh(r)&&r.jsDoc){const e=U_(r);if(c(e)){for(const t of e){const e=t.typeExpression;void 0!==e.type||wD(r)||$R(e,In),n.push(G_(e))}continue}}n.push(!VA(r)&&!jm(r)&&Y_(r)||G_(r))}}return n}function tg(e){const n=os(e,e);if(n){const e=ls(n);if(e)return Vd(e)}return In}function og(e){if(e.thisParameter)return Vd(e.thisParameter)}function fg(e){if(!e.resolvedTypePredicate){if(e.target){const n=fg(e.target);e.resolvedTypePredicate=n?hE(n,e.mapper):ao}else if(e.compositeSignatures)e.resolvedTypePredicate=function(e,n){let t;const r=[];for(const i of e){const e=fg(i);if(e){if(0!==e.kind&&1!==e.kind||t&&!jb(t,e))return;t=e,r.push(e.type)}else{const e=2097152!==n?Ag(i):void 0;if(e!==$n&&e!==Qn)return}}if(!t)return;const o=hg(r,n);return O_(t.kind,t.parameterName,t.parameterIndex,o)}(e.compositeSignatures,e.compositeKind)||ao;else{const n=e.declaration&&vv(e.declaration);let t;if(!n){const n=Y_(e.declaration);n&&e!==n&&(t=fg(n))}if(n||t)e.resolvedTypePredicate=n&&GD(n)?function(e,n){const t=e.parameterName,r=e.type&&qS(e.type);return 198===t.kind?O_(e.assertsModifier?2:0,void 0,void 0,r):O_(e.assertsModifier?3:1,t.escapedText,b(n.parameters,e=>e.escapedName===t.escapedText),r)}(n,e):t||ao;else if(e.declaration&&ld(e.declaration)&&(!e.resolvedReturnType||16&e.resolvedReturnType.flags)&&_O(e)>0){const{declaration:n}=e;e.resolvedTypePredicate=ao,e.resolvedTypePredicate=function(e){switch(e.kind){case 177:case 178:case 179:return}if(0!==Fg(e))return;let n;if(e.body&&242!==e.body.kind)n=e.body;else{if(Mm(e.body,e=>{if(n||!e.expression)return!0;n=e.expression})||!n||KO(e))return}return function(e,n){n=cg(n,!0);return 16&EF(n).flags?d(e.parameters,(t,r)=>{const o=Vd(t.symbol);if(!o||16&o.flags||!dD(t.name)||GN(t.symbol)||Vu(t))return;const i=function(e,n,t,r){const o=F_(n)&&n.flowNode||254===n.parent.kind&&n.parent.flowNode||rz(2,void 0,void 0),i=rz(32,n,o),a=kN(t.name,r,r,e,i);if(a===r)return;const s=rz(64,n,o),l=Qm(kN(t.name,r,a,e,s));return 131072&l.flags?a:void 0}(e,n,t,o);return i?O_(1,yl(t.name.escapedText),r,i):void 0}):void 0}(e,n)}(n)||ao}else e.resolvedTypePredicate=ao}dt.assert(!!e.resolvedTypePredicate)}return e.resolvedTypePredicate===ao?void 0:e.resolvedTypePredicate}function hg(e,n,t){return 2097152!==n?Gb(e,t):Xb(e)}function Ag(e){if(!e.resolvedReturnType){if(!ql(e,3))return Mn;let n=e.target?xE(Ag(e.target),e.mapper):e.compositeSignatures?xE(hg(D(e.compositeSignatures,Ag),e.compositeKind,2),e.mapper):Rg(e.declaration)||(Np(e.declaration.body)?In:GO(e.declaration));if(8&e.flags?n=CR(n):16&e.flags&&(n=IR(n)),!Yl()){if(e.declaration){const n=vv(e.declaration);if(n)Bi(n,fa.Return_type_annotation_circularly_references_itself);else if(oe){const n=e.declaration,t=Dl(n);t?Bi(t,fa._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,Of(t)):Bi(n,fa.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=In}e.resolvedReturnType??(e.resolvedReturnType=n)}return e.resolvedReturnType}function Rg(e){if(177===e.kind)return bu(Ss(e.parent.symbol));const n=vv(e);if(CM(e)){const t=J_(e);if(t&&wD(t.parent)&&!n)return bu(Ss(t.parent.parent.symbol))}if(N_(e))return qS(e.parameters[0].type);if(n)return qS(n);if(178===e.kind&&vp(e)){const n=Lh(e)&&Cc(e);if(n)return n;const t=Ad(Yu(Es(e),179));if(t)return t}return function(e){const n=Y_(e);return n&&Ag(n)}(e)}function Dg(e){return e.compositeSignatures&&U(e.compositeSignatures,Dg)||!e.resolvedReturnType&&Jl(e,3)>=0}function Cg(e){if(_B(e)){const n=Vd(e.parameters[e.parameters.length-1]),t=mR(n)?gR(n):n;return t&&p_(t,Kn)}}function Ng(e,n,t,r){const o=Mg(e,B_(n,e.typeParameters,z_(e.typeParameters),t));if(r){const e=nw(Ag(o));if(e){const n=Op(e);n.typeParameters=r;const t=Bg(n);t.mapper=o.mapper;const i=Op(o);return i.resolvedReturnType=t,i}}return o}function Mg(e,n){const t=e.instantiations||(e.instantiations=new Map),r=uy(n);let o=t.get(r);return o||t.set(r,o=Pg(e,n)),o}function Pg(e,n){return _E(e,function(e,n){return tE(kg(e),n)}(e,n),!0)}function kg(e){return N(e.typeParameters,e=>e.mapper?xE(e,e.mapper):e)}function wg(e){return e.typeParameters?e.erasedSignatureCache||(e.erasedSignatureCache=function(e){return _E(e,cE(e.typeParameters),!0)}(e)):e}function Og(e){return e.typeParameters?e.canonicalSignatureCache||(e.canonicalSignatureCache=function(e){return Ng(e,D(e.typeParameters,e=>e.target&&!um(e.target)?e.target:e),Lh(e.declaration))}(e)):e}function Wg(e){const n=e.typeParameters;if(n){if(e.baseSignatureCache)return e.baseSignatureCache;const t=cE(n),r=tE(n,D(n,e=>um(e)||On));let o=D(n,e=>xE(e,r)||On);for(let e=0;e<n.length-1;e++)o=YS(o,r);return o=YS(o,t),e.baseSignatureCache=_E(e,tE(n,o),!0)}return e}function Bg(e){var n,t;if(!e.isolatedSignatureType){const r=null==(n=e.declaration)?void 0:n.kind,o=void 0===r||177===r||181===r||186===r,i=Gs(134217744,null==(t=e.declaration)?void 0:t.symbol);i.members=k,i.properties=s,i.callSignatures=o?s:[e],i.constructSignatures=o?[e]:s,i.indexInfos=s,e.isolatedSignatureType=i}return e.isolatedSignatureType}function Xg(e){return e.members?Yg(Cp(e)):void 0}function Yg(e){return e.get("__index")}function Qg(e,n,t,r,o){return{keyType:e,type:n,isReadonly:t,declaration:r,components:o}}function oy(e){const n=Xg(e);return n?iy(n,Le(Cp(e).values())):s}function iy(e,n=(e.parent?Le(Cp(e.parent).values()):void 0)){if(e.declarations){const t=[];let r=!1,o=!0,i=!1,a=!0,s=!1,l=!0;const c=[];for(const n of e.declarations)if(BD(n)){if(1===n.parameters.length){const e=n.parameters[0];e.type&&IC(qS(e.type),e=>{ay(e)&&!Hh(t,e)&&t.push(Qg(e,n.type?qS(n.type):In,Nv(n,8),n))})}}else if(yp(n)){const e=MC(n)?n.left:n.name,d=gC(e)?EF(e.argumentExpression):uL(e);if(Hh(t,d))continue;BE(d,gt)&&(BE(d,Kn)?(r=!0,Wv(n)||(o=!1)):BE(d,lt)?(i=!0,Wv(n)||(a=!1)):(s=!0,Wv(n)||(l=!1)),c.push(n.symbol))}const d=K(c,x(n,n=>n!==e));return s&&!Hh(t,Hn)&&t.push(_L(l,0,d,Hn)),r&&!Hh(t,Kn)&&t.push(_L(o,0,d,Kn)),i&&!Hh(t,lt)&&t.push(_L(a,0,d,lt)),t}return s}function ay(e){return!!(4108&e.flags)||PT(e)||!!(2097152&e.flags)&&!kT(e)&&U(e.types,ay)}function sy(e){return F(x(e.symbol&&e.symbol.declarations,ID),mc)[0]}function ly(e,n){var t;let r;if(null==(t=e.symbol)?void 0:t.declarations)for(const o of e.symbol.declarations)if(196===o.parent.kind){const[t=o.parent,i]=sg(o.parent.parent);if(184!==i.kind||n){if(170===i.kind&&i.dotDotDotToken||192===i.kind||203===i.kind&&i.dotDotDotToken)r=re(r,Jv(On));else if(205===i.kind)r=re(r,Hn);else if(169===i.kind&&201===i.parent.kind)r=re(r,gt);else if(201===i.kind&&i.type&&cg(i.type)===o.parent&&195===i.parent.kind&&i.parent.extendsType===i&&201===i.parent.checkType.kind&&i.parent.checkType.type){const e=i.parent.checkType;r=re(r,xE(qS(e.type),oE(Fu(Es(e.typeParameter)),e.typeParameter.constraint?qS(e.typeParameter.constraint):gt)))}}else{const n=i,o=sW(n);if(o){const i=n.typeArguments.indexOf(t);if(i<o.length){const t=um(o[i]);if(t){const i=xE(t,sE(o,o.map((e,t)=>()=>oW(n,o,t))));i!==e&&(r=re(r,i))}}}}}return r&&Xb(r)}function cy(e){if(!e.constraint)if(e.target){const n=um(e.target);e.constraint=n?xE(n,e.mapper):Ot}else{const n=sy(e);if(n){let t=qS(n);1&t.flags&&!ac(t)&&(t=201===n.parent.parent.kind?gt:On),e.constraint=t}else e.constraint=ly(e)||Ot}return e.constraint===Ot?void 0:e.constraint}function dy(e){const n=Yu(e.symbol,169),t=qM(n.parent)?j_(n.parent):n.parent;return t&&As(t)}function uy(e){let n="";if(e){const t=e.length;let r=0;for(;r<t;){const o=e[r].id;let i=1;for(;r+i<t&&e[r+i].id===o+i;)i++;n.length&&(n+=","),n+=o,i>1&&(n+=":"+i),r+=i}}return n}function my(e,n){return e?`@${dB(e)}`+(n?`:${uy(n)}`:""):""}function hy(e,n){let t=0;for(const r of e)void 0!==n&&r.flags&n||(t|=bT(r));return 458752&t}function _y(e,n){return U(n)&&e===kt?On:gy(e,n)}function gy(e,n){const t=uy(n);let r=e.instantiations.get(t);return r||(r=Gs(4,e.symbol),e.instantiations.set(t,r),r.objectFlags|=n?hy(n):0,r.target=e,r.resolvedTypeArguments=n),r}function yy(e){const n=Ws(e.flags,e.symbol);return n.objectFlags=e.objectFlags,n.target=e.target,n.resolvedTypeArguments=e.resolvedTypeArguments,n}function vy(e,n,t,r,o){if(!r){const e=fS(r=pS(n));o=t?YS(e,t):e}const i=Gs(4,e.symbol);return i.target=e,i.node=n,i.mapper=t,i.aliasSymbol=r,i.aliasTypeArguments=o,i}function by(e){var n,t;if(!e.resolvedTypeArguments){if(!ql(e,5))return K(e.target.outerTypeParameters,null==(n=e.target.localTypeParameters)?void 0:n.map(()=>Mn))||s;const o=e.node,i=o?184===o.kind?K(e.target.outerTypeParameters,iW(o,e.target.localTypeParameters)):189===o.kind?[qS(o.elementType)]:D(o.elements,qS):s;Yl()?e.resolvedTypeArguments??(e.resolvedTypeArguments=e.mapper?YS(i,e.mapper):i):(e.resolvedTypeArguments??(e.resolvedTypeArguments=K(e.target.outerTypeParameters,(null==(t=e.target.localTypeParameters)?void 0:t.map(()=>Mn))||s)),Bi(e.node||r,e.target.symbol?fa.Type_arguments_for_0_circularly_reference_themselves:fa.Tuple_type_arguments_circularly_reference_themselves,e.target.symbol&&hl(e.target.symbol)))}return e.resolvedTypeArguments}function Ty(e){return c(e.target.typeParameters)}function Sy(e,n){const t=Wu(Ss(n)),r=t.localTypeParameters;if(r){const n=c(e.typeArguments),o=z_(r),i=Lh(e);if(!(!oe&&i)&&(n<o||n>r.length)){const n=i&&WC(e)&&!NM(e.parent);if(Bi(e,o===r.length?n?fa.Expected_0_type_arguments_provide_these_with_an_extends_tag:fa.Generic_type_0_requires_1_type_argument_s:n?fa.Expected_0_1_type_arguments_provide_these_with_an_extends_tag:fa.Generic_type_0_requires_between_1_and_2_type_arguments,El(t,void 0,2),o,r.length),!i)return Mn}if(184===e.kind&&ib(e,c(e.typeArguments)!==r.length))return vy(t,e,void 0);return gy(t,K(t.outerTypeParameters,B_(qy(e),r,o,i)))}return Uy(e,n)?t:Mn}function Ey(e,n,t,r){const o=Wu(e);if(o===kn){const t=aB.get(e.escapedName);if(void 0!==t&&n&&1===n.length)return 4===t?Ny(n[0]):gT(e,n[0])}const i=da(e),a=i.typeParameters,s=uy(n)+my(t,r);let l=i.instantiations.get(s);return l||i.instantiations.set(s,l=RE(o,tE(a,B_(n,a,z_(a),Lh(e.valueDeclaration))),t,r)),l}function xy(e){var n;const t=null==(n=e.declarations)?void 0:n.find(P_);return!(!t||!$m(t))}function Ry(e){return e.parent?`${Ry(e.parent)}.${e.escapedName}`:e.escapedName}function Iy(e){const n=(167===e.kind?e.right:212===e.kind?e.name:e).escapedText;if(n){const t=167===e.kind?Iy(e.left):212===e.kind?Iy(e.expression):void 0,r=t?`${Ry(t)}.${n}`:n;let o=An.get(r);return o||(An.set(r,o=Yi(524288,n,1048576)),o.parent=t,o.links.declaredType=Pn),o}return Sn}function Dy(e,n,t){const r=function(e){switch(e.kind){case 184:return e.typeName;case 234:const n=e.expression;if(db(n))return n}}(e);if(!r)return Sn;const o=ts(r,n,t);return o&&o!==Sn?o:t?Sn:Iy(r)}function Cy(e,n){if(n===Sn)return Mn;if(96&(n=function(e){const n=e.valueDeclaration;if(!n||!Lh(n)||524288&e.flags||Yh(n,!1))return;const t=fN(n)?Jh(n):Xh(n);if(t){const n=As(t);if(n)return Ww(n,e)}}(n)||n).flags)return Sy(e,n);if(524288&n.flags)return function(e,n){if(1048576&sT(n)){const t=qy(e),r=my(n,t);let o=xn.get(r);return o||(o=Bs(1,"error",void 0,`alias ${r}`),o.aliasSymbol=n,o.aliasTypeArguments=t,xn.set(r,o)),o}const t=Wu(n),r=da(n).typeParameters;if(r){const t=c(e.typeArguments),o=z_(r);if(t<o||t>r.length)return Bi(e,o===r.length?fa.Generic_type_0_requires_1_type_argument_s:fa.Generic_type_0_requires_between_1_and_2_type_arguments,hl(n),o,r.length),Mn;const i=pS(e);let a,s=!i||!xy(n)&&xy(i)?void 0:i;if(s)a=fS(s);else if(Ou(e)){const n=Dy(e,2097152,!0);if(n&&n!==Sn){const t=Ja(n);t&&524288&t.flags&&(s=t,a=qy(e)||(r?[]:void 0))}}return Ey(n,qy(e),s,a)}return Uy(e,n)?t:Mn}(e,n);const t=ju(n);if(t)return Uy(e,n)?xS(t):Mn;if(111551&n.flags&&jy(e)){const t=function(e,n){const t=ua(e);if(!t.resolvedJSDocType){const r=Vd(n);let o=r;if(n.valueDeclaration){const t=206===e.kind&&e.qualifier;r.symbol&&r.symbol!==n&&t&&(o=Cy(e,r.symbol))}t.resolvedJSDocType=o}return t.resolvedJSDocType}(e,n);return t||(Dy(e,788968),Vd(n))}return Mn}function Ny(e){return My(e)?Oy(e,On):e}function My(e){return!!(3145728&e.flags&&U(e.types,My)||33554432&e.flags&&!ky(e)&&My(e.baseType)||524288&e.flags&&!hA(e)||432275456&e.flags&&!PT(e))}function ky(e){return!!(33554432&e.flags&&2&e.constraint.flags)}function wy(e,n){return 3&n.flags||n===e||1&e.flags?e:Oy(e,n)}function Oy(e,n){const t=`${Pb(e)}>${Pb(n)}`,r=fn.get(t);if(r)return r;const o=Fs(33554432);return o.baseType=e,o.constraint=n,fn.set(t,o),o}function zy(e){return ky(e)?e.baseType:Xb([e.constraint,e.baseType])}function Gy(e){return 190===e.kind&&1===e.elements.length}function Vy(e,n,t){return Gy(n)&&Gy(t)?Vy(e,n.elements[0],t.elements[0]):JT(qS(n))===JT(e)?qS(t):void 0}function jy(e){return!!(16777216&e.flags)&&(184===e.kind||206===e.kind)}function Uy(e,n){return!e.typeArguments||(Bi(e,fa.Type_0_is_not_generic,n?hl(n):e.typeName?Of(e.typeName):Yz),!1)}function Hy(e){if(dD(e.typeName)){const n=e.typeArguments;switch(e.typeName.escapedText){case"String":return Uy(e),Hn;case"Number":return Uy(e),Kn;case"BigInt":return Uy(e),qn;case"Boolean":return Uy(e),st;case"Void":return Uy(e),ct;case"Undefined":return Uy(e),Fn;case"Null":return Uy(e),jn;case"Function":case"function":return Uy(e),Yt;case"array":return n&&n.length||oe?void 0:lr;case"promise":return n&&n.length||oe?void 0:WO(In);case"Object":if(n&&2===n.length){if(Fh(e)){const e=qS(n[0]),t=qS(n[1]),r=e===Hn||e===Kn?[Qg(e,t,!1)]:s;return qs(void 0,k,s,s,r)}return In}return Uy(e),oe?void 0:In}}}function Ky(e){const n=ua(e);if(!n.resolvedType){if(xc(e)&&Jd(e.parent))return n.resolvedSymbol=Sn,n.resolvedType=EF(e.parent.expression);let t,r;const o=788968;jy(e)&&(r=Hy(e),r||(t=Dy(e,o,!0),t===Sn?t=Dy(e,111551|o):Dy(e,o),r=Cy(e,t))),r||(t=Dy(e,o),r=Cy(e,t)),n.resolvedSymbol=t,n.resolvedType=r}return n.resolvedType}function qy(e){return D(e.typeArguments,qS)}function Jy(e){const n=ua(e);if(!n.resolvedType){const t=Zw(e);n.resolvedType=xS(JR(t))}return n.resolvedType}function Xy(e,n){function t(e){const n=e.declarations;if(n)for(const t of n)switch(t.kind){case 264:case 265:case 267:return t}}if(!e)return n?kt:It;const r=Wu(e);return 524288&r.flags?c(r.typeParameters)!==n?(Bi(t(e),fa.Global_type_0_must_have_1_type_parameter_s,Tl(e),n),n?kt:It):r:(Bi(t(e),fa.Global_type_0_must_be_a_class_or_interface_type,Tl(e)),n?kt:It)}function Yy(e,n){return ev(e,111551,n?fa.Cannot_find_global_value_0:void 0)}function $y(e,n){return ev(e,788968,n?fa.Cannot_find_global_type_0:void 0)}function Qy(e,n,t){const r=ev(e,788968,t?fa.Cannot_find_global_type_0:void 0);if(r&&(Wu(r),c(da(r).typeParameters)!==n)){return void Bi(r.declarations&&y(r.declarations,yN),fa.Global_type_0_must_have_1_type_parameter_s,Tl(r),n)}return r}function ev(e,n,t){return je(void 0,e,n,t,!1,!1)}function nv(e,n,t){const r=$y(e,t);return r||t?Xy(r,n):void 0}function tv(e,n){let t;for(const r of e)t=re(t,nv(r,n,!1));return t??s}function rv(){return wr||(wr=nv("ImportMeta",0,!0)||It)}function ov(){if(!Or){const e=Yi(0,"ImportMetaExpression"),n=rv(),t=Yi(4,"meta",8);t.parent=e,t.links.type=n;const r=Qu([t]);e.members=r,Or=qs(e,r,s,s,s)}return Or}function iv(e){return Fr||(Fr=nv("ImportCallOptions",0,e))||It}function av(e){return Wr||(Wr=nv("ImportAttributes",0,e))||It}function cv(e){return pr||(pr=Yy("Symbol",e))}function hv(){return mr||(mr=nv("Symbol",0,!1))||It}function _v(e){return _r||(_r=nv("Promise",1,e))||kt}function yv(e){return gr||(gr=nv("PromiseLike",1,e))||kt}function Sv(e){return yr||(yr=Yy("Promise",e))}function Ev(e){return Ir||(Ir=nv("AsyncIterable",3,e))||kt}function Av(e){return Cr||(Cr=nv("AsyncIterableIterator",3,e))||kt}function xv(e){return br||(br=nv("Iterable",3,e))||kt}function Rv(e){return Sr||(Sr=nv("IterableIterator",3,e))||kt}function Iv(){return ne?Fn:In}function Gv(e){return zr||(zr=nv("Disposable",0,e))||It}function Vv(e,n=0){const t=ev(e,788968,void 0);return t&&Xy(t,n)}function Uv(e){return jr||(jr=Qy("Awaited",1,e)||(e?Sn:void 0)),jr===Sn?void 0:jr}function Hv(e,n){return e!==kt?gy(e,n):It}function Kv(e){return Hv(hr||(hr=nv("TypedPropertyDescriptor",1,!0)||kt),[e])}function qv(e){return Hv(xv(!0),[e,ct,Fn])}function Jv(e,n){return Hv(n?tr:Zt,[e])}function Xv(e){switch(e.kind){case 191:return 2;case 192:return Zv(e);case 203:return e.questionToken?2:e.dotDotDotToken?Zv(e):1;default:return 1}}function Zv(e){return HS(e.type)?4:8}function eb(e){const n=function(e){return oC(e)&&148===e.operator}(e.parent);if(HS(e))return n?tr:Zt;return Eb(D(e.elements,Xv),n,D(e.elements,nb))}function nb(e){return XD(e)||DD(e)?e:void 0}function ib(e,n){return!!pS(e)||lb(e)&&(189===e.kind?Tb(e.elementType):190===e.kind?U(e.elements,Tb):n||U(e.typeArguments,Tb))}function lb(e){const n=e.parent;switch(n.kind){case 197:case 203:case 184:case 193:case 194:case 200:case 195:case 199:case 189:case 190:return lb(n);case 266:return!0}return!1}function Tb(e){switch(e.kind){case 184:return jy(e)||!!(524288&Dy(e,788968).flags);case 187:return!0;case 199:return 158!==e.operator&&Tb(e.type);case 197:case 191:case 203:case 317:case 315:case 316:case 310:return Tb(e.type);case 192:return 189!==e.type.kind||Tb(e.type.elementType);case 193:case 194:return U(e.types,Tb);case 200:return Tb(e.objectType)||Tb(e.indexType);case 195:return Tb(e.checkType)||Tb(e.extendsType)||Tb(e.trueType)||Tb(e.falseType)}return!1}function Sb(e,n,t=!1,r=[]){const o=Eb(n||D(e,e=>1),t,r);return o===kt?It:e.length?xb(o,e):o}function Eb(e,n,t){if(1===e.length&&4&e[0])return n?tr:Zt;const r=D(e,e=>1&e?"#":2&e?"?":4&e?".":"*").join()+(n?"R":"")+(U(t,e=>!!e)?","+D(t,e=>e?cB(e):"_").join(","):"");let o=Ze.get(r);return o||Ze.set(r,o=function(e,n,t){const r=e.length,o=A(e,e=>!!(9&e));let i;const a=[];let l=0;if(r){i=new Array(r);for(let o=0;o<r;o++){const r=i[o]=Vs(),s=e[o];if(l|=s,!(12&l)){const e=Yi(4|(2&s?16777216:0),""+o,n?8:0);e.links.tupleLabelDeclaration=null==t?void 0:t[o],e.links.type=r,a.push(e)}}}const c=a.length,d=Yi(4,"length",n?8:0);if(12&l)d.links.type=Kn;else{const e=[];for(let n=o;n<=r;n++)e.push(kS(n));d.links.type=Gb(e)}a.push(d);const u=Gs(12);return u.typeParameters=i,u.outerTypeParameters=void 0,u.localTypeParameters=i,u.instantiations=new Map,u.instantiations.set(uy(u.typeParameters),u),u.target=u,u.resolvedTypeArguments=u.typeParameters,u.thisType=Vs(),u.thisType.isThisType=!0,u.thisType.constraint=u,u.declaredProperties=a,u.declaredCallSignatures=s,u.declaredConstructSignatures=s,u.declaredIndexInfos=s,u.elementFlags=e,u.minLength=o,u.fixedLength=c,u.hasRestElement=!!(12&l),u.combinedFlags=l,u.readonly=n,u.labeledElementDeclarations=t,u}(e,n,t)),o}function xb(e,n){return 8&e.objectFlags?Rb(e,n):gy(e,n)}function Rb(e,n){var t,o,i,a;if(!(14&e.combinedFlags))return gy(e,n);if(8&e.combinedFlags){const t=b(n,(n,t)=>!!(8&e.elementFlags[t]&&1179648&n.flags));if(t>=0)return $b(D(n,(n,t)=>8&e.elementFlags[t]?n:On))?jC(n[t],r=>Rb(e,Se(n,t,r))):Mn}const s=[],l=[],c=[];let u=-1,p=-1,f=-1;for(let _=0;_<n.length;_++){const l=n[_],c=e.elementFlags[_];if(8&c)if(1&l.flags)h(l,4,null==(t=e.labeledElementDeclarations)?void 0:t[_]);else if(58982400&l.flags||Uf(l))h(l,8,null==(o=e.labeledElementDeclarations)?void 0:o[_]);else if(mR(l)){const e=Mb(l);if(e.length+s.length>=1e4)return Bi(r,Cm(r)?fa.Type_produces_a_tuple_type_that_is_too_large_to_represent:fa.Expression_produces_a_tuple_type_that_is_too_large_to_represent),Mn;d(e,(e,n)=>{var t;return h(e,l.target.elementFlags[n],null==(t=l.target.labeledElementDeclarations)?void 0:t[n])})}else h($x(l)&&p_(l,Kn)||Mn,4,null==(i=e.labeledElementDeclarations)?void 0:i[_]);else h(l,c,null==(a=e.labeledElementDeclarations)?void 0:a[_])}for(let r=0;r<u;r++)2&l[r]&&(l[r]=1);p>=0&&p<f&&(s[p]=Gb(N(s.slice(p,f+1),(e,n)=>8&l[p+n]?jT(e,Kn):e)),s.splice(p+1,f-p),l.splice(p+1,f-p),c.splice(p+1,f-p));const m=Eb(l,e.readonly,c);return m===kt?It:l.length?gy(m,s):m;function h(e,n,t){1&n&&(u=l.length),4&n&&p<0&&(p=l.length),6&n&&(f=l.length),s.push(2&n?Pc(e,!0):e),l.push(n),c.push(t)}}function Ib(e,n,t=0){const r=e.target,o=Ty(e)-t;return n>r.fixedLength?function(e){const n=gR(e);return n&&Jv(n)}(e)||Sb(s):Sb(by(e).slice(n,o),r.elementFlags.slice(n,o),!1,r.labeledElementDeclarations&&r.labeledElementDeclarations.slice(n,o))}function Db(e){return Gb(re(Pe(e.target.fixedLength,e=>NS(""+e)),fT(e.target.readonly?tr:Zt)))}function Cb(e,n){return e.elementFlags.length-T(e.elementFlags,e=>!(e&n))-1}function Nb(e){return e.fixedLength+Cb(e,3)}function Mb(e){const n=by(e),t=Ty(e);return n.length===t?n:n.slice(0,t)}function Pb(e){return e.id}function Lb(e,n){return Ee(e,n,Pb,vn)>=0}function kb(e,n){const t=Ee(e,n,Pb,vn);return t<0&&(e.splice(~t,0,n),!0)}function wb(e,n,t){const r=t.flags;if(!(131072&r))if(n|=473694207&r,465829888&r&&(n|=33554432),2097152&r&&67108864&bT(t)&&(n|=536870912),t===Cn&&(n|=8388608),ac(t)&&(n|=1073741824),!X&&98304&r)65536&bT(t)||(n|=4194304);else{const n=e.length,r=n&&t.id>e[n-1].id?~n:Ee(e,t,Pb,vn);r<0&&e.splice(~r,0,t)}return n}function Ob(e,n,t){let r;for(const o of t)o!==r&&(n=1048576&o.flags?Ob(e,n|(Wb(o)?1048576:0),o.types):wb(e,n,o),r=o);return n}function Fb(e,n){return 134217728&n.flags?DI(e,n):xI(e,n)}function Wb(e){return!!(1048576&e.flags&&(e.aliasSymbol||e.origin))}function zb(e,n){for(const t of n)if(1048576&t.flags){const n=t.origin;t.aliasSymbol||n&&!(1048576&n.flags)?se(e,t):n&&1048576&n.flags&&zb(e,n.types)}}function Bb(e,n){const t=zs(e);return t.types=n,t}function Gb(e,n=1,t,r,o){if(0===e.length)return ut;if(1===e.length)return e[0];if(2===e.length&&!o&&(1048576&e[0].flags||1048576&e[1].flags)){const o=0===n?"N":2===n?"S":"L",i=e[0].id<e[1].id?0:1,a=e[i].id+o+e[1-i].id+my(t,r);let s=rn.get(a);return s||(s=Vb(e,n,t,r,void 0),rn.set(a,s)),s}return Vb(e,n,t,r,o)}function Vb(e,n,t,o,i){let a=[];const s=Ob(a,0,e);if(0!==n){if(3&s)return 1&s?8388608&s?Cn:1073741824&s?Mn:In:On;if(32768&s&&a.length>=2&&a[0]===Fn&&a[1]===zn&&Vn(a,1),(402664352&s||16384&s&&32768&s)&&function(e,n,t){let r=e.length;for(;r>0;){r--;const o=e[r],i=o.flags;(402653312&i&&4&n||256&i&&8&n||2048&i&&64&n||8192&i&&4096&n||t&&32768&i&&16384&n||CS(o)&&Lb(e,o.regularType))&&Vn(e,r)}}(a,s,!!(2&n)),128&s&&402653184&s&&function(e){const n=x(e,PT);if(n.length){let t=e.length;for(;t>0;){t--;const r=e[t];128&r.flags&&U(n,e=>Fb(r,e))&&Vn(e,t)}}}(a),536870912&s&&function(e){const n=[];for(const t of e)if(2097152&t.flags&&67108864&bT(t)){const e=8650752&t.types[0].flags?0:1;se(n,t.types[e])}for(const t of n){const n=[];for(const r of e)if(2097152&r.flags&&67108864&bT(r)){const e=8650752&r.types[0].flags?0:1;r.types[e]===t&&kb(n,r.types[1-e])}if(LC(Tm(t),e=>Lb(n,e))){let r=e.length;for(;r>0;){r--;const o=e[r];if(2097152&o.flags&&67108864&bT(o)){const i=8650752&o.types[0].flags?0:1;o.types[i]===t&&Lb(n,o.types[1-i])&&Vn(e,r)}}kb(e,t)}}}(a),2===n&&(a=function(e,n){var t;if(e.length<2)return e;const o=uy(e),i=mn.get(o);if(i)return i;const a=n&&U(e,e=>!!(524288&e.flags)&&!Uf(e)&&lA(Jf(e))),s=e.length;let l=s,c=0;for(;l>0;){l--;const n=e[l];if(a||469499904&n.flags){if(262144&n.flags&&1048576&Sm(n).flags){DA(n,Gb(D(e,e=>e===n?ut:e)),Ti)&&Vn(e,l);continue}const o=61603840&n.flags?y(cm(n),e=>iR(Vd(e))):void 0,i=o&&xS(Vd(o));for(const a of e)if(n!==a){if(1e5===c&&c/(s-l)*s>1e6)return null==(t=Kt)||t.instant(Kt.Phase.CheckTypes,"removeSubtypes_DepthLimit",{typeIds:e.map(e=>e.id)}),void Bi(r,fa.Expression_produces_a_union_type_that_is_too_complex_to_represent);if(c++,o&&61603840&a.flags){const e=nc(a,o.escapedName);if(e&&iR(e)&&xS(e)!==i)continue}if(DA(n,a,Ti)&&(!(1&bT(Kd(n)))||!(1&bT(Kd(a)))||GE(n,a))){Vn(e,l);break}}}}return mn.set(o,e),e}(a,!!(524288&s)),!a))return Mn;if(0===a.length)return 65536&s?4194304&s?jn:Un:32768&s?4194304&s?Fn:Wn:ut}if(!i&&1048576&s){const n=[];zb(n,e);const r=[];for(const e of a)U(n,n=>Lb(n.types,e))||r.push(e);if(!t&&1===n.length&&0===r.length)return n[0];if(xe(n,(e,n)=>e+n.types.length,0)+r.length===a.length){for(const e of n)kb(r,e);i=Bb(1048576,r)}}return Ub(a,(36323331&s?0:32768)|(2097152&s?16777216:0),t,o,i)}function jb(e,n){return e.kind===n.kind&&e.parameterIndex===n.parameterIndex}function Ub(e,n,t,r,o){if(0===e.length)return ut;if(1===e.length)return e[0];const i=(o?1048576&o.flags?`|${uy(o.types)}`:2097152&o.flags?`&${uy(o.types)}`:`#${o.type.id}|${uy(e)}`:uy(e))+my(t,r);let a=tn.get(i);return a||(a=Fs(1048576),a.objectFlags=n|hy(e,98304),a.types=e,a.origin=o,a.aliasSymbol=t,a.aliasTypeArguments=r,2===e.length&&512&e[0].flags&&512&e[1].flags&&(a.flags|=16,a.intrinsicName="boolean"),tn.set(i,a)),a}function Hb(e,n,t){const r=t.flags;return 2097152&r?Kb(e,n,t.types):(hA(t)?16777216&n||(n|=16777216,e.set(t.id.toString(),t)):(3&r?(t===Cn&&(n|=8388608),ac(t)&&(n|=1073741824)):!X&&98304&r||(t===zn&&(n|=262144,t=Fn),e.has(t.id.toString())||(109472&t.flags&&109472&n&&(n|=67108864),e.set(t.id.toString(),t))),n|=473694207&r),n)}function Kb(e,n,t){for(const r of t)n=Hb(e,n,xS(r));return n}function qb(e,n){for(const t of e)if(!Lb(t.types,n)){if(n===zn)return Lb(t.types,Fn);if(n===Fn)return Lb(t.types,zn);const e=128&n.flags?Hn:288&n.flags?Kn:2048&n.flags?qn:8192&n.flags?lt:void 0;if(!e||!Lb(t.types,e))return!1}return!0}function Jb(e,n){for(let t=0;t<e.length;t++)e[t]=kC(e[t],e=>!(e.flags&n))}function Xb(e,n=0,t,r){const o=new Map,i=Kb(o,0,e),a=Le(o.values());let s=0;if(131072&i)return S(a,pt)?pt:ut;if(X&&98304&i&&84410368&i||67108864&i&&402783228&i||402653316&i&&67238776&i||296&i&&469891796&i||2112&i&&469889980&i||12288&i&&469879804&i||49152&i&&469842940&i)return ut;if(402653184&i&&128&i&&function(e){let n=e.length;const t=x(e,e=>!!(128&e.flags));for(;n>0;){n--;const r=e[n];if(402653184&r.flags)for(const o of t){if(WE(o,r)){Vn(e,n);break}if(PT(r))return!0}}return!1}(a))return ut;if(1&i)return 8388608&i?Cn:1073741824&i?Mn:In;if(!X&&98304&i)return 16777216&i?ut:32768&i?Fn:jn;if((4&i&&402653312&i||8&i&&256&i||64&i&&2048&i||4096&i&&8192&i||16384&i&&32768&i||16777216&i&&470302716&i)&&(1&n||function(e,n){let t=e.length;for(;t>0;){t--;const r=e[t];(4&r.flags&&402653312&n||8&r.flags&&256&n||64&r.flags&&2048&n||4096&r.flags&&8192&n||16384&r.flags&&32768&n||hA(r)&&470302716&n)&&Vn(e,t)}}(a,i)),262144&i&&(a[a.indexOf(Fn)]=zn),0===a.length)return On;if(1===a.length)return a[0];if(2===a.length&&!(2&n)){const e=8650752&a[0].flags?0:1,n=a[e],t=a[1-e];if(8650752&n.flags&&(469893116&t.flags&&!LT(t)||16777216&i)){const e=Tm(n);if(e&&LC(e,e=>!!(469893116&e.flags)||hA(e))){if(zE(e,t))return n;if(!(1048576&e.flags&&NC(e,e=>zE(e,t))||zE(t,e)))return ut;s=67108864}}}const l=uy(a)+(2&n?"*":my(t,r));let c=on.get(l);if(!c){if(1048576&i)if(function(e){let n;const t=b(e,e=>!!(32768&bT(e)));if(t<0)return!1;let r=t+1;for(;r<e.length;){const o=e[r];32768&bT(o)?((n||(n=[e[t]])).push(o),Vn(e,r)):r++}if(!n)return!1;const o=[],i=[];for(const a of n)for(const e of a.types)if(kb(o,e)&&qb(n,e)){if(e===Fn&&i.length&&i[0]===zn)continue;if(e===zn&&i.length&&i[0]===Fn){i[0]=zn;continue}kb(i,e)}return e[t]=Ub(i,32768),!0}(a))c=Xb(a,n,t,r);else if(g(a,e=>!!(1048576&e.flags&&32768&e.types[0].flags))){const e=U(a,kR)?zn:Fn;Jb(a,32768),c=Gb([Xb(a,n),e],1,t,r)}else if(g(a,e=>!!(1048576&e.flags&&(65536&e.types[0].flags||65536&e.types[1].flags))))Jb(a,65536),c=Gb([Xb(a,n),jn],1,t,r);else if(a.length>=3&&e.length>2){const e=Math.floor(a.length/2);c=Xb([Xb(a.slice(0,e),n),Xb(a.slice(e),n)],n,t,r)}else{if(!$b(a))return Mn;const e=function(e,n){const t=Yb(e),r=[];for(let o=0;o<t;o++){const t=e.slice();let i=o;for(let n=e.length-1;n>=0;n--)if(1048576&e[n].flags){const r=e[n].types,o=r.length;t[n]=r[i%o],i=Math.floor(i/o)}const a=Xb(t,n);131072&a.flags||r.push(a)}return r}(a,n);c=Gb(e,1,t,r,U(e,e=>!!(2097152&e.flags))&&Zb(e)>Zb(a)?Bb(2097152,a):void 0)}else c=function(e,n,t,r){const o=Fs(2097152);return o.objectFlags=n|hy(e,98304),o.types=e,o.aliasSymbol=t,o.aliasTypeArguments=r,o}(a,s,t,r);on.set(l,c)}return c}function Yb(e){return xe(e,(e,n)=>1048576&n.flags?e*n.types.length:131072&n.flags?0:e,1)}function $b(e){var n;const t=Yb(e);return!(t>=1e5)||(null==(n=Kt)||n.instant(Kt.Phase.CheckTypes,"checkCrossProductUnion_DepthLimit",{typeIds:e.map(e=>e.id),size:t}),Bi(r,fa.Expression_produces_a_union_type_that_is_too_complex_to_represent),!1)}function Qb(e){return 3145728&e.flags&&!e.aliasSymbol?1048576&e.flags&&e.origin?Qb(e.origin):Zb(e.types):1}function Zb(e){return xe(e,(e,n)=>e+Qb(n),0)}function eT(e,n){const t=Fs(4194304);return t.type=e,t.indexFlags=n,t}function nT(e,n){return 1&n?e.resolvedStringIndexType||(e.resolvedStringIndexType=eT(e,1)):e.resolvedIndexType||(e.resolvedIndexType=eT(e,0))}function tT(e,n){const t=Sf(e),r=Ef(e),o=Af(e.target||e);if(!(o||2&n))return r;const i=[];if(OT(r)){if(If(e))return nT(e,n);IC(r,s)}else if(If(e)){mf(Vm(Df(e)),8576,!!(1&n),s)}else IC(lf(r),s);const a=2&n?kC(Gb(i),e=>!(5&e.flags)):Gb(i);return 1048576&a.flags&&1048576&r.flags&&uy(a.types)===uy(r.types)?r:a;function s(n){const r=o?xE(o,fE(e.mapper,t,n)):n;i.push(r===Hn?_t:r)}}function rT(e){if(uD(e))return ut;if(HI(e))return xS(HF(e));if(RD(e))return xS(uL(e));const n=jg(e);return void 0!==n?NS(yl(n)):qd(e)?xS(HF(e)):ut}function oT(e,n,t){if(t||!(6&lT(e))){let t=da(Pp(e)).nameType;if(!t){const n=Dl(e.valueDeclaration);t="default"===e.escapedName?NS("default"):n&&rT(n)||(Jg(e)?void 0:NS(Tl(e)))}if(t&&t.flags&n)return t}return ut}function iT(e,n){return!!(e.flags&n||2097152&e.flags&&U(e.types,e=>iT(e,n)))}function aT(e,n,t){const r=t&&(7&bT(e)||e.aliasSymbol)?function(e){const n=zs(4194304);return n.type=e,n}(e):void 0;return Gb(K(D(cm(e),e=>oT(e,n)),D(l_(e),e=>e!==po&&iT(e.keyType,n)?e.keyType===Hn&&8&n?_t:e.keyType:ut)),1,void 0,void 0,r)}function cT(e,n=0){return!!(58982400&e.flags||hR(e)||Uf(e)&&(!function(e){const n=Sf(e);return function e(t){return!!(470810623&t.flags)||(16777216&t.flags?t.root.isDistributive&&t.checkType===n:137363456&t.flags?g(t.types,e):8388608&t.flags?e(t.objectType)&&e(t.indexType):33554432&t.flags?e(t.baseType)&&e(t.constraint):!!(268435456&t.flags)&&e(t.type))}(Af(e)||n)}(e)||2===qf(e))||1048576&e.flags&&!(4&n)&&Th(e)||2097152&e.flags&&iF(e,465829888)&&U(e.types,hA))}function fT(e,n=0){return ky(e=Qm(e))?Ny(fT(e.baseType,n)):cT(e,n)?nT(e,n):1048576&e.flags?Xb(D(e.types,e=>fT(e,n))):2097152&e.flags?Gb(D(e.types,e=>fT(e,n))):32&bT(e)?tT(e,n):e===Cn?Cn:2&e.flags?ut:131073&e.flags?gt:aT(e,(2&n?128:402653316)|(1&n?0:12584),0===n)}function mT(e){const n=(Gr||(Gr=Qy("Extract",2,!0)||Sn),Gr===Sn?void 0:Gr);return n?Ey(n,[e,Hn]):Hn}function hT(e,n){const t=b(n,e=>!!(1179648&e.flags));if(t>=0)return $b(n)?jC(n[t],r=>hT(e,Se(n,t,r))):Mn;if(S(n,Cn))return Cn;const r=[],o=[];let i=e[0];if(!function e(n,t){for(let a=0;a<t.length;a++){const s=t[a];if(101248&s.flags)i+=_T(s)||"",i+=n[a+1];else if(134217728&s.flags){if(i+=s.texts[0],!e(s.texts,s.types))return!1;i+=n[a+1]}else{if(!OT(s)&&!MT(s))return!1;r.push(s),o.push(i),i=n[a+1]}}return!0}(e,n))return Hn;if(0===r.length)return NS(i);if(o.push(i),g(o,e=>""===e)){if(g(r,e=>!!(4&e.flags)))return Hn;if(1===r.length&&PT(r[0]))return r[0]}const a=`${uy(r)}|${D(o,e=>e.length).join(",")}|${o.join("")}`;let s=un.get(a);return s||un.set(a,s=function(e,n){const t=Fs(134217728);return t.texts=e,t.types=n,t}(o,r)),s}function _T(e){return 128&e.flags?e.value:256&e.flags?""+e.value:2048&e.flags?bA(e.value):98816&e.flags?e.intrinsicName:void 0}function gT(e,n){return 1179648&n.flags?jC(n,n=>gT(e,n)):128&n.flags?NS(yT(e,n.value)):134217728&n.flags?hT(...function(e,n,t){switch(aB.get(e.escapedName)){case 0:return[n.map(e=>e.toUpperCase()),t.map(n=>gT(e,n))];case 1:return[n.map(e=>e.toLowerCase()),t.map(n=>gT(e,n))];case 2:return[""===n[0]?n:[n[0].charAt(0).toUpperCase()+n[0].slice(1),...n.slice(1)],""===n[0]?[gT(e,t[0]),...t.slice(1)]:t];case 3:return[""===n[0]?n:[n[0].charAt(0).toLowerCase()+n[0].slice(1),...n.slice(1)],""===n[0]?[gT(e,t[0]),...t.slice(1)]:t]}return[n,t]}(e,n.texts,n.types)):268435456&n.flags&&e===n.symbol?n:268435461&n.flags||OT(n)?ST(e,n):MT(n)?ST(e,hT(["",""],[n])):n}function yT(e,n){switch(aB.get(e.escapedName)){case 0:return n.toUpperCase();case 1:return n.toLowerCase();case 2:return n.charAt(0).toUpperCase()+n.slice(1);case 3:return n.charAt(0).toLowerCase()+n.slice(1)}return n}function ST(e,n){const t=`${dB(e)},${Pb(n)}`;let r=pn.get(t);return r||pn.set(t,r=function(e,n){const t=Ws(268435456,e);return t.type=n,t}(e,n)),r}function ET(e){if(oe)return!1;if(4096&bT(e))return!0;if(1048576&e.flags)return g(e.types,ET);if(2097152&e.flags)return U(e.types,ET);if(465829888&e.flags){const n=Am(e);return n!==e&&ET(n)}return!1}function AT(e,n){return ux(e)?px(e):n&&od(n)?jg(n):void 0}function xT(e,n){if(8208&n.flags){const t=ml(e.parent,e=>!IT(e))||e.parent;return Wd(t)?zd(t)&&dD(e)&&oD(t,e):g(n.declarations,e=>!ad(e)||Ji(e))}return!0}function DT(e,n,t,r,o,i){const a=o&&213===o.kind?o:void 0,s=o&&uD(o)?void 0:AT(t,o);if(void 0!==s){if(256&i)return RP(n,s)||In;const e=wh(n,s);if(e){if(64&i&&o&&e.declarations&&qi(e)&&xT(o,e)){Xi((null==a?void 0:a.argumentExpression)??(iC(o)?o.indexType:o),e.declarations,s)}if(a){if(wk(e,a,Ok(a.expression,n.symbol)),ZO(a,e,Z_(a)))return void Bi(a.argumentExpression,fa.Cannot_assign_to_0_because_it_is_a_read_only_property,hl(e));if(8&i&&(ua(o).resolvedSymbol=e),bk(a,e))return Dn}const t=4&i?Bd(e):Vd(e);return a&&1!==Z_(a)?kN(a,t):o&&iC(o)&&kR(t)?Gb([t,Fn]):t}if(LC(n,mR)&&UA(s)){const e=+s;if(o&&LC(n,e=>!(12&e.target.combinedFlags))&&!(16&i)){const t=CT(o);if(mR(n)){if(e<0)return Bi(t,fa.A_tuple_type_cannot_be_indexed_with_a_negative_value),Fn;Bi(t,fa.Tuple_type_0_of_length_1_has_no_element_at_index_2,El(n),Ty(n),yl(s))}else Bi(t,fa.Property_0_does_not_exist_on_type_1,yl(s),El(n))}if(e>=0)return l(u_(n,Kn)),yR(n,e,1&i?zn:void 0)}}if(!(98304&t.flags)&&aF(t,402665900)){if(131073&n.flags)return n;const c=v_(n,t)||u_(n,Hn);if(c){if(2&i&&c.keyType!==Kn)return void(a&&(4&i?Bi(a,fa.Type_0_is_generic_and_can_only_be_indexed_for_reading,El(e)):Bi(a,fa.Type_0_cannot_be_used_to_index_type_1,El(t),El(e))));if(o&&c.keyType===Hn&&!aF(t,12)){return Bi(CT(o),fa.Type_0_cannot_be_used_as_an_index_type,El(t)),1&i?Gb([c.type,zn]):c.type}return l(c),1&i&&!(n.symbol&&384&n.symbol.flags&&t.symbol&&1024&t.flags&&xs(t.symbol)===n.symbol)?Gb([c.type,zn]):c.type}if(131072&t.flags)return ut;if(ET(n))return In;if(a&&!lF(n)){if(LI(n)){if(oe&&384&t.flags)return gi.add(Vf(a,fa.Property_0_does_not_exist_on_type_1,t.value,El(n))),Fn;if(12&t.flags){return Gb(re(D(n.properties,e=>Vd(e)),Fn))}}if(n.symbol===Ce&&void 0!==s&&Ce.exports.has(s)&&418&Ce.exports.get(s).flags)Bi(a,fa.Property_0_does_not_exist_on_type_1,yl(s),El(n));else if(oe&&!(128&i))if(void 0!==s&&Ik(s,n)){const e=El(n);Bi(a,fa.Property_0_does_not_exist_on_type_1_Did_you_mean_to_access_the_static_member_2_instead,s,e,e+"["+Zp(a.argumentExpression)+"]")}else if(p_(n,Kn))Bi(a.argumentExpression,fa.Element_implicitly_has_an_any_type_because_index_expression_is_not_of_type_number);else{let e;if(void 0!==s&&(e=Mk(s,n)))void 0!==e&&Bi(a.argumentExpression,fa.Property_0_does_not_exist_on_type_1_Did_you_mean_2,s,El(n),e);else{const e=function(e,n,t){function r(n){const r=sm(e,n);if(r){const e=ew(Vd(r));return!!e&&gO(e)>=1&&BE(t,pO(e,0))}return!1}const o=eg(n)?"set":"get";if(!r(o))return;let i=mb(n.expression);void 0===i?i=o:i+="."+o;return i}(n,a,t);if(void 0!==e)Bi(a,fa.Element_implicitly_has_an_any_type_because_type_0_has_no_index_signature_Did_you_mean_to_call_1,El(n),e);else{let e;if(1024&t.flags)e=rS(void 0,fa.Property_0_does_not_exist_on_type_1,"["+El(t)+"]",El(n));else if(8192&t.flags){const r=ns(t.symbol,a);e=rS(void 0,fa.Property_0_does_not_exist_on_type_1,"["+r+"]",El(n))}else 128&t.flags||256&t.flags?e=rS(void 0,fa.Property_0_does_not_exist_on_type_1,t.value,El(n)):12&t.flags&&(e=rS(void 0,fa.No_index_signature_with_a_parameter_of_type_0_was_found_on_type_1,El(t),El(n)));e=rS(e,fa.Element_implicitly_has_an_any_type_because_expression_of_type_0_can_t_be_used_to_index_type_1,El(r),El(n)),gi.add(Hf(Sp(a),a,e))}}}return}}if(16&i&&LI(n))return Fn;if(ET(n))return In;if(o){const e=CT(o);if(10!==e.kind&&384&t.flags)Bi(e,fa.Property_0_does_not_exist_on_type_1,""+t.value,El(n));else if(12&t.flags)Bi(e,fa.Type_0_has_no_matching_index_signature_for_type_1,El(n),El(t));else{const n=10===e.kind?"bigint":El(t);Bi(e,fa.Type_0_cannot_be_used_as_an_index_type,n)}}return rc(t)?t:void 0;function l(e){e&&e.isReadonly&&a&&(eg(a)||dg(a))&&Bi(a,fa.Index_signature_in_type_0_only_permits_reading,El(n))}}function CT(e){return 213===e.kind?e.argumentExpression:200===e.kind?e.indexType:168===e.kind?e.expression:e}function MT(e){if(2097152&e.flags){let n=!1;for(const t of e.types)if(101248&t.flags||MT(t))n=!0;else if(!(524288&t.flags))return!1;return n}return!!(77&e.flags)||PT(e)}function PT(e){return!!(134217728&e.flags)&&g(e.types,MT)||!!(268435456&e.flags)&&MT(e.type)}function LT(e){return!!(402653184&e.flags)&&!PT(e)}function kT(e){return!!FT(e)}function wT(e){return!!(4194304&FT(e))}function OT(e){return!!(8388608&FT(e))}function FT(e){return 3145728&e.flags?(2097152&e.objectFlags||(e.objectFlags|=2097152|xe(e.types,(e,n)=>e|FT(n),0)),12582912&e.objectFlags):33554432&e.flags?(2097152&e.objectFlags||(e.objectFlags|=2097152|FT(e.baseType)|FT(e.constraint)),12582912&e.objectFlags):(58982400&e.flags||Uf(e)||hR(e)?4194304:0)|(63176704&e.flags||LT(e)?8388608:0)}function WT(e,n){return 8388608&e.flags?function(e,n){const t=n?"simplifiedForWriting":"simplifiedForReading";if(e[t])return e[t]===Ft?e:e[t];e[t]=Ft;const r=WT(e.objectType,n),o=WT(e.indexType,n),i=function(e,n,t){if(1048576&n.flags){const r=D(n.types,n=>WT(jT(e,n),t));return t?Xb(r):Gb(r)}}(r,o,n);if(i)return e[t]=i;if(!(465829888&o.flags)){const i=zT(r,o,n);if(i)return e[t]=i}if(hR(r)&&296&o.flags){const i=bR(r,8&o.flags?0:r.target.fixedLength,0,n);if(i)return e[t]=i}if(Uf(r)&&2!==qf(r))return e[t]=jC(VT(r,e.indexType),e=>WT(e,n));return e[t]=e}(e,n):16777216&e.flags?function(e,n){const t=e.checkType,r=e.extendsType,o=tS(e),i=iS(e);if(131072&i.flags&&JT(o)===JT(t)){if(1&t.flags||BE(DE(t),DE(r)))return WT(o,n);if(BT(t,r))return ut}else if(131072&o.flags&&JT(i)===JT(t)){if(!(1&t.flags)&&BE(DE(t),DE(r)))return ut;if(1&t.flags||BT(t,r))return WT(i,n)}return e}(e,n):e}function zT(e,n,t){if(1048576&e.flags||2097152&e.flags&&!cT(e)){const r=D(e.types,e=>WT(jT(e,n),t));return 2097152&e.flags||t?Xb(r):Gb(r)}}function BT(e,n){return!!(131072&Gb([qp(e,n),ut]).flags)}function VT(e,n){const t=tE([Sf(e)],[n]),r=dE(e.mapper,t),o=xE(xf(e.target||e),r),i=Pf(e)>0||(kT(e)?zf(Df(e))>0:function(e,n){const t=Tm(n);return!!t&&U(cm(e),e=>!!(16777216&e.flags)&&BE(oT(e,8576),t))}(e,n));return Pc(o,!0,i)}function jT(e,n,t=0,r,o,i){return HT(e,n,t,r,o,i)||(r?Mn:On)}function UT(e,n){return LC(e,e=>{if(384&e.flags){const t=px(e);if(UA(t)){const e=+t;return e>=0&&e<n}}return!1})}function HT(e,n,t=0,r,o,i){if(e===Cn||n===Cn)return Cn;if(!yA(e=Qm(e))||98304&n.flags||!aF(n,12)||(n=Hn),O.noUncheckedIndexedAccess&&32&t&&(t|=1),OT(n)||(r&&200!==r.kind?hR(e)&&!UT(n,Nb(e.target)):wT(e)&&(!mR(e)||!UT(n,Nb(e.target)))||Th(e))){if(3&e.flags)return e;const r=1&t,a=e.id+","+n.id+","+r+my(o,i);let s=dn.get(a);return s||dn.set(a,s=function(e,n,t,r,o){const i=Fs(8388608);return i.objectType=e,i.indexType=n,i.accessFlags=t,i.aliasSymbol=r,i.aliasTypeArguments=o,i}(e,n,r,o,i)),s}const a=qm(e);if(1048576&n.flags&&!(16&n.flags)){const s=[];let l=!1;for(const o of n.types){const i=DT(e,a,o,n,r,t|(l?128:0));if(i)s.push(i);else{if(!r)return;l=!0}}if(l)return;return 4&t?Xb(s,0,o,i):Gb(s,1,o,i)}return DT(e,a,n,n,r,72|t)}function KT(e){const n=ua(e);if(!n.resolvedType){const t=qS(e.objectType),r=qS(e.indexType),o=pS(e);n.resolvedType=jT(t,r,0,e,o,fS(o))}return n.resolvedType}function qT(e){const n=ua(e);if(!n.resolvedType){const t=Gs(32,e.symbol);t.declaration=e,t.aliasSymbol=pS(e),t.aliasTypeArguments=fS(t.aliasSymbol),n.resolvedType=t,Ef(t)}return n.resolvedType}function JT(e){return 33554432&e.flags?JT(e.baseType):8388608&e.flags&&(33554432&e.objectType.flags||33554432&e.indexType.flags)?jT(JT(e.objectType),JT(e.indexType)):e}function YT(e){return JD(e)&&c(e.elements)>0&&!U(e.elements,e=>YD(e)||$D(e)||XD(e)&&!(!e.questionToken&&!e.dotDotDotToken))}function $T(e,n){return kT(e)||n&&mR(e)&&U(Mb(e),kT)}function QT(e,n,t,o,i){let a,s,l=0;for(;;){if(1e3===l)return Bi(r,fa.Type_instantiation_is_excessively_deep_and_possibly_infinite),Mn;const u=xE(JT(e.checkType),n),p=xE(e.extendsType,n);if(u===Mn||p===Mn)return Mn;if(u===Cn||p===Cn)return Cn;const f=lg(e.node.checkType),m=lg(e.node.extendsType),h=YT(f)&&YT(m)&&c(f.elements)===c(m.elements),_=$T(u,h);let g;if(e.inferTypeParameters){const t=nI(e.inferTypeParameters,void 0,0);n&&(t.nonFixingMapper=dE(t.nonFixingMapper,n)),_||NI(t.inferences,u,p,1536),g=n?dE(t.mapper,n):t.mapper}const y=g?xE(e.extendsType,g):p;if(!_&&!$T(y,h)){if(!(3&y.flags)&&(1&u.flags||!BE(IE(u),IE(y)))){(1&u.flags||t&&!(131072&y.flags)&&NC(IE(y),e=>BE(e,IE(u))))&&(s||(s=[])).push(xE(qS(e.node.trueType),g||n));const r=qS(e.node.falseType);if(16777216&r.flags){const t=r.root;if(t.node.parent===e.node&&(!t.isDistributive||t.checkType===e.checkType)){e=t;continue}if(d(r,n))continue}a=xE(r,n);break}if(3&y.flags||BE(DE(u),DE(y))){const t=qS(e.node.trueType),r=g||n;if(d(t,r))continue;a=xE(t,r);break}}a=Fs(16777216),a.root=e,a.checkType=xE(e.checkType,n),a.extendsType=xE(e.extendsType,n),a.mapper=n,a.combinedMapper=g,a.aliasSymbol=o||e.aliasSymbol,a.aliasTypeArguments=o?i:YS(e.aliasTypeArguments,n);break}return s?Gb(re(s,a)):a;function d(t,r){if(16777216&t.flags&&r){const a=t.root;if(a.outerTypeParameters){const s=dE(t.mapper,r),c=D(a.outerTypeParameters,e=>rE(e,s)),d=tE(a.outerTypeParameters,c),u=a.isDistributive?rE(a.checkType,d):void 0;if(!(u&&u!==a.checkType&&1179648&u.flags))return e=a,n=d,o=void 0,i=void 0,a.aliasSymbol&&l++,!0}}return!1}}function tS(e){return e.resolvedTrueType||(e.resolvedTrueType=xE(qS(e.root.node.trueType),e.mapper))}function iS(e){return e.resolvedFalseType||(e.resolvedFalseType=xE(qS(e.root.node.falseType),e.mapper))}function sS(e){let n;return e.locals&&e.locals.forEach(e=>{262144&e.flags&&(n=re(n,Wu(e)))}),n}function lS(e){return dD(e)?[e]:re(lS(e.left),e.right)}function cS(e){var n;const t=ua(e);if(!t.resolvedType){if(!hm(e))return Bi(e.argument,fa.String_literal_expected),t.resolvedSymbol=Sn,t.resolvedType=Mn;const r=e.isTypeOf?111551:16777216&e.flags?900095:788968,o=os(e,e.argument.literal);if(!o)return t.resolvedSymbol=Sn,t.resolvedType=Mn;const i=!!(null==(n=o.exports)?void 0:n.get("export=")),a=ls(o,!1);if(Np(e.qualifier))if(a.flags&r)t.resolvedType=dS(e,t,a,r);else{Bi(e,111551===r?fa.Module_0_does_not_refer_to_a_value_but_is_used_as_a_value_here:fa.Module_0_does_not_refer_to_a_type_but_is_used_as_a_type_here_Did_you_mean_typeof_import_0,e.argument.literal.text),t.resolvedSymbol=Sn,t.resolvedType=Mn}else{const n=lS(e.qualifier);let o,s=a;for(;o=n.shift();){const a=n.length?1920:r,l=Ss(Ka(s)),c=e.isTypeOf||Lh(e)&&i?wh(Vd(l),o.escapedText,!1,!0):void 0,d=(e.isTypeOf?void 0:pa(_s(l),o.escapedText,a))??c;if(!d)return Bi(o,fa.Namespace_0_has_no_exported_member_1,ns(s),Of(o)),t.resolvedType=Mn;ua(o).resolvedSymbol=d,ua(o.parent).resolvedSymbol=d,s=d}t.resolvedType=dS(e,t,s,r)}}return t.resolvedType}function dS(e,n,t,r){const o=Ka(t);return n.resolvedSymbol=o,111551===r?eO(Vd(t),e):Cy(e,o)}function uS(e){const n=ua(e);if(!n.resolvedType){const t=pS(e);if(!e.symbol||0===Cp(e.symbol).size&&!t)n.resolvedType=Mt;else{let r=Gs(16,e.symbol);r.aliasSymbol=t,r.aliasTypeArguments=fS(t),DM(e)&&e.isArrayType&&(r=Jv(r)),n.resolvedType=r}}return n.resolvedType}function pS(e){let n=e.parent;for(;tC(n)||fM(n)||oC(n)&&148===n.operator;)n=n.parent;return P_(n)?Es(n):void 0}function fS(e){return e?ou(e):void 0}function mS(e){return!!(524288&e.flags)&&!Uf(e)}function hS(e){return cA(e)||!!(474058748&e.flags)}function _S(e,n){if(!(1048576&e.flags))return e;if(g(e.types,hS))return y(e.types,cA)||It;const t=y(e.types,e=>!hS(e));if(!t)return e;return y(e.types,e=>e!==t&&!hS(e))?e:function(e){const t=Qu();for(const o of cm(e))if(6&lT(o));else if(yS(o)){const e=65536&o.flags&&!(32768&o.flags),r=Yi(16777220,o.escapedName,cf(o)|(n?8:0));r.links.type=e?Fn:Pc(Vd(o),!0),r.declarations=o.declarations,r.links.nameType=da(o).nameType,r.links.syntheticOrigin=o,t.set(o.escapedName,r)}const r=qs(e.symbol,t,s,s,l_(e));return r.objectFlags|=131200,r}(t)}function gS(e,n,t,r,o){if(1&e.flags||1&n.flags)return In;if(2&e.flags||2&n.flags)return On;if(131072&e.flags)return n;if(131072&n.flags)return e;if(1048576&(e=_S(e,o)).flags)return $b([e,n])?jC(e,e=>gS(e,n,t,r,o)):Mn;if(1048576&(n=_S(n,o)).flags)return $b([e,n])?jC(n,n=>gS(e,n,t,r,o)):Mn;if(473960444&n.flags)return e;if(wT(e)||wT(n)){if(cA(e))return n;if(2097152&e.flags){const i=e.types,a=i[i.length-1];if(mS(a)&&mS(n))return Xb(K(i.slice(0,i.length-1),[gS(a,n,t,r,o)]))}return Xb([e,n])}const i=Qu(),a=new Set,l=e===It?l_(n):Hp([e,n]);for(const s of cm(n))6&lT(s)?a.add(s.escapedName):yS(s)&&i.set(s.escapedName,vS(s,o));for(const s of cm(e))if(!a.has(s.escapedName)&&yS(s))if(i.has(s.escapedName)){const e=i.get(s.escapedName),n=Vd(e);if(16777216&e.flags){const t=K(s.declarations,e.declarations),r=Yi(4|16777216&s.flags,s.escapedName),o=Vd(s),a=wR(o),l=wR(n);r.links.type=a===l?o:Gb([o,l],2),r.links.leftSpread=s,r.links.rightSpread=e,r.declarations=t,r.links.nameType=da(s).nameType,i.set(s.escapedName,r)}}else i.set(s.escapedName,vS(s,o));const c=qs(t,i,s,s,N(l,e=>function(e,n){return e.isReadonly!==n?Qg(e.keyType,e.type,n,e.declaration,e.components):e}(e,o)));return c.objectFlags|=2228352|r,c}function yS(e){var n;return!(U(e.declarations,$c)||106496&e.flags&&(null==(n=e.declarations)?void 0:n.some(e=>md(e.parent))))}function vS(e,n){const t=65536&e.flags&&!(32768&e.flags);if(!t&&n===QO(e))return e;const r=Yi(4|16777216&e.flags,e.escapedName,cf(e)|(n?8:0));return r.links.type=t?Fn:Vd(e),r.declarations=e.declarations,r.links.nameType=da(e).nameType,r.links.syntheticOrigin=e,r}function bS(e,n,t,r){const o=Ws(e,t);return o.value=n,o.regularType=r||o,o}function TS(e){if(2976&e.flags){if(!e.freshType){const n=bS(e.flags,e.value,e.symbol,e);n.freshType=n,e.freshType=n}return e.freshType}return e}function xS(e){return 2976&e.flags?e.regularType:1048576&e.flags?e.regularType||(e.regularType=jC(e,xS)):e}function CS(e){return!!(2976&e.flags)&&e.freshType===e}function NS(e){let n;return an.get(e)||(an.set(e,n=bS(128,e)),n)}function kS(e){let n;return sn.get(e)||(sn.set(e,n=bS(256,e)),n)}function wS(e){let n;const t=bA(e);return ln.get(t)||(ln.set(t,n=bS(2048,e)),n)}function OS(e,n,t){let r;const o=`${n}${"string"==typeof e?"@":"#"}${e}`,i=1024|("string"==typeof e?128:256);return cn.get(o)||(cn.set(o,r=bS(i,e,t)),r)}function BS(e){if(Lh(e)&&fM(e)){const n=q_(e);n&&(e=w_(n)||n)}if(zm(e)){const n=Wm(e)?As(e.left):As(e);if(n){const e=da(n);return e.uniqueESSymbolType||(e.uniqueESSymbolType=function(e){const n=Ws(8192,e);return n.escapedName=`__@${n.symbol.escapedName}@${dB(n.symbol)}`,n}(n))}}return lt}function GS(e){const n=ua(e);return n.resolvedType||(n.resolvedType=function(e){const n=rh(e,!1,!1),t=n&&n.parent;if(t&&(md(t)||265===t.kind)&&!Pv(n)&&(!wD(n)||ug(e,n.body)))return bu(Es(t)).thisType;if(t&&hC(t)&&MC(t.parent)&&6===o_(t.parent))return bu(As(t.parent.left).parent).thisType;const r=16777216&e.flags?H_(e):void 0;return r&&EC(r)&&MC(r.parent)&&3===o_(r.parent)?bu(As(r.parent.left).parent).thisType:Fw(n)&&ug(e,n.body)?bu(Es(n)).thisType:(Bi(e,fa.A_this_type_is_available_only_in_a_non_static_member_of_a_class_or_interface),Mn)}(e)),n.resolvedType}function VS(e){return qS(HS(e.type)||e.type)}function HS(e){switch(e.kind){case 197:return HS(e.type);case 190:if(1===e.elements.length&&(192===(e=e.elements[0]).kind||203===e.kind&&e.dotDotDotToken))return HS(e.type);break;case 189:return e.elementType}}function qS(e){return function(e,n){let t,r=!0;for(;n&&!_u(n)&&321!==n.kind;){const o=n.parent;if(170===o.kind&&(r=!r),(r||8650752&e.flags)&&195===o.kind&&n===o.trueType){const n=Vy(e,o.checkType,o.extendsType);n&&(t=re(t,n))}else if(262144&e.flags&&201===o.kind&&!o.nameType&&n===o.type){const n=qS(o);if(Sf(n)===JT(e)){const e=bE(n);if(e){const n=um(e);n&&LC(n,Jx)&&(t=re(t,Gb([Kn,bt])))}}}n=o}return t?wy(e,Xb(t)):e}(JS(e),e)}function JS(e){switch(e.kind){case 133:case 313:case 314:return In;case 159:return On;case 154:return Hn;case 150:return Kn;case 163:return qn;case 136:return st;case 155:return lt;case 116:return ct;case 157:return Fn;case 106:return jn;case 146:return ut;case 151:return 524288&e.flags&&!oe?In:ht;case 141:return kn;case 198:case 110:return GS(e);case 202:return function(e){if(106===e.literal.kind)return jn;const n=ua(e);return n.resolvedType||(n.resolvedType=xS(HF(e.literal))),n.resolvedType}(e);case 184:case 234:return Ky(e);case 183:return e.assertsModifier?ct:st;case 187:return Jy(e);case 189:case 190:return function(e){const n=ua(e);if(!n.resolvedType){const t=eb(e);if(t===kt)n.resolvedType=It;else if(190===e.kind&&U(e.elements,e=>!!(8&Xv(e)))||!ib(e)){const r=189===e.kind?[qS(e.elementType)]:D(e.elements,qS);n.resolvedType=xb(t,r)}else n.resolvedType=190===e.kind&&0===e.elements.length?t:vy(t,e,void 0)}return n.resolvedType}(e);case 191:return function(e){return Pc(qS(e.type),!0)}(e);case 193:return function(e){const n=ua(e);if(!n.resolvedType){const t=pS(e);n.resolvedType=Gb(D(e.types,qS),1,t,fS(t))}return n.resolvedType}(e);case 194:return function(e){const n=ua(e);if(!n.resolvedType){const t=pS(e),r=D(e.types,qS),o=2===r.length?r.indexOf(Mt):-1,i=o>=0?r[1-o]:On,a=!!(76&i.flags||134217728&i.flags&&PT(i));n.resolvedType=Xb(r,a?1:0,t,fS(t))}return n.resolvedType}(e);case 315:return function(e){const n=qS(e.type);return X?RR(n,65536):n}(e);case 317:return Pc(qS(e.type));case 203:return function(e){const n=ua(e);return n.resolvedType||(n.resolvedType=e.dotDotDotToken?VS(e):Pc(qS(e.type),!0,!!e.questionToken))}(e);case 197:case 316:case 310:return qS(e.type);case 192:return VS(e);case 319:return function(e){const n=qS(e.type),{parent:t}=e,r=e.parent.parent;if(fM(e.parent)&&jM(r)){const e=H_(r),t=LM(r.parent.parent);if(e||t){const o=ge(t?r.parent.parent.typeExpression.parameters:e.parameters),i=V_(r);if(!o||i&&o.symbol===i&&Vu(o))return Jv(n)}}if(DD(t)&&AM(t.parent))return Jv(n);return Pc(n)}(e);case 185:case 186:case 188:case 323:case 318:case 324:return uS(e);case 199:return function(e){const n=ua(e);if(!n.resolvedType)switch(e.operator){case 143:n.resolvedType=fT(qS(e.type));break;case 158:n.resolvedType=155===e.type.kind?BS(ig(e.parent)):Mn;break;case 148:n.resolvedType=qS(e.type);break;default:dt.assertNever(e.operator)}return n.resolvedType}(e);case 200:return KT(e);case 201:return qT(e);case 195:return function(e){const n=ua(e);if(!n.resolvedType){const t=qS(e.checkType),r=pS(e),o=fS(r),i=tu(e,!0),a=o?i:x(i,n=>vE(n,e)),s={node:e,checkType:t,extendsType:qS(e.extendsType),isDistributive:!!(262144&t.flags),inferTypeParameters:sS(e),outerTypeParameters:a,instantiations:void 0,aliasSymbol:r,aliasTypeArguments:o};n.resolvedType=QT(s,void 0,!1),a&&(s.instantiations=new Map,s.instantiations.set(uy(a),n.resolvedType))}return n.resolvedType}(e);case 196:return function(e){const n=ua(e);return n.resolvedType||(n.resolvedType=Fu(Es(e.typeParameter))),n.resolvedType}(e);case 204:return function(e){const n=ua(e);return n.resolvedType||(n.resolvedType=hT([e.head.text,...D(e.templateSpans,e=>e.literal.text)],D(e.templateSpans,e=>qS(e.type)))),n.resolvedType}(e);case 206:return cS(e);case 80:case 167:case 212:const n=IG(e);return n?Wu(n):Mn;default:return Mn}}function XS(e,n,t){if(e&&e.length)for(let r=0;r<e.length;r++){const o=e[r],i=t(o,n);if(o!==i){const 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 YS(e,n){return XS(e,n,xE)}function eE(e,n){return XS(e,n,_E)}function nE(e,n){return XS(e,n,CE)}function tE(e,n){return 1===e.length?oE(e[0],n?n[0]:In):iE(e,n)}function rE(e,n){switch(n.kind){case 0:return e===n.source?n.target:e;case 1:{const t=n.sources,r=n.targets;for(let n=0;n<t.length;n++)if(e===t[n])return r?r[n]:In;return e}case 2:{const t=n.sources,r=n.targets;for(let n=0;n<t.length;n++)if(e===t[n])return r[n]();return e}case 3:return n.func(e);case 4:case 5:const t=rE(e,n.mapper1);return t!==e&&4===n.kind?xE(t,n.mapper2):rE(t,n.mapper2)}}function oE(e,n){return dt.attachDebugPrototypeIfDebug({kind:0,source:e,target:n})}function iE(e,n){return dt.attachDebugPrototypeIfDebug({kind:1,sources:e,targets:n})}function aE(e,n){return dt.attachDebugPrototypeIfDebug({kind:3,func:e,debugInfo:dt.isDebugging?n:void 0})}function sE(e,n){return dt.attachDebugPrototypeIfDebug({kind:2,sources:e,targets:n})}function lE(e,n,t){return dt.attachDebugPrototypeIfDebug({kind:e,mapper1:n,mapper2:t})}function cE(e){return tE(e,void 0)}function dE(e,n){return e?lE(4,e,n):n}function uE(e,n){return e?lE(5,e,n):n}function pE(e,n,t){return t?lE(5,oE(e,n),t):oE(e,n)}function fE(e,n,t){return e?lE(5,e,oE(n,t)):oE(n,t)}function mE(e){const n=Vs(e.symbol);return n.target=e,n}function hE(e,n){return O_(e.kind,e.parameterName,e.parameterIndex,xE(e.type,n))}function _E(e,n,t){let r;if(e.typeParameters&&!t){r=D(e.typeParameters,mE),n=dE(tE(e.typeParameters,r),n);for(const e of r)e.mapper=n}const o=wp(e.declaration,r,e.thisParameter&&gE(e.thisParameter,n),XS(e.parameters,n,gE),void 0,void 0,e.minArgumentCount,167&e.flags);return o.target=e,o.mapper=n,o}function gE(e,n){const t=da(e);if(t.type&&!pI(t.type)){if(!(65536&e.flags))return e;if(t.writeType&&!pI(t.writeType))return e}1&sT(e)&&(e=t.target,n=dE(t.mapper,n));const r=Yi(e.flags,e.escapedName,1|53256&sT(e));return r.declarations=e.declarations,r.parent=e.parent,r.links.target=e,r.links.mapper=n,e.valueDeclaration&&(r.valueDeclaration=e.valueDeclaration),t.nameType&&(r.links.nameType=t.nameType),r}function yE(e,n,t,r){const o=4&e.objectFlags||8388608&e.objectFlags?e.node:e.symbol.declarations[0],i=ua(o),a=4&e.objectFlags?i.resolvedType:64&e.objectFlags?e.target:e;let l=i.outerTypeParameters;if(!l){let n=tu(o,!0);if(Fw(o)){n=ae(n,E_(o))}l=n||s;const t=8388612&e.objectFlags?[o]:e.symbol.declarations;l=(8388612&a.objectFlags||8192&a.symbol.flags||2048&a.symbol.flags)&&!a.aliasTypeArguments?x(l,e=>U(t,n=>vE(e,n))):l,i.outerTypeParameters=l}if(l.length){const o=dE(e.mapper,n),i=D(l,e=>rE(e,o)),s=t||e.aliasSymbol,c=t?r:YS(e.aliasTypeArguments,n),d=uy(i)+my(s,c);a.instantiations||(a.instantiations=new Map,a.instantiations.set(uy(l)+my(a.aliasSymbol,a.aliasTypeArguments),a));let u=a.instantiations.get(d);if(!u){let t=tE(l,i);134217728&a.objectFlags&&n&&(t=dE(t,n)),u=4&a.objectFlags?vy(e.target,e.node,t,s,c):32&a.objectFlags?function(e,n,t,r){const o=bE(e);if(o){const e=xE(o,n);if(o!==e)return UC(Qm(e),i,t,r)}return xE(Ef(e),n)===Cn?Cn:EE(e,n,t,r);function i(t){if(61603843&t.flags&&t!==Cn&&!ac(t)){if(!e.declaration.nameType){let r;if(Kx(t)||1&t.flags&&Jl(o,4)<0&&(r=um(o))&&LC(r,Jx))return function(e,n,t){const r=SE(n,Kn,!0,t);return ac(r)?Mn:Jv(r,TE(qx(e),Cf(n)))}(t,e,pE(o,t,n));if(mR(t))return function(e,n,t,r){const o=e.target.elementFlags,i=e.target.fixedLength,a=i?pE(t,e,r):r,s=D(Mb(e),(e,s)=>{const l=o[s];return s<i?SE(n,NS(""+s),!!(2&l),a):8&l?xE(n,pE(t,e,r)):Yx(xE(n,pE(t,Jv(e),r)))??On}),l=Cf(n),c=4&l?D(o,e=>1&e?2:e):8&l?D(o,e=>2&e?1:e):o,d=TE(e.target.readonly,Cf(n));return S(s,Mn)?Mn:Sb(s,c,d,e.target.labeledElementDeclarations)}(t,e,o,n);if(Nm(t))return Xb(D(t.types,i))}return EE(e,pE(o,t,n))}return t}}(a,t,s,c):EE(a,t,s,c),a.instantiations.set(d,u);const r=bT(u);if(3899393&u.flags&&!(524288&r)){const e=U(i,pI);524288&bT(u)||(u.objectFlags|=52&r?524288|(e?1048576:0):e?0:524288)}}return u}return e}function vE(e,n){if(e.symbol&&e.symbol.declarations&&1===e.symbol.declarations.length){const r=e.symbol.declarations[0].parent;for(let e=n;e!==r;e=e.parent)if(!e||242===e.kind||195===e.kind&&rk(e.extendsType,t))return!0;return t(n)}return!0;function t(n){switch(n.kind){case 198:return!!e.isThisType;case 80:return!e.isThisType&&Cm(n)&&function(e){return!(184===e.parent.kind&&e.parent.typeArguments&&e===e.parent.typeName||206===e.parent.kind&&e.parent.typeArguments&&e===e.parent.qualifier)}(n)&&JS(n)===e;case 187:const r=ub(n.exprName);if(!pv(r)){const o=GI(r),i=e.symbol.declarations[0],a=169===i.kind?i.parent:e.isThisType?i:void 0;if(o.declarations&&a)return U(o.declarations,e=>ug(e,a))||U(n.typeArguments,t)}return!0;case 175:case 174:return!n.type&&!!n.body||U(n.typeParameters,t)||U(n.parameters,t)||!!n.type&&t(n.type)}return!!rk(n,t)}}function bE(e){const n=Ef(e);if(4194304&n.flags){const e=JT(n.type);if(262144&e.flags)return e}}function TE(e,n){return!!(1&n)||!(2&n)&&e}function SE(e,n,t,r){const o=fE(r,Sf(e),n),i=xE(xf(e.target||e),o),a=Cf(e);return X&&4&a&&!iF(i,49152)?IR(i,!0):X&&8&a&&t?fD(i,524288):i}function EE(e,n,t,r){dt.assert(e.symbol,"anonymous type must have symbol to be instantiated");const o=Gs(-1572865&e.objectFlags|64,e.symbol);if(32&e.objectFlags){o.declaration=e.declaration;const t=Sf(e),r=mE(t);o.typeParameter=r,n=dE(oE(t,r),n),r.mapper=n}return 8388608&e.objectFlags&&(o.node=e.node),o.target=e,o.mapper=n,o.aliasSymbol=t||e.aliasSymbol,o.aliasTypeArguments=t?r:YS(e.aliasTypeArguments,n),o.objectFlags|=o.aliasTypeArguments?hy(o.aliasTypeArguments):0,o}function AE(e,n,t,r,o){const i=e.root;if(i.outerTypeParameters){const e=D(i.outerTypeParameters,e=>rE(e,n)),a=(t?"C":"")+uy(e)+my(r,o);let s=i.instantiations.get(a);if(!s){const n=tE(i.outerTypeParameters,e),l=i.checkType,c=i.isDistributive?Qm(rE(l,n)):void 0;s=c&&l!==c&&1179648&c.flags?UC(c,e=>QT(i,pE(l,e,n),t),r,o):QT(i,n,t,r,o),i.instantiations.set(a,s)}return s}return e}function xE(e,n){return e&&n?RE(e,n,void 0,void 0):e}function RE(e,n,t,o){var i;if(!pI(e))return e;if(100===R||E>=5e6)return null==(i=Kt)||i.instant(Kt.Phase.CheckTypes,"instantiateType_DepthLimit",{typeId:e.id,instantiationDepth:R,instantiationCount:E}),Bi(r,fa.Type_instantiation_is_excessively_deep_and_possibly_infinite),Mn;const a=function(e){for(let n=Bo-1;n>=0;n--)if(e===Wo[n])return n;return-1}(n);-1===a&&function(e){Wo[Bo]=e,zo[Bo]??(zo[Bo]=new Map),Bo++}(n);const s=e.id+my(t,o),l=zo[-1!==a?a:Bo-1],c=l.get(s);if(c)return c;_++,E++,R++;const d=function(e,n,t,r){const o=e.flags;if(262144&o)return rE(e,n);if(524288&o){const o=e.objectFlags;if(52&o){if(4&o&&!e.node){const t=e.resolvedTypeArguments,r=YS(t,n);return r!==t?xb(e.target,r):e}return 1024&o?function(e,n){const t=xE(e.mappedType,n);if(!(32&bT(t)))return e;const r=xE(e.constraintType,n);if(!(4194304&r.flags))return e;const o=hI(xE(e.source,n),t,r);if(o)return o;return e}(e,n):yE(e,n,t,r)}return e}if(3145728&o){const i=1048576&e.flags?e.origin:void 0,a=i&&3145728&i.flags?i.types:e.types,s=YS(a,n);if(s===a&&t===e.aliasSymbol)return e;const l=t||e.aliasSymbol,c=t?r:YS(e.aliasTypeArguments,n);return 2097152&o||i&&2097152&i.flags?Xb(s,0,l,c):Gb(s,1,l,c)}if(4194304&o)return fT(xE(e.type,n));if(134217728&o)return hT(e.texts,YS(e.types,n));if(268435456&o)return gT(e.symbol,xE(e.type,n));if(8388608&o){const o=t||e.aliasSymbol,i=t?r:YS(e.aliasTypeArguments,n);return jT(xE(e.objectType,n),xE(e.indexType,n),e.accessFlags,void 0,o,i)}if(16777216&o)return AE(e,dE(e.mapper,n),!1,t,r);if(33554432&o){const t=xE(e.baseType,n);if(ky(e))return Ny(t);const r=xE(e.constraint,n);return 8650752&t.flags&&kT(r)?wy(t,r):3&r.flags||BE(DE(t),DE(r))?t:8650752&t.flags?wy(t,r):Xb([r,t])}return e}(e,n,t,o);return-1===a?(Bo--,Wo[Bo]=void 0,zo[Bo].clear()):l.set(s,d),R--,d}function IE(e){return 402915327&e.flags?e:e.permissiveInstantiation||(e.permissiveInstantiation=xE(e,St))}function DE(e){return 402915327&e.flags?e:(e.restrictiveInstantiation||(e.restrictiveInstantiation=xE(e,Tt),e.restrictiveInstantiation.restrictiveInstantiation=e.restrictiveInstantiation),e.restrictiveInstantiation)}function CE(e,n){return Qg(e.keyType,xE(e.type,n),e.isReadonly,e.declaration,e.components)}function NE(e){switch(dt.assert(175!==e.kind||jm(e)),e.kind){case 219:case 220:case 175:case 263:return ME(e);case 211:return U(e.properties,NE);case 210:return U(e.elements,NE);case 228:return NE(e.whenTrue)||NE(e.whenFalse);case 227:return(57===e.operatorToken.kind||61===e.operatorToken.kind)&&(NE(e.left)||NE(e.right));case 304:return NE(e.initializer);case 218:return NE(e.expression);case 293:return U(e.properties,NE)||qN(e.parent)&&U(e.parent.parent.children,NE);case 292:{const{initializer:n}=e;return!!n&&NE(n)}case 295:{const{expression:n}=e;return!!n&&NE(n)}}return!1}function ME(e){return zA(e)||function(e){if(e.typeParameters||vv(e)||!e.body)return!1;if(242!==e.body.kind)return NE(e.body);return!!Mm(e.body,e=>!!e.expression&&NE(e.expression))}(e)}function PE(e){return(VA(e)||jm(e))&&ME(e)}function LE(e){if(524288&e.flags){const n=Jf(e);if(n.constructSignatures.length||n.callSignatures.length){const t=Gs(16,e.symbol);return t.members=n.members,t.properties=n.properties,t.callSignatures=s,t.constructSignatures=s,t.indexInfos=s,t}}else if(2097152&e.flags)return Xb(D(e.types,LE));return e}function kE(e,n){return DA(e,n,Di)}function wE(e,n){return DA(e,n,Di)?-1:0}function OE(e,n){return DA(e,n,Ei)?-1:0}function FE(e,n){return DA(e,n,bi)?-1:0}function WE(e,n){return DA(e,n,bi)}function zE(e,n){return DA(e,n,Ti)}function BE(e,n){return DA(e,n,Ei)}function GE(e,n){return 1048576&e.flags?g(e.types,e=>GE(e,n)):1048576&n.flags?U(n.types,n=>GE(e,n)):2097152&e.flags?U(e.types,e=>GE(e,n)):58982400&e.flags?GE(Tm(e)||On,n):hA(n)?!!(67633152&e.flags):n===Xt?!!(67633152&e.flags)&&!hA(e):n===Yt?!!(524288&e.flags)&&sD(e):Yd(e,Kd(n))||Kx(n)&&!qx(n)&&GE(e,tr)}function VE(e,n){return DA(e,n,Ii)}function jE(e,n){return VE(e,n)||VE(n,e)}function UE(e,n,t,r,o,i){return FA(e,n,Ei,t,r,o,i)}function HE(e,n,t,r,o,i){return KE(e,n,Ei,t,r,o,i,void 0)}function KE(e,n,t,r,o,i,a,s){return!!DA(e,n,t)||(!r||!JE(o,e,n,t,i,a,s))&&FA(e,n,t,r,i,a,s)}function qE(e){return!!(16777216&e.flags||2097152&e.flags&&U(e.types,qE))}function JE(e,n,t,r,o,i,a){if(!e||qE(t))return!1;if(!FA(n,t,r,void 0)&&function(e,n,t,r,o,i,a){const s=Vh(n,0),l=Vh(n,1);for(const c of[l,s])if(U(c,e=>{const n=Ag(e);return!(131073&n.flags)&&FA(n,t,r,void 0)})){const r=a||{};UE(n,t,e,o,i,r);return dA(r.errors[r.errors.length-1],Vf(e,c===l?fa.Did_you_mean_to_use_new_with_this_expression:fa.Did_you_mean_to_call_this_expression)),!0}return!1}(e,n,t,r,o,i,a))return!0;switch(e.kind){case 235:if(!Tx(e))break;case 295:case 218:return JE(e.expression,n,t,r,o,i,a);case 227:switch(e.operatorToken.kind){case 64:case 28:return JE(e.right,n,t,r,o,i,a)}break;case 211:return function(e,n,t,r,o,i){return!(402915324&t.flags)&&QE(function*(e){if(!c(e.properties))return;for(const n of e.properties){if(cM(n))continue;const e=oT(Es(n),8576);if(e&&!(131072&e.flags))switch(n.kind){case 179:case 178:case 175:case 305:yield{errorNode:n.name,innerExpression:void 0,nameType:e};break;case 304:yield{errorNode:n.name,innerExpression:n.initializer,nameType:e,errorMessage:Wf(n.name)?fa.Type_of_computed_property_s_value_is_0_which_is_not_assignable_to_type_1:void 0};break;default:dt.assertNever(n)}}}(e),n,t,r,o,i)}(e,n,t,r,i,a);case 210:return function(e,n,t,r,o,i){if(402915324&t.flags)return!1;if(tR(n))return QE(eA(e,t),n,t,r,o,i);JP(e,t,!1);const a=lL(e,1,!0);if(XP(),tR(a))return QE(eA(e,t),a,t,r,o,i);return!1}(e,n,t,r,i,a);case 293:return function(e,n,t,r,o,i){let a,s=QE(function*(e){if(!c(e.properties))return;for(const n of e.properties)eM(n)||bL(ax(n.name))||(yield{errorNode:n.name,innerExpression:n.initializer,nameType:NS(ax(n.name))})}(e),n,t,r,o,i);if(qN(e.parent)&&HN(e.parent.parent)){const a=e.parent.parent,d=wL(LL(e)),u=void 0===d?"children":yl(d),p=NS(u),f=jT(t,p),m=py(a.children);if(!c(m))return s;const h=c(m)>1;let _,g;if(xv(!1)!==kt){const e=qv(In);_=kC(f,n=>BE(n,e)),g=kC(f,n=>!BE(n,e))}else _=kC(f,rR),g=kC(f,e=>!rR(e));if(h){if(_!==ut){const e=Sb(AL(a,0)),n=function*(e,n){if(!c(e.children))return;let t=0;for(let r=0;r<e.children.length;r++){const o=ZE(e.children[r],kS(r-t),n);o?yield o:t++}}(a,l);s=function(e,n,t,r,o,i){const a=kC(t,rR),s=kC(t,e=>!rR(e)),l=s!==ut?Cz(13,0,s,void 0):void 0;let c=!1;for(let d=e.next();!d.done;d=e.next()){const{errorNode:e,innerExpression:t,nameType:s,errorMessage:u}=d.value;let p=l;const f=a!==ut?YE(n,a,s):void 0;if(!f||8388608&f.flags||(p=l?Gb([l,f]):f),!p)continue;let m=HT(n,s);if(!m)continue;const h=AT(s,void 0);if(!FA(m,p,r,void 0)){if(c=!0,!(t&&JE(t,m,p,r,void 0,o,i))){const s=i||{},l=t?$E(t,m):m;if(de&&qA(l,p)){const n=Vf(e,fa.Type_0_is_not_assignable_to_type_1_with_exactOptionalPropertyTypes_Colon_true_Consider_adding_undefined_to_the_type_of_the_target,El(l),El(p));gi.add(n),s.errors=[n]}else{const t=!!(h&&16777216&(wh(a,h)||Sn).flags),i=!!(h&&16777216&(wh(n,h)||Sn).flags);p=LR(p,t),m=LR(m,t&&i);FA(l,p,r,e,u,o,s)&&l!==m&&FA(m,p,r,e,u,o,s)}}}}return c}(n,e,_,r,o,i)||s}else if(!DA(jT(n,p),f,r)){s=!0;const e=Bi(a.openingElement.tagName,fa.This_JSX_tag_s_0_prop_expects_a_single_child_of_type_1_but_multiple_children_were_provided,u,El(f));i&&i.skipLogging&&(i.errors||(i.errors=[])).push(e)}}else if(g!==ut){const e=ZE(m[0],p,l);e&&(s=QE(function*(){yield e}(),n,t,r,o,i)||s)}else if(!DA(jT(n,p),f,r)){s=!0;const e=Bi(a.openingElement.tagName,fa.This_JSX_tag_s_0_prop_expects_type_1_which_requires_multiple_children_but_only_a_single_child_was_provided,u,El(f));i&&i.skipLogging&&(i.errors||(i.errors=[])).push(e)}}return s;function l(){if(!a){const n=Zp(e.parent.tagName),r=wL(LL(e)),o=void 0===r?"children":yl(r),i=jT(t,NS(o)),s=fa._0_components_don_t_accept_text_as_child_elements_Text_in_JSX_has_the_type_string_but_the_expected_type_of_1_is_2;a={...s,key:"!!ALREADY FORMATTED!!",message:eS(s,n,o,El(i))}}return a}}(e,n,t,r,i,a);case 220:return function(e,n,t,r,o,i){if(JC(e.body))return!1;if(U(e.parameters,Pu))return!1;const a=ew(n);if(!a)return!1;const s=Vh(t,0);if(!c(s))return!1;const l=e.body,d=Ag(a),u=Gb(D(s,Ag));if(!FA(d,u,r,void 0)){const n=l&&JE(l,d,u,r,void 0,o,i);if(n)return n;const a=i||{};if(FA(d,u,r,l,void 0,o,a),a.errors)return t.symbol&&c(t.symbol.declarations)&&dA(a.errors[a.errors.length-1],Vf(t.symbol.declarations[0],fa.The_expected_type_comes_from_the_return_type_of_this_signature)),2&Fg(e)||nc(d,"then")||!FA(WO(d),u,r,void 0)||dA(a.errors[a.errors.length-1],Vf(e,fa.Did_you_mean_to_mark_this_function_as_async)),!0}return!1}(e,n,t,r,i,a)}return!1}function YE(e,n,t){const r=HT(n,t);if(r)return r;if(1048576&n.flags){const r=QA(e,n);if(r)return HT(r,t)}}function $E(e,n){JP(e,n,!1);const t=MF(e,1);return XP(),t}function QE(e,n,t,r,o,i){let a=!1;for(const s of e){const{errorNode:e,innerExpression:l,nameType:d,errorMessage:u}=s;let p=YE(n,t,d);if(!p||8388608&p.flags)continue;let f=HT(n,d);if(!f)continue;const m=AT(d,void 0);if(!FA(f,p,r,void 0)){if(a=!0,!(l&&JE(l,f,p,r,void 0,o,i))){const a=i||{},s=l?$E(l,f):f;if(de&&qA(s,p)){const n=Vf(e,fa.Type_0_is_not_assignable_to_type_1_with_exactOptionalPropertyTypes_Colon_true_Consider_adding_undefined_to_the_type_of_the_target,El(s),El(p));gi.add(n),a.errors=[n]}else{const i=!!(m&&16777216&(wh(t,m)||Sn).flags),l=!!(m&&16777216&(wh(n,m)||Sn).flags);p=LR(p,i),f=LR(f,i&&l);FA(s,p,r,e,u,o,a)&&s!==f&&FA(f,p,r,e,u,o,a)}if(a.errors){const e=a.errors[a.errors.length-1],n=ux(d)?px(d):void 0,r=void 0!==n?wh(t,n):void 0;let o=!1;if(!r){const n=v_(t,d);n&&n.declaration&&!Sp(n.declaration).hasNoDefaultLib&&(o=!0,dA(e,Vf(n.declaration,fa.The_expected_type_comes_from_this_index_signature)))}if(!o&&(r&&c(r.declarations)||t.symbol&&c(t.symbol.declarations))){const o=r&&c(r.declarations)?r.declarations[0]:t.symbol.declarations[0];Sp(o).hasNoDefaultLib||dA(e,Vf(o,fa.The_expected_type_comes_from_property_0_which_is_declared_here_on_type_1,!n||8192&d.flags?El(d):yl(n),El(t)))}}}}}return a}function ZE(e,n,t){switch(e.kind){case 295:return{errorNode:e,innerExpression:e.expression,nameType:n};case 12:if(e.containsOnlyTriviaWhiteSpaces)break;return{errorNode:e,innerExpression:void 0,nameType:n,errorMessage:t()};case 285:case 286:case 289:return{errorNode:e,innerExpression:e,nameType:n};default:return dt.assertNever(e,"Found invalid jsx child")}}function*eA(e,n){const t=c(e.elements);if(t)for(let r=0;r<t;r++){if(tR(n)&&!wh(n,""+r))continue;const t=e.elements[r];if(FC(t))continue;const o=kS(r),i=dw(t);yield{errorNode:i,innerExpression:i,nameType:o}}}function nA(e,n,t,r,o){return FA(e,n,Ii,t,r,o)}function rA(e){if(!e.typeParameters&&(!e.thisParameter||rc(iO(e.thisParameter)))&&1===e.parameters.length&&_B(e)){const n=iO(e.parameters[0]);return!!(131073&(Kx(n)?by(n)[0]:n).flags&&3&Ag(e).flags)}return!1}function oA(e,n,t,r,o,i,a,s){if(e===n)return-1;if(!(16&t&&rA(e))&&rA(n))return-1;if(16&t&&rA(e)&&!rA(n))return 0;const l=_O(n);if(!yO(n)&&(8&t?yO(e)||_O(e)>l:gO(e)>l))return!r||8&t||o(fa.Target_signature_provides_too_few_arguments_Expected_0_or_more_but_got_1,gO(e),l),0;e.typeParameters&&e.typeParameters!==n.typeParameters&&(e=rw(e,n=Og(n),void 0,a));const c=_O(e),d=bO(e),u=bO(n);(d||u)&&xE(d||u,s);const p=n.declaration?n.declaration.kind:0,f=!(3&t)&&$&&175!==p&&174!==p&&177!==p;let m=-1;const h=og(e);if(h&&h!==ct){const e=og(n);if(e){const n=!f&&a(h,e,!1)||a(e,h,r);if(!n)return r&&o(fa.The_this_types_of_each_signature_are_incompatible),0;m&=n}}const _=d||u?Math.min(c,l):Math.max(c,l),g=d||u?_-1:-1;for(let y=0;y<_;y++){const l=y===g?hO(e,y):fO(e,y),c=y===g?hO(n,y):fO(n,y);if(l&&c&&(l!==c||8&t)){const d=3&t||Zk(e,y)?void 0:ew(DR(l)),u=3&t||Zk(n,y)?void 0:ew(DR(c));let p=d&&u&&!fg(d)&&!fg(u)&&lD(l,50331648)===lD(c,50331648)?oA(u,d,8&t|(f?2:1),r,o,i,a,s):!(3&t)&&!f&&a(l,c,!1)||a(c,l,r);if(p&&8&t&&y>=gO(e)&&y<gO(n)&&a(l,c,!1)&&(p=0),!p)return r&&o(fa.Types_of_parameters_0_and_1_are_incompatible,yl(lO(e,y)),yl(lO(n,y))),0;m&=p}}if(!(4&t)){const s=Dg(n)?In:n.declaration&&Fw(n.declaration)?bu(Ss(n.declaration.symbol)):Ag(n);if(s===ct||s===In)return m;const l=Dg(e)?In:e.declaration&&Fw(e.declaration)?bu(Ss(e.declaration.symbol)):Ag(e),c=fg(n);if(c){const n=fg(e);if(n)m&=function(e,n,t,r,o){if(e.kind!==n.kind)return t&&(r(fa.A_this_based_type_guard_is_not_compatible_with_a_parameter_based_type_guard),r(fa.Type_predicate_0_is_not_assignable_to_1,Fl(e),Fl(n))),0;if((1===e.kind||3===e.kind)&&e.parameterIndex!==n.parameterIndex)return t&&(r(fa.Parameter_0_is_not_in_the_same_position_as_parameter_1,e.parameterName,n.parameterName),r(fa.Type_predicate_0_is_not_assignable_to_1,Fl(e),Fl(n))),0;const i=e.type===n.type?-1:e.type&&n.type?o(e.type,n.type,t):0;0===i&&t&&r(fa.Type_predicate_0_is_not_assignable_to_1,Fl(e),Fl(n));return i}(n,c,r,o,a);else if(Hm(c)||Km(c))return r&&o(fa.Signature_0_must_be_a_type_predicate,Sl(e)),0}else m&=1&t&&a(s,l,!1)||a(l,s,r),!m&&r&&i&&i(l,s)}return m}function sA(e,n){const t=wg(e),r=wg(n),o=Ag(t),i=Ag(r);return!(i!==ct&&!DA(i,o,Ei)&&!DA(o,i,Ei))&&0!==oA(t,r,4,!1,void 0,void 0,OE,void 0)}function lA(e){return e!==wt&&0===e.properties.length&&0===e.callSignatures.length&&0===e.constructSignatures.length&&0===e.indexInfos.length}function cA(e){return 524288&e.flags?!Uf(e)&&lA(Jf(e)):!!(67108864&e.flags)||(1048576&e.flags?U(e.types,cA):!!(2097152&e.flags)&&g(e.types,cA))}function hA(e){return!!(16&bT(e)&&(e.members&&lA(e)||e.symbol&&2048&e.symbol.flags&&0===Cp(e.symbol).size))}function _A(e){return!!(32768&(1048576&e.flags?e.types[0]:e).flags)}function yA(e){return 524288&e.flags&&!Uf(e)&&0===cm(e).length&&1===l_(e).length&&!!u_(e,Hn)||3145728&e.flags&&g(e.types,yA)||!1}function TA(e,n,t){const r=8&e.flags?xs(e):e,o=8&n.flags?xs(n):n;if(r===o)return!0;if(!(r.escapedName===o.escapedName&&256&r.flags&&256&o.flags))return!1;const i=dB(r)+","+dB(o),a=Ci.get(i);if(void 0!==a&&!(2&a&&t))return!!(1&a);const s=Vd(o);for(const l of cm(Vd(r)))if(8&l.flags){const e=wh(s,l.escapedName);if(!(e&&8&e.flags))return t&&t(fa.Property_0_is_missing_in_type_1,Tl(l),El(Wu(o),void 0,64)),Ci.set(i,2),!1;const n=QG(Yu(l,307)).value,r=QG(Yu(e,307)).value;if(n!==r){const a="string"==typeof n,s="string"==typeof r;if(void 0!==n&&void 0!==r){if(t){const i=a?`"${Ay(n)}"`:n,l=s?`"${Ay(r)}"`:r;t(fa.Each_declaration_of_0_1_differs_in_its_value_where_2_was_expected_but_3_was_given,Tl(o),Tl(e),l,i)}return Ci.set(i,2),!1}if(a||s){if(t){const i=n??r;dt.assert("string"==typeof i);const a=`"${Ay(i)}"`;t(fa.One_value_of_0_1_is_the_string_2_and_the_other_is_assumed_to_be_an_unknown_numeric_value,Tl(o),Tl(e),a)}return Ci.set(i,2),!1}}}return Ci.set(i,1),!0}function IA(e,n,t,r){const o=e.flags,i=n.flags;if(1&i||131072&o||e===Cn)return!0;if(2&i&&!(t===Ti&&1&o))return!0;if(131072&i)return!1;if(402653316&o&&4&i)return!0;if(128&o&&1024&o&&128&i&&!(1024&i)&&e.value===n.value)return!0;if(296&o&&8&i)return!0;if(256&o&&1024&o&&256&i&&!(1024&i)&&e.value===n.value)return!0;if(2112&o&&64&i)return!0;if(528&o&&16&i)return!0;if(12288&o&&4096&i)return!0;if(32&o&&32&i&&e.symbol.escapedName===n.symbol.escapedName&&TA(e.symbol,n.symbol,r))return!0;if(1024&o&&1024&i){if(1048576&o&&1048576&i&&TA(e.symbol,n.symbol,r))return!0;if(2944&o&&2944&i&&e.value===n.value&&TA(e.symbol,n.symbol,r))return!0}if(32768&o&&(!X&&!(3145728&i)||49152&i))return!0;if(65536&o&&(!X&&!(3145728&i)||65536&i))return!0;if(524288&o&&67108864&i&&(t!==Ti||!hA(e)||8192&bT(e)))return!0;if(t===Ei||t===Ii){if(1&o)return!0;if(8&o&&(32&i||256&i&&1024&i))return!0;if(256&o&&!(1024&o)&&(32&i||256&i&&1024&i&&e.value===n.value))return!0;if(function(e){if(X&&1048576&e.flags){if(!(33554432&e.objectFlags)){const n=e.types;e.objectFlags|=33554432|(n.length>=3&&32768&n[0].flags&&65536&n[1].flags&&U(n,hA)?67108864:0)}return!!(67108864&e.objectFlags)}return!1}(n))return!0}return!1}function DA(e,n,t){if(CS(e)&&(e=e.regularType),CS(n)&&(n=n.regularType),e===n)return!0;if(t!==Di){if(t===Ii&&!(131072&n.flags)&&IA(n,e,t)||IA(e,n,t))return!0}else if(!(61865984&(e.flags|n.flags))){if(e.flags!==n.flags)return!1;if(67358815&e.flags)return!0}if(524288&e.flags&&524288&n.flags){const r=t.get(Mx(e,n,0,t,!1));if(void 0!==r)return!!(1&r)}return!!(469499904&e.flags||469499904&n.flags)&&FA(e,n,t,void 0)}function NA(e,n){return 2048&bT(e)&&bL(n.escapedName)}function LA(e,n){for(;;){const t=CS(e)?e.regularType:hR(e)?wA(e,n):4&bT(e)?e.node?gy(e.target,by(e)):Zx(e)||e:3145728&e.flags?kA(e,n):33554432&e.flags?n?e.baseType:zy(e):25165824&e.flags?WT(e,n):e;if(t===e)return t;e=t}}function kA(e,n){const t=Qm(e);if(t!==e)return t;if(2097152&e.flags&&function(e){let n=!1,t=!1;for(const r of e.types)if(n||(n=!!(465829888&r.flags)),t||(t=!!(98304&r.flags)||hA(r)),n&&t)return!0;return!1}(e)){const t=N(e.types,e=>LA(e,n));if(t!==e.types)return Xb(t)}return e}function wA(e,n){const t=Mb(e),r=N(t,e=>25165824&e.flags?WT(e,n):e);return t!==r?Rb(e.target,r):e}function FA(e,n,t,o,i,a,l){var d;let u,p,f,m,h,_,g,y,v=0,T=0,E=0,A=0,x=!1,R=0,I=0,C=16e6-t.size>>3;dt.assert(t!==Di||!o,"no error reporting in identity checking");const M=j(e,n,3,!!o,i);if(y&&w(),x){const i=Mx(e,n,0,t,!1);t.set(i,2|(C<=0?32:64)),null==(d=Kt)||d.instant(Kt.Phase.CheckTypes,"checkTypeRelatedTo_DepthLimit",{sourceId:e.id,targetId:n.id,depth:T,targetDepth:E});const a=C<=0?fa.Excessive_complexity_comparing_types_0_and_1:fa.Excessive_stack_depth_comparing_types_0_and_1,s=Bi(o||r,a,El(e),El(n));l&&(l.errors||(l.errors=[])).push(s)}else if(u){if(a){const e=a();e&&(oS(e,u),u=e)}let r;if(i&&o&&!M&&e.symbol){const o=da(e.symbol);if(o.originatingImport&&!fm(o.originatingImport)){if(FA(Vd(o.target),n,t,void 0)){r=re(r,Vf(o.originatingImport,fa.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))}}}const s=Hf(Sp(o),o,u,r);p&&dA(s,...p),l&&(l.errors||(l.errors=[])).push(s),l&&l.skipLogging||gi.add(s)}return o&&l&&l.skipLogging&&0===M&&dt.assert(!!l.errors,"missed opportunity to interact with error."),0!==M;function P(e){u=e.errorInfo,g=e.lastSkippedInfo,y=e.incompatibleStack,R=e.overrideNextErrorInfo,I=e.skipParentCounter,p=e.relatedInfo}function L(){return{errorInfo:u,lastSkippedInfo:g,incompatibleStack:null==y?void 0:y.slice(),overrideNextErrorInfo:R,skipParentCounter:I,relatedInfo:null==p?void 0:p.slice()}}function k(e,...n){R++,g=void 0,(y||(y=[])).push([e,...n])}function w(){const e=y||[];y=void 0;const n=g;if(g=void 0,1===e.length)return F(...e[0]),void(n&&B(void 0,...n));let t="";const r=[];for(;e.length;){const[n,...o]=e.pop();switch(n.code){case fa.Types_of_property_0_are_incompatible.code:{0===t.indexOf("new ")&&(t=`(${t})`);const e=""+o[0];t=0===t.length?`${e}`:ys(e,SS(O))?`${t}.${e}`:"["===e[0]&&"]"===e[e.length-1]?`${t}${e}`:`${t}[${e}]`;break}case fa.Call_signature_return_types_0_and_1_are_incompatible.code:case fa.Construct_signature_return_types_0_and_1_are_incompatible.code:case fa.Call_signatures_with_no_arguments_have_incompatible_return_types_0_and_1.code:case fa.Construct_signatures_with_no_arguments_have_incompatible_return_types_0_and_1.code:if(0===t.length){let e=n;n.code===fa.Call_signatures_with_no_arguments_have_incompatible_return_types_0_and_1.code?e=fa.Call_signature_return_types_0_and_1_are_incompatible:n.code===fa.Construct_signatures_with_no_arguments_have_incompatible_return_types_0_and_1.code&&(e=fa.Construct_signature_return_types_0_and_1_are_incompatible),r.unshift([e,o[0],o[1]])}else{t=`${n.code===fa.Construct_signature_return_types_0_and_1_are_incompatible.code||n.code===fa.Construct_signatures_with_no_arguments_have_incompatible_return_types_0_and_1.code?"new ":""}${t}(${n.code===fa.Call_signatures_with_no_arguments_have_incompatible_return_types_0_and_1.code||n.code===fa.Construct_signatures_with_no_arguments_have_incompatible_return_types_0_and_1.code?"":"..."})`}break;case fa.Type_at_position_0_in_source_is_not_compatible_with_type_at_position_1_in_target.code:r.unshift([fa.Type_at_position_0_in_source_is_not_compatible_with_type_at_position_1_in_target,o[0],o[1]]);break;case fa.Type_at_positions_0_through_1_in_source_is_not_compatible_with_type_at_position_2_in_target.code:r.unshift([fa.Type_at_positions_0_through_1_in_source_is_not_compatible_with_type_at_position_2_in_target,o[0],o[1],o[2]]);break;default:return dt.fail(`Unhandled Diagnostic: ${n.code}`)}}t?F(")"===t[t.length-1]?fa.The_types_returned_by_0_are_incompatible_between_these_types:fa.The_types_of_0_are_incompatible_between_these_types,t):r.shift();for(const[o,...i]of r){const e=o.elidedInCompatabilityPyramid;o.elidedInCompatabilityPyramid=!1,F(o,...i),o.elidedInCompatabilityPyramid=e}n&&B(void 0,...n)}function F(e,...n){dt.assert(!!o),y&&w(),e.elidedInCompatabilityPyramid||(0===I?u=rS(u,e,...n):I--)}function W(e,...n){F(e,...n),I++}function z(e){dt.assert(!!u),p?p.push(e):p=[e]}function B(e,n,r){y&&w();const[o,i]=xl(n,r);let a=n,s=o;131072&r.flags||!sR(n)||WA(r)||(a=lR(n),dt.assert(!BE(a,r),"generalized source shouldn't be assignable"),s=Il(a));if(262144&(8388608&r.flags&&!(8388608&n.flags)?r.objectType.flags:r.flags)&&r!==Vt&&r!==jt){const e=Tm(r);let t;e&&(BE(a,e)||(t=BE(n,e)))?F(fa._0_is_assignable_to_the_constraint_of_type_1_but_1_could_be_instantiated_with_a_different_subtype_of_constraint_2,t?o:s,i,El(e)):(u=void 0,F(fa._0_could_be_instantiated_with_an_arbitrary_type_which_could_be_unrelated_to_1,i,s))}if(e)e===fa.Argument_of_type_0_is_not_assignable_to_parameter_of_type_1&&de&&jA(n,r).length&&(e=fa.Argument_of_type_0_is_not_assignable_to_parameter_of_type_1_with_exactOptionalPropertyTypes_Colon_true_Consider_adding_undefined_to_the_types_of_the_target_s_properties);else if(t===Ii)e=fa.Type_0_is_not_comparable_to_type_1;else if(o===i)e=fa.Type_0_is_not_assignable_to_type_1_Two_different_types_with_this_name_exist_but_they_are_unrelated;else if(de&&jA(n,r).length)e=fa.Type_0_is_not_assignable_to_type_1_with_exactOptionalPropertyTypes_Colon_true_Consider_adding_undefined_to_the_types_of_the_target_s_properties;else{if(128&n.flags&&1048576&r.flags){const e=function(e,n){const t=n.types.filter(e=>!!(128&e.flags));return wn(e.value,t,e=>e.value)}(n,r);if(e)return void F(fa.Type_0_is_not_assignable_to_type_1_Did_you_mean_2,s,i,El(e))}e=fa.Type_0_is_not_assignable_to_type_1}F(e,s,i)}function G(e,n,t){return mR(e)?e.target.readonly&&Xx(n)?(t&&F(fa.The_type_0_is_readonly_and_cannot_be_assigned_to_the_mutable_type_1,El(e),El(n)),!1):Jx(n):qx(e)&&Xx(n)?(t&&F(fa.The_type_0_is_readonly_and_cannot_be_assigned_to_the_mutable_type_1,El(e),El(n)),!1):!mR(n)||Kx(e)}function V(e,n,t){return j(e,n,3,t)}function j(e,n,r=3,i=!1,a,s=0){if(e===n)return-1;if(524288&e.flags&&402784252&n.flags)return t===Ii&&!(131072&n.flags)&&IA(n,e,t)||IA(e,n,t,i?F:void 0)?-1:(i&&H(e,n,e,n,a),0);const l=LA(e,!1);let c=LA(n,!0);if(l===c)return-1;if(t===Di)return l.flags!==c.flags?0:67358815&l.flags?-1:(K(l,c),ne(l,c,!1,0,r));if(262144&l.flags&&dm(l)===c)return-1;if(470302716&l.flags&&1048576&c.flags){const e=c.types,n=2===e.length&&98304&e[0].flags?e[1]:3===e.length&&98304&e[0].flags&&98304&e[1].flags?e[2]:void 0;if(n&&!(98304&n.flags)&&(c=LA(n,!0),l===c))return-1}if(t===Ii&&!(131072&c.flags)&&IA(c,l,t)||IA(l,c,t,i?F:void 0))return-1;if(469499904&l.flags||469499904&c.flags){if(!(2&s)&&LI(l)&&8192&bT(l)&&function(e,n,r){var i;if(!KL(n)||!oe&&4096&bT(n))return!1;const a=!!(2048&bT(e));if((t===Ei||t===Ii)&&(xC(Xt,n)||!a&&cA(n)))return!1;let s,l=n;1048576&n.flags&&(l=$V(e,n,j)||function(e){if(iF(e,67108864)){const n=kC(e,e=>!(402784252&e.flags));if(!(131072&n.flags))return n}return e}(n),s=1048576&l.flags?l.types:[l]);for(const t of cm(e))if(J(t,e.symbol)&&!NA(e,t)){if(!HL(l,t.escapedName,a)){if(r){const n=kC(l,KL);if(!o)return dt.fail();if(ZN(o)||Eu(o)||Eu(o.parent)){t.valueDeclaration&&QN(t.valueDeclaration)&&Sp(o)===Sp(t.valueDeclaration.name)&&(o=t.valueDeclaration.name);const e=hl(t),r=Nk(e,n),i=r?hl(r):void 0;i?F(fa.Property_0_does_not_exist_on_type_1_Did_you_mean_2,e,El(n),i):F(fa.Property_0_does_not_exist_on_type_1,e,El(n))}else{const r=(null==(i=e.symbol)?void 0:i.declarations)&&fe(e.symbol.declarations);let a;if(t.valueDeclaration&&ml(t.valueDeclaration,e=>e===r)&&Sp(r)===Sp(o)){const e=t.valueDeclaration;dt.assertNode(e,Sd);const r=e.name;o=r,dD(r)&&(a=Mk(r,n))}void 0!==a?W(fa.Object_literal_may_only_specify_known_properties_but_0_does_not_exist_in_type_1_Did_you_mean_to_write_2,hl(t),El(n),a):W(fa.Object_literal_may_only_specify_known_properties_and_0_does_not_exist_in_type_1,hl(t),El(n))}}return!0}if(s&&!j(Vd(t),q(s,t.escapedName),3,r))return r&&k(fa.Types_of_property_0_are_incompatible,hl(t)),!0}return!1}(l,c,i))return i&&B(a,l,n.aliasSymbol?n:c),0;const d=(t!==Ii||iR(l))&&!(2&s)&&405405692&l.flags&&l!==Xt&&2621440&c.flags&&cx(c)&&(cm(l).length>0||kG(l)),u=!!(2048&bT(l));if(d&&!function(e,n,t){for(const r of cm(e))if(HL(n,r.escapedName,t))return!0;return!1}(l,c,u)){if(i){const t=El(e.aliasSymbol?e:l),r=El(n.aliasSymbol?n:c),o=Vh(l,0),i=Vh(l,1);o.length>0&&j(Ag(o[0]),c,1,!1)||i.length>0&&j(Ag(i[0]),c,1,!1)?F(fa.Value_of_type_0_has_no_properties_in_common_with_type_1_Did_you_mean_to_call_it,t,r):F(fa.Type_0_has_no_properties_in_common_with_type_1,t,r)}return 0}K(l,c);const p=1048576&l.flags&&l.types.length<4&&!(1048576&c.flags)||1048576&c.flags&&c.types.length<4&&!(469499904&l.flags)?Y(l,c,i,s):ne(l,c,i,s,r);if(p)return p}return i&&H(e,n,l,c,a),0}function H(e,n,t,r,i){var a,s;const l=!!Zx(e),c=!!Zx(n);t=e.aliasSymbol||l?e:t,r=n.aliasSymbol||c?n:r;let d=R>0;if(d&&R--,524288&t.flags&&524288&r.flags){const e=u;G(t,r,!0),u!==e&&(d=!!u)}if(524288&t.flags&&402784252&r.flags)!function(e,n){const t=Cl(e.symbol)?El(e,e.symbol.valueDeclaration):El(e),r=Cl(n.symbol)?El(n,n.symbol.valueDeclaration):El(n);(rr===e&&Hn===n||or===e&&Kn===n||ir===e&&st===n||hv()===e&<===n)&&F(fa._0_is_a_primitive_but_1_is_a_wrapper_object_Prefer_using_0_when_possible,r,t)}(t,r);else if(t.symbol&&524288&t.flags&&Xt===t)F(fa.The_Object_type_is_assignable_to_very_few_other_types_Did_you_mean_to_use_the_any_type_instead);else if(2048&bT(t)&&2097152&r.flags){const e=r.types,n=RL(Kz.IntrinsicAttributes,o),t=RL(Kz.IntrinsicClassAttributes,o);if(!ac(n)&&!ac(t)&&(S(e,n)||S(e,t)))return}else u=Mh(u,n);if(!i&&d){const e=L();let n;return B(i,t,r),u&&u!==e.errorInfo&&(n={code:u.code,messageText:u.messageText}),P(e),n&&u&&(u.canonicalHead=n),void(g=[t,r])}if(B(i,t,r),262144&t.flags&&(null==(s=null==(a=t.symbol)?void 0:a.declarations)?void 0:s[0])&&!dm(t)){const e=mE(t);if(e.constraint=xE(r,oE(t,e)),Em(e)){const e=El(r,t.symbol.declarations[0]);z(Vf(t.symbol.declarations[0],fa.This_type_parameter_might_need_an_extends_0_constraint,e))}}}function K(e,n){if(Kt&&3145728&e.flags&&3145728&n.flags){const t=e,r=n;if(t.objectFlags&r.objectFlags&32768)return;const i=t.types.length,a=r.types.length;i*a>1e6&&Kt.instant(Kt.Phase.CheckTypes,"traceUnionsOrIntersectionsTooLarge_DepthLimit",{sourceId:e.id,sourceSize:i,targetId:n.id,targetSize:a,pos:null==o?void 0:o.pos,end:null==o?void 0:o.end})}}function q(e,n){return Gb(xe(e,(e,t)=>{var r;const o=3145728&(t=Vm(t)).flags?Ym(t,n):sm(t,n);return re(e,o&&Vd(o)||(null==(r=S_(t,n))?void 0:r.type)||Fn)},void 0)||s)}function J(e,n){return e.valueDeclaration&&n.valueDeclaration&&e.valueDeclaration.parent===n.valueDeclaration}function Y(e,n,r,o){if(1048576&e.flags){if(1048576&n.flags){const t=e.origin;if(t&&2097152&t.flags&&n.aliasSymbol&&S(t.types,n))return-1;const r=n.origin;if(r&&1048576&r.flags&&e.aliasSymbol&&S(r.types,e))return-1}return t===Ii?Z(e,n,r&&!(402784252&e.flags),o):function(e,n,t,r){let o=-1;const i=e.types,a=function(e,n){if(1048576&e.flags&&1048576&n.flags&&!(32768&e.types[0].flags)&&32768&n.types[0].flags)return HC(n,-32769);return n}(e,n);for(let s=0;s<i.length;s++){const e=i[s];if(1048576&a.flags&&i.length>=a.types.length&&i.length%a.types.length===0){const n=j(e,a.types[s%a.types.length],3,!1,void 0,r);if(n){o&=n;continue}}const l=j(e,n,1,t,void 0,r);if(!l)return 0;o&=l}return o}(e,n,r&&!(402784252&e.flags),o)}if(1048576&n.flags)return Q(GR(e),n,r&&!(402784252&e.flags)&&!(402784252&n.flags),o);if(2097152&n.flags)return function(e,n,t,r){let o=-1;const i=n.types;for(const a of i){const n=j(e,a,2,t,void 0,r);if(!n)return 0;o&=n}return o}(e,n,r,2);if(t===Ii&&402784252&n.flags){const t=N(e.types,e=>465829888&e.flags?Tm(e)||On:e);if(t!==e.types){if(131072&(e=Xb(t)).flags)return 0;if(!(2097152&e.flags))return j(e,n,1,!1)||j(n,e,1,!1)}}return Z(e,n,!1,1)}function $(e,n){let t=-1;const r=e.types;for(const o of r){const e=Q(o,n,!1,0);if(!e)return 0;t&=e}return t}function Q(e,n,r,o){const i=n.types;if(1048576&n.flags){if(Lb(i,e))return-1;if(t!==Ii&&32768&bT(n)&&!(1024&e.flags)&&(2688&e.flags||(t===bi||t===Ti)&&256&e.flags)){const n=e===e.regularType?e.freshType:e.regularType,t=128&e.flags?Hn:256&e.flags?Kn:2048&e.flags?qn:void 0;return t&&Lb(i,t)||n&&Lb(i,n)?-1:0}const r=tD(n,e);if(r){const n=j(e,r,2,!1,void 0,o);if(n)return n}}for(const t of i){const n=j(e,t,2,!1,void 0,o);if(n)return n}if(r){const t=QA(e,n,j);t&&j(e,t,2,!0,void 0,o)}return 0}function Z(e,n,t,r){const o=e.types;if(1048576&e.flags&&Lb(o,n))return-1;const i=o.length;for(let a=0;a<i;a++){const e=j(o[a],n,1,t&&a===i-1,void 0,r);if(e)return e}return 0}function ne(e,n,r,o,i){var a,l,c;if(x)return 0;const d=Mx(e,n,o,t,!1),p=t.get(d);if(void 0!==p&&(!(r&&2&p)||96&p)){if(at){const n=24&p;8&n&&xE(e,Rt),16&n&&xE(e,xt)}if(r&&96&p){F(32&p?fa.Excessive_complexity_comparing_types_0_and_1:fa.Excessive_stack_depth_comparing_types_0_and_1,El(e),El(n)),R++}return 1&p?-1:0}if(C<=0)return x=!0,0;if(f){if(m.has(d))return 3;const r=d.startsWith("*")?Mx(e,n,o,t,!0):void 0;if(r&&m.has(r))return 3;if(100===T||100===E)return x=!0,0}else f=[],m=new Set,h=[],_=[];const g=v;f[v]=d,m.add(d),v++;const y=A;let b;1&i&&(h[T]=e,T++,1&A||!Ox(e,h,T)||(A|=1)),2&i&&(_[E]=n,E++,2&A||!Ox(n,_,E)||(A|=2));let S,I=0;return at&&(b=at,at=e=>(I|=e?16:8,b(e))),3===A?(null==(a=Kt)||a.instant(Kt.Phase.CheckTypes,"recursiveTypeRelatedTo_DepthLimit",{sourceId:e.id,sourceIdStack:h.map(e=>e.id),targetId:n.id,targetIdStack:_.map(e=>e.id),depth:T,targetDepth:E}),S=3):(null==(l=Kt)||l.push(Kt.Phase.CheckTypes,"structuredTypeRelatedTo",{sourceId:e.id,targetId:n.id}),S=function(e,n,r,o){const i=L();let a=function(e,n,r,o,i){let a,l,c=!1,d=e.flags;const p=n.flags;if(t===Di){if(3145728&d){let t=$(e,n);return t&&(t&=$(n,e)),t}if(4194304&d)return j(e.type,n.type,3,!1);if(8388608&d&&(a=j(e.objectType,n.objectType,3,!1))&&(a&=j(e.indexType,n.indexType,3,!1)))return a;if(16777216&d&&e.root.isDistributive===n.root.isDistributive&&(a=j(e.checkType,n.checkType,3,!1))&&(a&=j(e.extendsType,n.extendsType,3,!1))&&(a&=j(tS(e),tS(n),3,!1))&&(a&=j(iS(e),iS(n),3,!1)))return a;if(33554432&d&&(a=j(e.baseType,n.baseType,3,!1))&&(a&=j(e.constraint,n.constraint,3,!1)))return a;if(134217728&d&&ee(e.texts,n.texts)){const t=e.types,r=n.types;a=-1;for(let e=0;e<t.length&&(a&=j(t[e],r[e],3,!1));e++);return a}if(268435456&d&&e.symbol===n.symbol)return j(e.type,n.type,3,!1);if(!(524288&d))return 0}else if(3145728&d||3145728&p){if(a=Y(e,n,r,o))return a;if(!(465829888&d||524288&d&&1048576&p||2097152&d&&467402752&p))return 0}if(17301504&d&&e.aliasSymbol&&e.aliasTypeArguments&&e.aliasSymbol===n.aliasSymbol&&!xx(e)&&!xx(n)){const t=_x(e.aliasSymbol);if(t===s)return 1;const r=da(e.aliasSymbol).typeParameters,i=z_(r),a=y(B_(e.aliasTypeArguments,r,i,Lh(e.aliasSymbol.valueDeclaration)),B_(n.aliasTypeArguments,r,i,Lh(e.aliasSymbol.valueDeclaration)),t,o);if(void 0!==a)return a}if(_R(e)&&!e.target.readonly&&(a=j(by(e)[0],n,1))||_R(n)&&(n.target.readonly||Xx(Tm(e)||e))&&(a=j(e,by(n)[0],2)))return a;if(262144&p){if(32&bT(e)&&!e.declaration.nameType&&j(fT(n),Ef(e),3)&&!(4&Cf(e))){const t=xf(e),o=jT(n,Sf(e));if(a=j(t,o,3,r))return a}if(t===Ii&&262144&d){let t=um(e);if(t)for(;t&&NC(t,e=>!!(262144&e.flags));){if(a=j(t,n,1,!1))return a;t=um(t)}return 0}}else if(4194304&p){const t=n.type;if(4194304&d&&(a=j(t,e.type,3,!1)))return a;if(mR(t)){if(a=j(e,Db(t),2,r))return a}else{const o=_m(t);if(o){if(-1===j(e,fT(o,4|n.indexFlags),2,r))return-1}else if(Uf(t)){const n=Af(t),o=Ef(t);let i;if(n&&If(t)){i=Gb([te(n,t),n])}else i=n||o;if(-1===j(e,i,2,r))return-1}}}else if(8388608&p){if(8388608&d){if((a=j(e.objectType,n.objectType,3,r))&&(a&=j(e.indexType,n.indexType,3,r)),a)return a;r&&(l=u)}if(t===Ei||t===Ii){const t=n.objectType,s=n.indexType,c=Tm(t)||t,d=Tm(s)||s;if(!wT(c)&&!OT(d)){const n=HT(c,d,4|(c!==t?2:0));if(n){if(r&&l&&P(i),a=j(e,n,2,r,void 0,o))return a;r&&l&&u&&(u=g([l])<=g([u])?l:u)}}}r&&(l=void 0)}else if(Uf(n)&&t!==Di){const t=!!n.declaration.nameType,o=xf(n),s=Cf(n);if(!(8&s)){if(!t&&8388608&o.flags&&o.objectType===e&&o.indexType===Sf(n))return-1;if(!Uf(e)){const o=t?Af(n):Ef(n),c=fT(e,2),d=4&s,p=d?qp(o,c):void 0;if(d?!(131072&p.flags):j(o,c,3)){const i=xf(n),s=Sf(n),l=HC(i,-98305);if(!t&&8388608&l.flags&&l.indexType===s){if(a=j(e,l.objectType,2,r))return a}else{const n=jT(e,t?p||o:p?Xb([p,s]):s);if(a=j(n,i,3,r))return a}}l=u,P(i)}}}else if(16777216&p){if(Ox(n,_,E,10))return 3;const t=n;if(!(t.root.inferTypeParameters||(f=t.root,f.isDistributive&&(vE(f.checkType,f.node.trueType)||vE(f.checkType,f.node.falseType)))||16777216&e.flags&&e.root===t.root)){const n=!BE(IE(t.checkType),IE(t.extendsType)),r=!n&&BE(DE(t.checkType),DE(t.extendsType));if((a=n?-1:j(e,tS(t),2,!1,void 0,o))&&(a&=r?-1:j(e,iS(t),2,!1,void 0,o),a))return a}}else if(134217728&p){if(134217728&d){if(t===Ii)return function(e,n){const t=e.texts[0],r=n.texts[0],o=e.texts[e.texts.length-1],i=n.texts[n.texts.length-1],a=Math.min(t.length,r.length),s=Math.min(o.length,i.length);return t.slice(0,a)!==r.slice(0,a)||o.slice(o.length-s)!==i.slice(i.length-s)}(e,n)?0:-1;xE(e,xt)}if(DI(e,n))return-1}else if(268435456&n.flags&&!(268435456&e.flags)&&xI(e,n))return-1;var f;if(8650752&d){if(!(8388608&d&&8388608&p)){const t=dm(e)||On;if(a=j(t,n,1,!1,void 0,o))return a;if(a=j(Lp(t,e),n,1,r&&t!==On&&!(p&d&262144),void 0,o))return a;if(Gm(e)){const t=dm(e.indexType);if(t&&(a=j(jT(e.objectType,t),n,1,r)))return a}}}else if(4194304&d){const t=cT(e.type,e.indexFlags)&&32&bT(e.type);if(a=j(gt,n,1,r&&!t))return a;if(t){const t=e.type,o=Af(t),i=o&&If(t)?te(o,t):o||Ef(t);if(a=j(i,n,1,r))return a}}else if(134217728&d&&!(524288&p)){if(!(134217728&p)){const t=Tm(e);if(t&&t!==e&&(a=j(t,n,1,r)))return a}}else if(268435456&d)if(268435456&p){if(e.symbol!==n.symbol)return 0;if(a=j(e.type,n.type,3,r))return a}else{const t=Tm(e);if(t&&(a=j(t,n,1,r)))return a}else if(16777216&d){if(Ox(e,h,T,10))return 3;if(16777216&p){const t=e.root.inferTypeParameters;let o,i=e.extendsType;if(t){const e=nI(t,void 0,0,V);NI(e.inferences,n.extendsType,i,1536),i=xE(i,e.mapper),o=e.mapper}if(kE(i,n.extendsType)&&(j(e.checkType,n.checkType,3)||j(n.checkType,e.checkType,3))&&((a=j(xE(tS(e),o),tS(n),3,r))&&(a&=j(iS(e),iS(n),3,r)),a))return a}const t=gm(e);if(t&&(a=j(t,n,1,r)))return a;const o=16777216&p||!Em(e)?void 0:ym(e);if(o&&(P(i),a=j(o,n,1,r)))return a}else{if(t!==bi&&t!==Ti&&(32&bT(m=n)&&4&Cf(m))&&cA(e))return-1;if(Uf(n))return Uf(e)&&(a=function(e,n,r){const o=t===Ii||(t===Di?Cf(e)===Cf(n):zf(e)<=zf(n));if(o){let t;if(t=j(Ef(n),xE(Ef(e),zf(e)<0?Rt:xt),3,r)){const o=tE([Sf(e)],[Sf(n)]);if(xE(Af(e),o)===xE(Af(n),o))return t&j(xE(xf(e),o),xf(n),3,r)}}return 0}(e,n,r))?a:0;const f=!!(402784252&d);if(t!==Di)d=(e=Vm(e)).flags;else if(Uf(e))return 0;if(4&bT(e)&&4&bT(n)&&e.target===n.target&&!mR(e)&&!xx(e)&&!xx(n)){if(nR(e))return-1;const t=hx(e.target);if(t===s)return 1;const r=y(by(e),by(n),t,o);if(void 0!==r)return r}else{if(qx(n)?LC(e,Jx):Kx(n)&&LC(e,e=>mR(e)&&!e.target.readonly))return t!==Di?j(p_(e,Kn)||In,p_(n,Kn)||In,3,r):0;if(hR(e)&&mR(n)&&!hR(n)){const t=Sm(e);if(t!==e)return j(t,n,1,r)}else if((t===bi||t===Ti)&&cA(n)&&8192&bT(n)&&!cA(e))return 0}if(2621440&d&&524288&p){const t=r&&u===i.errorInfo&&!f;if(a=le(e,n,t,void 0,!1,o),a&&(a&=ce(e,n,0,t,o),a&&(a&=ce(e,n,1,t,o),a&&(a&=ge(e,n,f,t,o)))),c&&a)u=l||u||i.errorInfo;else if(a)return a}if(2621440&d&&1048576&p){const r=HC(n,36175872);if(1048576&r.flags){const n=function(e,n){var r;const o=cm(e),i=ZI(o,n);if(!i)return 0;let a=1;for(const t of i)if(a*=BC(jd(t)),a>25)return null==(r=Kt)||r.instant(Kt.Phase.CheckTypes,"typeRelatedToDiscriminatedType_DepthLimit",{sourceId:e.id,targetId:n.id,numCombinations:a}),0;const s=new Array(i.length),l=new Set;for(let t=0;t<i.length;t++){const e=i[t],n=jd(e);s[t]=1048576&n.flags?n.types:[n],l.add(e.escapedName)}const c=it(s),d=[];for(const p of c){let r=!1;e:for(const o of n.types){for(let r=0;r<i.length;r++){const a=i[r],s=wh(o,a.escapedName);if(!s)continue e;if(a===s)continue;if(!ae(e,n,a,s,e=>p[r],!1,0,X||t===Ii))continue e}se(d,o,hn),r=!0}if(!r)return 0}let u=-1;for(const t of d)if(u&=le(e,t,!1,l,!1,0),u&&(u&=ce(e,t,0,!1,0),u&&(u&=ce(e,t,1,!1,0),!u||mR(e)&&mR(t)||(u&=ge(e,t,!1,!1,0)))),!u)return u;return u}(e,r);if(n)return n}}}var m;return 0;function g(e){return e?xe(e,(e,n)=>e+1+g(n.next),0):0}function y(e,n,o,d){if(a=function(e=s,n=s,r=s,o,i){if(e.length!==n.length&&t===Di)return 0;const a=e.length<=n.length?e.length:n.length;let l=-1;for(let s=0;s<a;s++){const a=s<r.length?r[s]:1,c=7&a;if(4!==c){const r=e[s],d=n[s];let u=-1;if(8&a?u=t===Di?j(r,d,3,!1):wE(r,d):1===c?u=j(r,d,3,o,void 0,i):2===c?u=j(d,r,3,o,void 0,i):3===c?(u=j(d,r,3,!1),u||(u=j(r,d,3,o,void 0,i))):(u=j(r,d,3,o,void 0,i),u&&(u&=j(d,r,3,o,void 0,i))),!u)return 0;l&=u}}return l}(e,n,o,r,d))return a;if(U(o,e=>!!(24&e)))return l=void 0,void P(i);const p=n&&function(e,n){for(let t=0;t<n.length;t++)if(1==(7&n[t])&&16384&e[t].flags)return!0;return!1}(n,o);if(c=!p,o!==s&&!p){if(c&&(!r||!U(o,e=>!(7&e))))return 0;l=u,P(i)}}}(e,n,r,o,i);if(t!==Di){if(!a&&(2097152&e.flags||262144&e.flags&&1048576&n.flags)){const t=function(e,n){let t,r=!1;for(const o of e)if(465829888&o.flags){let e=dm(o);for(;e&&21233664&e.flags;)e=dm(e);e&&(t=re(t,e),n&&(t=re(t,o)))}else(469892092&o.flags||hA(o))&&(r=!0);if(t&&(n||r)){if(r)for(const n of e)(469892092&n.flags||hA(n))&&(t=re(t,n));return LA(Xb(t,2),!1)}}(2097152&e.flags?e.types:[e],!!(1048576&n.flags));t&&LC(t,n=>n!==e)&&(a=j(t,n,1,!1,void 0,o))}a&&!(2&o)&&2097152&n.flags&&!wT(n)&&2621440&e.flags?(a&=le(e,n,r,void 0,!1,0),a&&LI(e)&&8192&bT(e)&&(a&=ge(e,n,!1,r,0))):a&&mS(n)&&!Jx(n)&&2097152&e.flags&&3670016&Vm(e).flags&&!U(e.types,e=>e===n||!!(262144&bT(e)))&&(a&=le(e,n,r,void 0,!0,o))}a&&P(i);return a}(e,n,r,o),null==(c=Kt)||c.pop()),at&&(at=b),1&i&&T--,2&i&&E--,A=y,S?(-1===S||0===T&&0===E)&&D(-1===S||3===S):(t.set(d,2|I),C--,D(!1)),S;function D(e){for(let n=g;n<v;n++)m.delete(f[n]),e&&(t.set(f[n],1|I),C--);v=g}}function te(e,n){const t=Vm(Df(n)),r=[];return mf(t,8576,!1,t=>{r.push(xE(e,fE(n.mapper,Sf(n),t)))}),Gb(r)}function ie(e,n){if(!n||0===e.length)return e;let t;for(let 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 ae(e,n,r,o,i,a,s,l){const c=lT(r),d=lT(o);if(2&c||2&d){if(r.valueDeclaration!==o.valueDeclaration)return a&&(2&c&&2&d?F(fa.Types_have_separate_declarations_of_a_private_property_0,hl(o)):F(fa.Property_0_is_private_in_type_1_but_not_in_type_2,hl(o),El(2&c?e:n),El(2&c?n:e))),0}else if(4&d){if(!function(e,n){return!Px(n,n=>{return!!(4&lT(n))&&(t=e,r=Lx(n),!Px(t,e=>{const n=Lx(e);return!!n&&Yd(n,r)}));var t,r})}(r,o))return a&&F(fa.Property_0_is_protected_but_type_1_is_not_a_class_derived_from_2,hl(o),El(Lx(r)||e),El(Lx(o)||n)),0}else if(4&c)return a&&F(fa.Property_0_is_protected_in_type_1_but_public_in_type_2,hl(o),El(e),El(n)),0;if(t===Ti&&QO(r)&&!QO(o))return 0;const u=function(e,n,r,o,i){const a=X&&!!(48&sT(n)),s=Pc(jd(n),!1,a);return s.flags&(t===Ti?1:3)?-1:j(r(e),s,3,o,void 0,i)}(r,o,i,a,s);return u?!l&&16777216&r.flags&&106500&o.flags&&!(16777216&o.flags)?(a&&F(fa.Property_0_is_optional_in_type_1_but_required_in_type_2,hl(o),El(e),El(n)),0):u:(a&&k(fa.Types_of_property_0_are_incompatible,hl(o)),0)}function le(e,n,r,o,a,s){if(t===Di)return function(e,n,t){if(!(524288&e.flags&&524288&n.flags))return 0;const r=ie($f(e),t),o=ie($f(n),t);if(r.length!==o.length)return 0;let i=-1;for(const a of r){const e=sm(n,a.escapedName);if(!e)return 0;const t=Gx(a,e,j);if(!t)return 0;i&=t}return i}(e,n,o);let l=-1;if(mR(n)){if(Jx(e)){if(!n.target.readonly&&(qx(e)||mR(e)&&e.target.readonly))return 0;const t=Ty(e),i=Ty(n),a=mR(e)?4&e.target.combinedFlags:4,c=!!(12&n.target.combinedFlags),d=mR(e)?e.target.minLength:0,u=n.target.minLength;if(!a&&t<u)return r&&F(fa.Source_has_0_element_s_but_target_requires_1,t,u),0;if(!c&&i<d)return r&&F(fa.Source_has_0_element_s_but_target_allows_only_1,d,i),0;if(!c&&(a||i<t))return r&&(d<u?F(fa.Target_requires_0_element_s_but_source_may_have_fewer,u):F(fa.Target_allows_only_0_element_s_but_source_may_have_more,i)),0;const p=by(e),f=by(n),m=function(e,n){const t=b(e.elementFlags,e=>!(e&n));return t>=0?t:e.elementFlags.length}(n.target,11),h=Cb(n.target,11);let _=!!o;for(let g=0;g<t;g++){const a=mR(e)?e.target.elementFlags[g]:4,d=t-1-g,u=c&&g>=m?i-1-Math.min(d,h):g,y=n.target.elementFlags[u];if(8&y&&!(8&a))return r&&F(fa.Source_provides_no_match_for_variadic_element_at_position_0_in_target,u),0;if(8&a&&!(12&y))return r&&F(fa.Variadic_element_at_position_0_in_source_does_not_match_element_at_position_1_in_target,g,u),0;if(1&y&&!(1&a))return r&&F(fa.Source_provides_no_match_for_required_element_at_position_0_in_target,u),0;if(_&&((12&a||12&y)&&(_=!1),_&&(null==o?void 0:o.has(""+g))))continue;const v=LR(p[g],!!(a&y&2)),b=f[u],T=j(v,8&a&&4&y?Jv(b):LR(b,!!(2&y)),3,r,void 0,s);if(!T)return r&&(i>1||t>1)&&(c&&g>=m&&d>=h&&m!==t-h-1?k(fa.Type_at_positions_0_through_1_in_source_is_not_compatible_with_type_at_position_2_in_target,m,t-h-1,u):k(fa.Type_at_position_0_in_source_is_not_compatible_with_type_at_position_1_in_target,g,u)),0;l&=T}return l}if(12&n.target.combinedFlags)return 0}const d=!(t!==bi&&t!==Ti||LI(e)||nR(e)||mR(e)),p=vI(e,n,d,!1);if(p)return r&&function(e,n){const t=zh(e,0),r=zh(e,1),o=$f(e);if((t.length||r.length)&&!o.length)return!!(Vh(n,0).length&&t.length||Vh(n,1).length&&r.length);return!0}(e,n)&&function(e,n,t,r){let o=!1;if(t.valueDeclaration&&Rl(t.valueDeclaration)&&uD(t.valueDeclaration.name)&&e.symbol&&32&e.symbol.flags){const r=t.valueDeclaration.name.escapedText,o=qg(e.symbol,r);if(o&&wh(e,o)){const t=vR.getDeclarationName(e.symbol.valueDeclaration),o=vR.getDeclarationName(n.symbol.valueDeclaration);return void F(fa.Property_0_in_type_1_refers_to_a_different_member_that_cannot_be_accessed_from_within_type_2,ya(r),ya(""===t.escapedText?Yz:t),ya(""===o.escapedText?Yz:o))}}const a=Le(yI(e,n,r,!1));if((!i||i.code!==fa.Class_0_incorrectly_implements_interface_1.code&&i.code!==fa.Class_0_incorrectly_implements_class_1_Did_you_mean_to_extend_1_and_inherit_its_members_as_a_subclass.code)&&(o=!0),1===a.length){const r=hl(t,void 0,0,20);F(fa.Property_0_is_missing_in_type_1_but_required_in_type_2,r,...xl(e,n)),c(t.declarations)&&z(Vf(t.declarations[0],fa._0_is_declared_here,r)),o&&u&&R++}else G(e,n,!1)&&(a.length>5?F(fa.Type_0_is_missing_the_following_properties_from_type_1_Colon_2_and_3_more,El(e),El(n),D(a.slice(0,4),e=>hl(e)).join(", "),a.length-4):F(fa.Type_0_is_missing_the_following_properties_from_type_1_Colon_2,El(e),El(n),D(a,e=>hl(e)).join(", ")),o&&u&&R++)}(e,n,p,d),0;if(LI(n))for(const t of ie(cm(e),o))if(!sm(n,t.escapedName)){if(!(32768&Vd(t).flags))return r&&F(fa.Property_0_does_not_exist_on_type_1,hl(t),El(n)),0}const f=cm(n),m=mR(e)&&mR(n);for(const i of ie(f,o)){const o=i.escapedName;if(!(4194304&i.flags)&&(!m||UA(o)||"length"===o)&&(!a||16777216&i.flags)){const a=wh(e,o);if(a&&a!==i){const o=ae(e,n,a,i,jd,r,s,t===Ii);if(!o)return 0;l&=o}}}return l}function ce(e,n,r,o,i){var a,s;if(t===Di)return function(e,n,t){const r=Vh(e,t),o=Vh(n,t);if(r.length!==o.length)return 0;let i=-1;for(let a=0;a<r.length;a++){const e=jx(r[a],o[a],!1,!1,!1,j);if(!e)return 0;i&=e}return i}(e,n,r);if(n===wt||e===wt)return-1;const l=e.symbol&&Fw(e.symbol.valueDeclaration),c=n.symbol&&Fw(n.symbol.valueDeclaration),d=Vh(e,l&&1===r?0:r),u=Vh(n,c&&1===r?0:r);if(1===r&&d.length&&u.length){const e=!!(4&d[0].flags),n=!!(4&u[0].flags);if(e&&!n)return o&&F(fa.Cannot_assign_an_abstract_constructor_type_to_a_non_abstract_constructor_type),0;if(!function(e,n,t){if(!e.declaration||!n.declaration)return!0;const r=Bv(e.declaration,6),o=Bv(n.declaration,6);if(2===o)return!0;if(4===o&&2!==r)return!0;if(4!==o&&!r)return!0;t&&F(fa.Cannot_assign_a_0_constructor_type_to_a_1_constructor_type,zl(r),zl(o));return!1}(d[0],u[0],o))return 0}let p=-1;const f=1===r?pe:ue,m=bT(e),h=bT(n);if(64&m&&64&h&&e.symbol===n.symbol||4&m&&4&h&&e.target===n.target){dt.assertEqual(d.length,u.length);for(let e=0;e<u.length;e++){const n=me(d[e],u[e],!0,o,i,f(d[e],u[e]));if(!n)return 0;p&=n}}else if(1===d.length&&1===u.length){const e=t===Ii,n=he(d),l=he(u);if(p=me(n,l,e,o,i,f(n,l)),!p&&o&&1===r&&m&h&&(177===(null==(a=l.declaration)?void 0:a.kind)||177===(null==(s=n.declaration)?void 0:s.kind))){const e=e=>Sl(e,void 0,262144,r);return F(fa.Type_0_is_not_assignable_to_type_1,e(n),e(l)),F(fa.Types_of_construct_signatures_are_incompatible),p}}else e:for(const t of u){const n=L();let a=o;for(const e of d){const r=me(e,t,!0,a,i,f(e,t));if(r){p&=r,P(n);continue e}a=!1}return a&&F(fa.Type_0_provides_no_match_for_the_signature_1,El(e),Sl(t,void 0,void 0,r)),0}return p}function ue(e,n){return 0===e.parameters.length&&0===n.parameters.length?(e,n)=>k(fa.Call_signatures_with_no_arguments_have_incompatible_return_types_0_and_1,El(e),El(n)):(e,n)=>k(fa.Call_signature_return_types_0_and_1_are_incompatible,El(e),El(n))}function pe(e,n){return 0===e.parameters.length&&0===n.parameters.length?(e,n)=>k(fa.Construct_signatures_with_no_arguments_have_incompatible_return_types_0_and_1,El(e),El(n)):(e,n)=>k(fa.Construct_signature_return_types_0_and_1_are_incompatible,El(e),El(n))}function me(e,n,r,o,i,a){const s=t===bi?16:t===Ti?24:0;return oA(r?wg(e):e,r?wg(n):n,s,o,F,a,function(e,n,t){return j(e,n,3,t,void 0,i)},xt)}function _e(e,n,t,r){const o=j(e.type,n.type,3,t,void 0,r);return!o&&t&&(e.keyType===n.keyType?F(fa._0_index_signatures_are_incompatible,El(e.keyType)):F(fa._0_and_1_index_signatures_are_incompatible,El(e.keyType),El(n.keyType))),o}function ge(e,n,r,o,i){if(t===Di)return function(e,n){const t=l_(e),r=l_(n);if(t.length!==r.length)return 0;for(const o of r){const n=u_(e,o.keyType);if(!n||!j(n.type,o.type,3)||n.isReadonly!==o.isReadonly)return 0}return-1}(e,n);const a=l_(n),s=U(a,e=>e.keyType===Hn);let l=-1;for(const c of a){const n=t!==Ti&&!r&&s&&1&c.type.flags?-1:Uf(e)&&s?j(xf(e),c.type,3,o):ye(e,c,o,i);if(!n)return 0;l&=n}return l}function ye(e,n,r,o){const i=v_(e,n.keyType);return i?_e(i,n,r,o):1&o||!(t!==Ti||8192&bT(e))||!FR(e)?(r&&F(fa.Index_signature_for_type_0_is_missing_in_type_1,El(n.keyType),El(e)),0):function(e,n,t,r){let o=-1;const i=n.keyType,a=2097152&e.flags?lm(e):$f(e);for(const s of a)if(!NA(e,s)&&a_(oT(s,8576),i)){const e=jd(s),a=j(de||32768&e.flags||i===Kn||!(16777216&s.flags)?e:fD(e,524288),n.type,3,t,void 0,r);if(!a)return t&&F(fa.Property_0_is_incompatible_with_index_signature,hl(s)),0;o&=a}for(const s of l_(e))if(a_(s.keyType,i)){const e=_e(s,n,t,r);if(!e)return 0;o&=e}return o}(e,n,r,o)}}function WA(e){if(16&e.flags)return!1;if(3145728&e.flags)return!!d(e.types,WA);if(465829888&e.flags){const n=dm(e);if(n&&n!==e)return WA(n)}return iR(e)||!!(134217728&e.flags)||!!(268435456&e.flags)}function jA(e,n){return mR(e)&&mR(n)?s:cm(n).filter(n=>qA(nc(e,n.escapedName),Vd(n)))}function qA(e,n){return!!e&&!!n&&iF(e,32768)&&!!kR(n)}function QA(e,n,t=OE){return $V(e,n,t)||function(e,n){const t=bT(e);if(20&t&&1048576&n.flags)return y(n.types,n=>{if(524288&n.flags){const r=t&bT(n);if(4&r)return e.target===n.target;if(16&r)return!!e.aliasSymbol&&e.aliasSymbol===n.aliasSymbol}return!1})}(e,n)||function(e,n){if(128&bT(e)&&NC(n,$x))return y(n.types,e=>!$x(e))}(e,n)||function(e,n){let t=0;const r=Vh(e,t).length>0||(t=1,Vh(e,t).length>0);if(r)return y(n.types,e=>Vh(e,t).length>0)}(e,n)||function(e,n){let t;if(!(406978556&e.flags)){let r=0;for(const o of n.types)if(!(406978556&o.flags)){const n=Xb([fT(e),fT(o)]);if(4194304&n.flags)return o;if(iR(n)||1048576&n.flags){const e=1048576&n.flags?A(n.types,iR):1;e>=r&&(t=o,r=e)}}}return t}(e,n)}function sx(e,n,t){const r=e.types,o=r.map(e=>402784252&e.flags?0:-1);for(const[a,s]of n){let e=!1;for(let n=0;n<r.length;n++)if(o[n]){const i=tc(r[n],s);i&&(NC(a(),e=>!!t(e,i))?e=!0:o[n]=3)}for(let n=0;n<r.length;n++)3===o[n]&&(o[n]=e?0:-1)}const i=S(o,0)?Gb(r.filter((e,n)=>o[n]),0):e;return 131072&i.flags?e:i}function cx(e){if(524288&e.flags){const n=Jf(e);return 0===n.callSignatures.length&&0===n.constructSignatures.length&&0===n.indexInfos.length&&n.properties.length>0&&g(n.properties,e=>!!(16777216&e.flags))}return 33554432&e.flags?cx(e.baseType):!!(2097152&e.flags)&&g(e.types,cx)}function hx(e){return e===Zt||e===tr||8&e.objectFlags?w:yx(e.symbol,e.typeParameters)}function _x(e){return yx(e,da(e).typeParameters)}function yx(e,n=s){var t,r;const o=da(e);if(!o.variances){null==(t=Kt)||t.push(Kt.Phase.CheckTypes,"getVariancesWorker",{arity:n.length,id:Pb(Wu(e))});const i=Jo,a=qo;Jo||(Jo=!0,qo=Uo.length),o.variances=s;const l=[];for(const t of n){const n=Dx(t);let r=16384&n?8192&n?0:1:8192&n?2:void 0;if(void 0===r){let n=!1,o=!1;const i=at;at=e=>e?o=!0:n=!0;const a=Ax(e,t,zt),s=Ax(e,t,Bt);r=(BE(s,a)?1:0)|(BE(a,s)?2:0),3===r&&BE(Ax(e,t,Gt),a)&&(r=4),at=i,(n||o)&&(n&&(r|=8),o&&(r|=16))}l.push(r)}i||(Jo=!1,qo=a),o.variances=l,null==(r=Kt)||r.pop({variances:l.map(dt.formatVariance)})}return o.variances}function Ax(e,n,t){const r=oE(n,t),o=Wu(e);if(ac(o))return o;const i=524288&e.flags?Ey(e,YS(da(e).typeParameters,r)):gy(o,YS(o.typeParameters,r));return Tn.add(Pb(i)),i}function xx(e){return Tn.has(Pb(e))}function Dx(e){var n;return 28672&xe(null==(n=e.symbol)?void 0:n.declarations,(e,n)=>e|jv(n),0)}function Cx(e){return 262144&e.flags&&!um(e)}function Nx(e){return function(e){return!!(4&bT(e))&&!e.node}(e)&&U(by(e),e=>!!(262144&e.flags)||Nx(e))}function Mx(e,n,t,r,o){if(r===Di&&e.id>n.id){const t=e;e=n,n=t}const i=t?":"+t:"";return Nx(e)&&Nx(n)?function(e,n,t,r){const o=[];let i="";const a=l(e,0),s=l(n,0);return`${i}${a},${s}${t}`;function l(e,n=0){let t=""+e.target.id;for(const a of by(e)){if(262144&a.flags){if(r||Cx(a)){let e=o.indexOf(a);e<0&&(e=o.length,o.push(a)),t+="="+e;continue}i="*"}else if(n<4&&Nx(a)){t+="<"+l(a,n+1)+">";continue}t+="-"+a.id}return t}}(e,n,i,o):`${e.id},${n.id}${i}`}function Px(e,n){if(!(6&sT(e)))return n(e);for(const t of e.links.containingType.types){const r=wh(t,e.escapedName),o=r&&Px(r,n);if(o)return o}}function Lx(e){return e.parent&&32&e.parent.flags?Wu(xs(e)):void 0}function kx(e){const n=Lx(e),t=n&&gu(n)[0];return t&&nc(t,e.escapedName)}function wx(e,n,t){return Px(n,n=>!!(4&lT(n,t))&&!Yd(e,Lx(n)))?void 0:e}function Ox(e,n,t,r=3){if(t>=r){if(96&~bT(e)||(e=Fx(e)),2097152&e.flags)return U(e.types,e=>Ox(e,n,t,r));const o=zx(e);let i=0,a=0;for(let e=0;e<t;e++){const t=n[e];if(Wx(t,o)){if(t.id>=a&&(i++,i>=r))return!0;a=t.id}}}return!1}function Fx(e){let n;for(;!(96&~bT(e))&&(n=Df(e))&&(n.symbol||2097152&n.flags&&U(n.types,e=>!!e.symbol));)e=n;return e}function Wx(e,n){return 96&~bT(e)||(e=Fx(e)),2097152&e.flags?U(e.types,e=>Wx(e,n)):zx(e)===n}function zx(e){if(524288&e.flags&&!kI(e)){if(4&bT(e)&&e.node)return e.node;if(e.symbol&&!(16&bT(e)&&32&e.symbol.flags))return e.symbol;if(mR(e))return e.target}if(262144&e.flags)return e.symbol;if(8388608&e.flags){do{e=e.objectType}while(8388608&e.flags);return e}return 16777216&e.flags?e.root:e}function Bx(e,n){return 0!==Gx(e,n,wE)}function Gx(e,n,t){if(e===n)return-1;const r=6&lT(e);if(r!==(6&lT(n)))return 0;if(r){if(OB(e)!==OB(n))return 0}else if((16777216&e.flags)!=(16777216&n.flags))return 0;return QO(e)!==QO(n)?0:t(Vd(e),Vd(n))}function jx(e,n,t,r,o,i){if(e===n)return-1;if(!function(e,n,t){const r=_O(e),o=_O(n),i=gO(e),a=gO(n),s=yO(e),l=yO(n);return r===o&&i===a&&s===l||!!(t&&i<=a)}(e,n,t))return 0;if(c(e.typeParameters)!==c(n.typeParameters))return 0;if(n.typeParameters){const t=tE(e.typeParameters,n.typeParameters);for(let r=0;r<n.typeParameters.length;r++){const o=e.typeParameters[r],a=n.typeParameters[r];if(!(o===a||i(xE(cy(o),t)||On,cy(a)||On)&&i(xE(Rm(o),t)||On,Rm(a)||On)))return 0}e=_E(e,t,!0)}let a=-1;if(!r){const t=og(e);if(t){const e=og(n);if(e){const n=i(t,e);if(!n)return 0;a&=n}}}const s=_O(n);for(let l=0;l<s;l++){const t=pO(e,l),r=i(pO(n,l),t);if(!r)return 0;a&=r}if(!o){const t=fg(e),r=fg(n);a&=t||r?function(e,n,t){return e&&n&&jb(e,n)?e.type===n.type?-1:e.type&&n.type?t(e.type,n.type):0:0}(t,r,i):i(Ag(e),Ag(n))}return a}function Ux(e){return xe(e,(e,n)=>e|(1048576&n.flags?Ux(n.types):n.flags),0)}function Hx(e){if(1===e.length)return e[0];const n=X?N(e,e=>kC(e,e=>!(98304&e.flags))):e,t=function(e){let n;for(const t of e)if(!(131072&t.flags)){const e=lR(t);if(n??(n=e),e===t||e!==n)return!1}return!0}(n)?Gb(n):function(e){const n=xe(e,(e,n)=>zE(e,n)?n:e);return g(e,e=>e===n||zE(e,n))?n:xe(e,(e,n)=>WE(e,n)?n:e)}(n);return n===e?t:RR(t,98304&Ux(e))}function Kx(e){return!!(4&bT(e))&&(e.target===Zt||e.target===tr)}function qx(e){return!!(4&bT(e))&&e.target===tr}function Jx(e){return Kx(e)||mR(e)}function Xx(e){return Kx(e)&&!qx(e)||mR(e)&&!e.target.readonly}function Yx(e){return Kx(e)?by(e)[0]:void 0}function $x(e){return Kx(e)||!(98304&e.flags)&&BE(e,dr)}function Qx(e){return Xx(e)||!(98305&e.flags)&&BE(e,lr)}function Zx(e){if(!(4&bT(e)&&3&bT(e.target)))return;if(33554432&bT(e))return 67108864&bT(e)?e.cachedEquivalentBaseType:void 0;e.objectFlags|=33554432;const n=e.target;if(1&bT(n)){const e=su(n);if(e&&80!==e.expression.kind&&212!==e.expression.kind)return}const t=gu(n);if(1!==t.length)return;if(Cp(e.symbol).size)return;let r=c(n.typeParameters)?xE(t[0],tE(n.typeParameters,by(e).slice(0,n.typeParameters.length))):t[0];return c(by(e))>c(n.typeParameters)&&(r=Lp(r,ye(by(e)))),e.objectFlags|=67108864,e.cachedEquivalentBaseType=r}function eR(e){return X?e===ft:e===Wn}function nR(e){const n=Yx(e);return!!n&&eR(n)}function tR(e){let n;return mR(e)||!!wh(e,"0")||$x(e)&&!!(n=nc(e,"length"))&&LC(n,e=>!!(256&e.flags))}function rR(e){return $x(e)||tR(e)}function oR(e){return!(240544&e.flags)}function iR(e){return!!(109472&e.flags)}function aR(e){const n=Sm(e);return 2097152&n.flags?U(n.types,iR):iR(n)}function sR(e){return!!(16&e.flags)||(1048576&e.flags?!!(1024&e.flags)||g(e.types,iR):iR(e))}function lR(e){return 1056&e.flags?xu(e):402653312&e.flags?Hn:256&e.flags?Kn:2048&e.flags?qn:512&e.flags?st:1048576&e.flags?function(e){const n=`B${Pb(e)}`;return Li(n)??wi(n,jC(e,lR))}(e):e}function cR(e){return 402653312&e.flags?Hn:288&e.flags?Kn:2048&e.flags?qn:512&e.flags?st:1048576&e.flags?jC(e,cR):e}function dR(e){return 1056&e.flags&&CS(e)?xu(e):128&e.flags&&CS(e)?Hn:256&e.flags&&CS(e)?Kn:2048&e.flags&&CS(e)?qn:512&e.flags&&CS(e)?st:1048576&e.flags?jC(e,dR):e}function uR(e){return 8192&e.flags?lt:1048576&e.flags?jC(e,uR):e}function pR(e,n){return CF(e,n)||(e=uR(dR(e))),xS(e)}function fR(e,n,t,r){if(e&&iR(e)){e=pR(e,n?Qz(t,n,r):void 0)}return e}function mR(e){return!!(4&bT(e)&&8&e.target.objectFlags)}function hR(e){return mR(e)&&!!(8&e.target.combinedFlags)}function _R(e){return hR(e)&&1===e.target.elementFlags.length}function gR(e){return bR(e,e.target.fixedLength)}function yR(e,n,t){return jC(e,e=>{const r=e,o=gR(r);return o?t&&n>=Nb(r.target)?Gb([o,t]):o:Fn})}function bR(e,n,t=0,r=!1,o=!1){const i=Ty(e)-t;if(n<i){const t=by(e),a=[];for(let r=n;r<i;r++){const n=t[r];a.push(8&e.target.elementFlags[r]?jT(n,Kn):n)}return r?Xb(a):Gb(a,o?0:1)}}function SR({value:e}){return"0"===e.base10Value}function ER(e){return kC(e,e=>cD(e,4194304))}function AR(e){return 4&e.flags?Go:8&e.flags?Vo:64&e.flags?jo:e===Qn||e===$n||114691&e.flags||128&e.flags&&""===e.value||256&e.flags&&0===e.value||2048&e.flags&&SR(e)?e:ut}function RR(e,n){const t=n&~e.flags&98304;return 0===t?e:Gb(32768===t?[e,Fn]:65536===t?[e,jn]:[e,Fn,jn])}function IR(e,n=!1){dt.assert(X);const t=n?Bn:Fn;return e===t||1048576&e.flags&&e.types[0]===t?e:Gb([e,t])}function DR(e){return X?mD(e,2097152):e}function CR(e){return X?Gb([e,Gn]):e}function NR(e){return X?zC(e,Gn):e}function MR(e,n,t){return t?Ec(n)?IR(e):CR(e):e}function PR(e,n){return Sc(n)?DR(e):bc(n)?NR(e):e}function LR(e,n){return de&&n?zC(e,zn):e}function kR(e){return e===zn||!!(1048576&e.flags)&&e.types[0]===zn}function wR(e){return de?zC(e,zn):fD(e,524288)}function FR(e){const n=bT(e);return 2097152&e.flags?g(e.types,FR):!(!(e.symbol&&7040&e.symbol.flags)||32&e.symbol.flags||kG(e))||!!(4194304&n)||!!(1024&n&&FR(e.source))}function BR(e,n){const t=Yi(e.flags,e.escapedName,8&sT(e));t.declarations=e.declarations,t.parent=e.parent,t.links.type=n,t.links.target=e,e.valueDeclaration&&(t.valueDeclaration=e.valueDeclaration);const r=da(e).nameType;return r&&(t.links.nameType=r),t}function GR(e){if(!(LI(e)&&8192&bT(e)))return e;const n=e.regularType;if(n)return n;const t=e,r=function(e,n){const t=Qu();for(const r of $f(e)){const e=Vd(r),o=n(e);t.set(r.escapedName,o===e?r:BR(r,o))}return t}(e,GR),o=qs(t.symbol,r,t.callSignatures,t.constructSignatures,t.indexInfos);return o.flags=t.flags,o.objectFlags|=-8193&t.objectFlags,e.regularType=o,o}function jR(e,n,t){return{parent:e,propertyName:n,siblings:t,resolvedProperties:void 0}}function UR(e){if(!e.siblings){const n=[];for(const t of UR(e.parent))if(LI(t)){const r=sm(t,e.propertyName);r&&IC(Vd(r),e=>{n.push(e)})}e.siblings=n}return e.siblings}function HR(e){if(!e.resolvedProperties){const n=new Map;for(const t of UR(e))if(LI(t)&&!(2097152&bT(t)))for(const e of cm(t))n.set(e.escapedName,e);e.resolvedProperties=Le(n.values())}return e.resolvedProperties}function KR(e,n){if(!(4&e.flags))return e;const t=Vd(e),r=XR(t,n&&jR(n,e.escapedName,void 0));return r===t?e:BR(e,r)}function qR(e){const n=bn.get(e.escapedName);if(n)return n;const t=BR(e,Bn);return t.flags|=16777216,bn.set(e.escapedName,t),t}function JR(e){return XR(e,void 0)}function XR(e,n){if(196608&bT(e)){if(void 0===n&&e.widened)return e.widened;let t;if(98305&e.flags)t=In;else if(LI(e))t=function(e,n){const t=Qu();for(const o of $f(e))t.set(o.escapedName,KR(o,n));if(n)for(const o of HR(n))t.has(o.escapedName)||t.set(o.escapedName,qR(o));const r=qs(e.symbol,t,s,s,N(l_(e),e=>Qg(e.keyType,JR(e.type),e.isReadonly,e.declaration,e.components)));return r.objectFlags|=266240&bT(e),r}(e,n);else if(1048576&e.flags){const r=n||jR(void 0,void 0,e.types),o=N(e.types,e=>98304&e.flags?e:XR(e,r));t=Gb(o,U(o,cA)?2:1)}else 2097152&e.flags?t=Xb(N(e.types,JR)):Jx(e)&&(t=gy(e.target,N(by(e),JR)));return t&&void 0===n&&(e.widened=t),t||e}return e}function YR(e){var n;let t=!1;if(65536&bT(e))if(1048576&e.flags)if(U(e.types,cA))t=!0;else for(const r of e.types)t||(t=YR(r));else if(Jx(e))for(const r of by(e))t||(t=YR(r));else if(LI(e))for(const r of $f(e)){const o=Vd(r);if(65536&bT(o)&&(t=YR(o),!t)){const i=null==(n=r.declarations)?void 0:n.find(n=>{var t;return(null==(t=n.symbol.valueDeclaration)?void 0:t.parent)===e.symbol.valueDeclaration});i&&(Bi(i,fa.Object_literal_s_property_0_implicitly_has_an_1_type,hl(r),El(JR(o))),t=!0)}}return t}function $R(e,n,t){const r=El(JR(n));if(Lh(e)&&!aA(Sp(e),O))return;let o;switch(e.kind){case 227:case 173:case 172:o=oe?fa.Member_0_implicitly_has_an_1_type:fa.Member_0_implicitly_has_an_1_type_but_a_better_type_may_be_inferred_from_usage;break;case 170:const n=e;if(dD(n.name)){const t=bl(n.name);if((WD(n.parent)||PD(n.parent)||jD(n.parent))&&n.parent.parameters.includes(n)&&(je(n,n.name.escapedText,788968,void 0,!0)||t&&RT(t))){const t="arg"+n.parent.parameters.indexOf(n),r=Of(n.name)+(n.dotDotDotToken?"[]":"");return void Ui(oe,e,fa.Parameter_has_a_name_but_no_type_Did_you_mean_0_Colon_1,t,r)}}o=e.dotDotDotToken?oe?fa.Rest_parameter_0_implicitly_has_an_any_type:fa.Rest_parameter_0_implicitly_has_an_any_type_but_a_better_type_may_be_inferred_from_usage:oe?fa.Parameter_0_implicitly_has_an_1_type:fa.Parameter_0_implicitly_has_an_1_type_but_a_better_type_may_be_inferred_from_usage;break;case 209:if(o=fa.Binding_element_0_implicitly_has_an_1_type,!oe)return;break;case 318:return void Bi(e,fa.Function_type_which_lacks_return_type_annotation_implicitly_has_an_0_return_type,r);case 324:return void(oe&&zM(e.parent)&&Bi(e.parent.tagName,fa.This_overload_implicitly_returns_the_type_0_because_it_lacks_a_return_type_annotation,r));case 263:case 175:case 174:case 178:case 179:case 219:case 220:if(oe&&!e.name)return void Bi(e,3===t?fa.Generator_implicitly_has_yield_type_0_Consider_supplying_a_return_type_annotation:fa.Function_expression_which_lacks_return_type_annotation_implicitly_has_an_0_return_type,r);o=oe?3===t?fa._0_which_lacks_return_type_annotation_implicitly_has_an_1_yield_type:fa._0_which_lacks_return_type_annotation_implicitly_has_an_1_return_type:fa._0_implicitly_has_an_1_return_type_but_a_better_type_may_be_inferred_from_usage;break;case 201:return void(oe&&Bi(e,fa.Mapped_object_type_implicitly_has_an_any_template_type));default:o=oe?fa.Variable_0_implicitly_has_an_1_type:fa.Variable_0_implicitly_has_an_1_type_but_a_better_type_may_be_inferred_from_usage}Ui(oe,e,o,Of(Dl(e)),r)}function QR(e,n,t){a(()=>{oe&&65536&bT(n)&&(!t||ld(e)&&function(e,n){const t=oL(e);if(!t)return!0;let r=Ag(t);const o=Fg(e);switch(n){case 1:return 1&o?r=Qz(1,r,!!(2&o))??r:2&o&&(r=RW(r)??r),kT(r);case 3:const e=Qz(0,r,!!(2&o));return!!e&&kT(e);case 2:const n=Qz(2,r,!!(2&o));return!!n&&kT(n)}return!1}(e,t))&&(YR(n)||$R(e,n,t))})}function ZR(e,n,t){const r=_O(e),o=_O(n),i=vO(e),a=vO(n),s=a?o-1:o,l=i?s:Math.min(r,s),c=og(e);if(c){const e=og(n);e&&t(c,e)}for(let d=0;d<l;d++)t(pO(e,d),pO(n,d));a&&t(mO(e,l,mm(a)&&!NC(a,Qx)),a)}function eI(e,n,t){const r=fg(n);if(r){const n=fg(e);if(n&&jb(n,r)&&n.type&&r.type)return void t(n.type,r.type)}const o=Ag(n);pI(o)&&t(Ag(e),o)}function nI(e,n,t,r){return iI(e.map(cI),n,t,r||OE)}function oI(e,n=0){return e&&iI(D(e.inferences,dI),e.signature,e.flags|n,e.compareTypes)}function iI(e,n,t,r){const o={inferences:e,signature:n,flags:t,compareTypes:r,mapper:Rt,nonFixingMapper:Rt};return o.mapper=function(e){return sE(D(e.inferences,e=>e.typeParameter),D(e.inferences,(n,t)=>()=>(n.isFixed||(!function(e){if(e.intraExpressionInferenceSites){for(const{node:n,type:t}of e.intraExpressionInferenceSites){const r=175===n.kind?OP(n,2):KP(n,2);r&&NI(e.inferences,t,r)}e.intraExpressionInferenceSites=void 0}}(e),aI(e.inferences),n.isFixed=!0),FI(e,t))))}(o),o.nonFixingMapper=function(e){return sE(D(e.inferences,e=>e.typeParameter),D(e.inferences,(n,t)=>()=>FI(e,t)))}(o),o}function aI(e){for(const n of e)n.isFixed||(n.inferredType=void 0)}function lI(e,n,t){(e.intraExpressionInferenceSites??(e.intraExpressionInferenceSites=[])).push({node:n,type:t})}function cI(e){return{typeParameter:e,candidates:void 0,contraCandidates:void 0,inferredType:void 0,priority:void 0,topLevel:!0,isFixed:!1,impliedArity:void 0}}function dI(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,impliedArity:e.impliedArity}}function uI(e){return e&&e.mapper}function pI(e){const n=bT(e);if(524288&n)return!!(1048576&n);const t=!!(465829888&e.flags||524288&e.flags&&!fI(e)&&(4&n&&(e.node||U(by(e),pI))||16&n&&e.symbol&&14384&e.symbol.flags&&e.symbol.declarations||12583968&n)||3145728&e.flags&&!(1024&e.flags)&&!fI(e)&&U(e.types,pI));return 3899393&e.flags&&(e.objectFlags|=524288|(t?1048576:0)),t}function fI(e){if(e.aliasSymbol&&!e.aliasTypeArguments){const n=Yu(e.aliasSymbol,266);return!(!n||!ml(n.parent,e=>308===e.kind||268!==e.kind&&"quit"))}return!1}function mI(e,n,t=0){return!!(e===n||3145728&e.flags&&U(e.types,e=>mI(e,n,t))||t<3&&16777216&e.flags&&(mI(tS(e),n,t+1)||mI(iS(e),n,t+1)))}function hI(e,n,t){const r=e.id+","+n.id+","+t.id;if(So.has(r))return So.get(r);const o=function(e,n,t){if(!(u_(e,Hn)||0!==cm(e).length&&_I(e)))return;if(Kx(e)){const r=gI(by(e)[0],n,t);if(!r)return;return Jv(r,qx(e))}if(mR(e)){const r=D(Mb(e),e=>gI(e,n,t));if(!g(r,e=>!!e))return;return Sb(r,4&Cf(n)?N(e.target.elementFlags,e=>2&e?1:e):e.target.elementFlags,e.target.readonly,e.target.labeledElementDeclarations)}const r=Gs(1040,void 0);return r.source=e,r.mappedType=n,r.constraintType=t,r}(e,n,t);return So.set(r,o),o}function _I(e){return!(262144&bT(e))||LI(e)&&U(cm(e),e=>_I(Vd(e)))||mR(e)&&U(Mb(e),_I)}function gI(e,n,t){const r=e.id+","+n.id+","+t.id;if(To.has(r))return To.get(r)||On;mi.push(e),hi.push(n);const o=_i;let i;return Ox(e,mi,mi.length,2)&&(_i|=1),Ox(n,hi,hi.length,2)&&(_i|=2),3!==_i&&(i=function(e,n,t){const r=jT(t.type,Sf(n)),o=xf(n),i=cI(r);return NI([i],e,o),bI(i)||On}(e,n,t)),mi.pop(),hi.pop(),_i=o,To.set(r,i),i}function*yI(e,n,t,r){const o=cm(n);for(const i of o)if(!ip(i)&&(t||!(16777216&i.flags||48&sT(i)))){const n=wh(e,i.escapedName);if(n){if(r){const e=Vd(i);if(109472&e.flags){const t=Vd(n);1&t.flags||xS(t)===xS(e)||(yield i)}}}else yield i}}function vI(e,n,t,r){return me(yI(e,n,t,r))}function bI(e){return e.candidates?Gb(e.candidates,2):e.contraCandidates?Xb(e.contraCandidates):void 0}function TI(e){return!!ua(e).skipDirectInference}function SI(e){return!(!e.symbol||!U(e.symbol.declarations,TI))}function EI(e,n){if(""===e)return!1;const t=+e;return isFinite(t)&&(!n||""+t===e)}function AI(e){return wS(SA(e))}function xI(e,n){if(1&n.flags)return!0;if(134217732&n.flags)return BE(e,n);if(268435456&n.flags){const t=[];for(;268435456&n.flags;)t.unshift(n.symbol),n=n.type;return xe(t,(e,n)=>gT(n,e),e)===e&&xI(e,n)}return!1}function RI(e,n){if(2097152&n.flags)return g(n.types,n=>n===Mt||RI(e,n));if(4&n.flags||BE(e,n))return!0;if(128&e.flags){const t=e.value;return!!(8&n.flags&&EI(t,!1)||64&n.flags&&EA(t,!1)||98816&n.flags&&t===n.intrinsicName||268435456&n.flags&&xI(e,n)||134217728&n.flags&&DI(e,n))}if(134217728&e.flags){const t=e.texts;return 2===t.length&&""===t[0]&&""===t[1]&&BE(e.types[0],n)}return!1}function II(e,n){return 128&e.flags?CI([e.value],s,n):134217728&e.flags?ee(e.texts,n.texts)?D(e.types,(e,t)=>{return BE(Sm(e),Sm(n.types[t]))?e:402653317&(r=e).flags?r:hT(["",""],[r]);var r}):CI(e.texts,e.types,n):void 0}function DI(e,n){const t=II(e,n);return!!t&&g(t,(e,t)=>RI(e,n.types[t]))}function CI(e,n,t){const r=e.length-1,o=e[0],i=e[r],a=t.texts,s=a.length-1,l=a[0],c=a[s];if(0===r&&o.length<l.length+c.length||!o.startsWith(l)||!i.endsWith(c))return;const d=i.slice(0,i.length-c.length),u=[];let p=0,f=l.length;for(let _=1;_<s;_++){const n=a[_];if(n.length>0){let t=p,r=f;for(;r=m(t).indexOf(n,r),!(r>=0);){if(t++,t===e.length)return;r=0}h(t,r),f+=n.length}else if(f<m(p).length)h(p,f+1);else{if(!(p<r))return;h(p+1,0)}}return h(r,m(r).length),u;function m(n){return n<r?e[n]:d}function h(t,r){const o=t===p?NS(m(t).slice(f,r)):hT([e[p].slice(f),...e.slice(p+1,t),m(t).slice(0,r)],n.slice(p,t));u.push(o),p=t,f=r}}function NI(e,n,t,r=0,o=!1){let i,a,l,c,d=!1,u=2048,p=0;function f(n,a){if(pI(a)&&!ky(a)){if(n===Cn||n===Nn){const e=i;return i=n,f(a,a),void(i=e)}if(n.aliasSymbol&&n.aliasSymbol===a.aliasSymbol){if(n.aliasTypeArguments){const e=da(n.aliasSymbol).typeParameters,t=z_(e);v(B_(n.aliasTypeArguments,e,t,Lh(n.aliasSymbol.valueDeclaration)),B_(a.aliasTypeArguments,e,t,Lh(n.aliasSymbol.valueDeclaration)),_x(n.aliasSymbol))}}else if(n===a&&3145728&n.flags)for(const e of n.types)f(e,e);else{if(1048576&a.flags){const[e,t]=_(1048576&n.flags?n.types:[n],a.types,MI),[r,o]=_(e,t,PI);if(0===o.length)return;if(a=Gb(o),0===r.length)return void m(n,a,1);n=Gb(r)}else if(2097152&a.flags&&!g(a.types,mS)&&!(1048576&n.flags)){const[e,t]=_(2097152&n.flags?n.types:[n],a.types,kE);if(0===e.length||0===t.length)return;n=Xb(e),a=Xb(t)}if(41943040&a.flags){if(ky(a))return;a=JT(a)}if(8650752&a.flags){if(SI(n))return;const s=E(a);if(s){if(262144&bT(n)||n===Ln)return;if(!s.isFixed){const l=i||n;if(l===Nn)return;(void 0===s.priority||r<s.priority)&&(s.candidates=void 0,s.contraCandidates=void 0,s.topLevel=!0,s.priority=r),r===s.priority&&(o&&!d?S(s.contraCandidates,l)||(s.contraCandidates=re(s.contraCandidates,l),aI(e)):S(s.candidates,l)||(s.candidates=re(s.candidates,l),aI(e))),!(128&r)&&262144&a.flags&&s.topLevel&&!mI(t,a)&&(s.topLevel=!1,aI(e))}return void(u=Math.min(u,r))}const l=WT(a,!1);if(l!==a)f(n,l);else if(8388608&a.flags){const e=WT(a.indexType,!1);if(465829888&e.flags){const t=zT(WT(a.objectType,!1),e,!1);t&&t!==a&&f(n,t)}}}if(!(4&bT(n)&&4&bT(a)&&(n.target===a.target||Kx(n)&&Kx(a)))||n.node&&a.node)if(4194304&n.flags&&4194304&a.flags)b(n.type,a.type);else if((sR(n)||4&n.flags)&&4194304&a.flags){!function(e,n,t){const o=r;r|=t,b(e,n),r=o}(function(e){const n=Qu();IC(e,e=>{if(!(128&e.flags))return;const t=gl(e.value),r=Yi(4,t);r.links.type=In,e.symbol&&(r.declarations=e.symbol.declarations,r.valueDeclaration=e.symbol.valueDeclaration),n.set(t,r)});const t=4&e.flags?[Qg(Hn,It,!1)]:s;return qs(void 0,n,s,s,t)}(n),a.type,256)}else if(8388608&n.flags&&8388608&a.flags)f(n.objectType,a.objectType),f(n.indexType,a.indexType);else if(268435456&n.flags&&268435456&a.flags)n.symbol===a.symbol&&f(n.type,a.type);else if(33554432&n.flags)f(n.baseType,a),m(zy(n),a,4);else if(16777216&a.flags)h(n,a,I);else if(3145728&a.flags)A(n,a.types,a.flags);else if(1048576&n.flags){const e=n.types;for(const n of e)f(n,a)}else if(134217728&a.flags)!function(e,n){const t=II(e,n),r=n.types;if(t||g(n.texts,e=>0===e.length))for(let o=0;o<r.length;o++){const e=t?t[o]:ut,n=r[o];if(128&e.flags&&8650752&n.flags){const t=E(n),r=t?Tm(t.typeParameter):void 0;if(r&&!rc(r)){const t=1048576&r.flags?r.types:[r];let o=xe(t,(e,n)=>e|n.flags,0);if(!(4&o)){const r=e.value;296&o&&!EI(r,!0)&&(o&=-297),2112&o&&!EA(r,!0)&&(o&=-2113);const i=xe(t,(n,t)=>t.flags&o?4&n.flags?n:4&t.flags?e:134217728&n.flags?n:134217728&t.flags&&DI(e,t)?e:268435456&n.flags?n:268435456&t.flags&&r===yT(t.symbol,r)?e:128&n.flags?n:128&t.flags&&t.value===r?t:8&n.flags?n:8&t.flags?kS(+r):32&n.flags?n:32&t.flags?kS(+r):256&n.flags?n:256&t.flags&&t.value===+r?t:64&n.flags?n:64&t.flags?AI(r):2048&n.flags?n:2048&t.flags&&bA(t.value)===r?t:16&n.flags?n:16&t.flags?"true"===r?tt:"false"===r?$n:st:512&n.flags?n:512&t.flags&&t.intrinsicName===r?t:32768&n.flags?n:32768&t.flags&&t.intrinsicName===r?t:65536&n.flags?n:65536&t.flags&&t.intrinsicName===r?t:n:n,ut);if(!(131072&i.flags)){f(i,n);continue}}}}f(e,n)}}(n,a);else{if(Uf(n=Qm(n))&&Uf(a)&&h(n,a,C),!(512&r&&467927040&n.flags)){const e=Vm(n);if(e!==n&&!(2621440&e.flags))return f(e,a);n=e}2621440&n.flags&&h(n,a,N)}else v(by(n),by(a),hx(n.target))}}}function m(e,n,t){const o=r;r|=t,f(e,n),r=o}function h(e,n,t){const r=e.id+","+n.id,o=a&&a.get(r);if(void 0!==o)return void(u=Math.min(u,o));(a||(a=new Map)).set(r,-1);const i=u;u=2048;const s=p;(l??(l=[])).push(e),(c??(c=[])).push(n),Ox(e,l,l.length,2)&&(p|=1),Ox(n,c,c.length,2)&&(p|=2),3!==p?t(e,n):u=-1,c.pop(),l.pop(),p=s,a.set(r,u),u=Math.min(u,i)}function _(e,n,t){let r,o;for(const i of n)for(const n of e)t(n,i)&&(f(n,i),r=le(r,n),o=le(o,i));return[r?x(e,e=>!S(r,e)):e,o?x(n,e=>!S(o,e)):n]}function v(e,n,t){const r=e.length<n.length?e.length:n.length;for(let o=0;o<r;o++)o<t.length&&2==(7&t[o])?b(e[o],n[o]):f(e[o],n[o])}function b(e,n){o=!o,f(e,n),o=!o}function T(e,n){$||1024&r?b(e,n):f(e,n)}function E(n){if(8650752&n.flags)for(const t of e)if(n===t.typeParameter)return t}function A(e,n,t){let o=0;if(1048576&t){let t;const i=1048576&e.flags?e.types:[e],a=new Array(i.length);let s=!1;for(const e of n)if(E(e))t=e,o++;else for(let n=0;n<i.length;n++){const t=u;u=2048,f(i[n],e),u===r&&(a[n]=!0),s=s||-1===u,u=Math.min(u,t)}if(0===o){const t=function(e){let n;for(const t of e){const e=2097152&t.flags&&y(t.types,e=>!!E(e));if(!e||n&&e!==n)return;n=e}return n}(n);return void(t&&m(e,t,1))}if(1===o&&!s){const e=P(i,(e,n)=>a[n]?void 0:e);if(e.length)return void f(Gb(e),t)}}else for(const r of n)E(r)?o++:f(e,r);if(2097152&t?1===o:o>0)for(const r of n)E(r)&&m(e,r,1)}function R(e,n,t){if(1048576&t.flags||2097152&t.flags){let r=!1;for(const o of t.types)r=R(e,n,o)||r;return r}if(4194304&t.flags){const r=E(t.type);if(r&&!r.isFixed&&!SI(e)){const o=hI(e,n,t);o&&m(o,r.typeParameter,262144&bT(e)?16:8)}return!0}if(262144&t.flags){m(fT(e,e.pattern?2:0),t,32);const r=dm(t);if(r&&R(e,n,r))return!0;return f(Gb(K(D(cm(e),Vd),D(l_(e),e=>e!==po?e.type:ut))),xf(n)),!0}return!1}function I(e,n){if(16777216&e.flags)f(e.checkType,n.checkType),f(e.extendsType,n.extendsType),f(tS(e),tS(n)),f(iS(e),iS(n));else{!function(e,n,t,o){const i=r;r|=o,A(e,n,t),r=i}(e,[tS(n),iS(n)],n.flags,o?64:0)}}function C(e,n){f(Ef(e),Ef(n)),f(xf(e),xf(n));const t=Af(e),r=Af(n);t&&r&&f(t,r)}function N(e,n){var t,r;if(4&bT(e)&&4&bT(n)&&(e.target===n.target||Kx(e)&&Kx(n)))v(by(e),by(n),hx(e.target));else{if(Uf(e)&&Uf(n)&&C(e,n),32&bT(n)&&!n.declaration.nameType){if(R(e,n,Ef(n)))return}if(!function(e,n){return mR(e)&&mR(n)?function(e,n){return!(8&n.target.combinedFlags)&&n.target.minLength>e.target.minLength||!(12&n.target.combinedFlags)&&(!!(12&e.target.combinedFlags)||n.target.fixedLength<e.target.fixedLength)}(e,n):!!vI(e,n,!1,!0)&&!!vI(n,e,!1,!1)}(e,n)){if(Jx(e)){if(mR(n)){const a=Ty(e),s=Ty(n),l=by(n),c=n.target.elementFlags;if(mR(e)&&(i=n,Ty(o=e)===Ty(i)&&g(o.target.elementFlags,(e,n)=>(12&e)==(12&i.target.elementFlags[n])))){for(let n=0;n<s;n++)f(by(e)[n],l[n]);return}const d=mR(e)?Math.min(e.target.fixedLength,n.target.fixedLength):0,u=Math.min(mR(e)?Cb(e.target,3):0,12&n.target.combinedFlags?Cb(n.target,3):0);for(let n=0;n<d;n++)f(by(e)[n],l[n]);if(!mR(e)||a-d-u===1&&4&e.target.elementFlags[d]){const n=by(e)[d];for(let e=d;e<s-u;e++)f(8&c[e]?Jv(n):n,l[e])}else{const o=s-d-u;if(2===o){if(c[d]&c[d+1]&8){const n=E(l[d]);n&&void 0!==n.impliedArity&&(f(Ib(e,d,u+a-n.impliedArity),l[d]),f(Ib(e,d+n.impliedArity,u),l[d+1]))}else if(8&c[d]&&4&c[d+1]){const n=null==(t=E(l[d]))?void 0:t.typeParameter,r=n&&Tm(n);if(r&&mR(r)&&!(12&r.target.combinedFlags)){const n=r.target.fixedLength;f(Ib(e,d,a-(d+n)),l[d]),f(bR(e,d+n,u),l[d+1])}}else if(4&c[d]&&8&c[d+1]){const t=null==(r=E(l[d+1]))?void 0:r.typeParameter,o=t&&Tm(t);if(o&&mR(o)&&!(12&o.target.combinedFlags)){const t=o.target.fixedLength,r=a-Cb(n.target,3),i=r-t,s=Sb(by(e).slice(i,r),e.target.elementFlags.slice(i,r),!1,e.target.labeledElementDeclarations&&e.target.labeledElementDeclarations.slice(i,r));f(bR(e,d,u+t),l[d]),f(s,l[d+1])}}}else if(1===o&&8&c[d]){const t=2&n.target.elementFlags[s-1];m(Ib(e,d,u),l[d],t?2:0)}else if(1===o&&4&c[d]){const n=bR(e,d,u);n&&f(n,l[d])}}for(let n=0;n<u;n++)f(by(e)[a-n-1],l[s-n-1]);return}if(Kx(n))return void k(e,n)}!function(e,n){const t=$f(n);for(const r of t){const n=wh(e,r.escapedName);n&&!U(n.declarations,TI)&&f(LR(Vd(n),!!(16777216&n.flags)),LR(Vd(r),!!(16777216&r.flags)))}}(e,n),M(e,n,0),M(e,n,1),k(e,n)}var o,i}}function M(e,n,t){const r=Vh(e,t),o=r.length;if(o>0){const e=Vh(n,t),i=e.length;for(let n=0;n<i;n++){L(Wg(r[Math.max(o-i+n,0)]),wg(e[n]))}}}function L(e,n){if(!(64&e.flags)){const t=d,r=n.declaration?n.declaration.kind:0;d=d||175===r||174===r||177===r,ZR(e,n,T),d=t}eI(e,n,f)}function k(e,n){const t=bT(e)&bT(n)&32?8:0,r=l_(n);if(FR(e))for(const o of r){const n=[];for(const t of cm(e))if(a_(oT(t,8576),o.keyType)){const e=Vd(t);n.push(16777216&t.flags?wR(e):e)}for(const t of l_(e))a_(t.keyType,o.keyType)&&n.push(t.type);n.length&&m(Gb(n),o.type,t)}for(const o of r){const n=v_(e,o.keyType);n&&m(n.type,o.type,t)}}f(n,t)}function MI(e,n){return n===zn?e===n:kE(e,n)||!!(4&n.flags&&128&e.flags||8&n.flags&&256&e.flags)}function PI(e,n){return!!(524288&e.flags&&524288&n.flags&&e.symbol&&e.symbol===n.symbol||e.aliasSymbol&&e.aliasTypeArguments&&e.aliasSymbol===n.aliasSymbol)}function LI(e){return!!(128&bT(e))}function kI(e){return!!(16512&bT(e))}function wI(e){return 416&e.priority?Xb(e.contraCandidates):xe(e.contraCandidates,(e,n)=>WE(n,e)?n:e)}function OI(e,n){const t=function(e){if(e.length>1){const n=x(e,kI);if(n.length){const t=Gb(n,2);return K(x(e,e=>!kI(e)),[t])}}return e}(e.candidates),r=function(e){const n=um(e);return!!n&&iF(16777216&n.flags?gm(n):n,406978556)}(e.typeParameter)||mm(e.typeParameter),o=!r&&e.topLevel&&(e.isFixed||!function(e,n){const t=fg(e);return t?!!t.type&&mI(t.type,n):mI(Ag(e),n)}(n,e.typeParameter)),i=r?N(t,xS):o?N(t,dR):t;return JR(416&e.priority?Gb(i,2):Hx(i))}function FI(e,n){const t=e.inferences[n];if(!t.inferredType){let r,o;if(e.signature){const i=t.candidates?OI(t,e.signature):void 0,a=t.contraCandidates?wI(t):void 0;if(i||a){const n=i&&(!a||!(131073&i.flags)&&U(t.contraCandidates,e=>BE(i,e))&&g(e.inferences,e=>e!==t&&um(e.typeParameter)!==t.typeParameter||g(e.candidates,e=>BE(e,i))));r=n?i:a,o=n?a:i}else if(1&e.flags)r=pt;else{const o=Rm(t.typeParameter);o&&(r=xE(o,uE(function(e,n){const t=e.inferences.slice(n);return tE(D(t,e=>e.typeParameter),D(t,()=>On))}(e,n),e.nonFixingMapper)))}}else r=bI(t);t.inferredType=r||WI(!!(2&e.flags));const i=um(t.typeParameter);if(i){const n=xE(i,e.nonFixingMapper);r&&e.compareTypes(r,Lp(n,r))||(t.inferredType=o&&e.compareTypes(o,Lp(n,o))?o:n)}!function(){for(let e=Bo-1;e>=0;e--)zo[e].clear()}()}return t.inferredType}function WI(e){return e?In:On}function zI(e){const n=[];for(let t=0;t<e.inferences.length;t++)n.push(FI(e,t));return n}function BI(e){switch(e.escapedText){case"document":case"console":return fa.Cannot_find_name_0_Do_you_need_to_change_your_target_library_Try_changing_the_lib_compiler_option_to_include_dom;case"$":return O.types?fa.Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_jQuery_Try_npm_i_save_dev_types_Slashjquery_and_then_add_jquery_to_the_types_field_in_your_tsconfig:fa.Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_jQuery_Try_npm_i_save_dev_types_Slashjquery;case"describe":case"suite":case"it":case"test":return O.types?fa.Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_a_test_runner_Try_npm_i_save_dev_types_Slashjest_or_npm_i_save_dev_types_Slashmocha_and_then_add_jest_or_mocha_to_the_types_field_in_your_tsconfig:fa.Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_a_test_runner_Try_npm_i_save_dev_types_Slashjest_or_npm_i_save_dev_types_Slashmocha;case"process":case"require":case"Buffer":case"module":return O.types?fa.Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_node_Try_npm_i_save_dev_types_Slashnode_and_then_add_node_to_the_types_field_in_your_tsconfig:fa.Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_node_Try_npm_i_save_dev_types_Slashnode;case"Bun":return O.types?fa.Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_Bun_Try_npm_i_save_dev_types_Slashbun_and_then_add_bun_to_the_types_field_in_your_tsconfig:fa.Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_Bun_Try_npm_i_save_dev_types_Slashbun;case"Map":case"Set":case"Promise":case"Symbol":case"WeakMap":case"WeakSet":case"Iterator":case"AsyncIterator":case"SharedArrayBuffer":case"Atomics":case"AsyncIterable":case"AsyncIterableIterator":case"AsyncGenerator":case"AsyncGeneratorFunction":case"BigInt":case"Reflect":case"BigInt64Array":case"BigUint64Array":return fa.Cannot_find_name_0_Do_you_need_to_change_your_target_library_Try_changing_the_lib_compiler_option_to_1_or_later;case"await":if(yC(e.parent))return fa.Cannot_find_name_0_Did_you_mean_to_write_this_in_an_async_function;default:return 305===e.parent.kind?fa.No_value_exists_in_scope_for_the_shorthand_property_0_Either_declare_one_or_provide_an_initializer:fa.Cannot_find_name_0}}function GI(e){const n=ua(e);return n.resolvedSymbol||(n.resolvedSymbol=!Np(e)&&je(e,e,1160127,BI(e),!uT(e),!1)||Sn),n.resolvedSymbol}function VI(e){return!!(33554432&e.flags||ml(e,e=>gN(e)||yN(e)||KD(e)))}function jI(e,n,t,r){switch(e.kind){case 80:if(!mv(e)){const o=GI(e);return o!==Sn?`${r?cB(r):"-1"}|${Pb(n)}|${Pb(t)}|${dB(o)}`:void 0}case 110:return`0|${r?cB(r):"-1"}|${Pb(n)}|${Pb(t)}`;case 236:case 218:return jI(e.expression,n,t,r);case 167:const o=jI(e.left,n,t,r);return o&&`${o}.${e.right.escapedText}`;case 212:case 213:const i=JI(e);if(void 0!==i){const o=jI(e.expression,n,t,r);return o&&`${o}.${i}`}if(gC(e)&&dD(e.argumentExpression)){const o=GI(e.argumentExpression);if(rM(o)||oM(o)&&!GN(o)){const i=jI(e.expression,n,t,r);return i&&`${i}.@${dB(o)}`}}break;case 207:case 208:case 263:case 219:case 220:case 175:return`${cB(e)}#${Pb(n)}`}}function UI(e,n){switch(n.kind){case 218:case 236:return UI(e,n.expression);case 227:return sb(n)&&UI(e,n.left)||MC(n)&&28===n.operatorToken.kind&&UI(e,n.right)}switch(e.kind){case 237:return 237===n.kind&&e.keywordToken===n.keywordToken&&e.name.escapedText===n.name.escapedText;case 80:case 81:return mv(e)?110===n.kind:80===n.kind&&GI(e)===GI(n)||(fN(n)||fC(n))&&Ls(GI(e))===Es(n);case 110:return 110===n.kind;case 108:return 108===n.kind;case 236:case 218:case 239:return UI(e.expression,n);case 212:case 213:const t=JI(e);if(void 0!==t){const r=IT(n)?JI(n):void 0;if(void 0!==r)return r===t&&UI(e.expression,n.expression)}if(gC(e)&&gC(n)&&dD(e.argumentExpression)&&dD(n.argumentExpression)){const t=GI(e.argumentExpression);if(t===GI(n.argumentExpression)&&(rM(t)||oM(t)&&!GN(t)))return UI(e.expression,n.expression)}break;case 167:return IT(n)&&e.right.escapedText===JI(n)&&UI(e.left,n.expression);case 227:return MC(e)&&28===e.operatorToken.kind&&UI(e.right,n)}return!1}function JI(e){if(_C(e))return e.name.escapedText;if(gC(e))return zg((n=e).argumentExpression)?gl(n.argumentExpression.text):db(n.argumentExpression)?function(e){const n=ts(e,111551,!0);if(!n||!(rM(n)||8&n.flags))return;const t=n.valueDeclaration;if(void 0===t)return;const r=vd(t);if(r){const e=XI(r);if(void 0!==e)return e}if(ku(t)&&ma(t,e)){const e=qh(t);if(e){const n=xd(t.parent)?Ic(t):VF(e);return n&&XI(n)}if(dM(t))return Bf(t.name)}}(n.argumentExpression):void 0;var n;if(fC(e)){const n=Ac(e);return n?gl(n):void 0}return DD(e)?""+e.parent.parameters.indexOf(e):void 0}function XI(e){return 8192&e.flags?e.escapedName:384&e.flags?gl(""+e.value):void 0}function YI(e,n){for(;IT(e);)if(UI(e=e.expression,n))return!0;return!1}function $I(e,n){for(;bc(e);)if(UI(e=e.expression,n))return!0;return!1}function QI(e,n){if(e&&1048576&e.flags){const t=Xm(e,n);if(t&&2&sT(t))return void 0===t.links.isDiscriminantProperty&&(t.links.isDiscriminantProperty=!(192&~t.links.checkFlags||kT(Vd(t)))),!!t.links.isDiscriminantProperty}return!1}function ZI(e,n){let t;for(const r of e)if(QI(n,r.escapedName)){if(t){t.push(r);continue}t=[r]}return t}function eD(e){const n=e.types;if(!(n.length<10||32768&bT(e)||A(n,e=>!!(59506688&e.flags))<10)){if(void 0===e.keyPropertyName){const t=d(n,e=>59506688&e.flags?d(cm(e),e=>iR(Vd(e))?e.escapedName:void 0):void 0),r=t&&function(e,n){const t=new Map;let r=0;for(const o of e)if(61603840&o.flags){const e=nc(o,n);if(e){if(!sR(e))return;let n=!1;IC(e,e=>{const r=Pb(xS(e)),i=t.get(r);i?i!==On&&(t.set(r,On),n=!0):t.set(r,o)}),n||r++}}return r>=10&&2*r>=e.length?t:void 0}(n,t);e.keyPropertyName=r?t:"",e.constituentMap=r}return e.keyPropertyName.length?e.keyPropertyName:void 0}}function nD(e,n){var t;const r=null==(t=e.constituentMap)?void 0:t.get(Pb(xS(n)));return r!==On?r:void 0}function tD(e,n){const t=eD(e),r=t&&nc(n,t);return r&&nD(e,r)}function rD(e,n){return UI(e,n)||YI(e,n)}function oD(e,n){if(e.arguments)for(const t of e.arguments)if(rD(n,t)||$I(t,n))return!0;return!(212!==e.expression.kind||!rD(n,e.expression.expression))}function iD(e){return e.id<=0&&(e.id=eB,eB++),e.id}function aD(e,n){if(e===n)return e;if(131072&n.flags)return n;const t=`A${Pb(e)},${Pb(n)}`;return Li(t)??wi(t,function(e,n){const t=kC(e,e=>function(e,n){if(!(1048576&e.flags))return BE(e,n);for(const t of e.types)if(BE(t,n))return!0;return!1}(n,e)),r=512&n.flags&&CS(n)?jC(t,TS):t;return BE(n,r)?r:e}(e,n))}function sD(e){if(256&bT(e))return!1;const n=Jf(e);return!!(n.callSignatures.length||n.constructSignatures.length||n.members.get("bind")&&WE(e,Yt))}function lD(e,n){return pD(e,n)&n}function cD(e,n){return 0!==lD(e,n)}function pD(e,n){467927040&e.flags&&(e=Tm(e)||On);const t=e.flags;if(268435460&t)return X?16317953:16776705;if(134217856&t){const n=128&t&&""===e.value;return X?n?12123649:7929345:n?12582401:16776705}if(40&t)return X?16317698:16776450;if(256&t){const n=0===e.value;return X?n?12123394:7929090:n?12582146:16776450}if(64&t)return X?16317188:16775940;if(2048&t){const n=SR(e);return X?n?12122884:7928580:n?12581636:16775940}if(16&t)return X?16316168:16774920;if(528&t)return X?e===$n||e===Qn?12121864:7927560:e===$n||e===Qn?12580616:16774920;if(524288&t){return 0===(n&(X?83427327:83886079))?0:16&bT(e)&&cA(e)?X?83427327:83886079:sD(e)?X?7880640:16728e3:X?7888800:16736160}return 16384&t?9830144:32768&t?26607360:65536&t?42917664:12288&t?X?7925520:16772880:67108864&t?X?7888800:16736160:131072&t?0:1048576&t?xe(e.types,(e,t)=>e|pD(t,n),0):2097152&t?function(e,n){const t=iF(e,402784252);let r=0,o=134217727;for(const i of e.types)if(!(t&&524288&i.flags)){const e=pD(i,n);r|=e,o&=e}return 8256&r|134209471&o}(e,n):83886079}function fD(e,n){return kC(e,e=>cD(e,n))}function mD(e,n){const t=_D(fD(X&&2&e.flags?Lt:e,n));if(X)switch(n){case 524288:return hD(t,65536,131072,33554432,jn);case 1048576:return hD(t,131072,65536,16777216,Fn);case 2097152:case 4194304:return jC(t,e=>cD(e,262144)?function(e){return ur||(ur=ev("NonNullable",524288,void 0)||Sn),ur!==Sn?Ey(ur,[e]):Xb([e,It])}(e):e)}return t}function hD(e,n,t,r,o){const i=lD(e,50528256);if(!(i&n))return e;const a=Gb([It,o]);return jC(e,e=>cD(e,n)?Xb([e,i&r||!cD(e,t)?It:a]):e)}function _D(e){return e===Lt?On:e}function gD(e,n){return n?Gb([hc(e),VF(n)]):e}function yD(e,n){var t;const r=rT(n);if(!ux(r))return Mn;const o=px(r);return nc(e,o)||bD(null==(t=S_(e,o))?void 0:t.type)||Mn}function vD(e,n){return LC(e,tR)&&function(e,n){const t=nc(e,""+n);return t||(LC(e,mR)?yR(e,n,O.noUncheckedIndexedAccess?Fn:void 0):void 0)}(e,n)||bD(Rz(65,e,Fn,void 0))||Mn}function bD(e){return e&&O.noUncheckedIndexedAccess?Gb([e,zn]):e}function SD(e){return Jv(Rz(65,e,Fn,void 0)||Mn)}function AD(e){return 227===e.parent.kind&&e.parent.left===e||251===e.parent.kind&&e.parent.initializer===e}function qD(e){return yD(QD(e.parent),e.name)}function QD(e){const{parent:n}=e;switch(n.kind){case 250:return Hn;case 251:return xz(n)||Mn;case 227:return function(e){return 210===e.parent.kind&&AD(e.parent)||304===e.parent.kind&&AD(e.parent.parent)?gD(QD(e),e.right):VF(e.right)}(n);case 221:return Fn;case 210:return function(e,n){return vD(QD(e),e.elements.indexOf(n))}(n,e);case 231:return function(e){return SD(QD(e.parent))}(n);case 304:return qD(n);case 305:return function(e){return gD(qD(e),e.objectAssignmentInitializer)}(n)}return Mn}function ZD(e){return ua(e).resolvedType||VF(e)}function nC(e){return 261===e.kind?function(e){return e.initializer?ZD(e.initializer):250===e.parent.parent.kind?Hn:251===e.parent.parent.kind&&xz(e.parent.parent)||Mn}(e):function(e){const n=e.parent,t=nC(n.parent);return gD(207===n.kind?yD(t,e.propertyName||e.name):e.dotDotDotToken?SD(t):vD(t,n.elements.indexOf(e)),e.initializer)}(e)}function rC(e){switch(e.kind){case 218:return rC(e.expression);case 227:switch(e.operatorToken.kind){case 64:case 76:case 77:case 78:return rC(e.left);case 28:return rC(e.right)}}return e}function aC(e){const{parent:n}=e;return 218===n.kind||227===n.kind&&64===n.operatorToken.kind&&n.left===e||227===n.kind&&28===n.operatorToken.kind&&n.right===e?aC(n):e}function cC(e){return 297===e.kind?xS(VF(e.expression)):ut}function dC(e){const n=ua(e);if(!n.switchTypes){n.switchTypes=[];for(const t of e.caseBlock.clauses)n.switchTypes.push(cC(t))}return n.switchTypes}function TC(e){if(U(e.caseBlock.clauses,e=>297===e.kind&&!zu(e.expression)))return;const n=[];for(const t of e.caseBlock.clauses){const e=297===t.kind?t.expression.text:void 0;n.push(e&&!S(n,e)?e:void 0)}return n}function xC(e,n){return!!(e===n||131072&e.flags||1048576&n.flags&&function(e,n){if(1048576&e.flags){for(const t of e.types)if(!Lb(n.types,t))return!1;return!0}if(1056&e.flags&&xu(e)===n)return!0;return Lb(n.types,e)}(e,n))}function IC(e,n){return 1048576&e.flags?d(e.types,n):n(e)}function NC(e,n){return 1048576&e.flags?U(e.types,n):n(e)}function LC(e,n){return 1048576&e.flags?g(e.types,n):n(e)}function kC(e,n){if(1048576&e.flags){const t=e.types,r=x(t,n);if(r===t)return e;const o=e.origin;let i;if(o&&1048576&o.flags){const e=o.types,a=x(e,e=>!!(1048576&e.flags)||n(e));if(e.length-a.length===t.length-r.length){if(1===a.length)return a[0];i=Bb(1048576,a)}}return Ub(r,16809984&e.objectFlags,void 0,void 0,i)}return 131072&e.flags||n(e)?e:ut}function zC(e,n){return kC(e,e=>e!==n)}function BC(e){return 1048576&e.flags?e.types.length:1}function jC(e,n,t){if(131072&e.flags)return e;if(!(1048576&e.flags))return n(e);const r=e.origin,o=r&&1048576&r.flags?r.types:e.types;let i,a=!1;for(const s of o){const e=1048576&s.flags?jC(s,n,t):n(s);a||(a=s!==e),e&&(i?i.push(e):i=[e])}return a?i&&Gb(i,t?0:1):e}function UC(e,n,t,r){return 1048576&e.flags&&t?Gb(D(e.types,n),1,t,r):jC(e,n)}function HC(e,n){return kC(e,e=>0!==(e.flags&n))}function qC(e,n){return iF(e,134217804)&&iF(n,402655616)?jC(e,e=>4&e.flags?HC(n,402653316):PT(e)&&!iF(n,402653188)?HC(n,128):8&e.flags?HC(n,264):64&e.flags?HC(n,2112):e):e}function YC(e){return 0===e.flags}function ZC(e){return 0===e.flags?e.type:e}function eN(e,n){return n?{flags:0,type:131072&e.flags?pt:e}:e}function oN(e){return yn[e.id]||(yn[e.id]=function(e){const n=Gs(256);return n.elementType=e,n}(e))}function iN(e,n){const t=GR(lR(UF(n)));return xC(t,e.elementType)?e:oN(Gb([e.elementType,t]))}function aN(e){return e.finalArrayType||(e.finalArrayType=131072&(n=e.elementType).flags?cr:Jv(1048576&n.flags?Gb(n.types,2):n));var n}function sN(e){return 256&bT(e)?aN(e):e}function lN(e){return 256&bT(e)?e.elementType:ut}function cN(e){const n=aC(e),t=n.parent,r=_C(t)&&("length"===t.name.escapedText||214===t.parent.kind&&dD(t.name)&&Zg(t.name)),o=213===t.kind&&t.expression===n&&227===t.parent.kind&&64===t.parent.operatorToken.kind&&t.parent.left===t&&!eg(t.parent)&&aF(VF(t.argumentExpression),296);return r||o}function dN(e,n){if(8752&(e=Ka(e)).flags)return Vd(e);if(7&e.flags){if(262144&sT(e)){const n=e.links.syntheticOrigin;if(n&&dN(n))return Vd(e)}const r=e.valueDeclaration;if(r){if((fN(t=r)||MD(t)||ND(t)||DD(t))&&(gv(t)||Lh(t)&&Lu(t)&&t.initializer&&VA(t.initializer)&&vv(t.initializer)))return Vd(e);if(fN(r)&&251===r.parent.parent.kind){const e=r.parent.parent,n=uN(e.expression,void 0);if(n){return Rz(e.awaitModifier?15:13,n,Fn,void 0)}}n&&dA(n,Vf(r,fa._0_needs_an_explicit_type_annotation,hl(e)))}}var t}function uN(e,n){if(!(67108864&e.flags))switch(e.kind){case 80:return dN(Ls(GI(e)),n);case 110:return function(e){const n=rh(e,!1,!1);if(ad(n)){const e=G_(n);if(e.thisParameter)return dN(e.thisParameter)}if(md(n.parent)){const e=Es(n.parent);return Pv(n)?Vd(e):Wu(e).thisType}}(e);case 108:return sP(e);case 212:{const t=uN(e.expression,n);if(t){const r=e.name;let o;if(uD(r)){if(!t.symbol)return;o=wh(t,qg(t.symbol,r.escapedText))}else o=wh(t,r.escapedText);return o&&dN(o,n)}return}case 218:return uN(e.expression,n)}}function pN(e){const n=ua(e);let t=n.effectsSignature;if(void 0===t){let r;if(MC(e)){r=dF(ZL(e.right))}else 245===e.parent.kind?r=uN(e.expression,void 0):108!==e.expression.kind&&(r=bc(e)?sk(PR(HF(e.expression),e.expression),e.expression):ZL(e.expression));const o=Vh(r&&Vm(r)||On,0),i=1!==o.length||o[0].typeParameters?U(o,SN)?Ow(e):void 0:o[0];t=n.effectsSignature=i&&SN(i)?i:lo}return t===lo?void 0:t}function SN(e){return!!(fg(e)||e.declaration&&131072&(Rg(e.declaration)||On).flags)}function IN(e){const n=CN(e,!1);return no=e,to=n,n}function DN(e){const n=cg(e,!0);return 97===n.kind||227===n.kind&&(56===n.operatorToken.kind&&(DN(n.left)||DN(n.right))||57===n.operatorToken.kind&&DN(n.left)&&DN(n.right))}function CN(e,n){for(;;){if(e===no)return to;const t=e.flags;if(4096&t){if(!n){const n=iD(e),t=ai[n];return void 0!==t?t:ai[n]=CN(e,!0)}n=!1}if(368&t)e=e.antecedent;else if(512&t){const n=pN(e.node);if(n){const t=fg(n);if(t&&3===t.kind&&!t.type){const n=e.node.arguments[t.parameterIndex];if(n&&DN(n))return!1}if(131072&Ag(n).flags)return!1}e=e.antecedent}else{if(4&t)return U(e.antecedent,e=>CN(e,!1));if(8&t){const n=e.antecedent;if(void 0===n||0===n.length)return!1;e=n[0]}else{if(!(128&t)){if(1024&t){no=void 0;const n=e.node.target,t=n.antecedent;n.antecedent=e.node.antecedents;const r=CN(e.antecedent,!1);return n.antecedent=t,r}return!(1&t)}{const n=e.node;if(n.clauseStart===n.clauseEnd&&HO(n.switchStatement))return!1;e=e.antecedent}}}}}function MN(e,n){for(;;){const t=e.flags;if(4096&t){if(!n){const n=iD(e),t=si[n];return void 0!==t?t:si[n]=MN(e,!0)}n=!1}if(496&t)e=e.antecedent;else if(512&t){if(108===e.node.expression.kind)return!0;e=e.antecedent}else{if(4&t)return g(e.antecedent,e=>MN(e,!1));if(!(8&t)){if(1024&t){const n=e.node.target,t=n.antecedent;n.antecedent=e.node.antecedents;const r=MN(e.antecedent,!1);return n.antecedent=t,r}return!!(1&t)}e=e.antecedent[0]}}}function PN(e){switch(e.kind){case 110:return!0;case 80:if(!mv(e)){const n=GI(e);return rM(n)||oM(n)&&!GN(n)||!!n.valueDeclaration&&EC(n.valueDeclaration)}break;case 212:case 213:return PN(e.expression)&&QO(ua(e).resolvedSymbol||Sn);case 207:case 208:const n=ny(e.parent);return DD(n)||GA(n)?!jN(n):fN(n)&&nj(n)}return!1}function kN(e,n,t=n,r,o=(n=>null==(n=en(e,F_))?void 0:n.flowNode)()){let i,a=!1,s=0;if(Io)return Mn;if(!o)return n;Co++;const l=Ro,c=ZC(p(o));Ro=l;const d=256&bT(c)&&cN(e)?cr:sN(c);return d===mt||e.parent&&236===e.parent.kind&&!(131072&d.flags)&&131072&fD(d,2097152).flags?n:d;function u(){return a?i:(a=!0,i=jI(e,n,t,r))}function p(o){var i;if(2e3===s)return null==(i=Kt)||i.instant(Kt.Phase.CheckTypes,"getTypeAtFlowNode_DepthLimit",{flowId:o.id}),Io=!0,function(e){const n=ml(e,pd),t=Sp(e),r=Zf(t,n.statements.pos);gi.add(ZT(t,r.start,r.length,fa.The_containing_function_or_module_body_is_too_large_for_control_flow_analysis))}(e),Mn;let a;for(s++;;){const i=o.flags;if(4096&i){for(let e=l;e<Ro;e++)if(oi[e]===o)return s--,ii[e];a=o}let c;if(16&i){if(c=m(o),!c){o=o.antecedent;continue}}else if(512&i){if(c=_(o),!c){o=o.antecedent;continue}}else if(96&i)c=T(o);else if(128&i)c=E(o);else if(12&i){if(1===o.antecedent.length){o=o.antecedent[0];continue}c=4&i?A(o):x(o)}else if(256&i){if(c=v(o),!c){o=o.antecedent;continue}}else if(1024&i){const e=o.node.target,n=e.antecedent;e.antecedent=o.node.antecedents,c=p(o.antecedent),e.antecedent=n}else if(2&i){const n=o.node;if(n&&n!==r&&212!==e.kind&&213!==e.kind&&(110!==e.kind||220===n.kind)){o=n.flowNode;continue}c=t}else c=dz(n);return a&&(oi[Ro]=a,ii[Ro]=c,Ro++),s--,c}}function f(n){const t=n.node;return vM(261===t.kind||209===t.kind?nC(t):QD(t),e)}function m(t){const r=t.node;if(UI(e,r)){if(!IN(t))return mt;if(2===Z_(r)){const e=p(t.antecedent);return eN(lR(ZC(e)),YC(e))}if(n===Dn||n===cr){if(function(e){return 261===e.kind&&e.initializer&&Mc(e.initializer)||209!==e.kind&&227===e.parent.kind&&Mc(e.parent.right)}(r))return oN(ut);const e=dR(f(t));return BE(e,n)?e:lr}const e=ng(r)?lR(n):n;return 1048576&e.flags?aD(e,f(t)):e}if(YI(e,r)){if(!IN(t))return mt;if(fN(r)&&(Lh(r)||nj(r))){const e=Jh(r);if(e&&(219===e.kind||220===e.kind))return p(t.antecedent)}return n}if(fN(r)&&250===r.parent.parent.kind&&(UI(e,r.parent.parent.expression)||$I(r.parent.parent.expression,e)))return nk(sN(ZC(p(t.antecedent))))}function h(e,n){const t=cg(n,!0);if(97===t.kind)return mt;if(227===t.kind){if(56===t.operatorToken.kind)return h(h(e,t.left),t.right);if(57===t.operatorToken.kind)return Gb([h(e,t.left),h(e,t.right)])}return Q(e,t,!0)}function _(e){const n=pN(e.node);if(n){const t=fg(n);if(t&&(2===t.kind||3===t.kind)){const n=p(e.antecedent),r=sN(ZC(n)),o=t.type?$(r,t,e.node,!0):3===t.kind&&t.parameterIndex>=0&&t.parameterIndex<e.node.arguments.length?h(r,e.node.arguments[t.parameterIndex]):r;return o===r?n:eN(o,YC(n))}if(131072&Ag(n).flags)return mt}}function v(t){if(n===Dn||n===cr){const n=t.node,r=214===n.kind?n.expression.expression:n.left.expression;if(UI(e,rC(r))){const e=p(t.antecedent),r=ZC(e);if(256&bT(r)){let t=r;if(214===n.kind)for(const e of n.arguments)t=iN(t,e);else{aF(UF(n.left.argumentExpression),296)&&(t=iN(t,n.right))}return t===r?e:eN(t,YC(e))}return e}}}function T(e){const n=p(e.antecedent),t=ZC(n);if(131072&t.flags)return n;const r=!!(32&e.flags),o=sN(t),i=Q(o,e.node,r);return i===o?n:eN(i,YC(n))}function E(n){const t=cg(n.node.switchStatement.expression),r=p(n.antecedent);let o=ZC(r);if(UI(e,t))o=j(o,n.node);else if(222===t.kind&&UI(e,t.expression))o=function(e,{switchStatement:n,clauseStart:t,clauseEnd:r}){const o=TC(n);if(!o)return e;const i=b(n.caseBlock.clauses,e=>298===e.kind);if(t===r||i>=t&&i<r){const n=UO(t,r,o);return kC(e,e=>lD(e,n)===n)}return Gb(D(o.slice(t,r),n=>n?U(e,n):ut))}(o,n.node);else if(112===t.kind)o=function(e,{switchStatement:n,clauseStart:t,clauseEnd:r}){const o=b(n.caseBlock.clauses,e=>298===e.kind),i=t===r||o>=t&&o<r;for(let a=0;a<t;a++){const t=n.caseBlock.clauses[a];297===t.kind&&(e=Q(e,t.expression,!1))}if(i){for(let t=r;t<n.caseBlock.clauses.length;t++){const r=n.caseBlock.clauses[t];297===r.kind&&(e=Q(e,r.expression,!1))}return e}return Gb(D(n.caseBlock.clauses.slice(t,r),n=>297===n.kind?Q(e,n.expression,!0):ut))}(o,n.node);else{X&&($I(t,e)?o=V(o,n.node,e=>!(163840&e.flags)):222===t.kind&&$I(t.expression,e)&&(o=V(o,n.node,e=>!(131072&e.flags||128&e.flags&&"undefined"===e.value))));const r=I(t,o);r&&(o=function(e,n,t){if(t.clauseStart<t.clauseEnd&&1048576&e.flags&&eD(e)===JI(n)){const n=Gb(D(dC(t.switchStatement).slice(t.clauseStart,t.clauseEnd),n=>nD(e,n)||On));if(n!==On)return n}return M(e,n,e=>j(e,t))}(o,r,n.node))}return eN(o,YC(r))}function A(e){const r=[];let o,i=!1,a=!1;for(const s of e.antecedent){if(!o&&128&s.flags&&s.node.clauseStart===s.node.clauseEnd){o=s;continue}const e=p(s),l=ZC(e);if(l===n&&n===t)return l;se(r,l),xC(l,t)||(i=!0),YC(e)&&(a=!0)}if(o){const e=p(o),s=ZC(e);if(!(131072&s.flags||S(r,s)||HO(o.node.switchStatement))){if(s===n&&n===t)return s;r.push(s),xC(s,t)||(i=!0),YC(e)&&(a=!0)}}return eN(R(r,i?2:1),a)}function x(e){const r=iD(e),o=ei[r]||(ei[r]=new Map),i=u();if(!i)return n;const a=o.get(i);if(a)return a;for(let n=Ao;n<xo;n++)if(ni[n]===e&&ti[n]===i&&ri[n].length)return eN(R(ri[n],1),!0);const s=[];let l,c=!1;for(const u of e.antecedent){let r;if(l){ni[xo]=e,ti[xo]=i,ri[xo]=s,xo++;const n=ro;ro=void 0,r=p(u),ro=n,xo--;const t=o.get(i);if(t)return t}else r=l=p(u);const a=ZC(r);if(se(s,a),xC(a,t)||(c=!0),a===n)break}const d=R(s,c?2:1);return YC(l)?eN(d,!0):(o.set(i,d),d)}function R(e,t){if(function(e){let n=!1;for(const t of e)if(!(131072&t.flags)){if(!(256&bT(t)))return!1;n=!0}return n}(e))return oN(Gb(D(e,lN)));const r=_D(Gb(N(e,sN),t));return r!==n&&r.flags&n.flags&1048576&&ee(r.types,n.types)?n:r}function I(t,r){if(1048576&n.flags||1048576&r.flags){const o=function(n){if(xd(e)||VA(e)||jm(e)){if(dD(n)){const t=Ls(GI(n)).valueDeclaration;if(t&&(fC(t)||DD(t))&&e===t.parent&&!t.initializer&&!t.dotDotDotToken)return t}}else if(IT(n)){if(UI(e,n.expression))return n}else if(dD(n)){const t=GI(n);if(rM(t)){const n=t.valueDeclaration;if(fN(n)&&!n.type&&n.initializer&&IT(n.initializer)&&UI(e,n.initializer.expression))return n.initializer;if(fC(n)&&!n.initializer){const t=n.parent.parent;if(fN(t)&&!t.type&&t.initializer&&(dD(t.initializer)||IT(t.initializer))&&UI(e,t.initializer))return n}}}}(t);if(o){const e=JI(o);if(e){if(QI(1048576&n.flags&&xC(r,n)?n:r,e))return o}}}}function M(e,n,t){const r=JI(n);if(void 0===r)return e;const o=bc(n),i=X&&(o||nx(n))&&iF(e,98304);let a=nc(i?fD(e,2097152):e,r);if(!a)return e;a=i&&o?IR(a):a;const s=t(a);return kC(e,e=>{const n=tc(e,r)||On;return!(131072&n.flags)&&!(131072&s.flags)&&jE(s,n)})}function P(e,n,t,r,o){if((37===t||38===t)&&1048576&e.flags){const i=eD(e);if(i&&i===JI(n)){const n=nD(e,VF(r));if(n)return t===(o?37:38)?n:iR(nc(n,i)||On)?zC(e,n):e}}return M(e,n,e=>z(e,t,r,o))}function L(n,t,r){if(UI(e,t))return mD(n,r?4194304:8388608);X&&r&&$I(t,e)&&(n=mD(n,2097152));const o=I(t,n);return o?M(n,o,e=>fD(e,r?4194304:8388608)):n}function k(e,n,t){const r=wh(e,n);return r?!!(16777216&r.flags||48&sT(r))||t:!!S_(e,n)||!t}function w(e,n,t){const r=px(n);if(NC(e,e=>k(e,r,!0)))return kC(e,e=>k(e,r,t));if(t){const t=(Kr||(Kr=Qy("Record",2,!0)||Sn),Kr===Sn?void 0:Kr);if(t)return Xb([e,Ey(t,[n,On])])}return e}function O(e,n,t,r,o){return Q(e,n,o=o!==(112===t.kind)!=(38!==r&&36!==r))}function F(n,t,r){switch(t.operatorToken.kind){case 64:case 76:case 77:case 78:return L(Q(n,t.right,r),t.left,r);case 35:case 36:case 37:case 38:const o=t.operatorToken.kind,i=rC(t.left),a=rC(t.right);if(222===i.kind&&zu(a))return B(n,i,o,a,r);if(222===a.kind&&zu(i))return B(n,a,o,i,r);if(UI(e,i))return z(n,o,a,r);if(UI(e,a))return z(n,o,i,r);X&&($I(i,e)?n=W(n,o,a,r):$I(a,e)&&(n=W(n,o,i,r)));const s=I(i,n);if(s)return P(n,s,o,a,r);const l=I(a,n);if(l)return P(n,l,o,i,r);if(K(i))return q(n,o,a,r);if(K(a))return q(n,o,i,r);if(cd(a)&&!IT(i))return O(n,i,a,o,r);if(cd(i)&&!IT(a))return O(n,a,i,o,r);break;case 104:return function(n,t,r){const o=rC(t.left);if(!UI(e,o))return r&&X&&$I(o,e)?mD(n,2097152):n;const i=t.right,a=VF(i);if(!GE(a,Xt))return n;const s=pN(t),l=s&&fg(s);if(l&&1===l.kind&&0===l.parameterIndex)return Y(n,l.type,r,!0);if(!GE(a,Yt))return n;const c=jC(a,J);if(rc(n)&&(c===Xt||c===Yt)||!r&&(!(524288&c.flags)||hA(c)))return n;return Y(n,c,r,!0)}(n,t,r);case 103:if(uD(t.left))return function(n,t,r){const o=rC(t.right);if(!UI(e,o))return n;dt.assertNode(t.left,uD);const i=_k(t.left);if(void 0===i)return n;const a=i.parent,s=Lv(dt.checkDefined(i.valueDeclaration,"should always have a declaration"))?Vd(a):Wu(a);return Y(n,s,r,!0)}(n,t,r);const c=rC(t.right);if(kR(n)&&IT(e)&&UI(e.expression,c)){const o=VF(t.left);if(ux(o)&&JI(e)===px(o))return fD(n,r?524288:65536)}if(UI(e,c)){const e=VF(t.left);if(ux(e))return w(n,e,r)}break;case 28:return Q(n,t.right,r);case 56:return r?Q(Q(n,t.left,!0),t.right,!0):Gb([Q(n,t.left,!1),Q(n,t.right,!1)]);case 57:return r?Gb([Q(n,t.left,!0),Q(n,t.right,!0)]):Q(Q(n,t.left,!1),t.right,!1)}return n}function W(e,n,t,r){const o=35===n||37===n,i=35===n||36===n?98304:32768,a=VF(t);return o!==r&&LC(a,e=>!!(e.flags&i))||o===r&&LC(a,e=>!(e.flags&(3|i)))?mD(e,2097152):e}function z(e,n,t,r){if(1&e.flags)return e;36!==n&&38!==n||(r=!r);const o=VF(t),i=35===n||36===n;if(98304&o.flags){if(!X)return e;return mD(e,i?r?262144:2097152:65536&o.flags?r?131072:1048576:r?65536:524288)}if(r){if(!i&&(2&e.flags||NC(e,hA))){if(469893116&o.flags||hA(o))return o;if(524288&o.flags)return ht}return qC(kC(e,e=>{return jE(e,o)||i&&(n=o,!!(524&e.flags)&&!!(28&n.flags));var n}),o)}return iR(o)?kC(e,e=>!(aR(e)&&jE(e,o))):e}function B(n,t,r,o,i){36!==r&&38!==r||(i=!i);const a=rC(t.expression);if(!UI(e,a)){X&&$I(a,e)&&i===("undefined"!==o.text)&&(n=mD(n,2097152));const t=I(a,n);return t?M(n,t,e=>G(e,o,i)):n}return G(n,o,i)}function G(e,n,t){return t?U(e,n.text):mD(e,tB.get(n.text)||32768)}function V(e,{switchStatement:n,clauseStart:t,clauseEnd:r},o){return t!==r&&g(dC(n).slice(t,r),o)?fD(e,2097152):e}function j(e,{switchStatement:n,clauseStart:t,clauseEnd:r}){const o=dC(n);if(!o.length)return e;const i=o.slice(t,r),a=t===r||S(i,ut);if(2&e.flags&&!a){let n;for(let t=0;t<i.length;t+=1){const r=i[t];if(469893116&r.flags)void 0!==n&&n.push(r);else{if(!(524288&r.flags))return e;void 0===n&&(n=i.slice(0,t)),n.push(ht)}}return Gb(void 0===n?i:n)}const s=Gb(i),l=131072&s.flags?ut:qC(kC(e,e=>jE(s,e)),s);if(!a)return l;const c=kC(e,e=>!(aR(e)&&S(o,32768&e.flags?Fn:xS(function(e){return 2097152&e.flags&&y(e.types,iR)||e}(e)))));return 131072&l.flags?c:Gb([l,c])}function U(e,n){switch(n){case"string":return H(e,Hn,1);case"number":return H(e,Kn,2);case"bigint":return H(e,qn,4);case"boolean":return H(e,st,8);case"symbol":return H(e,lt,16);case"object":return 1&e.flags?e:Gb([H(e,ht,32),H(e,jn,131072)]);case"function":return 1&e.flags?e:H(e,Yt,64);case"undefined":return H(e,Fn,65536)}return H(e,ht,128)}function H(e,n,t){return jC(e,e=>DA(e,n,Ti)?cD(e,t)?e:ut:WE(n,e)?n:cD(e,t)?Xb([e,n]):ut)}function K(n){return(_C(n)&&"constructor"===vl(n.name)||gC(n)&&zu(n.argumentExpression)&&"constructor"===n.argumentExpression.text)&&UI(e,n.expression)}function q(e,n,t,r){if(r?35!==n&&37!==n:36!==n&&38!==n)return e;const o=VF(t);if(!nV(o)&&!au(o))return e;const i=wh(o,"prototype");if(!i)return e;const a=Vd(i),s=rc(a)?void 0:a;return s&&s!==Xt&&s!==Yt?rc(e)?s:kC(e,e=>function(e,n){if(524288&e.flags&&1&bT(e)||524288&n.flags&&1&bT(n))return e.symbol===n.symbol;return WE(e,n)}(e,s)):e}function J(e){const n=nc(e,"prototype");if(n&&!rc(n))return n;const t=Vh(e,1);return t.length?Gb(D(t,e=>Ag(wg(e)))):It}function Y(e,n,t,r){const o=1048576&e.flags?`N${Pb(e)},${Pb(n)},${(t?1:0)|(r?2:0)}`:void 0;return Li(o)??wi(o,function(e,n,t,r){if(!t){if(e===n)return ut;if(r)return kC(e,e=>!GE(e,n));const t=Y(e=2&e.flags?Lt:e,n,!0,!1);return _D(kC(e,e=>!xC(e,t)))}if(3&e.flags)return n;if(e===n)return n;const o=r?GE:WE,i=1048576&e.flags?eD(e):void 0,a=jC(n,n=>{const t=i&&nc(n,i),a=jC(t&&nD(e,t)||e,r?e=>GE(e,n)?e:GE(n,e)?n:ut:e=>zE(e,n)?e:zE(n,e)?n:WE(e,n)?e:WE(n,e)?n:ut);return 131072&a.flags?jC(e,e=>iF(e,465829888)&&o(n,Tm(e)||On)?Xb([e,n]):ut):a});return 131072&a.flags?WE(n,e)?n:BE(e,n)?e:BE(n,e)?n:Xb([e,n]):a}(e,n,t,r))}function $(n,t,r,o){if(t.type&&(!rc(n)||t.type!==Xt&&t.type!==Yt)){const i=function(e,n){if(1===e.kind||3===e.kind)return n.arguments[e.parameterIndex];const t=cg(n.expression);return IT(t)?cg(t.expression):void 0}(t,r);if(i){if(UI(e,i))return Y(n,t.type,o,!1);X&&$I(i,e)&&(o&&!cD(t.type,65536)||!o&&LC(t.type,ek))&&(n=mD(n,2097152));const r=I(i,n);if(r)return M(n,r,e=>Y(e,t.type,o,!1))}}return n}function Q(n,t,r){if(Sc(t)||MC(t.parent)&&(61===t.parent.operatorToken.kind||78===t.parent.operatorToken.kind)&&t.parent.left===t)return function(n,t,r){if(UI(e,t))return mD(n,r?2097152:262144);const o=I(t,n);if(o)return M(n,o,e=>fD(e,r?2097152:262144));return n}(n,t,r);switch(t.kind){case 80:if(!UI(e,t)&&C<5){const o=GI(t);if(rM(o)){const t=o.valueDeclaration;if(t&&fN(t)&&!t.type&&t.initializer&&PN(e)){C++;const e=Q(n,t.initializer,r);return C--,e}}}case 110:case 108:case 212:case 213:return L(n,t,r);case 214:return function(n,t,r){if(oD(t,e)){const e=r||!vc(t)?pN(t):void 0,o=e&&fg(e);if(o&&(0===o.kind||1===o.kind))return $(n,o,t,r)}if(kR(n)&&IT(e)&&_C(t.expression)){const o=t.expression;if(UI(e.expression,rC(o.expression))&&dD(o.name)&&"hasOwnProperty"===o.name.escapedText&&1===t.arguments.length){const o=t.arguments[0];if(zu(o)&&JI(e)===gl(o.text))return fD(n,r?524288:65536)}}return n}(n,t,r);case 218:case 236:case 239:return Q(n,t.expression,r);case 227:return F(n,t,r);case 225:if(54===t.operator)return Q(n,t.operand,!r)}return n}}function BN(e){return ml(e.parent,e=>ad(e)&&!lh(e)||269===e.kind||308===e.kind||173===e.kind)}function GN(e){return!VN(e,void 0)}function VN(e,n){const t=ml(e.valueDeclaration,$N);if(!t)return!1;const r=ua(t);return 131072&r.flags||(r.flags|=131072,ml(t.parent,e=>$N(e)&&!!(131072&ua(e).flags))||nM(t)),!e.lastAssignmentPos||n&&Math.abs(e.lastAssignmentPos)<n.pos}function jN(e){return dt.assert(fN(e)||DD(e)),JN(e.name)}function JN(e){return 80===e.kind?GN(Es(e.parent)):U(e.elements,e=>233!==e.kind&&JN(e.name))}function $N(e){return ld(e)||uM(e)}function nM(e){switch(e.kind){case 80:const n=Z_(e);if(0!==n){const t=GI(e),r=1===n||void 0!==t.lastAssignmentPos&&t.lastAssignmentPos<0;if(oM(t)){if(void 0===t.lastAssignmentPos||Math.abs(t.lastAssignmentPos)!==Number.MAX_VALUE){const n=ml(e,$N),r=ml(t.valueDeclaration,$N);t.lastAssignmentPos=n===r?function(e,n){let t=e.pos;for(;e&&e.pos>n.pos;){switch(e.kind){case 244:case 245:case 246:case 247:case 248:case 249:case 250:case 251:case 255:case 256:case 259:case 264:t=e.end}e=e.parent}return t}(e,t.valueDeclaration):Number.MAX_VALUE}r&&t.lastAssignmentPos>0&&(t.lastAssignmentPos*=-1)}}return;case 282:const t=e.parent.parent,r=e.propertyName||e.name;if(!e.isTypeOnly&&!t.isTypeOnly&&!t.moduleSpecifier&&11!==r.kind){const e=ts(r,111551,!0,!0);if(e&&oM(e)){const n=void 0!==e.lastAssignmentPos&&e.lastAssignmentPos<0?-1:1;e.lastAssignmentPos=n*Number.MAX_VALUE}}return;case 265:case 266:case 267:return}Ed(e)||rk(e,nM)}function rM(e){return 3&e.flags&&!!(6&JL(e))}function oM(e){const n=e.valueDeclaration&&ny(e.valueDeclaration);return!!n&&(DD(n)||fN(n)&&(aM(n.parent)||pM(n)))}function pM(e){return!!(1&e.parent.flags)&&!(32&sl(e)||244===e.parent.parent.kind&&tm(e.parent.parent.parent))}function _M(e,n){const t=X&&170===n.kind&&n.initializer&&cD(e,16777216)&&!function(e){const n=ua(e);if(void 0===n.parameterInitializerContainsUndefined){if(!ql(e,8))return Ld(e.symbol),!0;const t=!!cD(xF(e,0),16777216);if(!Yl())return Ld(e.symbol),!0;n.parameterInitializerContainsUndefined??(n.parameterInitializerContainsUndefined=t)}return n.parameterInitializerContainsUndefined}(n);return t?fD(e,524288):e}function gM(e){return 2097152&e.flags?U(e.types,gM):!!(465829888&e.flags&&1146880&Sm(e).flags)}function yM(e){return 2097152&e.flags?U(e.types,yM):!(!(465829888&e.flags)||iF(Sm(e),98304))}function vM(e,n,t){ky(e)&&(e=e.baseType);const r=!(t&&2&t)&&NC(e,gM)&&(function(e,n){const t=n.parent;return 212===t.kind||167===t.kind||214===t.kind&&t.expression===n||215===t.kind&&t.expression===n||213===t.kind&&t.expression===n&&!(NC(e,yM)&&OT(VF(t.argumentExpression)))}(e,n)||function(e,n){const t=(dD(e)||_C(e)||gC(e))&&!((qN(e.parent)||KN(e.parent))&&e.parent.tagName===e)&&KP(e,n&&32&n?8:void 0);return t&&!kT(t)}(n,t));return r?jC(e,Sm):e}function bM(e){return!!ml(e,e=>{const n=e.parent;return void 0===n?"quit":ON(n)?n.expression===e&&db(e):!!zN(n)&&(n.name===e||n.propertyName===e)})}function EM(e,n,t,r){if(Be&&(!(33554432&e.flags)||ND(e)||MD(e)))switch(n){case 1:return RM(e);case 2:return IM(e,t,r);case 3:return MM(e);case 4:return PM(e);case 5:return kM(e);case 6:return wM(e);case 7:return OM(e);case 8:return FM(e);case 0:if(dD(e)&&(Eh(e)||lM(e.parent)||AN(e.parent)&&e.parent.moduleReference===e)&&$M(e)){if(Od(e.parent)){if((_C(e.parent)?e.parent.expression:e.parent.left)!==e)return}return void RM(e)}if(Od(e)){let n=e;for(;Od(n);){if(Cm(n))return;n=n.parent}return IM(e)}if(ON(e))return MM(e);if(Eu(e)||YN(e))return PM(e);if(AN(e))return Nh(e)||JB(e)?wM(e):void 0;if(zN(e))return OM(e);if((ld(e)||PD(e))&&kM(e),!O.emitDecoratorMetadata)return;if(!(NL(e)&&zv(e)&&e.modifiers&&hh(V,e,e.parent,e.parent.parent)))return;return FM(e);default:dt.assertNever(n,`Unhandled reference hint: ${n}`)}}function RM(e){const n=GI(e);n&&n!==we&&n!==Sn&&!mv(e)&&WM(n,e)}function IM(e,n,t){const r=_C(e)?e.expression:e.left;if(pv(r)||!dD(r))return;const o=GI(r);if(!o||o===Sn)return;if(RS(O)||LS(O)&&bM(e))return void WM(o,e);const i=t||EF(r);if(rc(i)||i===pt)return void WM(o,e);let a=n;if(!a&&!t){const n=_C(e)?e.name:e.right,t=uD(n)&&mk(n.escapedText,n),r=Vm(0!==Z_(e)||fk(e)?JR(i):i);a=uD(n)?t&&gk(r,t)||void 0:wh(r,n.escapedText)}a&&(UG(a)||8&a.flags&&307===e.parent.kind)||WM(o,e)}function MM(e){if(dD(e.expression)){const n=e.expression,t=Ls(ts(n,-1,!0,!0,e));t&&WM(t,n)}}function PM(e){if(!ML(e)){const n=gi&&2===O.jsx?fa.This_JSX_tag_requires_0_to_be_in_scope_but_it_could_not_be_found:void 0,t=Oi(e),r=Eu(e)?e.tagName:e,o=1!==O.jsx&&3!==O.jsx;let i;if(YN(e)&&"null"===t||(i=je(r,t,o?111551:111167,n,!0)),i&&(i.isReferenced=-1,Be&&2097152&i.flags&&!Qa(i)&&BM(i)),YN(e)){const t=fV(Sp(e));if(t){const e=ub(t).escapedText;je(r,e,o?111551:111167,n,!0)}}}}function kM(e){if(W<2&&2&Fg(e)){const t=vv(e);VM((n=t)&&fh(n),!1)}var n}function wM(e){Mv(e,32)&&GM(e)}function OM(e){if(!e.parent.parent.moduleSpecifier&&!e.isTypeOnly&&!e.parent.parent.isTypeOnly){const n=e.propertyName||e.name;if(11===n.kind)return;const t=je(n,n.escapedText,2998271,void 0,!0);if(t&&(t===De||t===Ce||t.declarations&&tm(Ql(t.declarations[0]))));else{const r=t&&(2097152&t.flags?Ja(t):t);(!r||111551&Xa(r))&&(GM(e),RM(n))}return}}function FM(e){if(O.emitDecoratorMetadata){const n=y(e.modifiers,CD);if(!n)return;switch(gV(n,16),e.kind){case 264:const n=sv(e);if(n)for(const e of n.parameters)UM(kW(e));break;case 178:case 179:const t=178===e.kind?179:178,r=Yu(Es(e),t);UM(Td(e)||r&&Td(r));break;case 175:for(const i of e.parameters)UM(kW(i));UM(vv(e));break;case 173:UM(gv(e));break;case 170:UM(kW(e));const o=e.parent;for(const e of o.parameters)UM(kW(e));UM(vv(o))}}}function WM(e,n){if(Be&&Ha(e,111551)&&!fv(n)){const t=Ja(e);1160127&Xa(e,!0)&&(RS(O)||LS(O)&&bM(n)||!UG(Ls(t)))&&BM(e)}}function BM(e){dt.assert(Be);const n=da(e);if(!n.referenced){n.referenced=!0;const t=xa(e);if(!t)return dt.fail();if(Nh(t)&&111551&Xa(Ka(e))){RM(ub(t.moduleReference))}}}function GM(e){const n=Es(e),t=Ja(n);if(t){(t===Sn||111551&Xa(n,!0)&&!UG(t))&&BM(n)}}function VM(e,n){if(!e)return;const t=ub(e),r=2097152|(80===e.kind?788968:1920),o=je(t,t.escapedText,r,void 0,!0);if(o&&2097152&o.flags)if(Be&&Os(o)&&!UG(Ja(o))&&!Qa(o))BM(o);else if(n&&RS(O)&&ES(O)>=5&&!Os(o)&&!U(o.declarations,Uc)){const n=Bi(e,fa.A_type_referenced_in_a_decorated_signature_must_be_imported_with_import_type_or_a_namespace_import_when_isolatedModules_and_emitDecoratorMetadata_are_enabled),r=y(o.declarations||s,Ra);r&&dA(n,Vf(r,fa._0_was_imported_here,vl(t)))}}function UM(e){const n=PW(e);n&&rd(n)&&VM(n,!0)}function KM(e,n){if(mv(e))return;if(n===we){if(Ak(e,!0))return void Bi(e,fa.arguments_cannot_be_referenced_in_property_initializers_or_class_static_initialization_blocks);let n=$m(e);if(n)for(W<2&&(220===n.kind?Bi(e,fa.The_arguments_object_cannot_be_referenced_in_an_arrow_function_in_ES5_Consider_using_a_standard_function_expression):Mv(n,1024)&&Bi(e,fa.The_arguments_object_cannot_be_referenced_in_an_async_function_or_method_in_ES5_Consider_using_a_standard_function_or_method)),ua(n).flags|=512;n&&AC(n);)n=$m(n),n&&(ua(n).flags|=512);return}const t=Ls(n),r=$B(t,e);qi(r)&&xT(e,r)&&r.declarations&&Xi(e,r.declarations,e.escapedText);const o=t.valueDeclaration;if(o&&32&t.flags&&md(o)&&o.name!==e){let n=rh(e,!1,!1);for(;308!==n.kind&&n.parent!==o;)n=rh(n,!1,!1);308!==n.kind&&(ua(o).flags|=262144,ua(n).flags|=262144,ua(e).flags|=536870912)}!function(e,n){if(W>=2||!(34&n.flags)||!n.valueDeclaration||uM(n.valueDeclaration)||300===n.valueDeclaration.parent.kind)return;const t=kf(n.valueDeclaration),r=function(e,n){return!!ml(e,e=>e===n?"quit":ad(e)||e.parent&&MD(e.parent)&&!Lv(e.parent)&&e.parent.initializer===e)}(e,t),o=ZM(t);if(o){if(r){let r=!0;if(nN(t)){const o=Ig(n.valueDeclaration,262);if(o&&o.parent===t){const o=function(e,n){return ml(e,e=>e===n?"quit":e===n.initializer||e===n.condition||e===n.incrementor||e===n.statement)}(e.parent,t);if(o){const e=ua(o);e.flags|=8192;se(e.capturedBlockScopeBindings||(e.capturedBlockScopeBindings=[]),n),o===t.initializer&&(r=!1)}}}r&&(ua(o).flags|=4096)}if(nN(t)){const r=Ig(n.valueDeclaration,262);r&&r.parent===t&&function(e,n){let t=e;for(;218===t.parent.kind;)t=t.parent;let r=!1;if(eg(t))r=!0;else if(225===t.parent.kind||226===t.parent.kind){const e=t.parent;r=46===e.operator||47===e.operator}if(!r)return!1;return!!ml(t,e=>e===n?"quit":e===n.statement)}(e,t)&&(ua(n.valueDeclaration).flags|=65536)}ua(n.valueDeclaration).flags|=32768}r&&(ua(n.valueDeclaration).flags|=16384)}(e,n)}function XM(e,n){if(mv(e))return iP(e);const t=GI(e);if(t===Sn)return Mn;if(KM(e,t),t===we)return Ak(e)?Mn:Vd(t);$M(e)&&EM(e,1);const r=Ls(t);let o=r.valueDeclaration;const i=o;if(o&&209===o.kind&&S(ko,o.parent)&&ml(e,e=>e===o.parent))return Ln;let a=function(e,n){var t;const r=Vd(e),o=e.valueDeclaration;if(o){if(fC(o)&&!o.initializer&&!o.dotDotDotToken&&o.parent.elements.length>=2){const e=o.parent.parent,t=ny(e);if(261===t.kind&&6&ej(t)||170===t.kind){const r=ua(e);if(!(4194304&r.flags)){r.flags|=4194304;const i=sc(e,0),a=i&&jC(i,Sm);if(r.flags&=-4194305,a&&1048576&a.flags&&(170!==t.kind||!jN(t))){const e=kN(o.parent,a,a,void 0,n.flowNode);return 131072&e.flags?ut:Dc(o,e,!0)}}}}if(DD(o)&&!o.type&&!o.initializer&&!o.dotDotDotToken){const e=o.parent;if(e.parameters.length>=2&&PE(e)){const r=iL(e);if(r&&1===r.parameters.length&&_B(r)){const i=qm(xE(Vd(r.parameters[0]),null==(t=ZP(e))?void 0:t.nonFixingMapper));if(1048576&i.flags&&LC(i,mR)&&!U(e.parameters,jN))return jT(kN(e,i,i,void 0,n.flowNode),kS(e.parameters.indexOf(o)-(dv(e)?1:0)))}}}}return r}(r,e);const s=Z_(e);if(s){if(!(3&r.flags||Lh(e)&&512&r.flags)){return Bi(e,384&r.flags?fa.Cannot_assign_to_0_because_it_is_an_enum:32&r.flags?fa.Cannot_assign_to_0_because_it_is_a_class:1536&r.flags?fa.Cannot_assign_to_0_because_it_is_a_namespace:16&r.flags?fa.Cannot_assign_to_0_because_it_is_a_function:2097152&r.flags?fa.Cannot_assign_to_0_because_it_is_an_import:fa.Cannot_assign_to_0_because_it_is_not_a_variable,hl(t)),Mn}if(QO(r))return 3&r.flags?Bi(e,fa.Cannot_assign_to_0_because_it_is_a_constant,hl(t)):Bi(e,fa.Cannot_assign_to_0_because_it_is_a_read_only_property,hl(t)),Mn}const l=2097152&r.flags;if(3&r.flags){if(1===s)return ng(e)?lR(a):a}else{if(!l)return a;o=xa(t)}if(!o)return a;a=vM(a,e,n);const c=170===ny(o).kind,d=BN(o);let u=BN(e);const p=u!==d,f=e.parent&&e.parent.parent&&cM(e.parent)&&AD(e.parent.parent),m=134217728&t.flags,h=a===Dn||a===cr,_=h&&236===e.parent.kind;for(;u!==d&&(219===u.kind||220===u.kind||Um(u))&&(rM(r)&&a!==cr||oM(r)&&VN(r,e));)u=BN(u);const g=i&&fN(i)&&!i.initializer&&!i.exclamationToken&&pM(i)&&!function(e){return(void 0!==e.lastAssignmentPos||GN(e)&&void 0!==e.lastAssignmentPos)&&e.lastAssignmentPos<0}(t),y=c||l||p&&!g||f||m||function(e,n){if(fC(n)){const t=ml(e,fC);return t&&ny(t)===ny(n)}}(e,o)||a!==Dn&&a!==cr&&(!X||!!(16387&a.flags)||fv(e)||VI(e)||282===e.parent.kind)||236===e.parent.kind||261===o.kind&&o.exclamationToken||33554432&o.flags,v=_?Fn:y?c?_M(a,o):a:h?Fn:IR(a),b=_?DR(kN(e,a,v,u)):kN(e,a,v,u);if(cN(e)||a!==Dn&&a!==cr){if(!y&&!_A(a)&&_A(b))return Bi(e,fa.Variable_0_is_used_before_being_assigned,hl(t)),a}else if(b===Dn||b===cr)return oe&&(Bi(Dl(o),fa.Variable_0_implicitly_has_type_1_in_some_locations_where_its_type_cannot_be_determined,hl(t),El(b)),Bi(e,fa.Variable_0_implicitly_has_an_1_type,hl(t),El(b))),dz(b);return s?lR(b):b}function $M(e){var n;const t=e.parent;if(t){if(_C(t)&&t.expression===e)return!1;if(zN(t)&&t.isTypeOnly)return!1;const r=null==(n=t.parent)?void 0:n.parent;if(r&&FN(r)&&r.isTypeOnly)return!1}return!0}function ZM(e){return ml(e,e=>!e||ty(e)?"quit":Xd(e,!1))}function nP(e,n){if(ua(e).flags|=2,173===n.kind||177===n.kind){ua(n.parent).flags|=4}else ua(n).flags|=4}function tP(e){return pm(e)?e:ad(e)?void 0:rk(e,tP)}function rP(e){return mu(Wu(Es(e)))===Un}function oP(e,n,t){const r=n.parent;Sg(r)&&!rP(r)&&F_(e)&&e.flowNode&&!MN(e.flowNode,!1)&&Bi(e,t)}function iP(e){const n=fv(e);let t=rh(e,!0,!0),r=!1,o=!1;for(177===t.kind&&oP(e,t,fa.super_must_be_called_before_accessing_this_in_the_constructor_of_a_derived_class);220===t.kind&&(t=rh(t,!1,!o),r=!0),168===t.kind;)t=rh(t,!r,!1),o=!0;if(function(e,n){MD(n)&&Lv(n)&&V&&n.initializer&&ws(n.initializer,e.pos)&&zv(n.parent)&&Bi(e,fa.Cannot_use_this_in_a_static_property_initializer_of_a_decorated_class)}(e,t),o)Bi(e,fa.this_cannot_be_referenced_in_a_computed_property_name);else switch(t.kind){case 268:Bi(e,fa.this_cannot_be_referenced_in_a_module_or_namespace_body);break;case 267:Bi(e,fa.this_cannot_be_referenced_in_current_location)}!n&&r&&W<2&&nP(e,t);const i=aP(e,!0,t);if(ie){const n=Vd(Ce);if(i===n&&r)Bi(e,fa.The_containing_arrow_function_captures_the_global_value_of_this);else if(!i){const r=Bi(e,fa.this_implicitly_has_type_any_because_it_does_not_have_a_type_annotation);if(!uM(t)){const e=aP(t);e&&e!==n&&dA(r,Vf(t,fa.An_outer_value_of_this_is_shadowed_by_this_container))}}}return i||In}function aP(e,n=!0,t=rh(e,!1,!1)){const r=Lh(e);if(ad(t)&&(!_P(e)||dv(t))){let n=og(G_(t))||r&&function(e){const n=ec(e);if(n&&n.typeExpression)return qS(n.typeExpression);const t=Y_(e);if(t)return og(t)}(t);if(!n){const e=function(e){if(219===e.kind&&MC(e.parent)&&3===o_(e.parent))return e.parent.left.expression.expression;if(175===e.kind&&211===e.parent.kind&&MC(e.parent.parent)&&6===o_(e.parent.parent))return e.parent.parent.left.expression;if(219===e.kind&&304===e.parent.kind&&211===e.parent.parent.kind&&MC(e.parent.parent.parent)&&6===o_(e.parent.parent.parent))return e.parent.parent.parent.left.expression;if(219===e.kind&&sM(e.parent)&&dD(e.parent.name)&&("value"===e.parent.name.escapedText||"get"===e.parent.name.escapedText||"set"===e.parent.name.escapedText)&&hC(e.parent.parent)&&yC(e.parent.parent.parent)&&e.parent.parent.parent.arguments[2]===e.parent.parent&&9===o_(e.parent.parent.parent))return e.parent.parent.parent.arguments[0].expression;if(LD(e)&&dD(e.name)&&("value"===e.name.escapedText||"get"===e.name.escapedText||"set"===e.name.escapedText)&&hC(e.parent)&&yC(e.parent.parent)&&e.parent.parent.arguments[2]===e.parent&&9===o_(e.parent.parent))return e.parent.parent.arguments[0].expression}(t);if(r&&e){const t=HF(e).symbol;t&&t.members&&16&t.flags&&(n=Wu(t).thisType)}else Fw(t)&&(n=Wu(Ss(t.symbol)).thisType);n||(n=fP(t))}if(n)return kN(e,n)}if(md(t.parent)){const n=Es(t.parent);return kN(e,Pv(t)?Vd(n):Wu(n).thisType)}if(uM(t)){if(t.commonJsModuleIndicator){const e=Es(t);return e&&Vd(e)}if(t.externalModuleIndicator)return Fn;if(n)return Vd(Ce)}}function sP(e){const n=214===e.parent.kind&&e.parent.expression===e,t=sh(e,!0);let r=t,o=!1,i=!1;if(!n){for(;r&&220===r.kind;)Mv(r,1024)&&(i=!0),r=sh(r,!0),o=W<2;r&&Mv(r,1024)&&(i=!0)}let a=0;if(!r||!function(e){if(n)return 177===e.kind;if(md(e.parent)||211===e.parent.kind)return Pv(e)?175===e.kind||174===e.kind||178===e.kind||179===e.kind||173===e.kind||176===e.kind:175===e.kind||174===e.kind||178===e.kind||179===e.kind||173===e.kind||172===e.kind||177===e.kind;return!1}(r)){const t=ml(e,e=>e===r?"quit":168===e.kind);return t&&168===t.kind?Bi(e,fa.super_cannot_be_referenced_in_a_computed_property_name):n?Bi(e,fa.Super_calls_are_not_permitted_outside_constructors_or_in_nested_functions_inside_constructors):r&&r.parent&&(md(r.parent)||211===r.parent.kind)?Bi(e,fa.super_property_access_is_permitted_only_in_a_constructor_member_function_or_member_accessor_of_a_derived_class):Bi(e,fa.super_can_only_be_referenced_in_members_of_derived_classes_or_object_literal_expressions),Mn}if(n||177!==t.kind||oP(e,r,fa.super_must_be_called_before_accessing_a_property_of_super_in_the_constructor_of_a_derived_class),Pv(r)||n?(a=32,!n&&W>=2&&W<=8&&(MD(r)||kD(r))&&wf(e.parent,e=>{uM(e)&&!rm(e)||(ua(e).flags|=2097152)})):a=16,ua(e).flags|=a,175===r.kind&&i&&(ch(e.parent)&&eg(e.parent)?ua(r).flags|=256:ua(r).flags|=128),o&&nP(e.parent,r),211===r.parent.kind)return W<2?(Bi(e,fa.super_is_only_allowed_in_members_of_object_literal_expressions_when_option_target_is_ES2015_or_higher),Mn):In;const s=r.parent;if(!Sg(s))return Bi(e,fa.super_can_only_be_referenced_in_a_derived_class),Mn;if(rP(s))return n?Mn:Un;const l=Wu(Es(s)),c=l&&gu(l)[0];return c?177===r.kind&&function(e,n){return!!ml(e,e=>ld(e)?"quit":170===e.kind&&e.parent===n)}(e,r)?(Bi(e,fa.super_cannot_be_referenced_in_constructor_arguments),Mn):32===a?mu(l):Lp(c,l.thisType):Mn}function cP(e){return 175!==e.kind&&178!==e.kind&&179!==e.kind||211!==e.parent.kind?219===e.kind&&304===e.parent.kind?e.parent.parent:void 0:e.parent}function dP(e){return 4&bT(e)&&e.target===sr?by(e)[0]:void 0}function uP(e){return jC(e,e=>2097152&e.flags?d(e.types,dP):dP(e))}function pP(e,n){let t=e,r=n;for(;r;){const e=uP(r);if(e)return e;if(304!==t.parent.kind)break;t=t.parent.parent,r=jP(t,void 0)}}function fP(e){if(220===e.kind)return;if(PE(e)){const n=iL(e);if(n){const e=n.thisParameter;if(e)return Vd(e)}}const n=Lh(e);if(ie||n){const t=cP(e);if(t){const e=jP(t,void 0),n=pP(t,e);return n?xE(n,uI(ZP(t))):JR(e?DR(e):EF(t))}const r=ag(e.parent);if(sb(r)){const e=r.left;if(IT(e)){const{expression:t}=e;if(n&&dD(t)){const e=Sp(r);if(e.commonJsModuleIndicator&&GI(t)===e.symbol)return}return JR(EF(t))}}}}function mP(e){const n=e.parent;if(!PE(n))return;const t=lh(n);if(t&&t.arguments){const r=mw(t),o=n.parameters.indexOf(e);if(e.dotDotDotToken)return sw(r,o,r.length,In,void 0,0);const i=ua(t),a=i.resolvedSignature;i.resolvedSignature=so;const s=o<r.length?dR(HF(r[o])):e.initializer?void 0:Wn;return i.resolvedSignature=a,s}const r=iL(n);if(r){const t=n.parameters.indexOf(e)-(dv(n)?1:0);return e.dotDotDotToken&&ge(n.parameters)===e?mO(r,t):fO(r,t)}}function hP(e,n){const t=gv(e)||(Lh(e)?ox(e):void 0);if(t)return qS(t);switch(e.kind){case 170:return mP(e);case 209:return function(e,n){const t=e.parent.parent,r=e.propertyName||e.name,o=hP(t,n)||209!==t.kind&&t.initializer&&xF(t,e.dotDotDotToken?32:0);if(!o||xd(r)||Wf(r))return;if(208===t.name.kind){const n=nf(e.parent.elements,e);if(n<0)return;return WP(o,n)}const i=rT(r);if(ux(i)){return nc(o,px(i))}}(e,n);case 173:if(Pv(e))return function(e,n){const t=qd(e.parent)&&KP(e.parent,n);return t?RP(t,Es(e).escapedName):void 0}(e,n)}}function _P(e){let n=!1;for(;e.parent&&!ad(e.parent);){if(DD(e.parent)&&(n||e.parent.initializer===e))return!0;fC(e.parent)&&e.parent.initializer===e&&(n=!0),e=e.parent}return!1}function gP(e,n){const t=!!(2&Fg(n)),r=yP(n,void 0);if(r)return Qz(e,r,t)||void 0}function yP(e,n){const t=Rg(e);if(t)return t;const r=oL(e);if(r&&!Dg(r)){const n=Ag(r),t=Fg(e);return 1&t?kC(n,e=>!!(58998787&e.flags)||YF(e,t,void 0)):2&t?kC(n,e=>!!(58998787&e.flags)||!!gW(e)):n}const o=lh(e);return o?KP(o,n):void 0}function vP(e,n){const t=mw(e).indexOf(n);return-1===t?void 0:bP(e,t)}function bP(e,n){if(fm(e))return 0===n?Hn:1===n?iv(!1):In;const t=ua(e).resolvedSignature===co?co:Ow(e);if(Eu(e)&&0===n)return eL(t,e);const r=t.parameters.length-1;return _B(t)&&n>=r?jT(Vd(t.parameters[r]),kS(n-r),256):pO(t,n)}function TP(e,n){const t=e.parent,{left:r,operatorToken:o,right:i}=t;switch(o.kind){case 64:case 77:case 76:case 78:return e===i?function(e){var n,t;const r=o_(e);switch(r){case 0:case 4:const o=function(e){if(cu(e)&&e.symbol)return e.symbol;if(dD(e))return GI(e);if(_C(e)){const t=VF(e.expression);return uD(e.name)?n(t,e.name):wh(t,e.name.escapedText)}if(gC(e)){const n=EF(e.argumentExpression);if(!ux(n))return;return wh(VF(e.expression),px(n))}return;function n(e,n){const t=mk(n.escapedText,n);return t&&gk(e,t)}}(e.left),i=o&&o.valueDeclaration;if(i&&(MD(i)||ND(i))){const n=gv(i);return n&&xE(qS(n),da(o).mapper)||(MD(i)?i.initializer&&VF(e.left):void 0)}return 0===r?VF(e.left):EP(e);case 5:if(SP(e,r))return EP(e);if(cu(e.left)&&e.left.symbol){const n=e.left.symbol.valueDeclaration;if(!n)return;const t=nn(e.left,IT),r=gv(n);if(r)return qS(r);if(dD(t.expression)){const e=t.expression,n=je(e,e.escapedText,111551,void 0,!0);if(n){const e=n.valueDeclaration&&gv(n.valueDeclaration);if(e){const n=f_(t);if(void 0!==n)return RP(qS(e),n)}return}}return Lh(n)||n===e.left?void 0:VF(e.left)}return VF(e.left);case 1:case 6:case 3:case 2:let a;2!==r&&(a=cu(e.left)?null==(n=e.left.symbol)?void 0:n.valueDeclaration:void 0),a||(a=null==(t=e.symbol)?void 0:t.valueDeclaration);const s=a&&gv(a);return s?qS(s):void 0;case 7:case 8:case 9:return dt.fail("Does not apply");default:return dt.assertNever(r)}}(t):void 0;case 57:case 61:const o=KP(t,n);return e===i&&(o&&o.pattern||!o&&!$h(t))?VF(r):o;case 56:case 28:return e===i?KP(t,n):void 0;default:return}}function SP(e,n=o_(e)){if(4===n)return!0;if(!Lh(e)||5!==n||!dD(e.left.expression))return!1;const t=e.left.expression.escapedText,r=je(e.left,t,111551,void 0,!0,!0);return uh(null==r?void 0:r.valueDeclaration)}function EP(e){if(!e.symbol)return VF(e.left);if(e.symbol.valueDeclaration){const n=gv(e.symbol.valueDeclaration);if(n){const e=qS(n);if(e)return e}}const n=nn(e.left,IT);if(!jm(rh(n.expression,!1,!1)))return;const t=iP(n.expression),r=f_(n);return void 0!==r&&RP(t,r)||void 0}function xP(e,n){if(16777216&e.flags){const t=e;return!!(131072&Qm(tS(t)).flags)&&JT(iS(t))===JT(t.checkType)&&BE(n,t.extendsType)}return!!(2097152&e.flags)&&U(e.types,e=>xP(e,n))}function RP(e,n,t){return jC(e,e=>{if(2097152&e.flags){let r,o,i=!1;for(const a of e.types){if(!(524288&a.flags))continue;if(Uf(a)&&2!==qf(a)){r=NP(r,LP(a,n,t));continue}const e=kP(a,n);e?(i=!0,o=void 0,r=NP(r,e)):i||(o=re(o,a))}if(o)for(const e of o){r=NP(r,wP(e,n,t))}if(!r)return;return 1===r.length?r[0]:Xb(r)}if(524288&e.flags)return Uf(e)&&2!==qf(e)?LP(e,n,t):kP(e,n)??wP(e,n,t)},!0)}function NP(e,n){return n?re(e,1&n.flags?On:n):e}function LP(e,n,t){const r=t||NS(yl(n)),o=Ef(e);if(e.nameType&&xP(e.nameType,r)||xP(o,r))return;return BE(r,Tm(o)||o)?VT(e,r):void 0}function kP(e,n){const t=wh(e,n);var r;if(t&&!(262144&sT(r=t)&&!r.links.type&&Jl(r,0)>=0))return LR(Vd(t),!!(16777216&t.flags))}function wP(e,n,t){var r;if(mR(e)&&UA(n)&&+n>=0){const n=bR(e,e.target.fixedLength,0,!1,!0);if(n)return n}return null==(r=e_(s_(e),t||NS(yl(n))))?void 0:r.type}function OP(e,n){if(dt.assert(jm(e)),!(67108864&e.flags))return FP(e,n)}function FP(e,n){const t=e.parent,r=sM(e)&&hP(e,n);if(r)return r;const o=jP(t,n);if(o){if(vp(e)){const n=Es(e);return RP(o,n.escapedName,da(n).nameType)}if(Gg(e)){const n=Dl(e);if(n&&RD(n)){const e=HF(n.expression),t=ux(e)&&RP(o,px(e));if(t)return t}}if(e.name){const n=rT(e.name);return jC(o,e=>{var t;return null==(t=e_(s_(e),n))?void 0:t.type},!0)}}}function WP(e,n,t,r,o){return e&&jC(e,e=>{if(mR(e)){if((void 0===r||n<r)&&n<e.target.fixedLength)return LR(by(e)[n],!!e.target.elementFlags[n]);const i=void 0!==t&&(void 0===o||n>o)?t-n:0,a=i>0&&12&e.target.combinedFlags?Cb(e.target,3):0;return i>0&&i<=a?by(e)[Ty(e)-i]:bR(e,void 0===r?e.target.fixedLength:Math.min(e.target.fixedLength,r),void 0===t||void 0===o?a:Math.min(a,t-o),!1,!0)}return(!r||n<r)&&RP(e,""+n)||Iz(1,e,Fn,void 0,!1)},!0)}function zP(e,n){const t=e.parent;return Tu(t)?KP(e,n):HN(t)?function(e,n,t){const r=jP(e.openingElement.attributes,t),o=wL(LL(e));if(!r||rc(r)||!o||""===o)return;const i=py(e.children),a=i.indexOf(n),s=RP(r,o);return s&&(1===i.length?s:jC(s,e=>$x(e)?jT(e,kS(a)):e,!0))}(t,e,n):void 0}function BP(e,n){if(QN(e)){const t=jP(e.parent,n);if(!t||rc(t))return;return RP(t,ix(e.name))}return KP(e.parent,n)}function GP(e){switch(e.kind){case 11:case 9:case 10:case 15:case 229:case 112:case 97:case 106:case 80:case 157:return!0;case 212:case 218:return GP(e.expression);case 295:return!e.expression||GP(e.expression)}return!1}function VP(e,n){const t=`D${cB(e)},${Pb(n)}`;return Li(t)??wi(t,function(e,n){const t=eD(e),r=t&&y(n.properties,e=>e.symbol&&304===e.kind&&e.symbol.escapedName===t&&GP(e.initializer)),o=r&&UF(r.initializer);return o&&nD(e,o)}(n,e)??sx(n,K(D(x(e.properties,e=>!!e.symbol&&(304===e.kind?GP(e.initializer)&&QI(n,e.symbol.escapedName):305===e.kind&&QI(n,e.symbol.escapedName))),e=>[()=>UF(304===e.kind?e.initializer:e.name),e.symbol.escapedName]),D(x(cm(n),t=>{var r;return!!(16777216&t.flags)&&!!(null==(r=null==e?void 0:e.symbol)?void 0:r.members)&&!e.symbol.members.has(t.escapedName)&&QI(n,t.escapedName)}),e=>[()=>Fn,e.escapedName])),BE))}function jP(e,n){const t=UP(jm(e)?OP(e,n):KP(e,n),e,n);if(t&&!(n&&2&n&&8650752&t.flags)){const n=jC(t,e=>32&bT(e)?e:Vm(e),!0);return 1048576&n.flags&&hC(e)?VP(e,n):1048576&n.flags&&ZN(e)?function(e,n){const t=`D${cB(e)},${Pb(n)}`,r=Li(t);if(r)return r;const o=wL(LL(e));return wi(t,sx(n,K(D(x(e.properties,e=>!!e.symbol&&292===e.kind&&QI(n,e.symbol.escapedName)&&(!e.initializer||GP(e.initializer))),e=>[e.initializer?()=>UF(e.initializer):()=>tt,e.symbol.escapedName]),D(x(cm(n),t=>{var r;if(!(16777216&t.flags&&(null==(r=null==e?void 0:e.symbol)?void 0:r.members)))return!1;const i=e.parent.parent;return(t.escapedName!==o||!HN(i)||!py(i.children).length)&&!e.symbol.members.has(t.escapedName)&&QI(n,t.escapedName)}),e=>[()=>Fn,e.escapedName])),BE))}(e,n):n}}function UP(e,n,t){if(e&&iF(e,465829888)){const r=ZP(n);if(r&&1&t&&U(r.inferences,WF))return HP(e,r.nonFixingMapper);if(null==r?void 0:r.returnMapper){const n=HP(e,r.returnMapper);return 1048576&n.flags&&Lb(n.types,Qn)&&Lb(n.types,ot)?kC(n,e=>e!==Qn&&e!==ot):n}}return e}function HP(e,n){return 465829888&e.flags?xE(e,n):1048576&e.flags?Gb(D(e.types,e=>HP(e,n)),0):2097152&e.flags?Xb(D(e.types,e=>HP(e,n))):e}function KP(e,n){var t;if(67108864&e.flags)return;const r=QP(e,!n);if(r>=0)return Mo[r];const{parent:o}=e;switch(o.kind){case 261:case 170:case 173:case 172:case 209:return function(e,n){const t=e.parent;if(Lu(t)&&e===t.initializer){const e=hP(t,n);if(e)return e;if(!(8&n)&&xd(t.name)&&t.name.elements.length>0)return ed(t.name,!0,!1)}}(e,n);case 220:case 254:return function(e,n){const t=$m(e);if(t){let e=yP(t,n);if(e){const n=Fg(t);if(1&n){const t=!!(2&n);1048576&e.flags&&(e=kC(e,e=>!!Qz(1,e,t)));const r=Qz(1,e,!!(2&n));if(!r)return;e=r}if(2&n){const n=jC(e,RW);return n&&Gb([n,zO(n)])}return e}}}(e,n);case 230:return function(e,n){const t=$m(e);if(t){const r=Fg(t);let o=yP(t,n);if(o){const t=!!(2&r);if(!e.asteriskToken&&1048576&o.flags&&(o=kC(o,e=>!!Qz(1,e,t))),e.asteriskToken){const r=nB(o,t),i=(null==r?void 0:r.yieldType)??pt,a=KP(e,n)??pt,s=(null==r?void 0:r.nextType)??On,l=VO(i,a,s,!1);return t?Gb([l,VO(i,a,s,!0)]):l}return Qz(0,o,t)}}}(o,n);case 224:return function(e,n){const t=KP(e,n);if(t){const e=RW(t);return e&&Gb([e,zO(e)])}}(o,n);case 214:case 215:return vP(o,e);case 171:return function(e){const n=FO(e);return n?Bg(n):void 0}(o);case 217:case 235:return xc(o.type)?KP(o,n):qS(o.type);case 227:return TP(e,n);case 304:case 305:return FP(o,n);case 306:return KP(o.parent,n);case 210:{const r=o,i=jP(r,n),a=nf(r.elements,e),s=(t=ua(r)).spreadIndices??(t.spreadIndices=function(e){let n,t;for(let r=0;r<e.length;r++)wC(e[r])&&(n??(n=r),t=r);return{first:n,last:t}}(r.elements));return WP(i,a,r.elements.length,s.first,s.last)}case 228:return function(e,n){const t=e.parent;return e===t.whenTrue||e===t.whenFalse?KP(t,n):void 0}(e,n);case 240:return dt.assert(229===o.parent.kind),function(e,n){if(216===e.parent.kind)return vP(e.parent,n)}(o.parent,e);case 218:if(Lh(o)){if(tx(o))return qS(rx(o));const e=oc(o);if(e&&!xc(e.typeExpression.type))return qS(e.typeExpression.type)}return KP(o,n);case 236:return KP(o,n);case 239:return qS(o.type);case 278:return vd(o);case 295:return zP(o,n);case 292:case 294:return BP(o,n);case 287:case 286:return function(e,n){if(qN(e)&&4!==n){const t=QP(e.parent,!n);if(t>=0)return Mo[t]}return bP(e,0)}(o,n);case 302:return function(e){return RP(av(!1),gx(e))}(o)}}function qP(e){JP(e,KP(e,void 0),!0)}function JP(e,n,t){No[Lo]=e,Mo[Lo]=n,Po[Lo]=t,Lo++}function XP(){Lo--,No[Lo]=void 0,Mo[Lo]=void 0,Po[Lo]=void 0}function QP(e,n){for(let t=Lo-1;t>=0;t--)if(e===No[t]&&(n||!Po[t]))return t;return-1}function ZP(e){for(let n=Fo-1;n>=0;n--)if(ug(e,wo[n]))return Oo[n]}function eL(e,n){return YN(n)||0!==cw(n)?function(e,n){let t=SO(e,On);t=nL(n,LL(n),t);const r=RL(Kz.IntrinsicAttributes,n);ac(r)||(t=qp(r,t));return t}(e,n):function(e,n){const t=LL(n),r=(o=t,kL(Kz.ElementAttributesPropertyNameContainer,o));var o;let i=void 0===r?SO(e,On):""===r?Ag(e):function(e,n){if(e.compositeSignatures){const t=[];for(const r of e.compositeSignatures){const e=Ag(r);if(rc(e))return e;const o=nc(e,n);if(!o)return;t.push(o)}return Xb(t)}const t=Ag(e);return rc(t)?t:nc(t,n)}(e,r);if(!i)return r&&c(n.attributes.properties)&&Bi(n,fa.JSX_element_class_does_not_support_attributes_because_it_does_not_have_a_0_property,yl(r)),On;if(i=nL(n,t,i),rc(i))return i;{let t=i;const r=RL(Kz.IntrinsicClassAttributes,n);if(!ac(r)){const o=ou(r.symbol),i=Ag(e);let a;if(o){a=xE(r,tE(o,B_([i],o,z_(o),Lh(n))))}else a=r;t=qp(a,t)}const o=RL(Kz.IntrinsicAttributes,n);return ac(o)||(t=qp(o,t)),t}}(e,n)}function nL(e,n,t){const r=(o=n)&&pa(o.exports,Kz.LibraryManagedAttributes,788968);var o;if(r){const n=function(e){if(YN(e))return Lw(e);if(TL(e.tagName))return Bg(Pw(e,WL(e)));const n=EF(e.tagName);if(128&n.flags){const t=FL(n,e);return t?Bg(Pw(e,t)):Mn}return n}(e),o=jL(r,Lh(e),n,t);if(o)return o}return t}function tL(e){return US(O,"noImplicitAny")?xe(e,(e,n)=>e!==n&&e?jp(e.typeParameters,n.typeParameters)?function(e,n){const t=e.typeParameters||n.typeParameters;let r;e.typeParameters&&n.typeParameters&&(r=tE(n.typeParameters,e.typeParameters));let o=166&(e.flags|n.flags);const i=e.declaration,a=function(e,n,t){const r=_O(e),o=_O(n),i=r>=o?e:n,a=i===e?n:e,s=i===e?r:o,l=yO(e)||yO(n),c=l&&!yO(i),d=new Array(s+(c?1:0));for(let u=0;u<s;u++){let p=fO(i,u);i===n&&(p=xE(p,t));let f=fO(a,u)||On;a===n&&(f=xE(f,t));const m=Gb([p,f]),h=l&&!c&&u===s-1,_=u>=gO(i)&&u>=gO(a),g=u>=r?void 0:lO(e,u),y=u>=o?void 0:lO(n,u),v=Yi(1|(_&&!h?16777216:0),(g===y?g:g?y?void 0:g:y)||`arg${u}`,h?32768:_?16384:0);v.links.type=h?Jv(m):m,d[u]=v}if(c){const e=Yi(1,"args",32768);e.links.type=Jv(pO(a,s)),a===n&&(e.links.type=xE(e.links.type,t)),d[s]=e}return d}(e,n,r),s=ge(a);s&&32768&sT(s)&&(o|=1);const l=function(e,n,t){if(!e||!n)return e||n;const r=Gb([Vd(e),xE(Vd(n),t)]);return BR(e,r)}(e.thisParameter,n.thisParameter,r),c=Math.max(e.minArgumentCount,n.minArgumentCount),d=wp(i,t,l,a,void 0,void 0,c,o);d.compositeKind=2097152,d.compositeSignatures=K(2097152===e.compositeKind&&e.compositeSignatures||[e],[n]),r&&(d.mapper=2097152===e.compositeKind&&e.mapper&&e.compositeSignatures?dE(e.mapper,r):r);return d}(e,n):void 0:e):void 0}function rL(e,n){const t=x(Vh(e,0),e=>!function(e,n){let t=0;for(;t<n.parameters.length;t++){const e=n.parameters[t];if(e.initializer||e.questionToken||e.dotDotDotToken||ZA(e))break}n.parameters.length&&uv(n.parameters[0])&&t--;return!yO(e)&&_O(e)<t}(e,n));return 1===t.length?t[0]:tL(t)}function oL(e){return VA(e)||jm(e)?iL(e):void 0}function iL(e){dt.assert(175!==e.kind||jm(e));const n=Y_(e);if(n)return n;const t=jP(e,1);if(!t)return;if(!(1048576&t.flags))return rL(t,e);let r;const o=t.types;for(const i of o){const n=rL(i,e);if(n)if(r){if(!jx(r[0],n,!1,!0,!0,wE))return;r.push(n)}else r=[n]}return r?1===r.length?r[0]:Fp(r[0],r):void 0}function aL(e){const n=ua(e);return 1&n.flags||(n.flags|=1,a(()=>function(e){const n=Sp(e);if(!VV(n)&&!e.isUnterminated){let r;t??(t=vs(99,!0)),t.setScriptTarget(n.languageVersion),t.setLanguageVariant(n.languageVariant),t.setOnError((e,o,i)=>{const a=t.getTokenEnd();if(3===e.category&&r&&a===r.start&&o===r.length){const t=XT(n.fileName,n.text,a,o,e,i);dA(r,t)}else r&&a===r.start||(r=ZT(n,a,o,e,i),gi.add(r))}),t.setText(n.text,e.pos,e.end-e.pos);try{return t.scan(),dt.assert(14===t.reScanSlashToken(!0),"Expected scanner to rescan RegularExpressionLiteral"),!!r}finally{t.setText(""),t.setOnError(void 0)}}return!1}(e))),ar}function sL(e){return 209===e.kind&&!!e.initializer||304===e.kind&&sL(e.initializer)||305===e.kind&&!!e.objectAssignmentInitializer||227===e.kind&&64===e.operatorToken.kind}function lL(e,n,t){const r=e.elements,o=r.length,i=[],a=[];qP(e);const s=eg(e),l=NF(e),c=jP(e,void 0),d=function(e){const n=ag(e.parent);return wC(n)&&zd(n.parent)}(e)||!!c&&NC(c,e=>tR(e)||Uf(e)&&!e.nameType&&!!bE(e.target||e));let u=!1;for(let p=0;p<o;p++){const o=r[p];if(231===o.kind){W<Do.SpreadElements&&gV(o,O.downlevelIteration?1536:1024);const e=HF(o.expression,n,t);if($x(e))i.push(e),a.push(8);else if(s){const n=p_(e,Kn)||Iz(65,e,Fn,void 0,!1)||On;i.push(n),a.push(4)}else i.push(Rz(33,e,Fn,o.expression)),a.push(4)}else if(de&&233===o.kind)u=!0,i.push(Bn),a.push(2);else{const r=MF(o,n,t);if(i.push(Pc(r,!0,u)),a.push(u?2:1),d&&n&&2&n&&!(4&n)&&NE(o)){const n=ZP(e);dt.assert(n),lI(n,o,r)}}}return XP(),s?Sb(i,a):cL(t||l||d?Sb(i,a,l&&!(c&&NC(c,Qx))):Jv(i.length?Gb(N(i,(e,n)=>8&a[n]?HT(e,Kn)||In:e),2):X?ft:Wn,l))}function cL(e){if(!(4&bT(e)))return e;let n=e.literalType;return n||(n=e.literalType=yy(e),n.objectFlags|=147456),n}function dL(e){switch(e.kind){case 168:return function(e){return aF(uL(e),296)}(e);case 80:return UA(e.escapedText);case 9:case 11:return UA(e.text);default:return!1}}function uL(e){const n=ua(e.expression);if(!n.resolvedType){if((KD(e.parent.parent)||md(e.parent.parent)||gN(e.parent.parent))&&MC(e.expression)&&103===e.expression.operatorToken.kind&&178!==e.parent.kind&&179!==e.parent.kind)return n.resolvedType=Mn;if(n.resolvedType=HF(e.expression),MD(e.parent)&&!Lv(e.parent)&&OC(e.parent.parent)){const n=ZM(kf(e.parent.parent));n&&(ua(n).flags|=4096,ua(e).flags|=32768,ua(e.parent.parent).flags|=32768)}(98304&n.resolvedType.flags||!aF(n.resolvedType,402665900)&&!BE(n.resolvedType,gt))&&Bi(e,fa.A_computed_property_name_must_be_of_type_string_number_symbol_or_any)}return n.resolvedType}function pL(e){var n;const t=null==(n=e.declarations)?void 0:n[0];return UA(e.escapedName)||t&&Rl(t)&&dL(t.name)}function fL(e){var n;const t=null==(n=e.declarations)?void 0:n[0];return Jg(e)||t&&Rl(t)&&RD(t.name)&&aF(uL(t.name),4096)}function hL(e){var n;const t=null==(n=e.declarations)?void 0:n[0];return t&&Rl(t)&&RD(t.name)}function _L(e,n,t,r){var o;const i=[];let a;for(let s=n;s<t.length;s++){const e=t[s];(r===Hn&&!fL(e)||r===Kn&&pL(e)||r===lt&&fL(e))&&(i.push(Vd(t[s])),hL(t[s])&&(a=re(a,null==(o=t[s].declarations)?void 0:o[0])))}return Qg(r,i.length?Gb(i,2):Fn,e,void 0,a)}function gL(e){dt.assert(!!(2097152&e.flags),"Should only get Alias here.");const n=da(e);if(!n.immediateTarget){const t=xa(e);if(!t)return dt.fail();n.immediateTarget=ja(t,!0)}return n.immediateTarget}function yL(e,n=0){const t=eg(e);!function(e,n){const t=new Map;for(const r of e.properties){if(306===r.kind){if(n){const e=cg(r.expression);if(mC(e)||hC(e))return HV(r.expression,fa.A_rest_element_cannot_contain_a_binding_pattern)}continue}const e=r.name;if(168===e.kind&&DV(e),305===r.kind&&!n&&r.objectAssignmentInitializer&&HV(r.equalsToken,fa.Did_you_mean_to_use_a_Colon_An_can_only_follow_a_property_name_when_the_containing_object_literal_is_part_of_a_destructuring_pattern),81===e.kind&&HV(e,fa.Private_identifiers_are_not_allowed_outside_class_bodies),CL(r)&&r.modifiers)for(const n of r.modifiers)!td(n)||134===n.kind&&175===r.kind||HV(n,fa._0_modifier_cannot_be_used_here,Zp(n));else if($P(r)&&r.modifiers)for(const n of r.modifiers)td(n)&&HV(n,fa._0_modifier_cannot_be_used_here,Zp(n));let o;switch(r.kind){case 305:case 304:MV(r.exclamationToken,fa.A_definite_assignment_assertion_is_not_permitted_in_this_context),NV(r.questionToken,fa.An_object_member_cannot_be_declared_optional),9===e.kind&&XV(e),10===e.kind&&ji(!0,Vf(e,fa.A_bigint_literal_cannot_be_used_as_a_property_name)),o=4;break;case 175:o=8;break;case 178:o=1;break;case 179:o=2;break;default:dt.assertNever(r,"Unexpected syntax kind:"+r.kind)}if(!n){const n=QV(e);if(void 0===n)continue;const r=t.get(n);if(r)if(8&o&&8&r)HV(e,fa.Duplicate_identifier_0,Zp(e));else if(4&o&&4&r)HV(e,fa.An_object_literal_cannot_have_multiple_properties_with_the_same_name,Zp(e));else{if(!(3&o&&3&r))return HV(e,fa.An_object_literal_cannot_have_property_and_accessor_with_the_same_name);if(3===r||o===r)return HV(e,fa.An_object_literal_cannot_have_multiple_get_Slashset_accessors_with_the_same_name);t.set(n,o|r)}else t.set(n,o)}}}(e,t);const r=X?Qu():void 0;let o=Qu(),i=[],a=It;qP(e);const l=jP(e,void 0),c=l&&l.pattern&&(207===l.pattern.kind||211===l.pattern.kind),d=NF(e),u=d?8:0,p=Lh(e)&&!kh(e),f=p?Zl(e):void 0,m=!l&&p&&!f;let h=8192,_=!1,g=!1,y=!1,v=!1;for(const s of e.properties)s.name&&RD(s.name)&&uL(s.name);let b=0;for(const s of e.properties){let m=Es(s);const S=s.name&&168===s.name.kind?uL(s.name):void 0;if(304===s.kind||305===s.kind||jm(s)){let o=304===s.kind?PF(s,n):305===s.kind?MF(!t&&s.objectAssignmentInitializer?s.objectAssignmentInitializer:s.name,n):LF(s,n);if(p){const e=Cc(s);e?(UE(o,e,s),o=e):f&&f.typeExpression&&UE(o,qS(f.typeExpression),s)}h|=458752&bT(o);const i=S&&ux(S)?S:void 0,a=i?Yi(4|m.flags,px(i),4096|u):Yi(4|m.flags,m.escapedName,u);if(i&&(a.links.nameType=i),t&&sL(s))a.flags|=16777216;else if(c&&!(512&bT(l))){const e=wh(l,m.escapedName);e?a.flags|=16777216&e.flags:u_(l,Hn)||Bi(s.name,fa.Object_literal_may_only_specify_known_properties_and_0_does_not_exist_in_type_1,hl(m),El(l))}if(a.declarations=m.declarations,a.parent=m.parent,m.valueDeclaration&&(a.valueDeclaration=m.valueDeclaration),a.links.type=o,a.links.target=m,m=a,null==r||r.set(a.escapedName,a),l&&2&n&&!(4&n)&&(304===s.kind||175===s.kind)&&NE(s)){const n=ZP(e);dt.assert(n);lI(n,304===s.kind?s.initializer:s,o)}}else{if(306===s.kind){W<Do.ObjectAssign&&gV(s,2),i.length>0&&(a=gS(a,T(),e.symbol,h,d),i=[],o=Qu(),g=!1,y=!1,v=!1);const t=Qm(HF(s.expression,2&n));if(vL(t)){const n=_S(t,d);if(r&&xL(n,r,s),b=i.length,ac(a))continue;a=gS(a,n,e.symbol,h,d)}else Bi(s,fa.Spread_types_may_only_be_created_from_object_types),a=Mn;continue}dt.assert(178===s.kind||179===s.kind),cG(s)}!S||8576&S.flags?o.set(m.escapedName,m):BE(S,gt)&&(BE(S,Kn)?y=!0:BE(S,lt)?v=!0:g=!0,t&&(_=!0)),i.push(m)}return XP(),ac(a)?Mn:a!==It?(i.length>0&&(a=gS(a,T(),e.symbol,h,d),i=[],o=Qu(),g=!1,y=!1),jC(a,e=>e===It?T():e)):T();function T(){const n=[],r=NF(e);g&&n.push(_L(r,b,i,Hn)),y&&n.push(_L(r,b,i,Kn)),v&&n.push(_L(r,b,i,lt));const a=qs(e.symbol,o,s,s,n);return a.objectFlags|=131200|h,m&&(a.objectFlags|=4096),_&&(a.objectFlags|=512),t&&(a.pattern=e),a}}function vL(e){const n=ER(jC(e,Sm));return!!(126615553&n.flags||3145728&n.flags&&g(n.types,vL))}function bL(e){return e.includes("-")}function TL(e){return dD(e)&&Ly(e.escapedText)||tM(e)}function SL(e,n){return e.initializer?MF(e.initializer,n):tt}function EL(e,n=0){const t=X?Qu():void 0;let r,o=Qu(),i=Dt,a=!1,l=!1,c=2048;const d=wL(LL(e));let u,p=e;if(!YN(e)){const s=e.attributes;u=s.symbol,p=s;const f=KP(s,0);for(const e of s.properties){const u=e.symbol;if(QN(e)){const r=SL(e,n);c|=458752&bT(r);const i=Yi(4|u.flags,u.escapedName);if(i.declarations=u.declarations,i.parent=u.parent,u.valueDeclaration&&(i.valueDeclaration=u.valueDeclaration),i.links.type=r,i.links.target=u,o.set(i.escapedName,i),null==t||t.set(i.escapedName,i),ix(e.name)===d&&(l=!0),f){const n=wh(f,u.escapedName);n&&n.declarations&&qi(n)&&dD(e.name)&&Xi(e.name,n.declarations,e.name.escapedText)}if(f&&2&n&&!(4&n)&&NE(e)){const n=ZP(s);dt.assert(n);lI(n,e.initializer.expression,r)}}else{dt.assert(294===e.kind),o.size>0&&(i=gS(i,m(),s.symbol,c,!1),o=Qu());const l=Qm(HF(e.expression,2&n));rc(l)&&(a=!0),vL(l)?(i=gS(i,l,s.symbol,c,!1),t&&xL(l,t,e)):(Bi(e.expression,fa.Spread_types_may_only_be_created_from_object_types),r=r?Xb([r,l]):l)}}a||o.size>0&&(i=gS(i,m(),s.symbol,c,!1))}const f=e.parent;if((HN(f)&&f.openingElement===e||XN(f)&&f.openingFragment===e)&&py(f.children).length>0){const t=AL(f,n);if(!a&&d&&""!==d){l&&Bi(p,fa._0_are_specified_twice_The_attribute_named_0_will_be_overwritten,yl(d));const n=qN(e)?jP(e.attributes,void 0):void 0,r=n&&RP(n,d),o=Yi(4,d);o.links.type=1===t.length?t[0]:r&&NC(r,tR)?Sb(t):Jv(Gb(t)),o.valueDeclaration=vR.createPropertySignature(void 0,yl(d),void 0,void 0),PA(o.valueDeclaration,p),o.valueDeclaration.symbol=o;const a=Qu();a.set(d,o),i=gS(i,qs(u,a,s,s,s),u,c,!1)}}return a?In:r&&i!==Dt?Xb([r,i]):r||(i===Dt?m():i);function m(){return c|=8192,function(e,n,t){const r=qs(n,t,s,s,s);return r.objectFlags|=139392|e,r}(c,u,o)}}function AL(e,n){const t=[];for(const r of e.children)if(12===r.kind)r.containsOnlyTriviaWhiteSpaces||t.push(Hn);else{if(295===r.kind&&!r.expression)continue;t.push(MF(r,n))}return t}function xL(e,n,t){for(const r of cm(e))if(!(16777216&r.flags)){const e=n.get(r.escapedName);if(e){dA(Bi(e.valueDeclaration,fa._0_is_specified_more_than_once_so_this_usage_will_be_overwritten,yl(e.escapedName)),Vf(t,fa.This_spread_always_overwrites_this_property))}}}function RL(e,n){const t=LL(n),r=t&&_s(t),o=r&&pa(r,e,788968);return o?Wu(o):Mn}function IL(e){const n=ua(e);if(!n.resolvedSymbol){const t=RL(Kz.IntrinsicElements,e);if(ac(t))return oe&&Bi(e,fa.JSX_element_implicitly_has_type_any_because_no_interface_JSX_0_exists,yl(Kz.IntrinsicElements)),n.resolvedSymbol=Sn;{if(!dD(e.tagName)&&!tM(e.tagName))return dt.fail();const r=tM(e.tagName)?lx(e.tagName):e.tagName.escapedText,o=wh(t,r);if(o)return n.jsxFlags|=1,n.resolvedSymbol=o;const i=xG(t,NS(yl(r)));return i?(n.jsxFlags|=2,n.resolvedSymbol=i):tc(t,r)?(n.jsxFlags|=2,n.resolvedSymbol=t.symbol):(Bi(e,fa.Property_0_does_not_exist_on_type_1,dx(e.tagName),"JSX."+Kz.IntrinsicElements),n.resolvedSymbol=Sn)}}return n.resolvedSymbol}function ML(e){const n=e&&Sp(e),t=n&&ua(n);if(t&&!1===t.jsxImplicitImportContainer)return;if(t&&t.jsxImplicitImportContainer)return t.jsxImplicitImportContainer;const r=ZS(QS(O,n),O);if(!r)return;const o=1===AS(O)?fa.Cannot_find_module_0_Did_you_mean_to_set_the_moduleResolution_option_to_nodenext_or_to_add_aliases_to_the_paths_option:fa.This_JSX_tag_requires_the_module_path_0_to_exist_but_none_could_be_found_Make_sure_you_have_types_for_the_appropriate_package_installed,i=function(e,n){const t=O.importHelpers?1:0,r=null==e?void 0:e.imports[t];r&&dt.assert(ry(r)&&r.text===n,`Expected sourceFile.imports[${t}] to be the synthesized JSX runtime import`);return r}(n,r),a=as(i||e,r,o,e),s=a&&a!==Sn?Ss(Ka(a)):void 0;return t&&(t.jsxImplicitImportContainer=s||!1),s}function LL(e){const n=e&&ua(e);if(n&&n.jsxNamespace)return n.jsxNamespace;if(!n||!1!==n.jsxNamespace){let t=ML(e);if(!t||t===Sn){const n=Oi(e);t=je(e,n,1920,void 0,!1)}if(t){const e=Ka(pa(_s(Ka(t)),Kz.JSX,1920));if(e&&e!==Sn)return n&&(n.jsxNamespace=e),e}n&&(n.jsxNamespace=!1)}const t=Ka(ev(Kz.JSX,1920,void 0));return t!==Sn?t:void 0}function kL(e,n){const t=n&&pa(n.exports,e,788968),r=t&&Wu(t),o=r&&cm(r);if(o){if(0===o.length)return"";if(1===o.length)return o[0].escapedName;o.length>1&&t.declarations&&Bi(t.declarations[0],fa.The_global_type_JSX_0_may_not_have_more_than_one_property,yl(e))}}function wL(e){return 4===O.jsx||5===O.jsx?"children":kL(Kz.ElementChildrenAttributeNameContainer,e)}function OL(e,n){if(4&e.flags)return[so];if(128&e.flags){const t=FL(e,n);if(t){return[Pw(n,t)]}return Bi(n,fa.Property_0_does_not_exist_on_type_1,e.value,"JSX."+Kz.IntrinsicElements),s}const t=Vm(e);let r=Vh(t,1);return 0===r.length&&(r=Vh(t,0)),0===r.length&&1048576&t.flags&&(r=Vp(D(t.types,e=>OL(e,n)))),r}function FL(e,n){const t=RL(Kz.IntrinsicElements,n);if(!ac(t)){const n=wh(t,gl(e.value));if(n)return Vd(n);const r=p_(t,Hn);return r||void 0}return In}function WL(e){var n;dt.assert(TL(e.tagName));const t=ua(e);if(!t.resolvedJsxElementAttributesType){const r=IL(e);if(1&t.jsxFlags)return t.resolvedJsxElementAttributesType=Vd(r)||Mn;if(2&t.jsxFlags){const r=tM(e.tagName)?lx(e.tagName):e.tagName.escapedText;return t.resolvedJsxElementAttributesType=(null==(n=S_(RL(Kz.IntrinsicElements,e),r))?void 0:n.type)||Mn}return t.resolvedJsxElementAttributesType=Mn}return t.resolvedJsxElementAttributesType}function zL(e){const n=RL(Kz.ElementClass,e);if(!ac(n))return n}function BL(e){return RL(Kz.Element,e)}function GL(e){const n=BL(e);if(n)return Gb([n,jn])}function VL(e){const n=LL(e);if(!n)return;const t=(r=n)&&pa(r.exports,Kz.ElementType,788968);var r;if(!t)return;const o=jL(t,Lh(e));return o&&!ac(o)?o:void 0}function jL(e,n,...t){const r=Wu(e);if(524288&e.flags){const o=da(e).typeParameters;if(c(o)>=t.length){const i=B_(t,o,t.length,n);return 0===c(i)?r:Ey(e,i)}}if(c(r.typeParameters)>=t.length){return gy(r,B_(t,r.typeParameters,t.length,n))}}function UL(e){const n=Eu(e);var t;n&&function(e){(function(e){if(_C(e)&&tM(e.expression))return HV(e.expression,fa.JSX_property_access_expressions_cannot_include_JSX_namespace_names);if(tM(e)&&$S(O)&&!Ly(e.namespace.escapedText))HV(e,fa.React_components_cannot_include_JSX_namespace_names)})(e.tagName),xV(e,e.typeArguments);const n=new Map;for(const t of e.attributes.properties){if(294===t.kind)continue;const{name:e,initializer:r}=t,o=ix(e);if(n.get(o))return HV(e,fa.JSX_elements_cannot_have_multiple_attributes_with_the_same_name);if(n.set(o,!0),r&&295===r.kind&&!r.expression)return HV(r,fa.JSX_attributes_must_only_be_assigned_a_non_empty_expression)}}(e),t=e,0===(O.jsx||0)&&Bi(t,fa.Cannot_use_JSX_unless_the_jsx_flag_is_provided),void 0===BL(t)&&oe&&Bi(t,fa.JSX_element_implicitly_has_type_any_because_the_global_type_JSX_Element_does_not_exist),PM(e);const r=Ow(e);if(Bw(r,e),n){const n=e,t=VL(n);if(void 0!==t){const e=n.tagName;FA(TL(e)?NS(dx(e)):HF(e),t,Ei,e,fa.Its_type_0_is_not_a_valid_JSX_element_type,()=>{const n=Zp(e);return rS(void 0,fa._0_cannot_be_used_as_a_JSX_component,n)})}else!function(e,n,t){if(1===e){const e=GL(t);e&&FA(n,e,Ei,t.tagName,fa.Its_return_type_0_is_not_a_valid_JSX_element,r)}else if(0===e){const e=zL(t);e&&FA(n,e,Ei,t.tagName,fa.Its_instance_type_0_is_not_a_valid_JSX_element,r)}else{const e=GL(t),o=zL(t);if(!e||!o)return;FA(n,Gb([e,o]),Ei,t.tagName,fa.Its_element_type_0_is_not_a_valid_JSX_element,r)}function r(){const e=Zp(t.tagName);return rS(void 0,fa._0_cannot_be_used_as_a_JSX_component,e)}}(cw(n),Ag(r),n)}}function HL(e,n,t){if(524288&e.flags&&(sm(e,n)||S_(e,n)||mp(n)&&u_(e,Hn)||t&&bL(n)))return!0;if(33554432&e.flags)return HL(e.baseType,n,t);if(3145728&e.flags&&KL(e))for(const r of e.types)if(HL(r,n,t))return!0;return!1}function KL(e){return!!(524288&e.flags&&!(512&bT(e))||67108864&e.flags||33554432&e.flags&&KL(e.baseType)||1048576&e.flags&&U(e.types,KL)||2097152&e.flags&&g(e.types,KL))}function qL(e,n){if(function(e){if(e.expression&&IP(e.expression))HV(e.expression,fa.JSX_expressions_may_not_use_the_comma_operator_Did_you_mean_to_write_an_array)}(e),e.expression){const t=HF(e.expression,n);return e.dotDotDotToken&&t!==In&&!Kx(t)&&Bi(e,fa.JSX_spread_child_must_be_an_array_type),t}return Mn}function JL(e){return e.valueDeclaration?ej(e.valueDeclaration):0}function XL(e){if(8192&e.flags||4&sT(e))return!0;if(Lh(e.valueDeclaration)){const n=e.valueDeclaration.parent;return n&&MC(n)&&3===o_(n)}}function YL(e,n,t,r,o,i=!0){return $L(e,n,t,r,o,i?167===e.kind?e.right:206===e.kind?e:209===e.kind&&e.propertyName?e.propertyName:e.name:void 0)}function $L(e,n,t,r,o,i){var a;const s=lT(o,t);if(n){if(W<2&&QL(o))return i&&Bi(i,fa.Only_public_and_protected_methods_of_the_base_class_are_accessible_via_the_super_keyword),!1;if(64&s)return i&&Bi(i,fa.Abstract_method_0_in_class_1_cannot_be_accessed_via_super_expression,hl(o),El(Lx(o))),!1;if(!(256&s)&&(null==(a=o.declarations)?void 0:a.some(gd)))return i&&Bi(i,fa.Class_field_0_defined_by_the_parent_class_is_not_accessible_in_the_child_class_via_super,hl(o)),!1}if(64&s&&QL(o)&&(dh(e)||ph(e)||uC(e.parent)&&uh(e.parent.parent))){const n=vT(xs(o));if(n&&ml(e,e=>!!(wD(e)&&Mp(e.body)||MD(e))||!(!md(e)&&!ld(e))&&"quit"))return i&&Bi(i,fa.Abstract_property_0_in_class_1_cannot_be_accessed_in_the_constructor,hl(o),Hg(n.name)),!1}if(!(6&s))return!0;if(2&s){return!!SG(e,vT(xs(o)))||(i&&Bi(i,fa.Property_0_is_private_and_only_accessible_within_class_1,hl(o),El(Lx(o))),!1)}if(n)return!0;let l=bG(e,e=>wx(Wu(Es(e)),o,t));return!l&&(l=function(e){const n=function(e){const n=rh(e,!1,!1);return n&&ad(n)?dv(n):void 0}(e);let t=(null==n?void 0:n.type)&&qS(n.type);if(t)262144&t.flags&&(t=um(t));else{const n=rh(e,!1,!1);ad(n)&&(t=fP(n))}if(t&&7&bT(t))return Kd(t);return}(e),l=l&&wx(l,o,t),256&s||!l)?(i&&Bi(i,fa.Property_0_is_protected_and_only_accessible_within_class_1_and_its_subclasses,hl(o),El(Lx(o)||r)),!1):!!(256&s)||(262144&r.flags&&(r=r.isThisType?um(r):Tm(r)),!(!r||!Yd(r,l))||(i&&Bi(i,fa.Property_0_is_protected_and_only_accessible_through_an_instance_of_class_1_This_is_an_instance_of_class_2,hl(o),El(l),El(r)),!1))}function QL(e){return!!Px(e,e=>!(8192&e.flags))}function ZL(e){return sk(HF(e),e)}function ek(e){return cD(e,50331648)}function nk(e){return ek(e)?DR(e):e}function tk(e,n){const t=db(e)?Gf(e):void 0;if(106!==e.kind)if(void 0!==t&&t.length<100){if(dD(e)&&"undefined"===t)return void Bi(e,fa.The_value_0_cannot_be_used_here,"undefined");Bi(e,16777216&n?33554432&n?fa._0_is_possibly_null_or_undefined:fa._0_is_possibly_undefined:fa._0_is_possibly_null,t)}else Bi(e,16777216&n?33554432&n?fa.Object_is_possibly_null_or_undefined:fa.Object_is_possibly_undefined:fa.Object_is_possibly_null);else Bi(e,fa.The_value_0_cannot_be_used_here,"null")}function ik(e,n){Bi(e,16777216&n?33554432&n?fa.Cannot_invoke_an_object_which_is_possibly_null_or_undefined:fa.Cannot_invoke_an_object_which_is_possibly_undefined:fa.Cannot_invoke_an_object_which_is_possibly_null)}function ak(e,n,t){if(X&&2&e.flags){if(db(n)){const e=Gf(n);if(e.length<100)return Bi(n,fa._0_is_of_type_unknown,e),Mn}return Bi(n,fa.Object_is_of_type_unknown),Mn}const r=lD(e,50331648);if(50331648&r){t(n,r);const o=DR(e);return 229376&o.flags?Mn:o}return e}function sk(e,n){return ak(e,n,tk)}function ck(e,n){const t=sk(e,n);if(16384&t.flags){if(db(n)){const e=Gf(n);if(dD(n)&&"undefined"===e)return Bi(n,fa.The_value_0_cannot_be_used_here,e),t;if(e.length<100)return Bi(n,fa._0_is_possibly_undefined,e),t}Bi(n,fa.Object_is_possibly_undefined)}return t}function uk(e,n,t){return 64&e.flags?function(e,n){const t=HF(e.expression),r=PR(t,e.expression);return MR(Tk(e,e.expression,sk(r,e.expression),e.name,n),e,r!==t)}(e,n):Tk(e,e.expression,ZL(e.expression),e.name,n,t)}function pk(e,n){const t=xh(e)&&pv(e.left)?sk(iP(e.left),e.left):ZL(e.left);return Tk(e,e.left,t,e.right,n)}function fk(e){for(;218===e.parent.kind;)e=e.parent;return zd(e.parent)&&e.parent.expression===e}function mk(e,n){for(let t=th(n);t;t=Zm(t)){const{symbol:n}=t,r=qg(n,e),o=n.members&&n.members.get(r)||n.exports&&n.exports.get(r);if(o)return o}}function hk(e){!function(e){if(!Zm(e))return HV(e,fa.Private_identifiers_are_not_allowed_outside_class_bodies);if(!tN(e.parent)){if(!Eh(e))return HV(e,fa.Private_identifiers_are_only_allowed_in_class_bodies_and_may_only_be_used_as_part_of_a_class_member_declaration_property_access_or_on_the_left_hand_side_of_an_in_expression);const n=MC(e.parent)&&103===e.parent.operatorToken.kind;if(!_k(e)&&!n)return HV(e,fa.Cannot_find_name_0,vl(e))}}(e);const n=_k(e);return n&&wk(n,void 0,!1),In}function _k(e){if(!Eh(e))return;const n=ua(e);return void 0===n.resolvedSymbol&&(n.resolvedSymbol=mk(e.escapedText,e)),n.resolvedSymbol}function gk(e,n){return wh(e,n.escapedName)}function bk(e,n){return(kc(n)||dh(e)&&wc(n))&&rh(e,!0,!1)===Wc(n)}function Tk(e,n,t,r,o,i){const a=ua(n).resolvedSymbol,s=Z_(e),l=Vm(0!==s||fk(e)?JR(t):t),c=rc(l)||l===pt;let u,p;if(uD(r)){(W<Do.PrivateNamesAndClassStaticBlocks||W<Do.ClassAndClassElementDecorators||!j)&&(0!==s&&gV(e,1048576),1!==s&&gV(e,524288));const n=mk(r.escapedText,r);if(s&&n&&n.valueDeclaration&&LD(n.valueDeclaration)&&HV(r,fa.Cannot_assign_to_private_method_0_Private_methods_are_not_writable,vl(r)),c){if(n)return ac(l)?Mn:l;if(void 0===th(r))return HV(r,fa.Private_identifiers_are_not_allowed_outside_class_bodies),In}if(u=n&&gk(t,n),void 0===u){if(function(e,n,t){let r;const o=cm(e);o&&d(o,e=>{const t=e.valueDeclaration;if(t&&Rl(t)&&uD(t.name)&&t.name.escapedText===n.escapedText)return r=e,!0});const i=ya(n);if(r){const o=dt.checkDefined(r.valueDeclaration),a=dt.checkDefined(Zm(o));if(null==t?void 0:t.valueDeclaration){const r=t.valueDeclaration,s=Zm(r);if(dt.assert(!!s),ml(s,e=>a===e))return dA(Bi(n,fa.The_property_0_cannot_be_accessed_on_type_1_within_this_class_because_it_is_shadowed_by_another_private_identifier_with_the_same_spelling,i,El(e)),Vf(r,fa.The_shadowing_declaration_of_0_is_defined_here,i),Vf(o,fa.The_declaration_of_0_that_you_probably_intended_to_use_is_defined_here,i)),!0}return Bi(n,fa.Property_0_is_not_accessible_outside_class_1_because_it_has_a_private_identifier,i,ya(a.name||Yz)),!0}return!1}(t,r,n))return Mn;const e=th(r);e&&Ap(Sp(e),O.checkJs)&&HV(r,fa.Private_field_0_must_be_declared_in_an_enclosing_class,vl(r))}else{65536&u.flags&&!(32768&u.flags)&&1!==s&&Bi(e,fa.Private_accessor_was_defined_without_a_getter)}}else{if(c)return dD(n)&&a&&EM(e,2,void 0,t),ac(l)?Mn:l;u=wh(l,r.escapedText,lF(l),167===e.kind)}if(EM(e,2,u,t),u){const t=$B(u,r);if(qi(t)&&xT(e,t)&&t.declarations&&Xi(r,t.declarations,r.escapedText),function(e,n,t){const{valueDeclaration:r}=e;if(!r||Sp(n).isDeclarationFile)return;let o;const i=vl(t);!Ak(n)||function(e){return MD(e)&&!Fv(e)&&e.questionToken}(r)||IT(n)&&IT(n.expression)||ma(r,t)||LD(r)&&256&ZV(r)||!j&&function(e){if(!(32&e.parent.flags))return!1;let n=Vd(e.parent);for(;;){if(n=n.symbol&&xk(n),!n)return!1;const t=wh(n,e.escapedName);if(t&&t.valueDeclaration)return!0}}(e)?264!==r.kind||184===n.parent.kind||33554432&r.flags||ma(r,t)||(o=Bi(t,fa.Class_0_used_before_its_declaration,i)):o=Bi(t,fa.Property_0_is_used_before_its_initialization,i);o&&dA(o,Vf(r,fa._0_is_declared_here,i))}(u,e,r),wk(u,e,Ok(n,a)),ua(e).resolvedSymbol=u,YL(e,108===n.kind,pT(e),l,u),ZO(e,u,s))return Bi(r,fa.Cannot_assign_to_0_because_it_is_a_read_only_property,vl(r)),Mn;p=bk(e,u)?Dn:i||uT(e)?Bd(u):Vd(u)}else{const n=uD(r)||0!==s&&wT(t)&&!KA(t)?void 0:S_(l,r.escapedText);if(!n||!n.type){const n=Sk(e,t.symbol,!0);return!n&&ET(t)?In:t.symbol===Ce?(Ce.exports.has(r.escapedText)&&418&Ce.exports.get(r.escapedText).flags?Bi(r,fa.Property_0_does_not_exist_on_type_1,yl(r.escapedText),El(t)):oe&&Bi(r,fa.Element_implicitly_has_an_any_type_because_type_0_has_no_index_signature,El(t)),In):(r.escapedText&&!ba(e)&&Rk(r,KA(t)?l:t,n),Mn)}n.isReadonly&&(eg(e)||dg(e))&&Bi(e,fa.Index_signature_in_type_0_only_permits_reading,El(l)),p=n.type,O.noUncheckedIndexedAccess&&1!==Z_(e)&&(p=Gb([p,zn])),O.noPropertyAccessFromIndexSignature&&_C(e)&&Bi(r,fa.Property_0_comes_from_an_index_signature_so_it_must_be_accessed_with_0,yl(r.escapedText)),n.declaration&&Ji(n.declaration)&&Xi(r,[n.declaration],r.escapedText)}return Ek(e,u,p,r,o)}function Sk(e,n,t){var r;const o=Sp(e);if(o&&void 0===O.checkJs&&void 0===o.checkJsDirective&&(1===o.scriptKind||2===o.scriptKind)){const i=d(null==n?void 0:n.declarations,Sp),a=!(null==n?void 0:n.valueDeclaration)||!md(n.valueDeclaration)||(null==(r=n.valueDeclaration.heritageClauses)?void 0:r.length)||vh(!1,n.valueDeclaration);return!(o!==i&&i&&tm(i)||t&&n&&32&n.flags&&a||e&&t&&_C(e)&&110===e.expression.kind&&a)}return!1}function Ek(e,n,t,r,o){const i=Z_(e);if(1===i)return LR(t,!!(n&&16777216&n.flags));if(n&&!(98311&n.flags)&&!(8192&n.flags&&1048576&t.flags)&&!iG(n.declarations))return t;if(t===Dn)return Bc(e,n);t=vM(t,e,o);let a=!1;if(X&&Z&&IT(e)&&110===e.expression.kind){const t=n&&n.valueDeclaration;if(t&&WB(t)&&!Pv(t)){const n=BN(e);177!==n.kind||n.parent!==t.parent||33554432&t.flags||(a=!0)}}else X&&n&&n.valueDeclaration&&_C(n.valueDeclaration)&&m_(n.valueDeclaration)&&BN(e)===BN(n.valueDeclaration)&&(a=!0);const s=kN(e,t,a?IR(t):t);return a&&!_A(t)&&_A(s)?(Bi(r,fa.Property_0_is_used_before_being_assigned,hl(n)),t):i?lR(s):s}function Ak(e,n){return!!ml(e,e=>{switch(e.kind){case 173:case 176:return!0;case 187:case 288:return"quit";case 220:return!n&&"quit";case 242:return!(!ld(e.parent)||220===e.parent.kind)&&"quit";default:return!1}})}function xk(e){const n=gu(e);if(0!==n.length)return Xb(n)}function Rk(e,n,t){const r=ua(e),o=r.nonExistentPropCheckCache||(r.nonExistentPropCheckCache=new Set),i=`${Pb(n)}|${t}`;if(o.has(i))return;let a,s;if(o.add(i),!uD(e)&&1048576&n.flags&&!(402784252&n.flags))for(const c of n.types)if(!wh(c,e.escapedText)&&!S_(c,e.escapedText)){a=rS(a,fa.Property_0_does_not_exist_on_type_1,Of(e),El(c));break}if(Ik(e.escapedText,n)){const t=Of(e),r=El(n);a=rS(a,fa.Property_0_does_not_exist_on_type_1_Did_you_mean_to_access_the_static_member_2_instead,t,r,r+"."+t)}else{const r=yW(n);if(r&&wh(r,e.escapedText))a=rS(a,fa.Property_0_does_not_exist_on_type_1,Of(e),El(n)),s=Vf(e,fa.Did_you_forget_to_use_await);else{const r=Of(e),o=El(n),i=function(e,n){const t=Vm(n).symbol;if(!t)return;const r=Tl(t),o=of().get(r);if(o)for(const[i,a]of o)if(S(a,e))return i}(r,n);if(void 0!==i)a=rS(a,fa.Property_0_does_not_exist_on_type_1_Do_you_need_to_change_your_target_library_Try_changing_the_lib_compiler_option_to_2_or_later,r,o,i);else{const i=Ck(e,n);if(void 0!==i){const e=Tl(i);a=rS(a,t?fa.Property_0_may_not_exist_on_type_1_Did_you_mean_2:fa.Property_0_does_not_exist_on_type_1_Did_you_mean_2,r,o,e),s=i.valueDeclaration&&Vf(i.valueDeclaration,fa._0_is_declared_here,e)}else{const e=function(e){return O.lib&&!O.lib.includes("lib.dom.d.ts")&&(n=e,t=e=>e.symbol&&/^(?:EventTarget|Node|(?:HTML[a-zA-Z]*)?Element)$/.test(yl(e.symbol.escapedName)),3145728&n.flags?g(n.types,t):t(n))&&cA(e);var n,t}(n)?fa.Property_0_does_not_exist_on_type_1_Try_changing_the_lib_compiler_option_to_include_dom:fa.Property_0_does_not_exist_on_type_1;a=rS(Mh(a,n),e,r,o)}}}}const l=Hf(Sp(e),e,a);s&&dA(l,s),ji(!t||a.code!==fa.Property_0_may_not_exist_on_type_1_Did_you_mean_2.code,l)}function Ik(e,n){const t=n.symbol&&wh(Vd(n.symbol),e);return void 0!==t&&!!t.valueDeclaration&&Pv(t.valueDeclaration)}function Dk(e,n){return kk(e,cm(n),106500)}function Ck(e,n){let t=cm(n);if("string"!=typeof e){const r=e.parent;_C(r)&&(t=x(t,e=>Fk(r,n,e))),e=vl(e)}return kk(e,t,111551)}function Nk(e,n){const t=Qe(e)?e:vl(e),r=cm(n);return("for"===t?y(r,e=>"htmlFor"===Tl(e)):"class"===t?y(r,e=>"className"===Tl(e)):void 0)??kk(t,r,111551)}function Mk(e,n){const t=Ck(e,n);return t&&Tl(t)}function Pk(e,n,t){dt.assert(void 0!==n,"outername should always be defined");return Ke(e,n,t,void 0,!1,!1)}function Lk(e,n){return n.exports&&kk(vl(e),fs(n),2623475)}function kk(e,n,t){return wn(e,n,function(e){const n=Tl(e);if(Xn(n,'"'))return;if(e.flags&t)return n;if(2097152&e.flags){const r=function(e){if(da(e).aliasTarget!==En)return Ja(e)}(e);if(r&&r.flags&t)return n}return})}function wk(e,n,t){const r=e&&106500&e.flags&&e.valueDeclaration;if(!r)return;const o=Nv(r,2),i=e.valueDeclaration&&Rl(e.valueDeclaration)&&uD(e.valueDeclaration.name);if((o||i)&&(!n||!uT(n)||65536&e.flags)){if(t){const t=ml(n,ld);if(t&&t.symbol===e)return}(1&sT(e)?da(e).target:e).isReferenced=-1}}function Ok(e,n){return 110===e.kind||!!n&&db(e)&&n===GI(ub(e))}function Fk(e,n,t){return zk(e,212===e.kind&&108===e.expression.kind,!1,n,t)}function Wk(e,n,t,r){if(rc(r))return!0;const o=wh(r,t);return!!o&&zk(e,n,!1,r,o)}function zk(e,n,t,r,o){if(rc(r))return!0;if(o.valueDeclaration&&$c(o.valueDeclaration)){const n=Zm(o.valueDeclaration);return!bc(e)&&!!ml(e,e=>e===n)}return $L(e,n,t,r,o)}function Bk(e){const n=e.initializer;if(262===n.kind){const e=n.declarations[0];if(e&&!xd(e.name))return Es(e)}else if(80===n.kind)return GI(n)}function Gk(e){return 1===l_(e).length&&!!u_(e,Kn)}function Vk(e,n){return 64&e.flags?function(e,n){const t=HF(e.expression),r=PR(t,e.expression);return MR(jk(e,sk(r,e.expression),n),e,r!==t)}(e,n):jk(e,ZL(e.expression),n)}function jk(e,n,t){const r=0!==Z_(e)||fk(e)?JR(n):n,o=e.argumentExpression,i=HF(o);if(ac(r)||r===pt)return r;if(lF(r)&&!zu(o))return Bi(o,fa.A_const_enum_member_can_only_be_accessed_using_a_string_literal),Mn;const a=function(e){const n=cg(e);if(80===n.kind){const t=GI(n);if(3&t.flags){let n=e,r=e.parent;for(;r;){if(250===r.kind&&n===r.statement&&Bk(r)===t&&Gk(VF(r.expression)))return!0;n=r,r=r.parent}}}return!1}(o)?Kn:i,s=Z_(e);let l;0===s?l=32:(l=4|(wT(r)&&!KA(r)?2:0),2===s&&(l|=32));const c=HT(r,a,l,e)||Mn;return dW(Ek(e,ua(e).resolvedSymbol,c,o,t),e)}function Uk(e){return zd(e)||bC(e)||Eu(e)}function Hk(e){return Uk(e)&&d(e.typeArguments,aG),216===e.kind?HF(e.template):Eu(e)?HF(e.attributes):MC(e)?HF(e.left):zd(e)&&d(e.arguments,e=>{HF(e)}),so}function Kk(e){return Hk(e),lo}function qk(e){return!!e&&(231===e.kind||238===e.kind&&e.isSpread)}function Jk(e){return b(e,qk)}function Xk(e){return!!(16384&e.flags)}function Yk(e){return!!(49155&e.flags)}function $k(e,n,t,r=!1){if(YN(e))return!0;let o,i=!1,a=_O(t),s=gO(t);if(216===e.kind)if(o=n.length,229===e.template.kind){const n=ye(e.template.templateSpans);i=Np(n.literal)||!!n.literal.isUnterminated}else{const n=e.template;dt.assert(15===n.kind),i=!!n.isUnterminated}else if(171===e.kind)o=hw(e,t);else if(227===e.kind)o=1;else if(Eu(e)){if(i=e.attributes.end===e.end,i)return!0;o=0===s?n.length:1,a=0===n.length?a:1,s=Math.min(s,1)}else{if(!e.arguments)return dt.assert(215===e.kind),0===gO(t);{o=r?n.length+1:n.length,i=e.arguments.end===e.end;const a=Jk(n);if(a>=0)return a>=gO(t)&&(yO(t)||a<_O(t))}}if(!yO(t)&&o>a)return!1;if(i||o>=s)return!0;for(let l=o;l<s;l++){if(131072&kC(pO(t,l),Lh(e)&&!X?Yk:Xk).flags)return!1}return!0}function Qk(e,n){const t=c(e.typeParameters),r=z_(e.typeParameters);return!U(n)||n.length>=r&&n.length<=t}function Zk(e,n){let t;return!!(e.target&&(t=fO(e.target,n))&&kT(t))}function ew(e){return tw(e,0,!1)}function nw(e){return tw(e,0,!1)||tw(e,1,!1)}function tw(e,n,t){if(524288&e.flags){const r=Jf(e);if(t||0===r.properties.length&&0===r.indexInfos.length){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 rw(e,n,t,r){const o=nI(kg(e),e,0,r),i=vO(n),a=t&&(i&&262144&i.flags?t.nonFixingMapper:t.mapper);return ZR(a?_E(n,a):n,e,(e,n)=>{NI(o.inferences,e,n)}),t||eI(n,e,(e,n)=>{NI(o.inferences,e,n,128)}),Ng(e,zI(o),Lh(n.declaration))}function ow(e){if(!e)return ct;const n=HF(e);return bb(e)?n:Tc(e.parent)?DR(n):bc(e.parent)?NR(n):n}function iw(e,n,t,r,o){if(Eu(e))return function(e,n,t,r){const o=eL(n,e),i=SF(e.attributes,o,r,t);return NI(r.inferences,i,o),zI(r)}(e,n,r,o);if(171!==e.kind&&227!==e.kind){const t=g(n.typeParameters,e=>!!Rm(e)),r=KP(e,t?8:0);if(r){const i=Ag(n);if(pI(i)){const a=ZP(e);if(!(!t&&KP(e,8)!==r)){const e=xE(r,uI(oI(a,1))),n=ew(e),t=n&&n.typeParameters?Bg(Mg(n,n.typeParameters)):e;NI(o.inferences,t,i,128)}const s=nI(n.typeParameters,n,o.flags),l=xE(r,a&&function(e){return e.outerReturnMapper??(e.outerReturnMapper=uE(e.returnMapper,oI(e).mapper))}(a));NI(s.inferences,l,i),o.returnMapper=U(s.inferences,FF)?uI(function(e){const n=x(e.inferences,FF);return n.length?iI(D(n,dI),e.signature,e.flags,e.compareTypes):void 0}(s)):void 0}}}const i=bO(n),a=i?Math.min(_O(n)-1,t.length):t.length;if(i&&262144&i.flags){const e=y(o.inferences,e=>e.typeParameter===i);e&&(e.impliedArity=b(t,qk,a)<0?t.length-a:void 0)}const s=og(n);if(s&&pI(s)){const n=pw(e);NI(o.inferences,ow(n),s)}for(let l=0;l<a;l++){const e=t[l];if(233!==e.kind){const t=pO(n,l);if(pI(t)){const n=SF(e,t,o,r);NI(o.inferences,n,t)}}}if(i&&pI(i)){const e=sw(t,a,t.length,i,o,r);NI(o.inferences,e,i)}return zI(o)}function aw(e){return 1048576&e.flags?jC(e,aw):1&e.flags||Xx(Tm(e)||e)?e:mR(e)?Sb(Mb(e),e.target.elementFlags,!1,e.target.labeledElementDeclarations):Sb([e],[8])}function sw(e,n,t,r,o,i){const a=mm(r);if(n>=t-1){const n=e[t-1];if(qk(n)){const e=238===n.kind?n.type:SF(n.expression,r,o,i);return $x(e)?aw(e):Jv(Rz(33,e,Fn,231===n.kind?n.expression:n),a)}}const s=[],l=[],c=[];for(let d=n;d<t;d++){const u=e[d];if(qk(u)){const e=238===u.kind?u.type:HF(u.expression);$x(e)?(s.push(e),l.push(8)):(s.push(Rz(33,e,Fn,231===u.kind?u.expression:u)),l.push(4))}else{const e=mR(r)?WP(r,d-n,t-n)||On:jT(r,kS(d-n),256),c=SF(u,e,o,i),p=a||iF(e,406978556);s.push(p?xS(c):dR(c)),l.push(1)}238===u.kind&&u.tupleNameSource?c.push(u.tupleNameSource):c.push(void 0)}return Sb(s,l,a&&!NC(r,Qx),c)}function lw(e,n,t,r){const o=Lh(e.declaration),i=e.typeParameters,a=B_(D(n,qS),i,z_(i),o);let s;for(let l=0;l<n.length;l++){dt.assert(void 0!==i[l],"Should not call checkTypeArguments with too many type arguments");const e=um(i[l]);if(e){const o=t&&r?()=>rS(void 0,fa.Type_0_does_not_satisfy_the_constraint_1):void 0,c=r||fa.Type_0_does_not_satisfy_the_constraint_1;s||(s=tE(i,a));const d=a[l];if(!UE(d,Lp(xE(e,s),d),t?n[l]:void 0,c,o))return}}return a}function cw(e){if(TL(e.tagName))return 2;const n=Vm(HF(e.tagName));return c(Vh(n,1))?0:c(Vh(n,0))?1:2}function dw(e){return MP(e,Lh(e)?-2147483615:33)}function uw(e,n,t,r,o,i,a){const l={errors:void 0,skipLogging:!0};if(Au(e))return function(e,n,t,r,o,i,a){const s=eL(n,e),l=YN(e)?EL(e):SF(e.attributes,s,void 0,r),d=4&r?GR(l):l;return function(){var n;if(ML(e))return!0;const t=!qN(e)&&!KN(e)||TL(e.tagName)||tM(e.tagName)?void 0:HF(e.tagName);if(!t)return!0;const r=Vh(t,0);if(!c(r))return!0;const i=fV(e);if(!i)return!0;const s=ts(i,111551,!0,!1,e);if(!s)return!0;const l=Vh(Vd(s),0);if(!c(l))return!0;let d=!1,u=0;for(const e of l){const n=Vh(pO(e,0),0);if(c(n))for(const e of n){if(d=!0,yO(e))return!0;const n=_O(e);n>u&&(u=n)}}if(!d)return!0;let p=1/0;for(const e of r){const n=gO(e);n<p&&(p=n)}if(p<=u)return!0;if(o){const t=e.tagName,r=Vf(t,fa.Tag_0_expects_at_least_1_arguments_but_the_JSX_factory_2_provides_at_most_3,Gf(t),p,Gf(i),u),o=null==(n=IG(t))?void 0:n.valueDeclaration;o&&dA(r,Vf(o,fa._0_is_declared_here,Gf(t))),a&&a.skipLogging&&(a.errors||(a.errors=[])).push(r),a.skipLogging||gi.add(r)}return!1}()&&KE(d,s,t,o?YN(e)?e:e.tagName:void 0,YN(e)?void 0:e.attributes,void 0,i,a)}(e,t,r,o,i,a,l)?void 0:(dt.assert(!i||!!l.errors,"jsx should have errors when reporting errors"),l.errors||s);const d=og(t);if(d&&d!==ct&&!(vC(e)||yC(e)&&ch(e.expression))){const n=pw(e),t=ow(n),o=i?n||e:void 0,c=fa.The_this_context_of_type_0_is_not_assignable_to_method_s_this_of_type_1;if(!FA(t,d,r,o,c,a,l))return dt.assert(!i||!!l.errors,"this parameter should have errors when reporting errors"),l.errors||s}const u=fa.Argument_of_type_0_is_not_assignable_to_parameter_of_type_1,p=bO(t),f=p?Math.min(_O(t)-1,n.length):n.length;for(let c=0;c<f;c++){const e=n[c];if(233!==e.kind){const n=pO(t,c),d=SF(e,n,void 0,o),p=4&o?GR(d):d,f=dw(e);if(!KE(p,n,r,i?f:void 0,f,u,a,l))return dt.assert(!i||!!l.errors,"parameter should have errors when reporting errors"),m(e,p,n),l.errors||s}}if(p){const t=sw(n,f,n.length,p,void 0,o),a=n.length-f,c=i?0===a?e:1===a?dw(n[f]):CA(fw(e,t),n[f].pos,n[n.length-1].end):void 0;if(!FA(t,p,r,c,u,void 0,l))return dt.assert(!i||!!l.errors,"rest parameter should have errors when reporting errors"),m(c,t,p),l.errors||s}return;function m(e,n,t){if(e&&i&&l.errors&&l.errors.length){if(gW(t))return;const o=gW(n);o&&DA(o,t,r)&&dA(l.errors[0],Vf(e,fa.Did_you_forget_to_use_await))}}}function pw(e){if(227===e.kind)return e.right;const n=214===e.kind?e.expression:216===e.kind?e.tag:171!==e.kind||V?void 0:e.expression;if(n){const e=MP(n);if(IT(e))return e.expression}}function fw(e,n,t,r){const o=PL.createSyntheticExpression(n,t,r);return DL(o,e),PA(o,e),o}function mw(e){if(YN(e))return[fw(e,Ct)];if(216===e.kind){const n=e.template,t=[fw(n,kr||(kr=nv("TemplateStringsArray",0,!0)||It))];return 229===n.kind&&d(n.templateSpans,e=>{t.push(e.expression)}),t}if(171===e.kind)return function(e){const n=e.expression,t=FO(e);if(t){const e=[];for(const r of t.parameters){const t=Vd(r);e.push(fw(n,t))}return e}return dt.fail()}(e);if(227===e.kind)return[e.left];if(Eu(e))return e.attributes.properties.length>0||qN(e)&&e.parent.children.length>0?[e.attributes]:s;const n=e.arguments||s,t=Jk(n);if(t>=0){const e=n.slice(0,t);for(let r=t;r<n.length;r++){const t=n[r],o=231===t.kind&&(xo?HF(t.expression):EF(t.expression));o&&mR(o)?d(Mb(o),(n,r)=>{var i;const a=o.target.elementFlags[r],s=fw(t,4&a?Jv(n):n,!!(12&a),null==(i=o.target.labeledElementDeclarations)?void 0:i[r]);e.push(s)}):e.push(t)}return e}return n}function hw(e,n){return O.experimentalDecorators?function(e,n){switch(e.parent.kind){case 264:case 232:return 1;case 173:return Fv(e.parent)?3:2;case 175:case 178:case 179:return n.parameters.length<=2?2:3;case 170:return 3;default:return dt.fail()}}(e,n):Math.min(Math.max(_O(n),1),2)}function _w(e){const n=Sp(e),{start:t,length:r}=nm(n,_C(e.expression)?e.expression.name:e.expression);return{start:t,length:r,sourceFile:n}}function gw(e,n,...t){if(yC(e)){const{sourceFile:r,start:o,length:i}=_w(e);return"message"in n?ZT(r,o,i,n,...t):Xf(r,n)}return"message"in n?Vf(e,n,...t):Hf(Sp(e),e,n)}function yw(e,n,t,r){var o;const i=Jk(t);if(i>-1)return Vf(t[i],fa.A_spread_argument_must_either_have_a_tuple_type_or_be_passed_to_a_rest_parameter);let a,s=Number.POSITIVE_INFINITY,l=Number.NEGATIVE_INFINITY,c=Number.NEGATIVE_INFINITY,d=Number.POSITIVE_INFINITY;for(const h of n){const e=gO(h),n=_O(h);e<s&&(s=e,a=h),l=Math.max(l,n),e<t.length&&e>c&&(c=e),t.length<n&&n<d&&(d=n)}const u=U(n,yO),p=u?s:s<l?s+"-"+l:s,f=!u&&1===p&&0===t.length&&function(e){if(!yC(e)||!dD(e.expression))return!1;const n=je(e.expression,e.expression.escapedText,111551,void 0,!1),t=null==n?void 0:n.valueDeclaration;if(!(t&&DD(t)&&VA(t.parent)&&vC(t.parent.parent)&&dD(t.parent.parent.expression)))return!1;const r=Sv(!1);return!!r&&IG(t.parent.parent.expression,!0)===r}(e);if(f&&Lh(e))return gw(e,fa.Expected_1_argument_but_got_0_new_Promise_needs_a_JSDoc_hint_to_produce_a_resolve_that_can_be_called_without_arguments);const m=CD(e)?u?fa.The_runtime_will_invoke_the_decorator_with_1_arguments_but_the_decorator_expects_at_least_0:fa.The_runtime_will_invoke_the_decorator_with_1_arguments_but_the_decorator_expects_0:u?fa.Expected_at_least_0_arguments_but_got_1:f?fa.Expected_0_arguments_but_got_1_Did_you_forget_to_include_void_in_your_type_argument_to_Promise:fa.Expected_0_arguments_but_got_1;if(s<t.length&&t.length<l){if(r){let n=rS(void 0,fa.No_overload_expects_0_arguments_but_overloads_do_exist_that_expect_either_1_or_2_arguments,t.length,c,d);return n=rS(n,r),gw(e,n)}return gw(e,fa.No_overload_expects_0_arguments_but_overloads_do_exist_that_expect_either_1_or_2_arguments,t.length,c,d)}if(t.length<s){let n;if(r){let o=rS(void 0,m,p,t.length);o=rS(o,r),n=gw(e,o)}else n=gw(e,m,p,t.length);const i=null==(o=null==a?void 0:a.declaration)?void 0:o.parameters[a.thisParameter?t.length+1:t.length];if(i){return dA(n,Vf(i,...xd(i.name)?[fa.An_argument_matching_this_binding_pattern_was_not_provided]:Vu(i)?[fa.Arguments_for_the_rest_parameter_0_were_not_provided,vl(ub(i.name))]:[fa.An_argument_for_0_was_not_provided,i.name?vl(ub(i.name)):t.length]))}return n}{const n=vR.createNodeArray(t.slice(l)),o=he(n).pos;let i=ye(n).end;if(i===o&&i++,CA(n,o,i),r){let o=rS(void 0,m,p,t.length);return o=rS(o,r),Kf(Sp(e),n,o)}return jf(Sp(e),n,m,p,t.length)}}function vw(e,n,t,r,o,i){const a=216===e.kind,l=171===e.kind,u=Eu(e),p=YN(e),f=227===e.kind,m=!L&&!t;let h,_,v,b,T,S=0,E=[];if(l||f||pm(e)||p||(T=e.typeArguments,(a||u||108!==e.expression.kind)&&d(T,aG)),E=t||[],function(e,n,t){let r,o,i,a,s=0,l=-1;dt.assert(!n.length);for(const c of e){const e=c.declaration&&Es(c.declaration),d=c.declaration&&c.declaration.parent;o&&e!==o?(i=s=n.length,r=d):r&&d===r?i+=1:(r=d,i=s),o=e,gB(c)?(l++,a=l,s++):a=i,n.splice(a,0,t?Wp(c,t):c)}}(n,E,o),!p&&!E.length)return m&&gi.add(gw(e,fa.Call_target_does_not_contain_any_signatures)),Kk(e);const A=mw(e),R=1===E.length&&!E[0].typeParameters;l||R||!U(A,NE)||(S=4);const I=!!(16&r)&&214===e.kind&&e.arguments.hasTrailingComma;E.length>1&&(b=w(E,bi,R,I)),b||(b=w(E,Ei,R,I));const C=ua(e);if(C.resolvedSignature!==co&&!t)return dt.assert(C.resolvedSignature),C.resolvedSignature;if(b)return b;if(b=function(e,n,t,r,o){return dt.assert(n.length>0),cG(e),r||1===n.length||n.some(e=>!!e.typeParameters)?function(e,n,t,r){const o=function(e,n){let t=-1,r=-1;for(let o=0;o<e.length;o++){const i=e[o],a=_O(i);if(yO(i)||a>=n)return o;a>r&&(r=a,t=o)}return t}(n,void 0===Ne?t.length:Ne),i=n[o],{typeParameters:a}=i;if(!a)return i;const s=Uk(e)?e.typeArguments:void 0,l=s?Pg(i,function(e,n,t){const r=e.map(DG);for(;r.length>n.length;)r.pop();for(;r.length<n.length;)r.push(Rm(n[r.length])||um(n[r.length])||WI(t));return r}(s,a,Lh(e))):function(e,n,t,r,o){const i=nI(n,t,Lh(e)?2:0),a=iw(e,t,r,12|o,i);return Pg(t,a)}(e,a,i,t,r);return n[o]=l,l}(e,n,t,o):function(e){const n=F(e,e=>e.thisParameter);let t;n.length&&(t=Tw(n,n.map(iO)));const{min:r,max:o}=uA(e,bw),i=[];for(let l=0;l<o;l++){const n=F(e,e=>_B(e)?l<e.parameters.length-1?e.parameters[l]:ye(e.parameters):l<e.parameters.length?e.parameters[l]:void 0);dt.assert(0!==n.length),i.push(Tw(n,F(e,e=>fO(e,l))))}const a=F(e,e=>_B(e)?ye(e.parameters):void 0);let s=128;if(0!==a.length){const n=Jv(Gb(F(e,Cg),2));i.push(Sw(a,n)),s|=1}e.some(gB)&&(s|=2);return wp(e[0].declaration,void 0,t,i,Xb(e.map(Ag)),void 0,r,s)}(n)}(e,E,A,!!t,r),C.resolvedSignature=b,m)if(!i&&f&&(i=fa.The_left_hand_side_of_an_instanceof_expression_must_be_assignable_to_the_first_argument_of_the_right_hand_side_s_Symbol_hasInstance_method),h)if(1===h.length||h.length>3){const n=h[h.length-1];let t;h.length>3&&(t=rS(t,fa.The_last_overload_gave_the_following_error),t=rS(t,fa.No_overload_matches_this_call)),i&&(t=rS(t,i));const r=uw(e,A,n,Ei,0,!0,()=>t);if(r)for(const e of r)n.declaration&&h.length>3&&dA(e,Vf(n.declaration,fa.The_last_overload_is_declared_here)),k(n,e),gi.add(e);else dt.fail("No error for last overload signature")}else{const n=[];let t=0,r=Number.MAX_VALUE,o=0,a=0;for(const i of h){const s=uw(e,A,i,Ei,0,!0,()=>rS(void 0,fa.Overload_0_of_1_2_gave_the_following_error,a+1,E.length,Sl(i)));s?(s.length<=r&&(r=s.length,o=a),t=Math.max(t,s.length),n.push(s)):dt.fail("No error for 3 or fewer overload signatures"),a++}const s=t>1?n[o]:M(n);dt.assert(s.length>0,"No errors reported for 3 or fewer overload signatures");let l=rS(D(s,Yf),fa.No_overload_matches_this_call);i&&(l=rS(l,i));const c=[...P(s,e=>e.relatedInformation)];let d;if(g(s,e=>e.start===s[0].start&&e.length===s[0].length&&e.file===s[0].file)){const{file:e,start:n,length:t}=s[0];d={file:e,start:n,length:t,code:l.code,category:l.category,messageText:l,relatedInformation:c}}else d=Hf(Sp(e),zd(N=e)?_C(N.expression)?N.expression.name:N.expression:bC(N)?_C(N.tag)?N.tag.name:N.tag:Eu(N)?N.tagName:N,l,c);k(h[0],d),gi.add(d)}else if(_)gi.add(yw(e,[_],A,i));else if(v)lw(v,e.typeArguments,!0,i);else if(!p){const t=x(n,e=>Qk(e,T));0===t.length?gi.add(function(e,n,t,r){const o=t.length;if(1===n.length){const i=n[0],a=z_(i.typeParameters),s=c(i.typeParameters);if(r){let n=rS(void 0,fa.Expected_0_type_arguments_but_got_1,a<s?a+"-"+s:a,o);return n=rS(n,r),Kf(Sp(e),t,n)}return jf(Sp(e),t,fa.Expected_0_type_arguments_but_got_1,a<s?a+"-"+s:a,o)}let i=-1/0,a=1/0;for(const s of n){const e=z_(s.typeParameters),n=c(s.typeParameters);e>o?a=Math.min(a,e):n<o&&(i=Math.max(i,n))}if(i!==-1/0&&a!==1/0){if(r){let n=rS(void 0,fa.No_overload_expects_0_type_arguments_but_overloads_do_exist_that_expect_either_1_or_2_type_arguments,o,i,a);return n=rS(n,r),Kf(Sp(e),t,n)}return jf(Sp(e),t,fa.No_overload_expects_0_type_arguments_but_overloads_do_exist_that_expect_either_1_or_2_type_arguments,o,i,a)}if(r){let n=rS(void 0,fa.Expected_0_type_arguments_but_got_1,i===-1/0?a:i,o);return n=rS(n,r),Kf(Sp(e),t,n)}return jf(Sp(e),t,fa.Expected_0_type_arguments_but_got_1,i===-1/0?a:i,o)}(e,n,T,i)):gi.add(yw(e,t,A,i))}var N;return b;function k(e,n){var t,r;const o=h,i=_,a=v,l=(null==(r=null==(t=e.declaration)?void 0:t.symbol)?void 0:r.declarations)||s,c=l.length>1?y(l,e=>ld(e)&&Mp(e.body)):void 0;if(c){const e=G_(c),t=!e.typeParameters;w([e],Ei,t)&&dA(n,Vf(c,fa.The_call_would_have_succeeded_against_this_implementation_but_implementation_signatures_of_overloads_are_not_externally_visible))}h=o,_=i,v=a}function w(n,t,r,o=!1){if(h=void 0,_=void 0,v=void 0,r){const r=n[0];if(U(T)||!$k(e,A,r,o))return;return uw(e,A,r,t,0,!1,void 0)?void(h=[r]):r}for(let i=0;i<n.length;i++){const r=n[i];if(!Qk(r,T)||!$k(e,A,r,o))continue;let a,s;if(r.typeParameters){let n;if(U(T)){if(n=lw(r,T,!1),!n){v=r;continue}}else s=nI(r.typeParameters,r,Lh(e)?2:0),n=iw(e,r,A,8|S,s),S|=4&s.flags?8:0;if(a=Ng(r,n,Lh(r.declaration),s&&s.inferredTypeParameters),bO(r)&&!$k(e,A,a,o)){_=a;continue}}else a=r;if(!uw(e,A,a,t,S,!1,void 0)){if(S){if(S=0,s){if(a=Ng(r,iw(e,r,A,S,s),Lh(r.declaration),s.inferredTypeParameters),bO(r)&&!$k(e,A,a,o)){_=a;continue}}if(uw(e,A,a,t,S,!1,void 0)){(h||(h=[])).push(a);continue}}return n[i]=a,a}(h||(h=[])).push(a)}}}function bw(e){const n=e.parameters.length;return _B(e)?n-1:n}function Tw(e,n){return Sw(e,Gb(n,2))}function Sw(e,n){return BR(he(e),n)}function Ew(e){return!(!e.typeParameters||!nV(Ag(e)))}function Aw(e,n,t,r){return rc(e)||rc(n)&&!!(262144&e.flags)||!t&&!r&&!(1048576&n.flags)&&!(131072&Qm(n).flags)&&BE(e,Yt)}function xw(e,n,t){let r=ZL(e.expression);if(r===pt)return uo;if(r=Vm(r),ac(r))return Kk(e);if(rc(r))return e.typeArguments&&Bi(e,fa.Untyped_function_calls_may_not_accept_type_arguments),Hk(e);const o=Vh(r,1);if(o.length){if(!function(e,n){if(!n||!n.declaration)return!0;const t=n.declaration,r=Bv(t,6);if(!r||177!==t.kind)return!0;const o=vT(t.parent.symbol),i=Wu(t.parent.symbol);if(!SG(e,o)){const n=Zm(e);if(n&&4&r){const e=DG(n);if(Iw(t.parent.symbol,e))return!0}return 2&r&&Bi(e,fa.Constructor_of_class_0_is_private_and_only_accessible_within_the_class_declaration,El(i)),4&r&&Bi(e,fa.Constructor_of_class_0_is_protected_and_only_accessible_within_the_class_declaration,El(i)),!1}return!0}(e,o[0]))return Kk(e);if(Rw(o,e=>!!(4&e.flags)))return Bi(e,fa.Cannot_create_an_instance_of_an_abstract_class),Kk(e);const i=r.symbol&&vT(r.symbol);return i&&Mv(i,64)?(Bi(e,fa.Cannot_create_an_instance_of_an_abstract_class),Kk(e)):vw(e,o,n,t,0)}const i=Vh(r,0);if(i.length){const r=vw(e,i,n,t,0);return oe||(r.declaration&&!Fw(r.declaration)&&Ag(r)!==ct&&Bi(e,fa.Only_a_void_function_can_be_called_with_the_new_keyword),og(r)===ct&&Bi(e,fa.A_function_that_is_called_with_the_new_keyword_cannot_have_a_this_type_that_is_void)),r}return Cw(e.expression,r,1),Kk(e)}function Rw(e,n){return Ye(e)?U(e,e=>Rw(e,n)):1048576===e.compositeKind?U(e.compositeSignatures,n):n(e)}function Iw(e,n){const t=gu(n);if(!c(t))return!1;const r=t[0];if(2097152&r.flags){const n=Jp(r.types);let t=0;for(const o of r.types){if(!n[t]&&3&bT(o)){if(o.symbol===e)return!0;if(Iw(e,o))return!0}t++}return!1}return r.symbol===e||Iw(e,r)}function Dw(e,n,t){let r;const o=0===t,i=xW(n),a=i&&Vh(i,t).length>0;if(1048576&n.flags){const e=n.types;let i=!1;for(const a of e){if(0!==Vh(a,t).length){if(i=!0,r)break}else if(r||(r=rS(r,o?fa.Type_0_has_no_call_signatures:fa.Type_0_has_no_construct_signatures,El(a)),r=rS(r,o?fa.Not_all_constituents_of_type_0_are_callable:fa.Not_all_constituents_of_type_0_are_constructable,El(n))),i)break}i||(r=rS(void 0,o?fa.No_constituent_of_type_0_is_callable:fa.No_constituent_of_type_0_is_constructable,El(n))),r||(r=rS(r,o?fa.Each_member_of_the_union_type_0_has_signatures_but_none_of_those_signatures_are_compatible_with_each_other:fa.Each_member_of_the_union_type_0_has_construct_signatures_but_none_of_those_signatures_are_compatible_with_each_other,El(n)))}else r=rS(r,o?fa.Type_0_has_no_call_signatures:fa.Type_0_has_no_construct_signatures,El(n));let s=o?fa.This_expression_is_not_callable:fa.This_expression_is_not_constructable;if(yC(e.parent)&&0===e.parent.arguments.length){const{resolvedSymbol:n}=ua(e);n&&32768&n.flags&&(s=fa.This_expression_is_not_callable_because_it_is_a_get_accessor_Did_you_mean_to_use_it_without)}return{messageChain:rS(r,s),relatedMessage:a?fa.Did_you_forget_to_use_await:void 0}}function Cw(e,n,t,r){const{messageChain:o,relatedMessage:i}=Dw(e,n,t),a=Hf(Sp(e),e,o);if(i&&dA(a,Vf(e,i)),yC(e.parent)){const{start:n,length:t}=_w(e.parent);a.start=n,a.length=t}gi.add(a),Nw(n,t,r?dA(a,r):a)}function Nw(e,n,t){if(!e.symbol)return;const r=da(e.symbol).originatingImport;if(r&&!fm(r)){const o=Vh(Vd(da(e.symbol).target),n);if(!o||!o.length)return;dA(t,Vf(r,fa.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 Mw(e,n,t){const r=HF(e.expression),o=Vm(r);if(ac(o))return Kk(e);const i=Vh(o,0),a=Vh(o,1).length;if(Aw(r,o,i.length,a))return Hk(e);if(s=e,(l=i).length&&g(l,e=>0===e.minArgumentCount&&!_B(e)&&e.parameters.length<hw(s,e))&&!SC(e.expression)){const n=Zp(e.expression,!1);return Bi(e,fa._0_accepts_too_few_arguments_to_be_used_as_a_decorator_here_Did_you_mean_to_call_it_first_and_write_0,n),Kk(e)}var s,l;const c=function(e){switch(e.parent.kind){case 264:case 232:return fa.Unable_to_resolve_signature_of_class_decorator_when_called_as_an_expression;case 170:return fa.Unable_to_resolve_signature_of_parameter_decorator_when_called_as_an_expression;case 173:return fa.Unable_to_resolve_signature_of_property_decorator_when_called_as_an_expression;case 175:case 178:case 179:return fa.Unable_to_resolve_signature_of_method_decorator_when_called_as_an_expression;default:return dt.fail()}}(e);if(!i.length){const n=Dw(e.expression,o,0),t=rS(n.messageChain,c),r=Hf(Sp(e.expression),e.expression,t);return n.relatedMessage&&dA(r,Vf(e.expression,n.relatedMessage)),gi.add(r),Nw(o,0,r),Kk(e)}return vw(e,i,n,t,0,c)}function Pw(e,n){const t=LL(e),r=t&&_s(t),o=r&&pa(r,Kz.Element,788968),i=o&&Te.symbolToEntityName(o,788968,e),a=vR.createFunctionTypeNode(void 0,[vR.createParameterDeclaration(void 0,void 0,"props",void 0,Te.typeToTypeNode(n,e))],i?vR.createTypeReferenceNode(i,void 0):vR.createKeywordTypeNode(133)),s=Yi(1,"props");return s.links.type=n,wp(a,void 0,void 0,[s],o?Wu(o):Mn,void 0,1,0)}function Lw(e){const n=ua(Sp(e));if(void 0!==n.jsxFragmentType)return n.jsxFragmentType;const t=Oi(e);if(!((2===O.jsx||void 0!==O.jsxFragmentFactory)&&"null"!==t))return n.jsxFragmentType=In;const r=1!==O.jsx&&3!==O.jsx,o=gi?fa.Using_JSX_fragments_requires_fragment_factory_0_to_be_in_scope_but_it_could_not_be_found:void 0,i=ML(e)??je(e,t,r?111551:111167,o,!0);if(void 0===i)return n.jsxFragmentType=Mn;if(i.escapedName===Jz.Fragment)return n.jsxFragmentType=Vd(i);const a=2097152&i.flags?Ja(i):i,s=i&&_s(a),l=s&&pa(s,Jz.Fragment,2),c=l&&Vd(l);return n.jsxFragmentType=void 0===c?Mn:c}function kw(e,n,t){const r=YN(e);let o;if(r)o=Lw(e);else{if(TL(e.tagName)){const n=WL(e),t=Pw(e,n);return HE(SF(e.attributes,eL(t,e),void 0,0),n,e.tagName,e.attributes),c(e.typeArguments)&&(d(e.typeArguments,aG),gi.add(jf(Sp(e),e.typeArguments,fa.Expected_0_type_arguments_but_got_1,0,c(e.typeArguments)))),t}o=HF(e.tagName)}const i=Vm(o);if(ac(i))return Kk(e);const a=OL(o,e);return Aw(o,i,a.length,0)?Hk(e):0===a.length?(r?Bi(e,fa.JSX_element_type_0_does_not_have_any_construct_or_call_signatures,Zp(e)):Bi(e.tagName,fa.JSX_element_type_0_does_not_have_any_construct_or_call_signatures,Zp(e.tagName)),Kk(e)):vw(e,a,n,t,0)}function ww(e,n,t){switch(e.kind){case 214:return function(e,n,t){if(108===e.expression.kind){const r=sP(e.expression);if(rc(r)){for(const n of e.arguments)HF(n);return so}if(!ac(r)){const o=Tg(Zm(e));if(o)return vw(e,pu(r,o.typeArguments,o),n,t,0)}return Hk(e)}let r,o=HF(e.expression);if(vc(e)){const n=PR(o,e.expression);r=n===o?0:Ec(e)?16:8,o=n}else r=0;if(o=ak(o,e.expression,ik),o===pt)return uo;const i=Vm(o);if(ac(i))return Kk(e);const a=Vh(i,0),s=Vh(i,1).length;if(Aw(o,i,a.length,s))return!ac(o)&&e.typeArguments&&Bi(e,fa.Untyped_function_calls_may_not_accept_type_arguments),Hk(e);if(!a.length){if(s)Bi(e,fa.Value_of_type_0_is_not_callable_Did_you_mean_to_include_new,El(o));else{let n;if(1===e.arguments.length){const t=Sp(e).text;qa(t.charCodeAt(es(t,e.expression.end,!0)-1))&&(n=Vf(e.expression,fa.Are_you_missing_a_semicolon))}Cw(e.expression,i,0,n)}return Kk(e)}return 8&t&&!e.typeArguments&&a.some(Ew)?(OF(e,t),co):a.some(e=>Lh(e.declaration)&&!!Gl(e.declaration))?(Bi(e,fa.Value_of_type_0_is_not_callable_Did_you_mean_to_include_new,El(o)),Kk(e)):vw(e,a,n,t,r)}(e,n,t);case 215:return xw(e,n,t);case 216:return function(e,n,t){const r=HF(e.tag),o=Vm(r);if(ac(o))return Kk(e);const i=Vh(o,0),a=Vh(o,1).length;if(Aw(r,o,i.length,a))return Hk(e);if(!i.length){if(mC(e.parent)){const n=Vf(e.tag,fa.It_is_likely_that_you_are_missing_a_comma_to_separate_these_two_template_expressions_They_form_a_tagged_template_expression_which_cannot_be_invoked);return gi.add(n),Kk(e)}return Cw(e.tag,o,0),Kk(e)}return vw(e,i,n,t,0)}(e,n,t);case 171:return Mw(e,n,t);case 290:case 287:case 286:return kw(e,n,t);case 227:return function(e,n,t){const r=HF(e.right);if(!rc(r)){const o=dF(r);if(o){const r=Vm(o);if(ac(r))return Kk(e);const i=Vh(r,0),a=Vh(r,1);if(Aw(o,r,i.length,a.length))return Hk(e);if(i.length)return vw(e,i,n,t,0)}else if(!kG(r)&&!WE(r,Yt))return Bi(e.right,fa.The_right_hand_side_of_an_instanceof_expression_must_be_either_of_type_any_a_class_function_or_other_type_assignable_to_the_Function_interface_type_or_an_object_type_with_a_Symbol_hasInstance_method),Kk(e)}return so}(e,n,t)}dt.assertNever(e,"Branch in 'resolveSignature' should be unreachable.")}function Ow(e,n,t){const r=ua(e),o=r.resolvedSignature;if(o&&o!==co&&!n)return o;const i=qo;o||(qo=Uo.length),r.resolvedSignature=co;const a=ww(e,n,t||0);return qo=i,a!==co&&(r.resolvedSignature=Ao===xo?a:o),a}function Fw(e){var n;if(!e||!Lh(e))return!1;const t=hN(e)||EC(e)?e:(fN(e)||sM(e))&&e.initializer&&EC(e.initializer)?e.initializer:void 0;if(t){if(Gl(e))return!0;if(sM(ag(t.parent)))return!1;const r=Es(t);return!!(null==(n=null==r?void 0:r.members)?void 0:n.size)}return!1}function Ww(e,n){var t,r;if(n){const o=da(n);if(!o.inferredClassSymbol||!o.inferredClassSymbol.has(dB(e))){const i=Zu(e)?e:na(e);return i.exports=i.exports||Qu(),i.members=i.members||Qu(),i.flags|=32&n.flags,(null==(t=n.exports)?void 0:t.size)&&sa(i.exports,n.exports),(null==(r=n.members)?void 0:r.size)&&sa(i.members,n.members),(o.inferredClassSymbol||(o.inferredClassSymbol=new Map)).set(dB(i),i),i}return o.inferredClassSymbol.get(dB(e))}}function zw(e,n){if(!e.parent)return;let t,r;if(fN(e.parent)&&e.parent.initializer===e){if(!(Lh(e)||nj(e.parent)&&ld(e)))return;t=e.parent.name,r=e.parent}else if(MC(e.parent)){const o=e.parent,i=e.parent.operatorToken.kind;if(64!==i||!n&&o.right!==e){if(!(57!==i&&61!==i||(fN(o.parent)&&o.parent.initializer===o?(t=o.parent.name,r=o.parent):MC(o.parent)&&64===o.parent.operatorToken.kind&&(n||o.parent.right===o)&&(t=o.parent.left,r=t),t&&d_(t)&&Zh(t,o.left))))return}else t=o.left,r=t}else n&&hN(e)&&(t=e.name,r=e);return r&&t&&(n||Yh(e,hb(t)))?As(r):void 0}function Bw(e,n){var t,r,o,i;if(!(128&e.flags)&&(e.declaration&&536870912&e.declaration.flags)){const a=Gw(n),s=mb(mh(n));t=a,r=e.declaration,o=s,i=Sl(e),Ki(r,o?Vf(t,fa.The_signature_0_of_1_is_deprecated,i,o):Vf(t,fa._0_is_deprecated,i))}}function Gw(e){switch((e=cg(e)).kind){case 214:case 171:case 215:return Gw(e.expression);case 216:return Gw(e.tag);case 287:case 286:return Gw(e.tagName);case 213:return e.argumentExpression;case 212:return e.name;case 184:const n=e;return xD(n.typeName)?n.typeName.right:n;default:return e}}function Vw(e){if(!yC(e))return!1;let n=e.expression;if(_C(n)&&"for"===n.name.escapedText&&(n=n.expression),!dD(n)||"Symbol"!==n.escapedText)return!1;const t=cv(!1);return!!t&&t===je(n,"Symbol",111551,void 0,!1)}function jw(e){if(function(e){if(O.verbatimModuleSyntax&&1===G)return HV(e,Gi(e));if(237===e.expression.kind){if(99!==G&&200!==G)return HV(e,fa.Deferred_imports_are_only_supported_when_the_module_flag_is_set_to_esnext_or_preserve)}else if(5===G)return HV(e,fa.Dynamic_imports_are_only_supported_when_the_module_flag_is_set_to_es2020_es2022_esnext_commonjs_amd_system_umd_node16_node18_node20_or_nodenext);if(e.typeArguments)return HV(e,fa.This_use_of_import_is_invalid_import_calls_can_be_written_but_they_must_have_parentheses_and_cannot_have_type_arguments);const n=e.arguments;if(!(100<=G&&G<=199)&&99!==G&&200!==G&&(TV(n),n.length>1)){return HV(n[1],fa.Dynamic_imports_only_support_a_second_argument_when_the_module_option_is_set_to_esnext_node16_node18_node20_nodenext_or_preserve)}if(0===n.length||n.length>2)return HV(e,fa.Dynamic_imports_can_only_accept_a_module_specifier_and_an_optional_set_of_attributes_as_arguments);const t=y(n,wC);if(t)return HV(t,fa.Argument_of_dynamic_import_cannot_be_spread_element)}(e),0===e.arguments.length)return BO(e,In);const n=e.arguments[0],t=EF(n),r=e.arguments.length>1?EF(e.arguments[1]):void 0;for(let i=2;i<e.arguments.length;++i)EF(e.arguments[i]);if((32768&t.flags||65536&t.flags||!BE(t,Hn))&&Bi(n,fa.Dynamic_import_s_specifier_must_be_of_type_string_but_here_has_type_0,El(t)),r){const n=iv(!0);n!==It&&UE(r,RR(n,32768),e.arguments[1])}const o=os(e,n);if(o){const t=cs(o,n,!0,!1);if(t)return BO(e,Hw(Vd(t),t,o,n)||Kw(Vd(t),t,o,n))}return BO(e,In)}function Uw(e,n,t){const r=Qu(),o=Yi(2097152,"default");return o.parent=n,o.links.nameType=NS("default"),o.links.aliasTarget=Ka(e),r.set("default",o),qs(t,r,s,s,s)}function Hw(e,n,t,r){if(La(r)&&e&&!ac(e)){const r=e;if(!r.defaultOnlyType){const e=Uw(n,t);r.defaultOnlyType=e}return r.defaultOnlyType}}function Kw(e,n,t,r){var o;if(q&&e&&!ac(e)){const i=e;if(!i.syntheticType){if(ka(null==(o=t.declarations)?void 0:o.find(uM),t,!1,r)){const r=Yi(2048,"__type"),o=Uw(n,t,r);r.links.type=o,i.syntheticType=vL(e)?gS(e,o,r,0,!1):o}else i.syntheticType=e}return i.syntheticType}return e}function qw(e){if(!Wh(e,!0))return!1;if(!dD(e.expression))return dt.fail();const n=je(e.expression,e.expression.escapedText,111551,void 0,!0);if(n===Oe)return!0;if(2097152&n.flags)return!1;const t=16&n.flags?263:3&n.flags?261:0;if(0!==t){const e=Yu(n,t);return!!e&&!!(33554432&e.flags)}return!1}function Jw(e){(function(e){if(e.questionDotToken||64&e.flags)return HV(e.template,fa.Tagged_template_expressions_are_not_permitted_in_an_optional_chain);return!1})(e)||xV(e,e.typeArguments),W<Do.TaggedTemplates&&gV(e,262144);const n=Ow(e);return Bw(n,e),Ag(n)}function Xw(e){switch(e.kind){case 11:case 15:case 9:case 10:case 112:case 97:case 210:case 211:case 229:return!0;case 218:return Xw(e.expression);case 225:const n=e.operator,t=e.operand;return 41===n&&(9===t.kind||10===t.kind)||40===n&&9===t.kind;case 212:case 213:const r=cg(e.expression),o=db(r)?ts(r,111551,!0):void 0;return!!(o&&384&o.flags)}return!1}function Yw(e,n){const{type:t,expression:r}=$w(e),o=HF(r,n);if(xc(t))return Xw(r)||Bi(r,fa.A_const_assertions_can_only_be_applied_to_references_to_enum_members_or_string_number_boolean_array_or_object_literals),xS(o);return ua(e).assertionExpressionType=o,aG(t),cG(e),qS(t)}function $w(e){let n,t;switch(e.kind){case 235:case 217:n=e.type,t=e.expression;break;case 218:n=CP(e),t=e.expression}return{type:n,expression:t}}function Qw(e){return 64&e.flags?function(e){const n=HF(e.expression),t=PR(n,e.expression);return MR(DR(t),e,t!==n)}(e):DR(HF(e.expression))}function Zw(e){if(IV(e),d(e.typeArguments,aG),234===e.kind){const n=ag(e.parent);227===n.kind&&104===n.operatorToken.kind&&ug(e,n.right)&&Bi(e,fa.The_right_hand_side_of_an_instanceof_expression_must_not_be_an_instantiation_expression)}return eO(234===e.kind?HF(e.expression):pv(e.exprName)?iP(e.exprName):HF(e.exprName),e)}function eO(e,n){const t=n.typeArguments;if(e===pt||ac(e)||!U(t))return e;const r=ua(n);if(r.instantiationExpressionTypes||(r.instantiationExpressionTypes=new Map),r.instantiationExpressionTypes.has(e.id))return r.instantiationExpressionTypes.get(e.id);let o,i=!1;const a=function e(t){let r=!1,a=!1;const s=c(t);i||(i=a),r&&!a&&(o??(o=t));return s;function c(t){if(524288&t.flags){const e=Jf(t),o=l(e.callSignatures),i=l(e.constructSignatures);if(r||(r=0!==e.callSignatures.length||0!==e.constructSignatures.length),a||(a=0!==o.length||0!==i.length),o!==e.callSignatures||i!==e.constructSignatures){const t=qs(Yi(0,"__instantiationExpression"),e.members,o,i,e.indexInfos);return t.objectFlags|=8388608,t.node=n,t}}else if(58982400&t.flags){const e=Tm(t);if(e){const n=c(e);if(n!==e)return n}}else{if(1048576&t.flags)return jC(t,e);if(2097152&t.flags)return Xb(N(t.types,c))}return t}}(e);r.instantiationExpressionTypes.set(e.id,a);const s=i?o:e;return s&&gi.add(jf(Sp(n),t,fa.Type_0_has_no_signatures_for_which_the_type_argument_list_is_applicable,El(s))),a;function l(e){return N(x(e,e=>!!e.typeParameters&&Qk(e,t)),e=>{const n=lw(e,t,!0);return n?Ng(e,n,Lh(e.declaration)):e})}}function nO(e,n,t){const r=HF(e,t),o=qS(n);if(ac(o))return o;return HE(r,o,ml(n.parent,e=>239===e.kind||351===e.kind),e,fa.Type_0_does_not_satisfy_the_expected_type_1),r}function tO(e){return function(e){const n=e.name.escapedText;switch(e.keywordToken){case 105:if("target"!==n)return HV(e.name,fa._0_is_not_a_valid_meta_property_for_keyword_1_Did_you_mean_2,yl(e.name.escapedText),Pa(e.keywordToken),"target");break;case 102:if("meta"!==n){const t=yC(e.parent)&&e.parent.expression===e;if("defer"!==n)return t?HV(e.name,fa._0_is_not_a_valid_meta_property_for_keyword_import_Did_you_mean_meta_or_defer,yl(e.name.escapedText)):HV(e.name,fa._0_is_not_a_valid_meta_property_for_keyword_1_Did_you_mean_2,yl(e.name.escapedText),Pa(e.keywordToken),"meta");if(!t)UV(e,e.end,0,fa._0_expected,"(")}}}(e),105===e.keywordToken?oO(e):102===e.keywordToken?"defer"===e.name.escapedText?(dt.assert(!yC(e.parent)||e.parent.expression!==e,"Trying to get the type of `import.defer` in `import.defer(...)`"),Mn):function(e){100<=G&&G<=199?99!==Sp(e).impliedNodeFormat&&Bi(e,fa.The_import_meta_meta_property_is_not_allowed_in_files_which_will_build_into_CommonJS_output):G<6&&4!==G&&Bi(e,fa.The_import_meta_meta_property_is_only_allowed_when_the_module_option_is_es2020_es2022_esnext_system_node16_node18_node20_or_nodenext);const n=Sp(e);return dt.assert(!!(8388608&n.flags),"Containing file is missing import meta node flag."),"meta"===e.name.escapedText?rv():Mn}(e):dt.assertNever(e.keywordToken)}function rO(e){switch(e.keywordToken){case 102:return ov();case 105:const n=oO(e);return ac(n)?Mn:function(e){const n=Yi(0,"NewTargetExpression"),t=Yi(4,"target",8);t.parent=n,t.links.type=e;const r=Qu([t]);return n.members=r,qs(n,r,s,s,s)}(n);default:dt.assertNever(e.keywordToken)}}function oO(e){const n=ah(e);if(n){if(177===n.kind){return Vd(Es(n.parent))}return Vd(Es(n))}return Bi(e,fa.Meta_property_0_is_only_allowed_in_the_body_of_a_function_declaration_function_expression_or_constructor,"new.target"),Mn}function iO(e){const n=e.valueDeclaration;return Pc(Vd(e),!1,!!n&&(Lu(n)||ex(n)))}function aO(e,n,t){switch(e.name.kind){case 80:{const r=e.name.escapedText;return e.dotDotDotToken?12&t?r:`${r}_${n}`:3&t?r:`${r}_n`}case 208:if(e.dotDotDotToken){const r=e.name.elements,o=en(ge(r),fC),i=r.length-((null==o?void 0:o.dotDotDotToken)?1:0);if(n<i){const e=r[n];if(fC(e))return aO(e,n,t)}else if(null==o?void 0:o.dotDotDotToken)return aO(o,n-i,t)}}return`arg_${n}`}function sO(e,n=0,t=3,r){if(!e){const e=en(null==r?void 0:r.valueDeclaration,DD);return e?aO(e,n,t):`${(null==r?void 0:r.escapedName)??"arg"}_${n}`}return dt.assert(dD(e.name)),e.name.escapedText}function lO(e,n,t){var r;const o=e.parameters.length-(_B(e)?1:0);if(n<o)return e.parameters[n].escapedName;const i=e.parameters[o]||Sn,a=t||Vd(i);if(mR(a)){const e=a.target,t=n-o;return sO(null==(r=e.labeledElementDeclarations)?void 0:r[t],t,e.elementFlags[t],i)}return i.escapedName}function cO(e){return e.valueDeclaration&&DD(e.valueDeclaration)&&dD(e.valueDeclaration.name)&&e.valueDeclaration.name}function dO(e){return 203===e.kind||DD(e)&&e.name&&dD(e.name)}function uO(e,n){const t=e.parameters.length-(_B(e)?1:0);if(n<t){const t=e.parameters[n].valueDeclaration;return t&&dO(t)?t:void 0}const r=e.parameters[t]||Sn,o=Vd(r);if(mR(o)){const e=o.target.labeledElementDeclarations;return e&&e[n-t]}return r.valueDeclaration&&dO(r.valueDeclaration)?r.valueDeclaration:void 0}function pO(e,n){return fO(e,n)||In}function fO(e,n){const t=e.parameters.length-(_B(e)?1:0);if(n<t)return iO(e.parameters[n]);if(_B(e)){const r=Vd(e.parameters[t]),o=n-t;if(!mR(r)||12&r.target.combinedFlags||o<r.target.fixedLength)return jT(r,kS(o))}}function mO(e,n,t){const r=_O(e),o=gO(e),i=vO(e);if(i&&n>=r-1)return n===r-1?i:Jv(jT(i,Kn));const a=[],s=[],l=[];for(let c=n;c<r;c++)!i||c<r-1?(a.push(pO(e,c)),s.push(c<o?1:2)):(a.push(i),s.push(8)),l.push(uO(e,c));return Sb(a,s,t,l)}function hO(e,n){const t=mO(e,n),r=t&&Yx(t);return r&&rc(r)?In:t}function _O(e){const n=e.parameters.length;if(_B(e)){const t=Vd(e.parameters[n-1]);if(mR(t))return n+t.target.fixedLength-(12&t.target.combinedFlags?0:1)}return n}function gO(e,n){const t=1&n,r=2&n;if(r||void 0===e.resolvedMinArgumentCount){let n;if(_B(e)){const t=Vd(e.parameters[e.parameters.length-1]);if(mR(t)){const r=b(t.target.elementFlags,e=>!(1&e)),o=r<0?t.target.fixedLength:r;o>0&&(n=e.parameters.length-1+o)}}if(void 0===n){if(!t&&32&e.flags)return 0;n=e.minArgumentCount}if(r)return n;for(let t=n-1;t>=0;t--){if(131072&kC(pO(e,t),Xk).flags)break;n=t}e.resolvedMinArgumentCount=n}return e.resolvedMinArgumentCount}function yO(e){if(_B(e)){const n=Vd(e.parameters[e.parameters.length-1]);return!mR(n)||!!(12&n.target.combinedFlags)}return!1}function vO(e){if(_B(e)){const n=Vd(e.parameters[e.parameters.length-1]);if(!mR(n))return rc(n)?lr:n;if(12&n.target.combinedFlags)return Ib(n,n.target.fixedLength)}}function bO(e){const n=vO(e);return!n||Kx(n)||rc(n)?void 0:n}function TO(e){return SO(e,ut)}function SO(e,n){return e.parameters.length>0?pO(e,0):n}function EO(e,n,t){const r=e.parameters.length-(_B(e)?1:0);for(let i=0;i<r;i++){const r=e.parameters[i].valueDeclaration,o=gv(r);if(o){const e=Pc(qS(o),!1,ex(r)),a=pO(n,i);NI(t.inferences,e,a)}}const o=e.declaration&&vv(e.declaration);if(o){const e=qS(o),r=Ag(n);NI(t.inferences,e,r)}}function AO(e,n){const t=da(e);if(t.type)n&&dt.assertEqual(t.type,n,"Parameter symbol already has a cached type which differs from newly assigned type");else{const r=e.valueDeclaration;t.type=Pc(n||(r?nd(r,!0):Vd(e)),!1,!!r&&!r.initializer&&ex(r)),r&&80!==r.name.kind&&(t.type===On&&(t.type=ed(r.name)),xO(r.name,t.type))}}function xO(e,n){for(const t of e.elements)if(!FC(t)){const e=Dc(t,n,!1);80===t.name.kind?da(Es(t)).type=e:xO(t.name,e)}}function RO(e){return _y((n=!0,qr??(qr=nv("ClassDecoratorContext",1,n))??kt),[e]);var n}function IO(e,n){return _y((t=!0,Jr??(Jr=nv("ClassMethodDecoratorContext",2,t))??kt),[e,n]);var t}function DO(e,n){return _y((t=!0,Xr??(Xr=nv("ClassGetterDecoratorContext",2,t))??kt),[e,n]);var t}function CO(e,n){return _y((t=!0,Yr??(Yr=nv("ClassSetterDecoratorContext",2,t))??kt),[e,n]);var t}function NO(e,n){return _y((t=!0,$r??($r=nv("ClassAccessorDecoratorContext",2,t))??kt),[e,n]);var t}function MO(e,n){return _y((t=!0,eo??(eo=nv("ClassFieldDecoratorContext",2,t))??kt),[e,n]);var t}function PO(e,n,t){const r=Lv(e),o=uD(e.name),i=o?NS(vl(e.name)):rT(e.name),a=LD(e)?IO(n,t):OD(e)?DO(n,t):FD(e)?CO(n,t):_d(e)?NO(n,t):MD(e)?MO(n,t):dt.failBadSyntaxKind(e),l=function(e,n,t){const r=`${n?"p":"P"}${t?"s":"S"}${e.id}`;let o=_n.get(r);if(!o){const i=Qu();i.set("name",Qi("name",e)),i.set("private",Qi("private",n?tt:$n)),i.set("static",Qi("static",t?tt:$n)),o=qs(void 0,i,s,s,s),_n.set(r,o)}return o}(i,o,r);return Xb([a,l])}function LO(e,n){return _y((t=!0,Qr??(Qr=nv("ClassAccessorDecoratorTarget",2,t))??kt),[e,n]);var t}function kO(e,n){return _y((t=!0,Zr??(Zr=nv("ClassAccessorDecoratorResult",2,t))??kt),[e,n]);var t}function wO(e,n,t){return DW(void 0,void 0,[$i("target",e),$i("context",n)],Gb([t,ct]))}function OO(e){const{parent:n}=e,t=ua(n);if(!t.decoratorSignature)switch(t.decoratorSignature=so,n.kind){case 264:case 232:{const e=Vd(Es(n)),r=RO(e);t.decoratorSignature=wO(e,r,e);break}case 175:case 178:case 179:{const e=n;if(!md(e.parent))break;const r=LD(e)?Bg(G_(e)):DG(e),o=Lv(e)?Vd(Es(e.parent)):bu(Es(e.parent)),i=OD(e)?NW(r):FD(e)?MW(r):r,a=PO(e,o,r),s=OD(e)?NW(r):FD(e)?MW(r):r;t.decoratorSignature=wO(i,a,s);break}case 173:{const e=n;if(!md(e.parent))break;const r=DG(e),o=Lv(e)?Vd(Es(e.parent)):bu(Es(e.parent)),i=Fv(e)?LO(o,r):Fn,a=PO(e,o,r),s=Fv(e)?kO(o,r):function(e,n){return CW(void 0,$i("this",e),[$i("value",n)],n,void 0,1)}(o,r);t.decoratorSignature=wO(i,a,s);break}}return t.decoratorSignature===so?void 0:t.decoratorSignature}function FO(e){return V?function(e){const{parent:n}=e,t=ua(n);if(!t.decoratorSignature)switch(t.decoratorSignature=so,n.kind){case 264:case 232:{const e=Vd(Es(n)),r=$i("target",e);t.decoratorSignature=DW(void 0,void 0,[r],Gb([e,ct]));break}case 170:{const e=n;if(!wD(e.parent)&&!(LD(e.parent)||FD(e.parent)&&md(e.parent.parent)))break;if(dv(e.parent)===e)break;const r=dv(e.parent)?e.parent.parameters.indexOf(e)-1:e.parent.parameters.indexOf(e);dt.assert(r>=0);const o=wD(e.parent)?Vd(Es(e.parent.parent)):MG(e.parent),i=wD(e.parent)?Fn:PG(e.parent),a=kS(r),s=$i("target",o),l=$i("propertyKey",i),c=$i("parameterIndex",a);t.decoratorSignature=DW(void 0,void 0,[s,l,c],ct);break}case 175:case 178:case 179:case 173:{const e=n;if(!md(e.parent))break;const r=$i("target",MG(e)),o=$i("propertyKey",PG(e)),i=MD(e)?ct:Kv(DG(e));if(!MD(n)||Fv(n)){const n=$i("descriptor",Kv(DG(e)));t.decoratorSignature=DW(void 0,void 0,[r,o,n],Gb([i,ct]))}else t.decoratorSignature=DW(void 0,void 0,[r,o],Gb([i,ct]));break}}return t.decoratorSignature===so?void 0:t.decoratorSignature}(e):OO(e)}function WO(e){const n=_v(!0);return n!==kt?gy(n,[e=RW(SW(e))||On]):On}function zO(e){const n=yv(!0);return n!==kt?gy(n,[e=RW(SW(e))||On]):On}function BO(e,n){const t=WO(n);return t===On?(Bi(e,fm(e)?fa.A_dynamic_import_call_returns_a_Promise_Make_sure_you_have_a_declaration_for_Promise_or_include_ES2015_in_your_lib_option:fa.An_async_function_or_method_must_return_a_Promise_Make_sure_you_have_a_declaration_for_Promise_or_include_ES2015_in_your_lib_option),Mn):(Sv(!0)||Bi(e,fm(e)?fa.A_dynamic_import_call_in_ES5_requires_the_Promise_constructor_Make_sure_you_have_a_declaration_for_the_Promise_constructor_or_include_ES2015_in_your_lib_option:fa.An_async_function_or_method_in_ES5_requires_the_Promise_constructor_Make_sure_you_have_a_declaration_for_the_Promise_constructor_or_include_ES2015_in_your_lib_option),t)}function GO(e,n){if(!e.body)return Mn;const t=Fg(e),r=!!(2&t),o=!!(1&t);let i,a,s,l=ct;if(242!==e.body.kind)i=EF(e.body,n&&-9&n),r&&(i=SW(vW(i,!1,e,fa.The_return_type_of_an_async_function_must_either_be_a_valid_promise_or_must_not_contain_a_callable_then_member)));else if(o){const t=qO(e,n);t?t.length>0&&(i=Gb(t,2)):l=ut;const{yieldTypes:r,nextTypes:o}=function(e,n){const t=[],r=[],o=!!(2&Fg(e));return Pm(e.body,e=>{const i=e.expression?HF(e.expression,n):Wn;let a;if(se(t,jO(e,i,In,o)),e.asteriskToken){const n=kz(i,o?19:17,e.expression);a=n&&n.nextType}else a=KP(e,void 0);a&&se(r,a)}),{yieldTypes:t,nextTypes:r}}(e,n);a=U(r)?Gb(r,2):void 0,s=U(o)?Xb(o):void 0}else{const r=qO(e,n);if(!r)return 2&t?BO(e,ut):ut;if(0===r.length){const n=yP(e,void 0),r=n&&32768&(oB(n,t)||ct).flags?Fn:ct;return 2&t?BO(e,r):r}i=Gb(r,2)}if(i||a||s){if(a&&QR(e,a,3),i&&QR(e,i,1),s&&QR(e,s,2),i&&iR(i)||a&&iR(a)||s&&iR(s)){const n=oL(e),t=n?n===G_(e)?o?void 0:i:UP(Ag(n),e,void 0):void 0;o?(a=fR(a,t,0,r),i=fR(i,t,1,r),s=fR(s,t,2,r)):i=function(e,n,t){e&&iR(e)&&(e=pR(e,n?t?yW(n):n:void 0));return e}(i,t,r)}a&&(a=JR(a)),i&&(i=JR(i)),s&&(s=JR(s))}return o?VO(a||ut,i||l,s||gP(2,e)||On,r):r?WO(i||l):i||l}function VO(e,n,t,r){const o=r?vo:bo,i=o.getGlobalGeneratorType(!1);if(e=o.resolveIterationType(e,void 0)||On,n=o.resolveIterationType(n,void 0)||On,i===kt){const r=o.getGlobalIterableIteratorType(!1);return r!==kt?Hv(r,[e,n,t]):(o.getGlobalIterableIteratorType(!0),It)}return Hv(i,[e,n,t])}function jO(e,n,t,r){if(n===pt)return pt;const o=e.expression||e,i=e.asteriskToken?Rz(r?19:17,n,t,o):n;return r?xW(i,o,e.asteriskToken?fa.Type_of_iterated_elements_of_a_yield_Asterisk_operand_must_either_be_a_valid_promise_or_must_not_contain_a_callable_then_member:fa.Type_of_yield_operand_in_an_async_generator_must_either_be_a_valid_promise_or_must_not_contain_a_callable_then_member):i}function UO(e,n,t){let r=0;for(let o=0;o<t.length;o++){const i=o<e||o>=n?t[o]:void 0;r|=void 0!==i?tB.get(i)||32768:0}return r}function HO(e){const n=ua(e);if(void 0===n.isExhaustive){n.isExhaustive=0;const t=function(e){if(222===e.expression.kind){const n=TC(e);if(!n)return!1;const t=Sm(EF(e.expression.expression)),r=UO(0,0,n);return 3&t.flags?!(556800&~r):!NC(t,e=>lD(e,r)===r)}const n=Sm(EF(e.expression));if(!sR(n))return!1;const t=dC(e);if(!t.length||U(t,oR))return!1;return r=jC(n,xS),o=t,1048576&r.flags?!d(r.types,e=>!S(o,e)):S(o,r);var r,o}(e);0===n.isExhaustive&&(n.isExhaustive=t)}else 0===n.isExhaustive&&(n.isExhaustive=!1);return n.isExhaustive}function KO(e){return e.endFlowNode&&IN(e.endFlowNode)}function qO(e,n){const t=Fg(e),r=[];let o=KO(e),i=!1;if(Mm(e.body,a=>{let s=a.expression;if(s){if(s=cg(s,!0),2&t&&224===s.kind&&(s=cg(s.expression,!0)),214===s.kind&&80===s.expression.kind&&EF(s.expression).symbol===Ss(e.symbol)&&(!VA(e.symbol.valueDeclaration)||PN(s.expression)))return void(i=!0);let o=EF(s,n&&-9&n);2&t&&(o=SW(vW(o,!1,e,fa.The_return_type_of_an_async_function_must_either_be_a_valid_promise_or_must_not_contain_a_callable_then_member))),131072&o.flags&&(i=!0),se(r,o)}else o=!0}),0!==r.length||o||!i&&!function(e){switch(e.kind){case 219:case 220:return!0;case 175:return 211===e.parent.kind;default:return!1}}(e))return!(X&&r.length&&o)||Fw(e)&&r.some(n=>n.symbol===e.symbol)||se(r,Fn),r}function JO(e,n){return void a(function(){const t=Fg(e),r=n&&oB(n,t);if(r&&(iF(r,16384)||32769&r.flags))return;if(174===e.kind||Np(e.body)||242!==e.body.kind||!KO(e))return;const o=1024&e.flags,i=vv(e)||e;if(r&&131072&r.flags)Bi(i,fa.A_function_returning_never_cannot_have_a_reachable_end_point);else if(r&&!o)Bi(i,fa.A_function_whose_declared_type_is_neither_undefined_void_nor_any_must_return_a_value);else if(r&&X&&!BE(Fn,r))Bi(i,fa.Function_lacks_ending_return_statement_and_return_type_does_not_include_undefined);else if(O.noImplicitReturns){if(!r){if(!o)return;const n=Ag(G_(e));if(pB(e,n))return}Bi(i,fa.Not_all_code_paths_return_a_value)}})}function XO(e,n){if(dt.assert(175!==e.kind||jm(e)),cG(e),EC(e)&&cz(e,e.name),n&&4&n&&NE(e)){if(!vv(e)&&!zA(e)){const t=iL(e);if(t&&pI(Ag(t))){const t=ua(e);if(t.contextFreeType)return t.contextFreeType;const r=GO(e,n),o=wp(void 0,void 0,void 0,s,r,void 0,0,64),i=qs(e.symbol,k,[o],s,s);return i.objectFlags|=262144,t.contextFreeType=i}}return wt}return AV(e)||219!==e.kind||CV(e),function(e,n){const t=ua(e);if(!(64&t.flags)){const r=iL(e);if(!(64&t.flags)){t.flags|=64;const o=fe(Vh(Vd(Es(e)),0));if(!o)return;if(NE(e))if(r){const t=ZP(e);let i;if(n&&2&n){EO(o,r,t);const e=vO(r);e&&262144&e.flags&&(i=_E(r,t.nonFixingMapper))}i||(i=t?_E(r,t.mapper):r),function(e,n){if(n.typeParameters){if(e.typeParameters)return;e.typeParameters=n.typeParameters}if(n.thisParameter){const t=e.thisParameter;(!t||t.valueDeclaration&&!t.valueDeclaration.type)&&(t||(e.thisParameter=BR(n.thisParameter,void 0)),AO(e.thisParameter,Vd(n.thisParameter)))}const t=e.parameters.length-(_B(e)?1:0);for(let r=0;r<t;r++){const t=e.parameters[r],o=t.valueDeclaration;if(!gv(o)){let e=fO(n,r);if(e&&o.initializer){let n=xF(o,0);!BE(n,e)&&BE(e,n=IF(o,n))&&(e=n)}AO(t,e)}}if(_B(e)){const r=ye(e.parameters);(r.valueDeclaration?!gv(r.valueDeclaration):65536&sT(r))&&AO(r,mO(n,t))}}(o,i)}else!function(e){e.thisParameter&&AO(e.thisParameter);for(const n of e.parameters)AO(n)}(o);else if(r&&!e.typeParameters&&r.parameters.length>e.parameters.length){const t=ZP(e);n&&2&n&&EO(o,r,t)}if(r&&!Rg(e)&&!o.resolvedReturnType){const t=GO(e,n);o.resolvedReturnType||(o.resolvedReturnType=t)}XF(e)}}}(e,n),Vd(Es(e))}function YO(e,n,t,r=!1){if(!BE(n,yt)){const o=r&&gW(n);return Hi(e,!!o&&BE(o,yt),t),!1}return!0}function $O(e){if(!yC(e))return!1;if(!i_(e))return!1;const n=EF(e.arguments[2]);if(nc(n,"value")){const e=wh(n,"writable"),t=e&&Vd(e);if(!t||t===$n||t===Qn)return!0;if(e&&e.valueDeclaration&&sM(e.valueDeclaration)){const n=HF(e.valueDeclaration.initializer);if(n===$n||n===Qn)return!0}return!1}return!wh(n,"set")}function QO(e){return!!(8&sT(e)||4&e.flags&&8&lT(e)||3&e.flags&&6&JL(e)||98304&e.flags&&!(65536&e.flags)||8&e.flags||U(e.declarations,$O))}function ZO(e,n,t){var r,o;if(0===t)return!1;if(QO(n)){if(4&n.flags&&IT(e)&&110===e.expression.kind){const t=BN(e);if(!t||177!==t.kind&&!Fw(t))return!0;if(n.valueDeclaration){const e=MC(n.valueDeclaration),i=t.parent===n.valueDeclaration.parent,a=t===n.valueDeclaration.parent,s=e&&(null==(r=n.parent)?void 0:r.valueDeclaration)===t.parent,l=e&&(null==(o=n.parent)?void 0:o.valueDeclaration)===t;return!(i||a||s||l)}}return!0}if(IT(e)){const n=cg(e.expression);if(80===n.kind){const e=ua(n).resolvedSymbol;if(2097152&e.flags){const n=xa(e);return!!n&&275===n.kind}}}return!1}function eF(e,n,t){const r=MP(e,39);return 80===r.kind||IT(r)?!(64&r.flags)||(Bi(e,t),!1):(Bi(e,n),!1)}function nF(e){HF(e.expression);const n=cg(e.expression);if(!IT(n))return Bi(n,fa.The_operand_of_a_delete_operator_must_be_a_property_reference),st;_C(n)&&uD(n.name)&&Bi(n,fa.The_operand_of_a_delete_operator_cannot_be_a_private_identifier);const t=Ls(ua(n).resolvedSymbol);return t&&(QO(t)?Bi(n,fa.The_operand_of_a_delete_operator_cannot_be_a_read_only_property):function(e,n){const t=Vd(n);!X||131075&t.flags||(de?16777216&n.flags:cD(t,16777216))||Bi(e,fa.The_operand_of_a_delete_operator_must_be_optional)}(n,t)),st}function tF(e){let n=!1;const t=nh(e);if(t&&kD(t)){Bi(e,DC(e)?fa.await_expression_cannot_be_used_inside_a_class_static_block:fa.await_using_statements_cannot_be_used_inside_a_class_static_block),n=!0}else if(!(65536&e.flags))if(ih(e)){const t=Sp(e);if(!VV(t)){let r;if(!Tf(t,O)){r??(r=Zf(t,e.pos));const o=DC(e)?fa.await_expressions_are_only_allowed_at_the_top_level_of_a_file_when_that_file_is_a_module_but_this_file_has_no_imports_or_exports_Consider_adding_an_empty_export_to_make_this_file_a_module:fa.await_using_statements_are_only_allowed_at_the_top_level_of_a_file_when_that_file_is_a_module_but_this_file_has_no_imports_or_exports_Consider_adding_an_empty_export_to_make_this_file_a_module,i=ZT(t,r.start,r.length,o);gi.add(i),n=!0}switch(G){case 100:case 101:case 102:case 199:if(1===t.impliedNodeFormat){r??(r=Zf(t,e.pos)),gi.add(ZT(t,r.start,r.length,fa.The_current_file_is_a_CommonJS_module_and_cannot_use_await_at_the_top_level)),n=!0;break}case 7:case 99:case 200:case 4:if(W>=4)break;default:r??(r=Zf(t,e.pos));const o=DC(e)?fa.Top_level_await_expressions_are_only_allowed_when_the_module_option_is_set_to_es2022_esnext_system_node16_node18_node20_nodenext_or_preserve_and_the_target_option_is_set_to_es2017_or_higher:fa.Top_level_await_using_statements_are_only_allowed_when_the_module_option_is_set_to_es2022_esnext_system_node16_node18_node20_nodenext_or_preserve_and_the_target_option_is_set_to_es2017_or_higher;gi.add(ZT(t,r.start,r.length,o)),n=!0}}}else{const r=Sp(e);if(!VV(r)){const o=Zf(r,e.pos),i=DC(e)?fa.await_expressions_are_only_allowed_within_async_functions_and_at_the_top_levels_of_modules:fa.await_using_statements_are_only_allowed_within_async_functions_and_at_the_top_levels_of_modules,a=ZT(r,o.start,o.length,i);if(t&&177!==t.kind&&!(2&Fg(t))){dA(a,Vf(t,fa.Did_you_mean_to_mark_this_function_as_async))}gi.add(a),n=!0}}return DC(e)&&_P(e)&&(Bi(e,fa.await_expressions_cannot_be_used_in_a_parameter_initializer),n=!0),n}function rF(e){return iF(e,2112)?aF(e,3)||iF(e,296)?yt:qn:Kn}function oF(e,n){if(iF(e,n))return!0;const t=Sm(e);return!!t&&iF(t,n)}function iF(e,n){if(e.flags&n)return!0;if(3145728&e.flags){const t=e.types;for(const e of t)if(iF(e,n))return!0}return!1}function aF(e,n,t){return!!(e.flags&n)||!(t&&114691&e.flags)&&(!!(296&n)&&BE(e,Kn)||!!(2112&n)&&BE(e,qn)||!!(402653316&n)&&BE(e,Hn)||!!(528&n)&&BE(e,st)||!!(16384&n)&&BE(e,ct)||!!(131072&n)&&BE(e,ut)||!!(65536&n)&&BE(e,jn)||!!(32768&n)&&BE(e,Fn)||!!(4096&n)&&BE(e,lt)||!!(67108864&n)&&BE(e,ht))}function sF(e,n,t){return 1048576&e.flags?g(e.types,e=>sF(e,n,t)):aF(e,n,t)}function lF(e){return!!(16&bT(e))&&!!e.symbol&&cF(e.symbol)}function cF(e){return!!(128&e.flags)}function dF(e){const n=zz("hasInstance");if(sF(e,67108864)){const t=wh(e,n);if(t){const e=Vd(t);if(e&&0!==Vh(e,0).length)return e}}}function uF(e,n,t,r){if(t===pt||r===pt)return pt;if(uD(e)){if((W<Do.PrivateNamesAndClassStaticBlocks||W<Do.ClassAndClassElementDecorators||!j)&&gV(e,2097152),!ua(e).resolvedSymbol&&Zm(e)){Rk(e,r,Sk(e,r.symbol,!0))}}else UE(sk(t,e),gt,e);return UE(sk(r,n),ht,n)&&NC(r,e=>e===Pt||!!(2097152&e.flags)&&hA(Sm(e)))&&Bi(n,fa.Type_0_may_represent_a_primitive_value_which_is_not_permitted_as_the_right_operand_of_the_in_operator,El(r)),st}function pF(e,n,t,r,o=!1){const i=e.properties,a=i[t];if(304===a.kind||305===a.kind){const e=a.name,t=rT(e);if(ux(t)){const e=wh(n,px(t));e&&(wk(e,a,o),YL(a,!1,!0,n,e))}const r=gc(a,jT(n,t,32|(sL(a)?16:0),e));return mF(305===a.kind?a:a.initializer,r)}if(306===a.kind){if(!(t<i.length-1)){W<Do.ObjectSpreadRest&&gV(a,4);const e=[];if(r)for(const n of r)cM(n)||e.push(n.name);const t=cc(n,e,n.symbol);return TV(r,fa.A_rest_parameter_or_binding_pattern_may_not_have_a_trailing_comma),mF(a.expression,t)}Bi(a,fa.A_rest_element_must_be_last_in_a_destructuring_pattern)}else Bi(a,fa.Property_assignment_expected)}function fF(e,n,t,r,o){const i=e.elements,a=i[t];if(233!==a.kind){if(231!==a.kind){const e=kS(t);if($x(n)){const t=HT(n,e,32|(sL(a)?16:0),fw(a,e))||Mn;return mF(a,gc(a,sL(a)?fD(t,524288):t),o)}return mF(a,r,o)}if(t<i.length-1)Bi(a,fa.A_rest_element_must_be_last_in_a_destructuring_pattern);else{const i=a.expression;if(227!==i.kind||64!==i.operatorToken.kind){TV(e.elements,fa.A_rest_parameter_or_binding_pattern_may_not_have_a_trailing_comma);return mF(i,LC(n,mR)?jC(n,e=>Ib(e,t)):Jv(r),o)}Bi(i.operatorToken,fa.A_rest_element_cannot_have_an_initializer)}}}function mF(e,n,t,r){let o;if(305===e.kind){const r=e;r.objectAssignmentInitializer&&(X&&!cD(HF(r.objectAssignmentInitializer),16777216)&&(n=fD(n,524288)),function(e,n,t,r,o){const i=n.kind;if(64===i&&(211===e.kind||210===e.kind))return mF(e,HF(t,r),r,110===t.kind);let a;a=Qv(i)?Ez(e,r):HF(e,r);const s=HF(t,r);yF(e,n,t,a,s,r,o)}(r.name,r.equalsToken,r.objectAssignmentInitializer,t)),o=e.name}else o=e;return 227===o.kind&&64===o.operatorToken.kind&&(ve(o,t),o=o.left,X&&(n=fD(n,524288))),211===o.kind?function(e,n,t){const r=e.properties;if(X&&0===r.length)return sk(n,e);for(let o=0;o<r.length;o++)pF(e,n,o,r,t);return n}(o,n,r):210===o.kind?function(e,n,t){const r=e.elements;W<Do.DestructuringAssignment&&O.downlevelIteration&&gV(e,512);const o=Rz(193,n,Fn,e)||Mn;let i=O.noUncheckedIndexedAccess?void 0:o;for(let a=0;a<r.length;a++){let r=o;231===e.elements[a].kind&&(r=i=i??(Rz(65,n,Fn,e)||Mn)),fF(e,n,a,r,t)}return n}(o,n,t):function(e,n,t){const r=HF(e,t),o=306===e.parent.kind?fa.The_target_of_an_object_rest_assignment_must_be_a_variable_or_a_property_access:fa.The_left_hand_side_of_an_assignment_expression_must_be_a_variable_or_a_property_access,i=306===e.parent.kind?fa.The_target_of_an_object_rest_assignment_may_not_be_an_optional_property_access:fa.The_left_hand_side_of_an_assignment_expression_may_not_be_an_optional_property_access;eF(e,o,i)&&HE(n,r,e,e);Qc(e)&&gV(e.parent,1048576);return n}(o,n,t)}function hF(e){switch((e=cg(e)).kind){case 80:case 11:case 14:case 216:case 229:case 15:case 9:case 10:case 112:case 97:case 106:case 157:case 219:case 232:case 220:case 210:case 211:case 222:case 236:case 286:case 285:return!0;case 228:return hF(e.whenTrue)&&hF(e.whenFalse);case 227:return!ob(e.operatorToken.kind)&&(hF(e.left)&&hF(e.right));case 225:case 226:switch(e.operator){case 54:case 40:case 41:case 55:return!0}return!1;default:return!1}}function _F(e,n){return!!(98304&n.flags)||VE(e,n)}function gF(e){switch((e=MP(e)).kind){case 224:case 214:case 216:case 213:case 237:case 215:case 212:case 230:case 110:return 3;case 227:switch(e.operatorToken.kind){case 64:case 61:case 78:case 57:case 76:case 56:case 77:return 3;case 28:return gF(e.right)}return 2;case 228:return gF(e.whenTrue)|gF(e.whenFalse);case 106:return 1;case 80:return GI(e)===De?1:3}return 2}function yF(e,n,t,r,o,i,s){const l=n.kind;switch(l){case 42:case 43:case 67:case 68:case 44:case 69:case 45:case 70:case 41:case 66:case 48:case 71:case 49:case 72:case 50:case 73:case 52:case 75:case 53:case 79:case 51:case 74:if(r===pt||o===pt)return pt;let a;if(r=sk(r,e),o=sk(o,t),528&r.flags&&528&o.flags&&void 0!==(a=function(e){switch(e){case 52:case 75:return 57;case 53:case 79:return 38;case 51:case 74:return 56;default:return}}(n.kind)))return Bi(s||n,fa.The_0_operator_is_not_allowed_for_boolean_types_Consider_using_1_instead,Pa(n.kind),Pa(a)),Kn;{const i=YO(e,r,fa.The_left_hand_side_of_an_arithmetic_operation_must_be_of_type_any_number_bigint_or_an_enum_type,!0),a=YO(t,o,fa.The_right_hand_side_of_an_arithmetic_operation_must_be_of_type_any_number_bigint_or_an_enum_type,!0);let c;if(aF(r,3)&&aF(o,3)||!iF(r,2112)&&!iF(o,2112))c=Kn;else if(u(r,o)){switch(l){case 50:case 73:h();break;case 43:case 68:W<3&&Bi(s,fa.Exponentiation_cannot_be_performed_on_bigint_values_unless_the_target_option_is_set_to_es2016_or_later)}c=qn}else h(u),c=Mn;if(i&&a)switch(f(c),l){case 48:case 71:case 49:case 72:case 50:case 73:const r=Re(t);"number"==typeof r.value&&Math.abs(r.value)>=32&&Ui(dM(ag(t.parent.parent)),s||n,fa.This_operation_can_be_simplified_This_shift_is_identical_to_0_1_2,Zp(e),Pa(l),r.value%32)}return c}case 40:case 65:if(r===pt||o===pt)return pt;let g;if(aF(r,402653316)||aF(o,402653316)||(r=sk(r,e),o=sk(o,t)),aF(r,296,!0)&&aF(o,296,!0)?g=Kn:aF(r,2112,!0)&&aF(o,2112,!0)?g=qn:aF(r,402653316,!0)||aF(o,402653316,!0)?g=Hn:(rc(r)||rc(o))&&(g=ac(r)||ac(o)?Mn:In),g&&!p(l))return g;if(!g){const e=402655727;return h((n,t)=>aF(n,e)&&aF(t,e)),In}return 65===l&&f(g),g;case 30:case 32:case 33:case 34:return p(l)&&(r=cR(sk(r,e)),o=cR(sk(o,t)),m((e,n)=>{if(rc(e)||rc(n))return!0;const t=BE(e,yt),r=BE(n,yt);return t&&r||!t&&!r&&jE(e,n)})),st;case 35:case 36:case 37:case 38:if(!(i&&64&i)){if((Fc(e)||Fc(t))&&(!Lh(e)||37===l||38===l)){const e=35===l||37===l;Bi(s,fa.This_condition_will_always_return_0_since_JavaScript_compares_objects_by_reference_not_value,e?"false":"true")}!function(e,n,t,r){const o=_(cg(t)),i=_(cg(r));if(o||i){const a=Bi(e,fa.This_condition_will_always_return_0,Pa(37===n||35===n?97:112));if(o&&i)return;const s=38===n||36===n?Pa(54):"",l=o?r:t,c=cg(l);dA(a,Vf(l,fa.Did_you_mean_0,`${s}Number.isNaN(${db(c)?Gf(c):"..."})`))}}(s,l,e,t),m((e,n)=>_F(e,n)||_F(n,e))}return st;case 104:return function(e,n,t,r,o){if(t===pt||r===pt)return pt;!rc(t)&&sF(t,402784252)&&Bi(e,fa.The_left_hand_side_of_an_instanceof_expression_must_be_of_type_any_an_object_type_or_a_type_parameter),dt.assert(vb(e.parent));const i=Ow(e.parent,void 0,o);return i===co?pt:(UE(Ag(i),st,n,fa.An_object_s_Symbol_hasInstance_method_must_return_a_boolean_value_for_it_to_be_used_on_the_right_hand_side_of_an_instanceof_expression),st)}(e,t,r,o,i);case 103:return uF(e,t,r,o);case 56:case 77:{const e=cD(r,4194304)?Gb([(d=X?r:lR(o),jC(d,AR)),o]):r;return 77===l&&f(o),e}case 57:case 76:{const e=cD(r,8388608)?Gb([DR(ER(r)),o],2):r;return 76===l&&f(o),e}case 61:case 78:{const e=cD(r,262144)?Gb([DR(r),o],2):r;return 78===l&&f(o),e}case 64:const y=MC(e.parent)?o_(e.parent):0;return function(e,n){if(2===e)for(const t of $f(n)){const e=Vd(t);if(e.symbol&&32&e.symbol.flags){const e=t.escapedName,n=je(t.valueDeclaration,e,788968,void 0,!1);(null==n?void 0:n.declarations)&&n.declarations.some(JM)&&(oa(n,fa.Duplicate_identifier_0,yl(e),t),oa(t,fa.Duplicate_identifier_0,yl(e),n))}}}(y,o),function(n){var r;switch(n){case 2:return!0;case 1:case 5:case 6:case 3:case 4:const n=As(e),o=Xh(t);return!!o&&hC(o)&&!!(null==(r=null==n?void 0:n.exports)?void 0:r.size);default:return!1}}(y)?(524288&o.flags&&(2===y||6===y||cA(o)||sD(o)||1&bT(o))||f(o),r):(f(o),o);case 28:if(!O.allowUnreachableCode&&hF(e)&&!(218===(c=e.parent).parent.kind&&HI(c.left)&&"0"===c.left.text&&(yC(c.parent.parent)&&c.parent.parent.expression===c.parent||216===c.parent.parent.kind)&&(IT(c.right)||dD(c.right)&&"eval"===c.right.escapedText))){const n=Sp(e),t=es(n.text,e.pos);n.parseDiagnostics.some(e=>e.code===fa.JSX_expressions_must_have_one_parent_element.code&&ks(e,t))||Bi(e,fa.Left_side_of_comma_operator_is_unused_and_has_no_side_effects)}return o;default:return dt.fail()}var c,d;function u(e,n){return aF(e,2112)&&aF(n,2112)}function p(n){const i=oF(r,12288)?e:oF(o,12288)?t:void 0;return!i||(Bi(i,fa.The_0_operator_cannot_be_applied_to_type_symbol,Pa(n)),!1)}function f(o){ob(l)&&a(function(){let i=r;fG(n.kind)&&212===e.kind&&(i=uk(e,void 0,!0));if(eF(e,fa.The_left_hand_side_of_an_assignment_expression_must_be_a_variable_or_a_property_access,fa.The_left_hand_side_of_an_assignment_expression_may_not_be_an_optional_property_access)){let n;if(de&&_C(e)&&iF(o,32768)){const t=nc(VF(e.expression),e.name.escapedText);qA(o,t)&&(n=fa.Type_0_is_not_assignable_to_type_1_with_exactOptionalPropertyTypes_Colon_true_Consider_adding_undefined_to_the_type_of_the_target)}HE(o,i,e,t,n)}})}function m(e){return!e(r,o)&&(h(e),!0)}function h(e){let t=!1;const i=s||n;if(e){const n=RW(r),i=RW(o);t=!(n===r&&i===o)&&!(!n||!i)&&e(n,i)}let a=r,l=o;!t&&e&&([a,l]=function(e,n,t){let r=e,o=n;const i=lR(e),a=lR(n);t(i,a)||(r=i,o=a);return[r,o]}(r,o,e));const[c,d]=xl(a,l);(function(e,t,r,o){switch(n.kind){case 37:case 35:case 38:case 36:return Hi(e,t,fa.This_comparison_appears_to_be_unintentional_because_the_types_0_and_1_have_no_overlap,r,o);default:return}})(i,t,c,d)||Hi(i,t,fa.Operator_0_cannot_be_applied_to_types_1_and_2,Pa(n.kind),c,d)}function _(e){if(dD(e)&&"NaN"===e.escapedText){const n=Hr||(Hr=Yy("NaN",!1));return!!n&&n===GI(e)}return!1}}function vF(e){const n=e.parent;return SC(n)&&vF(n)||gC(n)&&n.argumentExpression===e}function bF(e){const n=[e.head.text],t=[];for(const o of e.templateSpans){const e=HF(o.expression);oF(e,12288)&&Bi(o.expression,fa.Implicit_conversion_of_a_symbol_to_a_string_will_fail_at_runtime_Consider_wrapping_this_expression_in_String),n.push(o.literal.text),t.push(BE(e,vt)?e:Hn)}const r=216!==e.parent.kind&&Re(e).value;return r?TS(NS(r)):NF(e)||vF(e)||NC(KP(e,void 0)||On,TF)?hT(n,t):Hn}function TF(e){return!!(134217856&e.flags||58982400&e.flags&&iF(Tm(e)||On,402653316))}function SF(e,n,t,r){const o=function(e){return ZN(e)&&!KN(e.parent)?e.parent.parent:e}(e);JP(o,n,!1),function(e,n){wo[Fo]=e,Oo[Fo]=n,Fo++}(o,t);const i=HF(e,1|r|(t?2:0));t&&t.intraExpressionInferenceSites&&(t.intraExpressionInferenceSites=void 0);const a=iF(i,2944)&&CF(i,UP(n,e,void 0))?xS(i):i;return Fo--,wo[Fo]=void 0,Oo[Fo]=void 0,XP(),a}function EF(e,n){if(n)return HF(e,n);const t=ua(e);if(!t.resolvedType){const r=Ao,o=ro;Ao=xo,ro=void 0,t.resolvedType=HF(e,n),ro=o,Ao=r}return t.resolvedType}function AF(e){return 217===(e=cg(e,!0)).kind||235===e.kind||DP(e)}function xF(e,n,t){const r=qh(e);if(Lh(e)){const t=ox(e);if(t)return nO(r,t,n)}const o=jF(r)||(t?SF(r,t,void 0,n||0):EF(r,n));if(DD(fC(e)?il(e):e)){if(207===e.name.kind&&LI(o))return function(e,n){let t;for(const i of n.elements)if(i.initializer){const n=RF(i);n&&!wh(e,n)&&(t=re(t,i))}if(!t)return e;const r=Qu();for(const i of $f(e))r.set(i.escapedName,i);for(const i of t){const e=Yi(16777220,RF(i));e.links.type=Zc(i,!1,!1),r.set(e.escapedName,e)}const o=qs(e.symbol,r,s,s,l_(e));return o.objectFlags=e.objectFlags,o}(o,e.name);if(208===e.name.kind&&mR(o))return function(e,n){if(12&e.target.combinedFlags||Ty(e)>=n.elements.length)return e;const t=n.elements,r=Mb(e).slice(),o=e.target.elementFlags.slice();for(let i=Ty(e);i<t.length;i++){const e=t[i];(i<t.length-1||209!==e.kind||!e.dotDotDotToken)&&(r.push(!FC(e)&&sL(e)?Zc(e,!1,!1):In),o.push(2),FC(e)||sL(e)||$R(e,In))}return Sb(r,o,e.target.readonly)}(o,e.name)}return o}function RF(e){const n=rT(e.propertyName||e.name);return ux(n)?px(n):void 0}function IF(e,n){const t=DF(e,n);if(Lh(e)){if(eR(t))return $R(e,In),In;if(nR(t))return $R(e,lr),lr}return t}function DF(e,n){return 6&ej(e)||am(e)?n:dR(n)}function CF(e,n){if(n){if(3145728&n.flags){return U(n.types,n=>CF(e,n))}if(58982400&n.flags){const t=Tm(n)||On;return iF(t,4)&&iF(e,128)||iF(t,8)&&iF(e,256)||iF(t,64)&&iF(e,2048)||iF(t,4096)&&iF(e,8192)||CF(e,t)}return!!(406847616&n.flags&&iF(e,128)||256&n.flags&&iF(e,256)||2048&n.flags&&iF(e,2048)||512&n.flags&&iF(e,512)||8192&n.flags&&iF(e,8192))}return!1}function NF(e){const n=e.parent;return Jd(n)&&xc(n.type)||DP(n)&&xc(CP(n))||Xw(e)&&mm(KP(e,0))||(SC(n)||mC(n)||wC(n))&&NF(n)||(sM(n)||lM(n)||KC(n))&&NF(n.parent)}function MF(e,n,t){const r=HF(e,n,t);return NF(e)||Fm(e)?xS(r):AF(e)?r:pR(r,UP(KP(e,void 0),e,void 0))}function PF(e,n){return 168===e.name.kind&&uL(e.name),MF(e.initializer,n)}function LF(e,n){wV(e),168===e.name.kind&&uL(e.name);return kF(e,XO(e,n),n)}function kF(e,n,t){if(t&&10&t){const r=tw(n,0,!0),o=tw(n,1,!0),i=r||o;if(i&&i.typeParameters){const n=jP(e,2);if(n){const o=tw(DR(n),r?0:1,!1);if(o&&!o.typeParameters){if(8&t)return OF(e,t),wt;const n=ZP(e),r=n.signature&&Ag(n.signature),a=r&&nw(r);if(a&&!a.typeParameters&&!g(n.inferences,FF)){const e=function(e,n){const t=[];let r,o;for(const i of n){const n=i.symbol.escapedName;if(zF(e.inferredTypeParameters,n)||zF(t,n)){const a=Vs(Yi(262144,BF(K(e.inferredTypeParameters,t),n)));a.target=i,r=re(r,i),o=re(o,a),t.push(a)}else t.push(i)}if(o){const e=tE(r,o);for(const n of o)n.mapper=e}return t}(n,i.typeParameters),t=Mg(i,e),r=D(n.inferences,e=>cI(e.typeParameter));if(ZR(t,o,(e,n)=>{NI(r,e,n,0,!0)}),U(r,FF)&&(eI(t,o,(e,n)=>{NI(r,e,n)}),!function(e,n){for(let t=0;t<e.length;t++)if(FF(e[t])&&FF(n[t]))return!0;return!1}(n.inferences,r)))return function(e,n){for(let t=0;t<e.length;t++)!FF(e[t])&&FF(n[t])&&(e[t]=n[t])}(n.inferences,r),n.inferredTypeParameters=K(n.inferredTypeParameters,e),Bg(t)}return Bg(rw(i,o,n))}}}}return n}function OF(e,n){if(2&n){ZP(e).flags|=4}}function FF(e){return!(!e.candidates&&!e.contraCandidates)}function WF(e){return!!(e.candidates||e.contraCandidates||Im(e.typeParameter))}function zF(e,n){return U(e,e=>e.symbol.escapedName===n)}function BF(e,n){let t=n.length;for(;t>1&&n.charCodeAt(t-1)>=48&&n.charCodeAt(t-1)<=57;)t--;const r=n.slice(0,t);for(let o=1;;o++){const n=r+o;if(!zF(e,n))return n}}function GF(e){const n=ew(e);if(n&&!n.typeParameters)return Ag(n)}function VF(e){const n=jF(e);if(n)return n;if(268435456&e.flags&&ro){const n=ro[cB(e)];if(n)return n}const t=Co,r=HF(e,64);if(Co!==t){(ro||(ro=[]))[cB(e)]=r,MA(e,268435456|e.flags)}return r}function jF(e){let n=cg(e,!0);if(DP(n)){const e=CP(n);if(!xc(e))return qS(e)}if(n=cg(e),DC(n)){const e=jF(n.expression);return e?xW(e):void 0}return!yC(n)||108===n.expression.kind||Wh(n,!0)||Vw(n)||fm(n)?Jd(n)&&!xc(n.type)?qS(n.type):Oc(e)||cd(e)?HF(e):void 0:vc(n)?function(e){const n=HF(e.expression),t=PR(n,e.expression),r=GF(n);return r&&MR(r,e,t!==n)}(n):GF(ZL(n.expression))}function UF(e){const n=ua(e);if(n.contextFreeType)return n.contextFreeType;JP(e,In,!1);const t=n.contextFreeType=HF(e,4);return XP(),t}function HF(t,o,i){var l,c;null==(l=Kt)||l.push(Kt.Phase.Check,"checkExpression",{kind:t.kind,pos:t.pos,end:t.end,path:t.tracingPath});const d=r;r=t,E=0;const u=function(e,t,r){const o=e.kind;if(n)switch(o){case 232:case 219:case 220:n.throwIfCancellationRequested()}switch(o){case 80:return XM(e,t);case 81:return hk(e);case 110:return iP(e);case 108:return sP(e);case 106:return Un;case 15:case 11:return TI(e)?Nn:TS(NS(e.text));case 9:return XV(e),TS(kS(+e.text));case 10:return function(e){const n=sC(e.parent)||CC(e.parent)&&sC(e.parent.parent);if(!n&&!(33554432&e.flags)&&W<7&&HV(e,fa.BigInt_literals_are_not_available_when_targeting_lower_than_ES2020))return!0}(e),TS(wS({negative:!1,base10Value:vA(e.text)}));case 112:return tt;case 97:return $n;case 229:return bF(e);case 14:return aL(e);case 210:return lL(e,t,r);case 211:return yL(e,t);case 212:return uk(e,t);case 167:return pk(e,t);case 213:return Vk(e,t);case 214:if(fm(e))return jw(e);case 215:return function(e,n){var t,r,o;xV(e,e.typeArguments);const i=Ow(e,void 0,n);if(i===co)return pt;if(Bw(i,e),108===e.expression.kind)return ct;if(215===e.kind){const n=i.declaration;if(n&&177!==n.kind&&181!==n.kind&&186!==n.kind&&(!CM(n)||177!==(null==(r=null==(t=J_(n))?void 0:t.parent)?void 0:r.kind))&&!N_(n)&&!Fw(n))return oe&&Bi(e,fa.new_expression_whose_target_lacks_a_construct_signature_implicitly_has_an_any_type),In}if(Lh(e)&&qw(e))return tg(e.arguments[0]);const a=Ag(i);if(12288&a.flags&&Vw(e))return BS(ag(e.parent));if(214===e.kind&&!e.questionDotToken&&245===e.parent.kind&&16384&a.flags&&fg(i))if(pb(e.expression)){if(!pN(e)){const n=Bi(e.expression,fa.Assertions_require_every_name_in_the_call_target_to_be_declared_with_an_explicit_type_annotation);uN(e.expression,n)}}else Bi(e.expression,fa.Assertions_require_the_call_target_to_be_an_identifier_or_qualified_name);if(Lh(e)){const n=zw(e,!1);if(null==(o=null==n?void 0:n.exports)?void 0:o.size){const e=qs(n,n.exports,s,s,s);return e.objectFlags|=4096,Xb([a,e])}}return a}(e,t);case 216:return Jw(e);case 218:return function(e,n){if(Mu(e)){if(tx(e))return nO(e.expression,rx(e),n);if(DP(e))return Yw(e,n)}return HF(e.expression,n)}(e,t);case 232:return function(e){return PB(e),cG(e),function(e){if(e.name)return;const n=PP(e);if(!$g(n))return;let t;t=!V&&W<Do.ClassAndClassElementDecorators&&vh(!1,e)?fe(Nl(e))??e:MB(e);t&&(gV(t,4194304),(sM(n)||MD(n)||fC(n))&&RD(n.name)&&gV(t,8388608))}(e),Vd(Es(e))}(e);case 219:case 220:return XO(e,t);case 222:return function(e){return HF(e.expression),vi}(e);case 217:case 235:return function(e,n){if(217===e.kind){const n=Sp(e);if(n&&Ri(n.fileName,[".cts",".mts"])&&HV(e,fa.This_syntax_is_reserved_in_files_with_the_mts_or_cts_extension_Use_an_as_expression_instead),O.erasableSyntaxOnly){const t=es(n.text,e.pos),r=e.expression.pos;gi.add(ZT(n,t,r-t,fa.This_syntax_is_not_allowed_when_erasableSyntaxOnly_is_enabled))}}return Yw(e,n)}(e,t);case 236:return Qw(e);case 234:return Zw(e);case 239:return function(e){return aG(e.type),nO(e.expression,e.type)}(e);case 237:return tO(e);case 221:return nF(e);case 223:return function(e){return cG(e),Wn}(e);case 224:return function(e){a(()=>tF(e));const n=HF(e.expression),t=vW(n,!0,e,fa.Type_of_await_operand_must_either_be_a_valid_promise_or_must_not_contain_a_callable_then_member);return t!==n||ac(t)||3&n.flags||ji(!1,Vf(e,fa.await_has_no_effect_on_the_type_of_this_expression)),t}(e);case 225:return function(e){const n=HF(e.operand);if(n===pt)return pt;switch(e.operand.kind){case 9:switch(e.operator){case 41:return TS(kS(-e.operand.text));case 40:return TS(kS(+e.operand.text))}break;case 10:if(41===e.operator)return TS(wS({negative:!0,base10Value:vA(e.operand.text)}))}switch(e.operator){case 40:case 41:case 55:return sk(n,e.operand),oF(n,12288)&&Bi(e.operand,fa.The_0_operator_cannot_be_applied_to_type_symbol,Pa(e.operator)),40===e.operator?(oF(n,2112)&&Bi(e.operand,fa.Operator_0_cannot_be_applied_to_type_1,Pa(e.operator),El(lR(n))),Kn):rF(n);case 54:bz(n,e.operand);const t=lD(n,12582912);return 4194304===t?$n:8388608===t?tt:st;case 46:case 47:return YO(e.operand,sk(n,e.operand),fa.An_arithmetic_operand_must_be_of_type_any_number_bigint_or_an_enum_type)&&eF(e.operand,fa.The_operand_of_an_increment_or_decrement_operator_must_be_a_variable_or_a_property_access,fa.The_operand_of_an_increment_or_decrement_operator_may_not_be_an_optional_property_access),rF(n)}return Mn}(e);case 226:return function(e){const n=HF(e.operand);return n===pt?pt:(YO(e.operand,sk(n,e.operand),fa.An_arithmetic_operand_must_be_of_type_any_number_bigint_or_an_enum_type)&&eF(e.operand,fa.The_operand_of_an_increment_or_decrement_operator_must_be_a_variable_or_a_property_access,fa.The_operand_of_an_increment_or_decrement_operator_may_not_be_an_optional_property_access),rF(n))}(e);case 227:return ve(e,t);case 228:return function(e,n){const t=Ez(e.condition,n);return vz(e.condition,t,e.whenTrue),Gb([HF(e.whenTrue,n),HF(e.whenFalse,n)],2)}(e,t);case 231:return function(e,n){return W<Do.SpreadElements&&gV(e,O.downlevelIteration?1536:1024),Rz(33,HF(e.expression,n),Fn,e.expression)}(e,t);case 233:return Wn;case 230:return function(e){a(function(){16384&e.flags||jV(e,fa.A_yield_expression_is_only_allowed_in_a_generator_body),_P(e)&&Bi(e,fa.yield_expressions_cannot_be_used_in_a_parameter_initializer)});const n=$m(e);if(!n)return In;const t=Fg(n);if(!(1&t))return In;const r=!!(2&t);e.asteriskToken&&(r&&W<Do.AsyncGenerators&&gV(e,26624),!r&&W<Do.Generators&&O.downlevelIteration&&gV(e,256));let o=Rg(n);o&&1048576&o.flags&&(o=kC(o,e=>YF(e,t,void 0)));const i=o&&nB(o,r),s=i&&i.yieldType||In,l=i&&i.nextType||In,c=e.expression?HF(e.expression):Wn,d=jO(e,c,l,r);if(o&&d&&HE(d,s,e.expression||e,e.expression),e.asteriskToken)return Cz(r?19:17,1,c,e.expression)||In;if(o)return Qz(2,o,r)||In;let u=gP(2,n);return u||(u=In,a(()=>{if(oe&&!OA(e)){const n=KP(e,void 0);n&&!rc(n)||Bi(e,fa.yield_expression_implicitly_results_in_an_any_type_because_its_containing_generator_lacks_a_return_type_annotation)}})),u}(e);case 238:return function(e){return e.isSpread?jT(e.type,Kn):e.type}(e);case 295:return qL(e,t);case 285:case 286:return function(e){return cG(e),BL(e)||In}(e);case 289:return function(e){UL(e.openingFragment);const n=Sp(e);!$S(O)||!O.jsxFactory&&!n.pragmas.has("jsx")||O.jsxFragmentFactory||n.pragmas.has("jsxfrag")||Bi(e,O.jsxFactory?fa.The_jsxFragmentFactory_compiler_option_must_be_provided_to_use_JSX_fragments_with_the_jsxFactory_compiler_option:fa.An_jsxFrag_pragma_is_required_when_using_an_jsx_pragma_with_JSX_fragments),AL(e);const t=BL(e);return ac(t)?In:t}(e);case 293:return function(e,n){return EL(e.parent,n)}(e,t);case 287:dt.fail("Shouldn't ever directly check a JsxOpeningElement")}return Mn}(t,o,i),p=kF(t,u,o);return lF(p)&&function(n,t){var r;const o=212===n.parent.kind&&n.parent.expression===n||213===n.parent.kind&&n.parent.expression===n||(80===n.kind||167===n.kind)&&EG(n)||187===n.parent.kind&&n.parent.exprName===n||282===n.parent.kind;o||Bi(n,fa.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);if(O.isolatedModules||O.verbatimModuleSyntax&&o&&!je(n,ub(n),2097152,void 0,!1,!0)){dt.assert(!!(128&t.symbol.flags));const o=t.symbol.valueDeclaration,i=null==(r=e.getRedirectFromOutput(Sp(o).resolvedPath))?void 0:r.resolvedRef;!(33554432&o.flags)||AA(n)||i&&LS(i.commandLine.options)||Bi(n,fa.Cannot_access_ambient_const_enums_when_0_is_enabled,Fe)}}(t,p),r=d,null==(c=Kt)||c.pop(),p}function KF(e){vV(e),e.expression&&jV(e.expression,fa.Type_expected),aG(e.constraint),aG(e.default);const n=Fu(Es(e));Tm(n),function(e){return xm(e)!==Ft}(n)||Bi(e.default,fa.Type_parameter_0_has_a_circular_default,El(n));const t=um(n),r=Rm(n);t&&r&&UE(r,Lp(xE(t,oE(n,r)),r),e.default,fa.Type_0_does_not_satisfy_the_constraint_1),cG(e),a(()=>RB(e.name,fa.Type_parameter_name_cannot_be_0))}function qF(e){vV(e),pz(e);const n=$m(e);Mv(e,31)&&(O.erasableSyntaxOnly&&Bi(e,fa.This_syntax_is_not_allowed_when_erasableSyntaxOnly_is_enabled),177===n.kind&&Mp(n.body)||Bi(e,fa.A_parameter_property_is_only_allowed_in_a_constructor_implementation),177===n.kind&&dD(e.name)&&"constructor"===e.name.escapedText&&Bi(e.name,fa.constructor_cannot_be_used_as_a_parameter_property_name)),!e.initializer&&ex(e)&&xd(e.name)&&n.body&&Bi(e,fa.A_binding_pattern_parameter_cannot_be_optional_in_an_implementation_signature),e.name&&dD(e.name)&&("this"===e.name.escapedText||"new"===e.name.escapedText)&&(0!==n.parameters.indexOf(e)&&Bi(e,fa.A_0_parameter_must_be_the_first_parameter,e.name.escapedText),177!==n.kind&&181!==n.kind&&186!==n.kind||Bi(e,fa.A_constructor_cannot_have_a_this_parameter),220===n.kind&&Bi(e,fa.An_arrow_function_cannot_have_a_this_parameter),178!==n.kind&&179!==n.kind||Bi(e,fa.get_and_set_accessors_cannot_declare_this_parameters)),!e.dotDotDotToken||xd(e.name)||BE(Qm(Vd(e.symbol)),dr)||Bi(e,fa.A_rest_parameter_must_be_of_an_array_type)}function JF(e,n,t){for(const r of e.elements){if(FC(r))continue;const e=r.name;if(80===e.kind&&e.escapedText===t)return Bi(n,fa.A_type_predicate_cannot_reference_element_0_in_a_binding_pattern,t),!0;if((208===e.kind||207===e.kind)&&JF(e,n,t))return!0}}function XF(e){182===e.kind?function(e){vV(e)||function(e){const n=e.parameters[0];if(1!==e.parameters.length)return HV(n?n.name:e,fa.An_index_signature_must_have_exactly_one_parameter);if(TV(e.parameters,fa.An_index_signature_cannot_have_a_trailing_comma),n.dotDotDotToken)return HV(n.dotDotDotToken,fa.An_index_signature_cannot_have_a_rest_parameter);if(Dv(n))return HV(n.name,fa.An_index_signature_parameter_cannot_have_an_accessibility_modifier);if(n.questionToken)return HV(n.questionToken,fa.An_index_signature_parameter_cannot_have_a_question_mark);if(n.initializer)return HV(n.name,fa.An_index_signature_parameter_cannot_have_an_initializer);if(!n.type)return HV(n.name,fa.An_index_signature_parameter_must_have_a_type_annotation);const t=qS(n.type);if(NC(t,e=>!!(8576&e.flags))||kT(t))return HV(n.name,fa.An_index_signature_parameter_type_cannot_be_a_literal_type_or_generic_type_Consider_using_a_mapped_object_type_instead);if(!LC(t,ay))return HV(n.name,fa.An_index_signature_parameter_type_must_be_string_number_symbol_or_a_template_literal_type);if(!e.type)return HV(e,fa.An_index_signature_must_have_a_type_annotation)}(e)}(e):185!==e.kind&&263!==e.kind&&186!==e.kind&&180!==e.kind&&177!==e.kind&&181!==e.kind||AV(e);const n=Fg(e);4&n||(!(3&~n)&&W<Do.AsyncGenerators&&gV(e,6144),2==(3&n)&&W<Do.AsyncFunctions&&gV(e,64),3&n&&W<Do.Generators&&gV(e,128)),IB(fc(e)),function(e){const n=x(lc(e),jM);if(!c(n))return;const t=Lh(e),r=new Set,o=new Set;d(e.parameters,({name:e},n)=>{dD(e)&&r.add(e.escapedText),xd(e)&&o.add(n)});const i=$_(e);if(i){const e=n.length-1,i=n[e];t&&i&&dD(i.name)&&i.typeExpression&&i.typeExpression.type&&!r.has(i.name.escapedText)&&!o.has(e)&&!Kx(qS(i.typeExpression.type))&&Bi(i.name,fa.JSDoc_param_tag_has_name_0_but_there_is_no_parameter_with_that_name_It_would_match_arguments_if_it_had_an_array_type,vl(i.name))}else d(n,({name:e,isNameFirst:n},i)=>{o.has(i)||dD(e)&&r.has(e.escapedText)||(xD(e)?t&&Bi(e,fa.Qualified_name_0_is_not_allowed_without_a_leading_param_object_1,Gf(e),Gf(e.left)):n||Ui(t,e,fa.JSDoc_param_tag_has_name_0_but_there_is_no_parameter_with_that_name,vl(e)))})}(e),d(e.parameters,qF),e.type&&aG(e.type),a(function(){!function(e){if(W>=2||!Gu(e)||33554432&e.flags||Np(e.body))return;d(e.parameters,e=>{e.name&&!xd(e.name)&&e.name.escapedText===we.escapedName&&Wi("noEmit",e,fa.Duplicate_identifier_arguments_Compiler_uses_arguments_to_initialize_rest_parameters)})}(e);let n=vv(e),t=n;if(Lh(e)){const r=oc(e);if(r&&r.typeExpression&&VD(r.typeExpression.type)){const e=ew(qS(r.typeExpression));e&&e.declaration&&(n=vv(e.declaration),t=r.typeExpression.type)}}if(oe&&!n)switch(e.kind){case 181:Bi(e,fa.Construct_signature_which_lacks_return_type_annotation_implicitly_has_an_any_return_type);break;case 180:Bi(e,fa.Call_signature_which_lacks_return_type_annotation_implicitly_has_an_any_return_type)}if(n&&t){const r=Fg(e);if(1==(5&r)){const e=qS(n);e===ct?Bi(t,fa.A_generator_cannot_have_a_void_type_annotation):YF(e,r,t)}else 2==(3&r)&&function(e,n,t){const r=qS(n);if(W>=2){if(ac(r))return;const e=_v(!0);if(e!==kt&&!Hd(r,e))return void i(fa.The_return_type_of_an_async_function_or_method_must_be_the_global_Promise_T_type_Did_you_mean_to_write_Promise_0,n,t,El(RW(r)||ct))}else{if(EM(e,5),ac(r))return;const a=fh(n);if(void 0===a)return void i(fa.Type_0_is_not_a_valid_async_function_return_type_in_ES5_because_it_does_not_refer_to_a_Promise_compatible_constructor_value,n,t,El(r));const s=ts(a,111551,!0),l=s?Vd(s):Mn;if(ac(l))return void(80===a.kind&&"Promise"===a.escapedText&&Kd(r)===_v(!1)?Bi(t,fa.An_async_function_or_method_in_ES5_requires_the_Promise_constructor_Make_sure_you_have_a_declaration_for_the_Promise_constructor_or_include_ES2015_in_your_lib_option):i(fa.Type_0_is_not_a_valid_async_function_return_type_in_ES5_because_it_does_not_refer_to_a_Promise_compatible_constructor_value,n,t,Gf(a)));const c=(o=!0,vr||(vr=nv("PromiseConstructorLike",0,o))||It);if(c===It)return void i(fa.Type_0_is_not_a_valid_async_function_return_type_in_ES5_because_it_does_not_refer_to_a_Promise_compatible_constructor_value,n,t,Gf(a));const d=fa.Type_0_is_not_a_valid_async_function_return_type_in_ES5_because_it_does_not_refer_to_a_Promise_compatible_constructor_value;if(!UE(l,c,t,d,()=>n===t?void 0:rS(void 0,fa.The_return_type_of_an_async_function_or_method_must_be_the_global_Promise_T_type)))return;const u=a&&ub(a),p=pa(e.locals,u.escapedText,111551);if(p)return void Bi(p.valueDeclaration,fa.Duplicate_identifier_0_Compiler_uses_declaration_1_to_support_async_functions,vl(u),Gf(a))}var o;function i(e,n,t,r){if(n===t)Bi(t,e,r);else{dA(Bi(t,fa.The_return_type_of_an_async_function_or_method_must_be_the_global_Promise_T_type),Vf(n,e,r))}}vW(r,!1,e,fa.The_return_type_of_an_async_function_must_either_be_a_valid_promise_or_must_not_contain_a_callable_then_member)}(e,n,t)}182!==e.kind&&318!==e.kind&&WW(e)})}function YF(e,n,t){const r=Qz(0,e,!!(2&n))||In;return UE(VO(r,Qz(1,e,!!(2&n))||r,Qz(2,e,!!(2&n))||On,!!(2&n)),e,t)}function $F(e){const n=new Map;for(const t of e.members)if(172===t.kind){let e;const r=t.name;switch(r.kind){case 11:case 9:e=r.text;break;case 80:e=vl(r);break;default:continue}n.get(e)?(Bi(Dl(t.symbol.valueDeclaration),fa.Duplicate_identifier_0,e),Bi(t.name,fa.Duplicate_identifier_0,e)):n.set(e,!0)}}function QF(e){if(265===e.kind){const n=Es(e);if(n.declarations&&n.declarations.length>0&&n.declarations[0]!==e)return}const n=Xg(Es(e));if(null==n?void 0:n.declarations){const e=new Map;for(const t of n.declarations)BD(t)&&1===t.parameters.length&&t.parameters[0].type&&IC(qS(t.parameters[0].type),n=>{const r=e.get(Pb(n));r?r.declarations.push(t):e.set(Pb(n),{type:n,declarations:[t]})});e.forEach(e=>{if(e.declarations.length>1)for(const n of e.declarations)Bi(n,fa.Duplicate_index_signature_for_type_0,El(e.type))})}}function ZF(e){vV(e)||function(e){if(RD(e.name)&&MC(e.name.expression)&&103===e.name.expression.operatorToken.kind)return HV(e.parent.members[0],fa.A_mapped_type_may_not_declare_properties_or_methods);if(md(e.parent)){if(qI(e.name)&&"constructor"===e.name.text)return HV(e.name,fa.Classes_may_not_have_a_field_named_constructor);if(kV(e.name,fa.A_computed_property_name_in_a_class_property_declaration_must_have_a_simple_literal_type_or_a_unique_symbol_type))return!0;if(W<2&&uD(e.name))return HV(e.name,fa.Private_identifiers_are_only_available_when_targeting_ECMAScript_2015_and_higher);if(W<2&&_d(e)&&!(33554432&e.flags))return HV(e.name,fa.Properties_with_the_accessor_modifier_are_only_available_when_targeting_ECMAScript_2015_and_higher);if(_d(e)&&NV(e.questionToken,fa.An_accessor_property_cannot_be_declared_optional))return!0}else if(265===e.parent.kind){if(kV(e.name,fa.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(dt.assertNode(e,ND),e.initializer)return HV(e.initializer,fa.An_interface_property_cannot_have_an_initializer)}else if(KD(e.parent)){if(kV(e.name,fa.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(dt.assertNode(e,ND),e.initializer)return HV(e.initializer,fa.A_type_literal_property_cannot_have_an_initializer)}33554432&e.flags&&FV(e);if(MD(e)&&e.exclamationToken&&(!md(e.parent)||!e.type||e.initializer||33554432&e.flags||Pv(e)||wv(e))){const n=e.initializer?fa.Declarations_with_initializers_cannot_also_have_definite_assignment_assertions:e.type?fa.A_definite_assignment_assertion_is_not_permitted_in_this_context:fa.Declarations_with_definite_assignment_assertions_must_also_have_type_annotations;return HV(e.exclamationToken,n)}}(e)||DV(e.name),pz(e),eW(e),Mv(e,64)&&173===e.kind&&e.initializer&&Bi(e,fa.Property_0_cannot_have_an_initializer_because_it_is_marked_abstract,Of(e.name))}function eW(e){if(uD(e.name)&&(W<Do.PrivateNamesAndClassStaticBlocks||W<Do.ClassAndClassElementDecorators||!j)){for(let n=kf(e);n;n=kf(n))ua(n).flags|=1048576;if(OC(e.parent)){const n=ZM(e.parent);n&&(ua(e.name).flags|=32768,ua(n).flags|=4096)}}}function nW(e){XF(e),function(e){const n=Lh(e)?bv(e):void 0,t=e.typeParameters||n&&fe(n);if(t){const n=t.pos===t.end?t.pos:es(Sp(e).text,t.pos);return UV(e,n,t.end-n,fa.Type_parameters_cannot_appear_on_a_constructor_declaration)}}(e)||function(e){const n=e.type||vv(e);if(n)HV(n,fa.Type_annotation_cannot_appear_on_a_constructor_declaration)}(e),aG(e.body);const n=Es(e),t=Yu(n,e.kind);function r(e){return!!$c(e)||173===e.kind&&!Pv(e)&&!!e.initializer}e===t&&hW(n),Np(e.body)||a(function(){const n=e.parent;if(Sg(n)){nP(e.parent,n);const t=rP(n),o=tP(e.body);if(o){t&&Bi(o,fa.A_constructor_cannot_contain_a_super_call_when_its_class_extends_null);if(!H&&(U(e.parent.members,r)||U(e.parameters,e=>Mv(e,31))))if(function(e,n){const t=ag(e.parent);return $C(t)&&t.parent===n}(o,e.body)){let n;for(const t of e.body.statements){if($C(t)&&pm(MP(t.expression))){n=t;break}if(tW(t))break}void 0===n&&Bi(e,fa.A_super_call_must_be_the_first_statement_in_the_constructor_to_refer_to_super_or_this_when_a_derived_class_contains_initialized_properties_parameter_properties_or_private_identifiers)}else Bi(o,fa.A_super_call_must_be_a_root_level_statement_within_a_constructor_of_a_derived_class_that_contains_initialized_properties_parameter_properties_or_private_identifiers)}else t||Bi(e,fa.Constructors_for_derived_classes_must_contain_a_super_call)}})}function tW(e){return 108===e.kind||110===e.kind||!oh(e)&&!!rk(e,tW)}function rW(e){dD(e.name)&&"constructor"===vl(e.name)&&md(e.parent)&&Bi(e.name,fa.Class_constructor_may_not_be_an_accessor),a(function(){AV(e)||function(e){if(!(33554432&e.flags)&&188!==e.parent.kind&&265!==e.parent.kind){if(W<2&&uD(e.name))return HV(e.name,fa.Private_identifiers_are_only_available_when_targeting_ECMAScript_2015_and_higher);if(void 0===e.body&&!Mv(e,64))return UV(e,e.end-1,1,fa._0_expected,"{")}if(e.body){if(Mv(e,64))return HV(e,fa.An_abstract_accessor_cannot_have_an_implementation);if(188===e.parent.kind||265===e.parent.kind)return HV(e.body,fa.An_implementation_cannot_be_declared_in_ambient_contexts)}if(e.typeParameters)return HV(e.name,fa.An_accessor_cannot_have_type_parameters);if(!function(e){return LV(e)||e.parameters.length===(178===e.kind?0:1)}(e))return HV(e.name,178===e.kind?fa.A_get_accessor_cannot_have_parameters:fa.A_set_accessor_must_have_exactly_one_parameter);if(179===e.kind){if(e.type)return HV(e.name,fa.A_set_accessor_cannot_have_a_return_type_annotation);const n=dt.checkDefined(lv(e),"Return value does not match parameter count assertion.");if(n.dotDotDotToken)return HV(n.dotDotDotToken,fa.A_set_accessor_cannot_have_rest_parameter);if(n.questionToken)return HV(n.questionToken,fa.A_set_accessor_cannot_have_an_optional_parameter);if(n.initializer)return HV(e.name,fa.A_set_accessor_parameter_cannot_have_an_initializer)}return!1}(e)||DV(e.name);wW(e),XF(e),178===e.kind&&!(33554432&e.flags)&&Mp(e.body)&&512&e.flags&&(1024&e.flags||Bi(e.name,fa.A_get_accessor_must_return_a_value));168===e.name.kind&&uL(e.name);if(vp(e)){const n=Es(e),t=Yu(n,178),r=Yu(n,179);if(t&&r&&!(1&YG(t))){ua(t).flags|=1;const e=jv(t),n=jv(r);(64&e)!=(64&n)&&(Bi(t.name,fa.Accessors_must_both_be_abstract_or_non_abstract),Bi(r.name,fa.Accessors_must_both_be_abstract_or_non_abstract)),(4&e&&!(6&n)||2&e&&!(2&n))&&(Bi(t.name,fa.A_get_accessor_must_be_at_least_as_accessible_as_the_setter),Bi(r.name,fa.A_get_accessor_must_be_at_least_as_accessible_as_the_setter))}}const n=Id(Es(e));178===e.kind&&JO(e,n)}),aG(e.body),eW(e)}function oW(e,n,t){return e.typeArguments&&t<e.typeArguments.length?qS(e.typeArguments[t]):iW(e,n)[t]}function iW(e,n){return B_(D(e.typeArguments,qS),n,z_(n),Lh(e))}function aW(e,n){let t,r,o=!0;for(let i=0;i<n.length;i++){const a=um(n[i]);a&&(t||(t=iW(e,n),r=tE(n,t)),o=o&&UE(t[i],xE(a,r),e.typeArguments[i],fa.Type_0_does_not_satisfy_the_constraint_1))}return o}function sW(e){const n=qS(e);if(!ac(n)){const t=ua(e).resolvedSymbol;if(t)return function(e,n){if(!ac(e))return 524288&n.flags&&da(n).typeParameters||(4&bT(e)?e.target.localTypeParameters:void 0)}(n,t)}}function lW(e){if(xV(e,e.typeArguments),184===e.kind&&!Lh(e)&&!Oh(e)&&e.typeArguments&&e.typeName.end!==e.typeArguments.pos){const n=Sp(e);25===em(n,e.typeName.end)&&UV(e,es(n.text,e.typeName.end),1,fa.JSDoc_types_can_only_be_used_inside_documentation_comments)}d(e.typeArguments,aG),cW(e)}function cW(e){if(!ac(qS(e))){e.typeArguments&&a(()=>{const n=sW(e);n&&aW(e,n)});const n=ua(e).resolvedSymbol;n&&U(n.declarations,e=>JA(e)&&!!(536870912&e.flags))&&Xi(Gw(e),n.declarations,n.escapedName)}}function dW(e,n){if(!(8388608&e.flags))return e;const t=e.objectType,r=e.indexType,o=Uf(t)&&2===qf(t)?tT(t,0):fT(t,0),i=!!u_(t,Kn);if(LC(r,e=>BE(e,o)||i&&a_(e,Kn)))return 213===n.kind&&eg(n)&&32&bT(t)&&1&Cf(t)&&Bi(n,fa.Index_signature_in_type_0_only_permits_reading,El(t)),e;if(wT(t)){const e=AT(r,n);if(e){const r=IC(Vm(t),n=>wh(n,e));if(r&&6&lT(r))return Bi(n,fa.Private_or_protected_member_0_cannot_be_accessed_on_a_type_parameter,yl(e)),Mn}}return Bi(n,fa.Type_0_cannot_be_used_to_index_type_1,El(r),El(t)),Mn}function uW(e){!function(e){var n;if(null==(n=e.members)?void 0:n.length)HV(e.members[0],fa.A_mapped_type_may_not_declare_properties_or_methods)}(e),aG(e.typeParameter),aG(e.nameType),aG(e.type),e.type||$R(e,In);const n=qT(e),t=Af(n);if(t)UE(t,gt,e.nameType);else{UE(Ef(n),gt,mc(e.typeParameter))}}function pW(e){!function(e){if(158===e.operator){if(155!==e.type.kind)return HV(e.type,fa._0_expected,Pa(155));let n=ig(e.parent);if(Lh(n)&&fM(n)){const e=q_(n);e&&(n=w_(e)||e)}switch(n.kind){case 261:const t=n;if(80!==t.name.kind)return HV(e,fa.unique_symbol_types_may_not_be_used_on_a_variable_declaration_with_a_binding_name);if(!Om(t))return HV(e,fa.unique_symbol_types_are_only_allowed_on_variables_in_a_variable_statement);if(!(2&t.parent.flags))return HV(n.name,fa.A_variable_whose_type_is_a_unique_symbol_type_must_be_const);break;case 173:if(!Pv(n)||!Wv(n))return HV(n.name,fa.A_property_of_a_class_whose_type_is_a_unique_symbol_type_must_be_both_static_and_readonly);break;case 172:if(!Mv(n,8))return HV(n.name,fa.A_property_of_an_interface_or_type_literal_whose_type_is_a_unique_symbol_type_must_be_readonly);break;default:HV(e,fa.unique_symbol_types_are_not_allowed_here)}}else if(148===e.operator&&189!==e.type.kind&&190!==e.type.kind)jV(e,fa.readonly_type_modifier_is_only_permitted_on_array_and_tuple_literal_types,Pa(155))}(e),aG(e.type)}function fW(e){return(Nv(e,2)||$c(e))&&!!(33554432&e.flags)}function mW(e,n){let t=ZV(e);if(265!==e.parent.kind&&264!==e.parent.kind&&232!==e.parent.kind&&33554432&e.flags){const n=Lf(e);!(n&&128&n.flags)||128&t||TN(e.parent)&&bN(e.parent.parent)&&gf(e.parent.parent)||(t|=32),t|=128}return t&n}function hW(e){a(()=>function(e){function n(e,n){return void 0!==n&&n.parent===e[0].parent?n:e[0]}function t(e,t,r,o,i){if(0!==(o^i)){const o=mW(n(e,t),r);ze(e,e=>Sp(e).fileName).forEach(e=>{const i=mW(n(e,t),r);for(const n of e){const e=mW(n,r)^o,t=mW(n,r)^i;32&t?Bi(Dl(n),fa.Overload_signatures_must_all_be_exported_or_non_exported):128&t?Bi(Dl(n),fa.Overload_signatures_must_all_be_ambient_or_non_ambient):6&e?Bi(Dl(n)||n,fa.Overload_signatures_must_all_be_public_private_or_protected):64&e&&Bi(Dl(n),fa.Overload_signatures_must_all_be_abstract_or_non_abstract)}})}}function r(e,t,r,o){if(r!==o){const r=C_(n(e,t));d(e,e=>{C_(e)!==r&&Bi(Dl(e),fa.Overload_signatures_must_all_be_optional_or_required)})}}const o=230;let i,a,s,l=0,u=o,p=!1,f=!0,m=!1;const h=e.declarations,_=!!(16384&e.flags);function g(e){if(e.name&&Np(e.name))return;let n=!1;const t=rk(e.parent,t=>{if(n)return t;n=t===e});if(t&&t.pos===e.end&&t.kind===e.kind){const n=t.name||t,r=t.name;if(e.name&&r&&(uD(e.name)&&uD(r)&&e.name.escapedText===r.escapedText||RD(e.name)&&RD(r)&&kE(uL(e.name),uL(r))||Ug(e.name)&&Ug(r)&&Kg(e.name)===Kg(r))){if((175===e.kind||174===e.kind)&&Pv(e)!==Pv(t)){Bi(n,Pv(e)?fa.Function_overload_must_be_static:fa.Function_overload_must_not_be_static)}return}if(Mp(t.body))return void Bi(n,fa.Function_implementation_name_must_be_0,Of(e.name))}const r=e.name||e;_?Bi(r,fa.Constructor_implementation_is_missing):Mv(e,64)?Bi(r,fa.All_declarations_of_an_abstract_method_must_be_consecutive):Bi(r,fa.Function_implementation_is_missing_or_not_immediately_following_the_declaration)}let y=!1,v=!1,b=!1;const T=[];if(h)for(const d of h){const e=d,n=33554432&e.flags,t=e.parent&&(265===e.parent.kind||188===e.parent.kind)||n;if(t&&(s=void 0),264!==e.kind&&232!==e.kind||n||(b=!0),263===e.kind||175===e.kind||174===e.kind||177===e.kind){T.push(e);const n=mW(e,o);l|=n,u&=n,p=p||C_(e),f=f&&C_(e);const r=Mp(e.body);r&&i?_?v=!0:y=!0:(null==s?void 0:s.parent)===e.parent&&s.end!==e.pos&&g(s),r?i||(i=e):m=!0,s=e,t||(a=e)}Lh(d)&&ad(d)&&d.jsDoc&&(m=c(U_(d))>0)}v&&d(T,e=>{Bi(e,fa.Multiple_constructor_implementations_are_not_allowed)});y&&d(T,e=>{Bi(Dl(e)||e,fa.Duplicate_function_implementation)});if(b&&!_&&16&e.flags&&h){const n=x(h,e=>264===e.kind).map(e=>Vf(e,fa.Consider_adding_a_declare_modifier_to_this_class));d(h,t=>{const r=264===t.kind?fa.Class_declaration_cannot_implement_overload_list_for_0:263===t.kind?fa.Function_with_bodies_can_only_merge_with_classes_that_are_ambient:void 0;r&&dA(Bi(Dl(t)||t,r,Tl(e)),...n)})}!a||a.body||Mv(a,64)||a.questionToken||g(a);if(m&&(h&&(t(h,i,o,l,u),r(h,i,p,f)),i)){const n=Q_(e),t=G_(i);for(const e of n)if(!sA(t,e)){dA(Bi(e.declaration&&CM(e.declaration)?e.declaration.parent.tagName:e.declaration,fa.This_overload_signature_is_not_compatible_with_its_implementation_signature),Vf(i,fa.The_implementation_signature_is_declared_here));break}}}(e))}function _W(e){a(()=>function(e){let n=e.localSymbol;if(!n&&(n=Es(e),!n.exportSymbol))return;if(Yu(n,e.kind)!==e)return;let t=0,r=0,o=0;for(const l of n.declarations){const e=s(l),n=mW(l,2080);32&n?2048&n?o|=e:t|=e:r|=e}const i=t&r,a=o&(t|r);if(i||a)for(const l of n.declarations){const e=s(l),n=Dl(l);e&a?Bi(n,fa.Merged_declaration_0_cannot_include_a_default_export_declaration_Consider_adding_a_separate_export_default_0_declaration_instead,Of(n)):e&i&&Bi(n,fa.Individual_declarations_in_merged_declaration_0_must_be_all_exported_or_all_local,Of(n))}function s(e){let n=e;switch(n.kind){case 265:case 266:case 347:case 339:case 341:return 2;case 268:return pf(n)||0!==ZW(n)?5:4;case 264:case 267:case 307:return 3;case 308:return 7;case 278:case 227:const e=n,t=ON(e)?e.expression:e.right;if(!db(t))return 1;n=t;case 272:case 275:case 274:let r=0;return d(Ja(Es(n)).declarations,e=>{r|=s(e)}),r;case 261:case 209:case 263:case 277:case 80:return 1;case 174:case 172:return 2;default:return dt.failBadSyntaxKind(n)}}}(e))}function gW(e,n,t,...r){const o=yW(e,n);return o&&xW(o,n,t,...r)}function yW(e,n,t){if(rc(e))return;const r=e;if(r.promisedTypeOfPromise)return r.promisedTypeOfPromise;if(Hd(e,_v(!1)))return r.promisedTypeOfPromise=by(e)[0];if(sF(Sm(e),402915324))return;const o=nc(e,"then");if(rc(o))return;const i=o?Vh(o,0):s;if(0===i.length)return void(n&&Bi(n,fa.A_promise_must_have_a_then_method));let a,l;for(const s of i){const n=og(s);n&&n!==ct&&!DA(e,n,bi)?a=n:l=re(l,s)}if(!l)return dt.assertIsDefined(a),t&&(t.value=a),void(n&&Bi(n,fa.The_this_context_of_type_0_is_not_assignable_to_method_s_this_of_type_1,El(e),El(a)));const c=fD(Gb(D(l,TO)),2097152);if(rc(c))return;const d=Vh(c,0);if(0!==d.length)return r.promisedTypeOfPromise=Gb(D(d,TO),2);n&&Bi(n,fa.The_first_parameter_of_the_then_method_of_a_promise_must_be_a_callback)}function vW(e,n,t,r,...o){return(n?xW(e,t,r,...o):RW(e,t,r,...o))||Mn}function bW(e){if(sF(Sm(e),402915324))return!1;const n=nc(e,"then");return!!n&&Vh(fD(n,2097152),0).length>0}function TW(e){var n;if(16777216&e.flags){const t=Uv(!1);return!!t&&e.aliasSymbol===t&&1===(null==(n=e.aliasTypeArguments)?void 0:n.length)}return!1}function SW(e){return 1048576&e.flags?jC(e,SW):TW(e)?e.aliasTypeArguments[0]:e}function EW(e){if(rc(e)||TW(e))return!1;if(wT(e)){const n=Tm(e);if(n?3&n.flags||cA(n)||NC(n,bW):iF(e,8650752))return!0}return!1}function AW(e){return EW(e)?function(e){const n=Uv(!0);if(n)return Ey(n,[SW(e)])}(e)??e:(dt.assert(TW(e)||void 0===yW(e),"type provided should not be a non-generic 'promise'-like."),e)}function xW(e,n,t,...r){const o=RW(e,n,t,...r);return o&&AW(o)}function RW(e,n,t,...r){if(rc(e))return e;if(TW(e))return e;const o=e;if(o.awaitedTypeOfType)return o.awaitedTypeOfType;if(1048576&e.flags){if(fi.lastIndexOf(e.id)>=0)return void(n&&Bi(n,fa.Type_is_referenced_directly_or_indirectly_in_the_fulfillment_callback_of_its_own_then_method));const i=n?e=>RW(e,n,t,...r):RW;fi.push(e.id);const a=jC(e,i);return fi.pop(),o.awaitedTypeOfType=a}if(EW(e))return o.awaitedTypeOfType=e;const i={value:void 0},a=yW(e,void 0,i);if(a){if(e.id===a.id||fi.lastIndexOf(a.id)>=0)return void(n&&Bi(n,fa.Type_is_referenced_directly_or_indirectly_in_the_fulfillment_callback_of_its_own_then_method));fi.push(e.id);const i=RW(a,n,t,...r);if(fi.pop(),!i)return;return o.awaitedTypeOfType=i}if(!bW(e))return o.awaitedTypeOfType=e;if(n){let o;dt.assertIsDefined(t),i.value&&(o=rS(o,fa.The_this_context_of_type_0_is_not_assignable_to_method_s_this_of_type_1,El(e),El(i.value))),o=rS(o,t,...r),gi.add(Hf(Sp(n),n,o))}}function IW(e){!function(e){if(!VV(Sp(e))){let n=e.expression;if(SC(n))return!1;let t,r=!0;for(;;)if(WC(n)||GC(n))n=n.expression;else if(yC(n))r||(t=n),n.questionDotToken&&(t=n.questionDotToken),n=n.expression,r=!1;else{if(!_C(n)){dD(n)||(t=n);break}n.questionDotToken&&(t=n.questionDotToken),n=n.expression,r=!1}if(t)return dA(Bi(e.expression,fa.Expression_must_be_enclosed_in_parentheses_to_be_used_as_a_decorator),Vf(t,fa.Invalid_syntax_in_decorator)),!0}}(e);const n=Ow(e);Bw(n,e);const t=Ag(n);if(1&t.flags)return;const r=FO(e);if(!(null==r?void 0:r.resolvedReturnType))return;let o;const i=r.resolvedReturnType;switch(e.parent.kind){case 264:case 232:o=fa.Decorator_function_return_type_0_is_not_assignable_to_type_1;break;case 173:if(!V){o=fa.Decorator_function_return_type_0_is_not_assignable_to_type_1;break}case 170:o=fa.Decorator_function_return_type_is_0_but_is_expected_to_be_void_or_any;break;case 175:case 178:case 179:o=fa.Decorator_function_return_type_0_is_not_assignable_to_type_1;break;default:return dt.failBadSyntaxKind(e.parent)}UE(t,i,e.expression,o)}function DW(e,n,t,r,o,i=t.length,a=0){return wp(vR.createFunctionTypeNode(void 0,s,vR.createKeywordTypeNode(133)),e,n,t,r,o,i,a)}function CW(e,n,t,r,o,i,a){return Bg(DW(e,n,t,r,o,i,a))}function NW(e){return CW(void 0,void 0,s,e)}function MW(e){return CW(void 0,void 0,[$i("value",e)],ct)}function PW(e){if(e)switch(e.kind){case 194:case 193:return LW(e.types);case 195:return LW([e.trueType,e.falseType]);case 197:case 203:return PW(e.type);case 184:return e.typeName}}function LW(e){let n;for(let t of e){for(;197===t.kind||203===t.kind;)t=t.type;if(146===t.kind)continue;if(!X&&(202===t.kind&&106===t.literal.kind||157===t.kind))continue;const e=PW(t);if(!e)return;if(n){if(!dD(n)||!dD(e)||n.escapedText!==e.escapedText)return}else n=e}return n}function kW(e){const n=gv(e);return Vu(e)?Lm(n):n}function wW(e){if(!(NL(e)&&zv(e)&&e.modifiers&&hh(V,e,e.parent,e.parent.parent)))return;const n=y(e.modifiers,CD);if(n){if(V)gV(n,8),170===e.kind&&gV(n,32);else if(W<Do.ClassAndClassElementDecorators)if(gV(n,8),_N(e))if(e.name){MB(e)&&gV(n,4194304)}else gV(n,4194304);else OC(e)||(uD(e.name)&&(LD(e)||hd(e)||_d(e))&&gV(n,4194304),RD(e.name)&&gV(n,8388608));EM(e,8);for(const n of e.modifiers)CD(n)&&IW(n)}}function OW(e){switch(e.kind){case 80:return e;case 212:return e.name;default:return}}function FW(e){var n;wW(e),XF(e);const t=Fg(e);if(e.name&&168===e.name.kind&&uL(e.name),vp(e)){const t=Es(e),r=e.localSymbol||t,o=null==(n=r.declarations)?void 0:n.find(n=>n.kind===e.kind&&!(524288&n.flags));e===o&&hW(r),t.parent&&hW(t)}const r=174===e.kind?void 0:e.body;if(aG(r),JO(e,Rg(e)),a(function(){vv(e)||(Np(r)&&!fW(e)&&$R(e,In),1&t&&Mp(r)&&Ag(G_(e)))}),Lh(e)){const n=oc(e);n&&n.typeExpression&&!rL(qS(n.typeExpression),e)&&Bi(n.typeExpression.type,fa.The_type_of_a_function_declaration_must_match_the_function_s_signature)}}function WW(e){a(function(){const n=Sp(e);let t=Eo.get(n.path);t||(t=[],Eo.set(n.path,t));t.push(e)})}function zW(e,n){for(const t of e)switch(t.kind){case 264:case 232:VW(t,n),UW(t,n);break;case 308:case 268:case 242:case 270:case 249:case 250:case 251:YW(t,n);break;case 177:case 219:case 263:case 220:case 175:case 178:case 179:t.body&&YW(t,n),UW(t,n);break;case 174:case 180:case 181:case 185:case 186:case 266:case 265:UW(t,n);break;case 196:jW(t,n);break;default:dt.assertNever(t,"Node should not have been registered for unused identifiers check")}}function BW(e,n,t){t(e,0,Vf(Dl(e)||e,JA(e)?fa._0_is_declared_but_never_used:fa._0_is_declared_but_its_value_is_never_read,n))}function GW(e){return dD(e)&&95===vl(e).charCodeAt(0)}function VW(e,n){for(const t of e.members)switch(t.kind){case 175:case 173:case 178:case 179:if(179===t.kind&&32768&t.symbol.flags)break;const e=Es(t);e.isReferenced||!(Nv(t,2)||Rl(t)&&uD(t.name))||33554432&t.flags||n(t,0,Vf(t.name,fa._0_is_declared_but_its_value_is_never_read,hl(e)));break;case 177:for(const r of t.parameters)!r.symbol.isReferenced&&Mv(r,2)&&n(r,0,Vf(r.name,fa.Property_0_is_declared_but_its_value_is_never_read,Tl(r.symbol)));break;case 182:case 241:case 176:break;default:dt.fail("Unexpected class member")}}function jW(e,n){const{typeParameter:t}=e;HW(t)&&n(e,1,Vf(e,fa._0_is_declared_but_its_value_is_never_read,vl(t.name)))}function UW(e,n){const t=Es(e).declarations;if(!t||ye(t)!==e)return;const r=fc(e),o=new Set;for(const i of r){if(!HW(i))continue;const e=vl(i.name),{parent:t}=i;if(196!==t.kind&&t.typeParameters.every(HW)){if(B(o,t)){const r=Sp(t),o=qM(t)?pA(t):fA(r,t.typeParameters),a=1===t.typeParameters.length?[fa._0_is_declared_but_its_value_is_never_read,e]:[fa.All_type_parameters_are_unused];n(i,1,ZT(r,o.pos,o.end-o.pos,...a))}}else n(i,1,Vf(i,fa._0_is_declared_but_its_value_is_never_read,e))}}function HW(e){return!(262144&Ss(e.symbol).isReferenced||GW(e.name))}function KW(e,n,t,r){const o=String(r(n)),i=e.get(o);i?i[1].push(t):e.set(o,[n,[t]])}function JW(e){return en(ny(e),DD)}function XW(e){return fC(e)?uC(e.parent)?!(!e.propertyName||!GW(e.name)):GW(e.name):pf(e)||(fN(e)&&eu(e.parent.parent)||QW(e))&&GW(e.name)}function YW(e,n){const t=new Map,r=new Map,o=new Map;e.locals.forEach(e=>{if(!(262144&e.flags?!(3&e.flags)||3&e.isReferenced:e.isReferenced||e.exportSymbol)&&e.declarations)for(const i of e.declarations)if(!XW(i))if(QW(i))KW(t,ez(i),i,cB);else if(fC(i)&&uC(i.parent)){i!==ye(i.parent.elements)&&ye(i.parent.elements).dotDotDotToken||KW(r,i.parent,i,cB)}else if(fN(i)){const e=7&ej(i),n=Dl(i);(4===e||6===e)&&n&&GW(n)||KW(o,i.parent,i,cB)}else{const t=e.valueDeclaration&&JW(e.valueDeclaration),o=e.valueDeclaration&&Dl(e.valueDeclaration);t&&o?tl(t,t.parent)||uv(t)||GW(o)||(fC(i)&&pC(i.parent)?KW(r,i.parent,i,cB):n(t,1,Vf(o,fa._0_is_declared_but_its_value_is_never_read,Tl(e)))):BW(i,Tl(e),n)}}),t.forEach(([e,t])=>{const r=e.parent;if((e.name?1:0)+(e.namedBindings?275===e.namedBindings.kind?1:e.namedBindings.elements.length:0)===t.length)n(r,0,1===t.length?Vf(r,fa._0_is_declared_but_its_value_is_never_read,vl(he(t).name)):Vf(r,fa.All_imports_in_import_declaration_are_unused));else for(const o of t)BW(o,vl(o.name),n)}),r.forEach(([e,t])=>{const r=JW(e.parent)?1:0;if(e.elements.length===t.length)1===t.length&&261===e.parent.kind&&262===e.parent.parent.kind?KW(o,e.parent.parent,e.parent,cB):n(e,r,1===t.length?Vf(e,fa._0_is_declared_but_its_value_is_never_read,$W(he(t).name)):Vf(e,fa.All_destructured_elements_are_unused));else for(const o of t)n(o,r,Vf(o,fa._0_is_declared_but_its_value_is_never_read,$W(o.name)))}),o.forEach(([e,t])=>{if(e.declarations.length===t.length)n(e,0,1===t.length?Vf(he(t).name,fa._0_is_declared_but_its_value_is_never_read,$W(he(t).name)):Vf(244===e.parent.kind?e.parent:e,fa.All_variables_are_unused));else for(const r of t)n(r,0,Vf(r,fa._0_is_declared_but_its_value_is_never_read,$W(r.name)))})}function $W(e){switch(e.kind){case 80:return vl(e);case 208:case 207:return $W(nn(he(e.elements),fC).name);default:return dt.assertNever(e)}}function QW(e){return 274===e.kind||277===e.kind||275===e.kind}function ez(e){return 274===e.kind?e:275===e.kind?e.parent:e.parent.parent}function nz(e){if(242===e.kind&&JV(e),pd(e)){const n=Io;d(e.statements,aG),Io=n}else d(e.statements,aG);e.locals&&WW(e)}function tz(e,n,t){if((null==n?void 0:n.escapedText)!==t)return!1;if(173===e.kind||172===e.kind||175===e.kind||174===e.kind||178===e.kind||179===e.kind||304===e.kind)return!1;if(33554432&e.flags)return!1;if((RN(e)||AN(e)||wN(e))&&Uc(e))return!1;const r=ny(e);return!DD(r)||!Np(r.parent.body)}function oz(e){ml(e,n=>{if(4&YG(n)){return 80!==e.kind?Bi(Dl(e),fa.Duplicate_identifier_this_Compiler_uses_variable_declaration_this_to_capture_this_reference):Bi(e,fa.Expression_resolves_to_variable_declaration_this_that_compiler_uses_to_capture_this_reference),!0}return!1})}function az(e){ml(e,n=>{if(8&YG(n)){return 80!==e.kind?Bi(Dl(e),fa.Duplicate_identifier_newTarget_Compiler_uses_variable_declaration_newTarget_to_capture_new_target_meta_property_reference):Bi(e,fa.Expression_resolves_to_variable_declaration_newTarget_that_compiler_uses_to_capture_new_target_meta_property_reference),!0}return!1})}function sz(e){1048576&YG(kf(e))&&(dt.assert(Rl(e)&&dD(e.name)&&"string"==typeof e.name.escapedText,"The target of a WeakMap/WeakSet collision check should be an identifier"),Wi("noEmit",e,fa.Compiler_reserves_name_0_when_emitting_private_identifier_downlevel,e.name.escapedText))}function lz(e){let n=!1;if(OC(e)){for(const t of e.members)if(2097152&YG(t)){n=!0;break}}else if(EC(e))2097152&YG(e)&&(n=!0);else{const t=kf(e);t&&2097152&YG(t)&&(n=!0)}n&&(dt.assert(Rl(e)&&dD(e.name),"The target of a Reflect collision check should be an identifier"),Wi("noEmit",e,fa.Duplicate_identifier_0_Compiler_reserves_name_1_when_emitting_super_references_in_static_initializers,Of(e.name),"Reflect"))}function cz(n,t){t&&(function(n,t){if(e.getEmitModuleFormatOfFile(Sp(n))>=5)return;if(!t||!tz(n,t,"require")&&!tz(n,t,"exports"))return;if(bN(n)&&1!==ZW(n))return;const r=Ql(n);308===r.kind&&rm(r)&&Wi("noEmit",t,fa.Duplicate_identifier_0_Compiler_reserves_name_1_in_top_level_scope_of_a_module,Of(t),Of(t))}(n,t),function(e,n){if(!n||W>=4||!tz(e,n,"Promise"))return;if(bN(e)&&1!==ZW(e))return;const t=Ql(e);308===t.kind&&rm(t)&&4096&t.flags&&Wi("noEmit",n,fa.Duplicate_identifier_0_Compiler_reserves_name_1_in_top_level_scope_of_a_module_containing_async_functions,Of(n),Of(n))}(n,t),function(e,n){W<=8&&(tz(e,n,"WeakMap")||tz(e,n,"WeakSet"))&&di.push(e)}(n,t),function(e,n){n&&W>=2&&W<=8&&tz(e,n,"Reflect")&&ui.push(e)}(n,t),md(n)?(RB(t,fa.Class_name_cannot_be_0),33554432&n.flags||function(n){W>=1&&"Object"===n.escapedText&&e.getEmitModuleFormatOfFile(Sp(n))<5&&Bi(n,fa.Class_name_cannot_be_Object_when_targeting_ES5_and_above_with_module_0,mo[G])}(t)):vN(n)&&RB(t,fa.Enum_name_cannot_be_0))}function dz(e){return e===Dn?In:e===cr?lr:e}function pz(e){var n;if(wW(e),fC(e)||aG(e.type),!e.name)return;if(168===e.name.kind&&(uL(e.name),ku(e)&&e.initializer&&EF(e.initializer)),fC(e)){if(e.propertyName&&dD(e.name)&&ey(e)&&Np($m(e).body))return void pi.push(e);uC(e.parent)&&e.dotDotDotToken&&W<Do.ObjectSpreadRest&&gV(e,4),e.propertyName&&168===e.propertyName.kind&&uL(e.propertyName);const n=e.parent.parent,t=sc(n,e.dotDotDotToken?32:0),r=e.propertyName||e.name;if(t&&!xd(r)){const o=rT(r);if(ux(o)){const r=wh(t,px(o));r&&(wk(r,void 0,!1),YL(e,!!n.initializer&&108===n.initializer.kind,!1,t,r))}}}if(xd(e.name)&&(208===e.name.kind&&W<Do.BindingPatterns&&O.downlevelIteration&&gV(e,512),d(e.name.elements,aG)),e.initializer&&ey(e)&&Np($m(e).body))return void Bi(e,fa.A_parameter_initializer_is_only_allowed_in_a_function_or_constructor_implementation);if(xd(e.name)){if(VI(e))return;const n=ku(e)&&e.initializer&&250!==e.parent.parent.kind,t=!U(e.name.elements,nt(FC));if(n||t){const r=nd(e);if(n){const n=EF(e.initializer);X&&t?ck(n,e):HE(n,nd(e),e,e.initializer)}t&&(pC(e.name)?Rz(65,r,Fn,e):X&&ck(r,e))}return}const t=Es(e);if(2097152&t.flags&&(Bh(e)||Gh(e)))return void YB(e);10===e.name.kind&&Bi(e.name,fa.A_bigint_literal_cannot_be_used_as_a_property_name);const r=dz(Vd(t));if(e===t.valueDeclaration){const i=ku(e)&&qh(e);if(i){if(!(Lh(e)&&hC(i)&&(0===i.properties.length||hb(e.name))&&!!(null==(n=t.exports)?void 0:n.size))&&250!==e.parent.parent.kind){const n=EF(i);HE(n,r,e,i,void 0);const t=7&ej(e);if(6===t){const t=(o=!0,Br||(Br=nv("AsyncDisposable",0,o))||It),r=Gv(!0);if(t!==It&&r!==It){const o=Gb([t,r,jn,Fn]);UE(ud(n,e),o,i,fa.The_initializer_of_an_await_using_declaration_must_be_either_an_object_with_a_Symbol_asyncDispose_or_Symbol_dispose_method_or_be_null_or_undefined)}}else if(4===t){const t=Gv(!0);if(t!==It){const r=Gb([t,jn,Fn]);UE(ud(n,e),r,i,fa.The_initializer_of_a_using_declaration_must_be_either_an_object_with_a_Symbol_dispose_method_or_be_null_or_undefined)}}}}t.declarations&&t.declarations.length>1&&U(t.declarations,n=>n!==e&&wm(n)&&!mz(n,e))&&Bi(e.name,fa.All_declarations_of_0_must_have_identical_modifiers,Of(e.name))}else{const n=dz(nd(e));ac(r)||ac(n)||kE(r,n)||67108864&t.flags||fz(t.valueDeclaration,r,e,n),ku(e)&&e.initializer&&HE(EF(e.initializer),n,e,e.initializer,void 0),t.valueDeclaration&&!mz(e,t.valueDeclaration)&&Bi(e.name,fa.All_declarations_of_0_must_have_identical_modifiers,Of(e.name))}var o;173!==e.kind&&172!==e.kind&&(_W(e),261!==e.kind&&209!==e.kind||function(e){if(7&ej(e)||ey(e))return;const n=Es(e);if(1&n.flags){if(!dD(e.name))return dt.fail();const t=je(e,e.name.escapedText,3,void 0,!1);if(t&&t!==n&&2&t.flags&&7&JL(t)){const n=Ig(t.valueDeclaration,262),r=244===n.parent.kind&&n.parent.parent?n.parent.parent:void 0;if(!r||!(242===r.kind&&ad(r.parent)||269===r.kind||268===r.kind||308===r.kind)){const n=hl(t);Bi(e,fa.Cannot_initialize_outer_scoped_variable_0_in_the_same_scope_as_block_scoped_declaration_1,n,n)}}}}(e),cz(e,e.name))}function fz(e,n,t,r){const o=Dl(t),i=173===t.kind||172===t.kind?fa.Subsequent_property_declarations_must_have_the_same_type_Property_0_must_be_of_type_1_but_here_has_type_2:fa.Subsequent_variable_declarations_must_have_the_same_type_Variable_0_must_be_of_type_1_but_here_has_type_2,a=Of(o),s=Bi(o,i,a,El(n),El(r));e&&dA(s,Vf(e,fa._0_was_also_declared_here,a))}function mz(e,n){if(170===e.kind&&261===n.kind||261===e.kind&&170===n.kind)return!0;if(C_(e)!==C_(n))return!1;return Bv(e,1358)===Bv(n,1358)}function hz(n){var t,r;null==(t=Kt)||t.push(Kt.Phase.Check,"checkVariableDeclaration",{kind:n.kind,pos:n.pos,end:n.end,path:n.tracingPath}),function(n){const t=ej(n),r=7&t;if(xd(n.name))switch(r){case 6:return HV(n,fa._0_declarations_may_not_have_binding_patterns,"await using");case 4:return HV(n,fa._0_declarations_may_not_have_binding_patterns,"using")}if(250!==n.parent.parent.kind&&251!==n.parent.parent.kind)if(33554432&t)FV(n);else if(!n.initializer){if(xd(n.name)&&!xd(n.parent))return HV(n,fa.A_destructuring_declaration_must_have_an_initializer);switch(r){case 6:return HV(n,fa._0_declarations_must_be_initialized,"await using");case 4:return HV(n,fa._0_declarations_must_be_initialized,"using");case 2:return HV(n,fa._0_declarations_must_be_initialized,"const")}}if(n.exclamationToken&&(244!==n.parent.parent.kind||!n.type||n.initializer||33554432&t)){const e=n.initializer?fa.Declarations_with_initializers_cannot_also_have_definite_assignment_assertions:n.type?fa.A_definite_assignment_assertion_is_not_permitted_in_this_context:fa.Declarations_with_definite_assignment_assertions_must_also_have_type_annotations;return HV(n.exclamationToken,e)}e.getEmitModuleFormatOfFile(Sp(n))<4&&!(33554432&n.parent.parent.flags)&&Mv(n.parent.parent,32)&&WV(n.name);!!r&&zV(n.name)}(n),pz(n),null==(r=Kt)||r.pop()}function _z(e){return function(e){if(e.dotDotDotToken){const n=e.parent.elements;if(e!==ye(n))return HV(e,fa.A_rest_element_must_be_last_in_a_destructuring_pattern);if(TV(n,fa.A_rest_parameter_or_binding_pattern_may_not_have_a_trailing_comma),e.propertyName)return HV(e.name,fa.A_rest_element_cannot_have_a_property_name)}if(e.dotDotDotToken&&e.initializer)UV(e,e.initializer.pos-1,1,fa.A_rest_element_cannot_have_an_initializer)}(e),pz(e)}function gz(e){const n=7&cl(e);(4===n||6===n)&&W<Do.UsingAndAwaitUsing&&gV(e,16777216),d(e.declarations,aG)}function yz(e){vV(e)||BV(e.declarationList)||function(e){if(!GV(e.parent)){const n=7&ej(e.declarationList);if(n){const t=1===n?"let":2===n?"const":4===n?"using":6===n?"await using":dt.fail("Unknown BlockScope flag");Bi(e,fa._0_declarations_can_only_be_declared_inside_a_block,t)}}}(e),gz(e.declarationList)}function vz(e,n,t){function r(e,n){for(o(e=cg(e),n);MC(e)&&(57===e.operatorToken.kind||61===e.operatorToken.kind);)o(e=cg(e.left),n)}function o(e,t){const o=rb(e)?cg(e.right):e;if(r_(o))return;if(rb(o))return void r(o,t);const i=o===e?n:HF(o);if(1024&i.flags&&_C(o)&&384&(ua(o.expression).resolvedSymbol??Sn).flags)return void Bi(o,fa.This_condition_will_always_return_0,i.value?"true":"false");const a=_C(o)&&AF(o.expression);if(!cD(i,4194304)||a)return;const s=Vh(i,0),l=!!gW(i);if(0===s.length&&!l)return;const c=dD(o)?o:_C(o)?o.name:void 0,d=c&&IG(c);if(!d&&!l)return;const u=d&&MC(e.parent)&&function(e,n){for(;MC(e)&&56===e.operatorToken.kind;){if(rk(e.right,function e(t){if(dD(t)){const e=IG(t);if(e&&e===n)return!0}return rk(t,e)}))return!0;e=e.parent}return!1}(e.parent,d)||d&&t&&function(e,n,t,r){return!!rk(n,function n(o){if(dD(o)){const n=IG(o);if(n&&n===r){if(dD(e)||dD(t)&&MC(t.parent))return!0;let n=t.parent,r=o.parent;for(;n&&r;){if(dD(n)&&dD(r)||110===n.kind&&110===r.kind)return IG(n)===IG(r);if(_C(n)&&_C(r)){if(IG(n.name)!==IG(r.name))return!1;r=r.expression,n=n.expression}else{if(!yC(n)||!yC(r))return!1;r=r.expression,n=n.expression}}}}return rk(o,n)})}(e,t,c,d);u||(l?Hi(o,!0,fa.This_condition_will_always_return_true_since_this_0_is_always_defined,Il(i)):Bi(o,fa.This_condition_will_always_return_true_since_this_function_is_always_defined_Did_you_mean_to_call_it_instead))}X&&r(e,t)}function bz(e,n){if(16384&e.flags)Bi(n,fa.An_expression_of_type_void_cannot_be_tested_for_truthiness);else{const e=Tz(n);3!==e&&Bi(n,1===e?fa.This_kind_of_expression_is_always_truthy:fa.This_kind_of_expression_is_always_falsy)}return e}function Tz(e){switch((e=MP(e)).kind){case 9:return"0"===e.text||"1"===e.text?3:1;case 210:case 220:case 10:case 232:case 219:case 285:case 286:case 211:case 14:return 1;case 223:case 106:return 2;case 15:case 11:return e.text?1:2;case 228:return Tz(e.whenTrue)|Tz(e.whenFalse);case 80:return GI(e)===De?2:3}return 3}function Ez(e,n){return bz(HF(e,n),e)}function Az(e){PV(e);const n=nk(HF(e.expression));if(262===e.initializer.kind){const n=e.initializer.declarations[0];n&&xd(n.name)&&Bi(n.name,fa.The_left_hand_side_of_a_for_in_statement_cannot_be_a_destructuring_pattern),gz(e.initializer)}else{const t=e.initializer,r=HF(t);210===t.kind||211===t.kind?Bi(t,fa.The_left_hand_side_of_a_for_in_statement_cannot_be_a_destructuring_pattern):BE(function(e){const n=mT(fT(e));return 131072&n.flags?Hn:n}(n),r)?eF(t,fa.The_left_hand_side_of_a_for_in_statement_must_be_a_variable_or_a_property_access,fa.The_left_hand_side_of_a_for_in_statement_may_not_be_an_optional_property_access):Bi(t,fa.The_left_hand_side_of_a_for_in_statement_must_be_of_type_string_or_any)}n!==ut&&aF(n,126091264)||Bi(e.expression,fa.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,El(n)),aG(e.statement),e.locals&&WW(e)}function xz(e){return Rz(e.awaitModifier?15:13,ZL(e.expression),Fn,e.expression)}function Rz(e,n,t,r){return rc(n)?n:Iz(e,n,t,r,!0)||In}function Iz(e,n,t,r,o){const i=!!(2&e);if(n===ut)return void(r&&Gz(r,n,i));const a=W>=2,s=!a&&O.downlevelIteration,l=O.noUncheckedIndexedAccess&&!!(128&e);if(a||s||i){const i=kz(n,e,a?r:void 0);if(o&&i){const n=8&e?fa.Cannot_iterate_value_because_the_next_method_of_its_iterator_expects_type_1_but_for_of_will_always_send_0:32&e?fa.Cannot_iterate_value_because_the_next_method_of_its_iterator_expects_type_1_but_array_spread_will_always_send_0:64&e?fa.Cannot_iterate_value_because_the_next_method_of_its_iterator_expects_type_1_but_array_destructuring_will_always_send_0:16&e?fa.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;n&&UE(t,i.nextType,r,n)}if(i||a)return l?bD(i&&i.yieldType):i&&i.yieldType}let c=n,d=!1;if(4&e){if(1048576&c.flags){const e=n.types,t=x(e,e=>!(402653316&e.flags));t!==e&&(c=Gb(t,2))}else 402653316&c.flags&&(c=ut);if(d=c!==n,d&&131072&c.flags)return l?bD(Hn):Hn}if(!$x(c)){if(r){const t=!!(4&e)&&!d,[o,i]=function(t,r){var o;if(r)return t?[fa.Type_0_is_not_an_array_type_or_a_string_type_or_does_not_have_a_Symbol_iterator_method_that_returns_an_iterator,!0]:[fa.Type_0_is_not_an_array_type_or_does_not_have_a_Symbol_iterator_method_that_returns_an_iterator,!0];if(Cz(e,0,n,void 0))return[fa.Type_0_can_only_be_iterated_through_when_using_the_downlevelIteration_flag_or_with_a_target_of_es2015_or_higher,!1];if(function(e){switch(e){case"Float32Array":case"Float64Array":case"Int16Array":case"Int32Array":case"Int8Array":case"NodeList":case"Uint16Array":case"Uint32Array":case"Uint8Array":case"Uint8ClampedArray":return!0}return!1}(null==(o=n.symbol)?void 0:o.escapedName))return[fa.Type_0_can_only_be_iterated_through_when_using_the_downlevelIteration_flag_or_with_a_target_of_es2015_or_higher,!0];return t?[fa.Type_0_is_not_an_array_type_or_a_string_type,!0]:[fa.Type_0_is_not_an_array_type,!0]}(t,s);Hi(r,i&&!!gW(c),o,El(c))}return d?l?bD(Hn):Hn:void 0}const u=p_(c,Kn);return d&&u?402653316&u.flags&&!O.noUncheckedIndexedAccess?Hn:Gb(l?[u,Hn,Fn]:[u,Hn],2):128&e?bD(u):u}function Cz(e,n,t,r){if(rc(t))return;const o=kz(t,e,r);return o&&o[hB(n)]}function Nz(e=ut,n=ut,t=On){if(67359327&e.flags&&180227&n.flags&&180227&t.flags){const r=uy([e,n,t]);let o=ho.get(r);return o||(o={yieldType:e,returnType:n,nextType:t},ho.set(r,o)),o}return{yieldType:e,returnType:n,nextType:t}}function Mz(e){let n,t,r;for(const o of e)if(void 0!==o&&o!==_o){if(o===go)return go;n=re(n,o.yieldType),t=re(t,o.returnType),r=re(r,o.nextType)}return n||t||r?Nz(n&&Gb(n),t&&Gb(t),r&&Xb(r)):_o}function Pz(e,n){return e[n]}function Lz(e,n,t){return e[n]=t}function kz(e,n,t){var r,o;if(e===pt)return yo;if(rc(e))return go;if(!(1048576&e.flags)){const o=t?{errors:void 0,skipLogging:!0}:void 0,i=Oz(e,n,t,o);if(i===_o){if(t){const r=Gz(t,e,!!(2&n));(null==o?void 0:o.errors)&&dA(r,...o.errors)}return}if(null==(r=null==o?void 0:o.errors)?void 0:r.length)for(const e of o.errors)gi.add(e);return i}const i=2&n?"iterationTypesOfAsyncIterable":"iterationTypesOfIterable",a=Pz(e,i);if(a)return a===_o?void 0:a;let s;for(const c of e.types){const r=t?{errors:void 0}:void 0,a=Oz(c,n,t,r);if(a===_o){if(t){const o=Gz(t,e,!!(2&n));(null==r?void 0:r.errors)&&dA(o,...r.errors)}return void Lz(e,i,_o)}if(null==(o=null==r?void 0:r.errors)?void 0:o.length)for(const e of r.errors)gi.add(e);s=re(s,a)}const l=s?Mz(s):_o;return Lz(e,i,l),l===_o?void 0:l}function wz(e,n){if(e===_o)return _o;if(e===go)return go;const{yieldType:t,returnType:r,nextType:o}=e;return n&&Uv(!0),Nz(xW(t,n)||In,xW(r,n)||In,o)}function Oz(e,n,t,r){if(rc(e))return go;let o=!1;if(2&n){const r=Fz(e,vo)||Wz(e,vo);if(r){if(r!==_o||!t)return 8&n?wz(r,t):r;o=!0}}if(1&n){let r=Fz(e,bo)||Wz(e,bo);if(r)if(r===_o&&t)o=!0;else{if(!(2&n))return r;if(r!==_o)return r=wz(r,t),o?r:Lz(e,"iterationTypesOfAsyncIterable",r)}}if(2&n){const n=Bz(e,vo,t,r,o);if(n!==_o)return n}if(1&n){let i=Bz(e,bo,t,r,o);if(i!==_o)return 2&n?(i=wz(i,t),o?i:Lz(e,"iterationTypesOfAsyncIterable",i)):i}return _o}function Fz(e,n){return Pz(e,n.iterableCacheKey)}function Wz(e,n){if(Hd(e,n.getGlobalIterableType(!1))||Hd(e,n.getGlobalIteratorObjectType(!1))||Hd(e,n.getGlobalIterableIteratorType(!1))||Hd(e,n.getGlobalGeneratorType(!1))){const[t,r,o]=by(e);return Lz(e,n.iterableCacheKey,Nz(n.resolveIterationType(t,void 0)||t,n.resolveIterationType(r,void 0)||r,o))}if(Ud(e,n.getGlobalBuiltinIteratorTypes())){const[t]=by(e),r=Iv(),o=On;return Lz(e,n.iterableCacheKey,Nz(n.resolveIterationType(t,void 0)||t,n.resolveIterationType(r,void 0)||r,o))}}function zz(e){const n=cv(!1),t=n&&nc(Vd(n),gl(e));return t&&ux(t)?px(t):`__@${e}`}function Bz(e,n,t,r,o){const i=wh(e,zz(n.iteratorSymbolName)),a=!i||16777216&i.flags?void 0:Vd(i);if(rc(a))return o?go:Lz(e,n.iterableCacheKey,go);const s=a?Vh(a,0):void 0,l=x(s,e=>0===gO(e));if(!U(l))return t&&U(s)&&UE(e,n.getGlobalIterableType(!0),t,void 0,void 0,r),o?_o:Lz(e,n.iterableCacheKey,_o);const c=Vz(Xb(D(l,Ag)),n,t,r,o)??_o;return o?c:Lz(e,n.iterableCacheKey,c)}function Gz(e,n,t){const r=t?fa.Type_0_must_have_a_Symbol_asyncIterator_method_that_returns_an_async_iterator:fa.Type_0_must_have_a_Symbol_iterator_method_that_returns_an_iterator;return Hi(e,!!gW(n)||!t&&rN(e.parent)&&e.parent.expression===e&&Ev(!1)!==kt&&BE(n,Hv(Ev(!1),[In,In,In])),r,El(n))}function Vz(e,n,t,r,o){if(rc(e))return go;let i=function(e,n){return Pz(e,n.iteratorCacheKey)}(e,n)||function(e,n){if(Hd(e,n.getGlobalIterableIteratorType(!1))||Hd(e,n.getGlobalIteratorType(!1))||Hd(e,n.getGlobalIteratorObjectType(!1))||Hd(e,n.getGlobalGeneratorType(!1))){const[t,r,o]=by(e);return Lz(e,n.iteratorCacheKey,Nz(t,r,o))}if(Ud(e,n.getGlobalBuiltinIteratorTypes())){const[t]=by(e),r=Iv(),o=On;return Lz(e,n.iteratorCacheKey,Nz(t,r,o))}}(e,n);return i===_o&&t&&(i=void 0,o=!0),i??(i=function(e,n,t,r,o){const i=Mz([$z(e,n,"next",t,r),$z(e,n,"return",t,r),$z(e,n,"throw",t,r)]);return o?i:Lz(e,n.iteratorCacheKey,i)}(e,n,t,r,o)),i===_o?void 0:i}function jz(e,n){const t=nc(e,"done")||$n;return BE(0===n?$n:tt,t)}function Uz(e){return jz(e,0)}function Hz(e){return jz(e,1)}function qz(e){if(rc(e))return go;const n=Pz(e,"iterationTypesOfIteratorResult");if(n)return n;if(Hd(e,(t=!1,xr||(xr=nv("IteratorYieldResult",1,t))||kt))){return Lz(e,"iterationTypesOfIteratorResult",Nz(by(e)[0],void 0,void 0))}var t;if(Hd(e,function(e){return Rr||(Rr=nv("IteratorReturnResult",1,e))||kt}(!1))){return Lz(e,"iterationTypesOfIteratorResult",Nz(void 0,by(e)[0],void 0))}const r=kC(e,Uz),o=r!==ut?nc(r,"value"):void 0,i=kC(e,Hz),a=i!==ut?nc(i,"value"):void 0;return Lz(e,"iterationTypesOfIteratorResult",o||a?Nz(o,a||ct,void 0):_o)}function $z(e,n,t,r,o){var i,a,l,c;const d=wh(e,t);if(!d&&"next"!==t)return;const u=!d||"next"===t&&16777216&d.flags?void 0:"next"===t?Vd(d):fD(Vd(d),2097152);if(rc(u))return go;const p=u?Vh(u,0):s;if(0===p.length){if(r){const e="next"===t?n.mustHaveANextMethodDiagnostic:n.mustBeAMethodDiagnostic;o?(o.errors??(o.errors=[]),o.errors.push(Vf(r,e,t))):Bi(r,e,t)}return"next"===t?_o:void 0}if((null==u?void 0:u.symbol)&&1===p.length){const e=n.getGlobalGeneratorType(!1),r=n.getGlobalIteratorType(!1),o=(null==(a=null==(i=e.symbol)?void 0:i.members)?void 0:a.get(t))===u.symbol,s=!o&&(null==(c=null==(l=r.symbol)?void 0:l.members)?void 0:c.get(t))===u.symbol;if(o||s){const n=o?e:r,{mapper:i}=u;return Nz(rE(n.typeParameters[0],i),rE(n.typeParameters[1],i),"next"===t?rE(n.typeParameters[2],i):void 0)}}let f,m,h,_,g;for(const s of p)"throw"!==t&&U(s.parameters)&&(f=re(f,pO(s,0))),m=re(m,Ag(s));if("throw"!==t){const e=f?Gb(f):On;if("next"===t)_=e;else if("return"===t){h=re(h,n.resolveIterationType(e,r)||In)}}const y=m?Xb(m):ut,v=qz(n.resolveIterationType(y,r)||In);return v===_o?(r&&(o?(o.errors??(o.errors=[]),o.errors.push(Vf(r,n.mustHaveAValueDiagnostic,t))):Bi(r,n.mustHaveAValueDiagnostic,t)),g=In,h=re(h,In)):(g=v.yieldType,h=re(h,v.returnType)),Nz(g,Gb(h),_)}function Qz(e,n,t){if(rc(n))return;const r=nB(n,t);return r&&r[hB(e)]}function nB(e,n){if(rc(e))return go;const t=n?vo:bo;return kz(e,n?2:1,void 0)||function(e,n,t,r){return Vz(e,n,t,r,!1)}(e,t,void 0,void 0)}function rB(e){JV(e)||function(e){let n=e;for(;n;){if(sd(n))return HV(e,fa.Jump_target_cannot_cross_function_boundary);switch(n.kind){case 257:if(e.label&&n.label.escapedText===e.label.escapedText){return!!(252===e.kind&&!Xd(n.statement,!0))&&HV(e,fa.A_continue_statement_can_only_jump_to_a_label_of_an_enclosing_iteration_statement)}break;case 256:if(253===e.kind&&!e.label)return!1;break;default:if(Xd(n,!1)&&!e.label)return!1}n=n.parent}if(e.label){return HV(e,253===e.kind?fa.A_break_statement_can_only_jump_to_a_label_of_an_enclosing_statement:fa.A_continue_statement_can_only_jump_to_a_label_of_an_enclosing_iteration_statement)}HV(e,253===e.kind?fa.A_break_statement_can_only_be_used_within_an_enclosing_iteration_or_switch_statement:fa.A_continue_statement_can_only_be_used_within_an_enclosing_iteration_statement)}(e)}function oB(e,n){const t=!!(2&n);if(!!(1&n)){const n=Qz(1,e,t);return n?t?RW(SW(n)):n:Mn}return t?RW(e)||Mn:e}function pB(e,n){const t=oB(n,Fg(e));return!(!t||!(iF(t,16384)||32769&t.flags))}function TB(e,n,t,r,o,i=!1){const a=Lh(t),s=Fg(e);if(r){const o=cg(r,a);if(PC(o))return TB(e,n,t,o.whenTrue,HF(o.whenTrue),!0),void TB(e,n,t,o.whenFalse,HF(o.whenFalse),!0)}const l=254===t.kind,c=2&s?vW(o,!1,t,fa.The_return_type_of_an_async_function_must_either_be_a_valid_promise_or_must_not_contain_a_callable_then_member):o,d=r&&dw(r);HE(c,n,l&&!i?t:d,d)}function SB(e){JV(e)||dD(e.expression)&&!e.expression.escapedText&&function(e,n,...t){const r=Sp(e);if(!VV(r)){const o=Zf(r,e.pos);return gi.add(ZT(r,Ps(o),0,n,...t)),!0}}(e,fa.Line_break_not_permitted_here),e.expression&&HF(e.expression)}function EB(e,n,t){const r=l_(e);if(0===r.length)return;for(const i of $f(e))t&&4194304&i.flags||AB(e,i,oT(i,8576,!0),jd(i));const o=n.valueDeclaration;if(o&&md(o))for(const i of o.members)if((!t&&!Pv(i)||t&&Pv(i))&&!vp(i)){const n=Es(i);AB(e,n,VF(i.name.expression),jd(n))}if(r.length>1)for(const i of r)xB(e,i)}function AB(e,n,t,r){const o=n.valueDeclaration,i=Dl(o);if(i&&uD(i))return;const a=g_(e,t),s=2&bT(e)?Yu(e.symbol,265):void 0,l=o&&227===o.kind||i&&168===i.kind?o:void 0,c=xs(n)===e.symbol?o:void 0;for(const d of a){const t=d.declaration&&xs(Es(d.declaration))===e.symbol?d.declaration:void 0,o=c||t||(s&&!U(gu(e),e=>!!sm(e,n.escapedName)&&!!p_(e,d.keyType))?s:void 0);if(o&&!BE(r,d.type)){const e=zi(o,fa.Property_0_of_type_1_is_not_assignable_to_2_index_type_3,hl(n),El(r),El(d.keyType),El(d.type));l&&o!==l&&dA(e,Vf(l,fa._0_is_declared_here,hl(n))),gi.add(e)}}}function xB(e,n){const t=n.declaration,r=g_(e,n.keyType),o=2&bT(e)?Yu(e.symbol,265):void 0,i=t&&xs(Es(t))===e.symbol?t:void 0;for(const a of r){if(a===n)continue;const t=a.declaration&&xs(Es(a.declaration))===e.symbol?a.declaration:void 0,r=i||t||(o&&!U(gu(e),e=>!!u_(e,n.keyType)&&!!p_(e,a.keyType))?o:void 0);r&&!BE(n.type,a.type)&&Bi(r,fa._0_index_type_1_is_not_assignable_to_2_index_type_3,El(n.keyType),El(n.type),El(a.keyType),El(a.type))}}function RB(e,n){switch(e.escapedText){case"any":case"unknown":case"never":case"number":case"bigint":case"boolean":case"string":case"symbol":case"void":case"object":case"undefined":Bi(e,n,e.escapedText)}}function IB(e){let n=!1;if(e)for(let r=0;r<e.length;r++){const n=e[r];KF(n),a(t(n,r))}function t(t,r){return()=>{t.default?(n=!0,function(e,n,t){function r(e){if(184===e.kind){const r=Ky(e);if(262144&r.flags)for(let o=t;o<n.length;o++)r.symbol===Es(n[o])&&Bi(e,fa.Type_parameter_defaults_can_only_reference_previously_declared_type_parameters)}rk(e,r)}r(e)}(t.default,e,r)):n&&Bi(t,fa.Required_type_parameters_may_not_follow_optional_type_parameters);for(let n=0;n<r;n++)e[n].symbol===t.symbol&&Bi(t.name,fa.Duplicate_identifier_0,Of(t.name))}}}function DB(e){if(e.declarations&&1===e.declarations.length)return;const n=da(e);if(!n.typeParametersChecked){n.typeParametersChecked=!0;const t=function(e){return x(e.declarations,e=>264===e.kind||265===e.kind)}(e);if(!t||t.length<=1)return;if(!NB(t,Wu(e).localTypeParameters,fc)){const n=hl(e);for(const e of t)Bi(e.name,fa.All_declarations_of_0_must_have_identical_type_parameters,n)}}}function NB(e,n,t){const r=c(n),o=z_(n);for(const i of e){const e=t(i),a=e.length;if(a<o||a>r)return!1;for(let t=0;t<a;t++){const r=e[t],o=n[t];if(r.name.escapedText!==o.symbol.escapedName)return!1;const i=mc(r),a=i&&qS(i),s=um(o);if(a&&s&&!kE(a,s))return!1;const l=r.default&&qS(r.default),c=Rm(o);if(l&&c&&!kE(l,c))return!1}}return!0}function MB(e){const n=!V&&W<Do.ClassAndClassElementDecorators&&vh(!1,e),t=W<Do.PrivateNamesAndClassStaticBlocks||W<Do.ClassAndClassElementDecorators,r=!H;if(n||t)for(const o of e.members){if(n&&bh(!1,o,e))return fe(Nl(e))??e;if(t){if(kD(o))return o;if(Pv(o)&&($c(o)||r&&TG(o)))return o}}}function PB(e){!function(e){const n=Sp(e);(function(e){let n=!1,t=!1;if(!vV(e)&&e.heritageClauses)for(const r of e.heritageClauses){if(96===r.token){if(n)return jV(r,fa.extends_clause_already_seen);if(t)return jV(r,fa.extends_clause_must_precede_implements_clause);if(r.types.length>1)return jV(r.types[1],fa.Classes_can_only_extend_a_single_class);n=!0}else{if(dt.assert(119===r.token),t)return jV(r,fa.implements_clause_already_seen);t=!0}RV(r)}})(e)||SV(e.typeParameters,n)}(e),wW(e),cz(e,e.name),IB(fc(e)),_W(e);const n=Es(e),t=Wu(n),r=Lp(t),o=Vd(n);DB(n),hW(n),function(e){const n=new Map,t=new Map,r=new Map;for(const i of e.members)if(177===i.kind)for(const e of i.parameters)tl(e,i)&&!xd(e.name)&&o(n,e.name,e.name.escapedText,3);else{const e=Pv(i),a=i.name;if(!a)continue;const s=uD(a),l=s&&e?16:0,c=s?r:e?t:n,d=a&&QV(a);if(d)switch(i.kind){case 178:o(c,a,d,1|l);break;case 179:o(c,a,d,2|l);break;case 173:o(c,a,d,3|l);break;case 175:o(c,a,d,8|l)}}function o(e,n,t,r){const o=e.get(t);if(o)if((16&o)!=(16&r))Bi(n,fa.Duplicate_identifier_0_Static_and_instance_elements_cannot_share_the_same_private_name,Zp(n));else{const i=!!(8&o),a=!!(8&r);i||a?i!==a&&Bi(n,fa.Duplicate_identifier_0,Zp(n)):o&r&-17?Bi(n,fa.Duplicate_identifier_0,Zp(n)):e.set(t,o|r)}else e.set(t,r)}}(e);!!(33554432&e.flags)||function(e){for(const n of e.members){const t=n.name;if(Pv(n)&&t){const n=QV(t);switch(n){case"name":case"length":case"caller":case"arguments":if(j)break;case"prototype":Bi(t,fa.Static_property_0_conflicts_with_built_in_property_Function_0_of_constructor_function_1,n,Ul(Es(e)))}}}}(e);const i=Tg(e);if(i){d(i.typeArguments,aG),W<Do.Classes&&gV(i.parent,1);const n=Sg(e);n&&n!==i&&HF(n.expression);const s=gu(t);s.length&&a(()=>{const n=s[0],a=mu(t),l=Vm(a);if(function(e,n){const t=Vh(e,1);if(t.length){const r=t[0].declaration;if(r&&Nv(r,2)){SG(n,vT(e.symbol))||Bi(n,fa.Cannot_extend_a_class_0_Class_constructor_is_marked_as_private,ns(e.symbol))}}}(l,i),aG(i.expression),U(i.typeArguments)){d(i.typeArguments,aG);for(const e of uu(l,i.typeArguments,i))if(!aW(i,e.typeParameters))break}const u=Lp(n,t.thisType);if(UE(r,u,void 0)?UE(o,LE(l),e.name||e,fa.Class_static_side_0_incorrectly_extends_base_class_static_side_1):wB(e,r,u,fa.Class_0_incorrectly_extends_base_class_1),8650752&a.flags)if(iu(o)){Vh(a,1).some(e=>4&e.flags)&&!Mv(e,64)&&Bi(e.name||e,fa.A_mixin_class_that_extends_from_a_type_variable_containing_an_abstract_construct_signature_must_also_be_declared_abstract)}else Bi(e.name||e,fa.A_mixin_class_must_have_a_constructor_with_a_single_rest_parameter_of_type_any);if(!(l.symbol&&32&l.symbol.flags||8650752&a.flags)){d(pu(l,i.typeArguments,i),e=>!Fw(e.declaration)&&!kE(Ag(e),n))&&Bi(i.expression,fa.Base_constructors_must_all_have_the_same_return_type)}!function(e,n){var t,r,o,i,a;const s=cm(n),l=new Map;e:for(const c of s){const s=OB(c);if(4194304&s.flags)continue;const d=sm(e,s.escapedName);if(!d)continue;const u=OB(d),p=lT(s);if(dt.assert(!!u,"derived should point to something, even if it is the base class' declaration."),u===s){const r=vT(e.symbol);if(64&p&&(!r||!Mv(r,64))){for(const t of gu(e)){if(t===n)continue;const e=sm(t,s.escapedName),r=e&&OB(e);if(r&&r!==s)continue e}const o=El(n),i=El(e),a=hl(c),d=re(null==(t=l.get(r))?void 0:t.missedProperties,a);l.set(r,{baseTypeName:o,typeName:i,missedProperties:d})}}else{const t=lT(u);if(2&p||2&t)continue;let l;const c=98308&s.flags,d=98308&u.flags;if(c&&d){if((6&sT(s)?null==(r=s.declarations)?void 0:r.some(e=>FB(e,p)):null==(o=s.declarations)?void 0:o.every(e=>FB(e,p)))||262144&sT(s)||u.valueDeclaration&&MC(u.valueDeclaration))continue;const l=4!==c&&4===d;if(l||4===c&&4!==d){const t=l?fa._0_is_defined_as_an_accessor_in_class_1_but_is_overridden_here_in_2_as_an_instance_property:fa._0_is_defined_as_a_property_in_class_1_but_is_overridden_here_in_2_as_an_accessor;Bi(Dl(u.valueDeclaration)||u.valueDeclaration,t,hl(s),El(n),El(e))}else if(j){const r=null==(i=u.declarations)?void 0:i.find(e=>173===e.kind&&!e.initializer);if(r&&!(33554432&u.flags)&&!(64&p)&&!(64&t)&&!(null==(a=u.declarations)?void 0:a.some(e=>!!(33554432&e.flags)))){const t=Sx(vT(e.symbol)),o=r.name;if(r.exclamationToken||!t||!dD(o)||!X||!zB(o,e,t)){const e=fa.Property_0_will_overwrite_the_base_property_in_1_If_this_is_intentional_add_an_initializer_Otherwise_add_a_declare_modifier_or_remove_the_redundant_declaration;Bi(Dl(u.valueDeclaration)||u.valueDeclaration,e,hl(s),El(n))}}}continue}if(XL(s)){if(XL(u)||4&u.flags)continue;dt.assert(!!(98304&u.flags)),l=fa.Class_0_defines_instance_member_function_1_but_extended_class_2_defines_it_as_instance_member_accessor}else l=98304&s.flags?fa.Class_0_defines_instance_member_accessor_1_but_extended_class_2_defines_it_as_instance_member_function:fa.Class_0_defines_instance_member_property_1_but_extended_class_2_defines_it_as_instance_member_function;Bi(Dl(u.valueDeclaration)||u.valueDeclaration,l,El(n),hl(s),El(e))}}for(const[d,u]of l)if(1===c(u.missedProperties))OC(d)?Bi(d,fa.Non_abstract_class_expression_does_not_implement_inherited_abstract_member_0_from_class_1,he(u.missedProperties),u.baseTypeName):Bi(d,fa.Non_abstract_class_0_does_not_implement_inherited_abstract_member_1_from_class_2,u.typeName,he(u.missedProperties),u.baseTypeName);else if(c(u.missedProperties)>5){const e=D(u.missedProperties.slice(0,4),e=>`'${e}'`).join(", "),n=c(u.missedProperties)-4;OC(d)?Bi(d,fa.Non_abstract_class_expression_is_missing_implementations_for_the_following_members_of_0_Colon_1_and_2_more,u.baseTypeName,e,n):Bi(d,fa.Non_abstract_class_0_is_missing_implementations_for_the_following_members_of_1_Colon_2_and_3_more,u.typeName,u.baseTypeName,e,n)}else{const e=D(u.missedProperties,e=>`'${e}'`).join(", ");OC(d)?Bi(d,fa.Non_abstract_class_expression_is_missing_implementations_for_the_following_members_of_0_Colon_1,u.baseTypeName,e):Bi(d,fa.Non_abstract_class_0_is_missing_implementations_for_the_following_members_of_1_Colon_2,u.typeName,u.baseTypeName,e)}}(t,n)})}!function(e,n,t,r){const o=Tg(e),i=o&&gu(n),a=(null==i?void 0:i.length)?Lp(he(i),n.thisType):void 0,s=mu(n);for(const l of e.members)Ov(l)||(wD(l)&&d(l.parameters,o=>{tl(o,l)&&LB(e,r,s,a,n,t,o,!0)}),LB(e,r,s,a,n,t,l,!1))}(e,t,r,o);const s=Eg(e);if(s)for(const c of s)db(c.expression)&&!bc(c.expression)||Bi(c.expression,fa.A_class_can_only_implement_an_identifier_Slashqualified_name_with_optional_type_arguments),lW(c),a(l(c));function l(n){return()=>{const o=Qm(qS(n));if(!ac(o))if(vu(o)){const n=o.symbol&&32&o.symbol.flags?fa.Class_0_incorrectly_implements_class_1_Did_you_mean_to_extend_1_and_inherit_its_members_as_a_subclass:fa.Class_0_incorrectly_implements_interface_1,i=Lp(o,t.thisType);UE(r,i,void 0)||wB(e,r,i,n)}else Bi(n,fa.A_class_can_only_implement_an_object_type_or_intersection_of_object_types_with_statically_known_members)}}a(()=>{EB(t,n),EB(o,n,!0),QF(e),function(e){if(!X||!Z||33554432&e.flags)return;const n=Sx(e);for(const t of e.members)if(!(128&jv(t))&&!Pv(t)&&WB(t)){const e=t.name;if(dD(e)||uD(e)||RD(e)){const r=Vd(Es(t));3&r.flags||_A(r)||n&&zB(e,r,n)||Bi(t.name,fa.Property_0_has_no_initializer_and_is_not_definitely_assigned_in_the_constructor,Of(e))}}}(e)})}function LB(e,n,t,r,o,i,a,s,l=!0){const c=a.name&&IG(a.name)||IG(a);return c?kB(e,n,t,r,o,i,kv(a),wv(a),Pv(a),s,c,l?a:void 0):0}function kB(e,n,t,r,o,i,a,s,l,c,d,u){const p=Lh(e),f=!!(33554432&e.flags);if(a&&(null==d?void 0:d.valueDeclaration)&&fd(d.valueDeclaration)&&d.valueDeclaration.name&&bp(d.valueDeclaration.name))return Bi(u,p?fa.This_member_cannot_have_a_JSDoc_comment_with_an_override_tag_because_its_name_is_dynamic:fa.This_member_cannot_have_an_override_modifier_because_its_name_is_dynamic),2;if(r&&(a||O.noImplicitOverride)){const e=l?t:r,o=wh(l?n:i,d.escapedName),m=wh(e,d.escapedName),h=El(r);if(o&&!m&&a){if(u){const n=Dk(Tl(d),e);n?Bi(u,p?fa.This_member_cannot_have_a_JSDoc_comment_with_an_override_tag_because_it_is_not_declared_in_the_base_class_0_Did_you_mean_1:fa.This_member_cannot_have_an_override_modifier_because_it_is_not_declared_in_the_base_class_0_Did_you_mean_1,h,hl(n)):Bi(u,p?fa.This_member_cannot_have_a_JSDoc_comment_with_an_override_tag_because_it_is_not_declared_in_the_base_class_0:fa.This_member_cannot_have_an_override_modifier_because_it_is_not_declared_in_the_base_class_0,h)}return 2}if(o&&(null==m?void 0:m.declarations)&&O.noImplicitOverride&&!f){const e=U(m.declarations,wv);if(a)return 0;if(!e){if(u){Bi(u,c?p?fa.This_parameter_property_must_have_a_JSDoc_comment_with_an_override_tag_because_it_overrides_a_member_in_the_base_class_0:fa.This_parameter_property_must_have_an_override_modifier_because_it_overrides_a_member_in_base_class_0:p?fa.This_member_must_have_a_JSDoc_comment_with_an_override_tag_because_it_overrides_a_member_in_the_base_class_0:fa.This_member_must_have_an_override_modifier_because_it_overrides_a_member_in_the_base_class_0,h)}return 1}if(s&&e)return u&&Bi(u,fa.This_member_must_have_an_override_modifier_because_it_overrides_an_abstract_method_that_is_declared_in_the_base_class_0,h),1}}else if(a){if(u){const e=El(o);Bi(u,p?fa.This_member_cannot_have_a_JSDoc_comment_with_an_override_tag_because_its_containing_class_0_does_not_extend_another_class:fa.This_member_cannot_have_an_override_modifier_because_its_containing_class_0_does_not_extend_another_class,e)}return 2}return 0}function wB(e,n,t,r){let o=!1;for(const i of e.members){if(Pv(i))continue;const e=i.name&&IG(i.name)||IG(i);if(e){const r=wh(n,e.escapedName),a=wh(t,e.escapedName);if(r&&a){const s=()=>rS(void 0,fa.Property_0_in_type_1_is_not_assignable_to_the_same_property_in_base_type_2,hl(e),El(n),El(t));UE(Vd(r),Vd(a),i.name||i,void 0,s)||(o=!0)}}}o||UE(n,t,e.name||e,r)}function OB(e){return 1&sT(e)?e.links.target:e}function FB(e,n){return 64&n&&(!MD(e)||!e.initializer)||gN(e.parent)}function WB(e){return 173===e.kind&&!wv(e)&&!e.exclamationToken&&!e.initializer}function zB(e,n,t){const r=RD(e)?vR.createElementAccessExpression(vR.createThis(),e.expression):vR.createPropertyAccessExpression(vR.createThis(),e);PA(r.expression,r),PA(r,t),r.flowNode=t.returnFlowNode;return!_A(kN(r,n,IR(n)))}function BB(e){vV(e)||function(e){let n=!1;if(e.heritageClauses)for(const t of e.heritageClauses){if(96!==t.token)return dt.assert(119===t.token),jV(t,fa.Interface_declaration_cannot_have_implements_clause);if(n)return jV(t,fa.extends_clause_already_seen);n=!0,RV(t)}}(e),GV(e.parent)||HV(e,fa._0_declarations_can_only_be_declared_inside_a_block,"interface"),IB(e.typeParameters),a(()=>{RB(e.name,fa.Interface_name_cannot_be_0),_W(e);const n=Es(e);DB(n);const t=Yu(n,265);if(e===t){const t=Wu(n),r=Lp(t);if(function(e,n){const t=gu(e);if(t.length<2)return!0;const r=new Map;d(dp(e).declaredProperties,n=>{r.set(n.escapedName,{prop:n,containingType:e})});let o=!0;for(const i of t){const t=cm(Lp(i,e.thisType));for(const a of t){const t=r.get(a.escapedName);if(t){if(t.containingType!==e&&!Bx(t.prop,a)){o=!1;const r=El(t.containingType),s=El(i);let l=rS(void 0,fa.Named_property_0_of_types_1_and_2_are_not_identical,hl(a),r,s);l=rS(l,fa.Interface_0_cannot_simultaneously_extend_types_1_and_2,El(e),r,s),gi.add(Hf(Sp(n),n,l))}}else r.set(a.escapedName,{prop:a,containingType:i})}}return o}(t,e.name)){for(const n of gu(t))UE(r,Lp(n,t.thisType),e.name,fa.Interface_0_incorrectly_extends_interface_1);EB(t,n)}}$F(e)}),d(xg(e),e=>{db(e.expression)&&!bc(e.expression)||Bi(e.expression,fa.An_interface_can_only_extend_an_identifier_Slashqualified_name_with_optional_type_arguments),lW(e)}),d(e.members,aG),a(()=>{QF(e),WW(e)})}function GB(e){const n=ua(e);if(!(1024&n.flags)){n.flags|=1024;let t,r=0;for(const n of e.members){const e=VB(n,r,t);ua(n).enumMemberValue=e,r="number"==typeof e.value?e.value+1:void 0,t=n}}}function VB(e,n,t){if(Wf(e.name))Bi(e.name,fa.Computed_property_names_are_not_allowed_in_enums);else if(KI(e.name))Bi(e.name,fa.An_enum_member_cannot_have_a_numeric_name);else{const n=Bf(e.name);UA(n)&&!BA(n)&&Bi(e.name,fa.An_enum_member_cannot_have_a_numeric_name)}if(e.initializer)return function(e){const n=im(e.parent),t=e.initializer,r=Re(t,e);void 0!==r.value?n&&"number"==typeof r.value&&!isFinite(r.value)?Bi(t,isNaN(r.value)?fa.const_enum_member_initializer_was_evaluated_to_disallowed_value_NaN:fa.const_enum_member_initializer_was_evaluated_to_a_non_finite_value):RS(O)&&"string"==typeof r.value&&!r.isSyntacticallyString&&Bi(t,fa._0_has_a_string_type_but_must_have_syntactically_recognizable_string_syntax_when_isolatedModules_is_enabled,`${vl(e.parent.name)}.${Bf(e.name)}`):n?Bi(t,fa.const_enum_member_initializers_must_be_constant_expressions):33554432&e.parent.flags?Bi(t,fa.In_ambient_enum_declarations_member_initializer_must_be_constant_expression):UE(HF(t),Kn,t,fa.Type_0_is_not_assignable_to_type_1_as_required_for_computed_enum_member_values);return r}(e);if(33554432&e.parent.flags&&!im(e.parent))return vx(void 0);if(void 0===n)return Bi(e.name,fa.Enum_member_must_have_initializer),vx(void 0);if(RS(O)&&(null==t?void 0:t.initializer)){const n=QG(t);("number"!=typeof n.value||n.resolvedOtherFiles)&&Bi(e.name,fa.Enum_member_following_a_non_literal_numeric_member_must_have_an_initializer_when_isolatedModules_is_enabled)}return vx(n)}function jB(e,n){const t=ts(e,111551,!0);if(!t)return vx(void 0);if(80===e.kind){const n=e;if(BA(n.escapedText)&&t===ev(n.escapedText,111551,void 0))return vx(+n.escapedText,!1)}if(8&t.flags)return n?UB(e,t,n):QG(t.valueDeclaration);if(rM(t)){const e=t.valueDeclaration;if(e&&fN(e)&&!e.type&&e.initializer&&(!n||e!==n&&ma(e,n))){const t=Re(e.initializer,e);return n&&Sp(n)!==Sp(e)?vx(t.value,!1,!0,!0):vx(t.value,t.isSyntacticallyString,t.resolvedOtherFiles,!0)}}return vx(void 0)}function UB(e,n,t){const r=n.valueDeclaration;if(!r||r===t)return Bi(e,fa.Property_0_is_used_before_being_assigned,hl(n)),vx(void 0);if(!ma(r,t))return Bi(e,fa.A_member_initializer_in_a_enum_declaration_cannot_reference_members_declared_after_it_including_members_defined_in_other_enums),vx(0);const o=QG(r);return t.parent!==r.parent?vx(o.value,o.isSyntacticallyString,o.resolvedOtherFiles,!0):o}function HB(e){a(()=>function(e){vV(e),cz(e,e.name),_W(e),e.members.forEach(aG),!O.erasableSyntaxOnly||33554432&e.flags||Bi(e,fa.This_syntax_is_not_allowed_when_erasableSyntaxOnly_is_enabled);GB(e);const n=Es(e),t=Yu(n,e.kind);if(e===t){if(n.declarations&&n.declarations.length>1){const t=im(e);d(n.declarations,e=>{vN(e)&&im(e)!==t&&Bi(Dl(e),fa.Enum_declarations_must_all_be_const_or_non_const)})}let t=!1;d(n.declarations,e=>{if(267!==e.kind)return!1;const n=e;if(!n.members.length)return!1;const r=n.members[0];r.initializer||(t?Bi(r.name,fa.In_an_enum_with_multiple_declarations_only_one_declaration_can_omit_an_initializer_for_its_first_enum_element):t=!0)})}}(e))}function KB(n){n.body&&(aG(n.body),gf(n)||WW(n)),a(function(){var t,r;const o=gf(n),i=33554432&n.flags;o&&!i&&Bi(n.name,fa.Augmentations_for_the_global_scope_should_have_declare_modifier_unless_they_appear_in_already_ambient_context);const a=pf(n),s=a?fa.An_ambient_module_declaration_is_only_allowed_at_the_top_level_in_a_file:fa.A_namespace_declaration_is_only_allowed_at_the_top_level_of_a_namespace_or_module;if(tG(n,s))return;vV(n)||i||11!==n.name.kind||HV(n.name,fa.Only_ambient_modules_can_use_quoted_names);if(dD(n.name)&&(cz(n,n.name),!(2080&n.flags))){const e=Sp(n),t=Zf(e,Kp(n));yi.add(ZT(e,t.start,t.length,fa.A_namespace_declaration_should_not_be_declared_using_the_module_keyword_Please_use_the_namespace_keyword_instead))}_W(n);const l=Es(n);if(512&l.flags&&!i&&uB(n,LS(O))){if(O.erasableSyntaxOnly&&Bi(n.name,fa.This_syntax_is_not_allowed_when_erasableSyntaxOnly_is_enabled),RS(O)&&!Sp(n).externalModuleIndicator&&Bi(n.name,fa.Namespaces_are_not_allowed_in_global_script_files_when_0_is_enabled_If_this_file_is_not_intended_to_be_a_global_script_set_moduleDetection_to_force_or_add_an_empty_export_statement,Fe),(null==(t=l.declarations)?void 0:t.length)>1){const e=function(e){const n=e.declarations;if(n)for(const t of n)if((264===t.kind||263===t.kind&&Mp(t.body))&&!(33554432&t.flags))return t}(l);e&&(Sp(n)!==Sp(e)?Bi(n.name,fa.A_namespace_declaration_cannot_be_in_a_different_file_from_a_class_or_function_with_which_it_is_merged):n.pos<e.pos&&Bi(n.name,fa.A_namespace_declaration_cannot_be_located_prior_to_a_class_or_function_with_which_it_is_merged));const t=Yu(l,264);t&&function(e,n){const t=kf(e),r=kf(n);return tm(t)?tm(r):!tm(r)&&t===r}(n,t)&&(ua(n).flags|=2048)}if(O.verbatimModuleSyntax&&308===n.parent.kind&&1===e.getEmitModuleFormatOfFile(n.parent)){const e=null==(r=n.modifiers)?void 0:r.find(e=>95===e.kind);e&&Bi(e,fa.A_top_level_export_modifier_cannot_be_used_on_value_declarations_in_a_CommonJS_module_when_verbatimModuleSyntax_is_enabled)}}if(a)if(yf(n)){if((o||33554432&Es(n).flags)&&n.body)for(const e of n.body.statements)qB(e,o)}else tm(n.parent)?o?Bi(n.name,fa.Augmentations_for_the_global_scope_can_only_be_directly_nested_in_external_modules_or_ambient_module_declarations):Ds(Hg(n.name))&&Bi(n.name,fa.Ambient_module_declaration_cannot_specify_relative_module_name):Bi(n.name,o?fa.Augmentations_for_the_global_scope_can_only_be_directly_nested_in_external_modules_or_ambient_module_declarations:fa.Ambient_modules_cannot_be_nested_in_other_modules_or_namespaces)})}function qB(e,n){switch(e.kind){case 244:for(const r of e.declarationList.declarations)qB(r,n);break;case 278:case 279:jV(e,fa.Exports_and_export_assignments_are_not_permitted_in_module_augmentations);break;case 272:if(Nh(e))break;case 273:jV(e,fa.Imports_are_not_permitted_in_module_augmentations_Consider_moving_them_to_the_enclosing_external_module);break;case 209:case 261:const t=e.name;if(xd(t)){for(const e of t.elements)qB(e,n);break}case 264:case 267:case 263:case 265:case 268:case 266:if(n)return}}function JB(e){const n=x_(e);if(!n||Np(n))return!1;if(!qI(n))return Bi(n,fa.String_literal_expected),!1;const t=269===e.parent.kind&&pf(e.parent.parent);if(308!==e.parent.kind&&!t)return Bi(n,279===e.kind?fa.Export_declarations_are_not_permitted_in_a_namespace:fa.Import_declarations_in_a_namespace_cannot_reference_a_module),!1;if(t&&Ds(n.text)&&!Bl(e))return Bi(e,fa.Import_or_export_declaration_in_an_ambient_module_declaration_cannot_reference_module_through_relative_module_name),!1;if(!AN(e)&&e.attributes){const n=118===e.attributes.token?fa.Import_attribute_values_must_be_string_literal_expressions:fa.Import_assertion_values_must_be_string_literal_expressions;let t=!1;for(const r of e.attributes.elements)qI(r.value)||(t=!0,Bi(r.value,n));return!t}return!0}function XB(e,n=!0){void 0!==e&&11===e.kind&&(n?5!==G&&6!==G||HV(e,fa.String_literal_import_and_export_names_are_not_supported_when_the_module_flag_is_set_to_es2015_or_es2020):HV(e,fa.Identifier_expected))}function YB(n){var t,r,o,i,a;let s=Es(n);const l=Ja(s);if(l!==Sn){if(s=Ss(s.exportSymbol||s),Lh(n)&&!(111551&l.flags)&&!Uc(n)){const e=Gc(n)?n.propertyName||n.name:Rl(n)?n.name:n;if(dt.assert(281!==n.kind),282===n.kind){const i=Bi(e,fa.Types_cannot_appear_in_export_declarations_in_JavaScript_files),a=null==(r=null==(t=Sp(n).symbol)?void 0:t.exports)?void 0:r.get(Yp(n.propertyName||n.name));if(a===l){const e=null==(o=a.declarations)?void 0:o.find(Ru);e&&dA(i,Vf(e,fa._0_is_automatically_exported_here,yl(a.escapedName)))}}else{dt.assert(261!==n.kind);const t=ml(n,et(xN,AN)),r=(t&&(null==(i=T_(t))?void 0:i.text))??"...",o=yl(dD(e)?e.escapedText:s.escapedName);Bi(e,fa._0_is_a_type_and_cannot_be_imported_in_JavaScript_files_Use_1_in_a_JSDoc_type_annotation,o,`import("${r}").${o}`)}return}const c=Xa(l);if(c&((1160127&s.flags?111551:0)|(788968&s.flags?788968:0)|(1920&s.flags?1920:0))){Bi(n,282===n.kind?fa.Export_declaration_conflicts_with_exported_declaration_of_0:fa.Import_declaration_conflicts_with_local_declaration_of_0,hl(s))}else if(282!==n.kind){O.isolatedModules&&!ml(n,Uc)&&1160127&s.flags&&Bi(n,fa.Import_0_conflicts_with_local_value_so_must_be_declared_with_a_type_only_import_when_isolatedModules_is_enabled,hl(s),Fe)}if(RS(O)&&!Uc(n)&&!(33554432&n.flags)){const t=Qa(s),r=!(111551&c);if(r||t)switch(n.kind){case 274:case 277:case 272:if(O.verbatimModuleSyntax){dt.assertIsDefined(n.name,"An ImportClause with a symbol should have a name");const e=O.verbatimModuleSyntax&&Nh(n)?fa.An_import_alias_cannot_resolve_to_a_type_or_type_only_declaration_when_verbatimModuleSyntax_is_enabled:r?fa._0_is_a_type_and_must_be_imported_using_a_type_only_import_when_verbatimModuleSyntax_is_enabled:fa._0_resolves_to_a_type_only_declaration_and_must_be_imported_using_a_type_only_import_when_verbatimModuleSyntax_is_enabled,o=Xp(277===n.kind&&n.propertyName||n.name);ga(Bi(n,e,o),r?void 0:t,o)}r&&272===n.kind&&Nv(n,32)&&Bi(n,fa.Cannot_use_export_import_on_a_type_or_type_only_namespace_when_0_is_enabled,Fe);break;case 282:if(O.verbatimModuleSyntax||Sp(t)!==Sp(n)){const e=Xp(n.propertyName||n.name);ga(r?Bi(n,fa.Re_exporting_a_type_when_0_is_enabled_requires_using_export_type,Fe):Bi(n,fa._0_resolves_to_a_type_only_declaration_and_must_be_re_exported_using_a_type_only_re_export_when_1_is_enabled,e,Fe),r?void 0:t,e);break}}if(O.verbatimModuleSyntax&&272!==n.kind&&!Lh(n)&&1===e.getEmitModuleFormatOfFile(Sp(n))?Bi(n,Gi(n)):200===G&&272!==n.kind&&261!==n.kind&&1===e.getEmitModuleFormatOfFile(Sp(n))&&Bi(n,fa.ECMAScript_module_syntax_is_not_allowed_in_a_CommonJS_module_when_module_is_set_to_preserve),O.verbatimModuleSyntax&&!Uc(n)&&!(33554432&n.flags)&&128&c){const t=l.valueDeclaration,r=null==(a=e.getRedirectFromOutput(Sp(t).resolvedPath))?void 0:a.resolvedRef;!(33554432&t.flags)||r&&LS(r.commandLine.options)||Bi(n,fa.Cannot_access_ambient_const_enums_when_0_is_enabled,Fe)}}if(wN(n)){const e=$B(s,n);qi(e)&&e.declarations&&Xi(n,e.declarations,e.escapedName)}}}function $B(e,n){if(!(2097152&e.flags)||qi(e)||!xa(e))return e;const t=Ja(e);if(t===Sn)return t;for(;2097152&e.flags;){const r=gL(e);if(!r)break;if(r===t)break;if(r.declarations&&c(r.declarations)){if(qi(r)){Xi(n,r.declarations,r.escapedName);break}if(e===t)break;e=r}}return t}function QB(n){cz(n,n.name),YB(n),277===n.kind&&(XB(n.propertyName),$p(n.propertyName||n.name)&&IS(O)&&e.getEmitModuleFormatOfFile(Sp(n))<4&&gV(n,131072))}function ZB(e){var n;const t=e.attributes;if(t){const r=av(!0);r!==It&&UE(id(t),RR(r,32768),t);const o=bU(e),i=AU(t,o?HV:void 0),a=118===e.attributes.token;if(o&&i)return;if(!jS(G))return HV(t,a?fa.Import_attributes_are_only_supported_when_the_module_option_is_set_to_esnext_node18_node20_nodenext_or_preserve:fa.Import_assertions_are_only_supported_when_the_module_option_is_set_to_esnext_node18_node20_nodenext_or_preserve);if(102<=G&&G<=199&&!a)return jV(t,fa.Import_assertions_have_been_replaced_by_import_attributes_Use_with_instead_of_assert);if(e.moduleSpecifier&&1===Ma(e.moduleSpecifier))return HV(t,a?fa.Import_attributes_are_not_allowed_on_statements_that_compile_to_CommonJS_require_calls:fa.Import_assertions_are_not_allowed_on_statements_that_compile_to_CommonJS_require_calls);if(eP(e)||(xN(e)?null==(n=e.importClause)?void 0:n.isTypeOnly:e.isTypeOnly))return HV(t,a?fa.Import_attributes_cannot_be_used_with_type_only_imports_or_exports:fa.Import_assertions_cannot_be_used_with_type_only_imports_or_exports);if(i)return HV(t,fa.resolution_mode_can_only_be_set_for_type_only_imports)}}function eG(n){if(!tG(n,Lh(n)?fa.An_import_declaration_can_only_be_used_at_the_top_level_of_a_module:fa.An_import_declaration_can_only_be_used_at_the_top_level_of_a_namespace_or_module)){if(!vV(n)&&n.modifiers&&jV(n,fa.An_import_declaration_cannot_have_modifiers),JB(n)){let t;const r=n.importClause;r&&!function(e){var n,t;if(156===e.phaseModifier){if(e.name&&e.namedBindings)return HV(e,fa.A_type_only_import_can_specify_a_default_import_or_named_bindings_but_not_both);if(276===(null==(n=e.namedBindings)?void 0:n.kind))return YV(e.namedBindings)}else if(166===e.phaseModifier){if(e.name)return HV(e,fa.Default_imports_are_not_allowed_in_a_deferred_import);if(276===(null==(t=e.namedBindings)?void 0:t.kind))return HV(e,fa.Named_imports_are_not_allowed_in_a_deferred_import);if(99!==G&&200!==G)return HV(e,fa.Deferred_imports_are_only_supported_when_the_module_flag_is_set_to_esnext_or_preserve)}return!1}(r)?(r.name&&QB(r),r.namedBindings&&(275===r.namedBindings.kind?(QB(r.namedBindings),e.getEmitModuleFormatOfFile(Sp(n))<4&&IS(O)&&gV(n,65536)):(t=os(n,n.moduleSpecifier),t&&d(r.namedBindings.elements,QB))),!r.isTypeOnly&&101<=G&&G<=199&&La(n.moduleSpecifier,t)&&!function(e){return!!e.attributes&&e.attributes.elements.some(e=>{var n;return"type"===Hg(e.name)&&"json"===(null==(n=en(e.value,zu))?void 0:n.text)})}(n)&&Bi(n.moduleSpecifier,fa.Importing_a_JSON_file_into_an_ECMAScript_module_requires_a_type_Colon_json_import_attribute_when_module_is_set_to_0,mo[G])):pe&&!r&&os(n,n.moduleSpecifier)}ZB(n)}}function nG(n){if(!tG(n,Lh(n)?fa.An_export_declaration_can_only_be_used_at_the_top_level_of_a_module:fa.An_export_declaration_can_only_be_used_at_the_top_level_of_a_namespace_or_module)){if(!vV(n)&&Cv(n)&&jV(n,fa.An_export_declaration_cannot_have_modifiers),function(e){var n;if(e.isTypeOnly&&280===(null==(n=e.exportClause)?void 0:n.kind))return YV(e.exportClause)}(n),!n.moduleSpecifier||JB(n))if(n.exportClause&&!LN(n.exportClause)){d(n.exportClause.elements,rG);const e=269===n.parent.kind&&pf(n.parent.parent),t=!e&&269===n.parent.kind&&!n.moduleSpecifier&&33554432&n.flags;308===n.parent.kind||e||t||Bi(n,fa.Export_declarations_are_not_permitted_in_a_namespace)}else{const t=os(n,n.moduleSpecifier);t&&ps(t)?Bi(n.moduleSpecifier,fa.Module_0_uses_export_and_cannot_be_used_with_export_Asterisk,hl(t)):n.exportClause&&(YB(n.exportClause),XB(n.exportClause.name)),e.getEmitModuleFormatOfFile(Sp(n))<4&&(n.exportClause?IS(O)&&gV(n,65536):gV(n,32768))}ZB(n)}}function tG(e,n){const t=308===e.parent.kind||269===e.parent.kind||268===e.parent.kind;return t||jV(e,n),!t}function rG(n){YB(n);const t=void 0!==n.parent.parent.moduleSpecifier;if(XB(n.propertyName,t),XB(n.name),PS(O)&&Kl(n.propertyName||n.name,!0),t)IS(O)&&e.getEmitModuleFormatOfFile(Sp(n))<4&&$p(n.propertyName||n.name)&&gV(n,131072);else{const e=n.propertyName||n.name;if(11===e.kind)return;const t=je(e,e.escapedText,2998271,void 0,!0);t&&(t===De||t===Ce||t.declarations&&tm(Ql(t.declarations[0])))?Bi(e,fa.Cannot_export_0_Only_local_declarations_can_be_exported_from_a_module,vl(e)):EM(n,7)}}function oG(e){const n=Es(e),t=da(n);if(!t.exportsChecked){const e=n.exports.get("export=");if(e&&function(e){return ap(e.exports,(e,n)=>"export="!==n)}(n)){const n=xa(e)||e.valueDeclaration;!n||Bl(n)||Lh(n)||Bi(n,fa.An_export_assignment_cannot_be_used_in_a_module_with_other_exported_elements)}const r=gs(n);r&&r.forEach(({declarations:e,flags:n},t)=>{if("__export"===t)return;if(1920&n)return;const r=A(e,Zn(iB,nt(gN)));if(!(524288&n&&r<=2)&&r>1&&!iG(e))for(const o of e)fB(o)&&gi.add(Vf(o,fa.Cannot_redeclare_exported_variable_0,yl(t)))}),t.exportsChecked=!0}}function iG(e){return e&&e.length>1&&e.every(e=>Lh(e)&&IT(e)&&(n_(e.expression)||r_(e.expression)))}function aG(t){if(t){const o=r;r=t,E=0,function(t){if(8388608&YG(t))return;W_(t)&&d(t.jsDoc,({comment:e,tags:n})=>{sG(e),d(n,e=>{sG(e.comment),Lh(t)&&aG(e)})});const r=t.kind;if(n)switch(r){case 268:case 264:case 265:case 263:n.throwIfCancellationRequested()}r>=244&&r<=260&&F_(t)&&t.flowNode&&!IN(t.flowNode)&&Ui(!1===O.allowUnreachableCode,t,fa.Unreachable_code_detected);switch(r){case 169:return KF(t);case 170:return qF(t);case 173:return ZF(t);case 172:return function(e){return uD(e.name)&&Bi(e,fa.Private_identifiers_are_not_allowed_outside_class_bodies),ZF(e)}(t);case 186:case 185:case 180:case 181:case 182:return XF(t);case 175:case 174:return function(e){wV(e)||DV(e.name),LD(e)&&e.asteriskToken&&dD(e.name)&&"constructor"===vl(e.name)&&Bi(e.name,fa.Class_constructor_may_not_be_a_generator),FW(e),Mv(e,64)&&175===e.kind&&e.body&&Bi(e,fa.Method_0_cannot_have_an_implementation_because_it_is_marked_abstract,Of(e.name)),uD(e.name)&&!Zm(e)&&Bi(e,fa.Private_identifiers_are_not_allowed_outside_class_bodies),eW(e)}(t);case 176:return function(e){vV(e),rk(e,aG)}(t);case 177:return nW(t);case 178:case 179:return rW(t);case 184:return lW(t);case 183:return function(e){const n=function(e){switch(e.parent.kind){case 220:case 180:case 263:case 219:case 185:case 175:case 174:const n=e.parent;if(e===n.type)return n}}(e);if(!n)return void Bi(e,fa.A_type_predicate_is_only_allowed_in_return_type_position_for_functions_and_methods);const t=G_(n),r=fg(t);if(!r)return;aG(e.type);const{parameterName:o}=e;if(0!==r.kind&&2!==r.kind)if(r.parameterIndex>=0){if(_B(t)&&r.parameterIndex===t.parameters.length-1)Bi(o,fa.A_type_predicate_cannot_reference_a_rest_parameter);else if(r.type){const n=()=>rS(void 0,fa.A_type_predicate_s_type_must_be_assignable_to_its_parameter_s_type);UE(r.type,Vd(t.parameters[r.parameterIndex]),e.type,void 0,n)}}else if(o){let t=!1;for(const{name:e}of n.parameters)if(xd(e)&&JF(e,o,r.parameterName)){t=!0;break}t||Bi(e.parameterName,fa.Cannot_find_parameter_0,r.parameterName)}}(t);case 187:return function(e){Jy(e)}(t);case 188:return function(e){d(e.members,aG),a(function(){const n=uS(e);EB(n,n.symbol),QF(e),$F(e)})}(t);case 189:return function(e){aG(e.elementType)}(t);case 190:return function(e){let n=!1,t=!1;for(const r of e.elements){let e=Xv(r);if(8&e){const n=qS(r.type);if(!$x(n)){Bi(r,fa.A_rest_element_type_must_be_an_array_type);break}(Kx(n)||mR(n)&&4&n.target.combinedFlags)&&(e|=4)}if(4&e){if(t){HV(r,fa.A_rest_element_cannot_follow_another_rest_element);break}t=!0}else if(2&e){if(t){HV(r,fa.An_optional_element_cannot_follow_a_rest_element);break}n=!0}else if(1&e&&n){HV(r,fa.A_required_element_cannot_follow_an_optional_element);break}}d(e.elements,aG),qS(e)}(t);case 193:case 194:return function(e){d(e.types,aG),qS(e)}(t);case 197:case 191:case 192:return aG(t.type);case 198:return function(e){GS(e)}(t);case 199:return pW(t);case 195:return function(e){rk(e,aG)}(t);case 196:return function(e){ml(e,e=>e.parent&&195===e.parent.kind&&e.parent.extendsType===e)||HV(e,fa.infer_declarations_are_only_permitted_in_the_extends_clause_of_a_conditional_type),aG(e.typeParameter);const n=Es(e.typeParameter);if(n.declarations&&n.declarations.length>1){const e=da(n);if(!e.typeParametersChecked){e.typeParametersChecked=!0;const t=Fu(n),r=$u(n,169);if(!NB(r,[t],e=>[e])){const e=hl(n);for(const n of r)Bi(n.name,fa.All_declarations_of_0_must_have_identical_constraints,e)}}}WW(e)}(t);case 204:return function(e){for(const n of e.templateSpans)aG(n.type),UE(qS(n.type),vt,n.type);qS(e)}(t);case 206:return function(e){aG(e.argument),e.attributes&&AU(e.attributes,HV),cW(e)}(t);case 203:return function(e){e.dotDotDotToken&&e.questionToken&&HV(e,fa.A_tuple_member_cannot_be_both_optional_and_rest),191===e.type.kind&&HV(e.type,fa.A_labeled_tuple_element_is_declared_as_optional_with_a_question_mark_after_the_name_and_before_the_colon_rather_than_after_the_type),192===e.type.kind&&HV(e.type,fa.A_labeled_tuple_element_is_declared_as_rest_with_a_before_the_name_rather_than_before_the_type),aG(e.type),qS(e)}(t);case 329:return function(e){const n=K_(e);if(!n||!_N(n)&&!OC(n))return void Bi(n,fa.JSDoc_0_is_not_attached_to_a_class,vl(e.tagName));const t=lc(n).filter(NM);dt.assert(t.length>0),t.length>1&&Bi(t[1],fa.Class_declarations_cannot_have_more_than_one_augments_or_extends_tag);const r=OW(e.class.expression),o=Sg(n);if(o){const n=OW(o.expression);n&&r.escapedText!==n.escapedText&&Bi(r,fa.JSDoc_0_1_does_not_match_the_extends_2_clause,vl(e.tagName),vl(r),vl(n))}}(t);case 330:return function(e){const n=K_(e);n&&(_N(n)||OC(n))||Bi(n,fa.JSDoc_0_is_not_attached_to_a_class,vl(e.tagName))}(t);case 347:case 339:case 341:return function(e){e.typeExpression||Bi(e.name,fa.JSDoc_typedef_tag_should_either_have_a_type_annotation_or_be_followed_by_property_or_member_tags),e.name&&RB(e.name,fa.Type_alias_name_cannot_be_0),aG(e.typeExpression),IB(fc(e))}(t);case 346:return function(e){aG(e.constraint);for(const n of e.typeParameters)aG(n)}(t);case 345:return function(e){aG(e.typeExpression)}(t);case 325:case 326:case 327:return function(e){e.name&&RG(e.name,!0)}(t);case 342:case 349:return function(e){aG(e.typeExpression)}(t);case 318:!function(e){a(function(){e.type||N_(e)||$R(e,In)}),XF(e)}(t);case 316:case 315:case 313:case 314:case 323:return lG(t),void rk(t,aG);case 319:return void function(e){lG(e),aG(e.type);const{parent:n}=e;if(DD(n)&&AM(n.parent))return void(ye(n.parent.parameters)!==n&&Bi(e,fa.A_rest_parameter_must_be_last_in_a_parameter_list));fM(n)||Bi(e,fa.JSDoc_may_only_appear_in_the_last_parameter_of_a_signature);const t=e.parent.parent;if(!jM(t))return void Bi(e,fa.JSDoc_may_only_appear_in_the_last_parameter_of_a_signature);const r=V_(t);if(!r)return;const o=H_(t);o&&ye(o.parameters).symbol===r||Bi(e,fa.A_rest_parameter_must_be_last_in_a_parameter_list)}(t);case 310:return aG(t.type);case 334:case 336:case 335:return function(e){const n=q_(e);n&&$c(n)&&Bi(e,fa.An_accessibility_modifier_cannot_be_used_with_a_private_identifier)}(t);case 351:return function(e){aG(e.typeExpression);const n=K_(e);if(n){const e=dc(n,QM);if(c(e)>1)for(let n=1;n<c(e);n++){const t=e[n].tagName;Bi(t,fa._0_tag_already_specified,vl(t))}}}(t);case 344:return function(e){const n=K_(e);n&&AC(n)&&Bi(e.tagName,fa.An_arrow_function_cannot_have_a_this_parameter)}(t);case 352:return function(e){ZB(e)}(t);case 200:return function(e){aG(e.objectType),aG(e.indexType),dW(KT(e),e)}(t);case 201:return uW(t);case 263:return function(e){a(function(){FW(e),CV(e),cz(e,e.name)})}(t);case 242:case 269:return nz(t);case 244:return yz(t);case 245:return function(e){JV(e),HF(e.expression)}(t);case 246:return function(e){JV(e);const n=Ez(e.expression);vz(e.expression,n,e.thenStatement),aG(e.thenStatement),243===e.thenStatement.kind&&Bi(e.thenStatement,fa.The_body_of_an_if_statement_cannot_be_the_empty_statement),aG(e.elseStatement)}(t);case 247:return function(e){JV(e),aG(e.statement),Ez(e.expression)}(t);case 248:return function(e){JV(e),Ez(e.expression),aG(e.statement)}(t);case 249:return function(e){JV(e)||e.initializer&&262===e.initializer.kind&&BV(e.initializer),e.initializer&&(262===e.initializer.kind?gz(e.initializer):HF(e.initializer)),e.condition&&Ez(e.condition),e.incrementor&&HF(e.incrementor),aG(e.statement),e.locals&&WW(e)}(t);case 250:return Az(t);case 251:return function(e){PV(e);const n=nh(e);e.awaitModifier?n&&kD(n)?HV(e.awaitModifier,fa.for_await_loops_cannot_be_used_inside_a_class_static_block):2==(6&Fg(n))&&W<Do.ForAwaitOf&&gV(e,16384):O.downlevelIteration&&W<Do.ForOf&&gV(e,256);if(262===e.initializer.kind)gz(e.initializer);else{const n=e.initializer,t=xz(e);if(210===n.kind||211===n.kind)mF(n,t||Mn);else{const r=HF(n);eF(n,fa.The_left_hand_side_of_a_for_of_statement_must_be_a_variable_or_a_property_access,fa.The_left_hand_side_of_a_for_of_statement_may_not_be_an_optional_property_access),t&&HE(t,r,n,e.expression)}}aG(e.statement),e.locals&&WW(e)}(t);case 252:case 253:return rB(t);case 254:return function(e){if(JV(e))return;const n=nh(e);if(n&&kD(n))return void jV(e,fa.A_return_statement_cannot_be_used_inside_a_class_static_block);if(!n)return void jV(e,fa.A_return_statement_can_only_be_used_within_a_function_body);const t=Ag(G_(n));if(X||e.expression||131072&t.flags){const r=e.expression?EF(e.expression):Fn;if(179===n.kind)e.expression&&Bi(e,fa.Setters_cannot_return_a_value);else if(177===n.kind){const n=e.expression?EF(e.expression):Fn;e.expression&&!HE(n,t,e,e.expression)&&Bi(e,fa.Return_type_of_constructor_signature_must_be_assignable_to_the_instance_type_of_the_class)}else Rg(n)&&TB(n,oB(t,Fg(n))??t,e,e.expression,r)}else 177!==n.kind&&O.noImplicitReturns&&!pB(n,t)&&Bi(e,fa.Not_all_code_paths_return_a_value)}(t);case 255:return function(e){JV(e)||65536&e.flags&&jV(e,fa.with_statements_are_not_allowed_in_an_async_function_block),HF(e.expression);const n=Sp(e);if(!VV(n)){const t=Zf(n,e.pos).start;UV(n,t,e.statement.pos-t,fa.The_with_statement_is_not_supported_All_symbols_in_a_with_block_will_have_type_any)}}(t);case 256:return function(e){let n;JV(e);let t=!1;const r=HF(e.expression);d(e.caseBlock.clauses,e=>{var o;298!==e.kind||t||(void 0===n?n=e:(HV(e,fa.A_default_clause_cannot_appear_more_than_once_in_a_switch_statement),t=!0)),297===e.kind&&a((o=e,()=>{const e=HF(o.expression);_F(r,e)||nA(e,r,o.expression,void 0)})),d(e.statements,aG),O.noFallthroughCasesInSwitch&&e.fallthroughFlowNode&&IN(e.fallthroughFlowNode)&&Bi(e,fa.Fallthrough_case_in_switch)}),e.caseBlock.locals&&WW(e.caseBlock)}(t);case 257:return function(e){JV(e)||ml(e.parent,n=>ad(n)?"quit":257===n.kind&&n.label.escapedText===e.label.escapedText&&(HV(e.label,fa.Duplicate_label_0,Zp(e.label)),!0)),aG(e.statement)}(t);case 258:return SB(t);case 259:return function(e){JV(e),nz(e.tryBlock);const n=e.catchClause;if(n){if(n.variableDeclaration){const e=n.variableDeclaration;pz(e);const t=gv(e);if(t){const e=qS(t);!e||3&e.flags||jV(t,fa.Catch_clause_variable_type_annotation_must_be_any_or_unknown_if_specified)}else if(e.initializer)jV(e.initializer,fa.Catch_clause_variable_cannot_have_an_initializer);else{const e=n.block.locals;e&&sp(n.locals,n=>{const t=e.get(n);(null==t?void 0:t.valueDeclaration)&&2&t.flags&&HV(t.valueDeclaration,fa.Cannot_redeclare_identifier_0_in_catch_clause,yl(n))})}}nz(n.block)}e.finallyBlock&&nz(e.finallyBlock)}(t);case 261:return hz(t);case 209:return _z(t);case 264:return function(e){const n=y(e.modifiers,CD);V&&n&&U(e.members,e=>Lv(e)&&$c(e))&&HV(n,fa.Class_decorators_can_t_be_used_with_static_private_identifier_Consider_removing_the_experimental_decorator),e.name||Mv(e,2048)||jV(e,fa.A_class_declaration_without_the_default_modifier_must_have_a_name),PB(e),d(e.members,aG),WW(e)}(t);case 265:return BB(t);case 266:return function(e){if(vV(e),RB(e.name,fa.Type_alias_name_cannot_be_0),GV(e.parent)||HV(e,fa._0_declarations_can_only_be_declared_inside_a_block,"type"),_W(e),IB(e.typeParameters),141===e.type.kind){const n=c(e.typeParameters);(0===n?"BuiltinIteratorReturn"===e.name.escapedText:1===n&&aB.has(e.name.escapedText))||Bi(e.type,fa.The_intrinsic_keyword_can_only_be_used_to_declare_compiler_provided_intrinsic_types)}else aG(e.type),WW(e)}(t);case 267:return HB(t);case 307:return function(e){uD(e.name)&&Bi(e,fa.An_enum_member_cannot_be_named_with_a_private_identifier),e.initializer&&HF(e.initializer)}(t);case 268:return KB(t);case 273:return eG(t);case 272:return function(e){if(!tG(e,Lh(e)?fa.An_import_declaration_can_only_be_used_at_the_top_level_of_a_module:fa.An_import_declaration_can_only_be_used_at_the_top_level_of_a_namespace_or_module)&&(vV(e),!O.erasableSyntaxOnly||33554432&e.flags||Bi(e,fa.This_syntax_is_not_allowed_when_erasableSyntaxOnly_is_enabled),Nh(e)||JB(e)))if(QB(e),EM(e,6),284!==e.moduleReference.kind){const n=Ja(Es(e));if(n!==Sn){const t=Xa(n);if(111551&t){const n=ub(e.moduleReference);1920&ts(n,112575).flags||Bi(n,fa.Module_0_is_hidden_by_a_local_declaration_with_the_same_name,Of(n))}788968&t&&RB(e.name,fa.Import_name_cannot_be_0)}e.isTypeOnly&&HV(e,fa.An_import_alias_cannot_use_import_type)}else!(5<=G&&G<=99)||e.isTypeOnly||33554432&e.flags||HV(e,fa.Import_assignment_cannot_be_used_when_targeting_ECMAScript_modules_Consider_using_import_Asterisk_as_ns_from_mod_import_a_from_mod_import_d_from_mod_or_another_module_format_instead)}(t);case 279:return nG(t);case 278:return function(n){if(tG(n,n.isExportEquals?fa.An_export_assignment_must_be_at_the_top_level_of_a_file_or_module_declaration:fa.A_default_export_must_be_at_the_top_level_of_a_file_or_module_declaration))return;!O.erasableSyntaxOnly||!n.isExportEquals||33554432&n.flags||Bi(n,fa.This_syntax_is_not_allowed_when_erasableSyntaxOnly_is_enabled);const t=308===n.parent.kind?n.parent:n.parent.parent;if(268===t.kind&&!pf(t))return void(n.isExportEquals?Bi(n,fa.An_export_assignment_cannot_be_used_in_a_namespace):Bi(n,fa.A_default_export_can_only_be_used_in_an_ECMAScript_style_module));!vV(n)&&Dv(n)&&jV(n,fa.An_export_assignment_cannot_have_modifiers);const r=gv(n);r&&UE(EF(n.expression),qS(r),n.expression);const o=!n.isExportEquals&&!(33554432&n.flags)&&O.verbatimModuleSyntax&&1===e.getEmitModuleFormatOfFile(Sp(n));if(80===n.expression.kind){const e=n.expression,t=Ls(ts(e,-1,!0,!0,n));if(t){EM(n,3);const r=Qa(t,111551);if(111551&Xa(t)?(EF(e),o||33554432&n.flags||!O.verbatimModuleSyntax||!r||Bi(e,n.isExportEquals?fa.An_export_declaration_must_reference_a_real_value_when_verbatimModuleSyntax_is_enabled_but_0_resolves_to_a_type_only_declaration:fa.An_export_default_must_reference_a_real_value_when_verbatimModuleSyntax_is_enabled_but_0_resolves_to_a_type_only_declaration,vl(e))):o||33554432&n.flags||!O.verbatimModuleSyntax||Bi(e,n.isExportEquals?fa.An_export_declaration_must_reference_a_value_when_verbatimModuleSyntax_is_enabled_but_0_only_refers_to_a_type:fa.An_export_default_must_reference_a_value_when_verbatimModuleSyntax_is_enabled_but_0_only_refers_to_a_type,vl(e)),!o&&!(33554432&n.flags)&&RS(O)&&!(111551&t.flags)){const o=Xa(t,!1,!0);!(2097152&t.flags&&788968&o)||111551&o||r&&Sp(r)===Sp(n)?r&&Sp(r)!==Sp(n)&&ga(Bi(e,n.isExportEquals?fa._0_resolves_to_a_type_only_declaration_and_must_be_marked_type_only_in_this_file_before_re_exporting_when_1_is_enabled_Consider_using_import_type_where_0_is_imported:fa._0_resolves_to_a_type_only_declaration_and_must_be_marked_type_only_in_this_file_before_re_exporting_when_1_is_enabled_Consider_using_export_type_0_as_default,vl(e),Fe),r,vl(e)):Bi(e,n.isExportEquals?fa._0_resolves_to_a_type_and_must_be_marked_type_only_in_this_file_before_re_exporting_when_1_is_enabled_Consider_using_import_type_where_0_is_imported:fa._0_resolves_to_a_type_and_must_be_marked_type_only_in_this_file_before_re_exporting_when_1_is_enabled_Consider_using_export_type_0_as_default,vl(e),Fe)}}else EF(e);PS(O)&&Kl(e,!0)}else EF(n.expression);o&&Bi(n,Gi(n)),oG(t),33554432&n.flags&&!db(n.expression)&&HV(n.expression,fa.The_expression_of_an_export_assignment_must_be_an_identifier_or_qualified_name_in_an_ambient_context),n.isExportEquals&&(G>=5&&200!==G&&(33554432&n.flags&&99===e.getImpliedNodeFormatForEmit(Sp(n))||!(33554432&n.flags)&&1!==e.getImpliedNodeFormatForEmit(Sp(n)))?HV(n,fa.Export_assignment_cannot_be_used_when_targeting_ECMAScript_modules_Consider_using_export_default_or_another_module_format_instead):4!==G||33554432&n.flags||HV(n,fa.Export_assignment_is_not_supported_when_module_flag_is_system))}(t);case 243:case 260:return void JV(t);case 283:(function(e){wW(e)})(t)}}(t),r=o}}function sG(e){Ye(e)&&d(e,e=>{Bu(e)&&aG(e)})}function lG(e){if(!Lh(e))if(SM(e)||TM(e)){const n=Pa(SM(e)?54:58),t=e.postfix?fa._0_at_the_end_of_a_type_is_not_valid_TypeScript_syntax_Did_you_mean_to_write_1:fa._0_at_the_start_of_a_type_is_not_valid_TypeScript_syntax_Did_you_mean_to_write_1,r=qS(e.type);HV(e,t,n,El(TM(e)&&r!==ut&&r!==ct?Gb(re([r,Fn],e.postfix?void 0:jn)):r))}else HV(e,fa.JSDoc_types_can_only_be_used_inside_documentation_comments)}function cG(e){const n=ua(Sp(e));1&n.flags?dt.assert(!n.deferredNodes,"A type-checked file should have no deferred nodes."):(n.deferredNodes||(n.deferredNodes=new Set),n.deferredNodes.add(e))}function dG(e){const n=ua(e);n.deferredNodes&&n.deferredNodes.forEach(uG),n.deferredNodes=void 0}function uG(e){var n,t;null==(n=Kt)||n.push(Kt.Phase.Check,"checkDeferredNode",{kind:e.kind,pos:e.pos,end:e.end,path:e.tracingPath});const i=r;switch(r=e,E=0,e.kind){case 214:case 215:case 216:case 171:case 287:Hk(e);break;case 219:case 220:case 175:case 174:!function(e){dt.assert(175!==e.kind||jm(e));const n=Fg(e),t=Rg(e);if(JO(e,t),e.body)if(vv(e)||Ag(G_(e)),242===e.body.kind)aG(e.body);else{const r=HF(e.body),o=t&&oB(t,n);o&&TB(e,o,e.body,e.body,r)}}(e);break;case 178:case 179:rW(e);break;case 232:!function(e){d(e.members,aG),WW(e)}(e);break;case 169:!function(e){var n,t;if(gN(e.parent)||md(e.parent)||yN(e.parent)){const r=Fu(Es(e)),i=24576&Dx(r);if(i){const a=Es(e.parent);if(!yN(e.parent)||48&bT(Wu(a))){if(8192===i||16384===i){null==(n=Kt)||n.push(Kt.Phase.CheckTypes,"checkTypeParameterDeferred",{parent:Pb(Wu(a)),id:Pb(r)});const s=Ax(a,r,16384===i?jt:Vt),l=Ax(a,r,16384===i?Vt:jt),c=r;o=r,UE(s,l,e,fa.Type_0_is_not_assignable_to_type_1_as_implied_by_variance_annotation),o=c,null==(t=Kt)||t.pop()}}else Bi(e,fa.Variance_annotations_are_only_supported_in_type_aliases_for_object_function_constructor_and_mapped_types)}}}(e);break;case 286:!function(e){UL(e)}(e);break;case 285:!function(e){UL(e.openingElement),TL(e.closingElement.tagName)?IL(e.closingElement):HF(e.closingElement.tagName),AL(e)}(e);break;case 217:case 235:case 218:!function(e){const{type:n}=$w(e),t=SC(e)?n:e,r=ua(e);dt.assertIsDefined(r.assertionExpressionType);const o=GR(lR(r.assertionExpressionType)),i=qS(n);ac(i)||a(()=>{const e=JR(o);VE(i,e)||nA(o,i,t,fa.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)})}(e);break;case 223:HF(e.expression);break;case 227:vb(e)&&Hk(e)}r=i,null==(t=Kt)||t.pop()}function pG(n,t){var r,o;null==(r=Kt)||r.push(Kt.Phase.Check,t?"checkSourceFileNodes":"checkSourceFile",{path:n.path},!0);const i=t?"beforeCheckNodes":"beforeCheck",s=t?"afterCheckNodes":"afterCheck";er(i),t?function(n,t){const r=ua(n);if(!(1&r.flags)){if(mA(n,O,e))return;qV(n),I(li),I(ci),I(di),I(ui),I(pi),d(t,aG),dG(n),(r.potentialThisCollisions||(r.potentialThisCollisions=[])).push(...li),(r.potentialNewTargetCollisions||(r.potentialNewTargetCollisions=[])).push(...ci),(r.potentialWeakMapSetCollisions||(r.potentialWeakMapSetCollisions=[])).push(...di),(r.potentialReflectCollisions||(r.potentialReflectCollisions=[])).push(...ui),(r.potentialUnusedRenamedBindingElementsInTypes||(r.potentialUnusedRenamedBindingElementsInTypes=[])).push(...pi),r.flags|=8388608;for(const e of t){ua(e).flags|=8388608}}}(n,t):function(n){const t=ua(n);if(!(1&t.flags)){if(mA(n,O,e))return;qV(n),I(li),I(ci),I(di),I(ui),I(pi),8388608&t.flags&&(li=t.potentialThisCollisions,ci=t.potentialNewTargetCollisions,di=t.potentialWeakMapSetCollisions,ui=t.potentialReflectCollisions,pi=t.potentialUnusedRenamedBindingElementsInTypes),d(n.statements,aG),aG(n.endOfFileToken),dG(n),rm(n)&&WW(n),a(()=>{n.isDeclarationFile||!O.noUnusedLocals&&!O.noUnusedParameters||zW(hG(n),(e,n,t)=>{!Tp(e)&&mG(n,!!(33554432&e.flags))&&gi.add(t)}),n.isDeclarationFile||function(){var e;for(const n of pi)if(!(null==(e=Es(n))?void 0:e.isReferenced)){const e=il(n);dt.assert(ey(e),"Only parameter declaration should be checked here");const t=Vf(n.name,fa._0_is_an_unused_renaming_of_1_Did_you_intend_to_use_it_as_a_type_annotation,Of(n.name),Of(n.propertyName));e.type||dA(t,ZT(Sp(e),e.end,0,fa.We_can_only_write_a_type_for_0_by_adding_a_type_for_the_entire_parameter_here,Of(n.propertyName))),gi.add(t)}}()}),rm(n)&&oG(n),li.length&&(d(li,oz),I(li)),ci.length&&(d(ci,az),I(ci)),di.length&&(d(di,sz),I(di)),ui.length&&(d(ui,lz),I(ui)),t.flags|=1}}(n),er(s),nr("Check",i,s),null==(o=Kt)||o.pop()}function mG(e,n){if(n)return!1;switch(e){case 0:return!!O.noUnusedLocals;case 1:return!!O.noUnusedParameters;default:return dt.assertNever(e)}}function hG(e){return Eo.get(e.path)||s}function _G(t,r,o){try{return n=r,function(n,t){if(n){gG();const e=gi.getGlobalDiagnostics(),r=e.length;yG(n,t);const o=gi.getDiagnostics(n.fileName);if(t)return o;const i=gi.getGlobalDiagnostics();if(i!==e){return K(te(e,i,aS),o)}return 0===r&&i.length>0?K(i,o):o}return d(e.getSourceFiles(),e=>yG(e)),gi.getDiagnostics()}(t,o)}finally{n=void 0}}function gG(){for(const e of i)e();i=[]}function yG(e,n){gG();const t=a;a=e=>e(),pG(e,n),a=t}function vG(e){for(;167===e.parent.kind;)e=e.parent;return 184===e.parent.kind}function bG(e,n){let t,r=Zm(e);for(;r&&!(t=n(r));)r=Zm(r);return t}function SG(e,n){return!!bG(e,e=>e===n)}function EG(e){return void 0!==function(e){for(;167===e.parent.kind;)e=e.parent;return 272===e.parent.kind?e.parent.moduleReference===e?e.parent:void 0:278===e.parent.kind&&e.parent.expression===e?e.parent:void 0}(e)}function AG(e){if(pg(e))return As(e.parent);if(Lh(e)&&212===e.parent.kind&&e.parent===e.parent.parent.left&&!uD(e)&&!hM(e)&&!function(e){if(110===e.expression.kind){const n=rh(e,!1,!1);if(ad(n)){const e=cP(n);if(e){const n=pP(e,jP(e,void 0));return n&&!rc(n)}}}}(e.parent)){const n=function(e){switch(o_(e.parent.parent)){case 1:case 3:return As(e.parent);case 5:if(_C(e.parent)&&NT(e.parent)===e)return;case 4:case 2:return Es(e.parent.parent)}}(e);if(n)return n}if(278===e.parent.kind&&db(e)){const n=ts(e,2998271,!0);if(n&&n!==Sn)return n}else if(rd(e)&&EG(e)){const n=Ig(e,272);return dt.assert(void 0!==n),Za(e,!0)}if(rd(e)){const n=function(e){let n=e.parent;for(;xD(n);)e=n,n=n.parent;if(n&&206===n.kind&&n.qualifier===e)return n}(e);if(n){qS(n);const t=ua(e).resolvedSymbol;return t===Sn?void 0:t}}for(;yb(e);)e=e.parent;if(function(e){for(;212===e.parent.kind;)e=e.parent;return 234===e.parent.kind}(e)){let n=0;234===e.parent.kind?(n=Cm(e)?788968:111551,cb(e.parent)&&(n|=111551)):n=1920,n|=2097152;const t=db(e)?ts(e,n,!0):void 0;if(t)return t}if(342===e.parent.kind)return V_(e.parent);if(169===e.parent.kind&&346===e.parent.parent.kind){dt.assert(!Lh(e));const n=X_(e.parent);return n&&n.symbol}if(Eh(e)){if(Np(e))return;const n=ml(e,et(Bu,mM,hM)),t=n?901119:111551;if(80===e.kind){if(Sh(e)&&TL(e)){const n=IL(e.parent);return n===Sn?void 0:n}const r=ts(e,t,!0,!0,H_(e));if(!r&&n){const n=ml(e,et(md,gN));if(n)return RG(e,!0,Es(n))}if(r&&n){const n=q_(e);if(n&&dM(n)&&n===r.valueDeclaration)return ts(e,t,!0,!0,Sp(n))||r}return r}if(uD(e))return _k(e);if(212===e.kind||167===e.kind){const t=ua(e);return t.resolvedSymbol?t.resolvedSymbol:(212===e.kind?(uk(e,0),t.resolvedSymbol||(t.resolvedSymbol=xG(EF(e.expression),rT(e.name)))):pk(e,0),!t.resolvedSymbol&&n&&xD(e)?RG(e):t.resolvedSymbol)}if(hM(e))return RG(e)}else if(rd(e)&&vG(e)){const n=ts(e,184===e.parent.kind?788968:1920,!0,!0);return n&&n!==Sn?n:Iy(e)}return 183===e.parent.kind?ts(e,1,!0):void 0}function xG(e,n){const t=g_(e,n);if(t.length&&e.members){const n=Yg(Jf(e).members);if(t===l_(e))return n;if(n){const r=da(n),o=D(F(t,e=>e.declaration),cB).join(",");if(r.filteredIndexSymbolCache||(r.filteredIndexSymbolCache=new Map),r.filteredIndexSymbolCache.has(o))return r.filteredIndexSymbolCache.get(o);{const n=Yi(131072,"__index");return n.declarations=F(t,e=>e.declaration),n.parent=e.aliasSymbol?e.aliasSymbol:e.symbol?e.symbol:IG(n.declarations[0].parent),r.filteredIndexSymbolCache.set(o,n),n}}}}function RG(e,n,t){if(rd(e)){const r=901119;let o=ts(e,r,n,!0,H_(e));if(!o&&dD(e)&&t&&(o=Ss(pa(_s(t),e.escapedText,r))),o)return o}const r=dD(e)?t:RG(e.left,n,t),o=dD(e)?e.escapedText:e.right.escapedText;if(r){const e=111551&r.flags&&wh(Vd(r),"prototype");return wh(e?Vd(e):Wu(r),o)}}function IG(e,n){if(uM(e))return dk(e)?Ss(e.symbol):void 0;const{parent:t}=e,r=t.parent;if(!(67108864&e.flags)){if(mB(e)){const n=Es(t);return Gc(e.parent)&&e.parent.propertyName===e?gL(n):n}if(mg(e))return Es(t.parent);if(80===e.kind){if(EG(e))return AG(e);if(209===t.kind&&207===r.kind&&e===t.propertyName){const n=wh(DG(r),e.escapedText);if(n)return n}else if(VC(t)&&t.name===e)return 105===t.keywordToken&&"target"===vl(e)?oO(t).symbol:102===t.keywordToken&&"meta"===vl(e)?ov().members.get("meta"):void 0}switch(e.kind){case 80:case 81:case 212:case 167:if(!mv(e))return AG(e);case 110:const o=rh(e,!1,!1);if(ad(o)){const e=G_(o);if(e.thisParameter)return e.thisParameter}if(Ah(e))return HF(e).symbol;case 198:return GS(e).symbol;case 108:return HF(e).symbol;case 137:const i=e.parent;return i&&177===i.kind?i.parent.symbol:void 0;case 11:case 15:if(Ih(e.parent.parent)&&Dh(e.parent.parent)===e||(273===e.parent.kind||279===e.parent.kind)&&e.parent.moduleSpecifier===e||Lh(e)&&eP(e.parent)&&e.parent.moduleSpecifier===e||Lh(e)&&Wh(e.parent,!1)||fm(e.parent)||sC(e.parent)&&hm(e.parent.parent)&&e.parent.parent.argument===e.parent)return os(e,e,n);if(yC(t)&&i_(t)&&t.arguments[1]===e)return Es(t);case 9:const a=gC(t)?t.argumentExpression===e?VF(t.expression):void 0:sC(t)&&iC(r)?qS(r.objectType):void 0;return a&&wh(a,gl(e.text));case 90:case 100:case 39:case 86:return As(e.parent);case 206:return hm(e)?IG(e.argument.literal,n):void 0;case 95:return ON(e.parent)?dt.checkDefined(e.parent.symbol):void 0;case 102:if(VC(e.parent)&&"defer"===e.parent.name.escapedText)return;case 105:return VC(e.parent)?rO(e.parent).symbol:void 0;case 104:if(MC(e.parent)){const n=VF(e.parent.right),t=dF(n);return(null==t?void 0:t.symbol)??n.symbol}return;case 237:return HF(e).symbol;case 296:if(Sh(e)&&TL(e)){const n=IL(e.parent);return n===Sn?void 0:n}default:return}}}function DG(e){if(uM(e)&&!dk(e))return Mn;if(67108864&e.flags)return Mn;const n=ab(e),t=n&&bu(Es(n.class));if(Cm(e)){const n=qS(e);return t?Lp(n,t.thisType):n}if(Eh(e))return NG(e);if(t&&!n.isImplements){const e=fe(gu(t));return e?Lp(e,t.thisType):Mn}if(JA(e)){return Wu(Es(e))}if(80===(r=e).kind&&JA(r.parent)&&Dl(r.parent)===r){const n=IG(e);return n?Wu(n):Mn}var r;if(fC(e))return Lc(e,!0,0)||Mn;if(fu(e)){const n=Es(e);return n?Vd(n):Mn}if(mB(e)){const n=IG(e);return n?Vd(n):Mn}if(xd(e))return Lc(e.parent,!0,0)||Mn;if(EG(e)){const n=IG(e);if(n){const e=Wu(n);return ac(e)?Vd(n):e}}return VC(e.parent)&&e.parent.keywordToken===e.kind?rO(e.parent):NN(e)?av(!1):Mn}function CG(e){if(dt.assert(211===e.kind||210===e.kind),251===e.parent.kind){return mF(e,xz(e.parent)||Mn)}if(227===e.parent.kind){return mF(e,VF(e.parent.right)||Mn)}if(304===e.parent.kind){const n=nn(e.parent.parent,hC);return pF(n,CG(n)||Mn,nf(n.properties,e.parent))}const n=nn(e.parent,mC),t=CG(n)||Mn,r=Rz(65,t,Fn,e.parent)||Mn;return fF(n,t,n.elements.indexOf(e),r)}function NG(e){return _b(e)&&(e=e.parent),xS(VF(e))}function MG(e){const n=As(e.parent);return Pv(e)?Vd(n):Wu(n)}function PG(e){const n=e.name;switch(n.kind){case 80:return NS(vl(n));case 9:case 11:return NS(n.text);case 168:const e=uL(n);return aF(e,12288)?e:Hn;default:return dt.fail("Unsupported property name.")}}function LG(e){const n=Qu(cm(e=Vm(e))),t=Vh(e,0).length?$t:Vh(e,1).length?Qt:void 0;return t&&d(cm(t),e=>{n.has(e.escapedName)||n.set(e.escapedName,e)}),Us(n)}function kG(e){return 0!==Vh(e,0).length||0!==Vh(e,1).length}function wG(e){if(Jc(e))return!1;const n=_l(e,dD);if(!n)return!1;const t=n.parent;if(!t)return!1;return!((_C(t)||sM(t))&&t.name===n)&&lV(n)===we}function OG(e,n){var t;const r=_l(e,dD);if(r){let e=lV(r,function(e){return lu(e.parent)&&e===e.parent.name}(r));if(e){if(1048576&e.flags){const t=Ss(e.exportSymbol);if(!n&&944&t.flags&&!(3&t.flags))return;e=t}const o=xs(e);if(o){if(512&o.flags&&308===(null==(t=o.valueDeclaration)?void 0:t.kind)){const e=o.valueDeclaration;return e!==Sp(r)?void 0:e}return ml(r.parent,e=>lu(e)&&Es(e)===o)}}}}function FG(e){const n=sI(e);if(n)return n;const t=_l(e,dD);if(t){const e=function(e){const n=ua(e).resolvedSymbol;if(n&&n!==Sn)return n;return je(e,e.escapedText,3257279,void 0,!0,void 0)}(t);if(Ha(e,111551)&&!Qa(e,111551))return xa(e)}}function WG(e){if(418&e.flags&&e.valueDeclaration&&!uM(e.valueDeclaration)){const n=da(e);if(void 0===n.isDeclarationWithCollidingName){const t=kf(e.valueDeclaration);if(xp(t)||function(e){return e.valueDeclaration&&fC(e.valueDeclaration)&&300===il(e.valueDeclaration).parent.kind}(e))if(je(t.parent,e.escapedName,111551,void 0,!1))n.isDeclarationWithCollidingName=!0;else if($G(e.valueDeclaration,16384)){const r=$G(e.valueDeclaration,32768),o=Xd(t,!1),i=242===t.kind&&Xd(t.parent,!1);n.isDeclarationWithCollidingName=!(_f(t)||r&&(o||i))}else n.isDeclarationWithCollidingName=!1}return n.isDeclarationWithCollidingName}return!1}function zG(e){if(!Jc(e)){const n=_l(e,dD);if(n){const e=lV(n);if(e&&WG(e))return e.valueDeclaration}}}function BG(e){const n=_l(e,fu);if(n){const e=Es(n);if(e)return WG(e)}return!1}function GG(e){switch(dt.assert(Be),e.kind){case 272:return jG(Es(e));case 274:case 275:case 277:case 282:const n=Es(e);return!!n&&jG(n,!0);case 279:const t=e.exportClause;return!!t&&(LN(t)||U(t.elements,GG));case 278:return!e.expression||80!==e.expression.kind||jG(Es(e),!0)}return!1}function VG(e){const n=_l(e,AN);if(void 0===n||308!==n.parent.kind||!Nh(n))return!1;return jG(Es(n))&&n.moduleReference&&!Np(n.moduleReference)}function jG(e,n){if(!e)return!1;const t=Sp(e.valueDeclaration);ls(t&&Es(t));const r=Ls(Ja(e));return r===Sn?!n||!Qa(e):!!(111551&Xa(e,n,!0))&&(LS(O)||!UG(r))}function UG(e){return cF(e)||!!e.constEnumOnlyModule}function HG(e,n){if(dt.assert(Be),Ra(e)){const n=Es(e),t=n&&da(n);if(null==t?void 0:t.referenced)return!0;const r=da(n).aliasTarget;if(r&&32&jv(e)&&111551&Xa(r)&&(LS(O)||!UG(r)))return!0}return!!n&&!!rk(e,e=>HG(e,n))}function KG(e){if(Mp(e.body)){if(Nu(e)||Cu(e))return!1;const n=Q_(Es(e));return n.length>1||1===n.length&&n[0].declaration!==e}return!1}function qG(e,n){return(function(e,n){if(!X||k_(e)||jM(e)||!e.initializer)return!1;if(Mv(e,31))return!!n&&ld(n);return!0}(e,n)||function(e){return X&&k_(e)&&(jM(e)||!e.initializer)&&Mv(e,31)}(e))&&!function(e){const n=hV(e);if(!n)return!1;const t=qS(n);return ac(t)||_A(t)}(e)}function JG(e){const n=_l(e,e=>hN(e)||fN(e));if(!n)return!1;let t;if(fN(n)){if(n.type||!Lh(n)&&!nj(n))return!1;const e=Jh(n);if(!e||!cu(e))return!1;t=Es(e)}else t=Es(n);return!!(t&&16&t.flags|3)&&!!ap(_s(t),e=>111551&e.flags&&fx(e.valueDeclaration))}function XG(e){const n=_l(e,hN);if(!n)return s;const t=Es(n);return t&&cm(Vd(t))||s}function YG(e){var n;const t=e.id||0;return t<0||t>=Zo.length?0:(null==(n=Zo[t])?void 0:n.flags)||0}function $G(e,n){return function(e,n){if(!O.noCheck&&gA(Sp(e),O))return;const t=ua(e);if(t.calculatedFlags&n)return;switch(n){case 16:case 32:return a(e);case 128:case 256:case 2097152:return i(e);case 512:case 8192:case 65536:case 262144:return l(e);case 536870912:return d(e);case 4096:case 32768:case 16384:return p(e);default:return dt.assertNever(n,`Unhandled node check flag calculation: ${dt.formatNodeCheckFlags(n)}`)}function r(e,n){const t=n(e,e.parent);if("skip"!==t)return t||ok(e,n)}function o(e){const t=ua(e);if(t.calculatedFlags&n)return"skip";t.calculatedFlags|=2097536,a(e)}function i(e){r(e,o)}function a(e){ua(e).calculatedFlags|=48,108===e.kind&&sP(e)}function s(e){const t=ua(e);if(t.calculatedFlags&n)return"skip";t.calculatedFlags|=336384,d(e)}function l(e){r(e,s)}function c(e){return Eh(e)||lM(e.parent)&&(e.parent.objectAssignmentInitializer??e.parent.name)===e}function d(e){const n=ua(e);if(n.calculatedFlags|=536870912,dD(e)&&(n.calculatedFlags|=49152,c(e)&&(!_C(e.parent)||e.parent.name!==e))){const n=GI(e);n&&n!==Sn&&KM(e,n)}}function u(e){const t=ua(e);if(t.calculatedFlags&n)return"skip";t.calculatedFlags|=53248,f(e)}function p(e){r(kf(pg(e)?e.parent:e),u)}function f(e){d(e),RD(e)&&uL(e),uD(e)&&fd(e.parent)&&eW(e.parent)}}(e,n),!!(YG(e)&n)}function QG(e){return GB(e.parent),ua(e).enumMemberValue??vx(void 0)}function ZG(e){switch(e.kind){case 307:case 212:case 213:return!0}return!1}function eV(e){if(307===e.kind)return QG(e).value;ua(e).resolvedSymbol||EF(e);const n=ua(e).resolvedSymbol||(db(e)?ts(e,111551,!0):void 0);if(n&&8&n.flags){const e=n.valueDeclaration;if(im(e.parent))return QG(e).value}}function nV(e){return!!(524288&e.flags)&&Vh(e,0).length>0}function tV(e,n){var t;const r=_l(e,rd);if(!r)return 0;if(n&&!(n=_l(n)))return 0;let o=!1;if(xD(r)){const e=ts(ub(r),111551,!0,!0,n);o=!!(null==(t=null==e?void 0:e.declarations)?void 0:t.every(Uc))}const i=ts(r,111551,!0,!0,n),a=i&&2097152&i.flags?Ja(i):i;o||(o=!(!i||!Qa(i,111551)));const s=ts(r,788968,!0,!0,n),l=s&&2097152&s.flags?Ja(s):s;if(i||o||(o=!(!s||!Qa(s,788968))),a&&a===l){const e=Sv(!1);if(e&&a===e)return 9;const n=Vd(a);if(n&&au(n))return o?10:1}if(!l)return o?11:0;const c=Wu(l);return ac(c)?o?11:0:3&c.flags?11:aF(c,245760)?2:aF(c,528)?6:aF(c,296)?3:aF(c,2112)?4:aF(c,402653316)?5:mR(c)?7:aF(c,12288)?8:nV(c)?10:Kx(c)?7:11}function rV(e,n,t,r,o){const i=_l(e,Rx);if(!i)return vR.createToken(133);const a=Es(i);return Te.serializeTypeForDeclaration(i,a,n,1024|t,r,o)}function oV(e){const n=179===(e=_l(e,_c)).kind?178:179,t=Yu(Es(e),n);return{firstAccessor:t&&t.pos<e.pos?t:e,secondAccessor:t&&t.pos<e.pos?e:t,setAccessor:179===e.kind?e:t,getAccessor:178===e.kind?e:t}}function iV(e,n,t,r,o){const i=_l(e,ad);return i?Te.serializeReturnTypeForSignature(i,n,1024|t,r,o):vR.createToken(133)}function aV(e,n,t,r,o){const i=_l(e,qd);return i?Te.serializeTypeForExpression(i,n,1024|t,r,o):vR.createToken(133)}function sV(e){return Ie.has(gl(e))}function lV(e,n){const t=ua(e).resolvedSymbol;if(t)return t;let r=e;if(n){const n=e.parent;fu(n)&&e===n.name&&(r=Ql(n))}return je(r,e.escapedText,3257279,void 0,!0)}function cV(e){if(!Jc(e)){const n=_l(e,dD);if(n){const e=lV(n);if(e)return Ls(e).valueDeclaration}}}function dV(e){if(!Jc(e)){const n=_l(e,dD);if(n){const e=lV(n);if(e)return x(Ls(e).declarations,e=>{switch(e.kind){case 261:case 170:case 209:case 173:case 304:case 305:case 307:case 211:case 263:case 219:case 220:case 264:case 232:case 267:case 175:case 178:case 179:case 268:return!0}return!1})}}}function uV(e){return!!(am(e)||fN(e)&&nj(e))&&CS(Vd(Es(e)))}function pV(e,n){return function(e,n,t){const r=1056&e.flags?Te.symbolToExpression(e.symbol,111551,n,void 0,void 0,t):e===tt?vR.createTrue():e===$n&&vR.createFalse();if(r)return r;const o=e.value;return"object"==typeof o?vR.createBigIntLiteral(o):"string"==typeof o?vR.createStringLiteral(o):o<0?vR.createPrefixUnaryExpression(41,vR.createNumericLiteral(-o)):vR.createNumericLiteral(o)}(Vd(Es(e)),e,n)}function fV(e){return e?(Oi(e),Sp(e).localJsxFactory||io):io}function mV(e){if(e){const n=Sp(e);if(n){if(n.localJsxFragmentFactory)return n.localJsxFragmentFactory;const e=n.pragmas.get("jsxfrag"),t=Ye(e)?e[0]:e;if(t)return n.localJsxFragmentFactory=lk(t.arguments.factory,W),n.localJsxFragmentFactory}}if(O.jsxFragmentFactory)return lk(O.jsxFragmentFactory,W)}function hV(e){const n=gv(e);if(n)return n;if(170===e.kind&&179===e.parent.kind){const n=oV(e.parent).getAccessor;if(n)return vv(n)}}function _V(e){const n=268===e.kind?en(e.name,qI):x_(e),t=is(n,n,void 0);if(t)return Yu(t,308)}function gV(e,n){if(O.importHelpers){const t=Sp(e);if(Tf(t,O)&&!(33554432&e.flags)){const r=function(e,n){const t=ua(e);t.externalHelpersModule||(t.externalHelpersModule=as(function(e){dt.assert(O.importHelpers,"Expected importHelpers to be enabled");const n=e.imports[0];return dt.assert(n&&ry(n)&&"tslib"===n.text,"Expected sourceFile.imports[0] to be the synthesized tslib import"),n}(e),Ku,fa.This_syntax_requires_an_imported_helper_but_module_0_cannot_be_found,n)||Sn);return t.externalHelpersModule}(t,e);if(r!==Sn){const t=da(r);if(t.requestedExternalEmitHelpers??(t.requestedExternalEmitHelpers=0),(t.requestedExternalEmitHelpers&n)!==n){const o=n&~t.requestedExternalEmitHelpers;for(let n=1;n<=16777216;n<<=1)if(o&n)for(const t of yV(n)){const o=Ka(pa(gs(r),gl(t),111551));o?524288&n?U(Q_(o),e=>_O(e)>3)||Bi(e,fa.This_syntax_requires_an_imported_helper_named_1_with_2_parameters_which_is_not_compatible_with_the_one_in_0_Consider_upgrading_your_version_of_0,Ku,t,4):1048576&n?U(Q_(o),e=>_O(e)>4)||Bi(e,fa.This_syntax_requires_an_imported_helper_named_1_with_2_parameters_which_is_not_compatible_with_the_one_in_0_Consider_upgrading_your_version_of_0,Ku,t,5):1024&n&&(U(Q_(o),e=>_O(e)>2)||Bi(e,fa.This_syntax_requires_an_imported_helper_named_1_with_2_parameters_which_is_not_compatible_with_the_one_in_0_Consider_upgrading_your_version_of_0,Ku,t,3)):Bi(e,fa.This_syntax_requires_an_imported_helper_named_1_which_does_not_exist_in_0_Consider_upgrading_your_version_of_0,Ku,t)}}t.requestedExternalEmitHelpers|=n}}}}function yV(e){switch(e){case 1:return["__extends"];case 2:return["__assign"];case 4:return["__rest"];case 8:return V?["__decorate"]:["__esDecorate","__runInitializers"];case 16:return["__metadata"];case 32:return["__param"];case 64:return["__awaiter"];case 128:return["__generator"];case 256:return["__values"];case 512:return["__read"];case 1024:return["__spreadArray"];case 2048:return["__await"];case 4096:return["__asyncGenerator"];case 8192:return["__asyncDelegator"];case 16384:return["__asyncValues"];case 32768:return["__exportStar"];case 65536:return["__importStar"];case 131072:return["__importDefault"];case 262144:return["__makeTemplateObject"];case 524288:return["__classPrivateFieldGet"];case 1048576:return["__classPrivateFieldSet"];case 2097152:return["__classPrivateFieldIn"];case 4194304:return["__setFunctionName"];case 8388608:return["__propKey"];case 16777216:return["__addDisposableResource","__disposeResources"];case 33554432:return["__rewriteRelativeImportExtension"];default:return dt.fail("Unrecognized helper")}}function vV(n){var t;const r=function(e){const n=function(e){return YP(e)?y(e.modifiers,CD):void 0}(e);return n&&jV(n,fa.Decorators_are_not_valid_here)}(n)||function(e){if(!e.modifiers)return!1;const n=function(e){switch(e.kind){case 178:case 179:case 177:case 173:case 172:case 175:case 174:case 182:case 268:case 273:case 272:case 279:case 278:case 219:case 220:case 170:case 169:return;case 176:case 304:case 305:case 271:case 283:return y(e.modifiers,td);default:if(269===e.parent.kind||308===e.parent.kind)return;switch(e.kind){case 263:return bV(e,134);case 264:case 186:return bV(e,128);case 232:case 265:case 266:return y(e.modifiers,td);case 244:return 4&e.declarationList.flags?bV(e,135):y(e.modifiers,td);case 267:return bV(e,87);default:dt.assertNever(e)}}}(e);return n&&jV(n,fa.Modifiers_cannot_appear_here)}(n);if(void 0!==r)return r;if(DD(n)&&uv(n))return jV(n,fa.Neither_decorators_nor_modifiers_may_be_applied_to_this_parameters);const o=XC(n)?7&n.declarationList.flags:0;let i,a,s,l,c,d=0,u=!1,p=!1;for(const f of n.modifiers)if(CD(f)){if(!hh(V,n,n.parent,n.parent.parent))return 175!==n.kind||Mp(n.body)?jV(n,fa.Decorators_are_not_valid_here):jV(n,fa.A_decorator_can_only_decorate_a_method_implementation_not_an_overload);if(V&&(178===n.kind||179===n.kind)){const e=oV(n);if(zv(e.firstAccessor)&&n===e.secondAccessor)return jV(n,fa.Decorators_cannot_be_applied_to_multiple_get_Slashset_accessors_of_the_same_name)}if(-34849&d)return HV(f,fa.Decorators_are_not_valid_here);if(p&&98303&d){dt.assertIsDefined(c);return!VV(Sp(f))&&(dA(Bi(f,fa.Decorators_may_not_appear_after_export_or_export_default_if_they_also_appear_before_export),Vf(c,fa.Decorator_used_before_export_here)),!0)}d|=32768,98303&d?32&d&&(u=!0):p=!0,c??(c=f)}else{if(148!==f.kind){if(172===n.kind||174===n.kind)return HV(f,fa._0_modifier_cannot_appear_on_a_type_member,Pa(f.kind));if(182===n.kind&&(126!==f.kind||!md(n.parent)))return HV(f,fa._0_modifier_cannot_appear_on_an_index_signature,Pa(f.kind))}if(103!==f.kind&&147!==f.kind&&87!==f.kind&&169===n.kind)return HV(f,fa._0_modifier_cannot_appear_on_a_type_parameter,Pa(f.kind));switch(f.kind){case 87:{if(267!==n.kind&&169!==n.kind)return HV(n,fa.A_class_member_cannot_have_the_0_keyword,Pa(87));const e=qM(n.parent)&&K_(n.parent)||n.parent;if(169===n.kind&&!(ld(e)||md(e)||jD(e)||UD(e)||WD(e)||zD(e)||PD(e)))return HV(f,fa._0_modifier_can_only_appear_on_a_type_parameter_of_a_function_method_or_class,Pa(f.kind));break}case 164:if(16&d)return HV(f,fa._0_modifier_already_seen,"override");if(128&d)return HV(f,fa._0_modifier_cannot_be_used_with_1_modifier,"override","declare");if(8&d)return HV(f,fa._0_modifier_must_precede_1_modifier,"override","readonly");if(512&d)return HV(f,fa._0_modifier_must_precede_1_modifier,"override","accessor");if(1024&d)return HV(f,fa._0_modifier_must_precede_1_modifier,"override","async");d|=16,l=f;break;case 125:case 124:case 123:const r=zl($v(f.kind));if(7&d)return HV(f,fa.Accessibility_modifier_already_seen);if(16&d)return HV(f,fa._0_modifier_must_precede_1_modifier,r,"override");if(256&d)return HV(f,fa._0_modifier_must_precede_1_modifier,r,"static");if(512&d)return HV(f,fa._0_modifier_must_precede_1_modifier,r,"accessor");if(8&d)return HV(f,fa._0_modifier_must_precede_1_modifier,r,"readonly");if(1024&d)return HV(f,fa._0_modifier_must_precede_1_modifier,r,"async");if(269===n.parent.kind||308===n.parent.kind)return HV(f,fa._0_modifier_cannot_appear_on_a_module_or_namespace_element,r);if(64&d)return 123===f.kind?HV(f,fa._0_modifier_cannot_be_used_with_1_modifier,r,"abstract"):HV(f,fa._0_modifier_must_precede_1_modifier,r,"abstract");if($c(n))return HV(f,fa.An_accessibility_modifier_cannot_be_used_with_a_private_identifier);d|=$v(f.kind);break;case 126:if(256&d)return HV(f,fa._0_modifier_already_seen,"static");if(8&d)return HV(f,fa._0_modifier_must_precede_1_modifier,"static","readonly");if(1024&d)return HV(f,fa._0_modifier_must_precede_1_modifier,"static","async");if(512&d)return HV(f,fa._0_modifier_must_precede_1_modifier,"static","accessor");if(269===n.parent.kind||308===n.parent.kind)return HV(f,fa._0_modifier_cannot_appear_on_a_module_or_namespace_element,"static");if(170===n.kind)return HV(f,fa._0_modifier_cannot_appear_on_a_parameter,"static");if(64&d)return HV(f,fa._0_modifier_cannot_be_used_with_1_modifier,"static","abstract");if(16&d)return HV(f,fa._0_modifier_must_precede_1_modifier,"static","override");d|=256,i=f;break;case 129:if(512&d)return HV(f,fa._0_modifier_already_seen,"accessor");if(8&d)return HV(f,fa._0_modifier_cannot_be_used_with_1_modifier,"accessor","readonly");if(128&d)return HV(f,fa._0_modifier_cannot_be_used_with_1_modifier,"accessor","declare");if(173!==n.kind)return HV(f,fa.accessor_modifier_can_only_appear_on_a_property_declaration);d|=512;break;case 148:if(8&d)return HV(f,fa._0_modifier_already_seen,"readonly");if(173!==n.kind&&172!==n.kind&&182!==n.kind&&170!==n.kind)return HV(f,fa.readonly_modifier_can_only_appear_on_a_property_declaration_or_index_signature);if(512&d)return HV(f,fa._0_modifier_cannot_be_used_with_1_modifier,"readonly","accessor");d|=8;break;case 95:if(O.verbatimModuleSyntax&&!(33554432&n.flags)&&266!==n.kind&&265!==n.kind&&268!==n.kind&&308===n.parent.kind&&1===e.getEmitModuleFormatOfFile(Sp(n)))return HV(f,fa.A_top_level_export_modifier_cannot_be_used_on_value_declarations_in_a_CommonJS_module_when_verbatimModuleSyntax_is_enabled);if(32&d)return HV(f,fa._0_modifier_already_seen,"export");if(128&d)return HV(f,fa._0_modifier_must_precede_1_modifier,"export","declare");if(64&d)return HV(f,fa._0_modifier_must_precede_1_modifier,"export","abstract");if(1024&d)return HV(f,fa._0_modifier_must_precede_1_modifier,"export","async");if(md(n.parent))return HV(f,fa._0_modifier_cannot_appear_on_class_elements_of_this_kind,"export");if(170===n.kind)return HV(f,fa._0_modifier_cannot_appear_on_a_parameter,"export");if(4===o)return HV(f,fa._0_modifier_cannot_appear_on_a_using_declaration,"export");if(6===o)return HV(f,fa._0_modifier_cannot_appear_on_an_await_using_declaration,"export");d|=32;break;case 90:const p=308===n.parent.kind?n.parent:n.parent.parent;if(268===p.kind&&!pf(p))return HV(f,fa.A_default_export_can_only_be_used_in_an_ECMAScript_style_module);if(4===o)return HV(f,fa._0_modifier_cannot_appear_on_a_using_declaration,"default");if(6===o)return HV(f,fa._0_modifier_cannot_appear_on_an_await_using_declaration,"default");if(!(32&d))return HV(f,fa._0_modifier_must_precede_1_modifier,"export","default");if(u)return HV(c,fa.Decorators_are_not_valid_here);d|=2048;break;case 138:if(128&d)return HV(f,fa._0_modifier_already_seen,"declare");if(1024&d)return HV(f,fa._0_modifier_cannot_be_used_in_an_ambient_context,"async");if(16&d)return HV(f,fa._0_modifier_cannot_be_used_in_an_ambient_context,"override");if(md(n.parent)&&!MD(n))return HV(f,fa._0_modifier_cannot_appear_on_class_elements_of_this_kind,"declare");if(170===n.kind)return HV(f,fa._0_modifier_cannot_appear_on_a_parameter,"declare");if(4===o)return HV(f,fa._0_modifier_cannot_appear_on_a_using_declaration,"declare");if(6===o)return HV(f,fa._0_modifier_cannot_appear_on_an_await_using_declaration,"declare");if(33554432&n.parent.flags&&269===n.parent.kind)return HV(f,fa.A_declare_modifier_cannot_be_used_in_an_already_ambient_context);if($c(n))return HV(f,fa._0_modifier_cannot_be_used_with_a_private_identifier,"declare");if(512&d)return HV(f,fa._0_modifier_cannot_be_used_with_1_modifier,"declare","accessor");d|=128,a=f;break;case 128:if(64&d)return HV(f,fa._0_modifier_already_seen,"abstract");if(264!==n.kind&&186!==n.kind){if(175!==n.kind&&173!==n.kind&&178!==n.kind&&179!==n.kind)return HV(f,fa.abstract_modifier_can_only_appear_on_a_class_method_or_property_declaration);if(264!==n.parent.kind||!Mv(n.parent,64)){return HV(f,173===n.kind?fa.Abstract_properties_can_only_appear_within_an_abstract_class:fa.Abstract_methods_can_only_appear_within_an_abstract_class)}if(256&d)return HV(f,fa._0_modifier_cannot_be_used_with_1_modifier,"static","abstract");if(2&d)return HV(f,fa._0_modifier_cannot_be_used_with_1_modifier,"private","abstract");if(1024&d&&s)return HV(s,fa._0_modifier_cannot_be_used_with_1_modifier,"async","abstract");if(16&d)return HV(f,fa._0_modifier_must_precede_1_modifier,"abstract","override");if(512&d)return HV(f,fa._0_modifier_must_precede_1_modifier,"abstract","accessor")}if(Rl(n)&&81===n.name.kind)return HV(f,fa._0_modifier_cannot_be_used_with_a_private_identifier,"abstract");d|=64;break;case 134:if(1024&d)return HV(f,fa._0_modifier_already_seen,"async");if(128&d||33554432&n.parent.flags)return HV(f,fa._0_modifier_cannot_be_used_in_an_ambient_context,"async");if(170===n.kind)return HV(f,fa._0_modifier_cannot_appear_on_a_parameter,"async");if(64&d)return HV(f,fa._0_modifier_cannot_be_used_with_1_modifier,"async","abstract");d|=1024,s=f;break;case 103:case 147:{const e=103===f.kind?8192:16384,r=103===f.kind?"in":"out",o=qM(n.parent)&&(K_(n.parent)||y(null==(t=J_(n.parent))?void 0:t.tags,JM))||n.parent;if(169!==n.kind||o&&!(gN(o)||md(o)||yN(o)||JM(o)))return HV(f,fa._0_modifier_can_only_appear_on_a_type_parameter_of_a_class_interface_or_type_alias,r);if(d&e)return HV(f,fa._0_modifier_already_seen,r);if(8192&e&&16384&d)return HV(f,fa._0_modifier_must_precede_1_modifier,"in","out");d|=e;break}}}return 177===n.kind?256&d?HV(i,fa._0_modifier_cannot_appear_on_a_constructor_declaration,"static"):16&d?HV(l,fa._0_modifier_cannot_appear_on_a_constructor_declaration,"override"):!!(1024&d)&&HV(s,fa._0_modifier_cannot_appear_on_a_constructor_declaration,"async"):(273===n.kind||272===n.kind)&&128&d?HV(a,fa.A_0_modifier_cannot_be_used_with_an_import_declaration,"declare"):170===n.kind&&31&d&&xd(n.name)?HV(n,fa.A_parameter_property_may_not_be_declared_using_a_binding_pattern):170===n.kind&&31&d&&n.dotDotDotToken?HV(n,fa.A_parameter_property_cannot_be_declared_using_a_rest_parameter):!!(1024&d)&&function(e,n){switch(e.kind){case 175:case 263:case 219:case 220:return!1}return HV(n,fa._0_modifier_cannot_be_used_here,"async")}(n,s)}function bV(e,n){const t=y(e.modifiers,td);return t&&t.kind!==n?t:void 0}function TV(e,n=fa.Trailing_comma_not_allowed){return!(!e||!e.hasTrailingComma)&&UV(e[0],e.end-1,1,n)}function SV(e,n){if(e&&0===e.length){const t=e.pos-1;return UV(n,t,es(n.text,e.end)+1-t,fa.Type_parameter_list_cannot_be_empty)}return!1}function EV(e){if(W>=3){const n=e.body&&JC(e.body)&&AP(e.body.statements);if(n){const t=x(e.parameters,e=>!!e.initializer||xd(e.name)||Vu(e));if(c(t)){d(t,e=>{dA(Bi(e,fa.This_parameter_is_not_allowed_with_use_strict_directive),Vf(n,fa.use_strict_directive_used_here))});const e=t.map((e,n)=>Vf(e,0===n?fa.Non_simple_parameter_declared_here:fa.and_here));return dA(Bi(n,fa.use_strict_directive_cannot_be_used_with_non_simple_parameter_list),...e),!0}}}return!1}function AV(e){const n=Sp(e);return vV(e)||SV(e.typeParameters,n)||function(e){let n=!1;const t=e.length;for(let r=0;r<t;r++){const o=e[r];if(o.dotDotDotToken){if(r!==t-1)return HV(o.dotDotDotToken,fa.A_rest_parameter_must_be_last_in_a_parameter_list);if(33554432&o.flags||TV(e,fa.A_rest_parameter_or_binding_pattern_may_not_have_a_trailing_comma),o.questionToken)return HV(o.questionToken,fa.A_rest_parameter_cannot_be_optional);if(o.initializer)return HV(o.name,fa.A_rest_parameter_cannot_have_an_initializer)}else if(L_(o)){if(n=!0,o.questionToken&&o.initializer)return HV(o.name,fa.Parameter_cannot_have_question_mark_and_initializer)}else if(n&&!o.initializer)return HV(o.name,fa.A_required_parameter_cannot_follow_an_optional_parameter)}}(e.parameters)||function(e,n){if(!AC(e))return!1;e.typeParameters&&!(c(e.typeParameters)>1||e.typeParameters.hasTrailingComma||e.typeParameters[0].constraint)&&n&&Ri(n.fileName,[".mts",".cts"])&&HV(e.typeParameters[0],fa.This_syntax_is_reserved_in_files_with_the_mts_or_cts_extension_Add_a_trailing_comma_or_explicit_constraint);const{equalsGreaterThanToken:t}=e,r=Ua(n,t.pos).line,o=Ua(n,t.end).line;return r!==o&&HV(t,fa.Line_terminator_not_permitted_before_arrow)}(e,n)||ld(e)&&EV(e)}function xV(e,n){return TV(n)||function(e,n){if(n&&0===n.length){const t=Sp(e),r=n.pos-1;return UV(t,r,es(t.text,n.end)+1-r,fa.Type_argument_list_cannot_be_empty)}return!1}(e,n)}function RV(e){const n=e.types;if(TV(n))return!0;if(n&&0===n.length){const t=Pa(e.token);return UV(e,n.pos,0,fa._0_list_cannot_be_empty,t)}return U(n,IV)}function IV(e){return WC(e)&&ED(e.expression)&&e.typeArguments?HV(e,fa.This_use_of_import_is_invalid_import_calls_can_be_written_but_they_must_have_parentheses_and_cannot_have_type_arguments):xV(e,e.typeArguments)}function DV(e){if(168!==e.kind)return!1;const n=e;return 227===n.expression.kind&&28===n.expression.operatorToken.kind&&HV(n.expression,fa.A_comma_expression_is_not_allowed_in_a_computed_property_name)}function CV(e){if(e.asteriskToken){if(dt.assert(263===e.kind||219===e.kind||175===e.kind),33554432&e.flags)return HV(e.asteriskToken,fa.Generators_are_not_allowed_in_an_ambient_context);if(!e.body)return HV(e.asteriskToken,fa.An_overload_signature_cannot_be_declared_as_a_generator)}}function NV(e,n){return!!e&&HV(e,n)}function MV(e,n){return!!e&&HV(e,n)}function PV(e){if(JV(e))return!0;if(251===e.kind&&e.awaitModifier&&!(65536&e.flags)){const n=Sp(e);if(ih(e)){if(!VV(n))switch(Tf(n,O)||gi.add(Vf(e.awaitModifier,fa.for_await_loops_are_only_allowed_at_the_top_level_of_a_file_when_that_file_is_a_module_but_this_file_has_no_imports_or_exports_Consider_adding_an_empty_export_to_make_this_file_a_module)),G){case 100:case 101:case 102:case 199:if(1===n.impliedNodeFormat){gi.add(Vf(e.awaitModifier,fa.The_current_file_is_a_CommonJS_module_and_cannot_use_await_at_the_top_level));break}case 7:case 99:case 200:case 4:if(W>=4)break;default:gi.add(Vf(e.awaitModifier,fa.Top_level_for_await_loops_are_only_allowed_when_the_module_option_is_set_to_es2022_esnext_system_node16_node18_node20_nodenext_or_preserve_and_the_target_option_is_set_to_es2017_or_higher))}}else if(!VV(n)){const n=Vf(e.awaitModifier,fa.for_await_loops_are_only_allowed_within_async_functions_and_at_the_top_levels_of_modules),t=$m(e);if(t&&177!==t.kind){dt.assert(!(2&Fg(t)),"Enclosing function should never be an async function.");dA(n,Vf(t,fa.Did_you_mean_to_mark_this_function_as_async))}return gi.add(n),!0}}if(rN(e)&&!(65536&e.flags)&&dD(e.initializer)&&"async"===e.initializer.escapedText)return HV(e.initializer,fa.The_left_hand_side_of_a_for_of_statement_may_not_be_async),!1;if(262===e.initializer.kind){const n=e.initializer;if(!BV(n)){const t=n.declarations;if(!t.length)return!1;if(t.length>1){const t=250===e.kind?fa.Only_a_single_variable_declaration_is_allowed_in_a_for_in_statement:fa.Only_a_single_variable_declaration_is_allowed_in_a_for_of_statement;return jV(n.declarations[1],t)}const r=t[0];if(r.initializer){const n=250===e.kind?fa.The_variable_declaration_of_a_for_in_statement_cannot_have_an_initializer:fa.The_variable_declaration_of_a_for_of_statement_cannot_have_an_initializer;return HV(r.name,n)}if(r.type){return HV(r,250===e.kind?fa.The_left_hand_side_of_a_for_in_statement_cannot_use_a_type_annotation:fa.The_left_hand_side_of_a_for_of_statement_cannot_use_a_type_annotation)}}}return!1}function LV(e){if(e.parameters.length===(178===e.kind?1:2))return dv(e)}function kV(e,n){if(bp(e)&&!db(gC(e)?cg(e.argumentExpression):e.expression))return HV(e,n)}function wV(e){if(AV(e))return!0;if(175===e.kind){if(211===e.parent.kind){if(e.modifiers&&(1!==e.modifiers.length||134!==he(e.modifiers).kind))return jV(e,fa.Modifiers_cannot_appear_here);if(NV(e.questionToken,fa.An_object_member_cannot_be_declared_optional))return!0;if(MV(e.exclamationToken,fa.A_definite_assignment_assertion_is_not_permitted_in_this_context))return!0;if(void 0===e.body)return UV(e,e.end-1,1,fa._0_expected,"{")}if(CV(e))return!0}if(md(e.parent)){if(W<2&&uD(e.name))return HV(e.name,fa.Private_identifiers_are_only_available_when_targeting_ECMAScript_2015_and_higher);if(33554432&e.flags)return kV(e.name,fa.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(175===e.kind&&!e.body)return kV(e.name,fa.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(265===e.parent.kind)return kV(e.name,fa.A_computed_property_name_in_an_interface_must_refer_to_an_expression_whose_type_is_a_literal_type_or_a_unique_symbol_type);if(188===e.parent.kind)return kV(e.name,fa.A_computed_property_name_in_a_type_literal_must_refer_to_an_expression_whose_type_is_a_literal_type_or_a_unique_symbol_type)}}function OV(e){return zg(e)||225===e.kind&&41===e.operator&&9===e.operand.kind}function FV(e){const n=e.initializer;if(n){const r=!(OV(n)||function(e){if((_C(e)||gC(e)&&OV(e.argumentExpression))&&db(e.expression))return!!(1056&EF(e).flags)}(n)||112===n.kind||97===n.kind||(t=n,10===t.kind||225===t.kind&&41===t.operator&&10===t.operand.kind));if(!(am(e)||fN(e)&&nj(e))||e.type)return HV(n,fa.Initializers_are_not_allowed_in_ambient_contexts);if(r)return HV(n,fa.A_const_initializer_in_an_ambient_context_must_be_a_string_or_numeric_literal_or_literal_enum_reference)}var t}function WV(e){if(80===e.kind){if("__esModule"===vl(e))return function(e,n,t,...r){if(!VV(Sp(n)))return Wi(e,n,t,...r),!0;return!1}("noEmit",e,fa.Identifier_expected_esModule_is_reserved_as_an_exported_marker_when_transforming_ECMAScript_modules)}else{const n=e.elements;for(const e of n)if(!FC(e))return WV(e.name)}return!1}function zV(e){if(80===e.kind){if("let"===e.escapedText)return HV(e,fa.let_is_not_allowed_to_be_used_as_a_name_in_let_or_const_declarations)}else{const n=e.elements;for(const e of n)FC(e)||zV(e.name)}return!1}function BV(e){const n=e.declarations;if(TV(e.declarations))return!0;if(!e.declarations.length)return UV(e,n.pos,n.end-n.pos,fa.Variable_declaration_list_cannot_be_empty);const t=7&e.flags;if(4===t||6===t){if(tN(e.parent))return HV(e,4===t?fa.The_left_hand_side_of_a_for_in_statement_cannot_be_a_using_declaration:fa.The_left_hand_side_of_a_for_in_statement_cannot_be_an_await_using_declaration);if(33554432&e.flags)return HV(e,4===t?fa.using_declarations_are_not_allowed_in_ambient_contexts:fa.await_using_declarations_are_not_allowed_in_ambient_contexts);if(6===t)return tF(e)}return!1}function GV(e){switch(e.kind){case 246:case 247:case 248:case 255:case 249:case 250:case 251:return!1;case 257:return GV(e.parent)}return!0}function VV(e){return e.parseDiagnostics.length>0}function jV(e,n,...t){const r=Sp(e);if(!VV(r)){const o=Zf(r,e.pos);return gi.add(ZT(r,o.start,o.length,n,...t)),!0}return!1}function UV(e,n,t,r,...o){const i=Sp(e);return!VV(i)&&(gi.add(ZT(i,n,t,r,...o)),!0)}function HV(e,n,...t){return!VV(Sp(e))&&(Bi(e,n,...t),!0)}function KV(e){return 265!==e.kind&&266!==e.kind&&273!==e.kind&&272!==e.kind&&279!==e.kind&&278!==e.kind&&271!==e.kind&&!Mv(e,2208)&&jV(e,fa.Top_level_declarations_in_d_ts_files_must_start_with_either_a_declare_or_export_modifier)}function qV(e){return!!(33554432&e.flags)&&function(e){for(const n of e.statements)if((fu(n)||244===n.kind)&&KV(n))return!0;return!1}(e)}function JV(e){if(33554432&e.flags){if(!ua(e).hasReportedStatementInAmbientContext&&(ad(e.parent)||hd(e.parent)))return ua(e).hasReportedStatementInAmbientContext=jV(e,fa.An_implementation_cannot_be_declared_in_ambient_contexts);if(242===e.parent.kind||269===e.parent.kind||308===e.parent.kind){const n=ua(e.parent);if(!n.hasReportedStatementInAmbientContext)return n.hasReportedStatementInAmbientContext=jV(e,fa.Statements_are_not_allowed_in_ambient_contexts)}}return!1}function XV(e){const n=Zp(e).includes("."),t=16&e.numericLiteralFlags;if(n||t)return;+e.text<=2**53-1||ji(!1,Vf(e,fa.Numeric_literals_with_absolute_values_equal_to_2_53_or_greater_are_too_large_to_be_represented_accurately_as_integers))}function YV(e){return!!d(e.elements,e=>{if(e.isTypeOnly)return jV(e,277===e.kind?fa.The_type_modifier_cannot_be_used_on_a_named_import_when_import_type_is_used_on_its_import_statement:fa.The_type_modifier_cannot_be_used_on_a_named_export_when_export_type_is_used_on_its_export_statement)})}function $V(e,n,t){if(1048576&n.flags&&2621440&e.flags){const r=tD(n,e);if(r)return r;const o=cm(e);if(o){const e=ZI(o,n);if(e){const r=sx(n,D(e,e=>[()=>Vd(e),e.escapedName]),t);if(r!==n)return r}}}}function QV(e){const n=jg(e);return n||(RD(e)?XI(VF(e.expression)):void 0)}function ZV(e){return ke===e?Ve:(ke=e,Ve=sl(e))}function ej(e){return Me===e?Ge:(Me=e,Ge=cl(e))}function nj(e){const n=7&ej(e);return 2===n||4===n||6===n}}function fB(e){return 263!==e.kind&&175!==e.kind||!!e.body}function mB(e){switch(e.parent.kind){case 277:case 282:return dD(e)||11===e.kind;default:return pg(e)}}function hB(e){switch(e){case 0:return"yieldType";case 1:return"returnType";case 2:return"nextType"}}function _B(e){return!!(1&e.flags)}function gB(e){return!!(2&e.flags)}(qz=Kz||(Kz={})).JSX="JSX",qz.IntrinsicElements="IntrinsicElements",qz.ElementClass="ElementClass",qz.ElementAttributesPropertyNameContainer="ElementAttributesProperty",qz.ElementChildrenAttributeNameContainer="ElementChildrenAttribute",qz.Element="Element",qz.ElementType="ElementType",qz.IntrinsicAttributes="IntrinsicAttributes",qz.IntrinsicClassAttributes="IntrinsicClassAttributes",qz.LibraryManagedAttributes="LibraryManagedAttributes",(Jz||(Jz={})).Fragment="Fragment";var yB=class e{constructor(n,t,r){var o;for(this.moduleResolverHost=void 0,this.inner=void 0,this.disableTrackSymbol=!1;t instanceof e;)t=t.inner;this.inner=t,this.moduleResolverHost=r,this.context=n,this.canTrackSymbol=!!(null==(o=this.inner)?void 0:o.trackSymbol)}trackSymbol(e,n,t){var r,o;if((null==(r=this.inner)?void 0:r.trackSymbol)&&!this.disableTrackSymbol){if(this.inner.trackSymbol(e,n,t))return this.onDiagnosticReported(),!0;262144&e.flags||((o=this.context).trackedSymbols??(o.trackedSymbols=[])).push([e,n,t])}return!1}reportInaccessibleThisError(){var e;(null==(e=this.inner)?void 0:e.reportInaccessibleThisError)&&(this.onDiagnosticReported(),this.inner.reportInaccessibleThisError())}reportPrivateInBaseOfClassExpression(e){var n;(null==(n=this.inner)?void 0:n.reportPrivateInBaseOfClassExpression)&&(this.onDiagnosticReported(),this.inner.reportPrivateInBaseOfClassExpression(e))}reportInaccessibleUniqueSymbolError(){var e;(null==(e=this.inner)?void 0:e.reportInaccessibleUniqueSymbolError)&&(this.onDiagnosticReported(),this.inner.reportInaccessibleUniqueSymbolError())}reportCyclicStructureError(){var e;(null==(e=this.inner)?void 0:e.reportCyclicStructureError)&&(this.onDiagnosticReported(),this.inner.reportCyclicStructureError())}reportLikelyUnsafeImportRequiredError(e){var n;(null==(n=this.inner)?void 0:n.reportLikelyUnsafeImportRequiredError)&&(this.onDiagnosticReported(),this.inner.reportLikelyUnsafeImportRequiredError(e))}reportTruncationError(){var e;(null==(e=this.inner)?void 0:e.reportTruncationError)&&(this.onDiagnosticReported(),this.inner.reportTruncationError())}reportNonlocalAugmentation(e,n,t){var r;(null==(r=this.inner)?void 0:r.reportNonlocalAugmentation)&&(this.onDiagnosticReported(),this.inner.reportNonlocalAugmentation(e,n,t))}reportNonSerializableProperty(e){var n;(null==(n=this.inner)?void 0:n.reportNonSerializableProperty)&&(this.onDiagnosticReported(),this.inner.reportNonSerializableProperty(e))}onDiagnosticReported(){this.context.reportedDiagnostic=!0}reportInferenceFallback(e){var n;(null==(n=this.inner)?void 0:n.reportInferenceFallback)&&!this.context.suppressReportInferenceFallback&&(this.onDiagnosticReported(),this.inner.reportInferenceFallback(e))}pushErrorFallbackNode(e){var n,t;return null==(t=null==(n=this.inner)?void 0:n.pushErrorFallbackNode)?void 0:t.call(n,e)}popErrorFallbackNode(){var e,n;return null==(n=null==(e=this.inner)?void 0:e.popErrorFallbackNode)?void 0:n.call(e)}};function vB(e,n,t,r){if(void 0===e)return e;const o=n(e);let i;return void 0!==o?(i=Ye(o)?(r||MB)(o):o,dt.assertNode(i,t),i):void 0}function bB(e,n,t,r,o){if(void 0===e)return e;const i=e.length;let a;(void 0===r||r<0)&&(r=0),(void 0===o||o>i-r)&&(o=i-r);let s=-1,l=-1;r>0||o<i?a=e.hasTrailingComma&&r+o===i:(s=e.pos,l=e.end,a=e.hasTrailingComma);const c=SB(e,n,t,r,o);if(c!==e){const e=vR.createNodeArray(c,a);return CA(e,s,l),e}return e}function TB(e,n,t,r,o){if(void 0===e)return e;const i=e.length;return(void 0===r||r<0)&&(r=0),(void 0===o||o>i-r)&&(o=i-r),SB(e,n,t,r,o)}function SB(e,n,t,r,o){let i;const a=e.length;(r>0||o<a)&&(i=[]);for(let s=0;s<o;s++){const o=e[s+r],a=void 0!==o?n?n(o):o:void 0;if((void 0!==i||void 0===a||a!==o)&&(void 0===i&&(i=e.slice(0,s),dt.assertEachNode(i,t)),a))if(Ye(a))for(const e of a)dt.assertNode(e,t),i.push(e);else dt.assertNode(a,t),i.push(a)}return i||(dt.assertEachNode(e,t),e)}function EB(e,n,t,r,o,i=bB){return t.startLexicalEnvironment(),e=i(e,n,_u,r),o&&(e=t.factory.ensureUseStrict(e)),vR.mergeLexicalEnvironment(e,t.endLexicalEnvironment())}function AB(e,n,t,r=bB){let o;return t.startLexicalEnvironment(),e&&(t.setLexicalEnvironmentFlags(1,!0),o=r(e,n,DD),2&t.getLexicalEnvironmentFlags()&&SS(t.getCompilerOptions())>=2&&(o=function(e,n){let t;for(let r=0;r<e.length;r++){const o=e[r],i=xB(o,n);(t||i!==o)&&(t||(t=e.slice(0,r)),t[r]=i)}if(t)return DL(n.factory.createNodeArray(t,e.hasTrailingComma),e);return e}(o,t)),t.setLexicalEnvironmentFlags(1,!1)),t.suspendLexicalEnvironment(),o}function xB(e,n){return e.dotDotDotToken?e:xd(e.name)?function(e,n){const{factory:t}=n;return n.addInitializationStatement(t.createVariableStatement(void 0,t.createVariableDeclarationList([t.createVariableDeclaration(e.name,void 0,e.type,e.initializer?t.createConditionalExpression(t.createStrictEquality(t.getGeneratedNameForNode(e),t.createVoidZero()),void 0,e.initializer,void 0,t.getGeneratedNameForNode(e)):t.getGeneratedNameForNode(e))]))),t.updateParameterDeclaration(e,e.modifiers,e.dotDotDotToken,t.getGeneratedNameForNode(e),e.questionToken,e.type,void 0)}(e,n):e.initializer?function(e,n,t,r){const o=r.factory;return r.addInitializationStatement(o.createIfStatement(o.createTypeCheck(o.cloneNode(n),"undefined"),xR(DL(o.createBlock([o.createExpressionStatement(xR(DL(o.createAssignment(xR(o.cloneNode(n),96),xR(t,3168|tf(t))),e),3072))]),e),3905))),o.updateParameterDeclaration(e,e.modifiers,e.dotDotDotToken,e.name,e.questionToken,e.type,void 0)}(e,e.name,e.initializer,n):e}function RB(e,n,t,r=vB){t.resumeLexicalEnvironment();const o=r(e,n,nu),i=t.endLexicalEnvironment();if(U(i)){if(!o)return t.factory.createBlock(i);const e=t.factory.converters.convertToFunctionBlock(o),n=vR.mergeLexicalEnvironment(e.statements,i);return t.factory.updateBlock(e,n)}return o}function IB(e,n,t,r=vB){t.startBlockScope();const o=r(e,n,_u,t.factory.liftToBlock);dt.assert(o);const i=t.endBlockScope();return U(i)?JC(o)?(i.push(...o.statements),t.factory.updateBlock(o,i)):(i.push(o),t.factory.createBlock(i)):o}function DB(e,n,t=n){if(t===n||e.length<=1)return bB(e,n,qd);let r=0;const o=e.length;return bB(e,e=>{const i=r<o-1;return r++,i?t(e):n(e)},qd)}function CB(e,n,t=ej,r=bB,o,i=vB){if(void 0===e)return;const a=NB[e.kind];return void 0===a?e:a(e,n,t,r,i,o)}var NB={167:function(e,n,t,r,o,i){return t.factory.updateQualifiedName(e,dt.checkDefined(o(e.left,n,rd)),dt.checkDefined(o(e.right,n,dD)))},168:function(e,n,t,r,o,i){return t.factory.updateComputedPropertyName(e,dt.checkDefined(o(e.expression,n,qd)))},169:function(e,n,t,r,o,i){return t.factory.updateTypeParameterDeclaration(e,r(e.modifiers,n,td),dt.checkDefined(o(e.name,n,dD)),o(e.constraint,n,Ed),o(e.default,n,Ed))},170:function(e,n,t,r,o,i){return t.factory.updateParameterDeclaration(e,r(e.modifiers,n,vd),i?o(e.dotDotDotToken,i,eD):e.dotDotDotToken,dt.checkDefined(o(e.name,n,id)),i?o(e.questionToken,i,aD):e.questionToken,o(e.type,n,Ed),o(e.initializer,n,qd))},171:function(e,n,t,r,o,i){return t.factory.updateDecorator(e,dt.checkDefined(o(e.expression,n,qd)))},172:function(e,n,t,r,o,i){return t.factory.updatePropertySignature(e,r(e.modifiers,n,td),dt.checkDefined(o(e.name,n,od)),i?o(e.questionToken,i,aD):e.questionToken,o(e.type,n,Ed))},173:function(e,n,t,r,o,i){return t.factory.updatePropertyDeclaration(e,r(e.modifiers,n,vd),dt.checkDefined(o(e.name,n,od)),i?o(e.questionToken??e.exclamationToken,i,QP):e.questionToken??e.exclamationToken,o(e.type,n,Ed),o(e.initializer,n,qd))},174:function(e,n,t,r,o,i){return t.factory.updateMethodSignature(e,r(e.modifiers,n,td),dt.checkDefined(o(e.name,n,od)),i?o(e.questionToken,i,aD):e.questionToken,r(e.typeParameters,n,ID),r(e.parameters,n,DD),o(e.type,n,Ed))},175:function(e,n,t,r,o,i){return t.factory.updateMethodDeclaration(e,r(e.modifiers,n,vd),i?o(e.asteriskToken,i,oD):e.asteriskToken,dt.checkDefined(o(e.name,n,od)),i?o(e.questionToken,i,aD):e.questionToken,r(e.typeParameters,n,ID),AB(e.parameters,n,t,r),o(e.type,n,Ed),RB(e.body,n,t,o))},177:function(e,n,t,r,o,i){return t.factory.updateConstructorDeclaration(e,r(e.modifiers,n,vd),AB(e.parameters,n,t,r),RB(e.body,n,t,o))},178:function(e,n,t,r,o,i){return t.factory.updateGetAccessorDeclaration(e,r(e.modifiers,n,vd),dt.checkDefined(o(e.name,n,od)),AB(e.parameters,n,t,r),o(e.type,n,Ed),RB(e.body,n,t,o))},179:function(e,n,t,r,o,i){return t.factory.updateSetAccessorDeclaration(e,r(e.modifiers,n,vd),dt.checkDefined(o(e.name,n,od)),AB(e.parameters,n,t,r),RB(e.body,n,t,o))},176:function(e,n,t,r,o,i){return t.startLexicalEnvironment(),t.suspendLexicalEnvironment(),t.factory.updateClassStaticBlockDeclaration(e,RB(e.body,n,t,o))},180:function(e,n,t,r,o,i){return t.factory.updateCallSignature(e,r(e.typeParameters,n,ID),r(e.parameters,n,DD),o(e.type,n,Ed))},181:function(e,n,t,r,o,i){return t.factory.updateConstructSignature(e,r(e.typeParameters,n,ID),r(e.parameters,n,DD),o(e.type,n,Ed))},182:function(e,n,t,r,o,i){return t.factory.updateIndexSignature(e,r(e.modifiers,n,vd),r(e.parameters,n,DD),dt.checkDefined(o(e.type,n,Ed)))},183:function(e,n,t,r,o,i){return t.factory.updateTypePredicateNode(e,o(e.assertsModifier,n,hD),dt.checkDefined(o(e.parameterName,n,ZP)),o(e.type,n,Ed))},184:function(e,n,t,r,o,i){return t.factory.updateTypeReferenceNode(e,dt.checkDefined(o(e.typeName,n,rd)),r(e.typeArguments,n,Ed))},185:function(e,n,t,r,o,i){return t.factory.updateFunctionTypeNode(e,r(e.typeParameters,n,ID),r(e.parameters,n,DD),dt.checkDefined(o(e.type,n,Ed)))},186:function(e,n,t,r,o,i){return t.factory.updateConstructorTypeNode(e,r(e.modifiers,n,td),r(e.typeParameters,n,ID),r(e.parameters,n,DD),dt.checkDefined(o(e.type,n,Ed)))},187:function(e,n,t,r,o,i){return t.factory.updateTypeQueryNode(e,dt.checkDefined(o(e.exprName,n,rd)),r(e.typeArguments,n,Ed))},188:function(e,n,t,r,o,i){return t.factory.updateTypeLiteralNode(e,r(e.members,n,bd))},189:function(e,n,t,r,o,i){return t.factory.updateArrayTypeNode(e,dt.checkDefined(o(e.elementType,n,Ed)))},190:function(e,n,t,r,o,i){return t.factory.updateTupleTypeNode(e,r(e.elements,n,Ed))},191:function(e,n,t,r,o,i){return t.factory.updateOptionalTypeNode(e,dt.checkDefined(o(e.type,n,Ed)))},192:function(e,n,t,r,o,i){return t.factory.updateRestTypeNode(e,dt.checkDefined(o(e.type,n,Ed)))},193:function(e,n,t,r,o,i){return t.factory.updateUnionTypeNode(e,r(e.types,n,Ed))},194:function(e,n,t,r,o,i){return t.factory.updateIntersectionTypeNode(e,r(e.types,n,Ed))},195:function(e,n,t,r,o,i){return t.factory.updateConditionalTypeNode(e,dt.checkDefined(o(e.checkType,n,Ed)),dt.checkDefined(o(e.extendsType,n,Ed)),dt.checkDefined(o(e.trueType,n,Ed)),dt.checkDefined(o(e.falseType,n,Ed)))},196:function(e,n,t,r,o,i){return t.factory.updateInferTypeNode(e,dt.checkDefined(o(e.typeParameter,n,ID)))},206:function(e,n,t,r,o,i){return t.factory.updateImportTypeNode(e,dt.checkDefined(o(e.argument,n,Ed)),o(e.attributes,n,NN),o(e.qualifier,n,rd),r(e.typeArguments,n,Ed),e.isTypeOf)},303:function(e,n,t,r,o,i){return t.factory.updateImportTypeAssertionContainer(e,dt.checkDefined(o(e.assertClause,n,DN)),e.multiLine)},203:function(e,n,t,r,o,i){return t.factory.updateNamedTupleMember(e,i?o(e.dotDotDotToken,i,eD):e.dotDotDotToken,dt.checkDefined(o(e.name,n,dD)),i?o(e.questionToken,i,aD):e.questionToken,dt.checkDefined(o(e.type,n,Ed)))},197:function(e,n,t,r,o,i){return t.factory.updateParenthesizedType(e,dt.checkDefined(o(e.type,n,Ed)))},199:function(e,n,t,r,o,i){return t.factory.updateTypeOperatorNode(e,dt.checkDefined(o(e.type,n,Ed)))},200:function(e,n,t,r,o,i){return t.factory.updateIndexedAccessTypeNode(e,dt.checkDefined(o(e.objectType,n,Ed)),dt.checkDefined(o(e.indexType,n,Ed)))},201:function(e,n,t,r,o,i){return t.factory.updateMappedTypeNode(e,i?o(e.readonlyToken,i,eL):e.readonlyToken,dt.checkDefined(o(e.typeParameter,n,ID)),o(e.nameType,n,Ed),i?o(e.questionToken,i,nL):e.questionToken,o(e.type,n,Ed),r(e.members,n,bd))},202:function(e,n,t,r,o,i){return t.factory.updateLiteralTypeNode(e,dt.checkDefined(o(e.literal,n,Kd)))},204:function(e,n,t,r,o,i){return t.factory.updateTemplateLiteralType(e,dt.checkDefined(o(e.head,n,$I)),r(e.templateSpans,n,cC))},205:function(e,n,t,r,o,i){return t.factory.updateTemplateLiteralTypeSpan(e,dt.checkDefined(o(e.type,n,Ed)),dt.checkDefined(o(e.literal,n,Bc)))},207:function(e,n,t,r,o,i){return t.factory.updateObjectBindingPattern(e,r(e.elements,n,fC))},208:function(e,n,t,r,o,i){return t.factory.updateArrayBindingPattern(e,r(e.elements,n,Id))},209:function(e,n,t,r,o,i){return t.factory.updateBindingElement(e,i?o(e.dotDotDotToken,i,eD):e.dotDotDotToken,o(e.propertyName,n,od),dt.checkDefined(o(e.name,n,id)),o(e.initializer,n,qd))},210:function(e,n,t,r,o,i){return t.factory.updateArrayLiteralExpression(e,r(e.elements,n,qd))},211:function(e,n,t,r,o,i){return t.factory.updateObjectLiteralExpression(e,r(e.properties,n,Sd))},212:function(e,n,t,r,o,i){return gc(e)?t.factory.updatePropertyAccessChain(e,dt.checkDefined(o(e.expression,n,qd)),i?o(e.questionDotToken,i,lD):e.questionDotToken,dt.checkDefined(o(e.name,n,hc))):t.factory.updatePropertyAccessExpression(e,dt.checkDefined(o(e.expression,n,qd)),dt.checkDefined(o(e.name,n,hc)))},213:function(e,n,t,r,o,i){return yc(e)?t.factory.updateElementAccessChain(e,dt.checkDefined(o(e.expression,n,qd)),i?o(e.questionDotToken,i,lD):e.questionDotToken,dt.checkDefined(o(e.argumentExpression,n,qd))):t.factory.updateElementAccessExpression(e,dt.checkDefined(o(e.expression,n,qd)),dt.checkDefined(o(e.argumentExpression,n,qd)))},214:function(e,n,t,r,o,i){return vc(e)?t.factory.updateCallChain(e,dt.checkDefined(o(e.expression,n,qd)),i?o(e.questionDotToken,i,lD):e.questionDotToken,r(e.typeArguments,n,Ed),r(e.arguments,n,qd)):t.factory.updateCallExpression(e,dt.checkDefined(o(e.expression,n,qd)),r(e.typeArguments,n,Ed),r(e.arguments,n,qd))},215:function(e,n,t,r,o,i){return t.factory.updateNewExpression(e,dt.checkDefined(o(e.expression,n,qd)),r(e.typeArguments,n,Ed),r(e.arguments,n,qd))},216:function(e,n,t,r,o,i){return t.factory.updateTaggedTemplateExpression(e,dt.checkDefined(o(e.tag,n,qd)),r(e.typeArguments,n,Ed),dt.checkDefined(o(e.template,n,Bd)))},217:function(e,n,t,r,o,i){return t.factory.updateTypeAssertion(e,dt.checkDefined(o(e.type,n,Ed)),dt.checkDefined(o(e.expression,n,qd)))},218:function(e,n,t,r,o,i){return t.factory.updateParenthesizedExpression(e,dt.checkDefined(o(e.expression,n,qd)))},219:function(e,n,t,r,o,i){return t.factory.updateFunctionExpression(e,r(e.modifiers,n,td),i?o(e.asteriskToken,i,oD):e.asteriskToken,o(e.name,n,dD),r(e.typeParameters,n,ID),AB(e.parameters,n,t,r),o(e.type,n,Ed),RB(e.body,n,t,o))},220:function(e,n,t,r,o,i){return t.factory.updateArrowFunction(e,r(e.modifiers,n,td),r(e.typeParameters,n,ID),AB(e.parameters,n,t,r),o(e.type,n,Ed),i?dt.checkDefined(o(e.equalsGreaterThanToken,i,cD)):e.equalsGreaterThanToken,RB(e.body,n,t,o))},221:function(e,n,t,r,o,i){return t.factory.updateDeleteExpression(e,dt.checkDefined(o(e.expression,n,qd)))},222:function(e,n,t,r,o,i){return t.factory.updateTypeOfExpression(e,dt.checkDefined(o(e.expression,n,qd)))},223:function(e,n,t,r,o,i){return t.factory.updateVoidExpression(e,dt.checkDefined(o(e.expression,n,qd)))},224:function(e,n,t,r,o,i){return t.factory.updateAwaitExpression(e,dt.checkDefined(o(e.expression,n,qd)))},225:function(e,n,t,r,o,i){return t.factory.updatePrefixUnaryExpression(e,dt.checkDefined(o(e.operand,n,qd)))},226:function(e,n,t,r,o,i){return t.factory.updatePostfixUnaryExpression(e,dt.checkDefined(o(e.operand,n,qd)))},227:function(e,n,t,r,o,i){return t.factory.updateBinaryExpression(e,dt.checkDefined(o(e.left,n,qd)),i?dt.checkDefined(o(e.operatorToken,i,sL)):e.operatorToken,dt.checkDefined(o(e.right,n,qd)))},228:function(e,n,t,r,o,i){return t.factory.updateConditionalExpression(e,dt.checkDefined(o(e.condition,n,qd)),i?dt.checkDefined(o(e.questionToken,i,aD)):e.questionToken,dt.checkDefined(o(e.whenTrue,n,qd)),i?dt.checkDefined(o(e.colonToken,i,sD)):e.colonToken,dt.checkDefined(o(e.whenFalse,n,qd)))},229:function(e,n,t,r,o,i){return t.factory.updateTemplateExpression(e,dt.checkDefined(o(e.head,n,$I)),r(e.templateSpans,n,KC))},230:function(e,n,t,r,o,i){return t.factory.updateYieldExpression(e,i?o(e.asteriskToken,i,oD):e.asteriskToken,o(e.expression,n,qd))},231:function(e,n,t,r,o,i){return t.factory.updateSpreadElement(e,dt.checkDefined(o(e.expression,n,qd)))},232:function(e,n,t,r,o,i){return t.factory.updateClassExpression(e,r(e.modifiers,n,vd),o(e.name,n,dD),r(e.typeParameters,n,ID),r(e.heritageClauses,n,iM),r(e.members,n,fd))},234:function(e,n,t,r,o,i){return t.factory.updateExpressionWithTypeArguments(e,dt.checkDefined(o(e.expression,n,qd)),r(e.typeArguments,n,Ed))},235:function(e,n,t,r,o,i){return t.factory.updateAsExpression(e,dt.checkDefined(o(e.expression,n,qd)),dt.checkDefined(o(e.type,n,Ed)))},239:function(e,n,t,r,o,i){return t.factory.updateSatisfiesExpression(e,dt.checkDefined(o(e.expression,n,qd)),dt.checkDefined(o(e.type,n,Ed)))},236:function(e,n,t,r,o,i){return bc(e)?t.factory.updateNonNullChain(e,dt.checkDefined(o(e.expression,n,qd))):t.factory.updateNonNullExpression(e,dt.checkDefined(o(e.expression,n,qd)))},237:function(e,n,t,r,o,i){return t.factory.updateMetaProperty(e,dt.checkDefined(o(e.name,n,dD)))},240:function(e,n,t,r,o,i){return t.factory.updateTemplateSpan(e,dt.checkDefined(o(e.expression,n,qd)),dt.checkDefined(o(e.literal,n,Bc)))},242:function(e,n,t,r,o,i){return t.factory.updateBlock(e,r(e.statements,n,_u))},244:function(e,n,t,r,o,i){return t.factory.updateVariableStatement(e,r(e.modifiers,n,vd),dt.checkDefined(o(e.declarationList,n,mN)))},245:function(e,n,t,r,o,i){return t.factory.updateExpressionStatement(e,dt.checkDefined(o(e.expression,n,qd)))},246:function(e,n,t,r,o,i){return t.factory.updateIfStatement(e,dt.checkDefined(o(e.expression,n,qd)),dt.checkDefined(o(e.thenStatement,n,_u,t.factory.liftToBlock)),o(e.elseStatement,n,_u,t.factory.liftToBlock))},247:function(e,n,t,r,o,i){return t.factory.updateDoStatement(e,IB(e.statement,n,t,o),dt.checkDefined(o(e.expression,n,qd)))},248:function(e,n,t,r,o,i){return t.factory.updateWhileStatement(e,dt.checkDefined(o(e.expression,n,qd)),IB(e.statement,n,t,o))},249:function(e,n,t,r,o,i){return t.factory.updateForStatement(e,o(e.initializer,n,ru),o(e.condition,n,qd),o(e.incrementor,n,qd),IB(e.statement,n,t,o))},250:function(e,n,t,r,o,i){return t.factory.updateForInStatement(e,dt.checkDefined(o(e.initializer,n,ru)),dt.checkDefined(o(e.expression,n,qd)),IB(e.statement,n,t,o))},251:function(e,n,t,r,o,i){return t.factory.updateForOfStatement(e,i?o(e.awaitModifier,i,_D):e.awaitModifier,dt.checkDefined(o(e.initializer,n,ru)),dt.checkDefined(o(e.expression,n,qd)),IB(e.statement,n,t,o))},252:function(e,n,t,r,o,i){return t.factory.updateContinueStatement(e,o(e.label,n,dD))},253:function(e,n,t,r,o,i){return t.factory.updateBreakStatement(e,o(e.label,n,dD))},254:function(e,n,t,r,o,i){return t.factory.updateReturnStatement(e,o(e.expression,n,qd))},255:function(e,n,t,r,o,i){return t.factory.updateWithStatement(e,dt.checkDefined(o(e.expression,n,qd)),dt.checkDefined(o(e.statement,n,_u,t.factory.liftToBlock)))},256:function(e,n,t,r,o,i){return t.factory.updateSwitchStatement(e,dt.checkDefined(o(e.expression,n,qd)),dt.checkDefined(o(e.caseBlock,n,SN)))},257:function(e,n,t,r,o,i){return t.factory.updateLabeledStatement(e,dt.checkDefined(o(e.label,n,dD)),dt.checkDefined(o(e.statement,n,_u,t.factory.liftToBlock)))},258:function(e,n,t,r,o,i){return t.factory.updateThrowStatement(e,dt.checkDefined(o(e.expression,n,qd)))},259:function(e,n,t,r,o,i){return t.factory.updateTryStatement(e,dt.checkDefined(o(e.tryBlock,n,JC)),o(e.catchClause,n,aM),o(e.finallyBlock,n,JC))},261:function(e,n,t,r,o,i){return t.factory.updateVariableDeclaration(e,dt.checkDefined(o(e.name,n,id)),i?o(e.exclamationToken,i,iD):e.exclamationToken,o(e.type,n,Ed),o(e.initializer,n,qd))},262:function(e,n,t,r,o,i){return t.factory.updateVariableDeclarationList(e,r(e.declarations,n,fN))},263:function(e,n,t,r,o,i){return t.factory.updateFunctionDeclaration(e,r(e.modifiers,n,td),i?o(e.asteriskToken,i,oD):e.asteriskToken,o(e.name,n,dD),r(e.typeParameters,n,ID),AB(e.parameters,n,t,r),o(e.type,n,Ed),RB(e.body,n,t,o))},264:function(e,n,t,r,o,i){return t.factory.updateClassDeclaration(e,r(e.modifiers,n,vd),o(e.name,n,dD),r(e.typeParameters,n,ID),r(e.heritageClauses,n,iM),r(e.members,n,fd))},265:function(e,n,t,r,o,i){return t.factory.updateInterfaceDeclaration(e,r(e.modifiers,n,vd),dt.checkDefined(o(e.name,n,dD)),r(e.typeParameters,n,ID),r(e.heritageClauses,n,iM),r(e.members,n,bd))},266:function(e,n,t,r,o,i){return t.factory.updateTypeAliasDeclaration(e,r(e.modifiers,n,vd),dt.checkDefined(o(e.name,n,dD)),r(e.typeParameters,n,ID),dt.checkDefined(o(e.type,n,Ed)))},267:function(e,n,t,r,o,i){return t.factory.updateEnumDeclaration(e,r(e.modifiers,n,vd),dt.checkDefined(o(e.name,n,dD)),r(e.members,n,dM))},268:function(e,n,t,r,o,i){return t.factory.updateModuleDeclaration(e,r(e.modifiers,n,vd),dt.checkDefined(o(e.name,n,tL)),o(e.body,n,ou))},269:function(e,n,t,r,o,i){return t.factory.updateModuleBlock(e,r(e.statements,n,_u))},270:function(e,n,t,r,o,i){return t.factory.updateCaseBlock(e,r(e.clauses,n,xu))},271:function(e,n,t,r,o,i){return t.factory.updateNamespaceExportDeclaration(e,dt.checkDefined(o(e.name,n,dD)))},272:function(e,n,t,r,o,i){return t.factory.updateImportEqualsDeclaration(e,r(e.modifiers,n,vd),e.isTypeOnly,dt.checkDefined(o(e.name,n,dD)),dt.checkDefined(o(e.moduleReference,n,yu)))},273:function(e,n,t,r,o,i){return t.factory.updateImportDeclaration(e,r(e.modifiers,n,vd),o(e.importClause,n,RN),dt.checkDefined(o(e.moduleSpecifier,n,qd)),o(e.attributes,n,NN))},301:function(e,n,t,r,o,i){return t.factory.updateImportAttributes(e,r(e.elements,n,MN),e.multiLine)},302:function(e,n,t,r,o,i){return t.factory.updateImportAttribute(e,dt.checkDefined(o(e.name,n,qc)),dt.checkDefined(o(e.value,n,qd)))},274:function(e,n,t,r,o,i){return t.factory.updateImportClause(e,e.phaseModifier,o(e.name,n,dD),o(e.namedBindings,n,su))},275:function(e,n,t,r,o,i){return t.factory.updateNamespaceImport(e,dt.checkDefined(o(e.name,n,dD)))},281:function(e,n,t,r,o,i){return t.factory.updateNamespaceExport(e,dt.checkDefined(o(e.name,n,dD)))},276:function(e,n,t,r,o,i){return t.factory.updateNamedImports(e,r(e.elements,n,wN))},277:function(e,n,t,r,o,i){return t.factory.updateImportSpecifier(e,e.isTypeOnly,o(e.propertyName,n,BN),dt.checkDefined(o(e.name,n,dD)))},278:function(e,n,t,r,o,i){return t.factory.updateExportAssignment(e,r(e.modifiers,n,vd),dt.checkDefined(o(e.expression,n,qd)))},279:function(e,n,t,r,o,i){return t.factory.updateExportDeclaration(e,r(e.modifiers,n,vd),e.isTypeOnly,o(e.exportClause,n,Cc),o(e.moduleSpecifier,n,qd),o(e.attributes,n,NN))},280:function(e,n,t,r,o,i){return t.factory.updateNamedExports(e,r(e.elements,n,zN))},282:function(e,n,t,r,o,i){return t.factory.updateExportSpecifier(e,e.isTypeOnly,o(e.propertyName,n,BN),dt.checkDefined(o(e.name,n,BN)))},284:function(e,n,t,r,o,i){return t.factory.updateExternalModuleReference(e,dt.checkDefined(o(e.expression,n,qd)))},285:function(e,n,t,r,o,i){return t.factory.updateJsxElement(e,dt.checkDefined(o(e.openingElement,n,qN)),r(e.children,n,bu),dt.checkDefined(o(e.closingElement,n,JN)))},286:function(e,n,t,r,o,i){return t.factory.updateJsxSelfClosingElement(e,dt.checkDefined(o(e.tagName,n,vu)),r(e.typeArguments,n,Ed),dt.checkDefined(o(e.attributes,n,ZN)))},287:function(e,n,t,r,o,i){return t.factory.updateJsxOpeningElement(e,dt.checkDefined(o(e.tagName,n,vu)),r(e.typeArguments,n,Ed),dt.checkDefined(o(e.attributes,n,ZN)))},288:function(e,n,t,r,o,i){return t.factory.updateJsxClosingElement(e,dt.checkDefined(o(e.tagName,n,vu)))},296:function(e,n,t,r,o,i){return t.factory.updateJsxNamespacedName(e,dt.checkDefined(o(e.namespace,n,dD)),dt.checkDefined(o(e.name,n,dD)))},289:function(e,n,t,r,o,i){return t.factory.updateJsxFragment(e,dt.checkDefined(o(e.openingFragment,n,YN)),r(e.children,n,bu),dt.checkDefined(o(e.closingFragment,n,$N)))},292:function(e,n,t,r,o,i){return t.factory.updateJsxAttribute(e,dt.checkDefined(o(e.name,n,sx)),o(e.initializer,n,Su))},293:function(e,n,t,r,o,i){return t.factory.updateJsxAttributes(e,r(e.properties,n,Tu))},294:function(e,n,t,r,o,i){return t.factory.updateJsxSpreadAttribute(e,dt.checkDefined(o(e.expression,n,qd)))},295:function(e,n,t,r,o,i){return t.factory.updateJsxExpression(e,o(e.expression,n,qd))},297:function(e,n,t,r,o,i){return t.factory.updateCaseClause(e,dt.checkDefined(o(e.expression,n,qd)),r(e.statements,n,_u))},298:function(e,n,t,r,o,i){return t.factory.updateDefaultClause(e,r(e.statements,n,_u))},299:function(e,n,t,r,o,i){return t.factory.updateHeritageClause(e,r(e.types,n,WC))},300:function(e,n,t,r,o,i){return t.factory.updateCatchClause(e,o(e.variableDeclaration,n,fN),dt.checkDefined(o(e.block,n,JC)))},304:function(e,n,t,r,o,i){return t.factory.updatePropertyAssignment(e,dt.checkDefined(o(e.name,n,od)),dt.checkDefined(o(e.initializer,n,qd)))},305:function(e,n,t,r,o,i){return t.factory.updateShorthandPropertyAssignment(e,dt.checkDefined(o(e.name,n,dD)),o(e.objectAssignmentInitializer,n,qd))},306:function(e,n,t,r,o,i){return t.factory.updateSpreadAssignment(e,dt.checkDefined(o(e.expression,n,qd)))},307:function(e,n,t,r,o,i){return t.factory.updateEnumMember(e,dt.checkDefined(o(e.name,n,od)),o(e.initializer,n,qd))},308:function(e,n,t,r,o,i){return t.factory.updateSourceFile(e,EB(e.statements,n,t))},356:function(e,n,t,r,o,i){return t.factory.updatePartiallyEmittedExpression(e,dt.checkDefined(o(e.expression,n,qd)))},357:function(e,n,t,r,o,i){return t.factory.updateCommaListExpression(e,r(e.elements,n,qd))}};function MB(e){return dt.assert(e.length<=1,"Too many nodes written to output."),ve(e)}function PB(e,n,t,r,o){var i,a,{enter:s,exit:l}=o.extendedDiagnostics?Ht("Source Map","beforeSourcemap","afterSourcemap"):Jt,c=[],d=[],u=new Map,p=[],f=[],m="",h=0,_=0,g=0,y=0,v=0,b=0,T=!1,S=0,E=0,A=0,x=0,R=0,I=0,D=!1,C=!1,N=!1;return{getSources:()=>c,addSource:M,setSourceContent:P,addName:L,addMapping:k,appendSourceMap:function(e,n,t,r,o,i){dt.assert(e>=S,"generatedLine cannot backtrack"),dt.assert(n>=0,"generatedCharacter cannot be negative"),s();const a=[];let c;const d=BB(t.mappings);for(const s of d){if(i&&(s.generatedLine>i.line||s.generatedLine===i.line&&s.generatedCharacter>i.character))break;if(o&&(s.generatedLine<o.line||o.line===s.generatedLine&&s.generatedCharacter<o.character))continue;let l,d,u,p;if(void 0!==s.sourceIndex){if(l=a[s.sourceIndex],void 0===l){const e=t.sources[s.sourceIndex],n=t.sourceRoot?zi(t.sourceRoot,e):e,o=zi(Mi(r),n);a[s.sourceIndex]=l=M(o),t.sourcesContent&&"string"==typeof t.sourcesContent[s.sourceIndex]&&P(l,t.sourcesContent[s.sourceIndex])}d=s.sourceLine,u=s.sourceCharacter,t.names&&void 0!==s.nameIndex&&(c||(c=[]),p=c[s.nameIndex],void 0===p&&(c[s.nameIndex]=p=L(t.names[s.nameIndex])))}const f=s.generatedLine-(o?o.line:0),m=f+e,h=o&&o.line===s.generatedLine?s.generatedCharacter-o.character:s.generatedCharacter;k(m,0===f?h+n:h,l,d,u,p)}l()},toJSON:W,toString:()=>JSON.stringify(W())};function M(n){s();const t=ca(r,n,e.getCurrentDirectory(),e.getCanonicalFileName,!0);let o=u.get(t);return void 0===o&&(o=d.length,d.push(t),c.push(n),u.set(t,o)),l(),o}function P(e,n){if(s(),null!==n){for(i||(i=[]);i.length<e;)i.push(null);i[e]=n}l()}function L(e){s(),a||(a=new Map);let n=a.get(e);return void 0===n&&(n=p.length,p.push(e),a.set(e,n)),l(),n}function k(e,n,t,r,o,i){dt.assert(e>=S,"generatedLine cannot backtrack"),dt.assert(n>=0,"generatedCharacter cannot be negative"),dt.assert(void 0===t||t>=0,"sourceIndex cannot be negative"),dt.assert(void 0===r||r>=0,"sourceLine cannot be negative"),dt.assert(void 0===o||o>=0,"sourceCharacter cannot be negative"),s(),(function(e,n){return!D||S!==e||E!==n}(e,n)||function(e,n,t){return void 0!==e&&void 0!==n&&void 0!==t&&A===e&&(x>n||x===n&&R>t)}(t,r,o))&&(O(),S=e,E=n,C=!1,N=!1,D=!0),void 0!==t&&void 0!==r&&void 0!==o&&(A=t,x=r,R=o,C=!0,void 0!==i&&(I=i,N=!0)),l()}function w(e){f.push(e),f.length>=1024&&F()}function O(){if(D&&(!T||h!==S||_!==E||g!==A||y!==x||v!==R||b!==I)){if(s(),h<S){do{w(59),h++}while(h<S);_=0}else dt.assertEqual(h,S,"generatedLine cannot backtrack"),T&&w(44);z(E-_),_=E,C&&(z(A-g),g=A,z(x-y),y=x,z(R-v),v=R,N&&(z(I-b),b=I)),T=!0,l()}}function F(){f.length>0&&(m+=String.fromCharCode.apply(void 0,f),f.length=0)}function W(){return O(),F(),{version:3,file:n,sourceRoot:t,sources:d,names:p,mappings:m,sourcesContent:i}}function z(e){e<0?e=1+(-e<<1):e<<=1;do{let n=31&e;(e>>=5)>0&&(n|=32),w(jB(n))}while(e>0)}}var LB=/\/\/[@#] source[M]appingURL=(.+)\r?\n?$/,kB=/^\/\/[@#] source[M]appingURL=(.+)\r?\n?$/,wB=/^\s*(\/\/[@#] .*)?$/;function OB(e,n){return{getLineCount:()=>n.length,getLineText:t=>e.substring(n[t],n[t+1])}}function FB(e){for(let n=e.getLineCount()-1;n>=0;n--){const t=e.getLineText(n),r=kB.exec(t);if(r)return r[1].trimEnd();if(!t.match(wB))break}}function WB(e){return"string"==typeof e||null===e}function zB(e){try{const t=JSON.parse(e);if(null!==(n=t)&&"object"==typeof n&&3===n.version&&"string"==typeof n.file&&"string"==typeof n.mappings&&Ye(n.sources)&&g(n.sources,Qe)&&(void 0===n.sourceRoot||null===n.sourceRoot||"string"==typeof n.sourceRoot)&&(void 0===n.sourcesContent||null===n.sourcesContent||Ye(n.sourcesContent)&&g(n.sourcesContent,WB))&&(void 0===n.names||null===n.names||Ye(n.names)&&g(n.names,Qe)))return t}catch{}var n}function BB(e){let n,t=!1,r=0,o=0,i=0,a=0,s=0,l=0,c=0;return{get pos(){return r},get error(){return n},get state(){return d(!0,!0)},next(){for(;!t&&r<e.length;){const n=e.charCodeAt(r);if(59===n){o++,i=0,r++;continue}if(44===n){r++;continue}let p=!1,g=!1;if(i+=_(),m())return u();if(i<0)return f("Invalid generatedCharacter found");if(!h()){if(p=!0,a+=_(),m())return u();if(a<0)return f("Invalid sourceIndex found");if(h())return f("Unsupported Format: No entries after sourceIndex");if(s+=_(),m())return u();if(s<0)return f("Invalid sourceLine found");if(h())return f("Unsupported Format: No entries after sourceLine");if(l+=_(),m())return u();if(l<0)return f("Invalid sourceCharacter found");if(!h()){if(g=!0,c+=_(),m())return u();if(c<0)return f("Invalid nameIndex found");if(!h())return f("Unsupported Error Format: Entries after nameIndex")}}return{value:d(p,g),done:t}}return u()},[Symbol.iterator](){return this}};function d(e,n){return{generatedLine:o,generatedCharacter:i,sourceIndex:e?a: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 p(e){void 0===n&&(n=e)}function f(e){return p(e),u()}function m(){return void 0!==n}function h(){return r===e.length||44===e.charCodeAt(r)||59===e.charCodeAt(r)}function _(){let n=!0,t=0,o=0;for(;n;r++){if(r>=e.length)return p("Error in decoding base64VLQFormatDecode, past the mapping string"),-1;const i=UB(e.charCodeAt(r));if(-1===i)return p("Invalid character in VLQ"),-1;n=!!(32&i),o|=(31&i)<<t,t+=5}return 1&o?(o>>=1,o=-o):o>>=1,o}}function GB(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}function VB(e){return void 0!==e.sourceIndex&&void 0!==e.sourceLine&&void 0!==e.sourceCharacter}function jB(e){return e>=0&&e<26?65+e:e>=26&&e<52?97+e-26:e>=52&&e<62?48+e-52:62===e?43:63===e?47:dt.fail(`${e}: not a base64 value`)}function UB(e){return e>=65&&e<=90?e-65:e>=97&&e<=122?e-97+26:e>=48&&e<=57?e-48+52:43===e?62:47===e?63:-1}function HB(e){return void 0!==e.sourceIndex&&void 0!==e.sourcePosition}function KB(e,n){return e.generatedPosition===n.generatedPosition&&e.sourceIndex===n.sourceIndex&&e.sourcePosition===n.sourcePosition}function qB(e,n){return dt.assert(e.sourceIndex===n.sourceIndex),vn(e.sourcePosition,n.sourcePosition)}function JB(e,n){return vn(e.generatedPosition,n.generatedPosition)}function XB(e){return e.sourcePosition}function YB(e){return e.generatedPosition}function $B(e,n,t){const r=Mi(t),o=n.sourceRoot?Vi(n.sourceRoot,r):r,i=Vi(n.file,r),a=e.getSourceFileLike(i),l=n.sources.map(e=>Vi(e,o)),c=new Map(l.map((n,t)=>[e.getCanonicalFileName(n),t]));let d,u,p;return{getSourcePosition:function(e){const n=function(){if(void 0===u){const e=[];for(const n of m())e.push(n);u=Z(e,JB,KB)}return u}();if(!U(n))return e;let t=Ae(n,e.pos,YB,vn);t<0&&(t=~t);const r=n[t];if(void 0===r||!HB(r))return e;return{fileName:l[r.sourceIndex],pos:r.sourcePosition}},getGeneratedPosition:function(n){const t=c.get(e.getCanonicalFileName(n.fileName));if(void 0===t)return n;const r=function(e){if(void 0===p){const e=[];for(const n of m()){if(!HB(n))continue;let t=e[n.sourceIndex];t||(e[n.sourceIndex]=t=[]),t.push(n)}p=e.map(e=>Z(e,qB,KB))}return p[e]}(t);if(!U(r))return n;let o=Ae(r,n.pos,XB,vn);o<0&&(o=~o);const a=r[o];if(void 0===a||a.sourceIndex!==t)return n;return{fileName:i,pos:a.generatedPosition}}};function f(t){const r=void 0!==a?Wa(a,t.generatedLine,t.generatedCharacter,!0):-1;let o,i;if(VB(t)){const r=e.getSourceFileLike(l[t.sourceIndex]);o=n.sources[t.sourceIndex],i=void 0!==r?Wa(r,t.sourceLine,t.sourceCharacter,!0):-1}return{generatedPosition:r,source:o,sourceIndex:t.sourceIndex,sourcePosition:i,nameIndex:t.nameIndex}}function m(){if(void 0===d){const t=BB(n.mappings),r=Le(t,f);void 0!==t.error?(e.log&&e.log(`Encountered error while decoding sourcemap: ${t.error}`),d=s):d=r}return d}}var QB={getSourcePosition:sn,getGeneratedPosition:sn};function ZB(e){return(e=fl(e))?cB(e):0}function eG(e){return!!e&&(!(!kN(e)&&!WN(e))&&U(e.elements,nG))}function nG(e){return $p(e.propertyName||e.name)}function tG(e,n){return function(t){return 308===t.kind?n(t):function(t){return e.factory.createBundle(D(t.sourceFiles,n))}(t)}}function rG(e){return!!R_(e)}function oG(e){if(R_(e))return!0;const n=e.importClause&&e.importClause.namedBindings;if(!n)return!1;if(!kN(n))return!1;let t=0;for(const r of n.elements)nG(r)&&t++;return t>0&&t!==n.elements.length||!!(n.elements.length-t)&&I_(e)}function iG(e){return!oG(e)&&(I_(e)||!!e.importClause&&kN(e.importClause.namedBindings)&&eG(e.importClause.namedBindings))}function aG(e,n){const t=e.getEmitResolver(),r=e.getCompilerOptions(),o=[],i=new dG,a=[],s=new Map,l=new Set;let c,d,u=!1,p=!1,f=!1,m=!1;for(const y of n.statements)switch(y.kind){case 273:o.push(y),!f&&oG(y)&&(f=!0),!m&&iG(y)&&(m=!0);break;case 272:284===y.moduleReference.kind&&o.push(y);break;case 279:if(y.moduleSpecifier)if(y.exportClause)if(o.push(y),WN(y.exportClause))_(y),m||(m=eG(y.exportClause));else{const e=y.exportClause.name,n=Xp(e);s.get(n)||(lG(a,ZB(y),e),s.set(n,!0),c=re(c,e)),f=!0}else o.push(y),p=!0;else _(y);break;case 278:y.isExportEquals&&!d&&(d=y);break;case 244:if(Mv(y,32))for(const e of y.declarationList.declarations)c=sG(e,s,c,a);break;case 263:Mv(y,32)&&g(y,void 0,Mv(y,2048));break;case 264:if(Mv(y,32))if(Mv(y,2048))u||(lG(a,ZB(y),e.factory.getDeclarationName(y)),u=!0);else{const e=y.name;e&&!s.get(vl(e))&&(lG(a,ZB(y),e),s.set(vl(e),!0),c=re(c,e))}}const h=OP(e.factory,e.getEmitHelperFactory(),n,r,p,f,m);return h&&o.unshift(h),{externalImports:o,exportSpecifiers:i,exportEquals:d,hasExportStarsToExportValues:p,exportedBindings:a,exportedNames:c,exportedFunctions:l,externalHelpersImportDeclaration:h};function _(e){for(const n of nn(e.exportClause,WN).elements){const r=Xp(n.name);if(!s.get(r)){const o=n.propertyName||n.name;if(11!==o.kind){e.moduleSpecifier||i.add(o,n);const r=t.getReferencedImportDeclaration(o)||t.getReferencedValueDeclaration(o);if(r){if(263===r.kind){g(r,n.name,$p(n.name));continue}lG(a,ZB(r),n.name)}}s.set(r,!0),c=re(c,n.name)}}}function g(n,t,r){if(l.add(fl(n,hN)),r)u||(lG(a,ZB(n),t??e.factory.getDeclarationName(n)),u=!0);else{t??(t=n.name);const e=Xp(t);s.get(e)||(lG(a,ZB(n),t),s.set(e,!0))}}}function sG(e,n,t,r){if(xd(e.name))for(const o of e.name.elements)FC(o)||(t=sG(o,n,t,r));else if(!Jc(e.name)){const o=vl(e.name);n.get(o)||(n.set(o,!0),t=re(t,e.name),TP(e.name)&&lG(r,ZB(e),e.name))}return t}function lG(e,n,t){let r=e[n];return r?r.push(t):e[n]=r=[t],r}var cG=class e{constructor(){this._map=new Map}get size(){return this._map.size}has(n){return this._map.has(e.toKey(n))}get(n){return this._map.get(e.toKey(n))}set(n,t){return this._map.set(e.toKey(n),t),this}delete(n){var t;return(null==(t=this._map)?void 0:t.delete(e.toKey(n)))??!1}clear(){this._map.clear()}values(){return this._map.values()}static toKey(n){if(Xc(n)||Jc(n)){const t=n.emitNode.autoGenerate;if(4==(7&t.flags)){const r=gL(n),o=hc(r)&&r!==n?e.toKey(r):`(generated@${cB(r)})`;return bL(!1,t.prefix,o,t.suffix,e.toKey)}{const n=`(auto@${t.id})`;return bL(!1,t.prefix,n,t.suffix,e.toKey)}}return uD(n)?vl(n).slice(1):vl(n)}},dG=class extends cG{add(e,n){let t=this.get(e);return t?t.push(n):this.set(e,t=[n]),t}remove(e,n){const t=this.get(e);t&&(Un(t,n),t.length||this.delete(e))}};function uG(e){return zu(e)||9===e.kind||Dg(e.kind)||dD(e)}function pG(e){return!dD(e)&&uG(e)}function fG(e){return e>=65&&e<=79}function mG(e){switch(e){case 65:return 40;case 66:return 41;case 67:return 42;case 68:return 43;case 69:return 44;case 70:return 45;case 71:return 48;case 72:return 49;case 73:return 50;case 74:return 51;case 75:return 52;case 79:return 53;case 76:return 57;case 77:return 56;case 78:return 61}}function hG(e){if(!$C(e))return;const n=cg(e.expression);return pm(n)?n:void 0}function _G(e,n,t){for(let r=n;r<e.length;r+=1){const n=e[r];if(hG(n))return t.unshift(r),!0;if(uN(n)&&_G(n.tryBlock.statements,0,t))return t.unshift(r),!0}return!1}function gG(e,n){const t=[];return _G(e,n,t),t}function yG(e,n,t){return x(e.members,e=>function(e,n,t){return MD(e)&&(!!e.initializer||!n)&&Lv(e)===t}(e,n,t))}function vG(e){return MD(n=e)&&Lv(n)||kD(e);var n}function bG(e){return x(e.members,vG)}function TG(e){return 173===e.kind&&void 0!==e.initializer}function SG(e){return!Pv(e)&&(yd(e)||_d(e))&&uD(e.name)}function EG(e){let n;if(e){const t=e.parameters,r=t.length>0&&uv(t[0]),o=r?1:0,i=r?t.length-1:t.length;for(let e=0;e<i;e++){const r=t[e+o];(n||zv(r))&&(n||(n=new Array(i)),n[e]=Nl(r))}}return n}function AG(e,n){const t=Nl(e),r=n?EG(sv(e)):void 0;if(U(t)||U(r))return{decorators:t,parameters:r}}function xG(e,n,t){switch(e.kind){case 178:case 179:return t?function(e,n){if(!e.body)return;const{firstAccessor:t,secondAccessor:r,getAccessor:o,setAccessor:i}=_v(n.members,e),a=zv(t)?t:r&&zv(r)?r:void 0;if(!a||e!==a)return;const s=Nl(a),l=EG(i);if(!U(s)&&!U(l))return;return{decorators:s,parameters:l,getDecorators:o&&Nl(o),setDecorators:i&&Nl(i)}}(e,n):RG(e,!1);case 175:return RG(e,t);case 173:return function(e){const n=Nl(e);if(!U(n))return;return{decorators:n}}(e);default:return}}function RG(e,n){if(!e.body)return;const t=Nl(e),r=n?EG(e):void 0;return U(t)||U(r)?{decorators:t,parameters:r}:void 0}function IG(e){return{data:e}}function DG(e,n){var t,r;return Xc(n)?null==(t=null==e?void 0:e.generatedIdentifiers)?void 0:t.get(gL(n)):null==(r=null==e?void 0:e.identifiers)?void 0:r.get(n.escapedText)}function CG(e,n,t){Xc(n)?(e.generatedIdentifiers??(e.generatedIdentifiers=new Map),e.generatedIdentifiers.set(gL(n),t)):(e.identifiers??(e.identifiers=new Map),e.identifiers.set(n.escapedText,t))}function NG(e,n){return function(e,n){for(;e;){const t=n(e);if(void 0!==t)return t;e=e.previous}}(e,e=>DG(e.privateEnv,n))}function MG(e){return!e.initializer&&dD(e.name)}function PG(e){return g(e,MG)}function LG(e,n){if(!e||!qI(e)||!A_(e.text,n))return e;const t=YE(e.text,lj(e.text,n));return t!==e.text?TR(DL(vR.createStringLiteral(t,e.singleQuote),e),e):e}var kG=(e=>(e[e.All=0]="All",e[e.ObjectRest=1]="ObjectRest",e))(kG||{});function wG(e,n,t,r,o,i){let a,s,l=e;if(lb(e))for(a=e.right;Sb(e.left)||Tb(e.left);){if(!lb(a))return dt.checkDefined(vB(a,n,qd));l=e=a,a=e.right}const c={context:t,level:r,downlevelIteration:!!t.getCompilerOptions().downlevelIteration,hoistTempVariables:!0,emitExpression:d,emitBindingOrAssignment:function(e,r,o,a){dt.assertNode(e,i?dD:qd);const s=i?i(e,r,o):DL(t.factory.createAssignment(dt.checkDefined(vB(e,n,qd)),r),o);s.original=a,d(s)},createArrayBindingOrAssignmentPattern:e=>function(e,n){return dt.assertEachNode(n,kd),e.createArrayLiteralExpression(D(n,e.converters.convertToArrayAssignmentElement))}(t.factory,e),createObjectBindingOrAssignmentPattern:e=>function(e,n){return dt.assertEachNode(n,Pd),e.createObjectLiteralExpression(D(n,e.converters.convertToObjectAssignmentElement))}(t.factory,e),createArrayBindingOrAssignmentElement:jG,visitor:n};if(a&&(a=vB(a,n,qd),dt.assert(a),dD(a)&&OG(e,a.escapedText)||FG(e)?a=VG(c,a,!1,l):o?a=VG(c,a,!0,l):ry(e)&&(l=a)),zG(c,e,a,l,lb(e)),a&&o){if(!U(s))return a;s.push(a)}return t.factory.inlineExpressions(s)||t.factory.createOmittedExpression();function d(e){s=re(s,e)}}function OG(e,n){const t=GP(e);return Nd(t)?function(e,n){const t=KP(e);for(const r of t)if(OG(r,n))return!0;return!1}(t,n):!!dD(t)&&t.escapedText===n}function FG(e){const n=UP(e);if(n&&RD(n)&&!Oc(n.expression))return!0;const t=GP(e);return!!t&&Nd(t)&&!!d(KP(t),FG)}function WG(e,n,t,r,o,i=!1,a){let s;const l=[],c=[],d={context:t,level:r,downlevelIteration:!!t.getCompilerOptions().downlevelIteration,hoistTempVariables:i,emitExpression:function(e){s=re(s,e)},emitBindingOrAssignment:u,createArrayBindingOrAssignmentPattern:e=>function(e,n){return dt.assertEachNode(n,Id),e.createArrayBindingPattern(n)}(t.factory,e),createObjectBindingOrAssignmentPattern:e=>function(e,n){return dt.assertEachNode(n,fC),e.createObjectBindingPattern(n)}(t.factory,e),createArrayBindingOrAssignmentElement:e=>function(e,n){return e.createBindingElement(void 0,void 0,n)}(t.factory,e),visitor:n};if(fN(e)){let n=BP(e);n&&(dD(n)&&OG(e,n.escapedText)||FG(e))&&(n=VG(d,dt.checkDefined(vB(n,d.visitor,qd)),!1,n),e=t.factory.updateVariableDeclaration(e,e.name,void 0,void 0,n))}if(zG(d,e,o,e,a),s){const e=t.factory.createTempVariable(void 0);if(i){const n=t.factory.inlineExpressions(s);s=void 0,u(e,n,void 0,void 0)}else{t.hoistVariableDeclaration(e);const n=ye(l);n.pendingExpressions=re(n.pendingExpressions,t.factory.createAssignment(e,n.value)),ae(n.pendingExpressions,s),n.value=e}}for(const{pendingExpressions:p,name:f,value:m,location:h,original:_}of l){const e=t.factory.createVariableDeclaration(f,void 0,void 0,p?t.factory.inlineExpressions(re(p,m)):m);e.original=_,DL(e,h),c.push(e)}return c;function u(e,n,r,o){dt.assertNode(e,id),s&&(n=t.factory.inlineExpressions(re(s,n)),s=void 0),l.push({pendingExpressions:s,name:e,value:n,location:r,original:o})}}function zG(e,n,t,r,o){const i=GP(n);if(!o){const o=vB(BP(n),e.visitor,qd);o?t?(t=function(e,n,t,r){return n=VG(e,n,!0,r),e.context.factory.createConditionalExpression(e.context.factory.createTypeCheck(n,"undefined"),void 0,t,void 0,n)}(e,t,o,r),!pG(o)&&Nd(i)&&(t=VG(e,t,!0,r))):t=o:t||(t=e.context.factory.createVoidZero())}Md(i)?function(e,n,t,r,o){const i=KP(t),a=i.length;if(1!==a){r=VG(e,r,!Dd(n)||0!==a,o)}let s,l;for(let c=0;c<a;c++){const n=i[c];if(VP(n)){if(c===a-1){s&&(e.emitBindingOrAssignment(e.createObjectBindingOrAssignmentPattern(s),r,o,t),s=void 0);const a=e.context.getEmitHelperFactory().createRestHelper(r,i,l,t);zG(e,n,a,n)}}else{const i=jP(n);if(!(e.level>=1)||98304&n.transformFlags||98304&GP(n).transformFlags||RD(i)){s&&(e.emitBindingOrAssignment(e.createObjectBindingOrAssignmentPattern(s),r,o,t),s=void 0);const a=GG(e,r,i);RD(i)&&(l=re(l,a.argumentExpression)),zG(e,n,a,n)}else s=re(s,vB(n,e.visitor,Cd))}}s&&e.emitBindingOrAssignment(e.createObjectBindingOrAssignmentPattern(s),r,o,t)}(e,n,i,t,r):Ld(i)?function(e,n,t,r,o){const i=KP(t),a=i.length;if(e.level<1&&e.downlevelIteration)r=VG(e,DL(e.context.getEmitHelperFactory().createReadHelper(r,a>0&&VP(i[a-1])?void 0:a),o),!1,o);else if(1!==a&&(e.level<1||0===a)||g(i,FC)){r=VG(e,r,!Dd(n)||0!==a,o)}let s,l;for(let c=0;c<a;c++){const n=i[c];if(e.level>=1)if(65536&n.transformFlags||e.hasTransformedPriorElement&&!BG(n)){e.hasTransformedPriorElement=!0;const t=e.context.factory.createTempVariable(void 0);e.hoistTempVariables&&e.context.hoistVariableDeclaration(t),l=re(l,[t,n]),s=re(s,e.createArrayBindingOrAssignmentElement(t))}else s=re(s,n);else{if(FC(n))continue;if(VP(n)){if(c===a-1){const t=e.context.factory.createArraySliceCall(r,c);zG(e,n,t,n)}}else{const t=e.context.factory.createElementAccessExpression(r,c);zG(e,n,t,n)}}}s&&e.emitBindingOrAssignment(e.createArrayBindingOrAssignmentPattern(s),r,o,t);if(l)for(const[c,d]of l)zG(e,d,c,d)}(e,n,i,t,r):e.emitBindingOrAssignment(i,t,r,n)}function BG(e){const n=GP(e);if(!n||FC(n))return!0;const t=UP(e);if(t&&!Ug(t))return!1;const r=BP(e);return!(r&&!pG(r))&&(Nd(n)?g(KP(n),BG):dD(n))}function GG(e,n,t){const{factory:r}=e.context;if(RD(t)){const r=VG(e,dt.checkDefined(vB(t.expression,e.visitor,qd)),!1,t);return e.context.factory.createElementAccessExpression(n,r)}if(zg(t)||KI(t)){const o=r.cloneNode(t);return e.context.factory.createElementAccessExpression(n,o)}{const r=e.context.factory.createIdentifier(vl(t));return e.context.factory.createPropertyAccessExpression(n,r)}}function VG(e,n,t,r){if(dD(n)&&t)return n;{const t=e.context.factory.createTempVariable(void 0);return e.hoistTempVariables?(e.context.hoistVariableDeclaration(t),e.emitExpression(DL(e.context.factory.createAssignment(t,n),r))):e.emitBindingOrAssignment(t,n,r,void 0),t}}function jG(e){return e}function UG(e){var n;if(!kD(e)||1!==e.body.statements.length)return!1;const t=e.body.statements[0];return $C(t)&&sb(t.expression,!0)&&dD(t.expression.left)&&(null==(n=e.emitNode)?void 0:n.classThis)===t.expression.left&&110===t.expression.right.kind}function HG(e){var n;return!!(null==(n=e.emitNode)?void 0:n.classThis)&&U(e.members,UG)}function KG(e,n,t,r){if(HG(n))return n;const o=function(e,n,t=e.createThis()){const r=e.createAssignment(n,t),o=e.createExpressionStatement(r),i=e.createBlock([o],!1),a=e.createClassStaticBlockDeclaration(i);return SR(a).classThis=n,a}(e,t,r);n.name&&NR(o.body.statements[0],n.name);const i=e.createNodeArray([o,...n.members]);DL(i,n.members);const a=_N(n)?e.updateClassDeclaration(n,n.modifiers,n.name,n.typeParameters,n.heritageClauses,i):e.updateClassExpression(n,n.modifiers,n.name,n.typeParameters,n.heritageClauses,i);return SR(a).classThis=t,a}function qG(e,n,t){const r=fl(MP(t));return(_N(r)||hN(r))&&!r.name&&Mv(r,2048)?e.createStringLiteral("default"):e.createStringLiteralFromNode(n)}function JG(e,n,t){const{factory:r}=e;if(void 0!==t){return{assignedName:r.createStringLiteral(t),name:n}}if(Ug(n)||uD(n)){return{assignedName:r.createStringLiteralFromNode(n),name:n}}if(Ug(n.expression)&&!dD(n.expression)){return{assignedName:r.createStringLiteralFromNode(n.expression),name:n}}const o=r.getGeneratedNameForNode(n);e.hoistVariableDeclaration(o);const i=e.getEmitHelperFactory().createPropKeyHelper(n.expression),a=r.createAssignment(o,i);return{assignedName:o,name:r.updateComputedPropertyName(n,a)}}function XG(e){var n;if(!kD(e)||1!==e.body.statements.length)return!1;const t=e.body.statements[0];return $C(t)&&UI(t.expression,"___setFunctionName")&&t.expression.arguments.length>=2&&t.expression.arguments[1]===(null==(n=e.emitNode)?void 0:n.assignedName)}function YG(e){var n;return!!(null==(n=e.emitNode)?void 0:n.assignedName)&&U(e.members,XG)}function $G(e){return!!e.name||YG(e)}function QG(e,n,t,r){if(YG(n))return n;const{factory:o}=e,i=function(e,n,t=e.factory.createThis()){const{factory:r}=e,o=e.getEmitHelperFactory().createSetFunctionNameHelper(t,n),i=r.createExpressionStatement(o),a=r.createBlock([i],!1),s=r.createClassStaticBlockDeclaration(a);return SR(s).assignedName=n,s}(e,t,r);n.name&&NR(i.body.statements[0],n.name);const a=b(n.members,UG)+1,s=n.members.slice(0,a),l=n.members.slice(a),c=o.createNodeArray([...s,i,...l]);return DL(c,n.members),SR(n=_N(n)?o.updateClassDeclaration(n,n.modifiers,n.name,n.typeParameters,n.heritageClauses,c):o.updateClassExpression(n,n.modifiers,n.name,n.typeParameters,n.heritageClauses,c)).assignedName=t,n}function ZG(e,n,t,r){if(r&&qI(t)&&Th(t))return n;const{factory:o}=e,i=MP(n),a=OC(i)?nn(QG(e,i,t),OC):e.getEmitHelperFactory().createSetFunctionNameHelper(i,t);return o.restoreOuterExpressions(n,a)}function eV(e,n,t,r){switch(n.kind){case 304:return function(e,n,t,r){const{factory:o}=e,{assignedName:i,name:a}=JG(e,n.name,r),s=ZG(e,n.initializer,i,t);return o.updatePropertyAssignment(n,a,s)}(e,n,t,r);case 305:return function(e,n,t,r){const{factory:o}=e,i=void 0!==r?o.createStringLiteral(r):qG(o,n.name,n.objectAssignmentInitializer),a=ZG(e,n.objectAssignmentInitializer,i,t);return o.updateShorthandPropertyAssignment(n,n.name,a)}(e,n,t,r);case 261:return function(e,n,t,r){const{factory:o}=e,i=void 0!==r?o.createStringLiteral(r):qG(o,n.name,n.initializer),a=ZG(e,n.initializer,i,t);return o.updateVariableDeclaration(n,n.name,n.exclamationToken,n.type,a)}(e,n,t,r);case 170:return function(e,n,t,r){const{factory:o}=e,i=void 0!==r?o.createStringLiteral(r):qG(o,n.name,n.initializer),a=ZG(e,n.initializer,i,t);return o.updateParameterDeclaration(n,n.modifiers,n.dotDotDotToken,n.name,n.questionToken,n.type,a)}(e,n,t,r);case 209:return function(e,n,t,r){const{factory:o}=e,i=void 0!==r?o.createStringLiteral(r):qG(o,n.name,n.initializer),a=ZG(e,n.initializer,i,t);return o.updateBindingElement(n,n.dotDotDotToken,n.propertyName,n.name,a)}(e,n,t,r);case 173:return function(e,n,t,r){const{factory:o}=e,{assignedName:i,name:a}=JG(e,n.name,r),s=ZG(e,n.initializer,i,t);return o.updatePropertyDeclaration(n,n.modifiers,a,n.questionToken??n.exclamationToken,n.type,s)}(e,n,t,r);case 227:return function(e,n,t,r){const{factory:o}=e,i=void 0!==r?o.createStringLiteral(r):qG(o,n.left,n.right),a=ZG(e,n.right,i,t);return o.updateBinaryExpression(n,n.left,n.operatorToken,a)}(e,n,t,r);case 278:return function(e,n,t,r){const{factory:o}=e,i=void 0!==r?o.createStringLiteral(r):o.createStringLiteral(n.isExportEquals?"":"default"),a=ZG(e,n.expression,i,t);return o.updateExportAssignment(n,n.modifiers,a)}(e,n,t,r)}}var nV=(e=>(e[e.LiftRestriction=0]="LiftRestriction",e[e.All=1]="All",e))(nV||{});function tV(e,n,t,r,o,i){const a=vB(n.tag,t,qd);dt.assert(a);const s=[void 0],l=[],c=[],d=n.template;if(0===i&&!gy(d))return CB(n,t,e);const{factory:u}=e;if(YI(d))l.push(rV(u,d)),c.push(oV(u,d,r));else{l.push(rV(u,d.head)),c.push(oV(u,d.head,r));for(const e of d.templateSpans)l.push(rV(u,e.literal)),c.push(oV(u,e.literal,r)),s.push(dt.checkDefined(vB(e.expression,t,qd)))}const p=e.getEmitHelperFactory().createTemplateObjectHelper(u.createArrayLiteralExpression(l),u.createArrayLiteralExpression(c));if(dk(r)){const e=u.createUniqueName("templateObject");o(e),s[0]=u.createLogicalOr(e,u.createAssignment(e,p))}else s[0]=p;return u.createCallExpression(a,void 0,s)}function rV(e,n){return 26656&n.templateFlags?e.createVoidZero():e.createStringLiteral(n.text)}function oV(e,n,t){let r=n.rawText;if(void 0===r){dt.assertIsDefined(t,"Template literal node is missing 'rawText' and does not have a source file. Possibly bad transform."),r=qp(t,n);const e=15===n.kind||18===n.kind;r=r.substring(1,r.length-(e?1:2))}return r=r.replace(/\r\n?/g,"\n"),DL(e.createStringLiteral(r),n)}function iV(e){const{factory:n,getEmitHelperFactory:t,startLexicalEnvironment:r,resumeLexicalEnvironment:o,endLexicalEnvironment:i,hoistVariableDeclaration:a}=e,s=e.getEmitResolver(),l=e.getCompilerOptions(),c=SS(l),d=ES(l),u=!!l.experimentalDecorators,p=l.emitDecoratorMetadata?lV(e):void 0,f=e.onEmitNode,m=e.onSubstituteNode;let h,_,g,y,v;e.onEmitNode=function(e,n,t){const r=b,o=h;uM(n)&&(h=n);2&T&&function(e){return 268===fl(e).kind}(n)&&(b|=2);8&T&&function(e){return 267===fl(e).kind}(n)&&(b|=8);f(e,n,t),b=r,h=o},e.onSubstituteNode=function(e,t){if(t=m(e,t),1===e)return function(e){switch(e.kind){case 80:return function(e){return Ee(e)||e}(e);case 212:case 213:return function(e){return Ae(e)}(e)}return e}(t);if(lM(t))return function(e){if(2&T){const t=e.name,r=Ee(t);if(r){if(e.objectAssignmentInitializer){const o=n.createAssignment(r,e.objectAssignmentInitializer);return DL(n.createPropertyAssignment(t,o),e)}return DL(n.createPropertyAssignment(t,r),e)}}return e}(t);return t},e.enableSubstitution(212),e.enableSubstitution(213);let b,T=0;return function(e){if(309===e.kind)return function(e){return n.createBundle(e.sourceFiles.map(S))}(e);return S(e)};function S(n){if(n.isDeclarationFile)return n;h=n;const t=E(n,z);return qR(t,e.readEmitHelpers()),h=void 0,t}function E(e,n){const t=y,r=v;!function(e){switch(e.kind){case 308:case 270:case 269:case 242:y=e,v=void 0;break;case 264:case 263:if(Mv(e,128))break;e.name?oe(e):dt.assert(264===e.kind||Mv(e,2048))}}(e);const o=n(e);return y!==t&&(v=r),y=t,o}function A(e){return E(e,R)}function R(e){return 1&e.transformFlags?W(e):e}function I(e){return E(e,C)}function C(t){switch(t.kind){case 273:case 272:case 278:case 279:return function(t){if(function(e){const n=_l(e);if(n===e||ON(e))return!1;if(!n||n.kind!==e.kind)return!0;switch(e.kind){case 273:if(dt.assertNode(n,xN),e.importClause!==n.importClause)return!0;if(e.attributes!==n.attributes)return!0;break;case 272:if(dt.assertNode(n,AN),e.name!==n.name)return!0;if(e.isTypeOnly!==n.isTypeOnly)return!0;if(e.moduleReference!==n.moduleReference&&(rd(e.moduleReference)||rd(n.moduleReference)))return!0;break;case 279:if(dt.assertNode(n,FN),e.exportClause!==n.exportClause)return!0;if(e.attributes!==n.attributes)return!0}return!1}(t))return 1&t.transformFlags?CB(t,A,e):t;switch(t.kind){case 273:return function(e){if(!e.importClause)return e;if(e.importClause.isTypeOnly)return;const t=vB(e.importClause,de,RN);return t?n.updateImportDeclaration(e,void 0,t,e.moduleSpecifier,e.attributes):void 0}(t);case 272:return me(t);case 278:return function(n){return l.verbatimModuleSyntax||s.isValueAliasDeclaration(n)?CB(n,A,e):void 0}(t);case 279:return function(e){if(e.isTypeOnly)return;if(!e.exportClause||LN(e.exportClause))return n.updateExportDeclaration(e,e.modifiers,e.isTypeOnly,e.exportClause,e.moduleSpecifier,e.attributes);const t=!!l.verbatimModuleSyntax,r=vB(e.exportClause,e=>function(e,t){return LN(e)?function(e){return n.updateNamespaceExport(e,dt.checkDefined(vB(e.name,A,dD)))}(e):function(e,t){const r=bB(e.elements,fe,zN);return t||U(r)?n.updateNamedExports(e,r):void 0}(e,t)}(e,t),Cc);return r?n.updateExportDeclaration(e,void 0,e.isTypeOnly,r,e.moduleSpecifier,e.attributes):void 0}(t);default:dt.fail("Unhandled ellided statement")}}(t);default:return R(t)}}function N(e){return E(e,M)}function M(e){if(279!==e.kind&&273!==e.kind&&274!==e.kind&&(272!==e.kind||284!==e.moduleReference.kind))return 1&e.transformFlags||Mv(e,32)?W(e):e}function P(t){return r=>E(r,r=>function(t,r){switch(t.kind){case 177:return function(t){if(!J(t))return;return n.updateConstructorDeclaration(t,void 0,AB(t.parameters,A,e),function(t,r){const a=r&&x(r.parameters,e=>tl(e,r));if(!U(a))return RB(t,A,e);let s=[];o();const l=n.copyPrologue(t.statements,s,!1,A),c=gG(t.statements,l),d=F(a,Y);c.length?X(s,t.statements,l,c,0,d):(ae(s,d),ae(s,bB(t.statements,A,_u,l)));s=n.mergeLexicalEnvironment(s,i());const u=n.createBlock(DL(n.createNodeArray(s),t.statements),!0);return DL(u,t),TR(u,t),u}(t.body,t))}(t);case 173:return function(e,t){const r=33554432&e.flags||Mv(e,64);if(r&&(!u||!zv(e)))return;let o=md(t)?bB(e.modifiers,r?w:A,vd):bB(e.modifiers,k,vd);if(o=j(o,e,t),r)return n.updatePropertyDeclaration(e,K(o,n.createModifiersFromModifierFlags(128)),dt.checkDefined(vB(e.name,A,od)),void 0,void 0,void 0);return n.updatePropertyDeclaration(e,o,q(e),void 0,void 0,vB(e.initializer,A,qd))}(t,r);case 178:return Z(t,r);case 179:return ee(t,r);case 175:return $(t,r);case 176:return CB(t,A,e);case 241:return t;case 182:return;default:return dt.failBadSyntaxKind(t)}}(r,t))}function L(e){return n=>E(n,n=>function(e,n){switch(e.kind){case 304:case 305:case 306:return A(e);case 178:return Z(e,n);case 179:return ee(e,n);case 175:return $(e,n);default:return dt.failBadSyntaxKind(e)}}(n,e))}function k(e){return CD(e)?void 0:A(e)}function w(e){return td(e)?void 0:A(e)}function O(e){if(!CD(e)&&!(28895&$v(e.kind)||_&&95===e.kind))return e}function W(t){if(_u(t)&&Mv(t,128))return n.createNotEmittedStatement(t);switch(t.kind){case 95:case 90:return _?void 0:t;case 125:case 123:case 124:case 128:case 164:case 87:case 138:case 148:case 103:case 147:case 189:case 190:case 191:case 192:case 188:case 183:case 169:case 133:case 159:case 136:case 154:case 150:case 146:case 116:case 155:case 186:case 185:case 187:case 184:case 193:case 194:case 195:case 197:case 198:case 199:case 200:case 201:case 202:case 182:case 271:return;case 266:case 265:return n.createNotEmittedStatement(t);case 264:return function(t){const r=function(e){let n=0;U(yG(e,!0,!0))&&(n|=1);const t=Tg(e);t&&106!==MP(t.expression).kind&&(n|=64);vh(u,e)&&(n|=2);yh(u,e)&&(n|=4);he(e)?n|=8:!function(e){return _e(e)&&Mv(e,2048)}(e)?ge(e)&&(n|=16):n|=32;return n}(t),o=c<=1&&!!(7&r);if(!function(e){return zv(e)||U(e.typeParameters)||U(e.heritageClauses,B)||U(e.members,B)}(t)&&!vh(u,t)&&!he(t))return n.updateClassDeclaration(t,bB(t.modifiers,O,td),t.name,void 0,bB(t.heritageClauses,A,iM),bB(t.members,P(t),fd));o&&e.startLexicalEnvironment();const i=o||8&r;let a=bB(t.modifiers,i?w:A,vd);2&r&&(a=V(a,t));const s=i&&!t.name||4&r||1&r,l=s?t.name??n.getGeneratedNameForNode(t):t.name,d=n.updateClassDeclaration(t,a,l,void 0,bB(t.heritageClauses,A,iM),G(t));let p,f=tf(t);1&r&&(f|=64);if(xR(d,f),o){const r=[d],o=Gb(es(h.text,t.members.end),20),i=n.getInternalName(t),a=n.createPartiallyEmittedExpression(i);DA(a,o.end),xR(a,3072);const s=n.createReturnStatement(a);IA(s,o.pos),xR(s,3840),r.push(s),Fp(r,e.endLexicalEnvironment());const l=n.createImmediatelyInvokedArrowFunction(r);IR(l,1);const c=n.createVariableDeclaration(n.getLocalName(t,!1,!1),void 0,void 0,l);TR(c,t);const u=n.createVariableStatement(void 0,n.createVariableDeclarationList([c],1));TR(u,t),OR(u,t),NR(u,zb(t)),LP(u),p=u}else p=d;if(i){if(8&r)return[p,ye(t)];if(32&r)return[p,n.createExportDefault(n.getLocalName(t,!1,!0))];if(16&r)return[p,n.createExternalModuleExport(n.getDeclarationName(t,!1,!0))]}return p}(t);case 232:return function(e){let t=bB(e.modifiers,w,vd);vh(u,e)&&(t=V(t,e));return n.updateClassExpression(e,t,e.name,void 0,bB(e.heritageClauses,A,iM),G(e))}(t);case 299:return function(n){if(119===n.token)return;return CB(n,A,e)}(t);case 234:return function(e){return n.updateExpressionWithTypeArguments(e,dt.checkDefined(vB(e.expression,A,Gd)),void 0)}(t);case 211:return function(e){return n.updateObjectLiteralExpression(e,bB(e.properties,L(e),Sd))}(t);case 177:case 173:case 175:case 178:case 179:case 176:return dt.fail("Class and object literal elements must be visited with their respective visitors");case 263:return function(t){if(!J(t))return n.createNotEmittedStatement(t);const r=n.updateFunctionDeclaration(t,bB(t.modifiers,O,td),t.asteriskToken,t.name,void 0,AB(t.parameters,A,e),void 0,RB(t.body,A,e)||n.createBlock([]));if(he(t)){const e=[r];return function(e,n){e.push(ye(n))}(e,t),e}return r}(t);case 219:return function(t){if(!J(t))return n.createOmittedExpression();const r=n.updateFunctionExpression(t,bB(t.modifiers,O,td),t.asteriskToken,t.name,void 0,AB(t.parameters,A,e),void 0,RB(t.body,A,e)||n.createBlock([]));return r}(t);case 220:return function(t){const r=n.updateArrowFunction(t,bB(t.modifiers,O,td),void 0,AB(t.parameters,A,e),void 0,t.equalsGreaterThanToken,RB(t.body,A,e));return r}(t);case 170:return function(e){if(uv(e))return;const t=n.updateParameterDeclaration(e,bB(e.modifiers,e=>CD(e)?A(e):void 0,vd),e.dotDotDotToken,dt.checkDefined(vB(e.name,A,id)),void 0,void 0,vB(e.initializer,A,qd));t!==e&&(OR(t,e),DL(t,Bb(e)),NR(t,Bb(e)),xR(t.name,64));return t}(t);case 218:return function(t){const r=MP(t.expression,-55);if(Jd(r)||BC(r)){const e=vB(t.expression,A,qd);return dt.assert(e),n.createPartiallyEmittedExpression(e,t)}return CB(t,A,e)}(t);case 217:case 235:return function(e){const t=vB(e.expression,A,qd);return dt.assert(t),n.createPartiallyEmittedExpression(t,e)}(t);case 239:return function(e){const t=vB(e.expression,A,qd);return dt.assert(t),n.createPartiallyEmittedExpression(t,e)}(t);case 214:return function(e){return n.updateCallExpression(e,dt.checkDefined(vB(e.expression,A,qd)),void 0,bB(e.arguments,A,qd))}(t);case 215:return function(e){return n.updateNewExpression(e,dt.checkDefined(vB(e.expression,A,qd)),void 0,bB(e.arguments,A,qd))}(t);case 216:return function(e){return n.updateTaggedTemplateExpression(e,dt.checkDefined(vB(e.tag,A,qd)),void 0,dt.checkDefined(vB(e.template,A,Bd)))}(t);case 236:return function(e){const t=vB(e.expression,A,Gd);return dt.assert(t),n.createPartiallyEmittedExpression(t,e)}(t);case 267:return function(e){if(!function(e){return!im(e)||LS(l)}(e))return n.createNotEmittedStatement(e);const t=[];let o=4;const a=se(t,e);a&&(4===d&&y===h||(o|=1024));const s=Te(e),c=Se(e),u=he(e)?n.getExternalModuleOrNamespaceExportName(g,e,!1,!0):n.getDeclarationName(e,!1,!0);let p=n.createLogicalOr(u,n.createAssignment(u,n.createObjectLiteralExpression()));if(he(e)){const t=n.getLocalName(e,!1,!0);p=n.createAssignment(t,p)}const f=n.createExpressionStatement(n.createCallExpression(n.createFunctionExpression(void 0,void 0,void 0,void 0,[n.createParameterDeclaration(void 0,void 0,s)],void 0,function(e,t){const o=g;g=t;const a=[];r();const s=D(e.members,te);return Fp(a,i()),ae(a,s),g=o,n.createBlock(DL(n.createNodeArray(a),e.members),!0)}(e,c)),void 0,[p]));TR(f,e),a&&(WR(f,void 0),GR(f,void 0));return DL(f,e),RR(f,o),t.push(f),t}(t);case 244:return function(t){if(he(t)){const e=rT(t.declarationList);if(0===e.length)return;return DL(n.createExpressionStatement(n.inlineExpressions(D(e,ne))),t)}return CB(t,A,e)}(t);case 261:return function(e){const t=n.updateVariableDeclaration(e,dt.checkDefined(vB(e.name,A,id)),void 0,void 0,vB(e.initializer,A,qd));e.type&&eI(t.name,e.type);return t}(t);case 268:return le(t);case 272:return me(t);case 286:return function(e){return n.updateJsxSelfClosingElement(e,dt.checkDefined(vB(e.tagName,A,vu)),void 0,dt.checkDefined(vB(e.attributes,A,ZN)))}(t);case 287:return function(e){return n.updateJsxOpeningElement(e,dt.checkDefined(vB(e.tagName,A,vu)),void 0,dt.checkDefined(vB(e.attributes,A,ZN)))}(t);default:return CB(t,A,e)}}function z(t){const r=US(l,"alwaysStrict")&&!(dk(t)&&d>=5)&&!om(t);return n.updateSourceFile(t,EB(t.statements,I,e,0,r))}function B(e){return!!(8192&e.transformFlags)}function G(e){const t=bB(e.members,P(e),fd);let r;const o=sv(e),i=o&&x(o.parameters,e=>tl(e,o));if(i)for(const a of i){const e=n.createPropertyDeclaration(void 0,a.name,void 0,void 0,void 0);TR(e,a),r=re(r,e)}return r?(r=ae(r,t),DL(n.createNodeArray(r),e.members)):t}function V(e,t){const r=H(t,t);if(U(r)){const t=[];ae(t,st(e,hL)),ae(t,x(e,CD)),ae(t,r),ae(t,x(lt(e,hL),td)),e=DL(n.createNodeArray(t),e)}return e}function j(e,t,r){if(md(r)&&bh(u,t,r)){const o=H(t,r);if(U(o)){const t=[];ae(t,x(e,CD)),ae(t,o),ae(t,x(e,td)),e=DL(n.createNodeArray(t),e)}}return e}function H(e,r){if(u)return function(e,r){if(p){let o;if(function(e){const n=e.kind;return 175===n||178===n||179===n||173===n}(e)){const i=t().createMetadataHelper("design:type",p.serializeTypeOfNode({currentLexicalScope:y,currentNameScope:r},e,r));o=re(o,n.createDecorator(i))}if(function(e){switch(e.kind){case 264:case 232:return void 0!==sv(e);case 175:case 178:case 179:return!0}return!1}(e)){const i=t().createMetadataHelper("design:paramtypes",p.serializeParameterTypesOfNode({currentLexicalScope:y,currentNameScope:r},e,r));o=re(o,n.createDecorator(i))}if(function(e){return 175===e.kind}(e)){const i=t().createMetadataHelper("design:returntype",p.serializeReturnTypeOfNode({currentLexicalScope:y,currentNameScope:r},e));o=re(o,n.createDecorator(i))}return o}}(e,r)}function q(e){const t=e.name;if(u&&RD(t)&&zv(e)){const e=vB(t.expression,A,qd);dt.assert(e);if(!pG(Rc(e))){const r=n.getGeneratedNameForNode(t);return a(r),n.updateComputedPropertyName(t,n.createAssignment(r,e))}}return dt.checkDefined(vB(t,A,od))}function J(e){return!Np(e.body)}function X(e,t,r,o,i,a){const s=o[i],l=t[s];if(ae(e,bB(t,A,_u,r,s-r)),uN(l)){const t=[];X(t,l.tryBlock.statements,0,o,i+1,a);DL(n.createNodeArray(t),l.tryBlock.statements),e.push(n.updateTryStatement(l,n.updateBlock(l.tryBlock,t),vB(l.catchClause,A,aM),vB(l.finallyBlock,A,JC)))}else ae(e,bB(t,A,_u,s,1)),ae(e,a);ae(e,bB(t,A,_u,s+1))}function Y(e){const t=e.name;if(!dD(t))return;const r=PA(DL(n.cloneNode(t),t),t.parent);xR(r,3168);const o=PA(DL(n.cloneNode(t),t),t.parent);return xR(o,3072),LP(AR(DL(TR(n.createExpressionStatement(n.createAssignment(DL(n.createPropertyAccessExpression(n.createThis(),r),e.name),o)),e),Wb(e,-1))))}function $(t,r){if(!(1&t.transformFlags))return t;if(!J(t))return;let o=md(r)?bB(t.modifiers,A,vd):bB(t.modifiers,k,vd);return o=j(o,t,r),n.updateMethodDeclaration(t,o,t.asteriskToken,q(t),void 0,void 0,AB(t.parameters,A,e),void 0,RB(t.body,A,e))}function Q(e){return!(Np(e.body)&&Mv(e,64))}function Z(t,r){if(!(1&t.transformFlags))return t;if(!Q(t))return;let o=md(r)?bB(t.modifiers,A,vd):bB(t.modifiers,k,vd);return o=j(o,t,r),n.updateGetAccessorDeclaration(t,o,q(t),AB(t.parameters,A,e),void 0,RB(t.body,A,e)||n.createBlock([]))}function ee(t,r){if(!(1&t.transformFlags))return t;if(!Q(t))return;let o=md(r)?bB(t.modifiers,A,vd):bB(t.modifiers,k,vd);return o=j(o,t,r),n.updateSetAccessorDeclaration(t,o,q(t),AB(t.parameters,A,e),RB(t.body,A,e)||n.createBlock([]))}function ne(t){const r=t.name;return xd(r)?wG(t,A,e,0,!1,ve):DL(n.createAssignment(be(r),dt.checkDefined(vB(t.initializer,A,qd))),t)}function te(t){const r=function(e){const t=e.name;return uD(t)?n.createIdentifier(""):RD(t)?t.expression:dD(t)?n.createStringLiteral(vl(t)):n.cloneNode(t)}(t),o=s.getEnumMemberValue(t),i=function(t,r){return void 0!==r?"string"==typeof r?n.createStringLiteral(r):r<0?n.createPrefixUnaryExpression(41,n.createNumericLiteral(-r)):n.createNumericLiteral(r):(8&T||(T|=8,e.enableSubstitution(80)),t.initializer?dt.checkDefined(vB(t.initializer,A,qd)):n.createVoidZero())}(t,null==o?void 0:o.value),a=n.createAssignment(n.createElementAccessExpression(g,r),i),l="string"==typeof(null==o?void 0:o.value)||(null==o?void 0:o.isSyntacticallyString)?a:n.createAssignment(n.createElementAccessExpression(g,a),r);return DL(n.createExpressionStatement(DL(l,t)),t)}function oe(e){v||(v=new Map);const n=ie(e);v.has(n)||v.set(n,e)}function ie(e){return dt.assertNode(e.name,dD),e.name.escapedText}function se(e,t){const r=n.createVariableDeclaration(n.getLocalName(t,!1,!0)),o=308===y.kind?0:1,i=n.createVariableStatement(bB(t.modifiers,O,td),n.createVariableDeclarationList([r],o));return TR(r,t),WR(r,void 0),GR(r,void 0),TR(i,t),oe(t),!!function(e){if(v){const n=ie(e);return v.get(n)===e}return!0}(t)&&(267===t.kind?NR(i.declarationList,t):NR(i,t),OR(i,t),RR(i,2048),e.push(i),!0)}function le(t){if(!function(e){const n=_l(e,bN);return!n||uB(n,LS(l))}(t))return n.createNotEmittedStatement(t);dt.assertNode(t.name,dD,"A TypeScript namespace should have an Identifier name."),2&T||(T|=2,e.enableSubstitution(80),e.enableSubstitution(305),e.enableEmitNotification(268));const o=[];let a=4;const s=se(o,t);s&&(4===d&&y===h||(a|=1024));const c=Te(t),u=Se(t),p=he(t)?n.getExternalModuleOrNamespaceExportName(g,t,!1,!0):n.getDeclarationName(t,!1,!0);let f=n.createLogicalOr(p,n.createAssignment(p,n.createObjectLiteralExpression()));if(he(t)){const e=n.getLocalName(t,!1,!0);f=n.createAssignment(e,f)}const m=n.createExpressionStatement(n.createCallExpression(n.createFunctionExpression(void 0,void 0,void 0,void 0,[n.createParameterDeclaration(void 0,void 0,c)],void 0,function(e,t){const o=g,a=_,s=v;g=t,_=e,v=void 0;const l=[];let c,d;if(r(),e.body)if(269===e.body.kind)E(e.body,e=>ae(l,bB(e.statements,N,_u))),c=e.body.statements,d=e.body;else{const n=le(e.body);n&&(Ye(n)?ae(l,n):l.push(n));c=Wb(ce(e).body.statements,-1)}Fp(l,i()),g=o,_=a,v=s;const u=n.createBlock(DL(n.createNodeArray(l),c),!0);DL(u,d),e.body&&269===e.body.kind||xR(u,3072|tf(u));return u}(t,u)),void 0,[f]));return TR(m,t),s&&(WR(m,void 0),GR(m,void 0)),DL(m,t),RR(m,a),o.push(m),o}function ce(e){if(268===e.body.kind){return ce(e.body)||e.body}}function de(e){dt.assert(156!==e.phaseModifier);const t=xe(e)?e.name:void 0,r=vB(e.namedBindings,ue,su);return t||r?n.updateImportClause(e,e.phaseModifier,t,r):void 0}function ue(e){if(275===e.kind)return xe(e)?e:void 0;{const t=l.verbatimModuleSyntax,r=bB(e.elements,pe,wN);return t||U(r)?n.updateNamedImports(e,r):void 0}}function pe(e){return!e.isTypeOnly&&xe(e)?e:void 0}function fe(e){return e.isTypeOnly||!l.verbatimModuleSyntax&&!s.isValueAliasDeclaration(e)?void 0:e}function me(t){if(t.isTypeOnly)return;if(Ih(t)){if(!xe(t))return;return CB(t,A,e)}if(!function(e){return xe(e)||!dk(h)&&s.isTopLevelValueImportEqualsWithEntityName(e)}(t))return;const r=_P(n,t.moduleReference);return xR(r,7168),ge(t)||!he(t)?TR(DL(n.createVariableStatement(bB(t.modifiers,O,td),n.createVariableDeclarationList([TR(n.createVariableDeclaration(t.name,void 0,void 0,r),t)])),t),t):TR((o=t.name,i=r,a=t,DL(n.createExpressionStatement(n.createAssignment(n.getNamespaceMemberName(g,o,!1,!0),i)),a)),t);var o,i,a}function he(e){return void 0!==_&&Mv(e,32)}function _e(e){return void 0===_&&Mv(e,32)}function ge(e){return _e(e)&&!Mv(e,2048)}function ye(e){const t=n.createAssignment(n.getExternalModuleOrNamespaceExportName(g,e,!1,!0),n.getLocalName(e));NR(t,Ob(e.name?e.name.pos:e.pos,e.end));const r=n.createExpressionStatement(t);return NR(r,Ob(-1,e.end)),r}function ve(e,t,r){return DL(n.createAssignment(be(e),t),r)}function be(e){return n.getNamespaceMemberName(g,e,!1,!0)}function Te(e){const t=n.getGeneratedNameForNode(e);return NR(t,e.name),t}function Se(e){return n.getGeneratedNameForNode(e)}function Ee(e){if(T&b&&!Jc(e)&&!TP(e)){const t=s.getReferencedExportContainer(e,!1);if(t&&308!==t.kind){if(2&b&&268===t.kind||8&b&&267===t.kind)return DL(n.createPropertyAccessExpression(n.getGeneratedNameForNode(t),e),e)}}}function Ae(e){const t=function(e){if(RS(l))return;return _C(e)||gC(e)?s.getConstantValue(e):void 0}(e);if(void 0!==t){HR(e,t);const o="string"==typeof t?n.createStringLiteral(t):t<0?n.createPrefixUnaryExpression(41,n.createNumericLiteral(-t)):n.createNumericLiteral(t);if(!l.removeComments){const n=fl(e,IT);VR(o,3,` ${r=Zp(n),r.replace(/\*\//g,"*_/")} `)}return o}var r;return e}function xe(e){return l.verbatimModuleSyntax||Lh(e)||s.isReferencedAliasDeclaration(e)}}function aV(e){const{factory:n,getEmitHelperFactory:t,hoistVariableDeclaration:r,endLexicalEnvironment:o,startLexicalEnvironment:i,resumeLexicalEnvironment:a,addBlockScopedVariable:s}=e,l=e.getEmitResolver(),c=e.getCompilerOptions(),d=SS(c),u=FS(c),p=!!c.experimentalDecorators,f=!u,m=u&&d<9,h=f||m,_=d<9,g=d<99?-1:u?0:3,v=d<9,b=v&&d>=2,T=h||_||-1===g,S=e.onSubstituteNode;e.onSubstituteNode=function(e,t){if(t=S(e,t),1===e)return function(e){switch(e.kind){case 80:return function(e){return function(e){if(1&M&&l.hasNodeCheckFlag(e,536870912)){const t=l.getReferencedValueDeclaration(e);if(t){const r=A[t.id];if(r){const t=n.cloneNode(r);return NR(t,e),OR(t,e),t}}}return}(e)||e}(e);case 110:return function(e){if(2&M&&(null==C?void 0:C.data)&&!L.has(e)){const{facts:t,classConstructor:r,classThis:o}=C.data,i=O?o??r:r;if(i)return DL(TR(n.cloneNode(i),e),e);if(1&t&&p)return n.createParenthesizedExpression(n.createVoidZero())}return e}(e)}return e}(t);return t};const E=e.onEmitNode;e.onEmitNode=function(e,n,t){const r=fl(n),o=P.get(r);if(o){const i=C,a=F;return C=o,F=O,O=!(kD(r)&&32&rf(r)),E(e,n,t),O=F,F=a,void(C=i)}switch(n.kind){case 219:if(AC(r)||524288&tf(n))break;case 263:case 177:case 178:case 179:case 175:case 173:{const r=C,o=F;return C=void 0,F=O,O=!1,E(e,n,t),O=F,F=o,void(C=r)}case 168:{const r=C,o=O;return C=null==C?void 0:C.previous,O=F,E(e,n,t),O=o,void(C=r)}}E(e,n,t)};let A,R,I,C,N=!1,M=0;const P=new Map,L=new Set;let k,w,O=!1,F=!1;return tG(e,function(n){if(n.isDeclarationFile)return n;if(C=void 0,N=!!(32&rf(n)),!T&&!N)return n;const t=CB(n,z,e);return qR(t,e.readEmitHelpers()),t});function W(e){return 129===e.kind?oe()?void 0:e:en(e,td)}function z(t){if(!(16777216&t.transformFlags||134234112&t.transformFlags))return t;switch(t.kind){case 264:return function(e){return ye(e,ve)}(t);case 232:return function(e){return ye(e,be)}(t);case 176:case 173:return dt.fail("Use `classElementVisitor` instead.");case 304:case 261:case 170:case 209:return function(n){Qg(n,fe)&&(n=eV(e,n));return CB(n,z,e)}(t);case 244:return function(n){const t=I;I=[];const r=CB(n,z,e),o=U(I)?[r,...I]:r;return I=t,o}(t);case 278:return function(n){Qg(n,fe)&&(n=eV(e,n,!0,n.isExportEquals?"":"default"));return CB(n,z,e)}(t);case 81:return function(e){if(!_)return e;if(_u(e.parent))return e;return TR(n.createIdentifier(""),e)}(t);case 212:return function(t){if(uD(t.name)){const e=We(t.name);if(e)return DL(TR(le(e,t.expression),t),t)}if(b&&w&&ch(t)&&dD(t.name)&&sV(w)&&(null==C?void 0:C.data)){const{classConstructor:e,superClassReference:r,facts:o}=C.data;if(1&o)return Ce(t);if(e&&r){const o=n.createReflectGetCall(r,n.createStringLiteralFromNode(t.name),e);return TR(o,t.expression),DL(o,t.expression),o}}return CB(t,z,e)}(t);case 213:return function(t){if(b&&w&&ch(t)&&sV(w)&&(null==C?void 0:C.data)){const{classConstructor:e,superClassReference:r,facts:o}=C.data;if(1&o)return Ce(t);if(e&&r){const o=n.createReflectGetCall(r,vB(t.argumentExpression,z,qd),e);return TR(o,t.expression),DL(o,t.expression),o}}return CB(t,z,e)}(t);case 225:case 226:return de(t,!1);case 227:return me(t,!1);case 218:return he(t,!1);case 214:return function(t){var o;if(Qc(t.expression)&&We(t.expression.name)){const{thisArg:e,target:o}=n.createCallBinding(t.expression,r,d);return vc(t)?n.updateCallChain(t,n.createPropertyAccessChain(vB(o,z,qd),t.questionDotToken,"call"),void 0,void 0,[vB(e,z,qd),...bB(t.arguments,z,qd)]):n.updateCallExpression(t,n.createPropertyAccessExpression(vB(o,z,qd),"call"),void 0,[vB(e,z,qd),...bB(t.arguments,z,qd)])}if(b&&w&&ch(t.expression)&&sV(w)&&(null==(o=null==C?void 0:C.data)?void 0:o.classConstructor)){const e=n.createFunctionCallCall(vB(t.expression,z,qd),C.data.classConstructor,bB(t.arguments,z,qd));return TR(e,t),DL(e,t),e}return CB(t,z,e)}(t);case 245:return function(e){return n.updateExpressionStatement(e,vB(e.expression,G,qd))}(t);case 216:return function(t){var o;if(Qc(t.tag)&&We(t.tag.name)){const{thisArg:e,target:o}=n.createCallBinding(t.tag,r,d);return n.updateTaggedTemplateExpression(t,n.createCallExpression(n.createPropertyAccessExpression(vB(o,z,qd),"bind"),void 0,[vB(e,z,qd)]),void 0,vB(t.template,z,Bd))}if(b&&w&&ch(t.tag)&&sV(w)&&(null==(o=null==C?void 0:C.data)?void 0:o.classConstructor)){const e=n.createFunctionBindCall(vB(t.tag,z,qd),C.data.classConstructor,[]);return TR(e,t),DL(e,t),n.updateTaggedTemplateExpression(t,e,void 0,vB(t.template,z,Bd))}return CB(t,z,e)}(t);case 249:return function(t){return n.updateForStatement(t,vB(t.initializer,G,ru),vB(t.condition,z,qd),vB(t.incrementor,G,qd),IB(t.statement,z,e))}(t);case 110:return function(e){if(v&&w&&kD(w)&&(null==C?void 0:C.data)){const{classThis:n,classConstructor:t}=C.data;return n??t??e}return e}(t);case 263:case 219:return Q(void 0,B,t);case 177:case 175:case 178:case 179:return Q(t,B,t);default:return B(t)}}function B(n){return CB(n,z,e)}function G(e){switch(e.kind){case 225:case 226:return de(e,!0);case 227:return me(e,!0);case 357:return function(e){const t=DB(e.elements,G);return n.updateCommaListExpression(e,t)}(e);case 218:return he(e,!0);default:return z(e)}}function V(t){switch(t.kind){case 299:return CB(t,V,e);case 234:return function(t){var o;if(4&((null==(o=null==C?void 0:C.data)?void 0:o.facts)||0)){const e=n.createTempVariable(r,!0);return Ne().superClassReference=e,n.updateExpressionWithTypeArguments(t,n.createAssignment(e,vB(t.expression,z,qd)),void 0)}return CB(t,z,e)}(t);default:return z(t)}}function j(e){switch(e.kind){case 211:case 210:return je(e);default:return z(e)}}function H(e){switch(e.kind){case 177:return Q(e,X,e);case 178:case 179:case 175:return Q(e,$,e);case 173:return Q(e,ie,e);case 176:return Q(e,Te,e);case 168:return J(e);case 241:return e;default:return vd(e)?W(e):z(e)}}function K(e){return 168===e.kind?J(e):z(e)}function q(e){switch(e.kind){case 173:return te(e);case 178:case 179:return H(e);default:dt.assertMissingNode(e,"Expected node to either be a PropertyDeclaration, GetAccessorDeclaration, or SetAccessorDeclaration")}}function J(e){const t=vB(e.expression,z,qd);return n.updateComputedPropertyName(e,function(e){return U(R)&&(SC(e)?(R.push(e.expression),e=n.updateParenthesizedExpression(e,n.inlineExpressions(R))):(R.push(e),e=n.inlineExpressions(R)),R=void 0),e}(t))}function X(e){return k?Ee(e,k):B(e)}function Y(e){return!!_||!!(Lv(e)&&32&rf(e))}function $(t){if(dt.assert(!zv(t)),!$c(t)||!Y(t))return CB(t,H,e);const r=We(t.name);if(dt.assert(r,"Undeclared private name for property declaration."),!r.isValid)return t;const o=function(e){dt.assert(uD(e.name));const n=We(e.name);if(dt.assert(n,"Undeclared private name for property declaration."),"m"===n.kind)return n.methodName;if("a"===n.kind){if(Nu(e))return n.getterName;if(Cu(e))return n.setterName}}(t);o&&Pe().push(n.createAssignment(o,n.createFunctionExpression(x(t.modifiers,e=>td(e)&&!yD(e)&&!TD(e)),t.asteriskToken,o,void 0,AB(t.parameters,z,e),void 0,RB(t.body,z,e))))}function Q(e,n,t){if(e!==w){const r=w;w=e;const o=n(t);return w=r,o}return n(t)}function Z(e){const t=wR(e),o=CR(e),i=e.name;let a=i,s=i;if(RD(i)&&!pG(i.expression)){const e=AL(i);if(e)a=n.updateComputedPropertyName(i,vB(i.expression,z,qd)),s=n.updateComputedPropertyName(i,e.left);else{const e=n.createTempVariable(r);NR(e,i.expression);const t=vB(i.expression,z,qd),o=n.createAssignment(e,t);NR(o,i.expression),a=n.updateComputedPropertyName(i,o),s=n.updateComputedPropertyName(i,e)}}const l=bB(e.modifiers,W,td),c=TL(n,e,l,e.initializer);TR(c,e),xR(c,3072),NR(c,o);const d=Pv(e)?function(){const e=Ne();return e.classThis??e.classConstructor??(null==k?void 0:k.name)}()??n.createThis():n.createThis(),u=SL(n,e,l,a,d);TR(u,e),OR(u,t),NR(u,o);const p=n.createModifiersFromModifierFlags(Yv(l)),f=EL(n,e,p,s,d);return TR(f,e),xR(f,3072),NR(f,o),TB([c,u,f],q,fd)}function ee(e){if(h&&!_d(e)){const t=function(e,t){if(RD(e)){const o=AL(e),i=vB(e.expression,z,qd),a=Rc(i),c=pG(a);if(!(!!o||sb(a)&&Jc(a.left))&&!c&&t){const t=n.getGeneratedNameForNode(e);return l.hasNodeCheckFlag(e,32768)?s(t):r(t),n.createAssignment(t,i)}return c||dD(a)?void 0:i}}(e.name,!!e.initializer||u);if(t&&Pe().push(...RL(t)),Pv(e)&&!_){const t=Re(e,n.createThis());if(t){const r=n.createClassStaticBlockDeclaration(n.createBlock([t]));return TR(r,e),OR(r,e),OR(t,{pos:-1,end:-1}),WR(t,void 0),GR(t,void 0),r}}return}return n.updatePropertyDeclaration(e,bB(e.modifiers,W,td),vB(e.name,K,od),void 0,void 0,vB(e.initializer,z,qd))}function te(t){return dt.assert(!zv(t),"Decorators should already have been transformed and elided."),$c(t)?function(t){if(Y(t)){const e=We(t.name);if(dt.assert(e,"Undeclared private name for property declaration."),!e.isValid)return t;if(e.isStatic&&!_){const e=Re(t,n.createThis());if(e)return n.createClassStaticBlockDeclaration(n.createBlock([e],!0))}return}return f&&!Pv(t)&&(null==C?void 0:C.data)&&16&C.data.facts?n.updatePropertyDeclaration(t,bB(t.modifiers,z,vd),t.name,void 0,void 0,void 0):(Qg(t,fe)&&(t=eV(e,t)),n.updatePropertyDeclaration(t,bB(t.modifiers,W,td),vB(t.name,K,od),void 0,void 0,vB(t.initializer,z,qd)))}(t):ee(t)}function oe(){return-1===g||3===g&&!!(null==C?void 0:C.data)&&!!(16&C.data.facts)}function ie(e){return _d(e)&&(oe()||Lv(e)&&32&rf(e))?Z(e):te(e)}function se(e){if(w&&Lv(w)&&hd(w)&&_d(fl(w))){const n=MP(e);110===n.kind&&L.add(n)}}function le(e,n){return se(n=vB(n,z,qd)),ce(e,n)}function ce(e,n){switch(OR(n,Wb(n,-1)),e.kind){case"a":return t().createClassPrivateFieldGetHelper(n,e.brandCheckIdentifier,e.kind,e.getterName);case"m":return t().createClassPrivateFieldGetHelper(n,e.brandCheckIdentifier,e.kind,e.methodName);case"f":return t().createClassPrivateFieldGetHelper(n,e.brandCheckIdentifier,e.kind,e.isStatic?e.variableName:void 0);case"untransformed":return dt.fail("Access helpers should not be created for untransformed private elements");default:dt.assertNever(e,"Unknown private element type")}}function de(t,o){if(46===t.operator||47===t.operator){const e=cg(t.operand);if(Qc(e)){let i;if(i=We(e.name)){const a=vB(e.expression,z,qd);se(a);const{readExpression:s,initializeExpression:l}=ue(a);let c=le(i,s);const d=CC(t)||o?void 0:n.createTempVariable(r);return c=vP(n,t,c,r,d),c=_e(i,l||s,c,64),TR(c,t),DL(c,t),d&&(c=n.createComma(c,d),DL(c,t)),c}}else if(b&&w&&ch(e)&&sV(w)&&(null==C?void 0:C.data)){const{classConstructor:i,superClassReference:a,facts:s}=C.data;if(1&s){const r=Ce(e);return CC(t)?n.updatePrefixUnaryExpression(t,r):n.updatePostfixUnaryExpression(t,r)}if(i&&a){let s,l;if(_C(e)?dD(e.name)&&(l=s=n.createStringLiteralFromNode(e.name)):pG(e.argumentExpression)?l=s=e.argumentExpression:(l=n.createTempVariable(r),s=n.createAssignment(l,vB(e.argumentExpression,z,qd))),s&&l){let c=n.createReflectGetCall(a,l,i);DL(c,e);const d=o?void 0:n.createTempVariable(r);return c=vP(n,t,c,r,d),c=n.createReflectSetCall(a,s,c,i),TR(c,t),DL(c,t),d&&(c=n.createComma(c,d),DL(c,t)),c}}}}return CB(t,z,e)}function ue(e){const t=ry(e)?e:n.cloneNode(e);if(110===e.kind&&L.has(e)&&L.add(t),pG(e))return{readExpression:t,initializeExpression:void 0};const o=n.createTempVariable(r);return{readExpression:o,initializeExpression:n.createAssignment(o,t)}}function pe(e){if(C&&P.set(fl(e),C),_){if(UG(e)){const n=vB(e.body.statements[0].expression,z,qd);if(sb(n,!0)&&n.left===n.right)return;return n}if(XG(e))return vB(e.body.statements[0].expression,z,qd);i();let t=Q(e,e=>bB(e,z,_u),e.body.statements);t=n.mergeLexicalEnvironment(t,o());const r=n.createImmediatelyInvokedArrowFunction(t);return TR(cg(r.expression),e),RR(cg(r.expression),4),TR(r,e),DL(r,e),r}}function fe(e){if(OC(e)&&!e.name){const n=bG(e);if(U(n,XG))return!1;return(_||!!rf(e))&&U(n,e=>kD(e)||$c(e)||h&&TG(e))}return!1}function me(o,i){if(lb(o)){const e=R;R=void 0,o=n.updateBinaryExpression(o,vB(o.left,j,qd),o.operatorToken,vB(o.right,z,qd));const t=U(R)?n.inlineExpressions(ne([...R,o])):o;return R=e,t}if(sb(o)){Qg(o,fe)&&(o=eV(e,o),dt.assertNode(o,sb));const t=MP(o.left,9);if(Qc(t)){const e=We(t.name);if(e)return DL(TR(_e(e,t.expression,o.right,o.operatorToken.kind),o),o)}else if(b&&w&&ch(o.left)&&sV(w)&&(null==C?void 0:C.data)){const{classConstructor:e,superClassReference:t,facts:a}=C.data;if(1&a)return n.updateBinaryExpression(o,Ce(o.left),o.operatorToken,vB(o.right,z,qd));if(e&&t){let a=gC(o.left)?vB(o.left.argumentExpression,z,qd):dD(o.left.name)?n.createStringLiteralFromNode(o.left.name):void 0;if(a){let s=vB(o.right,z,qd);if(fG(o.operatorToken.kind)){let i=a;pG(a)||(i=n.createTempVariable(r),a=n.createAssignment(i,a));const l=n.createReflectGetCall(t,i,e);TR(l,o.left),DL(l,o.left),s=n.createBinaryExpression(l,mG(o.operatorToken.kind),s),DL(s,o)}const l=i?void 0:n.createTempVariable(r);return l&&(s=n.createAssignment(l,s),DL(l,o)),s=n.createReflectSetCall(t,a,s,e),TR(s,o),DL(s,o),l&&(s=n.createComma(s,l),DL(s,o)),s}}}}return function(e){return uD(e.left)&&103===e.operatorToken.kind}(o)?function(n){const r=We(n.left);if(r){const e=vB(n.right,z,qd);return TR(t().createClassPrivateFieldInHelper(r.brandCheckIdentifier,e),n)}return CB(n,z,e)}(o):CB(o,z,e)}function he(e,t){const r=t?G:z,o=vB(e.expression,r,qd);return n.updateParenthesizedExpression(e,o)}function _e(e,r,o,i){if(r=vB(r,z,qd),o=vB(o,z,qd),se(r),fG(i)){const{readExpression:t,initializeExpression:a}=ue(r);r=a||t,o=n.createBinaryExpression(ce(e,t),mG(i),o)}switch(OR(r,Wb(r,-1)),e.kind){case"a":return t().createClassPrivateFieldSetHelper(r,e.brandCheckIdentifier,o,e.kind,e.setterName);case"m":return t().createClassPrivateFieldSetHelper(r,e.brandCheckIdentifier,o,e.kind,void 0);case"f":return t().createClassPrivateFieldSetHelper(r,e.brandCheckIdentifier,o,e.kind,e.isStatic?e.variableName:void 0);case"untransformed":return dt.fail("Access helpers should not be created for untransformed private elements");default:dt.assertNever(e,"Unknown private element type")}}function ge(e){return x(e.members,SG)}function ye(t,r){var o;const i=k,a=R,s=C;k=t,R=void 0,C={previous:C,data:void 0};const c=32&rf(t);if(_||c){const e=Dl(t);if(e&&dD(e))Me().data.className=e;else if((null==(o=t.emitNode)?void 0:o.assignedName)&&qI(t.emitNode.assignedName))if(t.emitNode.assignedName.textSourceNode&&dD(t.emitNode.assignedName.textSourceNode))Me().data.className=t.emitNode.assignedName.textSourceNode;else if(ys(t.emitNode.assignedName.text,d)){const e=n.createIdentifier(t.emitNode.assignedName.text);Me().data.className=e}}if(_){const e=ge(t);U(e)&&(Me().data.weakSetName=Oe("instances",e[0].name))}const u=function(e){var n;let t=0;const r=fl(e);md(r)&&vh(p,r)&&(t|=1),_&&(HG(e)||YG(e))&&(t|=2);let o=!1,i=!1,a=!1,s=!1;for(const c of e.members)Pv(c)?(c.name&&(uD(c.name)||_d(c))&&_?t|=2:!_d(c)||-1!==g||e.name||(null==(n=e.emitNode)?void 0:n.classThis)||(t|=2),(MD(c)||kD(c))&&(v&&16384&c.transformFlags&&(t|=8,1&t||(t|=2)),b&&134217728&c.transformFlags&&(1&t||(t|=6)))):wv(fl(c))||(_d(c)?(s=!0,a||(a=$c(c))):$c(c)?(a=!0,l.hasNodeCheckFlag(c,262144)&&(t|=2)):MD(c)&&(o=!0,i||(i=!!c.initializer)));return(m&&o||f&&i||_&&a||_&&s&&-1===g)&&(t|=16),t}(t);u&&(Ne().facts=u),8&u&&(2&M||(M|=2,e.enableSubstitution(110),e.enableEmitNotification(263),e.enableEmitNotification(219),e.enableEmitNotification(177),e.enableEmitNotification(178),e.enableEmitNotification(179),e.enableEmitNotification(175),e.enableEmitNotification(173),e.enableEmitNotification(168)));const h=r(t,u);return C=null==C?void 0:C.previous,dt.assert(C===s),k=i,R=a,h}function ve(e,t){var o,i;let a;if(2&t)if(_&&(null==(o=e.emitNode)?void 0:o.classThis))Ne().classConstructor=e.emitNode.classThis,a=n.createAssignment(e.emitNode.classThis,n.getInternalName(e));else{const t=n.createTempVariable(r,!0);Ne().classConstructor=n.cloneNode(t),a=n.createAssignment(t,n.getInternalName(e))}(null==(i=e.emitNode)?void 0:i.classThis)&&(Ne().classThis=e.emitNode.classThis);const s=l.hasNodeCheckFlag(e,262144),c=Mv(e,32),d=Mv(e,2048);let u=bB(e.modifiers,W,td);const p=bB(e.heritageClauses,V,iM),{members:m,prologue:h}=Se(e),g=[];if(a&&Pe().unshift(a),U(R)&&g.push(n.createExpressionStatement(n.inlineExpressions(R))),f||_||32&rf(e)){const t=bG(e);U(t)&&xe(g,t,n.getInternalName(e))}g.length>0&&c&&d&&(u=bB(u,e=>hL(e)?void 0:e,td),g.push(n.createExportAssignment(void 0,!1,n.getLocalName(e,!1,!0))));const y=Ne().classConstructor;s&&y&&(De(),A[ZB(e)]=y);const v=n.updateClassDeclaration(e,u,e.name,void 0,p,m);return g.unshift(v),h&&g.unshift(n.createExpressionStatement(h)),g}function be(e,t){var o,i,a;const c=!!(1&t),d=bG(e),u=l.hasNodeCheckFlag(e,262144),p=l.hasNodeCheckFlag(e,32768);let f;function m(){var t;if(_&&(null==(t=e.emitNode)?void 0:t.classThis))return Ne().classConstructor=e.emitNode.classThis;const o=n.createTempVariable(p?s:r,!0);return Ne().classConstructor=n.cloneNode(o),o}(null==(o=e.emitNode)?void 0:o.classThis)&&(Ne().classThis=e.emitNode.classThis),2&t&&(f??(f=m()));const g=bB(e.modifiers,W,td),y=bB(e.heritageClauses,V,iM),{members:v,prologue:b}=Se(e),T=n.updateClassExpression(e,g,e.name,void 0,y,v),S=[];b&&S.push(b);if((_||32&rf(e))&&U(d,e=>kD(e)||$c(e)||h&&TG(e))||U(R))if(c)dt.assertIsDefined(I,"Decorated classes transformed by TypeScript are expected to be within a variable declaration."),U(R)&&ae(I,D(R,n.createExpressionStatement)),U(d)&&xe(I,d,(null==(i=e.emitNode)?void 0:i.classThis)??n.getInternalName(e)),f?S.push(n.createAssignment(f,T)):_&&(null==(a=e.emitNode)?void 0:a.classThis)?S.push(n.createAssignment(e.emitNode.classThis,T)):S.push(T);else{if(f??(f=m()),u){De();const t=n.cloneNode(f);t.emitNode.autoGenerate.flags&=-9,A[ZB(e)]=t}S.push(n.createAssignment(f,T)),ae(S,R),ae(S,function(e,n){const t=[];for(const r of e){const e=kD(r)?Q(r,pe,r):Q(r,()=>Ie(r,n),void 0);e&&(LP(e),TR(e,r),RR(e,3072&tf(r)),NR(e,Bb(r)),OR(e,r),t.push(e))}return t}(d,f)),S.push(n.cloneNode(f))}else S.push(T);return S.length>1&&(RR(T,131072),S.forEach(LP)),n.inlineExpressions(S)}function Te(n){if(!_)return CB(n,z,e)}function Se(e){const t=!!(32&rf(e));if(_||N){for(const n of e.members)if($c(n))if(Y(n))we(n,n.name,Le);else{CG(Me(),n.name,{kind:"untransformed"})}if(_&&U(ge(e))&&function(){const{weakSetName:e}=Me().data;dt.assert(e,"weakSetName should be set in private identifier environment"),Pe().push(n.createAssignment(e,n.createNewExpression(n.createIdentifier("WeakSet"),void 0,[])))}(),oe())for(const r of e.members)if(_d(r)){const e=n.getGeneratedPrivateNameForNode(r.name,void 0,"_accessor_storage");if(_||t&&Lv(r))we(r,e,ke);else{CG(Me(),e,{kind:"untransformed"})}}}let o,i,a,s=bB(e.members,H,fd);if(U(s,wD)||(o=Ee(void 0,e)),!_&&U(R)){let e=n.createExpressionStatement(n.inlineExpressions(R));if(134234112&e.transformFlags){const t=n.createTempVariable(r),o=n.createArrowFunction(void 0,void 0,[],void 0,void 0,n.createBlock([e]));i=n.createAssignment(t,o),e=n.createExpressionStatement(n.createCallExpression(t,void 0,[]))}const t=n.createBlock([e]);a=n.createClassStaticBlockDeclaration(t),R=void 0}if(o||a){let t;const r=y(s,UG),i=y(s,XG);t=re(t,r),t=re(t,i),t=re(t,o),t=re(t,a);t=ae(t,r||i?x(s,e=>e!==r&&e!==i):s),s=DL(n.createNodeArray(t),e.members)}return{members:s,prologue:i}}function Ee(t,r){if(t=vB(t,z,wD),!((null==C?void 0:C.data)&&16&C.data.facts))return t;const i=Tg(r),s=!(!i||106===MP(i.expression).kind),l=AB(t?t.parameters:void 0,z,e),c=function(t,r,i){var s;const l=yG(t,!1,!1);let c=l;u||(c=x(c,e=>!!e.initializer||uD(e.name)||Fv(e)));const d=ge(t),p=U(c)||U(d);if(!r&&!p)return RB(void 0,z,e);a();const f=!r&&i;let m=0,h=[];const g=[],y=n.createThis();if(function(e,t,r){if(!_||!U(t))return;const{weakSetName:o}=Me().data;dt.assert(o,"weakSetName should be set in private identifier environment"),e.push(n.createExpressionStatement(function(e,n,t){return e.createCallExpression(e.createPropertyAccessExpression(t,"add"),void 0,[n])}(n,r,o)))}(g,d,y),r){const e=x(l,e=>tl(fl(e),r)),n=x(c,e=>!tl(fl(e),r));xe(g,e,y),xe(g,n,y)}else xe(g,c,y);if(null==r?void 0:r.body){m=n.copyPrologue(r.body.statements,h,!1,z);const e=gG(r.body.statements,m);if(e.length)Ae(h,r.body.statements,m,e,0,g,r);else{for(;m<r.body.statements.length;){if(!tl(fl(r.body.statements[m]),r))break;m++}ae(h,g),ae(h,bB(r.body.statements,z,_u,m))}}else f&&h.push(n.createExpressionStatement(n.createCallExpression(n.createSuper(),void 0,[n.createSpreadElement(n.createIdentifier("arguments"))]))),ae(h,g);if(h=n.mergeLexicalEnvironment(h,o()),0===h.length&&!r)return;const v=(null==r?void 0:r.body)&&r.body.statements.length>=h.length?r.body.multiLine??h.length>0:h.length>0;return DL(n.createBlock(DL(n.createNodeArray(h),(null==(s=null==r?void 0:r.body)?void 0:s.statements)??t.members),v),null==r?void 0:r.body)}(r,t,s);return c?t?(dt.assert(l),n.updateConstructorDeclaration(t,void 0,l,c)):LP(TR(DL(n.createConstructorDeclaration(void 0,l??[],c),t||r),t)):t}function Ae(e,t,r,o,i,a,s){const l=o[i],c=t[l];if(ae(e,bB(t,z,_u,r,l-r)),r=l+1,uN(c)){const t=[];Ae(t,c.tryBlock.statements,0,o,i+1,a,s);DL(n.createNodeArray(t),c.tryBlock.statements),e.push(n.updateTryStatement(c,n.updateBlock(c.tryBlock,t),vB(c.catchClause,z,aM),vB(c.finallyBlock,z,JC)))}else{for(ae(e,bB(t,z,_u,l,1));r<t.length;){if(!tl(fl(t[r]),s))break;r++}ae(e,a)}ae(e,bB(t,z,_u,r))}function xe(e,n,t){for(const r of n){if(Pv(r)&&!_)continue;const n=Re(r,t);n&&e.push(n)}}function Re(e,t){const r=kD(e)?Q(e,pe,e):Ie(e,t);if(!r)return;const o=n.createExpressionStatement(r);TR(o,e),RR(o,3072&tf(e)),OR(o,e);const i=fl(e);return DD(i)?(NR(o,i),AR(o)):NR(o,Bb(e)),WR(r,void 0),GR(r,void 0),Fv(i)&&RR(o,3072),o}function Ie(t,r){var o;const i=w,a=function(t,r){const o=!u;Qg(t,fe)&&(t=eV(e,t));const i=Fv(t)?n.getGeneratedPrivateNameForNode(t.name):RD(t.name)&&!pG(t.name.expression)?n.updateComputedPropertyName(t.name,n.getGeneratedNameForNode(t.name)):t.name;Lv(t)&&(w=t);if(uD(i)&&Y(t)){const e=We(i);if(e)return"f"===e.kind?e.isStatic?function(e,n,t){return e.createAssignment(n,e.createObjectLiteralExpression([e.createPropertyAssignment("value",t||e.createVoidZero())]))}(n,e.variableName,vB(t.initializer,z,qd)):function(e,n,t,r){return e.createCallExpression(e.createPropertyAccessExpression(r,"set"),void 0,[n,t||e.createVoidZero()])}(n,r,vB(t.initializer,z,qd),e.brandCheckIdentifier):void 0;dt.fail("Undeclared private name for property declaration.")}if((uD(i)||Lv(t))&&!t.initializer)return;const a=fl(t);if(Mv(a,64))return;let s=vB(t.initializer,z,qd);if(tl(a,a.parent)&&dD(i)){const e=n.cloneNode(i);s?(SC(s)&&RP(s.expression)&&UI(s.expression.left,"___runInitializers")&&IC(s.expression.right)&&HI(s.expression.right.expression)&&(s=s.expression.left),s=n.inlineExpressions([s,e])):s=e,xR(i,3168),NR(e,a.name),xR(e,3072)}else s??(s=n.createVoidZero());if(o||uD(i)){const e=cP(n,r,i,i);RR(e,1024);return n.createAssignment(e,s)}{const e=RD(i)?i.expression:dD(i)?n.createStringLiteral(yl(i.escapedText)):i,t=n.createPropertyDescriptor({value:s,configurable:!0,writable:!0,enumerable:!0});return n.createObjectDefinePropertyCall(r,e,t)}}(t,r);return a&&Lv(t)&&(null==(o=null==C?void 0:C.data)?void 0:o.facts)&&(TR(a,t),RR(a,4),NR(a,CR(t.name)),P.set(fl(t),C)),w=i,a}function De(){1&M||(M|=1,e.enableSubstitution(80),A=[])}function Ce(e){return _C(e)?n.updatePropertyAccessExpression(e,n.createVoidZero(),e.name):n.updateElementAccessExpression(e,n.createVoidZero(),vB(e.argumentExpression,z,qd))}function Ne(){return dt.assert(C),C.data??(C.data={facts:0,classConstructor:void 0,classThis:void 0,superClassReference:void 0})}function Me(){return dt.assert(C),C.privateEnv??(C.privateEnv=IG({className:void 0,weakSetName:void 0}))}function Pe(){return R??(R=[])}function Le(e,n,t,r,o,i,a){_d(e)?function(e,n,t,r,o,i){const a=Fe(n,"_get"),s=Fe(n,"_set"),l=o?dt.checkDefined(t.classThis??t.classConstructor,"classConstructor should be set in private identifier environment"):dt.checkDefined(r.data.weakSetName,"weakSetName should be set in private identifier environment");CG(r,n,{kind:"a",getterName:a,setterName:s,brandCheckIdentifier:l,isStatic:o,isValid:i})}(0,n,t,r,o,i):MD(e)?ke(e,n,t,r,o,i):LD(e)?function(e,n,t,r,o,i){const a=Fe(n),s=o?dt.checkDefined(t.classThis??t.classConstructor,"classConstructor should be set in private identifier environment"):dt.checkDefined(r.data.weakSetName,"weakSetName should be set in private identifier environment");CG(r,n,{kind:"m",methodName:a,brandCheckIdentifier:s,isStatic:o,isValid:i})}(0,n,t,r,o,i):OD(e)?function(e,n,t,r,o,i,a){const s=Fe(n,"_get"),l=o?dt.checkDefined(t.classThis??t.classConstructor,"classConstructor should be set in private identifier environment"):dt.checkDefined(r.data.weakSetName,"weakSetName should be set in private identifier environment");"a"!==(null==a?void 0:a.kind)||a.isStatic!==o||a.getterName?CG(r,n,{kind:"a",getterName:s,setterName:void 0,brandCheckIdentifier:l,isStatic:o,isValid:i}):a.getterName=s}(0,n,t,r,o,i,a):FD(e)&&function(e,n,t,r,o,i,a){const s=Fe(n,"_set"),l=o?dt.checkDefined(t.classThis??t.classConstructor,"classConstructor should be set in private identifier environment"):dt.checkDefined(r.data.weakSetName,"weakSetName should be set in private identifier environment");"a"!==(null==a?void 0:a.kind)||a.isStatic!==o||a.setterName?CG(r,n,{kind:"a",getterName:void 0,setterName:s,brandCheckIdentifier:l,isStatic:o,isValid:i}):a.setterName=s}(0,n,t,r,o,i,a)}function ke(e,t,r,o,i,a,s){if(i){CG(o,t,{kind:"f",isStatic:!0,brandCheckIdentifier:dt.checkDefined(r.classThis??r.classConstructor,"classConstructor should be set in private identifier environment"),variableName:Fe(t),isValid:a})}else{const e=Fe(t);CG(o,t,{kind:"f",isStatic:!1,brandCheckIdentifier:e,isValid:a}),Pe().push(n.createAssignment(e,n.createNewExpression(n.createIdentifier("WeakMap"),void 0,[])))}}function we(e,n,t){const r=Ne(),o=Me(),i=DG(o,n),a=Lv(e),s=!function(e){return!Xc(e)&&"#constructor"===e.escapedText}(n)&&void 0===i;t(e,n,r,o,a,s,i)}function Oe(e,t,o){const{className:i}=Me().data,a=i?{prefix:"_",node:i,suffix:"_"}:"_",c="object"==typeof e?n.getGeneratedNameForNode(e,24,a,o):"string"==typeof e?n.createUniqueName(e,16,a,o):n.createTempVariable(void 0,!0,a,o);return l.hasNodeCheckFlag(t,32768)?s(c):r(c),c}function Fe(e,n){const t=zf(e);return Oe((null==t?void 0:t.substring(1))??e,e,n)}function We(e){const n=NG(C,e);return"untransformed"===(null==n?void 0:n.kind)?void 0:n}function ze(t){if(hC(t)||mC(t))return je(t);if(Qc(t))return function(t){const o=n.getGeneratedNameForNode(t),i=We(t.name);if(!i)return CB(t,z,e);let a=t.expression;return(dh(t)||ch(t)||!uG(t.expression))&&(a=n.createTempVariable(r,!0),Pe().push(n.createBinaryExpression(a,64,vB(t.expression,z,qd)))),n.createAssignmentTargetWrapper(o,_e(i,a,o,64))}(t);if(b&&w&&ch(t)&&sV(w)&&(null==C?void 0:C.data)){const{classConstructor:e,superClassReference:r,facts:o}=C.data;if(1&o)return Ce(t);if(e&&r){const o=gC(t)?vB(t.argumentExpression,z,qd):dD(t.name)?n.createStringLiteralFromNode(t.name):void 0;if(o){const t=n.createTempVariable(void 0);return n.createAssignmentTargetWrapper(t,n.createReflectSetCall(r,o,t,e))}}}return CB(t,z,e)}function Be(t){if(Qg(t,fe)&&(t=eV(e,t)),sb(t,!0)){const e=ze(t.left),r=vB(t.right,z,qd);return n.updateBinaryExpression(t,e,t.operatorToken,r)}return ze(t)}function Ge(t){if(kd(t)){if(wC(t))return function(t){if(Gd(t.expression)){const e=ze(t.expression);return n.updateSpreadElement(t,e)}return CB(t,z,e)}(t);if(!FC(t))return Be(t)}return CB(t,z,e)}function Ve(t){return dt.assertNode(t,Pd),cM(t)?function(t){if(Gd(t.expression)){const e=ze(t.expression);return n.updateSpreadAssignment(t,e)}return CB(t,z,e)}(t):lM(t)?function(n){return Qg(n,fe)&&(n=eV(e,n)),CB(n,z,e)}(t):sM(t)?function(t){const r=vB(t.name,z,od);if(sb(t.initializer,!0)){const e=Be(t.initializer);return n.updatePropertyAssignment(t,r,e)}if(Gd(t.initializer)){const e=ze(t.initializer);return n.updatePropertyAssignment(t,r,e)}return CB(t,z,e)}(t):CB(t,z,e)}function je(e){return mC(e)?n.updateArrayLiteralExpression(e,bB(e.elements,Ge,qd)):n.updateObjectLiteralExpression(e,bB(e.properties,Ve,Sd))}}function sV(e){return kD(e)||function(e){return MD(e)&&Lv(e)}(e)}function lV(e){const{factory:n,hoistVariableDeclaration:t}=e,r=e.getEmitResolver(),o=e.getCompilerOptions(),i=SS(o),a=US(o,"strictNullChecks");let s,l;return{serializeTypeNode:(e,n)=>c(e,f,n),serializeTypeOfNode:(e,n,t)=>c(e,d,n,t),serializeParameterTypesOfNode:(e,n,t)=>c(e,u,n,t),serializeReturnTypeOfNode:(e,n)=>c(e,p,n)};function c(e,n,t,r){const o=s,i=l;s=e.currentLexicalScope,l=e.currentNameScope;const a=void 0===r?n(t):n(t,r);return s=o,l=i,a}function d(e,t){switch(e.kind){case 173:case 170:return f(e.type);case 179:case 178:return f(function(e,n){const t=_v(n.members,e);return t.setAccessor&&cv(t.setAccessor)||t.getAccessor&&vv(t.getAccessor)}(e,t));case 264:case 232:case 175:return n.createIdentifier("Function");default:return n.createVoidZero()}}function u(e,t){const r=md(e)?sv(e):ad(e)&&Mp(e.body)?e:void 0,o=[];if(r){const e=function(e,n){if(n&&178===e.kind){const{setAccessor:t}=_v(n.members,e);if(t)return t.parameters}return e.parameters}(r,t),n=e.length;for(let r=0;r<n;r++){const n=e[r];0===r&&dD(n.name)&&"this"===n.name.escapedText||(n.dotDotDotToken?o.push(f(Lm(n.type))):o.push(d(n,t)))}}return n.createArrayLiteralExpression(o)}function p(e){return ad(e)&&e.type?f(e.type):Wg(e)?n.createIdentifier("Promise"):n.createVoidZero()}function f(e){if(void 0===e)return n.createIdentifier("Object");switch((e=lg(e)).kind){case 116:case 157:case 146:return n.createVoidZero();case 185:case 186:return n.createIdentifier("Function");case 189:case 190:return n.createIdentifier("Array");case 183:return e.assertsModifier?n.createVoidZero():n.createIdentifier("Boolean");case 136:return n.createIdentifier("Boolean");case 204:case 154:return n.createIdentifier("String");case 151:return n.createIdentifier("Object");case 202:return m(e.literal);case 150:return n.createIdentifier("Number");case 163:return b("BigInt",7);case 155:return b("Symbol",2);case 184:return function(e){const o=r.getTypeReferenceSerializationKind(e.typeName,l??s);switch(o){case 0:if(ml(e,e=>e.parent&&eC(e.parent)&&(e.parent.trueType===e||e.parent.falseType===e)))return n.createIdentifier("Object");const r=y(e.typeName),i=n.createTempVariable(t);return n.createConditionalExpression(n.createTypeCheck(n.createAssignment(i,r),"function"),void 0,i,void 0,n.createIdentifier("Object"));case 1:return v(e.typeName);case 2:return n.createVoidZero();case 4:return b("BigInt",7);case 6:return n.createIdentifier("Boolean");case 3:return n.createIdentifier("Number");case 5:return n.createIdentifier("String");case 7:return n.createIdentifier("Array");case 8:return b("Symbol",2);case 10:return n.createIdentifier("Function");case 9:return n.createIdentifier("Promise");case 11:return n.createIdentifier("Object");default:return dt.assertNever(o)}}(e);case 194:return h(e.types,!0);case 193:return h(e.types,!1);case 195:return h([e.trueType,e.falseType],!1);case 199:if(148===e.operator)return f(e.type);break;case 187:case 200:case 201:case 188:case 133:case 159:case 198:case 206:case 313:case 314:case 318:case 319:case 320:break;case 315:case 316:case 317:return f(e.type);default:return dt.failBadSyntaxKind(e)}return n.createIdentifier("Object")}function m(e){switch(e.kind){case 11:case 15:return n.createIdentifier("String");case 225:{const n=e.operand;switch(n.kind){case 9:case 10:return m(n);default:return dt.failBadSyntaxKind(n)}}case 9:return n.createIdentifier("Number");case 10:return b("BigInt",7);case 112:case 97:return n.createIdentifier("Boolean");case 106:return n.createVoidZero();default:return dt.failBadSyntaxKind(e)}}function h(e,t){let r;for(let o of e){if(o=lg(o),146===o.kind){if(t)return n.createVoidZero();continue}if(159===o.kind){if(!t)return n.createIdentifier("Object");continue}if(133===o.kind)return n.createIdentifier("Object");if(!a&&(sC(o)&&106===o.literal.kind||157===o.kind))continue;const e=f(o);if(dD(e)&&"Object"===e.escapedText)return e;if(r){if(!_(r,e))return n.createIdentifier("Object")}else r=e}return r??n.createVoidZero()}function _(e,n){return Jc(e)?Jc(n):dD(e)?dD(n)&&e.escapedText===n.escapedText:_C(e)?_C(n)&&_(e.expression,n.expression)&&_(e.name,n.name):IC(e)?IC(n)&&HI(e.expression)&&"0"===e.expression.text&&HI(n.expression)&&"0"===n.expression.text:qI(e)?qI(n)&&e.text===n.text:RC(e)?RC(n)&&_(e.expression,n.expression):SC(e)?SC(n)&&_(e.expression,n.expression):PC(e)?PC(n)&&_(e.condition,n.condition)&&_(e.whenTrue,n.whenTrue)&&_(e.whenFalse,n.whenFalse):!!MC(e)&&(MC(n)&&e.operatorToken.kind===n.operatorToken.kind&&_(e.left,n.left)&&_(e.right,n.right))}function g(e,t){return n.createLogicalAnd(n.createStrictInequality(n.createTypeOfExpression(e),n.createStringLiteral("undefined")),t)}function y(e){if(80===e.kind){const n=v(e);return g(n,n)}if(80===e.left.kind)return g(v(e.left),v(e));const r=y(e.left),o=n.createTempVariable(t);return n.createLogicalAnd(n.createLogicalAnd(r.left,n.createStrictInequality(n.createAssignment(o,r.right),n.createVoidZero())),n.createPropertyAccessExpression(o,e.right))}function v(e){switch(e.kind){case 80:const t=PA(DL(PL.cloneNode(e),e),e.parent);return t.original=void 0,PA(t,_l(s)),t;case 167:return function(e){return n.createPropertyAccessExpression(v(e.left),e.right)}(e)}}function b(e,t){return i<t?function(e){return n.createConditionalExpression(n.createTypeCheck(n.createIdentifier(e),"function"),void 0,n.createIdentifier(e),void 0,n.createIdentifier("Object"))}(e):n.createIdentifier(e)}}function cV(e){const{factory:n,getEmitHelperFactory:t,hoistVariableDeclaration:r}=e,o=e.getEmitResolver(),i=e.getCompilerOptions(),a=SS(i),s=e.onSubstituteNode;let l;return e.onSubstituteNode=function(e,t){if(t=s(e,t),1===e)return function(e){if(80===e.kind)return function(e){return function(e){if(l&&o.hasNodeCheckFlag(e,536870912)){const t=o.getReferencedValueDeclaration(e);if(t){const r=l[t.id];if(r){const t=n.cloneNode(r);return NR(t,e),OR(t,e),t}}}return}(e)??e}(e);return e}(t);return t},tG(e,function(n){const t=CB(n,d,e);return qR(t,e.readEmitHelpers()),t});function c(e){return CD(e)?void 0:e}function d(i){if(!(33554432&i.transformFlags))return i;switch(i.kind){case 171:return;case 264:return function(i){if(!vh(!0,i)&&!yh(!0,i))return CB(i,d,e);const s=vh(!0,i)?function(i,s){const c=Mv(i,32),u=Mv(i,2048),p=bB(i.modifiers,e=>hL(e)||CD(e)?void 0:e,vd),m=Bb(i),h=function(t){if(o.hasNodeCheckFlag(t,262144)){l||(e.enableSubstitution(80),l=[]);const o=n.createUniqueName(t.name&&!Jc(t.name)?vl(t.name):"default");return l[ZB(t)]=o,r(o),o}}(i),g=a<2?n.getInternalName(i,!1,!0):n.getLocalName(i,!1,!0),y=bB(i.heritageClauses,d,iM);let v=bB(i.members,d,fd),b=[];({members:v,decorationStatements:b}=f(i,v));const T=a>=9&&!!h&&U(v,e=>MD(e)&&Mv(e,256)||kD(e));T&&(v=DL(n.createNodeArray([n.createClassStaticBlockDeclaration(n.createBlock([n.createExpressionStatement(n.createAssignment(h,n.createThis()))])),...v]),v));const S=n.createClassExpression(p,s&&Jc(s)?void 0:s,void 0,y,v);TR(S,i),DL(S,m);const E=h&&!T?n.createAssignment(h,S):S,A=n.createVariableDeclaration(g,void 0,void 0,E);TR(A,i);const x=n.createVariableDeclarationList([A],1),R=n.createVariableStatement(void 0,x);TR(R,i),DL(R,m),OR(R,i);const I=[R];if(ae(I,b),function(e,r){const o=function(e){const r=AG(e,!0),o=_(r);if(!o)return;const i=l&&l[ZB(e)],s=a<2?n.getInternalName(e,!1,!0):n.getDeclarationName(e,!1,!0),c=t().createDecorateHelper(o,s),d=n.createAssignment(s,i?n.createAssignment(i,c):c);return xR(d,3072),NR(d,Bb(e)),d}(r);o&&e.push(TR(n.createExpressionStatement(o),r))}(I,i),c)if(u){const e=n.createExportDefault(g);I.push(e)}else{const e=n.createExternalModuleExport(n.getDeclarationName(i));I.push(e)}return I}(i,i.name):function(e,t){const r=bB(e.modifiers,c,td),o=bB(e.heritageClauses,d,iM);let i=bB(e.members,d,fd),a=[];({members:i,decorationStatements:a}=f(e,i));const s=n.updateClassDeclaration(e,r,t,void 0,o,i);return ae([s],a)}(i,i.name);return Te(s)}(i);case 232:return function(e){return n.updateClassExpression(e,bB(e.modifiers,c,td),e.name,void 0,bB(e.heritageClauses,d,iM),bB(e.members,d,fd))}(i);case 177:return function(e){return n.updateConstructorDeclaration(e,bB(e.modifiers,c,td),bB(e.parameters,d,DD),vB(e.body,d,JC))}(i);case 175:return function(e){return m(n.updateMethodDeclaration(e,bB(e.modifiers,c,td),e.asteriskToken,dt.checkDefined(vB(e.name,d,od)),void 0,void 0,bB(e.parameters,d,DD),void 0,vB(e.body,d,JC)),e)}(i);case 179:return function(e){return m(n.updateSetAccessorDeclaration(e,bB(e.modifiers,c,td),dt.checkDefined(vB(e.name,d,od)),bB(e.parameters,d,DD),vB(e.body,d,JC)),e)}(i);case 178:return function(e){return m(n.updateGetAccessorDeclaration(e,bB(e.modifiers,c,td),dt.checkDefined(vB(e.name,d,od)),bB(e.parameters,d,DD),void 0,vB(e.body,d,JC)),e)}(i);case 173:return function(e){if(33554432&e.flags||Mv(e,128))return;return m(n.updatePropertyDeclaration(e,bB(e.modifiers,c,td),dt.checkDefined(vB(e.name,d,od)),void 0,void 0,vB(e.initializer,d,qd)),e)}(i);case 170:return function(e){const t=n.updateParameterDeclaration(e,_L(n,e.modifiers),e.dotDotDotToken,dt.checkDefined(vB(e.name,d,id)),void 0,void 0,vB(e.initializer,d,qd));t!==e&&(OR(t,e),DL(t,Bb(e)),NR(t,Bb(e)),xR(t.name,64));return t}(i);default:return CB(i,d,e)}}function u(e){return!!(536870912&e.transformFlags)}function p(e){return U(e,u)}function f(e,t){let r=[];return g(r,e,!1),g(r,e,!0),function(e){for(const n of e.members){if(!NL(n))continue;const t=xG(n,e,!0);if(U(null==t?void 0:t.decorators,u))return!0;if(U(null==t?void 0:t.parameters,p))return!0}return!1}(e)&&(t=DL(n.createNodeArray([...t,n.createClassStaticBlockDeclaration(n.createBlock(r,!0))]),t),r=void 0),{decorationStatements:r,members:t}}function m(e,n){return e!==n&&(OR(e,n),NR(e,Bb(n))),e}function h(e){return UI(e.expression,"___metadata")}function _(e){if(!e)return;const{false:n,true:t}=Be(e.decorators,h),r=[];return ae(r,D(n,v)),ae(r,P(e.parameters,b)),ae(r,D(t,v)),r}function g(e,t,r){ae(e,D(function(e,n){const t=function(e,n){return x(e.members,t=>{return o=n,gh(!0,r=t,e)&&o===Pv(r);var r,o})}(e,n);let r;for(const o of t)r=re(r,y(e,o));return r}(t,r),e=>n.createExpressionStatement(e)))}function y(e,r){const o=_(xG(r,e,!0));if(!o)return;const i=function(e,t){return Pv(t)?n.getDeclarationName(e):function(e){return n.createPropertyAccessExpression(n.getDeclarationName(e),"prototype")}(e)}(e,r),a=function(e,t){const r=e.name;return uD(r)?n.createIdentifier(""):RD(r)?t&&!pG(r.expression)?n.getGeneratedNameForNode(r):r.expression:dD(r)?n.createStringLiteral(vl(r)):n.cloneNode(r)}(r,!Mv(r,128)),s=MD(r)&&!Fv(r)?n.createVoidZero():n.createNull(),l=t().createDecorateHelper(o,i,a,s);return xR(l,3072),NR(l,Bb(r)),l}function v(e){return dt.checkDefined(vB(e.expression,d,qd))}function b(e,n){let r;if(e){r=[];for(const o of e){const e=t().createParamHelper(v(o),n);DL(e,o.expression),xR(e,3072),r.push(e)}}return r}}function dV(e){const{factory:n,getEmitHelperFactory:t,startLexicalEnvironment:r,endLexicalEnvironment:o,hoistVariableDeclaration:i}=e,a=SS(e.getCompilerOptions());let s,l,c,d,u,p;return tG(e,function(n){s=void 0,p=!1;const t=CB(n,b,e);qR(t,e.readEmitHelpers()),p&&(DR(t,32),p=!1);return t});function f(){switch(l=void 0,c=void 0,d=void 0,null==s?void 0:s.kind){case"class":l=s.classInfo;break;case"class-element":l=s.next.classInfo,c=s.classThis,d=s.classSuper;break;case"name":const e=s.next.next.next;"class-element"===(null==e?void 0:e.kind)&&(l=e.next.classInfo,c=e.classThis,d=e.classSuper)}}function m(e){s={kind:"class",next:s,classInfo:e,savedPendingExpressions:u},u=void 0,f()}function h(){dt.assert("class"===(null==s?void 0:s.kind),"Incorrect value for top.kind.",()=>`Expected top.kind to be 'class' but got '${null==s?void 0:s.kind}' instead.`),u=s.savedPendingExpressions,s=s.next,f()}function _(e){var n,t;dt.assert("class"===(null==s?void 0:s.kind),"Incorrect value for top.kind.",()=>`Expected top.kind to be 'class' but got '${null==s?void 0:s.kind}' instead.`),s={kind:"class-element",next:s},(kD(e)||MD(e)&&Lv(e))&&(s.classThis=null==(n=s.next.classInfo)?void 0:n.classThis,s.classSuper=null==(t=s.next.classInfo)?void 0:t.classSuper),f()}function g(){var e;dt.assert("class-element"===(null==s?void 0:s.kind),"Incorrect value for top.kind.",()=>`Expected top.kind to be 'class-element' but got '${null==s?void 0:s.kind}' instead.`),dt.assert("class"===(null==(e=s.next)?void 0:e.kind),"Incorrect value for top.next.kind.",()=>{var e;return`Expected top.next.kind to be 'class' but got '${null==(e=s.next)?void 0:e.kind}' instead.`}),s=s.next,f()}function y(){dt.assert("class-element"===(null==s?void 0:s.kind),"Incorrect value for top.kind.",()=>`Expected top.kind to be 'class-element' but got '${null==s?void 0:s.kind}' instead.`),s={kind:"name",next:s},f()}function v(){dt.assert("name"===(null==s?void 0:s.kind),"Incorrect value for top.kind.",()=>`Expected top.kind to be 'name' but got '${null==s?void 0:s.kind}' instead.`),s=s.next,f()}function b(t){if(!function(e){return!!(33554432&e.transformFlags)||!!c&&!!(16384&e.transformFlags)||!!c&&!!d&&!!(134217728&e.transformFlags)}(t))return t;switch(t.kind){case 171:return dt.fail("Use `modifierVisitor` instead.");case 264:return function(t){if(C(t)){const r=[],o=fl(t,md)??t,i=o.name?n.createStringLiteralFromNode(o.name):n.createStringLiteral("default"),a=Mv(t,32),s=Mv(t,2048);if(t.name||(t=QG(e,t,i)),a&&s){const e=I(t);if(t.name){const o=n.createVariableDeclaration(n.getLocalName(t),void 0,void 0,e);TR(o,t);const i=n.createVariableDeclarationList([o],1),a=n.createVariableStatement(void 0,i);r.push(a);const s=n.createExportDefault(n.getDeclarationName(t));TR(s,t),OR(s,wR(t)),NR(s,zb(t)),r.push(s)}else{const o=n.createExportDefault(e);TR(o,t),OR(o,wR(t)),NR(o,zb(t)),r.push(o)}}else{dt.assertIsDefined(t.name,"A class declaration that is not a default export must have a name.");const e=I(t),o=a?e=>pD(e)?void 0:S(e):S,i=bB(t.modifiers,o,td),s=n.getLocalName(t,!1,!0),l=n.createVariableDeclaration(s,void 0,void 0,e);TR(l,t);const c=n.createVariableDeclarationList([l],1),d=n.createVariableStatement(i,c);if(TR(d,t),OR(d,wR(t)),r.push(d),a){const e=n.createExternalModuleExport(s);TR(e,t),r.push(e)}}return Te(r)}{const e=bB(t.modifiers,S,td),r=bB(t.heritageClauses,b,iM);m(void 0);const o=bB(t.members,E,fd);return h(),n.updateClassDeclaration(t,e,t.name,void 0,r,o)}}(t);case 232:return function(e){if(C(e)){const n=I(e);return TR(n,e),n}{const t=bB(e.modifiers,S,td),r=bB(e.heritageClauses,b,iM);m(void 0);const o=bB(e.members,E,fd);return h(),n.updateClassExpression(e,t,e.name,void 0,r,o)}}(t);case 177:case 173:case 176:return dt.fail("Not supported outside of a class. Use 'classElementVisitor' instead.");case 170:return function(t){Qg(t,k)&&(t=eV(e,t,w(t.initializer)));const r=n.updateParameterDeclaration(t,void 0,t.dotDotDotToken,vB(t.name,b,id),void 0,void 0,vB(t.initializer,b,qd));r!==t&&(OR(r,t),DL(r,Bb(t)),NR(r,Bb(t)),xR(r.name,64));return r}(t);case 227:return O(t,!1);case 304:case 261:case 209:return function(n){Qg(n,k)&&(n=eV(e,n,w(n.initializer)));return CB(n,b,e)}(t);case 278:return function(n){Qg(n,k)&&(n=eV(e,n,w(n.expression)));return CB(n,b,e)}(t);case 110:return function(e){return c??e}(t);case 249:return function(t){return n.updateForStatement(t,vB(t.initializer,A,ru),vB(t.condition,b,qd),vB(t.incrementor,A,qd),IB(t.statement,b,e))}(t);case 245:return function(n){return CB(n,A,e)}(t);case 357:return W(t,!1);case 218:return q(t,!1);case 356:return function(e){const t=b,r=vB(e.expression,t,qd);return n.updatePartiallyEmittedExpression(e,r)}(t);case 214:return function(t){if(ch(t.expression)&&c){const e=vB(t.expression,b,qd),r=bB(t.arguments,b,qd),o=n.createFunctionCallCall(e,c,r);return TR(o,t),DL(o,t),o}return CB(t,b,e)}(t);case 216:return function(t){if(ch(t.tag)&&c){const e=vB(t.tag,b,qd),r=n.createFunctionBindCall(e,c,[]);TR(r,t),DL(r,t);const o=vB(t.template,b,Bd);return n.updateTaggedTemplateExpression(t,r,void 0,o)}return CB(t,b,e)}(t);case 225:case 226:return F(t,!1);case 212:return function(t){if(ch(t)&&dD(t.name)&&c&&d){const e=n.createStringLiteralFromNode(t.name),r=n.createReflectGetCall(d,e,c);return TR(r,t.expression),DL(r,t.expression),r}return CB(t,b,e)}(t);case 213:return function(t){if(ch(t)&&c&&d){const e=vB(t.argumentExpression,b,qd),r=n.createReflectGetCall(d,e,c);return TR(r,t.expression),DL(r,t.expression),r}return CB(t,b,e)}(t);case 168:return B(t);case 175:case 179:case 178:case 219:case 263:{"other"===(null==s?void 0:s.kind)?(dt.assert(!u),s.depth++):(s={kind:"other",next:s,depth:0,savedPendingExpressions:u},u=void 0,f());const n=CB(t,T,e);return dt.assert("other"===(null==s?void 0:s.kind),"Incorrect value for top.kind.",()=>`Expected top.kind to be 'other' but got '${null==s?void 0:s.kind}' instead.`),s.depth>0?(dt.assert(!u),s.depth--):(u=s.savedPendingExpressions,s=s.next,f()),n}default:return CB(t,T,e)}}function T(e){if(171!==e.kind)return b(e)}function S(e){if(171!==e.kind)return e}function E(a){switch(a.kind){case 177:return function(e){_(e);const t=bB(e.modifiers,S,td),r=bB(e.parameters,b,DD);let o;if(e.body&&l){const t=N(l.class,l);if(t){const r=[],i=n.copyPrologue(e.body.statements,r,!1,b),a=gG(e.body.statements,i);a.length>0?M(r,e.body.statements,i,a,0,t):(ae(r,t),ae(r,bB(e.body.statements,b,_u))),o=n.createBlock(r,!0),TR(o,e.body),DL(o,e.body)}}return o??(o=vB(e.body,b,JC)),g(),n.updateConstructorDeclaration(e,t,r,o)}(a);case 175:return function(e){_(e);const{modifiers:t,name:r,descriptorName:o}=L(e,l,ee);if(o)return g(),P(function(e,t,r){return e=bB(e,e=>yD(e)?e:void 0,td),n.createGetAccessorDeclaration(e,t,[],void 0,n.createBlock([n.createReturnStatement(n.createPropertyAccessExpression(r,n.createIdentifier("value")))]))}(t,r,o),e);{const o=bB(e.parameters,b,DD),i=vB(e.body,b,JC);return g(),P(n.updateMethodDeclaration(e,t,e.asteriskToken,r,void 0,void 0,o,void 0,i),e)}}(a);case 178:return function(e){_(e);const{modifiers:t,name:r,descriptorName:o}=L(e,l,ne);if(o)return g(),P(ie(t,r,o),e);{const o=bB(e.parameters,b,DD),i=vB(e.body,b,JC);return g(),P(n.updateGetAccessorDeclaration(e,t,r,o,void 0,i),e)}}(a);case 179:return function(e){_(e);const{modifiers:t,name:r,descriptorName:o}=L(e,l,te);if(o)return g(),P(se(t,r,o),e);{const o=bB(e.parameters,b,DD),i=vB(e.body,b,JC);return g(),P(n.updateSetAccessorDeclaration(e,t,r,o,i),e)}}(a);case 173:return function(a){Qg(a,k)&&(a=eV(e,a,w(a.initializer)));_(a),dt.assert(!Ef(a),"Not yet implemented.");const{modifiers:s,name:c,initializersName:d,extraInitializersName:u,descriptorName:p,thisArg:f}=L(a,l,Fv(a)?oe:void 0);r();let m=vB(a.initializer,b,qd);d&&(m=t().createRunInitializersHelper(f??n.createThis(),d,m??n.createVoidZero()));Pv(a)&&l&&m&&(l.hasStaticInitializers=!0);const h=o();U(h)&&(m=n.createImmediatelyInvokedArrowFunction([...h,n.createReturnStatement(m)]));l&&(Pv(a)?(m=Y(l,!0,m),u&&(l.pendingStaticInitializers??(l.pendingStaticInitializers=[]),l.pendingStaticInitializers.push(t().createRunInitializersHelper(l.classThis??n.createThis(),u)))):(m=Y(l,!1,m),u&&(l.pendingInstanceInitializers??(l.pendingInstanceInitializers=[]),l.pendingInstanceInitializers.push(t().createRunInitializersHelper(n.createThis(),u)))));if(g(),Fv(a)&&p){const e=wR(a),t=CR(a),r=a.name;let o=r,l=r;if(RD(r)&&!pG(r.expression)){const e=AL(r);if(e)o=n.updateComputedPropertyName(r,vB(r.expression,b,qd)),l=n.updateComputedPropertyName(r,e.left);else{const e=n.createTempVariable(i);NR(e,r.expression);const t=vB(r.expression,b,qd),a=n.createAssignment(e,t);NR(a,r.expression),o=n.updateComputedPropertyName(r,a),l=n.updateComputedPropertyName(r,e)}}const c=bB(s,e=>129!==e.kind?e:void 0,td),d=TL(n,a,c,m);TR(d,a),xR(d,3072),NR(d,t),NR(d.name,a.name);const u=ie(c,o,p);TR(u,a),OR(u,e),NR(u,t);const f=se(c,l,p);return TR(f,a),xR(f,3072),NR(f,t),[d,u,f]}return P(n.updatePropertyDeclaration(a,s,c,void 0,void 0,m),a)}(a);case 176:return function(t){let r;if(_(t),XG(t))r=CB(t,b,e);else if(UG(t)){const n=c;c=void 0,r=CB(t,b,e),c=n}else if(r=t=CB(t,b,e),l&&(l.hasStaticInitializers=!0,U(l.pendingStaticInitializers))){const e=[];for(const r of l.pendingStaticInitializers){const t=n.createExpressionStatement(r);NR(t,CR(r)),e.push(t)}const t=n.createBlock(e,!0);r=[n.createClassStaticBlockDeclaration(t),r],l.pendingStaticInitializers=void 0}return g(),r}(a);default:return b(a)}}function A(e){switch(e.kind){case 225:case 226:return F(e,!0);case 227:return O(e,!0);case 357:return W(e,!0);case 218:return q(e,!0);default:return b(e)}}function x(e,t){return n.createUniqueName(`${function(e){let n=e.name&&dD(e.name)&&!Jc(e.name)?vl(e.name):e.name&&uD(e.name)&&!Jc(e.name)?vl(e.name).slice(1):e.name&&qI(e.name)&&ys(e.name.text,99)?e.name.text:md(e)?"class":"member";return Nu(e)&&(n=`get_${n}`),Cu(e)&&(n=`set_${n}`),e.name&&uD(e.name)&&(n=`private_${n}`),Pv(e)&&(n=`static_${n}`),"_"+n}(e)}_${t}`,24)}function R(e,t){return n.createVariableStatement(void 0,n.createVariableDeclarationList([n.createVariableDeclaration(e,void 0,void 0,t)],1))}function I(i){r(),!$G(i)&&vh(!1,i)&&(i=QG(e,i,n.createStringLiteral("")));const a=n.getLocalName(i,!1,!1,!0),s=function(e){const r=n.createUniqueName("_metadata",48);let o,i,a,s,l,c=!1,d=!1,u=!1;if(_h(!1,e)){const t=U(e.members,e=>($c(e)||_d(e))&&Lv(e));a=n.createUniqueName("_classThis",t?24:48)}for(const p of e.members){if(yd(p)&&gh(!1,p,e))if(Lv(p)){if(!i){i=n.createUniqueName("_staticExtraInitializers",48);const r=t().createRunInitializersHelper(a??n.createThis(),i);NR(r,e.name??zb(e)),s??(s=[]),s.push(r)}}else{if(!o){o=n.createUniqueName("_instanceExtraInitializers",48);const r=t().createRunInitializersHelper(n.createThis(),o);NR(r,e.name??zb(e)),l??(l=[]),l.push(r)}o??(o=n.createUniqueName("_instanceExtraInitializers",48))}if(kD(p)?XG(p)||(c=!0):MD(p)&&(Lv(p)?c||(c=!!p.initializer||zv(p)):d||(d=!Ef(p))),($c(p)||_d(p))&&Lv(p)&&(u=!0),i&&o&&c&&d&&u)break}return{class:e,classThis:a,metadataReference:r,instanceMethodExtraInitializersName:o,staticMethodExtraInitializersName:i,hasStaticInitializers:c,hasNonAmbientInstanceFields:d,hasStaticPrivateClassElements:u,pendingStaticInitializers:s,pendingInstanceInitializers:l}}(i),l=[];let c,d,f,_,g=!1;const y=$(AG(i,!1));y&&(s.classDecoratorsName=n.createUniqueName("_classDecorators",48),s.classDescriptorName=n.createUniqueName("_classDescriptor",48),s.classExtraInitializersName=n.createUniqueName("_classExtraInitializers",48),dt.assertIsDefined(s.classThis),l.push(R(s.classDecoratorsName,n.createArrayLiteralExpression(y)),R(s.classDescriptorName),R(s.classExtraInitializersName,n.createArrayLiteralExpression()),R(s.classThis)),s.hasStaticPrivateClassElements&&(g=!0,p=!0));const v=Rg(i.heritageClauses,96),T=v&&fe(v.types),S=T&&vB(T.expression,b,qd);if(S){s.classSuper=n.createUniqueName("_classSuper",48);const e=MP(S),t=OC(e)&&!e.name||EC(e)&&!e.name||AC(e)?n.createComma(n.createNumericLiteral(0),S):S;l.push(R(s.classSuper,t));const r=n.updateExpressionWithTypeArguments(T,s.classSuper,void 0),o=n.updateHeritageClause(v,[r]);_=n.createNodeArray([o])}const A=s.classThis??n.createThis();m(s),c=re(c,function(e,t){const r=n.createVariableDeclaration(e,void 0,void 0,n.createConditionalExpression(n.createLogicalAnd(n.createTypeCheck(n.createIdentifier("Symbol"),"function"),n.createPropertyAccessExpression(n.createIdentifier("Symbol"),"metadata")),n.createToken(58),n.createCallExpression(n.createPropertyAccessExpression(n.createIdentifier("Object"),"create"),void 0,[t?le(t):n.createNull()]),n.createToken(59),n.createVoidZero()));return n.createVariableStatement(void 0,n.createVariableDeclarationList([r],2))}(s.metadataReference,s.classSuper));let x=i.members;if(x=bB(x,e=>wD(e)?e:E(e),fd),x=bB(x,e=>wD(e)?E(e):e,fd),u){let t;for(let r of u){r=vB(r,function r(o){return 16384&o.transformFlags?110===o.kind?(t||(t=n.createUniqueName("_outerThis",16),l.unshift(R(t,n.createThis()))),t):CB(o,r,e):o},qd);c=re(c,n.createExpressionStatement(r))}u=void 0}if(h(),U(s.pendingInstanceInitializers)&&!sv(i)){const e=N(i,s);if(e){const t=Tg(i),r=[];if(!(!t||106===MP(t.expression).kind)){const e=n.createSpreadElement(n.createIdentifier("arguments")),t=n.createCallExpression(n.createSuper(),void 0,[e]);r.push(n.createExpressionStatement(t))}ae(r,e);const o=n.createBlock(r,!0);f=n.createConstructorDeclaration(void 0,[],o)}}if(s.staticMethodExtraInitializersName&&l.push(R(s.staticMethodExtraInitializersName,n.createArrayLiteralExpression())),s.instanceMethodExtraInitializersName&&l.push(R(s.instanceMethodExtraInitializersName,n.createArrayLiteralExpression())),s.memberInfos&&ap(s.memberInfos,(e,t)=>{Pv(t)&&(l.push(R(e.memberDecoratorsName)),e.memberInitializersName&&l.push(R(e.memberInitializersName,n.createArrayLiteralExpression())),e.memberExtraInitializersName&&l.push(R(e.memberExtraInitializersName,n.createArrayLiteralExpression())),e.memberDescriptorName&&l.push(R(e.memberDescriptorName)))}),s.memberInfos&&ap(s.memberInfos,(e,t)=>{Pv(t)||(l.push(R(e.memberDecoratorsName)),e.memberInitializersName&&l.push(R(e.memberInitializersName,n.createArrayLiteralExpression())),e.memberExtraInitializersName&&l.push(R(e.memberExtraInitializersName,n.createArrayLiteralExpression())),e.memberDescriptorName&&l.push(R(e.memberDescriptorName)))}),c=ae(c,s.staticNonFieldDecorationStatements),c=ae(c,s.nonStaticNonFieldDecorationStatements),c=ae(c,s.staticFieldDecorationStatements),c=ae(c,s.nonStaticFieldDecorationStatements),s.classDescriptorName&&s.classDecoratorsName&&s.classExtraInitializersName&&s.classThis){c??(c=[]);const e=n.createPropertyAssignment("value",A),r=n.createObjectLiteralExpression([e]),o=n.createAssignment(s.classDescriptorName,r),l=n.createPropertyAccessExpression(A,"name"),d=t().createESDecorateHelper(n.createNull(),o,s.classDecoratorsName,{kind:"class",name:l,metadata:s.metadataReference},n.createNull(),s.classExtraInitializersName),u=n.createExpressionStatement(d);NR(u,zb(i)),c.push(u);const p=n.createPropertyAccessExpression(s.classDescriptorName,"value"),f=n.createAssignment(s.classThis,p),m=n.createAssignment(a,f);c.push(n.createExpressionStatement(m))}if(c.push(function(e,t){const r=n.createObjectDefinePropertyCall(e,n.createPropertyAccessExpression(n.createIdentifier("Symbol"),"metadata"),n.createPropertyDescriptor({configurable:!0,writable:!0,enumerable:!0,value:t},!0));return xR(n.createIfStatement(t,n.createExpressionStatement(r)),1)}(A,s.metadataReference)),U(s.pendingStaticInitializers)){for(const e of s.pendingStaticInitializers){const t=n.createExpressionStatement(e);NR(t,CR(e)),d=re(d,t)}s.pendingStaticInitializers=void 0}if(s.classExtraInitializersName){const e=t().createRunInitializersHelper(A,s.classExtraInitializersName),r=n.createExpressionStatement(e);NR(r,i.name??zb(i)),d=re(d,r)}c&&d&&!s.hasStaticInitializers&&(ae(c,d),d=void 0);const I=c&&n.createClassStaticBlockDeclaration(n.createBlock(c,!0));I&&g&&IR(I,32);const D=d&&n.createClassStaticBlockDeclaration(n.createBlock(d,!0));if(I||f||D){const e=[],t=x.findIndex(XG);I?(ae(e,x,0,t+1),e.push(I),ae(e,x,t+1)):ae(e,x),f&&e.push(f),D&&e.push(D),x=DL(n.createNodeArray(e),x)}const C=o();let M;if(y){M=n.createClassExpression(void 0,void 0,void 0,_,x),s.classThis&&(M=KG(n,M,s.classThis));const e=n.createVariableDeclaration(a,void 0,void 0,M),t=n.createVariableDeclarationList([e]),r=s.classThis?n.createAssignment(a,s.classThis):a;l.push(n.createVariableStatement(void 0,t),n.createReturnStatement(r))}else M=n.createClassExpression(void 0,i.name,void 0,_,x),l.push(n.createReturnStatement(M));if(g){DR(M,32);for(const e of M.members)($c(e)||_d(e))&&Lv(e)&&DR(e,32)}return TR(M,i),n.createImmediatelyInvokedArrowFunction(n.mergeLexicalEnvironment(l,C))}function C(e){return vh(!1,e)||yh(!1,e)}function N(e,t){if(U(t.pendingInstanceInitializers)){const e=[];return e.push(n.createExpressionStatement(n.inlineExpressions(t.pendingInstanceInitializers))),t.pendingInstanceInitializers=void 0,e}}function M(e,t,r,o,i,a){const s=o[i],l=t[s];if(ae(e,bB(t,b,_u,r,s-r)),uN(l)){const t=[];M(t,l.tryBlock.statements,0,o,i+1,a);DL(n.createNodeArray(t),l.tryBlock.statements),e.push(n.updateTryStatement(l,n.updateBlock(l.tryBlock,t),vB(l.catchClause,b,aM),vB(l.finallyBlock,b,JC)))}else ae(e,bB(t,b,_u,s,1)),ae(e,a);ae(e,bB(t,b,_u,s+1))}function P(e,n){return e!==n&&(OR(e,n),NR(e,zb(n))),e}function L(e,r,o){let a,s,l,c,d,p;if(!r){const n=bB(e.modifiers,S,td);return y(),s=z(e.name),v(),{modifiers:n,referencedName:a,name:s,initializersName:l,descriptorName:p,thisArg:d}}const f=$(xG(e,r.class,!1)),m=bB(e.modifiers,S,td);if(f){const h=x(e,"decorators"),_=n.createArrayLiteralExpression(f),g=n.createAssignment(h,_),T={memberDecoratorsName:h};r.memberInfos??(r.memberInfos=new Map),r.memberInfos.set(e,T),u??(u=[]),u.push(g);const S=yd(e)||_d(e)?Pv(e)?r.staticNonFieldDecorationStatements??(r.staticNonFieldDecorationStatements=[]):r.nonStaticNonFieldDecorationStatements??(r.nonStaticNonFieldDecorationStatements=[]):MD(e)&&!_d(e)?Pv(e)?r.staticFieldDecorationStatements??(r.staticFieldDecorationStatements=[]):r.nonStaticFieldDecorationStatements??(r.nonStaticFieldDecorationStatements=[]):dt.fail(),E=OD(e)?"getter":FD(e)?"setter":LD(e)?"method":_d(e)?"accessor":MD(e)?"field":dt.fail();let A;if(dD(e.name)||uD(e.name))A={computed:!1,name:e.name};else if(Ug(e.name))A={computed:!0,name:n.createStringLiteralFromNode(e.name)};else{const r=e.name.expression;Ug(r)&&!dD(r)?A={computed:!0,name:n.createStringLiteralFromNode(r)}:(y(),({referencedName:a,name:s}=function(e){if(Ug(e)||uD(e)){return{referencedName:n.createStringLiteralFromNode(e),name:vB(e,b,od)}}if(Ug(e.expression)&&!dD(e.expression)){return{referencedName:n.createStringLiteralFromNode(e.expression),name:vB(e,b,od)}}const r=n.getGeneratedNameForNode(e);i(r);const o=t().createPropKeyHelper(vB(e.expression,b,qd)),a=n.createAssignment(r,o),s=n.updateComputedPropertyName(e,X(a));return{referencedName:r,name:s}}(e.name)),A={computed:!0,name:a},v())}const R={kind:E,name:A,static:Pv(e),private:uD(e.name),access:{get:MD(e)||OD(e)||LD(e),set:MD(e)||FD(e)},metadata:r.metadataReference};if(yd(e)){const i=Pv(e)?r.staticMethodExtraInitializersName:r.instanceMethodExtraInitializersName;let a;dt.assertIsDefined(i),$c(e)&&o&&(a=o(e,bB(m,e=>en(e,mD),td)),T.memberDescriptorName=p=x(e,"descriptor"),a=n.createAssignment(p,a));const s=t().createESDecorateHelper(n.createThis(),a??n.createNull(),h,R,n.createNull(),i),l=n.createExpressionStatement(s);NR(l,zb(e)),S.push(l)}else if(MD(e)){let i;l=T.memberInitializersName??(T.memberInitializersName=x(e,"initializers")),c=T.memberExtraInitializersName??(T.memberExtraInitializersName=x(e,"extraInitializers")),Pv(e)&&(d=r.classThis),$c(e)&&Fv(e)&&o&&(i=o(e,void 0),T.memberDescriptorName=p=x(e,"descriptor"),i=n.createAssignment(p,i));const a=t().createESDecorateHelper(_d(e)?n.createThis():n.createNull(),i??n.createNull(),h,R,l,c),s=n.createExpressionStatement(a);NR(s,zb(e)),S.push(s)}}return void 0===s&&(y(),s=z(e.name),v()),U(m)||!LD(e)&&!MD(e)||xR(s,1024),{modifiers:m,referencedName:a,name:s,initializersName:l,extraInitializersName:c,descriptorName:p,thisArg:d}}function k(e){return OC(e)&&!e.name&&C(e)}function w(e){const n=MP(e);return OC(n)&&!n.name&&!vh(!1,n)}function O(t,r){if(lb(t)){const e=K(t.left),r=vB(t.right,b,qd);return n.updateBinaryExpression(t,e,t.operatorToken,r)}if(sb(t)){if(Qg(t,k))return CB(t=eV(e,t,w(t.right)),b,e);if(ch(t.left)&&c&&d){let e=gC(t.left)?vB(t.left.argumentExpression,b,qd):dD(t.left.name)?n.createStringLiteralFromNode(t.left.name):void 0;if(e){let o=vB(t.right,b,qd);if(fG(t.operatorToken.kind)){let r=e;pG(e)||(r=n.createTempVariable(i),e=n.createAssignment(r,e));const a=n.createReflectGetCall(d,r,c);TR(a,t.left),DL(a,t.left),o=n.createBinaryExpression(a,mG(t.operatorToken.kind),o),DL(o,t)}const a=r?void 0:n.createTempVariable(i);return a&&(o=n.createAssignment(a,o),DL(a,t)),o=n.createReflectSetCall(d,e,o,c),TR(o,t),DL(o,t),a&&(o=n.createComma(o,a),DL(o,t)),o}}}if(28===t.operatorToken.kind){const e=vB(t.left,A,qd),o=vB(t.right,r?A:b,qd);return n.updateBinaryExpression(t,e,t.operatorToken,o)}return CB(t,b,e)}function F(t,r){if(46===t.operator||47===t.operator){const e=cg(t.operand);if(ch(e)&&c&&d){let o=gC(e)?vB(e.argumentExpression,b,qd):dD(e.name)?n.createStringLiteralFromNode(e.name):void 0;if(o){let e=o;pG(o)||(e=n.createTempVariable(i),o=n.createAssignment(e,o));let a=n.createReflectGetCall(d,e,c);TR(a,t),DL(a,t);const s=r?void 0:n.createTempVariable(i);return a=vP(n,t,a,i,s),a=n.createReflectSetCall(d,o,a,c),TR(a,t),DL(a,t),s&&(a=n.createComma(a,s),DL(a,t)),a}}}return CB(t,b,e)}function W(e,t){const r=t?DB(e.elements,A):DB(e.elements,b,A);return n.updateCommaListExpression(e,r)}function z(e){return RD(e)?B(e):vB(e,b,od)}function B(e){let t=vB(e.expression,b,qd);return pG(t)||(t=X(t)),n.updateComputedPropertyName(e,t)}function G(t){if(hC(t)||mC(t))return K(t);if(ch(t)&&c&&d){const e=gC(t)?vB(t.argumentExpression,b,qd):dD(t.name)?n.createStringLiteralFromNode(t.name):void 0;if(e){const r=n.createTempVariable(void 0),o=n.createAssignmentTargetWrapper(r,n.createReflectSetCall(d,e,r,c));return TR(o,t),DL(o,t),o}}return CB(t,b,e)}function V(t){if(sb(t,!0)){Qg(t,k)&&(t=eV(e,t,w(t.right)));const r=G(t.left),o=vB(t.right,b,qd);return n.updateBinaryExpression(t,r,t.operatorToken,o)}return G(t)}function j(t){return dt.assertNode(t,kd),wC(t)?function(t){if(Gd(t.expression)){const e=G(t.expression);return n.updateSpreadElement(t,e)}return CB(t,b,e)}(t):FC(t)?CB(t,b,e):V(t)}function H(t){return dt.assertNode(t,Pd),cM(t)?function(t){if(Gd(t.expression)){const e=G(t.expression);return n.updateSpreadAssignment(t,e)}return CB(t,b,e)}(t):lM(t)?function(n){return Qg(n,k)&&(n=eV(e,n,w(n.objectAssignmentInitializer))),CB(n,b,e)}(t):sM(t)?function(t){const r=vB(t.name,b,od);if(sb(t.initializer,!0)){const e=V(t.initializer);return n.updatePropertyAssignment(t,r,e)}if(Gd(t.initializer)){const e=G(t.initializer);return n.updatePropertyAssignment(t,r,e)}return CB(t,b,e)}(t):CB(t,b,e)}function K(e){if(mC(e)){const t=bB(e.elements,j,qd);return n.updateArrayLiteralExpression(e,t)}{const t=bB(e.properties,H,Sd);return n.updateObjectLiteralExpression(e,t)}}function q(e,t){const r=t?A:b,o=vB(e.expression,r,qd);return n.updateParenthesizedExpression(e,o)}function J(e,t){return U(e)&&(t?SC(t)?(e.push(t.expression),t=n.updateParenthesizedExpression(t,n.inlineExpressions(e))):(e.push(t),t=n.inlineExpressions(e)):t=n.inlineExpressions(e)),t}function X(e){const n=J(u,e);return dt.assertIsDefined(n),n!==e&&(u=void 0),n}function Y(e,n,t){const r=J(n?e.pendingStaticInitializers:e.pendingInstanceInitializers,t);return r!==t&&(n?e.pendingStaticInitializers=void 0:e.pendingInstanceInitializers=void 0),r}function $(e){if(!e)return;const n=[];return ae(n,D(e.decorators,Q)),n}function Q(e){const t=vB(e.expression,b,qd);xR(t,3072);if(IT(MP(t))){const{target:e,thisArg:r}=n.createCallBinding(t,i,a,!0);return n.restoreOuterExpressions(t,n.createFunctionBindCall(e,r,[]))}return t}function Z(e,r,o,i,a,s,l){const c=n.createFunctionExpression(o,i,void 0,void 0,s,void 0,l??n.createBlock([]));TR(c,e),NR(c,zb(e)),xR(c,3072);const d="get"===a||"set"===a?a:void 0,u=n.createStringLiteralFromNode(r,void 0),p=t().createSetFunctionNameHelper(c,u,d),f=n.createPropertyAssignment(n.createIdentifier(a),p);return TR(f,e),NR(f,zb(e)),xR(f,3072),f}function ee(e,t){return n.createObjectLiteralExpression([Z(e,e.name,t,e.asteriskToken,"value",bB(e.parameters,b,DD),vB(e.body,b,JC))])}function ne(e,t){return n.createObjectLiteralExpression([Z(e,e.name,t,void 0,"get",[],vB(e.body,b,JC))])}function te(e,t){return n.createObjectLiteralExpression([Z(e,e.name,t,void 0,"set",bB(e.parameters,b,DD),vB(e.body,b,JC))])}function oe(e,t){return n.createObjectLiteralExpression([Z(e,e.name,t,void 0,"get",[],n.createBlock([n.createReturnStatement(n.createPropertyAccessExpression(n.createThis(),n.getGeneratedPrivateNameForNode(e.name)))])),Z(e,e.name,t,void 0,"set",[n.createParameterDeclaration(void 0,void 0,"value")],n.createBlock([n.createExpressionStatement(n.createAssignment(n.createPropertyAccessExpression(n.createThis(),n.getGeneratedPrivateNameForNode(e.name)),n.createIdentifier("value")))]))])}function ie(e,t,r){return e=bB(e,e=>yD(e)?e:void 0,td),n.createGetAccessorDeclaration(e,t,[],void 0,n.createBlock([n.createReturnStatement(n.createFunctionCallCall(n.createPropertyAccessExpression(r,n.createIdentifier("get")),n.createThis(),[]))]))}function se(e,t,r){return e=bB(e,e=>yD(e)?e:void 0,td),n.createSetAccessorDeclaration(e,t,[n.createParameterDeclaration(void 0,void 0,"value")],n.createBlock([n.createReturnStatement(n.createFunctionCallCall(n.createPropertyAccessExpression(r,n.createIdentifier("set")),n.createThis(),[n.createIdentifier("value")]))]))}function le(e){return n.createBinaryExpression(n.createElementAccessExpression(e,n.createPropertyAccessExpression(n.createIdentifier("Symbol"),"metadata")),61,n.createNull())}}function uV(e){const{factory:n,getEmitHelperFactory:t,resumeLexicalEnvironment:r,endLexicalEnvironment:o,hoistVariableDeclaration:i}=e,a=e.getEmitResolver(),s=e.getCompilerOptions(),l=SS(s);let c,u,p,f,m=0,h=0;const _=[];let g=0;const y=e.onEmitNode,v=e.onSubstituteNode;return e.onEmitNode=function(e,n,t){if(1&m&&function(e){const n=e.kind;return 264===n||177===n||175===n||178===n||179===n}(n)){const r=(a.hasNodeCheckFlag(n,128)?128:0)|(a.hasNodeCheckFlag(n,256)?256:0);if(r!==h){const o=h;return h=r,y(e,n,t),void(h=o)}}else if(m&&_[cB(n)]){const r=h;return h=0,y(e,n,t),void(h=r)}y(e,n,t)},e.onSubstituteNode=function(e,t){if(t=v(e,t),1===e&&h)return function(e){switch(e.kind){case 212:return K(e);case 213:return q(e);case 214:return function(e){const t=e.expression;if(ch(t)){const r=_C(t)?K(t):q(t);return n.createCallExpression(n.createPropertyAccessExpression(r,"call"),void 0,[n.createThis(),...e.arguments])}return e}(e)}return e}(t);return t},tG(e,function(n){if(n.isDeclarationFile)return n;b(1,!1),b(2,!Sf(n,s));const t=CB(n,x,e);return qR(t,e.readEmitHelpers()),t});function b(e,n){g=n?g|e:g&~e}function T(e){return 0!==(g&e)}function S(e,n,t){const r=e&~g;if(r){b(r,!0);const e=n(t);return b(r,!1),e}return n(t)}function E(n){return CB(n,x,e)}function A(n){switch(n.kind){case 219:case 263:case 175:case 178:case 179:case 177:return n;case 170:case 209:case 261:break;case 80:if(f&&a.isArgumentsLocalBinding(n))return f}return CB(n,A,e)}function x(t){if(!(256&t.transformFlags))return f?A(t):t;switch(t.kind){case 134:return;case 224:return function(t){if(!T(1))return CB(t,x,e);return TR(DL(n.createYieldExpression(void 0,vB(t.expression,x,qd)),t),t)}(t);case 175:return S(3,C,t);case 263:return S(3,P,t);case 219:return S(3,L,t);case 220:return S(1,k,t);case 212:return u&&_C(t)&&108===t.expression.kind&&u.add(t.name.escapedText),CB(t,x,e);case 213:return u&&108===t.expression.kind&&(p=!0),CB(t,x,e);case 178:return S(3,N,t);case 179:return S(3,M,t);case 177:return S(3,I,t);case 264:case 232:return S(3,E,t);default:return CB(t,x,e)}}function R(t){if(tg(t))switch(t.kind){case 244:return function(t){if(O(t.declarationList)){const e=F(t.declarationList,!1);return e?n.createExpressionStatement(e):void 0}return CB(t,x,e)}(t);case 249:return function(t){const r=t.initializer;return n.updateForStatement(t,O(r)?F(r,!1):vB(t.initializer,x,ru),vB(t.condition,x,qd),vB(t.incrementor,x,qd),IB(t.statement,R,e))}(t);case 250:return function(t){return n.updateForInStatement(t,O(t.initializer)?F(t.initializer,!0):dt.checkDefined(vB(t.initializer,x,ru)),dt.checkDefined(vB(t.expression,x,qd)),IB(t.statement,R,e))}(t);case 251:return function(t){return n.updateForOfStatement(t,vB(t.awaitModifier,x,_D),O(t.initializer)?F(t.initializer,!0):dt.checkDefined(vB(t.initializer,x,ru)),dt.checkDefined(vB(t.expression,x,qd)),IB(t.statement,R,e))}(t);case 300:return function(n){const t=new Set;let r;if(w(n.variableDeclaration,t),t.forEach((e,n)=>{c.has(n)&&(r||(r=new Set(c)),r.delete(n))}),r){const t=c;c=r;const o=CB(n,R,e);return c=t,o}return CB(n,R,e)}(t);case 242:case 256:case 270:case 297:case 298:case 259:case 247:case 248:case 246:case 255:case 257:return CB(t,R,e);default:return dt.assertNever(t,"Unhandled node.")}return x(t)}function I(t){const r=f;f=void 0;const o=n.updateConstructorDeclaration(t,bB(t.modifiers,x,td),AB(t.parameters,x,e),G(t));return f=r,o}function C(t){let r;const o=Fg(t),i=f;f=void 0;const a=n.updateMethodDeclaration(t,bB(t.modifiers,x,vd),t.asteriskToken,t.name,void 0,void 0,r=2&o?j(t):AB(t.parameters,x,e),void 0,2&o?U(t,r):G(t));return f=i,a}function N(t){const r=f;f=void 0;const o=n.updateGetAccessorDeclaration(t,bB(t.modifiers,x,vd),t.name,AB(t.parameters,x,e),void 0,G(t));return f=r,o}function M(t){const r=f;f=void 0;const o=n.updateSetAccessorDeclaration(t,bB(t.modifiers,x,vd),t.name,AB(t.parameters,x,e),G(t));return f=r,o}function P(t){let r;const o=f;f=void 0;const i=Fg(t),a=n.updateFunctionDeclaration(t,bB(t.modifiers,x,vd),t.asteriskToken,t.name,void 0,r=2&i?j(t):AB(t.parameters,x,e),void 0,2&i?U(t,r):RB(t.body,x,e));return f=o,a}function L(t){let r;const o=f;f=void 0;const i=Fg(t),a=n.updateFunctionExpression(t,bB(t.modifiers,x,td),t.asteriskToken,t.name,void 0,r=2&i?j(t):AB(t.parameters,x,e),void 0,2&i?U(t,r):RB(t.body,x,e));return f=o,a}function k(t){let r;const o=Fg(t);return n.updateArrowFunction(t,bB(t.modifiers,x,td),void 0,r=2&o?j(t):AB(t.parameters,x,e),void 0,t.equalsGreaterThanToken,2&o?U(t,r):RB(t.body,x,e))}function w({name:e},n){if(dD(e))n.add(e.escapedText);else for(const t of e.elements)FC(t)||w(t,n)}function O(e){return!!e&&mN(e)&&!(7&e.flags)&&e.declarations.some(B)}function F(e,t){!function(e){d(e.declarations,W)}(e);const r=rT(e);return 0===r.length?t?vB(n.converters.convertToAssignmentElementTarget(e.declarations[0].name),x,qd):void 0:n.inlineExpressions(D(r,z))}function W({name:e}){if(dD(e))i(e);else for(const n of e.elements)FC(n)||W(n)}function z(e){const t=NR(n.createAssignment(n.converters.convertToAssignmentElementTarget(e.name),e.initializer),e);return dt.checkDefined(vB(t,x,qd))}function B({name:e}){if(dD(e))return c.has(e.escapedText);for(const n of e.elements)if(!FC(n)&&B(n))return!0;return!1}function G(t){dt.assertIsDefined(t.body);const r=u,o=p;u=new Set,p=!1;let i=RB(t.body,x,e);const s=fl(t,ld);if(l>=2&&(a.hasNodeCheckFlag(t,256)||a.hasNodeCheckFlag(t,128))&&!!(3&~Fg(s))){if(H(),u.size){const e=pV(n,a,t,u);_[cB(e)]=!0;const r=i.statements.slice();Fp(r,[e]),i=n.updateBlock(i,r)}p&&(a.hasNodeCheckFlag(t,256)?KR(i,jI):a.hasNodeCheckFlag(t,128)&&KR(i,VI))}return u=r,p=o,i}function V(){dt.assert(f);const e=n.createVariableDeclaration(f,void 0,void 0,n.createIdentifier("arguments")),t=n.createVariableStatement(void 0,[e]);return LP(t),RR(t,2097152),t}function j(t){if(PG(t.parameters))return AB(t.parameters,x,e);const r=[];for(const e of t.parameters){if(e.initializer||e.dotDotDotToken){if(220===t.kind){const e=n.createParameterDeclaration(void 0,n.createToken(26),n.createUniqueName("args",8));r.push(e)}break}const o=n.createParameterDeclaration(void 0,void 0,n.getGeneratedNameForNode(e.name,8));r.push(o)}const o=n.createNodeArray(r);return DL(o,t.parameters),o}function U(i,s){const d=PG(i.parameters)?void 0:AB(i.parameters,x,e);r();const m=fl(i,ad).type,h=l<2?function(e){const n=e&&fh(e);if(n&&rd(n)){const e=a.getTypeReferenceSerializationKind(n);if(1===e||0===e)return n}return}(m):void 0,g=220===i.kind,y=f,v=a.hasNodeCheckFlag(i,512)&&!f;let b;if(v&&(f=n.createUniqueName("arguments")),d)if(g){const e=[];dt.assert(s.length<=i.parameters.length);for(let t=0;t<i.parameters.length;t++){dt.assert(t<s.length);const r=i.parameters[t],o=s[t];if(dt.assertNode(o.name,dD),r.initializer||r.dotDotDotToken){dt.assert(t===s.length-1),e.push(n.createSpreadElement(o.name));break}e.push(o.name)}b=n.createArrayLiteralExpression(e)}else b=n.createIdentifier("arguments");const S=c;c=new Set;for(const e of i.parameters)w(e,c);const E=u,A=p;g||(u=new Set,p=!1);const I=T(2);let D,C=function(e,t){return JC(e)?n.updateBlock(e,bB(e.statements,R,_u,t)):n.converters.convertToFunctionBlock(dt.checkDefined(vB(e,R,nu)))}(i.body);if(C=n.updateBlock(C,n.mergeLexicalEnvironment(C.statements,o())),g){if(D=t().createAwaiterHelper(I,b,h,d,C),v){const e=n.converters.convertToFunctionBlock(D);D=n.updateBlock(e,n.mergeLexicalEnvironment(e.statements,[V()]))}}else{const e=[];e.push(n.createReturnStatement(t().createAwaiterHelper(I,b,h,d,C)));const r=l>=2&&(a.hasNodeCheckFlag(i,256)||a.hasNodeCheckFlag(i,128));if(r&&(H(),u.size)){const t=pV(n,a,i,u);_[cB(t)]=!0,Fp(e,[t])}v&&Fp(e,[V()]);const o=n.createBlock(e,!0);DL(o,i.body),r&&p&&(a.hasNodeCheckFlag(i,256)?KR(o,jI):a.hasNodeCheckFlag(i,128)&&KR(o,VI)),D=o}return c=S,g||(u=E,p=A,f=y),D}function H(){1&m||(m|=1,e.enableSubstitution(214),e.enableSubstitution(212),e.enableSubstitution(213),e.enableEmitNotification(264),e.enableEmitNotification(175),e.enableEmitNotification(178),e.enableEmitNotification(179),e.enableEmitNotification(177),e.enableEmitNotification(244))}function K(e){return 108===e.expression.kind?DL(n.createPropertyAccessExpression(n.createUniqueName("_super",48),e.name),e):e}function q(e){return 108===e.expression.kind?(t=e.argumentExpression,r=e,DL(256&h?n.createPropertyAccessExpression(n.createCallExpression(n.createUniqueName("_superIndex",48),void 0,[t]),"value"):n.createCallExpression(n.createUniqueName("_superIndex",48),void 0,[t]),r)):e;var t,r}}function pV(e,n,t,r){const o=n.hasNodeCheckFlag(t,256),i=[];return r.forEach((n,t)=>{const r=yl(t),a=[];a.push(e.createPropertyAssignment("get",e.createArrowFunction(void 0,void 0,[],void 0,void 0,xR(e.createPropertyAccessExpression(xR(e.createSuper(),8),r),8)))),o&&a.push(e.createPropertyAssignment("set",e.createArrowFunction(void 0,void 0,[e.createParameterDeclaration(void 0,void 0,"v",void 0,void 0,void 0)],void 0,void 0,e.createAssignment(xR(e.createPropertyAccessExpression(xR(e.createSuper(),8),r),8),e.createIdentifier("v"))))),i.push(e.createPropertyAssignment(r,e.createObjectLiteralExpression(a)))}),e.createVariableStatement(void 0,e.createVariableDeclarationList([e.createVariableDeclaration(e.createUniqueName("_super",48),void 0,void 0,e.createCallExpression(e.createPropertyAccessExpression(e.createIdentifier("Object"),"create"),void 0,[e.createNull(),e.createObjectLiteralExpression(i,!0)]))],2))}function fV(e){const{factory:n,getEmitHelperFactory:t,resumeLexicalEnvironment:r,endLexicalEnvironment:o,hoistVariableDeclaration:i}=e,a=e.getEmitResolver(),s=e.getCompilerOptions(),l=SS(s),c=e.onEmitNode;e.onEmitNode=function(e,n,t){if(1&y&&function(e){const n=e.kind;return 264===n||177===n||175===n||178===n||179===n}(n)){const r=(a.hasNodeCheckFlag(n,128)?128:0)|(a.hasNodeCheckFlag(n,256)?256:0);if(r!==v){const o=v;return v=r,c(e,n,t),void(v=o)}}else if(y&&T[cB(n)]){const r=v;return v=0,c(e,n,t),void(v=r)}c(e,n,t)};const d=e.onSubstituteNode;e.onSubstituteNode=function(e,t){if(t=d(e,t),1===e&&v)return function(e){switch(e.kind){case 212:return $(e);case 213:return Q(e);case 214:return function(e){const t=e.expression;if(ch(t)){const r=_C(t)?$(t):Q(t);return n.createCallExpression(n.createPropertyAccessExpression(r,"call"),void 0,[n.createThis(),...e.arguments])}return e}(e)}return e}(t);return t};let u,p,f,m,h,_,g=!1,y=0,v=0,b=0;const T=[];return tG(e,function(t){if(t.isDeclarationFile)return t;f=t;const r=function(t){const r=S(2,Sf(t,s)?0:1);g=!1;const o=CB(t,x,e),i=K(o.statements,m&&[n.createVariableStatement(void 0,n.createVariableDeclarationList(m))]),a=n.updateSourceFile(o,DL(n.createNodeArray(i),t.statements));return E(r),a}(t);return qR(r,e.readEmitHelpers()),f=void 0,m=void 0,r});function S(e,n){const t=b;return b=3&(b&~e|n),t}function E(e){b=e}function A(e){m=re(m,n.createVariableDeclaration(e))}function x(e){return N(e,!1)}function R(e){return N(e,!0)}function I(e){if(134!==e.kind)return e}function D(e,n,t,r){if(function(e,n){return b!==(b&~e|n)}(t,r)){const o=S(t,r),i=e(n);return E(o),i}return e(n)}function C(n){return CB(n,x,e)}function N(r,o){if(!(128&r.transformFlags))return r;switch(r.kind){case 224:return function(r){if(2&u&&1&u)return TR(DL(n.createYieldExpression(void 0,t().createAwaitHelper(vB(r.expression,x,qd))),r),r);return CB(r,x,e)}(r);case 230:return function(r){if(2&u&&1&u){if(r.asteriskToken){const e=vB(dt.checkDefined(r.expression),x,qd);return TR(DL(n.createYieldExpression(void 0,t().createAwaitHelper(n.updateYieldExpression(r,r.asteriskToken,DL(t().createAsyncDelegatorHelper(DL(t().createAsyncValuesHelper(e),e)),e)))),r),r)}return TR(DL(n.createYieldExpression(void 0,k(r.expression?vB(r.expression,x,qd):n.createVoidZero())),r),r)}return CB(r,x,e)}(r);case 254:return function(t){if(2&u&&1&u)return n.updateReturnStatement(t,k(t.expression?vB(t.expression,x,qd):n.createVoidZero()));return CB(t,x,e)}(r);case 257:return function(t){if(2&u){const e=Gm(t);return 251===e.kind&&e.awaitModifier?L(e,t):n.restoreEnclosingLabel(vB(e,x,_u,n.liftToBlock),t)}return CB(t,x,e)}(r);case 211:return function(r){if(65536&r.transformFlags){const e=function(e){let t;const r=[];for(const o of e)if(306===o.kind){t&&(r.push(n.createObjectLiteralExpression(t)),t=void 0);const e=o.expression;r.push(vB(e,x,qd))}else t=re(t,304===o.kind?n.createPropertyAssignment(o.name,vB(o.initializer,x,qd)):vB(o,x,Sd));t&&r.push(n.createObjectLiteralExpression(t));return r}(r.properties);e.length&&211!==e[0].kind&&e.unshift(n.createObjectLiteralExpression());let o=e[0];if(e.length>1){for(let n=1;n<e.length;n++)o=t().createAssignHelper([o,e[n]]);return o}return t().createAssignHelper(e)}return CB(r,x,e)}(r);case 227:return function(t,r){if(lb(t)&&IL(t.left))return wG(t,x,e,1,!r);if(28===t.operatorToken.kind)return n.updateBinaryExpression(t,vB(t.left,R,qd),t.operatorToken,vB(t.right,r?R:x,qd));return CB(t,x,e)}(r,o);case 357:return function(t,r){if(r)return CB(t,R,e);let o;for(let e=0;e<t.elements.length;e++){const n=t.elements[e],r=vB(n,e<t.elements.length-1?R:x,qd);(o||r!==n)&&(o||(o=t.elements.slice(0,e)),o.push(r))}const i=o?DL(n.createNodeArray(o),t.elements):t.elements;return n.updateCommaListExpression(t,i)}(r,o);case 300:return function(t){if(t.variableDeclaration&&xd(t.variableDeclaration.name)&&65536&t.variableDeclaration.name.transformFlags){const r=n.getGeneratedNameForNode(t.variableDeclaration.name),o=WG(n.updateVariableDeclaration(t.variableDeclaration,t.variableDeclaration.name,void 0,void 0,r),x,e,1);let i=vB(t.block,x,JC);return U(o)&&(i=n.updateBlock(i,[n.createVariableStatement(void 0,o),...i.statements])),n.updateCatchClause(t,n.updateVariableDeclaration(t.variableDeclaration,r,void 0,void 0,void 0),i)}return CB(t,x,e)}(r);case 244:return function(n){if(Mv(n,32)){const t=g;g=!0;const r=CB(n,x,e);return g=t,r}return CB(n,x,e)}(r);case 261:return function(e){if(g){const n=g;g=!1;const t=M(e,!0);return g=n,t}return M(e,!1)}(r);case 247:case 248:case 250:return D(C,r,0,2);case 251:return L(r,void 0);case 249:return D(P,r,0,2);case 223:case 245:return function(n){return CB(n,R,e)}(r);case 177:return D(W,r,2,1);case 175:return D(G,r,2,1);case 178:return D(z,r,2,1);case 179:return D(B,r,2,1);case 263:return D(V,r,2,1);case 219:return D(H,r,2,1);case 220:return D(j,r,2,0);case 170:return O(r);case 218:return function(n,t){return CB(n,t?R:x,e)}(r,o);case 216:return function(n){return tV(e,n,x,f,A,0)}(r);case 212:return h&&_C(r)&&108===r.expression.kind&&h.add(r.name.escapedText),CB(r,x,e);case 213:return h&&108===r.expression.kind&&(_=!0),CB(r,x,e);case 264:case 232:return D(C,r,2,1);default:return CB(r,x,e)}}function M(n,t){return xd(n.name)&&65536&n.name.transformFlags?WG(n,x,e,1,void 0,t):CB(n,x,e)}function P(t){return n.updateForStatement(t,vB(t.initializer,R,ru),vB(t.condition,x,qd),vB(t.incrementor,R,qd),IB(t.statement,x,e))}function L(r,o){const a=S(0,2);(65536&r.initializer.transformFlags||Rd(r.initializer)&&IL(r.initializer))&&(r=function(e){const t=cg(e.initializer);if(mN(t)||Rd(t)){let r,o;const i=n.createTempVariable(void 0),a=[hP(n,t,i)];return JC(e.statement)?(ae(a,e.statement.statements),r=e.statement,o=e.statement.statements):e.statement&&(re(a,e.statement),r=e.statement,o=e.statement),n.updateForOfStatement(e,e.awaitModifier,DL(n.createVariableDeclarationList([DL(n.createVariableDeclaration(i),e.initializer)],1),e.initializer),e.expression,DL(n.createBlock(DL(n.createNodeArray(a),o),!0),r))}return e}(r));const s=r.awaitModifier?function(r,o,a){const s=vB(r.expression,x,qd),l=dD(s)?n.getGeneratedNameForNode(s):n.createTempVariable(void 0),c=dD(s)?n.getGeneratedNameForNode(l):n.createTempVariable(void 0),d=n.createTempVariable(void 0),u=n.createTempVariable(i),p=n.createUniqueName("e"),f=n.getGeneratedNameForNode(p),m=n.createTempVariable(void 0),h=DL(t().createAsyncValuesHelper(s),r.expression),_=n.createCallExpression(n.createPropertyAccessExpression(l,"next"),void 0,[]),g=n.createPropertyAccessExpression(c,"done"),y=n.createPropertyAccessExpression(c,"value"),v=n.createFunctionCallCall(m,l,[]);i(p),i(m);const b=2&a?n.inlineExpressions([n.createAssignment(p,n.createVoidZero()),h]):h,T=xR(DL(n.createForStatement(xR(DL(n.createVariableDeclarationList([n.createVariableDeclaration(d,void 0,void 0,n.createTrue()),DL(n.createVariableDeclaration(l,void 0,void 0,b),r.expression),n.createVariableDeclaration(c)]),r.expression),4194304),n.inlineExpressions([n.createAssignment(c,k(_)),n.createAssignment(u,g),n.createLogicalNot(u)]),n.createAssignment(d,n.createTrue()),function(t,r,o){const a=n.createTempVariable(i),s=n.createAssignment(a,r),l=n.createExpressionStatement(s);NR(l,t.expression);const c=n.createAssignment(o,n.createFalse()),d=n.createExpressionStatement(c);NR(d,t.expression);const u=[l,d],p=hP(n,t.initializer,a);let f,m;u.push(vB(p,x,_u));const h=IB(t.statement,x,e);JC(h)?(ae(u,h.statements),f=h,m=h.statements):u.push(h);return DL(n.createBlock(DL(n.createNodeArray(u),m),!0),f)}(r,y,d)),r),512);return TR(T,r),n.createTryStatement(n.createBlock([n.restoreEnclosingLabel(T,o)]),n.createCatchClause(n.createVariableDeclaration(f),xR(n.createBlock([n.createExpressionStatement(n.createAssignment(p,n.createObjectLiteralExpression([n.createPropertyAssignment("error",f)])))]),1)),n.createBlock([n.createTryStatement(n.createBlock([xR(n.createIfStatement(n.createLogicalAnd(n.createLogicalAnd(n.createLogicalNot(d),n.createLogicalNot(u)),n.createAssignment(m,n.createPropertyAccessExpression(l,"return"))),n.createExpressionStatement(k(v))),1)]),void 0,xR(n.createBlock([xR(n.createIfStatement(p,n.createThrowStatement(n.createPropertyAccessExpression(p,"error"))),1)]),1))]))}(r,o,a):n.restoreEnclosingLabel(CB(r,x,e),o);return E(a),s}function k(e){return 1&u?n.createYieldExpression(void 0,t().createAwaitHelper(e)):n.createAwaitExpression(e)}function w(e){return dt.assertNode(e,DD),O(e)}function O(t){return(null==p?void 0:p.has(t))?n.updateParameterDeclaration(t,void 0,t.dotDotDotToken,xd(t.name)?n.getGeneratedNameForNode(t):t.name,void 0,void 0,void 0):65536&t.transformFlags?n.updateParameterDeclaration(t,void 0,t.dotDotDotToken,n.getGeneratedNameForNode(t),void 0,void 0,vB(t.initializer,x,qd)):CB(t,x,e)}function F(e){let n;for(const t of e.parameters)n?n.add(t):65536&t.transformFlags&&(n=new Set);return n}function W(t){const r=u,o=p;u=Fg(t),p=F(t);const i=n.updateConstructorDeclaration(t,t.modifiers,AB(t.parameters,w,e),X(t));return u=r,p=o,i}function z(t){const r=u,o=p;u=Fg(t),p=F(t);const i=n.updateGetAccessorDeclaration(t,t.modifiers,vB(t.name,x,od),AB(t.parameters,w,e),void 0,X(t));return u=r,p=o,i}function B(t){const r=u,o=p;u=Fg(t),p=F(t);const i=n.updateSetAccessorDeclaration(t,t.modifiers,vB(t.name,x,od),AB(t.parameters,w,e),X(t));return u=r,p=o,i}function G(t){const r=u,o=p;u=Fg(t),p=F(t);const i=n.updateMethodDeclaration(t,1&u?bB(t.modifiers,I,vd):t.modifiers,2&u?void 0:t.asteriskToken,vB(t.name,x,od),vB(void 0,x,aD),void 0,2&u&&1&u?q(t):AB(t.parameters,w,e),void 0,2&u&&1&u?J(t):X(t));return u=r,p=o,i}function V(t){const r=u,o=p;u=Fg(t),p=F(t);const i=n.updateFunctionDeclaration(t,1&u?bB(t.modifiers,I,td):t.modifiers,2&u?void 0:t.asteriskToken,t.name,void 0,2&u&&1&u?q(t):AB(t.parameters,w,e),void 0,2&u&&1&u?J(t):X(t));return u=r,p=o,i}function j(t){const r=u,o=p;u=Fg(t),p=F(t);const i=n.updateArrowFunction(t,t.modifiers,void 0,AB(t.parameters,w,e),void 0,t.equalsGreaterThanToken,X(t));return u=r,p=o,i}function H(t){const r=u,o=p;u=Fg(t),p=F(t);const i=n.updateFunctionExpression(t,1&u?bB(t.modifiers,I,td):t.modifiers,2&u?void 0:t.asteriskToken,t.name,void 0,2&u&&1&u?q(t):AB(t.parameters,w,e),void 0,2&u&&1&u?J(t):X(t));return u=r,p=o,i}function q(t){if(PG(t.parameters))return AB(t.parameters,x,e);const r=[];for(const e of t.parameters){if(e.initializer||e.dotDotDotToken)break;const t=n.createParameterDeclaration(void 0,void 0,n.getGeneratedNameForNode(e.name,8));r.push(t)}const o=n.createNodeArray(r);return DL(o,t.parameters),o}function J(i){const s=PG(i.parameters)?void 0:AB(i.parameters,x,e);r();const c=h,d=_;h=new Set,_=!1;const u=[];let p=n.updateBlock(i.body,bB(i.body.statements,x,_u));p=n.updateBlock(p,n.mergeLexicalEnvironment(p.statements,Y(o(),i)));const f=n.createReturnStatement(t().createAsyncGeneratorHelper(n.createFunctionExpression(void 0,n.createToken(42),i.name&&n.getGeneratedNameForNode(i.name),void 0,s??[],void 0,p),!!(1&b))),m=l>=2&&(a.hasNodeCheckFlag(i,256)||a.hasNodeCheckFlag(i,128));if(m){1&y||(y|=1,e.enableSubstitution(214),e.enableSubstitution(212),e.enableSubstitution(213),e.enableEmitNotification(264),e.enableEmitNotification(175),e.enableEmitNotification(178),e.enableEmitNotification(179),e.enableEmitNotification(177),e.enableEmitNotification(244));const t=pV(n,a,i,h);T[cB(t)]=!0,Fp(u,[t])}u.push(f);const g=n.updateBlock(i.body,u);return m&&_&&(a.hasNodeCheckFlag(i,256)?KR(g,jI):a.hasNodeCheckFlag(i,128)&&KR(g,VI)),h=c,_=d,g}function X(e){r();let t=0;const i=[],a=vB(e.body,x,nu)??n.createBlock([]);JC(a)&&(t=n.copyPrologue(a.statements,i,!1,x)),ae(i,Y(void 0,e));const s=o();if(t>0||U(i)||U(s)){const e=n.converters.convertToFunctionBlock(a,!0);return Fp(i,s),ae(i,e.statements.slice(t)),n.updateBlock(e,DL(n.createNodeArray(i),e.statements))}return a}function Y(t,r){let o=!1;for(const i of r.parameters)if(o){if(xd(i.name)){if(i.name.elements.length>0){const r=WG(i,x,e,0,n.getGeneratedNameForNode(i));if(U(r)){const e=n.createVariableDeclarationList(r),o=n.createVariableStatement(void 0,e);xR(o,2097152),t=re(t,o)}}else if(i.initializer){const e=n.getGeneratedNameForNode(i),r=vB(i.initializer,x,qd),o=n.createAssignment(e,r),a=n.createExpressionStatement(o);xR(a,2097152),t=re(t,a)}}else if(i.initializer){const e=n.cloneNode(i.name);DL(e,i.name),xR(e,96);const r=vB(i.initializer,x,qd);RR(r,3168);const o=n.createAssignment(e,r);DL(o,i),xR(o,3072);const a=n.createBlock([n.createExpressionStatement(o)]);DL(a,i),xR(a,3905);const s=n.createTypeCheck(n.cloneNode(i.name),"undefined"),l=n.createIfStatement(s,a);LP(l),DL(l,i),xR(l,2101056),t=re(t,l)}}else if(65536&i.transformFlags){o=!0;const r=WG(i,x,e,1,n.getGeneratedNameForNode(i),!1,!0);if(U(r)){const e=n.createVariableDeclarationList(r),o=n.createVariableStatement(void 0,e);xR(o,2097152),t=re(t,o)}}return t}function $(e){return 108===e.expression.kind?DL(n.createPropertyAccessExpression(n.createUniqueName("_super",48),e.name),e):e}function Q(e){return 108===e.expression.kind?(t=e.argumentExpression,r=e,DL(256&v?n.createPropertyAccessExpression(n.createCallExpression(n.createIdentifier("_superIndex"),void 0,[t]),"value"):n.createCallExpression(n.createIdentifier("_superIndex"),void 0,[t]),r)):e;var t,r}}function mV(e){const n=e.factory;return tG(e,function(n){if(n.isDeclarationFile)return n;return CB(n,t,e)});function t(r){return 64&r.transformFlags?300===r.kind?function(r){if(!r.variableDeclaration)return n.updateCatchClause(r,n.createVariableDeclaration(n.createTempVariable(void 0)),vB(r.block,t,JC));return CB(r,t,e)}(r):CB(r,t,e):r}}function hV(e){const{factory:n,hoistVariableDeclaration:t}=e;return tG(e,function(n){if(n.isDeclarationFile)return n;return CB(n,r,e)});function r(o){if(!(32&o.transformFlags))return o;switch(o.kind){case 214:{const e=i(o,!1);return dt.assertNotNode(e,jN),e}case 212:case 213:if(bc(o)){const e=s(o,!1,!1);return dt.assertNotNode(e,jN),e}return CB(o,r,e);case 227:return 61===o.operatorToken.kind?function(e){let o=vB(e.left,r,qd),i=o;uG(o)||(i=n.createTempVariable(t),o=n.createAssignment(i,o));return DL(n.createConditionalExpression(l(o,i),void 0,i,void 0,vB(e.right,r,qd)),e)}(o):CB(o,r,e);case 221:return function(e){return bc(cg(e.expression))?TR(a(e.expression,!1,!0),e):n.updateDeleteExpression(e,vB(e.expression,r,qd))}(o);default:return CB(o,r,e)}}function o(e,t,r){const o=a(e.expression,t,r);return jN(o)?n.createSyntheticReferenceExpression(n.updateParenthesizedExpression(e,o.expression),o.thisArg):n.updateParenthesizedExpression(e,o)}function i(t,i){if(bc(t))return s(t,i,!1);if(SC(t.expression)&&bc(cg(t.expression))){const e=o(t.expression,!0,!1),i=bB(t.arguments,r,qd);return jN(e)?DL(n.createFunctionCallCall(e.expression,e.thisArg,i),t):n.updateCallExpression(t,e,void 0,i)}return CB(t,r,e)}function a(e,a,l){switch(e.kind){case 218:return o(e,a,l);case 212:case 213:return function(e,o,i){if(bc(e))return s(e,o,i);let a,l=vB(e.expression,r,qd);return dt.assertNotNode(l,jN),o&&(uG(l)?a=l:(a=n.createTempVariable(t),l=n.createAssignment(a,l))),l=212===e.kind?n.updatePropertyAccessExpression(e,l,vB(e.name,r,dD)):n.updateElementAccessExpression(e,l,vB(e.argumentExpression,r,qd)),a?n.createSyntheticReferenceExpression(l,a):l}(e,a,l);case 214:return i(e,a);default:return vB(e,r,qd)}}function s(e,o,i){const{expression:s,chain:c}=function(e){dt.assertNotNode(e,Ic);const n=[e];for(;!e.questionDotToken&&!bC(e);)e=nn(Rc(e.expression),bc),dt.assertNotNode(e,Ic),n.unshift(e);return{expression:e.expression,chain:n}}(e),d=a(Rc(s),vc(c[0]),!1);let u=jN(d)?d.thisArg:void 0,p=jN(d)?d.expression:d,f=n.restoreOuterExpressions(s,p,8);uG(p)||(p=n.createTempVariable(t),f=n.createAssignment(p,f));let m,h=p;for(let a=0;a<c.length;a++){const e=c[a];switch(e.kind){case 212:case 213:a===c.length-1&&o&&(uG(h)?m=h:(m=n.createTempVariable(t),h=n.createAssignment(m,h))),h=212===e.kind?n.createPropertyAccessExpression(h,vB(e.name,r,dD)):n.createElementAccessExpression(h,vB(e.argumentExpression,r,qd));break;case 214:0===a&&u?(Jc(u)||(u=n.cloneNode(u),RR(u,3072)),h=n.createFunctionCallCall(h,108===u.kind?n.createThis():u,bB(e.arguments,r,qd))):h=n.createCallExpression(h,void 0,bB(e.arguments,r,qd))}TR(h,e)}const _=i?n.createConditionalExpression(l(f,p,!0),void 0,n.createTrue(),void 0,n.createDeleteExpression(h)):n.createConditionalExpression(l(f,p,!0),void 0,n.createVoidZero(),void 0,h);return DL(_,e),m?n.createSyntheticReferenceExpression(_,m):_}function l(e,t,r){return n.createBinaryExpression(n.createBinaryExpression(e,n.createToken(r?37:38),n.createNull()),n.createToken(r?57:56),n.createBinaryExpression(t,n.createToken(r?37:38),n.createVoidZero()))}}function _V(e){const{hoistVariableDeclaration:n,factory:t}=e;return tG(e,function(n){if(n.isDeclarationFile)return n;return CB(n,r,e)});function r(o){return 16&o.transformFlags?nb(o)?function(e){const o=mG(e.operatorToken.kind);let i=cg(vB(e.left,r,Gd)),a=i;const s=cg(vB(e.right,r,qd));if(IT(i)){const e=uG(i.expression),r=e?i.expression:t.createTempVariable(n),o=e?i.expression:t.createAssignment(r,i.expression);if(_C(i))a=t.createPropertyAccessExpression(r,i.name),i=t.createPropertyAccessExpression(o,i.name);else{const e=uG(i.argumentExpression),s=e?i.argumentExpression:t.createTempVariable(n);a=t.createElementAccessExpression(r,s),i=t.createElementAccessExpression(o,e?i.argumentExpression:t.createAssignment(s,i.argumentExpression))}}return t.createBinaryExpression(i,o,t.createParenthesizedExpression(t.createAssignment(a,s)))}(o):CB(o,r,e):o}}function gV(e){const{factory:n,getEmitHelperFactory:t,hoistVariableDeclaration:r,startLexicalEnvironment:o,endLexicalEnvironment:i}=e;let a,s,l,c;return tG(e,function(n){if(n.isDeclarationFile)return n;const t=vB(n,d,uM);return qR(t,e.readEmitHelpers()),s=void 0,a=void 0,l=void 0,t});function d(t){if(!(4&t.transformFlags))return t;switch(t.kind){case 308:return function(t){const r=SV(t.statements);if(r){o(),a=new cG,s=[];const e=yV(t.statements),l=[];ae(l,TB(t.statements,d,_u,0,e));let p=e;for(;p<t.statements.length;){if(0!==TV(t.statements[p])){p>e&&ae(l,bB(t.statements,d,_u,e,p-e));break}p++}dt.assert(p<t.statements.length,"Should have encountered at least one 'using' statement.");const f=h(),m=u(t.statements,p,t.statements.length,f,l);return a.size&&re(l,n.createExportDeclaration(void 0,!1,n.createNamedExports(Le(a.values())))),ae(l,i()),s.length&&l.push(n.createVariableStatement(n.createModifiersFromModifierFlags(32),n.createVariableDeclarationList(s,1))),ae(l,_(m,f,2===r)),c&&l.push(n.createExportAssignment(void 0,!0,c)),n.updateSourceFile(t,l)}return CB(t,d,e)}(t);case 242:return function(t){const r=SV(t.statements);if(r){const e=yV(t.statements),o=h();return n.updateBlock(t,[...TB(t.statements,d,_u,0,e),..._(u(t.statements,e,t.statements.length,o,void 0),o,2===r)])}return CB(t,d,e)}(t);case 249:return function(t){if(t.initializer&&vV(t.initializer))return vB(n.createBlock([n.createVariableStatement(void 0,t.initializer),n.updateForStatement(t,void 0,t.condition,t.incrementor,t.statement)]),d,_u);return CB(t,d,e)}(t);case 251:return function(t){if(vV(t.initializer)){const e=t.initializer,r=fe(e.declarations)||n.createVariableDeclaration(n.createTempVariable(void 0)),o=2===bV(e),i=n.getGeneratedNameForNode(r.name),a=n.updateVariableDeclaration(r,r.name,void 0,void 0,i),s=n.createVariableDeclarationList([a],o?6:4),l=n.createVariableStatement(void 0,s);return vB(n.updateForOfStatement(t,t.awaitModifier,n.createVariableDeclarationList([n.createVariableDeclaration(i)],2),t.expression,JC(t.statement)?n.updateBlock(t.statement,[l,...t.statement.statements]):n.createBlock([l,t.statement],!0)),d,_u)}return CB(t,d,e)}(t);case 256:return function(t){const r=function(e){let n=0;for(const t of e){const e=SV(t.statements);if(2===e)return 2;e>n&&(n=e)}return n}(t.caseBlock.clauses);if(r){const o=h();return _([n.updateSwitchStatement(t,vB(t.expression,d,qd),n.updateCaseBlock(t.caseBlock,t.caseBlock.clauses.map(t=>function(t,r){if(0!==SV(t.statements))return rM(t)?n.updateCaseClause(t,vB(t.expression,d,qd),u(t.statements,0,t.statements.length,r,void 0)):n.updateDefaultClause(t,u(t.statements,0,t.statements.length,r,void 0));return CB(t,d,e)}(t,o))))],o,2===r)}return CB(t,d,e)}(t);default:return CB(t,d,e)}}function u(o,i,a,s,u){const h=[];for(let r=i;r<a;r++){const i=o[r],a=TV(i);if(a){dt.assertNode(i,XC);const r=[];for(let o of i.declarationList.declarations){if(!dD(o.name)){r.length=0;break}Qg(o)&&(o=eV(e,o));const i=vB(o.initializer,d,qd)??n.createVoidZero();r.push(n.updateVariableDeclaration(o,o.name,void 0,void 0,t().createAddDisposableResourceHelper(s,i,2===a)))}if(r.length){const e=n.createVariableDeclarationList(r,2);TR(e,i.declarationList),DL(e,i.declarationList),_(n.updateVariableStatement(i,void 0,e));continue}}const l=d(i);Ye(l)?l.forEach(_):l&&_(l)}return h;function _(t){dt.assertNode(t,_u),re(h,function(t){if(!u)return t;switch(t.kind){case 273:case 272:case 279:case 263:return function(e,n){return void n.push(e)}(t,u);case 278:return function(t){return t.isExportEquals?function(e){if(c)return e;c=n.createUniqueName("_default",56),r(c);const t=n.createAssignment(c,e.expression);return n.createExpressionStatement(t)}(t):function(t){if(l)return t;l=n.createUniqueName("_default",56),m(l,!0,"default",t);let r=t.expression,o=MP(r);Qg(o)&&(o=eV(e,o,!1,"default"),r=n.restoreOuterExpressions(r,o));const i=n.createAssignment(l,r);return n.createExpressionStatement(i)}(t)}(t);case 264:return function(t){if(!t.name&&l)return t;const r=Mv(t,32),o=Mv(t,2048);let i=n.converters.convertToClassExpression(t);t.name&&(m(n.getLocalName(t),r&&!o,void 0,t),i=n.createAssignment(n.getDeclarationName(t),i),Qg(i)&&(i=eV(e,i,!1)),TR(i,t),NR(i,t),OR(i,t));o&&!l&&(l=n.createUniqueName("_default",56),m(l,!0,"default",t),i=n.createAssignment(l,i),Qg(i)&&(i=eV(e,i,!1,"default")),TR(i,t));return n.createExpressionStatement(i)}(t);case 244:return function(e){let t;const r=Mv(e,32);for(const n of e.declarationList.declarations)f(n,r,n),n.initializer&&(t=re(t,p(n)));if(t){const r=n.createExpressionStatement(n.inlineExpressions(t));return TR(r,e),OR(r,e),NR(r,e),r}return}(t)}return t}(t))}}function p(e){let t;dt.assertIsDefined(e.initializer),dD(e.name)?(t=n.cloneNode(e.name),xR(t,-114689&tf(t))):t=n.converters.convertToAssignmentPattern(e.name);const r=n.createAssignment(t,e.initializer);return TR(r,e),OR(r,e),NR(r,e),r}function f(e,n,t){if(xd(e.name))for(const r of e.name.elements)FC(r)||f(r,n,t);else m(e.name,n,void 0,t)}function m(e,t,o,i){const l=Jc(e)?e:n.cloneNode(e);if(t){if(void 0===o&&!TP(l)){const e=n.createVariableDeclaration(l);return i&&TR(e,i),void s.push(e)}const e=void 0!==o?l:void 0,t=void 0!==o?o:l,r=n.createExportSpecifier(!1,e,t);i&&TR(r,i),a.set(l,r)}r(l)}function h(){return n.createUniqueName("env")}function _(e,r,o){const i=[],a=n.createObjectLiteralExpression([n.createPropertyAssignment("stack",n.createArrayLiteralExpression()),n.createPropertyAssignment("error",n.createVoidZero()),n.createPropertyAssignment("hasError",n.createFalse())]),s=n.createVariableDeclaration(r,void 0,void 0,a),l=n.createVariableDeclarationList([s],2),c=n.createVariableStatement(void 0,l);i.push(c);const d=n.createBlock(e,!0),u=n.createUniqueName("e"),p=n.createCatchClause(u,n.createBlock([n.createExpressionStatement(n.createAssignment(n.createPropertyAccessExpression(r,"error"),u)),n.createExpressionStatement(n.createAssignment(n.createPropertyAccessExpression(r,"hasError"),n.createTrue()))],!0));let f;if(o){const e=n.createUniqueName("result");f=n.createBlock([n.createVariableStatement(void 0,n.createVariableDeclarationList([n.createVariableDeclaration(e,void 0,void 0,t().createDisposeResourcesHelper(r))],2)),n.createIfStatement(e,n.createExpressionStatement(n.createAwaitExpression(e)))],!0)}else f=n.createBlock([n.createExpressionStatement(t().createDisposeResourcesHelper(r))],!0);const m=n.createTryStatement(d,p,f);return i.push(m),i}}function yV(e){for(let n=0;n<e.length;n++)if(!_m(e[n])&&!gm(e[n]))return n;return 0}function vV(e){return mN(e)&&0!==bV(e)}function bV(e){return 6==(7&e.flags)?2:4==(7&e.flags)?1:0}function TV(e){return XC(e)?bV(e.declarationList):0}function SV(e){let n=0;for(const t of e){const e=TV(t);if(2===e)return 2;e>n&&(n=e)}return n}function EV(e){const{factory:n,getEmitHelperFactory:t}=e,r=e.getCompilerOptions();let o,i;return tG(e,function(t){if(t.isDeclarationFile)return t;o=t,i={},i.importSpecifier=QS(r,t);let a=CB(t,u,e);qR(a,e.readEmitHelpers());let s=a.statements;i.filenameDeclaration&&(s=Bp(s.slice(),n.createVariableStatement(void 0,n.createVariableDeclarationList([i.filenameDeclaration],2))));if(i.utilizedImplicitRuntimeImports)for(const[e,r]of Le(i.utilizedImplicitRuntimeImports.entries()))if(dk(t)){const t=n.createImportDeclaration(void 0,n.createImportClause(void 0,void 0,n.createNamedImports(Le(r.values()))),n.createStringLiteral(e),void 0);LA(t,!1),s=Bp(s.slice(),t)}else if(rm(t)){const t=n.createVariableStatement(void 0,n.createVariableDeclarationList([n.createVariableDeclaration(n.createObjectBindingPattern(Le(r.values(),e=>n.createBindingElement(void 0,e.propertyName,e.name))),void 0,void 0,n.createCallExpression(n.createIdentifier("require"),void 0,[n.createStringLiteral(e)]))],2));LA(t,!1),s=Bp(s.slice(),t)}s!==a.statements&&(a=n.updateSourceFile(a,s));return i=void 0,a});function a(){if(i.filenameDeclaration)return i.filenameDeclaration.name;const e=n.createVariableDeclaration(n.createUniqueName("_jsxFileName",48),void 0,void 0,n.createStringLiteral(o.fileName));return i.filenameDeclaration=e,i.filenameDeclaration.name}function l(e){const n=function(e){return 5===r.jsx?"jsxDEV":e?"jsxs":"jsx"}(e);return d(n)}function d(e){var t,o;const a="createElement"===e?i.importSpecifier:ZS(i.importSpecifier,r),s=null==(o=null==(t=i.utilizedImplicitRuntimeImports)?void 0:t.get(a))?void 0:o.get(e);if(s)return s.name;i.utilizedImplicitRuntimeImports||(i.utilizedImplicitRuntimeImports=new Map);let l=i.utilizedImplicitRuntimeImports.get(a);l||(l=new Map,i.utilizedImplicitRuntimeImports.set(a,l));const c=n.createUniqueName(`_${e}`,112),d=n.createImportSpecifier(!1,n.createIdentifier(e),c);return aI(c,d),l.set(e,d),c}function u(n){return 2&n.transformFlags?function(n){switch(n.kind){case 285:return h(n,!1);case 286:return _(n,!1);case 289:return g(n,!1);case 295:return w(n);default:return CB(n,u,e)}}(n):n}function p(e){switch(e.kind){case 12:return function(e){const t=function(e){let n,t=0,r=-1;for(let o=0;o<e.length;o++){const i=e.charCodeAt(o);qa(i)?(-1!==t&&-1!==r&&(n=P(n,e.substr(t,r-t+1))),t=-1):Ka(i)||(r=o,-1===t&&(t=o))}return-1!==t?P(n,e.substr(t)):n}(e.text);return void 0===t?void 0:n.createStringLiteral(t)}(e);case 295:return w(e);case 285:return h(e,!0);case 286:return _(e,!0);case 289:return g(e,!0);default:return dt.failBadSyntaxKind(e)}}function f(e){return e.properties.some(e=>sM(e)&&(dD(e.name)&&"__proto__"===vl(e.name)||qI(e.name)&&"__proto__"===e.name.text))}function m(e){return void 0===i.importSpecifier||function(e){let n=!1;for(const t of e.attributes.properties)if(!eM(t)||hC(t.expression)&&!t.expression.properties.some(cM)){if(n&&QN(t)&&dD(t.name)&&"key"===t.name.escapedText)return!0}else n=!0;return!1}(e)}function h(e,n){return(m(e.openingElement)?S:b)(e.openingElement,e.children,n,e)}function _(e,n){return(m(e)?S:b)(e,void 0,n,e)}function g(e,n){return(void 0===i.importSpecifier?A:E)(e.openingFragment,e.children,n,e)}function v(e){const t=py(e);if(1===c(t)&&!t[0].dotDotDotToken){const e=p(t[0]);return e&&n.createPropertyAssignment("children",e)}const r=F(e,p);return c(r)?n.createPropertyAssignment("children",n.createArrayLiteralExpression(r)):void 0}function b(e,t,r,o){const i=k(e),a=t&&t.length?v(t):void 0,l=y(e.attributes.properties,e=>!!e.name&&dD(e.name)&&"key"===e.name.escapedText),d=l?x(e.attributes.properties,e=>e!==l):e.attributes.properties;return T(i,c(d)?R(d,a):n.createObjectLiteralExpression(a?[a]:s),l,t||s,r,o)}function T(e,t,i,s,d,u){var p;const f=py(s),m=c(f)>1||!!(null==(p=f[0])?void 0:p.dotDotDotToken),h=[e,t];if(i&&h.push(C(i.initializer)),5===r.jsx){const e=fl(o);if(e&&uM(e)){void 0===i&&h.push(n.createVoidZero()),h.push(m?n.createTrue():n.createFalse());const t=Ua(e,u.pos);h.push(n.createObjectLiteralExpression([n.createPropertyAssignment("fileName",a()),n.createPropertyAssignment("lineNumber",n.createNumericLiteral(t.line+1)),n.createPropertyAssignment("columnNumber",n.createNumericLiteral(t.character+1))])),h.push(n.createThis())}}const _=DL(n.createCallExpression(l(m),void 0,h),u);return d&&LP(_),_}function S(t,a,s,l){const u=k(t),f=t.attributes.properties,m=c(f)?R(f):n.createNull(),h=void 0===i.importSpecifier?pP(n,e.getEmitResolver().getJsxFactoryEntity(o),r.reactNamespace,t):d("createElement"),_=fP(n,h,u,m,F(a,p),l);return s&&LP(_),_}function E(e,t,r,o){let i;if(t&&t.length){const e=function(e){const t=v(e);return t&&n.createObjectLiteralExpression([t])}(t);e&&(i=e)}return T(d("Fragment"),i||n.createObjectLiteralExpression([]),void 0,t,r,o)}function A(t,i,a,s){const l=mP(n,e.getEmitResolver().getJsxFactoryEntity(o),e.getEmitResolver().getJsxFragmentFactoryEntity(o),r.reactNamespace,F(i,p),t,s);return a&&LP(l),l}function R(e,o){const i=SS(r);return i&&i>=5?n.createObjectLiteralExpression(function(e,t){const r=M(V(e,eM,(e,t)=>M(D(e,e=>{return t?hC((r=e).expression)&&!f(r.expression)?N(r.expression.properties,e=>dt.checkDefined(vB(e,u,Sd))):n.createSpreadAssignment(dt.checkDefined(vB(r.expression,u,qd))):I(e);var r}))));t&&r.push(t);return r}(e,o)):function(e,r){const o=[];let i=[];for(const n of e)if(eM(n)){if(hC(n.expression)&&!f(n.expression)){for(const e of n.expression.properties)cM(e)?(a(),o.push(dt.checkDefined(vB(e.expression,u,qd)))):i.push(dt.checkDefined(vB(e,u)));continue}a(),o.push(dt.checkDefined(vB(n.expression,u,qd)))}else i.push(I(n));r&&i.push(r);a(),o.length&&!hC(o[0])&&o.unshift(n.createObjectLiteralExpression());return ve(o)||t().createAssignHelper(o);function a(){i.length&&(o.push(n.createObjectLiteralExpression(i)),i=[])}}(e,o)}function I(e){const t=function(e){const t=e.name;if(dD(t)){const e=vl(t);return/^[A-Z_]\w*$/i.test(e)?t:n.createStringLiteral(e)}return n.createStringLiteral(vl(t.namespace)+":"+vl(t.name))}(e),r=C(e.initializer);return n.createPropertyAssignment(t,r)}function C(e){if(void 0===e)return n.createTrue();if(11===e.kind){const t=void 0!==e.singleQuote?e.singleQuote:!Hh(e,o);return DL(n.createStringLiteral(function(e){const n=L(e);return n===e?void 0:n}(e.text)||e.text,t),e)}return 295===e.kind?void 0===e.expression?n.createTrue():dt.checkDefined(vB(e.expression,u,qd)):HN(e)?h(e,!1):KN(e)?_(e,!1):XN(e)?g(e,!1):dt.failBadSyntaxKind(e)}function P(e,n){const t=L(n);return void 0===e?t:e+" "+t}function L(e){return e.replace(/&((#((\d+)|x([\da-fA-F]+)))|(\w+));/g,(e,n,t,r,o,i,a)=>{if(o)return Es(parseInt(o,10));if(i)return Es(parseInt(i,16));{const n=AV.get(a);return n?Es(n):e}})}function k(e){if(285===e.kind)return k(e.openingElement);{const t=e.tagName;return dD(t)&&Ly(t.escapedText)?n.createStringLiteral(vl(t)):tM(t)?n.createStringLiteral(vl(t.namespace)+":"+vl(t.name)):_P(n,t)}}function w(e){const t=vB(e.expression,u,qd);return e.dotDotDotToken?n.createSpreadElement(t):t}}var AV=new Map(Object.entries({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}));function xV(e){const{factory:n,hoistVariableDeclaration:t}=e;return tG(e,function(n){if(n.isDeclarationFile)return n;return CB(n,r,e)});function r(o){return 512&o.transformFlags?227===o.kind?function(o){switch(o.operatorToken.kind){case 68:return function(e){let o,i;const a=vB(e.left,r,qd),s=vB(e.right,r,qd);if(gC(a)){const e=n.createTempVariable(t),r=n.createTempVariable(t);o=DL(n.createElementAccessExpression(DL(n.createAssignment(e,a.expression),a.expression),DL(n.createAssignment(r,a.argumentExpression),a.argumentExpression)),a),i=DL(n.createElementAccessExpression(e,r),a)}else if(_C(a)){const e=n.createTempVariable(t);o=DL(n.createPropertyAccessExpression(DL(n.createAssignment(e,a.expression),a.expression),a.name),a),i=DL(n.createPropertyAccessExpression(e,a.name),a)}else o=a,i=a;return DL(n.createAssignment(o,DL(n.createGlobalMethodCall("Math","pow",[i,s]),e)),e)}(o);case 43:return function(e){const t=vB(e.left,r,qd),o=vB(e.right,r,qd);return DL(n.createGlobalMethodCall("Math","pow",[t,o]),e)}(o);default:return CB(o,r,e)}}(o):CB(o,r,e):o}}function RV(e,n){return{kind:e,expression:n}}function IV(e){const{factory:n,getEmitHelperFactory:t,startLexicalEnvironment:r,resumeLexicalEnvironment:o,endLexicalEnvironment:i,hoistVariableDeclaration:a}=e,s=e.getCompilerOptions(),l=e.getEmitResolver(),c=e.onSubstituteNode,d=e.onEmitNode;let u,p,f,m,h;function _(e){m=re(m,n.createVariableDeclaration(e))}e.onEmitNode=function(e,n,t){if(1&y&&ad(n)){const r=v(32670,16&tf(n)?81:65);return d(e,n,t),void b(r,0,0)}d(e,n,t)},e.onSubstituteNode=function(e,t){if(t=c(e,t),1===e)return function(e){switch(e.kind){case 80:return function(e){if(2&y&&!bP(e)){const t=l.getReferencedDeclarationWithCollidingName(e);if(t&&(!md(t)||!function(e,n){let t=_l(n);if(!t||t===e||t.end<=e.pos||t.pos>=e.end)return!1;const r=kf(e);for(;t;){if(t===r||t===e)return!1;if(fd(t)&&t.parent===e)return!0;t=t.parent}return!1}(t,e)))return DL(n.getGeneratedNameForNode(Dl(t)),e)}return e}(e);case 110:return function(e){if(1&y&&16&f)return DL(P(),e);return e}(e)}return e}(t);if(dD(t))return function(e){if(2&y&&!bP(e)){const t=_l(e,dD);if(t&&function(e){switch(e.parent.kind){case 209:case 264:case 267:case 261:return e.parent.name===e&&l.isDeclarationWithCollidingName(e.parent)}return!1}(t))return DL(n.getGeneratedNameForNode(t),e)}return e}(t);return t};let y=0;return tG(e,function(t){if(t.isDeclarationFile)return t;u=t,p=t.text;const o=function(e){const t=v(8064,64),o=[],a=[];r();const s=n.copyPrologue(e.statements,o,!1,E);ae(a,bB(e.statements,E,_u,s)),m&&a.push(n.createVariableStatement(void 0,n.createVariableDeclarationList(m)));return n.mergeLexicalEnvironment(o,i()),le(o,e),b(t,0,0),n.updateSourceFile(e,DL(n.createNodeArray(K(o,a)),e.statements))}(t);return qR(o,e.readEmitHelpers()),u=void 0,p=void 0,m=void 0,f=0,o});function v(e,n){const t=f;return f=32767&(f&~e|n),t}function b(e,n,t){f=-32768&(f&~n|t)|e}function T(e){return!!(8192&f)&&254===e.kind&&!e.expression}function S(e){return!!(1024&e.transformFlags)||void 0!==h||8192&f&&function(e){return 4194304&e.transformFlags&&(aN(e)||QC(e)||sN(e)||lN(e)||SN(e)||rM(e)||oM(e)||uN(e)||aM(e)||cN(e)||Xd(e,!1)||JC(e))}(e)||Xd(e,!1)&&Ve(e)||!!(1&rf(e))}function E(e){return S(e)?C(e,!1):e}function A(e){return S(e)?C(e,!0):e}function R(e){if(S(e)){const n=fl(e);if(MD(n)&&Lv(n)){const n=v(32670,16449),t=C(e,!1);return b(n,229376,0),t}return C(e,!1)}return e}function I(e){return 108===e.kind?dn(e,!0):E(e)}function C(t,r){switch(t.kind){case 126:return;case 264:return function(e){const t=n.createVariableDeclaration(n.getLocalName(e,!0),void 0,void 0,k(e));TR(t,e);const r=[],o=n.createVariableStatement(void 0,n.createVariableDeclarationList([t]));if(TR(o,e),DL(o,e),LP(o),r.push(o),Mv(e,32)){const t=Mv(e,2048)?n.createExportDefault(n.getLocalName(e)):n.createExternalModuleExport(n.getLocalName(e));TR(t,o),r.push(t)}return Te(r)}(t);case 232:return function(e){return k(e)}(t);case 170:return function(e){return e.dotDotDotToken?void 0:xd(e.name)?TR(DL(n.createParameterDeclaration(void 0,void 0,n.getGeneratedNameForNode(e),void 0,void 0,void 0),e),e):e.initializer?TR(DL(n.createParameterDeclaration(void 0,void 0,e.name,void 0,void 0,void 0),e),e):e}(t);case 263:return function(t){const r=h;h=void 0;const o=v(32670,65),i=AB(t.parameters,E,e),a=Ee(t),s=32768&f?n.getLocalName(t):t.name;return b(o,229376,0),h=r,n.updateFunctionDeclaration(t,bB(t.modifiers,E,td),t.asteriskToken,s,void 0,i,void 0,a)}(t);case 220:return function(t){16384&t.transformFlags&&!(16384&f)&&(f|=131072);const r=h;h=void 0;const o=v(15232,66),i=n.createFunctionExpression(void 0,void 0,void 0,void 0,AB(t.parameters,E,e),void 0,Ee(t));return DL(i,t),TR(i,t),xR(i,16),b(o,0,0),h=r,i}(t);case 219:return function(t){const r=524288&tf(t)?v(32662,69):v(32670,65),o=h;h=void 0;const i=AB(t.parameters,E,e),a=Ee(t),s=32768&f?n.getLocalName(t):t.name;return b(r,229376,0),h=o,n.updateFunctionExpression(t,void 0,t.asteriskToken,s,void 0,i,void 0,a)}(t);case 261:return Re(t);case 80:return L(t);case 262:return function(t){if(7&t.flags||524288&t.transformFlags){7&t.flags&&un();const e=bB(t.declarations,1&t.flags?xe:Re,fN),r=n.createVariableDeclarationList(e);return TR(r,t),DL(r,t),OR(r,t),524288&t.transformFlags&&(xd(t.declarations[0].name)||xd(ye(t.declarations).name))&&NR(r,function(e){let n=-1,t=-1;for(const r of e)n=-1===n?r.pos:-1===r.pos?n:Math.min(n,r.pos),t=Math.max(t,r.end);return Ob(n,t)}(e)),r}return CB(t,E,e)}(t);case 256:return function(n){if(void 0!==h){const t=h.allowedNonLabeledJumps;h.allowedNonLabeledJumps|=2;const r=CB(n,E,e);return h.allowedNonLabeledJumps=t,r}return CB(n,E,e)}(t);case 270:return function(n){const t=v(7104,0),r=CB(n,E,e);return b(t,0,0),r}(t);case 242:return function(n){const t=256&f?v(7104,512):v(6976,128),r=CB(n,E,e);return b(t,0,0),r}(t);case 253:case 252:return function(t){if(h){const e=253===t.kind?2:4;if(!(t.label&&h.labels&&h.labels.get(vl(t.label))||!t.label&&h.allowedNonLabeledJumps&e)){let e;const r=t.label;r?253===t.kind?(e=`break-${r.escapedText}`,Xe(h,!0,vl(r),e)):(e=`continue-${r.escapedText}`,Xe(h,!1,vl(r),e)):253===t.kind?(h.nonLocalJumps|=2,e="break"):(h.nonLocalJumps|=4,e="continue");let o=n.createStringLiteral(e);if(h.loopOutParameters.length){const e=h.loopOutParameters;let t;for(let r=0;r<e.length;r++){const o=qe(e[r],1);t=0===r?o:n.createBinaryExpression(t,28,o)}o=n.createBinaryExpression(t,28,o)}return n.createReturnStatement(o)}}return CB(t,E,e)}(t);case 257:return function(e){h&&!h.labels&&(h.labels=new Map);const t=Gm(e,h&&Ie);return Xd(t,!1)?function(e,n){switch(e.kind){case 247:case 248:return Ne(e,n);case 249:return Me(e,n);case 250:return Pe(e,n);case 251:return Le(e,n)}}(t,e):n.restoreEnclosingLabel(vB(t,E,_u,n.liftToBlock)??DL(n.createEmptyStatement(),t),e,h&&De)}(t);case 247:case 248:return Ne(t,void 0);case 249:return Me(t,void 0);case 250:return Pe(t,void 0);case 251:return Le(t,void 0);case 245:case 223:return function(n){return CB(n,A,e)}(t);case 211:return function(t){const r=t.properties;let o=-1,i=!1;for(let e=0;e<r.length;e++){const n=r[e];if(1048576&n.transformFlags&&4&f||(i=168===dt.checkDefined(n.name).kind)){o=e;break}}if(o<0)return CB(t,E,e);const s=n.createTempVariable(a),l=[],c=n.createAssignment(s,xR(n.createObjectLiteralExpression(bB(r,E,Sd,0,o),t.multiLine),i?131072:0));t.multiLine&&LP(c);return l.push(c),function(e,n,t,r){const o=n.properties,i=o.length;for(let a=r;a<i;a++){const r=o[a];switch(r.kind){case 178:case 179:const o=_v(n.properties,r);r===o.firstAccessor&&e.push(be(t,o,n,!!n.multiLine));break;case 175:e.push(tn(r,t,n,n.multiLine));break;case 304:e.push(Qe(r,t,n.multiLine));break;case 305:e.push(Ze(r,t,n.multiLine));break;default:dt.failBadSyntaxKind(n)}}}(l,t,s,o),l.push(t.multiLine?LP(PA(DL(n.cloneNode(s),s),s.parent)):s),n.inlineExpressions(l)}(t);case 300:return function(t){const r=v(7104,0);let o;if(dt.assert(!!t.variableDeclaration,"Catch clause variable should always be present when downleveling ES2015."),xd(t.variableDeclaration.name)){const r=n.createTempVariable(void 0),i=n.createVariableDeclaration(r);DL(i,t.variableDeclaration);const a=WG(t.variableDeclaration,E,e,0,r),s=n.createVariableDeclarationList(a);DL(s,t.variableDeclaration);const l=n.createVariableStatement(void 0,s);o=n.updateCatchClause(t,i,function(e,t){const r=bB(e.statements,E,_u);return n.updateBlock(e,[t,...r])}(t.block,l))}else o=CB(t,E,e);return b(r,0,0),o}(t);case 305:return function(e){return DL(n.createPropertyAssignment(e.name,L(n.cloneNode(e.name))),e)}(t);case 168:case 230:return function(n){return CB(n,E,e)}(t);case 210:return function(n){if(U(n.elements,wC))return rn(n.elements,!1,!!n.multiLine,!!n.elements.hasTrailingComma);return CB(n,E,e)}(t);case 214:return function(t){if(1&rf(t))return function(e){const t=nn(nn(MP(e.expression),AC).body,JC),r=e=>XC(e)&&!!he(e.declarationList.declarations).initializer,o=h;h=void 0;const i=bB(t.statements,R,_u);h=o;const a=x(i,r),s=x(i,e=>!r(e)),l=nn(he(a),XC).declarationList.declarations[0],c=MP(l.initializer);let d=en(c,sb);!d&&MC(c)&&28===c.operatorToken.kind&&(d=en(c.left,sb));const u=nn(d?MP(d.right):c,yC),p=nn(MP(u.expression),EC),f=p.body.statements;let m=0,_=-1;const g=[];if(d){const e=en(f[m],$C);e&&(g.push(e),m++),g.push(f[m]),m++,g.push(n.createExpressionStatement(n.createAssignment(d.left,nn(l.name,dD))))}for(;!aN(pe(f,_));)_--;ae(g,f,m,_),_<-1&&ae(g,f,_+1);const y=en(pe(f,_),aN);for(const n of s)aN(n)&&(null==y?void 0:y.expression)&&!dD(y.expression)?g.push(y):g.push(n);return ae(g,a,1),n.restoreOuterExpressions(e.expression,n.restoreOuterExpressions(l.initializer,n.restoreOuterExpressions(d&&d.right,n.updateCallExpression(u,n.restoreOuterExpressions(u.expression,n.updateFunctionExpression(p,void 0,void 0,void 0,void 0,p.parameters,void 0,n.updateBlock(p.body,g))),void 0,u.arguments))))}(t);const r=MP(t.expression);if(108===r.kind||ch(r)||U(t.arguments,wC))return function(t){if(32768&t.transformFlags||108===t.expression.kind||ch(MP(t.expression))){const{target:e,thisArg:r}=n.createCallBinding(t.expression,a);let o;if(108===t.expression.kind&&xR(r,8),o=32768&t.transformFlags?n.createFunctionApplyCall(dt.checkDefined(vB(e,I,qd)),108===t.expression.kind?r:dt.checkDefined(vB(r,E,qd)),rn(t.arguments,!0,!1,!1)):DL(n.createFunctionCallCall(dt.checkDefined(vB(e,I,qd)),108===t.expression.kind?r:dt.checkDefined(vB(r,E,qd)),bB(t.arguments,E,qd)),t),108===t.expression.kind){const e=n.createLogicalOr(o,Z());o=n.createAssignment(P(),e)}return TR(o,t)}pm(t)&&(f|=131072);return CB(t,E,e)}(t);return n.updateCallExpression(t,dt.checkDefined(vB(t.expression,I,qd)),void 0,bB(t.arguments,E,qd))}(t);case 215:return function(t){if(U(t.arguments,wC)){const{target:e,thisArg:r}=n.createCallBinding(n.createPropertyAccessExpression(t.expression,"bind"),a);return n.createNewExpression(n.createFunctionApplyCall(dt.checkDefined(vB(e,E,qd)),r,rn(n.createNodeArray([n.createVoidZero(),...t.arguments]),!0,!1,!1)),void 0,[])}return CB(t,E,e)}(t);case 218:return function(n,t){return CB(n,t?A:E,e)}(t,r);case 227:return Ae(t,r);case 357:return function(t,r){if(r)return CB(t,A,e);let o;for(let e=0;e<t.elements.length;e++){const n=t.elements[e],r=vB(n,e<t.elements.length-1?A:E,qd);(o||r!==n)&&(o||(o=t.elements.slice(0,e)),dt.assert(r),o.push(r))}const i=o?DL(n.createNodeArray(o),t.elements):t.elements;return n.updateCommaListExpression(t,i)}(t,r);case 15:case 16:case 17:case 18:return function(e){return DL(n.createStringLiteral(e.text),e)}(t);case 11:return function(e){if(e.hasExtendedUnicodeEscape)return DL(n.createStringLiteral(e.text),e);return e}(t);case 9:return function(e){if(384&e.numericLiteralFlags)return DL(n.createNumericLiteral(e.text),e);return e}(t);case 216:return function(n){return tV(e,n,E,u,_,1)}(t);case 229:return function(e){let t=n.createStringLiteral(e.head.text);for(const r of e.templateSpans){const e=[dt.checkDefined(vB(r.expression,E,qd))];r.literal.text.length>0&&e.push(n.createStringLiteral(r.literal.text)),t=n.createCallExpression(n.createPropertyAccessExpression(t,"concat"),void 0,e)}return DL(t,e)}(t);case 231:return function(e){return vB(e.expression,E,qd)}(t);case 108:return dn(t,!1);case 110:return function(e){f|=65536,2&f&&!(16384&f)&&(f|=131072);if(h)return 2&f?(h.containsLexicalThis=!0,e):h.thisName||(h.thisName=n.createUniqueName("this"));return e}(t);case 237:return function(e){if(105===e.keywordToken&&"target"===e.name.escapedText)return f|=32768,n.createUniqueName("_newTarget",48);return e}(t);case 175:return function(e){dt.assert(!RD(e.name));const t=Se(e,Wb(e,-1),void 0,void 0);return xR(t,1024|tf(t)),DL(n.createPropertyAssignment(e.name,t),e)}(t);case 178:case 179:return function(t){dt.assert(!RD(t.name));const r=h;h=void 0;const o=v(32670,65);let i;const a=AB(t.parameters,E,e),s=Ee(t);i=178===t.kind?n.updateGetAccessorDeclaration(t,t.modifiers,t.name,a,t.type,s):n.updateSetAccessorDeclaration(t,t.modifiers,t.name,a,s);return b(o,229376,0),h=r,i}(t);case 244:return function(t){const r=v(0,Mv(t,32)?32:0);let o;if(!h||7&t.declarationList.flags||function(e){return 1===e.declarationList.declarations.length&&!!e.declarationList.declarations[0].initializer&&!!(1&rf(e.declarationList.declarations[0].initializer))}(t))o=CB(t,E,e);else{let r;for(const o of t.declarationList.declarations)if(Ue(h,o),o.initializer){let t;xd(o.name)?t=wG(o,E,e,0):(t=n.createBinaryExpression(o.name,64,dt.checkDefined(vB(o.initializer,E,qd))),DL(t,o)),r=re(r,t)}o=r?DL(n.createExpressionStatement(n.inlineExpressions(r)),t):void 0}return b(r,0,0),o}(t);case 254:return function(t){if(h)return h.nonLocalJumps|=8,T(t)&&(t=N(t)),n.createReturnStatement(n.createObjectLiteralExpression([n.createPropertyAssignment(n.createIdentifier("value"),t.expression?dt.checkDefined(vB(t.expression,E,qd)):n.createVoidZero())]));if(T(t))return N(t);return CB(t,E,e)}(t);default:return CB(t,E,e)}}function N(e){return TR(n.createReturnStatement(P()),e)}function P(){return n.createUniqueName("_this",48)}function L(e){return h&&l.isArgumentsLocalBinding(e)?h.argumentsName||(h.argumentsName=n.createUniqueName("arguments")):256&e.flags?TR(DL(n.createIdentifier(yl(e.escapedText)),e),e):e}function k(a){a.name&&un();const s=Sg(a),l=n.createFunctionExpression(void 0,void 0,void 0,void 0,s?[n.createParameterDeclaration(void 0,void 0,cn())]:[],void 0,function(a,s){const l=[],c=n.getInternalName(a),d=kg(c)?n.getGeneratedNameForNode(c):c;r(),function(e,r,o){o&&e.push(DL(n.createExpressionStatement(t().createExtendsHelper(n.getInternalName(r))),o))}(l,a,s),function(t,r,a,s){const l=h;h=void 0;const c=v(32662,73),d=sv(r),u=function(e,n){if(!e||!n)return!1;if(U(e.parameters))return!1;const t=fe(e.body.statements);if(!t||!ry(t)||245!==t.kind)return!1;const r=t.expression;if(!ry(r)||214!==r.kind)return!1;const o=r.expression;if(!ry(o)||108!==o.kind)return!1;const i=ve(r.arguments);if(!i||!ry(i)||231!==i.kind)return!1;const a=i.expression;return dD(a)&&"arguments"===a.escapedText}(d,void 0!==s),p=n.createFunctionDeclaration(void 0,void 0,a,void 0,function(n,t){return AB(n&&!t?n.parameters:void 0,E,e)||[]}(d,u),void 0,function(e,t,r,a){const s=!!r&&106!==MP(r.expression).kind;if(!e)return function(e,t){const r=[];o(),n.mergeLexicalEnvironment(r,i()),t&&r.push(n.createReturnStatement(n.createLogicalOr(n.createLogicalAnd(n.createStrictInequality(cn(),n.createNull()),n.createFunctionApplyCall(cn(),Z(),n.createIdentifier("arguments"))),Z())));const a=n.createNodeArray(r);DL(a,e.members);const s=n.createBlock(a,!0);return DL(s,e),xR(s,3072),s}(t,s);const l=[],c=[];o();const d=n.copyStandardPrologue(e.body.statements,l,0);(a||O(e.body))&&(f|=8192);ae(c,bB(e.body.statements,E,_u,d));const u=s||8192&f;te(l,e),se(l,e,a),de(l,e),u?ce(l,e,Z()):le(l,e);n.mergeLexicalEnvironment(l,i()),u&&!Q(e.body)&&c.push(n.createReturnStatement(P()));const p=n.createBlock(DL(n.createNodeArray([...l,...c]),e.body.statements),!0);return DL(p,e.body),function(e,t,r){const o=e;e=function(e){for(let t=0;t<e.statements.length-1;t++){const r=e.statements[t];if(!z(r))continue;const o=r.declarationList.declarations[0];if(110!==o.initializer.kind)continue;const i=t;let a=t+1;for(;a<e.statements.length;){const n=e.statements[a];if($C(n)&&X(MP(n.expression)))break;if(!w(n))return e;a++}const s=e.statements[a];let l=s.expression;B(l)&&(l=l.right);const c=n.updateVariableDeclaration(o,o.name,void 0,void 0,l),d=n.updateVariableDeclarationList(r.declarationList,[c]),u=n.createVariableStatement(r.modifiers,d);TR(u,s),DL(u,s);const p=n.createNodeArray([...e.statements.slice(0,i),...e.statements.slice(i+1,a),u,...e.statements.slice(a+1)]);return DL(p,e.statements),n.updateBlock(e,p)}return e}(e),e=function(e,t){for(const n of t.statements)if(134217728&n.transformFlags&&!hG(n))return e;const r=!(16384&t.transformFlags||65536&f||131072&f);for(let o=e.statements.length-1;o>0;o--){const t=e.statements[o];if(aN(t)&&t.expression&&F(t.expression)){const t=e.statements[o-1];let i;if($C(t)&&J(MP(t.expression)))i=t.expression;else if(r&&z(t)){const e=t.declarationList.declarations[0];X(MP(e.initializer))&&(i=n.createAssignment(P(),e.initializer))}if(!i)break;const a=n.createReturnStatement(i);TR(a,t),DL(a,t);const s=n.createNodeArray([...e.statements.slice(0,o-1),a,...e.statements.slice(o+1)]);return DL(s,e.statements),n.updateBlock(e,s)}}return e}(e,t),e!==o&&(e=function(e,t){if(16384&t.transformFlags||65536&f||131072&f)return e;for(const n of t.statements)if(134217728&n.transformFlags&&!hG(n))return e;return n.updateBlock(e,bB(e.statements,Y,_u))}(e,t));r&&(e=function(e){return n.updateBlock(e,bB(e.statements,$,_u))}(e));return e}(p,e.body,a)}(d,r,s,u));DL(p,d||r),s&&xR(p,16);t.push(p),b(c,229376,0),h=l}(l,a,d,s),function(e,n){for(const t of n.members)switch(t.kind){case 241:e.push(ue(t));break;case 175:e.push(me(pn(n,t),t,n));break;case 178:case 179:const r=_v(n.members,t);t===r.firstAccessor&&e.push(_e(pn(n,t),r,n));break;case 177:case 176:break;default:dt.failBadSyntaxKind(t,u&&u.fileName)}}(l,a);const m=Gb(es(p,a.members.end),20),_=n.createPartiallyEmittedExpression(d);DA(_,m.end),xR(_,3072);const g=n.createReturnStatement(_);IA(g,m.pos),xR(g,3840),l.push(g),Fp(l,i());const y=n.createBlock(DL(n.createNodeArray(l),a.members),!0);return xR(y,3072),y}(a,s));xR(l,131072&tf(a)|1048576);const c=n.createPartiallyEmittedExpression(l);DA(c,a.end),xR(c,3072);const d=n.createPartiallyEmittedExpression(c);DA(d,es(p,a.pos)),xR(d,3072);const m=n.createParenthesizedExpression(n.createCallExpression(d,void 0,s?[dt.checkDefined(vB(s.expression,E,qd))]:[]));return zR(m,3,"* @class "),m}function w(e){return XC(e)&&g(e.declarationList.declarations,e=>dD(e.name)&&!e.initializer)}function O(e){if(pm(e))return!0;if(!(134217728&e.transformFlags))return!1;switch(e.kind){case 220:case 219:case 263:case 177:case 176:return!1;case 178:case 179:case 175:case 173:{const n=e;return!!RD(n.name)&&!!rk(n.name,O)}}return!!rk(e,O)}function F(e){return Jc(e)&&"_this"===vl(e)}function W(e){return Jc(e)&&"_super"===vl(e)}function z(e){return XC(e)&&1===e.declarationList.declarations.length&&function(e){return fN(e)&&F(e.name)&&!!e.initializer}(e.declarationList.declarations[0])}function B(e){return sb(e,!0)&&F(e.left)}function G(e){return yC(e)&&_C(e.expression)&&W(e.expression.expression)&&dD(e.expression.name)&&("call"===vl(e.expression.name)||"apply"===vl(e.expression.name))&&e.arguments.length>=1&&110===e.arguments[0].kind}function j(e){return MC(e)&&57===e.operatorToken.kind&&110===e.right.kind&&G(e.left)}function H(e){return MC(e)&&56===e.operatorToken.kind&&MC(e.left)&&38===e.left.operatorToken.kind&&W(e.left.left)&&106===e.left.right.kind&&G(e.right)&&"apply"===vl(e.right.expression.name)}function q(e){return MC(e)&&57===e.operatorToken.kind&&110===e.right.kind&&H(e.left)}function J(e){return B(e)&&j(e.right)}function X(e){return G(e)||j(e)||J(e)||H(e)||q(e)||function(e){return B(e)&&q(e.right)}(e)}function Y(e){if(z(e)){if(110===e.declarationList.declarations[0].initializer.kind)return}else if(B(e))return n.createPartiallyEmittedExpression(e.right,e);switch(e.kind){case 220:case 219:case 263:case 177:case 176:return e;case 178:case 179:case 175:case 173:{const t=e;return RD(t.name)?n.replacePropertyName(t,CB(t.name,Y,void 0)):e}}return CB(e,Y,void 0)}function $(e){if(G(e)&&2===e.arguments.length&&dD(e.arguments[1])&&"arguments"===vl(e.arguments[1]))return n.createLogicalAnd(n.createStrictInequality(cn(),n.createNull()),e);switch(e.kind){case 220:case 219:case 263:case 177:case 176:return e;case 178:case 179:case 175:case 173:{const t=e;return RD(t.name)?n.replacePropertyName(t,CB(t.name,$,void 0)):e}}return CB(e,$,void 0)}function Q(e){if(254===e.kind)return!0;if(246===e.kind){const n=e;if(n.elseStatement)return Q(n.thenStatement)&&Q(n.elseStatement)}else if(242===e.kind){const n=ge(e.statements);if(n&&Q(n))return!0}return!1}function Z(){return xR(n.createThis(),8)}function ne(e){return void 0!==e.initializer||xd(e.name)}function te(e,n){if(!U(n.parameters,ne))return!1;let t=!1;for(const r of n.parameters){const{name:n,initializer:o,dotDotDotToken:i}=r;i||(xd(n)?t=oe(e,r,n,o)||t:o&&(ie(e,r,n,o),t=!0))}return t}function oe(t,r,o,i){return o.elements.length>0?(Bp(t,xR(n.createVariableStatement(void 0,n.createVariableDeclarationList(WG(r,E,e,0,n.getGeneratedNameForNode(r)))),2097152)),!0):!!i&&(Bp(t,xR(n.createExpressionStatement(n.createAssignment(n.getGeneratedNameForNode(r),dt.checkDefined(vB(i,E,qd)))),2097152)),!0)}function ie(e,t,r,o){o=dt.checkDefined(vB(o,E,qd));const i=n.createIfStatement(n.createTypeCheck(n.cloneNode(r),"undefined"),xR(DL(n.createBlock([n.createExpressionStatement(xR(DL(n.createAssignment(xR(PA(DL(n.cloneNode(r),r),r.parent),96),xR(o,3168|tf(o))),t),3072))]),t),3905));LP(i),DL(i,t),xR(i,2101056),Bp(e,i)}function se(t,r,o){const i=[],a=ge(r.parameters);if(!function(e,n){return!(!e||!e.dotDotDotToken||n)}(a,o))return!1;const s=80===a.name.kind?PA(DL(n.cloneNode(a.name),a.name),a.name.parent):n.createTempVariable(void 0);xR(s,96);const l=80===a.name.kind?n.cloneNode(a.name):s,c=r.parameters.length-1,d=n.createLoopVariable();i.push(xR(DL(n.createVariableStatement(void 0,n.createVariableDeclarationList([n.createVariableDeclaration(s,void 0,void 0,n.createArrayLiteralExpression([]))])),a),2097152));const u=n.createForStatement(DL(n.createVariableDeclarationList([n.createVariableDeclaration(d,void 0,void 0,n.createNumericLiteral(c))]),a),DL(n.createLessThan(d,n.createPropertyAccessExpression(n.createIdentifier("arguments"),"length")),a),DL(n.createPostfixIncrement(d),a),n.createBlock([LP(DL(n.createExpressionStatement(n.createAssignment(n.createElementAccessExpression(l,0===c?d:n.createSubtract(d,n.createNumericLiteral(c))),n.createElementAccessExpression(n.createIdentifier("arguments"),d))),a))]));return xR(u,2097152),LP(u),i.push(u),80!==a.name.kind&&i.push(xR(DL(n.createVariableStatement(void 0,n.createVariableDeclarationList(WG(a,E,e,0,l))),a),2097152)),Wp(t,i),!0}function le(e,t){return!!(131072&f&&220!==t.kind)&&(ce(e,t,n.createThis()),!0)}function ce(t,r,o){1&y||(y|=1,e.enableSubstitution(110),e.enableEmitNotification(177),e.enableEmitNotification(175),e.enableEmitNotification(178),e.enableEmitNotification(179),e.enableEmitNotification(220),e.enableEmitNotification(219),e.enableEmitNotification(263));const i=n.createVariableStatement(void 0,n.createVariableDeclarationList([n.createVariableDeclaration(P(),void 0,void 0,o)]));xR(i,2100224),NR(i,r),Bp(t,i)}function de(e,t){if(32768&f){let r;switch(t.kind){case 220:return e;case 175:case 178:case 179:r=n.createVoidZero();break;case 177:r=n.createPropertyAccessExpression(xR(n.createThis(),8),"constructor");break;case 263:case 219:r=n.createConditionalExpression(n.createLogicalAnd(xR(n.createThis(),8),n.createBinaryExpression(xR(n.createThis(),8),104,n.getLocalName(t))),void 0,n.createPropertyAccessExpression(xR(n.createThis(),8),"constructor"),void 0,n.createVoidZero());break;default:return dt.failBadSyntaxKind(t)}const o=n.createVariableStatement(void 0,n.createVariableDeclarationList([n.createVariableDeclaration(n.createUniqueName("_newTarget",48),void 0,void 0,r)]));xR(o,2100224),Bp(e,o)}return e}function ue(e){return DL(n.createEmptyStatement(),e)}function me(t,r,o){const i=wR(r),a=CR(r),s=Se(r,r,void 0,o),l=vB(r.name,E,od);let c;if(dt.assert(l),!uD(l)&&FS(e.getCompilerOptions())){const e=RD(l)?l.expression:dD(l)?n.createStringLiteral(yl(l.escapedText)):l;c=n.createObjectDefinePropertyCall(t,e,n.createPropertyDescriptor({value:s,enumerable:!1,writable:!0,configurable:!0}))}else{const e=cP(n,t,l,r.name);c=n.createAssignment(e,s)}xR(s,3072),NR(s,a);const d=DL(n.createExpressionStatement(c),r);return TR(d,r),OR(d,i),xR(d,96),d}function _e(e,t,r){const o=n.createExpressionStatement(be(e,t,r,!1));return xR(o,3072),NR(o,CR(t.firstAccessor)),o}function be(e,{firstAccessor:t,getAccessor:r,setAccessor:o},i,a){const s=PA(DL(n.cloneNode(e),e),e.parent);xR(s,3136),NR(s,t.name);const l=vB(t.name,E,od);if(dt.assert(l),uD(l))return dt.failBadSyntaxKind(l,"Encountered unhandled private identifier while transforming ES2015.");const c=gP(n,l);xR(c,3104),NR(c,t.name);const d=[];if(r){const e=Se(r,void 0,void 0,i);NR(e,CR(r)),xR(e,1024);const t=n.createPropertyAssignment("get",e);OR(t,wR(r)),d.push(t)}if(o){const e=Se(o,void 0,void 0,i);NR(e,CR(o)),xR(e,1024);const t=n.createPropertyAssignment("set",e);OR(t,wR(o)),d.push(t)}d.push(n.createPropertyAssignment("enumerable",r||o?n.createFalse():n.createTrue()),n.createPropertyAssignment("configurable",n.createTrue()));const u=n.createCallExpression(n.createPropertyAccessExpression(n.createIdentifier("Object"),"defineProperty"),void 0,[s,c,n.createObjectLiteralExpression(d,!0)]);return a&&LP(u),u}function Se(t,r,o,i){const a=h;h=void 0;const s=i&&md(i)&&!Pv(t)?v(32670,73):v(32670,65),l=AB(t.parameters,E,e),c=Ee(t);return 32768&f&&!o&&(263===t.kind||219===t.kind)&&(o=n.getGeneratedNameForNode(t)),b(s,229376,0),h=a,TR(DL(n.createFunctionExpression(void 0,t.asteriskToken,o,void 0,l,void 0,c),r),t)}function Ee(e){let t,r,a=!1,s=!1;const l=[],c=[],d=e.body;let p;if(o(),JC(d)&&(p=n.copyStandardPrologue(d.statements,l,0,!1),p=n.copyCustomPrologue(d.statements,c,p,E,ym),p=n.copyCustomPrologue(d.statements,c,p,E,bm)),a=te(c,e)||a,a=se(c,e,!1)||a,JC(d))p=n.copyCustomPrologue(d.statements,c,p,E),t=d.statements,ae(c,bB(d.statements,E,_u,p)),!a&&d.multiLine&&(a=!0);else{dt.assert(220===e.kind),t=Fb(d,-1);const o=e.equalsGreaterThanToken;ry(o)||ry(d)||(Kb(o,d,u)?s=!0:a=!0);const i=vB(d,E,qd),l=n.createReturnStatement(i);DL(l,d),jR(l,d),xR(l,2880),c.push(l),r=d}if(n.mergeLexicalEnvironment(l,i()),de(l,e),le(l,e),U(l)&&(a=!0),c.unshift(...l),JC(d)&&ee(c,d.statements))return d;const f=n.createBlock(DL(n.createNodeArray(c),t),a);return DL(f,e.body),!a&&s&&xR(f,1),r&&PR(f,20,r),TR(f,e.body),f}function Ae(t,r){return lb(t)?wG(t,E,e,0,!r):28===t.operatorToken.kind?n.updateBinaryExpression(t,dt.checkDefined(vB(t.left,A,qd)),t.operatorToken,dt.checkDefined(vB(t.right,r?A:E,qd))):CB(t,E,e)}function xe(t){return xd(t.name)?Re(t):!t.initializer&&function(e){const n=l.hasNodeCheckFlag(e,16384),t=l.hasNodeCheckFlag(e,32768);return!(64&f||n&&t&&512&f)&&!(4096&f)&&(!l.isDeclarationWithCollidingName(e)||t&&!n&&!(6144&f))}(t)?n.updateVariableDeclaration(t,t.name,void 0,void 0,n.createVoidZero()):CB(t,E,e)}function Re(n){const t=v(32,0);let r;return r=xd(n.name)?WG(n,E,e,0,void 0,!!(32&t)):CB(n,E,e),b(t,0,0),r}function Ie(e){h.labels.set(vl(e.label),!0)}function De(e){h.labels.set(vl(e.label),!1)}function Ce(t,o,a,s,l){const c=v(t,o),d=function(t,o,a,s){if(!Ve(t)){let r;h&&(r=h.allowedNonLabeledJumps,h.allowedNonLabeledJumps=6);const i=s?s(t,o,void 0,a):n.restoreEnclosingLabel(nN(t)?function(e){return n.updateForStatement(e,vB(e.initializer,A,ru),vB(e.condition,E,qd),vB(e.incrementor,A,qd),dt.checkDefined(vB(e.statement,E,_u,n.liftToBlock)))}(t):CB(t,E,e),o,h&&De);return h&&(h.allowedNonLabeledJumps=r),i}const l=function(e){let n;switch(e.kind){case 249:case 250:case 251:const t=e.initializer;t&&262===t.kind&&(n=t)}const t=[],r=[];if(n&&7&cl(n)){const o=ze(e)||Be(e)||Ge(e);for(const i of n.declarations)$e(e,i,t,r,o)}const o={loopParameters:t,loopOutParameters:r};h&&(h.argumentsName&&(o.argumentsName=h.argumentsName),h.thisName&&(o.thisName=h.thisName),h.hoistedLocalVariables&&(o.hoistedLocalVariables=h.hoistedLocalVariables));return o}(t),c=[],d=h;h=l;const u=ze(t)?function(e,t){const r=n.createUniqueName("_loop_init"),o=!!(1048576&e.initializer.transformFlags);let i=0;t.containsLexicalThis&&(i|=16);o&&4&f&&(i|=524288);const a=[];a.push(n.createVariableStatement(void 0,e.initializer)),Je(t.loopOutParameters,2,1,a);const s=n.createVariableStatement(void 0,xR(n.createVariableDeclarationList([n.createVariableDeclaration(r,void 0,void 0,xR(n.createFunctionExpression(void 0,o?n.createToken(42):void 0,void 0,void 0,void 0,void 0,dt.checkDefined(vB(n.createBlock(a,!0),E,JC))),i))]),4194304)),l=n.createVariableDeclarationList(D(t.loopOutParameters,Ke));return{functionName:r,containsYield:o,functionDeclaration:s,part:l}}(t,l):void 0,p=je(t)?function(e,t,o){const a=n.createUniqueName("_loop");r();const s=vB(e.statement,E,_u,n.liftToBlock),l=i(),c=[];(Be(e)||Ge(e))&&(t.conditionVariable=n.createUniqueName("inc"),e.incrementor?c.push(n.createIfStatement(t.conditionVariable,n.createExpressionStatement(dt.checkDefined(vB(e.incrementor,E,qd))),n.createExpressionStatement(n.createAssignment(t.conditionVariable,n.createTrue())))):c.push(n.createIfStatement(n.createLogicalNot(t.conditionVariable),n.createExpressionStatement(n.createAssignment(t.conditionVariable,n.createTrue())))),Be(e)&&c.push(n.createIfStatement(n.createPrefixUnaryExpression(54,dt.checkDefined(vB(e.condition,E,qd))),dt.checkDefined(vB(n.createBreakStatement(),E,_u)))));dt.assert(s),JC(s)?ae(c,s.statements):c.push(s);Je(t.loopOutParameters,1,1,c),Fp(c,l);const d=n.createBlock(c,!0);JC(s)&&TR(d,s);const u=!!(1048576&e.statement.transformFlags);let p=1048576;t.containsLexicalThis&&(p|=16);u&&4&f&&(p|=524288);const m=n.createVariableStatement(void 0,xR(n.createVariableDeclarationList([n.createVariableDeclaration(a,void 0,void 0,xR(n.createFunctionExpression(void 0,u?n.createToken(42):void 0,void 0,void 0,t.loopParameters,void 0,d),p))]),4194304)),h=function(e,t,r,o){const i=[],a=!(-5&t.nonLocalJumps||t.labeledNonLocalBreaks||t.labeledNonLocalContinues),s=n.createCallExpression(e,void 0,D(t.loopParameters,e=>e.name)),l=o?n.createYieldExpression(n.createToken(42),xR(s,8388608)):s;if(a)i.push(n.createExpressionStatement(l)),Je(t.loopOutParameters,1,0,i);else{const e=n.createUniqueName("state"),o=n.createVariableStatement(void 0,n.createVariableDeclarationList([n.createVariableDeclaration(e,void 0,void 0,l)]));if(i.push(o),Je(t.loopOutParameters,1,0,i),8&t.nonLocalJumps){let t;r?(r.nonLocalJumps|=8,t=n.createReturnStatement(e)):t=n.createReturnStatement(n.createPropertyAccessExpression(e,"value")),i.push(n.createIfStatement(n.createTypeCheck(e,"object"),t))}if(2&t.nonLocalJumps&&i.push(n.createIfStatement(n.createStrictEquality(e,n.createStringLiteral("break")),n.createBreakStatement())),t.labeledNonLocalBreaks||t.labeledNonLocalContinues){const o=[];Ye(t.labeledNonLocalBreaks,!0,e,r,o),Ye(t.labeledNonLocalContinues,!1,e,r,o),i.push(n.createSwitchStatement(e,n.createCaseBlock(o)))}}return i}(a,t,o,u);return{functionName:a,containsYield:u,functionDeclaration:m,part:h}}(t,l,d):void 0;h=d,u&&c.push(u.functionDeclaration);p&&c.push(p.functionDeclaration);(function(e,t,r){let o;t.argumentsName&&(r?r.argumentsName=t.argumentsName:(o||(o=[])).push(n.createVariableDeclaration(t.argumentsName,void 0,void 0,n.createIdentifier("arguments"))));t.thisName&&(r?r.thisName=t.thisName:(o||(o=[])).push(n.createVariableDeclaration(t.thisName,void 0,void 0,n.createIdentifier("this"))));if(t.hoistedLocalVariables)if(r)r.hoistedLocalVariables=t.hoistedLocalVariables;else{o||(o=[]);for(const e of t.hoistedLocalVariables)o.push(n.createVariableDeclaration(e))}if(t.loopOutParameters.length){o||(o=[]);for(const e of t.loopOutParameters)o.push(n.createVariableDeclaration(e.outParamName))}t.conditionVariable&&(o||(o=[]),o.push(n.createVariableDeclaration(t.conditionVariable,void 0,void 0,n.createFalse())));o&&e.push(n.createVariableStatement(void 0,n.createVariableDeclarationList(o)))})(c,l,d),u&&c.push(function(e,t){const r=n.createCallExpression(e,void 0,[]),o=t?n.createYieldExpression(n.createToken(42),xR(r,8388608)):r;return n.createExpressionStatement(o)}(u.functionName,u.containsYield));let m;if(p)if(s)m=s(t,o,p.part,a);else{const e=He(t,u,n.createBlock(p.part,!0));m=n.restoreEnclosingLabel(e,o,h&&De)}else{const e=He(t,u,dt.checkDefined(vB(t.statement,E,_u,n.liftToBlock)));m=n.restoreEnclosingLabel(e,o,h&&De)}return c.push(m),c}(a,s,c,l);return b(c,0,0),d}function Ne(e,n){return Ce(0,1280,e,n)}function Me(e,n){return Ce(5056,3328,e,n)}function Pe(e,n){return Ce(3008,5376,e,n)}function Le(e,n){return Ce(3008,5376,e,n,s.downlevelIteration?Fe:Oe)}function ke(t,r,o){const i=[],a=t.initializer;if(mN(a)){7&t.initializer.flags&&un();const o=fe(a.declarations);if(o&&xd(o.name)){const a=WG(o,E,e,0,r),s=DL(n.createVariableDeclarationList(a),t.initializer);TR(s,t.initializer),NR(s,Ob(a[0].pos,ye(a).end)),i.push(n.createVariableStatement(void 0,s))}else i.push(DL(n.createVariableStatement(void 0,TR(DL(n.createVariableDeclarationList([n.createVariableDeclaration(o?o.name:n.createTempVariable(void 0),void 0,void 0,r)]),Wb(a,-1)),a)),Fb(a,-1)))}else{const e=n.createAssignment(a,r);lb(e)?i.push(n.createExpressionStatement(Ae(e,!0))):(DA(e,a.end),i.push(DL(n.createExpressionStatement(dt.checkDefined(vB(e,E,qd))),Fb(a,-1))))}if(o)return we(ae(i,o));{const e=vB(t.statement,E,_u,n.liftToBlock);return dt.assert(e),JC(e)?n.updateBlock(e,DL(n.createNodeArray(K(i,e.statements)),e.statements)):(i.push(e),we(i))}}function we(e){return xR(n.createBlock(n.createNodeArray(e),!0),864)}function Oe(e,t,r){const o=vB(e.expression,E,qd);dt.assert(o);const i=n.createLoopVariable(),a=dD(o)?n.getGeneratedNameForNode(o):n.createTempVariable(void 0);xR(o,96|tf(o));const s=DL(n.createForStatement(xR(DL(n.createVariableDeclarationList([DL(n.createVariableDeclaration(i,void 0,void 0,n.createNumericLiteral(0)),Wb(e.expression,-1)),DL(n.createVariableDeclaration(a,void 0,void 0,o),e.expression)]),e.expression),4194304),DL(n.createLessThan(i,n.createPropertyAccessExpression(a,"length")),e.expression),DL(n.createPostfixIncrement(i),e.expression),ke(e,n.createElementAccessExpression(a,i),r)),e);return xR(s,512),DL(s,e),n.restoreEnclosingLabel(s,t,h&&De)}function Fe(e,r,o,i){const s=vB(e.expression,E,qd);dt.assert(s);const l=dD(s)?n.getGeneratedNameForNode(s):n.createTempVariable(void 0),c=dD(s)?n.getGeneratedNameForNode(l):n.createTempVariable(void 0),d=n.createUniqueName("e"),u=n.getGeneratedNameForNode(d),p=n.createTempVariable(void 0),f=DL(t().createValuesHelper(s),e.expression),m=n.createCallExpression(n.createPropertyAccessExpression(l,"next"),void 0,[]);a(d),a(p);const _=1024&i?n.inlineExpressions([n.createAssignment(d,n.createVoidZero()),f]):f,g=xR(DL(n.createForStatement(xR(DL(n.createVariableDeclarationList([DL(n.createVariableDeclaration(l,void 0,void 0,_),e.expression),n.createVariableDeclaration(c,void 0,void 0,m)]),e.expression),4194304),n.createLogicalNot(n.createPropertyAccessExpression(c,"done")),n.createAssignment(c,m),ke(e,n.createPropertyAccessExpression(c,"value"),o)),e),512);return n.createTryStatement(n.createBlock([n.restoreEnclosingLabel(g,r,h&&De)]),n.createCatchClause(n.createVariableDeclaration(u),xR(n.createBlock([n.createExpressionStatement(n.createAssignment(d,n.createObjectLiteralExpression([n.createPropertyAssignment("error",u)])))]),1)),n.createBlock([n.createTryStatement(n.createBlock([xR(n.createIfStatement(n.createLogicalAnd(n.createLogicalAnd(c,n.createLogicalNot(n.createPropertyAccessExpression(c,"done"))),n.createAssignment(p,n.createPropertyAccessExpression(l,"return"))),n.createExpressionStatement(n.createFunctionCallCall(p,l,[]))),1)]),void 0,xR(n.createBlock([xR(n.createIfStatement(d,n.createThrowStatement(n.createPropertyAccessExpression(d,"error"))),1)]),1))]))}function We(e){return l.hasNodeCheckFlag(e,8192)}function ze(e){return nN(e)&&!!e.initializer&&We(e.initializer)}function Be(e){return nN(e)&&!!e.condition&&We(e.condition)}function Ge(e){return nN(e)&&!!e.incrementor&&We(e.incrementor)}function Ve(e){return je(e)||ze(e)}function je(e){return l.hasNodeCheckFlag(e,4096)}function Ue(e,n){e.hoistedLocalVariables||(e.hoistedLocalVariables=[]),function n(t){if(80===t.kind)e.hoistedLocalVariables.push(t);else for(const e of t.elements)FC(e)||n(e.name)}(n.name)}function He(e,t,r){switch(e.kind){case 249:return function(e,t,r){const o=e.condition&&We(e.condition),i=o||e.incrementor&&We(e.incrementor);return n.updateForStatement(e,vB(t?t.part:e.initializer,A,ru),vB(o?void 0:e.condition,E,qd),vB(i?void 0:e.incrementor,A,qd),r)}(e,t,r);case 250:return function(e,t){return n.updateForInStatement(e,dt.checkDefined(vB(e.initializer,E,ru)),dt.checkDefined(vB(e.expression,E,qd)),t)}(e,r);case 251:return function(e,t){return n.updateForOfStatement(e,void 0,dt.checkDefined(vB(e.initializer,E,ru)),dt.checkDefined(vB(e.expression,E,qd)),t)}(e,r);case 247:return function(e,t){return n.updateDoStatement(e,t,dt.checkDefined(vB(e.expression,E,qd)))}(e,r);case 248:return function(e,t){return n.updateWhileStatement(e,dt.checkDefined(vB(e.expression,E,qd)),t)}(e,r);default:return dt.failBadSyntaxKind(e,"IterationStatement expected")}}function Ke(e){return n.createVariableDeclaration(e.originalName,void 0,void 0,e.outParamName)}function qe(e,t){const r=0===t?e.outParamName:e.originalName,o=0===t?e.originalName:e.outParamName;return n.createBinaryExpression(o,64,r)}function Je(e,t,r,o){for(const i of e)i.flags&t&&o.push(n.createExpressionStatement(qe(i,r)))}function Xe(e,n,t,r){n?(e.labeledNonLocalBreaks||(e.labeledNonLocalBreaks=new Map),e.labeledNonLocalBreaks.set(t,r)):(e.labeledNonLocalContinues||(e.labeledNonLocalContinues=new Map),e.labeledNonLocalContinues.set(t,r))}function Ye(e,t,r,o,i){e&&e.forEach((e,a)=>{const s=[];if(!o||o.labels&&o.labels.get(a)){const e=n.createIdentifier(a);s.push(t?n.createBreakStatement(e):n.createContinueStatement(e))}else Xe(o,t,a,e),s.push(n.createReturnStatement(r));i.push(n.createCaseClause(n.createStringLiteral(e),s))})}function $e(e,t,r,o,i){const a=t.name;if(xd(a))for(const n of a.elements)FC(n)||$e(e,n,r,o,i);else{r.push(n.createParameterDeclaration(void 0,void 0,a));const s=l.hasNodeCheckFlag(t,65536);if(s||i){const r=n.createUniqueName("out_"+vl(a));let i=0;s&&(i|=1),nN(e)&&(e.initializer&&l.isBindingCapturedByNode(e.initializer,t)&&(i|=2),(e.condition&&l.isBindingCapturedByNode(e.condition,t)||e.incrementor&&l.isBindingCapturedByNode(e.incrementor,t))&&(i|=1)),o.push({flags:i,originalName:a,outParamName:r})}}}function Qe(e,t,r){const o=n.createAssignment(cP(n,t,dt.checkDefined(vB(e.name,E,od))),dt.checkDefined(vB(e.initializer,E,qd)));return DL(o,e),r&&LP(o),o}function Ze(e,t,r){const o=n.createAssignment(cP(n,t,dt.checkDefined(vB(e.name,E,od))),n.cloneNode(e.name));return DL(o,e),r&&LP(o),o}function tn(e,t,r,o){const i=n.createAssignment(cP(n,t,dt.checkDefined(vB(e.name,E,od))),Se(e,e,void 0,r));return DL(i,e),o&&LP(i),i}function rn(e,r,o,i){const a=e.length,l=M(V(e,on,(e,n,t,r)=>n(e,o,i&&r===a)));if(1===l.length){const e=l[0];if(r&&!s.downlevelIteration||wA(e.expression)||UI(e.expression,"___spreadArray"))return e.expression}const c=t(),d=0!==l[0].kind;let u=d?n.createArrayLiteralExpression():l[0].expression;for(let n=d?0:1;n<l.length;n++){const e=l[n];u=c.createSpreadArrayHelper(u,e.expression,1===e.kind&&!r)}return u}function on(e){return wC(e)?an:ln}function an(e){return D(e,sn)}function sn(e){dt.assertNode(e,wC);let n=vB(e.expression,E,qd);dt.assert(n);const r=UI(n,"___read");let o=r||wA(n)?2:1;return!s.downlevelIteration||1!==o||mC(n)||r||(n=t().createReadHelper(n,void 0),o=2),RV(o,n)}function ln(e,t,r){return RV(0,n.createArrayLiteralExpression(bB(n.createNodeArray(e,r),E,qd),t))}function cn(){return n.createUniqueName("_super",48)}function dn(e,t){const r=8&f&&!t?n.createPropertyAccessExpression(TR(cn(),e),"prototype"):cn();return TR(r,e),OR(r,e),NR(r,e),r}function un(){2&y||(y|=2,e.enableSubstitution(80))}function pn(e,t){return Pv(t)?n.getInternalName(e):n.createPropertyAccessExpression(n.getInternalName(e),"prototype")}}function DV(e){const{factory:n,getEmitHelperFactory:t,resumeLexicalEnvironment:r,endLexicalEnvironment:o,hoistFunctionDeclaration:i,hoistVariableDeclaration:a}=e,s=e.getCompilerOptions(),l=SS(s),c=e.getEmitResolver(),u=e.onSubstituteNode;let p,f,m,h,_,g,y,v,b,T;e.onSubstituteNode=function(e,t){if(t=u(e,t),1===e)return function(e){if(dD(e))return function(e){if(!Jc(e)&&p&&p.has(vl(e))){const t=fl(e);if(dD(t)&&t.parent){const r=c.getReferencedValueDeclaration(t);if(r){const t=f[ZB(r)];if(t){const r=PA(DL(n.cloneNode(t),t),t.parent);return NR(r,e),OR(r,e),r}}}}return e}(e);return e}(t);return t};let S,E,A,x,R,I,C,N,M,P,L,k,w=1,O=0,F=0;return tG(e,function(n){if(n.isDeclarationFile||!(2048&n.transformFlags))return n;const t=CB(n,W,e);return qR(t,e.readEmitHelpers()),t});function W(n){const t=n.transformFlags;return h?function(n){switch(n.kind){case 247:case 248:return function(n){return h?(ae(),n=CB(n,W,e),le(),n):CB(n,W,e)}(n);case 256:return function(n){h&&te({kind:2,isScript:!0,breakLabel:-1});n=CB(n,W,e),h&&ce();return n}(n);case 257:return function(n){h&&te({kind:4,isScript:!0,labelText:vl(n.label),breakLabel:-1});n=CB(n,W,e),h&&de();return n}(n);default:return z(n)}}(n):m?z(n):ld(n)&&n.asteriskToken?function(e){switch(e.kind){case 263:return B(e);case 219:return G(e);default:return dt.failBadSyntaxKind(e)}}(n):2048&t?CB(n,W,e):n}function z(r){switch(r.kind){case 263:return B(r);case 219:return G(r);case 178:case 179:return function(n){const t=m,r=h;return m=!1,h=!1,n=CB(n,W,e),m=t,h=r,n}(r);case 244:return function(e){if(1048576&e.transformFlags)return void J(e.declarationList);{if(2097152&tf(e))return e;for(const n of e.declarationList.declarations)a(n.name);const t=rT(e.declarationList);if(0===t.length)return;return NR(n.createExpressionStatement(n.inlineExpressions(D(t,X))),e)}}(r);case 249:return function(t){h&&ae();const r=t.initializer;if(r&&mN(r)){for(const e of r.declarations)a(e.name);const o=rT(r);t=n.updateForStatement(t,o.length>0?n.inlineExpressions(D(o,X)):void 0,vB(t.condition,W,qd),vB(t.incrementor,W,qd),IB(t.statement,W,e))}else t=CB(t,W,e);h&&le();return t}(r);case 250:return function(t){h&&ae();const r=t.initializer;if(mN(r)){for(const e of r.declarations)a(e.name);t=n.updateForInStatement(t,r.declarations[0].name,dt.checkDefined(vB(t.expression,W,qd)),dt.checkDefined(vB(t.statement,W,_u,n.liftToBlock)))}else t=CB(t,W,e);h&&le();return t}(r);case 253:return function(n){if(h){const e=he(n.label&&vl(n.label));if(e>0)return be(e,n)}return CB(n,W,e)}(r);case 252:return function(n){if(h){const e=_e(n.label&&vl(n.label));if(e>0)return be(e,n)}return CB(n,W,e)}(r);case 254:return function(e){return t=vB(e.expression,W,qd),r=e,DL(n.createReturnStatement(n.createArrayLiteralExpression(t?[ve(2),t]:[ve(2)])),r);var t,r}(r);default:return 1048576&r.transformFlags?function(r){switch(r.kind){case 227:return function(t){const r=iy(t);switch(r){case 0:return function(t){if(Y(t.right))return Zv(t.operatorToken.kind)?function(e){const n=ee(),t=Z();Ee(t,dt.checkDefined(vB(e.left,W,qd)),e.left),56===e.operatorToken.kind?Ie(n,t,e.left):Re(n,t,e.left);return Ee(t,dt.checkDefined(vB(e.right,W,qd)),e.right),ne(n),t}(t):28===t.operatorToken.kind?j(t):n.updateBinaryExpression(t,Q(dt.checkDefined(vB(t.left,W,qd))),t.operatorToken,dt.checkDefined(vB(t.right,W,qd)));return CB(t,W,e)}(t);case 1:return function(t){const{left:r,right:o}=t;if(Y(o)){let e;switch(r.kind){case 212:e=n.updatePropertyAccessExpression(r,Q(dt.checkDefined(vB(r.expression,W,Gd))),r.name);break;case 213:e=n.updateElementAccessExpression(r,Q(dt.checkDefined(vB(r.expression,W,Gd))),Q(dt.checkDefined(vB(r.argumentExpression,W,qd))));break;default:e=dt.checkDefined(vB(r,W,qd))}const i=t.operatorToken.kind;return fG(i)?DL(n.createAssignment(e,DL(n.createBinaryExpression(Q(e),mG(i),dt.checkDefined(vB(o,W,qd))),t)),t):n.updateBinaryExpression(t,e,t.operatorToken,dt.checkDefined(vB(o,W,qd)))}return CB(t,W,e)}(t);default:return dt.assertNever(r)}}(r);case 357:return function(e){let t=[];for(const r of e.elements)MC(r)&&28===r.operatorToken.kind?t.push(j(r)):(Y(r)&&t.length>0&&(De(1,[n.createExpressionStatement(n.inlineExpressions(t))]),t=[]),t.push(dt.checkDefined(vB(r,W,qd))));return n.inlineExpressions(t)}(r);case 228:return function(n){if(Y(n.whenTrue)||Y(n.whenFalse)){const e=ee(),t=ee(),r=Z();return Ie(e,dt.checkDefined(vB(n.condition,W,qd)),n.condition),Ee(r,dt.checkDefined(vB(n.whenTrue,W,qd)),n.whenTrue),Ae(t),ne(e),Ee(r,dt.checkDefined(vB(n.whenFalse,W,qd)),n.whenFalse),ne(t),r}return CB(n,W,e)}(r);case 230:return function(e){const r=ee(),o=vB(e.expression,W,qd);if(e.asteriskToken){!function(e,n){De(7,[e],n)}(8388608&tf(e.expression)?o:DL(t().createValuesHelper(o),e),e)}else!function(e,n){De(6,[e],n)}(o,e);return ne(r),function(e){return DL(n.createCallExpression(n.createPropertyAccessExpression(x,"sent"),void 0,[]),e)}(e)}(r);case 210:return function(e){return U(e.elements,void 0,void 0,e.multiLine)}(r);case 211:return function(e){const t=e.properties,r=e.multiLine,o=$(t),i=Z();Ee(i,n.createObjectLiteralExpression(bB(t,W,Sd,0,o),r));const a=xe(t,s,[],o);return a.push(r?LP(PA(DL(n.cloneNode(i),i),i.parent)):i),n.inlineExpressions(a);function s(t,o){Y(o)&&t.length>0&&(Se(n.createExpressionStatement(n.inlineExpressions(t))),t=[]);const a=vB(yP(n,e,o,i),W,qd);return a&&(r&&LP(a),t.push(a)),t}}(r);case 213:return function(t){if(Y(t.argumentExpression))return n.updateElementAccessExpression(t,Q(dt.checkDefined(vB(t.expression,W,Gd))),dt.checkDefined(vB(t.argumentExpression,W,qd)));return CB(t,W,e)}(r);case 214:return function(t){if(!fm(t)&&d(t.arguments,Y)){const{target:e,thisArg:r}=n.createCallBinding(t.expression,a,l,!0);return TR(DL(n.createFunctionApplyCall(Q(dt.checkDefined(vB(e,W,Gd))),r,U(t.arguments)),t),t)}return CB(t,W,e)}(r);case 215:return function(t){if(d(t.arguments,Y)){const{target:e,thisArg:r}=n.createCallBinding(n.createPropertyAccessExpression(t.expression,"bind"),a);return TR(DL(n.createNewExpression(n.createFunctionApplyCall(Q(dt.checkDefined(vB(e,W,qd))),r,U(t.arguments,n.createVoidZero())),void 0,[]),t),t)}return CB(t,W,e)}(r);default:return CB(r,W,e)}}(r):4196352&r.transformFlags?CB(r,W,e):r}}function B(t){if(t.asteriskToken)t=TR(DL(n.createFunctionDeclaration(t.modifiers,void 0,t.name,void 0,AB(t.parameters,W,e),void 0,V(t.body)),t),t);else{const n=m,r=h;m=!1,h=!1,t=CB(t,W,e),m=n,h=r}return m?void i(t):t}function G(t){if(t.asteriskToken)t=TR(DL(n.createFunctionExpression(void 0,void 0,t.name,void 0,AB(t.parameters,W,e),void 0,V(t.body)),t),t);else{const n=m,r=h;m=!1,h=!1,t=CB(t,W,e),m=n,h=r}return t}function V(e){const i=[],a=m,s=h,l=_,c=g,d=y,u=v,p=b,f=T,D=w,z=S,B=E,G=A,V=x;m=!0,h=!1,_=void 0,g=void 0,y=void 0,v=void 0,b=void 0,T=void 0,w=1,S=void 0,E=void 0,A=void 0,x=n.createTempVariable(void 0),r();const j=n.copyPrologue(e.statements,i,!1,W);H(e.statements,j);const U=function(){O=0,F=0,R=void 0,I=!1,C=!1,N=void 0,M=void 0,P=void 0,L=void 0,k=void 0;const e=function(){if(S){for(let e=0;e<S.length;e++)Le(e);Ne(S.length)}else Ne(0);if(N){const e=n.createPropertyAccessExpression(x,"label");return[LP(n.createSwitchStatement(e,n.createCaseBlock(N)))]}if(M)return M;return[]}();return t().createGeneratorHelper(xR(n.createFunctionExpression(void 0,void 0,void 0,void 0,[n.createParameterDeclaration(void 0,void 0,x)],void 0,n.createBlock(e,e.length>0)),1048576))}();return Fp(i,o()),i.push(n.createReturnStatement(U)),m=a,h=s,_=l,g=c,y=d,v=u,b=p,T=f,w=D,S=z,E=B,A=G,x=V,DL(n.createBlock(i,e.multiLine),e)}function j(e){let t=[];return r(e.left),r(e.right),n.inlineExpressions(t);function r(e){MC(e)&&28===e.operatorToken.kind?(r(e.left),r(e.right)):(Y(e)&&t.length>0&&(De(1,[n.createExpressionStatement(n.inlineExpressions(t))]),t=[]),t.push(dt.checkDefined(vB(e,W,qd))))}}function U(e,t,r,o){const i=$(e);let a;if(i>0){a=Z();const r=bB(e,W,qd,0,i);Ee(a,n.createArrayLiteralExpression(t?[t,...r]:r)),t=void 0}const s=xe(e,function(e,r){if(Y(r)&&e.length>0){const r=void 0!==a;a||(a=Z()),Ee(a,r?n.createArrayConcatCall(a,[n.createArrayLiteralExpression(e,o)]):n.createArrayLiteralExpression(t?[t,...e]:e,o)),t=void 0,e=[]}return e.push(dt.checkDefined(vB(r,W,qd))),e},[],i);return a?n.createArrayConcatCall(a,[n.createArrayLiteralExpression(s,o)]):DL(n.createArrayLiteralExpression(t?[t,...s]:s,o),r)}function H(e,n=0){const t=e.length;for(let r=n;r<t;r++)q(e[r])}function K(e){JC(e)?H(e.statements):q(e)}function q(t){const r=h;h||(h=Y(t)),function(t){switch(t.kind){case 242:return function(e){Y(e)?H(e.statements):Se(vB(e,W,_u))}(t);case 245:return function(e){Se(vB(e,W,_u))}(t);case 246:return function(e){if(Y(e))if(Y(e.thenStatement)||Y(e.elseStatement)){const n=ee(),t=e.elseStatement?ee():void 0;Ie(e.elseStatement?t:n,dt.checkDefined(vB(e.expression,W,qd)),e.expression),K(e.thenStatement),e.elseStatement&&(Ae(n),ne(t),K(e.elseStatement)),ne(n)}else Se(vB(e,W,_u));else Se(vB(e,W,_u))}(t);case 247:return function(e){if(Y(e)){const n=ee(),t=ee();se(n),ne(t),K(e.statement),ne(n),Re(t,dt.checkDefined(vB(e.expression,W,qd))),le()}else Se(vB(e,W,_u))}(t);case 248:return function(e){if(Y(e)){const n=ee(),t=se(n);ne(n),Ie(t,dt.checkDefined(vB(e.expression,W,qd))),K(e.statement),Ae(n),le()}else Se(vB(e,W,_u))}(t);case 249:return function(e){if(Y(e)){const t=ee(),r=ee(),o=se(r);if(e.initializer){const t=e.initializer;mN(t)?J(t):Se(DL(n.createExpressionStatement(dt.checkDefined(vB(t,W,qd))),t))}ne(t),e.condition&&Ie(o,dt.checkDefined(vB(e.condition,W,qd))),K(e.statement),ne(r),e.incrementor&&Se(DL(n.createExpressionStatement(dt.checkDefined(vB(e.incrementor,W,qd))),e.incrementor)),Ae(t),le()}else Se(vB(e,W,_u))}(t);case 250:return function(e){if(Y(e)){const t=Z(),r=Z(),o=Z(),i=n.createLoopVariable(),s=e.initializer;a(i),Ee(t,dt.checkDefined(vB(e.expression,W,qd))),Ee(r,n.createArrayLiteralExpression()),Se(n.createForInStatement(o,t,n.createExpressionStatement(n.createCallExpression(n.createPropertyAccessExpression(r,"push"),void 0,[o])))),Ee(i,n.createNumericLiteral(0));const l=ee(),c=ee(),d=se(c);let u;if(ne(l),Ie(d,n.createLessThan(i,n.createPropertyAccessExpression(r,"length"))),Ee(o,n.createElementAccessExpression(r,i)),Ie(c,n.createBinaryExpression(o,103,t)),mN(s)){for(const e of s.declarations)a(e.name);u=n.cloneNode(s.declarations[0].name)}else u=dt.checkDefined(vB(s,W,qd)),dt.assert(Gd(u));Ee(u,o),K(e.statement),ne(c),Se(n.createExpressionStatement(n.createPostfixIncrement(i))),Ae(l),le()}else Se(vB(e,W,_u))}(t);case 252:return function(e){const n=_e(e.label?vl(e.label):void 0);n>0?Ae(n,e):Se(e)}(t);case 253:return function(e){const n=he(e.label?vl(e.label):void 0);n>0?Ae(n,e):Se(e)}(t);case 254:return function(e){n=vB(e.expression,W,qd),t=e,De(8,[n],t);var n,t}(t);case 255:return function(e){Y(e)?(function(e){const n=ee(),t=ee();ne(n),te({kind:1,expression:e,startLabel:n,endLabel:t})}(Q(dt.checkDefined(vB(e.expression,W,qd)))),K(e.statement),function(){dt.assert(1===ie());ne(re().endLabel)}()):Se(vB(e,W,_u))}(t);case 256:return function(e){if(Y(e.caseBlock)){const t=e.caseBlock,r=t.clauses.length,o=function(){const e=ee();return te({kind:2,isScript:!1,breakLabel:e}),e}(),i=Q(dt.checkDefined(vB(e.expression,W,qd))),a=[];let s=-1;for(let e=0;e<r;e++){const n=t.clauses[e];a.push(ee()),298===n.kind&&-1===s&&(s=e)}let l=0,c=[];for(;l<r;){let e=0;for(let o=l;o<r;o++){const r=t.clauses[o];if(297===r.kind){if(Y(r.expression)&&c.length>0)break;c.push(n.createCaseClause(dt.checkDefined(vB(r.expression,W,qd)),[be(a[o],r.expression)]))}else e++}c.length&&(Se(n.createSwitchStatement(i,n.createCaseBlock(c))),l+=c.length,c=[]),e>0&&(l+=e,e=0)}Ae(s>=0?a[s]:o);for(let e=0;e<r;e++)ne(a[e]),H(t.clauses[e].statements);ce()}else Se(vB(e,W,_u))}(t);case 257:return function(e){Y(e)?(!function(e){const n=ee();te({kind:4,isScript:!1,labelText:e,breakLabel:n})}(vl(e.label)),K(e.statement),de()):Se(vB(e,W,_u))}(t);case 258:return function(e){t=dt.checkDefined(vB(e.expression??n.createVoidZero(),W,qd)),r=e,De(9,[t],r);var t,r}(t);case 259:return function(t){Y(t)?(function(){const e=ee(),n=ee();ne(e),te({kind:0,state:0,startLabel:e,endLabel:n}),Te()}(),K(t.tryBlock),t.catchClause&&(!function(t){let r;if(dt.assert(0===ie()),Jc(t.name))r=t.name,a(t.name);else{const n=vl(t.name);r=Z(n),p||(p=new Map,f=[],e.enableSubstitution(80)),p.set(n,!0),f[ZB(t)]=r}const o=oe();dt.assert(o.state<1);Ae(o.endLabel);const i=ee();ne(i),o.state=1,o.catchVariable=r,o.catchLabel=i,Ee(r,n.createCallExpression(n.createPropertyAccessExpression(x,"sent"),void 0,[])),Te()}(t.catchClause.variableDeclaration),K(t.catchClause.block)),t.finallyBlock&&(!function(){dt.assert(0===ie());const e=oe();dt.assert(e.state<2);Ae(e.endLabel);const n=ee();ne(n),e.state=2,e.finallyLabel=n}(),K(t.finallyBlock)),function(){dt.assert(0===ie());const e=re();e.state<2?Ae(e.endLabel):De(10);ne(e.endLabel),Te(),e.state=3}()):Se(CB(t,W,e))}(t);default:Se(vB(t,W,_u))}}(t),h=r}function J(e){for(const s of e.declarations){const e=n.cloneNode(s.name);OR(e,s.name),a(e)}const t=rT(e),r=t.length;let o=0,i=[];for(;o<r;){for(let e=o;e<r;e++){const n=t[e];if(Y(n.initializer)&&i.length>0)break;i.push(X(n))}i.length&&(Se(n.createExpressionStatement(n.inlineExpressions(i))),o+=i.length,i=[])}}function X(e){return NR(n.createAssignment(NR(n.cloneNode(e.name),e.name),dt.checkDefined(vB(e.initializer,W,qd))),e)}function Y(e){return!!e&&!!(1048576&e.transformFlags)}function $(e){const n=e.length;for(let t=0;t<n;t++)if(Y(e[t]))return t;return-1}function Q(e){if(Jc(e)||8192&tf(e))return e;const t=n.createTempVariable(a);return Ee(t,e,e),t}function Z(e){const t=e?n.createUniqueName(e):n.createTempVariable(void 0);return a(t),t}function ee(){b||(b=[]);const e=w;return w++,b[e]=-1,e}function ne(e){dt.assert(void 0!==b,"No labels were defined."),b[e]=S?S.length:0}function te(e){_||(_=[],y=[],g=[],v=[]);const n=y.length;return y[n]=0,g[n]=S?S.length:0,_[n]=e,v.push(e),n}function re(){const e=oe();if(void 0===e)return dt.fail("beginBlock was never called.");const n=y.length;return y[n]=1,g[n]=S?S.length:0,_[n]=e,v.pop(),e}function oe(){return ge(v)}function ie(){const e=oe();return e&&e.kind}function ae(){te({kind:3,isScript:!0,breakLabel:-1,continueLabel:-1})}function se(e){const n=ee();return te({kind:3,isScript:!1,breakLabel:n,continueLabel:e}),n}function le(){dt.assert(3===ie());const e=re(),n=e.breakLabel;e.isScript||ne(n)}function ce(){dt.assert(2===ie());const e=re(),n=e.breakLabel;e.isScript||ne(n)}function de(){dt.assert(4===ie());const e=re();e.isScript||ne(e.breakLabel)}function ue(e){return 2===e.kind||3===e.kind}function pe(e){return 4===e.kind}function fe(e){return 3===e.kind}function me(e,n){for(let t=n;t>=0;t--){const n=v[t];if(!pe(n))break;if(n.labelText===e)return!0}return!1}function he(e){if(v)if(e)for(let n=v.length-1;n>=0;n--){const t=v[n];if(pe(t)&&t.labelText===e)return t.breakLabel;if(ue(t)&&me(e,n-1))return t.breakLabel}else for(let n=v.length-1;n>=0;n--){const e=v[n];if(ue(e))return e.breakLabel}return 0}function _e(e){if(v)if(e)for(let n=v.length-1;n>=0;n--){const t=v[n];if(fe(t)&&me(e,n-1))return t.continueLabel}else for(let n=v.length-1;n>=0;n--){const e=v[n];if(fe(e))return e.continueLabel}return 0}function ye(e){if(void 0!==e&&e>0){void 0===T&&(T=[]);const t=n.createNumericLiteral(Number.MAX_SAFE_INTEGER);return void 0===T[e]?T[e]=[t]:T[e].push(t),t}return n.createOmittedExpression()}function ve(e){const t=n.createNumericLiteral(e);return VR(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}}(e)),t}function be(e,t){return dt.assertLessThan(0,e,"Invalid label"),DL(n.createReturnStatement(n.createArrayLiteralExpression([ve(3),ye(e)])),t)}function Te(){De(0)}function Se(e){e?De(1,[e]):Te()}function Ee(e,n,t){De(2,[e,n],t)}function Ae(e,n){De(3,[e],n)}function Re(e,n,t){De(4,[e,n],t)}function Ie(e,n,t){De(5,[e,n],t)}function De(e,n,t){void 0===S&&(S=[],E=[],A=[]),void 0===b&&ne(ee());const r=S.length;S[r]=e,E[r]=n,A[r]=t}function Ce(){M&&(Me(!I),I=!1,C=!1,F++)}function Ne(e){(function(e){if(!C)return!0;if(!b||!T)return!1;for(let n=0;n<b.length;n++)if(b[n]===e&&T[n])return!0;return!1})(e)&&(Pe(e),k=void 0,we(void 0,void 0)),M&&N&&Me(!1),function(){if(void 0!==T&&void 0!==R)for(let e=0;e<R.length;e++){const n=R[e];if(void 0!==n)for(const t of n){const n=T[t];if(void 0!==n)for(const t of n)t.text=String(e)}}}()}function Me(e){if(N||(N=[]),M){if(k)for(let e=k.length-1;e>=0;e--){const t=k[e];M=[n.createWithStatement(t.expression,n.createBlock(M))]}if(L){const{startLabel:e,catchLabel:t,finallyLabel:r,endLabel:o}=L;M.unshift(n.createExpressionStatement(n.createCallExpression(n.createPropertyAccessExpression(n.createPropertyAccessExpression(x,"trys"),"push"),void 0,[n.createArrayLiteralExpression([ye(e),ye(t),ye(r),ye(o)])]))),L=void 0}e&&M.push(n.createExpressionStatement(n.createAssignment(n.createPropertyAccessExpression(x,"label"),n.createNumericLiteral(F+1))))}N.push(n.createCaseClause(n.createNumericLiteral(F),M||[])),M=void 0}function Pe(e){if(b)for(let n=0;n<b.length;n++)b[n]===e&&(Ce(),void 0===R&&(R=[]),void 0===R[F]?R[F]=[n]:R[F].push(n))}function Le(e){if(Pe(e),function(e){if(_)for(;O<y.length&&g[O]<=e;O++){const e=_[O],n=y[O];switch(e.kind){case 0:0===n?(P||(P=[]),M||(M=[]),P.push(L),L=e):1===n&&(L=P.pop());break;case 1:0===n?(k||(k=[]),k.push(e)):1===n&&k.pop()}}}(e),I)return;I=!1,C=!1;const t=S[e];if(0===t)return;if(10===t)return I=!0,void ke(n.createReturnStatement(n.createArrayLiteralExpression([ve(7)])));const r=E[e];if(1===t)return ke(r[0]);const o=A[e];switch(t){case 2:return i=r[0],a=r[1],s=o,void ke(DL(n.createExpressionStatement(n.createAssignment(i,a)),s));case 3:return function(e,t){I=!0,ke(xR(DL(n.createReturnStatement(n.createArrayLiteralExpression([ve(3),ye(e)])),t),768))}(r[0],o);case 4:return function(e,t,r){ke(xR(n.createIfStatement(t,xR(DL(n.createReturnStatement(n.createArrayLiteralExpression([ve(3),ye(e)])),r),768)),1))}(r[0],r[1],o);case 5:return function(e,t,r){ke(xR(n.createIfStatement(n.createLogicalNot(t),xR(DL(n.createReturnStatement(n.createArrayLiteralExpression([ve(3),ye(e)])),r),768)),1))}(r[0],r[1],o);case 6:return function(e,t){I=!0,ke(xR(DL(n.createReturnStatement(n.createArrayLiteralExpression(e?[ve(4),e]:[ve(4)])),t),768))}(r[0],o);case 7:return function(e,t){I=!0,ke(xR(DL(n.createReturnStatement(n.createArrayLiteralExpression([ve(5),e])),t),768))}(r[0],o);case 8:return we(r[0],o);case 9:return function(e,t){I=!0,C=!0,ke(DL(n.createThrowStatement(e),t))}(r[0],o)}var i,a,s}function ke(e){e&&(M?M.push(e):M=[e])}function we(e,t){I=!0,C=!0,ke(xR(DL(n.createReturnStatement(n.createArrayLiteralExpression(e?[ve(2),e]:[ve(2)])),t),768))}}function CV(e){const{factory:n,getEmitHelperFactory:t,startLexicalEnvironment:r,endLexicalEnvironment:o,hoistVariableDeclaration:i}=e,a=e.getCompilerOptions(),l=e.getEmitResolver(),d=e.getEmitHost(),u=SS(a),p=ES(a),f=e.onSubstituteNode,m=e.onEmitNode;e.onSubstituteNode=function(e,t){if((t=f(e,t)).id&&v[t.id])return t;if(1===e)return function(e){switch(e.kind){case 80:return Z(e);case 214:return function(e){if(dD(e.expression)){const t=Z(e.expression);if(v[cB(t)]=!0,!(dD(t)||8192&tf(e.expression)))return DR(n.updateCallExpression(e,t,void 0,e.arguments),16)}return e}(e);case 216:return function(e){if(dD(e.tag)){const t=Z(e.tag);if(v[cB(t)]=!0,!(dD(t)||8192&tf(e.tag)))return DR(n.updateTaggedTemplateExpression(e,t,void 0,e.template),16)}return e}(e);case 227:return function(e){if(ob(e.operatorToken.kind)&&dD(e.left)&&(!Jc(e.left)||Yc(e.left))&&!TP(e.left)){const n=ee(e.left);if(n){let t=e;for(const r of n)v[cB(t)]=!0,t=$(r,t,e);return t}}return e}(e)}return e}(t);if(lM(t))return function(e){const t=e.name,r=Z(t);if(r!==t){if(e.objectAssignmentInitializer){const o=n.createAssignment(r,e.objectAssignmentInitializer);return DL(n.createPropertyAssignment(t,o),e)}return DL(n.createPropertyAssignment(t,r),e)}return e}(t);return t},e.onEmitNode=function(e,n,t){308===n.kind?(_=n,g=h[ZB(_)],m(e,n,t),_=void 0,g=void 0):m(e,n,t)},e.enableSubstitution(214),e.enableSubstitution(216),e.enableSubstitution(80),e.enableSubstitution(227),e.enableSubstitution(305),e.enableEmitNotification(308);const h=[];let _,g,y;const v=[];let b;return tG(e,function(n){if(n.isDeclarationFile||!(Tf(n,a)||8388608&n.transformFlags||om(n)&&zS(a)&&a.outFile))return n;_=n,g=aG(e,n),h[ZB(n)]=g,a.rewriteRelativeImportExtensions&&Px(n,!1,!1,e=>{zu(e.arguments[0])&&!A_(e.arguments[0].text,a)||(y=re(y,e))});const t=function(e){switch(e){case 2:return E;case 3:return A;default:return S}}(p)(n);return _=void 0,g=void 0,b=!1,t});function T(){return!(WE(_.fileName)&&_.commonJsModuleIndicator&&(!_.externalModuleIndicator||!0===_.externalModuleIndicator))&&!(g.exportEquals||!dk(_))}function S(t){r();const i=[],s=US(a,"alwaysStrict")||dk(_),l=n.copyPrologue(t.statements,i,s&&!om(t),C);if(T()&&re(i,X()),U(g.exportedNames)){const e=50;for(let t=0;t<g.exportedNames.length;t+=e)re(i,n.createExpressionStatement(xe(g.exportedNames.slice(t,t+e),(e,t)=>11===t.kind?n.createAssignment(n.createElementAccessExpression(n.createIdentifier("exports"),n.createStringLiteral(t.text)),e):n.createAssignment(n.createPropertyAccessExpression(n.createIdentifier("exports"),n.createIdentifier(vl(t))),e),n.createVoidZero())))}for(const e of g.exportedFunctions)K(i,e);re(i,vB(g.externalHelpersImportDeclaration,C,_u)),ae(i,bB(t.statements,C,_u,l)),D(i,!1),Fp(i,o());const c=n.updateSourceFile(t,DL(n.createNodeArray(i),t.statements));return qR(c,e.readEmitHelpers()),c}function E(t){const r=n.createIdentifier("define"),o=zP(n,t,d,a),i=om(t)&&t,{aliasedModuleNames:l,unaliasedModuleNames:c,importAliasNames:u}=x(t,!0),p=n.updateSourceFile(t,DL(n.createNodeArray([n.createExpressionStatement(n.createCallExpression(r,void 0,[...o?[o]:[],n.createArrayLiteralExpression(i?s:[n.createStringLiteral("require"),n.createStringLiteral("exports"),...l,...c]),i?i.statements.length?i.statements[0].expression:n.createObjectLiteralExpression():n.createFunctionExpression(void 0,void 0,void 0,void 0,[n.createParameterDeclaration(void 0,void 0,"require"),n.createParameterDeclaration(void 0,void 0,"exports"),...u],void 0,I(t))]))]),t.statements));return qR(p,e.readEmitHelpers()),p}function A(t){const{aliasedModuleNames:r,unaliasedModuleNames:o,importAliasNames:i}=x(t,!1),s=zP(n,t,d,a),l=n.createFunctionExpression(void 0,void 0,void 0,void 0,[n.createParameterDeclaration(void 0,void 0,"factory")],void 0,DL(n.createBlock([n.createIfStatement(n.createLogicalAnd(n.createTypeCheck(n.createIdentifier("module"),"object"),n.createTypeCheck(n.createPropertyAccessExpression(n.createIdentifier("module"),"exports"),"object")),n.createBlock([n.createVariableStatement(void 0,[n.createVariableDeclaration("v",void 0,void 0,n.createCallExpression(n.createIdentifier("factory"),void 0,[n.createIdentifier("require"),n.createIdentifier("exports")]))]),xR(n.createIfStatement(n.createStrictInequality(n.createIdentifier("v"),n.createIdentifier("undefined")),n.createExpressionStatement(n.createAssignment(n.createPropertyAccessExpression(n.createIdentifier("module"),"exports"),n.createIdentifier("v")))),1)]),n.createIfStatement(n.createLogicalAnd(n.createTypeCheck(n.createIdentifier("define"),"function"),n.createPropertyAccessExpression(n.createIdentifier("define"),"amd")),n.createBlock([n.createExpressionStatement(n.createCallExpression(n.createIdentifier("define"),void 0,[...s?[s]:[],n.createArrayLiteralExpression([n.createStringLiteral("require"),n.createStringLiteral("exports"),...r,...o]),n.createIdentifier("factory")]))])))],!0),void 0)),c=n.updateSourceFile(t,DL(n.createNodeArray([n.createExpressionStatement(n.createCallExpression(l,void 0,[n.createFunctionExpression(void 0,void 0,void 0,void 0,[n.createParameterDeclaration(void 0,void 0,"require"),n.createParameterDeclaration(void 0,void 0,"exports"),...i],void 0,I(t))]))]),t.statements));return qR(c,e.readEmitHelpers()),c}function x(e,t){const r=[],o=[],i=[];for(const a of e.amdDependencies)a.name?(r.push(n.createStringLiteral(a.path)),i.push(n.createParameterDeclaration(void 0,void 0,a.name))):o.push(n.createStringLiteral(a.path));for(const s of g.externalImports){const e=WP(n,s,_,d,l,a),c=FP(n,s,_);e&&(t&&c?(xR(c,8),r.push(e),i.push(n.createParameterDeclaration(void 0,void 0,c))):o.push(e))}return{aliasedModuleNames:r,unaliasedModuleNames:o,importAliasNames:i}}function R(e){if(AN(e)||FN(e)||!WP(n,e,_,d,l,a))return;const t=FP(n,e,_),r=z(e,t);return r!==t?n.createExpressionStatement(n.createAssignment(t,r)):void 0}function I(e){r();const t=[],i=n.copyPrologue(e.statements,t,!0,C);T()&&re(t,X()),U(g.exportedNames)&&re(t,n.createExpressionStatement(xe(g.exportedNames,(e,t)=>11===t.kind?n.createAssignment(n.createElementAccessExpression(n.createIdentifier("exports"),n.createStringLiteral(t.text)),e):n.createAssignment(n.createPropertyAccessExpression(n.createIdentifier("exports"),n.createIdentifier(vl(t))),e),n.createVoidZero())));for(const n of g.exportedFunctions)K(t,n);re(t,vB(g.externalHelpersImportDeclaration,C,_u)),2===p&&ae(t,F(g.externalImports,R)),ae(t,bB(e.statements,C,_u,i)),D(t,!0),Fp(t,o());const a=n.createBlock(t,!0);return b&&KR(a,NV),a}function D(e,t){if(g.exportEquals){const r=vB(g.exportEquals.expression,P,qd);if(r)if(t){const t=n.createReturnStatement(r);DL(t,g.exportEquals),xR(t,3840),e.push(t)}else{const t=n.createExpressionStatement(n.createAssignment(n.createPropertyAccessExpression(n.createIdentifier("module"),"exports"),r));DL(t,g.exportEquals),xR(t,3072),e.push(t)}}}function C(e){switch(e.kind){case 273:return function(e){let t;const r=R_(e);if(2!==p){if(!e.importClause)return TR(DL(n.createExpressionStatement(B(e)),e),e);{const o=[];r&&!I_(e)?o.push(n.createVariableDeclaration(n.cloneNode(r.name),void 0,void 0,z(e,B(e)))):(o.push(n.createVariableDeclaration(n.getGeneratedNameForNode(e),void 0,void 0,z(e,B(e)))),r&&I_(e)&&o.push(n.createVariableDeclaration(n.cloneNode(r.name),void 0,void 0,n.getGeneratedNameForNode(e)))),t=re(t,TR(DL(n.createVariableStatement(void 0,n.createVariableDeclarationList(o,u>=2?2:0)),e),e))}}else r&&I_(e)&&(t=re(t,n.createVariableStatement(void 0,n.createVariableDeclarationList([TR(DL(n.createVariableDeclaration(n.cloneNode(r.name),void 0,void 0,n.getGeneratedNameForNode(e)),e),e)],u>=2?2:0))));return t=function(e,n){if(g.exportEquals)return e;const t=n.importClause;if(!t)return e;const r=new cG;t.name&&(e=q(e,r,t));const o=t.namedBindings;if(o)switch(o.kind){case 275:e=q(e,r,o);break;case 276:for(const n of o.elements)e=q(e,r,n,!0)}return e}(t,e),Te(t)}(e);case 272:return function(e){let t;dt.assert(Ih(e),"import= for internal module references should be handled in an earlier transformer."),2!==p?t=Mv(e,32)?re(t,TR(DL(n.createExpressionStatement($(e.name,B(e))),e),e)):re(t,TR(DL(n.createVariableStatement(void 0,n.createVariableDeclarationList([n.createVariableDeclaration(n.cloneNode(e.name),void 0,void 0,B(e))],u>=2?2:0)),e),e)):Mv(e,32)&&(t=re(t,TR(DL(n.createExpressionStatement($(n.getExportName(e),n.getLocalName(e))),e),e)));return t=function(e,n){if(g.exportEquals)return e;return q(e,new cG,n)}(t,e),Te(t)}(e);case 279:return function(e){if(!e.moduleSpecifier)return;const r=n.getGeneratedNameForNode(e);if(e.exportClause&&WN(e.exportClause)){const o=[];2!==p&&o.push(TR(DL(n.createVariableStatement(void 0,n.createVariableDeclarationList([n.createVariableDeclaration(r,void 0,void 0,B(e))])),e),e));for(const i of e.exportClause.elements){const s=i.propertyName||i.name,l=!!IS(a)&&!(2&rf(e))&&$p(s)?t().createImportDefaultHelper(r):r,c=11===s.kind?n.createElementAccessExpression(l,s):n.createPropertyAccessExpression(l,s);o.push(TR(DL(n.createExpressionStatement($(11===i.name.kind?n.cloneNode(i.name):n.getExportName(i),c,void 0,!0)),i),i))}return Te(o)}if(e.exportClause){const o=[];return o.push(TR(DL(n.createExpressionStatement($(n.cloneNode(e.exportClause.name),function(e,n){if(!IS(a)||2&rf(e))return n;if(rG(e))return t().createImportStarHelper(n);return n}(e,2!==p?B(e):Jp(e)||11===e.exportClause.name.kind?r:n.createIdentifier(vl(e.exportClause.name))))),e),e)),Te(o)}return TR(DL(n.createExpressionStatement(t().createExportStarHelper(2!==p?B(e):r)),e),e)}(e);case 278:return function(e){if(e.isExportEquals)return;return Y(n.createIdentifier("default"),vB(e.expression,P,qd),e,!0)}(e);default:return N(e)}}function N(t){switch(t.kind){case 244:return function(t){let r,o,i;if(Mv(t,32)){let e,a=!1;for(const r of t.declarationList.declarations)if(dD(r.name)&&TP(r.name))if(e||(e=bB(t.modifiers,Q,td)),r.initializer){o=re(o,n.updateVariableDeclaration(r,r.name,void 0,void 0,$(r.name,vB(r.initializer,P,qd))))}else o=re(o,r);else if(r.initializer)if(!xd(r.name)&&(AC(r.initializer)||EC(r.initializer)||OC(r.initializer))){const e=n.createAssignment(DL(n.createPropertyAccessExpression(n.createIdentifier("exports"),r.name),r.name),n.createIdentifier(Hg(r.name)));o=re(o,n.createVariableDeclaration(r.name,r.exclamationToken,r.type,vB(r.initializer,P,qd))),i=re(i,e),a=!0}else i=re(i,V(r));if(o&&(r=re(r,n.updateVariableStatement(t,e,n.updateVariableDeclarationList(t.declarationList,o)))),i){const e=TR(DL(n.createExpressionStatement(n.inlineExpressions(i)),t),t);a&&AR(e),r=re(r,e)}}else r=re(r,CB(t,P,e));return r=function(e,n){return j(e,n.declarationList,!1)}(r,t),Te(r)}(t);case 263:return function(t){let r;r=Mv(t,32)?re(r,TR(DL(n.createFunctionDeclaration(bB(t.modifiers,Q,td),t.asteriskToken,n.getDeclarationName(t,!0,!0),void 0,bB(t.parameters,P,DD),void 0,CB(t.body,P,e)),t),t)):re(r,CB(t,P,e));return Te(r)}(t);case 264:return function(t){let r;r=Mv(t,32)?re(r,TR(DL(n.createClassDeclaration(bB(t.modifiers,Q,vd),n.getDeclarationName(t,!0,!0),void 0,bB(t.heritageClauses,P,iM),bB(t.members,P,fd)),t),t)):re(r,CB(t,P,e));return r=K(r,t),Te(r)}(t);case 249:return w(t,!0);case 250:return function(t){if(mN(t.initializer)&&!(7&t.initializer.flags)){const r=j(void 0,t.initializer,!0);if(U(r)){const o=vB(t.initializer,L,ru),i=vB(t.expression,P,qd),a=IB(t.statement,N,e),s=JC(a)?n.updateBlock(a,[...r,...a.statements]):n.createBlock([...r,a],!0);return n.updateForInStatement(t,o,i,s)}}return n.updateForInStatement(t,vB(t.initializer,L,ru),vB(t.expression,P,qd),IB(t.statement,N,e))}(t);case 251:return function(t){if(mN(t.initializer)&&!(7&t.initializer.flags)){const r=j(void 0,t.initializer,!0),o=vB(t.initializer,L,ru),i=vB(t.expression,P,qd);let a=IB(t.statement,N,e);return U(r)&&(a=JC(a)?n.updateBlock(a,[...r,...a.statements]):n.createBlock([...r,a],!0)),n.updateForOfStatement(t,t.awaitModifier,o,i,a)}return n.updateForOfStatement(t,t.awaitModifier,vB(t.initializer,L,ru),vB(t.expression,P,qd),IB(t.statement,N,e))}(t);case 247:return function(t){return n.updateDoStatement(t,IB(t.statement,N,e),vB(t.expression,P,qd))}(t);case 248:return function(t){return n.updateWhileStatement(t,vB(t.expression,P,qd),IB(t.statement,N,e))}(t);case 257:return function(e){return n.updateLabeledStatement(e,e.label,vB(e.statement,N,_u,n.liftToBlock)??DL(n.createEmptyStatement(),e.statement))}(t);case 255:return function(e){return n.updateWithStatement(e,vB(e.expression,P,qd),dt.checkDefined(vB(e.statement,N,_u,n.liftToBlock)))}(t);case 246:return function(e){return n.updateIfStatement(e,vB(e.expression,P,qd),vB(e.thenStatement,N,_u,n.liftToBlock)??n.createBlock([]),vB(e.elseStatement,N,_u,n.liftToBlock))}(t);case 256:return function(e){return n.updateSwitchStatement(e,vB(e.expression,P,qd),dt.checkDefined(vB(e.caseBlock,N,SN)))}(t);case 270:return function(e){return n.updateCaseBlock(e,bB(e.clauses,N,xu))}(t);case 297:return function(e){return n.updateCaseClause(e,vB(e.expression,P,qd),bB(e.statements,N,_u))}(t);case 298:case 259:return function(n){return CB(n,N,e)}(t);case 300:return function(e){return n.updateCatchClause(e,e.variableDeclaration,dt.checkDefined(vB(e.block,N,JC)))}(t);case 242:return function(n){return n=CB(n,N,e),n}(t);default:return P(t)}}function M(r,o){if(!(276828160&r.transformFlags||(null==y?void 0:y.length)))return r;switch(r.kind){case 249:return w(r,!1);case 245:return function(e){return n.updateExpressionStatement(e,vB(e.expression,L,qd))}(r);case 218:return function(e,t){return n.updateParenthesizedExpression(e,vB(e.expression,t?L:P,qd))}(r,o);case 356:return function(e,t){return n.updatePartiallyEmittedExpression(e,vB(e.expression,t?L:P,qd))}(r,o);case 214:const s=r===fe(y);if(s&&y.shift(),fm(r)&&d.shouldTransformImportCall(_))return function(r,o){if(0===p&&u>=7)return CB(r,P,e);const s=WP(n,r,_,d,l,a),c=vB(fe(r.arguments),P,qd),f=!s||c&&qI(c)&&c.text===s.text?c&&o?qI(c)?LG(c,a):t().createRewriteRelativeImportExtensionsHelper(c):c:s,m=!!(16384&r.transformFlags);switch(a.module){case 2:return O(f,m);case 3:return function(e,t){if(b=!0,uG(e)){const r=Jc(e)?e:qI(e)?n.createStringLiteralFromNode(e):xR(DL(n.cloneNode(e),e),3072);return n.createConditionalExpression(n.createIdentifier("__syncRequire"),void 0,W(e),void 0,O(r,t))}{const r=n.createTempVariable(i);return n.createComma(n.createAssignment(r,e),n.createConditionalExpression(n.createIdentifier("__syncRequire"),void 0,W(r,!0),void 0,O(r,t)))}}(f??n.createVoidZero(),m);default:return W(f)}}(r,s);if(s)return function(e){return n.updateCallExpression(e,e.expression,void 0,bB(e.arguments,n=>n===e.arguments[0]?zu(n)?LG(n,a):t().createRewriteRelativeImportExtensionsHelper(n):P(n),qd))}(r);break;case 227:if(lb(r))return function(n,t){if(k(n.left))return wG(n,P,e,0,!t,G);return CB(n,P,e)}(r,o);break;case 225:case 226:return function(t,r){if((46===t.operator||47===t.operator)&&dD(t.operand)&&!Jc(t.operand)&&!TP(t.operand)&&!tT(t.operand)){const e=ee(t.operand);if(e){let o,a=vB(t.operand,P,qd);CC(t)?a=n.updatePrefixUnaryExpression(t,a):(a=n.updatePostfixUnaryExpression(t,a),r||(o=n.createTempVariable(i),a=n.createAssignment(o,a),DL(a,t)),a=n.createComma(a,n.cloneNode(t.operand)),DL(a,t));for(const n of e)v[cB(a)]=!0,a=$(n,a),DL(a,t);return o&&(v[cB(a)]=!0,a=n.createComma(a,o),DL(a,t)),a}}return CB(t,P,e)}(r,o)}return CB(r,P,e)}function P(e){return M(e,!1)}function L(e){return M(e,!0)}function k(e){if(hC(e))for(const n of e.properties)switch(n.kind){case 304:if(k(n.initializer))return!0;break;case 305:if(k(n.name))return!0;break;case 306:if(k(n.expression))return!0;break;case 175:case 178:case 179:return!1;default:dt.assertNever(n,"Unhandled object member kind")}else if(mC(e)){for(const n of e.elements)if(wC(n)){if(k(n.expression))return!0}else if(k(n))return!0}else if(dD(e))return c(ee(e))>(SP(e)?1:0);return!1}function w(t,r){if(r&&t.initializer&&mN(t.initializer)&&!(7&t.initializer.flags)){const o=j(void 0,t.initializer,!1);if(o){const i=[],a=vB(t.initializer,L,mN),s=n.createVariableStatement(void 0,a);i.push(s),ae(i,o);const l=vB(t.condition,P,qd),c=vB(t.incrementor,L,qd),d=IB(t.statement,r?N:P,e);return i.push(n.updateForStatement(t,void 0,l,c,d)),i}}return n.updateForStatement(t,vB(t.initializer,L,ru),vB(t.condition,P,qd),vB(t.incrementor,L,qd),IB(t.statement,r?N:P,e))}function O(e,r){const o=n.createUniqueName("resolve"),i=n.createUniqueName("reject"),s=[n.createParameterDeclaration(void 0,void 0,o),n.createParameterDeclaration(void 0,void 0,i)],l=n.createBlock([n.createExpressionStatement(n.createCallExpression(n.createIdentifier("require"),void 0,[n.createArrayLiteralExpression([e||n.createOmittedExpression()]),o,i]))]);let c;u>=2?c=n.createArrowFunction(void 0,void 0,s,void 0,void 0,l):(c=n.createFunctionExpression(void 0,void 0,void 0,void 0,s,void 0,l),r&&xR(c,16));const d=n.createNewExpression(n.createIdentifier("Promise"),void 0,[c]);return IS(a)?n.createCallExpression(n.createPropertyAccessExpression(d,n.createIdentifier("then")),void 0,[t().createImportStarCallbackHelper()]):d}function W(e,r){const o=e&&!pG(e)&&!r,i=n.createCallExpression(n.createPropertyAccessExpression(n.createIdentifier("Promise"),"resolve"),void 0,o?u>=2?[n.createTemplateExpression(n.createTemplateHead(""),[n.createTemplateSpan(e,n.createTemplateTail(""))])]:[n.createCallExpression(n.createPropertyAccessExpression(n.createStringLiteral(""),"concat"),void 0,[e])]:[]);let s=n.createCallExpression(n.createIdentifier("require"),void 0,o?[n.createIdentifier("s")]:e?[e]:[]);IS(a)&&(s=t().createImportStarHelper(s));const l=o?[n.createParameterDeclaration(void 0,void 0,"s")]:[];let c;c=u>=2?n.createArrowFunction(void 0,void 0,l,void 0,void 0,s):n.createFunctionExpression(void 0,void 0,void 0,void 0,l,void 0,n.createBlock([n.createReturnStatement(s)]));return n.createCallExpression(n.createPropertyAccessExpression(i,"then"),void 0,[c])}function z(e,n){return!IS(a)||2&rf(e)?n:oG(e)?t().createImportStarHelper(n):iG(e)?t().createImportDefaultHelper(n):n}function B(e){const t=WP(n,e,_,d,l,a),r=[];return t&&r.push(LG(t,a)),n.createCallExpression(n.createIdentifier("require"),void 0,r)}function G(e,t,r){const o=ee(e);if(o){let i=SP(e)?t:n.createAssignment(e,t);for(const e of o)xR(i,8),i=$(e,i,r);return i}return n.createAssignment(e,t)}function V(t){return xd(t.name)?wG(vB(t,P,oT),P,e,0,!1,G):n.createAssignment(DL(n.createPropertyAccessExpression(n.createIdentifier("exports"),t.name),t.name),t.initializer?vB(t.initializer,P,qd):n.createVoidZero())}function j(e,n,t){if(g.exportEquals)return e;for(const r of n.declarations)e=H(e,r,t);return e}function H(e,n,t){if(g.exportEquals)return e;if(xd(n.name))for(const r of n.name.elements)FC(r)||(e=H(e,r,t));else Jc(n.name)||fN(n)&&!n.initializer&&!t||(e=q(e,new cG,n));return e}function K(e,t){if(g.exportEquals)return e;const r=new cG;if(Mv(t,32)){e=J(e,r,Mv(t,2048)?n.createIdentifier("default"):n.getDeclarationName(t),n.getLocalName(t),t)}return t.name&&(e=q(e,r,t)),e}function q(e,t,r,o){const i=n.getDeclarationName(r),a=g.exportSpecifiers.get(i);if(a)for(const n of a)e=J(e,t,n.name,i,n.name,void 0,o);return e}function J(e,n,t,r,o,i,a){if(11!==t.kind){if(n.has(t))return e;n.set(t,!0)}return e=re(e,Y(t,r,o,i,a))}function X(){const e=n.createExpressionStatement(n.createCallExpression(n.createPropertyAccessExpression(n.createIdentifier("Object"),"defineProperty"),void 0,[n.createIdentifier("exports"),n.createStringLiteral("__esModule"),n.createObjectLiteralExpression([n.createPropertyAssignment("value",n.createTrue())])]));return xR(e,2097152),e}function Y(e,t,r,o,i){const a=DL(n.createExpressionStatement($(e,t,void 0,i)),r);return LP(a),o||xR(a,3072),a}function $(e,t,r,o){return DL(o?n.createCallExpression(n.createPropertyAccessExpression(n.createIdentifier("Object"),"defineProperty"),void 0,[n.createIdentifier("exports"),n.createStringLiteralFromNode(e),n.createObjectLiteralExpression([n.createPropertyAssignment("enumerable",n.createTrue()),n.createPropertyAssignment("get",n.createFunctionExpression(void 0,void 0,void 0,void 0,[],void 0,n.createBlock([n.createReturnStatement(t)])))])]):n.createAssignment(11===e.kind?n.createElementAccessExpression(n.createIdentifier("exports"),n.cloneNode(e)):n.createPropertyAccessExpression(n.createIdentifier("exports"),n.cloneNode(e)),t),r)}function Q(e){switch(e.kind){case 95:case 90:return}return e}function Z(e){var t,r;if(8192&tf(e)){const t=kP(_);return t?n.createPropertyAccessExpression(t,e):e}if((!Jc(e)||64&e.emitNode.autoGenerate.flags)&&!TP(e)){const o=l.getReferencedExportContainer(e,SP(e));if(o&&308===o.kind)return DL(n.createPropertyAccessExpression(n.createIdentifier("exports"),n.cloneNode(e)),e);const i=l.getReferencedImportDeclaration(e);if(i){if(RN(i))return DL(n.createPropertyAccessExpression(n.getGeneratedNameForNode(i.parent),n.createIdentifier("default")),e);if(wN(i)){const o=i.propertyName||i.name,a=n.getGeneratedNameForNode((null==(r=null==(t=i.parent)?void 0:t.parent)?void 0:r.parent)||i);return DL(11===o.kind?n.createElementAccessExpression(a,n.cloneNode(o)):n.createPropertyAccessExpression(a,n.cloneNode(o)),e)}}}return e}function ee(e){if(Jc(e)){if(Yc(e)){const n=null==g?void 0:g.exportSpecifiers.get(e);if(n){const e=[];for(const t of n)e.push(t.name);return e}}}else{const n=l.getReferencedImportDeclaration(e);if(n)return null==g?void 0:g.exportedBindings[ZB(n)];const t=new Set,r=l.getReferencedValueDeclarations(e);if(r){for(const e of r){const n=null==g?void 0:g.exportedBindings[ZB(e)];if(n)for(const e of n)t.add(e)}if(t.size)return Le(t)}}}}var NV={name:"typescript:dynamicimport-sync-require",scoped:!0,text:'\n var __syncRequire = typeof module === "object" && typeof module.exports === "object";'};function MV(e){const{factory:n,startLexicalEnvironment:t,endLexicalEnvironment:r,hoistVariableDeclaration:o}=e,i=e.getCompilerOptions(),a=e.getEmitResolver(),s=e.getEmitHost(),l=e.onSubstituteNode,c=e.onEmitNode;e.onSubstituteNode=function(e,t){if(function(e){return T&&e.id&&T[e.id]}(t=l(e,t)))return t;if(1===e)return function(e){switch(e.kind){case 80:return function(e){var t,r;if(8192&tf(e)){const t=kP(h);return t?n.createPropertyAccessExpression(t,e):e}if(!Jc(e)&&!TP(e)){const o=a.getReferencedImportDeclaration(e);if(o){if(RN(o))return DL(n.createPropertyAccessExpression(n.getGeneratedNameForNode(o.parent),n.createIdentifier("default")),e);if(wN(o)){const i=o.propertyName||o.name,a=n.getGeneratedNameForNode((null==(r=null==(t=o.parent)?void 0:t.parent)?void 0:r.parent)||o);return DL(11===i.kind?n.createElementAccessExpression(a,n.cloneNode(i)):n.createPropertyAccessExpression(a,n.cloneNode(i)),e)}}}return e}(e);case 227:return function(e){if(ob(e.operatorToken.kind)&&dD(e.left)&&(!Jc(e.left)||Yc(e.left))&&!TP(e.left)){const n=J(e.left);if(n){let t=e;for(const e of n)t=W(e,X(t));return t}}return e}(e);case 237:return function(e){if(mm(e))return n.createPropertyAccessExpression(y,n.createIdentifier("meta"));return e}(e)}return e}(t);if(4===e)return function(e){if(305===e.kind)return function(e){var t,r;const o=e.name;if(!Jc(o)&&!TP(o)){const i=a.getReferencedImportDeclaration(o);if(i){if(RN(i))return DL(n.createPropertyAssignment(n.cloneNode(o),n.createPropertyAccessExpression(n.getGeneratedNameForNode(i.parent),n.createIdentifier("default"))),e);if(wN(i)){const a=i.propertyName||i.name,s=n.getGeneratedNameForNode((null==(r=null==(t=i.parent)?void 0:t.parent)?void 0:r.parent)||i);return DL(n.createPropertyAssignment(n.cloneNode(o),11===a.kind?n.createElementAccessExpression(s,n.cloneNode(a)):n.createPropertyAccessExpression(s,n.cloneNode(a))),e)}}}return e}(e);return e}(t);return t},e.onEmitNode=function(e,n,t){if(308===n.kind){const r=ZB(n);h=n,_=u[r],g=p[r],T=f[r],y=m[r],T&&delete f[r],c(e,n,t),h=void 0,_=void 0,g=void 0,y=void 0,T=void 0}else c(e,n,t)},e.enableSubstitution(80),e.enableSubstitution(305),e.enableSubstitution(227),e.enableSubstitution(237),e.enableEmitNotification(308);const u=[],p=[],f=[],m=[];let h,_,g,y,v,b,T;return tG(e,function(o){if(o.isDeclarationFile||!(Tf(o,i)||8388608&o.transformFlags))return o;const l=ZB(o);h=o,b=o,_=u[l]=aG(e,o),g=n.createUniqueName("exports"),p[l]=g,y=m[l]=n.createUniqueName("context");const c=function(e){const t=new Map,r=[];for(const o of e){const e=WP(n,o,h,s,a,i);if(e){const n=e.text,i=t.get(n);void 0!==i?r[i].externalImports.push(o):(t.set(n,r.length),r.push({name:e,externalImports:[o]}))}}return r}(_.externalImports),d=function(e,o){const a=[];t();const s=US(i,"alwaysStrict")||dk(h),l=n.copyPrologue(e.statements,a,s,A);a.push(n.createVariableStatement(void 0,n.createVariableDeclarationList([n.createVariableDeclaration("__moduleName",void 0,void 0,n.createLogicalAnd(y,n.createPropertyAccessExpression(y,"id")))]))),vB(_.externalHelpersImportDeclaration,A,_u);const c=bB(e.statements,A,_u,l);ae(a,v),Fp(a,r());const d=function(e){if(!_.hasExportStarsToExportValues)return;if(!U(_.exportedNames)&&0===_.exportedFunctions.size&&0===_.exportSpecifiers.size){let n=!1;for(const e of _.externalImports)if(279===e.kind&&e.exportClause){n=!0;break}if(!n){const n=S(void 0);return e.push(n),n.name}}const t=[];if(_.exportedNames)for(const i of _.exportedNames)$p(i)||t.push(n.createPropertyAssignment(n.createStringLiteralFromNode(i),n.createTrue()));for(const i of _.exportedFunctions)Mv(i,2048)||(dt.assert(!!i.name),t.push(n.createPropertyAssignment(n.createStringLiteralFromNode(i.name),n.createTrue())));const r=n.createUniqueName("exportedNames");e.push(n.createVariableStatement(void 0,n.createVariableDeclarationList([n.createVariableDeclaration(r,void 0,void 0,n.createObjectLiteralExpression(t,!0))])));const o=S(r);return e.push(o),o.name}(a),u=2097152&e.transformFlags?n.createModifiersFromModifierFlags(1024):void 0,p=n.createObjectLiteralExpression([n.createPropertyAssignment("setters",E(d,o)),n.createPropertyAssignment("execute",n.createFunctionExpression(u,void 0,void 0,void 0,[],void 0,n.createBlock(c,!0)))],!0);return a.push(n.createReturnStatement(p)),n.createBlock(a,!0)}(o,c),x=n.createFunctionExpression(void 0,void 0,void 0,void 0,[n.createParameterDeclaration(void 0,void 0,g),n.createParameterDeclaration(void 0,void 0,y)],void 0,d),R=zP(n,o,s,i),I=n.createArrayLiteralExpression(D(c,e=>e.name)),C=xR(n.updateSourceFile(o,DL(n.createNodeArray([n.createExpressionStatement(n.createCallExpression(n.createPropertyAccessExpression(n.createIdentifier("System"),"register"),void 0,R?[R,I,x]:[I,x]))]),o.statements)),2048);i.outFile||YR(C,d,e=>!e.scoped);T&&(f[l]=T,T=void 0);return h=void 0,_=void 0,g=void 0,y=void 0,v=void 0,b=void 0,C});function S(e){const t=n.createUniqueName("exportStar"),r=n.createIdentifier("m"),o=n.createIdentifier("n"),i=n.createIdentifier("exports");let a=n.createStrictInequality(o,n.createStringLiteral("default"));return e&&(a=n.createLogicalAnd(a,n.createLogicalNot(n.createCallExpression(n.createPropertyAccessExpression(e,"hasOwnProperty"),void 0,[o])))),n.createFunctionDeclaration(void 0,void 0,t,void 0,[n.createParameterDeclaration(void 0,void 0,r)],void 0,n.createBlock([n.createVariableStatement(void 0,n.createVariableDeclarationList([n.createVariableDeclaration(i,void 0,void 0,n.createObjectLiteralExpression([]))])),n.createForInStatement(n.createVariableDeclarationList([n.createVariableDeclaration(o)]),r,n.createBlock([xR(n.createIfStatement(a,n.createExpressionStatement(n.createAssignment(n.createElementAccessExpression(i,o),n.createElementAccessExpression(r,o)))),1)])),n.createExpressionStatement(n.createCallExpression(g,void 0,[i]))],!0))}function E(e,t){const r=[];for(const o of t){const t=d(o.externalImports,e=>FP(n,e,h)),i=t?n.getGeneratedNameForNode(t):n.createUniqueName(""),a=[];for(const r of o.externalImports){const t=FP(n,r,h);switch(r.kind){case 273:if(!r.importClause)break;case 272:dt.assert(void 0!==t),a.push(n.createExpressionStatement(n.createAssignment(t,i))),Mv(r,32)&&a.push(n.createExpressionStatement(n.createCallExpression(g,void 0,[n.createStringLiteral(vl(t)),i])));break;case 279:if(dt.assert(void 0!==t),r.exportClause)if(WN(r.exportClause)){const e=[];for(const t of r.exportClause.elements)e.push(n.createPropertyAssignment(n.createStringLiteral(Xp(t.name)),n.createElementAccessExpression(i,n.createStringLiteral(Xp(t.propertyName||t.name)))));a.push(n.createExpressionStatement(n.createCallExpression(g,void 0,[n.createObjectLiteralExpression(e,!0)])))}else a.push(n.createExpressionStatement(n.createCallExpression(g,void 0,[n.createStringLiteral(Xp(r.exportClause.name)),i])));else a.push(n.createExpressionStatement(n.createCallExpression(e,void 0,[i])))}}r.push(n.createFunctionExpression(void 0,void 0,void 0,void 0,[n.createParameterDeclaration(void 0,void 0,i)],void 0,n.createBlock(a,!0)))}return n.createArrayLiteralExpression(r,!0)}function A(e){switch(e.kind){case 273:return function(e){let t;e.importClause&&o(FP(n,e,h));return Te(function(e,n){if(_.exportEquals)return e;const t=n.importClause;if(!t)return e;t.name&&(e=w(e,t));const r=t.namedBindings;if(r)switch(r.kind){case 275:e=w(e,r);break;case 276:for(const n of r.elements)e=w(e,n)}return e}(t,e))}(e);case 272:return function(e){let t;return dt.assert(Ih(e),"import= for internal module references should be handled in an earlier transformer."),o(FP(n,e,h)),Te(function(e,n){if(_.exportEquals)return e;return w(e,n)}(t,e))}(e);case 279:return function(e){return void dt.assertIsDefined(e)}(e);case 278:return function(e){if(e.isExportEquals)return;const t=vB(e.expression,j,qd);return F(n.createIdentifier("default"),t,!0)}(e);default:return z(e)}}function x(e){if(!I(e.declarationList))return vB(e,j,_u);let t;if(lm(e.declarationList)||sm(e.declarationList)){const r=bB(e.modifiers,q,vd),o=[];for(const t of e.declarationList.declarations)o.push(n.updateVariableDeclaration(t,n.getGeneratedNameForNode(t.name),void 0,void 0,C(t,!1)));const i=n.updateVariableDeclarationList(e.declarationList,o);t=re(t,n.updateVariableStatement(e,r,i))}else{let r;const o=Mv(e,32);for(const n of e.declarationList.declarations)n.initializer?r=re(r,C(n,o)):R(n);r&&(t=re(t,DL(n.createExpressionStatement(n.inlineExpressions(r)),e)))}return t=function(e,n,t){if(_.exportEquals)return e;for(const r of n.declarationList.declarations)(r.initializer||t)&&(e=L(e,r));return e}(t,e,!1),Te(t)}function R(e){if(xd(e.name))for(const n of e.name.elements)FC(n)||R(n);else o(n.cloneNode(e.name))}function I(e){return!(4194304&tf(e)||308!==b.kind&&7&fl(e).flags)}function C(n,t){const r=t?N:M;return xd(n.name)?wG(n,j,e,0,!1,r):n.initializer?r(n.name,vB(n.initializer,j,qd)):n.name}function N(e,n,t){return P(e,n,t,!0)}function M(e,n,t){return P(e,n,t,!1)}function P(e,t,r,i){return o(n.cloneNode(e)),i?W(e,X(DL(n.createAssignment(e,t),r))):X(DL(n.createAssignment(e,t),r))}function L(e,n,t){if(_.exportEquals)return e;if(xd(n.name))for(const r of n.name.elements)FC(r)||(e=L(e,r));else if(!Jc(n.name)){let t;e=w(e,n,t)}return e}function k(e,t){if(_.exportEquals)return e;let r;if(Mv(t,32)){const o=Mv(t,2048)?n.createStringLiteral("default"):t.name;e=O(e,o,n.getLocalName(t)),r=Hg(o)}return t.name&&(e=w(e,t,r)),e}function w(e,t,r){if(_.exportEquals)return e;const o=n.getDeclarationName(t),i=_.exportSpecifiers.get(o);if(i)for(const n of i)Xp(n.name)!==r&&(e=O(e,n.name,o));return e}function O(e,n,t,r){return e=re(e,F(n,t,r))}function F(e,t,r){const o=n.createExpressionStatement(W(e,t));return LP(o),r||xR(o,3072),o}function W(e,t){const r=dD(e)?n.createStringLiteralFromNode(e):e;return xR(t,3072|tf(t)),OR(n.createCallExpression(g,void 0,[r,t]),t)}function z(t){switch(t.kind){case 244:return x(t);case 263:return function(t){v=Mv(t,32)?re(v,n.updateFunctionDeclaration(t,bB(t.modifiers,q,vd),t.asteriskToken,n.getDeclarationName(t,!0,!0),void 0,bB(t.parameters,j,DD),void 0,vB(t.body,j,JC))):re(v,CB(t,j,e)),v=k(v,t)}(t);case 264:return function(e){let t;const r=n.getLocalName(e);return o(r),t=re(t,DL(n.createExpressionStatement(n.createAssignment(r,DL(n.createClassExpression(bB(e.modifiers,q,vd),e.name,void 0,bB(e.heritageClauses,j,iM),bB(e.members,j,fd)),e))),e)),t=k(t,e),Te(t)}(t);case 249:return B(t,!0);case 250:return function(t){const r=b;return b=t,t=n.updateForInStatement(t,G(t.initializer),vB(t.expression,j,qd),IB(t.statement,z,e)),b=r,t}(t);case 251:return function(t){const r=b;return b=t,t=n.updateForOfStatement(t,t.awaitModifier,G(t.initializer),vB(t.expression,j,qd),IB(t.statement,z,e)),b=r,t}(t);case 247:return function(t){return n.updateDoStatement(t,IB(t.statement,z,e),vB(t.expression,j,qd))}(t);case 248:return function(t){return n.updateWhileStatement(t,vB(t.expression,j,qd),IB(t.statement,z,e))}(t);case 257:return function(e){return n.updateLabeledStatement(e,e.label,vB(e.statement,z,_u,n.liftToBlock)??n.createExpressionStatement(n.createIdentifier("")))}(t);case 255:return function(e){return n.updateWithStatement(e,vB(e.expression,j,qd),dt.checkDefined(vB(e.statement,z,_u,n.liftToBlock)))}(t);case 246:return function(e){return n.updateIfStatement(e,vB(e.expression,j,qd),vB(e.thenStatement,z,_u,n.liftToBlock)??n.createBlock([]),vB(e.elseStatement,z,_u,n.liftToBlock))}(t);case 256:return function(e){return n.updateSwitchStatement(e,vB(e.expression,j,qd),dt.checkDefined(vB(e.caseBlock,z,SN)))}(t);case 270:return function(e){const t=b;return b=e,e=n.updateCaseBlock(e,bB(e.clauses,z,xu)),b=t,e}(t);case 297:return function(e){return n.updateCaseClause(e,vB(e.expression,j,qd),bB(e.statements,z,_u))}(t);case 298:case 259:return function(n){return CB(n,z,e)}(t);case 300:return function(e){const t=b;return b=e,e=n.updateCatchClause(e,e.variableDeclaration,dt.checkDefined(vB(e.block,z,JC))),b=t,e}(t);case 242:return function(n){const t=b;return b=n,n=CB(n,z,e),b=t,n}(t);default:return j(t)}}function B(t,r){const o=b;return b=t,t=n.updateForStatement(t,vB(t.initializer,r?G:H,ru),vB(t.condition,j,qd),vB(t.incrementor,H,qd),IB(t.statement,r?z:j,e)),b=o,t}function G(e){if(function(e){return mN(e)&&I(e)}(e)){let t;for(const n of e.declarations)t=re(t,C(n,!1)),n.initializer||R(n);return t?n.inlineExpressions(t):n.createOmittedExpression()}return vB(e,H,ru)}function V(t,r){if(!(276828160&t.transformFlags))return t;switch(t.kind){case 249:return B(t,!1);case 245:return function(e){return n.updateExpressionStatement(e,vB(e.expression,H,qd))}(t);case 218:return function(e,t){return n.updateParenthesizedExpression(e,vB(e.expression,t?H:j,qd))}(t,r);case 356:return function(e,t){return n.updatePartiallyEmittedExpression(e,vB(e.expression,t?H:j,qd))}(t,r);case 227:if(lb(t))return function(n,t){if(K(n.left))return wG(n,j,e,0,!t);return CB(n,j,e)}(t,r);break;case 214:if(fm(t))return function(e){const t=WP(n,e,h,s,a,i),r=vB(fe(e.arguments),j,qd),o=!t||r&&qI(r)&&r.text===t.text?r:t;return n.createCallExpression(n.createPropertyAccessExpression(y,n.createIdentifier("import")),void 0,o?[o]:[])}(t);break;case 225:case 226:return function(t,r){if((46===t.operator||47===t.operator)&&dD(t.operand)&&!Jc(t.operand)&&!TP(t.operand)&&!tT(t.operand)){const e=J(t.operand);if(e){let i,a=vB(t.operand,j,qd);CC(t)?a=n.updatePrefixUnaryExpression(t,a):(a=n.updatePostfixUnaryExpression(t,a),r||(i=n.createTempVariable(o),a=n.createAssignment(i,a),DL(a,t)),a=n.createComma(a,n.cloneNode(t.operand)),DL(a,t));for(const n of e)a=W(n,X(a));return i&&(a=n.createComma(a,i),DL(a,t)),a}}return CB(t,j,e)}(t,r)}return CB(t,j,e)}function j(e){return V(e,!1)}function H(e){return V(e,!0)}function K(e){if(sb(e,!0))return K(e.left);if(wC(e))return K(e.expression);if(hC(e))return U(e.properties,K);if(mC(e))return U(e.elements,K);if(lM(e))return K(e.name);if(sM(e))return K(e.initializer);if(dD(e)){const n=a.getReferencedExportContainer(e);return void 0!==n&&308===n.kind}return!1}function q(e){switch(e.kind){case 95:case 90:return}return e}function J(e){let t;const r=function(e){if(!Jc(e)){const n=a.getReferencedImportDeclaration(e);if(n)return n;const t=a.getReferencedValueDeclaration(e);if(t&&(null==_?void 0:_.exportedBindings[ZB(t)]))return t;const r=a.getReferencedValueDeclarations(e);if(r)for(const e of r)if(e!==t&&(null==_?void 0:_.exportedBindings[ZB(e)]))return e;return t}}(e);if(r){const o=a.getReferencedExportContainer(e,!1);o&&308===o.kind&&(t=re(t,n.getDeclarationName(r))),t=ae(t,null==_?void 0:_.exportedBindings[ZB(r)])}else if(Jc(e)&&Yc(e)){const n=null==_?void 0:_.exportSpecifiers.get(e);if(n){const e=[];for(const t of n)e.push(t.name);return e}}return t}function X(e){return void 0===T&&(T=[]),T[cB(e)]=!0,e}}function PV(e){const{factory:n,getEmitHelperFactory:t}=e,r=e.getEmitHost(),o=e.getEmitResolver(),i=e.getCompilerOptions(),a=SS(i),s=e.onEmitNode,l=e.onSubstituteNode;e.onEmitNode=function(e,n,t){uM(n)?((dk(n)||RS(i))&&i.importHelpers&&(u=new Map),p=n,s(e,n,t),p=void 0,u=void 0):s(e,n,t)},e.onSubstituteNode=function(e,t){if((t=l(e,t)).id&&c.has(t.id))return t;if(dD(t)&&8192&tf(t))return function(e){const t=p&&kP(p);if(t)return c.add(cB(e)),n.createPropertyAccessExpression(t,e);if(u){const t=vl(e);let r=u.get(t);return r||u.set(t,r=n.createUniqueName(t,48)),r}return e}(t);return t},e.enableEmitNotification(308),e.enableSubstitution(80);const c=new Set;let d,u,p,f;return tG(e,function(r){if(r.isDeclarationFile)return r;if(dk(r)||RS(i)){p=r,f=void 0,i.rewriteRelativeImportExtensions&&(4194304&p.flags||Lh(r))&&Px(r,!1,!1,e=>{zu(e.arguments[0])&&!A_(e.arguments[0].text,i)||(d=re(d,e))});let o=function(r){const o=OP(n,t(),r,i);if(o){const e=[],t=n.copyPrologue(r.statements,e);return ae(e,TB([o],m,_u)),ae(e,bB(r.statements,m,_u,t)),n.updateSourceFile(r,DL(n.createNodeArray(e),r.statements))}return CB(r,m,e)}(r);return qR(o,e.readEmitHelpers()),p=void 0,f&&(o=n.updateSourceFile(o,DL(n.createNodeArray(Wp(o.statements.slice(),f)),o.statements))),!dk(r)||200===ES(i)||U(o.statements,Zd)?o:n.updateSourceFile(o,DL(n.createNodeArray([...o.statements,lP(n)]),o.statements))}return r});function m(r){switch(r.kind){case 272:return ES(i)>=100?function(e){let t;return dt.assert(Ih(e),"import= for internal module references should be handled in an earlier transformer."),t=re(t,TR(DL(n.createVariableStatement(void 0,n.createVariableDeclarationList([n.createVariableDeclaration(n.cloneNode(e.name),void 0,void 0,h(e))],a>=2?2:0)),e),e)),t=function(e,t){Mv(t,32)&&(e=re(e,n.createExportDeclaration(void 0,t.isTypeOnly,n.createNamedExports([n.createExportSpecifier(!1,void 0,vl(t.name))]))));return e}(t,e),Te(t)}(r):void 0;case 278:return function(e){if(e.isExportEquals){if(200===ES(i)){return TR(n.createExpressionStatement(n.createAssignment(n.createPropertyAccessExpression(n.createIdentifier("module"),"exports"),e.expression)),e)}return}return e}(r);case 279:return function(e){const t=LG(e.moduleSpecifier,i);if(void 0!==i.module&&i.module>5||!e.exportClause||!LN(e.exportClause)||!e.moduleSpecifier)return e.moduleSpecifier&&t!==e.moduleSpecifier?n.updateExportDeclaration(e,e.modifiers,e.isTypeOnly,e.exportClause,t,e.attributes):e;const r=e.exportClause.name,o=n.getGeneratedNameForNode(r),a=n.createImportDeclaration(void 0,n.createImportClause(void 0,void 0,n.createNamespaceImport(o)),t,e.attributes);TR(a,e.exportClause);const s=Jp(e)?n.createExportDefault(o):n.createExportDeclaration(void 0,!1,n.createNamedExports([n.createExportSpecifier(!1,o,r)]));return TR(s,e),[a,s]}(r);case 273:return function(e){if(!i.rewriteRelativeImportExtensions)return e;const t=LG(e.moduleSpecifier,i);if(t===e.moduleSpecifier)return e;return n.updateImportDeclaration(e,e.modifiers,e.importClause,t,e.attributes)}(r);case 214:if(r===(null==d?void 0:d[0]))return function(e){return n.updateCallExpression(e,e.expression,e.typeArguments,[zu(e.arguments[0])?LG(e.arguments[0],i):t().createRewriteRelativeImportExtensionsHelper(e.arguments[0]),...e.arguments.slice(1)])}(d.shift());default:if((null==d?void 0:d.length)&&eT(r,d[0]))return CB(r,m,e)}return r}function h(e){const t=WP(n,e,dt.checkDefined(p),r,o,i),s=[];if(t&&s.push(LG(t,i)),200===ES(i))return n.createCallExpression(n.createIdentifier("require"),void 0,s);if(!f){const e=n.createUniqueName("_createRequire",48),t=n.createImportDeclaration(void 0,n.createImportClause(void 0,void 0,n.createNamedImports([n.createImportSpecifier(!1,n.createIdentifier("createRequire"),e)])),n.createStringLiteral("module"),void 0),r=n.createUniqueName("__require",48),o=n.createVariableStatement(void 0,n.createVariableDeclarationList([n.createVariableDeclaration(r,void 0,void 0,n.createCallExpression(n.cloneNode(e),void 0,[n.createPropertyAccessExpression(n.createMetaProperty(102,n.createIdentifier("meta")),n.createIdentifier("url"))]))],a>=2?2:0));f=[t,o]}const l=f[1].declarationList.declarations[0].name;return dt.assertNode(l,dD),n.createCallExpression(n.cloneNode(l),void 0,s)}}function LV(e){const n=e.onSubstituteNode,t=e.onEmitNode,r=PV(e),o=e.onSubstituteNode,i=e.onEmitNode;e.onSubstituteNode=n,e.onEmitNode=t;const a=CV(e),s=e.onSubstituteNode,l=e.onEmitNode,c=n=>e.getEmitHost().getEmitModuleFormatOfFile(n);let d;return e.onSubstituteNode=function(e,t){return uM(t)?(d=t,n(e,t)):d?c(d)>=5?o(e,t):s(e,t):n(e,t)},e.onEmitNode=function(e,n,r){uM(n)&&(d=n);if(!d)return t(e,n,r);if(c(d)>=5)return i(e,n,r);return l(e,n,r)},e.enableSubstitution(308),e.enableEmitNotification(308),function(n){return 308===n.kind?u(n):function(n){return e.factory.createBundle(D(n.sourceFiles,u))}(n)};function u(e){if(e.isDeclarationFile)return e;d=e;const n=(c(e)>=5?r:a)(e);return d=void 0,dt.assert(uM(n)),n}}function kV(e){return fN(e)||MD(e)||ND(e)||fC(e)||Cu(e)||Nu(e)||zD(e)||WD(e)||LD(e)||PD(e)||hN(e)||DD(e)||ID(e)||WC(e)||AN(e)||yN(e)||wD(e)||BD(e)||_C(e)||gC(e)||MC(e)||M_(e)}function wV(e){return Cu(e)||Nu(e)?function(n){const t=function(n){return Pv(e)?n.errorModuleName?2===n.accessibility?fa.Public_static_property_0_of_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:fa.Public_static_property_0_of_exported_class_has_or_is_using_name_1_from_private_module_2:fa.Public_static_property_0_of_exported_class_has_or_is_using_private_name_1:264===e.parent.kind?n.errorModuleName?2===n.accessibility?fa.Public_property_0_of_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:fa.Public_property_0_of_exported_class_has_or_is_using_name_1_from_private_module_2:fa.Public_property_0_of_exported_class_has_or_is_using_private_name_1:n.errorModuleName?fa.Property_0_of_exported_interface_has_or_is_using_name_1_from_private_module_2:fa.Property_0_of_exported_interface_has_or_is_using_private_name_1}(n);return void 0!==t?{diagnosticMessage:t,errorNode:e,typeName:e.name}:void 0}:PD(e)||LD(e)?function(n){const t=function(n){return Pv(e)?n.errorModuleName?2===n.accessibility?fa.Public_static_method_0_of_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:fa.Public_static_method_0_of_exported_class_has_or_is_using_name_1_from_private_module_2:fa.Public_static_method_0_of_exported_class_has_or_is_using_private_name_1:264===e.parent.kind?n.errorModuleName?2===n.accessibility?fa.Public_method_0_of_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:fa.Public_method_0_of_exported_class_has_or_is_using_name_1_from_private_module_2:fa.Public_method_0_of_exported_class_has_or_is_using_private_name_1:n.errorModuleName?fa.Method_0_of_exported_interface_has_or_is_using_name_1_from_private_module_2:fa.Method_0_of_exported_interface_has_or_is_using_private_name_1}(n);return void 0!==t?{diagnosticMessage:t,errorNode:e,typeName:e.name}:void 0}:OV(e)}function OV(e){return fN(e)||MD(e)||ND(e)||_C(e)||gC(e)||MC(e)||fC(e)||wD(e)?n:Cu(e)||Nu(e)?function(n){let t;t=179===e.kind?Pv(e)?n.errorModuleName?fa.Parameter_type_of_public_static_setter_0_from_exported_class_has_or_is_using_name_1_from_private_module_2:fa.Parameter_type_of_public_static_setter_0_from_exported_class_has_or_is_using_private_name_1:n.errorModuleName?fa.Parameter_type_of_public_setter_0_from_exported_class_has_or_is_using_name_1_from_private_module_2:fa.Parameter_type_of_public_setter_0_from_exported_class_has_or_is_using_private_name_1:Pv(e)?n.errorModuleName?2===n.accessibility?fa.Return_type_of_public_static_getter_0_from_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:fa.Return_type_of_public_static_getter_0_from_exported_class_has_or_is_using_name_1_from_private_module_2:fa.Return_type_of_public_static_getter_0_from_exported_class_has_or_is_using_private_name_1:n.errorModuleName?2===n.accessibility?fa.Return_type_of_public_getter_0_from_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:fa.Return_type_of_public_getter_0_from_exported_class_has_or_is_using_name_1_from_private_module_2:fa.Return_type_of_public_getter_0_from_exported_class_has_or_is_using_private_name_1;return{diagnosticMessage:t,errorNode:e.name,typeName:e.name}}:zD(e)||WD(e)||LD(e)||PD(e)||hN(e)||BD(e)?function(n){let t;switch(e.kind){case 181:t=n.errorModuleName?fa.Return_type_of_constructor_signature_from_exported_interface_has_or_is_using_name_0_from_private_module_1:fa.Return_type_of_constructor_signature_from_exported_interface_has_or_is_using_private_name_0;break;case 180:t=n.errorModuleName?fa.Return_type_of_call_signature_from_exported_interface_has_or_is_using_name_0_from_private_module_1:fa.Return_type_of_call_signature_from_exported_interface_has_or_is_using_private_name_0;break;case 182:t=n.errorModuleName?fa.Return_type_of_index_signature_from_exported_interface_has_or_is_using_name_0_from_private_module_1:fa.Return_type_of_index_signature_from_exported_interface_has_or_is_using_private_name_0;break;case 175:case 174:t=Pv(e)?n.errorModuleName?2===n.accessibility?fa.Return_type_of_public_static_method_from_exported_class_has_or_is_using_name_0_from_external_module_1_but_cannot_be_named:fa.Return_type_of_public_static_method_from_exported_class_has_or_is_using_name_0_from_private_module_1:fa.Return_type_of_public_static_method_from_exported_class_has_or_is_using_private_name_0:264===e.parent.kind?n.errorModuleName?2===n.accessibility?fa.Return_type_of_public_method_from_exported_class_has_or_is_using_name_0_from_external_module_1_but_cannot_be_named:fa.Return_type_of_public_method_from_exported_class_has_or_is_using_name_0_from_private_module_1:fa.Return_type_of_public_method_from_exported_class_has_or_is_using_private_name_0:n.errorModuleName?fa.Return_type_of_method_from_exported_interface_has_or_is_using_name_0_from_private_module_1:fa.Return_type_of_method_from_exported_interface_has_or_is_using_private_name_0;break;case 263:t=n.errorModuleName?2===n.accessibility?fa.Return_type_of_exported_function_has_or_is_using_name_0_from_external_module_1_but_cannot_be_named:fa.Return_type_of_exported_function_has_or_is_using_name_0_from_private_module_1:fa.Return_type_of_exported_function_has_or_is_using_private_name_0;break;default:return dt.fail("This is unknown kind for signature: "+e.kind)}return{diagnosticMessage:t,errorNode:e.name||e}}:DD(e)?tl(e,e.parent)&&Mv(e.parent,2)?n:function(n){const t=function(n){switch(e.parent.kind){case 177:return n.errorModuleName?2===n.accessibility?fa.Parameter_0_of_constructor_from_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:fa.Parameter_0_of_constructor_from_exported_class_has_or_is_using_name_1_from_private_module_2:fa.Parameter_0_of_constructor_from_exported_class_has_or_is_using_private_name_1;case 181:case 186:return n.errorModuleName?fa.Parameter_0_of_constructor_signature_from_exported_interface_has_or_is_using_name_1_from_private_module_2:fa.Parameter_0_of_constructor_signature_from_exported_interface_has_or_is_using_private_name_1;case 180:return n.errorModuleName?fa.Parameter_0_of_call_signature_from_exported_interface_has_or_is_using_name_1_from_private_module_2:fa.Parameter_0_of_call_signature_from_exported_interface_has_or_is_using_private_name_1;case 182:return n.errorModuleName?fa.Parameter_0_of_index_signature_from_exported_interface_has_or_is_using_name_1_from_private_module_2:fa.Parameter_0_of_index_signature_from_exported_interface_has_or_is_using_private_name_1;case 175:case 174:return Pv(e.parent)?n.errorModuleName?2===n.accessibility?fa.Parameter_0_of_public_static_method_from_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:fa.Parameter_0_of_public_static_method_from_exported_class_has_or_is_using_name_1_from_private_module_2:fa.Parameter_0_of_public_static_method_from_exported_class_has_or_is_using_private_name_1:264===e.parent.parent.kind?n.errorModuleName?2===n.accessibility?fa.Parameter_0_of_public_method_from_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:fa.Parameter_0_of_public_method_from_exported_class_has_or_is_using_name_1_from_private_module_2:fa.Parameter_0_of_public_method_from_exported_class_has_or_is_using_private_name_1:n.errorModuleName?fa.Parameter_0_of_method_from_exported_interface_has_or_is_using_name_1_from_private_module_2:fa.Parameter_0_of_method_from_exported_interface_has_or_is_using_private_name_1;case 263:case 185:return n.errorModuleName?2===n.accessibility?fa.Parameter_0_of_exported_function_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:fa.Parameter_0_of_exported_function_has_or_is_using_name_1_from_private_module_2:fa.Parameter_0_of_exported_function_has_or_is_using_private_name_1;case 179:case 178:return n.errorModuleName?2===n.accessibility?fa.Parameter_0_of_accessor_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:fa.Parameter_0_of_accessor_has_or_is_using_name_1_from_private_module_2:fa.Parameter_0_of_accessor_has_or_is_using_private_name_1;default:return dt.fail(`Unknown parent for parameter: ${dt.formatSyntaxKind(e.parent.kind)}`)}}(n);return void 0!==t?{diagnosticMessage:t,errorNode:e,typeName:e.name}:void 0}:ID(e)?function(){let n;switch(e.parent.kind){case 264:n=fa.Type_parameter_0_of_exported_class_has_or_is_using_private_name_1;break;case 265:n=fa.Type_parameter_0_of_exported_interface_has_or_is_using_private_name_1;break;case 201:n=fa.Type_parameter_0_of_exported_mapped_object_type_is_using_private_name_1;break;case 186:case 181:n=fa.Type_parameter_0_of_constructor_signature_from_exported_interface_has_or_is_using_private_name_1;break;case 180:n=fa.Type_parameter_0_of_call_signature_from_exported_interface_has_or_is_using_private_name_1;break;case 175:case 174:n=Pv(e.parent)?fa.Type_parameter_0_of_public_static_method_from_exported_class_has_or_is_using_private_name_1:264===e.parent.parent.kind?fa.Type_parameter_0_of_public_method_from_exported_class_has_or_is_using_private_name_1:fa.Type_parameter_0_of_method_from_exported_interface_has_or_is_using_private_name_1;break;case 185:case 263:n=fa.Type_parameter_0_of_exported_function_has_or_is_using_private_name_1;break;case 196:n=fa.Extends_clause_for_inferred_type_0_has_or_is_using_private_name_1;break;case 266:n=fa.Type_parameter_0_of_exported_type_alias_has_or_is_using_private_name_1;break;default:return dt.fail("This is unknown parent for type parameter: "+e.parent.kind)}return{diagnosticMessage:n,errorNode:e,typeName:e.name}}:WC(e)?function(){let n;n=_N(e.parent.parent)?iM(e.parent)&&119===e.parent.token?fa.Implements_clause_of_exported_class_0_has_or_is_using_private_name_1:e.parent.parent.name?fa.extends_clause_of_exported_class_0_has_or_is_using_private_name_1:fa.extends_clause_of_exported_class_has_or_is_using_private_name_0:fa.extends_clause_of_exported_interface_0_has_or_is_using_private_name_1;return{diagnosticMessage:n,errorNode:e,typeName:Dl(e.parent.parent)}}:AN(e)?function(){return{diagnosticMessage:fa.Import_declaration_0_is_using_private_name_1,errorNode:e,typeName:e.name}}:yN(e)||M_(e)?function(n){return{diagnosticMessage:n.errorModuleName?fa.Exported_type_alias_0_has_or_is_using_private_name_1_from_module_2:fa.Exported_type_alias_0_has_or_is_using_private_name_1,errorNode:M_(e)?dt.checkDefined(e.typeExpression):e.type,typeName:M_(e)?Dl(e):e.name}}:dt.assertNever(e,`Attempted to set a declaration diagnostic context for unhandled node kind: ${dt.formatSyntaxKind(e.kind)}`);function n(n){const t=function(n){return 261===e.kind||209===e.kind?n.errorModuleName?2===n.accessibility?fa.Exported_variable_0_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:fa.Exported_variable_0_has_or_is_using_name_1_from_private_module_2:fa.Exported_variable_0_has_or_is_using_private_name_1:173===e.kind||212===e.kind||213===e.kind||227===e.kind||172===e.kind||170===e.kind&&Mv(e.parent,2)?Pv(e)?n.errorModuleName?2===n.accessibility?fa.Public_static_property_0_of_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:fa.Public_static_property_0_of_exported_class_has_or_is_using_name_1_from_private_module_2:fa.Public_static_property_0_of_exported_class_has_or_is_using_private_name_1:264===e.parent.kind||170===e.kind?n.errorModuleName?2===n.accessibility?fa.Public_property_0_of_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:fa.Public_property_0_of_exported_class_has_or_is_using_name_1_from_private_module_2:fa.Public_property_0_of_exported_class_has_or_is_using_private_name_1:n.errorModuleName?fa.Property_0_of_exported_interface_has_or_is_using_name_1_from_private_module_2:fa.Property_0_of_exported_interface_has_or_is_using_private_name_1:void 0}(n);return void 0!==t?{diagnosticMessage:t,errorNode:e,typeName:e.name}:void 0}}function FV(e){const n={220:fa.Add_a_return_type_to_the_function_expression,219:fa.Add_a_return_type_to_the_function_expression,175:fa.Add_a_return_type_to_the_method,178:fa.Add_a_return_type_to_the_get_accessor_declaration,179:fa.Add_a_type_to_parameter_of_the_set_accessor_declaration,263:fa.Add_a_return_type_to_the_function_declaration,181:fa.Add_a_return_type_to_the_function_declaration,170:fa.Add_a_type_annotation_to_the_parameter_0,261:fa.Add_a_type_annotation_to_the_variable_0,173:fa.Add_a_type_annotation_to_the_property_0,172:fa.Add_a_type_annotation_to_the_property_0,278:fa.Move_the_expression_in_default_export_to_a_variable_and_add_a_type_annotation_to_it},t={219:fa.Function_must_have_an_explicit_return_type_annotation_with_isolatedDeclarations,263:fa.Function_must_have_an_explicit_return_type_annotation_with_isolatedDeclarations,220:fa.Function_must_have_an_explicit_return_type_annotation_with_isolatedDeclarations,175:fa.Method_must_have_an_explicit_return_type_annotation_with_isolatedDeclarations,181:fa.Method_must_have_an_explicit_return_type_annotation_with_isolatedDeclarations,178:fa.At_least_one_accessor_must_have_an_explicit_type_annotation_with_isolatedDeclarations,179:fa.At_least_one_accessor_must_have_an_explicit_type_annotation_with_isolatedDeclarations,170:fa.Parameter_must_have_an_explicit_type_annotation_with_isolatedDeclarations,261:fa.Variable_must_have_an_explicit_type_annotation_with_isolatedDeclarations,173:fa.Property_must_have_an_explicit_type_annotation_with_isolatedDeclarations,172:fa.Property_must_have_an_explicit_type_annotation_with_isolatedDeclarations,168:fa.Computed_property_names_on_class_or_object_literals_cannot_be_inferred_with_isolatedDeclarations,306:fa.Objects_that_contain_spread_assignments_can_t_be_inferred_with_isolatedDeclarations,305:fa.Objects_that_contain_shorthand_properties_can_t_be_inferred_with_isolatedDeclarations,210:fa.Only_const_arrays_can_be_inferred_with_isolatedDeclarations,278:fa.Default_exports_can_t_be_inferred_with_isolatedDeclarations,231:fa.Arrays_with_spread_elements_can_t_inferred_with_isolatedDeclarations};return function(r){if(ml(r,iM))return Vf(r,fa.Extends_clause_can_t_contain_an_expression_with_isolatedDeclarations);if((Cm(r)||HD(r.parent))&&(rd(r)||db(r)))return function(e){const n=Vf(e,fa.Type_containing_private_name_0_can_t_be_used_with_isolatedDeclarations,Zp(e,!1));return i(e,n),n}(r);switch(dt.type(r),r.kind){case 178:case 179:return o(r);case 168:case 305:case 306:return function(e){const n=Vf(e,t[e.kind]);return i(e,n),n}(r);case 210:case 231:return function(e){const n=Vf(e,t[e.kind]);return i(e,n),n}(r);case 175:case 181:case 219:case 220:case 263:return function(e){const r=Vf(e,t[e.kind]);return i(e,r),dA(r,Vf(e,n[e.kind])),r}(r);case 209:return function(e){return Vf(e,fa.Binding_elements_can_t_be_exported_directly_with_isolatedDeclarations)}(r);case 173:case 261:return function(e){const r=Vf(e,t[e.kind]),o=Zp(e.name,!1);return dA(r,Vf(e,n[e.kind],o)),r}(r);case 170:return function(r){if(Cu(r.parent))return o(r.parent);const i=e.requiresAddingImplicitUndefined(r,r.parent);if(!i&&r.initializer)return a(r.initializer);const s=i?fa.Declaration_emit_for_this_parameter_requires_implicitly_adding_undefined_to_its_type_This_is_not_supported_with_isolatedDeclarations:t[r.kind],l=Vf(r,s),c=Zp(r.name,!1);return dA(l,Vf(r,n[r.kind],c)),l}(r);case 304:return a(r.initializer);case 232:return function(e){return a(e,fa.Inference_from_class_expressions_is_not_supported_with_isolatedDeclarations)}(r);default:return a(r)}};function r(e){const n=ml(e,e=>ON(e)||_u(e)||fN(e)||MD(e)||DD(e));if(n)return ON(n)?n:aN(n)?ml(n,e=>ld(e)&&!wD(e)):_u(n)?void 0:n}function o(e){const{getAccessor:r,setAccessor:o}=_v(e.symbol.declarations,e),i=Vf((Cu(e)?e.parameters[0]:e)??e,t[e.kind]);return o&&dA(i,Vf(o,n[o.kind])),r&&dA(i,Vf(r,n[r.kind])),i}function i(e,t){const o=r(e);if(o){const e=ON(o)||!o.name?"":Zp(o.name,!1);dA(t,Vf(o,n[o.kind],e))}return t}function a(e,o){const i=r(e);let a;if(i){const r=ON(i)||!i.name?"":Zp(i.name,!1);i===ml(e.parent,e=>ON(e)||(_u(e)?"quit":!SC(e)&&!TC(e)&&!zC(e)))?(a=Vf(e,o??t[i.kind]),dA(a,Vf(i,n[i.kind],r))):(a=Vf(e,o??fa.Expression_type_can_t_be_inferred_with_isolatedDeclarations),dA(a,Vf(i,n[i.kind],r)),dA(a,Vf(e,fa.Add_satisfies_and_a_type_assertion_to_this_expression_satisfies_T_as_T_to_make_the_type_explicit)))}else a=Vf(e,o??fa.Expression_type_can_t_be_inferred_with_isolatedDeclarations);return a}}function WV(e,n,t){const r=e.getCompilerOptions();return S(x(Qy(e,t),wh),t)?ZV(n,e,vR,r,[t],[GV],!1).diagnostics:void 0}var zV=531469,BV=8;function GV(e){const n=()=>dt.fail("Diagnostic emitted without context");let t,r,o,i,a=n,l=!0,u=!1,p=!1,f=!1,m=!1;const{factory:h}=e,_=e.getEmitHost();let g=()=>{};const y={trackSymbol:function(e,n,t){if(262144&e.flags)return!1;return W(I.isSymbolAccessible(e,n,t,!0))},reportInaccessibleThisError:function(){(v||b)&&e.addDiagnostic(Vf(v||b,fa.The_inferred_type_of_0_references_an_inaccessible_1_type_A_type_annotation_is_necessary,z(),"this"))},reportInaccessibleUniqueSymbolError:function(){(v||b)&&e.addDiagnostic(Vf(v||b,fa.The_inferred_type_of_0_references_an_inaccessible_1_type_A_type_annotation_is_necessary,z(),"unique symbol"))},reportCyclicStructureError:function(){(v||b)&&e.addDiagnostic(Vf(v||b,fa.The_inferred_type_of_0_references_a_type_with_a_cyclic_structure_which_cannot_be_trivially_serialized_A_type_annotation_is_necessary,z()))},reportPrivateInBaseOfClassExpression:function(n){(v||b)&&e.addDiagnostic(dA(Vf(v||b,fa.Property_0_of_exported_anonymous_class_type_may_not_be_private_or_protected,n),...fN((v||b).parent)?[Vf(v||b,fa.Add_a_type_annotation_to_the_variable_0,z())]:[]))},reportLikelyUnsafeImportRequiredError:function(n){(v||b)&&e.addDiagnostic(Vf(v||b,fa.The_inferred_type_of_0_cannot_be_named_without_a_reference_to_1_This_is_likely_not_portable_A_type_annotation_is_necessary,z(),n))},reportTruncationError:function(){(v||b)&&e.addDiagnostic(Vf(v||b,fa.The_inferred_type_of_this_node_exceeds_the_maximum_length_the_compiler_will_serialize_An_explicit_type_annotation_is_needed))},moduleResolverHost:_,reportNonlocalAugmentation:function(n,t,r){var o;const i=null==(o=t.declarations)?void 0:o.find(e=>Sp(e)===n),a=x(r.declarations,e=>Sp(e)!==n);if(i&&a)for(const s of a)e.addDiagnostic(dA(Vf(s,fa.Declaration_augments_declaration_in_another_file_This_cannot_be_serialized),Vf(i,fa.This_is_the_declaration_being_augmented_Consider_moving_the_augmenting_declaration_into_the_same_file)))},reportNonSerializableProperty:function(n){(v||b)&&e.addDiagnostic(Vf(v||b,fa.The_type_of_this_node_cannot_be_serialized_because_its_property_0_cannot_be_serialized,n))},reportInferenceFallback:O,pushErrorFallbackNode(e){const n=b,t=g;g=()=>{g=t,b=n},b=e},popErrorFallbackNode(){g()}};let v,b,T,E,A,R;const I=e.getEmitResolver(),C=e.getCompilerOptions(),N=FV(I),{stripInternal:L,isolatedDeclarations:k}=C;return function(s){if(308===s.kind&&s.isDeclarationFile)return s;if(309===s.kind){u=!0,E=[],A=[],R=[];let c=!1;const d=h.createBundle(D(s.sourceFiles,s=>{if(s.isDeclarationFile)return;if(c=c||s.hasNoDefaultLib,T=s,t=s,r=void 0,i=!1,o=new Map,a=n,f=!1,m=!1,g(s),rm(s)||om(s)){p=!1,l=!1;const n=Ph(s)?h.createNodeArray(B(s)):bB(s.statements,ce,_u);return h.updateSourceFile(s,[h.createModuleDeclaration([h.createModifier(138)],h.createStringLiteral(Gy(e.getEmitHost(),s)),h.createModuleBlock(DL(h.createNodeArray(ae(n)),s.statements)))],!0,[],[],!1,[])}l=!0;const d=Ph(s)?h.createNodeArray(B(s)):bB(s.statements,ce,_u);return h.updateSourceFile(s,ae(d),!0,[],[],!1,[])})),y=Mi(Fi(aj(s,_,!0).declarationFilePath));return d.syntheticFileReferences=x(y),d.syntheticTypeReferences=v(),d.syntheticLibReferences=b(),d.hasNoDefaultLib=c,d}let c;if(l=!0,f=!1,m=!1,t=s,T=s,a=n,u=!1,p=!1,i=!1,r=void 0,o=new Map,E=[],A=[],R=[],g(T),Ph(T))c=h.createNodeArray(B(s));else{const e=bB(s.statements,ce,_u);c=DL(h.createNodeArray(ae(e)),s.statements),dk(s)&&(!p||f&&!m)&&(c=DL(h.createNodeArray([...c,lP(h)]),c))}const d=Mi(Fi(aj(s,_,!0).declarationFilePath));return h.updateSourceFile(s,c,!0,x(d),v(),s.hasNoDefaultLib,b());function g(e){E=K(E,D(e.referencedFiles,n=>[e,n])),A=K(A,e.typeReferenceDirectives),R=K(R,e.libReferenceDirectives)}function y(e){const n={...e};return n.pos=-1,n.end=-1,n}function v(){return F(A,e=>{if(e.preserve)return y(e)})}function b(){return F(R,e=>{if(e.preserve)return y(e)})}function x(e){return F(E,([n,t])=>{if(!t.preserve)return;const r=_.getSourceFileFromReference(n,t);if(!r)return;let o;if(r.isDeclarationFile)o=r.fileName;else{if(u&&S(s.sourceFiles,r))return;const e=aj(r,_,!0);o=e.declarationFilePath||e.jsFilePath||r.fileName}if(!o)return;const i=ca(e,o,_.getCurrentDirectory(),_.getCanonicalFileName,!1),a=y(t);return a.fileName=i,a})}};function w(n){I.getPropertiesOfContainerFunction(n).forEach(n=>{if(fx(n.valueDeclaration)){const t=MC(n.valueDeclaration)?n.valueDeclaration.left:n.valueDeclaration;e.addDiagnostic(Vf(t,fa.Assigning_properties_to_functions_without_declaring_them_is_not_supported_with_isolatedDeclarations_Add_an_explicit_declaration_for_the_properties_assigned_to_this_function))}})}function O(n){k&&!Ph(T)&&Sp(n)===T&&(fN(n)&&I.isExpandoFunctionDeclaration(n)?w(n):e.addDiagnostic(N(n)))}function W(n){if(0===n.accessibility){if(n.aliasesToMakeVisible)if(r)for(const e of n.aliasesToMakeVisible)se(r,e);else r=n.aliasesToMakeVisible}else if(3!==n.accessibility){const t=a(n);if(t)return t.typeName?e.addDiagnostic(Vf(n.errorNode||t.errorNode,t.diagnosticMessage,Zp(t.typeName),n.errorSymbolName,n.errorModuleName)):e.addDiagnostic(Vf(n.errorNode||t.errorNode,t.diagnosticMessage,n.errorSymbolName,n.errorModuleName)),!0}return!1}function z(){return v?Of(v):b&&Dl(b)?Of(Dl(b)):b&&ON(b)?b.isExportEquals?"export=":"default":"(Missing)"}function B(e){const n=a;a=n=>n.errorNode&&kV(n.errorNode)?OV(n.errorNode)(n):{diagnosticMessage:n.errorModuleName?fa.Declaration_emit_for_this_file_requires_using_private_name_0_from_module_1_An_explicit_type_annotation_may_unblock_declaration_emit:fa.Declaration_emit_for_this_file_requires_using_private_name_0_An_explicit_type_annotation_may_unblock_declaration_emit,errorNode:n.errorNode||e};const t=I.getDeclarationStatementsForSourceFile(e,zV,BV,y);return a=n,t}function G(e){return 80===e.kind?e:208===e.kind?h.updateArrayBindingPattern(e,bB(e.elements,n,Id)):h.updateObjectBindingPattern(e,bB(e.elements,n,fC));function n(e){return 233===e.kind?e:(e.propertyName&&RD(e.propertyName)&&db(e.propertyName.expression)&&ee(e.propertyName.expression,t),h.updateBindingElement(e,e.dotDotDotToken,e.propertyName,G(e.name),void 0))}}function V(e,n){let t;i||(t=a,a=OV(e));const r=h.updateParameterDeclaration(e,function(e,n,t,r){return e.createModifiersFromModifierFlags(VV(n,t,r))}(h,e,n),e.dotDotDotToken,G(e.name),I.isOptionalParameter(e)?e.questionToken||h.createToken(58):void 0,q(e,!0),H(e));return i||(a=t),r}function j(e){return jV(e)&&!!e.initializer&&I.isLiteralConstDeclaration(_l(e))}function H(e){if(j(e)){return Ax(xx(e.initializer))||O(e),I.createLiteralConstValue(_l(e,jV),y)}}function q(e,n){if(!n&&Nv(e,2))return;if(j(e))return;if(!ON(e)&&!fC(e)&&e.type&&(!DD(e)||!I.requiresAddingImplicitUndefined(e,t)))return vB(e.type,le,Ed);const r=v;let o,s;return v=e.name,i||(o=a,kV(e)&&(a=OV(e))),Rx(e)?s=I.createTypeOfDeclaration(e,t,zV,BV,y):ad(e)?s=I.createReturnTypeOfSignatureDeclaration(e,t,zV,BV,y):dt.assertNever(e),v=r,i||(a=o),s??h.createKeywordTypeNode(133)}function J(e){switch((e=_l(e)).kind){case 263:case 268:case 265:case 264:case 266:case 267:return!I.isDeclarationVisible(e);case 261:return!X(e);case 272:case 273:case 279:case 278:return!1;case 176:return!0}return!1}function X(e){return!FC(e)&&(xd(e.name)?U(e.name.elements,X):I.isDeclarationVisible(e))}function Y(e,n,t){if(Nv(e,2))return h.createNodeArray();const r=D(n,e=>V(e,t));return r?h.createNodeArray(r,n.hasTrailingComma):h.createNodeArray()}function $(e,n){let t;if(!n){const n=dv(e);n&&(t=[V(n)])}if(FD(e)){let r;if(!n){const n=lv(e);n&&(r=V(n))}r||(r=h.createParameterDeclaration(void 0,void 0,"value")),t=re(t,r)}return h.createNodeArray(t||s)}function Q(e,n){return Nv(e,2)?void 0:bB(n,le,ID)}function Z(e){return uM(e)||yN(e)||bN(e)||_N(e)||gN(e)||ad(e)||BD(e)||aC(e)}function ee(e,n){W(I.isEntityNameVisible(e,n))}function te(e,n){return Mu(e)&&Mu(n)&&(e.jsDoc=n.jsDoc),OR(e,wR(n))}function oe(n,t){if(t){if(p=p||268!==n.kind&&206!==n.kind,zu(t)&&u){const t=jy(e.getEmitHost(),I,n);if(t)return h.createStringLiteral(t)}return t}}function ie(e){const n=AU(e);return e&&void 0!==n?e:void 0}function ae(e){for(;c(r);){const e=r.shift();if(!Nf(e))return dt.fail(`Late replaced statement was found which is not handled by the declaration transformer!: ${dt.formatSyntaxKind(e.kind)}`);const n=l;l=e.parent&&uM(e.parent)&&!(dk(e.parent)&&u);const t=pe(e);l=n,o.set(ZB(e),t)}return bB(e,function(e){if(Nf(e)){const n=ZB(e);if(o.has(n)){const t=o.get(n);return o.delete(n),t&&((Ye(t)?U(t,Qd):Qd(t))&&(f=!0),uM(e.parent)&&(Ye(t)?U(t,Zd):Zd(t))&&(p=!0)),t}}return e},_u)}function le(n){if(me(n))return;if(fu(n)){if(J(n))return;if(Gg(n))if(k){if(!I.isDefinitelyReferenceToGlobalSymbolObject(n.name.expression)){if(_N(n.parent)||hC(n.parent))return void e.addDiagnostic(Vf(n,fa.Computed_property_names_on_class_or_object_literals_cannot_be_inferred_with_isolatedDeclarations));if((gN(n.parent)||KD(n.parent))&&!db(n.name.expression))return void e.addDiagnostic(Vf(n,fa.Computed_properties_must_be_number_or_string_literals_variables_or_dotted_expressions_with_isolatedDeclarations))}}else if(!I.isLateBound(_l(n))||!db(n.name.expression))return}if(ad(n)&&I.isImplementationOfOverload(n))return;if(qC(n))return;let r;Z(n)&&(r=t,t=n);const o=a,s=kV(n),l=i;let c=(188===n.kind||201===n.kind)&&266!==n.parent.kind;if((LD(n)||PD(n))&&Nv(n,2)){if(n.symbol&&n.symbol.declarations&&n.symbol.declarations[0]!==n)return;return u(h.createPropertyDeclaration(_e(n),n.name,void 0,void 0,void 0))}if(s&&!i&&(a=OV(n)),HD(n)&&ee(n.exprName,t),c&&(i=!0),function(e){switch(e.kind){case 181:case 177:case 175:case 178:case 179:case 173:case 172:case 174:case 180:case 182:case 261:case 169:case 234:case 184:case 195:case 185:case 186:case 206:return!0}return!1}(n))switch(n.kind){case 234:{(rd(n.expression)||db(n.expression))&&ee(n.expression,t);const r=CB(n,le,e);return u(h.updateExpressionWithTypeArguments(r,r.expression,r.typeArguments))}case 184:{ee(n.typeName,t);const r=CB(n,le,e);return u(h.updateTypeReferenceNode(r,r.typeName,r.typeArguments))}case 181:return u(h.updateConstructSignature(n,Q(n,n.typeParameters),Y(n,n.parameters),q(n)));case 177:return u(h.createConstructorDeclaration(_e(n),Y(n,n.parameters,0),void 0));case 175:if(uD(n.name))return u(void 0);return u(h.createMethodDeclaration(_e(n),void 0,n.name,n.questionToken,Q(n,n.typeParameters),Y(n,n.parameters),q(n),void 0));case 178:return uD(n.name)?u(void 0):u(h.updateGetAccessorDeclaration(n,_e(n),n.name,$(n,Nv(n,2)),q(n),void 0));case 179:return uD(n.name)?u(void 0):u(h.updateSetAccessorDeclaration(n,_e(n),n.name,$(n,Nv(n,2)),void 0));case 173:return uD(n.name)?u(void 0):u(h.updatePropertyDeclaration(n,_e(n),n.name,n.questionToken,q(n),H(n)));case 172:return uD(n.name)?u(void 0):u(h.updatePropertySignature(n,_e(n),n.name,n.questionToken,q(n)));case 174:return uD(n.name)?u(void 0):u(h.updateMethodSignature(n,_e(n),n.name,n.questionToken,Q(n,n.typeParameters),Y(n,n.parameters),q(n)));case 180:return u(h.updateCallSignature(n,Q(n,n.typeParameters),Y(n,n.parameters),q(n)));case 182:return u(h.updateIndexSignature(n,_e(n),Y(n,n.parameters),vB(n.type,le,Ed)||h.createKeywordTypeNode(133)));case 261:return xd(n.name)?fe(n.name):(c=!0,i=!0,u(h.updateVariableDeclaration(n,n.name,void 0,q(n),H(n))));case 169:return 175===(d=n).parent.kind&&Nv(d.parent,2)&&(n.default||n.constraint)?u(h.updateTypeParameterDeclaration(n,n.modifiers,n.name,void 0,void 0)):u(CB(n,le,e));case 195:{const e=vB(n.checkType,le,Ed),r=vB(n.extendsType,le,Ed),o=t;t=n.trueType;const i=vB(n.trueType,le,Ed);t=o;const a=vB(n.falseType,le,Ed);return dt.assert(e),dt.assert(r),dt.assert(i),dt.assert(a),u(h.updateConditionalTypeNode(n,e,r,i,a))}case 185:return u(h.updateFunctionTypeNode(n,bB(n.typeParameters,le,ID),Y(n,n.parameters),dt.checkDefined(vB(n.type,le,Ed))));case 186:return u(h.updateConstructorTypeNode(n,_e(n),bB(n.typeParameters,le,ID),Y(n,n.parameters),dt.checkDefined(vB(n.type,le,Ed))));case 206:return hm(n)?u(h.updateImportTypeNode(n,h.updateLiteralTypeNode(n.argument,oe(n,n.argument.literal)),n.attributes,n.qualifier,bB(n.typeArguments,le,Ed),n.isTypeOf)):u(n);default:dt.assertNever(n,`Attempted to process unhandled node kind: ${dt.formatSyntaxKind(n.kind)}`)}var d;return JD(n)&&Ua(T,n.pos).line===Ua(T,n.end).line&&xR(n,1),u(CB(n,le,e));function u(e){return e&&s&&Gg(n)&&function(e){let n;i||(n=a,a=wV(e));v=e.name,dt.assert(Gg(e));const r=e;ee(r.name.expression,t),i||(a=n);v=void 0}(n),Z(n)&&(t=r),s&&!i&&(a=o),c&&(i=l),e===n?e:e&&TR(te(e,n),n)}}function ce(e){if(!function(e){switch(e.kind){case 263:case 268:case 272:case 265:case 264:case 266:case 267:case 244:case 273:case 279:case 278:return!0}return!1}(e))return;if(me(e))return;switch(e.kind){case 279:return uM(e.parent)&&(p=!0),m=!0,h.updateExportDeclaration(e,e.modifiers,e.isTypeOnly,e.exportClause,oe(e,e.moduleSpecifier),ie(e.attributes));case 278:if(uM(e.parent)&&(p=!0),m=!0,80===e.expression.kind)return e;{const n=h.createUniqueName("_default",16);a=()=>({diagnosticMessage:fa.Default_export_of_the_module_has_or_is_using_private_name_0,errorNode:e}),b=e;const t=q(e),r=h.createVariableDeclaration(n,void 0,t,void 0);b=void 0;const o=h.createVariableStatement(l?[h.createModifier(138)]:[],h.createVariableDeclarationList([r],2));return te(o,e),AR(e),[o,h.updateExportAssignment(e,e.modifiers,n)]}}const n=pe(e);return o.set(ZB(e),n),e}function de(e){if(AN(e)||Nv(e,2048)||!CL(e))return e;const n=h.createModifiersFromModifierFlags(131039&jv(e));return h.replaceModifiers(e,n)}function ue(e,n,t,r){const o=h.updateModuleDeclaration(e,n,t,r);if(pf(o)||32&o.flags)return o;const i=h.createModuleDeclaration(o.modifiers,o.name,o.body,32|o.flags);return TR(i,o),DL(i,o),i}function pe(n){if(r)for(;Gn(r,n););if(me(n))return;switch(n.kind){case 272:return function(e){if(I.isDeclarationVisible(e)){if(284===e.moduleReference.kind){const n=Dh(e);return h.updateImportEqualsDeclaration(e,e.modifiers,e.isTypeOnly,e.name,h.updateExternalModuleReference(e.moduleReference,oe(e,n)))}{const n=a;return a=OV(e),ee(e.moduleReference,t),a=n,e}}}(n);case 273:return function(n){if(!n.importClause)return h.updateImportDeclaration(n,n.modifiers,n.importClause,oe(n,n.moduleSpecifier),ie(n.attributes));const t=166===n.importClause.phaseModifier?void 0:n.importClause.phaseModifier,r=n.importClause&&n.importClause.name&&I.isDeclarationVisible(n.importClause)?n.importClause.name:void 0;if(!n.importClause.namedBindings)return r&&h.updateImportDeclaration(n,n.modifiers,h.updateImportClause(n.importClause,t,r,void 0),oe(n,n.moduleSpecifier),ie(n.attributes));if(275===n.importClause.namedBindings.kind){const e=I.isDeclarationVisible(n.importClause.namedBindings)?n.importClause.namedBindings:void 0;return r||e?h.updateImportDeclaration(n,n.modifiers,h.updateImportClause(n.importClause,t,r,e),oe(n,n.moduleSpecifier),ie(n.attributes)):void 0}const o=F(n.importClause.namedBindings.elements,e=>I.isDeclarationVisible(e)?e:void 0);return o&&o.length||r?h.updateImportDeclaration(n,n.modifiers,h.updateImportClause(n.importClause,t,r,o&&o.length?h.updateNamedImports(n.importClause.namedBindings,o):void 0),oe(n,n.moduleSpecifier),ie(n.attributes)):I.isImportRequiredByAugmentation(n)?(k&&e.addDiagnostic(Vf(n,fa.Declaration_emit_for_this_file_requires_preserving_this_import_for_augmentations_This_is_not_supported_with_isolatedDeclarations)),h.updateImportDeclaration(n,n.modifiers,void 0,oe(n,n.moduleSpecifier),ie(n.attributes))):void 0}(n)}if(fu(n)&&J(n))return;if(eP(n))return;if(ad(n)&&I.isImplementationOfOverload(n))return;let i;Z(n)&&(i=t,t=n);const s=kV(n),u=a;s&&(a=OV(n));const _=l;switch(n.kind){case 266:{l=!1;const e=g(h.updateTypeAliasDeclaration(n,_e(n),n.name,bB(n.typeParameters,le,ID),dt.checkDefined(vB(n.type,le,Ed))));return l=_,e}case 265:return g(h.updateInterfaceDeclaration(n,_e(n),n.name,Q(n,n.typeParameters),ge(n.heritageClauses),bB(n.members,le,bd)));case 263:{const e=g(h.updateFunctionDeclaration(n,_e(n),void 0,n.name,Q(n,n.typeParameters),Y(n,n.parameters),q(n),void 0));if(e&&I.isExpandoFunctionDeclaration(n)&&function(e){var n;if(e.body)return!0;const t=null==(n=e.symbol.declarations)?void 0:n.filter(e=>hN(e)&&!e.body);return!t||t.indexOf(e)===t.length-1}(n)){const r=I.getPropertiesOfContainerFunction(n);k&&w(n);const o=PL.createModuleDeclaration(void 0,e.name||h.createIdentifier("_default"),h.createModuleBlock([]),32);PA(o,t),o.locals=Qu(r),o.symbol=r[0].parent;const i=[];let s=F(r,e=>{if(!fx(e.valueDeclaration))return;const n=yl(e.escapedName);if(!ys(n,99))return;a=OV(e.valueDeclaration);const t=I.createTypeOfDeclaration(e.valueDeclaration,o,zV,2|BV,y);a=u;const r=Lg(n),s=r?h.getGeneratedNameForNode(e.valueDeclaration):h.createIdentifier(n);r&&i.push([s,n]);const l=h.createVariableDeclaration(s,void 0,t,void 0);return h.createVariableStatement(r?void 0:[h.createToken(95)],h.createVariableDeclarationList([l]))});i.length?s.push(h.createExportDeclaration(void 0,!1,h.createNamedExports(D(i,([e,n])=>h.createExportSpecifier(!1,e,n))))):s=F(s,e=>h.replaceModifiers(e,0));const l=h.createModuleDeclaration(_e(n),n.name,h.createModuleBlock(s),32);if(!Nv(e,2048))return[e,l];const c=h.createModifiersFromModifierFlags(-2081&jv(e)|128),d=h.updateFunctionDeclaration(e,c,void 0,e.name,e.typeParameters,e.parameters,e.type,void 0),f=h.updateModuleDeclaration(l,c,l.name,l.body),_=h.createExportAssignment(void 0,!1,l.name);return uM(n.parent)&&(p=!0),m=!0,[d,f,_]}return e}case 268:{l=!1;const e=n.body;if(e&&269===e.kind){const t=f,r=m;m=!1,f=!1;let o=ae(bB(e.statements,ce,_u));33554432&n.flags&&(f=!1),gf(n)||function(e){return U(e,he)}(o)||m||(o=f?h.createNodeArray([...o,lP(h)]):bB(o,de,_u));const i=h.updateModuleBlock(e,o);l=_,f=t,m=r;const a=_e(n);return g(ue(n,a,yf(n)?oe(n,n.name):n.name,i))}{l=_;const t=_e(n);l=!1,vB(e,ce);const r=ZB(e),i=o.get(r);return o.delete(r),g(ue(n,t,n.name,i))}}case 264:{v=n.name,b=n;const e=h.createNodeArray(_e(n)),r=Q(n,n.typeParameters),o=sv(n);let i;if(o){const e=a;i=ne(P(o.parameters,e=>{if(Mv(e,31)&&!me(e))return a=OV(e),80===e.name.kind?te(h.createPropertyDeclaration(_e(e),e.name,e.questionToken,q(e),H(e)),e):function n(t){let r;for(const o of t.elements)FC(o)||(xd(o.name)&&(r=K(r,n(o.name))),r=r||[],r.push(h.createPropertyDeclaration(_e(e),o.name,void 0,q(o),void 0)));return r}(e.name)})),a=e}const s=K(K(K(U(n.members,e=>!!e.name&&uD(e.name))?[h.createPropertyDeclaration(void 0,h.createPrivateIdentifier("#private"),void 0,void 0,void 0)]:void 0,I.createLateBoundIndexSignatures(n,t,zV,BV,y)),i),bB(n.members,le,fd)),c=h.createNodeArray(s),d=Tg(n);if(d&&!db(d.expression)&&106!==d.expression.kind){const t=n.name?yl(n.name.escapedText):"default",o=h.createUniqueName(`${t}_base`,16);a=()=>({diagnosticMessage:fa.extends_clause_of_exported_class_0_has_or_is_using_private_name_1,errorNode:d,typeName:n.name});const i=h.createVariableDeclaration(o,void 0,I.createTypeOfExpression(d.expression,n,zV,BV,y),void 0),s=h.createVariableStatement(l?[h.createModifier(138)]:[],h.createVariableDeclarationList([i],2)),u=h.createNodeArray(D(n.heritageClauses,e=>{if(96===e.token){const n=a;a=OV(e.types[0]);const t=h.updateHeritageClause(e,D(e.types,e=>h.updateExpressionWithTypeArguments(e,o,bB(e.typeArguments,le,Ed))));return a=n,t}return h.updateHeritageClause(e,bB(h.createNodeArray(x(e.types,e=>db(e.expression)||106===e.expression.kind)),le,WC))}));return[s,g(h.updateClassDeclaration(n,e,n.name,r,u,c))]}{const t=ge(n.heritageClauses);return g(h.updateClassDeclaration(n,e,n.name,r,t,c))}}case 244:return g(function(e){if(!d(e.declarationList.declarations,X))return;const n=bB(e.declarationList.declarations,le,fN);if(!c(n))return;const t=h.createNodeArray(_e(e));let r;lm(e.declarationList)||sm(e.declarationList)?(r=h.createVariableDeclarationList(n,2),TR(r,e.declarationList),DL(r,e.declarationList),OR(r,e.declarationList)):r=h.updateVariableDeclarationList(e.declarationList,n);return h.updateVariableStatement(e,t,r)}(n));case 267:return g(h.updateEnumDeclaration(n,h.createNodeArray(_e(n)),n.name,h.createNodeArray(F(n.members,n=>{if(me(n))return;const t=I.getEnumMemberValue(n),r=null==t?void 0:t.value;k&&n.initializer&&(null==t?void 0:t.hasExternalReferences)&&!RD(n.name)&&e.addDiagnostic(Vf(n,fa.Enum_member_initializers_must_be_computable_without_references_to_external_symbols_with_isolatedDeclarations));const o=void 0===r?void 0:"string"==typeof r?h.createStringLiteral(r):r<0?h.createPrefixUnaryExpression(41,h.createNumericLiteral(-r)):h.createNumericLiteral(r);return te(h.updateEnumMember(n,n.name,o),n)}))))}return dt.assertNever(n,`Unhandled top-level node in declaration emit: ${dt.formatSyntaxKind(n.kind)}`);function g(e){return Z(n)&&(t=i),s&&(a=u),268===n.kind&&(l=_),e===n?e:(b=void 0,v=void 0,e&&TR(te(e,n),n))}}function fe(e){return M(F(e.elements,e=>function(e){if(233===e.kind)return;if(e.name){if(!X(e))return;return xd(e.name)?fe(e.name):h.createVariableDeclaration(e.name,void 0,q(e),void 0)}}(e)))}function me(e){return!!L&&!!e&&Uu(e,T)}function he(e){return ON(e)||FN(e)}function _e(e){const n=jv(e),t=function(e){let n=130030,t=l&&!function(e){if(265===e.kind)return!0;return!1}(e)?128:0;const r=308===e.parent.kind;(!r||u&&r&&dk(e.parent))&&(n^=128,t=0);return VV(e,n,t)}(e);return n===t?TB(e.modifiers,e=>en(e,td),td):h.createModifiersFromModifierFlags(t)}function ge(e){return h.createNodeArray(x(D(e,e=>h.updateHeritageClause(e,bB(h.createNodeArray(x(e.types,n=>db(n.expression)||96===e.token&&106===n.expression.kind)),le,WC))),e=>e.types&&!!e.types.length))}}function VV(e,n=131070,t=0){let r=jv(e)&n|t;return 2048&r&&!(32&r)&&(r^=32),2048&r&&128&r&&(r^=128),r}function jV(e){switch(e.kind){case 173:case 172:return!Nv(e,2);case 170:case 261:return!0}return!1}var UV={scriptTransformers:s,declarationTransformers:s};function HV(e,n,t){return{scriptTransformers:KV(e,n,t),declarationTransformers:qV(n)}}function KV(e,n,t){if(t)return s;const r=SS(e),o=ES(e),i=FS(e),a=[];return ae(a,n&&D(n.before,XV)),a.push(iV),e.experimentalDecorators&&a.push(cV),$S(e)&&a.push(EV),r<99&&a.push(gV),e.experimentalDecorators||!(r<99)&&i||a.push(dV),a.push(aV),r<8&&a.push(_V),r<7&&a.push(hV),r<6&&a.push(mV),r<5&&a.push(fV),r<4&&a.push(uV),r<3&&a.push(xV),r<2&&(a.push(IV),a.push(DV)),a.push(function(e){switch(e){case 200:return PV;case 99:case 7:case 6:case 5:case 100:case 101:case 102:case 199:case 1:return LV;case 4:return MV;default:return CV}}(o)),ae(a,n&&D(n.after,XV)),a}function qV(e){const n=[];return n.push(GV),ae(n,e&&D(e.afterDeclarations,YV)),n}function JV(e,n){return t=>{const r=e(t);return"function"==typeof r?n(t,r):function(e){return n=>pM(n)?e.transformBundle(n):e.transformSourceFile(n)}(r)}}function XV(e){return JV(e,tG)}function YV(e){return JV(e,(e,n)=>n)}function $V(e,n){return n}function QV(e,n,t){t(e,n)}function ZV(e,n,t,r,o,i,a){var s,l;const c=new Array(359);let d,u,p,f,m,h=0,_=[],g=[],y=[],v=[],b=0,T=!1,S=[],E=0,A=$V,x=QV,R=0;const I=[],D={factory:t,getCompilerOptions:()=>r,getEmitResolver:()=>e,getEmitHost:()=>n,getEmitHelperFactory:pn(()=>cI(D)),startLexicalEnvironment:function(){dt.assert(R>0,"Cannot modify the lexical environment during initialization."),dt.assert(R<2,"Cannot modify the lexical environment after transformation has completed."),dt.assert(!T,"Lexical environment is suspended."),_[b]=d,g[b]=u,y[b]=p,v[b]=h,b++,d=void 0,u=void 0,p=void 0,h=0},suspendLexicalEnvironment:function(){dt.assert(R>0,"Cannot modify the lexical environment during initialization."),dt.assert(R<2,"Cannot modify the lexical environment after transformation has completed."),dt.assert(!T,"Lexical environment is already suspended."),T=!0},resumeLexicalEnvironment:function(){dt.assert(R>0,"Cannot modify the lexical environment during initialization."),dt.assert(R<2,"Cannot modify the lexical environment after transformation has completed."),dt.assert(T,"Lexical environment is not suspended."),T=!1},endLexicalEnvironment:function(){let e;if(dt.assert(R>0,"Cannot modify the lexical environment during initialization."),dt.assert(R<2,"Cannot modify the lexical environment after transformation has completed."),dt.assert(!T,"Lexical environment is suspended."),d||u||p){if(u&&(e=[...u]),d){const n=t.createVariableStatement(void 0,t.createVariableDeclarationList(d));xR(n,2097152),e?e.push(n):e=[n]}p&&(e=e?[...e,...p]:[...p])}b--,d=_[b],u=g[b],p=y[b],h=v[b],0===b&&(_=[],g=[],y=[],v=[]);return e},setLexicalEnvironmentFlags:function(e,n){h=n?h|e:h&~e},getLexicalEnvironmentFlags:function(){return h},hoistVariableDeclaration:function(e){dt.assert(R>0,"Cannot modify the lexical environment during initialization."),dt.assert(R<2,"Cannot modify the lexical environment after transformation has completed.");const n=xR(t.createVariableDeclaration(e),128);d?d.push(n):d=[n];1&h&&(h|=2)},hoistFunctionDeclaration:function(e){dt.assert(R>0,"Cannot modify the lexical environment during initialization."),dt.assert(R<2,"Cannot modify the lexical environment after transformation has completed."),xR(e,2097152),u?u.push(e):u=[e]},addInitializationStatement:function(e){dt.assert(R>0,"Cannot modify the lexical environment during initialization."),dt.assert(R<2,"Cannot modify the lexical environment after transformation has completed."),xR(e,2097152),p?p.push(e):p=[e]},startBlockScope:function(){dt.assert(R>0,"Cannot start a block scope during initialization."),dt.assert(R<2,"Cannot start a block scope after transformation has completed."),S[E]=f,E++,f=void 0},endBlockScope:function(){dt.assert(R>0,"Cannot end a block scope during initialization."),dt.assert(R<2,"Cannot end a block scope after transformation has completed.");const e=U(f)?[t.createVariableStatement(void 0,t.createVariableDeclarationList(f.map(e=>t.createVariableDeclaration(e)),1))]:void 0;E--,f=S[E],0===E&&(S=[]);return e},addBlockScopedVariable:function(e){dt.assert(E>0,"Cannot add a block scoped variable outside of an iteration body."),(f||(f=[])).push(e)},requestEmitHelper:function e(n){if(dt.assert(R>0,"Cannot modify the transformation context during initialization."),dt.assert(R<2,"Cannot modify the transformation context after transformation has completed."),dt.assert(!n.scoped,"Cannot request a scoped emit helper."),n.dependencies)for(const t of n.dependencies)e(t);m=re(m,n)},readEmitHelpers:function(){dt.assert(R>0,"Cannot modify the transformation context during initialization."),dt.assert(R<2,"Cannot modify the transformation context after transformation has completed.");const e=m;return m=void 0,e},enableSubstitution:function(e){dt.assert(R<2,"Cannot modify the transformation context after transformation has completed."),c[e]|=1},enableEmitNotification:function(e){dt.assert(R<2,"Cannot modify the transformation context after transformation has completed."),c[e]|=2},isSubstitutionEnabled:L,isEmitNotificationEnabled:k,get onSubstituteNode(){return A},set onSubstituteNode(e){dt.assert(R<1,"Cannot modify transformation hooks after initialization has completed."),dt.assert(void 0!==e,"Value must not be 'undefined'"),A=e},get onEmitNode(){return x},set onEmitNode(e){dt.assert(R<1,"Cannot modify transformation hooks after initialization has completed."),dt.assert(void 0!==e,"Value must not be 'undefined'"),x=e},addDiagnostic(e){I.push(e)}};for(const w of o)ER(Sp(_l(w)));er("beforeTransform");const C=i.map(e=>e(D)),N=e=>{for(const n of C)e=n(e);return e};R=1;const M=[];for(const w of o)null==(s=Kt)||s.push(Kt.Phase.Emit,"transformNodes",308===w.kind?{path:w.path}:{kind:w.kind,pos:w.pos,end:w.end}),M.push((a?N:P)(w)),null==(l=Kt)||l.pop();return R=2,er("afterTransform"),nr("transformTime","beforeTransform","afterTransform"),{transformed:M,substituteNode:function(e,n){return dt.assert(R<3,"Cannot substitute a node after the result is disposed."),n&&L(n)&&A(e,n)||n},emitNodeWithNotification:function(e,n,t){dt.assert(R<3,"Cannot invoke TransformationResult callbacks after the result is disposed."),n&&(k(n)?x(e,n,t):t(e,n))},isEmitNotificationEnabled:k,dispose:function(){if(R<3){for(const e of o)ER(Sp(_l(e)));d=void 0,_=void 0,u=void 0,g=void 0,A=void 0,x=void 0,m=void 0,R=3}},diagnostics:I};function P(e){return!e||uM(e)&&e.isDeclarationFile?e:N(e)}function L(e){return!(!(1&c[e.kind])||8&tf(e))}function k(e){return!!(2&c[e.kind])||!!(4&tf(e))}}var ej={factory:vR,getCompilerOptions:()=>({}),getEmitResolver:un,getEmitHost:un,getEmitHelperFactory:un,startLexicalEnvironment:tn,resumeLexicalEnvironment:tn,suspendLexicalEnvironment:tn,endLexicalEnvironment:an,setLexicalEnvironmentFlags:tn,getLexicalEnvironmentFlags:()=>0,hoistVariableDeclaration:tn,hoistFunctionDeclaration:tn,addInitializationStatement:tn,startBlockScope:tn,endBlockScope:an,addBlockScopedVariable:tn,requestEmitHelper:tn,readEmitHelpers:un,enableSubstitution:tn,enableEmitNotification:tn,isSubstitutionEnabled:un,isEmitNotificationEnabled:un,onSubstituteNode:$V,onEmitNode:QV,addDiagnostic:tn},nj=function(){const e=[];return e[1024]=["{","}"],e[2048]=["(",")"],e[4096]=["<",">"],e[8192]=["[","]"],e}();function tj(e){return xi(e,".tsbuildinfo")}function rj(e,n,t,r=!1,o,i){const a=Ye(t)?t:Qy(e,t,r),s=e.getCompilerOptions();if(!o)if(s.outFile){if(a.length){const t=vR.createBundle(a),o=n(aj(t,e,r),t);if(o)return o}}else for(const l of a){const t=n(aj(l,e,r),l);if(t)return t}if(i){const e=oj(s);if(e)return n({buildInfoPath:e},void 0)}}function oj(e){const n=e.configFilePath;if(!function(e){return kS(e)||!!e.tscBuild}(e))return;if(e.tsBuildInfoFile)return e.tsBuildInfoFile;const t=e.outFile;let r;if(t)r=qE(t);else{if(!n)return;const t=qE(n);r=e.outDir?e.rootDir?Bi(e.outDir,aa(e.rootDir,t,!0)):zi(e.outDir,Pi(t)):t}return r+".tsbuildinfo"}function ij(e,n){const t=e.outFile,r=e.emitDeclarationOnly?void 0:t,o=r&&sj(r,e),i=n||PS(e)?qE(t)+".d.ts":void 0;return{jsFilePath:r,sourceMapFilePath:o,declarationFilePath:i,declarationMapPath:i&&wS(e)?i+".map":void 0}}function aj(e,n,t){const r=n.getCompilerOptions();if(309===e.kind)return ij(r,t);{const o=Hy(e.fileName,n,lj(e.fileName,r)),i=om(e),a=i&&0===ta(e.fileName,o,n.getCurrentDirectory(),!n.useCaseSensitiveFileNames()),s=r.emitDeclarationOnly||a?void 0:o,l=!s||om(e)?void 0:sj(s,r),c=t||PS(r)&&!i?Ky(e.fileName,n):void 0;return{jsFilePath:s,sourceMapFilePath:l,declarationFilePath:c,declarationMapPath:c&&wS(r)?c+".map":void 0}}}function sj(e,n){return n.sourceMap&&!n.inlineSourceMap?e+".map":void 0}function lj(e,n){return xi(e,".json")?".json":1===n.jsx&&Ri(e,[".jsx",".tsx"])?".jsx":Ri(e,[".mts",".mjs"])?".mjs":Ri(e,[".cts",".cjs"])?".cjs":".js"}function cj(e,n,t,r){return t?Bi(t,aa(r(),e,n)):e}function dj(e,n,t,r=()=>yj(n,t)){return uj(e,n.options,t,r)}function uj(e,n,t,r){return YE(cj(e,t,n.declarationDir||n.outDir,r),Jy(e))}function pj(e,n,t,r=()=>yj(n,t)){if(n.options.emitDeclarationOnly)return;const o=xi(e,".json"),i=fj(e,n.options,t,r);return o&&0===ta(e,i,dt.checkDefined(n.options.configFilePath),t)?void 0:i}function fj(e,n,t,r){return YE(cj(e,t,n.outDir,r),lj(e,n))}function mj(){let e;return{addOutput:function(n){n&&(e||(e=[])).push(n)},getOutputs:function(){return e||s}}}function hj(e,n){const{jsFilePath:t,sourceMapFilePath:r,declarationFilePath:o,declarationMapPath:i}=ij(e.options,!1);n(t),n(r),n(o),n(i)}function _j(e,n,t,r,o){if(yk(n))return;const i=pj(n,e,t,o);if(r(i),!xi(n,".json")&&(i&&e.options.sourceMap&&r(`${i}.map`),PS(e.options))){const i=dj(n,e,t,o);r(i),e.options.declarationMap&&r(`${i}.map`)}}function gj(e,n,t,r,o){let i;return e.rootDir?(i=Vi(e.rootDir,t),null==o||o(e.rootDir)):e.composite&&e.configFilePath?(i=Mi(Fi(e.configFilePath)),null==o||o(i)):i=Yj(n(),t,r),i&&i[i.length-1]!==pi&&(i+=pi),i}function yj({options:e,fileNames:n},t){return gj(e,()=>x(n,n=>!(e.noEmitForJsFiles&&Ri(n,NE)||yk(n))),Mi(Fi(dt.checkDefined(e.configFilePath))),Hn(!t))}function vj(e,n){const{addOutput:t,getOutputs:r}=mj();if(e.options.outFile)hj(e,t);else{const r=pn(()=>yj(e,n));for(const o of e.fileNames)_j(e,o,n,t,r)}return t(oj(e.options)),r()}function bj(e,n,t){n=ji(n),dt.assert(S(e.fileNames,n),"Expected fileName to be present in command line");const{addOutput:r,getOutputs:o}=mj();return e.options.outFile?hj(e,r):_j(e,n,t,r),o()}function Tj(e,n){if(e.options.outFile){const{jsFilePath:n,declarationFilePath:t}=ij(e.options,!1);return dt.checkDefined(n||t,`project ${e.options.configFilePath} expected to have at least one output`)}const t=pn(()=>yj(e,n));for(const o of e.fileNames){if(yk(o))continue;const r=pj(o,e,n,t);if(r)return r;if(!xi(o,".json")&&PS(e.options))return dj(o,e,n,t)}const r=oj(e.options);return r||dt.fail(`project ${e.options.configFilePath} expected to have at least one output`)}function Sj(e,n){return!!n&&!!e}function Ej(e,n,t,{scriptTransformers:r,declarationTransformers:o},a,s,l,d){var u=n.getCompilerOptions(),p=u.sourceMap||u.inlineSourceMap||wS(u)?[]:void 0,f=u.listEmittedFiles?[]:void 0,m=fy(),h=wb(u),_=Fy(h),{enter:g,exit:y}=Ht("printTime","beforePrint","afterPrint"),v=!1;return g(),rj(n,function({jsFilePath:s,sourceMapFilePath:d,declarationFilePath:p,declarationMapPath:h,buildInfoPath:_},g){var y,S,E,A,R,I;null==(y=Kt)||y.push(Kt.Phase.Emit,"emitJsFileOrBundle",{jsFilePath:s}),function(t,o,i){if(!t||a||!o)return;if(n.isEmitBlocked(o)||u.noEmit)return void(v=!0);(uM(t)?[t]:x(t.sourceFiles,wh)).forEach(n=>{!u.noCheck&&gA(n,u)||function(n){if(Ph(n))return;ok(n,n=>!AN(n)||32&Hv(n)?xN(n)?"skip":void e.markLinkedReferences(n):"skip")}(n)});const s=ZV(e,n,vR,u,[t],r,!1),l=Mj({removeComments:u.removeComments,newLine:u.newLine,noEmitHelpers:u.noEmitHelpers,module:ES(u),moduleResolution:AS(u),target:SS(u),sourceMap:u.sourceMap,inlineSourceMap:u.inlineSourceMap,inlineSources:u.inlineSources,extendedDiagnostics:u.extendedDiagnostics},{hasGlobalName:e.hasGlobalName,onEmitNode:s.emitNodeWithNotification,isEmitNotificationEnabled:s.isEmitNotificationEnabled,substituteNode:s.substituteNode});dt.assert(1===s.transformed.length,"Should only see one output from the transform"),T(o,i,s,l,u),s.dispose(),f&&(f.push(o),i&&f.push(i))}(g,s,d),null==(S=Kt)||S.pop(),null==(E=Kt)||E.push(Kt.Phase.Emit,"emitDeclarationFileOrBundle",{declarationFilePath:p}),function(t,r,i){if(!t||0===a)return;if(!r)return void((a||u.emitDeclarationOnly)&&(v=!0));const s=uM(t)?[t]:t.sourceFiles,d=l?s:x(s,wh),p=u.outFile?[vR.createBundle(d)]:d;d.forEach(e=>{(a&&!PS(u)||u.noCheck||Sj(a,l)||!gA(e,u))&&b(e)});const h=ZV(e,n,vR,u,p,o,!1);if(c(h.diagnostics))for(const e of h.diagnostics)m.add(e);const _=!!h.diagnostics&&!!h.diagnostics.length||!!n.isEmitBlocked(r)||!!u.noEmit;if(v=v||_,!_||l){dt.assert(1===h.transformed.length,"Should only see one output from the decl transform");const n={removeComments:u.removeComments,newLine:u.newLine,noEmitHelpers:!0,module:u.module,moduleResolution:u.moduleResolution,target:u.target,sourceMap:2!==a&&u.declarationMap,inlineSourceMap:u.inlineSourceMap,extendedDiagnostics:u.extendedDiagnostics,onlyPrintJsDocStyle:!0,omitBraceSourceMapPositions:!0},t=T(r,i,h,Mj(n,{hasGlobalName:e.hasGlobalName,onEmitNode:h.emitNodeWithNotification,isEmitNotificationEnabled:h.isEmitNotificationEnabled,substituteNode:h.substituteNode}),{sourceMap:n.sourceMap,sourceRoot:u.sourceRoot,mapRoot:u.mapRoot,extendedDiagnostics:u.extendedDiagnostics});f&&(t&&f.push(r),i&&f.push(i))}h.dispose()}(g,p,h),null==(A=Kt)||A.pop(),null==(R=Kt)||R.push(Kt.Phase.Emit,"emitBuildInfo",{buildInfoPath:_}),function(e){if(!e||t)return;if(n.isEmitBlocked(e))return void(v=!0);const r=n.getBuildInfo()||{version:i};tv(n,m,e,Aj(r),!1,void 0,{buildInfo:r}),null==f||f.push(e)}(_),null==(I=Kt)||I.pop()},Qy(n,t,l),l,s,!t&&!d),y(),{emitSkipped:v,diagnostics:m.getDiagnostics(),emittedFiles:f,sourceMaps:p};function b(n){ON(n)?80===n.expression.kind&&e.collectLinkedAliases(n.expression,!0):zN(n)?e.collectLinkedAliases(n.propertyName||n.name,!0):rk(n,b)}function T(e,t,r,o,i){const a=r.transformed[0],s=309===a.kind?a:void 0,l=308===a.kind?a:void 0,c=s?s.sourceFiles:[l];let d,f;if(function(e,n){return(e.sourceMap||e.inlineSourceMap)&&(308!==n.kind||!xi(n.fileName,".json"))}(i,a)&&(d=PB(n,Pi(Fi(e)),function(e){const n=Fi(e.sourceRoot||"");return n?Ji(n):n}(i),function(e,t,r){if(e.sourceRoot)return n.getCommonSourceDirectory();if(e.mapRoot){let t=Fi(e.mapRoot);return r&&(t=Mi(ev(r.fileName,n,t))),0===Ni(t)&&(t=zi(n.getCommonSourceDirectory(),t)),t}return Mi(ji(t))}(i,e,l),i)),s?o.writeBundle(s,_,d):o.writeFile(l,_,d),d){p&&p.push({inputSourceFileNames:d.getSources(),sourceMap:d.toJSON()});const r=function(e,t,r,o,i){if(e.inlineSourceMap){const e=t.toString();return`data:application/json;base64,${Ib(di,e)}`}const a=Pi(Fi(dt.checkDefined(o)));if(e.mapRoot){let t=Fi(e.mapRoot);return i&&(t=Mi(ev(i.fileName,n,t))),0===Ni(t)?(t=zi(n.getCommonSourceDirectory(),t),encodeURI(ca(Mi(ji(r)),zi(t,a),n.getCurrentDirectory(),n.getCanonicalFileName,!0))):encodeURI(zi(t,a))}return encodeURI(a)}(i,d,e,t,l);if(r&&(_.isAtStartOfLine()||_.rawWrite(h),f=_.getTextPos(),_.writeComment(`//# sourceMappingURL=${r}`)),t){const e=d.toString();tv(n,m,t,e,!1,c)}}else _.writeLine();const g=_.getText(),y={sourceMapUrlPos:f,diagnostics:r.diagnostics};return tv(n,m,e,g,!!u.emitBOM,c,y),_.clear(),!y.skippedDtsWrite}}function Aj(e){return JSON.stringify(e)}function xj(e,n){return Cb(e,n)}var Rj={hasGlobalName:un,getReferencedExportContainer:un,getReferencedImportDeclaration:un,getReferencedDeclarationWithCollidingName:un,isDeclarationWithCollidingName:un,isValueAliasDeclaration:un,isReferencedAliasDeclaration:un,isTopLevelValueImportEqualsWithEntityName:un,hasNodeCheckFlag:un,isDeclarationVisible:un,isLateBound:e=>!1,collectLinkedAliases:un,markLinkedReferences:un,isImplementationOfOverload:un,requiresAddingImplicitUndefined:un,isExpandoFunctionDeclaration:un,getPropertiesOfContainerFunction:un,createTypeOfDeclaration:un,createReturnTypeOfSignatureDeclaration:un,createTypeOfExpression:un,createLiteralConstValue:un,isSymbolAccessible:un,isEntityNameVisible:un,getConstantValue:un,getEnumMemberValue:un,getReferencedValueDeclaration:un,getReferencedValueDeclarations:un,getTypeReferenceSerializationKind:un,isOptionalParameter:un,isArgumentsLocalBinding:un,getExternalModuleFileFromDeclaration:un,isLiteralConstDeclaration:un,getJsxFactoryEntity:un,getJsxFragmentFactoryEntity:un,isBindingCapturedByNode:un,getDeclarationStatementsForSourceFile:un,isImportRequiredByAugmentation:un,isDefinitelyReferenceToGlobalSymbolObject:un,createLateBoundIndexSignatures:un,symbolToDeclarations:un},Ij=pn(()=>Mj({})),Dj=pn(()=>Mj({removeComments:!0})),Cj=pn(()=>Mj({removeComments:!0,neverAsciiEscape:!0})),Nj=pn(()=>Mj({removeComments:!0,omitTrailingSemicolon:!0}));function Mj(e={},n={}){var t,r,o,i,a,s,l,c,u,p,f,m,h,_,y,v,T,S,E,A,x,R,I,D,C,N,{hasGlobalName:M,onEmitNode:P=QV,isEmitNotificationEnabled:L,substituteNode:k=$V,onBeforeEmitNode:w,onAfterEmitNode:O,onBeforeEmitNodeArray:F,onAfterEmitNodeArray:W,onBeforeEmitToken:z,onAfterEmitToken:B}=n,G=!!e.extendedDiagnostics,V=!!e.omitBraceSourceMapPositions,j=wb(e),H=ES(e),K=new Map,q=e.preserveSourceNewlines,J=function(e){T.write(e)},X=!0,Y=-1,$=-1,Q=-1,Z=-1,ee=-1,ne=!1,te=!!e.removeComments,{enter:re,exit:oe}=Ut(G,"commentTime","beforeComment","afterComment"),ie=vR.parenthesizer,ae={select:e=>0===e?ie.parenthesizeLeadingTypeArgument:void 0},se=function(){return mL(function(e,n){if(n){n.stackIndex++,n.preserveSourceNewlinesStack[n.stackIndex]=q,n.containerPosStack[n.stackIndex]=Q,n.containerEndStack[n.stackIndex]=Z,n.declarationListContainerEndStack[n.stackIndex]=ee;const t=n.shouldEmitCommentsStack[n.stackIndex]=Le(e),r=n.shouldEmitSourceMapsStack[n.stackIndex]=ke(e);null==w||w(e),t&&Yt(e),r&&yr(e),Ne(e)}else n={stackIndex:0,preserveSourceNewlinesStack:[void 0],containerPosStack:[-1],containerEndStack:[-1],declarationListContainerEndStack:[-1],shouldEmitCommentsStack:[!1],shouldEmitSourceMapsStack:[!1]};return n},function(n,t,r){return e(n,r,"left")},function(e,n,t){const r=28!==e.kind,o=xt(t,t.left,e),i=xt(t,e,t.right);_t(o,r),lr(e.pos),pt(e,103===e.kind?et:nt),dr(e.end,!0),_t(i,!0)},function(n,t,r){return e(n,r,"right")},function(e,n){const t=xt(e,e.left,e.operatorToken),r=xt(e,e.operatorToken,e.right);if(gt(t,r),n.stackIndex>0){const t=n.preserveSourceNewlinesStack[n.stackIndex],r=n.containerPosStack[n.stackIndex],o=n.containerEndStack[n.stackIndex],i=n.declarationListContainerEndStack[n.stackIndex],a=n.shouldEmitCommentsStack[n.stackIndex],s=n.shouldEmitSourceMapsStack[n.stackIndex];Me(t),s&&br(e),a&&$t(e,r,o,i),null==O||O(e),n.stackIndex--}},void 0);function e(e,n,t){const r="left"===t?ie.getParenthesizeLeftSideOfBinaryForOperator(n.operatorToken.kind):ie.getParenthesizeRightSideOfBinaryForOperator(n.operatorToken.kind);let o=we(0,1,e);if(o===Be&&(dt.assertIsDefined(C),o=Oe(1,1,e=r(nn(C,qd))),C=void 0),(o===Xt||o===gr||o===We)&&MC(e))return e;N=r,o(1,e)}}();return Ae(),{printNode:function(e,n,t){switch(e){case 0:dt.assert(uM(n),"Expected a SourceFile node.");break;case 2:dt.assert(dD(n),"Expected an Identifier node.");break;case 1:dt.assert(qd(n),"Expected an Expression node.")}switch(n.kind){case 308:return de(n);case 309:return le(n)}return ue(e,n,t,_e()),be()},printList:function(e,n,t){return pe(e,n,t,_e()),be()},printFile:de,printBundle:le,writeNode:ue,writeList:pe,writeFile:he,writeBundle:me};function le(e){return me(e,_e(),void 0),be()}function de(e){return he(e,_e(),void 0),be()}function ue(e,n,t,r){const o=T;Ee(r,void 0),Te(e,n,t),Ae(),T=o}function pe(e,n,t,r){const o=T;Ee(r,void 0),t&&Se(t),Kn(void 0,n,e),Ae(),T=o}function me(e,n,t){E=!1;const r=T;var o;Ee(n,t),Pn(e),Mn(e),Ge(e),Dn(!!(o=e).hasNoDefaultLib,o.syntheticFileReferences||[],o.syntheticTypeReferences||[],o.syntheticLibReferences||[]);for(const i of e.sourceFiles)Te(0,i,i);Ae(),T=r}function he(e,n,t){E=!0;const r=T;Ee(n,t),Pn(e),Mn(e),Te(0,e,e),Ae(),T=r}function _e(){return S||(S=Fy(j))}function be(){const e=S.getText();return S.clear(),e}function Te(e,n,t){t&&Se(t),Pe(e,n,void 0)}function Se(e){t=e,I=void 0,D=void 0,e&&Ar(e)}function Ee(n,t){n&&e.omitTrailingSemicolon&&(n=Wy(n)),A=t,X=!(T=n)||!A}function Ae(){r=[],o=[],i=[],a=new Set,s=[],l=new Map,c=[],u=0,p=[],f=0,m=[],h=void 0,_=[],y=void 0,t=void 0,I=void 0,D=void 0,Ee(void 0,void 0)}function xe(){return I||(I=Ba(dt.checkDefined(t)))}function Re(e,n){void 0!==e&&Pe(4,e,n)}function Ie(e){void 0!==e&&Pe(2,e,void 0)}function De(e,n){void 0!==e&&Pe(1,e,n)}function Ce(e){Pe(qI(e)?6:4,e)}function Ne(e){q&&4&rf(e)&&(q=!1)}function Me(e){q=e}function Pe(e,n,t){N=t;we(0,e,n)(e,n),N=void 0}function Le(e){return!te&&!uM(e)}function ke(e){return!X&&!uM(e)&&!kh(e)}function we(e,n,t){switch(e){case 0:if(P!==QV&&(!L||L(t)))return Fe;case 1:if(k!==$V&&(C=k(n,t)||t)!==t)return N&&(C=N(C)),Be;case 2:if(Le(t))return Xt;case 3:if(ke(t))return gr;case 4:return We;default:return dt.assertNever(e)}}function Oe(e,n,t){return we(e+1,n,t)}function Fe(e,n){const t=Oe(0,e,n);P(e,n,t)}function We(e,n){if(null==w||w(n),q){const t=q;Ne(n),ze(e,n),Me(t)}else ze(e,n);null==O||O(n),N=void 0}function ze(e,n,r=!0){if(r){const t=$R(n);if(t)return function(e,n,t){switch(t.kind){case 1:!function(e,n,t){at(`\${${t.order}:`),ze(e,n,!1),at("}")}(e,n,t);break;case 0:!function(e,n,t){dt.assert(243===n.kind,`A tab stop cannot be attached to a node of kind ${dt.formatSyntaxKind(n.kind)}.`),dt.assert(5!==e,"A tab stop cannot be attached to an embedded statement."),at(`$${t.order}`)}(e,n,t)}}(e,n,t)}if(0===e)return In(nn(n,uM));if(2===e)return Ue(nn(n,dD));if(6===e)return je(nn(n,qI),!0);if(3===e)return function(e){Re(e.name),ot(),et("in"),ot(),Re(e.constraint)}(nn(n,ID));if(7===e)return function(e){Qn("{"),ot(),et(132===e.token?"assert":"with"),Qn(":"),ot();const n=e.elements;Kn(e,n,526226),ot(),Qn("}")}(nn(n,NN));if(5===e)return dt.assertNode(n,YC),Qe(!0);if(4===e){switch(n.kind){case 16:case 17:case 18:return je(n,!1);case 80:return Ue(n);case 81:return He(n);case 167:return function(e){(function(e){80===e.kind?De(e):Re(e)})(e.left),Qn("."),Re(e.right)}(n);case 168:return function(e){Qn("["),De(e.expression,ie.parenthesizeExpressionOfComputedPropertyName),Qn("]")}(n);case 169:return function(e){wn(e,e.modifiers),Re(e.name),e.constraint&&(ot(),et("extends"),ot(),Re(e.constraint));e.default&&(ot(),nt("="),ot(),Re(e.default))}(n);case 170:return function(e){kn(e,e.modifiers,!0),Re(e.dotDotDotToken),Ln(e.name,tt),Re(e.questionToken),e.parent&&318===e.parent.kind&&!e.name?Re(e.type):On(e.type);Fn(e.initializer,e.type?e.type.end:e.questionToken?e.questionToken.end:e.name?e.name.end:e.modifiers?e.modifiers.end:e.pos,e,ie.parenthesizeExpressionForDisallowedComma)}(n);case 171:return i=n,Qn("@"),void De(i.expression,ie.parenthesizeLeftSideOfAccess);case 172:return function(e){wn(e,e.modifiers),Ln(e.name,it),Re(e.questionToken),On(e.type),Zn()}(n);case 173:return function(e){kn(e,e.modifiers,!0),Re(e.name),Re(e.questionToken),Re(e.exclamationToken),On(e.type),Fn(e.initializer,e.type?e.type.end:e.questionToken?e.questionToken.end:e.name.end,e),Zn()}(n);case 174:return function(e){wn(e,e.modifiers),Re(e.name),Re(e.questionToken),dn(e,fn,pn)}(n);case 175:return function(e){kn(e,e.modifiers,!0),Re(e.asteriskToken),Re(e.name),Re(e.questionToken),dn(e,fn,un)}(n);case 176:return function(e){et("static"),Nt(e),mn(e.body),Mt(e)}(n);case 177:return function(e){kn(e,e.modifiers,!1),et("constructor"),dn(e,fn,un)}(n);case 178:case 179:return function(e){const n=kn(e,e.modifiers,!0),t=178===e.kind?139:153;rn(t,n,et,e),ot(),Re(e.name),dn(e,fn,un)}(n);case 180:return function(e){dn(e,fn,pn)}(n);case 181:return function(e){et("new"),ot(),dn(e,fn,pn)}(n);case 182:return function(e){kn(e,e.modifiers,!1),n=e,t=e.parameters,Kn(n,t,8848),On(e.type),Zn();var n,t}(n);case 183:return function(e){e.assertsModifier&&(Re(e.assertsModifier),ot());Re(e.parameterName),e.type&&(ot(),et("is"),ot(),Re(e.type))}(n);case 184:return function(e){Re(e.typeName),Gn(e,e.typeArguments)}(n);case 185:return function(e){dn(e,Ke,qe)}(n);case 186:return function(e){wn(e,e.modifiers),et("new"),ot(),dn(e,Ke,qe)}(n);case 187:return function(e){et("typeof"),ot(),Re(e.exprName),Gn(e,e.typeArguments)}(n);case 188:return function(e){Nt(e),d(e.members,wt),Qn("{");const n=1&tf(e)?768:32897;Kn(e,e.members,524288|n),Qn("}"),Mt(e)}(n);case 189:return function(e){Re(e.elementType,ie.parenthesizeNonArrayTypeOfPostfixType),Qn("["),Qn("]")}(n);case 190:return function(e){rn(23,e.pos,Qn,e);const n=1&tf(e)?528:657;Kn(e,e.elements,524288|n,ie.parenthesizeElementTypeOfTupleType),rn(24,e.elements.end,Qn,e)}(n);case 191:return function(e){Re(e.type,ie.parenthesizeTypeOfOptionalType),Qn("?")}(n);case 193:return function(e){Kn(e,e.types,516,ie.parenthesizeConstituentTypeOfUnionType)}(n);case 194:return function(e){Kn(e,e.types,520,ie.parenthesizeConstituentTypeOfIntersectionType)}(n);case 195:return function(e){Re(e.checkType,ie.parenthesizeCheckTypeOfConditionalType),ot(),et("extends"),ot(),Re(e.extendsType,ie.parenthesizeExtendsTypeOfConditionalType),ot(),Qn("?"),ot(),Re(e.trueType),ot(),Qn(":"),ot(),Re(e.falseType)}(n);case 196:return function(e){et("infer"),ot(),Re(e.typeParameter)}(n);case 197:return function(e){Qn("("),Re(e.type),Qn(")")}(n);case 234:return Ye(n);case 198:return void et("this");case 199:return function(e){ft(e.operator,et),ot();const n=148===e.operator?ie.parenthesizeOperandOfReadonlyTypeOperator:ie.parenthesizeOperandOfTypeOperator;Re(e.type,n)}(n);case 200:return function(e){Re(e.objectType,ie.parenthesizeNonArrayTypeOfPostfixType),Qn("["),Re(e.indexType),Qn("]")}(n);case 201:return function(e){const n=tf(e);Qn("{"),1&n?ot():(st(),lt());e.readonlyToken&&(Re(e.readonlyToken),148!==e.readonlyToken.kind&&et("readonly"),ot());Qn("["),Pe(3,e.typeParameter),e.nameType&&(ot(),et("as"),ot(),Re(e.nameType));Qn("]"),e.questionToken&&(Re(e.questionToken),58!==e.questionToken.kind&&Qn("?"));Qn(":"),ot(),Re(e.type),Zn(),1&n?ot():(st(),ct());Kn(e,e.members,2),Qn("}")}(n);case 202:return function(e){De(e.literal)}(n);case 203:return function(e){Re(e.dotDotDotToken),Re(e.name),Re(e.questionToken),rn(59,e.name.end,Qn,e),ot(),Re(e.type)}(n);case 204:return function(e){Re(e.head),Kn(e,e.templateSpans,262144)}(n);case 205:return function(e){Re(e.type),Re(e.literal)}(n);case 206:return function(e){e.isTypeOf&&(et("typeof"),ot());et("import"),Qn("("),Re(e.argument),e.attributes&&(Qn(","),ot(),Pe(7,e.attributes));Qn(")"),e.qualifier&&(Qn("."),Re(e.qualifier));Gn(e,e.typeArguments)}(n);case 207:return function(e){Qn("{"),Kn(e,e.elements,525136),Qn("}")}(n);case 208:return function(e){Qn("["),Kn(e,e.elements,524880),Qn("]")}(n);case 209:return function(e){Re(e.dotDotDotToken),e.propertyName&&(Re(e.propertyName),Qn(":"),ot());Re(e.name),Fn(e.initializer,e.name.end,e,ie.parenthesizeExpressionForDisallowedComma)}(n);case 240:return function(e){De(e.expression),Re(e.literal)}(n);case 241:return void Zn();case 242:return function(e){$e(e,!e.multiLine&&Rt(e))}(n);case 244:return function(e){kn(e,e.modifiers,!1),Re(e.declarationList),Zn()}(n);case 243:return Qe(!1);case 245:return function(e){De(e.expression,ie.parenthesizeExpressionOfExpressionStatement),t&&om(t)&&!ry(e.expression)||Zn()}(n);case 246:return function(e){const n=rn(101,e.pos,et,e);ot(),rn(21,n,Qn,e),De(e.expression),rn(22,e.expression.end,Qn,e),Bn(e,e.thenStatement),e.elseStatement&&(mt(e,e.thenStatement,e.elseStatement),rn(93,e.thenStatement.end,et,e),246===e.elseStatement.kind?(ot(),Re(e.elseStatement)):Bn(e,e.elseStatement))}(n);case 247:return function(e){rn(92,e.pos,et,e),Bn(e,e.statement),JC(e.statement)&&!q?ot():mt(e,e.statement,e.expression);Ze(e,e.statement.end),Zn()}(n);case 248:return function(e){Ze(e,e.pos),Bn(e,e.statement)}(n);case 249:return function(e){const n=rn(99,e.pos,et,e);ot();let t=rn(21,n,Qn,e);tn(e.initializer),t=rn(27,e.initializer?e.initializer.end:t,Qn,e),zn(e.condition),t=rn(27,e.condition?e.condition.end:t,Qn,e),zn(e.incrementor),rn(22,e.incrementor?e.incrementor.end:t,Qn,e),Bn(e,e.statement)}(n);case 250:return function(e){const n=rn(99,e.pos,et,e);ot(),rn(21,n,Qn,e),tn(e.initializer),ot(),rn(103,e.initializer.end,et,e),ot(),De(e.expression),rn(22,e.expression.end,Qn,e),Bn(e,e.statement)}(n);case 251:return function(e){const n=rn(99,e.pos,et,e);ot(),function(e){e&&(Re(e),ot())}(e.awaitModifier),rn(21,n,Qn,e),tn(e.initializer),ot(),rn(165,e.initializer.end,et,e),ot(),De(e.expression),rn(22,e.expression.end,Qn,e),Bn(e,e.statement)}(n);case 252:return function(e){rn(88,e.pos,et,e),Wn(e.label),Zn()}(n);case 253:return function(e){rn(83,e.pos,et,e),Wn(e.label),Zn()}(n);case 254:return function(e){rn(107,e.pos,et,e),zn(e.expression&&sn(e.expression),sn),Zn()}(n);case 255:return function(e){const n=rn(118,e.pos,et,e);ot(),rn(21,n,Qn,e),De(e.expression),rn(22,e.expression.end,Qn,e),Bn(e,e.statement)}(n);case 256:return function(e){const n=rn(109,e.pos,et,e);ot(),rn(21,n,Qn,e),De(e.expression),rn(22,e.expression.end,Qn,e),ot(),Re(e.caseBlock)}(n);case 257:return function(e){Re(e.label),rn(59,e.label.end,Qn,e),ot(),Re(e.statement)}(n);case 258:return function(e){rn(111,e.pos,et,e),zn(sn(e.expression),sn),Zn()}(n);case 259:return function(e){rn(113,e.pos,et,e),ot(),Re(e.tryBlock),e.catchClause&&(mt(e,e.tryBlock,e.catchClause),Re(e.catchClause));e.finallyBlock&&(mt(e,e.catchClause||e.tryBlock,e.finallyBlock),rn(98,(e.catchClause||e.tryBlock).end,et,e),ot(),Re(e.finallyBlock))}(n);case 260:return function(e){ut(89,e.pos,et),Zn()}(n);case 261:return function(e){var n,t,r;Re(e.name),Re(e.exclamationToken),On(e.type),Fn(e.initializer,(null==(n=e.type)?void 0:n.end)??(null==(r=null==(t=e.name.emitNode)?void 0:t.typeNode)?void 0:r.end)??e.name.end,e,ie.parenthesizeExpressionForDisallowedComma)}(n);case 262:return function(e){if(sm(e))et("await"),ot(),et("using");else{et(um(e)?"let":cm(e)?"const":lm(e)?"using":"var")}ot(),Kn(e,e.declarations,528)}(n);case 263:return function(e){cn(e)}(n);case 264:return function(e){gn(e)}(n);case 265:return function(e){kn(e,e.modifiers,!1),et("interface"),ot(),Re(e.name),Vn(e,e.typeParameters),Kn(e,e.heritageClauses,512),ot(),Qn("{"),Nt(e),d(e.members,wt),Kn(e,e.members,129),Mt(e),Qn("}")}(n);case 266:return function(e){kn(e,e.modifiers,!1),et("type"),ot(),Re(e.name),Vn(e,e.typeParameters),ot(),Qn("="),ot(),Re(e.type),Zn()}(n);case 267:return function(e){kn(e,e.modifiers,!1),et("enum"),ot(),Re(e.name),ot(),Qn("{"),Kn(e,e.members,145),Qn("}")}(n);case 268:return function(e){kn(e,e.modifiers,!1),2048&~e.flags&&(et(32&e.flags?"namespace":"module"),ot());Re(e.name);let n=e.body;if(!n)return Zn();for(;n&&bN(n);)Qn("."),Re(n.name),n=n.body;ot(),Re(n)}(n);case 269:return function(e){Nt(e),d(e.statements,kt),$e(e,Rt(e)),Mt(e)}(n);case 270:return function(e){rn(19,e.pos,Qn,e),Kn(e,e.clauses,129),rn(20,e.clauses.end,Qn,e,!0)}(n);case 271:return function(e){let n=rn(95,e.pos,et,e);ot(),n=rn(130,n,et,e),ot(),n=rn(145,n,et,e),ot(),Re(e.name),Zn()}(n);case 272:return function(e){kn(e,e.modifiers,!1),rn(102,e.modifiers?e.modifiers.end:e.pos,et,e),ot(),e.isTypeOnly&&(rn(156,e.pos,et,e),ot());Re(e.name),ot(),rn(64,e.name.end,Qn,e),ot(),function(e){80===e.kind?De(e):Re(e)}(e.moduleReference),Zn()}(n);case 273:return function(e){kn(e,e.modifiers,!1),rn(102,e.modifiers?e.modifiers.end:e.pos,et,e),ot(),e.importClause&&(Re(e.importClause),ot(),rn(161,e.importClause.end,et,e),ot());De(e.moduleSpecifier),e.attributes&&Wn(e.attributes);Zn()}(n);case 274:return function(e){void 0!==e.phaseModifier&&(rn(e.phaseModifier,e.pos,et,e),ot());Re(e.name),e.name&&e.namedBindings&&(rn(28,e.name.end,Qn,e),ot());Re(e.namedBindings)}(n);case 275:return function(e){const n=rn(42,e.pos,Qn,e);ot(),rn(130,n,et,e),ot(),Re(e.name)}(n);case 281:return function(e){const n=rn(42,e.pos,Qn,e);ot(),rn(130,n,et,e),ot(),Re(e.name)}(n);case 276:case 280:return function(e){yn(e)}(n);case 277:case 282:return function(e){vn(e)}(n);case 278:return function(e){const n=rn(95,e.pos,et,e);ot(),e.isExportEquals?rn(64,n,nt,e):rn(90,n,et,e);ot(),De(e.expression,e.isExportEquals?ie.getParenthesizeRightSideOfBinaryForOperator(64):ie.parenthesizeExpressionOfExportDefault),Zn()}(n);case 279:return function(e){kn(e,e.modifiers,!1);let n=rn(95,e.pos,et,e);ot(),e.isTypeOnly&&(n=rn(156,n,et,e),ot());e.exportClause?Re(e.exportClause):n=rn(42,n,Qn,e);if(e.moduleSpecifier){ot();rn(161,e.exportClause?e.exportClause.end:n,et,e),ot(),De(e.moduleSpecifier)}e.attributes&&Wn(e.attributes);Zn()}(n);case 301:return function(e){rn(e.token,e.pos,et,e),ot();const n=e.elements;Kn(e,n,526226)}(n);case 302:return function(e){Re(e.name),Qn(":"),ot();const n=e.value;if(!(1024&tf(n))){dr(wR(n).pos)}Re(n)}(n);case 283:case 320:case 331:case 332:case 334:case 335:case 336:case 337:case 354:case 355:return;case 284:return function(e){et("require"),Qn("("),De(e.expression),Qn(")")}(n);case 12:return function(e){T.writeLiteral(e.text)}(n);case 287:case 290:return function(e){if(Qn("<"),qN(e)){const n=St(e.tagName,e);bn(e.tagName),Gn(e,e.typeArguments),e.attributes.properties&&e.attributes.properties.length>0&&ot(),Re(e.attributes),Et(e.attributes,e),gt(n)}Qn(">")}(n);case 288:case 291:return function(e){Qn("</"),JN(e)&&bn(e.tagName);Qn(">")}(n);case 292:return function(e){Re(e.name),function(e,n,t,r){t&&(n(e),r(t))}("=",Qn,e.initializer,Ce)}(n);case 293:return function(e){Kn(e,e.properties,262656)}(n);case 294:return function(e){Qn("{..."),De(e.expression),Qn("}")}(n);case 295:return function(e){var n;if(e.expression||!te&&!ry(e)&&(r=e.pos,function(e){let n=!1;return cs((null==t?void 0:t.text)||"",e+1,()=>n=!0),n}(r)||function(e){let n=!1;return ls((null==t?void 0:t.text)||"",e+1,()=>n=!0),n}(r))){const r=t&&!ry(e)&&Ua(t,e.pos).line!==Ua(t,e.end).line;r&&T.increaseIndent();const o=rn(19,e.pos,Qn,e);Re(e.dotDotDotToken),De(e.expression),rn(20,(null==(n=e.expression)?void 0:n.end)||o,Qn,e),r&&T.decreaseIndent()}var r}(n);case 296:return function(e){Ie(e.namespace),Qn(":"),Ie(e.name)}(n);case 297:return function(e){rn(84,e.pos,et,e),ot(),De(e.expression,ie.parenthesizeExpressionForDisallowedComma),Tn(e,e.statements,e.expression.end)}(n);case 298:return function(e){const n=rn(90,e.pos,et,e);Tn(e,e.statements,n)}(n);case 299:return function(e){ot(),ft(e.token,et),ot(),Kn(e,e.types,528)}(n);case 300:return function(e){const n=rn(85,e.pos,et,e);ot(),e.variableDeclaration&&(rn(21,n,Qn,e),Re(e.variableDeclaration),rn(22,e.variableDeclaration.end,Qn,e),ot());Re(e.block)}(n);case 304:return function(e){Re(e.name),Qn(":"),ot();const n=e.initializer;if(!(1024&tf(n))){dr(wR(n).pos)}De(n,ie.parenthesizeExpressionForDisallowedComma)}(n);case 305:return function(e){Re(e.name),e.objectAssignmentInitializer&&(ot(),Qn("="),ot(),De(e.objectAssignmentInitializer,ie.parenthesizeExpressionForDisallowedComma))}(n);case 306:return function(e){e.expression&&(rn(26,e.pos,Qn,e),De(e.expression,ie.parenthesizeExpressionForDisallowedComma))}(n);case 307:return function(e){Re(e.name),Fn(e.initializer,e.name.end,e,ie.parenthesizeExpressionForDisallowedComma)}(n);case 308:return In(n);case 309:return dt.fail("Bundles should be printed using printBundle");case 310:return Rn(n);case 311:return function(e){ot(),Qn("{"),Re(e.name),Qn("}")}(n);case 313:return Qn("*");case 314:return Qn("?");case 315:return function(e){Qn("?"),Re(e.type)}(n);case 316:return function(e){Qn("!"),Re(e.type)}(n);case 317:return function(e){Re(e.type),Qn("=")}(n);case 318:return function(e){et("function"),jn(e,e.parameters),Qn(":"),Re(e.type)}(n);case 192:case 319:return function(e){Qn("..."),Re(e.type)}(n);case 321:return function(e){if(J("/**"),e.comment){const n=pc(e.comment);if(n){const e=n.split(/\r\n?|\n/);for(const n of e)st(),ot(),Qn("*"),ot(),J(n)}}e.tags&&(1!==e.tags.length||345!==e.tags[0].kind||e.comment?Kn(e,e.tags,33):(ot(),Re(e.tags[0])));ot(),J("*/")}(n);case 323:return Sn(n);case 324:return En(n);case 328:case 333:case 338:return An((o=n).tagName),void xn(o.comment);case 329:case 330:return function(e){An(e.tagName),ot(),Qn("{"),Re(e.class),Qn("}"),xn(e.comment)}(n);case 339:return function(e){An(e.tagName),e.name&&(ot(),Re(e.name));xn(e.comment),En(e.typeExpression)}(n);case 340:return function(e){xn(e.comment),En(e.typeExpression)}(n);case 342:case 349:return function(e){An(e.tagName),Rn(e.typeExpression),ot(),e.isBracketed&&Qn("[");Re(e.name),e.isBracketed&&Qn("]");xn(e.comment)}(n);case 341:case 343:case 344:case 345:case 350:case 351:return function(e){An(e.tagName),Rn(e.typeExpression),xn(e.comment)}(n);case 346:return function(e){An(e.tagName),Rn(e.constraint),ot(),Kn(e,e.typeParameters,528),xn(e.comment)}(n);case 347:return function(e){An(e.tagName),e.typeExpression&&(310===e.typeExpression.kind?Rn(e.typeExpression):(ot(),Qn("{"),J("Object"),e.typeExpression.isArrayType&&(Qn("["),Qn("]")),Qn("}")));e.fullName&&(ot(),Re(e.fullName));xn(e.comment),e.typeExpression&&323===e.typeExpression.kind&&Sn(e.typeExpression)}(n);case 348:return function(e){An(e.tagName),Re(e.name),xn(e.comment)}(n);case 352:return function(e){An(e.tagName),ot(),e.importClause&&(Re(e.importClause),ot(),rn(161,e.importClause.end,et,e),ot());De(e.moduleSpecifier),e.attributes&&Wn(e.attributes);xn(e.comment)}(n)}if(qd(n)&&(e=1,k!==$V)){const t=k(e,n)||n;t!==n&&(n=t,N&&(n=N(n)))}}var o,i;if(1===e)switch(n.kind){case 9:case 10:return function(e){je(e,!1)}(n);case 11:case 14:case 15:return je(n,!1);case 80:return Ue(n);case 81:return He(n);case 210:return function(e){const n=e.elements,t=e.multiLine?65536:0;qn(e,n,8914|t,ie.parenthesizeExpressionForDisallowedComma)}(n);case 211:return function(e){Nt(e),d(e.properties,wt);const n=131072&tf(e);n&<();const r=e.multiLine?65536:0,o=t&&t.languageVersion>=1&&!om(t)?64:0;Kn(e,e.properties,526226|o|r),n&&ct();Mt(e)}(n);case 212:return function(e){De(e.expression,ie.parenthesizeLeftSideOfAccess);const n=e.questionDotToken||CA(vR.createToken(25),e.expression.end,e.name.pos),t=xt(e,e.expression,n),r=xt(e,n,e.name);_t(t,!1);const o=29!==n.kind&&function(e){if(HI(e=Rc(e))){const n=Ct(e,void 0,!0,!1);return!(448&e.numericLiteralFlags||n.includes(Pa(25))||n.includes(String.fromCharCode(69))||n.includes(String.fromCharCode(101)))}if(IT(e)){const n=UR(e);return"number"==typeof n&&isFinite(n)&&n>=0&&Math.floor(n)===n}}(e.expression)&&!T.hasTrailingComment()&&!T.hasTrailingWhitespace();o&&Qn(".");e.questionDotToken?Re(n):rn(n.kind,e.expression.end,Qn,e);_t(r,!1),Re(e.name),gt(t,r)}(n);case 213:return function(e){De(e.expression,ie.parenthesizeLeftSideOfAccess),Re(e.questionDotToken),rn(23,e.expression.end,Qn,e),De(e.argumentExpression),rn(24,e.argumentExpression.end,Qn,e)}(n);case 214:return function(e){const n=16&rf(e);n&&(Qn("("),Yn("0"),Qn(","),ot());De(e.expression,ie.parenthesizeLeftSideOfAccess),n&&Qn(")");Re(e.questionDotToken),Gn(e,e.typeArguments),qn(e,e.arguments,2576,ie.parenthesizeExpressionForDisallowedComma)}(n);case 215:return function(e){rn(105,e.pos,et,e),ot(),De(e.expression,ie.parenthesizeExpressionOfNew),Gn(e,e.typeArguments),qn(e,e.arguments,18960,ie.parenthesizeExpressionForDisallowedComma)}(n);case 216:return function(e){const n=16&rf(e);n&&(Qn("("),Yn("0"),Qn(","),ot());De(e.tag,ie.parenthesizeLeftSideOfAccess),n&&Qn(")");Gn(e,e.typeArguments),ot(),De(e.template)}(n);case 217:return function(e){Qn("<"),Re(e.type),Qn(">"),De(e.expression,ie.parenthesizeOperandOfPrefixUnary)}(n);case 218:return function(e){const n=rn(21,e.pos,Qn,e),t=St(e.expression,e);De(e.expression,void 0),Et(e.expression,e),gt(t),rn(22,e.expression?e.expression.end:n,Qn,e)}(n);case 219:return function(e){Ot(e.name),cn(e)}(n);case 220:return function(e){wn(e,e.modifiers),dn(e,Je,Xe)}(n);case 221:return function(e){rn(91,e.pos,et,e),ot(),De(e.expression,ie.parenthesizeOperandOfPrefixUnary)}(n);case 222:return function(e){rn(114,e.pos,et,e),ot(),De(e.expression,ie.parenthesizeOperandOfPrefixUnary)}(n);case 223:return function(e){rn(116,e.pos,et,e),ot(),De(e.expression,ie.parenthesizeOperandOfPrefixUnary)}(n);case 224:return function(e){rn(135,e.pos,et,e),ot(),De(e.expression,ie.parenthesizeOperandOfPrefixUnary)}(n);case 225:return function(e){ft(e.operator,nt),function(e){const n=e.operand;return 225===n.kind&&(40===e.operator&&(40===n.operator||46===n.operator)||41===e.operator&&(41===n.operator||47===n.operator))}(e)&&ot();De(e.operand,ie.parenthesizeOperandOfPrefixUnary)}(n);case 226:return function(e){De(e.operand,ie.parenthesizeOperandOfPostfixUnary),ft(e.operator,nt)}(n);case 227:return se(n);case 228:return function(e){const n=xt(e,e.condition,e.questionToken),t=xt(e,e.questionToken,e.whenTrue),r=xt(e,e.whenTrue,e.colonToken),o=xt(e,e.colonToken,e.whenFalse);De(e.condition,ie.parenthesizeConditionOfConditionalExpression),_t(n,!0),Re(e.questionToken),_t(t,!0),De(e.whenTrue,ie.parenthesizeBranchOfConditionalExpression),gt(n,t),_t(r,!0),Re(e.colonToken),_t(o,!0),De(e.whenFalse,ie.parenthesizeBranchOfConditionalExpression),gt(r,o)}(n);case 229:return function(e){Re(e.head),Kn(e,e.templateSpans,262144)}(n);case 230:return function(e){rn(127,e.pos,et,e),Re(e.asteriskToken),zn(e.expression&&sn(e.expression),ln)}(n);case 231:return function(e){rn(26,e.pos,Qn,e),De(e.expression,ie.parenthesizeExpressionForDisallowedComma)}(n);case 232:return function(e){Ot(e.name),gn(e)}(n);case 233:case 283:case 354:return;case 235:return function(e){De(e.expression,void 0),e.type&&(ot(),et("as"),ot(),Re(e.type))}(n);case 236:return function(e){De(e.expression,ie.parenthesizeLeftSideOfAccess),nt("!")}(n);case 234:return Ye(n);case 239:return function(e){De(e.expression,void 0),e.type&&(ot(),et("satisfies"),ot(),Re(e.type))}(n);case 237:return function(e){ut(e.keywordToken,e.pos,Qn),Qn("."),Re(e.name)}(n);case 238:return dt.fail("SyntheticExpression should never be printed.");case 285:return function(e){Re(e.openingElement),Kn(e,e.children,262144),Re(e.closingElement)}(n);case 286:return function(e){Qn("<"),bn(e.tagName),Gn(e,e.typeArguments),ot(),Re(e.attributes),Qn("/>")}(n);case 289:return function(e){Re(e.openingFragment),Kn(e,e.children,262144),Re(e.closingFragment)}(n);case 353:return dt.fail("SyntaxList should not be printed");case 356:return function(e){const n=tf(e);1024&n||e.pos===e.expression.pos||dr(e.expression.pos);De(e.expression),2048&n||e.end===e.expression.end||lr(e.expression.end)}(n);case 357:return function(e){qn(e,e.elements,528,void 0)}(n);case 358:return dt.fail("SyntheticReferenceExpression should not be printed")}return Dg(n.kind)?pt(n,et):Pc(n.kind)?pt(n,Qn):void dt.fail(`Unhandled SyntaxKind: ${dt.formatSyntaxKind(n.kind)}.`)}function Be(e,n){const t=Oe(1,e,n);dt.assertIsDefined(C),n=C,C=void 0,t(e,n)}function Ge(n){let r=!1;const o=309===n.kind?n:void 0;if(o&&0===H)return;const i=o?o.sourceFiles.length:1;for(let a=0;a<i;a++){const i=o?o.sourceFiles[a]:n,s=uM(i)?i:t,l=e.noEmitHelpers||!!s&&wP(s),c=uM(i)&&!E,d=Ve(i);if(d)for(const e of d){if(e.scoped){if(o)continue}else{if(l)continue;if(c){if(K.get(e.name))continue;K.set(e.name,!0)}}"string"==typeof e.text?ht(e.text):ht(e.text(Ht)),r=!0}}return r}function Ve(e){const n=XR(e);return n&&ce(n,dI)}function je(n,t){const r=Ct(n,void 0,e.neverAsciiEscape,t);var o;!e.sourceMap&&!e.inlineSourceMap||11!==n.kind&&!Wc(n.kind)?(o=r,T.writeStringLiteral(o)):Yn(r)}function Ue(e){(e.symbol?$n:J)(Dt(e,!1),e.symbol),Kn(e,rI(e),53776)}function He(e){J(Dt(e,!1))}function Ke(e){Vn(e,e.typeParameters),Un(e,e.parameters),ot(),Qn("=>")}function qe(e){ot(),Re(e.type)}function Je(e){Vn(e,e.typeParameters),Un(e,e.parameters),On(e.type),ot(),Re(e.equalsGreaterThanToken)}function Xe(e){JC(e.body)?mn(e.body):(ot(),De(e.body,ie.parenthesizeConciseBodyOfArrowFunction))}function Ye(e){De(e.expression,ie.parenthesizeLeftSideOfAccess),Gn(e,e.typeArguments)}function $e(e,n){rn(19,e.pos,Qn,e);const t=n||1&tf(e)?768:129;Kn(e,e.statements,t),rn(20,e.statements.end,Qn,e,!!(1&t))}function Qe(e){e?Qn(";"):Zn()}function Ze(e,n){const t=rn(117,n,et,e);ot(),rn(21,t,Qn,e),De(e.expression),rn(22,e.expression.end,Qn,e)}function tn(e){void 0!==e&&(262===e.kind?Re(e):De(e))}function rn(e,n,r,o,i){const a=_l(o),s=a&&a.kind===o.kind,l=n;if(s&&t&&(n=es(t.text,n)),s&&o.pos!==l){const e=i&&t&&!Yb(l,n,t);e&<(),lr(l),e&&ct()}if(n=V||19!==e&&20!==e?ft(e,r,n):ut(e,n,r,o),s&&o.end!==n){const e=295===o.kind;dr(n,!e,e)}return n}function on(e){return 2===e.kind||!!e.hasTrailingNewLine}function an(e){if(!t)return!1;const n=fs(t.text,e.pos);if(n){const n=_l(e);if(n&&SC(n.parent))return!0}return!!U(n,on)||(!!U(FR(e),on)||!!UC(e)&&(!(e.pos===e.expression.pos||!U(ms(t.text,e.expression.pos),on))||an(e.expression)))}function sn(e){if(!te)switch(e.kind){case 356:if(an(e)){const n=_l(e);if(n&&SC(n)){const t=vR.createParenthesizedExpression(e.expression);return TR(t,e),DL(t,n),t}return vR.createParenthesizedExpression(e)}return vR.updatePartiallyEmittedExpression(e,sn(e.expression));case 212:return vR.updatePropertyAccessExpression(e,sn(e.expression),e.name);case 213:return vR.updateElementAccessExpression(e,sn(e.expression),e.argumentExpression);case 214:return vR.updateCallExpression(e,sn(e.expression),e.typeArguments,e.arguments);case 216:return vR.updateTaggedTemplateExpression(e,sn(e.tag),e.typeArguments,e.template);case 226:return vR.updatePostfixUnaryExpression(e,sn(e.operand));case 227:return vR.updateBinaryExpression(e,sn(e.left),e.operatorToken,e.right);case 228:return vR.updateConditionalExpression(e,sn(e.condition),e.questionToken,e.whenTrue,e.colonToken,e.whenFalse);case 235:return vR.updateAsExpression(e,sn(e.expression),e.type);case 239:return vR.updateSatisfiesExpression(e,sn(e.expression),e.type);case 236:return vR.updateNonNullExpression(e,sn(e.expression))}return e}function ln(e){return sn(ie.parenthesizeExpressionForDisallowedComma(e))}function cn(e){kn(e,e.modifiers,!1),et("function"),Re(e.asteriskToken),ot(),Ie(e.name),dn(e,fn,un)}function dn(e,n,t){const r=131072&tf(e);r&<(),Nt(e),d(e.parameters,kt),n(e),t(e),Mt(e),r&&ct()}function un(e){const n=e.body;n?mn(n):Zn()}function pn(e){Zn()}function fn(e){Vn(e,e.typeParameters),jn(e,e.parameters),On(e.type)}function mn(e){kt(e),null==w||w(e),ot(),Qn("{"),lt();const n=function(e){if(1&tf(e))return!0;if(e.multiLine)return!1;if(!ry(e)&&t&&!Vb(e,t))return!1;if(yt(e,fe(e.statements),2)||bt(e,ge(e.statements),2,e.statements))return!1;let n;for(const t of e.statements){if(vt(n,t,2)>0)return!1;n=t}return!0}(e)?hn:_n;tr(e,e.statements,n),ct(),ut(20,e.statements.end,Qn,e),null==O||O(e)}function hn(e){_n(e,!0)}function _n(e,n){const t=Nn(e.statements),r=T.getTextPos();Ge(e),0===t&&r===T.getTextPos()&&n?(ct(),Kn(e,e.statements,768),lt()):Kn(e,e.statements,1,void 0,t)}function gn(e){kn(e,e.modifiers,!0),rn(86,Bb(e).pos,et,e),e.name&&(ot(),Ie(e.name));const n=131072&tf(e);n&<(),Vn(e,e.typeParameters),Kn(e,e.heritageClauses,0),ot(),Qn("{"),Nt(e),d(e.members,wt),Kn(e,e.members,129),Mt(e),Qn("}"),n&&ct()}function yn(e){Qn("{"),Kn(e,e.elements,525136),Qn("}")}function vn(e){e.isTypeOnly&&(et("type"),ot()),e.propertyName&&(Re(e.propertyName),ot(),rn(130,e.propertyName.end,et,e),ot()),Re(e.name)}function bn(e){80===e.kind?De(e):Re(e)}function Tn(e,n,r){let o=163969;1===n.length&&(!t||ry(e)||ry(n[0])||jb(e,n[0],t))?(ut(59,r,Qn,e),ot(),o&=-130):rn(59,r,Qn,e),Kn(e,n,o)}function Sn(e){Kn(e,vR.createNodeArray(e.jsDocPropertyTags),33)}function En(e){e.typeParameters&&Kn(e,vR.createNodeArray(e.typeParameters),33),e.parameters&&Kn(e,vR.createNodeArray(e.parameters),33),e.type&&(st(),ot(),Qn("*"),ot(),Re(e.type))}function An(e){Qn("@"),Re(e)}function xn(e){const n=pc(e);n&&(ot(),J(n))}function Rn(e){e&&(ot(),Qn("{"),Re(e.type),Qn("}"))}function In(e){st();const n=e.statements;0===n.length||!_m(n[0])||ry(n[0])?tr(e,n,Cn):Cn(e)}function Dn(e,n,r,o){if(e&&(rt('/// <reference no-default-lib="true"/>'),st()),t&&t.moduleName&&(rt(`/// <amd-module name="${t.moduleName}" />`),st()),t&&t.amdDependencies)for(const a of t.amdDependencies)a.name?rt(`/// <amd-dependency name="${a.name}" path="${a.path}" />`):rt(`/// <amd-dependency path="${a.path}" />`),st();function i(e,n){for(const t of n){const n=t.resolutionMode?`resolution-mode="${99===t.resolutionMode?"import":"require"}" `:"",r=t.preserve?'preserve="true" ':"";rt(`/// <reference ${e}="${t.fileName}" ${n}${r}/>`),st()}}i("path",n),i("types",r),i("lib",o)}function Cn(e){const n=e.statements;Nt(e),d(e.statements,kt),Ge(e);const t=b(n,e=>!_m(e));!function(e){e.isDeclarationFile&&Dn(e.hasNoDefaultLib,e.referencedFiles,e.typeReferenceDirectives,e.libReferenceDirectives)}(e),Kn(e,n,1,void 0,-1===t?n.length:t),Mt(e)}function Nn(e,n,t){let r=!!n;for(let o=0;o<e.length;o++){const i=e[o];if(!_m(i))return o;(!t||!t.has(i.expression.text))&&(r&&(r=!1,Se(n)),st(),Re(i),t&&t.add(i.expression.text))}return e.length}function Mn(e){if(uM(e))Nn(e.statements,e);else{const n=new Set;for(const t of e.sourceFiles)Nn(t.statements,t,n);Se(void 0)}}function Pn(e){if(uM(e)){const n=hs(e.text);if(n)return rt(n),st(),!0}else for(const n of e.sourceFiles)if(Pn(n))return!0}function Ln(e,n){if(!e)return;const t=J;J=n,Re(e),J=t}function kn(e,n,t){if(null==n?void 0:n.length){if(g(n,td))return wn(e,n);if(g(n,CD))return t?function(e,n){Kn(e,n,2146305);const t=ge(n);return t&&!eA(t.end)?t.end:e.pos}(e,n):e.pos;let r,o;null==F||F(n);let i,a=0,s=0;for(;a<n.length;){for(;s<n.length;){if(i=n[s],o=CD(i)?"decorators":"modifiers",void 0===r)r=o;else if(o!==r)break;s++}const l={pos:-1,end:-1};0===a&&(l.pos=n.pos),s===n.length-1&&(l.end=n.end),("modifiers"===r||t)&&Xn(Re,e,n,"modifiers"===r?2359808:2146305,void 0,a,s-a,!1,l),a=s,r=o,s++}if(null==W||W(n),i&&!eA(i.end))return i.end}return e.pos}function wn(e,n){Kn(e,n,2359808);const t=ge(n);return t&&!eA(t.end)?t.end:e.pos}function On(e){e&&(Qn(":"),ot(),Re(e))}function Fn(e,n,t,r){e&&(ot(),rn(64,n,nt,t),ot(),De(e,r))}function Wn(e){e&&(ot(),Re(e))}function zn(e,n){e&&(ot(),De(e,n))}function Bn(e,n){JC(n)||1&tf(e)||q&&!yt(e,n,0)?(ot(),Re(n)):(st(),lt(),YC(n)?Pe(5,n):Re(n),ct())}function Gn(e,n){Kn(e,n,53776,ae)}function Vn(e,n){if(ad(e)&&e.typeArguments)return Gn(e,e.typeArguments);Kn(e,n,53776|(AC(e)?64:0))}function jn(e,n){Kn(e,n,2576)}function Un(e,n){!function(e,n){const t=ve(n);return t&&t.pos===e.pos&&AC(e)&&!e.type&&!U(e.modifiers)&&!U(e.typeParameters)&&!U(t.modifiers)&&!t.dotDotDotToken&&!t.questionToken&&!t.type&&!t.initializer&&dD(t.name)}(e,n)?jn(e,n):Kn(e,n,528)}function Hn(e){switch(60&e){case 0:break;case 16:Qn(",");break;case 4:ot(),Qn("|");break;case 32:ot(),Qn("*"),ot();break;case 8:ot(),Qn("&")}}function Kn(e,n,t,r,o,i){Jn(Re,e,n,t|(e&&2&tf(e)?65536:0),r,o,i)}function qn(e,n,t,r,o,i){Jn(De,e,n,t,r,o,i)}function Jn(e,n,r,o,i,a=0,s=(r?r.length-a:0)){if(void 0===r&&16384&o)return;const l=void 0===r||a>=r.length||0===s;if(l&&32768&o)return null==F||F(r),void(null==W||W(r));15360&o&&(Qn(function(e){return nj[15360&e][0]}(o)),l&&r&&dr(r.pos,!0)),null==F||F(r),l?!(1&o)||q&&(!n||t&&Vb(n,t))?256&o&&!(524288&o)&&ot():st():Xn(e,n,r,o,i,a,s,r.hasTrailingComma,r),null==W||W(r),15360&o&&(l&&r&&lr(r.end),Qn(function(e){return nj[15360&e][1]}(o)))}function Xn(e,n,t,r,o,i,a,s,l){const c=!(262144&r);let d=c;const u=yt(n,t[i],r);u?(st(u),d=!1):256&r&&ot(),128&r&<();const p=function(e,n){return 1===e.length?Pj:"object"==typeof n?Lj:kj}(e,o);let f,m=!1;for(let b=0;b<a;b++){const a=t[i+b];if(32&r)st(),Hn(r);else if(f){if(60&r&&f.end!==(n?n.end:-1)){2048&tf(f)||lr(f.end)}Hn(r);const e=vt(f,a,r);if(e>0){if(131&r||(lt(),m=!0),d&&60&r&&!eA(a.pos)){dr(wR(a).pos,!!(512&r),!0)}st(e),d=!1}else f&&512&r&&ot()}if(d){dr(wR(a).pos)}else d=c;v=a.pos,p(a,e,o,b),m&&(ct(),m=!1),f=a}const h=f?tf(f):0,_=te||!!(2048&h),g=s&&64&r&&16&r;g&&(f&&!_?rn(28,f.end,Qn,f):Qn(",")),f&&(n?n.end:-1)!==f.end&&60&r&&!_&&lr(g&&(null==l?void 0:l.end)?l.end:f.end),128&r&&ct();const y=bt(n,t[i+a-1],r,l);y?st(y):2097408&r&&ot()}function Yn(e){T.writeLiteral(e)}function $n(e,n){T.writeSymbol(e,n)}function Qn(e){T.writePunctuation(e)}function Zn(){T.writeTrailingSemicolon(";")}function et(e){T.writeKeyword(e)}function nt(e){T.writeOperator(e)}function tt(e){T.writeParameter(e)}function rt(e){T.writeComment(e)}function ot(){T.writeSpace(" ")}function it(e){T.writeProperty(e)}function at(e){T.nonEscapingWrite?T.nonEscapingWrite(e):T.write(e)}function st(e=1){for(let n=0;n<e;n++)T.writeLine(n>0)}function lt(){T.increaseIndent()}function ct(){T.decreaseIndent()}function ut(e,n,t,r){return X?ft(e,t,n):function(e,n,t,r,o){if(X||e&&kh(e))return o(n,t,r);const i=e&&e.emitNode,a=i&&i.flags||0,s=i&&i.tokenSourceMapRanges&&i.tokenSourceMapRanges[n],l=s&&s.source||x;r=Tr(l,s?s.pos:r),!(256&a)&&r>=0&&Er(l,r);r=o(n,t,r),s&&(r=s.end);!(512&a)&&r>=0&&Er(l,r);return r}(r,e,t,n,ft)}function pt(e,n){z&&z(e),n(Pa(e.kind)),B&&B(e)}function ft(e,n,t){const r=Pa(e);return n(r),t<0?t:t+r.length}function mt(e,n,t){if(1&tf(e))ot();else if(q){const r=xt(e,n,t);r?st(r):ot()}else st()}function ht(e){const n=e.split(/\r\n?|\n/),t=Wu(n);for(const r of n){const e=t?r.slice(t):r;e.length&&(st(),J(e))}}function _t(e,n){e?(lt(),st(e)):n&&ot()}function gt(e,n){e&&ct(),n&&ct()}function yt(e,n,r){if(2&r||q){if(65536&r)return 1;if(void 0===n)return!e||t&&Vb(e,t)?0:1;if(n.pos===v)return 0;if(12===n.kind)return 0;if(t&&e&&!eA(e.pos)&&!ry(n)&&(!n.parent||fl(n.parent)===fl(e)))return q?Tt(r=>Qb(n.pos,e.pos,t,r)):jb(e,n,t)?0:1;if(At(n,r))return 1}return 1&r?1:0}function vt(e,n,r){if(2&r||q){if(void 0===e||void 0===n)return 0;if(12===n.kind)return 0;if(t&&!ry(e)&&!ry(n))return q&&function(e,n){if(n.pos<e.end)return!1;e=fl(e),n=fl(n);const t=e.parent;if(!t||t!==n.parent)return!1;const r=WA(e),o=null==r?void 0:r.indexOf(e);return void 0!==o&&o>-1&&r.indexOf(n)===o+1}(e,n)?Tt(r=>qb(e,n,t,r)):!q&&(i=n,(o=fl(o=e)).parent&&o.parent===fl(i).parent)?Kb(e,n,t)?0:1:65536&r?1:0;if(At(e,r)||At(n,r))return 1}else if(LR(n))return 1;var o,i;return 1&r?1:0}function bt(e,n,r,o){if(2&r||q){if(65536&r)return 1;if(void 0===n)return!e||t&&Vb(e,t)?0:1;if(t&&e&&!eA(e.pos)&&!ry(n)&&(!n.parent||n.parent===e)){if(q){const r=o&&!eA(o.end)?o.end:n.end;return Tt(n=>Zb(r,e.end,t,n))}return Ub(e,n,t)?0:1}if(At(n,r))return 1}return 1&r&&!(131072&r)?1:0}function Tt(e){dt.assert(!!q);const n=e(!0);return 0===n?e(!1):n}function St(e,n){const t=q&&yt(n,e,0);return t&&_t(t,!1),!!t}function Et(e,n){const t=q&&bt(n,e,0,void 0);t&&st(t)}function At(e,n){if(ry(e)){const t=LR(e);return void 0===t?!!(65536&n):t}return!!(65536&n)}function xt(e,n,r){return 262144&tf(e)?0:(e=It(e),n=It(n),LR(r=It(r))?1:!t||ry(e)||ry(n)||ry(r)?0:q?Tt(e=>qb(n,r,t,e)):Kb(n,r,t)?0:1)}function Rt(e){return 0===e.statements.length&&(!t||Kb(e,e,t))}function It(e){for(;218===e.kind&&ry(e);)e=e.expression;return e}function Dt(e,n){if(Jc(e)||Xc(e))return Ft(e);if(qI(e)&&e.textSourceNode)return Dt(e.textSourceNode,n);const r=t,o=!!r&&!!e.parent&&!ry(e);if(hc(e)){if(!o||Sp(e)!==fl(r))return vl(e)}else if(tM(e)){if(!o||Sp(e)!==fl(r))return cx(e)}else if(dt.assertNode(e,Oc),!o)return e.text;return qp(r,e,n)}function Ct(n,r=t,o,i){if(11===n.kind&&n.textSourceNode){const e=n.textSourceNode;if(dD(e)||uD(e)||HI(e)||tM(e)){const t=HI(e)?e.text:Dt(e);return i?`"${My(t)}"`:o||16777216&tf(n)?`"${Ay(t)}"`:`"${Ry(t)}"`}return Ct(e,Sp(e),o,i)}return sf(n,r,(o?1:0)|(i?2:0)|(e.terminateUnterminatedLiterals?4:0)|(e.target&&e.target>=8?8:0))}function Nt(e){c.push(u),u=0,_.push(y),e&&1048576&tf(e)||(p.push(f),f=0,s.push(l),l=void 0,m.push(h))}function Mt(e){u=c.pop(),y=_.pop(),e&&1048576&tf(e)||(f=p.pop(),l=s.pop(),h=m.pop())}function Pt(e){h&&h!==ge(m)||(h=new Set),h.add(e)}function Lt(e){y&&y!==ge(_)||(y=new Set),y.add(e)}function kt(e){if(e)switch(e.kind){case 242:case 297:case 298:d(e.statements,kt);break;case 257:case 255:case 247:case 248:kt(e.statement);break;case 246:kt(e.thenStatement),kt(e.elseStatement);break;case 249:case 251:case 250:kt(e.initializer),kt(e.statement);break;case 256:kt(e.caseBlock);break;case 270:d(e.clauses,kt);break;case 259:kt(e.tryBlock),kt(e.catchClause),kt(e.finallyBlock);break;case 300:kt(e.variableDeclaration),kt(e.block);break;case 244:kt(e.declarationList);break;case 262:d(e.declarations,kt);break;case 261:case 170:case 209:case 264:case 275:case 281:Ot(e.name);break;case 263:Ot(e.name),1048576&tf(e)&&(d(e.parameters,kt),kt(e.body));break;case 207:case 208:case 276:d(e.elements,kt);break;case 273:kt(e.importClause);break;case 274:Ot(e.name),kt(e.namedBindings);break;case 277:Ot(e.propertyName||e.name)}}function wt(e){if(e)switch(e.kind){case 304:case 305:case 173:case 172:case 175:case 174:case 178:case 179:Ot(e.name)}}function Ot(e){e&&(Jc(e)||Xc(e)?Ft(e):xd(e)&&kt(e))}function Ft(e){const n=e.emitNode.autoGenerate;if(4==(7&n.flags))return Wt(gL(e),uD(e),n.flags,n.prefix,n.suffix);{const t=n.id;return i[t]||(i[t]=function(e){const n=e.emitNode.autoGenerate,t=yL(n.prefix,Ft),r=yL(n.suffix);switch(7&n.flags){case 1:return Vt(0,!!(8&n.flags),uD(e),t,r);case 2:return dt.assertNode(e,dD),Vt(268435456,!!(8&n.flags),!1,t,r);case 3:return jt(vl(e),32&n.flags?Bt:zt,!!(16&n.flags),!!(8&n.flags),uD(e),t,r)}return dt.fail(`Unsupported GeneratedIdentifierKind: ${dt.formatEnum(7&n.flags,vr,!0)}.`)}(e))}}function Wt(e,n,t,i,a){const s=cB(e),l=n?o:r;return l[s]||(l[s]=Jt(e,n,t??0,yL(i,Ft),yL(a)))}function zt(e,n){return Bt(e)&&!function(e,n){let t,r;n?(t=y,r=_):(t=h,r=m);if(null==t?void 0:t.has(e))return!0;for(let o=r.length-1;o>=0;o--)if(t!==r[o]&&(t=r[o],null==t?void 0:t.has(e)))return!0;return!1}(e,n)&&!a.has(e)}function Bt(e,n){return!t||Cp(t,e,M)}function Gt(e,n){switch(e){case"":f=n;break;case"#":u=n;break;default:l??(l=new Map),l.set(e,n)}}function Vt(e,n,t,r,o){r.length>0&&35===r.charCodeAt(0)&&(r=r.slice(1));const i=bL(t,r,"",o);let a=function(e){switch(e){case"":return f;case"#":return u;default:return(null==l?void 0:l.get(e))??0}}(i);if(e&&!(a&e)){const s=bL(t,r,268435456===e?"_i":"_n",o);if(zt(s,t))return a|=e,t?Lt(s):n&&Pt(s),Gt(i,a),s}for(;;){const e=268435455&a;if(a++,8!==e&&13!==e){const s=bL(t,r,e<26?"_"+String.fromCharCode(97+e):"_"+(e-26),o);if(zt(s,t))return t?Lt(s):n&&Pt(s),Gt(i,a),s}}}function jt(e,n=zt,t,r,o,i,s){if(e.length>0&&35===e.charCodeAt(0)&&(e=e.slice(1)),i.length>0&&35===i.charCodeAt(0)&&(i=i.slice(1)),t){const t=bL(o,i,e,s);if(n(t,o))return o?Lt(t):r?Pt(t):a.add(t),t}95!==e.charCodeAt(e.length-1)&&(e+="_");let l=1;for(;;){const t=bL(o,i,e+l,s);if(n(t,o))return o?Lt(t):r?Pt(t):a.add(t),t;l++}}function Ht(e){return jt(e,Bt,!0,!1,!1,"","")}function Kt(e){const n=Dt(e.name);return function(e,n){for(let t=n;t&&ug(t,n);t=t.nextContainer)if(du(t)&&t.locals){const n=t.locals.get(gl(e));if(n&&3257279&n.flags)return!1}return!0}(n,en(e,du))?n:jt(n,zt,!1,!1,!1,"","")}function qt(){return jt("default",zt,!1,!1,!1,"","")}function Jt(e,n,t,r,o){switch(e.kind){case 80:case 81:return jt(Dt(e),zt,!!(16&t),!!(8&t),n,r,o);case 268:case 267:return dt.assert(!r&&!o&&!n),Kt(e);case 273:case 279:return dt.assert(!r&&!o&&!n),function(e){const n=x_(e);return jt(qI(n)?cf(n.text):"module",zt,!1,!1,!1,"","")}(e);case 263:case 264:{dt.assert(!r&&!o&&!n);const i=e.name;return i&&!Jc(i)?Jt(i,!1,t,r,o):qt()}case 278:return dt.assert(!r&&!o&&!n),qt();case 232:return dt.assert(!r&&!o&&!n),jt("class",zt,!1,!1,!1,"","");case 175:case 178:case 179:return function(e,n,t,r){return dD(e.name)?Wt(e.name,n):Vt(0,!1,n,t,r)}(e,n,r,o);case 168:return Vt(0,!0,n,r,o);default:return Vt(0,!1,n,r,o)}}function Xt(e,n){const t=Oe(2,e,n),r=Q,o=Z,i=ee;Yt(n),t(e,n),$t(n,r,o,i)}function Yt(e){const n=tf(e),t=wR(e);!function(e,n,t,r){re(),ne=!1;const o=t<0||!!(1024&n)||12===e.kind,i=r<0||!!(2048&n)||12===e.kind;(t>0||r>0)&&t!==r&&(o||rr(t,354!==e.kind),(!o||t>=0&&1024&n)&&(Q=t),(!i||r>=0&&2048&n)&&(Z=r,262===e.kind&&(ee=r)));d(FR(e),Zt),oe()}(e,n,t.pos,t.end),4096&n&&(te=!0)}function $t(e,n,t,r){const o=tf(e),i=wR(e);4096&o&&(te=!1),Qt(e,o,i.pos,i.end,n,t,r);const a=nI(e);a&&Qt(e,o,a.pos,a.end,n,t,r)}function Qt(e,n,t,r,o,i,a){re();const s=r<0||!!(2048&n)||12===e.kind;d(BR(e),er),(t>0||r>0)&&t!==r&&(Q=o,Z=i,ee=a,s||354===e.kind||function(e){mr(e,cr)}(r)),oe()}function Zt(e){(e.hasLeadingNewline||2===e.kind)&&T.writeLine(),nr(e),e.hasTrailingNewLine||2===e.kind?T.writeLine():T.writeSpace(" ")}function er(e){T.isAtStartOfLine()||T.writeSpace(" "),nr(e),e.hasTrailingNewLine&&T.writeLine()}function nr(e){const n=function(e){return 3===e.kind?`/*${e.text}*/`:`//${e.text}`}(e);xv(n,3===e.kind?Fa(n):void 0,T,0,n.length,j)}function tr(e,n,r){re();const{pos:o,end:i}=n,a=tf(e),s=te||i<0||!!(2048&a);o<0||!!(1024&a)||function(e){const n=t&&Av(t.text,xe(),T,hr,e,j,te);n&&(D?D.push(n):D=[n])}(n),oe(),4096&a&&!te?(te=!0,r(e),te=!1):r(e),re(),s||(rr(n.end,!0),ne&&!T.isAtStartOfLine()&&T.writeLine()),oe()}function rr(e,n){ne=!1,n?0===e&&(null==t?void 0:t.isDeclarationFile)?fr(e,ir):fr(e,sr):0===e&&fr(e,or)}function or(e,n,t,r,o){_r(e,n)&&sr(e,n,t,r,o)}function ir(e,n,t,r,o){_r(e,n)||sr(e,n,t,r,o)}function ar(n,t){return!e.onlyPrintJsDocStyle||(wL(n,t)||Vp(n,t))}function sr(e,n,r,o,i){t&&ar(t.text,e)&&(ne||(Ev(xe(),T,i,e),ne=!0),Sr(e),xv(t.text,xe(),T,e,n,j),Sr(n),o?T.writeLine():3===r&&T.writeSpace(" "))}function lr(e){te||-1===e||rr(e,!0)}function cr(e,n,r,o){t&&ar(t.text,e)&&(T.isAtStartOfLine()||T.writeSpace(" "),Sr(e),xv(t.text,xe(),T,e,n,j),Sr(n),o&&T.writeLine())}function dr(e,n,t){te||(re(),mr(e,n?cr:t?ur:pr),oe())}function ur(e,n,r){t&&(Sr(e),xv(t.text,xe(),T,e,n,j),Sr(n),2===r&&T.writeLine())}function pr(e,n,r,o){t&&(Sr(e),xv(t.text,xe(),T,e,n,j),Sr(n),o?T.writeLine():T.writeSpace(" "))}function fr(e,n){!t||-1!==Q&&e===Q||(function(e){return void 0!==D&&ye(D).nodePos===e}(e)?function(e){if(!t)return;const n=ye(D).detachedCommentEndPos;D.length-1?D.pop():D=void 0;ls(t.text,n,e,n)}(n):ls(t.text,e,n,e))}function mr(e,n){t&&(-1===Z||e!==Z&&e!==ee)&&cs(t.text,e,n)}function hr(e,n,r,o,i,a){t&&ar(t.text,o)&&(Sr(o),xv(e,n,r,o,i,a),Sr(i))}function _r(e,n){return!!t&&Gp(t.text,e,n)}function gr(e,n){const t=Oe(3,e,n);yr(n),t(e,n),br(n)}function yr(e){const n=tf(e),t=CR(e),r=t.source||x;354!==e.kind&&!(32&n)&&t.pos>=0&&Er(t.source||x,Tr(r,t.pos)),128&n&&(X=!0)}function br(e){const n=tf(e),t=CR(e);128&n&&(X=!1),354!==e.kind&&!(64&n)&&t.end>=0&&Er(t.source||x,t.end)}function Tr(e,n){return e.skipTrivia?e.skipTrivia(n):es(e.text,n)}function Sr(e){if(X||eA(e)||xr(x))return;const{line:n,character:t}=Ua(x,e);A.addMapping(T.getLine(),T.getColumn(),Y,n,t,void 0)}function Er(e,n){if(e!==x){const t=x,r=Y;Ar(e),Sr(n),function(e,n){x=e,Y=n}(t,r)}else Sr(n)}function Ar(n){X||(x=n,n!==R?xr(n)||(Y=A.addSource(n.fileName),e.inlineSources&&A.setSourceContent(Y,n.text),R=n,$=Y):Y=$)}function xr(e){return xi(e.fileName,".json")}}function Pj(e,n,t,r){n(e)}function Lj(e,n,t,r){n(e,t.select(r))}function kj(e,n,t,r){n(e,t)}function wj(e,n,t){if(!e.getDirectories||!e.readDirectory)return;const r=new Map,o=Hn(t);return{useCaseSensitiveFileNames:t,fileExists:function(n){const t=l(i(n));return t&&u(t.sortedAndCanonicalizedFiles,o(c(n)))||e.fileExists(n)},readFile:(n,t)=>e.readFile(n,t),directoryExists:e.directoryExists&&function(n){const t=i(n);return r.has(Ji(t))||e.directoryExists(n)},getDirectories:function(n){const t=i(n),r=d(n,t);if(r)return r.directories.slice();return e.getDirectories(n)},readDirectory:function(r,o,a,l,u){const f=i(r),m=d(r,f);let h;if(void 0!==m)return TE(r,o,a,l,t,n,u,function(e){const n=i(e);if(n===f)return m||_(e,n);const t=d(e,n);return void 0!==t?t||_(e,n):sA},p);return e.readDirectory(r,o,a,l,u);function _(n,t){if(h&&t===f)return h;const r={files:D(e.readDirectory(n,void 0,void 0,["*.*"]),c)||s,directories:e.getDirectories(n)||s};return t===f&&(h=r),r}},createDirectory:e.createDirectory&&function(n){const t=l(i(n));if(t){const e=c(n),r=o(e);Q(t.sortedAndCanonicalizedDirectories,r,xn)&&t.directories.push(e)}e.createDirectory(n)},writeFile:e.writeFile&&function(n,t,r){const o=l(i(n));o&&m(o,c(n),!0);return e.writeFile(n,t,r)},addOrDeleteFileOrDirectory:function(n,t){if(void 0!==a(t))return void h();const r=l(t);if(!r)return void f(t);if(!e.directoryExists)return void h();const i=c(n),s={fileExists:e.fileExists(n),directoryExists:e.directoryExists(n)};s.directoryExists||u(r.sortedAndCanonicalizedDirectories,o(i))?h():m(r,i,s.fileExists);return s},addOrDeleteFile:function(e,n,t){if(1===t)return;const r=l(n);r?m(r,c(e),0===t):f(n)},clearCache:h,realpath:e.realpath&&p};function i(e){return Ki(e,n,o)}function a(e){return r.get(Ji(e))}function l(e){const n=a(Mi(e));return n?(n.sortedAndCanonicalizedFiles||(n.sortedAndCanonicalizedFiles=n.files.map(o).sort(),n.sortedAndCanonicalizedDirectories=n.directories.map(o).sort()),n):n}function c(e){return Pi(ji(e))}function d(n,t){const o=a(t=Ji(t));if(o)return o;try{return function(n,t){var o;if(!e.realpath||Ji(i(e.realpath(n)))===t){const o={files:D(e.readDirectory(n,void 0,void 0,["*.*"]),c)||[],directories:e.getDirectories(n)||[]};return r.set(Ji(t),o),o}if(null==(o=e.directoryExists)?void 0:o.call(e,n))return r.set(t,!1),!1}(n,t)}catch{return void dt.assert(!r.has(Ji(t)))}}function u(e,n){return Ee(e,n,sn,xn)>=0}function p(n){return e.realpath?e.realpath(n):n}function f(e){da(Mi(e),e=>!!r.delete(Ji(e))||void 0)}function m(e,n,t){const r=e.sortedAndCanonicalizedFiles,i=o(n);if(t)Q(r,i,xn)&&e.files.push(n);else{const n=Ee(r,i,sn,xn);if(n>=0){r.splice(n,1);const t=e.files.findIndex(e=>o(e)===i);e.files.splice(t,1)}}}function h(){r.clear()}}var Oj=(e=>(e[e.Update=0]="Update",e[e.RootNamesAndUpdate=1]="RootNamesAndUpdate",e[e.Full=2]="Full",e))(Oj||{});function Fj(e,n,t,r,o){var i;const a=Oe((null==(i=null==n?void 0:n.configFile)?void 0:i.extendedSourceFiles)||s,o);t.forEach((n,t)=>{a.has(t)||(n.projects.delete(e),n.close())}),a.forEach((n,o)=>{const i=t.get(o);i?i.projects.add(e):t.set(o,{projects:new Set([e]),watcher:r(n,o),close:()=>{const e=t.get(o);e&&0===e.projects.size&&(e.watcher.close(),t.delete(o))}})})}function Wj(e,n){n.forEach(n=>{n.projects.delete(e)&&n.close()})}function zj(e,n,t){e.delete(n)&&e.forEach(({extendedResult:r},o)=>{var i;(null==(i=r.extendedSourceFiles)?void 0:i.some(e=>t(e)===n))&&zj(e,o,t)})}function Bj(e,n,t){gT(n,e.getMissingFilePaths(),{createNewValue:t,onDeleteValue:aT})}function Gj(e,n,t){function r(e,n){return{watcher:t(e,n),flags:n}}n?gT(e,new Map(Object.entries(n)),{createNewValue:r,onDeleteValue:qj,onExistingValue:function(n,t,o){if(n.flags===t)return;n.watcher.close(),e.set(o,r(o,t))}}):hT(e,qj)}function Vj({watchedDirPath:e,fileOrDirectory:n,fileOrDirectoryPath:t,configFileName:r,options:o,program:i,extraFileExtensions:a,currentDirectory:s,useCaseSensitiveFileNames:l,writeLog:c,toPath:d,getScriptKind:u}){const p=QH(t);if(!p)return c(`Project: ${r} Detected ignored path: ${n}`),!0;if((t=p)===e)return!1;if(Ai(t)&&!jE(n,o,a)&&!function(){if(!u)return!1;switch(u(n)){case 3:case 4:case 7:case 5:return!0;case 1:case 2:return OS(o);case 6:return MS(o);case 0:return!1}}())return c(`Project: ${r} Detected file add/remove of non supported extension: ${n}`),!0;if(UO(n,o.configFile.configFileSpecs,Vi(Mi(r),s),l,s))return c(`Project: ${r} Detected excluded file: ${n}`),!0;if(!i)return!1;if(o.outFile||o.outDir)return!1;if(yk(t)){if(o.declarationDir)return!1}else if(!Ri(t,NE))return!1;const f=qE(t),m=Ye(i)?void 0:IK(i)?i.getProgramOrUndefined():i,h=m||Ye(i)?void 0:i;return!(!_(f+".ts")&&!_(f+".tsx"))&&(c(`Project: ${r} Detected output file: ${n}`),!0);function _(e){return m?!!m.getSourceFileByPath(e):h?h.state.fileInfos.has(e):!!y(i,n=>d(n)===e)}}function jj(e,n){return!!e&&e.isEmittedFile(n)}var Uj=(e=>(e[e.None=0]="None",e[e.TriggerOnly=1]="TriggerOnly",e[e.Verbose=2]="Verbose",e))(Uj||{});function Hj(e,n,t,r){ti(2===n?t:tn);const o={watchFile:(n,t,r,o)=>e.watchFile(n,t,r,o),watchDirectory:(n,t,r,o)=>e.watchDirectory(n,t,!!(1&r),o)},i=0!==n?{watchFile:c("watchFile"),watchDirectory:c("watchDirectory")}:void 0,a=2===n?{watchFile:function(e,n,o,a,s,l){t(`FileWatcher:: Added:: ${d(e,o,a,s,l,r)}`);const c=i.watchFile(e,n,o,a,s,l);return{close:()=>{t(`FileWatcher:: Close:: ${d(e,o,a,s,l,r)}`),c.close()}}},watchDirectory:function(e,n,o,a,s,l){const c=`DirectoryWatcher:: Added:: ${d(e,o,a,s,l,r)}`;t(c);const u=Vt(),p=i.watchDirectory(e,n,o,a,s,l),f=Vt()-u;return t(`Elapsed:: ${f}ms ${c}`),{close:()=>{const n=`DirectoryWatcher:: Close:: ${d(e,o,a,s,l,r)}`;t(n);const i=Vt();p.close();const c=Vt()-i;t(`Elapsed:: ${c}ms ${n}`)}}}}:i||o,s=2===n?function(e,n,o,i,a){return t(`ExcludeWatcher:: Added:: ${d(e,n,o,i,a,r)}`),{close:()=>t(`ExcludeWatcher:: Close:: ${d(e,n,o,i,a,r)}`)}}:FK;return{watchFile:l("watchFile"),watchDirectory:l("watchDirectory")};function l(n){return(t,r,o,i,l,c)=>{var d;return KO(t,"watchFile"===n?null==i?void 0:i.excludeFiles:null==i?void 0:i.excludeDirectories,"boolean"==typeof e.useCaseSensitiveFileNames?e.useCaseSensitiveFileNames:e.useCaseSensitiveFileNames(),(null==(d=e.getCurrentDirectory)?void 0:d.call(e))||"")?s(t,o,i,l,c):a[n].call(void 0,t,r,o,i,l,c)}}function c(e){return(n,i,a,s,l,c)=>o[e].call(void 0,n,(...o)=>{const u=`${"watchFile"===e?"FileWatcher":"DirectoryWatcher"}:: Triggered with ${o[0]} ${void 0!==o[1]?o[1]:""}:: ${d(n,a,s,l,c,r)}`;t(u);const p=Vt();i.call(void 0,...o);const f=Vt()-p;t(`Elapsed:: ${f}ms ${u}`)},a,s,l,c)}function d(e,n,t,r,o,i){return`WatchInfo: ${e} ${n} ${JSON.stringify(t)} ${i?i(r,o):void 0===o?r:`${r} ${o}`}`}}function Kj(e){const n=null==e?void 0:e.fallbackPolling;return{watchFile:void 0!==n?n:1}}function qj(e){e.watcher.close()}function Jj(e,n,t="tsconfig.json"){return da(e,e=>{const r=zi(e,t);return n(r)?r:void 0})}function Xj(e,n){const t=Mi(n);return ji(yi(e)?e:zi(t,e))}function Yj(e,n,t){let r;return d(e,e=>{const o=Gi(e,n);if(o.pop(),!r)return void(r=o);const i=Math.min(r.length,o.length);for(let n=0;n<i;n++)if(t(r[n])!==t(o[n])){if(0===n)return!0;r.length=n;break}o.length<r.length&&(r.length=o.length)})?"":r?Oi(r):n}function $j(e,n){return eU(e,n)}function Qj(e,n){return(t,r,o)=>{let i;try{er("beforeIORead"),i=e(t),er("afterIORead"),nr("I/O Read","beforeIORead","afterIORead")}catch(bi){o&&o(bi.message),i=""}return void 0!==i?sk(t,i,r,n):void 0}}function Zj(e,n,t){return(r,o,i,a)=>{try{er("beforeIOWrite"),ov(r,o,i,e,n,t),er("afterIOWrite"),nr("I/O Write","beforeIOWrite","afterIOWrite")}catch(bi){a&&a(bi.message)}}}function eU(e,n,t=di){const r=new Map,o=Hn(t.useCaseSensitiveFileNames);function i(){return Mi(ji(t.getExecutingFilePath()))}const a=wb(e),s=t.realpath&&(e=>t.realpath(e)),l={getSourceFile:Qj(e=>l.readFile(e),n),getDefaultLibLocation:i,getDefaultLibFileName:e=>zi(i(),Ms(e)),writeFile:Zj((e,n,r)=>t.writeFile(e,n,r),e=>(l.createDirectory||t.createDirectory)(e),e=>{return n=e,!!r.has(n)||!!(l.directoryExists||t.directoryExists)(n)&&(r.set(n,!0),!0);var n}),getCurrentDirectory:pn(()=>t.getCurrentDirectory()),useCaseSensitiveFileNames:()=>t.useCaseSensitiveFileNames,getCanonicalFileName:o,getNewLine:()=>a,fileExists:e=>t.fileExists(e),readFile:e=>t.readFile(e),trace:e=>t.write(e+a),directoryExists:e=>t.directoryExists(e),getEnvironmentVariable:e=>t.getEnvironmentVariable?t.getEnvironmentVariable(e):"",getDirectories:e=>t.getDirectories(e),realpath:s,readDirectory:(e,n,r,o,i)=>t.readDirectory(e,n,r,o,i),createDirectory:e=>t.createDirectory(e),createHash:Ue(t,t.createHash)};return l}function nU(e,n,t){const r=e.readFile,o=e.fileExists,i=e.directoryExists,a=e.createDirectory,s=e.writeFile,l=new Map,c=new Map,d=new Map,u=new Map,p=(n,t)=>{const o=r.call(e,t);return l.set(n,void 0!==o&&o),o};e.readFile=t=>{const o=n(t),i=l.get(o);return void 0!==i?!1!==i?i:void 0:xi(t,".json")||tj(t)?p(o,t):r.call(e,t)};const f=t?(e,r,o,i)=>{const a=n(e),s="object"==typeof r?r.impliedNodeFormat:void 0,l=u.get(s),c=null==l?void 0:l.get(a);if(c)return c;const d=t(e,r,o,i);return d&&(yk(e)||xi(e,".json"))&&u.set(s,(l||new Map).set(a,d)),d}:void 0;return e.fileExists=t=>{const r=n(t),i=c.get(r);if(void 0!==i)return i;const a=o.call(e,t);return c.set(r,!!a),a},s&&(e.writeFile=(t,r,...o)=>{const i=n(t);c.delete(i);const a=l.get(i);void 0!==a&&a!==r?(l.delete(i),u.forEach(e=>e.delete(i))):f&&u.forEach(e=>{const n=e.get(i);n&&n.text!==r&&e.delete(i)}),s.call(e,t,r,...o)}),i&&(e.directoryExists=t=>{const r=n(t),o=d.get(r);if(void 0!==o)return o;const a=i.call(e,t);return d.set(r,!!a),a},a&&(e.createDirectory=t=>{const r=n(t);d.delete(r),a.call(e,t)})),{originalReadFile:r,originalFileExists:o,originalDirectoryExists:i,originalCreateDirectory:a,originalWriteFile:s,getSourceFileWithCache:f,readFileWithCache:e=>{const t=n(e),r=l.get(t);return void 0!==r?!1!==r?r:void 0:p(t,e)}}}function tU(e,n,t){let r;return r=ae(r,e.getConfigFileParsingDiagnostics()),r=ae(r,e.getOptionsDiagnostics(t)),r=ae(r,e.getSyntacticDiagnostics(n,t)),r=ae(r,e.getGlobalDiagnostics(t)),r=ae(r,e.getSemanticDiagnostics(n,t)),PS(e.getCompilerOptions())&&(r=ae(r,e.getDeclarationDiagnostics(n,t))),Cs(r||s)}function rU(e,n){let t="";for(const r of e)t+=oU(r,n);return t}function oU(e,n){const t=`${so(e)} TS${e.code}: ${gU(e.messageText,n.getNewLine())}${n.getNewLine()}`;if(e.file){const{line:r,character:o}=Ua(e.file,e.start);return`${sa(e.file.fileName,n.getCurrentDirectory(),e=>n.getCanonicalFileName(e))}(${r+1},${o+1}): `+t}return t}var iU=(e=>(e.Grey="[90m",e.Red="[91m",e.Yellow="[93m",e.Blue="[94m",e.Cyan="[96m",e))(iU||{}),aU="[7m",sU=" ",lU="[0m",cU="...",dU=" ",uU=" ";function pU(e){switch(e){case 1:return"[91m";case 0:return"[93m";case 2:return dt.fail("Should never get an Info diagnostic on the command line.");case 3:return"[94m"}}function fU(e,n){return n+e+lU}function mU(e,n,t,r,o,i){const{line:a,character:s}=Ua(e,n),{line:l,character:c}=Ua(e,n+t),d=Ua(e,e.text.length).line,u=l-a>=4;let p=(l+1+"").length;u&&(p=Math.max(cU.length,p));let f="";for(let m=a;m<=l;m++){f+=i.getNewLine(),u&&a+1<m&&m<l-1&&(f+=r+fU(cU.padStart(p),aU)+sU+i.getNewLine(),m=l-1);const n=Wa(e,m,0),t=m<d?Wa(e,m+1,0):e.text.length;let h=e.text.slice(n,t);if(h=h.trimEnd(),h=h.replace(/\t/g," "),f+=r+fU((m+1+"").padStart(p),aU)+sU,f+=h+i.getNewLine(),f+=r+fU("".padStart(p),aU)+sU,f+=o,m===a){const e=m===l?c:void 0;f+=h.slice(0,s).replace(/\S/g," "),f+=h.slice(s,e).replace(/./g,"~")}else f+=m===l?h.slice(0,c).replace(/./g,"~"):h.replace(/./g,"~");f+=lU}return f}function hU(e,n,t,r=fU){const{line:o,character:i}=Ua(e,n);let a="";return a+=r(t?sa(e.fileName,t.getCurrentDirectory(),e=>t.getCanonicalFileName(e)):e.fileName,"[96m"),a+=":",a+=r(`${o+1}`,"[93m"),a+=":",a+=r(`${i+1}`,"[93m"),a}function _U(e,n){let t="";for(const r of e){if(r.file){const{file:e,start:o}=r;t+=hU(e,o,n),t+=" - "}if(t+=fU(so(r),pU(r.category)),t+=fU(` TS${r.code}: `,"[90m"),t+=gU(r.messageText,n.getNewLine()),r.file&&r.code!==fa.File_appears_to_be_binary.code&&(t+=n.getNewLine(),t+=mU(r.file,r.start,r.length,"",pU(r.category),n)),r.relatedInformation){t+=n.getNewLine();for(const{file:e,start:o,length:i,messageText:a}of r.relatedInformation)e&&(t+=n.getNewLine(),t+=dU+hU(e,o,n),t+=mU(e,o,i,uU,"[96m",n)),t+=n.getNewLine(),t+=uU+gU(a,n.getNewLine())}t+=n.getNewLine()}return t}function gU(e,n,t=0){if(Qe(e))return e;if(void 0===e)return"";let r="";if(t){r+=n;for(let e=0;e<t;e++)r+=" "}if(r+=e.messageText,t++,e.next)for(const o of e.next)r+=gU(o,n,t);return r}function yU(e,n){return(Qe(e)?n:e.resolutionMode)||n}function vU(e,n,t){return SU(e,tH(e,n),t)}function bU(e){var n;return FN(e)?e.isTypeOnly:!!(null==(n=e.importClause)?void 0:n.isTypeOnly)}function TU(e,n,t){return SU(e,n,t)}function SU(e,n,t){if(xN(n.parent)||FN(n.parent)||eP(n.parent)){if(bU(n.parent)){const e=AU(n.parent.attributes);if(e)return e}}if(n.parent.parent&&lC(n.parent.parent)){const e=AU(n.parent.parent.attributes);if(e)return e}if(t&&yS(t))return EU(e,n,t)}function EU(e,n,t){var r;if(!t)return;const o=null==(r=ag(n.parent))?void 0:r.parent;if(o&&AN(o)||Wh(n.parent,!1))return 1;if(fm(ag(n.parent)))return HU(e,t)?1:99;const i=KU(e,t);return 1===i?1:WS(i)||200===i?99:void 0}function AU(e,n){if(!e)return;if(1!==c(e.elements))return void(null==n||n(e,118===e.token?fa.Type_import_attributes_should_have_exactly_one_key_resolution_mode_with_value_import_or_require:fa.Type_import_assertions_should_have_exactly_one_key_resolution_mode_with_value_import_or_require));const t=e.elements[0];if(zu(t.name))if("resolution-mode"===t.name.text){if(zu(t.value)){if("import"===t.value.text||"require"===t.value.text)return"import"===t.value.text?99:1;null==n||n(t.value,fa.resolution_mode_should_be_either_require_or_import)}}else null==n||n(t.name,118===e.token?fa.resolution_mode_is_the_only_valid_key_for_type_import_attributes:fa.resolution_mode_is_the_only_valid_key_for_type_import_assertions)}var xU={resolvedModule:void 0,resolvedTypeReferenceDirective:void 0};function RU(e){return e.text}var IU={getName:RU,getMode:(e,n,t)=>TU(n,e,t)};function DU(e,n,t,r,o){return{nameAndMode:IU,resolve:(i,a)=>KF(i,e,t,r,o,n,a)}}function CU(e){return Qe(e)?e:e.fileName}var NU={getName:CU,getMode:(e,n,t)=>yU(e,n&&JU(n,t))};function MU(e,n,t,r,o){return{nameAndMode:NU,resolve:(i,a)=>AF(i,e,t,r,n,o,a)}}function PU(e,n,t,r,o,i,a,l){if(0===e.length)return s;const c=[],d=new Map,u=l(n,t,r,i,a);for(const s of e){const e=u.nameAndMode.getName(s),n=u.nameAndMode.getMode(s,o,(null==t?void 0:t.commandLine.options)||r),i=wF(e,n);let a=d.get(i);a||d.set(i,a=u.resolve(e,n)),c.push(a)}return c}var LU="__inferred type names__.ts";function kU(e,n,t){return zi(e.configFilePath?Mi(e.configFilePath):n,`__lib_node_modules_lookup_${t}__.ts`)}function wU(e){const n=e.split(".");let t=n[1],r=2;for(;n[r]&&"d"!==n[r];)t+=(2===r?"/":"-")+n[r],r++;return"@typescript/lib-"+t}function OU(e){switch(null==e?void 0:e.kind){case 3:case 4:case 5:case 7:return!0;default:return!1}}function FU(e){return void 0!==e.pos}function WU(e,n){var t,r,o,i;const a=dt.checkDefined(e.getSourceFileByPath(n.file)),{kind:s,index:l}=n;let c,d,u;switch(s){case 3:const n=tH(a,l);if(u=null==(r=null==(t=e.getResolvedModuleFromModuleSpecifier(n,a))?void 0:t.resolvedModule)?void 0:r.packageId,-1===n.pos)return{file:a,packageId:u,text:n.text};c=es(a.text,n.pos),d=n.end;break;case 4:({pos:c,end:d}=a.referencedFiles[l]);break;case 5:({pos:c,end:d}=a.typeReferenceDirectives[l]),u=null==(i=null==(o=e.getResolvedTypeReferenceDirectiveFromTypeReferenceDirective(a.typeReferenceDirectives[l],a))?void 0:o.resolvedTypeReferenceDirective)?void 0:i.packageId;break;case 7:({pos:c,end:d}=a.libReferenceDirectives[l]);break;default:return dt.assertNever(s)}return{file:a,pos:c,end:d,packageId:u}}function zU(e,n,t,r,o,i,a,s,l,c){if(!e||(null==s?void 0:s()))return!1;if(!ee(e.getRootFileNames(),n))return!1;let u;if(!ee(e.getProjectReferences(),c,function(n,t,r){return up(n,t)&&m(e.getResolvedProjectReferences()[r],n)}))return!1;if(e.getSourceFiles().some(function(e){return!function(e){return e.version===r(e.resolvedPath,e.fileName)}(e)||i(e.path)}))return!1;const p=e.getMissingFilePaths();if(p&&ap(p,o))return!1;const f=e.getCompilerOptions();return!!mT(f,t)&&((!e.resolvedLibReferences||!ap(e.resolvedLibReferences,(e,n)=>a(n)))&&(!f.configFile||!t.configFile||f.configFile.text===t.configFile.text));function m(e,n){if(e){if(S(u,e))return!0;const t=ZU(n),r=l(t);return!!r&&(e.commandLine.options.configFile===r.options.configFile&&(!!ee(e.commandLine.fileNames,r.fileNames)&&((u||(u=[])).push(e),!d(e.references,(n,t)=>!m(n,e.commandLine.projectReferences[t])))))}const t=ZU(n);return!l(t)}}function BU(e){return e.options.configFile?[...e.options.configFile.parseDiagnostics,...e.errors]:e.errors}function GU(e,n,t,r){const o=VU(e,n,t,r);return"object"==typeof o?o.impliedNodeFormat:o}function VU(e,n,t,r){const o=AS(r),i=3<=o&&o<=99||iW(e);return Ri(e,[".d.mts",".mts",".mjs"])?99:Ri(e,[".d.cts",".cts",".cjs"])?1:i&&Ri(e,[".d.ts",".ts",".tsx",".js",".jsx"])?function(){const o=yW(n,t,r),i=[];o.failedLookupLocations=i,o.affectingLocations=i;const a=vW(Mi(e),o);return{impliedNodeFormat:"module"===(null==a?void 0:a.contents.packageJsonContent.type)?99:1,packageJsonLocations:i,packageJsonScope:a}}():void 0}var jU=new Set([fa.Cannot_redeclare_block_scoped_variable_0.code,fa.A_module_cannot_have_multiple_default_exports.code,fa.Another_export_default_is_here.code,fa.The_first_export_default_is_here.code,fa.Identifier_expected_0_is_a_reserved_word_at_the_top_level_of_a_module.code,fa.Identifier_expected_0_is_a_reserved_word_in_strict_mode_Modules_are_automatically_in_strict_mode.code,fa.Identifier_expected_0_is_a_reserved_word_that_cannot_be_used_here.code,fa.constructor_is_a_reserved_word.code,fa.delete_cannot_be_called_on_an_identifier_in_strict_mode.code,fa.Code_contained_in_a_class_is_evaluated_in_JavaScript_s_strict_mode_which_does_not_allow_this_use_of_0_For_more_information_see_https_Colon_Slash_Slashdeveloper_mozilla_org_Slashen_US_Slashdocs_SlashWeb_SlashJavaScript_SlashReference_SlashStrict_mode.code,fa.Invalid_use_of_0_Modules_are_automatically_in_strict_mode.code,fa.Invalid_use_of_0_in_strict_mode.code,fa.A_label_is_not_allowed_here.code,fa.with_statements_are_not_allowed_in_strict_mode.code,fa.A_break_statement_can_only_be_used_within_an_enclosing_iteration_or_switch_statement.code,fa.A_break_statement_can_only_jump_to_a_label_of_an_enclosing_statement.code,fa.A_class_declaration_without_the_default_modifier_must_have_a_name.code,fa.A_class_member_cannot_have_the_0_keyword.code,fa.A_comma_expression_is_not_allowed_in_a_computed_property_name.code,fa.A_continue_statement_can_only_be_used_within_an_enclosing_iteration_statement.code,fa.A_continue_statement_can_only_jump_to_a_label_of_an_enclosing_iteration_statement.code,fa.A_continue_statement_can_only_jump_to_a_label_of_an_enclosing_iteration_statement.code,fa.A_default_clause_cannot_appear_more_than_once_in_a_switch_statement.code,fa.A_default_export_must_be_at_the_top_level_of_a_file_or_module_declaration.code,fa.A_definite_assignment_assertion_is_not_permitted_in_this_context.code,fa.A_destructuring_declaration_must_have_an_initializer.code,fa.A_get_accessor_cannot_have_parameters.code,fa.A_rest_element_cannot_contain_a_binding_pattern.code,fa.A_rest_element_cannot_have_a_property_name.code,fa.A_rest_element_cannot_have_an_initializer.code,fa.A_rest_element_must_be_last_in_a_destructuring_pattern.code,fa.A_rest_parameter_cannot_have_an_initializer.code,fa.A_rest_parameter_must_be_last_in_a_parameter_list.code,fa.A_rest_parameter_or_binding_pattern_may_not_have_a_trailing_comma.code,fa.A_return_statement_cannot_be_used_inside_a_class_static_block.code,fa.A_set_accessor_cannot_have_rest_parameter.code,fa.A_set_accessor_must_have_exactly_one_parameter.code,fa.An_export_declaration_can_only_be_used_at_the_top_level_of_a_module.code,fa.An_export_declaration_cannot_have_modifiers.code,fa.An_import_declaration_can_only_be_used_at_the_top_level_of_a_module.code,fa.An_import_declaration_cannot_have_modifiers.code,fa.An_object_member_cannot_be_declared_optional.code,fa.Argument_of_dynamic_import_cannot_be_spread_element.code,fa.Cannot_assign_to_private_method_0_Private_methods_are_not_writable.code,fa.Cannot_redeclare_identifier_0_in_catch_clause.code,fa.Catch_clause_variable_cannot_have_an_initializer.code,fa.Class_decorators_can_t_be_used_with_static_private_identifier_Consider_removing_the_experimental_decorator.code,fa.Classes_can_only_extend_a_single_class.code,fa.Classes_may_not_have_a_field_named_constructor.code,fa.Did_you_mean_to_use_a_Colon_An_can_only_follow_a_property_name_when_the_containing_object_literal_is_part_of_a_destructuring_pattern.code,fa.Duplicate_label_0.code,fa.Dynamic_imports_can_only_accept_a_module_specifier_and_an_optional_set_of_attributes_as_arguments.code,fa.for_await_loops_cannot_be_used_inside_a_class_static_block.code,fa.JSX_attributes_must_only_be_assigned_a_non_empty_expression.code,fa.JSX_elements_cannot_have_multiple_attributes_with_the_same_name.code,fa.JSX_expressions_may_not_use_the_comma_operator_Did_you_mean_to_write_an_array.code,fa.JSX_property_access_expressions_cannot_include_JSX_namespace_names.code,fa.Jump_target_cannot_cross_function_boundary.code,fa.Line_terminator_not_permitted_before_arrow.code,fa.Modifiers_cannot_appear_here.code,fa.Only_a_single_variable_declaration_is_allowed_in_a_for_in_statement.code,fa.Only_a_single_variable_declaration_is_allowed_in_a_for_of_statement.code,fa.Private_identifiers_are_not_allowed_outside_class_bodies.code,fa.Private_identifiers_are_only_allowed_in_class_bodies_and_may_only_be_used_as_part_of_a_class_member_declaration_property_access_or_on_the_left_hand_side_of_an_in_expression.code,fa.Property_0_is_not_accessible_outside_class_1_because_it_has_a_private_identifier.code,fa.Tagged_template_expressions_are_not_permitted_in_an_optional_chain.code,fa.The_left_hand_side_of_a_for_of_statement_may_not_be_async.code,fa.The_variable_declaration_of_a_for_in_statement_cannot_have_an_initializer.code,fa.The_variable_declaration_of_a_for_of_statement_cannot_have_an_initializer.code,fa.Trailing_comma_not_allowed.code,fa.Variable_declaration_list_cannot_be_empty.code,fa._0_and_1_operations_cannot_be_mixed_without_parentheses.code,fa._0_expected.code,fa._0_is_not_a_valid_meta_property_for_keyword_1_Did_you_mean_2.code,fa._0_list_cannot_be_empty.code,fa._0_modifier_already_seen.code,fa._0_modifier_cannot_appear_on_a_constructor_declaration.code,fa._0_modifier_cannot_appear_on_a_module_or_namespace_element.code,fa._0_modifier_cannot_appear_on_a_parameter.code,fa._0_modifier_cannot_appear_on_class_elements_of_this_kind.code,fa._0_modifier_cannot_be_used_here.code,fa._0_modifier_must_precede_1_modifier.code,fa._0_declarations_can_only_be_declared_inside_a_block.code,fa._0_declarations_must_be_initialized.code,fa.extends_clause_already_seen.code,fa.let_is_not_allowed_to_be_used_as_a_name_in_let_or_const_declarations.code,fa.Class_constructor_may_not_be_a_generator.code,fa.Class_constructor_may_not_be_an_accessor.code,fa.await_expressions_are_only_allowed_within_async_functions_and_at_the_top_levels_of_modules.code,fa.await_using_statements_are_only_allowed_within_async_functions_and_at_the_top_levels_of_modules.code,fa.Private_field_0_must_be_declared_in_an_enclosing_class.code,fa.This_condition_will_always_return_0_since_JavaScript_compares_objects_by_reference_not_value.code]);function UU(e,n,t,r,i){var a,l,c,u,p,m,h,_,g,v,T,E,A,R,I,D;let C=Ye(e)?function(e,n,t,r,o,i){return{rootNames:e,options:n,host:t,oldProgram:r,configFileParsingDiagnostics:o,typeScriptVersion:i}}(e,n,t,r,i):e;const{rootNames:N,options:L,configFileParsingDiagnostics:k,projectReferences:w,typeScriptVersion:O,host:W}=C;let{oldProgram:z}=C;C=void 0,e=void 0;for(const o of Yk)if(Ie(L,o.name)&&"string"==typeof L[o.name])throw new Error(`${o.name} is a string value; tsconfig JSON must be parsed with parseJsonSourceFileConfigFileContent or getParsedCommandLineOfConfigFile before passing to createProgram`);const B=pn(()=>Lt("ignoreDeprecations",fa.Invalid_value_for_ignoreDeprecations));let G,V,j,H,q,J,X,Y,$;const Q=rH(Ft);let Z,ne,te,oe,ie,ae,se,le,de;const ue="number"==typeof L.maxNodeModuleJsDepth?L.maxNodeModuleJsDepth:0;let pe=0;const fe=new Map,me=new Map;null==(a=Kt)||a.push(Kt.Phase.Program,"createProgram",{configFilePath:L.configFilePath,rootDir:L.rootDir},!0),er("beforeProgram");const he=W||$j(L),_e=QU(he);let ge=L.noLib;const ye=pn(()=>he.getDefaultLibFileName(L)),ve=he.getDefaultLibLocation?he.getDefaultLibLocation():Mi(ye());let be=!1;const Te=he.getCurrentDirectory(),Se=OE(L),Ee=FE(L,Se),Ae=new Map;let xe,Re,De,Ce;const Ne=he.hasInvalidatedResolutions||rn;let Me;if(he.resolveModuleNameLiterals?(Ce=he.resolveModuleNameLiterals.bind(he),De=null==(l=he.getModuleResolutionCache)?void 0:l.call(he)):he.resolveModuleNames?(Ce=(e,n,t,r,o,i)=>he.resolveModuleNames(e.map(RU),n,null==i?void 0:i.map(RU),t,r,o).map(e=>e?void 0!==e.extension?{resolvedModule:e}:{resolvedModule:{...e,extension:rA(e.resolvedFileName)}}:xU),De=null==(c=he.getModuleResolutionCache)?void 0:c.call(he)):(De=GF(Te,At,L),Ce=(e,n,t,r,o)=>PU(e,n,t,r,o,he,De,DU)),he.resolveTypeReferenceDirectiveReferences)Me=he.resolveTypeReferenceDirectiveReferences.bind(he);else if(he.resolveTypeReferenceDirectives)Me=(e,n,t,r,o)=>he.resolveTypeReferenceDirectives(e.map(CU),n,t,r,null==o?void 0:o.impliedNodeFormat).map(e=>({resolvedTypeReferenceDirective:e}));else{const e=VF(Te,At,void 0,null==De?void 0:De.getPackageJsonInfoCache(),null==De?void 0:De.optionsToRedirectsKey);Me=(n,t,r,o,i)=>PU(n,t,r,o,i,he,e,MU)}const Pe=he.hasInvalidatedLibResolutions||rn;let Le;if(he.resolveLibrary)Le=he.resolveLibrary.bind(he);else{const e=GF(Te,At,L,null==De?void 0:De.getPackageJsonInfoCache());Le=(n,t,r)=>UF(n,t,r,he,e)}const ke=new Map;let we,Oe=new Map,Fe=He();const We=new Map;let ze=new Map;const Be=he.useCaseSensitiveFileNames()?new Map:void 0;let Ge,Ve,je,Ke;const qe=!!(null==(u=he.useSourceOfProjectReferenceRedirect)?void 0:u.call(he))&&!L.disableSourceOfProjectReferenceRedirect,{onProgramCreateComplete:Je,fileExists:Xe,directoryExists:$e}=function(e){let n;const t=e.compilerHost.fileExists,r=e.compilerHost.directoryExists,o=e.compilerHost.getDirectories,i=e.compilerHost.realpath;if(!e.useSourceOfProjectReferenceRedirect)return{onProgramCreateComplete:tn,fileExists:l};let a;e.compilerHost.fileExists=l,r&&(a=e.compilerHost.directoryExists=t=>r.call(e.compilerHost,t)?(u(t),!0):!!e.getResolvedProjectReferences()&&(n||(n=new Set,e.forEachResolvedProjectReference(t=>{const r=t.commandLine.options.outFile;if(r)n.add(Mi(e.toPath(r)));else{const r=t.commandLine.options.declarationDir||t.commandLine.options.outDir;r&&n.add(e.toPath(r))}})),p(t,!1)));o&&(e.compilerHost.getDirectories=n=>!e.getResolvedProjectReferences()||r&&r.call(e.compilerHost,n)?o.call(e.compilerHost,n):[]);i&&(e.compilerHost.realpath=n=>{var t;return(null==(t=e.getSymlinkCache().getSymlinkedFiles())?void 0:t.get(e.toPath(n)))||i.call(e.compilerHost,n)});return{onProgramCreateComplete:s,fileExists:l,directoryExists:a};function s(){e.compilerHost.fileExists=t,e.compilerHost.directoryExists=r,e.compilerHost.getDirectories=o}function l(n){return!!t.call(e.compilerHost,n)||!!e.getResolvedProjectReferences()&&(!!yk(n)&&p(n,!0))}function c(n){const r=e.getRedirectFromOutput(e.toPath(n));return void 0!==r?!Qe(r.source)||t.call(e.compilerHost,r.source):void 0}function d(t){const r=e.toPath(t),o=`${r}${pi}`;return sp(n,e=>r===e||Xn(e,o)||Xn(r,`${e}/`))}function u(n){var t;if(!e.getResolvedProjectReferences()||FA(n))return;if(!i||!n.includes(oW))return;const r=e.getSymlinkCache(),o=Ji(e.toPath(n));if(null==(t=r.getSymlinkedDirectories())?void 0:t.has(o))return;const a=ji(i.call(e.compilerHost,n));let s;a!==n&&(s=Ji(e.toPath(a)))!==o?r.setSymlinkedDirectory(n,{real:Ji(a),realPath:s}):r.setSymlinkedDirectory(o,!1)}function p(n,t){var r;const o=t?c:d,i=o(n);if(void 0!==i)return i;const a=e.getSymlinkCache(),s=a.getSymlinkedDirectories();if(!s)return!1;const l=e.toPath(n);return!!l.includes(oW)&&(!(!t||!(null==(r=a.getSymlinkedFiles())?void 0:r.has(l)))||(f(s.entries(),([r,i])=>{if(!i||!Xn(l,r))return;const s=o(l.replace(r,i.realPath));if(t&&s){const t=Vi(n,e.compilerHost.getCurrentDirectory());a.setSymlinkedFile(l,`${i.real}${t.replace(new RegExp(r,"i"),"")}`)}return s})||!1))}}({compilerHost:he,getSymlinkCache:Vt,useSourceOfProjectReferenceRedirect:qe,toPath:xn,getResolvedProjectReferences:Pn,getRedirectFromOutput:ft,forEachResolvedProjectReference:pt}),Ze=he.readFile.bind(he);null==(p=Kt)||p.push(Kt.Phase.Program,"shouldProgramCreateNewSourceFiles",{hasOldProgram:!!z});const nn=function(e,n){return!!e&&op(e.getCompilerOptions(),n,Hk)}(z,L);let on;if(null==(m=Kt)||m.pop(),null==(h=Kt)||h.push(Kt.Phase.Program,"tryReuseStructureFromOldProgram",{}),on=function(){var e;if(!z)return 0;const n=z.getCompilerOptions();if(tp(n,L))return 0;if(!ee(z.getRootFileNames(),N))return 0;if(Wx(z.getProjectReferences(),z.getResolvedProjectReferences(),(e,n,t)=>{const r=Rt((n?n.commandLine.projectReferences:w)[t]);return e?!r||r.sourceFile!==e.sourceFile||!ee(e.commandLine.fileNames,r.commandLine.fileNames):void 0!==r},(e,n)=>!ee(e,n?ht(n.sourceFile.path).commandLine.projectReferences:w,up)))return 0;w&&(Ge=w.map(Rt));const t=[],r=[];if(on=2,ap(z.getMissingFilePaths(),e=>he.fileExists(e)))return 0;const o=z.getSourceFiles();let i;a=i||(i={}),a[a.Exists=0]="Exists",a[a.Modified=1]="Modified";var a;const s=new Map;for(const c of o){const n=at(c.fileName,De,he,L);let o,i=he.getSourceFileByPath?he.getSourceFileByPath(c.fileName,c.resolvedPath,n,void 0,nn):he.getSourceFile(c.fileName,n,void 0,nn);if(!i)return 0;if(i.packageJsonLocations=(null==(e=n.packageJsonLocations)?void 0:e.length)?n.packageJsonLocations:void 0,i.packageJsonScope=n.packageJsonScope,dt.assert(!i.redirectInfo,"Host should not return a redirect source file from `getSourceFile`"),c.redirectInfo){if(i!==c.redirectInfo.unredirected)return 0;o=!1,i=c}else if(z.redirectTargetsMap.has(c.path)){if(i!==c)return 0;o=!1}else o=i!==c;i.path=c.path,i.originalFileName=c.originalFileName,i.resolvedPath=c.resolvedPath,i.fileName=c.fileName;const a=z.sourceFileToPackageName.get(c.path);if(void 0!==a){const e=s.get(a),n=o?1:0;if(void 0!==e&&1===n||1===e)return 0;s.set(a,n)}o?(c.impliedNodeFormat!==i.impliedNodeFormat?on=1:ee(c.libReferenceDirectives,i.libReferenceDirectives,$n)?c.hasNoDefaultLib!==i.hasNoDefaultLib?on=1:ee(c.referencedFiles,i.referencedFiles,$n)?(et(i),ee(c.imports,i.imports,Qn)&&ee(c.moduleAugmentations,i.moduleAugmentations,Qn)?(12582912&c.flags)!=(12582912&i.flags)?on=1:ee(c.typeReferenceDirectives,i.typeReferenceDirectives,$n)||(on=1):on=1):on=1:on=1,r.push(i)):Ne(c.path)&&(on=1,r.push(i)),t.push(i)}if(2!==on)return on;for(const c of r){const e=nH(c),n=In(e,c);(ae??(ae=new Map)).set(c.path,n);const t=yt(c);bp(e,n,e=>z.getResolvedModule(c,e.text,SU(c,e,t)),pp)&&(on=1);const r=c.typeReferenceDirectives,o=Dn(r,c);(le??(le=new Map)).set(c.path,o);bp(r,o,e=>z.getResolvedTypeReferenceDirective(c,CU(e),Xt(e,c)),vp)&&(on=1)}if(2!==on)return on;if(rp(n,L))return 1;if(z.resolvedLibReferences&&ap(z.resolvedLibReferences,(e,n)=>St(n).actual!==e.actual))return 1;if(he.hasChangedAutomaticTypeDirectiveNames){if(he.hasChangedAutomaticTypeDirectiveNames())return 1}else if(Z=DF(L,he),!ee(z.getAutomaticTypeDirectiveNames(),Z))return 1;ze=z.getMissingFilePaths(),dt.assert(t.length===z.getSourceFiles().length);for(const c of t)We.set(c.path,c);z.getFilesByNameMap().forEach((e,n)=>{e?e.path!==n?We.set(n,We.get(e.path)):z.isSourceFileFromExternalLibrary(e)&&me.set(e.path,!0):We.set(n,e)});const l=n.configFile&&n.configFile===L.configFile||!n.configFile&&!L.configFile&&!op(n,L,Bk);return Q.reuseStateFromOldProgram(z.getProgramDiagnosticsContainer(),l),be=l,j=t,Z=z.getAutomaticTypeDirectiveNames(),ne=z.getAutomaticTypeDirectiveResolutions(),Oe=z.sourceFileToPackageName,Fe=z.redirectTargetsMap,we=z.usesUriStyleNodeCoreModules,ie=z.resolvedModules,se=z.resolvedTypeReferenceDirectiveNames,te=z.resolvedLibReferences,de=z.getCurrentPackagesMap(),2}(),null==(_=Kt)||_.pop(),2!==on){if(G=[],V=[],w&&(Ge||(Ge=w.map(Rt)),N.length&&(null==Ge||Ge.forEach((e,n)=>{if(!e)return;const t=e.commandLine.options.outFile;if(qe){if(t||0===ES(e.commandLine.options))for(const r of e.commandLine.fileNames)rt(r,{kind:1,index:n})}else if(t)rt(YE(t,".d.ts"),{kind:2,index:n});else if(0===ES(e.commandLine.options)){const t=pn(()=>yj(e.commandLine,!he.useCaseSensitiveFileNames()));for(const r of e.commandLine.fileNames)yk(r)||xi(r,".json")||rt(dj(r,e.commandLine,!he.useCaseSensitiveFileNames(),t),{kind:2,index:n})}}))),null==(g=Kt)||g.push(Kt.Phase.Program,"processRootFiles",{count:N.length}),d(N,(e,n)=>Jn(e,!1,!1,{kind:0,index:n})),null==(v=Kt)||v.pop(),Z??(Z=N.length?DF(L,he):s),ne=OF(),Z.length){null==(T=Kt)||T.push(Kt.Phase.Program,"processTypeReferences",{count:Z.length});const e=zi(L.configFilePath?Mi(L.configFilePath):Te,LU),n=Dn(Z,e);for(let t=0;t<Z.length;t++)ne.set(Z[t],void 0,n[t]),bt(Z[t],void 0,n[t],{kind:8,typeReference:Z[t],packageId:null==(A=null==(E=n[t])?void 0:E.resolvedTypeReferenceDirective)?void 0:A.packageId});null==(R=Kt)||R.pop()}if(N.length&&!ge){const e=ye();!L.lib&&e?Jn(e,!0,!1,{kind:6}):d(L.lib,(e,n)=>{Jn(Tt(e),!0,!1,{kind:6,index:n})})}j=ce(G,function(e,n){return vn(An(e),An(n))}).concat(V),G=void 0,V=void 0,X=void 0}if(z&&he.onReleaseOldSourceFile){const e=z.getSourceFiles();for(const n of e){const e=Fn(n.resolvedPath);(nn||!e||e.impliedNodeFormat!==n.impliedNodeFormat||n.resolvedPath===n.path&&e.resolvedPath!==n.path)&&he.onReleaseOldSourceFile(n,z.getCompilerOptions(),!!Fn(n.path),e)}he.getParsedCommandLine||z.forEachResolvedProjectReference(e=>{ht(e.sourceFile.path)||he.onReleaseOldSourceFile(e.sourceFile,z.getCompilerOptions(),!1,void 0)})}z&&he.onReleaseParsedCommandLine&&Wx(z.getProjectReferences(),z.getResolvedProjectReferences(),(e,n,t)=>{const r=ZU((null==n?void 0:n.commandLine.projectReferences[t])||z.getProjectReferences()[t]);(null==Ve?void 0:Ve.has(xn(r)))||he.onReleaseParsedCommandLine(r,e,z.getCompilerOptions())}),z=void 0,oe=void 0,ae=void 0,le=void 0;const an={getRootFileNames:()=>N,getSourceFile:On,getSourceFileByPath:Fn,getSourceFiles:()=>j,getMissingFilePaths:()=>ze,getModuleResolutionCache:()=>De,getFilesByNameMap:()=>We,getCompilerOptions:()=>L,getSyntacticDiagnostics:function(e,n){return zn(e,Gn,n)},getOptionsDiagnostics:function(){return Cs(K(Q.getCombinedDiagnostics(an).getGlobalDiagnostics(),function(){if(!L.configFile)return s;let e=Q.getCombinedDiagnostics(an).getDiagnostics(L.configFile.fileName);return pt(n=>{e=K(e,Q.getCombinedDiagnostics(an).getDiagnostics(n.sourceFile.fileName))}),e}()))},getGlobalDiagnostics:function(){return N.length?Cs(kn().getGlobalDiagnostics().slice()):s},getSemanticDiagnostics:function(e,n,t){return zn(e,(e,n)=>function(e,n,t){return K($U(jn(e,n,t),L),Bn(e))}(e,n,t),n)},getCachedSemanticDiagnostics:function(e){return null==Y?void 0:Y.get(e.path)},getSuggestionDiagnostics:function(e,n){return Vn(()=>kn().getSuggestionDiagnostics(e,n))},getDeclarationDiagnostics:function(e,n){return zn(e,qn,n)},getBindAndCheckDiagnostics:function(e,n){return jn(e,n,void 0)},getProgramDiagnostics:Bn,getTypeChecker:kn,getClassifiableNames:function(){var e;if(!J){kn(),J=new Set;for(const n of j)null==(e=n.classifiableNames)||e.forEach(e=>J.add(e))}return J},getCommonSourceDirectory:Rn,emit:function(e,n,t,r,o,i,a){var s,l;null==(s=Kt)||s.push(Kt.Phase.Emit,"emit",{path:null==e?void 0:e.path},!0);const c=Vn(()=>function(e,n,t,r,o,i,a,s){if(!a){const o=YU(e,n,t,r);if(o)return o}const l=kn(),c=l.getEmitResolver(L.outFile?void 0:n,r,Sj(o,a));er("beforeEmit");const d=l.runWithCancellationToken(r,()=>Ej(c,Nn(t),n,HV(L,i,o),o,!1,a,s));return er("afterEmit"),nr("Emit","beforeEmit","afterEmit"),d}(an,e,n,t,r,o,i,a));return null==(l=Kt)||l.pop(),c},getCurrentDirectory:()=>Te,getNodeCount:()=>kn().getNodeCount(),getIdentifierCount:()=>kn().getIdentifierCount(),getSymbolCount:()=>kn().getSymbolCount(),getTypeCount:()=>kn().getTypeCount(),getInstantiationCount:()=>kn().getInstantiationCount(),getRelationCacheSizes:()=>kn().getRelationCacheSizes(),getFileProcessingDiagnostics:()=>Q.getFileProcessingDiagnostics(),getAutomaticTypeDirectiveNames:()=>Z,getAutomaticTypeDirectiveResolutions:()=>ne,isSourceFileFromExternalLibrary:Ln,isSourceFileDefaultLibrary:function(e){if(!e.isDeclarationFile)return!1;if(e.hasNoDefaultLib)return!0;if(L.noLib)return!1;const n=he.useCaseSensitiveFileNames()?gn:_n;return L.lib?U(L.lib,t=>{const r=te.get(t);return!!r&&n(e.fileName,r.actual)}):n(e.fileName,ye())},getModeForUsageLocation:jt,getEmitSyntaxForUsageLocation:function(e,n){return EU(e,n,yt(e))},getModeForResolutionAtIndex:Ut,getSourceFileFromReference:function(e,n){return nt(Xj(n.fileName,e.fileName),On)},getLibFileFromReference:function(e){var n;const t=Ox(e),r=t&&(null==(n=null==te?void 0:te.get(t))?void 0:n.actual);return void 0!==r?On(r):void 0},sourceFileToPackageName:Oe,redirectTargetsMap:Fe,usesUriStyleNodeCoreModules:we,resolvedModules:ie,resolvedTypeReferenceDirectiveNames:se,resolvedLibReferences:te,getProgramDiagnosticsContainer:()=>Q,getResolvedModule:ln,getResolvedModuleFromModuleSpecifier:function(e,n){return n??(n=Sp(e)),dt.assertIsDefined(n,"`moduleSpecifier` must have a `SourceFile` ancestor. Use `program.getResolvedModule` instead to provide the containing file and resolution mode."),ln(n,e.text,jt(n,e))},getResolvedTypeReferenceDirective:cn,getResolvedTypeReferenceDirectiveFromTypeReferenceDirective:function(e,n){return cn(n,e.fileName,Xt(e,n))},forEachResolvedModule:un,forEachResolvedTypeReferenceDirective:fn,getCurrentPackagesMap:()=>de,typesPackageExists:function(e){return hn().has(BW(e))},packageBundlesTypes:function(e){return!!hn().get(e)},isEmittedFile:function(e){if(L.noEmit)return!1;const n=xn(e);if(Fn(n))return!1;const t=L.outFile;if(t)return Gt(n,t)||Gt(n,qE(t)+".d.ts");if(L.declarationDir&&ra(L.declarationDir,n,Te,!he.useCaseSensitiveFileNames()))return!0;if(L.outDir)return ra(L.outDir,n,Te,!he.useCaseSensitiveFileNames());if(Ri(n,NE)||yk(n)){const e=qE(n);return!!Fn(e+".ts")||!!Fn(e+".tsx")}return!1},getConfigFileParsingDiagnostics:function(){return k||s},getProjectReferences:function(){return w},getResolvedProjectReferences:Pn,getRedirectFromSourceFile:ut,getResolvedProjectReferenceByPath:ht,forEachResolvedProjectReference:pt,isSourceOfProjectReferenceRedirect:mt,getRedirectFromOutput:ft,getCompilerOptionsForFile:yt,getDefaultResolutionModeForFile:Ht,getEmitModuleFormatOfFile:qt,getImpliedNodeFormatForEmit:function(e){return qU(e,yt(e))},shouldTransformImportCall:Jt,emitBuildInfo:function(e){var n,t;null==(n=Kt)||n.push(Kt.Phase.Emit,"emitBuildInfo",{},!0),er("beforeEmit");const r=Ej(Rj,Nn(e),void 0,UV,!1,!0);return er("afterEmit"),nr("Emit","beforeEmit","afterEmit"),null==(t=Kt)||t.pop(),r},fileExists:Xe,readFile:Ze,directoryExists:$e,getSymlinkCache:Vt,realpath:null==(I=he.realpath)?void 0:I.bind(he),useCaseSensitiveFileNames:()=>he.useCaseSensitiveFileNames(),getCanonicalFileName:At,getFileIncludeReasons:()=>Q.getFileReasons(),structureIsReused:on,writeFile:Mn,getGlobalTypingsCacheLocation:Ue(he,he.getGlobalTypingsCacheLocation)};return Je(),be||function(){L.strictPropertyInitialization&&!US(L,"strictNullChecks")&&Pt(fa.Option_0_cannot_be_specified_without_specifying_option_1,"strictPropertyInitialization","strictNullChecks");L.exactOptionalPropertyTypes&&!US(L,"strictNullChecks")&&Pt(fa.Option_0_cannot_be_specified_without_specifying_option_1,"exactOptionalPropertyTypes","strictNullChecks");(L.isolatedModules||L.verbatimModuleSyntax)&&L.outFile&&Pt(fa.Option_0_cannot_be_specified_with_option_1,"outFile",L.verbatimModuleSyntax?"verbatimModuleSyntax":"isolatedModules");L.isolatedDeclarations&&(OS(L)&&Pt(fa.Option_0_cannot_be_specified_with_option_1,"allowJs","isolatedDeclarations"),PS(L)||Pt(fa.Option_0_cannot_be_specified_without_specifying_option_1_or_option_2,"isolatedDeclarations","declaration","composite"));L.inlineSourceMap&&(L.sourceMap&&Pt(fa.Option_0_cannot_be_specified_with_option_1,"sourceMap","inlineSourceMap"),L.mapRoot&&Pt(fa.Option_0_cannot_be_specified_with_option_1,"mapRoot","inlineSourceMap"));L.composite&&(!1===L.declaration&&Pt(fa.Composite_projects_may_not_disable_declaration_emit,"declaration"),!1===L.incremental&&Pt(fa.Composite_projects_may_not_disable_incremental_compilation,"declaration"));const e=L.outFile;L.tsBuildInfoFile||!L.incremental||e||L.configFilePath||Q.addConfigDiagnostic(nS(fa.Option_incremental_can_only_be_specified_using_tsconfig_emitting_to_single_file_or_when_option_tsBuildInfoFile_is_specified));if(function(){function e(e,n,t,r,...o){if(t){const i=rS(void 0,fa.Use_0_instead,t);wt(!n,e,void 0,rS(i,r,...o))}else wt(!n,e,void 0,r,...o)}It("5.0","5.5",e,e=>{0===L.target&&e("target","ES3"),L.noImplicitUseStrict&&e("noImplicitUseStrict"),L.keyofStringsOnly&&e("keyofStringsOnly"),L.suppressExcessPropertyErrors&&e("suppressExcessPropertyErrors"),L.suppressImplicitAnyIndexErrors&&e("suppressImplicitAnyIndexErrors"),L.noStrictGenericChecks&&e("noStrictGenericChecks"),L.charset&&e("charset"),L.out&&e("out",void 0,"outFile"),L.importsNotUsedAsValues&&e("importsNotUsedAsValues",void 0,"verbatimModuleSyntax"),L.preserveValueImports&&e("preserveValueImports",void 0,"verbatimModuleSyntax")})}(),function(){const e=L.suppressOutputPathCheck?void 0:oj(L);Wx(w,Ge,(n,t,r)=>{const o=(t?t.commandLine.projectReferences:w)[r],i=t&&t.sourceFile;if(function(e,n,t){function r(e,r,o,i,...a){kt(n,t,i,...a)}It("5.0","5.5",r,n=>{e.prepend&&n("prepend")})}(o,i,r),!n)return void kt(i,r,fa.File_0_not_found,o.path);const a=n.commandLine.options;if(!a.composite||a.noEmit){(t?t.commandLine.fileNames:N).length&&(a.composite||kt(i,r,fa.Referenced_project_0_must_have_setting_composite_Colon_true,o.path),a.noEmit&&kt(i,r,fa.Referenced_project_0_may_not_disable_emit,o.path))}!t&&e&&e===oj(a)&&(kt(i,r,fa.Cannot_write_file_0_because_it_will_overwrite_tsbuildinfo_file_generated_by_referenced_project_1,e,o.path),Ae.set(xn(e),!0))})}(),L.composite){const e=new Set(N.map(xn));for(const n of j)Zy(n,an)&&!e.has(n.path)&&Q.addLazyConfigDiagnostic(n,fa.File_0_is_not_listed_within_the_file_list_of_project_1_Projects_must_list_all_files_or_use_an_include_pattern,n.fileName,L.configFilePath||"")}if(L.paths)for(const a in L.paths)if(Ie(L.paths,a))if(eE(a)||Nt(!0,a,fa.Pattern_0_can_have_at_most_one_Asterisk_character,a),Ye(L.paths[a])){const e=L.paths[a].length;0===e&&Nt(!1,a,fa.Substitutions_for_pattern_0_shouldn_t_be_an_empty_array,a);for(let n=0;n<e;n++){const e=L.paths[a][n],t=typeof e;"string"===t?(eE(e)||Ct(a,n,fa.Substitution_0_in_pattern_1_can_have_at_most_one_Asterisk_character,e,a),L.baseUrl||Si(e)||Ti(e)||Ct(a,n,fa.Non_relative_paths_are_not_allowed_when_baseUrl_is_not_set_Did_you_forget_a_leading_Slash)):Ct(a,n,fa.Substitution_0_for_pattern_1_has_incorrect_type_expected_string_got_2,e,a,t)}}else Nt(!1,a,fa.Substitutions_for_pattern_0_should_be_an_array,a);L.sourceMap||L.inlineSourceMap||(L.inlineSources&&Pt(fa.Option_0_can_only_be_used_when_either_option_inlineSourceMap_or_option_sourceMap_is_provided,"inlineSources"),L.sourceRoot&&Pt(fa.Option_0_can_only_be_used_when_either_option_inlineSourceMap_or_option_sourceMap_is_provided,"sourceRoot"));!L.mapRoot||L.sourceMap||L.declarationMap||Pt(fa.Option_0_cannot_be_specified_without_specifying_option_1_or_option_2,"mapRoot","sourceMap","declarationMap");L.declarationDir&&(PS(L)||Pt(fa.Option_0_cannot_be_specified_without_specifying_option_1_or_option_2,"declarationDir","declaration","composite"),e&&Pt(fa.Option_0_cannot_be_specified_with_option_1,"declarationDir","outFile"));L.declarationMap&&!PS(L)&&Pt(fa.Option_0_cannot_be_specified_without_specifying_option_1_or_option_2,"declarationMap","declaration","composite");L.lib&&L.noLib&&Pt(fa.Option_0_cannot_be_specified_with_option_1,"lib","noLib");const n=SS(L),t=y(j,e=>dk(e)&&!e.isDeclarationFile);if(L.isolatedModules||L.verbatimModuleSyntax)0===L.module&&n<2&&L.isolatedModules&&Pt(fa.Option_isolatedModules_can_only_be_used_when_either_option_module_is_provided_or_option_target_is_ES2015_or_higher,"isolatedModules","target"),!1===L.preserveConstEnums&&Pt(fa.Option_preserveConstEnums_cannot_be_disabled_when_0_is_enabled,L.verbatimModuleSyntax?"verbatimModuleSyntax":"isolatedModules","preserveConstEnums");else if(t&&n<2&&0===L.module){const e=nm(t,"boolean"==typeof t.externalModuleIndicator?t:t.externalModuleIndicator);Q.addConfigDiagnostic(ZT(t,e.start,e.length,fa.Cannot_use_imports_exports_or_module_augmentations_when_module_is_none))}if(e&&!L.emitDeclarationOnly)if(L.module&&2!==L.module&&4!==L.module)Pt(fa.Only_amd_and_system_modules_are_supported_alongside_0,"outFile","module");else if(void 0===L.module&&t){const e=nm(t,"boolean"==typeof t.externalModuleIndicator?t:t.externalModuleIndicator);Q.addConfigDiagnostic(ZT(t,e.start,e.length,fa.Cannot_compile_modules_using_option_0_unless_the_module_flag_is_amd_or_system,"outFile"))}MS(L)&&(1===AS(L)?Pt(fa.Option_resolveJsonModule_cannot_be_specified_when_moduleResolution_is_set_to_classic,"resolveJsonModule"):zS(L)||Pt(fa.Option_resolveJsonModule_cannot_be_specified_when_module_is_set_to_none_system_or_umd,"resolveJsonModule","module"));if(L.outDir||L.rootDir||L.sourceRoot||L.mapRoot||PS(L)&&L.declarationDir){const e=Rn();L.outDir&&""===e&&j.some(e=>Ni(e.fileName)>1)&&Pt(fa.Cannot_find_the_common_subdirectory_path_for_the_input_files,"outDir")}L.checkJs&&!OS(L)&&Pt(fa.Option_0_cannot_be_specified_without_specifying_option_1,"checkJs","allowJs");L.emitDeclarationOnly&&(PS(L)||Pt(fa.Option_0_cannot_be_specified_without_specifying_option_1_or_option_2,"emitDeclarationOnly","declaration","composite"));L.emitDecoratorMetadata&&!L.experimentalDecorators&&Pt(fa.Option_0_cannot_be_specified_without_specifying_option_1,"emitDecoratorMetadata","experimentalDecorators");L.jsxFactory?(L.reactNamespace&&Pt(fa.Option_0_cannot_be_specified_with_option_1,"reactNamespace","jsxFactory"),4!==L.jsx&&5!==L.jsx||Pt(fa.Option_0_cannot_be_specified_when_option_jsx_is_1,"jsxFactory",Mk.get(""+L.jsx)),lk(L.jsxFactory,n)||Lt("jsxFactory",fa.Invalid_value_for_jsxFactory_0_is_not_a_valid_identifier_or_qualified_name,L.jsxFactory)):L.reactNamespace&&!ys(L.reactNamespace,n)&&Lt("reactNamespace",fa.Invalid_value_for_reactNamespace_0_is_not_a_valid_identifier,L.reactNamespace);L.jsxFragmentFactory&&(L.jsxFactory||Pt(fa.Option_0_cannot_be_specified_without_specifying_option_1,"jsxFragmentFactory","jsxFactory"),4!==L.jsx&&5!==L.jsx||Pt(fa.Option_0_cannot_be_specified_when_option_jsx_is_1,"jsxFragmentFactory",Mk.get(""+L.jsx)),lk(L.jsxFragmentFactory,n)||Lt("jsxFragmentFactory",fa.Invalid_value_for_jsxFragmentFactory_0_is_not_a_valid_identifier_or_qualified_name,L.jsxFragmentFactory));L.reactNamespace&&(4!==L.jsx&&5!==L.jsx||Pt(fa.Option_0_cannot_be_specified_when_option_jsx_is_1,"reactNamespace",Mk.get(""+L.jsx)));L.jsxImportSource&&2===L.jsx&&Pt(fa.Option_0_cannot_be_specified_when_option_jsx_is_1,"jsxImportSource",Mk.get(""+L.jsx));const r=ES(L);L.verbatimModuleSyntax&&(2!==r&&3!==r&&4!==r||Pt(fa.Option_verbatimModuleSyntax_cannot_be_used_when_module_is_set_to_UMD_AMD_or_System,"verbatimModuleSyntax"));L.allowImportingTsExtensions&&!(L.noEmit||L.emitDeclarationOnly||L.rewriteRelativeImportExtensions)&&Lt("allowImportingTsExtensions",fa.Option_allowImportingTsExtensions_can_only_be_used_when_either_noEmit_or_emitDeclarationOnly_is_set);const o=AS(L);L.resolvePackageJsonExports&&!VS(o)&&Pt(fa.Option_0_can_only_be_used_when_moduleResolution_is_set_to_node16_nodenext_or_bundler,"resolvePackageJsonExports");L.resolvePackageJsonImports&&!VS(o)&&Pt(fa.Option_0_can_only_be_used_when_moduleResolution_is_set_to_node16_nodenext_or_bundler,"resolvePackageJsonImports");L.customConditions&&!VS(o)&&Pt(fa.Option_0_can_only_be_used_when_moduleResolution_is_set_to_node16_nodenext_or_bundler,"customConditions");100!==o||WS(r)||200===r||Lt("moduleResolution",fa.Option_0_can_only_be_used_when_module_is_set_to_preserve_or_to_es2015_or_later,"bundler");if(mo[r]&&100<=r&&r<=199&&!(3<=o&&o<=99)){const e=mo[r],n=lo[e]?e:"Node16";Lt("moduleResolution",fa.Option_moduleResolution_must_be_set_to_0_or_left_unspecified_when_option_module_is_set_to_1,n,e)}else if(lo[o]&&3<=o&&o<=99&&!(100<=r&&r<=199)){const e=lo[o];Lt("module",fa.Option_module_must_be_set_to_0_when_option_moduleResolution_is_set_to_1,e,e)}if(!L.noEmit&&!L.suppressOutputPathCheck){const e=Nn(),n=new Set;rj(e,e=>{L.emitDeclarationOnly||i(e.jsFilePath,n),i(e.declarationFilePath,n)})}function i(e,n){if(e){const t=xn(e);if(We.has(t)){let n;L.configFilePath||(n=rS(void 0,fa.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=rS(n,fa.Cannot_write_file_0_because_it_would_overwrite_input_file,e),Bt(e,tS(n))}const r=he.useCaseSensitiveFileNames()?t:dn(t);n.has(r)?Bt(e,nS(fa.Cannot_write_file_0_because_it_would_be_overwritten_by_multiple_input_files,e)):n.add(r)}}}(),er("afterProgram"),nr("Program","beforeProgram","afterProgram"),null==(D=Kt)||D.pop(),an;function ln(e,n,t){var r;return null==(r=null==ie?void 0:ie.get(e.path))?void 0:r.get(n,t)}function cn(e,n,t){var r;return null==(r=null==se?void 0:se.get(e.path))?void 0:r.get(n,t)}function un(e,n){mn(ie,e,n)}function fn(e,n){mn(se,e,n)}function mn(e,n,t){var r;t?null==(r=null==e?void 0:e.get(t.path))||r.forEach((e,r,o)=>n(e,r,o,t.path)):null==e||e.forEach((e,t)=>e.forEach((e,r,o)=>n(e,r,o,t)))}function hn(){return de||(de=new Map,un(({resolvedModule:e})=>{(null==e?void 0:e.packageId)&&de.set(e.packageId.name,".d.ts"===e.extension||!!de.get(e.packageId.name))}),de)}function yn(e){var n;(null==(n=e.resolutionDiagnostics)?void 0:n.length)&&Q.addFileProcessingDiagnostic({kind:2,diagnostics:e.resolutionDiagnostics})}function bn(e,n,t,r){if(he.resolveModuleNameLiterals||!he.resolveModuleNames)return yn(t);if(!De||Ds(n))return;const o=Mi(Vi(e.originalFileName,Te)),i=En(e),a=De.getFromNonRelativeNameCache(n,r,o,i);a&&yn(a)}function Tn(e,n,t){var r,o;const i=Vi(n.originalFileName,Te),a=En(n);null==(r=Kt)||r.push(Kt.Phase.Program,"resolveModuleNamesWorker",{containingFileName:i}),er("beforeResolveModule");const s=Ce(e,i,a,L,n,t);return er("afterResolveModule"),nr("ResolveModule","beforeResolveModule","afterResolveModule"),null==(o=Kt)||o.pop(),s}function Sn(e,n,t){var r,o;const i=Qe(n)?void 0:n,a=Qe(n)?n:Vi(n.originalFileName,Te),s=i&&En(i);null==(r=Kt)||r.push(Kt.Phase.Program,"resolveTypeReferenceDirectiveNamesWorker",{containingFileName:a}),er("beforeResolveTypeReference");const l=Me(e,a,s,L,i,t);return er("afterResolveTypeReference"),nr("ResolveTypeReference","beforeResolveTypeReference","afterResolveTypeReference"),null==(o=Kt)||o.pop(),l}function En(e){var n,t;const r=ut(e.originalFileName);if(r||!yk(e.originalFileName))return null==r?void 0:r.resolvedRef;const o=null==(n=ft(e.path))?void 0:n.resolvedRef;if(o)return o;if(!he.realpath||!L.preserveSymlinks||!e.originalFileName.includes(oW))return;const i=xn(he.realpath(e.originalFileName));return i===e.path||null==(t=ft(i))?void 0:t.resolvedRef}function An(e){if(ra(ve,e.fileName,!1)){const n=Pi(e.fileName);if("lib.d.ts"===n||"lib.es6.d.ts"===n)return 0;const t=Wn(Yn(n,"lib."),".d.ts"),r=Lk.indexOf(t);if(-1!==r)return r+1}return Lk.length+2}function xn(e){return Ki(e,Te,At)}function Rn(){let e=Q.getCommonSourceDirectory();if(void 0!==e)return e;const n=x(j,e=>Zy(e,an));return e=gj(L,()=>F(n,e=>e.isDeclarationFile?void 0:e.fileName),Te,At,e=>function(e,n){let t=!0;const r=he.getCanonicalFileName(Vi(n,Te));for(const o of e)if(!o.isDeclarationFile){0!==he.getCanonicalFileName(Vi(o.fileName,Te)).indexOf(r)&&(Q.addLazyConfigDiagnostic(o,fa.File_0_is_not_under_rootDir_1_rootDir_is_expected_to_contain_all_source_files,o.fileName,n),t=!1)}return t}(n,e)),Q.setCommonSourceDirectory(e),e}function In(e,n){return Cn({entries:e,containingFile:n,containingSourceFile:n,redirectedReference:En(n),nameAndModeGetter:IU,resolutionWorker:Tn,getResolutionFromOldProgram:(e,t)=>null==z?void 0:z.getResolvedModule(n,e,t),getResolved:fp,canReuseResolutionsInFile:()=>n===(null==z?void 0:z.getSourceFile(n.fileName))&&!Ne(n.path),resolveToOwnAmbientModule:!0})}function Dn(e,n){const t=Qe(n)?void 0:n;return Cn({entries:e,containingFile:n,containingSourceFile:t,redirectedReference:t&&En(t),nameAndModeGetter:NU,resolutionWorker:Sn,getResolutionFromOldProgram:(e,n)=>{var r;return t?null==z?void 0:z.getResolvedTypeReferenceDirective(t,e,n):null==(r=null==z?void 0:z.getAutomaticTypeDirectiveResolutions())?void 0:r.get(e,n)},getResolved:mp,canReuseResolutionsInFile:()=>t?t===(null==z?void 0:z.getSourceFile(t.fileName))&&!Ne(t.path):!Ne(xn(n))})}function Cn({entries:e,containingFile:n,containingSourceFile:t,redirectedReference:r,nameAndModeGetter:o,resolutionWorker:i,getResolutionFromOldProgram:a,getResolved:l,canReuseResolutionsInFile:c,resolveToOwnAmbientModule:d}){if(!e.length)return s;if(!(0!==on||d&&t.ambientModuleNames.length))return i(e,n,void 0);let u,p,f,m;const h=c();for(let s=0;s<e.length;s++){const c=e[s];if(h){const d=o.getName(c),u=a(d,o.getMode(c,t,(null==r?void 0:r.commandLine.options)??L)),p=u&&l(u);if(p){oF(L,he)&&rF(he,i===Tn?p.packageId?fa.Reusing_resolution_of_module_0_from_1_of_old_program_it_was_successfully_resolved_to_2_with_Package_ID_3:fa.Reusing_resolution_of_module_0_from_1_of_old_program_it_was_successfully_resolved_to_2:p.packageId?fa.Reusing_resolution_of_type_reference_directive_0_from_1_of_old_program_it_was_successfully_resolved_to_2_with_Package_ID_3:fa.Reusing_resolution_of_type_reference_directive_0_from_1_of_old_program_it_was_successfully_resolved_to_2,d,t?Vi(t.originalFileName,Te):n,p.resolvedFileName,p.packageId&&yp(p.packageId)),(f??(f=new Array(e.length)))[s]=u,(m??(m=[])).push(c);continue}}if(d){const n=o.getName(c);if(S(t.ambientModuleNames,n)){oF(L,he)&&rF(he,fa.Module_0_was_resolved_as_locally_declared_ambient_module_in_file_1,n,Vi(t.originalFileName,Te)),(f??(f=new Array(e.length)))[s]=xU;continue}}(u??(u=[])).push(c),(p??(p=[])).push(s)}if(!u)return f;const _=i(u,n,m);return f?(_.forEach((e,n)=>f[p[n]]=e),f):_}function Nn(e){return{getCanonicalFileName:At,getCommonSourceDirectory:an.getCommonSourceDirectory,getCompilerOptions:an.getCompilerOptions,getCurrentDirectory:()=>Te,getSourceFile:an.getSourceFile,getSourceFileByPath:an.getSourceFileByPath,getSourceFiles:an.getSourceFiles,isSourceFileFromExternalLibrary:Ln,getRedirectFromSourceFile:ut,isSourceOfProjectReferenceRedirect:mt,getSymlinkCache:Vt,writeFile:e||Mn,isEmitBlocked:wn,shouldTransformImportCall:Jt,getEmitModuleFormatOfFile:qt,getDefaultResolutionModeForFile:Ht,getModeForResolutionAtIndex:Ut,readFile:e=>he.readFile(e),fileExists:e=>{const n=xn(e);return!!Fn(n)||!ze.has(n)&&he.fileExists(e)},realpath:Ue(he,he.realpath),useCaseSensitiveFileNames:()=>he.useCaseSensitiveFileNames(),getBuildInfo:()=>{var e;return null==(e=an.getBuildInfo)?void 0:e.call(an)},getSourceFileFromReference:(e,n)=>an.getSourceFileFromReference(e,n),redirectTargetsMap:Fe,getFileIncludeReasons:an.getFileIncludeReasons,createHash:Ue(he,he.createHash),getModuleResolutionCache:()=>an.getModuleResolutionCache(),trace:Ue(he,he.trace),getGlobalTypingsCacheLocation:an.getGlobalTypingsCacheLocation}}function Mn(e,n,t,r,o,i){he.writeFile(e,n,t,r,o,i)}function Pn(){return Ge}function Ln(e){return!!me.get(e.path)}function kn(){return q||(q=pB(an))}function wn(e){return Ae.has(xn(e))}function On(e){return Fn(xn(e))}function Fn(e){return We.get(e)||void 0}function zn(e,n,t){return Cs(e?n(e,t):P(an.getSourceFiles(),e=>(t&&t.throwIfCancellationRequested(),n(e,t))))}function Bn(e){var n;if(mA(e,L,an))return s;const t=Q.getCombinedDiagnostics(an).getDiagnostics(e.fileName);return(null==(n=e.commentDirectives)?void 0:n.length)?Hn(e,e.commentDirectives,t).diagnostics:t}function Gn(e){return Ph(e)?(e.additionalSyntacticDiagnostics||(e.additionalSyntacticDiagnostics=function(e){return Vn(()=>{const n=[];return t(e,e),ok(e,t,r),n;function t(e,t){switch(t.kind){case 170:case 173:case 175:if(t.questionToken===e)return n.push(a(e,fa.The_0_modifier_can_only_be_used_in_TypeScript_files,"?")),"skip";case 174:case 177:case 178:case 179:case 219:case 263:case 220:case 261:if(t.type===e)return n.push(a(e,fa.Type_annotations_can_only_be_used_in_TypeScript_files)),"skip"}switch(e.kind){case 274:if(e.isTypeOnly)return n.push(a(t,fa._0_declarations_can_only_be_used_in_TypeScript_files,"import type")),"skip";break;case 279:if(e.isTypeOnly)return n.push(a(e,fa._0_declarations_can_only_be_used_in_TypeScript_files,"export type")),"skip";break;case 277:case 282:if(e.isTypeOnly)return n.push(a(e,fa._0_declarations_can_only_be_used_in_TypeScript_files,wN(e)?"import...type":"export...type")),"skip";break;case 272:return n.push(a(e,fa.import_can_only_be_used_in_TypeScript_files)),"skip";case 278:if(e.isExportEquals)return n.push(a(e,fa.export_can_only_be_used_in_TypeScript_files)),"skip";break;case 299:if(119===e.token)return n.push(a(e,fa.implements_clauses_can_only_be_used_in_TypeScript_files)),"skip";break;case 265:const r=Pa(120);return dt.assertIsDefined(r),n.push(a(e,fa._0_declarations_can_only_be_used_in_TypeScript_files,r)),"skip";case 268:const o=32&e.flags?Pa(145):Pa(144);return dt.assertIsDefined(o),n.push(a(e,fa._0_declarations_can_only_be_used_in_TypeScript_files,o)),"skip";case 266:return n.push(a(e,fa.Type_aliases_can_only_be_used_in_TypeScript_files)),"skip";case 177:case 175:case 263:return e.body?void 0:(n.push(a(e,fa.Signature_declarations_can_only_be_used_in_TypeScript_files)),"skip");case 267:const i=dt.checkDefined(Pa(94));return n.push(a(e,fa._0_declarations_can_only_be_used_in_TypeScript_files,i)),"skip";case 236:return n.push(a(e,fa.Non_null_assertions_can_only_be_used_in_TypeScript_files)),"skip";case 235:return n.push(a(e.type,fa.Type_assertion_expressions_can_only_be_used_in_TypeScript_files)),"skip";case 239:return n.push(a(e.type,fa.Type_satisfaction_expressions_can_only_be_used_in_TypeScript_files)),"skip";case 217:dt.fail()}}function r(e,t){if(YP(t)){const e=y(t.modifiers,CD);e&&n.push(a(e,fa.Decorators_are_not_valid_here))}else if(NL(t)&&t.modifiers){const e=b(t.modifiers,CD);if(e>=0)if(DD(t)&&!L.experimentalDecorators)n.push(a(t.modifiers[e],fa.Decorators_are_not_valid_here));else if(_N(t)){const r=b(t.modifiers,pD);if(r>=0){const o=b(t.modifiers,fD);if(e>r&&o>=0&&e<o)n.push(a(t.modifiers[e],fa.Decorators_are_not_valid_here));else if(r>=0&&e<r){const o=b(t.modifiers,CD,r);o>=0&&n.push(dA(a(t.modifiers[o],fa.Decorators_may_not_appear_after_export_or_export_default_if_they_also_appear_before_export),a(t.modifiers[e],fa.Decorator_used_before_export_here)))}}}}switch(t.kind){case 264:case 232:case 175:case 177:case 178:case 179:case 219:case 263:case 220:if(e===t.typeParameters)return n.push(i(e,fa.Type_parameter_declarations_can_only_be_used_in_TypeScript_files)),"skip";case 244:if(e===t.modifiers)return o(t.modifiers,244===t.kind),"skip";break;case 173:if(e===t.modifiers){for(const t of e)td(t)&&126!==t.kind&&129!==t.kind&&n.push(a(t,fa.The_0_modifier_can_only_be_used_in_TypeScript_files,Pa(t.kind)));return"skip"}break;case 170:if(e===t.modifiers&&U(e,td))return n.push(i(e,fa.Parameter_modifiers_can_only_be_used_in_TypeScript_files)),"skip";break;case 214:case 215:case 234:case 286:case 287:case 216:if(e===t.typeArguments)return n.push(i(e,fa.Type_arguments_can_only_be_used_in_TypeScript_files)),"skip"}}function o(e,t){for(const r of e)switch(r.kind){case 87:if(t)continue;case 125:case 123:case 124:case 148:case 138:case 128:case 164:case 103:case 147:n.push(a(r,fa.The_0_modifier_can_only_be_used_in_TypeScript_files,Pa(r.kind)))}}function i(n,t,...r){const o=n.pos;return ZT(e,o,n.end-o,t,...r)}function a(n,t,...r){return Uf(e,n,t,...r)}})}(e)),K(e.additionalSyntacticDiagnostics,e.parseDiagnostics)):e.parseDiagnostics}function Vn(e){try{return e()}catch(bi){throw bi instanceof Ar&&(q=void 0),bi}}function jn(e,n,t){if(t)return Un(e,n,t);let r=null==Y?void 0:Y.get(e.path);return r||(Y??(Y=new Map)).set(e.path,r=Un(e,n)),r}function Un(e,n,t){return Vn(()=>{if(mA(e,L,an))return s;const r=kn();dt.assert(!!e.bindDiagnostics);const o=1===e.scriptKind||2===e.scriptKind,i=Ap(e,L.checkJs),a=o&&aA(e,L);let l=e.bindDiagnostics,c=r.getDiagnostics(e,n,t);return i&&(l=x(l,e=>jU.has(e.code)),c=x(c,e=>jU.has(e.code))),function(e,n,t,...r){var o;const i=M(r);if(!n||!(null==(o=e.commentDirectives)?void 0:o.length))return i;const{diagnostics:a,directives:s}=Hn(e,e.commentDirectives,i);if(t)return a;for(const l of s.getUnusedExpectations())a.push($f(e,l.range,fa.Unused_ts_expect_error_directive));return a}(e,!i,!!t,l,c,a?e.jsDocDiagnostics:void 0)})}function Hn(e,n,t){const r=jp(e,n),o=t.filter(e=>-1===function(e,n){const{file:t,start:r}=e;if(!t)return-1;const o=Ba(t);let i=Ga(o,r).line-1;for(;i>=0;){if(n.markUsed(i))return i;const e=t.text.slice(o[i],o[i+1]).trim();if(""!==e&&!/^\s*\/\/.*$/.test(e))return-1;i--}return-1}(e,r));return{diagnostics:o,directives:r}}function Kn(e,n){let t=null==$?void 0:$.get(e.path);return t||($??($=new Map)).set(e.path,t=function(e,n){return Vn(()=>{const t=kn().getEmitResolver(e,n);return WV(Nn(tn),t,e)||s})}(e,n)),t}function qn(e,n){return e.isDeclarationFile?s:Kn(e,n)}function Jn(e,n,t,r){tt(ji(e),n,t,void 0,r)}function $n(e,n){return e.fileName===n.fileName}function Qn(e,n){return 80===e.kind?80===n.kind&&e.escapedText===n.escapedText:11===n.kind&&e.text===n.text}function Zn(e,n){const t=vR.createStringLiteral(e),r=vR.createImportDeclaration(void 0,void 0,t);return DR(r,2),PA(t,r),PA(r,n),t.flags&=-17,r.flags&=-17,t}function et(e){if(e.imports)return;const n=Ph(e),t=dk(e);let r,o,i;if(n||!e.isDeclarationFile&&(RS(L)||dk(e))){L.importHelpers&&(r=[Zn(Ku,e)]);const n=ZS(QS(L,e),L);n&&(r||(r=[])).push(Zn(n,e))}for(const s of e.statements)a(s,!1);return(4194304&e.flags||n)&&Px(e,!0,!0,(e,n)=>{LA(e,!1),r=re(r,n)}),e.imports=r||s,e.moduleAugmentations=o||s,void(e.ambientModuleNames=i||s);function a(n,s){if(Pf(n)){const t=x_(n);!(t&&qI(t)&&t.text)||s&&Ds(t.text)||(LA(n,!1),r=re(r,t),we||0!==pe||e.isDeclarationFile||(Xn(t.text,"node:")&&!Nx.has(t.text)?we=!0:void 0===we&&Cx.has(t.text)&&(we=!1)))}else if(bN(n)&&pf(n)&&(s||Mv(n,128)||e.isDeclarationFile)){n.name.parent=n;const r=Hg(n.name);if(t||s&&!Ds(r))(o||(o=[])).push(n.name);else if(!s){e.isDeclarationFile&&(i||(i=[])).push(r);const t=n.body;if(t)for(const e of t.statements)a(e,!0)}}}}function nt(e,n,t,r){if(Ai(e)){const o=he.getCanonicalFileName(e);if(!L.allowNonTsExtensions&&!d(M(Ee),e=>xi(o,e)))return void(t&&(WE(o)?t(fa.File_0_is_a_JavaScript_file_Did_you_mean_to_enable_the_allowJs_option,e):t(fa.File_0_has_an_unsupported_extension_The_only_supported_extensions_are_1,e,"'"+M(Se).join("', '")+"'")));const i=n(e);if(t)if(i)OU(r)&&o===he.getCanonicalFileName(Fn(r.file).fileName)&&t(fa.A_file_cannot_have_a_reference_to_itself);else{const n=ut(e);(null==n?void 0:n.outputDts)?t(fa.Output_file_0_has_not_been_built_from_source_file_1,n.outputDts,e):t(fa.File_0_not_found,e)}return i}{const r=L.allowNonTsExtensions&&n(e);if(r)return r;if(t&&L.allowNonTsExtensions)return void t(fa.File_0_not_found,e);const o=d(Se[0],t=>n(e+t));return t&&!o&&t(fa.Could_not_resolve_the_path_0_with_the_extensions_Colon_1,e,"'"+M(Se).join("', '")+"'"),o}}function tt(e,n,t,r,o){nt(e,e=>it(e,n,t,o,r),(e,...n)=>Dt(void 0,o,e,n),o)}function rt(e,n){return tt(e,!1,!1,void 0,n)}function ot(e,n,t){!OU(t)&&U(Q.getFileReasons().get(n.path),OU)?Dt(n,t,fa.Already_included_file_name_0_differs_from_file_name_1_only_in_casing,[n.fileName,e]):Dt(n,t,fa.File_name_0_differs_from_already_included_file_name_1_only_in_casing,[e,n.fileName])}function it(e,n,t,r,o){var i,a;null==(i=Kt)||i.push(Kt.Phase.Program,"findSourceFile",{fileName:e,isDefaultLib:n||void 0,fileIncludeKind:xr[r.kind]});const s=function(e,n,t,r,o){var i,a;const s=xn(e);if(qe){let i=ft(s);if(!i&&he.realpath&&L.preserveSymlinks&&yk(e)&&e.includes(oW)){const n=xn(he.realpath(e));n!==s&&(i=ft(n))}if(null==i?void 0:i.source){const a=it(i.source,n,t,r,o);return a&<(a,s,e,void 0),a}}const l=e;if(We.has(s)){const t=We.get(s),o=st(t||void 0,r,!0);if(t&&o&&!1!==L.forceConsistentCasingInFileNames){const n=t.fileName;xn(n)!==xn(e)&&(e=(null==(i=ut(e))?void 0:i.outputDts)||e);Hi(n,Te)!==Hi(e,Te)&&ot(e,t,r)}return t&&me.get(t.path)&&0===pe?(me.set(t.path,!1),L.noResolve||(_t(t,n),gt(t)),L.noLib||Et(t),fe.set(t.path,!1),xt(t)):t&&fe.get(t.path)&&pe<ue&&(fe.set(t.path,!1),xt(t)),t||void 0}let c;if(!qe){const n=ut(e);if(null==n?void 0:n.outputDts){if(n.resolvedRef.commandLine.options.outFile)return;e=n.outputDts,c=xn(n.outputDts)}}const d=at(e,De,he,L),u=he.getSourceFile(e,d,n=>Dt(void 0,r,fa.Cannot_read_file_0_Colon_1,[e,n]),nn);if(o){const n=yp(o),t=ke.get(n);if(t){const n=function(e,n,t,r,o,i,a){var s;const l=PL.createRedirectedSourceFile({redirectTarget:e,unredirected:n});return l.fileName=t,l.path=r,l.resolvedPath=o,l.originalFileName=i,l.packageJsonLocations=(null==(s=a.packageJsonLocations)?void 0:s.length)?a.packageJsonLocations:void 0,l.packageJsonScope=a.packageJsonScope,me.set(r,pe>0),l}(t,u,e,s,xn(e),l,d);return Fe.add(t.path,e),lt(n,s,e,c),st(n,r,!1),Oe.set(s,gp(o)),V.push(n),n}u&&(ke.set(n,u),Oe.set(s,gp(o)))}if(lt(u,s,e,c),u){if(me.set(s,pe>0),u.fileName=e,u.path=s,u.resolvedPath=xn(e),u.originalFileName=l,u.packageJsonLocations=(null==(a=d.packageJsonLocations)?void 0:a.length)?d.packageJsonLocations:void 0,u.packageJsonScope=d.packageJsonScope,st(u,r,!1),he.useCaseSensitiveFileNames()){const n=dn(s),t=Be.get(n);t?ot(e,t,r):Be.set(n,u)}ge=ge||u.hasNoDefaultLib&&!t,L.noResolve||(_t(u,n),gt(u)),L.noLib||Et(u),xt(u),n?G.push(u):V.push(u),(X??(X=new Set)).add(u.path)}return u}(e,n,t,r,o);return null==(a=Kt)||a.pop(),s}function at(e,n,t,r){const o=VU(Vi(e,Te),null==n?void 0:n.getPackageJsonInfoCache(),t,r),i=SS(r),a=gS(r);return"object"==typeof o?{...o,languageVersion:i,setExternalModuleIndicator:a,jsDocParsingMode:t.jsDocParsingMode}:{languageVersion:i,impliedNodeFormat:o,setExternalModuleIndicator:a,jsDocParsingMode:t.jsDocParsingMode}}function st(e,n,t){return!(!e||t&&OU(n)&&(null==X?void 0:X.has(n.file)))&&(Q.getFileReasons().add(e.path,n),!0)}function lt(e,n,t,r){r?(ct(t,r,e),ct(t,n,e||!1)):ct(t,n,e)}function ct(e,n,t){We.set(n,t),void 0!==t?ze.delete(n):ze.set(n,e)}function ut(e){return null==je?void 0:je.get(xn(e))}function pt(e){return Fx(Ge,e)}function ft(e){return null==Ke?void 0:Ke.get(e)}function mt(e){return qe&&!!ut(e)}function ht(e){if(Ve)return Ve.get(e)||void 0}function _t(e,n){d(e.referencedFiles,(t,r)=>{tt(Xj(t.fileName,e.fileName),n,!1,void 0,{kind:4,file:e.path,index:r})})}function gt(e){const n=e.typeReferenceDirectives;if(!n.length)return;const t=(null==le?void 0:le.get(e.path))||Dn(n,e),r=OF();(se??(se=new Map)).set(e.path,r);for(let o=0;o<n.length;o++){const n=e.typeReferenceDirectives[o],i=t[o],a=n.fileName,s=Xt(n,e);r.set(a,s,i),bt(a,s,i,{kind:5,file:e.path,index:o})}}function yt(e){var n;return(null==(n=En(e))?void 0:n.commandLine.options)||L}function bt(e,n,t,r){var o,i;null==(o=Kt)||o.push(Kt.Phase.Program,"processTypeReferenceDirective",{directive:e,hasResolved:!!t.resolvedTypeReferenceDirective,refKind:r.kind,refPath:OU(r)?r.file:void 0}),function(e,n,t,r){yn(t);const{resolvedTypeReferenceDirective:o}=t;o?(o.isExternalLibraryImport&&pe++,tt(o.resolvedFileName,!1,!1,o.packageId,r),o.isExternalLibraryImport&&pe--):Dt(void 0,r,fa.Cannot_find_type_definition_file_for_0,[e])}(e,0,t,r),null==(i=Kt)||i.pop()}function Tt(e){const n=null==te?void 0:te.get(e);if(n)return n.actual;const t=St(e);return(te??(te=new Map)).set(e,t),t.actual}function St(e){var n,t,r,o,i;const a=null==oe?void 0:oe.get(e);if(a)return a;if(!1===L.libReplacement){const n={resolution:{resolvedModule:void 0},actual:zi(ve,e)};return(oe??(oe=new Map)).set(e,n),n}if(0!==on&&z&&!Pe(e)){const o=null==(n=z.resolvedLibReferences)?void 0:n.get(e);if(o){if(o.resolution&&oF(L,he)){const n=wU(e),i=kU(L,Te,e);rF(he,o.resolution.resolvedModule?o.resolution.resolvedModule.packageId?fa.Reusing_resolution_of_module_0_from_1_of_old_program_it_was_successfully_resolved_to_2_with_Package_ID_3:fa.Reusing_resolution_of_module_0_from_1_of_old_program_it_was_successfully_resolved_to_2:fa.Reusing_resolution_of_module_0_from_1_of_old_program_it_was_not_resolved,n,Vi(i,Te),null==(t=o.resolution.resolvedModule)?void 0:t.resolvedFileName,(null==(r=o.resolution.resolvedModule)?void 0:r.packageId)&&yp(o.resolution.resolvedModule.packageId))}return(oe??(oe=new Map)).set(e,o),o}}const s=wU(e),l=kU(L,Te,e);null==(o=Kt)||o.push(Kt.Phase.Program,"resolveLibrary",{resolveFrom:l}),er("beforeResolveLibrary");const c=Le(s,l,L,e);er("afterResolveLibrary"),nr("ResolveLibrary","beforeResolveLibrary","afterResolveLibrary"),null==(i=Kt)||i.pop();const d={resolution:c,actual:c.resolvedModule?c.resolvedModule.resolvedFileName:zi(ve,e)};return(oe??(oe=new Map)).set(e,d),d}function Et(e){d(e.libReferenceDirectives,(n,t)=>{const r=Ox(n);r?Jn(Tt(r),!0,!0,{kind:7,file:e.path,index:t}):Q.addFileProcessingDiagnostic({kind:0,reason:{kind:7,file:e.path,index:t}})})}function At(e){return he.getCanonicalFileName(e)}function xt(e){if(et(e),e.imports.length||e.moduleAugmentations.length){const n=nH(e),t=(null==ae?void 0:ae.get(e.path))||In(n,e);dt.assert(t.length===n.length);const r=yt(e),o=OF();(ie??(ie=new Map)).set(e.path,o);for(let i=0;i<n.length;i++){const a=t[i].resolvedModule,s=n[i].text,l=SU(e,n[i],r);if(o.set(s,l,t[i]),bn(e,s,t[i],l),!a)continue;const c=a.isExternalLibraryImport,d=!tA(a.extension)&&!ut(a.resolvedFileName),u=c&&d&&(!a.originalPath||iW(a.resolvedFileName)),p=a.resolvedFileName;c&&pe++;const f=u&&pe>ue,m=p&&!eH(r,a,e)&&!r.noResolve&&i<e.imports.length&&!f&&!(d&&!OS(r))&&(Lh(e.imports[i])||!(16777216&e.imports[i].flags));f?fe.set(e.path,!0):m&&it(p,!1,!1,{kind:3,file:e.path,index:i},a.packageId),c&&pe--}}}function Rt(e){Ve||(Ve=new Map);const n=ZU(e),t=xn(n),r=Ve.get(t);if(void 0!==r)return r||void 0;let o,i;if(he.getParsedCommandLine){if(o=he.getParsedCommandLine(n),!o)return lt(void 0,t,n,void 0),void Ve.set(t,!1);i=dt.checkDefined(o.options.configFile),dt.assert(!i.path||i.path===t),lt(i,t,n,void 0)}else{const e=Vi(Mi(n),Te);if(i=he.getSourceFile(n,100),lt(i,t,n,void 0),void 0===i)return void Ve.set(t,!1);o=sO(i,_e,e,void 0,n)}i.fileName=n,i.path=t,i.resolvedPath=t,i.originalFileName=n;const a={commandLine:o,sourceFile:i};if(Ve.set(t,a),L.configFile!==i){let e;je??(je=new Map),Ke??(Ke=new Map),o.options.outFile&&(e=YE(o.options.outFile,".d.ts"),null==Ke||Ke.set(xn(e),{resolvedRef:a}));const n=pn(()=>yj(a.commandLine,!he.useCaseSensitiveFileNames()));o.fileNames.forEach(t=>{const r=xn(t);let i;yk(t)||xi(t,".json")||(o.options.outFile?i=e:(i=dj(t,a.commandLine,!he.useCaseSensitiveFileNames(),n),Ke.set(xn(i),{resolvedRef:a,source:t}))),je.set(r,{resolvedRef:a,outputDts:i})})}return o.projectReferences&&(a.references=o.projectReferences.map(Rt)),a}function It(e,n,t,r){const i=new vt(e),a=new vt(n),s=new vt(O||o),l=function(){const e=L.ignoreDeprecations;if(e){if("5.0"===e)return new vt(e);B()}return vt.zero}(),c=!(1===a.compareTo(s)),d=!c&&-1===l.compareTo(i);(c||d)&&r((r,o,i)=>{c?void 0===o?t(r,o,i,fa.Option_0_has_been_removed_Please_remove_it_from_your_configuration,r):t(r,o,i,fa.Option_0_1_has_been_removed_Please_remove_it_from_your_configuration,r,o):void 0===o?t(r,o,i,fa.Option_0_is_deprecated_and_will_stop_functioning_in_TypeScript_1_Specify_compilerOption_ignoreDeprecations_Colon_2_to_silence_this_error,r,n,e):t(r,o,i,fa.Option_0_1_is_deprecated_and_will_stop_functioning_in_TypeScript_2_Specify_compilerOption_ignoreDeprecations_Colon_3_to_silence_this_error,r,o,n,e)})}function Dt(e,n,t,r){Q.addFileProcessingDiagnostic({kind:1,file:e&&e.path,fileProcessingReason:n,diagnostic:t,args:r})}function Ct(e,n,t,...r){let o=!0;Mt(i=>{hC(i.initializer)&&qm(i.initializer,e,e=>{const i=e.initializer;mC(i)&&i.elements.length>n&&(Q.addConfigDiagnostic(Uf(L.configFile,i.elements[n],t,...r)),o=!1)})}),o&&Ot(t,...r)}function Nt(e,n,t,...r){let o=!0;Mt(i=>{hC(i.initializer)&&zt(i.initializer,e,n,void 0,t,...r)&&(o=!1)}),o&&Ot(t,...r)}function Mt(e){return Gx(Ft(),"paths",e)}function Pt(e,n,t,r){wt(!0,n,t,e,n,t,r)}function Lt(e,n,...t){wt(!1,e,void 0,n,...t)}function kt(e,n,t,...r){const o=Ym(e||L.configFile,"references",e=>mC(e.initializer)?e.initializer:void 0);o&&o.elements.length>n?Q.addConfigDiagnostic(Uf(e||L.configFile,o.elements[n],t,...r)):Q.addConfigDiagnostic(nS(t,...r))}function wt(e,n,t,r,...o){const i=Ft();(!i||!zt(i,e,n,t,r,...o))&&Ot(r,...o)}function Ot(e,...n){const t=Wt();t?"messageText"in e?Q.addConfigDiagnostic(Hf(L.configFile,t.name,e)):Q.addConfigDiagnostic(Uf(L.configFile,t.name,e,...n)):"messageText"in e?Q.addConfigDiagnostic(tS(e)):Q.addConfigDiagnostic(nS(e,...n))}function Ft(){if(void 0===xe){const e=Wt();xe=e&&en(e.initializer,hC)||!1}return xe||void 0}function Wt(){return void 0===Re&&(Re=qm(Jm(L.configFile),"compilerOptions",sn)||!1),Re||void 0}function zt(e,n,t,r,o,...i){let a=!1;return qm(e,t,e=>{"messageText"in o?Q.addConfigDiagnostic(Hf(L.configFile,n?e.name:e.initializer,o)):Q.addConfigDiagnostic(Uf(L.configFile,n?e.name:e.initializer,o,...i)),a=!0},r),a}function Bt(e,n){Ae.set(xn(e),!0),Q.addConfigDiagnostic(n)}function Gt(e,n){return 0===ta(e,n,Te,!he.useCaseSensitiveFileNames())}function Vt(){return he.getSymlinkCache?he.getSymlinkCache():(H||(H=nE(Te,At)),j&&!H.hasProcessedResolutions()&&H.setSymlinksFromResolutions(un,fn,ne),H)}function jt(e,n){return SU(e,n,yt(e))}function Ut(e,n){return jt(e,tH(e,n))}function Ht(e){return JU(e,yt(e))}function qt(e){return KU(e,yt(e))}function Jt(e){return HU(e,yt(e))}function Xt(e,n){return e.resolutionMode||Ht(n)}}function HU(e,n){const t=ES(n);return!(100<=t&&t<=199||200===t)&&KU(e,n)<5}function KU(e,n){return qU(e,n)??ES(n)}function qU(e,n){var t,r;const o=ES(n);return 100<=o&&o<=199?e.impliedNodeFormat:1!==e.impliedNodeFormat||"commonjs"!==(null==(t=e.packageJsonScope)?void 0:t.contents.packageJsonContent.type)&&!Ri(e.fileName,[".cjs",".cts"])?99!==e.impliedNodeFormat||"module"!==(null==(r=e.packageJsonScope)?void 0:r.contents.packageJsonContent.type)&&!Ri(e.fileName,[".mjs",".mts"])?void 0:99:1}function JU(e,n){return yS(n)?qU(e,n):void 0}var XU={diagnostics:s,sourceMaps:void 0,emittedFiles:void 0,emitSkipped:!0};function YU(e,n,t,r){const o=e.getCompilerOptions();if(o.noEmit)return n?XU:e.emitBuildInfo(t,r);if(!o.noEmitOnError)return;let i,a=[...e.getOptionsDiagnostics(r),...e.getSyntacticDiagnostics(n,r),...e.getGlobalDiagnostics(r),...e.getSemanticDiagnostics(n,r)];if(0===a.length&&PS(e.getCompilerOptions())&&(a=e.getDeclarationDiagnostics(void 0,r)),a.length){if(!n){const n=e.emitBuildInfo(t,r);n.diagnostics&&(a=[...a,...n.diagnostics]),i=n.emittedFiles}return{diagnostics:a,sourceMaps:void 0,emittedFiles:i,emitSkipped:!0}}}function $U(e,n){return x(e,e=>!e.skippedOn||!n[e.skippedOn])}function QU(e,n=e){return{fileExists:e=>n.fileExists(e),readDirectory:(e,t,r,o,i)=>(dt.assertIsDefined(n.readDirectory,"'CompilerHost.readDirectory' must be implemented to correctly process 'projectReferences'"),n.readDirectory(e,t,r,o,i)),readFile:e=>n.readFile(e),directoryExists:Ue(n,n.directoryExists),getDirectories:Ue(n,n.getDirectories),realpath:Ue(n,n.realpath),useCaseSensitiveFileNames:e.useCaseSensitiveFileNames(),getCurrentDirectory:()=>e.getCurrentDirectory(),onUnRecoverableConfigFileDiagnostic:e.onUnRecoverableConfigFileDiagnostic||an,trace:e.trace?n=>e.trace(n):void 0}}function ZU(e){return tq(e.path)}function eH(e,{extension:n},{isDeclarationFile:t}){switch(n){case".ts":case".d.ts":case".mts":case".d.mts":case".cts":case".d.cts":return;case".tsx":return r();case".jsx":return r()||o();case".js":case".mjs":case".cjs":return o();case".json":return MS(e)?void 0:fa.Module_0_was_resolved_to_1_but_resolveJsonModule_is_not_used;default:return t||e.allowArbitraryExtensions?void 0:fa.Module_0_was_resolved_to_1_but_allowArbitraryExtensions_is_not_set}function r(){return e.jsx?void 0:fa.Module_0_was_resolved_to_1_but_jsx_is_not_set}function o(){return OS(e)||!US(e,"noImplicitAny")?void 0:fa.Could_not_find_a_declaration_file_for_module_0_1_implicitly_has_an_any_type}}function nH({imports:e,moduleAugmentations:n}){const t=e.map(e=>e);for(const r of n)11===r.kind&&t.push(r);return t}function tH({imports:e,moduleAugmentations:n},t){if(t<e.length)return e[t];let r=e.length;for(const o of n)if(11===o.kind){if(t===r)return o;r++}dt.fail("should never ask for module name at index higher than possible module name")}function rH(e){let n,t,r,o,i,a,l,c=He();return{addConfigDiagnostic(e){dt.assert(void 0===n,"Cannot modify program diagnostic state after requesting combined diagnostics"),(o??(o=fy())).add(e)},addLazyConfigDiagnostic(e,t,...r){dt.assert(void 0===n,"Cannot modify program diagnostic state after requesting combined diagnostics"),(i??(i=[])).push({file:e,diagnostic:t,args:r})},addFileProcessingDiagnostic(e){dt.assert(void 0===n,"Cannot modify program diagnostic state after requesting combined diagnostics"),(t??(t=[])).push(e)},setCommonSourceDirectory(e){r=e},reuseStateFromOldProgram(e,n){c=e.getFileReasons(),t=e.getFileProcessingDiagnostics(),n&&(r=e.getCommonSourceDirectory(),o=e.getConfigDiagnostics(),i=e.getLazyConfigDiagnostics())},getFileProcessingDiagnostics:()=>t,getFileReasons:()=>c,getCommonSourceDirectory:()=>r,getConfigDiagnostics:()=>o,getLazyConfigDiagnostics:()=>i,getCombinedDiagnostics:e=>n||(n=fy(),null==o||o.getDiagnostics().forEach(e=>n.add(e)),null==t||t.forEach(t=>{switch(t.kind){case 1:return n.add(d(e,t.file&&e.getSourceFileByPath(t.file),t.fileProcessingReason,t.diagnostic,t.args||s));case 0:return n.add(function(e,{reason:n}){const{file:t,pos:r,end:o}=WU(e,n),i=wx(t.libReferenceDirectives[n.index]),a=wn(Wn(Yn(i,"lib."),".d.ts"),Lk,sn);return ZT(t,dt.checkDefined(r),dt.checkDefined(o)-r,a?fa.Cannot_find_lib_definition_for_0_Did_you_mean_1:fa.Cannot_find_lib_definition_for_0,i,a)}(e,t));case 2:return t.diagnostics.forEach(e=>n.add(e));default:dt.assertNever(t)}}),null==i||i.forEach(({file:t,diagnostic:r,args:o})=>n.add(d(e,t,void 0,r,o))),a=void 0,l=void 0,n)};function d(n,t,r,o,i){let d,u,p,f,m,h;const _=t&&c.get(t.path);let g=OU(r)?r:void 0,y=t&&(null==a?void 0:a.get(t.path));y?(y.fileIncludeReasonDetails?(d=new Set(_),null==_||_.forEach(S)):null==_||_.forEach(T),m=y.redirectInfo):(null==_||_.forEach(T),m=t&&CK(t,n.getCompilerOptionsForFile(t))),r&&T(r);const v=(null==d?void 0:d.size)!==(null==_?void 0:_.length);g&&1===(null==d?void 0:d.size)&&(d=void 0),d&&y&&(y.details&&!v?h=rS(y.details,o,...i??s):y.fileIncludeReasonDetails&&(v?u=E()?re(y.fileIncludeReasonDetails.next.slice(0,_.length),u[0]):[...y.fileIncludeReasonDetails.next,u[0]]:E()?u=y.fileIncludeReasonDetails.next.slice(0,_.length):f=y.fileIncludeReasonDetails)),h||(f||(f=d&&rS(u,fa.The_file_is_in_the_program_because_Colon)),h=rS(m?f?[f,...m]:m:f,o,...i||s)),t&&(y?(!y.fileIncludeReasonDetails||!v&&f)&&(y.fileIncludeReasonDetails=f):(a??(a=new Map)).set(t.path,y={fileIncludeReasonDetails:f,redirectInfo:m}),y.details||v||(y.details=h.next));const b=g&&WU(n,g);return b&&FU(b)?Jf(b.file,b.pos,b.end-b.pos,h,p):tS(h,p);function T(e){(null==d?void 0:d.has(e))||((d??(d=new Set)).add(e),(u??(u=[])).push(PK(n,e)),S(e))}function S(t){!g&&OU(t)?g=t:g!==t&&(p=re(p,function(n,t){let r=null==l?void 0:l.get(t);void 0===r&&(l??(l=new Map)).set(t,r=function(n,t){if(OU(t)){const e=WU(n,t);let r;switch(t.kind){case 3:r=fa.File_is_included_via_import_here;break;case 4:r=fa.File_is_included_via_reference_here;break;case 5:r=fa.File_is_included_via_type_library_reference_here;break;case 7:r=fa.File_is_included_via_library_reference_here;break;default:dt.assertNever(t)}return FU(e)?ZT(e.file,e.pos,e.end-e.pos,r):void 0}const r=n.getCurrentDirectory(),o=n.getRootFileNames(),i=n.getCompilerOptions();if(!i.configFile)return;let a,s;switch(t.kind){case 0:if(!i.configFile.configFileSpecs)return;const l=Vi(o[t.index],r),c=NK(n,l);if(c){a=Xm(i.configFile,"files",c),s=fa.File_is_matched_by_files_list_specified_here;break}const d=MK(n,l);if(!d||!Qe(d))return;a=Xm(i.configFile,"include",d),s=fa.File_is_matched_by_include_pattern_specified_here;break;case 1:case 2:const u=n.getResolvedProjectReferences(),p=n.getProjectReferences(),f=dt.checkDefined(null==u?void 0:u[t.index]),m=Wx(p,u,(e,n,t)=>e===f?{sourceFile:(null==n?void 0:n.sourceFile)||i.configFile,index:t}:void 0);if(!m)return;const{sourceFile:h,index:_}=m,g=Ym(h,"references",e=>mC(e.initializer)?e.initializer:void 0);return g&&g.elements.length>_?Uf(h,g.elements[_],2===t.kind?fa.File_is_output_from_referenced_project_specified_here:fa.File_is_source_from_referenced_project_specified_here):void 0;case 8:if(!i.types)return;a=zx(e(),"types",t.typeReference),s=fa.File_is_entry_point_of_type_library_specified_here;break;case 6:if(void 0!==t.index){a=zx(e(),"lib",i.lib[t.index]),s=fa.File_is_library_specified_here;break}const y=HS(SS(i));a=y?Bx(e(),"target",y):void 0,s=fa.File_is_default_library_for_target_specified_here;break;default:dt.assertNever(t)}return a&&Uf(i.configFile,a,s)}(n,t)??!1);return r||void 0}(n,t)))}function E(){var e;return(null==(e=y.fileIncludeReasonDetails.next)?void 0:e.length)!==(null==_?void 0:_.length)}}}function oH(e,n,t,r,o,i){const a=[],{emitSkipped:s,diagnostics:l}=e.emit(n,function(e,n,t){a.push({name:e,writeByteOrderMark:t,text:n})},r,t,o,i);return{outputFiles:a,emitSkipped:s,diagnostics:l}}var iH,aH=(e=>(e[e.ComputedDts=0]="ComputedDts",e[e.StoredSignatureAtEmit=1]="StoredSignatureAtEmit",e[e.UsedVersion=2]="UsedVersion",e))(aH||{});(e=>{function n(){return function(e,n,r){const o={getKeys:e=>n.get(e),getValues:n=>e.get(n),keys:()=>e.keys(),size:()=>e.size,deleteKey:o=>{(r||(r=new Set)).add(o);const i=e.get(o);return!!i&&(i.forEach(e=>t(n,e,o)),e.delete(o),!0)},set:(i,a)=>{null==r||r.delete(i);const s=e.get(i);return e.set(i,a),null==s||s.forEach(e=>{a.has(e)||t(n,e,i)}),a.forEach(e=>{(null==s?void 0:s.has(e))||function(e,n,t){let r=e.get(n);r||(r=new Set,e.set(n,r));r.add(t)}(n,e,i)}),o}};return o}(new Map,new Map,void 0)}function t(e,n,t){const r=e.get(n);return!!(null==r?void 0:r.delete(t))&&(r.size||e.delete(n),!0)}function r(e,n){const t=e.getSymbolAtLocation(n);return t&&function(e){return F(e.declarations,e=>{var n;return null==(n=Sp(e))?void 0:n.resolvedPath})}(t)}function o(e,n,t,r){var o;return Ki((null==(o=e.getRedirectFromSourceFile(n))?void 0:o.outputDts)||n,t,r)}function i(e,n,t){let i;if(n.imports&&n.imports.length>0){const t=e.getTypeChecker();for(const e of n.imports){const n=r(t,e);null==n||n.forEach(l)}}const a=Mi(n.resolvedPath);if(n.referencedFiles&&n.referencedFiles.length>0)for(const r of n.referencedFiles){l(o(e,r.fileName,a,t))}if(e.forEachResolvedTypeReferenceDirective(({resolvedTypeReferenceDirective:n})=>{if(!n)return;const r=n.resolvedFileName;l(o(e,r,a,t))},n),n.moduleAugmentations.length){const t=e.getTypeChecker();for(const e of n.moduleAugmentations){if(!qI(e))continue;const n=t.getSymbolAtLocation(e);n&&s(n)}}for(const r of e.getTypeChecker().getAmbientModules())r.declarations&&r.declarations.length>1&&s(r);return i;function s(e){if(e.declarations)for(const t of e.declarations){const e=Sp(t);e&&e!==n&&l(e.resolvedPath)}}function l(e){(i||(i=new Set)).add(e)}}function a(e,n){return n&&!n.referencedMap==!e}function l(e){return 0===e.module||e.outFile?void 0:n()}function c(e,n,t,r,o){const i=n.getSourceFileByPath(t);return i?u(e,n,i,r,o)?(e.referencedMap?g:_)(e,n,i,r,o):[i]:s}function d(e,n,t,r,o){e.emit(n,(t,i,a,s,l,c)=>{dt.assert(yk(t),`File extension for signature expected to be dts: Got:: ${t}`),o(zH(e,n,i,r,c),l)},t,2,void 0,!0)}function u(e,n,t,r,o,i=e.useFileVersionAsSignature){var a;if(null==(a=e.hasCalledUpdateShapeSignature)?void 0:a.has(t.resolvedPath))return!1;const s=e.fileInfos.get(t.resolvedPath),l=s.signature;let c;return t.isDeclarationFile||i||d(n,t,r,o,n=>{c=n,o.storeSignatureInfo&&(e.signatureInfo??(e.signatureInfo=new Map)).set(t.resolvedPath,0)}),void 0===c&&(c=t.version,o.storeSignatureInfo&&(e.signatureInfo??(e.signatureInfo=new Map)).set(t.resolvedPath,2)),(e.oldSignatures||(e.oldSignatures=new Map)).set(t.resolvedPath,l||!1),(e.hasCalledUpdateShapeSignature||(e.hasCalledUpdateShapeSignature=new Set)).add(t.resolvedPath),s.signature=c,c!==l}function p(e,n){if(!e.allFileNames){const t=n.getSourceFiles();e.allFileNames=t===s?s:t.map(e=>e.fileName)}return e.allFileNames}function f(e,n){const t=e.referencedMap.getKeys(n);return t?Le(t.keys()):[]}function m(e){return function(e){return U(e.moduleAugmentations,e=>gf(e.parent))}(e)||!rm(e)&&!om(e)&&!function(e){for(const n of e.statements)if(!ff(n))return!1;return!0}(e)}function h(e,n,t){if(e.allFilesExcludingDefaultLibraryFile)return e.allFilesExcludingDefaultLibraryFile;let r;t&&o(t);for(const i of n.getSourceFiles())i!==t&&o(i);return e.allFilesExcludingDefaultLibraryFile=r||s,e.allFilesExcludingDefaultLibraryFile;function o(e){n.isSourceFileDefaultLibrary(e)||(r||(r=[])).push(e)}}function _(e,n,t){const r=n.getCompilerOptions();return r&&r.outFile?[t]:h(e,n,t)}function g(e,n,t,r,o){if(m(t))return h(e,n,t);const i=n.getCompilerOptions();if(i&&(RS(i)||i.outFile))return[t];const a=new Map;a.set(t.resolvedPath,t);const s=f(e,t.resolvedPath);for(;s.length>0;){const t=s.pop();if(!a.has(t)){const i=n.getSourceFileByPath(t);a.set(t,i),i&&u(e,n,i,r,o)&&s.push(...f(e,i.resolvedPath))}}return Le(W(a.values(),e=>e))}e.createManyToManyPathMap=n,e.canReuseOldState=a,e.createReferencedMap=l,e.create=function(e,n,t){var r,o;const s=new Map,c=e.getCompilerOptions(),d=l(c),u=a(d,n);e.getTypeChecker();for(const a of e.getSourceFiles()){const t=dt.checkDefined(a.version,"Program intended to be used with Builder should have source files with versions set"),l=u?null==(r=n.oldSignatures)?void 0:r.get(a.resolvedPath):void 0,p=void 0===l?u?null==(o=n.fileInfos.get(a.resolvedPath))?void 0:o.signature:void 0:l||void 0;if(d){const n=i(e,a,e.getCanonicalFileName);n&&d.set(a.resolvedPath,n)}s.set(a.resolvedPath,{version:t,signature:p,affectsGlobalScope:c.outFile?void 0:m(a)||void 0,impliedFormat:a.impliedNodeFormat})}return{fileInfos:s,referencedMap:d,useFileVersionAsSignature:!t&&!u}},e.releaseCache=function(e){e.allFilesExcludingDefaultLibraryFile=void 0,e.allFileNames=void 0},e.getFilesAffectedBy=function(e,n,t,r,o){var i;const a=c(e,n,t,r,o);return null==(i=e.oldSignatures)||i.clear(),a},e.getFilesAffectedByWithOldState=c,e.updateSignatureOfFile=function(e,n,t){e.fileInfos.get(t).signature=n,(e.hasCalledUpdateShapeSignature||(e.hasCalledUpdateShapeSignature=new Set)).add(t)},e.computeDtsSignature=d,e.updateShapeSignature=u,e.getAllDependencies=function(e,n,t){if(n.getCompilerOptions().outFile)return p(e,n);if(!e.referencedMap||m(t))return p(e,n);const r=new Set,o=[t.resolvedPath];for(;o.length;){const n=o.pop();if(!r.has(n)){r.add(n);const t=e.referencedMap.getValues(n);if(t)for(const e of t.keys())o.push(e)}}return Le(W(r.keys(),e=>{var t;return(null==(t=n.getSourceFileByPath(e))?void 0:t.fileName)??e}))},e.getReferencedByPaths=f,e.getAllFilesExcludingDefaultLibraryFile=h})(iH||(iH={}));var sH=(e=>(e[e.None=0]="None",e[e.Js=1]="Js",e[e.JsMap=2]="JsMap",e[e.JsInlineMap=4]="JsInlineMap",e[e.DtsErrors=8]="DtsErrors",e[e.DtsEmit=16]="DtsEmit",e[e.DtsMap=32]="DtsMap",e[e.Dts=24]="Dts",e[e.AllJs=7]="AllJs",e[e.AllDtsEmit=48]="AllDtsEmit",e[e.AllDts=56]="AllDts",e[e.All=63]="All",e))(sH||{});function lH(e){return void 0!==e.program}function cH(e){let n=1;return e.sourceMap&&(n|=2),e.inlineSourceMap&&(n|=4),PS(e)&&(n|=24),e.declarationMap&&(n|=32),e.emitDeclarationOnly&&(n&=56),n}function dH(e,n){const t=n&&(Ze(n)?n:cH(n)),r=Ze(e)?e:cH(e);if(t===r)return 0;if(!t||!r)return r;const o=t^r;let i=0;return 7&o&&(i=7&r),8&o&&(i|=8&r),48&o&&(i|=48&r),i}function uH(e,n){var t,r;const o=iH.create(e,n,!1);o.program=e;const i=e.getCompilerOptions();o.compilerOptions=i;const a=i.outFile;o.semanticDiagnosticsPerFile=new Map,a&&i.composite&&(null==n?void 0:n.outSignature)&&a===n.compilerOptions.outFile&&(o.outSignature=n.outSignature&&pH(i,n.compilerOptions,n.outSignature)),o.changedFilesSet=new Set,o.latestChangedDtsFile=i.composite?null==n?void 0:n.latestChangedDtsFile:void 0,o.checkPending=!!o.compilerOptions.noCheck||void 0;const s=iH.canReuseOldState(o.referencedMap,n),l=s?n.compilerOptions:void 0;let c=s&&!qS(i,l);const d=i.composite&&(null==n?void 0:n.emitSignatures)&&!a&&!XS(i,n.compilerOptions);let u=!0;s?(null==(t=n.changedFilesSet)||t.forEach(e=>o.changedFilesSet.add(e)),!a&&(null==(r=n.affectedFilesPendingEmit)?void 0:r.size)&&(o.affectedFilesPendingEmit=new Map(n.affectedFilesPendingEmit),o.seenAffectedFiles=new Set),o.programEmitPending=n.programEmitPending,a&&o.changedFilesSet.size&&(c=!1,u=!1),o.hasErrorsFromOldState=n.hasErrors):o.buildInfoEmitPending=kS(i);const p=o.referencedMap,f=s?n.referencedMap:void 0,m=c&&!i.skipLibCheck==!l.skipLibCheck,h=m&&!i.skipDefaultLibCheck==!l.skipDefaultLibCheck;if(o.fileInfos.forEach((t,r)=>{var a;let l,g;if(!s||!(l=n.fileInfos.get(r))||l.version!==t.version||l.impliedFormat!==t.impliedFormat||(y=g=p&&p.getValues(r),v=f&&f.getValues(r),y!==v&&(void 0===y||void 0===v||y.size!==v.size||sp(y,e=>!v.has(e))))||g&&sp(g,e=>!o.fileInfos.has(e)&&n.fileInfos.has(e)))_(r);else{const t=e.getSourceFileByPath(r),i=u?null==(a=n.emitDiagnosticsPerFile)?void 0:a.get(r):void 0;if(i&&(o.emitDiagnosticsPerFile??(o.emitDiagnosticsPerFile=new Map)).set(r,n.hasReusableDiagnostic?_H(i,r,e):fH(i,e)),c){if(t.isDeclarationFile&&!m)return;if(t.hasNoDefaultLib&&!h)return;const i=n.semanticDiagnosticsPerFile.get(r);i&&(o.semanticDiagnosticsPerFile.set(r,n.hasReusableDiagnostic?_H(i,r,e):fH(i,e)),(o.semanticDiagnosticsFromOldState??(o.semanticDiagnosticsFromOldState=new Set)).add(r))}}var y,v;if(d){const e=n.emitSignatures.get(r);e&&(o.emitSignatures??(o.emitSignatures=new Map)).set(r,pH(i,n.compilerOptions,e))}}),s&&ap(n.fileInfos,(e,n)=>!o.fileInfos.has(n)&&(!!e.affectsGlobalScope||(o.buildInfoEmitPending=!0,!!a))))iH.getAllFilesExcludingDefaultLibraryFile(o,e,void 0).forEach(e=>_(e.resolvedPath));else if(l){const n=JS(i,l)?cH(i):dH(i,l);0!==n&&(a?o.changedFilesSet.size||(o.programEmitPending=o.programEmitPending?o.programEmitPending|n:n):(e.getSourceFiles().forEach(e=>{o.changedFilesSet.has(e.resolvedPath)||GH(o,e.resolvedPath,n)}),dt.assert(!o.seenAffectedFiles||!o.seenAffectedFiles.size),o.seenAffectedFiles=o.seenAffectedFiles||new Set),o.buildInfoEmitPending=!0)}return s&&o.semanticDiagnosticsPerFile.size!==o.fileInfos.size&&n.checkPending!==o.checkPending&&(o.buildInfoEmitPending=!0),o;function _(e){o.changedFilesSet.add(e),a&&(c=!1,u=!1,o.semanticDiagnosticsFromOldState=void 0,o.semanticDiagnosticsPerFile.clear(),o.emitDiagnosticsPerFile=void 0),o.buildInfoEmitPending=!0,o.programEmitPending=void 0}}function pH(e,n,t){return!!e.declarationMap==!!n.declarationMap?t:Qe(t)?[t]:t[0]}function fH(e,n){return e.length?N(e,e=>{if(Qe(e.messageText))return e;const t=mH(e.messageText,e.file,n,e=>{var n;return null==(n=e.repopulateInfo)?void 0:n.call(e)});return t===e.messageText?e:{...e,messageText:t}}):e}function mH(e,n,t,r){const o=r(e);if(!0===o)return{..._p(n),next:hH(e.next,n,t,r)};if(o)return{...hp(n,t,o.moduleReference,o.mode,o.packageName||o.moduleReference),next:hH(e.next,n,t,r)};const i=hH(e.next,n,t,r);return i===e.next?e:{...e,next:i}}function hH(e,n,t,r){return N(e,e=>mH(e,n,t,r))}function _H(e,n,t){if(!e.length)return s;let r;return e.map(e=>{const r=gH(e,n,t,o);r.reportsUnnecessary=e.reportsUnnecessary,r.reportsDeprecated=e.reportDeprecated,r.source=e.source,r.skippedOn=e.skippedOn;const{relatedInformation:i}=e;return r.relatedInformation=i?i.length?i.map(e=>gH(e,n,t,o)):[]:void 0,r});function o(e){return r??(r=Mi(Vi(oj(t.getCompilerOptions()),t.getCurrentDirectory()))),Ki(e,r,t.getCanonicalFileName)}}function gH(e,n,t,r){const{file:o}=e,i=!1!==o?t.getSourceFileByPath(o?r(o):n):void 0;return{...e,file:i,messageText:Qe(e.messageText)?e.messageText:mH(e.messageText,i,t,e=>e.info)}}function yH(e,n){dt.assert(!n||!e.affectedFiles||e.affectedFiles[e.affectedFilesIndex-1]!==n||!e.semanticDiagnosticsPerFile.has(n.resolvedPath))}function vH(e,n,t){for(var r;;){const{affectedFiles:o}=e;if(o){const i=e.seenAffectedFiles;let a=e.affectedFilesIndex;for(;a<o.length;){const r=o[a];if(!i.has(r.resolvedPath))return e.affectedFilesIndex=a,GH(e,r.resolvedPath,cH(e.compilerOptions)),AH(e,r,n,t),r;a++}e.changedFilesSet.delete(e.currentChangedFilePath),e.currentChangedFilePath=void 0,null==(r=e.oldSignatures)||r.clear(),e.affectedFiles=void 0}const i=e.changedFilesSet.keys().next();if(i.done)return;if(e.program.getCompilerOptions().outFile)return e.program;e.affectedFiles=iH.getFilesAffectedByWithOldState(e,e.program,i.value,n,t),e.currentChangedFilePath=i.value,e.affectedFilesIndex=0,e.seenAffectedFiles||(e.seenAffectedFiles=new Set)}}function bH(e,n,t){var r,o;if(((null==(r=e.affectedFilesPendingEmit)?void 0:r.size)||e.programEmitPending)&&(n||t||(e.affectedFilesPendingEmit=void 0,e.programEmitPending=void 0),null==(o=e.affectedFilesPendingEmit)||o.forEach((n,r)=>{const o=t?55&n:7&n;o?e.affectedFilesPendingEmit.set(r,o):e.affectedFilesPendingEmit.delete(r)}),e.programEmitPending)){const n=t?55&e.programEmitPending:7&e.programEmitPending;e.programEmitPending=n||void 0}}function TH(e,n,t,r){let o=dH(e,n);return t&&(o&=56),r&&(o&=8),o}function SH(e){return e?8:56}function EH(e){if(!e.cleanedDiagnosticsOfLibFiles){e.cleanedDiagnosticsOfLibFiles=!0;const n=e.program.getCompilerOptions();d(e.program.getSourceFiles(),t=>e.program.isSourceFileDefaultLibrary(t)&&!hA(t,n,e.program)&&RH(e,t.resolvedPath))}}function AH(e,n,t,r){if(RH(e,n.resolvedPath),e.allFilesExcludingDefaultLibraryFile===e.affectedFiles)return EH(e),void iH.updateShapeSignature(e,e.program,n,t,r);e.compilerOptions.assumeChangesOnlyAffectDirectDependencies||function(e,n,t,r){var o,i;if(!e.referencedMap||!e.changedFilesSet.has(n.resolvedPath))return;if(!IH(e,n.resolvedPath))return;if(RS(e.compilerOptions)){const o=new Map;o.set(n.resolvedPath,!0);const i=iH.getReferencedByPaths(e,n.resolvedPath);for(;i.length>0;){const n=i.pop();if(!o.has(n)){if(o.set(n,!0),DH(e,n,!1,t,r))return;if(xH(e,n,!1,t,r),IH(e,n)){const t=e.program.getSourceFileByPath(n);i.push(...iH.getReferencedByPaths(e,t.resolvedPath))}}}}const a=new Set,s=!!(null==(o=n.symbol)?void 0:o.exports)&&!!ap(n.symbol.exports,t=>{if(128&t.flags)return!0;const r=cT(t,e.program.getTypeChecker());return r!==t&&(!!(128&r.flags)&&U(r.declarations,e=>Sp(e)===n))});null==(i=e.referencedMap.getKeys(n.resolvedPath))||i.forEach(n=>{if(DH(e,n,s,t,r))return!0;const o=e.referencedMap.getKeys(n);return o&&sp(o,n=>CH(e,n,s,a,t,r))})}(e,n,t,r)}function xH(e,n,t,r,o){if(RH(e,n),!e.changedFilesSet.has(n)){const i=e.program.getSourceFileByPath(n);i&&(iH.updateShapeSignature(e,e.program,i,r,o,!0),t?GH(e,n,cH(e.compilerOptions)):PS(e.compilerOptions)&&GH(e,n,e.compilerOptions.declarationMap?56:24))}}function RH(e,n){return!e.semanticDiagnosticsFromOldState||(e.semanticDiagnosticsFromOldState.delete(n),e.semanticDiagnosticsPerFile.delete(n),!e.semanticDiagnosticsFromOldState.size)}function IH(e,n){const t=dt.checkDefined(e.oldSignatures).get(n)||void 0;return dt.checkDefined(e.fileInfos.get(n)).signature!==t}function DH(e,n,t,r,o){var i;return!!(null==(i=e.fileInfos.get(n))?void 0:i.affectsGlobalScope)&&(iH.getAllFilesExcludingDefaultLibraryFile(e,e.program,void 0).forEach(n=>xH(e,n.resolvedPath,t,r,o)),EH(e),!0)}function CH(e,n,t,r,o,i){var a;if(B(r,n)){if(DH(e,n,t,o,i))return!0;xH(e,n,t,o,i),null==(a=e.referencedMap.getKeys(n))||a.forEach(n=>CH(e,n,t,r,o,i))}}function NH(e,n,t,r){return e.compilerOptions.noCheck?s:K(function(e,n,t,r){r??(r=e.semanticDiagnosticsPerFile);const o=n.resolvedPath,i=r.get(o);if(i)return $U(i,e.compilerOptions);const a=e.program.getBindAndCheckDiagnostics(n,t);return r.set(o,a),e.buildInfoEmitPending=!0,$U(a,e.compilerOptions)}(e,n,t,r),e.program.getProgramDiagnostics(n))}function MH(e){var n;return!!(null==(n=e.options)?void 0:n.outFile)}function PH(e){return!!e.fileNames}function LH(e){void 0===e.hasErrors&&(kS(e.compilerOptions)?e.hasErrors=!U(e.program.getSourceFiles(),n=>{var t,r;const o=e.semanticDiagnosticsPerFile.get(n.resolvedPath);return void 0===o||!!o.length||!!(null==(r=null==(t=e.emitDiagnosticsPerFile)?void 0:t.get(n.resolvedPath))?void 0:r.length)})&&(kH(e)||U(e.program.getSourceFiles(),n=>!!e.program.getProgramDiagnostics(n).length)):e.hasErrors=U(e.program.getSourceFiles(),n=>{var t,r;const o=e.semanticDiagnosticsPerFile.get(n.resolvedPath);return!!(null==o?void 0:o.length)||!!(null==(r=null==(t=e.emitDiagnosticsPerFile)?void 0:t.get(n.resolvedPath))?void 0:r.length)})||kH(e))}function kH(e){return!!(e.program.getConfigFileParsingDiagnostics().length||e.program.getSyntacticDiagnostics().length||e.program.getOptionsDiagnostics().length||e.program.getGlobalDiagnostics().length)}function wH(e){return LH(e),e.buildInfoEmitPending??(e.buildInfoEmitPending=!!e.hasErrorsFromOldState!=!!e.hasErrors)}var OH=(e=>(e[e.SemanticDiagnosticsBuilderProgram=0]="SemanticDiagnosticsBuilderProgram",e[e.EmitAndSemanticDiagnosticsBuilderProgram=1]="EmitAndSemanticDiagnosticsBuilderProgram",e))(OH||{});function FH(e,n,t,r,o,i){let a,l,c;return void 0===e?(dt.assert(void 0===n),a=t,c=r,dt.assert(!!c),l=c.getProgram()):Ye(e)?(c=r,l=UU({rootNames:e,options:n,host:t,oldProgram:c&&c.getProgramOrUndefined(),configFileParsingDiagnostics:o,projectReferences:i}),a=t):(l=e,a=n,c=t,o=r),{host:a,newProgram:l,oldProgram:c,configFileParsingDiagnostics:o||s}}function WH(e,n){return void 0!==(null==n?void 0:n.sourceMapUrlPos)?e.substring(0,n.sourceMapUrlPos):e}function zH(e,n,t,r,o){var i;let a;return t=WH(t,o),(null==(i=null==o?void 0:o.diagnostics)?void 0:i.length)&&(t+=o.diagnostics.map(t=>`${function(t){if(t.file.resolvedPath===n.resolvedPath)return`(${t.start},${t.length})`;void 0===a&&(a=Mi(n.resolvedPath));return`${Xi(aa(a,t.file.resolvedPath,e.getCanonicalFileName))}(${t.start},${t.length})`}(t)}${ao[t.category]}${t.code}: ${s(t.messageText)}`).join("\n")),(r.createHash??Fo)(t);function s(e){return Qe(e)?e:void 0===e?"":e.next?e.messageText+e.next.map(s).join("\n"):e.messageText}}function BH(e,{newProgram:n,host:t,oldProgram:r,configFileParsingDiagnostics:o}){let a=r&&r.state;if(a&&n===a.program&&o===n.getConfigFileParsingDiagnostics())return n=void 0,a=void 0,r;const l=uH(n,a);n.getBuildInfo=()=>function(e){var n,t;const r=e.program.getCurrentDirectory(),o=Mi(Vi(oj(e.compilerOptions),r)),a=e.latestChangedDtsFile?b(e.latestChangedDtsFile):void 0,l=[],c=new Map,u=new Set(e.program.getRootFileNames().map(n=>Ki(n,r,e.program.getCanonicalFileName)));if(LH(e),!kS(e.compilerOptions))return{root:Le(u,e=>T(e)),errors:!!e.hasErrors||void 0,checkPending:e.checkPending,version:i};const p=[];if(e.compilerOptions.outFile){const n=Le(e.fileInfos.entries(),([e,n])=>(A(e,S(e)),n.impliedFormat?{version:n.version,impliedFormat:n.impliedFormat,signature:void 0,affectsGlobalScope:void 0}:n.version));return{fileNames:l,fileInfos:n,root:p,resolvedRoot:x(),options:R(e.compilerOptions),semanticDiagnosticsPerFile:e.changedFilesSet.size?void 0:D(),emitDiagnosticsPerFile:C(),changeFileSet:k(),outSignature:e.outSignature,latestChangedDtsFile:a,pendingEmit:e.programEmitPending?e.programEmitPending!==cH(e.compilerOptions)&&e.programEmitPending:void 0,errors:!!e.hasErrors||void 0,checkPending:e.checkPending,version:i}}let f,m,h;const _=Le(e.fileInfos.entries(),([n,t])=>{var r,o;const i=S(n);A(n,i),dt.assert(l[i-1]===T(n));const a=null==(r=e.oldSignatures)?void 0:r.get(n),c=void 0!==a?a||void 0:t.signature;if(e.compilerOptions.composite){const t=e.program.getSourceFileByPath(n);if(!om(t)&&Zy(t,e.program)){const t=null==(o=e.emitSignatures)?void 0:o.get(n);t!==c&&(h=re(h,void 0===t?i:[i,Qe(t)||t[0]!==c?t:s]))}}return t.version===c?t.affectsGlobalScope||t.impliedFormat?{version:t.version,signature:void 0,affectsGlobalScope:t.affectsGlobalScope,impliedFormat:t.impliedFormat}:t.version:void 0!==c?void 0===a?t:{version:t.version,signature:c,affectsGlobalScope:t.affectsGlobalScope,impliedFormat:t.impliedFormat}:{version:t.version,signature:!1,affectsGlobalScope:t.affectsGlobalScope,impliedFormat:t.impliedFormat}});let g;(null==(n=e.referencedMap)?void 0:n.size())&&(g=Le(e.referencedMap.keys()).sort(xn).map(n=>[S(n),E(e.referencedMap.getValues(n))]));const y=D();let v;if(null==(t=e.affectedFilesPendingEmit)?void 0:t.size){const n=cH(e.compilerOptions),t=new Set;for(const r of Le(e.affectedFilesPendingEmit.keys()).sort(xn))if(B(t,r)){const t=e.program.getSourceFileByPath(r);if(!t||!Zy(t,e.program))continue;const o=S(r),i=e.affectedFilesPendingEmit.get(r);v=re(v,i===n?o:24===i?[o]:[o,i])}}return{fileNames:l,fileIdsList:f,fileInfos:_,root:p,resolvedRoot:x(),options:R(e.compilerOptions),referencedMap:g,semanticDiagnosticsPerFile:y,emitDiagnosticsPerFile:C(),changeFileSet:k(),affectedFilesPendingEmit:v,emitSignatures:h,latestChangedDtsFile:a,errors:!!e.hasErrors||void 0,checkPending:e.checkPending,version:i};function b(e){return T(Vi(e,r))}function T(n){return Xi(aa(o,n,e.program.getCanonicalFileName))}function S(e){let n=c.get(e);return void 0===n&&(l.push(T(e)),c.set(e,n=l.length)),n}function E(e){const n=Le(e.keys(),S).sort(vn),t=n.join();let r=null==m?void 0:m.get(t);return void 0===r&&(f=re(f,n),(m??(m=new Map)).set(t,r=f.length)),r}function A(n,t){const r=e.program.getSourceFile(n);if(!e.program.getFileIncludeReasons().get(r.path).some(e=>0===e.kind))return;if(!p.length)return p.push(t);const o=p[p.length-1],i=Ye(o);if(i&&o[1]===t-1)return o[1]=t;if(i||1===p.length||o!==t-1)return p.push(t);const a=p[p.length-2];return Ze(a)&&a===o-1?(p[p.length-2]=[a,t],p.length=p.length-1):p.push(t)}function x(){let n;return u.forEach(t=>{const r=e.program.getSourceFileByPath(t);r&&t!==r.resolvedPath&&(n=re(n,[S(r.resolvedPath),S(t)]))}),n}function R(e){let n;const{optionsNameMap:t}=rw();for(const r of Ce(e).sort(xn)){const o=t.get(r.toLowerCase());(null==o?void 0:o.affectsBuildInfo)&&((n||(n={}))[r]=I(o,e[r]))}return n}function I(e,n){if(e)if(dt.assert("listOrElement"!==e.type),"list"===e.type){const t=n;if(e.element.isFilePath&&t.length)return t.map(b)}else if(e.isFilePath)return b(n);return n}function D(){let n;return e.fileInfos.forEach((t,r)=>{const o=e.semanticDiagnosticsPerFile.get(r);o?o.length&&(n=re(n,[S(r),N(o,r)])):e.changedFilesSet.has(r)||(n=re(n,S(r)))}),n}function C(){var n;let t;if(!(null==(n=e.emitDiagnosticsPerFile)?void 0:n.size))return t;for(const r of Le(e.emitDiagnosticsPerFile.keys()).sort(xn)){const n=e.emitDiagnosticsPerFile.get(r);t=re(t,[S(r),N(n,r)])}return t}function N(e,n){return dt.assert(!!e.length),e.map(e=>{const t=M(e,n);t.reportsUnnecessary=e.reportsUnnecessary,t.reportDeprecated=e.reportsDeprecated,t.source=e.source,t.skippedOn=e.skippedOn;const{relatedInformation:r}=e;return t.relatedInformation=r?r.length?r.map(e=>M(e,n)):[]:void 0,t})}function M(e,n){const{file:t}=e;return{...e,file:!!t&&(t.resolvedPath===n?void 0:T(t.resolvedPath)),messageText:Qe(e.messageText)?e.messageText:P(e.messageText)}}function P(e){if(e.repopulateInfo)return{info:e.repopulateInfo(),next:L(e.next)};const n=L(e.next);return n===e.next?e:{...e,next:n}}function L(e){return e&&d(e,(n,t)=>{const r=P(n);if(n===r)return;const o=t>0?e.slice(0,t-1):[];o.push(r);for(let i=t+1;i<e.length;i++)o.push(P(e[i]));return o})||e}function k(){let n;if(e.changedFilesSet.size)for(const t of Le(e.changedFilesSet.keys()).sort(xn))n=re(n,S(t));return n}}(function(e){return dt.assert(lH(e)),e}(l)),n=void 0,r=void 0,a=void 0;const c=JH(l,o);return c.state=l,c.hasChangedEmitSignature=()=>!!l.hasChangedEmitSignature,c.getAllDependencies=e=>iH.getAllDependencies(l,dt.checkDefined(l.program),e),c.getSemanticDiagnostics=function(e,n){if(dt.assert(lH(l)),yH(l,e),e)return NH(l,e,n);for(;;){const e=_(n);if(!e)break;if(e.affected===l.program)return e.result}let t;for(const r of l.program.getSourceFiles())t=ae(t,NH(l,r,n));l.checkPending&&!l.compilerOptions.noCheck&&(l.checkPending=void 0,l.buildInfoEmitPending=!0);return t||s},c.getDeclarationDiagnostics=function(n,t){var r;if(dt.assert(lH(l)),1===e){let e,o;for(yH(l,n);e=u(void 0,t,void 0,void 0,!0);)n||(o=ae(o,e.result.diagnostics));return(n?null==(r=l.emitDiagnosticsPerFile)?void 0:r.get(n.resolvedPath):o)||s}{const e=l.program.getDeclarationDiagnostics(n,t);return h(n,void 0,!0,e),e}},c.emit=function(n,t,r,o,i){dt.assert(lH(l)),1===e&&yH(l,n);const a=YU(c,n,t,r);if(a)return a;if(!n){if(1===e){let e,n,a=[],l=!1,c=[];for(;n=f(t,r,o,i);)l=l||n.result.emitSkipped,e=ae(e,n.result.diagnostics),c=ae(c,n.result.emittedFiles),a=ae(a,n.result.sourceMaps);return{emitSkipped:l,diagnostics:e||s,emittedFiles:c,sourceMaps:a}}bH(l,o,!1)}const d=l.program.emit(n,m(t,i),r,o,i);return h(n,o,!1,d.diagnostics),d},c.releaseProgram=()=>function(e){iH.releaseCache(e),e.program=void 0}(l),0===e?c.getSemanticDiagnosticsOfNextAffectedFile=_:1===e?(c.getSemanticDiagnosticsOfNextAffectedFile=_,c.emitNextAffectedFile=f,c.emitBuildInfo=function(e,n){if(dt.assert(lH(l)),wH(l)){const r=l.program.emitBuildInfo(e||Ue(t,t.writeFile),n);return l.buildInfoEmitPending=!1,r}return XU}):un(),c;function u(e,n,r,o,i){var a,s,c,d;dt.assert(lH(l));let u=vH(l,n,t);const f=cH(l.compilerOptions);let h,_=i?8:r?56&f:f;if(!u){if(l.compilerOptions.outFile){if(l.programEmitPending&&(_=TH(l.programEmitPending,l.seenProgramEmit,r,i),_&&(u=l.program)),!u&&(null==(a=l.emitDiagnosticsPerFile)?void 0:a.size)){const e=l.seenProgramEmit||0;if(!(e&SH(i))){l.seenProgramEmit=SH(i)|e;const n=[];return l.emitDiagnosticsPerFile.forEach(e=>ae(n,e)),{result:{emitSkipped:!0,diagnostics:n},affected:l.program}}}}else{const e=function(e,n,t){var r;if(null==(r=e.affectedFilesPendingEmit)?void 0:r.size)return ap(e.affectedFilesPendingEmit,(r,o)=>{var i;const a=e.program.getSourceFileByPath(o);if(!a||!Zy(a,e.program))return void e.affectedFilesPendingEmit.delete(o);const s=TH(r,null==(i=e.seenEmittedFiles)?void 0:i.get(a.resolvedPath),n,t);return s?{affectedFile:a,emitKind:s}:void 0})}(l,r,i);if(e)({affectedFile:u,emitKind:_}=e);else{const e=function(e,n){var t;if(null==(t=e.emitDiagnosticsPerFile)?void 0:t.size)return ap(e.emitDiagnosticsPerFile,(t,r)=>{var o;const i=e.program.getSourceFileByPath(r);if(!i||!Zy(i,e.program))return void e.emitDiagnosticsPerFile.delete(r);const a=(null==(o=e.seenEmittedFiles)?void 0:o.get(i.resolvedPath))||0;return a&SH(n)?void 0:{affectedFile:i,diagnostics:t,seenKind:a}})}(l,i);if(e)return(l.seenEmittedFiles??(l.seenEmittedFiles=new Map)).set(e.affectedFile.resolvedPath,e.seenKind|SH(i)),{result:{emitSkipped:!0,diagnostics:e.diagnostics},affected:e.affectedFile}}}if(!u){if(i||!wH(l))return;const r=l.program,o=r.emitBuildInfo(e||Ue(t,t.writeFile),n);return l.buildInfoEmitPending=!1,{result:o,affected:r}}}7&_&&(h=0),56&_&&(h=void 0===h?1:void 0);const g=i?{emitSkipped:!0,diagnostics:l.program.getDeclarationDiagnostics(u===l.program?void 0:u,n)}:l.program.emit(u===l.program?void 0:u,m(e,o),n,h,o,void 0,!0);if(u!==l.program){const e=u;l.seenAffectedFiles.add(e.resolvedPath),void 0!==l.affectedFilesIndex&&l.affectedFilesIndex++,l.buildInfoEmitPending=!0;const n=(null==(s=l.seenEmittedFiles)?void 0:s.get(e.resolvedPath))||0;(l.seenEmittedFiles??(l.seenEmittedFiles=new Map)).set(e.resolvedPath,_|n);const t=dH((null==(c=l.affectedFilesPendingEmit)?void 0:c.get(e.resolvedPath))||f,_|n);t?(l.affectedFilesPendingEmit??(l.affectedFilesPendingEmit=new Map)).set(e.resolvedPath,t):null==(d=l.affectedFilesPendingEmit)||d.delete(e.resolvedPath),g.diagnostics.length&&(l.emitDiagnosticsPerFile??(l.emitDiagnosticsPerFile=new Map)).set(e.resolvedPath,g.diagnostics)}else l.changedFilesSet.clear(),l.programEmitPending=l.changedFilesSet.size?dH(f,_):l.programEmitPending?dH(l.programEmitPending,_):void 0,l.seenProgramEmit=_|(l.seenProgramEmit||0),p(g.diagnostics),l.buildInfoEmitPending=!0;return{result:g,affected:u}}function p(e){let n;e.forEach(e=>{if(!e.file)return;let t=null==n?void 0:n.get(e.file.resolvedPath);t||(n??(n=new Map)).set(e.file.resolvedPath,t=[]),t.push(e)}),n&&(l.emitDiagnosticsPerFile=n)}function f(e,n,t,r){return u(e,n,t,r,!1)}function m(e,n){return dt.assert(lH(l)),PS(l.compilerOptions)?(r,o,i,a,s,c)=>{var d,u,p;if(yk(r))if(l.compilerOptions.outFile){if(l.compilerOptions.composite){const e=f(l.outSignature,void 0);if(!e)return c.skippedDtsWrite=!0;l.outSignature=e}}else{let e;if(dt.assert(1===(null==s?void 0:s.length)),!n){const n=s[0],r=l.fileInfos.get(n.resolvedPath);if(r.signature===n.version){const i=zH(l.program,n,o,t,c);if((null==(d=null==c?void 0:c.diagnostics)?void 0:d.length)||(e=i),i!==n.version)if(t.storeSignatureInfo&&(l.signatureInfo??(l.signatureInfo=new Map)).set(n.resolvedPath,1),l.affectedFiles){void 0===(null==(u=l.oldSignatures)?void 0:u.get(n.resolvedPath))&&(l.oldSignatures??(l.oldSignatures=new Map)).set(n.resolvedPath,r.signature||!1),r.signature=i}else r.signature=i}}if(l.compilerOptions.composite){const n=s[0].resolvedPath;if(e=f(null==(p=l.emitSignatures)?void 0:p.get(n),e),!e)return c.skippedDtsWrite=!0;(l.emitSignatures??(l.emitSignatures=new Map)).set(n,e)}}function f(e,n){const i=!e||Qe(e)?e:e[0];if(n??(n=function(e,n,t){return(n.createHash??Fo)(WH(e,t))}(o,t,c)),n===i){if(e===i)return;c?c.differsOnlyInMap=!0:c={differsOnlyInMap:!0}}else l.hasChangedEmitSignature=!0,l.latestChangedDtsFile=r;return n}e?e(r,o,i,a,s,c):t.writeFile?t.writeFile(r,o,i,a,s,c):l.program.writeFile(r,o,i,a,s,c)}:e||Ue(t,t.writeFile)}function h(n,t,r,o){n||1===e||(bH(l,t,r),p(o))}function _(e,n){for(dt.assert(lH(l));;){const r=vH(l,e,t);let o;if(!r)return void(l.checkPending&&!l.compilerOptions.noCheck&&(l.checkPending=void 0,l.buildInfoEmitPending=!0));if(r!==l.program){const t=r;if(n&&n(t)||(o=NH(l,t,e)),l.seenAffectedFiles.add(t.resolvedPath),l.affectedFilesIndex++,l.buildInfoEmitPending=!0,!o)continue}else{let n;const t=new Map;l.program.getSourceFiles().forEach(r=>n=ae(n,NH(l,r,e,t))),l.semanticDiagnosticsPerFile=t,o=n||s,l.changedFilesSet.clear(),l.programEmitPending=cH(l.compilerOptions),l.compilerOptions.noCheck||(l.checkPending=void 0),l.buildInfoEmitPending=!0}return{result:o,affected:r}}}}function GH(e,n,t){var r,o;const i=(null==(r=e.affectedFilesPendingEmit)?void 0:r.get(n))||0;(e.affectedFilesPendingEmit??(e.affectedFilesPendingEmit=new Map)).set(n,i|t),null==(o=e.emitDiagnosticsPerFile)||o.delete(n)}function VH(e){return Qe(e)?{version:e,signature:e,affectsGlobalScope:void 0,impliedFormat:void 0}:Qe(e.signature)?e:{version:e.version,signature:!1===e.signature?void 0:e.version,affectsGlobalScope:e.affectsGlobalScope,impliedFormat:e.impliedFormat}}function jH(e,n){return Ze(e)?n:e[1]||24}function UH(e,n){return e||cH(n||{})}function HH(e,n,t){var r,o,i,a;const l=Mi(Vi(n,t.getCurrentDirectory())),c=Hn(t.useCaseSensitiveFileNames());let d;const u=null==(r=e.fileNames)?void 0:r.map(function(e){return Ki(e,l,c)});let p;const f=e.latestChangedDtsFile?_(e.latestChangedDtsFile):void 0,m=new Map,h=new Set(D(e.changeFileSet,g));if(MH(e))e.fileInfos.forEach((e,n)=>{const t=g(n+1);m.set(t,Qe(e)?{version:e,signature:void 0,affectsGlobalScope:void 0,impliedFormat:void 0}:e)}),d={fileInfos:m,compilerOptions:e.options?oO(e.options,_):{},semanticDiagnosticsPerFile:y(e.semanticDiagnosticsPerFile),emitDiagnosticsPerFile:v(e.emitDiagnosticsPerFile),hasReusableDiagnostic:!0,changedFilesSet:h,latestChangedDtsFile:f,outSignature:e.outSignature,programEmitPending:void 0===e.pendingEmit?void 0:UH(e.pendingEmit,e.options),hasErrors:e.errors,checkPending:e.checkPending};else{p=null==(o=e.fileIdsList)?void 0:o.map(e=>new Set(e.map(g)));const n=(null==(i=e.options)?void 0:i.composite)&&!e.options.outFile?new Map:void 0;e.fileInfos.forEach((e,t)=>{const r=g(t+1),o=VH(e);m.set(r,o),n&&o.signature&&n.set(r,o.signature)}),null==(a=e.emitSignatures)||a.forEach(e=>{if(Ze(e))n.delete(g(e));else{const t=g(e[0]);n.set(t,Qe(e[1])||e[1].length?e[1]:[n.get(t)])}});const t=e.affectedFilesPendingEmit?cH(e.options||{}):void 0;d={fileInfos:m,compilerOptions:e.options?oO(e.options,_):{},referencedMap:function(e,n){const t=iH.createReferencedMap(n);return t&&e?(e.forEach(([e,n])=>t.set(g(e),p[n-1])),t):t}(e.referencedMap,e.options??{}),semanticDiagnosticsPerFile:y(e.semanticDiagnosticsPerFile),emitDiagnosticsPerFile:v(e.emitDiagnosticsPerFile),hasReusableDiagnostic:!0,changedFilesSet:h,affectedFilesPendingEmit:e.affectedFilesPendingEmit&&Oe(e.affectedFilesPendingEmit,e=>g(Ze(e)?e:e[0]),e=>jH(e,t)),latestChangedDtsFile:f,emitSignatures:(null==n?void 0:n.size)?n:void 0,hasErrors:e.errors,checkPending:e.checkPending}}return{state:d,getProgram:un,getProgramOrUndefined:an,releaseProgram:tn,getCompilerOptions:()=>d.compilerOptions,getSourceFile:un,getSourceFiles:un,getOptionsDiagnostics:un,getGlobalDiagnostics:un,getConfigFileParsingDiagnostics:un,getSyntacticDiagnostics:un,getDeclarationDiagnostics:un,getSemanticDiagnostics:un,emit:un,getAllDependencies:un,getCurrentDirectory:un,emitNextAffectedFile:un,getSemanticDiagnosticsOfNextAffectedFile:un,emitBuildInfo:un,close:tn,hasChangedEmitSignature:rn};function _(e){return Vi(e,l)}function g(e){return u[e-1]}function y(e){const n=new Map(W(m.keys(),e=>h.has(e)?void 0:[e,s]));return null==e||e.forEach(e=>{Ze(e)?n.delete(g(e)):n.set(g(e[0]),e[1])}),n}function v(e){return e&&Oe(e,e=>g(e[0]),e=>e[1])}}function KH(e,n,t){const r=Mi(Vi(n,t.getCurrentDirectory())),o=Hn(t.useCaseSensitiveFileNames()),i=new Map;let a=0;const s=new Map,l=new Map(e.resolvedRoot);return e.fileInfos.forEach((n,t)=>{const s=Ki(e.fileNames[t],r,o),l=Qe(n)?n:n.version;if(i.set(s,l),a<e.root.length){const n=e.root[a],r=t+1;Ye(n)?n[0]<=r&&r<=n[1]&&(c(r,s),n[1]===r&&a++):n===r&&(c(r,s),a++)}}),{fileInfos:i,roots:s};function c(n,t){const i=l.get(n);i?s.set(Ki(e.fileNames[i-1],r,o),t):s.set(t,void 0)}}function qH(e,n,t){if(PH(r=e)||!r.root)return;var r;const o=Mi(Vi(n,t.getCurrentDirectory())),i=Hn(t.useCaseSensitiveFileNames());return e.root.map(e=>Ki(e,o,i))}function JH(e,n){return{state:void 0,getProgram:t,getProgramOrUndefined:()=>e.program,releaseProgram:()=>e.program=void 0,getCompilerOptions:()=>e.compilerOptions,getSourceFile:e=>t().getSourceFile(e),getSourceFiles:()=>t().getSourceFiles(),getOptionsDiagnostics:e=>t().getOptionsDiagnostics(e),getGlobalDiagnostics:e=>t().getGlobalDiagnostics(e),getConfigFileParsingDiagnostics:()=>n,getSyntacticDiagnostics:(e,n)=>t().getSyntacticDiagnostics(e,n),getDeclarationDiagnostics:(e,n)=>t().getDeclarationDiagnostics(e,n),getSemanticDiagnostics:(e,n)=>t().getSemanticDiagnostics(e,n),emit:(e,n,r,o,i)=>t().emit(e,n,r,o,i),emitBuildInfo:(e,n)=>t().emitBuildInfo(e,n),getAllDependencies:un,getCurrentDirectory:()=>t().getCurrentDirectory(),close:tn};function t(){return dt.checkDefined(e.program)}}function XH(e,n,t,r,o,i){return BH(0,FH(e,n,t,r,o,i))}function YH(e,n,t,r,o,i){return BH(1,FH(e,n,t,r,o,i))}function $H(e,n,t,r,o,i){const{newProgram:a,configFileParsingDiagnostics:s}=FH(e,n,t,r,o,i);return JH({program:a,compilerOptions:a.getCompilerOptions()},s)}function QH(e){return Fn(e,"/node_modules/.staging")?Wn(e,"/.staging"):U(Zo,n=>e.includes(n))?void 0:e}function ZH(e,n){if(n<=1)return 1;let t=1,r=0===e[0].search(/[a-z]:/i);if(e[0]!==pi&&!r&&0===e[1].search(/[a-z]\$$/i)){if(2===n)return 2;t=2,r=!0}return r&&!e[t].match(/^users$/i)?t:e[t].match(/^workspaces$/i)?t+1:t+2}function eK(e,n){if(void 0===n&&(n=e.length),n<=2)return!1;return n>ZH(e,n)+1}function nK(e){return eK(wi(e))}function tK(e){return oK(Mi(e))}function rK(e,n){if(n.length<e.length)return!1;for(let t=0;t<e.length;t++)if(n[t]!==e[t])return!1;return!0}function oK(e){return nK(e)}function iK(e){return oK(e)}function aK(e,n,t,r,o,i,a,s){const l=wi(n),c=wi(e=yi(e)?ji(e):Vi(e,a())),d=ZH(l,l.length);if(l.length<=d+1)return;const u=l.indexOf("node_modules");if(-1!==u&&u+1<=d+1)return;const p=l.lastIndexOf("node_modules");return i&&rK(o,l)?l.length>o.length+1?lK(c,l,Math.max(o.length+1,d+1),p):{dir:t,dirPath:r,nonRecursive:!0}:sK(c,l,l.length-1,d,u,o,p,s)}function sK(e,n,t,r,o,i,a,s){if(-1!==o)return lK(e,n,o+1,a);let l=!0,c=t;if(!s)for(let d=0;d<t;d++)if(n[d]!==i[d]){l=!1,c=Math.max(d+1,r+1);break}return lK(e,n,c,a,l)}function lK(e,n,t,r,o){let i;return-1!==r&&r+1>=t&&r+2<n.length&&(Xn(n[r+1],"@")?r+3<n.length&&(i=r+3):i=r+2),{dir:Oi(e,t),dirPath:Oi(n,t),nonRecursive:o,packageDir:void 0!==i?Oi(e,i):void 0,packageDirPath:void 0!==i?Oi(n,i):void 0}}function cK(e,n,t,r,o,i,a,s){const l=wi(n);if(o&&rK(r,l))return t;const c=sK(wi(e=yi(e)?ji(e):Vi(e,i())),l,l.length,ZH(l,l.length),l.indexOf("node_modules"),r,l.lastIndexOf("node_modules"),a);return c&&s(c.dirPath)?c.dirPath:void 0}function dK(e,n){const t=Vi(e,n());return vi(t)?t:qi(t)}function uK(e){var n;return(null==(n=e.getCompilerHost)?void 0:n.call(e))||e}function pK(e,n,t,r,o){return{nameAndMode:IU,resolve:(i,a)=>function(e,n,t,r,o,i,a){const s=uK(e),l=KF(t,r,o,s,n,i,a);if(!e.getGlobalTypingsCacheLocation)return l;const c=e.getGlobalTypingsCacheLocation();if(!(void 0===c||Ds(t)||l.resolvedModule&&nA(l.resolvedModule.extension))){const{resolvedModule:r,failedLookupLocations:i,affectingLocations:a,resolutionDiagnostics:d}=JW(dt.checkDefined(e.globalCacheResolutionModuleName)(t),e.projectName,o,s,c,n);if(r)return l.resolvedModule=r,l.failedLookupLocations=fF(l.failedLookupLocations,i),l.affectingLocations=fF(l.affectingLocations,a),l.resolutionDiagnostics=fF(l.resolutionDiagnostics,d),l}return l}(r,o,i,e,t,n,a)}}function fK(e,n,t){let r,o,i;const a=new Set,l=new Set,c=new Set,d=new Map,u=new Map;let p,m,h,_,g,y=!1,v=!1;const b=pn(()=>e.getCurrentDirectory()),T=e.getCachedDirectoryStructureHost(),S=new Map,E=GF(b(),e.getCanonicalFileName,e.getCompilationSettings()),A=new Map,x=VF(b(),e.getCanonicalFileName,e.getCompilationSettings(),E.getPackageJsonInfoCache(),E.optionsToRedirectsKey),R=new Map,I=GF(b(),e.getCanonicalFileName,jF(e.getCompilationSettings()),E.getPackageJsonInfoCache()),D=new Map,C=new Map,N=dK(n,b),M=e.toPath(N),P=wi(M),L=eK(P),k=new Map,w=new Map,O=new Map,F=new Map;return{rootDirForResolution:n,resolvedModuleNames:S,resolvedTypeReferenceDirectives:A,resolvedLibraries:R,resolvedFileToResolution:d,resolutionsWithFailedLookups:l,resolutionsWithOnlyAffectingLocations:c,directoryWatchesOfFailedLookups:D,fileWatchesOfAffectingLocations:C,packageDirWatchers:w,dirPathToSymlinkPackageRefCount:O,watchFailedLookupLocationsOfExternalModuleResolutions:H,getModuleResolutionCache:()=>E,startRecordingFilesWithChangedResolutions:function(){r=[]},finishRecordingFilesWithChangedResolutions:function(){const e=r;return r=void 0,e},startCachingPerDirectoryResolution:function(){E.isReadonly=void 0,x.isReadonly=void 0,I.isReadonly=void 0,E.getPackageJsonInfoCache().isReadonly=void 0,E.clearAllExceptPackageJsonInfoCache(),x.clearAllExceptPackageJsonInfoCache(),I.clearAllExceptPackageJsonInfoCache(),Y(),k.clear()},finishCachingPerDirectoryResolution:function(n,t){i=void 0,v=!1,Y(),n!==t&&(!function(n){R.forEach((t,r)=>{var o;(null==(o=null==n?void 0:n.resolvedLibReferences)?void 0:o.has(r))||(ee(t,e.toPath(kU(e.getCompilationSettings(),b(),r)),fp),R.delete(r))})}(n),null==n||n.getSourceFiles().forEach(e=>{var n;const t=(null==(n=e.packageJsonLocations)?void 0:n.length)??0,r=u.get(e.resolvedPath)??s;for(let o=r.length;o<t;o++)J(e.packageJsonLocations[o],!1);if(r.length>t)for(let o=t;o<r.length;o++)C.get(r[o]).files--;t?u.set(e.resolvedPath,e.packageJsonLocations):u.delete(e.resolvedPath)}),u.forEach((e,t)=>{const r=null==n?void 0:n.getSourceFileByPath(t);r&&r.resolvedPath===t||(e.forEach(e=>C.get(e).files--),u.delete(t))}));D.forEach(B),C.forEach(G),w.forEach(z),y=!1,E.isReadonly=!0,x.isReadonly=!0,I.isReadonly=!0,E.getPackageJsonInfoCache().isReadonly=!0,k.clear()},resolveModuleNameLiterals:function(n,r,o,i,a,s){return V({entries:n,containingFile:r,containingSourceFile:a,redirectedReference:o,options:i,reusedNames:s,perFileCache:S,loader:pK(r,o,i,e,E),getResolutionWithResolvedFileName:fp,shouldRetryResolution:e=>!e.resolvedModule||!tA(e.resolvedModule.extension),logChanges:t,deferWatchingNonRelativeResolution:!0})},resolveTypeReferenceDirectiveReferences:function(n,t,r,o,i,a){return V({entries:n,containingFile:t,containingSourceFile:i,redirectedReference:r,options:o,reusedNames:a,perFileCache:A,loader:MU(t,r,o,uK(e),x),getResolutionWithResolvedFileName:mp,shouldRetryResolution:e=>void 0===e.resolvedTypeReferenceDirective,deferWatchingNonRelativeResolution:!1})},resolveLibrary:function(n,t,r,o){const i=uK(e);let a=null==R?void 0:R.get(o);if(!a||a.isInvalidated){const s=a;a=UF(n,t,r,i,I);const l=e.toPath(t);H(n,a,l,fp,!1),R.set(o,a),s&&ee(s,l,fp)}else if(oF(r,i)){const e=fp(a);rF(i,(null==e?void 0:e.resolvedFileName)?e.packageId?fa.Reusing_resolution_of_module_0_from_1_of_old_program_it_was_successfully_resolved_to_2_with_Package_ID_3:fa.Reusing_resolution_of_module_0_from_1_of_old_program_it_was_successfully_resolved_to_2:fa.Reusing_resolution_of_module_0_from_1_of_old_program_it_was_not_resolved,n,t,null==e?void 0:e.resolvedFileName,(null==e?void 0:e.packageId)&&yp(e.packageId))}return a},resolveSingleModuleNameWithoutWatching:function(n,t){var r,o;const i=e.toPath(t),a=S.get(i),s=null==a?void 0:a.get(n,void 0);if(s&&!s.isInvalidated)return s;const l=null==(r=e.beforeResolveSingleModuleNameWithoutWatching)?void 0:r.call(e,E),c=uK(e),d=KF(n,t,e.getCompilationSettings(),c,E);return null==(o=e.afterResolveSingleModuleNameWithoutWatching)||o.call(e,E,n,t,d,l),d},removeResolutionsFromProjectReferenceRedirects:function(n){if(!xi(n,".json"))return;const t=e.getCurrentProgram();if(!t)return;const r=t.getResolvedProjectReferenceByPath(n);if(!r)return;r.commandLine.fileNames.forEach(n=>oe(e.toPath(n)))},removeResolutionsOfFile:oe,hasChangedAutomaticTypeDirectiveNames:()=>y,invalidateResolutionOfFile:function(n){oe(n);const t=y;ie(d.get(n),on)&&y&&!t&&e.onChangedAutomaticTypeDirectiveNames()},invalidateResolutionsOfFailedLookupLocations:le,setFilesWithInvalidatedNonRelativeUnresolvedImports:function(e){dt.assert(i===e||void 0===i),i=e},createHasInvalidatedResolutions:function(e,n){le();const t=o;return o=void 0,{hasInvalidatedResolutions:n=>e(n)||v||!!(null==t?void 0:t.has(n))||W(n),hasInvalidatedLibResolutions:e=>{var t;return n(e)||!!(null==(t=null==R?void 0:R.get(e))?void 0:t.isInvalidated)}}},isFileWithInvalidatedNonRelativeUnresolvedImports:W,updateTypeRootsWatch:function(){const n=e.getCompilationSettings();if(n.types)return void pe();const t=vF(n,{getCurrentDirectory:b});t?gT(F,new Set(t),{createNewValue:fe,onDeleteValue:aT}):pe()},closeTypeRootsWatch:pe,clear:function(){hT(D,qj),hT(C,qj),k.clear(),w.clear(),O.clear(),a.clear(),pe(),S.clear(),A.clear(),d.clear(),l.clear(),c.clear(),h=void 0,_=void 0,g=void 0,m=void 0,p=void 0,v=!1,E.clear(),x.clear(),E.update(e.getCompilationSettings()),x.update(e.getCompilationSettings()),I.clear(),u.clear(),R.clear(),y=!1},onChangesAffectModuleResolution:function(){v=!0,E.clearAllExceptPackageJsonInfoCache(),x.clearAllExceptPackageJsonInfoCache(),E.update(e.getCompilationSettings()),x.update(e.getCompilationSettings())}};function W(e){if(!i)return!1;const n=i.get(e);return!!n&&!!n.length}function z(e,n){0===e.dirPathToWatcher.size&&w.delete(n)}function B(e,n){0===e.refCount&&(D.delete(n),e.watcher.close())}function G(e,n){var t;0!==e.files||0!==e.resolutions||(null==(t=e.symlinks)?void 0:t.size)||(C.delete(n),e.watcher.close())}function V({entries:n,containingFile:t,containingSourceFile:o,redirectedReference:i,options:a,perFileCache:s,reusedNames:l,loader:c,getResolutionWithResolvedFileName:d,deferWatchingNonRelativeResolution:u,shouldRetryResolution:p,logChanges:f}){var m;const h=e.toPath(t),_=s.get(h)||s.set(h,OF()).get(h),g=[],y=f&&W(h),b=e.getCurrentProgram(),T=b&&(null==(m=b.getRedirectFromSourceFile(t))?void 0:m.resolvedRef),E=T?!i||i.sourceFile.path!==T.sourceFile.path:!!i,A=OF();for(const R of n){const n=c.nameAndMode.getName(R),l=c.nameAndMode.getMode(R,o,(null==i?void 0:i.commandLine.options)||a);let m=_.get(n,l);if(!A.has(n,l)&&(v||E||!m||m.isInvalidated||y&&!Ds(n)&&p(m))){const t=m;m=c.resolve(n,l),e.onDiscoveredSymlink&&mK(m)&&e.onDiscoveredSymlink(),_.set(n,l,m),m!==t&&(H(n,m,h,d,u),t&&ee(t,h,d)),f&&r&&!x(t,m)&&(r.push(h),f=!1)}else{const r=uK(e);if(oF(a,r)&&!A.has(n,l)){const e=d(m);rF(r,s===S?(null==e?void 0:e.resolvedFileName)?e.packageId?fa.Reusing_resolution_of_module_0_from_1_of_old_program_it_was_successfully_resolved_to_2_with_Package_ID_3:fa.Reusing_resolution_of_module_0_from_1_of_old_program_it_was_successfully_resolved_to_2:fa.Reusing_resolution_of_module_0_from_1_of_old_program_it_was_not_resolved:(null==e?void 0:e.resolvedFileName)?e.packageId?fa.Reusing_resolution_of_type_reference_directive_0_from_1_of_old_program_it_was_successfully_resolved_to_2_with_Package_ID_3:fa.Reusing_resolution_of_type_reference_directive_0_from_1_of_old_program_it_was_successfully_resolved_to_2:fa.Reusing_resolution_of_type_reference_directive_0_from_1_of_old_program_it_was_not_resolved,n,t,null==e?void 0:e.resolvedFileName,(null==e?void 0:e.packageId)&&yp(e.packageId))}}dt.assert(void 0!==m&&!m.isInvalidated),A.set(n,l,!0),g.push(m)}return null==l||l.forEach(e=>A.set(c.nameAndMode.getName(e),c.nameAndMode.getMode(e,o,(null==i?void 0:i.commandLine.options)||a),!0)),_.size()!==A.size()&&_.forEach((e,n,t)=>{A.has(n,t)||(ee(e,h,d),_.delete(n,t))}),g;function x(e,n){if(e===n)return!0;if(!e||!n)return!1;const t=d(e),r=d(n);return t===r||!(!t||!r)&&t.resolvedFileName===r.resolvedFileName}}function j(e){return Fn(e,"/node_modules/@types")}function H(n,t,r,o,i){if((t.files??(t.files=new Set)).add(r),1!==t.files.size)return;!i||Ds(n)?q(t):a.add(t);const s=o(t);if(s&&s.resolvedFileName){const n=e.toPath(s.resolvedFileName);let r=d.get(n);r||d.set(n,r=new Set),r.add(t)}}function K(n,t){const r=aK(n,e.toPath(n),N,M,P,L,b,e.preferNonRecursiveWatch);if(r){const{dir:e,dirPath:n,nonRecursive:o,packageDir:i,packageDirPath:a}=r;n===M?(dt.assert(o),dt.assert(!i),t=!0):$(e,n,i,a,o)}return t}function q(e){var n;dt.assert(!!(null==(n=e.files)?void 0:n.size));const{failedLookupLocations:t,affectingLocations:r,alternateResult:o}=e;if(!(null==t?void 0:t.length)&&!(null==r?void 0:r.length)&&!o)return;((null==t?void 0:t.length)||o)&&l.add(e);let i=!1;if(t)for(const a of t)i=K(a,i);o&&(i=K(o,i)),i&&$(N,M,void 0,void 0,!0),function(e,n){var t;dt.assert(!!(null==(t=e.files)?void 0:t.size));const{affectingLocations:r}=e;if(!(null==r?void 0:r.length))return;n&&c.add(e);for(const o of r)J(o,!0)}(e,!(null==t?void 0:t.length)&&!o)}function J(n,t){const r=C.get(n);if(r)return void(t?r.resolutions++:r.files++);let o,i=n,a=!1;e.realpath&&(i=e.realpath(n),n!==i&&(a=!0,o=C.get(i)));const s=t?1:0,l=t?0:1;if(!a||!o){const n={watcher:iK(e.toPath(i))?e.watchAffectingFileLocation(i,(n,t)=>{null==T||T.addOrDeleteFile(n,e.toPath(i),t),X(i,E.getPackageJsonInfoCache().getInternalMap()),e.scheduleInvalidateResolutionsOfFailedLookupLocations()}):OK,resolutions:a?0:s,files:a?0:l,symlinks:void 0};C.set(i,n),a&&(o=n)}if(a){dt.assert(!!o);const e={watcher:{close:()=>{var e;const t=C.get(i);!(null==(e=null==t?void 0:t.symlinks)?void 0:e.delete(n))||t.symlinks.size||t.resolutions||t.files||(C.delete(i),t.watcher.close())}},resolutions:s,files:l,symlinks:void 0};C.set(n,e),(o.symlinks??(o.symlinks=new Set)).add(n)}}function X(n,t){var r;const o=C.get(n);(null==o?void 0:o.resolutions)&&(m??(m=new Set)).add(n),(null==o?void 0:o.files)&&(p??(p=new Set)).add(n),null==(r=null==o?void 0:o.symlinks)||r.forEach(e=>X(e,t)),null==t||t.delete(e.toPath(n))}function Y(){a.forEach(q),a.clear()}function $(n,t,r,o,i){o&&e.realpath?function(n,t,r,o,i){dt.assert(!i);let a=k.get(o),s=w.get(o);if(void 0===a){const n=e.realpath(r);a=n!==r&&e.toPath(n)!==o,k.set(o,a),s?s.isSymlink!==a&&(s.dirPathToWatcher.forEach(e=>{ne(s.isSymlink?o:t),e.watcher=c()}),s.isSymlink=a):w.set(o,s={dirPathToWatcher:new Map,isSymlink:a})}else dt.assertIsDefined(s),dt.assert(a===s.isSymlink);const l=s.dirPathToWatcher.get(t);function c(){return a?Q(r,o,i):Q(n,t,i)}l?l.refCount++:(s.dirPathToWatcher.set(t,{watcher:c(),refCount:1}),a&&O.set(t,(O.get(t)??0)+1))}(n,t,r,o,i):Q(n,t,i)}function Q(e,n,t){let r=D.get(n);return r?(dt.assert(!!t==!!r.nonRecursive),r.refCount++):D.set(n,r={watcher:te(e,n,t),refCount:1,nonRecursive:t}),r}function Z(n,t){const r=aK(n,e.toPath(n),N,M,P,L,b,e.preferNonRecursiveWatch);if(r){const{dirPath:n,packageDirPath:o}=r;if(n===M)t=!0;else if(o&&e.realpath){const e=w.get(o),t=e.dirPathToWatcher.get(n);if(t.refCount--,0===t.refCount&&(ne(e.isSymlink?o:n),e.dirPathToWatcher.delete(n),e.isSymlink)){const e=O.get(n)-1;0===e?O.delete(n):O.set(n,e)}}else ne(n)}return t}function ee(n,t,r){if(dt.checkDefined(n.files).delete(t),n.files.size)return;n.files=void 0;const o=r(n);if(o&&o.resolvedFileName){const t=e.toPath(o.resolvedFileName),r=d.get(t);(null==r?void 0:r.delete(n))&&!r.size&&d.delete(t)}const{failedLookupLocations:i,affectingLocations:a,alternateResult:s}=n;if(l.delete(n)){let e=!1;if(i)for(const n of i)e=Z(n,e);s&&(e=Z(s,e)),e&&ne(M)}else(null==a?void 0:a.length)&&c.delete(n);if(a)for(const e of a){C.get(e).resolutions--}}function ne(e){D.get(e).refCount--}function te(n,t,r){return e.watchDirectoryOfFailedLookupLocation(n,n=>{const r=e.toPath(n);T&&T.addOrDeleteFileOrDirectory(n,r),ae(r,t===r)},r?0:1)}function re(e,n,t){const r=e.get(n);r&&(r.forEach(e=>ee(e,n,t)),e.delete(n))}function oe(e){re(S,e,fp),re(A,e,mp)}function ie(e,n){if(!e)return!1;let t=!1;return e.forEach(e=>{if(!e.isInvalidated&&n(e)){e.isInvalidated=t=!0;for(const n of dt.checkDefined(e.files))(o??(o=new Set)).add(n),y=y||Fn(n,LU)}}),t}function ae(n,t){if(t)(g||(g=new Set)).add(n);else{const t=QH(n);if(!t)return!1;if(n=t,e.fileIsOpen(n))return!1;const r=Mi(n);if(j(n)||ua(n)||j(r)||ua(r))(h||(h=new Set)).add(n),(_||(_=new Set)).add(n);else{if(jj(e.getCurrentProgram(),n))return!1;if(xi(n,".map"))return!1;(h||(h=new Set)).add(n),(_||(_=new Set)).add(n);const t=aW(n,!0);t&&(_||(_=new Set)).add(t)}}e.scheduleInvalidateResolutionsOfFailedLookupLocations()}function se(){const e=E.getPackageJsonInfoCache().getInternalMap();e&&(h||_||g)&&e.forEach((n,t)=>de(t)?e.delete(t):void 0)}function le(){var n;if(v)return p=void 0,se(),(h||_||g||m)&&ie(R,ce),h=void 0,_=void 0,g=void 0,m=void 0,!0;let t=!1;return p&&(null==(n=e.getCurrentProgram())||n.getSourceFiles().forEach(e=>{U(e.packageJsonLocations,e=>p.has(e))&&((o??(o=new Set)).add(e.path),t=!0)}),p=void 0),h||_||g||m?(t=ie(l,ce)||t,se(),h=void 0,_=void 0,g=void 0,t=ie(c,ue)||t,m=void 0,t):t}function ce(n){var t;return!!ue(n)||!!(h||_||g)&&((null==(t=n.failedLookupLocations)?void 0:t.some(n=>de(e.toPath(n))))||!!n.alternateResult&&de(e.toPath(n.alternateResult)))}function de(e){return(null==h?void 0:h.has(e))||f((null==_?void 0:_.keys())||[],n=>!!Xn(e,n)||void 0)||f((null==g?void 0:g.keys())||[],n=>!(!(e.length>n.length&&Xn(e,n))||!vi(n)&&e[n.length]!==pi)||void 0)}function ue(e){var n;return!!m&&(null==(n=e.affectingLocations)?void 0:n.some(e=>m.has(e)))}function pe(){hT(F,aT)}function fe(n){return function(n){return!!e.getCompilationSettings().typeRoots||tK(e.toPath(n))}(n)?e.watchTypeRootsDirectory(n,t=>{const r=e.toPath(t);T&&T.addOrDeleteFileOrDirectory(t,r),y=!0,e.onChangedAutomaticTypeDirectiveNames();const o=cK(n,e.toPath(n),M,P,L,b,e.preferNonRecursiveWatch,e=>D.has(e)||O.has(e));o&&ae(r,o===r)},1):OK}}function mK(e){var n,t;return!(!(null==(n=e.resolvedModule)?void 0:n.originalPath)&&!(null==(t=e.resolvedTypeReferenceDirective)?void 0:t.originalPath))}var hK=di?{getCurrentDirectory:()=>di.getCurrentDirectory(),getNewLine:()=>di.newLine,getCanonicalFileName:Hn(di.useCaseSensitiveFileNames)}:void 0;function _K(e,n){const t=e===di&&hK?hK:{getCurrentDirectory:()=>e.getCurrentDirectory(),getNewLine:()=>e.newLine,getCanonicalFileName:Hn(e.useCaseSensitiveFileNames)};if(!n)return n=>e.write(oU(n,t));const r=new Array(1);return n=>{r[0]=n,e.write(_U(r,t)+t.getNewLine()),r[0]=void 0}}function gK(e,n,t){return!(!e.clearScreen||t.preserveWatchOutput||t.extendedDiagnostics||t.diagnostics||!S(yK,n.code))&&(e.clearScreen(),!0)}var yK=[fa.Starting_compilation_in_watch_mode.code,fa.File_change_detected_Starting_incremental_compilation.code];function vK(e){return e.now?e.now().toLocaleTimeString("en-US",{timeZone:"UTC"}).replace(" "," "):(new Date).toLocaleTimeString()}function bK(e,n){return n?(n,t,r)=>{gK(e,n,r);let o=`[${fU(vK(e),"[90m")}] `;o+=`${gU(n.messageText,e.newLine)}${t+t}`,e.write(o)}:(n,t,r)=>{let o="";gK(e,n,r)||(o+=t),o+=`${vK(e)} - `,o+=`${gU(n.messageText,e.newLine)}${function(e,n){return S(yK,e.code)?n+n:n}(n,t)}`,e.write(o)}}function TK(e,n,t,r,o,i){const a=o;a.onUnRecoverableConfigFileDiagnostic=e=>KK(o,i,e);const s=Ew(e,n,a,t,r);return a.onUnRecoverableConfigFileDiagnostic=void 0,s}function SK(e){return A(e,e=>1===e.category)}function EK(e){return x(e,e=>1===e.category).map(e=>{if(void 0!==e.file)return`${e.file.fileName}`}).map(n=>{if(void 0===n)return;const t=y(e,e=>void 0!==e.file&&e.file.fileName===n);if(void 0!==t){const{line:e}=Ua(t.file,t.start);return{fileName:n,line:e+1}}})}function AK(e){return 1===e?fa.Found_1_error_Watching_for_file_changes:fa.Found_0_errors_Watching_for_file_changes}function xK(e,n){const t=fU(":"+e.line,"[90m");return Ti(e.fileName)&&Ti(n)?aa(n,e.fileName,!1)+t:e.fileName+t}function RK(e,n,t,r){if(0===e)return"";const o=n.filter(e=>void 0!==e),i=o.map(e=>`${e.fileName}:${e.line}`).filter((e,n,t)=>t.indexOf(e)===n),a=o[0]&&xK(o[0],r.getCurrentDirectory());let s;s=1===e?void 0!==n[0]?[fa.Found_1_error_in_0,a]:[fa.Found_1_error]:0===i.length?[fa.Found_0_errors,e]:1===i.length?[fa.Found_0_errors_in_the_same_file_starting_at_Colon_1,e,a]:[fa.Found_0_errors_in_1_files,e,i.length];const l=nS(...s),c=i.length>1?function(e,n){const t=e.filter((e,n,t)=>n===t.findIndex(n=>(null==n?void 0:n.fileName)===(null==e?void 0:e.fileName)));if(0===t.length)return"";const r=e=>Math.log(e)*Math.LOG10E+1,o=t.map(n=>[n,A(e,e=>e.fileName===n.fileName)]),i=Tn(o,0,e=>e[1]),a=fa.Errors_Files.message,s=a.split(" ")[0].length,l=Math.max(s,r(i)),c=Math.max(r(i)-s,0);let d="";return d+=" ".repeat(c)+a+"\n",o.forEach(e=>{const[t,r]=e,o=Math.log(r)*Math.LOG10E+1|0,i=o<l?" ".repeat(l-o):"",a=xK(t,n.getCurrentDirectory());d+=`${i}${r} ${a}\n`}),d}(o,r):"";return`${t}${gU(l.messageText,t)}${t}${t}${c}`}function IK(e){return!!e.state}function DK(e,n){var t,r;const o=e.getFileIncludeReasons(),i=n=>sa(n,e.getCurrentDirectory(),e.getCanonicalFileName);for(const a of e.getSourceFiles())n(`${LK(a,i)}`),null==(t=o.get(a.path))||t.forEach(t=>n(` ${PK(e,t,i).messageText}`)),null==(r=CK(a,e.getCompilerOptionsForFile(a),i))||r.forEach(e=>n(` ${e.messageText}`))}function CK(e,n,t){var r;let o;if(e.path!==e.resolvedPath&&(o??(o=[])).push(rS(void 0,fa.File_is_output_of_project_reference_source_0,LK(e.originalFileName,t))),e.redirectInfo&&(o??(o=[])).push(rS(void 0,fa.File_redirects_to_file_0,LK(e.redirectInfo.redirectTarget,t))),rm(e))switch(qU(e,n)){case 99:e.packageJsonScope&&(o??(o=[])).push(rS(void 0,fa.File_is_ECMAScript_module_because_0_has_field_type_with_value_module,LK(ye(e.packageJsonLocations),t)));break;case 1:e.packageJsonScope?(o??(o=[])).push(rS(void 0,e.packageJsonScope.contents.packageJsonContent.type?fa.File_is_CommonJS_module_because_0_has_field_type_whose_value_is_not_module:fa.File_is_CommonJS_module_because_0_does_not_have_field_type,LK(ye(e.packageJsonLocations),t))):(null==(r=e.packageJsonLocations)?void 0:r.length)&&(o??(o=[])).push(rS(void 0,fa.File_is_CommonJS_module_because_package_json_was_not_found))}return o}function NK(e,n){var t;const r=e.getCompilerOptions().configFile;if(!(null==(t=null==r?void 0:r.configFileSpecs)?void 0:t.validatedFilesSpec))return;const o=e.getCanonicalFileName(n),i=Mi(Vi(r.fileName,e.getCurrentDirectory())),a=b(r.configFileSpecs.validatedFilesSpec,n=>e.getCanonicalFileName(Vi(n,i))===o);return-1!==a?r.configFileSpecs.validatedFilesSpecBeforeSubstitution[a]:void 0}function MK(e,n){var t,r;const o=e.getCompilerOptions().configFile;if(!(null==(t=null==o?void 0:o.configFileSpecs)?void 0:t.validatedIncludeSpecs))return;if(o.configFileSpecs.isDefaultIncludeSpec)return!0;const i=xi(n,".json"),a=Mi(Vi(o.fileName,e.getCurrentDirectory())),s=e.useCaseSensitiveFileNames(),l=b(null==(r=null==o?void 0:o.configFileSpecs)?void 0:r.validatedIncludeSpecs,e=>{if(i&&!Fn(e,".json"))return!1;const t=_E(e,a,"files");return!!t&&bE(`(?:${t})$`,s).test(n)});return-1!==l?o.configFileSpecs.validatedIncludeSpecsBeforeSubstitution[l]:void 0}function PK(e,n,t){var r,o;const i=e.getCompilerOptions();if(OU(n)){const r=WU(e,n),o=FU(r)?r.file.text.substring(r.pos,r.end):`"${r.text}"`;let i;switch(dt.assert(FU(r)||3===n.kind,"Only synthetic references are imports"),n.kind){case 3:i=FU(r)?r.packageId?fa.Imported_via_0_from_file_1_with_packageId_2:fa.Imported_via_0_from_file_1:r.text===Ku?r.packageId?fa.Imported_via_0_from_file_1_with_packageId_2_to_import_importHelpers_as_specified_in_compilerOptions:fa.Imported_via_0_from_file_1_to_import_importHelpers_as_specified_in_compilerOptions:r.packageId?fa.Imported_via_0_from_file_1_with_packageId_2_to_import_jsx_and_jsxs_factory_functions:fa.Imported_via_0_from_file_1_to_import_jsx_and_jsxs_factory_functions;break;case 4:dt.assert(!r.packageId),i=fa.Referenced_via_0_from_file_1;break;case 5:i=r.packageId?fa.Type_library_referenced_via_0_from_file_1_with_packageId_2:fa.Type_library_referenced_via_0_from_file_1;break;case 7:dt.assert(!r.packageId),i=fa.Library_referenced_via_0_from_file_1;break;default:dt.assertNever(n)}return rS(void 0,i,o,LK(r.file,t),r.packageId&&yp(r.packageId))}switch(n.kind){case 0:if(!(null==(r=i.configFile)?void 0:r.configFileSpecs))return rS(void 0,fa.Root_file_specified_for_compilation);const a=Vi(e.getRootFileNames()[n.index],e.getCurrentDirectory());if(NK(e,a))return rS(void 0,fa.Part_of_files_list_in_tsconfig_json);const s=MK(e,a);return Qe(s)?rS(void 0,fa.Matched_by_include_pattern_0_in_1,s,LK(i.configFile,t)):rS(void 0,s?fa.Matched_by_default_include_pattern_Asterisk_Asterisk_Slash_Asterisk:fa.Root_file_specified_for_compilation);case 1:case 2:const l=2===n.kind,c=dt.checkDefined(null==(o=e.getResolvedProjectReferences())?void 0:o[n.index]);return rS(void 0,i.outFile?l?fa.Output_from_referenced_project_0_included_because_1_specified:fa.Source_from_referenced_project_0_included_because_1_specified:l?fa.Output_from_referenced_project_0_included_because_module_is_specified_as_none:fa.Source_from_referenced_project_0_included_because_module_is_specified_as_none,LK(c.sourceFile.fileName,t),i.outFile?"--outFile":"--out");case 8:return rS(void 0,...i.types?n.packageId?[fa.Entry_point_of_type_library_0_specified_in_compilerOptions_with_packageId_1,n.typeReference,yp(n.packageId)]:[fa.Entry_point_of_type_library_0_specified_in_compilerOptions,n.typeReference]:n.packageId?[fa.Entry_point_for_implicit_type_library_0_with_packageId_1,n.typeReference,yp(n.packageId)]:[fa.Entry_point_for_implicit_type_library_0,n.typeReference]);case 6:{if(void 0!==n.index)return rS(void 0,fa.Library_0_specified_in_compilerOptions,i.lib[n.index]);const e=HS(SS(i));return rS(void 0,...e?[fa.Default_library_for_target_0,e]:[fa.Default_library])}default:dt.assertNever(n)}}function LK(e,n){const t=Qe(e)?e:e.fileName;return n?n(t):t}function kK(e,n,t,r,o,i,a,l){const c=e.getCompilerOptions(),u=e.getConfigFileParsingDiagnostics().slice(),p=u.length;ae(u,e.getSyntacticDiagnostics(void 0,i)),u.length===p&&(ae(u,e.getOptionsDiagnostics(i)),c.listFilesOnly||(ae(u,e.getGlobalDiagnostics(i)),u.length===p&&ae(u,e.getSemanticDiagnostics(void 0,i)),c.noEmit&&PS(c)&&u.length===p&&ae(u,e.getDeclarationDiagnostics(void 0,i))));const f=c.listFilesOnly?{emitSkipped:!0,diagnostics:s}:e.emit(void 0,o,i,a,l);ae(u,f.diagnostics);const m=Cs(u);if(m.forEach(n),t){const n=e.getCurrentDirectory();d(f.emittedFiles,e=>{const r=Vi(e,n);t(`TSFILE: ${r}`)}),function(e,n){const t=e.getCompilerOptions();t.explainFiles?DK(IK(e)?e.getProgram():e,n):(t.listFiles||t.listFilesOnly)&&d(e.getSourceFiles(),e=>{n(e.fileName)})}(e,t)}return r&&r(SK(m),EK(m)),{emitResult:f,diagnostics:m}}function wK(e,n,t,r,o,i,a,s){const{emitResult:l,diagnostics:c}=kK(e,n,t,r,o,i,a,s);return l.emitSkipped&&c.length>0?1:c.length>0?2:0}var OK={close:tn},FK=()=>OK;function WK(e=di,n){return{onWatchStatusChange:n||bK(e),watchFile:Ue(e,e.watchFile)||FK,watchDirectory:Ue(e,e.watchDirectory)||FK,setTimeout:Ue(e,e.setTimeout)||tn,clearTimeout:Ue(e,e.clearTimeout)||tn,preferNonRecursiveWatch:e.preferNonRecursiveWatch}}var zK={ConfigFile:"Config file",ExtendedConfigFile:"Extended config file",SourceFile:"Source file",MissingFile:"Missing file",WildcardDirectory:"Wild card directory",FailedLookupLocations:"Failed Lookup Locations",AffectingFileLocation:"File location affecting resolution",TypeRoots:"Type roots",ConfigFileOfReferencedProject:"Config file of referened project",ExtendedConfigOfReferencedProject:"Extended config file of referenced project",WildcardDirectoryOfReferencedProject:"Wild card directory of referenced project",PackageJson:"package.json file",ClosedScriptInfo:"Closed Script info",ConfigFileForInferredRoot:"Config file for the inferred project root",NodeModules:"node_modules for closed script infos and package.jsons affecting module specifier cache",MissingSourceMapFile:"Missing source map file",NoopConfigFileForInferredRoot:"Noop Config file for the inferred project root",MissingGeneratedFile:"Missing generated file",NodeModulesForModuleSpecifierCache:"node_modules for module specifier cache invalidation",TypingInstallerLocationFile:"File location for typing installer",TypingInstallerLocationDirectory:"Directory location for typing installer"};function BK(e,n){const t=e.trace?n.extendedDiagnostics?2:n.diagnostics?1:0:0,r=0!==t?n=>e.trace(n):tn,o=Hj(e,t,r);return o.writeLog=r,o}function GK(e,n,t=e){const r=e.useCaseSensitiveFileNames(),o={getSourceFile:Qj((n,t)=>t?e.readFile(n,t):o.readFile(n),void 0),getDefaultLibLocation:Ue(e,e.getDefaultLibLocation),getDefaultLibFileName:n=>e.getDefaultLibFileName(n),writeFile:Zj((n,t,r)=>e.writeFile(n,t,r),n=>e.createDirectory(n),n=>e.directoryExists(n)),getCurrentDirectory:pn(()=>e.getCurrentDirectory()),useCaseSensitiveFileNames:()=>r,getCanonicalFileName:Hn(r),getNewLine:()=>wb(n()),fileExists:n=>e.fileExists(n),readFile:n=>e.readFile(n),trace:Ue(e,e.trace),directoryExists:Ue(t,t.directoryExists),getDirectories:Ue(t,t.getDirectories),realpath:Ue(e,e.realpath),getEnvironmentVariable:Ue(e,e.getEnvironmentVariable)||(()=>""),createHash:Ue(e,e.createHash),readDirectory:Ue(e,e.readDirectory),storeSignatureInfo:e.storeSignatureInfo,jsDocParsingMode:e.jsDocParsingMode};return o}function VK(e,n){if(n.match(LB)){let e=n.length,t=e;for(let r=e-1;r>=0;r--){const o=n.charCodeAt(r);switch(o){case 10:r&&13===n.charCodeAt(r-1)&&r--;case 13:break;default:if(o<127||!qa(o)){t=r;continue}}const i=n.substring(t,e);if(i.match(kB)){n=n.substring(0,t);break}if(!i.match(wB))break;e=t}}return(e.createHash||Fo)(n)}function jK(e){const n=e.getSourceFile;e.getSourceFile=(...t)=>{const r=n.call(e,...t);return r&&(r.version=VK(e,r.text)),r}}function UK(e,n){const t=pn(()=>Mi(ji(e.getExecutingFilePath())));return{useCaseSensitiveFileNames:()=>e.useCaseSensitiveFileNames,getNewLine:()=>e.newLine,getCurrentDirectory:pn(()=>e.getCurrentDirectory()),getDefaultLibLocation:t,getDefaultLibFileName:e=>zi(t(),Ms(e)),fileExists:n=>e.fileExists(n),readFile:(n,t)=>e.readFile(n,t),directoryExists:n=>e.directoryExists(n),getDirectories:n=>e.getDirectories(n),readDirectory:(n,t,r,o,i)=>e.readDirectory(n,t,r,o,i),realpath:Ue(e,e.realpath),getEnvironmentVariable:Ue(e,e.getEnvironmentVariable),trace:n=>e.write(n+e.newLine),createDirectory:n=>e.createDirectory(n),writeFile:(n,t,r)=>e.writeFile(n,t,r),createHash:Ue(e,e.createHash),createProgram:n||YH,storeSignatureInfo:e.storeSignatureInfo,now:Ue(e,e.now)}}function HK(e=di,n,t,r){const o=n=>e.write(n+e.newLine),i=UK(e,n);return je(i,WK(e,r)),i.afterProgramCreate=e=>{const n=e.getCompilerOptions(),r=wb(n);kK(e,t,o,e=>i.onWatchStatusChange(nS(AK(e),e),r,n,e))},i}function KK(e,n,t){n(t),e.exit(1)}function qK({configFileName:e,optionsToExtend:n,watchOptionsToExtend:t,extraFileExtensions:r,system:o,createProgram:i,reportDiagnostic:a,reportWatchStatus:s}){const l=a||_K(o),c=HK(o,i,l,s);return c.onUnRecoverableConfigFileDiagnostic=e=>KK(o,l,e),c.configFileName=e,c.optionsToExtend=n,c.watchOptionsToExtend=t,c.extraFileExtensions=r,c}function JK({rootFiles:e,options:n,watchOptions:t,projectReferences:r,system:o,createProgram:i,reportDiagnostic:a,reportWatchStatus:s}){const l=HK(o,i,a||_K(o),s);return l.rootFiles=e,l.options=n,l.watchOptions=t,l.projectReferences=r,l}function XK(e){const n=e.system||di,t=e.host||(e.host=$K(e.options,n)),r=QK(e),o=wK(r,e.reportDiagnostic||_K(n),e=>t.trace&&t.trace(e),e.reportErrorSummary||e.options.pretty?(e,r)=>n.write(RK(e,r,n.newLine,t)):void 0);return e.afterProgramEmitAndDiagnostics&&e.afterProgramEmitAndDiagnostics(r),o}function YK(e,n){const t=oj(e);if(!t)return;let r;if(n.getBuildInfo)r=n.getBuildInfo(t,e.configFilePath);else{const e=n.readFile(t);if(!e)return;r=xj(t,e)}return r&&r.version===i&&PH(r)?HH(r,t,n):void 0}function $K(e,n=di){const t=eU(e,void 0,n);return t.createHash=Ue(n,n.createHash),t.storeSignatureInfo=n.storeSignatureInfo,jK(t),nU(t,e=>Ki(e,t.getCurrentDirectory(),t.getCanonicalFileName)),t}function QK({rootNames:e,options:n,configFileParsingDiagnostics:t,projectReferences:r,host:o,createProgram:i}){return(i=i||YH)(e,n,o=o||$K(n),YK(n,o),t,r)}function ZK(e,n,t,r,o,i,a,s){return Ye(e)?JK({rootFiles:e,options:n,watchOptions:s,projectReferences:a,system:t,createProgram:r,reportDiagnostic:o,reportWatchStatus:i}):qK({configFileName:e,optionsToExtend:n,watchOptionsToExtend:a,extraFileExtensions:s,system:t,createProgram:r,reportDiagnostic:o,reportWatchStatus:i})}function eq(e){let n,t,r,o,i,a,s,l,c=new Map([[void 0,void 0]]),d=e.extendedConfigCache,u=!1;const p=new Map;let f,m=!1;const h=e.useCaseSensitiveFileNames(),_=e.getCurrentDirectory(),{configFileName:g,optionsToExtend:y={},watchOptionsToExtend:v,extraFileExtensions:b,createProgram:T}=e;let S,E,{rootFiles:A,options:x,watchOptions:R,projectReferences:I}=e,D=!1,C=!1;const N=void 0===g?void 0:wj(e,_,h),M=N||e,P=QU(e,M);let L=X();g&&e.configFileParsingResult&&(le(e.configFileParsingResult),L=X()),ee(fa.Starting_compilation_in_watch_mode),g&&!e.configFileParsingResult&&(L=wb(y),dt.assert(!A),se(),L=X()),dt.assert(x),dt.assert(A);const{watchFile:k,watchDirectory:w,writeLog:O}=BK(e,x),F=Hn(h);let W;O(`Current directory: ${_} CaseSensitiveFileNames: ${h}`),g&&(W=k(g,function(){dt.assert(!!g),t=2,oe()},2e3,R,zK.ConfigFile));const z=GK(e,()=>x,M);jK(z);const B=z.getSourceFile;z.getSourceFile=(e,...n)=>Q(e,Y(e),...n),z.getSourceFileByPath=Q,z.getNewLine=()=>L,z.fileExists=function(e){const n=Y(e);if($(p.get(n)))return!1;return M.fileExists(e)},z.onReleaseOldSourceFile=function(e,n,t){const r=p.get(e.resolvedPath);void 0!==r&&($(r)?(f||(f=[])).push(e.path):r.sourceFile===e&&(r.fileWatcher&&r.fileWatcher.close(),p.delete(e.resolvedPath),t||G.removeResolutionsOfFile(e.path)))},z.onReleaseParsedCommandLine=function(e){var n;const t=Y(e),r=null==s?void 0:s.get(t);if(!r)return;s.delete(t),r.watchedDirectories&&hT(r.watchedDirectories,qj);null==(n=r.watcher)||n.close(),Wj(t,l)},z.toPath=Y,z.getCompilationSettings=()=>x,z.useSourceOfProjectReferenceRedirect=Ue(e,e.useSourceOfProjectReferenceRedirect),z.preferNonRecursiveWatch=e.preferNonRecursiveWatch,z.watchDirectoryOfFailedLookupLocation=(e,n,t)=>w(e,n,t,R,zK.FailedLookupLocations),z.watchAffectingFileLocation=(e,n)=>k(e,n,2e3,R,zK.AffectingFileLocation),z.watchTypeRootsDirectory=(e,n,t)=>w(e,n,t,R,zK.TypeRoots),z.getCachedDirectoryStructureHost=()=>N,z.scheduleInvalidateResolutionsOfFailedLookupLocations=function(){if(!e.setTimeout||!e.clearTimeout)return G.invalidateResolutionsOfFailedLookupLocations();const n=te();O("Scheduling invalidateFailedLookup"+(n?", Cancelled earlier one":"")),a=e.setTimeout(re,250,"timerToInvalidateFailedLookupResolutions")},z.onInvalidatedResolution=oe,z.onChangedAutomaticTypeDirectiveNames=oe,z.fileIsOpen=rn,z.getCurrentProgram=q,z.writeLog=O,z.getParsedCommandLine=ce;const G=fK(z,g?Mi(Vi(g,_)):_,!1);z.resolveModuleNameLiterals=Ue(e,e.resolveModuleNameLiterals),z.resolveModuleNames=Ue(e,e.resolveModuleNames),z.resolveModuleNameLiterals||z.resolveModuleNames||(z.resolveModuleNameLiterals=G.resolveModuleNameLiterals.bind(G)),z.resolveTypeReferenceDirectiveReferences=Ue(e,e.resolveTypeReferenceDirectiveReferences),z.resolveTypeReferenceDirectives=Ue(e,e.resolveTypeReferenceDirectives),z.resolveTypeReferenceDirectiveReferences||z.resolveTypeReferenceDirectives||(z.resolveTypeReferenceDirectiveReferences=G.resolveTypeReferenceDirectiveReferences.bind(G)),z.resolveLibrary=e.resolveLibrary?e.resolveLibrary.bind(e):G.resolveLibrary.bind(G),z.getModuleResolutionCache=e.resolveModuleNameLiterals||e.resolveModuleNames?Ue(e,e.getModuleResolutionCache):()=>G.getModuleResolutionCache();const V=!!(e.resolveModuleNameLiterals||e.resolveTypeReferenceDirectiveReferences||e.resolveModuleNames||e.resolveTypeReferenceDirectives)?Ue(e,e.hasInvalidatedResolutions)||on:rn,j=e.resolveLibrary?Ue(e,e.hasInvalidatedLibResolutions)||on:rn;return n=YK(x,z),J(),g?{getCurrentProgram:K,getProgram:ae,close:U,getResolutionCache:H}:{getCurrentProgram:K,getProgram:ae,updateRootFileNames:function(e){dt.assert(!g,"Cannot update root file names with config file watch mode"),A=e,oe()},close:U,getResolutionCache:H};function U(){te(),G.clear(),hT(p,e=>{e&&e.fileWatcher&&(e.fileWatcher.close(),e.fileWatcher=void 0)}),W&&(W.close(),W=void 0),null==d||d.clear(),d=void 0,l&&(hT(l,qj),l=void 0),o&&(hT(o,qj),o=void 0),r&&(hT(r,aT),r=void 0),s&&(hT(s,e=>{var n;null==(n=e.watcher)||n.close(),e.watcher=void 0,e.watchedDirectories&&hT(e.watchedDirectories,qj),e.watchedDirectories=void 0}),s=void 0),n=void 0}function H(){return G}function K(){return n}function q(){return n&&n.getProgramOrUndefined()}function J(){O("Synchronizing program"),dt.assert(x),dt.assert(A),te();const t=K();m&&(L=X(),t&&tp(t.getCompilerOptions(),x)&&G.onChangesAffectModuleResolution());const{hasInvalidatedResolutions:i,hasInvalidatedLibResolutions:a}=G.createHasInvalidatedResolutions(V,j),{originalReadFile:l,originalFileExists:d,originalDirectoryExists:y,originalCreateDirectory:v,originalWriteFile:b,readFileWithCache:D}=nU(z,Y);return zU(q(),A,x,e=>function(e,n){const t=p.get(e);if(!t)return;if(t.version)return t.version;const r=n(e);return void 0!==r?VK(z,r):void 0}(e,D),e=>z.fileExists(e),i,a,ne,ce,I)?C&&(u&&ee(fa.File_change_detected_Starting_incremental_compilation),n=T(void 0,void 0,z,n,E,I),C=!1):(u&&ee(fa.File_change_detected_Starting_incremental_compilation),function(e,t){O("CreatingProgramWith::"),O(` roots: ${JSON.stringify(A)}`),O(` options: ${JSON.stringify(x)}`),I&&O(` projectReferences: ${JSON.stringify(I)}`);const o=m||!q();m=!1,C=!1,G.startCachingPerDirectoryResolution(),z.hasInvalidatedResolutions=e,z.hasInvalidatedLibResolutions=t,z.hasChangedAutomaticTypeDirectiveNames=ne;const i=q();n=T(A,x,z,n,E,I),G.finishCachingPerDirectoryResolution(n.getProgram(),i),Bj(n.getProgram(),r||(r=new Map),fe),o&&G.updateTypeRootsWatch();if(f){for(const e of f)r.has(e)||p.delete(e);f=void 0}}(i,a)),u=!1,e.afterProgramCreate&&t!==n&&e.afterProgramCreate(n),z.readFile=l,z.fileExists=d,z.directoryExists=y,z.createDirectory=v,z.writeFile=b,null==c||c.forEach((e,n)=>{if(n){const t=null==s?void 0:s.get(n);t&&function(e,n,t){var r,o,i,a;t.watcher||(t.watcher=k(e,(t,r)=>{pe(e,n,r);const o=null==s?void 0:s.get(n);o&&(o.updateLevel=2),G.removeResolutionsFromProjectReferenceRedirects(n),oe()},2e3,(null==(r=t.parsedCommandLine)?void 0:r.watchOptions)||R,zK.ConfigFileOfReferencedProject)),Gj(t.watchedDirectories||(t.watchedDirectories=new Map),null==(o=t.parsedCommandLine)?void 0:o.wildcardDirectories,(r,o)=>{var i;return w(r,t=>{const o=Y(t);N&&N.addOrDeleteFileOrDirectory(t,o),Z(o);const i=null==s?void 0:s.get(n);(null==i?void 0:i.parsedCommandLine)&&(Vj({watchedDirPath:Y(r),fileOrDirectory:t,fileOrDirectoryPath:o,configFileName:e,options:i.parsedCommandLine.options,program:i.parsedCommandLine.fileNames,currentDirectory:_,useCaseSensitiveFileNames:h,writeLog:O,toPath:Y})||2!==i.updateLevel&&(i.updateLevel=1,oe()))},o,(null==(i=t.parsedCommandLine)?void 0:i.watchOptions)||R,zK.WildcardDirectoryOfReferencedProject)}),_e(n,null==(i=t.parsedCommandLine)?void 0:i.options,(null==(a=t.parsedCommandLine)?void 0:a.watchOptions)||R,zK.ExtendedConfigOfReferencedProject)}(e,n,t)}else Gj(o||(o=new Map),S,he),g&&_e(Y(g),x,R,zK.ExtendedConfigFile)}),c=void 0,n}function X(){return wb(x||y)}function Y(e){return Ki(e,_,F)}function $(e){return"boolean"==typeof e}function Q(e,n,t,r,o){const i=p.get(n);if($(i))return;const a="object"==typeof t?t.impliedNodeFormat:void 0;if(void 0===i||o||function(e){return"boolean"==typeof e.version}(i)||i.sourceFile.impliedNodeFormat!==a){const o=B(e,t,r);if(i)o?(i.sourceFile=o,i.version=o.version,i.fileWatcher||(i.fileWatcher=de(n,e,ue,250,R,zK.SourceFile))):(i.fileWatcher&&i.fileWatcher.close(),p.set(n,!1));else if(o){const t=de(n,e,ue,250,R,zK.SourceFile);p.set(n,{sourceFile:o,version:o.version,fileWatcher:t})}else p.set(n,!1);return o}return i.sourceFile}function Z(e){const n=p.get(e);void 0!==n&&($(n)?p.set(e,{version:!1}):n.version=!1)}function ee(n){e.onWatchStatusChange&&e.onWatchStatusChange(nS(n),L,x||y)}function ne(){return G.hasChangedAutomaticTypeDirectiveNames()}function te(){return!!a&&(e.clearTimeout(a),a=void 0,!0)}function re(){a=void 0,G.invalidateResolutionsOfFailedLookupLocations()&&oe()}function oe(){e.setTimeout&&e.clearTimeout&&(i&&e.clearTimeout(i),O("Scheduling update"),i=e.setTimeout(ie,250,"timerToUpdateProgram"))}function ie(){i=void 0,u=!0,ae()}function ae(){switch(t){case 1:!function(){O("Reloading new file names and options"),dt.assert(x),dt.assert(g),t=0,A=jO(x.configFile.configFileSpecs,Vi(Mi(g),_),x,P,b),AO(A,Vi(g,_),x.configFile.configFileSpecs,E,D)&&(C=!0);J()}();break;case 2:!function(){dt.assert(g),O(`Reloading config file: ${g}`),t=0,N&&N.clearCache();se(),m=!0,(c??(c=new Map)).set(void 0,void 0),J()}();break;default:J()}return K()}function se(){dt.assert(g),le(Ew(g,y,P,d||(d=new Map),v,b))}function le(e){A=e.fileNames,x=e.options,R=e.watchOptions,I=e.projectReferences,S=e.wildcardDirectories,E=BU(e).slice(),D=EO(e.raw),C=!0}function ce(n){const t=Y(n);let r=null==s?void 0:s.get(t);if(r){if(!r.updateLevel)return r.parsedCommandLine;if(r.parsedCommandLine&&1===r.updateLevel&&!e.getParsedCommandLine){O("Reloading new file names and options"),dt.assert(x);const e=jO(r.parsedCommandLine.options.configFile.configFileSpecs,Vi(Mi(n),_),x,P);return r.parsedCommandLine={...r.parsedCommandLine,fileNames:e},r.updateLevel=void 0,r.parsedCommandLine}}O(`Loading config file: ${n}`);const o=e.getParsedCommandLine?e.getParsedCommandLine(n):function(e){const n=P.onUnRecoverableConfigFileDiagnostic;P.onUnRecoverableConfigFileDiagnostic=tn;const t=Ew(e,void 0,P,d||(d=new Map),v);return P.onUnRecoverableConfigFileDiagnostic=n,t}(n);return r?(r.parsedCommandLine=o,r.updateLevel=void 0):(s||(s=new Map)).set(t,r={parsedCommandLine:o}),(c??(c=new Map)).set(t,n),o}function de(e,n,t,r,o,i){return k(n,(n,r)=>t(n,r,e),r,o,i)}function ue(e,n,t){pe(e,t,n),2===n&&p.has(t)&&G.invalidateResolutionOfFile(t),Z(t),oe()}function pe(e,n,t){N&&N.addOrDeleteFile(e,n,t)}function fe(e,n){return(null==s?void 0:s.has(e))?OK:de(e,n,me,500,R,zK.MissingFile)}function me(e,n,t){pe(e,t,n),0===n&&r.has(t)&&(r.get(t).close(),r.delete(t),Z(t),oe())}function he(e,n){return w(e,n=>{dt.assert(g),dt.assert(x);const r=Y(n);N&&N.addOrDeleteFileOrDirectory(n,r),Z(r),Vj({watchedDirPath:Y(e),fileOrDirectory:n,fileOrDirectoryPath:r,configFileName:g,extraFileExtensions:b,options:x,program:K()||A,currentDirectory:_,useCaseSensitiveFileNames:h,writeLog:O,toPath:Y})||2!==t&&(t=1,oe())},n,R,zK.WildcardDirectory)}function _e(e,n,r,o){Fj(e,n,l||(l=new Map),(e,n)=>k(e,(r,o)=>{var i;pe(e,n,o),d&&zj(d,n,Y);const a=null==(i=l.get(n))?void 0:i.projects;(null==a?void 0:a.size)&&a.forEach(e=>{if(g&&Y(g)===e)t=2;else{const n=null==s?void 0:s.get(e);n&&(n.updateLevel=2),G.removeResolutionsFromProjectReferenceRedirects(e)}oe()})},2e3,r,o),Y)}}var nq=(e=>(e[e.Unbuildable=0]="Unbuildable",e[e.UpToDate=1]="UpToDate",e[e.UpToDateWithUpstreamTypes=2]="UpToDateWithUpstreamTypes",e[e.OutputMissing=3]="OutputMissing",e[e.ErrorReadingFile=4]="ErrorReadingFile",e[e.OutOfDateWithSelf=5]="OutOfDateWithSelf",e[e.OutOfDateWithUpstream=6]="OutOfDateWithUpstream",e[e.OutOfDateBuildInfoWithPendingEmit=7]="OutOfDateBuildInfoWithPendingEmit",e[e.OutOfDateBuildInfoWithErrors=8]="OutOfDateBuildInfoWithErrors",e[e.OutOfDateOptions=9]="OutOfDateOptions",e[e.OutOfDateRoots=10]="OutOfDateRoots",e[e.UpstreamOutOfDate=11]="UpstreamOutOfDate",e[e.UpstreamBlocked=12]="UpstreamBlocked",e[e.ComputingUpstream=13]="ComputingUpstream",e[e.TsVersionOutputOfDate=14]="TsVersionOutputOfDate",e[e.UpToDateWithInputFileText=15]="UpToDateWithInputFileText",e[e.ContainerOnly=16]="ContainerOnly",e[e.ForceBuild=17]="ForceBuild",e))(nq||{});function tq(e){return xi(e,".json")?e:zi(e,"tsconfig.json")}var rq=new Date(-864e13);function oq(e,n){return function(e,n,t){const r=e.get(n);let o;return r||(o=t(),e.set(n,o)),r||o}(e,n,()=>new Map)}function iq(e){return e.now?e.now():new Date}function aq(e){return!!e&&!!e.buildOrder}function sq(e){return aq(e)?e.buildOrder:e}function lq(e,n){return t=>{let r=n?`[${fU(vK(e),"[90m")}] `:`${vK(e)} - `;r+=`${gU(t.messageText,e.newLine)}${e.newLine+e.newLine}`,e.write(r)}}function cq(e,n,t,r){const o=UK(e,n);return o.getModifiedTime=e.getModifiedTime?n=>e.getModifiedTime(n):an,o.setModifiedTime=e.setModifiedTime?(n,t)=>e.setModifiedTime(n,t):tn,o.deleteFile=e.deleteFile?n=>e.deleteFile(n):tn,o.reportDiagnostic=t||_K(e),o.reportSolutionBuilderStatus=r||lq(e),o.now=Ue(e,e.now),o}function dq(e=di,n,t,r,o){const i=cq(e,n,t,r);return i.reportErrorSummary=o,i}function uq(e=di,n,t,r,o){const i=cq(e,n,t,r);return je(i,WK(e,o)),i}function pq(e,n,t){return iJ(!1,e,n,t)}function fq(e,n,t,r){return iJ(!0,e,n,t,r)}function mq(e,n,t,r,o){const i=n,a=n,s=function(e){const n={};return Ok.forEach(t=>{Ie(e,t.name)&&(n[t.name]=e[t.name])}),n.tscBuild=!0,n}(r),l=GK(i,()=>h.projectCompilerOptions);let c,d,u;jK(l),l.getParsedCommandLine=e=>vq(h,e,_q(h,e)),l.resolveModuleNameLiterals=Ue(i,i.resolveModuleNameLiterals),l.resolveTypeReferenceDirectiveReferences=Ue(i,i.resolveTypeReferenceDirectiveReferences),l.resolveLibrary=Ue(i,i.resolveLibrary),l.resolveModuleNames=Ue(i,i.resolveModuleNames),l.resolveTypeReferenceDirectives=Ue(i,i.resolveTypeReferenceDirectives),l.getModuleResolutionCache=Ue(i,i.getModuleResolutionCache),l.resolveModuleNameLiterals||l.resolveModuleNames||(c=GF(l.getCurrentDirectory(),l.getCanonicalFileName),l.resolveModuleNameLiterals=(e,n,t,r,o)=>PU(e,n,t,r,o,i,c,DU),l.getModuleResolutionCache=()=>c),l.resolveTypeReferenceDirectiveReferences||l.resolveTypeReferenceDirectives||(d=VF(l.getCurrentDirectory(),l.getCanonicalFileName,void 0,null==c?void 0:c.getPackageJsonInfoCache(),null==c?void 0:c.optionsToRedirectsKey),l.resolveTypeReferenceDirectiveReferences=(e,n,t,r,o)=>PU(e,n,t,r,o,i,d,MU)),l.resolveLibrary||(u=GF(l.getCurrentDirectory(),l.getCanonicalFileName,void 0,null==c?void 0:c.getPackageJsonInfoCache()),l.resolveLibrary=(e,n,t)=>UF(e,n,t,i,u)),l.getBuildInfo=(e,n)=>Bq(h,e,_q(h,n),void 0);const{watchFile:p,watchDirectory:f,writeLog:m}=BK(a,r),h={host:i,hostWithWatch:a,parseConfigFileHost:QU(i),write:Ue(i,i.trace),options:r,baseCompilerOptions:s,rootNames:t,baseWatchOptions:o,resolvedConfigFilePaths:new Map,configFileCache:new Map,projectStatus:new Map,extendedConfigCache:new Map,buildInfoCache:new Map,outputTimeStamps:new Map,builderPrograms:new Map,diagnostics:new Map,projectPendingBuild:new Map,projectErrorsReported:new Map,compilerHost:l,moduleResolutionCache:c,typeReferenceDirectiveResolutionCache:d,libraryResolutionCache:u,buildOrder:void 0,readFileWithCache:e=>i.readFile(e),projectCompilerOptions:s,cache:void 0,allProjectBuildPending:!0,needsSummary:!0,watchAllProjectsPending:e,watch:e,allWatchedWildcardDirectories:new Map,allWatchedInputFiles:new Map,allWatchedConfigFiles:new Map,allWatchedExtendedConfigFiles:new Map,allWatchedPackageJsonFiles:new Map,filesWatched:new Map,lastCachedPackageJsonLookups:new Map,timerToBuildInvalidatedProject:void 0,reportFileChangeDetected:!1,watchFile:p,watchDirectory:f,writeLog:m};return h}function hq(e,n){return Ki(n,e.compilerHost.getCurrentDirectory(),e.compilerHost.getCanonicalFileName)}function _q(e,n){const{resolvedConfigFilePaths:t}=e,r=t.get(n);if(void 0!==r)return r;const o=hq(e,n);return t.set(n,o),o}function gq(e){return!!e.options}function yq(e,n){const t=e.configFileCache.get(n);return t&&gq(t)?t:void 0}function vq(e,n,t){const{configFileCache:r}=e,o=r.get(t);if(o)return gq(o)?o:void 0;let i;er("SolutionBuilder::beforeConfigFileParsing");const{parseConfigFileHost:a,baseCompilerOptions:s,baseWatchOptions:l,extendedConfigCache:c,host:d}=e;let u;return d.getParsedCommandLine?(u=d.getParsedCommandLine(n),u||(i=nS(fa.File_0_not_found,n))):(a.onUnRecoverableConfigFileDiagnostic=e=>i=e,u=Ew(n,s,a,c,l),a.onUnRecoverableConfigFileDiagnostic=tn),r.set(t,u||i),er("SolutionBuilder::afterConfigFileParsing"),nr("SolutionBuilder::Config file parsing","SolutionBuilder::beforeConfigFileParsing","SolutionBuilder::afterConfigFileParsing"),u}function bq(e,n){return tq(Bi(e.compilerHost.getCurrentDirectory(),n))}function Tq(e,n){const t=new Map,r=new Map,o=[];let i,a;for(const s of n)l(s);return a?{buildOrder:i||s,circularDiagnostics:a}:i||s;function l(n,s){const c=_q(e,n);if(r.has(c))return;if(t.has(c))return void(s||(a||(a=[])).push(nS(fa.Project_references_may_not_form_a_circular_graph_Cycle_detected_Colon_0,o.join("\r\n"))));t.set(c,!0),o.push(n);const d=vq(e,n,c);if(d&&d.projectReferences)for(const t of d.projectReferences){l(bq(e,t.path),s||t.circular)}o.pop(),r.set(c,!0),(i||(i=[])).push(n)}}function Sq(e){return e.buildOrder||function(e){const n=Tq(e,e.rootNames.map(n=>bq(e,n)));e.resolvedConfigFilePaths.clear();const t=new Set(sq(n).map(n=>_q(e,n))),r={onDeleteValue:tn};_T(e.configFileCache,t,r),_T(e.projectStatus,t,r),_T(e.builderPrograms,t,r),_T(e.diagnostics,t,r),_T(e.projectPendingBuild,t,r),_T(e.projectErrorsReported,t,r),_T(e.buildInfoCache,t,r),_T(e.outputTimeStamps,t,r),_T(e.lastCachedPackageJsonLookups,t,r),e.watch&&(_T(e.allWatchedConfigFiles,t,{onDeleteValue:aT}),e.allWatchedExtendedConfigFiles.forEach(e=>{e.projects.forEach(n=>{t.has(n)||e.projects.delete(n)}),e.close()}),_T(e.allWatchedWildcardDirectories,t,{onDeleteValue:e=>e.forEach(qj)}),_T(e.allWatchedInputFiles,t,{onDeleteValue:e=>e.forEach(aT)}),_T(e.allWatchedPackageJsonFiles,t,{onDeleteValue:e=>e.forEach(aT)}));return e.buildOrder=n}(e)}function Eq(e,n,t){const r=n&&bq(e,n),o=Sq(e);if(aq(o))return o;if(r){const n=_q(e,r);if(-1===b(o,t=>_q(e,t)===n))return}const i=r?Tq(e,[r]):o;return dt.assert(!aq(i)),dt.assert(!t||void 0!==r),dt.assert(!t||i[i.length-1]===r),t?i.slice(0,i.length-1):i}function Aq(e){e.cache&&xq(e);const{compilerHost:n,host:t}=e,r=e.readFileWithCache,o=n.getSourceFile,{originalReadFile:i,originalFileExists:a,originalDirectoryExists:s,originalCreateDirectory:l,originalWriteFile:c,getSourceFileWithCache:d,readFileWithCache:u}=nU(t,n=>hq(e,n),(...e)=>o.call(n,...e));e.readFileWithCache=u,n.getSourceFile=d,e.cache={originalReadFile:i,originalFileExists:a,originalDirectoryExists:s,originalCreateDirectory:l,originalWriteFile:c,originalReadFileWithCache:r,originalGetSourceFile:o}}function xq(e){if(!e.cache)return;const{cache:n,host:t,compilerHost:r,extendedConfigCache:o,moduleResolutionCache:i,typeReferenceDirectiveResolutionCache:a,libraryResolutionCache:s}=e;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,o.clear(),null==i||i.clear(),null==a||a.clear(),null==s||s.clear(),e.cache=void 0}function Rq(e,n){e.projectStatus.delete(n),e.diagnostics.delete(n)}function Iq({projectPendingBuild:e},n,t){const r=e.get(n);(void 0===r||r<t)&&e.set(n,t)}function Dq(e,n){if(!e.allProjectBuildPending)return;e.allProjectBuildPending=!1,e.options.watch&&lJ(e,fa.Starting_compilation_in_watch_mode),Aq(e);sq(Sq(e)).forEach(n=>e.projectPendingBuild.set(_q(e,n),0)),n&&n.throwIfCancellationRequested()}var Cq=(e=>(e[e.Build=0]="Build",e[e.UpdateOutputFileStamps=1]="UpdateOutputFileStamps",e))(Cq||{});function Nq(e,n){return e.projectPendingBuild.delete(n),e.diagnostics.has(n)?1:0}function Mq(e,n,t,r,o,i,a){let l,c,d=0;return{kind:0,project:n,projectPath:t,buildOrder:a,getCompilerOptions:()=>o.options,getCurrentDirectory:()=>e.compilerHost.getCurrentDirectory(),getBuilderProgram:()=>u(sn),getProgram:()=>u(e=>e.getProgramOrUndefined()),getSourceFile:e=>u(n=>n.getSourceFile(e)),getSourceFiles:()=>p(e=>e.getSourceFiles()),getOptionsDiagnostics:e=>p(n=>n.getOptionsDiagnostics(e)),getGlobalDiagnostics:e=>p(n=>n.getGlobalDiagnostics(e)),getConfigFileParsingDiagnostics:()=>p(e=>e.getConfigFileParsingDiagnostics()),getSyntacticDiagnostics:(e,n)=>p(t=>t.getSyntacticDiagnostics(e,n)),getAllDependencies:e=>p(n=>n.getAllDependencies(e)),getSemanticDiagnostics:(e,n)=>p(t=>t.getSemanticDiagnostics(e,n)),getSemanticDiagnosticsOfNextAffectedFile:(e,n)=>u(t=>t.getSemanticDiagnosticsOfNextAffectedFile&&t.getSemanticDiagnosticsOfNextAffectedFile(e,n)),emit:(t,r,o,i,a)=>t||i?u(s=>{var l,c;return s.emit(t,r,o,i,a||(null==(c=(l=e.host).getCustomTransformers)?void 0:c.call(l,n)))}):(h(0,o),m(r,o,a)),done:function(n,r,o){return h(3,n,r,o),er("SolutionBuilder::Projects built"),Nq(e,t)}};function u(e){return h(0),l&&e(l)}function p(e){return u(e)||s}function f(){var r,i,a;if(dt.assert(void 0===l),e.options.dry)return sJ(e,fa.A_non_dry_build_would_build_project_0,n),c=1,void(d=2);if(e.options.verbose&&sJ(e,fa.Building_project_0,n),0===o.fileNames.length)return dJ(e,t,BU(o)),c=0,void(d=2);const{host:s,compilerHost:u}=e;if(e.projectCompilerOptions=o.options,null==(r=e.moduleResolutionCache)||r.update(o.options),null==(i=e.typeReferenceDirectiveResolutionCache)||i.update(o.options),l=s.createProgram(o.fileNames,o.options,u,function({options:e,builderPrograms:n,compilerHost:t},r,o){if(e.force)return;const i=n.get(r);return i||YK(o.options,t)}(e,t,o),BU(o),o.projectReferences),e.watch){const n=null==(a=e.moduleResolutionCache)?void 0:a.getPackageJsonInfoCache().getInternalMap();e.lastCachedPackageJsonLookups.set(t,n&&new Set(Le(n.values(),n=>e.host.realpath&&(CF(n)||n.directoryExists)?e.host.realpath(zi(n.packageDirectory,"package.json")):zi(n.packageDirectory,"package.json")))),e.builderPrograms.set(t,l)}d++}function m(r,a,s){var u,p,f;dt.assertIsDefined(l),dt.assert(1===d);const{host:m,compilerHost:h}=e,_=new Map,g=l.getCompilerOptions(),y=kS(g);let v,b;const{emitResult:T,diagnostics:S}=kK(l,e=>m.reportDiagnostic(e),e.write,void 0,(n,o,i,a,s,c)=>{var d;const u=hq(e,n);if(_.set(hq(e,n),n),null==c?void 0:c.buildInfo){b||(b=iq(e.host));const r=null==(d=l.hasChangedEmitSignature)?void 0:d.call(l),o=zq(e,n,t);o?(o.buildInfo=c.buildInfo,o.modifiedTime=b,r&&(o.latestChangedDtsTime=b)):e.buildInfoCache.set(t,{path:hq(e,n),buildInfo:c.buildInfo,modifiedTime:b,latestChangedDtsTime:r?b:void 0})}const p=(null==c?void 0:c.differsOnlyInMap)?Vo(e.host,n):void 0;(r||h.writeFile)(n,o,i,a,s,c),(null==c?void 0:c.differsOnlyInMap)?e.host.setModifiedTime(n,p):!y&&e.watch&&(v||(v=Wq(e,t))).set(u,b||(b=iq(e.host)))},a,void 0,s||(null==(p=(u=e.host).getCustomTransformers)?void 0:p.call(u,n)));return g.noEmitOnError&&S.length||!_.size&&8===i.type||Uq(e,o,t,fa.Updating_unchanged_output_timestamps_of_project_0,_),e.projectErrorsReported.set(t,!0),c=(null==(f=l.hasChangedEmitSignature)?void 0:f.call(l))?0:2,S.length?(e.diagnostics.set(t,S),e.projectStatus.set(t,{type:0,reason:"it had errors"}),c|=4):(e.diagnostics.delete(t),e.projectStatus.set(t,{type:1,oldestOutputFileName:me(_.values())??Tj(o,!m.useCaseSensitiveFileNames())})),function(e,n){n&&(e.host.afterProgramEmitAndDiagnostics&&e.host.afterProgramEmitAndDiagnostics(n),n.releaseProgram());e.projectCompilerOptions=e.baseCompilerOptions}(e,l),d=2,T}function h(i,s,l,u){for(;d<=i&&d<3;){const i=d;switch(d){case 0:f();break;case 1:m(l,s,u);break;case 2:qq(e,n,t,r,o,a,dt.checkDefined(c)),d++}dt.assert(d>i)}}}function Pq(e,n,t){if(!e.projectPendingBuild.size)return;if(aq(n))return;const{options:r,projectPendingBuild:o}=e;for(let i=0;i<n.length;i++){const a=n[i],s=_q(e,a),l=e.projectPendingBuild.get(s);if(void 0===l)continue;t&&(t=!1,fJ(e,n));const c=vq(e,a,s);if(!c){uJ(e,s),o.delete(s);continue}2===l?(eJ(e,a,s,c),nJ(e,s,c),tJ(e,a,s,c),rJ(e,a,s,c),oJ(e,a,s,c)):1===l&&(c.fileNames=jO(c.options.configFile.configFileSpecs,Mi(a),c.options,e.parseConfigFileHost),AO(c.fileNames,a,c.options.configFile.configFileSpecs,c.errors,EO(c.raw)),rJ(e,a,s,c),oJ(e,a,s,c));const d=jq(e,c,s);if(!r.force){if(1===d.type){mJ(e,a,d),dJ(e,s,BU(c)),o.delete(s),r.dry&&sJ(e,fa.Project_0_is_up_to_date,a);continue}if(2===d.type||15===d.type)return dJ(e,s,BU(c)),{kind:1,status:d,project:a,projectPath:s,projectIndex:i,config:c}}if(12!==d.type){if(16!==d.type)return{kind:0,status:d,project:a,projectPath:s,projectIndex:i,config:c};mJ(e,a,d),dJ(e,s,BU(c)),o.delete(s)}else mJ(e,a,d),dJ(e,s,BU(c)),o.delete(s),r.verbose&&sJ(e,d.upstreamProjectBlocked?fa.Skipping_build_of_project_0_because_its_dependency_1_was_not_built:fa.Skipping_build_of_project_0_because_its_dependency_1_has_errors,a,d.upstreamProjectName)}}function Lq(e,n,t){return mJ(e,n.project,n.status),1!==n.kind?Mq(e,n.project,n.projectPath,n.projectIndex,n.config,n.status,t):function(e,n,t,r,o){let i=!0;return{kind:1,project:n,projectPath:t,buildOrder:o,getCompilerOptions:()=>r.options,getCurrentDirectory:()=>e.compilerHost.getCurrentDirectory(),updateOutputFileStatmps:()=>{Kq(e,r,t),i=!1},done:()=>(i&&Kq(e,r,t),er("SolutionBuilder::Timestamps only updates"),Nq(e,t))}}(e,n.project,n.projectPath,n.config,t)}function kq(e,n,t){const r=Pq(e,n,t);return r?Lq(e,r,n):r}function wq(e){return!!e.watcher}function Oq(e,n){const t=hq(e,n),r=e.filesWatched.get(t);if(e.watch&&r){if(!wq(r))return r;if(r.modifiedTime)return r.modifiedTime}const o=Vo(e.host,n);return e.watch&&(r?r.modifiedTime=o:e.filesWatched.set(t,o)),o}function Fq(e,n,t,r,o,i,a){const s=hq(e,n),l=e.filesWatched.get(s);if(l&&wq(l))l.callbacks.push(t);else{const c=e.watchFile(n,(n,t,r)=>{const o=dt.checkDefined(e.filesWatched.get(s));dt.assert(wq(o)),o.modifiedTime=r,o.callbacks.forEach(e=>e(n,t,r))},r,o,i,a);e.filesWatched.set(s,{callbacks:[t],watcher:c,modifiedTime:l})}return{close:()=>{const n=dt.checkDefined(e.filesWatched.get(s));dt.assert(wq(n)),1===n.callbacks.length?(e.filesWatched.delete(s),qj(n)):Un(n.callbacks,t)}}}function Wq(e,n){if(!e.watch)return;let t=e.outputTimeStamps.get(n);return t||e.outputTimeStamps.set(n,t=new Map),t}function zq(e,n,t){const r=hq(e,n),o=e.buildInfoCache.get(t);return(null==o?void 0:o.path)===r?o:void 0}function Bq(e,n,t,r){const o=hq(e,n),i=e.buildInfoCache.get(t);if(void 0!==i&&i.path===o)return i.buildInfo||void 0;const a=e.readFileWithCache(n),s=a?xj(n,a):void 0;return e.buildInfoCache.set(t,{path:o,buildInfo:s||!1,modifiedTime:r||Go}),s}function Gq(e,n,t,r){if(t<Oq(e,n))return{type:5,outOfDateOutputFileName:r,newerInputFileName:n}}function Vq(e,n,t){return e.buildInfoCache.get(t).path===n.path}function jq(e,n,t){if(void 0===n)return{type:0,reason:"config file deleted mid-build"};const r=e.projectStatus.get(t);if(void 0!==r)return r;er("SolutionBuilder::beforeUpToDateCheck");const o=function(e,n,t){var r,o,a,l,c;if(SO(n))return{type:16};let u;const p=!!e.options.force;if(n.projectReferences){e.projectStatus.set(t,{type:13});for(const t of n.projectReferences){const n=ZU(t),r=_q(e,n),o=vq(e,n,r),i=jq(e,o,r);if(13!==i.type&&16!==i.type){if(e.options.stopBuildOnErrors&&(0===i.type||12===i.type))return{type:12,upstreamProjectName:t.path,upstreamProjectBlocked:12===i.type};p||(u||(u=[])).push({ref:t,refStatus:i,resolvedRefPath:r,resolvedConfig:o})}}}if(p)return{type:17};const{host:f}=e,m=oj(n.options),h=kS(n.options);let _=zq(e,m,t);const g=(null==_?void 0:_.modifiedTime)||Vo(f,m);if(g===Go)return _||e.buildInfoCache.set(t,{path:hq(e,m),buildInfo:!1,modifiedTime:g}),{type:3,missingOutputFileName:m};const y=Bq(e,m,t,g);if(!y)return{type:4,fileName:m};const v=h&&PH(y)?y:void 0;if((v||!h)&&y.version!==i)return{type:14,version:y.version};if(!n.options.noCheck&&(y.errors||y.checkPending))return{type:8,buildInfoFile:m};if(v){if(!n.options.noCheck&&((null==(r=v.changeFileSet)?void 0:r.length)||(null==(o=v.semanticDiagnosticsPerFile)?void 0:o.length)||PS(n.options)&&(null==(a=v.emitDiagnosticsPerFile)?void 0:a.length)))return{type:8,buildInfoFile:m};if(!n.options.noEmit&&((null==(l=v.changeFileSet)?void 0:l.length)||(null==(c=v.affectedFilesPendingEmit)?void 0:c.length)||void 0!==v.pendingEmit))return{type:7,buildInfoFile:m};if((!n.options.noEmit||n.options.noEmit&&PS(n.options))&&TH(n.options,v.options||{},void 0,!!n.options.noEmit))return{type:9,buildInfoFile:m}}let b,T=g,S=m,E=rq,A=!1;const x=new Set;let R,I;for(const i of n.fileNames){const n=Oq(e,i);if(n===Go)return{type:0,reason:`${i} does not exist`};const t=hq(e,i);if(g<n){let n,r;if(v){R||(R=KH(v,m,f));const o=R.roots.get(t);n=R.fileInfos.get(o??t);const a=n?e.readFileWithCache(o??i):void 0;r=void 0!==a?VK(f,a):void 0,n&&n===r&&(A=!0)}if(!n||n!==r)return{type:5,outOfDateOutputFileName:m,newerInputFileName:i}}n>E&&(b=i,E=n),x.add(t)}if(v?(R||(R=KH(v,m,f)),I=ap(R.roots,(e,n)=>x.has(n)?void 0:n)):I=d(qH(y,m,f),e=>x.has(e)?void 0:e),I)return{type:10,buildInfoFile:m,inputFile:I};if(!h){const r=vj(n,!f.useCaseSensitiveFileNames()),o=Wq(e,t);for(const n of r){if(n===m)continue;const t=hq(e,n);let r=null==o?void 0:o.get(t);if(r||(r=Vo(e.host,n),null==o||o.set(t,r)),r===Go)return{type:3,missingOutputFileName:n};if(r<E)return{type:5,outOfDateOutputFileName:n,newerInputFileName:b};r<T&&(T=r,S=n)}}let D=!1;if(u)for(const{ref:i,refStatus:s,resolvedConfig:d,resolvedRefPath:L}of u){if(s.newestInputFileTime&&s.newestInputFileTime<=T)continue;if(Vq(e,_??(_=e.buildInfoCache.get(t)),L))return{type:6,outOfDateOutputFileName:m,newerProjectName:i.path};const n=Hq(e,d.options,L);if(!(n&&n<=T))return dt.assert(void 0!==S,"Should have an oldest output filename here"),{type:6,outOfDateOutputFileName:S,newerProjectName:i.path};D=!0}const C=Gq(e,n.options.configFilePath,T,S);if(C)return C;const N=d(n.options.configFile.extendedSourceFiles||s,n=>Gq(e,n,T,S));if(N)return N;const M=e.lastCachedPackageJsonLookups.get(t),P=M&&sp(M,n=>Gq(e,n,T,S));return P||{type:D?2:A?15:1,newestInputFileTime:E,newestInputFileName:b,oldestOutputFileName:S}}(e,n,t);return er("SolutionBuilder::afterUpToDateCheck"),nr("SolutionBuilder::Up-to-date check","SolutionBuilder::beforeUpToDateCheck","SolutionBuilder::afterUpToDateCheck"),e.projectStatus.set(t,o),o}function Uq(e,n,t,r,o){if(n.options.noEmit)return;let i;const a=oj(n.options),s=kS(n.options);if(a&&s)return(null==o?void 0:o.has(hq(e,a)))||(e.options.verbose&&sJ(e,r,n.options.configFilePath),e.host.setModifiedTime(a,i=iq(e.host)),zq(e,a,t).modifiedTime=i),void e.outputTimeStamps.delete(t);const{host:l}=e,c=vj(n,!l.useCaseSensitiveFileNames()),d=Wq(e,t),u=d?new Set:void 0;if(!o||c.length!==o.size){let s=!!e.options.verbose;for(const p of c){const c=hq(e,p);(null==o?void 0:o.has(c))||(s&&(s=!1,sJ(e,r,n.options.configFilePath)),l.setModifiedTime(p,i||(i=iq(e.host))),p===a?zq(e,a,t).modifiedTime=i:d&&(d.set(c,i),u.add(c)))}}null==d||d.forEach((e,n)=>{(null==o?void 0:o.has(n))||u.has(n)||d.delete(n)})}function Hq(e,n,t){if(!n.composite)return;const r=dt.checkDefined(e.buildInfoCache.get(t));if(void 0!==r.latestChangedDtsTime)return r.latestChangedDtsTime||void 0;const o=r.buildInfo&&PH(r.buildInfo)&&r.buildInfo.latestChangedDtsFile?e.host.getModifiedTime(Vi(r.buildInfo.latestChangedDtsFile,Mi(r.path))):void 0;return r.latestChangedDtsTime=o||!1,o}function Kq(e,n,t){if(e.options.dry)return sJ(e,fa.A_non_dry_build_would_update_timestamps_for_output_of_project_0,n.options.configFilePath);Uq(e,n,t,fa.Updating_output_timestamps_of_project_0),e.projectStatus.set(t,{type:1,oldestOutputFileName:Tj(n,!e.host.useCaseSensitiveFileNames())})}function qq(e,n,t,r,o,i,a){if(!(e.options.stopBuildOnErrors&&4&a)&&o.options.composite)for(let s=r+1;s<i.length;s++){const r=i[s],o=_q(e,r);if(e.projectPendingBuild.has(o))continue;const l=vq(e,r,o);if(l&&l.projectReferences)for(const i of l.projectReferences){if(_q(e,bq(e,i.path))!==t)continue;const r=e.projectStatus.get(o);if(r)switch(r.type){case 1:if(2&a){r.type=2;break}case 15:case 2:2&a||e.projectStatus.set(o,{type:6,outOfDateOutputFileName:r.oldestOutputFileName,newerProjectName:n});break;case 12:_q(e,bq(e,r.upstreamProjectName))===t&&Rq(e,o)}Iq(e,o,0);break}}}function Jq(e,n,t,r,o,i){er("SolutionBuilder::beforeBuild");const a=function(e,n,t,r,o,i){const a=Eq(e,n,i);if(!a)return 3;Dq(e,t);let s=!0,l=0;for(;;){const n=kq(e,a,s);if(!n)break;s=!1,n.done(t,r,null==o?void 0:o(n.project)),e.diagnostics.has(n.projectPath)||l++}return xq(e),pJ(e,a),function(e,n){if(!e.watchAllProjectsPending)return;er("SolutionBuilder::beforeWatcherCreation"),e.watchAllProjectsPending=!1;for(const t of sq(n)){const n=_q(e,t),r=vq(e,t,n);eJ(e,t,n,r),nJ(e,n,r),r&&(tJ(e,t,n,r),rJ(e,t,n,r),oJ(e,t,n,r))}er("SolutionBuilder::afterWatcherCreation"),nr("SolutionBuilder::Watcher creation","SolutionBuilder::beforeWatcherCreation","SolutionBuilder::afterWatcherCreation")}(e,a),aq(a)?4:a.some(n=>e.diagnostics.has(_q(e,n)))?l?2:1:0}(e,n,t,r,o,i);return er("SolutionBuilder::afterBuild"),nr("SolutionBuilder::Build","SolutionBuilder::beforeBuild","SolutionBuilder::afterBuild"),a}function Xq(e,n,t){er("SolutionBuilder::beforeClean");const r=function(e,n,t){const r=Eq(e,n,t);if(!r)return 3;if(aq(r))return cJ(e,r.circularDiagnostics),4;const{options:o,host:i}=e,a=o.dry?[]:void 0;for(const s of r){const n=_q(e,s),t=vq(e,s,n);if(void 0===t){uJ(e,n);continue}const r=vj(t,!i.useCaseSensitiveFileNames());if(!r.length)continue;const o=new Set(t.fileNames.map(n=>hq(e,n)));for(const s of r)o.has(hq(e,s))||i.fileExists(s)&&(a?a.push(s):(i.deleteFile(s),Yq(e,n,0)))}a&&sJ(e,fa.A_non_dry_build_would_delete_the_following_files_Colon_0,a.map(e=>`\r\n * ${e}`).join(""));return 0}(e,n,t);return er("SolutionBuilder::afterClean"),nr("SolutionBuilder::Clean","SolutionBuilder::beforeClean","SolutionBuilder::afterClean"),r}function Yq(e,n,t){e.host.getParsedCommandLine&&1===t&&(t=2),2===t&&(e.configFileCache.delete(n),e.buildOrder=void 0),e.needsSummary=!0,Rq(e,n),Iq(e,n,t),Aq(e)}function $q(e,n,t){e.reportFileChangeDetected=!0,Yq(e,n,t),Qq(e,250,!0)}function Qq(e,n,t){const{hostWithWatch:r}=e;r.setTimeout&&r.clearTimeout&&(e.timerToBuildInvalidatedProject&&r.clearTimeout(e.timerToBuildInvalidatedProject),e.timerToBuildInvalidatedProject=r.setTimeout(Zq,n,"timerToBuildInvalidatedProject",e,t))}function Zq(e,n,t){er("SolutionBuilder::beforeBuild");const r=function(e,n){e.timerToBuildInvalidatedProject=void 0,e.reportFileChangeDetected&&(e.reportFileChangeDetected=!1,e.projectErrorsReported.clear(),lJ(e,fa.File_change_detected_Starting_incremental_compilation));let t=0;const r=Sq(e),o=kq(e,r,!1);if(o)for(o.done(),t++;e.projectPendingBuild.size;){if(e.timerToBuildInvalidatedProject)return;const o=Pq(e,r,!1);if(!o)break;if(1!==o.kind&&(n||5===t))return void Qq(e,100,!1);Lq(e,o,r).done(),1!==o.kind&&t++}return xq(e),r}(n,t);er("SolutionBuilder::afterBuild"),nr("SolutionBuilder::Build","SolutionBuilder::beforeBuild","SolutionBuilder::afterBuild"),r&&pJ(n,r)}function eJ(e,n,t,r){e.watch&&!e.allWatchedConfigFiles.has(t)&&e.allWatchedConfigFiles.set(t,Fq(e,n,()=>$q(e,t,2),2e3,null==r?void 0:r.watchOptions,zK.ConfigFile,n))}function nJ(e,n,t){Fj(n,null==t?void 0:t.options,e.allWatchedExtendedConfigFiles,(n,r)=>Fq(e,n,()=>{var n;return null==(n=e.allWatchedExtendedConfigFiles.get(r))?void 0:n.projects.forEach(n=>$q(e,n,2))},2e3,null==t?void 0:t.watchOptions,zK.ExtendedConfigFile),n=>hq(e,n))}function tJ(e,n,t,r){e.watch&&Gj(oq(e.allWatchedWildcardDirectories,t),r.wildcardDirectories,(o,i)=>e.watchDirectory(o,i=>{var a;Vj({watchedDirPath:hq(e,o),fileOrDirectory:i,fileOrDirectoryPath:hq(e,i),configFileName:n,currentDirectory:e.compilerHost.getCurrentDirectory(),options:r.options,program:e.builderPrograms.get(t)||(null==(a=yq(e,t))?void 0:a.fileNames),useCaseSensitiveFileNames:e.parseConfigFileHost.useCaseSensitiveFileNames,writeLog:n=>e.writeLog(n),toPath:n=>hq(e,n)})||$q(e,t,1)},i,null==r?void 0:r.watchOptions,zK.WildcardDirectory,n))}function rJ(e,n,t,r){e.watch&&gT(oq(e.allWatchedInputFiles,t),new Set(r.fileNames),{createNewValue:o=>Fq(e,o,()=>$q(e,t,0),250,null==r?void 0:r.watchOptions,zK.SourceFile,n),onDeleteValue:aT})}function oJ(e,n,t,r){e.watch&&e.lastCachedPackageJsonLookups&&gT(oq(e.allWatchedPackageJsonFiles,t),e.lastCachedPackageJsonLookups.get(t),{createNewValue:o=>Fq(e,o,()=>$q(e,t,0),2e3,null==r?void 0:r.watchOptions,zK.PackageJson,n),onDeleteValue:aT})}function iJ(e,n,t,r,o){const i=mq(e,n,t,r,o);return{build:(e,n,t,r)=>Jq(i,e,n,t,r),clean:e=>Xq(i,e),buildReferences:(e,n,t,r)=>Jq(i,e,n,t,r,!0),cleanReferences:e=>Xq(i,e,!0),getNextInvalidatedProject:e=>(Dq(i,e),kq(i,Sq(i),!1)),getBuildOrder:()=>Sq(i),getUpToDateStatusOfProject:e=>{const n=bq(i,e),t=_q(i,n);return jq(i,vq(i,n,t),t)},invalidateProject:(e,n)=>Yq(i,e,n||0),close:()=>function(e){hT(e.allWatchedConfigFiles,aT),hT(e.allWatchedExtendedConfigFiles,qj),hT(e.allWatchedWildcardDirectories,e=>hT(e,qj)),hT(e.allWatchedInputFiles,e=>hT(e,aT)),hT(e.allWatchedPackageJsonFiles,e=>hT(e,aT))}(i)}}function aJ(e,n){return sa(n,e.compilerHost.getCurrentDirectory(),e.compilerHost.getCanonicalFileName)}function sJ(e,n,...t){e.host.reportSolutionBuilderStatus(nS(n,...t))}function lJ(e,n,...t){var r,o;null==(o=(r=e.hostWithWatch).onWatchStatusChange)||o.call(r,nS(n,...t),e.host.getNewLine(),e.baseCompilerOptions)}function cJ({host:e},n){n.forEach(n=>e.reportDiagnostic(n))}function dJ(e,n,t){cJ(e,t),e.projectErrorsReported.set(n,!0),t.length&&e.diagnostics.set(n,t)}function uJ(e,n){dJ(e,n,[e.configFileCache.get(n)])}function pJ(e,n){if(!e.needsSummary)return;e.needsSummary=!1;const t=e.watch||!!e.host.reportErrorSummary,{diagnostics:r}=e;let o=0,i=[];aq(n)?(fJ(e,n.buildOrder),cJ(e,n.circularDiagnostics),t&&(o+=SK(n.circularDiagnostics)),t&&(i=[...i,...EK(n.circularDiagnostics)])):(n.forEach(n=>{const t=_q(e,n);e.projectErrorsReported.has(t)||cJ(e,r.get(t)||s)}),t&&r.forEach(e=>o+=SK(e)),t&&r.forEach(e=>[...i,...EK(e)])),e.watch?lJ(e,AK(o),o):e.host.reportErrorSummary&&e.host.reportErrorSummary(o,i)}function fJ(e,n){e.options.verbose&&sJ(e,fa.Projects_in_this_build_Colon_0,n.map(n=>"\r\n * "+aJ(e,n)).join(""))}function mJ(e,n,t){e.options.verbose&&function(e,n,t){switch(t.type){case 5:return sJ(e,fa.Project_0_is_out_of_date_because_output_1_is_older_than_input_2,aJ(e,n),aJ(e,t.outOfDateOutputFileName),aJ(e,t.newerInputFileName));case 6:return sJ(e,fa.Project_0_is_out_of_date_because_output_1_is_older_than_input_2,aJ(e,n),aJ(e,t.outOfDateOutputFileName),aJ(e,t.newerProjectName));case 3:return sJ(e,fa.Project_0_is_out_of_date_because_output_file_1_does_not_exist,aJ(e,n),aJ(e,t.missingOutputFileName));case 4:return sJ(e,fa.Project_0_is_out_of_date_because_there_was_error_reading_file_1,aJ(e,n),aJ(e,t.fileName));case 7:return sJ(e,fa.Project_0_is_out_of_date_because_buildinfo_file_1_indicates_that_some_of_the_changes_were_not_emitted,aJ(e,n),aJ(e,t.buildInfoFile));case 8:return sJ(e,fa.Project_0_is_out_of_date_because_buildinfo_file_1_indicates_that_program_needs_to_report_errors,aJ(e,n),aJ(e,t.buildInfoFile));case 9:return sJ(e,fa.Project_0_is_out_of_date_because_buildinfo_file_1_indicates_there_is_change_in_compilerOptions,aJ(e,n),aJ(e,t.buildInfoFile));case 10:return sJ(e,fa.Project_0_is_out_of_date_because_buildinfo_file_1_indicates_that_file_2_was_root_file_of_compilation_but_not_any_more,aJ(e,n),aJ(e,t.buildInfoFile),aJ(e,t.inputFile));case 1:if(void 0!==t.newestInputFileTime)return sJ(e,fa.Project_0_is_up_to_date_because_newest_input_1_is_older_than_output_2,aJ(e,n),aJ(e,t.newestInputFileName||""),aJ(e,t.oldestOutputFileName||""));break;case 2:return sJ(e,fa.Project_0_is_up_to_date_with_d_ts_files_from_its_dependencies,aJ(e,n));case 15:return sJ(e,fa.Project_0_is_up_to_date_but_needs_to_update_timestamps_of_output_files_that_are_older_than_input_files,aJ(e,n));case 11:return sJ(e,fa.Project_0_is_out_of_date_because_its_dependency_1_is_out_of_date,aJ(e,n),aJ(e,t.upstreamProjectName));case 12:return sJ(e,t.upstreamProjectBlocked?fa.Project_0_can_t_be_built_because_its_dependency_1_was_not_built:fa.Project_0_can_t_be_built_because_its_dependency_1_has_errors,aJ(e,n),aJ(e,t.upstreamProjectName));case 0:return sJ(e,fa.Project_0_is_out_of_date_because_1,aJ(e,n),t.reason);case 14:return sJ(e,fa.Project_0_is_out_of_date_because_output_for_it_was_generated_with_version_1_that_differs_with_current_version_2,aJ(e,n),t.version,i);case 17:sJ(e,fa.Project_0_is_being_forcibly_rebuilt,aJ(e,n))}}(e,n,t)}var hJ=(e=>(e[e.time=0]="time",e[e.count=1]="count",e[e.memory=2]="memory",e))(hJ||{});function _J(e){const n=function(){const e=new Map;return e.set("Library",0),e.set("Definitions",0),e.set("TypeScript",0),e.set("JavaScript",0),e.set("JSON",0),e.set("Other",0),e}();return d(e.getSourceFiles(),t=>{const r=function(e,n){if(e.isSourceFileDefaultLibrary(n))return"Library";if(n.isDeclarationFile)return"Definitions";const t=n.path;return Ri(t,IE)?"TypeScript":Ri(t,NE)?"JavaScript":xi(t,".json")?"JSON":"Other"}(e,t),o=Ba(t).length;n.set(r,n.get(r)+o)}),n}function gJ(e,n,t){return vJ(e,t)?_K(e,!0):n}function yJ(e){return!!e.writeOutputIsTTY&&e.writeOutputIsTTY()&&!e.getEnvironmentVariable("NO_COLOR")}function vJ(e,n){return n&&void 0!==n.pretty?n.pretty:yJ(e)}function bJ(e){return e.options.all?ce(Bk.concat(Qk),(e,n)=>En(e.name,n.name)):x(Bk.concat(Qk),e=>!!e.showInSimplifiedHelpView)}function TJ(e){e.write(Sw(fa.Version_0,i)+e.newLine)}function SJ(e){if(!yJ(e))return{bold:e=>e,blue:e=>e,blueBackground:e=>e,brightWhite:e=>e};const n=e.getEnvironmentVariable("OS")&&e.getEnvironmentVariable("OS").toLowerCase().includes("windows"),t=e.getEnvironmentVariable("WT_SESSION"),r=e.getEnvironmentVariable("TERM_PROGRAM")&&"vscode"===e.getEnvironmentVariable("TERM_PROGRAM");const o="truecolor"===e.getEnvironmentVariable("COLORTERM")||"xterm-256color"===e.getEnvironmentVariable("TERM");function i(e){return`[97m${e}[39m`}return{bold:function(e){return`[1m${e}[22m`},blue:function(e){return!n||t||r?`[94m${e}[39m`:i(e)},brightWhite:i,blueBackground:function(e){return o?`[48;5;68m${e}[39;49m`:`[44m${e}[39;49m`}}}function EJ(e){return`--${e.name}${e.shortName?`, -${e.shortName}`:""}`}function AJ(e,n,t,r){var o;const i=[],a=SJ(e),s=EJ(n),l=function(e){if("object"===e.type)return;return{valueType:function(e){switch(dt.assert("listOrElement"!==e.type),e.type){case"string":case"number":case"boolean":return Sw(fa.type_Colon);case"list":return Sw(fa.one_or_more_Colon);default:return Sw(fa.one_of_Colon)}}(e),possibleValues:function e(n){let t;switch(n.type){case"string":case"number":case"boolean":t=n.type;break;case"list":case"listOrElement":t=e(n.element);break;case"object":t="";break;default:const r={};return n.type.forEach((e,t)=>{var o;(null==(o=n.deprecatedKeys)?void 0:o.has(t))||(r[e]||(r[e]=[])).push(t)}),Object.entries(r).map(([,e])=>e.join("/")).join(", ")}return t}(e)}}(n),c="object"==typeof n.defaultValueDescription?Sw(n.defaultValueDescription):(d=n.defaultValueDescription,u="list"===n.type||"listOrElement"===n.type?n.element.type:n.type,void 0!==d&&"object"==typeof u?Le(u.entries()).filter(([,e])=>e===d).map(([e])=>e).join("/"):String(d));var d,u;const p=(null==(o=e.getWidthOfTerminal)?void 0:o.call(e))??0;if(p>=80){let o="";n.description&&(o=Sw(n.description)),i.push(...m(s,o,t,r,p,!0),e.newLine),f(l,n)&&(l&&i.push(...m(l.valueType,l.possibleValues,t,r,p,!1),e.newLine),c&&i.push(...m(Sw(fa.default_Colon),c,t,r,p,!1),e.newLine)),i.push(e.newLine)}else{if(i.push(a.blue(s),e.newLine),n.description){const e=Sw(n.description);i.push(e)}if(i.push(e.newLine),f(l,n)){if(l&&i.push(`${l.valueType} ${l.possibleValues}`),c){l&&i.push(e.newLine);const n=Sw(fa.default_Colon);i.push(`${n} ${c}`)}i.push(e.newLine)}i.push(e.newLine)}return i;function f(e,n){const t=n.defaultValueDescription;return n.category!==fa.Command_line_Options&&(!S(["string"],null==e?void 0:e.possibleValues)||!S([void 0,"false","n/a"],t))}function m(e,n,t,r,o,i){const s=[];let l=!0,c=n;const d=o-r;for(;c.length>0;){let n="";l?(n=e.padStart(t),n=n.padEnd(r),n=i?a.blue(n):n):n="".padStart(r);const o=c.substr(0,d);c=c.slice(d),s.push(`${n}${o}`),l=!1}return s}}function xJ(e,n){let t=0;for(const a of n){const e=EJ(a).length;t=t>e?t:e}const r=t+2,o=r+2;let i=[];for(const a of n){const n=AJ(e,a,r,o);i=[...i,...n]}return i[i.length-2]!==e.newLine&&i.push(e.newLine),i}function RJ(e,n,t,r,o,i){let a=[];if(a.push(SJ(e).bold(n)+e.newLine+e.newLine),o&&a.push(o+e.newLine+e.newLine),!r)return a=[...a,...xJ(e,t)],i&&a.push(i+e.newLine+e.newLine),a;const s=new Map;for(const l of t){if(!l.category)continue;const e=Sw(l.category),n=s.get(e)??[];n.push(l),s.set(e,n)}return s.forEach((n,t)=>{a.push(`### ${t}${e.newLine}${e.newLine}`),a=[...a,...xJ(e,n)]}),i&&a.push(i+e.newLine+e.newLine),a}function IJ(e,n){let t=[...DJ(e,`${Sw(fa.tsc_Colon_The_TypeScript_Compiler)} - ${Sw(fa.Version_0,i)}`)];t=[...t,...RJ(e,Sw(fa.BUILD_OPTIONS),x(n,e=>e!==Qk),!1,eS(fa.Using_build_b_will_make_tsc_behave_more_like_a_build_orchestrator_than_a_compiler_This_is_used_to_trigger_building_composite_projects_which_you_can_learn_more_about_at_0,"https://aka.ms/tsc-composite-builds"))];for(const r of t)e.write(r)}function DJ(e,n){var t;const r=SJ(e),o=[],i=(null==(t=e.getWidthOfTerminal)?void 0:t.call(e))??0,a=r.blueBackground("".padStart(5)),s=r.blueBackground(r.brightWhite("TS ".padStart(5)));if(i>=n.length+5){const t=(i>120?120:i)-5;o.push(n.padEnd(t)+a+e.newLine),o.push("".padStart(t)+s+e.newLine)}else o.push(n+e.newLine),o.push(e.newLine);return o}function CJ(e,n){n.options.all?function(e,n,t,r){let o=[...DJ(e,`${Sw(fa.tsc_Colon_The_TypeScript_Compiler)} - ${Sw(fa.Version_0,i)}`)];o=[...o,...RJ(e,Sw(fa.ALL_COMPILER_OPTIONS),n,!0,void 0,eS(fa.You_can_learn_about_all_of_the_compiler_options_at_0,"https://aka.ms/tsc"))],o=[...o,...RJ(e,Sw(fa.WATCH_OPTIONS),r,!1,Sw(fa.Including_watch_w_will_start_watching_the_current_project_for_the_file_changes_Once_set_you_can_config_watch_mode_with_Colon))],o=[...o,...RJ(e,Sw(fa.BUILD_OPTIONS),x(t,e=>e!==Qk),!1,eS(fa.Using_build_b_will_make_tsc_behave_more_like_a_build_orchestrator_than_a_compiler_This_is_used_to_trigger_building_composite_projects_which_you_can_learn_more_about_at_0,"https://aka.ms/tsc-composite-builds"))];for(const i of o)e.write(i)}(e,bJ(n),Zk,wk):function(e,n){const t=SJ(e);let r=[...DJ(e,`${Sw(fa.tsc_Colon_The_TypeScript_Compiler)} - ${Sw(fa.Version_0,i)}`)];r.push(t.bold(Sw(fa.COMMON_COMMANDS))+e.newLine+e.newLine),s("tsc",fa.Compiles_the_current_project_tsconfig_json_in_the_working_directory),s("tsc app.ts util.ts",fa.Ignoring_tsconfig_json_compiles_the_specified_files_with_default_compiler_options),s("tsc -b",fa.Build_a_composite_project_in_the_working_directory),s("tsc --init",fa.Creates_a_tsconfig_json_with_the_recommended_settings_in_the_working_directory),s("tsc -p ./path/to/tsconfig.json",fa.Compiles_the_TypeScript_project_located_at_the_specified_path),s("tsc --help --all",fa.An_expanded_version_of_this_information_showing_all_possible_compiler_options),s(["tsc --noEmit","tsc --target esnext"],fa.Compiles_the_current_project_with_additional_settings);const o=n.filter(e=>e.isCommandLineOnly||e.category===fa.Command_line_Options),a=n.filter(e=>!S(o,e));r=[...r,...RJ(e,Sw(fa.COMMAND_LINE_FLAGS),o,!1,void 0,void 0),...RJ(e,Sw(fa.COMMON_COMPILER_OPTIONS),a,!1,void 0,eS(fa.You_can_learn_about_all_of_the_compiler_options_at_0,"https://aka.ms/tsc"))];for(const i of r)e.write(i);function s(n,o){const i="string"==typeof n?[n]:n;for(const a of i)r.push(" "+t.blue(a)+e.newLine);r.push(" "+Sw(o)+e.newLine+e.newLine)}}(e,bJ(n))}function NJ(e,n,t){let r,o=_K(e);if(t.options.locale&&pl(t.options.locale,e,t.errors),t.errors.length>0)return t.errors.forEach(o),e.exit(1);if(t.options.init)return function(e,n,t){const r=e.getCurrentDirectory(),o=ji(zi(r,"tsconfig.json"));if(e.fileExists(o))n(nS(fa.A_tsconfig_json_file_is_already_defined_at_Colon_0,o));else{e.writeFile(o,rO(t,e.newLine));const n=[e.newLine,...DJ(e,"Created a new tsconfig.json")];n.push("You can learn more at https://aka.ms/tsconfig"+e.newLine);for(const t of n)e.write(t)}}(e,o,t.options),e.exit(0);if(t.options.version)return TJ(e),e.exit(0);if(t.options.help||t.options.all)return CJ(e,t),e.exit(0);if(t.options.watch&&t.options.listFilesOnly)return o(nS(fa.Options_0_and_1_cannot_be_combined,"watch","listFilesOnly")),e.exit(1);if(t.options.project){if(0!==t.fileNames.length)return o(nS(fa.Option_project_cannot_be_mixed_with_source_files_on_a_command_line)),e.exit(1);const n=ji(t.options.project);if(!n||e.directoryExists(n)){if(r=zi(n,"tsconfig.json"),!e.fileExists(r))return o(nS(fa.Cannot_find_a_tsconfig_json_file_at_the_specified_directory_Colon_0,t.options.project)),e.exit(1)}else if(r=n,!e.fileExists(r))return o(nS(fa.The_specified_path_does_not_exist_Colon_0,t.options.project)),e.exit(1)}else if(0===t.fileNames.length){r=Jj(ji(e.getCurrentDirectory()),n=>e.fileExists(n))}if(0===t.fileNames.length&&!r)return t.options.showConfig?o(nS(fa.Cannot_find_a_tsconfig_json_file_at_the_current_directory_Colon_0,ji(e.getCurrentDirectory()))):(TJ(e),CJ(e,t)),e.exit(1);const i=e.getCurrentDirectory(),a=oO(t.options,e=>Vi(e,i));if(r){const i=new Map,s=TK(r,a,i,t.watchOptions,e,o);if(a.showConfig)return 0!==s.errors.length?(o=gJ(e,o,s.options),s.errors.forEach(o),e.exit(1)):(e.write(JSON.stringify(Xw(s,r,e),null,4)+e.newLine),e.exit(0));if(o=gJ(e,o,s.options),iT(s.options)){if(LJ(e,o))return;return function(e,n,t,r,o,i,a){const s=qK({configFileName:r.options.configFilePath,optionsToExtend:o,watchOptionsToExtend:i,system:e,reportDiagnostic:t,reportWatchStatus:VJ(e,r.options)});return GJ(e,n,s),s.configFileParsingResult=r,s.extendedConfigCache=a,eq(s)}(e,n,o,s,a,t.watchOptions,i)}kS(s.options)?WJ(e,n,o,s):FJ(e,n,o,s)}else{if(a.showConfig)return e.write(JSON.stringify(Xw(t,zi(i,"tsconfig.json"),e),null,4)+e.newLine),e.exit(0);if(o=gJ(e,o,a),iT(a)){if(LJ(e,o))return;return function(e,n,t,r,o,i){const a=JK({rootFiles:r,options:o,watchOptions:i,system:e,reportDiagnostic:t,reportWatchStatus:VJ(e,o)});return GJ(e,n,a),eq(a)}(e,n,o,t.fileNames,a,t.watchOptions)}kS(a)?WJ(e,n,o,{...t,options:a}):FJ(e,n,o,{...t,options:a})}}function MJ(e){if(e.length>0&&45===e[0].charCodeAt(0)){const n=e[0].slice(45===e[0].charCodeAt(1)?2:1).toLowerCase();return n===Qk.name||n===Qk.shortName}return!1}function PJ(e,n,t){if(MJ(t)){const{buildOptions:r,watchOptions:o,projects:i,errors:a}=Tw(t);if(!r.generateCpuProfile||!e.enableCPUProfiler)return wJ(e,n,r,o,i,a);e.enableCPUProfiler(r.generateCpuProfile,()=>wJ(e,n,r,o,i,a))}const r=_w(t,n=>e.readFile(n));if(!r.options.generateCpuProfile||!e.enableCPUProfiler)return NJ(e,n,r);e.enableCPUProfiler(r.options.generateCpuProfile,()=>NJ(e,n,r))}function LJ(e,n){return(!e.watchFile||!e.watchDirectory)&&(n(nS(fa.The_current_host_does_not_support_the_0_option,"--watch")),e.exit(1),!0)}var kJ=2;function wJ(e,n,t,r,o,i){const a=gJ(e,_K(e),t);if(t.locale&&pl(t.locale,e,i),i.length>0)return i.forEach(a),e.exit(1);if(t.help)return TJ(e),IJ(e,ew),e.exit(0);if(0===o.length)return TJ(e),IJ(e,ew),e.exit(0);if(!e.getModifiedTime||!e.setModifiedTime||t.clean&&!e.deleteFile)return a(nS(fa.The_current_host_does_not_support_the_0_option,"--build")),e.exit(1);if(t.watch){if(LJ(e,a))return;const i=uq(e,void 0,a,lq(e,vJ(e,t)),VJ(e,t));i.jsDocParsingMode=kJ;const s=jJ(e,t);zJ(e,n,i,s);const l=i.onWatchStatusChange;let c=!1;i.onWatchStatusChange=(e,n,t,r)=>{null==l||l(e,n,t,r),!c||e.code!==fa.Found_0_errors_Watching_for_file_changes.code&&e.code!==fa.Found_1_error_Watching_for_file_changes.code||UJ(d,s)};const d=fq(i,o,t,r);return d.build(),UJ(d,s),c=!0,d}const s=dq(e,void 0,a,lq(e,vJ(e,t)),OJ(e,t));s.jsDocParsingMode=kJ;const l=jJ(e,t);zJ(e,n,s,l);const c=pq(s,o,t),d=t.clean?c.clean():c.build();return UJ(c,l),pr(),e.exit(d)}function OJ(e,n){return vJ(e,n)?(n,t)=>e.write(RK(n,t,e.newLine,e)):void 0}function FJ(e,n,t,r){const{fileNames:o,options:i,projectReferences:a}=r,s=eU(i,void 0,e);s.jsDocParsingMode=kJ;const l=s.getCurrentDirectory(),c=Hn(s.useCaseSensitiveFileNames());nU(s,e=>Ki(e,l,c)),qJ(e,i,!1);const d=UU({rootNames:o,options:i,projectReferences:a,host:s,configFileParsingDiagnostics:BU(r)}),u=wK(d,t,n=>e.write(n+e.newLine),OJ(e,i));return XJ(e,d,void 0),n(d),e.exit(u)}function WJ(e,n,t,r){const{options:o,fileNames:i,projectReferences:a}=r;qJ(e,o,!1);const s=$K(o,e);s.jsDocParsingMode=kJ;const l=XK({host:s,system:e,rootNames:i,options:o,configFileParsingDiagnostics:BU(r),projectReferences:a,reportDiagnostic:t,reportErrorSummary:OJ(e,o),afterProgramEmitAndDiagnostics:t=>{XJ(e,t.getProgram(),void 0),n(t)}});return e.exit(l)}function zJ(e,n,t,r){BJ(e,t,!0),t.afterProgramEmitAndDiagnostics=t=>{XJ(e,t.getProgram(),r),n(t)}}function BJ(e,n,t){const r=n.createProgram;n.createProgram=(n,o,i,a,s,l)=>(dt.assert(void 0!==n||void 0===o&&!!a),void 0!==o&&qJ(e,o,t),r(n,o,i,a,s,l))}function GJ(e,n,t){t.jsDocParsingMode=kJ,BJ(e,t,!1);const r=t.afterProgramCreate;t.afterProgramCreate=t=>{r(t),XJ(e,t.getProgram(),void 0),n(t)}}function VJ(e,n){return bK(e,vJ(e,n))}function jJ(e,n){if(e===di&&n.extendedDiagnostics)return cr(),function(){let e;return{addAggregateStatistic:n,forEachAggregateStatistics:t,clear:r};function n(n){const t=null==e?void 0:e.get(n.name);t?2===t.type?t.value=Math.max(t.value,n.value):t.value+=n.value:(e??(e=new Map)).set(n.name,n)}function t(n){null==e||e.forEach(n)}function r(){e=void 0}}()}function UJ(e,n){if(!n)return;if(!lr())return void di.write(fa.Performance_timings_for_diagnostics_or_extendedDiagnostics_are_not_available_in_this_session_A_native_implementation_of_the_Web_Performance_API_could_not_be_found.message+"\n");const t=[];function r(e){const n=tr(e);n&&t.push({name:o(e),value:n,type:1})}function o(e){return e.replace("SolutionBuilder::","")}t.push({name:"Projects in scope",value:sq(e.getBuildOrder()).length,type:1}),r("SolutionBuilder::Projects built"),r("SolutionBuilder::Timestamps only updates"),r("SolutionBuilder::Bundles updated"),n.forEachAggregateStatistics(e=>{e.name=`Aggregate ${e.name}`,t.push(e)}),or((e,n)=>{JJ(e)&&t.push({name:`${o(e)} time`,value:n,type:0})}),dr(),cr(),n.clear(),YJ(di,t)}function HJ(e,n){return e===di&&(n.diagnostics||n.extendedDiagnostics)}function KJ(e,n){return e===di&&n.generateTrace}function qJ(e,n,t){HJ(e,n)&&cr(e),KJ(e,n)&&ur(t?"build":"project",n.generateTrace,n.configFilePath)}function JJ(e){return Xn(e,"SolutionBuilder::")}function XJ(e,n,t){var r;const o=n.getCompilerOptions();let i;if(KJ(e,o)&&(null==(r=Kt)||r.stopTracing()),HJ(e,o)){i=[];const r=e.getMemoryUsage?e.getMemoryUsage():-1;s("Files",n.getSourceFiles().length);const c=_J(n);if(o.extendedDiagnostics)for(const[e,n]of c.entries())s("Lines of "+e,n);else s("Lines",m(c.values(),(e,n)=>e+n,0));s("Identifiers",n.getIdentifierCount()),s("Symbols",n.getSymbolCount()),s("Types",n.getTypeCount()),s("Instantiations",n.getInstantiationCount()),r>=0&&a({name:"Memory used",value:r,type:2},!0);const d=lr(),u=d?rr("Program"):0,p=d?rr("Bind"):0,f=d?rr("Check"):0,h=d?rr("Emit"):0;if(o.extendedDiagnostics){const e=n.getRelationCacheSizes();s("Assignability cache size",e.assignable),s("Identity cache size",e.identity),s("Subtype cache size",e.subtype),s("Strict subtype cache size",e.strictSubtype),d&&or((e,n)=>{JJ(e)||l(`${e} time`,n,!0)})}else d&&(l("I/O read",rr("I/O Read"),!0),l("I/O write",rr("I/O Write"),!0),l("Parse time",u,!0),l("Bind time",p,!0),l("Check time",f,!0),l("Emit time",h,!0));d&&l("Total time",u+p+f+h,!1),YJ(e,i),d?t?(or(e=>{JJ(e)||ar(e)}),ir(e=>{JJ(e)||sr(e)})):dr():e.write(fa.Performance_timings_for_diagnostics_or_extendedDiagnostics_are_not_available_in_this_session_A_native_implementation_of_the_Web_Performance_API_could_not_be_found.message+"\n")}function a(e,n){i.push(e),n&&(null==t||t.addAggregateStatistic(e))}function s(e,n){a({name:e,value:n,type:1},!0)}function l(e,n,t){a({name:e,value:n,type:0},t)}}function YJ(e,n){let t=0,r=0;for(const o of n){o.name.length>t&&(t=o.name.length);const e=$J(o);e.length>r&&(r=e.length)}for(const o of n)e.write(`${o.name}:`.padEnd(t+2)+$J(o).toString().padStart(r)+e.newLine)}function $J(e){switch(e.type){case 1:return""+e.value;case 0:return(e.value/1e3).toFixed(2)+"s";case 2:return Math.round(e.value/1e3)+"K";default:dt.assertNever(e.type)}}function QJ(e,n=!0){return{type:e,reportFallback:n}}var ZJ=QJ(void 0,!1),eX=QJ(void 0,!1),nX=QJ(void 0,!0);function tX(e,n){const t=US(e,"strictNullChecks");return{serializeTypeOfDeclaration:function(e,t,r){switch(e.kind){case 170:case 342:return u(e,t,r);case 261:return function(e,t,r){var o;const i=gv(e);let s=nX;i?s=QJ(a(i,r,e,t)):!e.initializer||1!==(null==(o=t.declarations)?void 0:o.length)&&1!==A(t.declarations,fN)||n.isExpandoFunctionDeclaration(e)||N(e)||(s=g(e.initializer,r,void 0,void 0,dm(e)));return void 0!==s.type?s.type:p(e,t,r,s.reportFallback)}(e,t,r);case 172:case 349:case 173:return function(e,t,r){const o=gv(e),i=n.requiresAddingImplicitUndefined(e,t,r.enclosingDeclaration);let s=nX;if(o)s=QJ(a(o,r,e,t,i));else{const n=MD(e)?e.initializer:void 0;if(n&&!N(e)){s=g(n,r,void 0,i,am(e))}}return void 0!==s.type?s.type:p(e,t,r,s.reportFallback)}(e,t,r);case 209:return p(e,t,r);case 278:return c(e.expression,r,void 0,!0);case 212:case 213:case 227:return function(e,n,t){const r=gv(e);let o;r&&(o=a(r,t,e,n));const i=t.suppressReportInferenceFallback;t.suppressReportInferenceFallback=!0;const s=o??p(e,n,t,!1);return t.suppressReportInferenceFallback=i,s}(e,t,r);case 304:case 305:return function(e,t,r){const o=gv(e);let a;o&&n.canReuseTypeNodeAnnotation(r,e,o,t)&&(a=i(o,r));if(!a&&304===e.kind){const o=e.initializer,s=DP(o)?CP(o):235===o.kind||217===o.kind?o.type:void 0;s&&!xc(s)&&n.canReuseTypeNodeAnnotation(r,e,s,t)&&(a=i(s,r))}return a??p(e,t,r,!1)}(e,t,r);default:dt.assertNever(e,`Node needs to be an inferrable node, found ${dt.formatSyntaxKind(e.kind)}`)}},serializeReturnTypeForSignature:function(e,n,t){switch(e.kind){case 178:return l(e,n,t);case 175:case 263:case 181:case 174:case 180:case 177:case 179:case 182:case 185:case 186:case 219:case 220:case 318:case 324:return C(e,n,t);default:dt.assertNever(e,`Node needs to be an inferrable node, found ${dt.formatSyntaxKind(e.kind)}`)}},serializeTypeOfExpression:c,serializeTypeOfAccessor:l,tryReuseExistingTypeNode(e,t){if(n.canReuseTypeNode(e,t))return o(e,t)}};function r(e,t,r=t){return void 0===t?void 0:n.markNodeReuse(e,16&t.flags?t:vR.cloneNode(t),r??t)}function o(t,o){const{finalizeBoundary:i,startRecoveryScope:a,hadError:s,markError:l}=n.createRecoveryBoundary(t),c=vB(o,d,Ed);if(i())return t.approximateLength+=o.end-o.pos,c;function d(o){if(s())return o;const i=a(),c=kx(o)?n.enterNewScope(t,o):void 0,u=function(o){var i;if(fM(o))return vB(o.type,d,Ed);if(vM(o)||320===o.kind)return vR.createKeywordTypeNode(133);if(bM(o))return vR.createKeywordTypeNode(159);if(TM(o))return vR.createUnionTypeNode([vB(o.type,d,Ed),vR.createLiteralTypeNode(vR.createNull())]);if(EM(o))return vR.createUnionTypeNode([vB(o.type,d,Ed),vR.createKeywordTypeNode(157)]);if(SM(o))return vB(o.type,d);if(xM(o))return vR.createArrayTypeNode(vB(o.type,d,Ed));if(DM(o))return vR.createTypeLiteralNode(D(o.jsDocPropertyTags,e=>{const r=vB(dD(e.name)?e.name:e.name.right,d,dD),i=n.getJsDocPropertyOverride(t,o,e);return vR.createPropertySignature(void 0,r,e.isBracketed||e.typeExpression&&EM(e.typeExpression.type)?vR.createToken(58):void 0,i||e.typeExpression&&vB(e.typeExpression.type,d,Ed)||vR.createKeywordTypeNode(133))}));if(VD(o)&&dD(o.typeName)&&""===o.typeName.escapedText)return TR(vR.createKeywordTypeNode(133),o);if((WC(o)||VD(o))&&Fh(o))return vR.createTypeLiteralNode([vR.createIndexSignature(void 0,[vR.createParameterDeclaration(void 0,void 0,"x",void 0,vB(o.typeArguments[0],d,Ed))],vB(o.typeArguments[1],d,Ed))]);if(AM(o)){if(N_(o)){let e;return vR.createConstructorTypeNode(void 0,bB(o.typeParameters,d,ID),F(o.parameters,(r,o)=>r.name&&dD(r.name)&&"new"===r.name.escapedText?void(e=r.type):vR.createParameterDeclaration(void 0,c(r),n.markNodeReuse(t,vR.createIdentifier(u(r,o)),r),vR.cloneNode(r.questionToken),vB(r.type,d,Ed),void 0)),vB(e||o.type,d,Ed)||vR.createKeywordTypeNode(133))}return vR.createFunctionTypeNode(bB(o.typeParameters,d,ID),D(o.parameters,(e,r)=>vR.createParameterDeclaration(void 0,c(e),n.markNodeReuse(t,vR.createIdentifier(u(e,r)),e),vR.cloneNode(e.questionToken),vB(e.type,d,Ed),void 0)),vB(o.type,d,Ed)||vR.createKeywordTypeNode(133))}if(rC(o))return n.canReuseTypeNode(t,o)||l(),o;if(ID(o)){const{node:e}=n.trackExistingEntityName(t,o.name);return vR.updateTypeParameterDeclaration(o,bB(o.modifiers,d,td),e,vB(o.constraint,d,Ed),vB(o.default,d,Ed))}if(iC(o)){const e=p(o);return e||(l(),o)}if(VD(o)){const e=h(o);return e||(l(),o)}if(hm(o)){if(132===(null==(i=o.attributes)?void 0:i.token))return l(),o;if(!n.canReuseTypeNode(t,o))return n.serializeExistingTypeNode(t,o);const e=_(o,o.argument.literal),a=e===o.argument.literal?r(t,o.argument.literal):e;return vR.updateImportTypeNode(o,a===o.argument.literal?r(t,o.argument):vR.createLiteralTypeNode(a),vB(o.attributes,d,NN),vB(o.qualifier,d,rd),bB(o.typeArguments,d,Ed),o.isTypeOf)}if(Rl(o)&&168===o.name.kind&&!n.hasLateBindableName(o)){if(!Gg(o))return a(o,d);if(n.shouldRemoveDeclaration(t,o))return}if(ad(o)&&!o.type||MD(o)&&!o.type&&!o.initializer||ND(o)&&!o.type&&!o.initializer||DD(o)&&!o.type&&!o.initializer){let e=a(o,d);return e===o&&(e=n.markNodeReuse(t,vR.cloneNode(o),o)),e.type=vR.createKeywordTypeNode(133),DD(o)&&(e.modifiers=void 0),e}if(HD(o)){const e=m(o);return e||(l(),o)}if(RD(o)&&db(o.expression)){const{node:r,introducesError:i}=n.trackExistingEntityName(t,o.expression);if(i){const r=n.serializeTypeOfExpression(t,o.expression);let i;if(sC(r))i=r.literal;else{const e=n.evaluateEntityNameExpression(o.expression),a="string"==typeof e.value?vR.createStringLiteral(e.value,void 0):"number"==typeof e.value?vR.createNumericLiteral(e.value,0):void 0;if(!a)return lC(r)&&n.trackComputedName(t,o.expression),o;i=a}return 11===i.kind&&ys(i.text,SS(e))?vR.createIdentifier(i.text):9!==i.kind||i.text.startsWith("-")?vR.updateComputedPropertyName(o,i):i}return vR.updateComputedPropertyName(o,r)}if(GD(o)){let e;if(dD(o.parameterName)){const{node:r,introducesError:i}=n.trackExistingEntityName(t,o.parameterName);i&&l(),e=r}else e=vR.cloneNode(o.parameterName);return vR.updateTypePredicateNode(o,vR.cloneNode(o.assertsModifier),e,vB(o.type,d,Ed))}if(JD(o)||KD(o)||aC(o)){const e=a(o,d),r=n.markNodeReuse(t,e===o?vR.cloneNode(o):e,o);return xR(r,tf(r)|(1024&t.flags&&KD(o)?0:1)),r}if(qI(o)&&268435456&t.flags&&!o.singleQuote){const e=vR.cloneNode(o);return e.singleQuote=!0,e}if(eC(o)){const e=vB(o.checkType,d,Ed),r=n.enterNewScope(t,o),i=vB(o.extendsType,d,Ed),a=vB(o.trueType,d,Ed);r();const s=vB(o.falseType,d,Ed);return vR.updateConditionalTypeNode(o,e,i,a,s)}if(oC(o))if(158===o.operator&&155===o.type.kind){if(!n.canReuseTypeNode(t,o))return l(),o}else if(143===o.operator){const e=f(o);return e||(l(),o)}return a(o,d);function a(e,n){return CB(e,n,void 0,!t.enclosingFile||t.enclosingFile!==Sp(e)?s:void 0)}function s(e,n,t,r,o){let i=bB(e,n,t,r,o);return i&&(-1===i.pos&&-1===i.end||(i===e&&(i=vR.createNodeArray(e.slice(),e.hasTrailingComma)),CA(i,-1,-1))),i}function c(e){return e.dotDotDotToken||(e.type&&xM(e.type)?vR.createToken(26):void 0)}function u(e,n){return e.name&&dD(e.name)&&"this"===e.name.escapedText?"this":c(e)?"args":`arg${n}`}function _(e,r){const o=n.getModuleSpecifierOverride(t,e,r);return o?TR(vR.createStringLiteral(o),r):r}}(o);return null==c||c(),s()?Ed(o)&&!GD(o)?(i(),n.serializeExistingTypeNode(t,o)):o:u?n.markNodeReuse(t,u,o):void 0}function u(e){const n=lg(e);switch(n.kind){case 184:return h(n);case 187:return m(n);case 200:return p(n);case 199:const e=n;if(143===e.operator)return f(e)}return vB(e,d,Ed)}function p(e){const n=u(e.objectType);if(void 0!==n)return vR.updateIndexedAccessTypeNode(e,n,vB(e.indexType,d,Ed))}function f(e){dt.assertEqual(e.operator,143);const n=u(e.type);if(void 0!==n)return vR.updateTypeOperatorNode(e,n)}function m(e){const{introducesError:r,node:o}=n.trackExistingEntityName(t,e.exprName);if(!r)return vR.updateTypeQueryNode(e,o,bB(e.typeArguments,d,Ed));const i=n.serializeTypeName(t,e.exprName,!0);return i?n.markNodeReuse(t,i,e.exprName):void 0}function h(e){if(n.canReuseTypeNode(t,e)){const{introducesError:r,node:o}=n.trackExistingEntityName(t,e.typeName),i=bB(e.typeArguments,d,Ed);if(!r){const r=vR.updateTypeReferenceNode(e,o,i);return n.markNodeReuse(t,r,e)}{const r=n.serializeTypeName(t,e.typeName,!1,i);if(r)return n.markNodeReuse(t,r,e.typeName)}}}}function i(e,t,r){if(!e)return;let i;return r&&!I(e)||!n.canReuseTypeNode(t,e)||(i=o(t,e),void 0!==i&&(i=R(i,r,void 0,t))),i}function a(e,t,r,o,a,s=void 0!==a){if(!e)return;if(!(n.canReuseTypeNodeAnnotation(t,r,e,o,a)||a&&n.canReuseTypeNodeAnnotation(t,r,e,o,!1)))return;let l;return a&&!I(e)||(l=i(e,t,a)),void 0===l&&s?(t.tracker.reportInferenceFallback(r),n.serializeExistingTypeNode(t,e,a)??vR.createKeywordTypeNode(133)):l}function s(e,t,r,o){if(!e)return;const a=i(e,t,r);return void 0!==a?a:(t.tracker.reportInferenceFallback(e),n.serializeExistingTypeNode(t,e,r)??vR.createKeywordTypeNode(133))}function l(e,t,r){return function(e,t,r){const o=n.getAllAccessorDeclarations(e),i=function(e,n){let t=d(e);t||e===n.firstAccessor||(t=d(n.firstAccessor));!t&&n.secondAccessor&&e!==n.secondAccessor&&(t=d(n.secondAccessor));return t}(e,o);if(i&&!GD(i))return h(r,e,()=>a(i,r,e,t)??p(e,t,r));if(o.getAccessor)return h(r,o.getAccessor,()=>C(o.getAccessor,t,r));return}(e,t,r)??m(e,n.getAllAccessorDeclarations(e),r,t)}function c(e,n,t,r){const o=g(e,n,!1,t,r);return void 0!==o.type?o.type:f(e,n,o.reportFallback)}function d(e){if(e)return 178===e.kind?Lh(e)&&ic(e)||vv(e):Tv(e)}function u(e,t,r){const o=e.parent;if(179===o.kind)return l(o,void 0,r);const i=gv(e),s=n.requiresAddingImplicitUndefined(e,t,r.enclosingDeclaration);let c=nX;return i?c=QJ(a(i,r,e,t,s)):DD(e)&&e.initializer&&dD(e.name)&&!N(e)&&(c=g(e.initializer,r,void 0,s)),void 0!==c.type?c.type:p(e,t,r,c.reportFallback)}function p(e,t,r,o=!0){return o&&r.tracker.reportInferenceFallback(e),!0===r.noInferenceFallback?vR.createKeywordTypeNode(133):n.serializeTypeOfDeclaration(r,e,t)}function f(e,t,r=!0,o){return dt.assert(!o),r&&t.tracker.reportInferenceFallback(e),!0===t.noInferenceFallback?vR.createKeywordTypeNode(133):n.serializeTypeOfExpression(t,e)??vR.createKeywordTypeNode(133)}function m(e,t,r,o,i=!0){if(178===e.kind)return C(e,o,r,i);i&&r.tracker.reportInferenceFallback(e);return(t.getAccessor&&C(t.getAccessor,o,r,i))??n.serializeTypeOfDeclaration(r,e,o)??vR.createKeywordTypeNode(133)}function h(e,t,r){const o=n.enterNewScope(e,t),i=r();return o(),i}function _(e,n,t,r){return xc(n)?g(e,t,!0,r):QJ(s(n,t,r))}function g(e,r,o=!1,i=!1,a=!1){switch(e.kind){case 218:return DP(e)?_(e.expression,CP(e),r,i):g(e.expression,r,o,i);case 80:if(n.isUndefinedIdentifierExpression(e))return QJ(E());break;case 106:return QJ(t?R(vR.createLiteralTypeNode(vR.createNull()),i,e,r):vR.createKeywordTypeNode(133));case 220:case 219:return dt.type(e),h(r,e,()=>function(e,n){const t=C(e,void 0,n),r=b(e.typeParameters,n),o=e.parameters.map(e=>v(e,n));return QJ(vR.createFunctionTypeNode(r,o,t))}(e,r));case 217:case 235:const s=e;return _(s.expression,s.type,r,i);case 225:const l=e;if(Ax(l))return x(40===l.operator?l.operand:l,10===l.operand.kind?163:150,r,o||a,i);break;case 210:return function(e,n,t,r){if(!function(e,n,t){if(!t)return n.tracker.reportInferenceFallback(e),!1;for(const r of e.elements)if(231===r.kind)return n.tracker.reportInferenceFallback(r),!1;return!0}(e,n,t))return r||fu(ag(e).parent)?eX:QJ(f(e,n,!1,r));const o=n.noInferenceFallback;n.noInferenceFallback=!0;const i=[];for(const a of e.elements)if(dt.assert(231!==a.kind),233===a.kind)i.push(E());else{const e=g(a,n,t),r=void 0!==e.type?e.type:f(a,n,e.reportFallback);i.push(r)}return vR.createTupleTypeNode(i).emitNode={flags:1,autoGenerate:void 0,internalFlags:0},n.noInferenceFallback=o,ZJ}(e,r,o,i);case 211:return function(e,t,r,o){if(!function(e,t){let r=!0;for(const o of e.properties){if(262144&o.flags){r=!1;break}if(305===o.kind||306===o.kind)t.tracker.reportInferenceFallback(o),r=!1;else{if(262144&o.name.flags){r=!1;break}if(81===o.name.kind)r=!1;else if(168===o.name.kind){const e=o.name.expression;Ax(e,!1)||n.isDefinitelyReferenceToGlobalSymbolObject(e)||(t.tracker.reportInferenceFallback(o.name),r=!1)}}}return r}(e,t))return o||fu(ag(e).parent)?eX:QJ(f(e,t,!1,o));const i=t.noInferenceFallback;t.noInferenceFallback=!0;const a=[],s=t.flags;t.flags|=4194304;for(const n of e.properties){dt.assert(!lM(n)&&!cM(n));const e=n.name;let o;switch(n.kind){case 175:o=h(t,n,()=>T(n,e,t,r));break;case 304:o=y(n,e,t,r);break;case 179:case 178:o=S(n,e,t)}o&&(OR(o,n),a.push(o))}t.flags=s;const l=vR.createTypeLiteralNode(a);1024&t.flags||xR(l,1);return t.noInferenceFallback=i,ZJ}(e,r,o,i);case 232:return QJ(f(e,r,!0,i));case 229:if(!o&&!a)return QJ(vR.createKeywordTypeNode(154));break;default:let c,d=e;switch(e.kind){case 9:c=150;break;case 15:d=vR.createStringLiteral(e.text),c=154;break;case 11:c=154;break;case 10:c=163;break;case 112:case 97:c=136}if(c)return x(d,c,r,o||a,i)}return nX}function y(e,n,t,o){const i=o?[vR.createModifier(148)]:[],a=g(e.initializer,t,o),s=void 0!==a.type?a.type:p(e,void 0,t,a.reportFallback);return vR.createPropertySignature(i,r(t,n),void 0,s)}function v(e,t){return vR.updateParameterDeclaration(e,void 0,r(t,e.dotDotDotToken),n.serializeNameOfParameter(t,e),n.isOptionalParameter(e)?vR.createToken(58):void 0,u(e,void 0,t),void 0)}function b(e,t){return null==e?void 0:e.map(e=>{var o;const{node:i}=n.trackExistingEntityName(t,e.name);return vR.updateTypeParameterDeclaration(e,null==(o=e.modifiers)?void 0:o.map(e=>r(t,e)),i,s(e.constraint,t),s(e.default,t))})}function T(e,n,t,o){const i=C(e,void 0,t),a=b(e.typeParameters,t),s=e.parameters.map(e=>v(e,t));return o?vR.createPropertySignature([vR.createModifier(148)],r(t,n),r(t,e.questionToken),vR.createFunctionTypeNode(a,s,i)):(dD(n)&&"new"===n.escapedText&&(n=vR.createStringLiteral("new")),vR.createMethodSignature([],r(t,n),r(t,e.questionToken),a,s,i))}function S(e,t,o){const i=n.getAllAccessorDeclarations(e),a=i.getAccessor&&d(i.getAccessor),l=i.setAccessor&&d(i.setAccessor);if(void 0!==a&&void 0!==l)return h(o,e,()=>{const n=e.parameters.map(e=>v(e,o));return Nu(e)?vR.updateGetAccessorDeclaration(e,[],r(o,t),n,s(a,o),void 0):vR.updateSetAccessorDeclaration(e,[],r(o,t),n,void 0)});if(i.firstAccessor===e){const n=(a?h(o,i.getAccessor,()=>s(a,o)):l?h(o,i.setAccessor,()=>s(l,o)):void 0)??m(e,i,o,void 0);return vR.createPropertySignature(void 0===i.setAccessor?[vR.createModifier(148)]:[],r(o,t),void 0,n)}}function E(){return t?vR.createKeywordTypeNode(157):vR.createKeywordTypeNode(133)}function x(e,n,t,o,i){let a;return o?(225===e.kind&&40===e.operator&&(a=vR.createLiteralTypeNode(r(t,e.operand))),a=vR.createLiteralTypeNode(r(t,e))):a=vR.createKeywordTypeNode(n),QJ(R(a,i,e,t))}function R(e,n,r,o){const i=r&&ag(r).parent,a=i&&fu(i)&&ex(i);return t&&(n||a)?(I(e)||o.tracker.reportInferenceFallback(e),QD(e)?vR.createUnionTypeNode([...e.types,vR.createKeywordTypeNode(157)]):vR.createUnionTypeNode([e,vR.createKeywordTypeNode(157)])):e}function I(e){return!t||(!(!Dg(e.kind)&&202!==e.kind&&185!==e.kind&&186!==e.kind&&189!==e.kind&&190!==e.kind&&188!==e.kind&&204!==e.kind&&198!==e.kind)||(197===e.kind?I(e.type):(193===e.kind||194===e.kind)&&e.types.every(I)))}function C(e,t,r,o=!0){let s=nX;const l=N_(e)?gv(e.parameters[0]):vv(e);return l?s=QJ(a(l,r,e,t)):rg(e)&&(s=function(e,n){let t;if(e&&!Np(e.body)){if(3&Fg(e))return nX;const n=e.body;n&&JC(n)?Mm(n,e=>e.parent!==n||t?(t=void 0,!0):void(t=e.expression)):t=n}if(t){if(!N(t))return g(t,n);{const e=DP(t)?CP(t):zC(t)||TC(t)?t.type:void 0;if(e&&!xc(e))return QJ(i(e,n))}}return nX}(e,r)),void 0!==s.type?s.type:function(e,t,r,o){return o&&t.tracker.reportInferenceFallback(e),!0===t.noInferenceFallback?vR.createKeywordTypeNode(133):n.serializeReturnTypeForSignature(t,e,r)??vR.createKeywordTypeNode(133)}(e,r,t,o&&s.reportFallback&&!l)}function N(e){return ml(e.parent,e=>yC(e)||!ld(e)&&!!gv(e)||HN(e)||nM(e))}}var rX={};t(rX,{NameValidationResult:()=>RX,discoverTypings:()=>AX,isTypingUpToDate:()=>bX,loadSafeList:()=>SX,loadTypesMap:()=>EX,nonRelativeModuleNameForTypingCache:()=>TX,renderPackageNameValidationFailure:()=>NX,validatePackageName:()=>DX});var oX,iX,aX="action::set",sX="action::invalidate",lX="action::packageInstalled",cX="event::typesRegistry",dX="event::beginInstallTypes",uX="event::endInstallTypes",pX="event::initializationFailed",fX="action::watchTypingLocations";function mX(e){return di.args.includes(e)}function hX(e){const n=di.args.indexOf(e);return n>=0&&n<di.args.length-1?di.args[n+1]:void 0}function _X(){const e=new Date;return`${e.getHours().toString().padStart(2,"0")}:${e.getMinutes().toString().padStart(2,"0")}:${e.getSeconds().toString().padStart(2,"0")}.${e.getMilliseconds().toString().padStart(3,"0")}`}(iX=oX||(oX={})).GlobalCacheLocation="--globalTypingsCacheLocation",iX.LogFile="--logFile",iX.EnableTelemetry="--enableTelemetry",iX.TypingSafeListLocation="--typingSafeListLocation",iX.TypesMapLocation="--typesMapLocation",iX.NpmLocation="--npmLocation",iX.ValidateDefaultNpmLocation="--validateDefaultNpmLocation";var gX="\n ";function yX(e){return gX+e.replace(/\n/g,gX)}function vX(e){return yX(JSON.stringify(e,void 0,2))}function bX(e,n){return new vt(De(n,`ts${o}`)||De(n,"latest")).compareTo(e.version)<=0}function TX(e){return Mx.has(e)?"node":e}function SX(e,n){const t=Aw(n,n=>e.readFile(n));return new Map(Object.entries(t.config))}function EX(e,n){var t;const r=Aw(n,n=>e.readFile(n));if(null==(t=r.config)?void 0:t.simpleMap)return new Map(Object.entries(r.config.simpleMap))}function AX(e,n,t,r,o,i,a,s,l,c){if(!a||!a.enable)return{cachedTypingPaths:[],newTypingNames:[],filesToWatch:[]};const u=new Map;t=F(t,e=>{const n=ji(e);if(WE(n))return n});const p=[];a.include&&y(a.include,"Explicitly included types");const f=a.exclude||[];if(!c.types){const e=new Set(t.map(Mi));e.add(r),e.forEach(e=>{v(e,"bower.json","bower_components",p),v(e,"package.json","node_modules",p)})}if(a.disableFilenameBasedTypeAcquisition||function(e){const t=F(e,e=>{if(!WE(e))return;const n=Bn(qE(dn(Pi(e))));return o.get(n)});t.length&&y(t,"Inferred typings from file names");U(e,e=>xi(e,".jsx"))&&(n&&n("Inferred 'react' typings due to presence of '.jsx' extension"),g("react"))}(t),s){y(Y(s.map(TX),gn,xn),"Inferred typings from unresolved imports")}for(const d of f){u.delete(d)&&n&&n(`Typing for ${d} is in exclude list, will be ignored.`)}i.forEach((e,n)=>{const t=l.get(n);!1===u.get(n)&&void 0!==t&&bX(e,t)&&u.set(n,e.typingLocation)});const m=[],h=[];u.forEach((e,n)=>{e?h.push(e):m.push(n)});const _={cachedTypingPaths:h,newTypingNames:m,filesToWatch:p};return n&&n(`Finished typings discovery:${vX(_)}`),_;function g(e){u.has(e)||u.set(e,!1)}function y(e,t){n&&n(`${t}: ${JSON.stringify(e)}`),d(e,g)}function v(t,r,o,i){const a=zi(t,r);let s,l;e.fileExists(a)&&(i.push(a),s=Aw(a,n=>e.readFile(n)).config,l=P([s.dependencies,s.devDependencies,s.optionalDependencies,s.peerDependencies],Ce),y(l,`Typing names in '${a}' dependencies`));const c=zi(t,o);if(i.push(c),!e.directoryExists(c))return;const d=[],p=l?l.map(e=>zi(c,e,r)):e.readDirectory(c,[".json"],void 0,void 0,3).filter(e=>{if(Pi(e)!==r)return!1;const n=wi(ji(e)),t="@"===n[n.length-3][0];return t&&dn(n[n.length-4])===o||!t&&dn(n[n.length-3])===o});n&&n(`Searching for typing names in ${c}; all files: ${JSON.stringify(p)}`);for(const f of p){const t=ji(f),r=Aw(t,n=>e.readFile(n)).config;if(!r.name)continue;const o=r.types||r.typings;if(o){const i=Vi(o,Mi(t));e.fileExists(i)?(n&&n(` Package '${r.name}' provides its own types.`),u.set(r.name,i)):n&&n(` Package '${r.name}' provides its own types but they are missing.`)}else d.push(r.name)}y(d," Found package names")}}var xX,RX=(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",e))(RX||{}),IX=214;function DX(e){return CX(e,!0)}function CX(e,n){if(!e)return 1;if(e.length>IX)return 2;if(46===e.charCodeAt(0))return 3;if(95===e.charCodeAt(0))return 4;if(n){const n=/^@([^/]+)\/([^/]+)$/.exec(e);if(n){const e=CX(n[1],!1);if(0!==e)return{name:n[1],isScopeName:!0,result:e};const t=CX(n[2],!1);return 0!==t?{name:n[2],isScopeName:!1,result:t}:0}}return encodeURIComponent(e)!==e?5:0}function NX(e,n){return"object"==typeof e?MX(n,e.result,e.name,e.isScopeName):MX(n,e,n,!1)}function MX(e,n,t,r){const o=r?"Scope":"Package";switch(n){case 1:return`'${e}':: ${o} name '${t}' cannot be empty`;case 2:return`'${e}':: ${o} name '${t}' should be less than ${IX} characters`;case 3:return`'${e}':: ${o} name '${t}' cannot start with '.'`;case 4:return`'${e}':: ${o} name '${t}' cannot start with '_'`;case 5:return`'${e}':: ${o} name '${t}' contains non URI safe characters`;case 0:return dt.fail();default:dt.assertNever(n)}}(e=>{class n{constructor(e){this.text=e}getText(e,n){return 0===e&&n===this.text.length?this.text:this.text.substring(e,n)}getLength(){return this.text.length}getChangeRange(){}}e.fromString=function(e){return new n(e)}})(xX||(xX={}));var PX=(e=>(e[e.Dependencies=1]="Dependencies",e[e.DevDependencies=2]="DevDependencies",e[e.PeerDependencies=4]="PeerDependencies",e[e.OptionalDependencies=8]="OptionalDependencies",e[e.All=15]="All",e))(PX||{}),LX=(e=>(e[e.Off=0]="Off",e[e.On=1]="On",e[e.Auto=2]="Auto",e))(LX||{}),kX=(e=>(e[e.Semantic=0]="Semantic",e[e.PartialSemantic=1]="PartialSemantic",e[e.Syntactic=2]="Syntactic",e))(kX||{}),wX={},OX=(e=>(e.Original="original",e.TwentyTwenty="2020",e))(OX||{}),FX=(e=>(e.All="All",e.SortAndCombine="SortAndCombine",e.RemoveUnused="RemoveUnused",e))(FX||{}),WX=(e=>(e[e.Invoked=1]="Invoked",e[e.TriggerCharacter=2]="TriggerCharacter",e[e.TriggerForIncompleteCompletions=3]="TriggerForIncompleteCompletions",e))(WX||{}),zX=(e=>(e.Type="Type",e.Parameter="Parameter",e.Enum="Enum",e))(zX||{}),BX=(e=>(e.none="none",e.definition="definition",e.reference="reference",e.writtenReference="writtenReference",e))(BX||{}),GX=(e=>(e[e.None=0]="None",e[e.Block=1]="Block",e[e.Smart=2]="Smart",e))(GX||{}),VX=(e=>(e.Ignore="ignore",e.Insert="insert",e.Remove="remove",e))(VX||{});function jX(e){return{indentSize:4,tabSize:4,newLineCharacter:e||"\n",convertTabsToSpaces:!0,indentStyle:2,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,semicolons:"ignore",trimTrailingWhitespace:!0,indentSwitchCase:!0}}var UX=jX("\n"),HX=(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[e.link=22]="link",e[e.linkName=23]="linkName",e[e.linkText=24]="linkText",e))(HX||{}),KX=(e=>(e[e.None=0]="None",e[e.MayIncludeAutoImports=1]="MayIncludeAutoImports",e[e.IsImportStatementCompletion=2]="IsImportStatementCompletion",e[e.IsContinuation=4]="IsContinuation",e[e.ResolvedModuleSpecifiers=8]="ResolvedModuleSpecifiers",e[e.ResolvedModuleSpecifiersBeyondLimit=16]="ResolvedModuleSpecifiersBeyondLimit",e[e.MayIncludeMethodSnippets=32]="MayIncludeMethodSnippets",e))(KX||{}),qX=(e=>(e.Comment="comment",e.Region="region",e.Code="code",e.Imports="imports",e))(qX||{}),JX=(e=>(e[e.JavaScript=0]="JavaScript",e[e.SourceMap=1]="SourceMap",e[e.Declaration=2]="Declaration",e))(JX||{}),XX=(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))(XX||{}),YX=(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))(YX||{}),$X=(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.variableUsingElement="using",e.variableAwaitUsingElement="await using",e.functionElement="function",e.localFunctionElement="local function",e.memberFunctionElement="method",e.memberGetAccessorElement="getter",e.memberSetAccessorElement="setter",e.memberVariableElement="property",e.memberAccessorVariableElement="accessor",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.link="link",e.linkName="link name",e.linkText="link text",e))($X||{}),QX=(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.deprecatedModifier="deprecated",e.dtsModifier=".d.ts",e.tsModifier=".ts",e.tsxModifier=".tsx",e.jsModifier=".js",e.jsxModifier=".jsx",e.jsonModifier=".json",e.dmtsModifier=".d.mts",e.mtsModifier=".mts",e.mjsModifier=".mjs",e.dctsModifier=".d.cts",e.ctsModifier=".cts",e.cjsModifier=".cjs",e))(QX||{}),ZX=(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))(ZX||{}),eY=(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))(eY||{}),nY=vs(99,!0),tY=(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))(tY||{});function rY(e){switch(e.kind){case 261:return Lh(e)&&Zl(e)?7:1;case 170:case 209:case 173:case 172:case 304:case 305:case 175:case 174:case 177:case 178:case 179:case 263:case 219:case 220:case 300:case 292:return 1;case 169:case 265:case 266:case 188:return 2;case 347:return void 0===e.name?3:2;case 307:case 264:return 3;case 268:return pf(e)||1===ZW(e)?5:4;case 267:case 276:case 277:case 272:case 273:case 278:case 279:return 7;case 308:return 5}return 7}function oY(e){const n=(e=r$(e)).parent;return 308===e.kind?1:ON(n)||zN(n)||UN(n)||wN(n)||RN(n)||AN(n)&&e===n.name?7:iY(e)?function(e){const n=167===e.kind?e:xD(e.parent)&&e.parent.right===e?e.parent:void 0;return n&&272===n.parent.kind?7:4}(e):pg(e)?rY(n):rd(e)&&ml(e,et(mM,Bu,hM))?7:function(e){_b(e)&&(e=e.parent);switch(e.kind){case 110:return!Eh(e);case 198:return!0}switch(e.parent.kind){case 184:return!0;case 206:return!e.parent.isTypeOf;case 234:return Cm(e.parent)}return!1}(e)?2:function(e){return function(e){let n=e,t=!0;if(167===n.parent.kind){for(;n.parent&&167===n.parent.kind;)n=n.parent;t=n.right===e}return 184===n.parent.kind&&!t}(e)||function(e){let n=e,t=!0;if(212===n.parent.kind){for(;n.parent&&212===n.parent.kind;)n=n.parent;t=n.name===e}if(!t&&234===n.parent.kind&&299===n.parent.parent.kind){const e=n.parent.parent.parent;return 264===e.kind&&119===n.parent.parent.token||265===e.kind&&96===n.parent.parent.token}return!1}(e)}(e)?4:ID(n)?(dt.assert(qM(n.parent)),2):sC(n)?3:1}function iY(e){if(!e.parent)return!1;for(;167===e.parent.kind;)e=e.parent;return Nh(e.parent)&&e.parent.moduleReference===e}function aY(e,n=!1,t=!1){return hY(e,yC,pY,n,t)}function sY(e,n=!1,t=!1){return hY(e,vC,pY,n,t)}function lY(e,n=!1,t=!1){return hY(e,zd,pY,n,t)}function cY(e,n=!1,t=!1){return hY(e,bC,fY,n,t)}function dY(e,n=!1,t=!1){return hY(e,CD,pY,n,t)}function uY(e,n=!1,t=!1){return hY(e,Eu,mY,n,t)}function pY(e){return e.expression}function fY(e){return e.tag}function mY(e){return e.tagName}function hY(e,n,t,r,o){let i=r?function(e){return AY(e)||xY(e)?e.parent:e}(e):_Y(e);return o&&(i=MP(i)),!!i&&!!i.parent&&n(i.parent)&&t(i.parent)===i}function _Y(e){return AY(e)?e.parent:e}function gY(e,n){for(;e;){if(257===e.kind&&e.label.escapedText===n)return e.label;e=e.parent}}function yY(e,n){return!!_C(e.expression)&&e.expression.name.text===n}function vY(e){var n;return dD(e)&&(null==(n=en(e.parent,Dc))?void 0:n.label)===e}function bY(e){var n;return dD(e)&&(null==(n=en(e.parent,cN))?void 0:n.label)===e}function TY(e){return bY(e)||vY(e)}function SY(e){var n;return(null==(n=en(e.parent,Du))?void 0:n.tagName)===e}function EY(e){var n;return(null==(n=en(e.parent,xD))?void 0:n.right)===e}function AY(e){var n;return(null==(n=en(e.parent,_C))?void 0:n.name)===e}function xY(e){var n;return(null==(n=en(e.parent,gC))?void 0:n.argumentExpression)===e}function RY(e){var n;return(null==(n=en(e.parent,bN))?void 0:n.name)===e}function IY(e){var n;return dD(e)&&(null==(n=en(e.parent,ad))?void 0:n.name)===e}function DY(e){switch(e.parent.kind){case 173:case 172:case 304:case 307:case 175:case 174:case 178:case 179:case 268:return Dl(e.parent)===e;case 213:return e.parent.argumentExpression===e;case 168:return!0;case 202:return 200===e.parent.parent.kind;default:return!1}}function CY(e){return Ih(e.parent.parent)&&Dh(e.parent.parent)===e}function NY(e){for(M_(e)&&(e=e.parent.parent);;){if(!(e=e.parent))return;switch(e.kind){case 308:case 175:case 174:case 263:case 219:case 178:case 179:case 264:case 265:case 267:case 268:return e}}}function MY(e){switch(e.kind){case 308:return dk(e)?"module":"script";case 268:return"module";case 264:case 232:return"class";case 265:return"interface";case 266:case 339:case 347:return"type";case 267:return"enum";case 261:return n(e);case 209:return n(ny(e));case 220:case 263:case 219:return"function";case 178:return"getter";case 179:return"setter";case 175:case 174:return"method";case 304:const{initializer:t}=e;return ad(t)?"method":"property";case 173:case 172:case 305:case 306:return"property";case 182:return"index";case 181:return"construct";case 180:return"call";case 177:case 176:return"constructor";case 169:return"type parameter";case 307:return"enum member";case 170:return Mv(e,31)?"property":"parameter";case 272:case 277:case 282:case 275:case 281:return"alias";case 227:const r=o_(e),{right:o}=e;switch(r){case 7:case 8:case 9:case 0:default:return"";case 1:case 2:const e=MY(o);return""===e?"const":e;case 3:case 5:return EC(o)?"method":"property";case 4:return"property";case 6:return"local class"}case 80:return RN(e.parent)?"alias":"";case 278:const i=MY(e.expression);return""===i?"const":i;default:return""}function n(e){return cm(e)?"const":um(e)?"let":"var"}}function PY(e){switch(e.kind){case 110:return!0;case 80:return hv(e)&&170===e.parent.kind;default:return!1}}var LY=/^\/\/\/\s*</;function kY(e,n){return Ba(n)[n.getLineAndCharacterOfPosition(e).line]}function wY(e,n){return FY(e,n.pos)&&FY(e,n.end)}function OY(e,n){return e.pos<=n&&n<=e.end}function FY(e,n){return e.pos<n&&n<e.end}function WY(e,n,t){return e.pos<=n&&e.end>=t}function zY(e,n,t){return GY(e.pos,e.end,n,t)}function BY(e,n,t,r){return GY(e.getStart(n),e.end,t,r)}function GY(e,n,t,r){return Math.max(e,t)<Math.min(n,r)}function VY(e,n,t){return dt.assert(e.pos<=n),n<e.end||!jY(e,t)}function jY(e,n){if(void 0===e||Np(e))return!1;switch(e.kind){case 264:case 265:case 267:case 211:case 207:case 188:case 242:case 269:case 270:case 276:case 280:return UY(e,20,n);case 300:return jY(e.block,n);case 215:if(!e.arguments)return!0;case 214:case 218:case 197:return UY(e,22,n);case 185:case 186:return jY(e.type,n);case 177:case 178:case 179:case 263:case 219:case 175:case 174:case 181:case 180:case 220:return e.body?jY(e.body,n):e.type?jY(e.type,n):KY(e,22,n);case 268:return!!e.body&&jY(e.body,n);case 246:return e.elseStatement?jY(e.elseStatement,n):jY(e.thenStatement,n);case 245:return jY(e.expression,n)||KY(e,27,n);case 210:case 208:case 213:case 168:case 190:return UY(e,24,n);case 182:return e.type?jY(e.type,n):KY(e,24,n);case 297:case 298:return!1;case 249:case 250:case 251:case 248:return jY(e.statement,n);case 247:return KY(e,117,n)?UY(e,22,n):jY(e.statement,n);case 187:return jY(e.exprName,n);case 222:case 221:case 223:case 230:case 231:return jY(e.expression,n);case 216:return jY(e.template,n);case 229:return jY(ge(e.templateSpans),n);case 240:return Mp(e.literal);case 279:case 273:return Mp(e.moduleSpecifier);case 225:return jY(e.operand,n);case 227:return jY(e.right,n);case 228:return jY(e.whenFalse,n);default:return!0}}function UY(e,n,t){const r=e.getChildren(t);if(r.length){const e=ye(r);if(e.kind===n)return!0;if(27===e.kind&&1!==r.length)return r[r.length-2].kind===n}return!1}function HY(e){const n=JY(e);if(!n)return;return{listItemIndex:nf(n.getChildren(),e),list:n}}function KY(e,n,t){return!!qY(e,n,t)}function qY(e,n,t){return y(e.getChildren(t),e=>e.kind===n)}function JY(e){const n=y(e.parent.getChildren(),n=>nP(n)&&eT(n,e));return dt.assert(!n||S(n.getChildren(),e)),n}function XY(e){return 90===e.kind}function YY(e){return 86===e.kind}function $Y(e){return 100===e.kind}function QY(e,n){if(16777216&e.flags)return;const t=TZ(e,n);if(t)return t;const r=function(e){let n;return ml(e,e=>(Ed(e)&&(n=e),!xD(e.parent)&&!Ed(e.parent)&&!bd(e.parent))),n}(e);return r&&n.getTypeAtLocation(r)}function ZY(e,n){if(!n)switch(e.kind){case 264:case 232:return function(e){if(Rl(e))return e.name;if(_N(e)){const n=e.modifiers&&y(e.modifiers,XY);if(n)return n}if(OC(e)){const n=y(e.getChildren(),YY);if(n)return n}}(e);case 263:case 219:return function(e){if(Rl(e))return e.name;if(hN(e)){const n=y(e.modifiers,XY);if(n)return n}if(EC(e)){const n=y(e.getChildren(),$Y);if(n)return n}}(e);case 177:return e}if(Rl(e))return e.name}function e$(e,n){if(e.importClause){if(e.importClause.name&&e.importClause.namedBindings)return;if(e.importClause.name)return e.importClause.name;if(e.importClause.namedBindings){if(kN(e.importClause.namedBindings)){const n=ve(e.importClause.namedBindings.elements);if(!n)return;return n.name}if(PN(e.importClause.namedBindings))return e.importClause.namedBindings.name}}if(!n)return e.moduleSpecifier}function n$(e,n){if(e.exportClause){if(WN(e.exportClause)){if(!ve(e.exportClause.elements))return;return e.exportClause.elements[0].name}if(LN(e.exportClause))return e.exportClause.name}if(!n)return e.moduleSpecifier}function t$(e,n){const{parent:t}=e;if(td(e)&&(n||90!==e.kind)?CL(t)&&S(t.modifiers,e):86===e.kind?_N(t)||OC(e):100===e.kind?hN(t)||EC(e):120===e.kind?gN(t):94===e.kind?vN(t):156===e.kind?yN(t):145===e.kind||144===e.kind?bN(t):102===e.kind?AN(t):139===e.kind?OD(t):153===e.kind&&FD(t)){const e=ZY(t,n);if(e)return e}if((115===e.kind||87===e.kind||121===e.kind)&&mN(t)&&1===t.declarations.length){const e=t.declarations[0];if(dD(e.name))return e.name}if(156===e.kind){if(RN(t)&&t.isTypeOnly){const e=e$(t.parent,n);if(e)return e}if(FN(t)&&t.isTypeOnly){const e=n$(t,n);if(e)return e}}if(130===e.kind){if(wN(t)&&t.propertyName||zN(t)&&t.propertyName||PN(t)||LN(t))return t.name;if(FN(t)&&t.exportClause&&LN(t.exportClause))return t.exportClause.name}if(102===e.kind&&xN(t)){const e=e$(t,n);if(e)return e}if(95===e.kind){if(FN(t)){const e=n$(t,n);if(e)return e}if(ON(t))return MP(t.expression)}if(149===e.kind&&UN(t))return t.expression;if(161===e.kind&&(xN(t)||FN(t))&&t.moduleSpecifier)return t.moduleSpecifier;if((96===e.kind||119===e.kind)&&iM(t)&&t.token===e.kind){const e=function(e){if(1===e.types.length)return e.types[0].expression}(t);if(e)return e}if(96===e.kind){if(ID(t)&&t.constraint&&VD(t.constraint))return t.constraint.typeName;if(eC(t)&&VD(t.extendsType))return t.extendsType.typeName}if(140===e.kind&&nC(t))return t.typeParameter.name;if(103===e.kind&&ID(t)&&aC(t.parent))return t.name;if(143===e.kind&&oC(t)&&143===t.operator&&VD(t.type))return t.type.typeName;if(148===e.kind&&oC(t)&&148===t.operator&&qD(t.type)&&VD(t.type.elementType))return t.type.elementType.typeName;if(!n){if((105===e.kind&&vC(t)||116===e.kind&&IC(t)||114===e.kind&&RC(t)||135===e.kind&&DC(t)||127===e.kind&&kC(t)||91===e.kind&&xC(t))&&t.expression)return MP(t.expression);if((103===e.kind||104===e.kind)&&MC(t)&&t.operatorToken===e)return MP(t.right);if(130===e.kind&&zC(t)&&VD(t.type))return t.type.typeName;if(103===e.kind&&tN(t)||165===e.kind&&rN(t))return MP(t.expression)}return e}function r$(e){return t$(e,!1)}function o$(e){return t$(e,!0)}function i$(e,n){return a$(e,n,e=>Ug(e)||Dg(e.kind)||uD(e))}function a$(e,n,t){return l$(e,n,!1,t,!1)}function s$(e,n){return l$(e,n,!0,void 0,!1)}function l$(e,n,t,r,o){let i,a=e;for(;;){const o=a.getChildren(e),l=Ae(o,n,(e,n)=>n,(i,a)=>{const l=o[i].getEnd();if(l<n)return-1;const c=t?o[i].getFullStart():o[i].getStart(e,!0);return c>n?1:s(o[i],c,l)?o[i-1]&&s(o[i-1])?1:0:r&&c===n&&o[i-1]&&o[i-1].getEnd()===n&&s(o[i-1])?1:-1});if(i)return i;if(!(l>=0&&o[l]))return a;a=o[l]}function s(a,s,l){if(l??(l=a.getEnd()),l<n)return!1;if(s??(s=t?a.getFullStart():a.getStart(e,!0)),s>n)return!1;if(n<l||n===l&&(1===a.kind||o))return!0;if(r&&l===n){const t=p$(n,e,a);if(t&&r(t))return i=t,!0}return!1}}function c$(e,n){let t=s$(e,n);for(;y$(t);){const n=u$(t,t.parent,e);if(!n)return;t=n}return t}function d$(e,n){const t=s$(e,n);return Lc(t)&&n>t.getStart(e)&&n<t.getEnd()?t:p$(n,e)}function u$(e,n,t){return function n(r){if(Lc(r)&&r.pos===e.end)return r;return p(r.getChildren(t),r=>(r.pos<=e.pos&&r.end>e.end||r.pos===e.end)&&D$(r,t)?n(r):void 0)}(n)}function p$(e,n,t,r){const o=function o(i){if(f$(i)&&1!==i.kind)return i;const a=i.getChildren(n),s=Ae(a,e,(e,n)=>n,(n,t)=>e<a[n].end?!a[n-1]||e>=a[n-1].end?0:1:-1);if(s>=0&&a[s]){const t=a[s];if(e<t.end){if(t.getStart(n,!r)>=e||!D$(t,n)||y$(t)){const e=h$(a,s,n,i.kind);return e?!r&&Iu(e)&&e.getChildren(n).length?o(e):m$(e,n):void 0}return o(t)}}dt.assert(void 0!==t||308===i.kind||1===i.kind||Iu(i));const l=h$(a,a.length,n,i.kind);return l&&m$(l,n)}(t||n);return dt.assert(!(o&&y$(o))),o}function f$(e){return Lc(e)&&!y$(e)}function m$(e,n){if(f$(e))return e;const t=e.getChildren(n);if(0===t.length)return e;const r=h$(t,t.length,n,e.kind);return r&&m$(r,n)}function h$(e,n,t,r){for(let o=n-1;o>=0;o--){if(y$(e[o]))0!==o||12!==r&&286!==r||dt.fail("`JsxText` tokens should not be the first child of `JsxElement | JsxSelfClosingElement`");else if(D$(e[o],t))return e[o]}}function _$(e,n,t=p$(n,e)){if(t&&Kc(t)){const r=t.getStart(e),o=t.getEnd();if(r<n&&n<o)return!0;if(n===o)return!!t.isUnterminated}return!1}function g$(e,n){const t=s$(e,n);return!!t&&(12===t.kind||(30===t.kind&&12===t.parent.kind||(30===t.kind&&295===t.parent.kind||(!(!t||20!==t.kind||295!==t.parent.kind)||30===t.kind&&288===t.parent.kind))))}function y$(e){return JI(e)&&e.containsOnlyTriviaWhiteSpaces}function v$(e,n){const t=s$(e,n);return Wc(t.kind)&&n>t.getStart(e)}function b$(e,n){const t=s$(e,n);return!!JI(t)||(!(19!==t.kind||!nM(t.parent)||!HN(t.parent.parent))||!(30!==t.kind||!Eu(t.parent)||!HN(t.parent.parent)))}function T$(e,n){return function(t){for(;t;)if(t.kind>=286&&t.kind<=295||12===t.kind||30===t.kind||32===t.kind||80===t.kind||20===t.kind||19===t.kind||44===t.kind)t=t.parent;else{if(285!==t.kind)return!1;if(n>t.getStart(e))return!0;t=t.parent}return!1}(s$(e,n))}function S$(e,n,t){const r=Pa(e.kind),o=Pa(n),i=e.getFullStart(),a=t.text.lastIndexOf(o,i);if(-1===a)return;if(t.text.lastIndexOf(r,i-1)<a){const e=p$(a+1,t);if(e&&e.kind===n)return e}const s=e.kind;let l=0;for(;;){const r=p$(e.getFullStart(),t);if(!r)return;if((e=r).kind===n){if(0===l)return e;l--}else e.kind===s&&l++}}function E$(e,n,t){const r=x$(e,n);return void 0!==r&&(Cm(r.called)||0!==A$(r.called,r.nTypeArguments,t).length||E$(r.called,n,t))}function A$(e,n,t){let r=t.getTypeAtLocation(e);bc(e.parent)&&(r=function(e,n,t){return n?e.getNonNullableType():t?e.getNonOptionalType():e}(r,Tc(e.parent),!0));return(vC(e.parent)?r.getConstructSignatures():r.getCallSignatures()).filter(e=>!!e.typeParameters&&e.typeParameters.length>=n)}function x$(e,n){if(-1===n.text.lastIndexOf("<",e?e.pos:n.text.length))return;let t=e,r=0,o=0;for(;t;){switch(t.kind){case 30:if(t=p$(t.getFullStart(),n),t&&29===t.kind&&(t=p$(t.getFullStart(),n)),!t||!dD(t))return;if(!r)return pg(t)?void 0:{called:t,nTypeArguments:o};r--;break;case 50:r=3;break;case 49:r=2;break;case 32:r++;break;case 20:if(t=S$(t,19,n),!t)return;break;case 22:if(t=S$(t,21,n),!t)return;break;case 24:if(t=S$(t,23,n),!t)return;break;case 28:o++;break;case 39:case 80:case 11:case 9:case 10:case 112:case 97:case 114:case 96:case 143:case 25:case 52:case 58:case 59:break;default:if(Ed(t))break;return}t=p$(t.getFullStart(),n)}}function R$(e,n,t){return Mpe.getRangeOfEnclosingComment(e,n,void 0,t)}function I$(e,n){return!!ml(s$(e,n),IM)}function D$(e,n){return 1===e.kind?!!e.jsDoc:0!==e.getWidth(n)}function C$(e,n=0){const t=[],r=fu(e)?ll(e)&~n:0;return 2&r&&t.push("private"),4&r&&t.push("protected"),1&r&&t.push("public"),(256&r||kD(e))&&t.push("static"),64&r&&t.push("abstract"),32&r&&t.push("export"),65536&r&&t.push("deprecated"),33554432&e.flags&&t.push("declare"),278===e.kind&&t.push("export"),t.length>0?t.join(","):""}function N$(e){return 184===e.kind||214===e.kind?e.typeArguments:ad(e)||264===e.kind||265===e.kind?e.typeParameters:void 0}function M$(e){return 2===e||3===e}function P$(e){return!(11!==e&&14!==e&&!Wc(e))}function L$(e,n,t){return!!(4&n.flags)&&e.isEmptyAnonymousObjectType(t)}function k$(e){if(!e.isIntersection())return!1;const{types:n,checker:t}=e;return 2===n.length&&(L$(t,n[0],n[1])||L$(t,n[1],n[0]))}function w$(e,n,t){return Wc(e.kind)&&e.getStart(t)<n&&n<e.end||!!e.isUnterminated&&n===e.end}function O$(e){switch(e){case 125:case 123:case 124:return!0}return!1}function F$(e){const n=Ge(e);return lO(n,e&&e.configFile),n}function W$(e){if(210===e.kind||211===e.kind){if(227===e.parent.kind&&e.parent.left===e&&64===e.parent.operatorToken.kind)return!0;if(251===e.parent.kind&&e.parent.initializer===e)return!0;if(W$(304===e.parent.kind?e.parent.parent:e.parent))return!0}return!1}function z$(e,n){return G$(e,n,!0)}function B$(e,n){return G$(e,n,!1)}function G$(e,n,t){const r=R$(e,n,void 0);return!!r&&t===LY.test(e.text.substring(r.pos,r.end))}function V$(e,n){if(e)switch(e.kind){case 11:case 15:return U$(e,n);default:return j$(e)}}function j$(e,n,t){return Xs(e.getStart(n),(t||e).getEnd())}function U$(e,n){let t=e.getEnd()-1;if(e.isUnterminated){if(e.getStart()===t)return;t=Math.min(n,e.getEnd())}return Xs(e.getStart()+1,t)}function H$(e,n){return Ob(e.getStart(n),e.end)}function K$(e){return Xs(e.pos,e.end)}function q$(e){return Ob(e.start,e.start+e.length)}function J$(e,n,t){return X$(Js(e,n),t)}function X$(e,n){return{span:e,newText:n}}var Y$=[133,131,163,136,97,140,143,146,106,150,151,148,154,155,114,112,116,157,158,159];function $$(e){return S(Y$,e)}function Q$(e){return 156===e.kind}function Z$(e){return Q$(e)||dD(e)&&"type"===e.text}function eQ(){const e=[];return n=>{const t=cB(n);return!e[t]&&(e[t]=!0)}}function nQ(e){return e.getText(0,e.getLength())}function tQ(e,n){let t="";for(let r=0;r<n;r++)t+=e;return t}function rQ(e){return e.isTypeParameter()&&e.getConstraint()||e}function oQ(e){return 168===e.kind?zg(e.expression)?e.expression.text:void 0:uD(e)?vl(e):Hg(e)}function iQ(e){return e.getSourceFiles().some(n=>!(n.isDeclarationFile||e.isSourceFileFromExternalLibrary(n)||!n.externalModuleIndicator&&!n.commonJsModuleIndicator))}function aQ(e){return e.getSourceFiles().some(n=>!n.isDeclarationFile&&!e.isSourceFileFromExternalLibrary(n)&&!!n.externalModuleIndicator)}function sQ(e){return!!e.module||SS(e)>=2||!!e.noEmit}function lQ(e,n){return{fileExists:n=>e.fileExists(n),getCurrentDirectory:()=>n.getCurrentDirectory(),readFile:Ue(n,n.readFile),useCaseSensitiveFileNames:Ue(n,n.useCaseSensitiveFileNames)||e.useCaseSensitiveFileNames,getSymlinkCache:Ue(n,n.getSymlinkCache)||e.getSymlinkCache,getModuleSpecifierCache:Ue(n,n.getModuleSpecifierCache),getPackageJsonInfoCache:()=>{var n;return null==(n=e.getModuleResolutionCache())?void 0:n.getPackageJsonInfoCache()},getGlobalTypingsCacheLocation:Ue(n,n.getGlobalTypingsCacheLocation),redirectTargetsMap:e.redirectTargetsMap,getRedirectFromSourceFile:n=>e.getRedirectFromSourceFile(n),isSourceOfProjectReferenceRedirect:n=>e.isSourceOfProjectReferenceRedirect(n),getNearestAncestorDirectoryWithPackageJson:Ue(n,n.getNearestAncestorDirectoryWithPackageJson),getFileIncludeReasons:()=>e.getFileIncludeReasons(),getCommonSourceDirectory:()=>e.getCommonSourceDirectory(),getDefaultResolutionModeForFile:n=>e.getDefaultResolutionModeForFile(n),getModeForResolutionAtIndex:(n,t)=>e.getModeForResolutionAtIndex(n,t)}}function cQ(e,n){return{...lQ(e,n),getCommonSourceDirectory:()=>e.getCommonSourceDirectory()}}function dQ(e){return 2===e||e>=3&&e<=99||100===e}function uQ(e,n,t,r,o){return vR.createImportDeclaration(void 0,e||n?vR.createImportClause(o?156:void 0,e,n&&n.length?vR.createNamedImports(n):void 0):void 0,"string"==typeof t?pQ(t,r):t,void 0)}function pQ(e,n){return vR.createStringLiteral(e,0===n)}var fQ=(e=>(e[e.Single=0]="Single",e[e.Double=1]="Double",e))(fQ||{});function mQ(e,n){return Hh(e,n)?1:0}function hQ(e,n){if(n.quotePreference&&"auto"!==n.quotePreference)return"single"===n.quotePreference?0:1;{const n=Mh(e)&&e.imports&&y(e.imports,e=>qI(e)&&!ry(e.parent));return n?mQ(n,e):1}}function _Q(e){switch(e){case 0:return"'";case 1:return'"';default:return dt.assertNever(e)}}function gQ(e){const n=yQ(e);return void 0===n?void 0:yl(n)}function yQ(e){return"default"!==e.escapedName?e.escapedName:p(e.declarations,e=>{const n=Dl(e);return n&&80===n.kind?n.escapedText:void 0})}function vQ(e){return zu(e)&&(UN(e.parent)||xN(e.parent)||eP(e.parent)||Wh(e.parent,!1)&&e.parent.arguments[0]===e||fm(e.parent)&&e.parent.arguments[0]===e)}function bQ(e){return fC(e)&&uC(e.parent)&&dD(e.name)&&!e.propertyName}function TQ(e,n){const t=e.getTypeAtLocation(n.parent);return t&&e.getPropertyOfType(t,n.name.text)}function SQ(e,n,t){if(e)for(;e.parent;){if(uM(e.parent)||!EQ(t,e.parent,n))return e;e=e.parent}}function EQ(e,n,t){return ks(e,n.getStart(t))&&n.getEnd()<=Ps(e)}function AQ(e,n){return CL(e)?y(e.modifiers,e=>e.kind===n):void 0}function xQ(e,n,t,r,o){var i;const a=244===(Ye(t)?t[0]:t).kind?jh:If,s=x(n.statements,a),{comparer:l,isSorted:c}=_de.getOrganizeImportsStringComparerWithDetection(s,o),d=Ye(t)?ce(t,(e,n)=>_de.compareImportsOrRequireStatements(e,n,l)):[t];if(null==s?void 0:s.length)if(dt.assert(Mh(n)),s&&c)for(const u of d){const t=_de.getImportDeclarationInsertionIndex(s,u,l);if(0===t){const t=s[0]===n.statements[0]?{leadingTriviaOption:tpe.LeadingTriviaOption.Exclude}:{};e.insertNodeBefore(n,s[0],u,!1,t)}else{const r=s[t-1];e.insertNodeAfter(n,r,u)}}else{const t=ge(s);t?e.insertNodesAfter(n,t,d):e.insertNodesAtTopOfFile(n,d,r)}else if(Mh(n))e.insertNodesAtTopOfFile(n,d,r);else for(const u of d)e.insertStatementsInNewFile(n.fileName,[u],null==(i=fl(u))?void 0:i.getSourceFile())}function RQ(e,n){return dt.assert(e.isTypeOnly),nn(e.getChildAt(0,n),Q$)}function IQ(e,n){return!!e&&!!n&&e.start===n.start&&e.length===n.length}function DQ(e,n,t){return(t?gn:_n)(e.fileName,n.fileName)&&IQ(e.textSpan,n.textSpan)}function CQ(e){return(n,t)=>DQ(n,t,e)}function NQ(e,n){if(e)for(let t=0;t<e.length;t++)if(e.indexOf(e[t])===t){const r=n(e[t],t);if(r)return r}}function MQ(e,n,t){for(let r=n;r<t;r++)if(!Ha(e.charCodeAt(r)))return!1;return!0}function PQ(e,n,t){const r=n.tryGetSourcePosition(e);return r&&(!t||t(ji(r.fileName))?r:void 0)}function LQ(e,n,t){const{fileName:r,textSpan:o}=e,i=PQ({fileName:r,pos:o.start},n,t);if(!i)return;const a=PQ({fileName:r,pos:o.start+o.length},n,t),s=a?a.pos-i.pos:o.length;return{fileName:i.fileName,textSpan:{start:i.pos,length:s},originalFileName:e.fileName,originalTextSpan:e.textSpan,contextSpan:kQ(e,n,t),originalContextSpan:e.contextSpan}}function kQ(e,n,t){const r=e.contextSpan&&PQ({fileName:e.fileName,pos:e.contextSpan.start},n,t),o=e.contextSpan&&PQ({fileName:e.fileName,pos:e.contextSpan.start+e.contextSpan.length},n,t);return r&&o?{start:r.pos,length:o.pos-r.pos}:void 0}function wQ(e){return!!ml(e.declarations?fe(e.declarations):void 0,e=>!!DD(e)||!(fC(e)||uC(e)||pC(e))&&"quit")}var OQ=new Map;function FQ(e){return e=e||qu,OQ.has(e)||OQ.set(e,function(e){const n=10*e;let t,r,o,i;u();const a=e=>l(e,17);return{displayParts:()=>{const e=t.length&&t[t.length-1].text;return i>n&&e&&"..."!==e&&(Ha(e.charCodeAt(e.length-1))||t.push(WQ(" ",16)),t.push(WQ("...",15))),t},writeKeyword:e=>l(e,5),writeOperator:e=>l(e,12),writePunctuation:e=>l(e,15),writeTrailingSemicolon:e=>l(e,15),writeSpace:e=>l(e,16),writeStringLiteral:e=>l(e,8),writeParameter:e=>l(e,13),writeProperty:e=>l(e,14),writeLiteral:e=>l(e,8),writeSymbol:c,writeLine:d,write:a,writeComment:a,getText:()=>"",getTextPos:()=>0,getColumn:()=>0,getLine:()=>0,isAtStartOfLine:()=>!1,hasTrailingWhitespace:()=>!1,hasTrailingComment:()=>!1,rawWrite:un,getIndent:()=>o,increaseIndent:()=>{o++},decreaseIndent:()=>{o--},clear:u};function s(){if(!(i>n)&&r){const e=wy(o);e&&(i+=e.length,t.push(WQ(e,16))),r=!1}}function l(e,r){i>n||(s(),i+=e.length,t.push(WQ(e,r)))}function c(e,r){i>n||(s(),i+=e.length,t.push(function(e,n){return WQ(e,t(n));function t(e){const n=e.flags;return 3&n?wQ(e)?13:9:4&n||32768&n||65536&n?14:8&n?19:16&n?20:32&n?1:64&n?4:384&n?2:1536&n?11:8192&n?10:262144&n?18:524288&n||2097152&n?0:17}}(e,r)))}function d(){i>n||(i+=1,t.push(eZ()),r=!0)}function u(){t=[],r=!0,o=0,i=0}}(e)),OQ.get(e)}function WQ(e,n){return{text:e,kind:HX[n]}}function zQ(){return WQ(" ",16)}function BQ(e){return WQ(Pa(e),5)}function GQ(e){return WQ(Pa(e),15)}function VQ(e){return WQ(Pa(e),12)}function jQ(e){return WQ(e,13)}function UQ(e){return WQ(e,14)}function HQ(e){const n=La(e);return void 0===n?KQ(e):BQ(n)}function KQ(e){return WQ(e,17)}function qQ(e){return WQ(e,0)}function JQ(e){return WQ(e,18)}function XQ(e){return WQ(e,24)}function YQ(e){return WQ(e,22)}function $Q(e,n){var t;const r=[YQ(`{@${_M(e)?"link":gM(e)?"linkcode":"linkplain"} `)];if(e.name){const o=null==n?void 0:n.getSymbolAtLocation(e.name),i=o&&n?sZ(o,n):void 0,a=function(e){let n=e.indexOf("://");if(0===n){for(;n<e.length&&124!==e.charCodeAt(n);)n++;return n}if(0===e.indexOf("()"))return 2;if("<"===e.charAt(0)){let n=0,t=0;for(;t<e.length;)if("<"===e[t]&&n++,">"===e[t]&&n--,t++,!n)return t}return 0}(e.text),s=Zp(e.name)+e.text.slice(0,a),l=function(e){let n=0;if(124===e.charCodeAt(n++)){for(;n<e.length&&32===e.charCodeAt(n);)n++;return e.slice(n)}return e}(e.text.slice(a)),c=(null==i?void 0:i.valueDeclaration)||(null==(t=null==i?void 0:i.declarations)?void 0:t[0]);if(c)r.push(function(e,n){return{text:e,kind:HX[23],target:{fileName:Sp(n).fileName,textSpan:j$(n)}}}(s,c)),l&&r.push(XQ(l));else{const n=0===a||124===e.text.charCodeAt(a)&&32!==s.charCodeAt(s.length-1)?" ":"";r.push(XQ(s+n+l))}}else e.text&&r.push(XQ(e.text));return r.push(YQ("}")),r}var QQ="\n";function ZQ(e,n){var t;return(null==n?void 0:n.newLineCharacter)||(null==(t=e.getNewLine)?void 0:t.call(e))||QQ}function eZ(){return WQ("\n",6)}function nZ(e,n){const t=FQ(n);try{return e(t),t.displayParts()}finally{t.clear()}}function tZ(e,n,t,r=0,o,i,a){return nZ(s=>{e.writeType(n,t,17408|r,s,o,i,a)},o)}function rZ(e,n,t,r,o=0){return nZ(i=>{e.writeSymbol(n,t,r,8|o,i)})}function oZ(e,n,t,r=0,o,i,a){return r|=25632,nZ(s=>{e.writeSignature(n,t,r,void 0,s,o,i,a)},o)}function iZ(e){return!!e.parent&&Gc(e.parent)&&e.parent.propertyName===e}function aZ(e,n){return AE(e,n.getScriptKind&&n.getScriptKind(e))}function sZ(e,n){let t=e;for(;lZ(t)||Zu(t)&&t.links.target;)t=Zu(t)&&t.links.target?t.links.target:cT(t,n);return t}function lZ(e){return!!(2097152&e.flags)}function cZ(e,n){return dB(cT(e,n))}function dZ(e,n){for(;Ha(e.charCodeAt(n));)n+=1;return n}function uZ(e,n){for(;n>-1&&Ka(e.charCodeAt(n));)n-=1;return n+1}function pZ(e,n){const t=e.getSourceFile();!function(e,n){const t=e.getFullStart(),r=e.getStart();for(let o=t;o<r;o++)if(10===n.charCodeAt(o))return!0;return!1}(e,t.text)?gZ(e,n,t):hZ(e,n,t),_Z(e,n,t)}function fZ(e,n){let t=e;for(let r=1;!Cp(n,t);r++)t=`${e}_${r}`;return t}function mZ(e,n,t,r){let o=0,i=-1;for(const{fileName:a,textChanges:s}of e){dt.assert(a===n);for(const e of s){const{span:n,newText:a}=e,s=vZ(a,Ay(t));if(-1!==s&&(i=n.start+o+s,!r))return i;o+=a.length-n.length}}return dt.assert(r),dt.assert(i>=0),i}function hZ(e,n,t,r,o){ls(t.text,e.pos,yZ(n,t,r,o,zR))}function _Z(e,n,t,r,o){cs(t.text,e.end,yZ(n,t,r,o,VR))}function gZ(e,n,t,r,o){cs(t.text,e.pos,yZ(n,t,r,o,zR))}function yZ(e,n,t,r,o){return(i,a,s,l)=>{3===s?(i+=2,a-=2):i+=2,o(e,t||s,n.text.slice(i,a),void 0!==r?r:l)}}function vZ(e,n){if(Xn(e,n))return 0;let t=e.indexOf(" "+n);return-1===t&&(t=e.indexOf("."+n)),-1===t&&(t=e.indexOf('"'+n)),-1===t?-1:t+1}function bZ(e){return MC(e)&&28===e.operatorToken.kind||hC(e)||(zC(e)||BC(e))&&hC(e.expression)}function TZ(e,n,t){const r=ag(e.parent);switch(r.kind){case 215:return n.getContextualType(r,t);case 227:{const{left:o,operatorToken:i,right:a}=r;return EZ(i.kind)?n.getTypeAtLocation(e===a?o:a):n.getContextualType(e,t)}case 297:return RZ(r,n);default:return n.getContextualType(e,t)}}function SZ(e,n,t){const r=hQ(e,n),o=JSON.stringify(t);return 0===r?`'${Py(o).replace(/'/g,()=>"\\'").replace(/\\"/g,'"')}'`:o}function EZ(e){switch(e){case 37:case 35:case 38:case 36:return!0;default:return!1}}function AZ(e){switch(e.kind){case 11:case 15:case 229:case 216:return!0;default:return!1}}function xZ(e){return!!e.getStringIndexType()||!!e.getNumberIndexType()}function RZ(e,n){return n.getTypeAtLocation(e.parent.parent.expression)}var IZ="anonymous function";function DZ(e,n,t,r){const o=t.getTypeChecker();let i=!0;const a=()=>i=!1,s=o.typeToTypeNode(e,n,1,8,{trackSymbol:(e,n,t)=>(i=i&&0===o.isSymbolAccessible(e,n,t,!1).accessibility,!i),reportInaccessibleThisError:a,reportPrivateInBaseOfClassExpression:a,reportInaccessibleUniqueSymbolError:a,moduleResolverHost:cQ(t,r)});return i?s:void 0}function CZ(e){return 180===e||181===e||182===e||172===e||174===e}function NZ(e){return 263===e||177===e||175===e||178===e||179===e}function MZ(e){return 268===e}function PZ(e){return 244===e||245===e||247===e||252===e||253===e||254===e||258===e||260===e||173===e||266===e||273===e||272===e||279===e||271===e||278===e}var LZ=et(CZ,NZ,MZ,PZ);function kZ(e,n,t){const r=ml(n,n=>n.end!==e?"quit":LZ(n.kind));return!!r&&function(e,n){const t=e.getLastToken(n);if(t&&27===t.kind)return!1;if(CZ(e.kind)){if(t&&28===t.kind)return!1}else if(MZ(e.kind)){const t=ye(e.getChildren(n));if(t&&TN(t))return!1}else if(NZ(e.kind)){const t=ye(e.getChildren(n));if(t&&Vm(t))return!1}else if(!PZ(e.kind))return!1;if(247===e.kind)return!0;const r=u$(e,ml(e,e=>!e.parent),n);return!r||20===r.kind||n.getLineAndCharacterOfPosition(e.getEnd()).line!==n.getLineAndCharacterOfPosition(r.getStart(n)).line}(r,t)}function wZ(e){let n=0,t=0;return rk(e,function r(o){if(PZ(o.kind)){const r=o.getLastToken(e);27===(null==r?void 0:r.kind)?n++:t++}else if(CZ(o.kind)){const r=o.getLastToken(e);if(27===(null==r?void 0:r.kind))n++;else if(r&&28!==r.kind){Ua(e,r.getStart(e)).line!==Ua(e,Zf(e,r.end).start).line&&t++}}return n+t>=5||rk(o,r)}),0===n&&t<=1||n/t>.2}function OZ(e,n){return GZ(e,e.getDirectories,n)||[]}function FZ(e,n,t,r,o){return GZ(e,e.readDirectory,n,t,r,o)||s}function WZ(e,n){return GZ(e,e.fileExists,n)}function zZ(e,n){return BZ(()=>Pb(n,e))||!1}function BZ(e){try{return e()}catch{return}}function GZ(e,n,...t){return BZ(()=>n&&n.apply(e,t))}function VZ(e,n){const t=[];return kW(n,e,e=>{const r=zi(e,"package.json");WZ(n,r)&&t.push(r)}),t}function jZ(e,n){let t;return kW(n,e,e=>"node_modules"===e||(t=Jj(e,e=>WZ(n,e),"package.json"),!!t||void 0)),t}function UZ(e,n){if(!n.readFile)return;const t=["dependencies","devDependencies","optionalDependencies","peerDependencies"],r=Mb(n.readFile(e)||""),o={};if(r)for(const s of t){const e=r[s];if(!e)continue;const n=new Map;for(const t in e)n.set(t,e[t]);o[s]=n}const i=[[1,o.dependencies],[2,o.devDependencies],[8,o.optionalDependencies],[4,o.peerDependencies]];return{...o,parseable:!!r,fileName:e,get:a,has:(e,n)=>!!a(e,n)};function a(e,n=15){for(const[t,r]of i)if(r&&n&t){const n=r.get(e);if(void 0!==n)return n}}}function HZ(e,n,t){const r=(t.getPackageJsonsVisibleToFile&&t.getPackageJsonsVisibleToFile(e.fileName)||function(e,n){if(!n.fileExists)return[];const t=[];return kW(n,Mi(e),e=>{const r=zi(e,"package.json");if(n.fileExists(r)){const e=UZ(r,n);e&&t.push(e)}}),t}(e.fileName,t)).filter(e=>e.parseable);let o,i,a;return{allowsImportingAmbientModule:function(e,n){if(!r.length||!e.valueDeclaration)return!0;if(i){const n=i.get(e);if(void 0!==n)return n}else i=new Map;const t=Py(e.getName());if(l(t))return i.set(e,!0),!0;const o=c(e.valueDeclaration.getSourceFile().fileName,n);if(void 0===o)return i.set(e,!0),!0;const a=s(o)||s(t);return i.set(e,a),a},getSourceFileInfo:function(e,n){if(!r.length)return{importable:!0,packageName:void 0};if(a){const n=a.get(e);if(void 0!==n)return n}else a=new Map;const t=c(e.fileName,n);if(!t){const n={importable:!0,packageName:t};return a.set(e,n),n}const o={importable:s(t),packageName:t};return a.set(e,o),o},allowsImportingSpecifier:function(e){if(!r.length||l(e))return!0;if(Si(e)||yi(e))return!0;return s(e)}};function s(e){const n=d(e);for(const t of r)if(t.has(n)||t.has(BW(n)))return!0;return!1}function l(n){return!!(Mh(e)&&Ph(e)&&Mx.has(n)&&(void 0===o&&(o=KZ(e)),o))}function c(r,o){if(!r.includes("node_modules"))return;const i=pz.getNodeModulesPackageName(t.getCompilationSettings(),e,r,o,n);return i?Si(i)||yi(i)?void 0:d(i):void 0}function d(e){const n=wi(VW(e)).slice(1);return Xn(n[0],"@")?`${n[0]}/${n[1]}`:n[0]}}function KZ(e){return U(e.imports,({text:e})=>Mx.has(e))}function qZ(e){return S(wi(e),"node_modules")}function JZ(e){return void 0!==e.file&&void 0!==e.start&&void 0!==e.length}function XZ(e,n){const t=Ae(n,j$(e),sn,bn);if(t>=0){const r=n[t];return dt.assertEqual(r.file,e.getSourceFile(),"Diagnostics proided to 'findDiagnosticForNode' must be from a single SourceFile"),nn(r,JZ)}}function YZ(e,n){var t;let r=Ae(n,e.start,e=>e.start,vn);for(r<0&&(r=~r);(null==(t=n[r-1])?void 0:t.start)===e.start;)r--;const o=[],i=Ps(e);for(;;){const t=en(n[r],JZ);if(!t||t.start>i)break;Os(e,t)&&o.push(t),r++}return o}function $Z({startPosition:e,endPosition:n}){return Xs(e,void 0===n?e:n)}function QZ(e,n){return ml(s$(e,n.start),t=>t.getStart(e)<n.start||t.getEnd()>Ps(n)?"quit":qd(t)&&IQ(n,j$(t,e)))}function ZZ(e,n,t=sn){return e?Ye(e)?t(D(e,n)):n(e,0):void 0}function e0(e){return Ye(e)?he(e):e}function n0(e,n,t){return"export="===e.escapedName||"default"===e.escapedName?t0(e)||r0(function(e){var n;return dt.checkDefined(e.parent,`Symbol parent was undefined. Flags: ${dt.formatSymbolFlags(e.flags)}. Declarations: ${null==(n=e.declarations)?void 0:n.map(e=>{const n=dt.formatSyntaxKind(e.kind),t=Lh(e),{expression:r}=e;return(t?"[JS]":"")+n+(r?` (expression: ${dt.formatSyntaxKind(r.kind)})`:"")}).join(", ")}.`)}(e),n,!!t):e.name}function t0(e){return p(e.declarations,n=>{var t,r,o;if(ON(n))return null==(t=en(MP(n.expression),dD))?void 0:t.text;if(zN(n)&&2097152===n.symbol.flags)return null==(r=en(n.propertyName,dD))?void 0:r.text;const i=null==(o=en(Dl(n),dD))?void 0:o.text;return i||(e.parent&&!ep(e.parent)?e.parent.getName():void 0)})}function r0(e,n,t){return o0(qE(Py(e.name)),n,t)}function o0(e,n,t){const r=Pi(Wn(qE(e),"/index"));let o="",i=!0;const a=r.charCodeAt(0);_s(a,n)?(o+=String.fromCharCode(a),t&&(o=o.toUpperCase())):i=!1;for(let s=1;s<r.length;s++){const e=r.charCodeAt(s),t=gs(e,n);if(t){let n=String.fromCharCode(e);i||(n=n.toUpperCase()),o+=n}i=t}return Lg(o)?`_${o}`:o||"_"}function i0(e,n,t){const r=n.length;if(r+t>e.length)return!1;for(let o=0;o<r;o++)if(n.charCodeAt(o)!==e.charCodeAt(o+t))return!1;return!0}function a0(e){return 95===e.charCodeAt(0)}function s0(e){return!!(65536&ll(e))}function l0(e,n){let t;for(const r of e.imports)if(Mx.has(r.text)&&!Nx.has(r.text)){if(Xn(r.text,"node:"))return!0;t=!1}return t??n.usesUriStyleNodeCoreModules}function c0(e){return"\n"===e?1:0}function d0(e){return Ye(e)?HT(JT(e[0]),e.slice(1)):JT(e)}function u0({options:e},n){const t=!e.semicolons||"ignore"===e.semicolons,r="remove"===e.semicolons||t&&!wZ(n);return{...e,semicolons:r?"remove":"ignore"}}function p0(e){return 2===e||3===e}function f0(e,n){return e.isSourceFileFromExternalLibrary(n)||e.isSourceFileDefaultLibrary(n)}function m0(e,n){const t=new Set,r=new Set,o=new Set;for(const a of n)if(!oM(a)){const n=cg(a.expression);if(Oc(n))switch(n.kind){case 15:case 11:t.add(n.text);break;case 9:r.add(parseInt(n.text));break;case 10:const e=TA(Fn(n.text,"n")?n.text.slice(0,-1):n.text);e&&o.add(bA(e))}else{const n=e.getSymbolAtLocation(a.expression);if(n&&n.valueDeclaration&&dM(n.valueDeclaration)){const t=e.getConstantValue(n.valueDeclaration);void 0!==t&&i(t)}}}return{addValue:i,hasValue:function(e){switch(typeof e){case"string":return t.has(e);case"number":return r.has(e);case"object":return o.has(bA(e))}}};function i(e){switch(typeof e){case"string":t.add(e);break;case"number":r.add(e)}}}function h0(e,n,t,r){var o;if(!WE("string"==typeof e?e:e.fileName))return!1;const i="string"==typeof e?n.getCompilerOptions():n.getCompilerOptionsForFile(e),a=ES(i),s=qU("string"==typeof e?{fileName:e,impliedNodeFormat:GU(Ki(e,t.getCurrentDirectory(),By(t)),null==(o=n.getPackageJsonInfoCache)?void 0:o.call(n),t,i)}:e,i);if(99===s)return!1;if(1===s)return!0;if(i.verbatimModuleSyntax&&1===a)return!0;if(i.verbatimModuleSyntax&&WS(a))return!1;if("object"==typeof e){if(e.commonJsModuleIndicator)return!0;if(e.externalModuleIndicator)return!1}return r}function _0(e){switch(e.kind){case 242:case 308:case 269:case 297:return!0;default:return!1}}function g0(e,n,t,r){var o;const i=VU(e,null==(o=t.getPackageJsonInfoCache)?void 0:o.call(t),r,t.getCompilerOptions());let a,l;return"object"==typeof i&&(a=i.impliedNodeFormat,l=i.packageJsonScope),{path:Ki(e,t.getCurrentDirectory(),t.getCanonicalFileName),fileName:e,externalModuleIndicator:99===n||void 0,commonJsModuleIndicator:1===n||void 0,impliedNodeFormat:a,packageJsonScope:l,statements:s,imports:s}}var y0=(e=>(e[e.Named=0]="Named",e[e.Default=1]="Default",e[e.Namespace=2]="Namespace",e[e.CommonJS=3]="CommonJS",e))(y0||{}),v0=(e=>(e[e.Named=0]="Named",e[e.Default=1]="Default",e[e.ExportEquals=2]="ExportEquals",e[e.UMD=3]="UMD",e[e.Module=4]="Module",e))(v0||{});function b0(e){let n=1;const t=He(),r=new Map,o=new Map;let i;const a={isUsableByFile:e=>e===i,isEmpty:()=>!t.size,clear:()=>{t.clear(),r.clear(),i=void 0},add:(e,s,l,c,d,u,p,f)=>{let m;if(e!==i&&(a.clear(),i=e),d){const n=qA(d.fileName);if(n){const{topLevelNodeModulesIndex:t,topLevelPackageNameIndex:r,packageRootIndex:i}=n;if(m=jW(VW(d.fileName.substring(r+1,i))),Xn(e,d.path.substring(0,t))){const e=o.get(m),n=d.fileName.substring(0,r+1);if(e){t>e.indexOf(oW)&&o.set(m,n)}else o.set(m,n)}}}const h=1===u&&Eb(s)||s,_=0===u||ep(h)?yl(l):function(e,n,t){let r;return M0(e,n,t,(e,n)=>(r=n?[e,n]:e,!0)),dt.checkDefined(r)}(h,f,void 0),g="string"==typeof _?_:_[0],y="string"==typeof _?void 0:_[1],v=Py(c.name),b=n++,T=cT(s,f),S=33554432&s.flags?void 0:s,E=33554432&c.flags?void 0:c;S&&E||r.set(b,[s,c]),t.add(function(e,n,t,r){const o=t||"";return`${e.length} ${dB(cT(n,r))} ${e} ${o}`}(g,s,Ds(v)?void 0:v,f),{id:b,symbolTableKey:l,symbolName:g,capitalizedSymbolName:y,moduleName:v,moduleFile:d,moduleFileName:null==d?void 0:d.fileName,packageName:m,exportKind:u,targetFlags:T.flags,isFromPackageJson:p,symbol:S,moduleSymbol:E})},get:(e,n)=>{if(e!==i)return;const r=t.get(n);return null==r?void 0:r.map(l)},search:(n,r,a,s)=>{if(n===i)return ap(t,(n,t)=>{const{symbolName:i,ambientModuleName:c}=function(e){const n=e.indexOf(" "),t=e.indexOf(" ",n+1),r=parseInt(e.substring(0,n),10),o=e.substring(t+1),i=o.substring(0,r),a=o.substring(r+1),s=""===a?void 0:a;return{symbolName:i,ambientModuleName:s}}(t),d=r&&n[0].capitalizedSymbolName||i;if(a(d,n[0].targetFlags)){const r=n.map(l).filter((t,r)=>function(n,t){if(!t||!n.moduleFileName)return!0;const r=e.getGlobalTypingsCacheLocation();if(r&&Xn(n.moduleFileName,r))return!0;const i=o.get(t);return!i||Xn(n.moduleFileName,i)}(t,n[r].packageName));if(r.length){const e=s(r,d,!!c,t);if(void 0!==e)return e}}})},releaseSymbols:()=>{r.clear()},onFileChanged:(e,n,t)=>(!c(e)||!c(n))&&(i&&i!==n.path||t&&KZ(e)!==KZ(n)||!ee(e.moduleAugmentations,n.moduleAugmentations)||!function(e,n){if(!ee(e.ambientModuleNames,n.ambientModuleNames))return!1;let t=-1,r=-1;for(const o of n.ambientModuleNames){const i=e=>mf(e)&&e.name.text===o;if(t=b(e.statements,i,t+1),r=b(n.statements,i,r+1),e.statements[t]!==n.statements[r])return!1}return!0}(e,n)?(a.clear(),!0):(i=n.path,!1))};return dt.isDebugging&&Object.defineProperty(a,"__cache",{value:t}),a;function l(n){if(n.symbol&&n.moduleSymbol)return n;const{id:t,exportKind:o,targetFlags:i,isFromPackageJson:a,moduleFileName:l}=n,[c,d]=r.get(t)||s;if(c&&d)return{symbol:c,moduleSymbol:d,moduleFileName:l,exportKind:o,targetFlags:i,isFromPackageJson:a};const u=(a?e.getPackageJsonAutoImportProvider():e.getCurrentProgram()).getTypeChecker(),p=n.moduleSymbol||d||dt.checkDefined(n.moduleFile?u.getMergedSymbol(n.moduleFile.symbol):u.tryFindAmbientModule(n.moduleName)),f=n.symbol||c||dt.checkDefined(2===o?u.resolveExternalModuleSymbol(p):u.tryGetMemberInModuleExportsAndProperties(yl(n.symbolTableKey),p),`Could not find symbol '${n.symbolName}' by key '${n.symbolTableKey}' in module ${p.name}`);return r.set(t,[f,p]),{symbol:f,moduleSymbol:p,moduleFileName:l,exportKind:o,targetFlags:i,isFromPackageJson:a}}function c(e){return!(e.commonJsModuleIndicator||e.externalModuleIndicator||e.moduleAugmentations||e.ambientModuleNames)}}function T0(e,n,t,r,o,i,a,s){var l;if(!t){let t;const o=Py(r.name);return Mx.has(o)&&void 0!==(t=l0(n,e))?t===Xn(o,"node:"):!i||i.allowsImportingAmbientModule(r,a)||S0(n,o)}if(dt.assertIsDefined(t),n===t)return!1;const c=null==s?void 0:s.get(n.path,t.path,o,{});if(void 0!==(null==c?void 0:c.isBlockedByPackageJsonDependencies))return!c.isBlockedByPackageJsonDependencies||!!c.packageName&&S0(n,c.packageName);const d=By(a),u=null==(l=a.getGlobalTypingsCacheLocation)?void 0:l.call(a),p=!!pz.forEachFileNameOfModule(n.fileName,t.fileName,a,!1,r=>{const o=e.getSourceFile(r);return(o===t||!o)&&function(e,n,t,r,o){const i=kW(o,n,e=>"node_modules"===Pi(e)?e:void 0),a=i&&Mi(t(i));return void 0===a||Xn(t(e),a)||!!r&&Xn(t(r),a)}(n.fileName,r,d,u,a)});if(i){const e=p?i.getSourceFileInfo(t,a):void 0;return null==s||s.setBlockedByPackageJsonDependencies(n.path,t.path,o,{},null==e?void 0:e.packageName,!(null==e?void 0:e.importable)),!!(null==e?void 0:e.importable)||p&&!!(null==e?void 0:e.packageName)&&S0(n,e.packageName)}return p}function S0(e,n){return e.imports&&e.imports.some(e=>e.text===n||e.text.startsWith(n+"/"))}function E0(e,n,t,r,o){var i,a;const s=zy(n),l=t.autoImportFileExcludePatterns&&A0(t,s);x0(e.getTypeChecker(),e.getSourceFiles(),l,n,(n,t)=>o(n,t,e,!1));const c=r&&(null==(i=n.getPackageJsonAutoImportProvider)?void 0:i.call(n));if(c){const t=Vt(),r=e.getTypeChecker();x0(c.getTypeChecker(),c.getSourceFiles(),l,n,(n,t)=>{(t&&!e.getSourceFile(t.fileName)||!t&&!r.resolveName(n.name,void 0,1536,!1))&&o(n,t,c,!0)}),null==(a=n.log)||a.call(n,"forEachExternalModuleToImportFrom autoImportProvider: "+(Vt()-t))}}function A0(e,n){return F(e.autoImportFileExcludePatterns,e=>{const t=gE(e,"","exclude");return t?bE(t,n):void 0})}function x0(e,n,t,r,o){var i;const a=t&&R0(t,r);for(const s of e.getAmbientModules())s.name.includes("*")||t&&(null==(i=s.declarations)?void 0:i.every(e=>a(e.getSourceFile())))||o(s,void 0);for(const s of n)rm(s)&&!(null==a?void 0:a(s))&&o(e.getMergedSymbol(s.symbol),s)}function R0(e,n){var t;const r=null==(t=n.getSymlinkCache)?void 0:t.call(n).getSymlinkedDirectoriesByRealpath();return({fileName:t,path:o})=>{if(e.some(e=>e.test(t)))return!0;if((null==r?void 0:r.size)&&iW(t)){let i=Mi(t);return kW(n,Mi(o),n=>{const o=r.get(Ji(n));if(o)return o.some(n=>e.some(e=>e.test(t.replace(i,n))));i=Mi(i)})??!1}return!1}}function I0(e,n){return n.autoImportFileExcludePatterns?R0(A0(n,zy(e)),e):()=>!1}function D0(e,n,t,r,o){var i,a,s,l,c;const d=Vt();null==(i=n.getPackageJsonAutoImportProvider)||i.call(n);const u=(null==(a=n.getCachedExportInfoMap)?void 0:a.call(n))||b0({getCurrentProgram:()=>t,getPackageJsonAutoImportProvider:()=>{var e;return null==(e=n.getPackageJsonAutoImportProvider)?void 0:e.call(n)},getGlobalTypingsCacheLocation:()=>{var e;return null==(e=n.getGlobalTypingsCacheLocation)?void 0:e.call(n)}});if(u.isUsableByFile(e.path))return null==(s=n.log)||s.call(n,"getExportInfoMap: cache hit"),u;null==(l=n.log)||l.call(n,"getExportInfoMap: cache miss or empty; calculating new results");let p=0;try{E0(t,n,r,!0,(n,t,r,i)=>{++p%100==0&&(null==o||o.throwIfCancellationRequested());const a=new Set,s=r.getTypeChecker(),l=C0(n,s);l&&N0(l.symbol,s)&&u.add(e.path,l.symbol,1===l.exportKind?"default":"export=",n,t,l.exportKind,i,s),s.forEachExportAndPropertyOfModule(n,(r,o)=>{r!==(null==l?void 0:l.symbol)&&N0(r,s)&&AT(a,o)&&u.add(e.path,r,o,n,t,0,i,s)})})}catch(f){throw u.clear(),f}return null==(c=n.log)||c.call(n,`getExportInfoMap: done in ${Vt()-d} ms`),u}function C0(e,n){const t=n.resolveExternalModuleSymbol(e);if(t!==e){const e=n.tryGetMemberInModuleExports("default",t);return e?{symbol:e,exportKind:1}:{symbol:t,exportKind:2}}const r=n.tryGetMemberInModuleExports("default",e);if(r)return{symbol:r,exportKind:1}}function N0(e,n){return!(n.isUndefinedSymbol(e)||n.isUnknownSymbol(e)||Jg(e)||Xg(e))}function M0(e,n,t,r){let o,i=e;const a=new Set;for(;i;){const e=t0(i);if(e){const n=r(e);if(n)return n}if("default"!==i.escapedName&&"export="!==i.escapedName){const e=r(i.name);if(e)return e}if(o=re(o,i),!AT(a,i))break;i=2097152&i.flags?n.getImmediateAliasedSymbol(i):void 0}for(const l of o??s)if(l.parent&&ep(l.parent)){const e=r(r0(l.parent,t,!1),r0(l.parent,t,!0));if(e)return e}}function P0(){const e=vs(99,!1);function n(n,t,r){let o=0,i=0;const a=[],{prefix:s,pushTemplate:l}=function(e){switch(e){case 3:return{prefix:'"\\\n'};case 2:return{prefix:"'\\\n"};case 1:return{prefix:"/*\n"};case 4:return{prefix:"`\n"};case 5:return{prefix:"}\n",pushTemplate:!0};case 6:return{prefix:"",pushTemplate:!0};case 0:return{prefix:""};default:return dt.assertNever(e)}}(t);n=s+n;const c=s.length;l&&a.push(16),e.setText(n);let d=0;const u=[];let p=0;do{o=e.scan(),wg(o)||(f(),i=o);const t=e.getTokenEnd();if(O0(e.getTokenStart(),t,c,W0(o),u),t>=n.length){const n=w0(e,o,ge(a));void 0!==n&&(d=n)}}while(1!==o);function f(){switch(o){case 44:case 69:k0[i]||14!==e.reScanSlashToken()||(o=14);break;case 30:80===i&&p++;break;case 32:p>0&&p--;break;case 133:case 154:case 150:case 136:case 155:p>0&&!r&&(o=80);break;case 16:a.push(o);break;case 19:a.length>0&&a.push(o);break;case 20:if(a.length>0){const n=ge(a);16===n?(o=e.reScanTemplateToken(!1),18===o?a.pop():dt.assertEqual(o,17,"Should have been a template middle.")):(dt.assertEqual(n,19,"Should have been an open brace"),a.pop())}break;default:if(!Dg(o))break;(25===i||Dg(i)&&Dg(o)&&!function(e,n){if(!O$(e))return!0;switch(n){case 139:case 153:case 137:case 126:case 129:return!0;default:return!1}}(i,o))&&(o=80)}}return{endOfLineState:d,spans:u}}return{getClassificationsForLine:function(e,t,r){return function(e,n){const t=[],r=e.spans;let o=0;for(let a=0;a<r.length;a+=3){const e=r[a],n=r[a+1],i=r[a+2];if(o>=0){const n=e-o;n>0&&t.push({length:n,classification:4})}t.push({length:n,classification:F0(i)}),o=e+n}const i=n.length-o;i>0&&t.push({length:i,classification:4});return{entries:t,finalLexState:e.endOfLineState}}(n(e,t,r),e)},getEncodedLexicalClassifications:n}}var L0,k0=Fe([80,11,9,10,14,110,46,47,22,24,20,112,97],e=>e,()=>!0);function w0(e,n,t){switch(n){case 11:{if(!e.isUnterminated())return;const n=e.getTokenText(),t=n.length-1;let r=0;for(;92===n.charCodeAt(t-r);)r++;if(!(1&r))return;return 34===n.charCodeAt(0)?3:2}case 3:return e.isUnterminated()?1:void 0;default:if(Wc(n)){if(!e.isUnterminated())return;switch(n){case 18:return 5;case 15:return 4;default:return dt.fail("Only 'NoSubstitutionTemplateLiteral's and 'TemplateTail's can be unterminated; got SyntaxKind #"+n)}}return 16===t?6:void 0}}function O0(e,n,t,r,o){if(8===r)return;0===e&&t>0&&(e+=t);const i=n-e;i>0&&o.push(e-t,i,r)}function F0(e){switch(e){case 1:return 3;case 3:return 1;case 4:return 6;case 25:return 7;case 5:return 2;case 6:return 8;case 8:return 4;case 10:return 0;case 2:case 11:case 12:case 13:case 14:case 15:case 16:case 9:case 17:return 5;default:return}}function W0(e){if(Dg(e))return 3;if(function(e){switch(e){case 42:case 44:case 45:case 40:case 41:case 48:case 49:case 50:case 30:case 32:case 33:case 34:case 104:case 103:case 130:case 152:case 35:case 36:case 37:case 38:case 51:case 53:case 52:case 56:case 57:case 75:case 74:case 79:case 71:case 72:case 73:case 65:case 66:case 67:case 69:case 70:case 64:case 28:case 61:case 76:case 77:case 78:return!0;default:return!1}}(e)||function(e){switch(e){case 40:case 41:case 55:case 54:case 46:case 47:return!0;default:return!1}}(e))return 5;if(e>=19&&e<=79)return 10;switch(e){case 9:return 4;case 10:return 25;case 11:return 6;case 14:return 7;case 7:case 3:case 2:return 1;case 5:case 4:return 8;default:return Wc(e)?6:2}}function z0(e,n,t,r,o){return U0(G0(e,n,t,r,o))}function B0(e,n){switch(n){case 268:case 264:case 265:case 263:case 232:case 219:case 220:e.throwIfCancellationRequested()}}function G0(e,n,t,r,o){const i=[];return t.forEachChild(function a(s){if(s&&Vs(o,s.pos,s.getFullWidth())){if(B0(n,s.kind),dD(s)&&!Np(s)&&r.has(s.escapedText)){const n=e.getSymbolAtLocation(s),r=n&&V0(n,oY(s),e);r&&function(e,n,t){const r=n-e;dt.assert(r>0,`Classification had non-positive length of ${r}`),i.push(e),i.push(r),i.push(t)}(s.getStart(t),s.getEnd(),r)}s.forEachChild(a)}}),{spans:i,endOfLineState:0}}function V0(e,n,t){const r=e.getFlags();return 2885600&r?32&r?11:384&r?12:524288&r?16:1536&r?4&n||1&n&&function(e){return U(e.declarations,e=>bN(e)&&1===ZW(e))}(e)?14:void 0:2097152&r?V0(t.getAliasedSymbol(e),n,t):2&n?64&r?13:262144&r?15:void 0:void 0:void 0}function j0(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 U0(e){dt.assert(e.spans.length%3==0);const n=e.spans,t=[];for(let r=0;r<n.length;r+=3)t.push({textSpan:Js(n[r],n[r+1]),classificationType:j0(n[r+2])});return t}function H0(e,n,t){return U0(K0(e,n,t))}function K0(e,n,t){const r=t.start,o=t.length,i=vs(99,!1,n.languageVariant,n.text),a=vs(99,!1,n.languageVariant,n.text),s=[];return _(n),{spans:s,endOfLineState:0};function l(e,n,t){s.push(e),s.push(n),s.push(t)}function c(e,t,r,o){if(3===t){const t=pk(n.text,r,o);if(t&&t.jsDoc)return PA(t.jsDoc,e),void function(e){var n,t,r,o,i,a,s,c;let p=e.pos;if(e.tags)for(const m of e.tags){m.pos!==p&&d(p,m.pos-p),l(m.pos,1,10),l(m.tagName.pos,m.tagName.end-m.tagName.pos,18),p=m.tagName.end;let e=m.tagName.end;switch(m.kind){case 342:const l=m;f(l),e=l.isNameFirst&&(null==(n=l.typeExpression)?void 0:n.end)||l.name.end;break;case 349:const d=m;e=d.isNameFirst&&(null==(t=d.typeExpression)?void 0:t.end)||d.name.end;break;case 346:u(m),p=m.end,e=m.typeParameters.end;break;case 347:const h=m;e=310===(null==(r=h.typeExpression)?void 0:r.kind)&&(null==(o=h.fullName)?void 0:o.end)||(null==(i=h.typeExpression)?void 0:i.end)||e;break;case 339:case 344:case 341:e=m.typeExpression.end;break;case 345:_(m.typeExpression),p=m.end,e=m.typeExpression.end;break;case 343:_(m.typeExpression),p=m.end,e=(null==(a=m.typeExpression)?void 0:a.end)||e;break;case 348:e=(null==(s=m.name)?void 0:s.end)||e;break;case 329:case 330:e=m.class.end;break;case 350:_(m.typeExpression),p=m.end,e=(null==(c=m.typeExpression)?void 0:c.end)||e}"object"==typeof m.comment?d(m.comment.pos,m.comment.end-m.comment.pos):"string"==typeof m.comment&&d(e,m.end-e)}p!==e.end&&d(p,e.end-p);return;function f(e){e.isNameFirst&&(d(p,e.name.pos-p),l(e.name.pos,e.name.end-e.name.pos,17),p=e.name.end),e.typeExpression&&(d(p,e.typeExpression.pos-p),_(e.typeExpression),p=e.typeExpression.end),e.isNameFirst||(d(p,e.name.pos-p),l(e.name.pos,e.name.end-e.name.pos,17),p=e.name.end)}}(t.jsDoc)}else if(2===t&&function(e,t){const r=/^(\/\/\/\s*)(<)(?:(\S+)((?:[^/]|\/[^>])*)(\/>)?)?/m,o=/(\s)(\S+)(\s*)(=)(\s*)('[^']+'|"[^"]+")/g,i=n.text.substr(e,t),a=r.exec(i);if(!a)return!1;if(!a[3]||!(a[3]in wo))return!1;let s=e;d(s,a[1].length),s+=a[1].length,l(s,a[2].length,10),s+=a[2].length,l(s,a[3].length,21),s+=a[3].length;const c=a[4];let u=s;for(;;){const e=o.exec(c);if(!e)break;const n=s+e.index+e[1].length;n>u&&(d(u,n-u),u=n),l(u,e[2].length,22),u+=e[2].length,e[3].length&&(d(u,e[3].length),u+=e[3].length),l(u,e[4].length,5),u+=e[4].length,e[5].length&&(d(u,e[5].length),u+=e[5].length),l(u,e[6].length,24),u+=e[6].length}s+=a[4].length,s>u&&d(u,s-u);a[5]&&(l(s,a[5].length,10),s+=a[5].length);const p=e+t;s<p&&d(s,p-s);return!0}(r,o))return;d(r,o)}function d(e,n){l(e,n,1)}function u(e){for(const n of e.getChildren())_(n)}function p(e,n,t){let r;for(r=n;r<t&&!qa(e.charCodeAt(r));r++);for(l(n,r-n,1),a.resetTokenState(r);a.getTokenEnd()<t;)f()}function f(){const e=a.getTokenEnd(),n=a.scan(),t=a.getTokenEnd(),r=h(n);r&&l(e,t-e,r)}function m(e){if(IM(e))return!0;if(Np(e))return!0;const t=function(e){switch(e.parent&&e.parent.kind){case 287:if(e.parent.tagName===e)return 19;break;case 288:if(e.parent.tagName===e)return 20;break;case 286:if(e.parent.tagName===e)return 21;break;case 292:if(e.parent.name===e)return 22}return}(e);if(!Lc(e)&&12!==e.kind&&void 0===t)return!1;const r=12===e.kind?e.pos:function(e){for(i.resetTokenState(e.pos);;){const t=i.getTokenEnd();if(!Za(n.text,t))return t;const r=i.scan(),o=i.getTokenEnd(),a=o-t;if(!wg(r))return t;switch(r){case 4:case 5:continue;case 2:case 3:c(e,r,t,a),i.resetTokenState(o);continue;case 7:const s=n.text,d=s.charCodeAt(t);if(60===d||62===d){l(t,a,1);continue}dt.assert(124===d||61===d),p(s,t,o);break;case 6:break;default:dt.assertNever(r)}}}(e),o=e.end-r;if(dt.assert(o>=0),o>0){const n=t||h(e.kind,e);n&&l(r,o,n)}return!0}function h(e,n){if(Dg(e))return 3;if((30===e||32===e)&&n&&N$(n.parent))return 10;if(Cg(e)){if(n){const t=n.parent;if(64===e&&(261===t.kind||173===t.kind||170===t.kind||292===t.kind))return 5;if(227===t.kind||225===t.kind||226===t.kind||228===t.kind)return 5}return 10}if(9===e)return 4;if(10===e)return 25;if(11===e)return n&&292===n.parent.kind?24:6;if(14===e)return 6;if(Wc(e))return 6;if(12===e)return 23;if(80===e){if(n){switch(n.parent.kind){case 264:return n.parent.name===n?11:void 0;case 169:return n.parent.name===n?15:void 0;case 265:return n.parent.name===n?13:void 0;case 267:return n.parent.name===n?12:void 0;case 268:return n.parent.name===n?14:void 0;case 170:return n.parent.name===n?pv(n)?3:17:void 0}if(xc(n.parent))return 3}return 2}}function _(t){if(t&&js(r,o,t.pos,t.getFullWidth())){B0(e,t.kind);for(const e of t.getChildren(n))m(e)||_(e)}}}function q0(e){return!!e.sourceFile}function J0(e,n,t){return X0(e,n,t)}function X0(e,n="",t,r){const o=new Map,i=Hn(!!e);function a(e){return"function"==typeof e.getCompilationSettings?e.getCompilationSettings():e}function s(e,n,t,r,o,i,a,s){return d(e,n,t,r,o,i,!0,a,s)}function l(e,n,t,r,o,i,s,l){return d(e,n,a(t),r,o,i,!1,s,l)}function c(e,n){const t=q0(e)?e:e.get(dt.checkDefined(n,"If there are more than one scriptKind's for same document the scriptKind should be provided"));return dt.assert(void 0===n||!t||t.sourceFile.scriptKind===n,`Script kind should match provided ScriptKind:${n} and sourceFile.scriptKind: ${null==t?void 0:t.sourceFile.scriptKind}, !entry: ${!t}`),t}function d(e,n,i,s,l,d,u,p,f){var m,h,_,g;p=AE(e,p);const y=a(i),v=i===y?void 0:i,b=6===p?100:SS(y),T="object"==typeof f?f:{languageVersion:b,impliedNodeFormat:v&&GU(n,null==(g=null==(_=null==(h=null==(m=v.getCompilerHost)?void 0:m.call(v))?void 0:h.getModuleResolutionCache)?void 0:_.call(h))?void 0:g.getPackageJsonInfoCache(),v,y),setExternalModuleIndicator:gS(y),jsDocParsingMode:t};T.languageVersion=b,dt.assertEqual(t,T.jsDocParsingMode);const S=o.size,E=$0(s,T.impliedNodeFormat),A=z(o,E,()=>new Map);if(Kt){o.size>S&&Kt.instant(Kt.Phase.Session,"createdDocumentRegistryBucket",{configFilePath:y.configFilePath,key:E});const e=!yk(n)&&ap(o,(e,t)=>t!==E&&e.has(n)&&t);e&&Kt.instant(Kt.Phase.Session,"documentRegistryBucketOverlap",{path:n,key1:e,key2:E})}const x=A.get(n);let R=x&&c(x,p);if(!R&&r){const e=r.getDocument(E,n);e&&e.scriptKind===p&&e.text===nQ(l)&&(dt.assert(u),R={sourceFile:e,languageServiceRefCount:0},I())}if(R)R.sourceFile.version!==d&&(R.sourceFile=a5(R.sourceFile,l,d,l.getChangeRange(R.sourceFile.scriptSnapshot)),r&&r.setDocument(E,n,R.sourceFile)),u&&R.languageServiceRefCount++;else{const t=i5(e,l,T,d,!1,p);r&&r.setDocument(E,n,t),R={sourceFile:t,languageServiceRefCount:1},I()}return dt.assert(0!==R.languageServiceRefCount),R.sourceFile;function I(){if(x)if(q0(x)){const e=new Map;e.set(x.sourceFile.scriptKind,x),e.set(p,R),A.set(n,e)}else x.set(p,R);else A.set(n,R)}}function u(e,n,t,r){const i=dt.checkDefined(o.get($0(n,r))),a=i.get(e),s=c(a,t);s.languageServiceRefCount--,dt.assert(s.languageServiceRefCount>=0),0===s.languageServiceRefCount&&(q0(a)?i.delete(e):(a.delete(t),1===a.size&&i.set(e,f(a.values(),sn))))}return{acquireDocument:function(e,t,r,o,l,c){return s(e,Ki(e,n,i),t,Y0(a(t)),r,o,l,c)},acquireDocumentWithKey:s,updateDocument:function(e,t,r,o,s,c){return l(e,Ki(e,n,i),t,Y0(a(t)),r,o,s,c)},updateDocumentWithKey:l,releaseDocument:function(e,t,r,o){return u(Ki(e,n,i),Y0(t),r,o)},releaseDocumentWithKey:u,getKeyForCompilationSettings:Y0,getDocumentRegistryBucketKeyWithMode:$0,reportStats:function(){const e=Le(o.keys()).filter(e=>e&&"_"===e.charAt(0)).map(e=>{const n=o.get(e),t=[];return n.forEach((e,n)=>{q0(e)?t.push({name:n,scriptKind:e.sourceFile.scriptKind,refCount:e.languageServiceRefCount}):e.forEach((e,r)=>t.push({name:n,scriptKind:r,refCount:e.languageServiceRefCount}))}),t.sort((e,n)=>n.refCount-e.refCount),{bucket:e,sourceFiles:t}});return JSON.stringify(e,void 0,2)},getBuckets:()=>o}}function Y0(e){return PF(e,Hk)}function $0(e,n){return n?`${e}|${n}`:e}function Q0(e,n,t,r,o,i,a){const s=zy(r),l=Hn(s),c=Z0(n,t,l,a),d=Z0(t,n,l,a);return tpe.ChangeTracker.with({host:r,formatContext:o,preferences:i},o=>{!function(e,n,t,r,o,i,a){const{configFile:s}=e.getCompilerOptions();if(!s)return;const l=Mi(s.fileName),c=Jm(s);if(!c)return;function d(e){const n=mC(e.initializer)?e.initializer.elements:[e.initializer];let t=!1;for(const r of n)t=u(r)||t;return t}function u(e){if(!qI(e))return!1;const r=e1(l,e.text),o=t(r);return void 0!==o&&(n.replaceRangeWithText(s,o1(e,s),p(o)),!0)}function p(e){return aa(l,e,!a)}i1(c,(e,t)=>{switch(t){case"files":case"include":case"exclude":{if(d(e)||"include"!==t||!mC(e.initializer))return;const c=F(e.initializer.elements,e=>qI(e)?e.text:void 0);if(0===c.length)return;const u=vE(l,[],c,a,i);return void(bE(dt.checkDefined(u.includeFilePattern),a).test(r)&&!bE(dt.checkDefined(u.includeFilePattern),a).test(o)&&n.insertNodeAfter(s,ye(e.initializer.elements),vR.createStringLiteral(p(o))))}case"compilerOptions":return void i1(e.initializer,(e,n)=>{const t=gw(n);dt.assert("listOrElement"!==(null==t?void 0:t.type)),t&&(t.isFilePath||"list"===t.type&&t.element.isFilePath)?d(e):"paths"===n&&i1(e.initializer,e=>{if(mC(e.initializer))for(const n of e.initializer.elements)u(n)})})}})}(e,o,c,n,t,r.getCurrentDirectory(),s),function(e,n,t,r,o,i){const a=e.getSourceFiles();for(const s of a){const l=t(s.fileName),c=l??s.fileName,d=Mi(c),u=r(s.fileName),p=u||s.fileName,f=Mi(p),m=void 0!==l||void 0!==u;r1(s,n,e=>{if(!Si(e))return;const n=e1(f,e),r=t(n);return void 0===r?void 0:Xi(aa(d,r,i))},n=>{const r=e.getTypeChecker().getSymbolAtLocation(n);if((null==r?void 0:r.declarations)&&r.declarations.some(e=>pf(e)))return;const i=void 0!==u?t1(n,KF(n.text,p,e.getCompilerOptions(),o),t,a):n1(r,n,s,e,o,t);return void 0!==i&&(i.updated||m&&Si(n.text))?pz.updateModuleSpecifier(e.getCompilerOptions(),s,c,i.newFileName,lQ(e,o),n.text):void 0})}}(e,o,c,d,r,l)})}function Z0(e,n,t,r){const o=t(e);return e=>{const i=r&&r.tryGetSourcePosition({fileName:e,pos:0}),a=function(e){if(t(e)===o)return n;const r=rE(e,o,t);return void 0===r?void 0:n+"/"+r}(i?i.fileName:e);return i?void 0===a?void 0:function(e,n,t,r){const o=la(e,n,r);return e1(Mi(t),o)}(i.fileName,a,e,t):a}}function e1(e,n){return Xi(function(e,n){return ji(zi(e,n))}(e,n))}function n1(e,n,t,r,o,i){if(e){const n=y(e.declarations,uM).fileName,t=i(n);return void 0===t?{newFileName:n,updated:!1}:{newFileName:t,updated:!0}}{const e=r.getModeForUsageLocation(t,n);return t1(n,o.resolveModuleNameLiterals||!o.resolveModuleNames?r.getResolvedModuleFromModuleSpecifier(n,t):o.getResolvedModuleWithFailedLookupLocationsFromCache&&o.getResolvedModuleWithFailedLookupLocationsFromCache(n.text,t.fileName,e),i,r.getSourceFiles())}}function t1(e,n,t,r){if(!n)return;if(n.resolvedModule){const e=a(n.resolvedModule.resolvedFileName);if(e)return e}const o=d(n.failedLookupLocations,function(e){const n=t(e);return n&&y(r,e=>e.fileName===n)?i(e):void 0})||Si(e.text)&&d(n.failedLookupLocations,i);return o||n.resolvedModule&&{newFileName:n.resolvedModule.resolvedFileName,updated:!1};function i(e){return Fn(e,"/package.json")?void 0:a(e)}function a(e){const n=t(e);return n&&{newFileName:n,updated:!0}}}function r1(e,n,t,r){for(const o of e.referencedFiles||s){const r=t(o.fileName);void 0!==r&&r!==e.text.slice(o.pos,o.end)&&n.replaceRangeWithText(e,o,r)}for(const o of e.imports){const t=r(o);void 0!==t&&t!==o.text&&n.replaceRangeWithText(e,o1(o,e),t)}}function o1(e,n){return Ob(e.getStart(n)+1,e.end-1)}function i1(e,n){if(hC(e))for(const t of e.properties)sM(t)&&qI(t.name)&&n(t,t.name.text)}(e=>{function n(e,n){return{fileName:n.fileName,textSpan:j$(e,n),kind:"none"}}function t(e){return dN(e)?[e]:uN(e)?K(e.catchClause?t(e.catchClause):e.tryBlock&&t(e.tryBlock),e.finallyBlock&&t(e.finallyBlock)):ad(e)?void 0:o(e,t)}function r(e){return Dc(e)?[e]:ad(e)?void 0:o(e,r)}function o(e,n){const t=[];return e.forEachChild(e=>{const r=n(e);void 0!==r&&t.push(...$e(r))}),t}function i(e,n){const t=a(n);return!!t&&t===e}function a(e){return ml(e,n=>{switch(n.kind){case 256:if(252===e.kind)return!1;case 249:case 250:case 251:case 248:case 247:return!e.label||function(e,n){return!!ml(e.parent,e=>cN(e)?e.label.escapedText===n:"quit")}(n,e.label.escapedText);default:return ad(n)&&"quit"}})}function s(e,n,...t){return!(!n||!S(t,n.kind))&&(e.push(n),!0)}function l(e){const n=[];if(s(n,e.getFirstToken(),99,117,92)&&247===e.kind){const t=e.getChildren();for(let e=t.length-1;e>=0&&!s(n,t[e],117);e--);}return d(r(e.statement),t=>{i(e,t)&&s(n,t.getFirstToken(),83,88)}),n}function c(e){const n=a(e);if(n)switch(n.kind){case 249:case 250:case 251:case 247:case 248:return l(n);case 256:return u(n)}}function u(e){const n=[];return s(n,e.getFirstToken(),109),d(e.caseBlock.clauses,t=>{s(n,t.getFirstToken(),84,90),d(r(t),t=>{i(e,t)&&s(n,t.getFirstToken(),83)})}),n}function p(e,n){const t=[];if(s(t,e.getFirstToken(),113),e.catchClause&&s(t,e.catchClause.getFirstToken(),85),e.finallyBlock){s(t,qY(e,98,n),98)}return t}function f(e,n){const r=function(e){let n=e;for(;n.parent;){const e=n.parent;if(Vm(e)||308===e.kind)return e;if(uN(e)&&e.tryBlock===n&&e.catchClause)return n;n=e}}(e);if(!r)return;const o=[];return d(t(r),e=>{o.push(qY(e,111,n))}),Vm(r)&&Mm(r,e=>{o.push(qY(e,107,n))}),o}function m(e,n){const r=$m(e);if(!r)return;const o=[];return Mm(nn(r.body,JC),e=>{o.push(qY(e,107,n))}),d(t(r.body),e=>{o.push(qY(e,111,n))}),o}function h(e){const n=$m(e);if(!n)return;const t=[];return n.modifiers&&n.modifiers.forEach(e=>{s(t,e,134)}),rk(n,e=>{_(e,e=>{DC(e)&&s(t,e.getFirstToken(),135)})}),t}function _(e,n){n(e),ad(e)||md(e)||gN(e)||bN(e)||yN(e)||Ed(e)||rk(e,e=>_(e,n))}e.getDocumentHighlights=function(e,t,r,o,i){const a=i$(r,o);if(a.parent&&(qN(a.parent)&&a.parent.tagName===a||JN(a.parent))){const{openingElement:e,closingElement:t}=a.parent.parent,o=[e,t].map(({tagName:e})=>n(e,r));return[{fileName:r.fileName,highlightSpans:o}]}return function(e,n,t,r,o){const i=new Set(o.map(e=>e.fileName)),a=kle.getReferenceEntriesForNode(e,n,t,o,r,void 0,i);if(!a)return;const s=We(a.map(kle.toHighlightSpan),e=>e.fileName,e=>e.span),l=Hn(t.useCaseSensitiveFileNames());return Le(W(s.entries(),([e,n])=>{if(!i.has(e)){if(!t.redirectTargetsMap.has(Ki(e,t.getCurrentDirectory(),l)))return;const n=t.getSourceFile(e);e=y(o,e=>!!e.redirectInfo&&e.redirectInfo.redirectTarget===n).fileName,dt.assert(i.has(e))}return{fileName:e,highlightSpans:n}}))}(o,a,e,t,i)||function(e,t){const r=function(e,t){switch(e.kind){case 101:case 93:return QC(e.parent)?function(e,t){const r=function(e,n){const t=[];for(;QC(e.parent)&&e.parent.elseStatement===e;)e=e.parent;for(;;){const r=e.getChildren(n);s(t,r[0],101);for(let e=r.length-1;e>=0&&!s(t,r[e],93);e--);if(!e.elseStatement||!QC(e.elseStatement))break;e=e.elseStatement}return t}(e,t),o=[];for(let i=0;i<r.length;i++){if(93===r[i].kind&&i<r.length-1){const e=r[i],n=r[i+1];let a=!0;for(let r=n.getStart(t)-1;r>=e.end;r--)if(!Ka(t.text.charCodeAt(r))){a=!1;break}if(a){o.push({fileName:t.fileName,textSpan:Xs(e.getStart(),n.end),kind:"reference"}),i++;continue}}o.push(n(r[i],t))}return o}(e.parent,t):void 0;case 107:return i(e.parent,aN,m);case 111:return i(e.parent,dN,f);case 113:case 85:case 98:return i(85===e.kind?e.parent.parent:e.parent,uN,p);case 109:return i(e.parent,lN,u);case 84:case 90:return oM(e.parent)||rM(e.parent)?i(e.parent.parent.parent,lN,u):void 0;case 83:case 88:return i(e.parent,Dc,c);case 99:case 117:case 92:return i(e.parent,e=>Xd(e,!0),l);case 137:return o(wD,[137]);case 139:case 153:return o(hd,[139,153]);case 135:return i(e.parent,DC,h);case 134:return a(h(e));case 127:return a(function(e){const n=$m(e);if(!n)return;const t=[];return rk(n,e=>{_(e,e=>{kC(e)&&s(t,e.getFirstToken(),127)})}),t}(e));case 103:case 147:return;default:return Zc(e.kind)&&(fu(e.parent)||XC(e.parent))?a((r=e.kind,F(function(e,n){const t=e.parent;switch(t.kind){case 269:case 308:case 242:case 297:case 298:return 64&n&&_N(e)?[...e.members,e]:t.statements;case 177:case 175:case 263:return[...t.parameters,...md(t.parent)?t.parent.members:[]];case 264:case 232:case 265:case 188:const r=t.members;if(15&n){const e=y(t.members,wD);if(e)return[...r,...e.parameters]}else if(64&n)return[...r,t];return r;default:return}}(e.parent,$v(r)),e=>AQ(e,r)))):void 0}var r;function o(n,r){return i(e.parent,n,e=>{var o;return F(null==(o=en(e,cu))?void 0:o.symbol.declarations,e=>n(e)?y(e.getChildren(t),e=>S(r,e.kind)):void 0)})}function i(e,n,r){return n(e)?a(r(e,t)):void 0}function a(e){return e&&e.map(e=>n(e,t))}}(e,t);return r&&[{fileName:t.fileName,highlightSpans:r}]}(a,r)}})(L0||(L0={}));var a1=(e=>(e[e.exact=0]="exact",e[e.prefix=1]="prefix",e[e.substring=2]="substring",e[e.camelCase=3]="camelCase",e))(a1||{});function s1(e,n){return{kind:e,isCaseSensitive:n}}function l1(e){const n=new Map,t=e.trim().split(".").map(e=>{return{totalTextChunk:S1(n=e.trim()),subWordTextChunks:T1(n)};var n});return 1===t.length&&""===t[0].totalTextChunk.text?{getMatchForLastSegmentOfPattern:()=>s1(2,!0),getFullMatch:()=>s1(2,!0),patternContainsDots:!1}:t.some(e=>!e.subWordTextChunks.length)?void 0:{getFullMatch:(e,r)=>function(e,n,t,r){const o=u1(n,ye(t),r);if(!o)return;if(t.length-1>e.length)return;let i;for(let a=t.length-2,s=e.length-1;a>=0;a-=1,s-=1)i=p1(i,u1(e[s],t[a],r));return i}(e,r,t,n),getMatchForLastSegmentOfPattern:e=>u1(e,ye(t),n),patternContainsDots:t.length>1}}function c1(e,n){let t=n.get(e);return t||n.set(e,t=A1(e)),t}function d1(e,n,t){const r=function(e,n){const t=e.length-n.length;for(let r=0;r<=t;r++)if(M1(n,(n,t)=>y1(e.charCodeAt(t+r))===n))return r;return-1}(e,n.textLowerCase);if(0===r)return s1(n.text.length===e.length?0:1,Xn(e,n.text));if(n.isLowerCase){if(-1===r)return;const o=c1(e,t);for(const t of o)if(m1(e,t,n.text,!0))return s1(2,m1(e,t,n.text,!1));if(n.text.length<e.length&&_1(e.charCodeAt(r)))return s1(2,!1)}else{if(e.indexOf(n.text)>0)return s1(2,!0);if(n.characterSpans.length>0){const r=c1(e,t),o=!!h1(e,r,n,!1)||!h1(e,r,n,!0)&&void 0;if(void 0!==o)return s1(3,o)}}}function u1(e,n,t){if(M1(n.totalTextChunk.text,e=>32!==e&&42!==e)){const r=d1(e,n.totalTextChunk,t);if(r)return r}const r=n.subWordTextChunks;let o;for(const i of r)o=p1(o,d1(e,i,t));return o}function p1(e,n){return Sn([e,n],f1)}function f1(e,n){return void 0===e?1:void 0===n?-1:vn(e.kind,n.kind)||kn(!e.isCaseSensitive,!n.isCaseSensitive)}function m1(e,n,t,r,o={start:0,length:t.length}){return o.length<=n.length&&N1(0,o.length,i=>function(e,n,t){return t?y1(e)===y1(n):e===n}(t.charCodeAt(o.start+i),e.charCodeAt(n.start+i),r))}function h1(e,n,t,r){const o=t.characterSpans;let i=0,a=0;for(;;){if(a===o.length)return!0;if(i===n.length)return!1;let s=n[i],l=!1;for(;a<o.length;a++){const n=o[a];if(l&&(!_1(t.text.charCodeAt(o[a-1].start))||!_1(t.text.charCodeAt(o[a].start))))break;if(!m1(e,s,t.text,r,n))break;l=!0,s=Js(s.start+n.length,s.length-n.length)}i++}}function _1(e){if(e>=65&&e<=90)return!0;if(e<127||!Ca(e,99))return!1;const n=String.fromCharCode(e);return n===n.toUpperCase()}function g1(e){if(e>=97&&e<=122)return!0;if(e<127||!Ca(e,99))return!1;const n=String.fromCharCode(e);return n===n.toLowerCase()}function y1(e){return e>=65&&e<=90?e-65+97:e<127?e:String.fromCharCode(e).toLowerCase().charCodeAt(0)}function v1(e){return e>=48&&e<=57}function b1(e){return _1(e)||g1(e)||v1(e)||95===e||36===e}function T1(e){const n=[];let t=0,r=0;for(let o=0;o<e.length;o++){b1(e.charCodeAt(o))?(0===r&&(t=o),r++):r>0&&(n.push(S1(e.substr(t,r))),r=0)}return r>0&&n.push(S1(e.substr(t,r))),n}function S1(e){const n=e.toLowerCase();return{text:e,textLowerCase:n,isLowerCase:e===n,characterSpans:E1(e)}}function E1(e){return x1(e,!1)}function A1(e){return x1(e,!0)}function x1(e,n){const t=[];let r=0;for(let o=1;o<e.length;o++){const i=v1(e.charCodeAt(o-1)),a=v1(e.charCodeAt(o)),s=C1(e,n,o),l=n&&D1(e,o,r);(R1(e.charCodeAt(o-1))||R1(e.charCodeAt(o))||i!==a||s||l)&&(I1(e,r,o)||t.push(Js(r,o-r)),r=o)}return I1(e,r,e.length)||t.push(Js(r,e.length-r)),t}function R1(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 I1(e,n,t){return M1(e,e=>R1(e)&&95!==e,n,t)}function D1(e,n,t){return n!==t&&n+1<e.length&&_1(e.charCodeAt(n))&&g1(e.charCodeAt(n+1))&&M1(e,_1,t,n)}function C1(e,n,t){const r=_1(e.charCodeAt(t-1));return _1(e.charCodeAt(t))&&(!n||!r)}function N1(e,n,t){for(let r=e;r<n;r++)if(!t(r))return!1;return!0}function M1(e,n,t=0,r=e.length){return N1(t,r,t=>n(e.charCodeAt(t),t))}function P1(e,n=!0,t=!1){const r={pragmas:void 0,checkJsDirective:void 0,referencedFiles:[],typeReferenceDirectives:[],libReferenceDirectives:[],amdDependencies:[],hasNoDefaultLib:void 0,moduleName:void 0},o=[];let i,a,s,l=0,d=!1;function u(){return a=s,s=nY.scan(),19===s?l++:20===s&&l--,s}function p(){const e=nY.getTokenValue(),n=nY.getTokenStart();return{fileName:e,pos:n,end:n+e.length}}function f(){o.push(p()),m()}function m(){0===l&&(d=!0)}function h(){let e=nY.getToken();return 138===e&&(e=u(),144===e&&(e=u(),11===e&&(i||(i=[]),i.push({ref:p(),depth:l}))),!0)}function _(){if(25===a)return!1;let e=nY.getToken();if(102===e){if(e=u(),21===e){if(e=u(),11===e||15===e)return f(),!0}else{if(11===e)return f(),!0;if(156===e){nY.lookAhead(()=>{const e=nY.scan();return 161!==e&&(42===e||19===e||80===e||Dg(e))})&&(e=u())}if(80===e||Dg(e))if(e=u(),161===e){if(e=u(),11===e)return f(),!0}else if(64===e){if(y(!0))return!0}else{if(28!==e)return!0;e=u()}if(19===e){for(e=u();20!==e&&1!==e;)e=u();20===e&&(e=u(),161===e&&(e=u(),11===e&&f()))}else 42===e&&(e=u(),130===e&&(e=u(),(80===e||Dg(e))&&(e=u(),161===e&&(e=u(),11===e&&f()))))}return!0}return!1}function g(){let e=nY.getToken();if(95===e){if(m(),e=u(),156===e){nY.lookAhead(()=>{const e=nY.scan();return 42===e||19===e})&&(e=u())}if(19===e){for(e=u();20!==e&&1!==e;)e=u();20===e&&(e=u(),161===e&&(e=u(),11===e&&f()))}else if(42===e)e=u(),161===e&&(e=u(),11===e&&f());else if(102===e){if(e=u(),156===e){nY.lookAhead(()=>{const e=nY.scan();return 80===e||Dg(e)})&&(e=u())}if((80===e||Dg(e))&&(e=u(),64===e&&y(!0)))return!0}return!0}return!1}function y(e,n=!1){let t=e?u():nY.getToken();return 149===t&&(t=u(),21===t&&(t=u(),(11===t||n&&15===t)&&f()),!0)}function v(){let e=nY.getToken();if(80===e&&"define"===nY.getTokenValue()){if(e=u(),21!==e)return!0;if(e=u(),11===e||15===e){if(e=u(),28!==e)return!0;e=u()}if(23!==e)return!0;for(e=u();24!==e&&1!==e;)11!==e&&15!==e||f(),e=u();return!0}return!1}if(n&&function(){for(nY.setText(e),u();1!==nY.getToken();){if(16===nY.getToken()){const e=[nY.getToken()];e:for(;c(e);){const n=nY.scan();switch(n){case 1:break e;case 102:_();break;case 16:e.push(n);break;case 19:c(e)&&e.push(n);break;case 20:c(e)&&(16===ge(e)?18===nY.reScanTemplateToken(!1)&&e.pop():e.pop())}}u()}h()||_()||g()||t&&(y(!1,!0)||v())||u()}nY.setText(void 0)}(),bk(r,e),Tk(r,tn),d){if(i)for(const e of i)o.push(e.ref);return{referencedFiles:r.referencedFiles,typeReferenceDirectives:r.typeReferenceDirectives,libReferenceDirectives:r.libReferenceDirectives,importedFiles:o,isLibFile:!!r.hasNoDefaultLib,ambientExternalModules:void 0}}{let e;if(i)for(const n of i)0===n.depth?(e||(e=[]),e.push(n.ref.fileName)):o.push(n.ref);return{referencedFiles:r.referencedFiles,typeReferenceDirectives:r.typeReferenceDirectives,libReferenceDirectives:r.libReferenceDirectives,importedFiles:o,isLibFile:!!r.hasNoDefaultLib,ambientExternalModules:e}}}var L1=/^data:(?:application\/json;charset=[uU][tT][fF]-8;base64,([A-Za-z0-9+/=]+)$)?/;function k1(e){const n=Hn(e.useCaseSensitiveFileNames()),t=e.getCurrentDirectory(),r=new Map,o=new Map;return{tryGetSourcePosition:function e(n){if(!yk(n.fileName))return;if(!s(n.fileName))return;const t=a(n.fileName).getSourcePosition(n);return t&&t!==n?e(t)||t:void 0},tryGetGeneratedPosition:function(n){if(yk(n.fileName))return;const t=s(n.fileName);if(!t)return;const r=e.getProgram();if(r.isSourceOfProjectReferenceRedirect(t.fileName))return;const o=r.getCompilerOptions().outFile,i=o?qE(o)+".d.ts":qy(n.fileName,r.getCompilerOptions(),r);if(void 0===i)return;const l=a(i,n.fileName).getGeneratedPosition(n);return l===n?void 0:l},toLineColumnOffset:function(e,n){return c(e).getLineAndCharacterOfPosition(n)},clearCache:function(){r.clear(),o.clear()},documentPositionMappers:o};function i(e){return Ki(e,t,n)}function a(t,r){const a=i(t),s=o.get(a);if(s)return s;let l;if(e.getDocumentPositionMapper)l=e.getDocumentPositionMapper(t,r);else if(e.readFile){const r=c(t);l=r&&w1({getSourceFileLike:c,getCanonicalFileName:n,log:n=>e.log(n)},t,OB(r.text,Ba(r)),n=>!e.fileExists||e.fileExists(n)?e.readFile(n):void 0)}return o.set(a,l||QB),l||QB}function s(n){const t=e.getProgram();if(!t)return;const r=i(n),o=t.getSourceFileByPath(r);return o&&o.resolvedPath===r?o:void 0}function l(n){const t=i(n),o=r.get(t);if(void 0!==o)return o||void 0;if(!e.readFile||e.fileExists&&!e.fileExists(n))return void r.set(t,!1);const a=e.readFile(n),s=!!a&&function(e,n){return{text:e,lineMap:n,getLineAndCharacterOfPosition(e){return Ga(Ba(this),e)}}}(a);return r.set(t,s),s||void 0}function c(n){return e.getSourceFileLike?e.getSourceFileLike(n):s(n)||l(n)}}function w1(e,n,t,r){let o=FB(t);if(o){const t=L1.exec(o);if(t){if(t[1]){const r=t[1];return O1(e,Db(di,r),n)}o=void 0}}const i=[];o&&i.push(o),i.push(n+".map");const a=o&&Vi(o,Mi(n));for(const s of i){const t=Vi(s,Mi(n)),o=r(t,a);if(Qe(o))return O1(e,o,t);if(void 0!==o)return o||void 0}}function O1(e,n,t){const r=zB(n);if(r&&r.sources&&r.file&&r.mappings&&(!r.sourcesContent||!r.sourcesContent.some(Qe)))return $B(e,r,t)}var F1=new Map;function W1(e,n,t){var r;n.getSemanticDiagnostics(e,t);const o=[],i=n.getTypeChecker();var a;!(1===n.getImpliedNodeFormatForEmit(e)||Ri(e.fileName,[".cts",".cjs"]))&&e.commonJsModuleIndicator&&(aQ(n)||sQ(n.getCompilerOptions()))&&function(e){return e.statements.some(e=>{switch(e.kind){case 244:return e.declarationList.declarations.some(e=>!!e.initializer&&Wh(z1(e.initializer),!0));case 245:{const{expression:n}=e;if(!MC(n))return Wh(n,!0);const t=o_(n);return 1===t||2===t}default:return!1}})}(e)&&o.push(Vf(MC(a=e.commonJsModuleIndicator)?a.left:a,fa.File_is_a_CommonJS_module_it_may_be_converted_to_an_ES_module));const s=Ph(e);if(F1.clear(),function n(t){if(s)(function(e,n){var t,r,o,i;if(EC(e)){if(fN(e.parent)&&(null==(t=e.symbol.members)?void 0:t.size))return!0;const i=n.getSymbolOfExpando(e,!1);return!(!i||!(null==(r=i.exports)?void 0:r.size)&&!(null==(o=i.members)?void 0:o.size))}if(hN(e))return!!(null==(i=e.symbol.members)?void 0:i.size);return!1})(t,i)&&o.push(Vf(fN(t.parent)?t.parent.name:t,fa.This_constructor_function_may_be_converted_to_a_class_declaration));else{if(XC(t)&&t.parent===e&&2&t.declarationList.flags&&1===t.declarationList.declarations.length){const e=t.declarationList.declarations[0].initializer;e&&Wh(e,!0)&&o.push(Vf(e,fa.require_call_may_be_converted_to_an_import))}const n=G5.getJSDocTypedefNodes(t);for(const e of n)o.push(Vf(e,fa.JSDoc_typedef_may_be_converted_to_TypeScript_type));G5.parameterShouldGetTypeFromJSDoc(t)&&o.push(Vf(t.name||t,fa.JSDoc_types_may_be_moved_to_TypeScript_types))}J1(t)&&function(e,n,t){(function(e,n){return!Wg(e)&&e.body&&JC(e.body)&&function(e,n){return!!Mm(e,e=>V1(e,n))}(e.body,n)&&G1(e,n)})(e,n)&&!F1.has(q1(e))&&t.push(Vf(!e.name&&fN(e.parent)&&dD(e.parent.name)?e.parent.name:e,fa.This_may_be_converted_to_an_async_function))}(t,i,o);t.forEachChild(n)}(e),DS(n.getCompilerOptions()))for(const l of e.imports){const t=S_(l);if(AN(t)&&Mv(t,32))continue;const i=B1(t);if(!i)continue;const a=null==(r=n.getResolvedModuleFromModuleSpecifier(l,e))?void 0:r.resolvedModule,s=a&&n.getSourceFile(a.resolvedFileName);s&&s.externalModuleIndicator&&!0!==s.externalModuleIndicator&&ON(s.externalModuleIndicator)&&s.externalModuleIndicator.isExportEquals&&o.push(Vf(i,fa.Import_may_be_converted_to_a_default_import))}return ae(o,e.bindSuggestionDiagnostics),ae(o,n.getSuggestionDiagnostics(e,t)),o.sort((e,n)=>e.start-n.start),o}function z1(e){return _C(e)?z1(e.expression):e}function B1(e){switch(e.kind){case 273:const{importClause:n,moduleSpecifier:t}=e;return n&&!n.name&&n.namedBindings&&275===n.namedBindings.kind&&qI(t)?n.namedBindings.name:void 0;case 272:return e.name;default:return}}function G1(e,n){const t=n.getSignatureFromDeclaration(e),r=t?n.getReturnTypeOfSignature(t):void 0;return!!r&&!!n.getPromisedTypeOfPromise(r)}function V1(e,n){return aN(e)&&!!e.expression&&j1(e.expression,n)}function j1(e,n){if(!U1(e)||!H1(e)||!e.arguments.every(e=>K1(e,n)))return!1;let t=e.expression.expression;for(;U1(t)||_C(t);)if(yC(t)){if(!H1(t)||!t.arguments.every(e=>K1(e,n)))return!1;t=t.expression.expression}else t=t.expression;return!0}function U1(e){return yC(e)&&(yY(e,"then")||yY(e,"catch")||yY(e,"finally"))}function H1(e){const n=e.expression.name.text,t="then"===n?2:"catch"===n||"finally"===n?1:0;return!(e.arguments.length>t)&&(e.arguments.length<t||(1===t||U(e.arguments,e=>106===e.kind||dD(e)&&"undefined"===e.text)))}function K1(e,n){switch(e.kind){case 263:case 219:if(1&Fg(e))return!1;case 220:F1.set(q1(e),!0);case 106:return!0;case 80:case 212:{const t=n.getSymbolAtLocation(e);return!!t&&(n.isUndefinedSymbol(t)||U(cT(t,n).declarations,e=>ad(e)||Lu(e)&&!!e.initializer&&ad(e.initializer)))}default:return!1}}function q1(e){return`${e.pos.toString()}:${e.end.toString()}`}function J1(e){switch(e.kind){case 263:case 175:case 219:case 220:return!0;default:return!1}}var X1=new Set(["isolatedModules"]);function Y1(e,n){return t2(e,n,!1)}function $1(e,n){return t2(e,n,!0)}var Q1,Z1,e2='/// <reference no-default-lib="true"/>\ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number {}\ninterface Object {}\ninterface RegExp {}\ninterface String {}\ninterface Array<T> { length: number; [n: number]: T; }\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}',n2="lib.d.ts";function t2(e,n,t){Q1??(Q1=sk(n2,e2,{languageVersion:99}));const r=[],o=n.compilerOptions?o2(n.compilerOptions,r):{},i={target:1,jsx:1};for(const f in i)Ie(i,f)&&void 0===o[f]&&(o[f]=i[f]);for(const f of qk)o.verbatimModuleSyntax&&X1.has(f.name)||(o[f.name]=f.transpileOptionValue);o.suppressOutputPathCheck=!0,o.allowNonTsExtensions=!0,t?(o.declaration=!0,o.emitDeclarationOnly=!0,o.isolatedDeclarations=!0):(o.declaration=!1,o.declarationMap=!1);const a=wb(o),s={getSourceFile:e=>e===ji(l)?c:e===ji(n2)?Q1:void 0,writeFile:(e,n)=>{xi(e,".map")?(dt.assertEqual(u,void 0,"Unexpected multiple source map outputs, file:",e),u=n):(dt.assertEqual(d,void 0,"Unexpected multiple outputs, file:",e),d=n)},getDefaultLibFileName:()=>n2,useCaseSensitiveFileNames:()=>!1,getCanonicalFileName:e=>e,getCurrentDirectory:()=>"",getNewLine:()=>a,fileExists:e=>e===l||!!t&&e===n2,readFile:()=>"",directoryExists:()=>!0,getDirectories:()=>[]},l=n.fileName||(n.compilerOptions&&n.compilerOptions.jsx?"module.tsx":"module.ts"),c=sk(l,e,{languageVersion:SS(o),impliedNodeFormat:GU(Ki(l,"",s.getCanonicalFileName),void 0,s,o),setExternalModuleIndicator:gS(o),jsDocParsingMode:n.jsDocParsingMode??0});let d,u;n.moduleName&&(c.moduleName=n.moduleName),n.renamedDependencies&&(c.renamedDependencies=new Map(Object.entries(n.renamedDependencies)));const p=UU(t?[l,n2]:[l],o,s);n.reportDiagnostics&&(ae(r,p.getSyntacticDiagnostics(c)),ae(r,p.getOptionsDiagnostics()));return ae(r,p.emit(void 0,void 0,void 0,t,n.transformers,t).diagnostics),void 0===d?dt.fail("Output generation failed"):{outputText:d,diagnostics:r,sourceMapText:u}}function r2(e,n,t,r,o){const i=Y1(e,{compilerOptions:n,fileName:t,reportDiagnostics:!!r,moduleName:o});return ae(r,i.diagnostics),i.outputText}function o2(e,n){Z1=Z1||x(Bk,e=>"object"==typeof e.type&&!ap(e.type,e=>"number"!=typeof e)),e=F$(e);for(const t of Z1){if(!Ie(e,t.name))continue;const r=e[t.name];Qe(r)?e[t.name]=lw(t,r,n):ap(t.type,e=>e===r)||n.push(aw(t))}return e}var i2={};function a2(e,n,t,r,o,i,a){const l=l1(r);if(!l)return s;const c=[],d=1===e.length?e[0]:void 0;for(const s of e)t.throwIfCancellationRequested(),i&&s.isDeclarationFile||s2(s,!!a,d)||s.getNamedDeclarations().forEach((e,t)=>{l2(l,t,e,n,s.fileName,!!a,d,c)});return c.sort(m2),(void 0===o?c:c.slice(0,o)).map(h2)}function s2(e,n,t){return e!==t&&n&&(qZ(e.path)||e.hasNoDefaultLib)}function l2(e,n,t,r,o,i,a,s){const l=e.getMatchForLastSegmentOfPattern(n);if(l)for(const c of t)if(c2(c,r,i,a))if(e.patternContainsDots){const t=e.getFullMatch(f2(c),n);t&&s.push({name:n,fileName:o,matchKind:t.kind,isCaseSensitive:t.isCaseSensitive,declaration:c})}else s.push({name:n,fileName:o,matchKind:l.kind,isCaseSensitive:l.isCaseSensitive,declaration:c})}function c2(e,n,t,r){var o;switch(e.kind){case 274:case 277:case 272:const i=n.getSymbolAtLocation(e.name),a=n.getAliasedSymbol(i);return i.escapedName!==a.escapedName&&!(null==(o=a.declarations)?void 0:o.every(e=>s2(e.getSourceFile(),t,r)));default:return!0}}function d2(e,n){const t=Dl(e);return!!t&&(p2(t,n)||168===t.kind&&u2(t.expression,n))}function u2(e,n){return p2(e,n)||_C(e)&&(n.push(e.name.text),!0)&&u2(e.expression,n)}function p2(e,n){return Ug(e)&&(n.push(Hg(e)),!0)}function f2(e){const n=[],t=Dl(e);if(t&&168===t.kind&&!u2(t.expression,n))return s;n.shift();let r=NY(e);for(;r;){if(!d2(r,n))return s;r=NY(r)}return n.reverse(),n}function m2(e,n){return vn(e.matchKind,n.matchKind)||Pn(e.name,n.name)}function h2(e){const n=e.declaration,t=NY(n),r=t&&Dl(t);return{name:e.name,kind:MY(n),kindModifiers:C$(n),matchKind:a1[e.matchKind],isCaseSensitive:e.isCaseSensitive,fileName:e.fileName,textSpan:j$(n),containerName:r?r.text:"",containerKind:r?MY(t):""}}t(i2,{getNavigateToItems:()=>a2});var _2={};t(_2,{getNavigationBarItems:()=>R2,getNavigationTree:()=>I2});var g2,y2,v2,b2,T2=/\s+/g,S2=150,E2=[],A2=[],x2=[];function R2(e,n){g2=n,y2=e;try{return D(function(e){const n=[];function t(e){if(r(e)&&(n.push(e),e.children))for(const n of e.children)t(n)}return t(e),n;function r(e){if(e.children)return!0;switch(N2(e)){case 264:case 232:case 267:case 265:case 268:case 308:case 266:case 347:case 339:return!0;case 220:case 263:case 219:return n(e);default:return!1}function n(e){if(!e.node.body)return!1;switch(N2(e.parent)){case 269:case 308:case 175:case 177:return!0;default:return!1}}}}(P2(e)),n8)}finally{D2()}}function I2(e,n){g2=n,y2=e;try{return e8(P2(e))}finally{D2()}}function D2(){y2=void 0,g2=void 0,E2=[],v2=void 0,x2=[]}function C2(e){return u8(e.getText(y2))}function N2(e){return e.node.kind}function M2(e,n){e.children?e.children.push(n):e.children=[n]}function P2(e){dt.assert(!E2.length);const n={node:e,name:void 0,additionalNodes:void 0,parent:void 0,children:void 0,indent:0};v2=n;for(const t of e.statements)j2(t);return z2(),dt.assert(!v2&&!E2.length),n}function L2(e,n){M2(v2,k2(e,n))}function k2(e,n){return{node:e,name:n||(fu(e)||qd(e)?Dl(e):void 0),additionalNodes:void 0,parent:v2,children:void 0,indent:v2.indent+1}}function w2(e){b2||(b2=new Map),b2.set(e,!0)}function O2(e){for(let n=0;n<e;n++)z2()}function F2(e,n){const t=[];for(;!Ug(n);){const e=u_(n),r=f_(n);n=n.expression,"prototype"===r||uD(e)||t.push(e)}t.push(n);for(let r=t.length-1;r>0;r--){W2(e,t[r])}return[t.length-1,t[0]]}function W2(e,n){const t=k2(e,n);M2(v2,t),E2.push(v2),A2.push(b2),b2=void 0,v2=t}function z2(){v2.children&&(U2(v2.children,v2),Y2(v2.children)),v2=E2.pop(),b2=A2.pop()}function B2(e,n,t){W2(e,t),j2(n),z2()}function G2(e){e.initializer&&function(e){switch(e.kind){case 220:case 219:case 232:return!0;default:return!1}}(e.initializer)?(W2(e),rk(e.initializer,j2),z2()):B2(e,e.initializer)}function V2(e){const n=Dl(e);if(void 0===n)return!1;if(RD(n)){const e=n.expression;return db(e)||HI(e)||zg(e)}return!!n}function j2(e){if(g2.throwIfCancellationRequested(),e&&!Lc(e))switch(e.kind){case 177:const n=e;B2(n,n.body);for(const e of n.parameters)tl(e,n)&&L2(e);break;case 175:case 178:case 179:case 174:V2(e)&&B2(e,e.body);break;case 173:V2(e)&&G2(e);break;case 172:V2(e)&&L2(e);break;case 274:const t=e;t.name&&L2(t.name);const{namedBindings:r}=t;if(r)if(275===r.kind)L2(r);else for(const e of r.elements)L2(e);break;case 305:B2(e,e.name);break;case 306:const{expression:o}=e;dD(o)?L2(e,o):L2(e);break;case 209:case 304:case 261:{const n=e;xd(n.name)?j2(n.name):G2(n);break}case 263:const i=e.name;i&&dD(i)&&w2(i.text),B2(e,e.body);break;case 220:case 219:B2(e,e.body);break;case 267:W2(e);for(const a of e.members)a8(a)||L2(a);z2();break;case 264:case 232:case 265:W2(e);for(const a of e.members)j2(a);z2();break;case 268:B2(e,i8(e).body);break;case 278:{const n=e.expression,t=hC(n)||yC(n)?n:AC(n)||EC(n)?n.body:void 0;t?(W2(e),j2(t),z2()):L2(e);break}case 282:case 272:case 182:case 180:case 181:case 266:L2(e);break;case 214:case 227:{const n=o_(e);switch(n){case 1:case 2:return void B2(e,e.right);case 6:case 3:{const t=e,r=t.left,o=3===n?r.expression:r;let i,a=0;return dD(o.expression)?(w2(o.expression.text),i=o.expression):[a,i]=F2(t,o.expression),6===n?hC(t.right)&&t.right.properties.length>0&&(W2(t,i),rk(t.right,j2),z2()):EC(t.right)||AC(t.right)?B2(e,t.right,i):(W2(t,i),B2(e,t.right,r.name),z2()),void O2(a)}case 7:case 9:{const t=e,r=7===n?t.arguments[0]:t.arguments[0].expression,o=t.arguments[1],[i,a]=F2(e,r);return W2(e,a),W2(e,DL(vR.createIdentifier(o.text),o)),j2(e.arguments[2]),z2(),z2(),void O2(i)}case 5:{const n=e,t=n.left,r=t.expression;if(dD(r)&&"prototype"!==f_(t)&&b2&&b2.has(r.text))return void(EC(n.right)||AC(n.right)?B2(e,n.right,r):l_(t)&&(W2(n,r),B2(n.left,n.right,u_(t)),z2()));break}case 4:case 0:case 8:break;default:dt.assertNever(n)}}default:Mu(e)&&d(e.jsDoc,e=>{d(e.tags,e=>{M_(e)&&L2(e)})}),rk(e,j2)}}function U2(e,n){const t=new Map;R(e,(e,r)=>{const o=e.name||Dl(e.node),i=o&&C2(o);if(!i)return!0;const a=t.get(i);if(!a)return t.set(i,e),!0;if(a instanceof Array){for(const t of a)if(K2(t,e,r,n))return!1;return a.push(e),!0}{const o=a;return!K2(o,e,r,n)&&(t.set(i,[o,e]),!0)}})}var H2={5:!0,3:!0,7:!0,9:!0,0:!1,1:!1,2:!1,8:!1,6:!0,4:!1};function K2(e,n,t,r){return!!function(e,n,t,r){function o(e){return EC(e)||hN(e)||fN(e)}const i=MC(n.node)||yC(n.node)?o_(n.node):0,a=MC(e.node)||yC(e.node)?o_(e.node):0;if(H2[i]&&H2[a]||o(e.node)&&H2[i]||o(n.node)&&H2[a]||_N(e.node)&&q2(e.node)&&H2[i]||_N(n.node)&&H2[a]||_N(e.node)&&q2(e.node)&&o(n.node)||_N(n.node)&&o(e.node)&&q2(e.node)){let i=e.additionalNodes&&ge(e.additionalNodes)||e.node;if(!_N(e.node)&&!_N(n.node)||o(e.node)||o(n.node)){const t=o(e.node)?e.node:o(n.node)?n.node:void 0;if(void 0!==t){const r=k2(DL(vR.createConstructorDeclaration(void 0,[],void 0),t));r.indent=e.indent+1,r.children=e.node===t?e.children:n.children,e.children=e.node===t?K([r],n.children||[n]):K(e.children||[{...e}],[r])}else(e.children||n.children)&&(e.children=K(e.children||[{...e}],n.children||[n]),e.children&&(U2(e.children,e),Y2(e.children)));i=e.node=DL(vR.createClassDeclaration(void 0,e.name||vR.createIdentifier("__class__"),void 0,void 0,[]),e.node)}else e.children=K(e.children,n.children),e.children&&U2(e.children,e);const a=n.node;return r.children[t-1].node.end===i.end?DL(i,{pos:i.pos,end:a.end}):(e.additionalNodes||(e.additionalNodes=[]),e.additionalNodes.push(DL(vR.createClassDeclaration(void 0,e.name||vR.createIdentifier("__class__"),void 0,void 0,[]),n.node))),!0}return 0!==i}(e,n,t,r)||!!function(e,n,t){if(e.kind!==n.kind||e.parent!==n.parent&&(!J2(e,t)||!J2(n,t)))return!1;switch(e.kind){case 173:case 175:case 178:case 179:return Pv(e)===Pv(n);case 268:return X2(e,n)&&o8(e)===o8(n);default:return!0}}(e.node,n.node,r)&&(function(e,n){e.additionalNodes=e.additionalNodes||[],e.additionalNodes.push(n.node),n.additionalNodes&&e.additionalNodes.push(...n.additionalNodes);e.children=K(e.children,n.children),e.children&&(U2(e.children,e),Y2(e.children))}(e,n),!0)}function q2(e){return!!(16&e.flags)}function J2(e,n){if(void 0===e.parent)return!1;const t=TN(e.parent)?e.parent.parent:e.parent;return t===n.node||S(n.additionalNodes,t)}function X2(e,n){return e.body&&n.body?e.body.kind===n.body.kind&&(268!==e.body.kind||X2(e.body,n.body)):e.body===n.body}function Y2(e){e.sort($2)}function $2(e,n){return Pn(Q2(e.node),Q2(n.node))||vn(N2(e),N2(n))}function Q2(e){if(268===e.kind)return r8(e);const n=Dl(e);if(n&&od(n)){const e=jg(n);return e&&yl(e)}switch(e.kind){case 219:case 220:case 232:return c8(e);default:return}}function Z2(e,n){if(268===e.kind)return u8(r8(e));if(n){const e=dD(n)?n.text:gC(n)?`[${C2(n.argumentExpression)}]`:C2(n);if(e.length>0)return u8(e)}switch(e.kind){case 308:const n=e;return dk(n)?`"${Ay(Pi(qE(ji(n.fileName))))}"`:"<global>";case 278:return ON(e)&&e.isExportEquals?"export=":"default";case 220:case 263:case 219:case 264:case 232:return 2048&Hv(e)?"default":c8(e);case 177:return"constructor";case 181:return"new()";case 180:return"()";case 182:return"[]";default:return"<unknown>"}}function e8(e){return{text:Z2(e.node,e.name),kind:MY(e.node),kindModifiers:l8(e.node),spans:t8(e),nameSpan:e.name&&s8(e.name),childItems:D(e.children,e8)}}function n8(e){return{text:Z2(e.node,e.name),kind:MY(e.node),kindModifiers:l8(e.node),spans:t8(e),childItems:D(e.children,function(e){return{text:Z2(e.node,e.name),kind:MY(e.node),kindModifiers:C$(e.node),spans:t8(e),childItems:x2,indent:0,bolded:!1,grayed:!1}})||x2,indent:e.indent,bolded:!1,grayed:!1}}function t8(e){const n=[s8(e.node)];if(e.additionalNodes)for(const t of e.additionalNodes)n.push(s8(t));return n}function r8(e){return pf(e)?Zp(e.name):o8(e)}function o8(e){const n=[Hg(e.name)];for(;e.body&&268===e.body.kind;)e=e.body,n.push(Hg(e.name));return n.join(".")}function i8(e){return e.body&&bN(e.body)?i8(e.body):e}function a8(e){return!e.name||168===e.name.kind}function s8(e){return 308===e.kind?K$(e):j$(e,y2)}function l8(e){return e.parent&&261===e.parent.kind&&(e=e.parent),C$(e)}function c8(e){const{parent:n}=e;if(e.name&&dp(e.name)>0)return u8(Of(e.name));if(fN(n))return u8(Of(n.name));if(MC(n)&&64===n.operatorToken.kind)return C2(n.left).replace(T2,"");if(sM(n))return C2(n.name);if(2048&Hv(e))return"default";if(md(e))return"<class>";if(yC(n)){let e=d8(n.expression);if(void 0!==e){if(e=u8(e),e.length>S2)return`${e} callback`;return`${e}(${u8(F(n.arguments,e=>zu(e)||Bd(e)?e.getText(y2):void 0).join(", "))}) callback`}}return"<function>"}function d8(e){if(dD(e))return e.text;if(_C(e)){const n=d8(e.expression),t=e.name.text;return void 0===n?t:`${n}.${t}`}}function u8(e){return(e=e.length>S2?e.substring(0,S2)+"...":e).replace(/\\?(?:\r?\n|[\r\u2028\u2029])/g,"")}var p8={};t(p8,{addExportsInOldFile:()=>H8,addImportsForMovedSymbols:()=>Q8,addNewFileToTsconfig:()=>U8,addOrRemoveBracesToArrowFunction:()=>W6,addTargetFileImports:()=>R6,containsJsx:()=>u6,convertArrowFunctionOrFunctionExpression:()=>X6,convertParamsToDestructuredObject:()=>i3,convertStringOrTemplateLiteral:()=>x3,convertToOptionalChainExpression:()=>B3,createNewFileName:()=>c6,doChangeNamedToNamespaceOrDefault:()=>D8,extractSymbol:()=>Q3,generateGetAccessorAndSetAccessor:()=>g4,getApplicableRefactors:()=>h8,getEditsForRefactor:()=>_8,getExistingLocals:()=>S6,getIdentifierForNode:()=>x6,getNewStatementsAndRemoveFromOldFile:()=>j8,getStatementsToMove:()=>d6,getUsageInfo:()=>f6,inferFunctionReturnType:()=>T4,isInImport:()=>_6,isRefactorErrorInfo:()=>E6,refactorKindBeginsWith:()=>A6,registerRefactor:()=>m8});var f8=new Map;function m8(e,n){f8.set(e,n)}function h8(e,n){return Le(k(f8.values(),t=>{var r;return e.cancellationToken&&e.cancellationToken.isCancellationRequested()||!(null==(r=t.kinds)?void 0:r.some(n=>A6(n,e.kind)))?void 0:t.getAvailableActions(e,n)}))}function _8(e,n,t,r){const o=f8.get(n);return o&&o.getEditsForAction(e,t,r)}var g8="Convert export",y8={name:"Convert default export to named export",description:JT(fa.Convert_default_export_to_named_export),kind:"refactor.rewrite.export.named"},v8={name:"Convert named export to default export",description:JT(fa.Convert_named_export_to_default_export),kind:"refactor.rewrite.export.default"};function b8(e,n=!0){const{file:t,program:r}=e,o=$Z(e),i=s$(t,o.start),a=i.parent&&32&Hv(i.parent)&&n?i.parent:SQ(i,t,o);if(!(a&&(uM(a.parent)||TN(a.parent)&&pf(a.parent.parent))))return{error:JT(fa.Could_not_find_export_statement)};const s=r.getTypeChecker(),l=function(e,n){if(uM(e))return e.symbol;const t=e.parent.symbol;if(t.valueDeclaration&&yf(t.valueDeclaration))return n.getMergedSymbol(t);return t}(a.parent,s),c=Hv(a)||(ON(a)&&!a.isExportEquals?2080:0),d=!!(2048&c);if(!(32&c)||!d&&l.exports.has("default"))return{error:JT(fa.This_file_already_has_a_default_export)};const u=e=>dD(e)&&s.getSymbolAtLocation(e)?void 0:{error:JT(fa.Can_only_convert_named_export)};switch(a.kind){case 263:case 264:case 265:case 267:case 266:case 268:{const e=a;if(!e.name)return;return u(e.name)||{exportNode:e,exportName:e.name,wasDefault:d,exportingModuleSymbol:l}}case 244:{const e=a;if(!(2&e.declarationList.flags)||1!==e.declarationList.declarations.length)return;const n=he(e.declarationList.declarations);if(!n.initializer)return;return dt.assert(!d,"Can't have a default flag here"),u(n.name)||{exportNode:e,exportName:n.name,wasDefault:d,exportingModuleSymbol:l}}case 278:{const e=a;if(e.isExportEquals)return;return u(e.expression)||{exportNode:e,exportName:e.expression,wasDefault:d,exportingModuleSymbol:l}}default:return}}function T8(e,n){return vR.createImportSpecifier(!1,e===n?void 0:vR.createIdentifier(e),vR.createIdentifier(n))}function S8(e,n){return vR.createExportSpecifier(!1,e===n?void 0:vR.createIdentifier(e),vR.createIdentifier(n))}m8(g8,{kinds:[y8.kind,v8.kind],getAvailableActions:function(e){const n=b8(e,"invoked"===e.triggerReason);if(!n)return s;if(!E6(n)){const e=n.wasDefault?y8:v8;return[{name:g8,description:e.description,actions:[e]}]}return e.preferences.provideRefactorNotApplicableReason?[{name:g8,description:JT(fa.Convert_default_export_to_named_export),actions:[{...y8,notApplicableReason:n.error},{...v8,notApplicableReason:n.error}]}]:s},getEditsForAction:function(e,n){dt.assert(n===y8.name||n===v8.name,"Unexpected action name");const t=b8(e);dt.assert(t&&!E6(t),"Expected applicable refactor info");const r=tpe.ChangeTracker.with(e,n=>function(e,n,t,r,o){(function(e,{wasDefault:n,exportNode:t,exportName:r},o,i){if(n)if(ON(t)&&!t.isExportEquals){const n=t.expression,r=S8(n.text,n.text);o.replaceNode(e,t,vR.createExportDeclaration(void 0,!1,vR.createNamedExports([r])))}else o.delete(e,dt.checkDefined(AQ(t,90),"Should find a default keyword in modifier list"));else{const n=dt.checkDefined(AQ(t,95),"Should find an export keyword in modifier list");switch(t.kind){case 263:case 264:case 265:o.insertNodeAfter(e,n,vR.createToken(90));break;case 244:const a=he(t.declarationList.declarations);if(!kle.Core.isSymbolReferencedInFile(r,i,e)&&!a.type){o.replaceNode(e,t,vR.createExportDefault(dt.checkDefined(a.initializer,"Initializer was previously known to be present")));break}case 267:case 266:case 268:o.deleteModifier(e,n),o.insertNodeAfter(e,t,vR.createExportDefault(vR.createIdentifier(r.text)));break;default:dt.fail(`Unexpected exportNode kind ${t.kind}`)}}})(e,t,r,n.getTypeChecker()),function(e,{wasDefault:n,exportName:t,exportingModuleSymbol:r},o,i){const a=e.getTypeChecker(),s=dt.checkDefined(a.getSymbolAtLocation(t),"Export name should resolve to a symbol");kle.Core.eachExportReference(e.getSourceFiles(),a,i,s,r,t.text,n,e=>{if(t===e)return;const r=e.getSourceFile();n?function(e,n,t,r){const{parent:o}=n;switch(o.kind){case 212:t.replaceNode(e,n,vR.createIdentifier(r));break;case 277:case 282:{const n=o;t.replaceNode(e,n,T8(r,n.name.text));break}case 274:{const i=o;dt.assert(i.name===n,"Import clause name should match provided ref");const a=T8(r,n.text),{namedBindings:s}=i;if(s)if(275===s.kind){t.deleteRange(e,{pos:n.getStart(e),end:s.getStart(e)});const o=qI(i.parent.moduleSpecifier)?mQ(i.parent.moduleSpecifier,e):1,a=uQ(void 0,[T8(r,n.text)],i.parent.moduleSpecifier,o);t.insertNodeAfter(e,i.parent,a)}else t.delete(e,n),t.insertNodeAtEndOfList(e,s.elements,a);else t.replaceNode(e,n,vR.createNamedImports([a]));break}case 206:const i=o;t.replaceNode(e,o,vR.createImportTypeNode(i.argument,i.attributes,vR.createIdentifier(r),i.typeArguments,i.isTypeOf));break;default:dt.failBadSyntaxKind(o)}}(r,e,o,t.text):function(e,n,t){const r=n.parent;switch(r.kind){case 212:t.replaceNode(e,n,vR.createIdentifier("default"));break;case 277:{const n=vR.createIdentifier(r.name.text);1===r.parent.elements.length?t.replaceNode(e,r.parent,n):(t.delete(e,r),t.insertNodeBefore(e,r.parent,n));break}case 282:t.replaceNode(e,r,S8("default",r.name.text));break;default:dt.assertNever(r,`Unexpected parent kind ${r.kind}`)}}(r,e,o)})}(n,t,r,o)}(e.file,e.program,t,n,e.cancellationToken));return{edits:r,renameFilename:void 0,renameLocation:void 0}}});var E8="Convert import",A8={0:{name:"Convert namespace import to named imports",description:JT(fa.Convert_namespace_import_to_named_imports),kind:"refactor.rewrite.import.named"},2:{name:"Convert named imports to namespace import",description:JT(fa.Convert_named_imports_to_namespace_import),kind:"refactor.rewrite.import.namespace"},1:{name:"Convert named imports to default import",description:JT(fa.Convert_named_imports_to_default_import),kind:"refactor.rewrite.import.default"}};function x8(e,n=!0){const{file:t}=e,r=$Z(e),o=s$(t,r.start),i=n?ml(o,et(xN,eP)):SQ(o,t,r);if(void 0===i||!xN(i)&&!eP(i))return{error:"Selection is not an import declaration."};const a=r.start+r.length,s=u$(i,i.parent,t);if(s&&a>s.getStart())return;const{importClause:l}=i;if(!l)return{error:JT(fa.Could_not_find_import_clause)};if(!l.namedBindings)return{error:JT(fa.Could_not_find_namespace_import_or_named_imports)};if(275===l.namedBindings.kind)return{convertTo:0,import:l.namedBindings};return R8(e.program,l)?{convertTo:1,import:l.namedBindings}:{convertTo:2,import:l.namedBindings}}function R8(e,n){return DS(e.getCompilerOptions())&&function(e,n){const t=n.resolveExternalModuleName(e);if(!t)return!1;const r=n.resolveExternalModuleSymbol(t);return t!==r}(n.parent.moduleSpecifier,e.getTypeChecker())}function I8(e){return _C(e)?e.name:e.right}function D8(e,n,t,r,o=R8(n,r.parent)){const i=n.getTypeChecker(),a=r.parent.parent,{moduleSpecifier:s}=a,l=new Set;r.elements.forEach(e=>{const n=i.getSymbolAtLocation(e.name);n&&l.add(n)});const c=s&&qI(s)?o0(s.text,99):"module";const d=r.elements.some(function(n){return!!kle.Core.eachSymbolReferenceInFile(n.name,i,e,e=>{const n=i.resolveName(c,e,-1,!0);return!!n&&(!l.has(n)||zN(e.parent))})})?fZ(c,e):c,u=new Set;for(const p of r.elements){const n=p.propertyName||p.name;kle.Core.eachSymbolReferenceInFile(p.name,i,e,r=>{const o=11===n.kind?vR.createElementAccessExpression(vR.createIdentifier(d),vR.cloneNode(n)):vR.createPropertyAccessExpression(vR.createIdentifier(d),vR.cloneNode(n));lM(r.parent)?t.replaceNode(e,r.parent,vR.createPropertyAssignment(r.text,o)):zN(r.parent)?u.add(p):t.replaceNode(e,r,o)})}if(t.replaceNode(e,r,o?vR.createIdentifier(d):vR.createNamespaceImport(vR.createIdentifier(d))),u.size&&xN(a)){const n=Le(u.values(),e=>vR.createImportSpecifier(e.isTypeOnly,e.propertyName&&vR.cloneNode(e.propertyName),vR.cloneNode(e.name)));t.insertNodeAfter(e,r.parent.parent,C8(a,void 0,n))}}function C8(e,n,t){return vR.createImportDeclaration(void 0,N8(n,t),e.moduleSpecifier,void 0)}function N8(e,n){return vR.createImportClause(void 0,e,n&&n.length?vR.createNamedImports(n):void 0)}m8(E8,{kinds:Me(A8).map(e=>e.kind),getAvailableActions:function(e){const n=x8(e,"invoked"===e.triggerReason);if(!n)return s;if(!E6(n)){const e=A8[n.convertTo];return[{name:E8,description:e.description,actions:[e]}]}return e.preferences.provideRefactorNotApplicableReason?Me(A8).map(e=>({name:E8,description:e.description,actions:[{...e,notApplicableReason:n.error}]})):s},getEditsForAction:function(e,n){dt.assert(U(Me(A8),e=>e.name===n),"Unexpected action name");const t=x8(e);dt.assert(t&&!E6(t),"Expected applicable refactor info");const r=tpe.ChangeTracker.with(e,n=>function(e,n,t,r){const o=n.getTypeChecker();0===r.convertTo?function(e,n,t,r,o){let i=!1;const a=[],s=new Map;kle.Core.eachSymbolReferenceInFile(r.name,n,e,e=>{if(Od(e.parent)){const r=I8(e.parent).text;n.resolveName(r,e,-1,!0)&&s.set(r,!0),dt.assert((_C(t=e.parent)?t.expression:t.left)===e,"Parent expression should match id"),a.push(e.parent)}else i=!0;var t});const l=new Map;for(const u of a){const n=I8(u).text;let r=l.get(n);void 0===r&&l.set(n,r=s.has(n)?fZ(n,e):n),t.replaceNode(e,u,vR.createIdentifier(r))}const c=[];l.forEach((e,n)=>{c.push(vR.createImportSpecifier(!1,e===n?void 0:vR.createIdentifier(n),vR.createIdentifier(e)))});const d=r.parent.parent;if(i&&!o&&xN(d))t.insertNodeAfter(e,d,C8(d,void 0,c));else{const n=i?vR.createIdentifier(r.name.text):void 0;t.replaceNode(e,r.parent,N8(n,c))}}(e,o,t,r.import,DS(n.getCompilerOptions())):D8(e,n,t,r.import,1===r.convertTo)}(e.file,e.program,n,t));return{edits:r,renameFilename:void 0,renameLocation:void 0}}});var M8="Extract type",P8={name:"Extract to type alias",description:JT(fa.Extract_to_type_alias),kind:"refactor.extract.type"},L8={name:"Extract to interface",description:JT(fa.Extract_to_interface),kind:"refactor.extract.interface"},k8={name:"Extract to typedef",description:JT(fa.Extract_to_typedef),kind:"refactor.extract.typedef"};function w8(e,n=!0){const{file:t,startPosition:r}=e,o=Ph(t),i=q$($Z(e)),a=i.pos===i.end&&n,l=function(e,n,t,r){const o=[()=>s$(e,n),()=>a$(e,n,()=>!0)];for(const i of o){const n=i(),o=BY(n,e,t.pos,t.end),a=ml(n,n=>n.parent&&Ed(n)&&!F8(t,n.parent,e)&&(r||o));if(a)return a}return}(t,r,i,a);if(!l||!Ed(l))return{info:{error:JT(fa.Selection_is_not_a_valid_type_node)},affectedTextRange:void 0};const c=e.program.getTypeChecker(),d=function(e,n){return ml(e,_u)||(n?ml(e,IM):void 0)}(l,o);if(void 0===d)return{info:{error:JT(fa.No_type_could_be_extracted_from_this_type_node)},affectedTextRange:void 0};const u=function(e,n){return ml(e,e=>e===n?"quit":!(!QD(e.parent)&&!ZD(e.parent)))??e}(l,d);if(!Ed(u))return{info:{error:JT(fa.Selection_is_not_a_valid_type_node)},affectedTextRange:void 0};const p=[];(QD(u.parent)||ZD(u.parent))&&i.end>l.end&&ae(p,u.parent.types.filter(e=>BY(e,t,i.pos,i.end)));const f=p.length>1?p:u,{typeParameters:m,affectedTextRange:h}=function(e,n,t,r){const o=[],i=$e(n),a={pos:i[0].getStart(r),end:i[i.length-1].end};for(const s of i)if(l(s))return{typeParameters:void 0,affectedTextRange:void 0};return{typeParameters:o,affectedTextRange:a};function l(n){if(VD(n)){if(dD(n.typeName)){const i=n.typeName,l=e.resolveName(i.text,i,262144,!0);for(const e of(null==l?void 0:l.declarations)||s)if(ID(e)&&e.getSourceFile()===r){if(e.name.escapedText===i.escapedText&&F8(e,a,r))return!0;if(F8(t,e,r)&&!F8(a,e,r)){se(o,e);break}}}}else if(nC(n)){const e=ml(n,e=>eC(e)&&F8(e.extendsType,n,r));if(!e||!F8(a,e,r))return!0}else if(GD(n)||rC(n)){const e=ml(n.parent,ad);if(e&&e.type&&F8(e.type,n,r)&&!F8(a,e,r))return!0}else if(HD(n))if(dD(n.exprName)){const o=e.resolveName(n.exprName.text,n.exprName,111551,!1);if((null==o?void 0:o.valueDeclaration)&&F8(t,o.valueDeclaration,r)&&!F8(a,o.valueDeclaration,r))return!0}else if(pv(n.exprName.left)&&!F8(a,n.parent,r))return!0;return r&&JD(n)&&Ua(r,n.pos).line===Ua(r,n.end).line&&xR(n,1),rk(n,l)}}(c,f,d,t);if(!m)return{info:{error:JT(fa.No_type_could_be_extracted_from_this_type_node)},affectedTextRange:void 0};return{info:{isJS:o,selection:f,enclosingNode:d,typeParameters:m,typeElements:O8(c,f)},affectedTextRange:h}}function O8(e,n){if(n){if(Ye(n)){const t=[];for(const r of n){const n=O8(e,r);if(!n)return;ae(t,n)}return t}if(ZD(n)){const t=[],r=new Set;for(const o of n.types){const n=O8(e,o);if(!n||!n.every(e=>e.name&&AT(r,oQ(e.name))))return;ae(t,n)}return t}return tC(n)?O8(e,n.type):KD(n)?n.members:void 0}}function F8(e,n,t){return WY(e,es(t.text,n.pos),n.end)}function W8(e){return Ye(e.selection)?{firstTypeNode:e.selection[0],lastTypeNode:e.selection[e.selection.length-1],newTypeNode:QD(e.selection[0].parent)?vR.createUnionTypeNode(e.selection):vR.createIntersectionTypeNode(e.selection)}:{firstTypeNode:e.selection,lastTypeNode:e.selection,newTypeNode:e.selection}}m8(M8,{kinds:[P8.kind,L8.kind,k8.kind],getAvailableActions:function(e){const{info:n,affectedTextRange:t}=w8(e,"invoked"===e.triggerReason);if(!n)return s;if(!E6(n)){return[{name:M8,description:JT(fa.Extract_type),actions:n.isJS?[k8]:re([P8],n.typeElements&&L8)}].map(n=>({...n,actions:n.actions.map(n=>({...n,range:t?{start:{line:Ua(e.file,t.pos).line,offset:Ua(e.file,t.pos).character},end:{line:Ua(e.file,t.end).line,offset:Ua(e.file,t.end).character}}:void 0}))}))}return e.preferences.provideRefactorNotApplicableReason?[{name:M8,description:JT(fa.Extract_type),actions:[{...k8,notApplicableReason:n.error},{...P8,notApplicableReason:n.error},{...L8,notApplicableReason:n.error}]}]:s},getEditsForAction:function(e,n){const{file:t}=e,{info:r}=w8(e);dt.assert(r&&!E6(r),"Expected to find a range to extract");const o=fZ("NewType",t),i=tpe.ChangeTracker.with(e,i=>{switch(n){case P8.name:return dt.assert(!r.isJS,"Invalid actionName/JS combo"),function(e,n,t,r){const{enclosingNode:o,typeParameters:i}=r,{firstTypeNode:a,lastTypeNode:s,newTypeNode:l}=W8(r),c=vR.createTypeAliasDeclaration(void 0,t,i.map(e=>vR.updateTypeParameterDeclaration(e,e.modifiers,e.name,e.constraint,void 0)),l);e.insertNodeBefore(n,o,ZR(c),!0),e.replaceNodeRange(n,a,s,vR.createTypeReferenceNode(t,i.map(e=>vR.createTypeReferenceNode(e.name,void 0))),{leadingTriviaOption:tpe.LeadingTriviaOption.Exclude,trailingTriviaOption:tpe.TrailingTriviaOption.ExcludeWhitespace})}(i,t,o,r);case k8.name:return dt.assert(r.isJS,"Invalid actionName/JS combo"),function(e,n,t,r,o){var i;$e(o.selection).forEach(e=>{xR(e,7168)});const{enclosingNode:a,typeParameters:s}=o,{firstTypeNode:l,lastTypeNode:c,newTypeNode:u}=W8(o),p=vR.createJSDocTypedefTag(vR.createIdentifier("typedef"),vR.createJSDocTypeExpression(u),vR.createIdentifier(r)),f=[];d(s,e=>{const n=mc(e),t=vR.createTypeParameterDeclaration(void 0,e.name),r=vR.createJSDocTemplateTag(vR.createIdentifier("template"),n&&nn(n,fM),[t]);f.push(r)});const m=vR.createJSDocComment(void 0,vR.createNodeArray(K(f,[p])));if(IM(a)){const r=a.getStart(t),o=ZQ(n.host,null==(i=n.formatContext)?void 0:i.options);e.insertNodeAt(t,a.getStart(t),m,{suffix:o+o+t.text.slice(uZ(t.text,r-1),r)})}else e.insertNodeBefore(t,a,m,!0);e.replaceNodeRange(t,l,c,vR.createTypeReferenceNode(r,s.map(e=>vR.createTypeReferenceNode(e.name,void 0))))}(i,e,t,o,r);case L8.name:return dt.assert(!r.isJS&&!!r.typeElements,"Invalid actionName/JS combo"),function(e,n,t,r){var o;const{enclosingNode:i,typeParameters:a,typeElements:s}=r,l=vR.createInterfaceDeclaration(void 0,t,a,void 0,s);DL(l,null==(o=s[0])?void 0:o.parent),e.insertNodeBefore(n,i,ZR(l),!0);const{firstTypeNode:c,lastTypeNode:d}=W8(r);e.replaceNodeRange(n,c,d,vR.createTypeReferenceNode(t,a.map(e=>vR.createTypeReferenceNode(e.name,void 0))),{leadingTriviaOption:tpe.LeadingTriviaOption.Exclude,trailingTriviaOption:tpe.TrailingTriviaOption.ExcludeWhitespace})}(i,t,o,r);default:dt.fail("Unexpected action name")}}),a=t.fileName;return{edits:i,renameFilename:a,renameLocation:mZ(i,a,o,!1)}}});var z8="Move to file",B8=JT(fa.Move_to_file),G8={name:"Move to file",description:B8,kind:"refactor.move.file"};function V8(e){return{edits:[],renameFilename:void 0,renameLocation:void 0,notApplicableReason:e}}function j8(e,n,t,r,o,i,a,s,l,d){const u=i.getTypeChecker(),f=st(e.statements,_m),m=!h0(n.fileName,i,a,!!e.commonJsModuleIndicator),h=hQ(e,s);Q8(t.oldFileImportsFromTargetFile,n.fileName,d,i),function(e,n,t,r){for(const o of e.statements)S(n,o)||Y8(o,e=>{$8(e,e=>{t.has(e.symbol)&&r.removeExistingImport(e)})})}(e,o.all,t.unusedImportsFromOldFile,d),d.writeFixes(r,h),function(e,n,t){for(const{first:r,afterLast:o}of n)t.deleteNodeRangeExcludingEnd(e,r,o)}(e,o.ranges,r),function(e,n,t,r,o,i,a){const s=n.getTypeChecker();for(const l of n.getSourceFiles())if(l!==r)for(const c of l.statements)Y8(c,d=>{if(s.getSymbolAtLocation(X8(d))!==r.symbol)return;const u=e=>{const n=fC(e.parent)?TQ(s,e.parent):cT(s.getSymbolAtLocation(e),s);return!!n&&o.has(n)};e6(l,d,e,u);const p=Bi(Mi(Vi(r.fileName,n.getCurrentDirectory())),i);if(0===Rn(!n.useCaseSensitiveFileNames())(p,l.fileName))return;const f=pz.getModuleSpecifier(n.getCompilerOptions(),l,l.fileName,p,lQ(n,t)),m=i6(d,pQ(f,a),u);m&&e.insertNodeAfter(l,c,m);const h=K8(d);h&&q8(e,l,s,o,f,h,d,a)})}(r,i,a,e,t.movedSymbols,n.fileName,h),H8(e,t.targetFileImportsFromOldFile,r,m),R6(e,t.oldImportsNeededByTargetFile,t.targetFileImportsFromOldFile,u,i,l),!Mh(n)&&f.length&&r.insertStatementsInNewFile(n.fileName,f,e),l.writeFixes(r,h);const _=function(e,n,t,r){return P(n,n=>{if(n6(n)&&!Z8(e,n,r)&&h6(n,e=>{var n;return t.includes(dt.checkDefined(null==(n=en(e,cu))?void 0:n.symbol))})){const e=function(e,n){return n?[t6(e)]:function(e){return[e,...o6(e).map(r6)]}(e)}(Vx(n),r);if(e)return e}return Vx(n)})}(e,o.all,Le(t.oldFileImportsFromTargetFile.keys()),m);Mh(n)&&n.statements.length>0?function(e,n,t,r,o){var i;const a=new Set,s=null==(i=r.symbol)?void 0:i.exports;if(s){const t=n.getTypeChecker(),i=new Map;for(const e of o.all)n6(e)&&Mv(e,32)&&h6(e,e=>{var n;const t=p(cu(e)?null==(n=s.get(e.symbol.escapedName))?void 0:n.declarations:void 0,e=>FN(e)?e:zN(e)?en(e.parent.parent,FN):void 0);t&&t.moduleSpecifier&&i.set(t,(i.get(t)||new Set).add(e))});for(const[n,o]of Le(i))if(n.exportClause&&WN(n.exportClause)&&c(n.exportClause.elements)){const i=n.exportClause.elements,s=x(i,e=>void 0===y(cT(e.symbol,t).declarations,e=>y6(e)&&o.has(e)));if(0===c(s)){e.deleteNode(r,n),a.add(n);continue}c(s)<c(i)&&e.replaceNode(r,n,vR.updateExportDeclaration(n,n.modifiers,n.isTypeOnly,vR.updateNamedExports(n.exportClause,vR.createNodeArray(s,i.hasTrailingComma)),n.moduleSpecifier,n.attributes))}}const l=v(r.statements,e=>FN(e)&&!!e.moduleSpecifier&&!a.has(e));l?e.insertNodesBefore(r,l,t,!0):e.insertNodesAfter(r,r.statements[r.statements.length-1],t)}(r,i,_,n,o):Mh(n)?r.insertNodesAtEndOfFile(n,_,!1):r.insertStatementsInNewFile(n.fileName,l.hasFixes()?[4,..._]:_,e)}function U8(e,n,t,r,o){const i=e.getCompilerOptions().configFile;if(!i)return;const a=ji(zi(t,"..",r)),s=la(i.fileName,a,o),l=i.statements[0]&&en(i.statements[0].expression,hC),c=l&&y(l.properties,e=>sM(e)&&qI(e.name)&&"files"===e.name.text);c&&mC(c.initializer)&&n.insertNodeInListAfter(i,ye(c.initializer.elements),vR.createStringLiteral(s),c.initializer.elements)}function H8(e,n,t,r){const o=eQ();n.forEach((n,i)=>{if(i.declarations)for(const a of i.declarations){if(!y6(a))continue;const n=a6(a);if(!n)continue;const i=s6(a);o(i)&&l6(e,i,n,t,r)}})}function K8(e){switch(e.kind){case 273:return e.importClause&&e.importClause.namedBindings&&275===e.importClause.namedBindings.kind?e.importClause.namedBindings.name:void 0;case 272:return e.name;case 261:return en(e.name,dD);default:return dt.assertNever(e,`Unexpected node kind ${e.kind}`)}}function q8(e,n,t,r,o,i,a,s){const l=o0(o,99);let c=!1;const d=[];if(kle.Core.eachSymbolReferenceInFile(i,t,n,e=>{_C(e.parent)&&(c=c||!!t.resolveName(l,e,-1,!0),r.has(t.getSymbolAtLocation(e.parent.name))&&d.push(e))}),d.length){const t=c?fZ(l,n):l;for(const r of d)e.replaceNode(n,r,vR.createIdentifier(t));e.insertNodeAfter(n,a,function(e,n,t,r){const o=vR.createIdentifier(n),i=pQ(t,r);switch(e.kind){case 273:return vR.createImportDeclaration(void 0,vR.createImportClause(void 0,void 0,vR.createNamespaceImport(o)),i,void 0);case 272:return vR.createImportEqualsDeclaration(void 0,!1,o,vR.createExternalModuleReference(i));case 261:return vR.createVariableDeclaration(o,void 0,void 0,J8(i));default:return dt.assertNever(e,`Unexpected node kind ${e.kind}`)}}(a,l,o,s))}}function J8(e){return vR.createCallExpression(vR.createIdentifier("require"),void 0,[e])}function X8(e){return 273===e.kind?e.moduleSpecifier:272===e.kind?e.moduleReference.expression:e.initializer.arguments[0]}function Y8(e,n){if(xN(e))qI(e.moduleSpecifier)&&n(e);else if(AN(e))UN(e.moduleReference)&&zu(e.moduleReference.expression)&&n(e);else if(XC(e))for(const t of e.declarationList.declarations)t.initializer&&Wh(t.initializer,!0)&&n(t)}function $8(e,n){var t,r,o,i,a;if(273===e.kind){if((null==(t=e.importClause)?void 0:t.name)&&n(e.importClause),275===(null==(o=null==(r=e.importClause)?void 0:r.namedBindings)?void 0:o.kind)&&n(e.importClause.namedBindings),276===(null==(a=null==(i=e.importClause)?void 0:i.namedBindings)?void 0:a.kind))for(const s of e.importClause.namedBindings.elements)n(s)}else if(272===e.kind)n(e);else if(261===e.kind)if(80===e.name.kind)n(e);else if(207===e.name.kind)for(const s of e.name.elements)dD(s.name)&&n(s)}function Q8(e,n,t,r){for(const[o,i]of e){const e=n0(o,SS(r.getCompilerOptions())),a="default"===o.name&&o.parent?1:0;t.addImportForNonExistentExport(e,n,a,o.flags,i)}}function Z8(e,n,t,r){var o;return t?!$C(n)&&Mv(n,32)||!!(r&&e.symbol&&(null==(o=e.symbol.exports)?void 0:o.has(r.escapedText))):!!e.symbol&&!!e.symbol.exports&&o6(n).some(n=>e.symbol.exports.has(gl(n)))}function e6(e,n,t,r){if(273===n.kind&&n.importClause){const{name:o,namedBindings:i}=n.importClause;if((!o||r(o))&&(!i||276===i.kind&&0!==i.elements.length&&i.elements.every(e=>r(e.name))))return t.delete(e,n)}$8(n,n=>{n.name&&dD(n.name)&&r(n.name)&&t.delete(e,n)})}function n6(e){return dt.assert(uM(e.parent),"Node parent should be a SourceFile"),b6(e)||XC(e)}function t6(e){const n=CL(e)?K([vR.createModifier(95)],Ml(e)):void 0;switch(e.kind){case 263:return vR.updateFunctionDeclaration(e,n,e.asteriskToken,e.name,e.typeParameters,e.parameters,e.type,e.body);case 264:const t=NL(e)?Nl(e):void 0;return vR.updateClassDeclaration(e,K(t,n),e.name,e.typeParameters,e.heritageClauses,e.members);case 244:return vR.updateVariableStatement(e,n,e.declarationList);case 268:return vR.updateModuleDeclaration(e,n,e.name,e.body);case 267:return vR.updateEnumDeclaration(e,n,e.name,e.members);case 266:return vR.updateTypeAliasDeclaration(e,n,e.name,e.typeParameters,e.type);case 265:return vR.updateInterfaceDeclaration(e,n,e.name,e.typeParameters,e.heritageClauses,e.members);case 272:return vR.updateImportEqualsDeclaration(e,n,e.isTypeOnly,e.name,e.moduleReference);case 245:return dt.fail();default:return dt.assertNever(e,`Unexpected declaration kind ${e.kind}`)}}function r6(e){return vR.createExpressionStatement(vR.createBinaryExpression(vR.createPropertyAccessExpression(vR.createIdentifier("exports"),vR.createIdentifier(e)),64,vR.createIdentifier(e)))}function o6(e){switch(e.kind){case 263:case 264:return[e.name.text];case 244:return F(e.declarationList.declarations,e=>dD(e.name)?e.name.text:void 0);case 268:case 267:case 266:case 265:case 272:return s;case 245:return dt.fail("Can't export an ExpressionStatement");default:return dt.assertNever(e,`Unexpected decl kind ${e.kind}`)}}function i6(e,n,t){switch(e.kind){case 273:{const r=e.importClause;if(!r)return;const o=r.name&&t(r.name)?r.name:void 0,i=r.namedBindings&&function(e,n){if(275===e.kind)return n(e.name)?e:void 0;{const t=e.elements.filter(e=>n(e.name));return t.length?vR.createNamedImports(t):void 0}}(r.namedBindings,t);return o||i?vR.createImportDeclaration(void 0,vR.createImportClause(r.phaseModifier,o,i),Vx(n),void 0):void 0}case 272:return t(e.name)?e:void 0;case 261:{const r=function(e,n){switch(e.kind){case 80:return n(e)?e:void 0;case 208:return e;case 207:{const t=e.elements.filter(e=>e.propertyName||!dD(e.name)||n(e.name));return t.length?vR.createObjectBindingPattern(t):void 0}}}(e.name,t);return r?function(e,n,t,r=2){return vR.createVariableStatement(void 0,vR.createVariableDeclarationList([vR.createVariableDeclaration(e,void 0,n,t)],r))}(r,e.type,J8(n),e.parent.flags):void 0}default:return dt.assertNever(e,`Unexpected import kind ${e.kind}`)}}function a6(e){return $C(e)?en(e.expression.left.name,dD):en(e.name,dD)}function s6(e){switch(e.kind){case 261:return e.parent.parent;case 209:return s6(nn(e.parent.parent,e=>fN(e)||fC(e)));default:return e}}function l6(e,n,t,r,o){if(!Z8(e,n,o,t))if(o)$C(n)||r.insertExportModifier(e,n);else{const t=o6(n);0!==t.length&&r.insertNodesAfter(e,n,t.map(r6))}}function c6(e,n,t,r){const o=n.getTypeChecker();if(r){const n=f6(e,r.all,o),s=Mi(e.fileName),l=rA(e.fileName),c=zi(s,function(e,n,t,r){let o=e;for(let i=1;;i++){const a=zi(t,o+n);if(!r.fileExists(a))return o;o=`${e}.${i}`}}((i=n.oldFileImportsFromTargetFile,a=n.movedSymbols,sp(i,gQ)||sp(a,gQ)||"newFile"),l,s,t))+l;return c}var i,a;return""}function d6(e){const n=function(e){const{file:n}=e,t=q$($Z(e)),{statements:r}=n;let o=b(r,e=>e.end>t.pos);if(-1===o)return;const i=T6(n,r[o]);i&&(o=i.start);let a=b(r,e=>e.end>=t.end,o);-1!==a&&t.end<=r[a].getStart()&&a--;const s=T6(n,r[a]);return s&&(a=s.end),{toMove:r.slice(o,-1===a?r.length:a+1),afterLast:-1===a?void 0:r[a+1]}}(e);if(void 0===n)return;const t=[],r=[],{toMove:o,afterLast:i}=n;return H(o,p6,(e,n)=>{for(let r=e;r<n;r++)t.push(o[r]);r.push({first:o[e],afterLast:i})}),0===t.length?void 0:{all:t,ranges:r}}function u6(e){return y(e,e=>!!(2&e.transformFlags))}function p6(e){return!function(e){switch(e.kind){case 273:return!0;case 272:return!Mv(e,32);case 244:return e.declarationList.declarations.every(e=>!!e.initializer&&Wh(e.initializer,!0));default:return!1}}(e)&&!_m(e)}function f6(e,n,t,r=new Set,o){var i;const a=new Set,s=new Map,l=new Map,c=function(e){if(void 0===e)return;const n=t.getJsxNamespace(e),r=t.resolveName(n,e,1920,!0);return r&&U(r.declarations,_6)?r:void 0}(u6(n));c&&s.set(c,[!1,en(null==(i=c.declarations)?void 0:i[0],e=>wN(e)||RN(e)||PN(e)||AN(e)||fC(e)||fN(e))]);for(const p of n)h6(p,e=>{a.add(dt.checkDefined($C(e)?t.getSymbolAtLocation(e.expression.left):e.symbol,"Need a symbol here"))});const d=new Set;for(const p of n)m6(p,t,o,(n,o)=>{if(!U(n.declarations))return;if(r.has(cT(n,t)))return void d.add(n);const i=y(n.declarations,_6);if(i){const e=s.get(n);s.set(n,[(void 0===e||e)&&o,en(i,e=>wN(e)||RN(e)||PN(e)||AN(e)||fC(e)||fN(e))])}else!a.has(n)&&g(n.declarations,n=>{return y6(n)&&(fN(t=n)?t.parent.parent.parent:t.parent)===e;var t})&&l.set(n,o)});for(const p of s.keys())d.add(p);const u=new Map;for(const p of e.statements)S(n,p)||(c&&2&p.transformFlags&&d.delete(c),m6(p,t,o,(e,n)=>{a.has(e)&&u.set(e,n),d.delete(e)}));return{movedSymbols:a,targetFileImportsFromOldFile:l,oldFileImportsFromTargetFile:u,oldImportsNeededByTargetFile:s,unusedImportsFromOldFile:d}}function m6(e,n,t,r){e.forEachChild(function e(o){if(dD(o)&&!pg(o)){if(t&&!eT(t,o))return;const e=n.getSymbolAtLocation(o);e&&r(e,AA(o))}else o.forEachChild(e)})}function h6(e,n){switch(e.kind){case 263:case 264:case 268:case 267:case 266:case 265:case 272:return n(e);case 244:return p(e.declarationList.declarations,e=>v6(e.name,n));case 245:{const{expression:t}=e;return MC(t)&&1===o_(t)?n(e):void 0}}}function _6(e){switch(e.kind){case 272:case 277:case 274:case 275:return!0;case 261:return g6(e);case 209:return fN(e.parent.parent)&&g6(e.parent.parent);default:return!1}}function g6(e){return uM(e.parent.parent.parent)&&!!e.initializer&&Wh(e.initializer,!0)}function y6(e){return b6(e)&&uM(e.parent)||fN(e)&&uM(e.parent.parent.parent)}function v6(e,n){switch(e.kind){case 80:return n(nn(e.parent,e=>fN(e)||fC(e)));case 208:case 207:return p(e.elements,e=>FC(e)?void 0:v6(e.name,n));default:return dt.assertNever(e,`Unexpected name kind ${e.kind}`)}}function b6(e){switch(e.kind){case 263:case 264:case 268:case 267:case 266:case 265:case 272:return!0;default:return!1}}function T6(e,n){if(ld(n)){const t=n.symbol.declarations;if(void 0===t||c(t)<=1||!S(t,n))return;const r=t[0],o=t[c(t)-1],i=F(t,n=>Sp(n)===e&&_u(n)?n:void 0),a=b(e.statements,e=>e.end>=o.end);return{toMove:i,start:b(e.statements,e=>e.end>=r.end),end:a}}}function S6(e,n,t){const r=new Set;for(const o of e.imports){const e=S_(o);if(xN(e)&&e.importClause&&e.importClause.namedBindings&&kN(e.importClause.namedBindings))for(const n of e.importClause.namedBindings.elements){const e=t.getSymbolAtLocation(n.propertyName||n.name);e&&r.add(cT(e,t))}if(zh(e.parent)&&uC(e.parent.name))for(const n of e.parent.name.elements){const e=t.getSymbolAtLocation(n.propertyName||n.name);e&&r.add(cT(e,t))}}for(const o of n)m6(o,t,void 0,n=>{const o=cT(n,t);o.valueDeclaration&&Sp(o.valueDeclaration).path===e.path&&r.add(o)});return r}function E6(e){return void 0!==e.error}function A6(e,n){return!n||e.substr(0,n.length)===n}function x6(e,n,t,r){return!_C(e)||md(n)||t.resolveName(e.name.text,e,111551,!1)||uD(e.name)||bl(e.name)?fZ(md(n)?"newProperty":"newLocal",r):e.name.text}function R6(e,n,t,r,o,i){n.forEach(([e,n],t)=>{var o;const a=cT(t,r);r.isUnknownSymbol(a)?i.addVerbatimImport(dt.checkDefined(n??ml(null==(o=t.declarations)?void 0:o[0],Cf))):void 0===a.parent?(dt.assert(void 0!==n,"expected module symbol to have a declaration"),i.addImportForModuleSymbol(t,e,n)):i.addImportFromExportedSymbol(a,e,n)}),Q8(t,e.fileName,i,o)}m8(z8,{kinds:[G8.kind],getAvailableActions:function(e,n){const t=e.file,r=d6(e);if(!n)return s;if("implicit"===e.triggerReason&&void 0!==e.endPosition){const n=ml(s$(t,e.startPosition),_0),r=ml(s$(t,e.endPosition),_0);if(n&&!uM(n)&&r&&!uM(r))return s}if(e.preferences.allowTextChangesInNewFiles&&r){const e={start:{line:Ua(t,r.all[0].getStart(t)).line,offset:Ua(t,r.all[0].getStart(t)).character},end:{line:Ua(t,ye(r.all).end).line,offset:Ua(t,ye(r.all).end).character}};return[{name:z8,description:B8,actions:[{...G8,range:e}]}]}return e.preferences.provideRefactorNotApplicableReason?[{name:z8,description:B8,actions:[{...G8,notApplicableReason:JT(fa.Selection_is_not_a_valid_statement_or_statements)}]}]:s},getEditsForAction:function(e,n,t){dt.assert(n===z8,"Wrong refactor invoked");const r=dt.checkDefined(d6(e)),{host:o,program:i}=e;dt.assert(t,"No interactive refactor arguments available");const a=t.targetFile;if(WE(a)||zE(a)){if(o.fileExists(a)&&void 0===i.getSourceFile(a))return V8(JT(fa.Cannot_move_statements_to_the_selected_file));const n=tpe.ChangeTracker.with(e,n=>function(e,n,t,r,o,i,a,s){const l=r.getTypeChecker(),c=!a.fileExists(t),d=c?g0(t,n.externalModuleIndicator?99:n.commonJsModuleIndicator?1:void 0,r,a):dt.checkDefined(r.getSourceFile(t)),u=G5.createImportAdder(n,e.program,e.preferences,e.host),p=G5.createImportAdder(d,e.program,e.preferences,e.host);j8(n,d,f6(n,o.all,l,c?void 0:S6(d,o.all,l)),i,o,r,a,s,p,u),c&&U8(r,i,n.fileName,t,By(a))}(e,e.file,t.targetFile,e.program,r,n,e.host,e.preferences));return{edits:n,renameFilename:void 0,renameLocation:void 0}}return V8(JT(fa.Cannot_move_to_file_selected_file_is_invalid))}});var I6="Inline variable",D6=JT(fa.Inline_variable),C6={name:I6,description:D6,kind:"refactor.inline.variable"};function N6(e,n,t,r){var o,i;const a=r.getTypeChecker(),s=i$(e,n),l=s.parent;if(dD(s)){if(oT(l)&&Om(l)&&dD(l.name)){if(1!==(null==(o=a.getMergedSymbol(l.symbol).declarations)?void 0:o.length))return{error:JT(fa.Variables_with_multiple_declarations_cannot_be_inlined)};if(M6(l))return;const n=P6(l,a,e);return n&&{references:n,declaration:l,replacement:l.initializer}}if(t){let n=a.resolveName(s.text,s,111551,!1);if(n=n&&a.getMergedSymbol(n),1!==(null==(i=null==n?void 0:n.declarations)?void 0:i.length))return{error:JT(fa.Variables_with_multiple_declarations_cannot_be_inlined)};const t=n.declarations[0];if(!oT(t)||!Om(t)||!dD(t.name))return;if(M6(t))return;const r=P6(t,a,e);return r&&{references:r,declaration:t,replacement:t.initializer}}return{error:JT(fa.Could_not_find_variable_to_inline)}}}function M6(e){return U(nn(e.parent.parent,XC).modifiers,pD)}function P6(e,n,t){const r=[],o=kle.Core.eachSymbolReferenceInFile(e.name,n,t,n=>!(!kle.isWriteAccessForReference(n)||lM(n.parent))||(!(!zN(n.parent)&&!ON(n.parent))||(!!HD(n.parent)||(!!ws(e,n.pos)||void r.push(n)))));return 0===r.length||o?void 0:r}function L6(e,n){n=Vx(n);const{parent:t}=e;return qd(t)&&(sy(n)<sy(t)||bZ(t))||ad(n)&&(Wd(t)||_C(t))||_C(t)&&(HI(n)||hC(n))?vR.createParenthesizedExpression(n):dD(e)&&lM(t)?vR.createPropertyAssignment(e,n):n}function k6(e,n,t,r){const o=t.parent,i=o.templateSpans.indexOf(t),a=0===i?o.head:o.templateSpans[i-1];e.replaceRangeWithText(n,{pos:a.getEnd()-2,end:t.literal.getStart()+1},r.text.replace(/\\/g,"\\\\").replace(/`/g,"\\`"))}m8(I6,{kinds:[C6.kind],getAvailableActions(e){const{file:n,program:t,preferences:r,startPosition:o,triggerReason:i}=e,a=N6(n,o,"invoked"===i,t);return a?p8.isRefactorErrorInfo(a)?r.provideRefactorNotApplicableReason?[{name:I6,description:D6,actions:[{...C6,notApplicableReason:a.error}]}]:s:[{name:I6,description:D6,actions:[C6]}]:s},getEditsForAction(e,n){dt.assert(n===I6,"Unexpected refactor invoked");const{file:t,program:r,startPosition:o}=e,i=N6(t,o,!0,r);if(!i||p8.isRefactorErrorInfo(i))return;const{references:a,declaration:s,replacement:l}=i;return{edits:tpe.ChangeTracker.with(e,e=>{for(const n of a){const r=qI(l)&&dD(n)&&ag(n.parent);r&&KC(r)&&!bC(r.parent.parent)?k6(e,t,r,l):e.replaceNode(t,n,L6(n,l))}e.delete(t,s)})}}});var w6="Move to a new file",O6=JT(fa.Move_to_a_new_file),F6={name:w6,description:O6,kind:"refactor.move.newFile"};m8(w6,{kinds:[F6.kind],getAvailableActions:function(e){const n=d6(e),t=e.file;if("implicit"===e.triggerReason&&void 0!==e.endPosition){const n=ml(s$(t,e.startPosition),_0),r=ml(s$(t,e.endPosition),_0);if(n&&!uM(n)&&r&&!uM(r))return s}if(e.preferences.allowTextChangesInNewFiles&&n){const t=e.file,r={start:{line:Ua(t,n.all[0].getStart(t)).line,offset:Ua(t,n.all[0].getStart(t)).character},end:{line:Ua(t,ye(n.all).end).line,offset:Ua(t,ye(n.all).end).character}};return[{name:w6,description:O6,actions:[{...F6,range:r}]}]}return e.preferences.provideRefactorNotApplicableReason?[{name:w6,description:O6,actions:[{...F6,notApplicableReason:JT(fa.Selection_is_not_a_valid_statement_or_statements)}]}]:s},getEditsForAction:function(e,n){dt.assert(n===w6,"Wrong refactor invoked");const t=dt.checkDefined(d6(e)),r=tpe.ChangeTracker.with(e,n=>function(e,n,t,r,o,i,a){const s=n.getTypeChecker(),l=f6(e,t.all,s),c=c6(e,n,o,t),d=g0(c,e.externalModuleIndicator?99:e.commonJsModuleIndicator?1:void 0,n,o),u=G5.createImportAdder(e,i.program,i.preferences,i.host),p=G5.createImportAdder(d,i.program,i.preferences,i.host);j8(e,d,l,r,t,n,o,a,p,u),U8(n,r,e.fileName,c,By(o))}(e.file,e.program,t,n,e.host,e,e.preferences));return{edits:r,renameFilename:void 0,renameLocation:void 0}}});var W6={},z6="Convert overload list to single signature",B6=JT(fa.Convert_overload_list_to_single_signature),G6={name:z6,description:B6,kind:"refactor.rewrite.function.overloadList"};function V6(e){switch(e.kind){case 174:case 175:case 180:case 177:case 181:case 263:return!0}return!1}function j6(e,n,t){const r=ml(s$(e,n),V6);if(!r)return;if(ld(r)&&r.body&&OY(r.body,n))return;const o=t.getTypeChecker(),i=r.symbol;if(!i)return;const a=i.declarations;if(c(a)<=1)return;if(!g(a,n=>Sp(n)===e))return;if(!V6(a[0]))return;const s=a[0].kind;if(!g(a,e=>e.kind===s))return;const l=a;if(U(l,e=>!!e.typeParameters||U(e.parameters,e=>!!e.modifiers||!dD(e.name))))return;const d=F(l,e=>o.getSignatureFromDeclaration(e));if(c(d)!==c(a))return;const u=o.getReturnTypeOfSignature(d[0]);return g(d,e=>o.getReturnTypeOfSignature(e)===u)?l:void 0}m8(z6,{kinds:[G6.kind],getEditsForAction:function(e){const{file:n,startPosition:t,program:r}=e,o=j6(n,t,r);if(!o)return;const i=r.getTypeChecker(),a=o[o.length-1];let s=a;switch(a.kind){case 174:s=vR.updateMethodSignature(a,a.modifiers,a.name,a.questionToken,a.typeParameters,l(o),a.type);break;case 175:s=vR.updateMethodDeclaration(a,a.modifiers,a.asteriskToken,a.name,a.questionToken,a.typeParameters,l(o),a.type,a.body);break;case 180:s=vR.updateCallSignature(a,a.typeParameters,l(o),a.type);break;case 177:s=vR.updateConstructorDeclaration(a,a.modifiers,l(o),a.body);break;case 181:s=vR.updateConstructSignature(a,a.typeParameters,l(o),a.type);break;case 263:s=vR.updateFunctionDeclaration(a,a.modifiers,a.asteriskToken,a.name,a.typeParameters,l(o),a.type,a.body);break;default:return dt.failBadSyntaxKind(a,"Unhandled signature kind in overload list conversion refactoring")}if(s===a)return;return{renameFilename:void 0,renameLocation:void 0,edits:tpe.ChangeTracker.with(e,e=>{e.replaceNodeRange(n,o[0],o[o.length-1],s)})};function l(e){const n=e[e.length-1];return ld(n)&&n.body&&(e=e.slice(0,e.length-1)),vR.createNodeArray([vR.createParameterDeclaration(void 0,vR.createToken(26),"args",void 0,vR.createUnionTypeNode(D(e,d)))])}function d(e){const n=D(e.parameters,u);return xR(vR.createTupleTypeNode(n),U(n,e=>!!c(FR(e)))?0:1)}function u(e){dt.assert(dD(e.name));const n=DL(vR.createNamedTupleMember(e.dotDotDotToken,e.name,e.questionToken,e.type||vR.createKeywordTypeNode(133)),e),t=e.symbol&&e.symbol.getDocumentationComment(i);if(t){const e=e5(t);e.length&&WR(n,[{text:`*\n${e.split("\n").map(e=>` * ${e}`).join("\n")}\n `,kind:3,pos:-1,end:-1,hasTrailingNewLine:!0,hasLeadingNewline:!0}])}return n}},getAvailableActions:function(e){const{file:n,startPosition:t,program:r}=e;return j6(n,t,r)?[{name:z6,description:B6,actions:[G6]}]:s}});var U6="Add or remove braces in an arrow function",H6=JT(fa.Add_or_remove_braces_in_an_arrow_function),K6={name:"Add braces to arrow function",description:JT(fa.Add_braces_to_arrow_function),kind:"refactor.rewrite.arrow.braces.add"},q6={name:"Remove braces from arrow function",description:JT(fa.Remove_braces_from_arrow_function),kind:"refactor.rewrite.arrow.braces.remove"};function J6(e,n,t=!0,r){const o=s$(e,n),i=$m(o);if(!i)return{error:JT(fa.Could_not_find_a_containing_arrow_function)};if(!AC(i))return{error:JT(fa.Containing_function_is_not_an_arrow_function)};if(eT(i,o)&&(!eT(i.body,o)||t)){if(A6(K6.kind,r)&&qd(i.body))return{func:i,addBraces:!0,expression:i.body};if(A6(q6.kind,r)&&JC(i.body)&&1===i.body.statements.length){const e=he(i.body.statements);if(aN(e)){return{func:i,addBraces:!1,expression:e.expression&&hC(PT(e.expression,!1))?vR.createParenthesizedExpression(e.expression):e.expression,returnStatement:e}}}}}m8(U6,{kinds:[q6.kind],getEditsForAction:function(e,n){const{file:t,startPosition:r}=e,o=J6(t,r);dt.assert(o&&!E6(o),"Expected applicable refactor info");const{expression:i,returnStatement:a,func:s}=o;let l;if(n===K6.name){const e=vR.createReturnStatement(i);l=vR.createBlock([e],!0),hZ(i,e,t,3,!0)}else if(n===q6.name&&a){const e=i||vR.createVoidZero();l=bZ(e)?vR.createParenthesizedExpression(e):e,gZ(a,l,t,3,!1),hZ(a,l,t,3,!1),_Z(a,l,t,3,!1)}else dt.fail("invalid action");return{renameFilename:void 0,renameLocation:void 0,edits:tpe.ChangeTracker.with(e,e=>{e.replaceNode(t,s.body,l)})}},getAvailableActions:function(e){const{file:n,startPosition:t,triggerReason:r}=e,o=J6(n,t,"invoked"===r);if(!o)return s;if(!E6(o))return[{name:U6,description:H6,actions:[o.addBraces?K6:q6]}];if(e.preferences.provideRefactorNotApplicableReason)return[{name:U6,description:H6,actions:[{...K6,notApplicableReason:o.error},{...q6,notApplicableReason:o.error}]}];return s}});var X6={},Y6="Convert arrow function or function expression",$6=JT(fa.Convert_arrow_function_or_function_expression),Q6={name:"Convert to anonymous function",description:JT(fa.Convert_to_anonymous_function),kind:"refactor.rewrite.function.anonymous"},Z6={name:"Convert to named function",description:JT(fa.Convert_to_named_function),kind:"refactor.rewrite.function.named"},e3={name:"Convert to arrow function",description:JT(fa.Convert_to_arrow_function),kind:"refactor.rewrite.function.arrow"};function n3(e){let n=!1;return e.forEachChild(function e(t){PY(t)?n=!0:md(t)||hN(t)||EC(t)||rk(t,e)}),n}function t3(e,n,t){const r=s$(e,n),o=t.getTypeChecker(),i=function(e,n,t){if(!function(e){return fN(e)||mN(e)&&1===e.declarations.length}(t))return;const r=(fN(t)?t:he(t.declarations)).initializer;if(r&&(AC(r)||EC(r)&&!o3(e,n,r)))return r;return}(e,o,r.parent);if(i&&!n3(i.body)&&!o.containsArgumentsReference(i))return{selectedVariableDeclaration:!0,func:i};const a=$m(r);if(a&&(EC(a)||AC(a))&&!eT(a.body,r)&&!n3(a.body)&&!o.containsArgumentsReference(a)){if(EC(a)&&o3(e,o,a))return;return{selectedVariableDeclaration:!1,func:a}}}function r3(e){if(qd(e)){const n=vR.createReturnStatement(e),t=e.getSourceFile();return DL(n,e),qx(n),gZ(e,n,t,void 0,!0),vR.createBlock([n],!0)}return e}function o3(e,n,t){return!!t.name&&kle.Core.isSymbolReferencedInFile(t.name,n,e)}m8(Y6,{kinds:[Q6.kind,Z6.kind,e3.kind],getEditsForAction:function(e,n){const{file:t,startPosition:r,program:o}=e,i=t3(t,r,o);if(!i)return;const{func:a}=i,s=[];switch(n){case Q6.name:s.push(...function(e,n){const{file:t}=e,r=r3(n.body),o=vR.createFunctionExpression(n.modifiers,n.asteriskToken,void 0,n.typeParameters,n.parameters,n.type,r);return tpe.ChangeTracker.with(e,e=>e.replaceNode(t,n,o))}(e,a));break;case Z6.name:const n=function(e){const n=e.parent;if(!fN(n)||!Om(n))return;const t=n.parent,r=t.parent;return mN(t)&&XC(r)&&dD(n.name)?{variableDeclaration:n,variableDeclarationList:t,statement:r,name:n.name}:void 0}(a);if(!n)return;s.push(...function(e,n,t){const{file:r}=e,o=r3(n.body),{variableDeclaration:i,variableDeclarationList:a,statement:s,name:l}=t;Jx(s);const d=32&sl(i)|jv(n),u=vR.createModifiersFromModifierFlags(d),p=vR.createFunctionDeclaration(c(u)?u:void 0,n.asteriskToken,l,n.typeParameters,n.parameters,n.type,o);return 1===a.declarations.length?tpe.ChangeTracker.with(e,e=>e.replaceNode(r,s,p)):tpe.ChangeTracker.with(e,e=>{e.delete(r,i),e.insertNodeAfter(r,s,p)})}(e,a,n));break;case e3.name:if(!EC(a))return;s.push(...function(e,n){const{file:t}=e,r=n.body.statements,o=r[0];let i;!function(e,n){return 1===e.statements.length&&aN(n)&&!!n.expression}(n.body,o)?i=n.body:(i=o.expression,qx(i),pZ(o,i));const a=vR.createArrowFunction(n.modifiers,n.typeParameters,n.parameters,n.type,vR.createToken(39),i);return tpe.ChangeTracker.with(e,e=>e.replaceNode(t,n,a))}(e,a));break;default:return dt.fail("invalid action")}return{renameFilename:void 0,renameLocation:void 0,edits:s}},getAvailableActions:function(e){const{file:n,startPosition:t,program:r,kind:o}=e,i=t3(n,t,r);if(!i)return s;const{selectedVariableDeclaration:a,func:l}=i,c=[],d=[];if(A6(Z6.kind,o)){const e=a||AC(l)&&fN(l.parent)?void 0:JT(fa.Could_not_convert_to_named_function);e?d.push({...Z6,notApplicableReason:e}):c.push(Z6)}if(A6(Q6.kind,o)){const e=!a&&AC(l)?void 0:JT(fa.Could_not_convert_to_anonymous_function);e?d.push({...Q6,notApplicableReason:e}):c.push(Q6)}if(A6(e3.kind,o)){const e=EC(l)?void 0:JT(fa.Could_not_convert_to_arrow_function);e?d.push({...e3,notApplicableReason:e}):c.push(e3)}return[{name:Y6,description:$6,actions:0===c.length&&e.preferences.provideRefactorNotApplicableReason?d:c}]}});var i3={},a3="Convert parameters to destructured object",s3=JT(fa.Convert_parameters_to_destructured_object),l3={name:a3,description:s3,kind:"refactor.rewrite.parameters.toDestructured"};function c3(e,n){const t=m5(e);if(t){const e=n.getContextualTypeForObjectLiteralElement(t),r=null==e?void 0:e.getSymbol();if(r&&!(6&sT(r)))return r}}function d3(e){const n=e.node;return wN(n.parent)||RN(n.parent)||AN(n.parent)||PN(n.parent)||zN(n.parent)||ON(n.parent)?n:void 0}function u3(e){if(fu(e.node.parent))return e.node}function p3(e){if(e.node.parent){const n=e.node,t=n.parent;switch(t.kind){case 214:case 215:const e=en(t,zd);if(e&&e.expression===n)return e;break;case 212:const r=en(t,_C);if(r&&r.parent&&r.name===n){const e=en(r.parent,zd);if(e&&e.expression===r)return e}break;case 213:const o=en(t,gC);if(o&&o.parent&&o.argumentExpression===n){const e=en(o.parent,zd);if(e&&e.expression===o)return e}}}}function f3(e){if(e.node.parent){const n=e.node,t=n.parent;switch(t.kind){case 212:const e=en(t,_C);if(e&&e.expression===n)return e;break;case 213:const r=en(t,gC);if(r&&r.expression===n)return r}}}function m3(e){const n=e.node;if(2===oY(n)||cb(n.parent))return n}function h3(e,n,t){const r=a$(e,n),o=Qm(r);if(!function(e){const n=ml(e,Ru);if(n){const e=ml(n,e=>!Ru(e));return!!e&&ld(e)}return!1}(r))return!(o&&function(e,n){var t;if(!function(e,n){return function(e){if(b3(e))return e.length-1;return e.length}(e)>=1&&g(e,e=>function(e,n){if(Vu(e)){const t=n.getTypeAtLocation(e);if(!n.isArrayType(t)&&!n.isTupleType(t))return!1}return!e.modifiers&&dD(e.name)}(e,n))}(e.parameters,n))return!1;switch(e.kind){case 263:return y3(e)&&g3(e,n);case 175:if(hC(e.parent)){const r=c3(e.name,n);return 1===(null==(t=null==r?void 0:r.declarations)?void 0:t.length)&&g3(e,n)}return g3(e,n);case 177:return _N(e.parent)?y3(e.parent)&&g3(e,n):v3(e.parent.parent)&&g3(e,n);case 219:case 220:return v3(e.parent)}return!1}(o,t)&&eT(o,r))||o.body&&eT(o.body,r)?void 0:o}function _3(e){return PD(e)&&(gN(e.parent)||KD(e.parent))}function g3(e,n){return!!e.body&&!n.isImplementationOfOverload(e)}function y3(e){if(!e.name){return!!AQ(e,90)}return!0}function v3(e){return fN(e)&&cm(e)&&dD(e.name)&&!e.type}function b3(e){return e.length>0&&PY(e[0].name)}function T3(e){return b3(e)&&(e=vR.createNodeArray(e.slice(1),e.hasTrailingComma)),e}function S3(e,n){const t=T3(e.parameters),r=Vu(ye(t)),o=D(r?n.slice(0,t.length-1):n,(e,n)=>{const r=A3(t[n]),o=(i=r,dD(a=e)&&Hg(a)===i?vR.createShorthandPropertyAssignment(i):vR.createPropertyAssignment(i,a));var i,a;return qx(o.name),sM(o)&&qx(o.initializer),pZ(e,o),o});if(r&&n.length>=t.length){const e=n.slice(t.length-1),r=vR.createPropertyAssignment(A3(ye(t)),vR.createArrayLiteralExpression(e));o.push(r)}return vR.createObjectLiteralExpression(o,!1)}function E3(e,n,t){const r=n.getTypeChecker(),o=T3(e.parameters),i=D(o,function(e){const n=vR.createBindingElement(void 0,void 0,A3(e),Vu(e)&&u(e)?vR.createArrayLiteralExpression():e.initializer);qx(n),e.initializer&&n.initializer&&pZ(e.initializer,n.initializer);return n}),a=vR.createObjectBindingPattern(i),s=function(e){const n=D(e,d);return RR(vR.createTypeLiteralNode(n),1)}(o);let l;g(o,u)&&(l=vR.createObjectLiteralExpression());const c=vR.createParameterDeclaration(void 0,void 0,a,void 0,s,l);if(b3(e.parameters)){const n=e.parameters[0],t=vR.createParameterDeclaration(void 0,void 0,n.name,void 0,n.type);return qx(t.name),pZ(n.name,t.name),n.type&&(qx(t.type),pZ(n.type,t.type)),vR.createNodeArray([t,c])}return vR.createNodeArray([c]);function d(e){let o=e.type;var i;o||!e.initializer&&!Vu(e)||(i=e,o=DZ(r.getTypeAtLocation(i),i,n,t));const a=vR.createPropertySignature(void 0,A3(e),u(e)?vR.createToken(58):e.questionToken,o);return qx(a),pZ(e.name,a.name),e.type&&a.type&&pZ(e.type,a.type),a}function u(e){if(Vu(e)){const n=r.getTypeAtLocation(e);return!r.isTupleType(n)}return r.isOptionalParameter(e)}}function A3(e){return Hg(e.name)}m8(a3,{kinds:[l3.kind],getEditsForAction:function(e,n){dt.assert(n===a3,"Unexpected action name");const{file:t,startPosition:r,program:o,cancellationToken:i,host:a}=e,s=h3(t,r,o.getTypeChecker());if(!s||!i)return;const l=function(e,n,t){const r=function(e){switch(e.kind){case 263:if(e.name)return[e.name];return[dt.checkDefined(AQ(e,90),"Nameless function declaration should be a default export")];case 175:return[e.name];case 177:const n=dt.checkDefined(qY(e,137,e.getSourceFile()),"Constructor declaration should have constructor keyword");if(232===e.parent.kind){return[e.parent.parent.name,n]}return[n];case 220:return[e.parent.name];case 219:return e.name?[e.name,e.parent.name]:[e.parent.name];default:return dt.assertNever(e,`Unexpected function declaration kind ${e.kind}`)}}(e),o=wD(e)?function(e){switch(e.parent.kind){case 264:const n=e.parent;if(n.name)return[n.name];return[dt.checkDefined(AQ(n,90),"Nameless class declaration should be a default export")];case 232:const t=e.parent,r=e.parent.parent,o=t.name;return o?[o,r.name]:[r.name]}}(e):[],i=Y([...r,...o],hn),a=n.getTypeChecker(),s=P(i,e=>kle.getReferenceEntriesForNode(-1,e,n,n.getSourceFiles(),t)),l=c(s);g(l.declarations,e=>S(i,e))||(l.valid=!1);return l;function c(n){const t={accessExpressions:[],typeUsages:[]},i={functionCalls:[],declarations:[],classReferences:t,valid:!0},s=D(r,d),l=D(o,d),c=wD(e),u=D(r,e=>c3(e,a));for(const r of n){if(r.kind===kle.EntryKind.Span){i.valid=!1;continue}if(S(u,d(r.node))){if(_3(r.node.parent)){i.signature=r.node.parent;continue}const e=p3(r);if(e){i.functionCalls.push(e);continue}}const n=c3(r.node,a);if(n&&S(u,n)){const e=u3(r);if(e){i.declarations.push(e);continue}}if(S(s,d(r.node))||sY(r.node)){if(d3(r))continue;const e=u3(r);if(e){i.declarations.push(e);continue}const n=p3(r);if(n){i.functionCalls.push(n);continue}}if(c&&S(l,d(r.node))){if(d3(r))continue;const n=u3(r);if(n){i.declarations.push(n);continue}const o=f3(r);if(o){t.accessExpressions.push(o);continue}if(_N(e.parent)){const e=m3(r);if(e){t.typeUsages.push(e);continue}}}i.valid=!1}return i}function d(e){const n=a.getSymbolAtLocation(e);return n&&sZ(n,a)}}(s,o,i);if(l.valid){const n=tpe.ChangeTracker.with(e,e=>function(e,n,t,r,o,i){const a=i.signature,s=D(E3(o,n,t),e=>Vx(e));if(a){c(a,D(E3(a,n,t),e=>Vx(e)))}c(o,s);const l=Z(i.functionCalls,(e,n)=>vn(e.pos,n.pos));for(const d of l)if(d.arguments&&d.arguments.length){const e=Vx(S3(o,d.arguments),!0);r.replaceNodeRange(Sp(d),he(d.arguments),ye(d.arguments),e,{leadingTriviaOption:tpe.LeadingTriviaOption.IncludeAll,trailingTriviaOption:tpe.TrailingTriviaOption.Include})}function c(n,t){r.replaceNodeRangeWithNodes(e,he(n.parameters),ye(n.parameters),t,{joiner:", ",indentation:0,leadingTriviaOption:tpe.LeadingTriviaOption.IncludeAll,trailingTriviaOption:tpe.TrailingTriviaOption.Include})}}(t,o,a,e,s,l));return{renameFilename:void 0,renameLocation:void 0,edits:n}}return{edits:[]}},getAvailableActions:function(e){const{file:n,startPosition:t}=e;if(Ph(n))return s;return h3(n,t,e.program.getTypeChecker())?[{name:a3,description:s3,actions:[l3]}]:s}});var x3={},R3="Convert to template string",I3=JT(fa.Convert_to_template_string),D3={name:R3,description:I3,kind:"refactor.rewrite.string"};function C3(e,n){const t=s$(e,n),r=M3(t);return!P3(r).isValidConcatenation&&SC(r.parent)&&MC(r.parent.parent)?r.parent.parent:t}function N3(e,n){const t=M3(n),r=e.file,o=function({nodes:e,operators:n},t){const r=L3(n,t),o=k3(e,t,r),[i,a,s,l]=F3(0,e);if(i===e.length){const e=vR.createNoSubstitutionTemplateLiteral(a,s);return o(l,e),e}const c=[],d=vR.createTemplateHead(a,s);o(l,d);for(let u=i;u<e.length;u++){const n=z3(e[u]);r(u,n);const[t,i,a,s]=F3(u+1,e);u=t-1;const l=u===e.length-1;if(LC(n)){const e=D(n.templateSpans,(e,t)=>{W3(e);const r=t===n.templateSpans.length-1,o=e.literal.text+(r?i:""),s=O3(e.literal)+(r?a:"");return vR.createTemplateSpan(e.expression,l&&r?vR.createTemplateTail(o,s):vR.createTemplateMiddle(o,s))});c.push(...e)}else{const e=l?vR.createTemplateTail(i,a):vR.createTemplateMiddle(i,a);o(s,e),c.push(vR.createTemplateSpan(n,e))}}return vR.createTemplateExpression(d,c)}(P3(t),r),i=ms(r.text,t.end);if(i){const n=i[i.length-1],a={pos:i[0].pos,end:n.end};return tpe.ChangeTracker.with(e,e=>{e.deleteRange(r,a),e.replaceNode(r,t,o)})}return tpe.ChangeTracker.with(e,e=>e.replaceNode(r,t,o))}function M3(e){return ml(e.parent,e=>{switch(e.kind){case 212:case 213:return!1;case 229:case 227:return!(MC(e.parent)&&(n=e.parent,64!==n.operatorToken.kind&&65!==n.operatorToken.kind));default:return"quit"}var n})||e}function P3(e){const n=e=>{if(!MC(e))return{nodes:[e],operators:[],validOperators:!0,hasString:qI(e)||YI(e)};const{nodes:t,operators:r,hasString:o,validOperators:i}=n(e.left);if(!(o||qI(e.right)||LC(e.right)))return{nodes:[e],operators:[],hasString:!1,validOperators:!0};const a=40===e.operatorToken.kind,s=i&&a;return t.push(e.right),r.push(e.operatorToken),{nodes:t,operators:r,hasString:!0,validOperators:s}},{nodes:t,operators:r,validOperators:o,hasString:i}=n(e);return{nodes:t,operators:r,isValidConcatenation:o&&i}}m8(R3,{kinds:[D3.kind],getEditsForAction:function(e,n){const{file:t,startPosition:r}=e,o=C3(t,r);if(n===I3)return{edits:N3(e,o)};return dt.fail("invalid action")},getAvailableActions:function(e){const{file:n,startPosition:t}=e,r=M3(C3(n,t)),o=qI(r),i={name:R3,description:I3,actions:[]};if(o&&"invoked"!==e.triggerReason)return s;if(Eh(r)&&(o||MC(r)&&P3(r).isValidConcatenation))return i.actions.push(D3),[i];if(e.preferences.provideRefactorNotApplicableReason)return i.actions.push({...D3,notApplicableReason:JT(fa.Can_only_convert_string_concatenations_and_string_literals)}),[i];return s}});var L3=(e,n)=>(t,r)=>{t<e.length&&_Z(e[t],r,n,3,!1)},k3=(e,n,t)=>(r,o)=>{for(;r.length>0;){const i=r.shift();_Z(e[i],o,n,3,!1),t(i,o)}};function w3(e){return e.replace(/\\.|[$`]/g,e=>"\\"===e[0]?e:"\\"+e)}function O3(e){const n=$I(e)||QI(e)?-2:-1;return Zp(e).slice(1,n)}function F3(e,n){const t=[];let r="",o="";for(;e<n.length;){const i=n[e];if(!zu(i)){if(LC(i)){r+=i.head.text,o+=O3(i.head);break}break}r+=i.text,o+=w3(Zp(i).slice(1,-1)),t.push(e),e++}return[e,r,o,t]}function W3(e){const n=e.getSourceFile();_Z(e,e.expression,n,3,!1),gZ(e.expression,e.expression,n,3,!1)}function z3(e){return SC(e)&&(W3(e),e=e.expression),e}var B3={},G3="Convert to optional chain expression",V3=JT(fa.Convert_to_optional_chain_expression),j3={name:G3,description:V3,kind:"refactor.rewrite.expression.optionalChain"};function U3(e){return MC(e)||PC(e)}function H3(e){return U3(e)||function(e){return $C(e)||aN(e)||XC(e)}(e)}function K3(e,n=!0){const{file:t,program:r}=e,o=$Z(e),i=0===o.length;if(i&&!n)return;const a=s$(t,o.start),s=d$(t,o.start+o.length),l=Xs(a.pos,s&&s.end>=a.pos?s.getEnd():a.getEnd()),c=i?function(e){for(;e.parent;){if(H3(e)&&!H3(e.parent))return e;e=e.parent}return}(a):function(e,n){for(;e.parent;){if(H3(e)&&0!==n.length&&e.end>=n.start+n.length)return e;e=e.parent}return}(a,l),d=c&&H3(c)?function(e){if(U3(e))return e;if(XC(e)){const n=w_(e),t=null==n?void 0:n.initializer;return t&&U3(t)?t:void 0}return e.expression&&U3(e.expression)?e.expression:void 0}(c):void 0;if(!d)return{error:JT(fa.Could_not_find_convertible_access_expression)};const u=r.getTypeChecker();return PC(d)?function(e,n){const t=e.condition,r=Y3(e.whenTrue);if(!r||n.isNullableType(n.getTypeAtLocation(r)))return{error:JT(fa.Could_not_find_convertible_access_expression)};if((_C(t)||dD(t))&&J3(t,r.expression))return{finalExpression:r,occurrences:[t],expression:e};if(MC(t)){const n=q3(r.expression,t);return n?{finalExpression:r,occurrences:n,expression:e}:{error:JT(fa.Could_not_find_matching_access_expressions)}}}(d,u):function(e){if(56!==e.operatorToken.kind)return{error:JT(fa.Can_only_convert_logical_AND_access_chains)};const n=Y3(e.right);if(!n)return{error:JT(fa.Could_not_find_convertible_access_expression)};const t=q3(n.expression,e.left);return t?{finalExpression:n,occurrences:t,expression:e}:{error:JT(fa.Could_not_find_matching_access_expressions)}}(d)}function q3(e,n){const t=[];for(;MC(n)&&56===n.operatorToken.kind;){const r=J3(cg(e),cg(n.right));if(!r)break;t.push(r),e=r,n=n.left}const r=J3(e,n);return r&&t.push(r),t.length>0?t:void 0}function J3(e,n){if(dD(n)||_C(n)||gC(n))return function(e,n){for(;(yC(e)||_C(e)||gC(e))&&X3(e)!==X3(n);)e=e.expression;for(;_C(e)&&_C(n)||gC(e)&&gC(n);){if(X3(e)!==X3(n))return!1;e=e.expression,n=n.expression}return dD(e)&&dD(n)&&e.getText()===n.getText()}(e,n)?n:void 0}function X3(e){return dD(e)||zg(e)?e.getText():_C(e)?X3(e.name):gC(e)?X3(e.argumentExpression):void 0}function Y3(e){return MC(e=cg(e))?Y3(e.left):(_C(e)||gC(e)||yC(e))&&!bc(e)?e:void 0}function $3(e,n,t){if(_C(n)||gC(n)||yC(n)){const r=$3(e,n.expression,t),o=t.length>0?t[t.length-1]:void 0,i=(null==o?void 0:o.getText())===n.expression.getText();if(i&&t.pop(),yC(n))return i?vR.createCallChain(r,vR.createToken(29),n.typeArguments,n.arguments):vR.createCallChain(r,n.questionDotToken,n.typeArguments,n.arguments);if(_C(n))return i?vR.createPropertyAccessChain(r,vR.createToken(29),n.name):vR.createPropertyAccessChain(r,n.questionDotToken,n.name);if(gC(n))return i?vR.createElementAccessChain(r,vR.createToken(29),n.argumentExpression):vR.createElementAccessChain(r,n.questionDotToken,n.argumentExpression)}return n}m8(G3,{kinds:[j3.kind],getEditsForAction:function(e,n){const t=K3(e);dt.assert(t&&!E6(t),"Expected applicable refactor info");return{edits:tpe.ChangeTracker.with(e,n=>function(e,n,t,r){const{finalExpression:o,occurrences:i,expression:a}=r,s=i[i.length-1],l=$3(n,o,i);l&&(_C(l)||gC(l)||yC(l))&&(MC(a)?t.replaceNodeRange(e,s,o,l):PC(a)&&t.replaceNode(e,a,vR.createBinaryExpression(l,vR.createToken(61),a.whenFalse)))}(e.file,e.program.getTypeChecker(),n,t)),renameFilename:void 0,renameLocation:void 0}},getAvailableActions:function(e){const n=K3(e,"invoked"===e.triggerReason);if(!n)return s;if(!E6(n))return[{name:G3,description:V3,actions:[j3]}];if(e.preferences.provideRefactorNotApplicableReason)return[{name:G3,description:V3,actions:[{...j3,notApplicableReason:n.error}]}];return s}});var Q3={};t(Q3,{Messages:()=>Z3,RangeFacts:()=>i4,getRangeToExtract:()=>a4,getRefactorActionsToExtractSymbol:()=>r4,getRefactorEditsToExtractSymbol:()=>o4});var Z3,e4="Extract Symbol",n4={name:"Extract Constant",description:JT(fa.Extract_constant),kind:"refactor.extract.constant"},t4={name:"Extract Function",description:JT(fa.Extract_function),kind:"refactor.extract.function"};function r4(e){const n=e.kind,t=a4(e.file,$Z(e),"invoked"===e.triggerReason),r=t.targetRange;if(void 0===r){if(!t.errors||0===t.errors.length||!e.preferences.provideRefactorNotApplicableReason)return s;const r=[];return A6(t4.kind,n)&&r.push({name:e4,description:t4.description,actions:[{...t4,notApplicableReason:h(t.errors)}]}),A6(n4.kind,n)&&r.push({name:e4,description:n4.description,actions:[{...n4,notApplicableReason:h(t.errors)}]}),r}const{affectedTextRange:o,extractions:i}=function(e,n){const{scopes:t,affectedTextRange:r,readsAndWrites:{functionErrorsPerScope:o,constantErrorsPerScope:i}}=c4(e,n),a=t.map((e,n)=>{const t=function(e){return ld(e)?"inner function":md(e)?"method":"function"}(e),r=function(e){return md(e)?"readonly field":"constant"}(e),a=ld(e)?function(e){switch(e.kind){case 177:return"constructor";case 219:case 263:return e.name?`function '${e.name.text}'`:IZ;case 220:return"arrow function";case 175:return`method '${e.name.getText()}'`;case 178:return`'get ${e.name.getText()}'`;case 179:return`'set ${e.name.getText()}'`;default:dt.assertNever(e,`Unexpected scope kind ${e.kind}`)}}(e):md(e)?function(e){return 264===e.kind?e.name?`class '${e.name.text}'`:"anonymous class declaration":e.name?`class expression '${e.name.text}'`:"anonymous class expression"}(e):function(e){return 269===e.kind?`namespace '${e.parent.name.getText()}'`:e.externalModuleIndicator?0:1}(e);let s,l;return 1===a?(s=HT(JT(fa.Extract_to_0_in_1_scope),[t,"global"]),l=HT(JT(fa.Extract_to_0_in_1_scope),[r,"global"])):0===a?(s=HT(JT(fa.Extract_to_0_in_1_scope),[t,"module"]),l=HT(JT(fa.Extract_to_0_in_1_scope),[r,"module"])):(s=HT(JT(fa.Extract_to_0_in_1),[t,a]),l=HT(JT(fa.Extract_to_0_in_1),[r,a])),0!==n||md(e)||(l=HT(JT(fa.Extract_to_0_in_enclosing_scope),[r])),{functionExtraction:{description:s,errors:o[n]},constantExtraction:{description:l,errors:i[n]}}});return{affectedTextRange:r,extractions:a}}(r,e);if(void 0===i)return s;const a=[],l=new Map;let c;const d=[],u=new Map;let p,f=0;for(const{functionExtraction:s,constantExtraction:_}of i){if(A6(t4.kind,n)){const n=s.description;0===s.errors.length?l.has(n)||(l.set(n,!0),a.push({description:n,name:`function_scope_${f}`,kind:t4.kind,range:{start:{line:Ua(e.file,o.pos).line,offset:Ua(e.file,o.pos).character},end:{line:Ua(e.file,o.end).line,offset:Ua(e.file,o.end).character}}})):c||(c={description:n,name:`function_scope_${f}`,notApplicableReason:h(s.errors),kind:t4.kind})}if(A6(n4.kind,n)){const n=_.description;0===_.errors.length?u.has(n)||(u.set(n,!0),d.push({description:n,name:`constant_scope_${f}`,kind:n4.kind,range:{start:{line:Ua(e.file,o.pos).line,offset:Ua(e.file,o.pos).character},end:{line:Ua(e.file,o.end).line,offset:Ua(e.file,o.end).character}}})):p||(p={description:n,name:`constant_scope_${f}`,notApplicableReason:h(_.errors),kind:n4.kind})}f++}const m=[];return a.length?m.push({name:e4,description:JT(fa.Extract_function),actions:a}):e.preferences.provideRefactorNotApplicableReason&&c&&m.push({name:e4,description:JT(fa.Extract_function),actions:[c]}),d.length?m.push({name:e4,description:JT(fa.Extract_constant),actions:d}):e.preferences.provideRefactorNotApplicableReason&&p&&m.push({name:e4,description:JT(fa.Extract_constant),actions:[p]}),m.length?m:s;function h(e){let n=e[0].messageText;return"string"!=typeof n&&(n=n.messageText),n}}function o4(e,n){const t=a4(e.file,$Z(e)).targetRange,r=/^function_scope_(\d+)$/.exec(n);if(r){const n=+r[1];return dt.assert(isFinite(n),"Expected to parse a finite number from the function scope index"),function(e,n,t){const{scopes:r,readsAndWrites:{target:o,usagesPerScope:i,functionErrorsPerScope:a,exposedVariableDeclarations:l}}=c4(e,n);return dt.assert(!a[t].length,"The extraction went missing? How?"),n.cancellationToken.throwIfCancellationRequested(),function(e,n,{usages:t,typeParameterUsages:r,substitutions:o},i,a,l){const c=l.program.getTypeChecker(),d=SS(l.program.getCompilerOptions()),u=G5.createImportAdder(l.file,l.program,l.preferences,l.host),p=n.getSourceFile(),f=fZ(md(n)?"newMethod":"newFunction",p),m=Lh(n),h=vR.createIdentifier(f);let _;const g=[],v=[];let b;t.forEach((e,t)=>{let r;if(!m){let t=c.getTypeOfSymbolAtLocation(e.symbol,e.node);t=c.getBaseTypeOfLiteralType(t),r=G5.typeToAutoImportableTypeNode(c,u,t,n,d,1,8)}const o=vR.createParameterDeclaration(void 0,void 0,t,void 0,r);g.push(o),2===e.usage&&(b||(b=[])).push(e),v.push(vR.createIdentifier(t))});const T=Le(r.values(),e=>({type:e,declaration:d4(e,l.startPosition)}));T.sort(u4);const S=0===T.length?void 0:F(T,({declaration:e})=>e),E=void 0!==S?S.map(e=>vR.createTypeReferenceNode(e.name,void 0)):void 0;if(qd(e)&&!m){const t=c.getContextualType(e);_=c.typeToTypeNode(t,n,1,8)}const{body:A,returnValueProperty:x}=function(e,n,t,r,o){const i=void 0!==t||n.length>0;if(JC(e)&&!i&&0===r.size)return{body:vR.createBlock(e.statements,!0),returnValueProperty:void 0};let a,s=!1;const l=vR.createNodeArray(JC(e)?e.statements.slice(0):[_u(e)?e:vR.createReturnStatement(cg(e))]);if(i||r.size){const r=bB(l,c,_u).slice();if(i&&!o&&_u(e)){const e=p4(n,t);1===e.length?r.push(vR.createReturnStatement(e[0].name)):r.push(vR.createReturnStatement(vR.createObjectLiteralExpression(e)))}return{body:vR.createBlock(r,!0),returnValueProperty:a}}return{body:vR.createBlock(l,!0),returnValueProperty:void 0};function c(e){if(!s&&aN(e)&&i){const r=p4(n,t);return e.expression&&(a||(a="__return"),r.unshift(vR.createPropertyAssignment(a,vB(e.expression,c,qd)))),1===r.length?vR.createReturnStatement(r[0].name):vR.createReturnStatement(vR.createObjectLiteralExpression(r))}{const n=s;s=s||ld(e)||md(e);const t=r.get(cB(e).toString()),o=t?Vx(t):CB(e,c,void 0);return s=n,o}}}(e,i,b,o,!!(1&a.facts));let R;qx(A);const I=!!(16&a.facts);if(md(n)){const e=m?[]:[vR.createModifier(123)];32&a.facts&&e.push(vR.createModifier(126)),4&a.facts&&e.push(vR.createModifier(134)),R=vR.createMethodDeclaration(e.length?e:void 0,2&a.facts?vR.createToken(42):void 0,h,void 0,S,g,_,A)}else I&&g.unshift(vR.createParameterDeclaration(void 0,void 0,"this",void 0,c.typeToTypeNode(c.getTypeAtLocation(a.thisNode),n,1,8),void 0)),R=vR.createFunctionDeclaration(4&a.facts?[vR.createToken(134)]:void 0,2&a.facts?vR.createToken(42):void 0,h,S,g,_,A);const D=tpe.ChangeTracker.fromContext(l),C=function(e,n){return y(function(e){if(ld(e)){const n=e.body;if(JC(n))return n.statements}else{if(TN(e)||uM(e))return e.statements;if(md(e))return e.members}return s}(n),n=>n.pos>=e&&ld(n)&&!wD(n))}((f4(a.range)?ye(a.range):a.range).end,n);C?D.insertNodeBefore(l.file,C,R,!0):D.insertNodeAtEndOfScope(l.file,n,R);u.writeFixes(D);const N=[],M=function(e,n,t){const r=vR.createIdentifier(t);if(md(e)){const t=32&n.facts?vR.createIdentifier(e.name.text):vR.createThis();return vR.createPropertyAccessExpression(t,r)}return r}(n,a,f);I&&v.unshift(vR.createIdentifier("this"));let P=vR.createCallExpression(I?vR.createPropertyAccessExpression(M,"call"):M,E,v);2&a.facts&&(P=vR.createYieldExpression(vR.createToken(42),P));4&a.facts&&(P=vR.createAwaitExpression(P));h4(e)&&(P=vR.createJsxExpression(void 0,P));if(i.length&&!b)if(dt.assert(!x,"Expected no returnValueProperty"),dt.assert(!(1&a.facts),"Expected RangeFacts.HasReturn flag to be unset"),1===i.length){const e=i[0];N.push(vR.createVariableStatement(void 0,vR.createVariableDeclarationList([vR.createVariableDeclaration(Vx(e.name),void 0,Vx(e.type),P)],e.parent.flags)))}else{const e=[],t=[];let r=i[0].parent.flags,o=!1;for(const s of i){e.push(vR.createBindingElement(void 0,void 0,Vx(s.name)));const i=c.typeToTypeNode(c.getBaseTypeOfLiteralType(c.getTypeAtLocation(s)),n,1,8);t.push(vR.createPropertySignature(void 0,s.symbol.name,void 0,i)),o=o||void 0!==s.type,r&=s.parent.flags}const a=o?vR.createTypeLiteralNode(t):void 0;a&&xR(a,1),N.push(vR.createVariableStatement(void 0,vR.createVariableDeclarationList([vR.createVariableDeclaration(vR.createObjectBindingPattern(e),void 0,a,P)],r)))}else if(i.length||b){if(i.length)for(const n of i){let e=n.parent.flags;2&e&&(e=-3&e|1),N.push(vR.createVariableStatement(void 0,vR.createVariableDeclarationList([vR.createVariableDeclaration(n.symbol.name,void 0,O(n.type))],e)))}x&&N.push(vR.createVariableStatement(void 0,vR.createVariableDeclarationList([vR.createVariableDeclaration(x,void 0,O(_))],1)));const e=p4(i,b);x&&e.unshift(vR.createShorthandPropertyAssignment(x)),1===e.length?(dt.assert(!x,"Shouldn't have returnValueProperty here"),N.push(vR.createExpressionStatement(vR.createAssignment(e[0].name,P))),1&a.facts&&N.push(vR.createReturnStatement())):(N.push(vR.createExpressionStatement(vR.createAssignment(vR.createObjectLiteralExpression(e),P))),x&&N.push(vR.createReturnStatement(vR.createIdentifier(x))))}else 1&a.facts?N.push(vR.createReturnStatement(P)):f4(a.range)?N.push(vR.createExpressionStatement(P)):N.push(P);f4(a.range)?D.replaceNodeRangeWithNodes(l.file,he(a.range),ye(a.range),N):D.replaceNodeWithNodes(l.file,a.range,N);const L=D.getChanges(),k=(f4(a.range)?he(a.range):a.range).getSourceFile().fileName,w=mZ(L,k,f,!1);return{renameFilename:k,renameLocation:w,edits:L};function O(e){if(void 0===e)return;const n=Vx(e);let t=n;for(;tC(t);)t=t.type;return QD(t)&&y(t.types,e=>157===e.kind)?n:vR.createUnionTypeNode([n,vR.createKeywordTypeNode(157)])}}(o,r[t],i[t],l,e,n)}(t,e,n)}const o=/^constant_scope_(\d+)$/.exec(n);if(o){const n=+o[1];return dt.assert(isFinite(n),"Expected to parse a finite number from the constant scope index"),function(e,n,t){const{scopes:r,readsAndWrites:{target:o,usagesPerScope:i,constantErrorsPerScope:a,exposedVariableDeclarations:s}}=c4(e,n);dt.assert(!a[t].length,"The extraction went missing? How?"),dt.assert(0===s.length,"Extract constant accepted a range containing a variable declaration?"),n.cancellationToken.throwIfCancellationRequested();return function(e,n,{substitutions:t},r,o){const i=o.program.getTypeChecker(),a=n.getSourceFile(),s=x6(e,n,i,a),l=Lh(n);let c=l||!i.isContextSensitive(e)?void 0:i.typeToTypeNode(i.getContextualType(e),n,1,8),d=function(e,n){return n.size?t(e):e;function t(e){const r=n.get(cB(e).toString());return r?Vx(r):CB(e,t,void 0)}}(cg(e),t);({variableType:c,initializer:d}=h(c,d)),qx(d);const u=tpe.ChangeTracker.fromContext(o);if(md(n)){dt.assert(!l,"Cannot extract to a JS class");const t=[];t.push(vR.createModifier(123)),32&r&&t.push(vR.createModifier(126)),t.push(vR.createModifier(148));const i=vR.createPropertyDeclaration(t,s,void 0,c,d);let a=vR.createPropertyAccessExpression(32&r?vR.createIdentifier(n.name.getText()):vR.createThis(),vR.createIdentifier(s));h4(e)&&(a=vR.createJsxExpression(void 0,a));const p=function(e,n){const t=n.members;let r;dt.assert(t.length>0,"Found no members");let o=!0;for(const i of t){if(i.pos>e)return r||t[0];if(o&&!MD(i)){if(void 0!==r)return i;o=!1}r=i}return void 0===r?dt.fail():r}(e.pos,n);u.insertNodeBefore(o.file,p,i,!0),u.replaceNode(o.file,e,a)}else{const t=vR.createVariableDeclaration(s,void 0,c,d),r=function(e,n){let t;for(;void 0!==e&&e!==n;){if(fN(e)&&e.initializer===t&&mN(e.parent)&&e.parent.declarations.length>1)return e;t=e,e=e.parent}}(e,n);if(r){u.insertNodeBefore(o.file,r,t);const n=vR.createIdentifier(s);u.replaceNode(o.file,e,n)}else if(245===e.parent.kind&&n===ml(e,l4)){const n=vR.createVariableStatement(void 0,vR.createVariableDeclarationList([t],2));u.replaceNode(o.file,e.parent,n)}else{const r=vR.createVariableStatement(void 0,vR.createVariableDeclarationList([t],2)),i=function(e,n){let t;dt.assert(!md(n));for(let r=e;r!==n;r=r.parent)l4(r)&&(t=r);for(let r=(t||e).parent;;r=r.parent){if(_0(r)){let n;for(const t of r.statements){if(t.pos>e.pos)break;n=t}return!n&&rM(r)?(dt.assert(lN(r.parent.parent),"Grandparent isn't a switch statement"),r.parent.parent):dt.checkDefined(n,"prevStatement failed to get set")}dt.assert(r!==n,"Didn't encounter a block-like before encountering scope")}}(e,n);if(0===i.pos?u.insertNodeAtTopOfFile(o.file,r,!1):u.insertNodeBefore(o.file,i,r,!1),245===e.parent.kind)u.delete(o.file,e.parent);else{let n=vR.createIdentifier(s);h4(e)&&(n=vR.createJsxExpression(void 0,n)),u.replaceNode(o.file,e,n)}}}const p=u.getChanges(),f=e.getSourceFile().fileName,m=mZ(p,f,s,!0);return{renameFilename:f,renameLocation:m,edits:p};function h(t,r){if(void 0===t)return{variableType:t,initializer:r};if(!EC(r)&&!AC(r)||r.typeParameters)return{variableType:t,initializer:r};const o=i.getTypeAtLocation(e),a=ve(i.getSignaturesOfType(o,0));if(!a)return{variableType:t,initializer:r};if(a.getTypeParameters())return{variableType:t,initializer:r};const s=[];let l=!1;for(const e of r.parameters)if(e.type)s.push(e);else{const t=i.getTypeAtLocation(e);t===i.getAnyType()&&(l=!0),s.push(vR.updateParameterDeclaration(e,e.modifiers,e.dotDotDotToken,e.name,e.questionToken,e.type||i.typeToTypeNode(t,n,1,8),e.initializer))}if(l)return{variableType:t,initializer:r};if(t=void 0,AC(r))r=vR.updateArrowFunction(r,CL(e)?Ml(e):void 0,r.typeParameters,s,r.type||i.typeToTypeNode(a.getReturnType(),n,1,8),r.equalsGreaterThanToken,r.body);else{if(a&&a.thisParameter){const t=fe(s);if(!t||dD(t.name)&&"this"!==t.name.escapedText){const t=i.getTypeOfSymbolAtLocation(a.thisParameter,e);s.splice(0,0,vR.createParameterDeclaration(void 0,void 0,"this",void 0,i.typeToTypeNode(t,n,1,8)))}}r=vR.updateFunctionExpression(r,CL(e)?Ml(e):void 0,r.asteriskToken,r.name,r.typeParameters,s,r.type||i.typeToTypeNode(a.getReturnType(),n,1),r.body)}return{variableType:t,initializer:r}}}(qd(o)?o:o.statements[0].expression,r[t],i[t],e.facts,n)}(t,e,n)}dt.fail("Unrecognized action name")}m8(e4,{kinds:[n4.kind,t4.kind],getEditsForAction:o4,getAvailableActions:r4}),(e=>{function n(e){return{message:e,code:0,category:3,key:e}}e.cannotExtractRange=n("Cannot extract range."),e.cannotExtractImport=n("Cannot extract import statement."),e.cannotExtractSuper=n("Cannot extract super call."),e.cannotExtractJSDoc=n("Cannot extract JSDoc."),e.cannotExtractEmpty=n("Cannot extract empty range."),e.expressionExpected=n("expression expected."),e.uselessConstantType=n("No reason to extract constant of type."),e.statementOrExpressionExpected=n("Statement or expression expected."),e.cannotExtractRangeContainingConditionalBreakOrContinueStatements=n("Cannot extract range containing conditional break or continue statements."),e.cannotExtractRangeContainingConditionalReturnStatement=n("Cannot extract range containing conditional return statement."),e.cannotExtractRangeContainingLabeledBreakOrContinueStatementWithTargetOutsideOfTheRange=n("Cannot extract range containing labeled break or continue with target outside of the range."),e.cannotExtractRangeThatContainsWritesToReferencesLocatedOutsideOfTheTargetRangeInGenerators=n("Cannot extract range containing writes to references located outside of the target range in generators."),e.typeWillNotBeVisibleInTheNewScope=n("Type will not visible in the new scope."),e.functionWillNotBeVisibleInTheNewScope=n("Function will not visible in the new scope."),e.cannotExtractIdentifier=n("Select more than a single identifier."),e.cannotExtractExportedEntity=n("Cannot extract exported declaration"),e.cannotWriteInExpression=n("Cannot write back side-effects when extracting an expression"),e.cannotExtractReadonlyPropertyInitializerOutsideConstructor=n("Cannot move initialization of read-only class property outside of the constructor"),e.cannotExtractAmbientBlock=n("Cannot extract code from ambient contexts"),e.cannotAccessVariablesFromNestedScopes=n("Cannot access variables from nested scopes"),e.cannotExtractToJSClass=n("Cannot extract constant to a class scope in JS"),e.cannotExtractToExpressionArrowFunction=n("Cannot extract constant to an arrow function without a block"),e.cannotExtractFunctionsContainingThisToMethod=n("Cannot extract functions containing this to method")})(Z3||(Z3={}));var i4=(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.UsesThisInFunction=16]="UsesThisInFunction",e[e.InStaticRegion=32]="InStaticRegion",e))(i4||{});function a4(e,n,t=!0){const{length:r}=n;if(0===r&&!t)return{errors:[ZT(e,n.start,r,Z3.cannotExtractEmpty)]};const o=0===r&&t,i=c$(e,n.start),a=d$(e,Ps(n)),s=i&&a&&t?function(e,n,t){const r=e.getStart(t);let o=n.getEnd();59===t.text.charCodeAt(o)&&o++;return{start:r,length:o-r}}(i,a,e):n,l=o?function(e){return ml(e,e=>e.parent&&m4(e)&&!MC(e.parent))}(i):SQ(i,e,s),c=o?l:SQ(a,e,s);let d,u=0;if(!l||!c)return{errors:[ZT(e,n.start,r,Z3.cannotExtractRange)]};if(16777216&l.flags)return{errors:[ZT(e,n.start,r,Z3.cannotExtractJSDoc)]};if(l.parent!==c.parent)return{errors:[ZT(e,n.start,r,Z3.cannotExtractRange)]};if(l!==c){if(!_0(l.parent))return{errors:[ZT(e,n.start,r,Z3.cannotExtractRange)]};const t=[];for(const e of l.parent.statements){if(e===l||t.length){const n=m(e);if(n)return{errors:n};t.push(e)}if(e===c)break}return t.length?{targetRange:{range:t,facts:u,thisNode:d}}:{errors:[ZT(e,n.start,r,Z3.cannotExtractRange)]}}if(aN(l)&&!l.expression)return{errors:[ZT(e,n.start,r,Z3.cannotExtractRange)]};const p=function(e){if(aN(e)){if(e.expression)return e.expression}else if(XC(e)||mN(e)){const n=XC(e)?e.declarationList.declarations:e.declarations;let t,r=0;for(const e of n)e.initializer&&(r++,t=e.initializer);if(1===r)return t}else if(fN(e)&&e.initializer)return e.initializer;return e}(l),f=function(e){if(dD($C(e)?e.expression:e))return[Vf(e,Z3.cannotExtractIdentifier)];return}(p)||m(p);return f?{errors:f}:{targetRange:{range:s4(p),facts:u,thisNode:d}};function m(e){let t;var r;if((r=t||(t={}))[r.None=0]="None",r[r.Break=1]="Break",r[r.Continue=2]="Continue",r[r.Return=4]="Return",dt.assert(e.pos<=e.end,"This failure could trigger https://github.com/Microsoft/TypeScript/issues/20809 (1)"),dt.assert(!eA(e.pos),"This failure could trigger https://github.com/Microsoft/TypeScript/issues/20809 (2)"),!(_u(e)||Eh(e)&&m4(e)||_4(e)))return[Vf(e,Z3.statementOrExpressionExpected)];if(33554432&e.flags)return[Vf(e,Z3.cannotExtractAmbientBlock)];const o=Zm(e);let i;o&&function(e,n){let t=e;for(;t!==n;){if(173===t.kind){Pv(t)&&(u|=32);break}if(170===t.kind){177===$m(t).kind&&(u|=32);break}175===t.kind&&Pv(t)&&(u|=32),t=t.parent}}(e,o);let a,s=4;if(function e(t){if(i)return!0;if(fu(t)){if(Mv(261===t.kind?t.parent.parent:t,32))return(i||(i=[])).push(Vf(t,Z3.cannotExtractExportedEntity)),!0}switch(t.kind){case 273:return(i||(i=[])).push(Vf(t,Z3.cannotExtractImport)),!0;case 278:return(i||(i=[])).push(Vf(t,Z3.cannotExtractExportedEntity)),!0;case 108:if(214===t.parent.kind){const e=Zm(t);if(void 0===e||e.pos<n.start||e.end>=n.start+n.length)return(i||(i=[])).push(Vf(t,Z3.cannotExtractSuper)),!0}else u|=8,d=t;break;case 220:rk(t,function e(n){if(PY(n))u|=8,d=t;else{if(md(n)||ad(n)&&!AC(n))return!1;rk(n,e)}});case 264:case 263:uM(t.parent)&&void 0===t.parent.externalModuleIndicator&&(i||(i=[])).push(Vf(t,Z3.functionWillNotBeVisibleInTheNewScope));case 232:case 219:case 175:case 177:case 178:case 179:return!1}const r=s;switch(t.kind){case 246:s&=-5;break;case 259:s=0;break;case 242:t.parent&&259===t.parent.kind&&t.parent.finallyBlock===t&&(s=4);break;case 298:case 297:s|=1;break;default:Xd(t,!1)&&(s|=3)}switch(t.kind){case 198:case 110:u|=8,d=t;break;case 257:{const n=t.label;(a||(a=[])).push(n.escapedText),rk(t,e),a.pop();break}case 253:case 252:{const e=t.label;e?S(a,e.escapedText)||(i||(i=[])).push(Vf(t,Z3.cannotExtractRangeContainingLabeledBreakOrContinueStatementWithTargetOutsideOfTheRange)):s&(253===t.kind?1:2)||(i||(i=[])).push(Vf(t,Z3.cannotExtractRangeContainingConditionalBreakOrContinueStatements));break}case 224:u|=4;break;case 230:u|=2;break;case 254:4&s?u|=1:(i||(i=[])).push(Vf(t,Z3.cannotExtractRangeContainingConditionalReturnStatement));break;default:rk(t,e)}s=r}(e),8&u){const n=rh(e,!1,!1);(263===n.kind||175===n.kind&&211===n.parent.kind||219===n.kind)&&(u|=16)}return i}}function s4(e){return _u(e)?[e]:Eh(e)?$C(e.parent)?[e.parent]:e:_4(e)?e:void 0}function l4(e){return AC(e)?tu(e.body):ld(e)||uM(e)||TN(e)||md(e)}function c4(e,n){const{file:t}=n,r=function(e){let n=f4(e.range)?he(e.range):e.range;if(8&e.facts&&!(16&e.facts)){const e=Zm(n);if(e){const t=ml(n,ld);return t?[t,e]:[e]}}const t=[];for(;;)if(n=n.parent,170===n.kind&&(n=ml(n,e=>ld(e)).parent),l4(n)&&(t.push(n),308===n.kind))return t}(e),o=function(e,n){return f4(e.range)?{pos:he(e.range).getStart(n),end:ye(e.range).getEnd()}:e.range}(e,t),i=function(e,n,t,r,o,i){const a=new Map,s=[],l=[],c=[],d=[],u=[],p=new Map,f=[];let m;const h=f4(e.range)?1===e.range.length&&$C(e.range[0])?e.range[0].expression:void 0:e.range;let _;if(void 0===h){const n=e.range,t=he(n).getStart(),o=ye(n).end;_=ZT(r,t,o-t,Z3.expressionExpected)}else 147456&o.getTypeAtLocation(h).flags&&(_=Vf(h,Z3.uselessConstantType));for(const y of n){s.push({usages:new Map,typeParameterUsages:new Map,substitutions:new Map}),l.push(new Map),c.push([]);const e=[];_&&e.push(_),md(y)&&Lh(y)&&e.push(Vf(y,Z3.cannotExtractToJSClass)),AC(y)&&!JC(y.body)&&e.push(Vf(y,Z3.cannotExtractToExpressionArrowFunction)),d.push(e)}const g=new Map,v=f4(e.range)?vR.createBlock(e.range):e.range,b=f4(e.range)?he(e.range):e.range,T=S(b);if(A(v),T&&!f4(e.range)&&!QN(e.range)){E(o.getContextualType(e.range))}if(a.size>0){const e=new Map;let t=0;for(let r=b;void 0!==r&&t<n.length;r=r.parent)if(r===n[t]&&(e.forEach((e,n)=>{s[t].typeParameterUsages.set(n,e)}),t++),xf(r))for(const n of fc(r)){const t=o.getTypeAtLocation(n);a.has(t.id.toString())&&e.set(t.id.toString(),t)}dt.assert(t===n.length,"Should have iterated all scopes")}if(u.length){rk(Af(n[0],n[0].parent)?n[0]:kf(n[0]),I)}for(let y=0;y<n.length;y++){const t=s[y];if(y>0&&(t.usages.size>0||t.typeParameterUsages.size>0)){const n=f4(e.range)?e.range[0]:e.range;d[y].push(Vf(n,Z3.cannotAccessVariablesFromNestedScopes))}16&e.facts&&md(n[y])&&c[y].push(Vf(e.thisNode,Z3.cannotExtractFunctionsContainingThisToMethod));let r,o=!1;if(s[y].usages.forEach(e=>{2===e.usage&&(o=!0,106500&e.symbol.flags&&e.symbol.valueDeclaration&&Nv(e.symbol.valueDeclaration,8)&&(r=e.symbol.valueDeclaration))}),dt.assert(f4(e.range)||0===f.length,"No variable declarations expected if something was extracted"),o&&!f4(e.range)){const n=Vf(e.range,Z3.cannotWriteInExpression);c[y].push(n),d[y].push(n)}else if(r&&y>0){const e=Vf(r,Z3.cannotExtractReadonlyPropertyInitializerOutsideConstructor);c[y].push(e),d[y].push(e)}else if(m){const e=Vf(m,Z3.cannotExtractExportedEntity);c[y].push(e),d[y].push(e)}}return{target:v,usagesPerScope:s,functionErrorsPerScope:c,constantErrorsPerScope:d,exposedVariableDeclarations:f};function S(e){return!!ml(e,e=>xf(e)&&0!==fc(e).length)}function E(e){const n=o.getSymbolWalker(()=>(i.throwIfCancellationRequested(),!0)),{visitedTypes:t}=n.walkType(e);for(const r of t)r.isTypeParameter()&&a.set(r.id.toString(),r)}function A(e,n=1){if(T){E(o.getTypeAtLocation(e))}if(fu(e)&&e.symbol&&u.push(e),sb(e))A(e.left,2),A(e.right);else if(Hd(e))A(e.operand,2);else if(_C(e)||gC(e))rk(e,A);else if(dD(e)){if(!e.parent)return;if(xD(e.parent)&&e!==e.parent.left)return;if(_C(e.parent)&&e!==e.parent.expression)return;x(e,n,Cm(e))}else rk(e,A)}function x(e,t,r){const o=R(e,t,r);if(o)for(let i=0;i<n.length;i++){const n=l[i].get(o);n&&s[i].substitutions.set(cB(e).toString(),n)}}function R(i,a,u){const p=D(i);if(!p)return;const f=dB(p).toString(),m=g.get(f);if(m&&m>=a)return f;if(g.set(f,a),m){for(const e of s){e.usages.get(i.text)&&e.usages.set(i.text,{usage:a,symbol:p,node:i})}return f}const h=p.getDeclarations(),_=h&&y(h,e=>e.getSourceFile()===r);if(_&&!WY(t,_.getStart(),_.end)){if(2&e.facts&&2===a){const e=Vf(i,Z3.cannotExtractRangeThatContainsWritesToReferencesLocatedOutsideOfTheTargetRangeInGenerators);for(const n of c)n.push(e);for(const n of d)n.push(e)}for(let e=0;e<n.length;e++){const t=n[e];if(o.resolveName(p.name,t,p.flags,!1)!==p&&!l[e].has(f)){const n=C(p.exportSymbol||p,t,u);if(n)l[e].set(f,n);else if(u){if(!(262144&p.flags)){const n=Vf(i,Z3.typeWillNotBeVisibleInTheNewScope);c[e].push(n),d[e].push(n)}}else s[e].usages.set(i.text,{usage:a,symbol:p,node:i})}}return f}}function I(n){if(n===e.range||f4(e.range)&&e.range.includes(n))return;const t=dD(n)?D(n):o.getSymbolAtLocation(n);if(t){const e=y(u,e=>e.symbol===t);if(e)if(fN(e)){const n=e.symbol.id.toString();p.has(n)||(f.push(e),p.set(n,!0))}else m=m||e}rk(n,I)}function D(e){return e.parent&&lM(e.parent)&&e.parent.name===e?o.getShorthandAssignmentValueSymbol(e.parent):o.getSymbolAtLocation(e)}function C(e,n,t){if(!e)return;const r=e.getDeclarations();if(r&&r.some(e=>e.parent===n))return vR.createIdentifier(e.name);const o=C(e.parent,n,t);return void 0!==o?t?vR.createQualifiedName(o,vR.createIdentifier(e.name)):vR.createPropertyAccessExpression(o,e.name):void 0}}(e,r,o,t,n.program.getTypeChecker(),n.cancellationToken);return{scopes:r,affectedTextRange:o,readsAndWrites:i}}function d4(e,n){let t;const r=e.symbol;if(r&&r.declarations)for(const o of r.declarations)(void 0===t||o.pos<t.pos)&&o.pos<n&&(t=o);return t}function u4({type:e,declaration:n},{type:t,declaration:r}){return Ln(n,r,"pos",vn)||xn(e.symbol?e.symbol.getName():"",t.symbol?t.symbol.getName():"")||vn(e.id,t.id)}function p4(e,n){const t=D(e,e=>vR.createShorthandPropertyAssignment(e.symbol.name)),r=D(n,e=>vR.createShorthandPropertyAssignment(e.symbol.name));return void 0===t?r:void 0===r?t:t.concat(r)}function f4(e){return Ye(e)}function m4(e){const{parent:n}=e;if(307===n.kind)return!1;switch(e.kind){case 11:return 273!==n.kind&&277!==n.kind;case 231:case 207:case 209:return!1;case 80:return 209!==n.kind&&277!==n.kind&&282!==n.kind}return!0}function h4(e){return _4(e)||(HN(e)||KN(e)||XN(e))&&(HN(e.parent)||XN(e.parent))}function _4(e){return qI(e)&&e.parent&&QN(e.parent)}var g4={},y4="Generate 'get' and 'set' accessors",v4=JT(fa.Generate_get_and_set_accessors),b4={name:y4,description:v4,kind:"refactor.rewrite.property.generateAccessors"};m8(y4,{kinds:[b4.kind],getEditsForAction:function(e,n){if(!e.endPosition)return;const t=G5.getAccessorConvertiblePropertyAtPosition(e.file,e.program,e.startPosition,e.endPosition);dt.assert(t&&!E6(t),"Expected applicable refactor info");const r=G5.generateAccessorFromProperty(e.file,e.program,e.startPosition,e.endPosition,e,n);if(!r)return;const o=e.file.fileName,i=t.renameAccessor?t.accessorName:t.fieldName;return{renameFilename:o,renameLocation:(dD(i)?0:-1)+mZ(r,o,i.text,DD(t.declaration)),edits:r}},getAvailableActions(e){if(!e.endPosition)return s;const n=G5.getAccessorConvertiblePropertyAtPosition(e.file,e.program,e.startPosition,e.endPosition,"invoked"===e.triggerReason);return n?E6(n)?e.preferences.provideRefactorNotApplicableReason?[{name:y4,description:v4,actions:[{...b4,notApplicableReason:n.error}]}]:s:[{name:y4,description:v4,actions:[b4]}]:s}});var T4={},S4="Infer function return type",E4=JT(fa.Infer_function_return_type),A4={name:S4,description:E4,kind:"refactor.rewrite.function.returnType"};function x4(e){if(Lh(e.file)||!A6(A4.kind,e.kind))return;const n=ml(i$(e.file,e.startPosition),e=>JC(e)||e.parent&&AC(e.parent)&&(39===e.kind||e.parent.body===e)?"quit":function(e){switch(e.kind){case 263:case 219:case 220:case 175:return!0;default:return!1}}(e));if(!n||!n.body||n.type)return{error:JT(fa.Return_type_must_be_inferred_from_a_function)};const t=e.program.getTypeChecker();let r;if(t.isImplementationOfOverload(n)){const e=t.getTypeAtLocation(n).getCallSignatures();e.length>1&&(r=t.getUnionType(F(e,e=>e.getReturnType())))}if(!r){const e=t.getSignatureFromDeclaration(n);if(e){const o=t.getTypePredicateOfSignature(e);if(o&&o.type){const e=t.typePredicateToTypePredicateNode(o,n,1,8);if(e)return{declaration:n,returnTypeNode:e}}else r=t.getReturnTypeOfSignature(e)}}if(!r)return{error:JT(fa.Could_not_determine_function_return_type)};const o=t.typeToTypeNode(r,n,1,8);return o?{declaration:n,returnTypeNode:o}:void 0}m8(S4,{kinds:[A4.kind],getEditsForAction:function(e){const n=x4(e);if(n&&!E6(n)){return{renameFilename:void 0,renameLocation:void 0,edits:tpe.ChangeTracker.with(e,t=>function(e,n,t,r){const o=qY(t,22,e),i=AC(t)&&void 0===o,a=i?he(t.parameters):o;a&&(i&&(n.insertNodeBefore(e,a,vR.createToken(21)),n.insertNodeAfter(e,a,vR.createToken(22))),n.insertNodeAt(e,a.end,r,{prefix:": "}))}(e.file,t,n.declaration,n.returnTypeNode))}}return},getAvailableActions:function(e){const n=x4(e);if(!n)return s;if(!E6(n))return[{name:S4,description:E4,actions:[A4]}];if(e.preferences.provideRefactorNotApplicableReason)return[{name:S4,description:E4,actions:[{...A4,notApplicableReason:n.error}]}];return s}});var R4=(e=>(e[e.typeOffset=8]="typeOffset",e[e.modifierMask=255]="modifierMask",e))(R4||{}),I4=(e=>(e[e.class=0]="class",e[e.enum=1]="enum",e[e.interface=2]="interface",e[e.namespace=3]="namespace",e[e.typeParameter=4]="typeParameter",e[e.type=5]="type",e[e.parameter=6]="parameter",e[e.variable=7]="variable",e[e.enumMember=8]="enumMember",e[e.property=9]="property",e[e.function=10]="function",e[e.member=11]="member",e))(I4||{}),D4=(e=>(e[e.declaration=0]="declaration",e[e.static=1]="static",e[e.async=2]="async",e[e.readonly=3]="readonly",e[e.defaultLibrary=4]="defaultLibrary",e[e.local=5]="local",e))(D4||{});function C4(e,n,t,r){const o=N4(e,n,t,r);dt.assert(o.spans.length%3==0);const i=o.spans,a=[];for(let s=0;s<i.length;s+=3)a.push({textSpan:Js(i[s],i[s+1]),classificationType:i[s+2]});return a}function N4(e,n,t,r){return{spans:M4(e,t,r,n),endOfLineState:0}}function M4(e,n,t,r){const o=[];return e&&n&&function(e,n,t,r,o){const i=e.getTypeChecker();let a=!1;function s(l){switch(l.kind){case 268:case 264:case 265:case 263:case 232:case 219:case 220:o.throwIfCancellationRequested()}if(!l||!Vs(t,l.pos,l.getFullWidth())||0===l.getFullWidth())return;const c=a;if((HN(l)||KN(l))&&(a=!0),nM(l)&&(a=!1),dD(l)&&!a&&!function(e){const n=e.parent;return n&&(RN(n)||wN(n)||PN(n))}(l)&&!BA(l.escapedText)){let t=i.getSymbolAtLocation(l);if(t){2097152&t.flags&&(t=i.getAliasedSymbol(t));let o=function(e,n){const t=e.getFlags();if(32&t)return 0;if(384&t)return 1;if(524288&t)return 5;if(64&t){if(2&n)return 2}else if(262144&t)return 4;let r=e.valueDeclaration||e.declarations&&e.declarations[0];r&&fC(r)&&(r=P4(r));return r&&k4.get(r.kind)}(t,oY(l));if(void 0!==o){let a=0;if(l.parent){(fC(l.parent)||k4.get(l.parent.kind)===o)&&l.parent.name===l&&(a=1)}6===o&&L4(l)&&(o=9),o=function(e,n,t){if(7===t||9===t||6===t){const r=e.getTypeAtLocation(n);if(r){const e=e=>e(r)||r.isUnion()&&r.types.some(e);if(6!==t&&e(e=>e.getConstructSignatures().length>0))return 0;if(e(e=>e.getCallSignatures().length>0)&&!e(e=>e.getProperties().length>0)||function(e){for(;L4(e);)e=e.parent;return yC(e.parent)&&e.parent.expression===e}(n))return 9===t?11:10}}return t}(i,l,o);const s=t.valueDeclaration;if(s){const r=sl(s),i=cl(s);256&r&&(a|=2),1024&r&&(a|=4),0!==o&&2!==o&&(8&r||2&i||8&t.getFlags())&&(a|=8),7!==o&&10!==o||!function(e,n){fC(e)&&(e=P4(e));if(fN(e))return(!uM(e.parent.parent.parent)||aM(e.parent))&&e.getSourceFile()===n;if(hN(e))return!uM(e.parent)&&e.getSourceFile()===n;return!1}(s,n)||(a|=32),e.isSourceFileDefaultLibrary(s.getSourceFile())&&(a|=16)}else t.declarations&&t.declarations.some(n=>e.isSourceFileDefaultLibrary(n.getSourceFile()))&&(a|=16);r(l,o,a)}}}rk(l,s),a=c}s(n)}(e,n,t,(e,t,r)=>{o.push(e.getStart(n),e.getWidth(n),(t+1<<8)+r)},r),o}function P4(e){for(;;){if(!fC(e.parent.parent))return e.parent.parent;e=e.parent.parent}}function L4(e){return xD(e.parent)&&e.parent.right===e||_C(e.parent)&&e.parent.name===e}var k4=new Map([[261,7],[170,6],[173,9],[268,3],[267,1],[307,8],[264,0],[175,11],[263,10],[219,10],[174,11],[178,9],[179,9],[172,9],[265,2],[266,5],[169,4],[304,9],[305,9]]),w4="0.8";function O4(e,n,t,r){const o=Mc(e)?new F4(e,n,t):80===e?new V4(80,n,t):81===e?new j4(81,n,t):new G4(e,n,t);return o.parent=r,o.flags=101441536&r.flags,o}var F4=class{constructor(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,this.emitNode=void 0}assertHasRealPosition(e){dt.assert(!eA(this.pos)&&!eA(this.end),e||"Node must have a real position for this operation")}getSourceFile(){return Sp(this)}getStart(e,n){return this.assertHasRealPosition(),Up(this,e,n)}getFullStart(){return this.assertHasRealPosition(),this.pos}getEnd(){return this.assertHasRealPosition(),this.end}getWidth(e){return this.assertHasRealPosition(),this.getEnd()-this.getStart(e)}getFullWidth(){return this.assertHasRealPosition(),this.end-this.pos}getLeadingTriviaWidth(e){return this.assertHasRealPosition(),this.getStart(e)-this.pos}getFullText(e){return this.assertHasRealPosition(),(e||this.getSourceFile()).text.substring(this.pos,this.end)}getText(e){return this.assertHasRealPosition(),e||(e=this.getSourceFile()),e.text.substring(this.getStart(e),this.getEnd())}getChildCount(e){return this.getChildren(e).length}getChildAt(e,n){return this.getChildren(n)[e]}getChildren(e=Sp(this)){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"),oP(this,e)??iP(this,e,function(e,n){const t=[];if(Iu(e))return e.forEachChild(e=>{t.push(e)}),t;nY.setText((n||e.getSourceFile()).text);let r=e.pos;const o=n=>{W4(t,r,n.pos,e),t.push(n),r=n.end},i=n=>{W4(t,r,n.pos,e),t.push(function(e,n){const t=O4(353,e.pos,e.end,n),r=[];let o=e.pos;for(const i of e)W4(r,o,i.pos,n),r.push(i),o=i.end;return W4(r,o,e.end,n),t._children=r,t}(n,e)),r=n.end};return d(e.jsDoc,o),r=e.pos,e.forEachChild(o,i),W4(t,r,e.end,e),nY.setText(void 0),t}(this,e))}getFirstToken(e){this.assertHasRealPosition();const n=this.getChildren(e);if(!n.length)return;const t=y(n,e=>e.kind<310||e.kind>352);return t.kind<167?t:t.getFirstToken(e)}getLastToken(e){this.assertHasRealPosition();const n=ge(this.getChildren(e));if(n)return n.kind<167?n:n.getLastToken(e)}forEachChild(e,n){return rk(this,e,n)}};function W4(e,n,t,r){for(nY.resetTokenState(n);n<t;){const o=nY.scan(),i=nY.getTokenEnd();if(i<=t){if(80===o){if(QA(r))continue;dt.fail(`Did not expect ${dt.formatSyntaxKind(r.kind)} to have an Identifier in its trivia`)}e.push(O4(o,n,i,r))}if(n=i,1===o)break}}var z4=class{constructor(e,n,t){this.pos=n,this.end=t,this.kind=e,this.id=0,this.flags=0,this.transformFlags=0,this.parent=void 0,this.emitNode=void 0}getSourceFile(){return Sp(this)}getStart(e,n){return Up(this,e,n)}getFullStart(){return this.pos}getEnd(){return this.end}getWidth(e){return this.getEnd()-this.getStart(e)}getFullWidth(){return this.end-this.pos}getLeadingTriviaWidth(e){return this.getStart(e)-this.pos}getFullText(e){return(e||this.getSourceFile()).text.substring(this.pos,this.end)}getText(e){return e||(e=this.getSourceFile()),e.text.substring(this.getStart(e),this.getEnd())}getChildCount(){return this.getChildren().length}getChildAt(e){return this.getChildren()[e]}getChildren(){return 1===this.kind&&this.jsDoc||s}getFirstToken(){}getLastToken(){}forEachChild(){}},B4=class{constructor(e,n){this.flags=e,this.escapedName=n,this.declarations=void 0,this.valueDeclaration=void 0,this.id=0,this.mergeId=0,this.parent=void 0,this.members=void 0,this.exports=void 0,this.exportSymbol=void 0,this.constEnumOnlyModule=void 0,this.isReferenced=void 0,this.lastAssignmentPos=void 0,this.links=void 0}getFlags(){return this.flags}get name(){return Tl(this)}getEscapedName(){return this.escapedName}getName(){return this.name}getDeclarations(){return this.declarations}getDocumentationComment(e){if(!this.documentationComment)if(this.documentationComment=s,!this.declarations&&Zu(this)&&this.links.target&&Zu(this.links.target)&&this.links.target.links.tupleLabelDeclaration){const n=this.links.target.links.tupleLabelDeclaration;this.documentationComment=J4([n],e)}else this.documentationComment=J4(this.declarations,e);return this.documentationComment}getContextualDocumentationComment(e,n){if(e){if(Nu(e)&&(this.contextualGetAccessorDocumentationComment||(this.contextualGetAccessorDocumentationComment=s,this.contextualGetAccessorDocumentationComment=J4(x(this.declarations,Nu),n)),c(this.contextualGetAccessorDocumentationComment)))return this.contextualGetAccessorDocumentationComment;if(Cu(e)&&(this.contextualSetAccessorDocumentationComment||(this.contextualSetAccessorDocumentationComment=s,this.contextualSetAccessorDocumentationComment=J4(x(this.declarations,Cu),n)),c(this.contextualSetAccessorDocumentationComment)))return this.contextualSetAccessorDocumentationComment}return this.getDocumentationComment(n)}getJsDocTags(e){return void 0===this.tags&&(this.tags=s,this.tags=q4(this.declarations,e)),this.tags}getContextualJsDocTags(e,n){if(e){if(Nu(e)&&(this.contextualGetAccessorTags||(this.contextualGetAccessorTags=s,this.contextualGetAccessorTags=q4(x(this.declarations,Nu),n)),c(this.contextualGetAccessorTags)))return this.contextualGetAccessorTags;if(Cu(e)&&(this.contextualSetAccessorTags||(this.contextualSetAccessorTags=s,this.contextualSetAccessorTags=q4(x(this.declarations,Cu),n)),c(this.contextualSetAccessorTags)))return this.contextualSetAccessorTags}return this.getJsDocTags(n)}},G4=class extends z4{constructor(e,n,t){super(e,n,t)}},V4=class extends z4{constructor(e,n,t){super(e,n,t)}get text(){return vl(this)}},j4=class extends z4{constructor(e,n,t){super(e,n,t)}get text(){return vl(this)}},U4=class{constructor(e,n){this.flags=n,this.checker=e}getFlags(){return this.flags}getSymbol(){return this.symbol}getProperties(){return this.checker.getPropertiesOfType(this)}getProperty(e){return this.checker.getPropertyOfType(this,e)}getApparentProperties(){return this.checker.getAugmentedPropertiesOfType(this)}getCallSignatures(){return this.checker.getSignaturesOfType(this,0)}getConstructSignatures(){return this.checker.getSignaturesOfType(this,1)}getStringIndexType(){return this.checker.getIndexTypeOfType(this,0)}getNumberIndexType(){return this.checker.getIndexTypeOfType(this,1)}getBaseTypes(){return this.isClassOrInterface()?this.checker.getBaseTypes(this):void 0}isNullableType(){return this.checker.isNullableType(this)}getNonNullableType(){return this.checker.getNonNullableType(this)}getNonOptionalType(){return this.checker.getNonOptionalType(this)}getConstraint(){return this.checker.getBaseConstraintOfType(this)}getDefault(){return this.checker.getDefaultFromTypeParameter(this)}isUnion(){return!!(1048576&this.flags)}isIntersection(){return!!(2097152&this.flags)}isUnionOrIntersection(){return!!(3145728&this.flags)}isLiteral(){return!!(2432&this.flags)}isStringLiteral(){return!!(128&this.flags)}isNumberLiteral(){return!!(256&this.flags)}isTypeParameter(){return!!(262144&this.flags)}isClassOrInterface(){return!!(3&bT(this))}isClass(){return!!(1&bT(this))}isIndexType(){return!!(4194304&this.flags)}get typeArguments(){if(4&bT(this))return this.checker.getTypeArguments(this)}},H4=class{constructor(e,n){this.flags=n,this.checker=e}getDeclaration(){return this.declaration}getTypeParameters(){return this.typeParameters}getParameters(){return this.parameters}getReturnType(){return this.checker.getReturnTypeOfSignature(this)}getTypeParameterAtPosition(e){const n=this.checker.getParameterType(this,e);if(n.isIndexType()&&KA(n.type)){const e=n.type.getConstraint();if(e)return this.checker.getIndexType(e)}return n}getDocumentationComment(){return this.documentationComment||(this.documentationComment=J4(rt(this.declaration),this.checker))}getJsDocTags(){return this.jsDocTags||(this.jsDocTags=q4(rt(this.declaration),this.checker))}};function K4(e){return lc(e).some(e=>"inheritDoc"===e.tagName.text||"inheritdoc"===e.tagName.text)}function q4(e,n){if(!e)return s;let t=Uce.getJsDocTagsFromDeclarations(e,n);if(n&&(0===t.length||e.some(K4))){const r=new Set;for(const o of e){const e=X4(n,o,e=>{var t;if(!r.has(e))return r.add(e),178===o.kind||179===o.kind?e.getContextualJsDocTags(o,n):1===(null==(t=e.declarations)?void 0:t.length)?e.getJsDocTags(n):void 0});e&&(t=[...e,...t])}}return t}function J4(e,n){if(!e)return s;let t=Uce.getJsDocCommentsFromDeclarations(e,n);if(n&&(0===t.length||e.some(K4))){const r=new Set;for(const o of e){const e=X4(n,o,e=>{if(!r.has(e))return r.add(e),178===o.kind||179===o.kind?e.getContextualDocumentationComment(o,n):e.getDocumentationComment(n)});e&&(t=0===t.length?e.slice():e.concat(eZ(),t))}}return t}function X4(e,n,t){var r;const o=177===(null==(r=n.parent)?void 0:r.kind)?n.parent.parent:n.parent;if(!o)return;const i=Lv(n);return p(Ag(o),r=>{const o=e.getTypeAtLocation(r),a=i&&o.symbol?e.getTypeOfSymbol(o.symbol):o,s=e.getPropertyOfType(a,n.symbol.name);return s?t(s):void 0})}var Y4=class extends F4{constructor(e,n,t){super(e,n,t)}update(e,n){return uk(this,e,n)}getLineAndCharacterOfPosition(e){return Ua(this,e)}getLineStarts(){return Ba(this)}getPositionOfLineAndCharacter(e,n,t){return za(Ba(this),e,n,this.text,t)}getLineEndOfPosition(e){const{line:n}=this.getLineAndCharacterOfPosition(e),t=this.getLineStarts();let r;n+1>=t.length&&(r=this.getEnd()),r||(r=t[n+1]-1);const o=this.getFullText();return"\n"===o[r]&&"\r"===o[r-1]?r-1:r}getNamedDeclarations(){return this.namedDeclarations||(this.namedDeclarations=this.computeNamedDeclarations()),this.namedDeclarations}computeNamedDeclarations(){const e=He();return this.forEachChild(function r(o){switch(o.kind){case 263:case 219:case 175:case 174:const i=o,a=t(i);if(a){const n=function(n){let t=e.get(n);t||e.set(n,t=[]);return t}(a),t=ge(n);t&&i.parent===t.parent&&i.symbol===t.symbol?i.body&&!t.body&&(n[n.length-1]=i):n.push(i)}rk(o,r);break;case 264:case 232:case 265:case 266:case 267:case 268:case 272:case 282:case 277:case 274:case 275:case 178:case 179:case 188:n(o),rk(o,r);break;case 170:if(!Mv(o,31))break;case 261:case 209:{const e=o;if(xd(e.name)){rk(e.name,r);break}e.initializer&&r(e.initializer)}case 307:case 173:case 172:n(o);break;case 279:const s=o;s.exportClause&&(WN(s.exportClause)?d(s.exportClause.elements,r):r(s.exportClause.name));break;case 273:const l=o.importClause;l&&(l.name&&n(l.name),l.namedBindings&&(275===l.namedBindings.kind?n(l.namedBindings):d(l.namedBindings.elements,r)));break;case 227:0!==o_(o)&&n(o);default:rk(o,r)}}),e;function n(n){const r=t(n);r&&e.add(r,n)}function t(e){const n=Il(e);return n&&(RD(n)&&_C(n.expression)?n.expression.name.text:od(n)?oQ(n):void 0)}}},$4=class{constructor(e,n,t){this.fileName=e,this.text=n,this.skipTrivia=t||(e=>e)}getLineAndCharacterOfPosition(e){return Ua(this,e)}};function Q4(e){let n=!0;for(const r in e)if(Ie(e,r)&&!Z4(r)){n=!1;break}if(n)return e;const t={};for(const r in e)if(Ie(e,r)){t[Z4(r)?r:r.charAt(0).toLowerCase()+r.substr(1)]=e[r]}return t}function Z4(e){return!e.length||e.charAt(0)===e.charAt(0).toLowerCase()}function e5(e){return e?D(e,e=>e.text).join(""):""}function n5(){return{target:1,jsx:1}}function t5(){return G5.getSupportedErrorCodes()}var r5=class{constructor(e){this.host=e}getCurrentSourceFile(e){var n,t,r,o,i,a,s,l;const c=this.host.getScriptSnapshot(e);if(!c)throw new Error("Could not find file: '"+e+"'.");const d=aZ(e,this.host),u=this.host.getScriptVersion(e);let p;if(this.currentFileName!==e){p=i5(e,c,{languageVersion:99,impliedNodeFormat:GU(Ki(e,this.host.getCurrentDirectory(),(null==(r=null==(t=(n=this.host).getCompilerHost)?void 0:t.call(n))?void 0:r.getCanonicalFileName)||By(this.host)),null==(l=null==(s=null==(a=null==(i=(o=this.host).getCompilerHost)?void 0:i.call(o))?void 0:a.getModuleResolutionCache)?void 0:s.call(a))?void 0:l.getPackageJsonInfoCache(),this.host,this.host.getCompilationSettings()),setExternalModuleIndicator:gS(this.host.getCompilationSettings()),jsDocParsingMode:0},u,!0,d)}else if(this.currentFileVersion!==u){const e=c.getChangeRange(this.currentFileScriptSnapshot);p=a5(this.currentSourceFile,c,u,e)}return p&&(this.currentFileVersion=u,this.currentFileName=e,this.currentFileScriptSnapshot=c,this.currentSourceFile=p),this.currentSourceFile}};function o5(e,n,t){e.version=t,e.scriptSnapshot=n}function i5(e,n,t,r,o,i){const a=sk(e,nQ(n),t,o,i);return o5(a,n,r),a}function a5(e,n,t,r,o){if(r&&t!==e.version){let i;const a=0!==r.span.start?e.text.substr(0,r.span.start):"",s=Ps(r.span)!==e.text.length?e.text.substr(Ps(r.span)):"";if(0===r.newLength)i=a&&s?a+s:a||s;else{const e=n.getText(r.span.start,r.span.start+r.newLength);i=a&&s?a+e+s:a?a+e:e+s}const l=uk(e,i,r,o);return o5(l,n,t),l.nameTable=void 0,e!==l&&e.scriptSnapshot&&(e.scriptSnapshot.dispose&&e.scriptSnapshot.dispose(),e.scriptSnapshot=void 0),l}const i={languageVersion:e.languageVersion,impliedNodeFormat:e.impliedNodeFormat,setExternalModuleIndicator:e.setExternalModuleIndicator,jsDocParsingMode:e.jsDocParsingMode};return i5(e.fileName,n,i,t,!0,e.scriptKind)}var s5={isCancellationRequested:rn,throwIfCancellationRequested:tn},l5=class{constructor(e){this.cancellationToken=e}isCancellationRequested(){return this.cancellationToken.isCancellationRequested()}throwIfCancellationRequested(){var e;if(this.isCancellationRequested())throw null==(e=Kt)||e.instant(Kt.Phase.Session,"cancellationThrown",{kind:"CancellationTokenObject"}),new Ar}},c5=class{constructor(e,n=20){this.hostCancellationToken=e,this.throttleWaitMilliseconds=n,this.lastCancellationCheckTime=0}isCancellationRequested(){const e=Vt();return Math.abs(e-this.lastCancellationCheckTime)>=this.throttleWaitMilliseconds&&(this.lastCancellationCheckTime=e,this.hostCancellationToken.isCancellationRequested())}throwIfCancellationRequested(){var e;if(this.isCancellationRequested())throw null==(e=Kt)||e.instant(Kt.Phase.Session,"cancellationThrown",{kind:"ThrottledCancellationToken"}),new Ar}},d5=["getSemanticDiagnostics","getSuggestionDiagnostics","getCompilerOptionsDiagnostics","getSemanticClassifications","getEncodedSemanticClassifications","getCodeFixesAtPosition","getCombinedCodeFix","applyCodeActionCommand","organizeImports","getEditsForFileRename","getEmitOutput","getApplicableRefactors","getEditsForRefactor","prepareCallHierarchy","provideCallHierarchyIncomingCalls","provideCallHierarchyOutgoingCalls","provideInlayHints","getSupportedCodeFixes","getPasteEdits"],u5=[...d5,"getCompletionsAtPosition","getCompletionEntryDetails","getCompletionEntrySymbol","getSignatureHelpItems","getQuickInfoAtPosition","getDefinitionAtPosition","getDefinitionAndBoundSpan","getImplementationAtPosition","getTypeDefinitionAtPosition","getReferencesAtPosition","findReferences","getDocumentHighlights","getNavigateToItems","getRenameInfo","findRenameLocations","getApplicableRefactors","preparePasteEditsForFile"];function p5(e,n=J0(e.useCaseSensitiveFileNames&&e.useCaseSensitiveFileNames(),e.getCurrentDirectory(),e.jsDocParsingMode),t){var r;let o;o=void 0===t?0:"boolean"==typeof t?t?2:0:t;const i=new r5(e);let a,l,c=0;const u=e.getCancellationToken?new l5(e.getCancellationToken()):s5,p=e.getCurrentDirectory();function f(n){e.log&&e.log(n)}qT(null==(r=e.getLocalizedDiagnosticMessages)?void 0:r.bind(e));const m=zy(e),h=Hn(m),_=k1({useCaseSensitiveFileNames:()=>m,getCurrentDirectory:()=>p,getProgram:v,fileExists:Ue(e,e.fileExists),readFile:Ue(e,e.readFile),getDocumentPositionMapper:Ue(e,e.getDocumentPositionMapper),getSourceFileLike:Ue(e,e.getSourceFileLike),log:f});function g(e){const n=a.getSourceFile(e);if(!n){const n=new Error(`Could not find source file: '${e}'.`);throw n.ProgramFiles=a.getSourceFiles().map(e=>e.fileName),n}return n}function y(){e.updateFromProject&&!e.updateFromProjectInProgress?e.updateFromProject():function(){var t,r,i;if(dt.assert(2!==o),e.getProjectVersion){const n=e.getProjectVersion();if(n){if(l===n&&!(null==(t=e.hasChangedAutomaticTypeDirectiveNames)?void 0:t.call(e)))return;l=n}}const s=e.getTypeRootsVersion?e.getTypeRootsVersion():0;c!==s&&(f("TypeRoots version has changed; provide new program"),a=void 0,c=s);const d=e.getScriptFileNames().slice(),g=e.getCompilationSettings()||{target:1,jsx:1},y=e.hasInvalidatedResolutions||rn,v=Ue(e,e.hasInvalidatedLibResolutions)||rn,b=Ue(e,e.hasChangedAutomaticTypeDirectiveNames),T=null==(r=e.getProjectReferences)?void 0:r.call(e);let S,E={getSourceFile:k,getSourceFileByPath:w,getCancellationToken:()=>u,getCanonicalFileName:h,useCaseSensitiveFileNames:()=>m,getNewLine:()=>wb(g),getDefaultLibFileName:n=>e.getDefaultLibFileName(n),writeFile:tn,getCurrentDirectory:()=>p,fileExists:n=>e.fileExists(n),readFile:n=>e.readFile&&e.readFile(n),getSymlinkCache:Ue(e,e.getSymlinkCache),realpath:Ue(e,e.realpath),directoryExists:n=>Pb(n,e),getDirectories:n=>e.getDirectories?e.getDirectories(n):[],readDirectory:(n,t,r,o,i)=>(dt.checkDefined(e.readDirectory,"'LanguageServiceHost.readDirectory' must be implemented to correctly process 'projectReferences'"),e.readDirectory(n,t,r,o,i)),onReleaseOldSourceFile:L,onReleaseParsedCommandLine:M,hasInvalidatedResolutions:y,hasInvalidatedLibResolutions:v,hasChangedAutomaticTypeDirectiveNames:b,trace:Ue(e,e.trace),resolveModuleNames:Ue(e,e.resolveModuleNames),getModuleResolutionCache:Ue(e,e.getModuleResolutionCache),createHash:Ue(e,e.createHash),resolveTypeReferenceDirectives:Ue(e,e.resolveTypeReferenceDirectives),resolveModuleNameLiterals:Ue(e,e.resolveModuleNameLiterals),resolveTypeReferenceDirectiveReferences:Ue(e,e.resolveTypeReferenceDirectiveReferences),resolveLibrary:Ue(e,e.resolveLibrary),useSourceOfProjectReferenceRedirect:Ue(e,e.useSourceOfProjectReferenceRedirect),getParsedCommandLine:C,jsDocParsingMode:e.jsDocParsingMode,getGlobalTypingsCacheLocation:Ue(e,e.getGlobalTypingsCacheLocation)};const A=E.getSourceFile,{getSourceFileWithCache:x}=nU(E,e=>Ki(e,p,h),(...e)=>A.call(E,...e));E.getSourceFile=x,null==(i=e.setCompilerHost)||i.call(e,E);const R={useCaseSensitiveFileNames:m,fileExists:e=>E.fileExists(e),readFile:e=>E.readFile(e),directoryExists:e=>E.directoryExists(e),getDirectories:e=>E.getDirectories(e),realpath:E.realpath,readDirectory:(...e)=>E.readDirectory(...e),trace:E.trace,getCurrentDirectory:E.getCurrentDirectory,onUnRecoverableConfigFileDiagnostic:tn},I=n.getKeyForCompilationSettings(g);let D=new Set;if(zU(a,d,g,(n,t)=>e.getScriptVersion(t),e=>E.fileExists(e),y,v,b,C,T))return E=void 0,S=void 0,void(D=void 0);return a=UU({rootNames:d,options:g,host:E,oldProgram:a,projectReferences:T}),E=void 0,S=void 0,D=void 0,_.clearCache(),void a.getTypeChecker();function C(n){const t=Ki(n,p,h),r=null==S?void 0:S.get(t);if(void 0!==r)return r||void 0;const o=e.getParsedCommandLine?e.getParsedCommandLine(n):N(n);return(S||(S=new Map)).set(t,o||!1),o}function N(e){const n=k(e,100);if(n)return n.path=Ki(e,p,h),n.resolvedPath=n.path,n.originalFileName=n.fileName,sO(n,R,Vi(Mi(e),p),void 0,Vi(e,p))}function M(n,t,r){var o;e.getParsedCommandLine?null==(o=e.onReleaseParsedCommandLine)||o.call(e,n,t,r):t&&P(t.sourceFile,r)}function P(e,t){const r=n.getKeyForCompilationSettings(t);n.releaseDocumentWithKey(e.resolvedPath,r,e.scriptKind,e.impliedNodeFormat)}function L(n,t,r,o){var i;P(n,t),null==(i=e.onReleaseOldSourceFile)||i.call(e,n,t,r,o)}function k(e,n,t,r){return w(e,Ki(e,p,h),n,t,r)}function w(t,r,o,i,s){dt.assert(E,"getOrCreateSourceFileByPath called after typical CompilerHost lifetime, check the callstack something with a reference to an old host.");const l=e.getScriptSnapshot(t);if(!l)return;const c=aZ(t,e),d=e.getScriptVersion(t);if(!s){const i=a&&a.getSourceFileByPath(r);if(i){if(c===i.scriptKind||D.has(i.resolvedPath))return n.updateDocumentWithKey(t,r,e,I,l,d,c,o);n.releaseDocumentWithKey(i.resolvedPath,n.getKeyForCompilationSettings(a.getCompilerOptions()),i.scriptKind,i.impliedNodeFormat),D.add(i.resolvedPath)}}return n.acquireDocumentWithKey(t,r,e,I,l,d,c,o)}}()}function v(){if(2!==o)return y(),a;dt.assert(void 0===a)}function b(){if(a){const e=n.getKeyForCompilationSettings(a.getCompilerOptions());d(a.getSourceFiles(),t=>n.releaseDocumentWithKey(t.resolvedPath,e,t.scriptKind,t.impliedNodeFormat)),a=void 0}}function T(e,n){if(Fs(n,e))return;const t=ml(d$(e,Ps(n))||e,e=>Ws(e,n)),r=[];return S(n,t,r),e.end===n.start+n.length&&r.push(e.endOfFileToken),U(r,uM)?void 0:r}function S(e,n,t){return!!function(e,n){const t=n.start+n.length;return e.pos<t&&e.end>n.start}(n,e)&&(Fs(e,n)?(E(n,t),!0):_0(n)?function(e,n,t){const r=[],o=n.statements.filter(n=>S(e,n,r));if(o.length===n.statements.length)return E(n,t),!0;return t.push(...r),!1}(e,n,t):md(n)?function(e,n,t){var r,o,i;const a=n=>Hs(n,e);if((null==(r=n.modifiers)?void 0:r.some(a))||n.name&&a(n.name)||(null==(o=n.typeParameters)?void 0:o.some(a))||(null==(i=n.heritageClauses)?void 0:i.some(a)))return E(n,t),!0;const s=[],l=n.members.filter(n=>S(e,n,s));if(l.length===n.members.length)return E(n,t),!0;return t.push(...s),!1}(e,n,t):(E(n,t),!0))}function E(e,n){for(;e.parent&&!yx(e);)e=e.parent;n.push(e)}function A(e,n,t,r){y();const o=t&&t.use===kle.FindReferencesUse.Rename?a.getSourceFiles().filter(e=>!a.isSourceFileDefaultLibrary(e)):a.getSourceFiles();return kle.findReferenceOrRenameEntries(a,u,o,e,n,t,r)}const x=new Map(Object.entries({19:20,21:22,23:24,32:30}));function R(n){return dt.assertEqual(n.type,"install package"),e.installPackage?e.installPackage({fileName:(t=n.file,Ki(t,p,h)),packageName:n.packageName}):Promise.reject("Host does not implement `installPackage`");var t}function I(e,n){return{lineStarts:e.getLineStarts(),firstLine:e.getLineAndCharacterOfPosition(n.pos).line,lastLine:e.getLineAndCharacterOfPosition(n.end).line}}function C(e,n,t){const r=i.getCurrentSourceFile(e),o=[],{lineStarts:a,firstLine:s,lastLine:l}=I(r,n);let c=t||!1,d=Number.MAX_VALUE;const u=new Map,p=new RegExp(/\S/),f=T$(r,a[s]),m=f?"{/*":"//";for(let i=s;i<=l;i++){const e=r.text.substring(a[i],r.getLineEndOfPosition(a[i])),n=p.exec(e);n&&(d=Math.min(d,n.index),u.set(i.toString(),n.index),e.substr(n.index,m.length)!==m&&(c=void 0===t||t))}for(let i=s;i<=l;i++){if(s!==l&&a[i]===n.end)continue;const t=u.get(i.toString());void 0!==t&&(f?o.push(...N(e,{pos:a[i]+d,end:r.getLineEndOfPosition(a[i])},c,f)):c?o.push({newText:m,span:{length:0,start:a[i]+d}}):r.text.substr(a[i]+t,m.length)===m&&o.push({newText:"",span:{length:m.length,start:a[i]+t}}))}return o}function N(e,n,t,r){var o;const a=i.getCurrentSourceFile(e),s=[],{text:l}=a;let c=!1,d=t||!1;const u=[];let{pos:p}=n;const f=void 0!==r?r:T$(a,p),m=f?"{/*":"/*",h=f?"*/}":"*/",_=f?"\\{\\/\\*":"\\/\\*",g=f?"\\*\\/\\}":"\\*\\/";for(;p<=n.end;){const e=R$(a,p+(l.substr(p,m.length)===m?m.length:0));if(e)f&&(e.pos--,e.end++),u.push(e.pos),3===e.kind&&u.push(e.end),c=!0,p=e.end+1;else{const e=l.substring(p,n.end).search(`(${_})|(${g})`);d=void 0!==t?t:d||!MQ(l,p,-1===e?n.end:p+e),p=-1===e?n.end+1:p+e+h.length}}if(d||!c){2!==(null==(o=R$(a,n.pos))?void 0:o.kind)&&Q(u,n.pos,vn),Q(u,n.end,vn);const e=u[0];l.substr(e,m.length)!==m&&s.push({newText:m,span:{length:0,start:e}});for(let n=1;n<u.length-1;n++)l.substr(u[n]-h.length,h.length)!==h&&s.push({newText:h,span:{length:0,start:u[n]}}),l.substr(u[n],m.length)!==m&&s.push({newText:m,span:{length:0,start:u[n]}});s.length%2!=0&&s.push({newText:h,span:{length:0,start:u[u.length-1]}})}else for(const i of u){const e=i-h.length>0?i-h.length:0,n=l.substr(e,h.length)===h?h.length:0;s.push({newText:"",span:{length:m.length,start:i-n}})}return s}function M({openingElement:e,closingElement:n,parent:t}){return!Dk(e.tagName,n.tagName)||HN(t)&&Dk(e.tagName,t.openingElement.tagName)&&M(t)}function L({closingFragment:e,parent:n}){return!!(262144&e.flags)||XN(n)&&L(n)}function k(n,t,r,o,i,a){const[s,l]="number"==typeof t?[t,void 0]:[t.pos,t.end];return{file:n,startPosition:s,endPosition:l,program:v(),host:e,formatContext:Mpe.getFormatContext(o,e),cancellationToken:u,preferences:r,triggerReason:i,kind:a}}x.forEach((e,n)=>x.set(e.toString(),Number(n)));const w={dispose:function(){b(),e=void 0},cleanupSemanticCache:b,getSyntacticDiagnostics:function(e){return y(),a.getSyntacticDiagnostics(g(e),u).slice()},getSemanticDiagnostics:function(e){y();const n=g(e),t=a.getSemanticDiagnostics(n,u);if(!PS(a.getCompilerOptions()))return t.slice();const r=a.getDeclarationDiagnostics(n,u);return[...t,...r]},getRegionSemanticDiagnostics:function(e,n){y();const t=g(e),r=a.getCompilerOptions();if(mA(t,r,a)||!gA(t,r)||a.getCachedSemanticDiagnostics(t))return;const o=function(e,n){const t=[],r=qs(n.map(e=>K$(e)));for(const o of r){const n=T(e,o);if(!n)return;t.push(...n)}if(!t.length)return;return t}(t,n);if(!o)return;const i=qs(o.map(e=>Xs(e.getFullStart(),e.getEnd())));return{diagnostics:a.getSemanticDiagnostics(t,u,o).slice(),spans:i}},getSuggestionDiagnostics:function(e){return y(),W1(g(e),a,u)},getCompilerOptionsDiagnostics:function(){return y(),[...a.getOptionsDiagnostics(u),...a.getGlobalDiagnostics(u)]},getSyntacticClassifications:function(e,n){return H0(u,i.getCurrentSourceFile(e),n)},getSemanticClassifications:function(e,n,t){return y(),"2020"===(t||"original")?C4(a,u,g(e),n):z0(a.getTypeChecker(),u,g(e),a.getClassifiableNames(),n)},getEncodedSyntacticClassifications:function(e,n){return K0(u,i.getCurrentSourceFile(e),n)},getEncodedSemanticClassifications:function(e,n,t){return y(),"original"===(t||"original")?G0(a.getTypeChecker(),u,g(e),a.getClassifiableNames(),n):N4(a,u,g(e),n)},getCompletionsAtPosition:function(n,t,r=wX,o){const i={...r,includeCompletionsForModuleExports:r.includeCompletionsForModuleExports||r.includeExternalModuleExports,includeCompletionsWithInsertText:r.includeCompletionsWithInsertText||r.includeInsertTextCompletions};return y(),Pae.getCompletionsAtPosition(e,a,f,g(n),t,i,r.triggerCharacter,r.triggerKind,u,o&&Mpe.getFormatContext(o,e),r.includeSymbol)},getCompletionEntryDetails:function(n,t,r,o,i,s=wX,l){return y(),Pae.getCompletionEntryDetails(a,f,g(n),t,{name:r,source:i,data:l},e,o&&Mpe.getFormatContext(o,e),s,u)},getCompletionEntrySymbol:function(n,t,r,o,i=wX){return y(),Pae.getCompletionEntrySymbol(a,f,g(n),t,{name:r,source:o},e,i)},getSignatureHelpItems:function(e,n,{triggerReason:t}=wX){y();const r=g(e);return due.getSignatureHelpItems(a,r,n,t,u)},getQuickInfoAtPosition:function(e,n,t,r){y();const o=g(e),i=i$(o,n);if(i===o)return;const s=a.getTypeChecker(),l=function(e){if(vC(e.parent)&&e.pos===e.parent.pos)return e.parent.expression;if(XD(e.parent)&&e.pos===e.parent.pos)return e.parent;if(mm(e.parent)&&e.parent.name===e)return e.parent;if(tM(e.parent))return e.parent;return e}(i),c=function(e,n){const t=m5(e);if(t){const e=n.getContextualType(t.parent),r=e&&h5(t,n,e,!1);if(r&&1===r.length)return he(r)}return n.getSymbolAtLocation(e)}(l,s);if(!c||s.isUnknownSymbol(c)){const e=function(e,n,t){switch(n.kind){case 80:return!(16777216&n.flags&&!Lh(n)&&(172===n.parent.kind&&n.parent.name===n||ml(n,e=>170===e.kind)))&&(!TY(n)&&!SY(n)&&!xc(n.parent));case 212:case 167:return!R$(e,t);case 110:case 198:case 108:case 203:return!0;case 237:return mm(n);default:return!1}}(o,l,n)?s.getTypeAtLocation(l):void 0;return e&&{kind:"",kindModifiers:"",textSpan:j$(l,o),displayParts:s.runWithCancellationToken(u,n=>tZ(n,e,NY(l),void 0,r)),documentation:e.symbol?e.symbol.getDocumentationComment(s):void 0,tags:e.symbol?e.symbol.getJsDocTags(s):void 0}}const{symbolKind:d,displayParts:p,documentation:f,tags:m,canIncreaseVerbosityLevel:h}=s.runWithCancellationToken(u,e=>que.getSymbolDisplayPartsDocumentationAndSymbolKind(e,c,o,NY(l),l,void 0,void 0,t??Xu,r));return{kind:d,kindModifiers:que.getSymbolModifiers(s,c),textSpan:j$(l,o),displayParts:p,documentation:f,tags:m,canIncreaseVerbosityLevel:h}},getDefinitionAtPosition:function(e,n,t,r){return y(),Tce.getDefinitionAtPosition(a,g(e),n,t,r)},getDefinitionAndBoundSpan:function(e,n){return y(),Tce.getDefinitionAndBoundSpan(a,g(e),n)},getImplementationAtPosition:function(e,n){return y(),kle.getImplementationsAtPosition(a,u,a.getSourceFiles(),g(e),n)},getTypeDefinitionAtPosition:function(e,n){return y(),Tce.getTypeDefinitionAtPosition(a.getTypeChecker(),g(e),n)},getReferencesAtPosition:function(e,n){return y(),A(i$(g(e),n),n,{use:kle.FindReferencesUse.References},kle.toReferenceEntry)},findReferences:function(e,n){return y(),kle.findReferencedSymbols(a,u,a.getSourceFiles(),g(e),n)},getFileReferences:function(e){return y(),kle.Core.getReferencesForFileName(e,a,a.getSourceFiles()).map(kle.toReferenceEntry)},getDocumentHighlights:function(e,n,t){const r=ji(e);dt.assert(t.some(e=>ji(e)===r)),y();const o=F(t,e=>a.getSourceFile(e)),i=g(e);return L0.getDocumentHighlights(a,u,i,n,o)},getNameOrDottedNameSpan:function(e,n,t){const r=i.getCurrentSourceFile(e),o=i$(r,n);if(o===r)return;switch(o.kind){case 212:case 167:case 11:case 97:case 112:case 106:case 108:case 110:case 198:case 80:break;default:return}let a=o;for(;;)if(AY(a)||EY(a))a=a.parent;else{if(!RY(a))break;if(268!==a.parent.parent.kind||a.parent.parent.body!==a.parent)break;a=a.parent.parent.name}return Xs(a.getStart(),o.getEnd())},getBreakpointStatementAtPosition:function(e,n){const t=i.getCurrentSourceFile(e);return y5.spanInSourceFileAtLocation(t,n)},getNavigateToItems:function(e,n,t,r=!1,o=!1){return y(),a2(t?[g(t)]:a.getSourceFiles(),a.getTypeChecker(),u,e,n,r,o)},getRenameInfo:function(e,n,t){return y(),rue.getRenameInfo(a,g(e),n,t||{})},getSmartSelectionRange:function(e,n){return Oue.getSmartSelectionRange(n,i.getCurrentSourceFile(e))},findRenameLocations:function(e,n,t,r,o){y();const i=g(e),a=o$(i$(i,n));if(rue.nodeIsEligibleForRename(a)){if(dD(a)&&(qN(a.parent)||JN(a.parent))&&Ly(a.escapedText)){const{openingElement:e,closingElement:n}=a.parent.parent;return[e,n].map(e=>{const n=j$(e.tagName,i);return{fileName:i.fileName,textSpan:n,...kle.toContextSpan(n,i,e.parent)}})}{const e=hQ(i,o??wX),s="boolean"==typeof o?o:null==o?void 0:o.providePrefixAndSuffixTextForRename;return A(a,n,{findInStrings:t,findInComments:r,providePrefixAndSuffixTextForRename:s,use:kle.FindReferencesUse.Rename},(n,t,r)=>kle.toRenameLocation(n,t,r,s||!1,e))}}},getNavigationBarItems:function(e){return R2(i.getCurrentSourceFile(e),u)},getNavigationTree:function(e){return I2(i.getCurrentSourceFile(e),u)},getOutliningSpans:function(e){const n=i.getCurrentSourceFile(e);return Jde.collectElements(n,u)},getTodoComments:function(e,n){y();const t=g(e);u.throwIfCancellationRequested();const r=t.text,o=[];if(n.length>0&&!t.fileName.includes("/node_modules/")){const e=function(){const e="("+/(?:^(?:\s|\*)*)/.source+"|"+/(?:\/{2,}\s*)/.source+"|"+/(?:\/\*+\s*)/.source+")",t="(?:"+D(n,e=>"("+(e.text.replace(/[-[\]/{}()*+?.\\^$|]/g,"\\$&")+")")).join("|")+")";return new RegExp(e+"("+t+/(?:.*?)/.source+")"+/(?:$|\*\/)/.source,"gim")}();let a;for(;a=e.exec(r);){u.throwIfCancellationRequested();const e=3;dt.assert(a.length===n.length+e);const s=a[1],l=a.index+s.length;if(!R$(t,l))continue;let c;for(let t=0;t<n.length;t++)a[t+e]&&(c=n[t]);if(void 0===c)return dt.fail();if(i(r.charCodeAt(l+c.text.length)))continue;const d=a[2];o.push({descriptor:c,message:d,position:l})}}return o;function i(e){return e>=97&&e<=122||e>=65&&e<=90||e>=48&&e<=57}},getBraceMatchingAtPosition:function(e,n){const t=i.getCurrentSourceFile(e),r=a$(t,n),o=r.getStart(t)===n?x.get(r.kind.toString()):void 0,a=o&&qY(r.parent,o,t);return a?[j$(r,t),j$(a,t)].sort((e,n)=>e.start-n.start):s},getIndentationAtPosition:function(e,n,t){let r=Vt();const o=Q4(t),a=i.getCurrentSourceFile(e);f("getIndentationAtPosition: getCurrentSourceFile: "+(Vt()-r)),r=Vt();const s=Mpe.SmartIndenter.getIndentation(n,a,o);return f("getIndentationAtPosition: computeIndentation : "+(Vt()-r)),s},getFormattingEditsForRange:function(n,t,r,o){const a=i.getCurrentSourceFile(n);return Mpe.formatSelection(t,r,a,Mpe.getFormatContext(Q4(o),e))},getFormattingEditsForDocument:function(n,t){return Mpe.formatDocument(i.getCurrentSourceFile(n),Mpe.getFormatContext(Q4(t),e))},getFormattingEditsAfterKeystroke:function(n,t,r,o){const a=i.getCurrentSourceFile(n),s=Mpe.getFormatContext(Q4(o),e);if(!R$(a,t))switch(r){case"{":return Mpe.formatOnOpeningCurly(t,a,s);case"}":return Mpe.formatOnClosingCurly(t,a,s);case";":return Mpe.formatOnSemicolon(t,a,s);case"\n":return Mpe.formatOnEnter(t,a,s)}return[]},getDocCommentTemplateAtPosition:function(n,t,r,o){const a=o?Mpe.getFormatContext(o,e).options:void 0;return Uce.getDocCommentTemplateAtPosition(ZQ(e,a),i.getCurrentSourceFile(n),t,r)},isValidBraceCompletionAtPosition:function(e,n,t){if(60===t)return!1;const r=i.getCurrentSourceFile(e);if(_$(r,n))return!1;if(g$(r,n))return 123===t;if(v$(r,n))return!1;switch(t){case 39:case 34:case 96:return!R$(r,n)}return!0},getJsxClosingTagAtPosition:function(e,n){const t=i.getCurrentSourceFile(e),r=p$(n,t);if(!r)return;const o=32===r.kind&&qN(r.parent)?r.parent.parent:JI(r)&&HN(r.parent)?r.parent:void 0;if(o&&M(o))return{newText:`</${o.openingElement.tagName.getText(t)}>`};const a=32===r.kind&&YN(r.parent)?r.parent.parent:JI(r)&&XN(r.parent)?r.parent:void 0;return a&&L(a)?{newText:"</>"}:void 0},getLinkedEditingRangeAtPosition:function(e,n){const t=i.getCurrentSourceFile(e),r=p$(n,t);if(!r||308===r.parent.kind)return;const o="[a-zA-Z0-9:\\-\\._$]*";if(XN(r.parent.parent)){const e=r.parent.parent.openingFragment,i=r.parent.parent.closingFragment;if(Tp(e)||Tp(i))return;const a=e.getStart(t)+1,s=i.getStart(t)+2;if(n!==a&&n!==s)return;return{ranges:[{start:a,length:0},{start:s,length:0}],wordPattern:o}}{const e=ml(r.parent,e=>!(!qN(e)&&!JN(e)));if(!e)return;dt.assert(qN(e)||JN(e),"tag should be opening or closing element");const i=e.parent.openingElement,a=e.parent.closingElement,s=i.tagName.getStart(t),l=i.tagName.end,c=a.tagName.getStart(t),d=a.tagName.end;if(s===i.getStart(t)||c===a.getStart(t)||l===i.getEnd()||d===a.getEnd())return;if(!(s<=n&&n<=l||c<=n&&n<=d))return;if(i.tagName.getText(t)!==a.tagName.getText(t))return;return{ranges:[{start:s,length:l-s},{start:c,length:d-c}],wordPattern:o}}},getSpanOfEnclosingComment:function(e,n,t){const r=i.getCurrentSourceFile(e),o=Mpe.getRangeOfEnclosingComment(r,n);return!o||t&&3!==o.kind?void 0:K$(o)},getCodeFixesAtPosition:function(n,t,r,o,i,s=wX){y();const l=g(n),c=Xs(t,r),d=Mpe.getFormatContext(i,e);return P(Y(o,hn,vn),n=>(u.throwIfCancellationRequested(),G5.getFixes({errorCode:n,sourceFile:l,span:c,program:a,host:e,cancellationToken:u,formatContext:d,preferences:s})))},getCombinedCodeFix:function(n,t,r,o=wX){y(),dt.assert("file"===n.type);const i=g(n.fileName),s=Mpe.getFormatContext(r,e);return G5.getAllFixes({fixId:t,sourceFile:i,program:a,host:e,cancellationToken:u,formatContext:s,preferences:o})},applyCodeActionCommand:function(e,n){const t="string"==typeof e?n:e;return Ye(t)?Promise.all(t.map(e=>R(e))):R(t)},organizeImports:function(n,t,r=wX){y(),dt.assert("file"===n.type);const o=g(n.fileName);if(Tp(o))return s;const i=Mpe.getFormatContext(t,e),l=n.mode??(n.skipDestructiveCodeActions?"SortAndCombine":"All");return _de.organizeImports(o,i,e,a,r,l)},getEditsForFileRename:function(n,t,r,o=wX){return Q0(v(),n,t,e,Mpe.getFormatContext(r,e),o,_)},getEmitOutput:function(n,t,r){y();const o=g(n),i=e.getCustomTransformers&&e.getCustomTransformers();return oH(a,o,!!t,u,i,r)},getNonBoundSourceFile:function(e){return i.getCurrentSourceFile(e)},getProgram:v,getCurrentProgram:()=>a,getAutoImportProvider:function(){var n;return null==(n=e.getPackageJsonAutoImportProvider)?void 0:n.call(e)},updateIsDefinitionOfReferencedSymbols:function(n,t){const r=a.getTypeChecker(),o=function(){for(const o of n)for(const n of o.references){if(t.has(n)){const e=i(n);return dt.assertIsDefined(e),r.getSymbolAtLocation(e)}const o=LQ(n,_,Ue(e,e.fileExists));if(o&&t.has(o)){const e=i(o);if(e)return r.getSymbolAtLocation(e)}}return}();if(!o)return!1;for(const a of n)for(const n of a.references){const r=i(n);if(dt.assertIsDefined(r),t.has(n)||kle.isDeclarationOfSymbol(r,o)){t.add(n),n.isDefinition=!0;const r=LQ(n,_,Ue(e,e.fileExists));r&&t.add(r)}else n.isDefinition=!1}return!0;function i(e){const n=a.getSourceFile(e.fileName);if(!n)return;const t=i$(n,e.textSpan.start);return kle.Core.getAdjustedNode(t,{use:kle.FindReferencesUse.References})}},getApplicableRefactors:function(e,n,t=wX,r,o,i){y();const a=g(e);return p8.getApplicableRefactors(k(a,n,t,wX,r,o),i)},getEditsForRefactor:function(e,n,t,r,o,i=wX,a){y();const s=g(e);return p8.getEditsForRefactor(k(s,t,i,n),r,o,a)},getMoveToRefactoringFileSuggestions:function(n,t,r=wX){y();const o=g(n),i=dt.checkDefined(a.getSourceFiles()),s=rA(n),l=d6(k(o,t,r,wX)),c=u6(null==l?void 0:l.all),d=F(i,e=>{const n=rA(e.fileName);return!(null==a?void 0:a.isSourceFileFromExternalLibrary(o))&&!(o===g(e.fileName)||".ts"===s&&".d.ts"===n||".d.ts"===s&&Xn(Pi(e.fileName),"lib.")&&".d.ts"===n)&&(s===n||(".tsx"===s&&".ts"===n||".jsx"===s&&".js"===n)&&!c)?e.fileName:void 0});return{newFileName:c6(o,a,e,l),files:d}},toLineColumnOffset:function(e,n){return 0===n?{line:0,character:0}:_.toLineColumnOffset(e,n)},getSourceMapper:()=>_,clearSourceMapperCache:()=>_.clearCache(),prepareCallHierarchy:function(e,n){y();const t=b5.resolveCallHierarchyDeclaration(a,i$(g(e),n));return t&&ZZ(t,e=>b5.createCallHierarchyItem(a,e))},provideCallHierarchyIncomingCalls:function(e,n){y();const t=g(e),r=e0(b5.resolveCallHierarchyDeclaration(a,0===n?t:i$(t,n)));return r?b5.getIncomingCalls(a,r,u):[]},provideCallHierarchyOutgoingCalls:function(e,n){y();const t=g(e),r=e0(b5.resolveCallHierarchyDeclaration(a,0===n?t:i$(t,n)));return r?b5.getOutgoingCalls(a,r):[]},toggleLineComment:C,toggleMultilineComment:N,commentSelection:function(e,n){const t=i.getCurrentSourceFile(e),{firstLine:r,lastLine:o}=I(t,n);return r===o&&n.pos!==n.end?N(e,n,!0):C(e,n,!0)},uncommentSelection:function(e,n){const t=i.getCurrentSourceFile(e),r=[],{pos:o}=n;let{end:a}=n;o===a&&(a+=T$(t,o)?2:1);for(let i=o;i<=a;i++){const n=R$(t,i);if(n){switch(n.kind){case 2:r.push(...C(e,{end:n.end,pos:n.pos+1},!1));break;case 3:r.push(...N(e,{end:n.end,pos:n.pos+1},!1))}i=n.end+1}}return r},provideInlayHints:function(n,t,r=wX){y();const o=g(n);return zce.provideInlayHints(function(n,t,r){return{file:n,program:v(),host:e,span:t,preferences:r,cancellationToken:u}}(o,t,r))},getSupportedCodeFixes:t5,preparePasteEditsForFile:function(e,n){return y(),Mme.preparePasteEdits(g(e),n,a.getTypeChecker())},getPasteEdits:function(n,t){return y(),Lme.pasteEditsProvider(g(n.targetFile),n.pastedText,n.pasteLocations,n.copiedFrom?{file:g(n.copiedFrom.file),range:n.copiedFrom.range}:void 0,e,n.preferences,Mpe.getFormatContext(t,e),u)},mapCode:function(n,t,r,o,a){return dde.mapCode(i.getCurrentSourceFile(n),t,r,e,Mpe.getFormatContext(o,e),a)}};switch(o){case 0:break;case 1:d5.forEach(e=>w[e]=()=>{throw new Error(`LanguageService Operation: ${e} not allowed in LanguageServiceMode.PartialSemantic`)});break;case 2:u5.forEach(e=>w[e]=()=>{throw new Error(`LanguageService Operation: ${e} not allowed in LanguageServiceMode.Syntactic`)});break;default:dt.assertNever(o)}return w}function f5(e){return e.nameTable||function(e){const n=e.nameTable=new Map;e.forEachChild(function e(t){if(dD(t)&&!SY(t)&&t.escapedText||zg(t)&&function(e){return pg(e)||284===e.parent.kind||function(e){return e&&e.parent&&213===e.parent.kind&&e.parent.argumentExpression===e}(e)||mg(e)}(t)){const e=Kg(t);n.set(e,void 0===n.get(e)?t.pos:-1)}else if(uD(t)){const e=t.escapedText;n.set(e,void 0===n.get(e)?t.pos:-1)}if(rk(t,e),Mu(t))for(const n of t.jsDoc)rk(n,e)})}(e),e.nameTable}function m5(e){const n=function(e){switch(e.kind){case 11:case 15:case 9:if(168===e.parent.kind)return wu(e.parent.parent)?e.parent.parent:void 0;case 80:case 296:return!wu(e.parent)||211!==e.parent.parent.kind&&293!==e.parent.parent.kind||e.parent.name!==e?void 0:e.parent}return}(e);return n&&(hC(n.parent)||ZN(n.parent))?n:void 0}function h5(e,n,t,r){const o=oQ(e.name);if(!o)return s;if(!t.isUnion()){const e=t.getProperty(o);return e?[e]:s}const i=hC(e.parent)||ZN(e.parent)?x(t.types,t=>!n.isTypeInvalidDueToUnionDiscriminant(t,e.parent)):t.types,a=F(i,e=>e.getProperty(o));if(r&&(0===a.length||a.length===t.types.length)){const e=t.getProperty(o);if(e)return[e]}return i.length||a.length?Y(a,hn):F(t.types,e=>e.getProperty(o))}function _5(e){if(di)return zi(Mi(ji(di.getExecutingFilePath())),Ms(e));throw new Error("getDefaultLibFilePath is only supported when consumed as a node module. ")}function g5(e,n,t){const r=[];t=o2(t,r);const o=Ye(e)?e:[e],i=ZV(void 0,void 0,vR,t,o,n,!0);return i.diagnostics=K(i.diagnostics,r),i}UT({getNodeConstructor:()=>F4,getTokenConstructor:()=>G4,getIdentifierConstructor:()=>V4,getPrivateIdentifierConstructor:()=>j4,getSourceFileConstructor:()=>Y4,getSymbolConstructor:()=>B4,getTypeConstructor:()=>U4,getSignatureConstructor:()=>H4,getSourceMapSourceConstructor:()=>$4});var y5={};function v5(e,n){if(e.isDeclarationFile)return;let t=s$(e,n);const r=e.getLineAndCharacterOfPosition(n).line;if(e.getLineAndCharacterOfPosition(t.getStart(e)).line>r){const n=p$(t.pos,e);if(!n||e.getLineAndCharacterOfPosition(n.getEnd()).line!==r)return;t=n}if(!(33554432&t.flags))return c(t);function o(n,t){const r=NL(n)?v(n.modifiers,CD):void 0;return Xs(r?es(e.text,r.end):n.getStart(e),(t||n).getEnd())}function i(n,t){return o(n,u$(t,t.parent,e))}function a(n,t){return n&&r===e.getLineAndCharacterOfPosition(n.getStart(e)).line?c(n):c(t)}function s(n){return c(p$(n.pos,e))}function l(n){return c(u$(n,n.parent,e))}function c(n){if(n){const{parent:t}=n;switch(n.kind){case 244:return r(n.declarationList.declarations[0]);case 261:case 173:case 172:return r(n);case 170:return function e(n){if(xd(n.name))return m(n.name);if(function(e){return!!e.initializer||void 0!==e.dotDotDotToken||Mv(e,3)}(n))return o(n);{const t=n.parent,r=t.parameters.indexOf(n);return dt.assert(-1!==r),0!==r?e(t.parameters[r-1]):c(t.body)}}(n);case 263:case 175:case 174:case 178:case 179:case 177:case 219:case 220:return function(e){if(!e.body)return;if(u(e))return o(e);return c(e.body)}(n);case 242:if(Vm(n))return function(e){const n=e.statements.length?e.statements[0]:e.getLastToken();if(u(e.parent))return a(e.parent,n);return c(n)}(n);case 269:return p(n);case 300:return p(n.block);case 245:return o(n.expression);case 254:return o(n.getChildAt(0),n.expression);case 248:return i(n,n.expression);case 247:return c(n.statement);case 260:return o(n.getChildAt(0));case 246:return i(n,n.expression);case 257:return c(n.statement);case 253:case 252:return o(n.getChildAt(0),n.label);case 249:return function(e){if(e.initializer)return f(e);if(e.condition)return o(e.condition);if(e.incrementor)return o(e.incrementor)}(n);case 250:return i(n,n.expression);case 251:return f(n);case 256:return i(n,n.expression);case 297:case 298:return c(n.statements[0]);case 259:return p(n.tryBlock);case 258:case 278:return o(n,n.expression);case 272:return o(n,n.moduleReference);case 273:case 279:return o(n,n.moduleSpecifier);case 268:if(1!==ZW(n))return;case 264:case 267:case 307:case 209:return o(n);case 255:return c(n.statement);case 171:return function(n,t,r){if(n){const o=n.indexOf(t);if(o>=0){let t=o,i=o+1;for(;t>0&&r(n[t-1]);)t--;for(;i<n.length&&r(n[i]);)i++;return Xs(es(e.text,n[t].pos),n[i-1].end)}}return o(t)}(t.modifiers,n,CD);case 207:case 208:return m(n);case 265:case 266:return;case 27:case 1:return a(p$(n.pos,e));case 28:return s(n);case 19:return function(n){switch(n.parent.kind){case 267:const t=n.parent;return a(p$(n.pos,e,n.parent),t.members.length?t.members[0]:t.getLastToken(e));case 264:const r=n.parent;return a(p$(n.pos,e,n.parent),r.members.length?r.members[0]:r.getLastToken(e));case 270:return a(n.parent.parent,n.parent.clauses[0])}return c(n.parent)}(n);case 20:return function(e){switch(e.parent.kind){case 269:if(1!==ZW(e.parent.parent))return;case 267:case 264:return o(e);case 242:if(Vm(e.parent))return o(e);case 300:return c(ge(e.parent.statements));case 270:const n=ge(e.parent.clauses);return n?c(ge(n.statements)):void 0;case 207:const t=e.parent;return c(ge(t.elements)||t);default:if(W$(e.parent)){const n=e.parent;return o(ge(n.properties)||n)}return c(e.parent)}}(n);case 24:return function(e){if(208===e.parent.kind){const n=e.parent;return o(ge(n.elements)||n)}if(W$(e.parent)){const n=e.parent;return o(ge(n.elements)||n)}return c(e.parent)}(n);case 21:return function(e){if(247===e.parent.kind||214===e.parent.kind||215===e.parent.kind)return s(e);if(218===e.parent.kind)return l(e);return c(e.parent)}(n);case 22:return function(e){switch(e.parent.kind){case 219:case 263:case 220:case 175:case 174:case 178:case 179:case 177:case 248:case 247:case 249:case 251:case 214:case 215:case 218:return s(e);default:return c(e.parent)}}(n);case 59:return function(e){if(ad(e.parent)||304===e.parent.kind||170===e.parent.kind)return s(e);return c(e.parent)}(n);case 32:case 30:return function(e){if(217===e.parent.kind)return l(e);return c(e.parent)}(n);case 117:return function(e){if(247===e.parent.kind)return i(e,e.parent.expression);return c(e.parent)}(n);case 93:case 85:case 98:return l(n);case 165:return function(e){if(251===e.parent.kind)return l(e);return c(e.parent)}(n);default:if(W$(n))return h(n);if((80===n.kind||231===n.kind||304===n.kind||305===n.kind)&&W$(t))return o(n);if(227===n.kind){const{left:e,operatorToken:t}=n;if(W$(e))return h(e);if(64===t.kind&&W$(n.parent))return o(n);if(28===t.kind)return c(e)}if(Eh(n))switch(t.kind){case 247:return s(n);case 171:return c(n.parent);case 249:case 251:return o(n);case 227:if(28===n.parent.operatorToken.kind)return o(n);break;case 220:if(n.parent.body===n)return o(n)}switch(n.parent.kind){case 304:if(n.parent.name===n&&!W$(n.parent.parent))return c(n.parent.initializer);break;case 217:if(n.parent.type===n)return l(n.parent.type);break;case 261:case 170:{const{initializer:e,type:t}=n.parent;if(e===n||t===n||ob(n.kind))return s(n);break}case 227:{const{left:e}=n.parent;if(W$(e)&&n!==e)return s(n);break}default:if(ad(n.parent)&&n.parent.type===n)return s(n)}return c(n.parent)}}function t(n){return mN(n.parent)&&n.parent.declarations[0]===n?o(p$(n.pos,e,n.parent),n):o(n)}function r(n){if(250===n.parent.parent.kind)return c(n.parent.parent);const r=n.parent;return xd(n.name)?m(n.name):ku(n)&&n.initializer||Mv(n,32)||251===r.parent.kind?t(n):mN(n.parent)&&n.parent.declarations[0]!==n?c(p$(n.pos,e,n.parent)):void 0}function u(e){return Mv(e,32)||264===e.parent.kind&&177!==e.kind}function p(n){switch(n.parent.kind){case 268:if(1!==ZW(n.parent))return;case 248:case 246:case 250:return a(n.parent,n.statements[0]);case 249:case 251:return a(p$(n.pos,e,n.parent),n.statements[0])}return c(n.statements[0])}function f(e){if(262!==e.initializer.kind)return c(e.initializer);{const n=e.initializer;if(n.declarations.length>0)return c(n.declarations[0])}}function m(e){const n=d(e.elements,e=>233!==e.kind?e:void 0);return n?c(n):209===e.parent.kind?o(e.parent):t(e.parent)}function h(e){dt.assert(208!==e.kind&&207!==e.kind);const n=d(210===e.kind?e.elements:e.properties,e=>233!==e.kind?e:void 0);return n?c(n):o(227===e.parent.kind?e.parent:e)}}}t(y5,{spanInSourceFileAtLocation:()=>v5});var b5={};function T5(e){return MD(e)||fN(e)}function S5(e){return(EC(e)||AC(e)||OC(e))&&T5(e.parent)&&e===e.parent.initializer&&dD(e.parent.name)&&(!!(2&cl(e.parent))||MD(e.parent))}function E5(e){return uM(e)||bN(e)||hN(e)||EC(e)||_N(e)||OC(e)||kD(e)||LD(e)||PD(e)||OD(e)||FD(e)}function A5(e){return uM(e)||bN(e)&&dD(e.name)||hN(e)||_N(e)||kD(e)||LD(e)||PD(e)||OD(e)||FD(e)||function(e){return(EC(e)||OC(e))&&Rl(e)}(e)||S5(e)}function x5(e){return uM(e)?e:Rl(e)?e.name:S5(e)?e.parent.name:dt.checkDefined(e.modifiers&&y(e.modifiers,R5))}function R5(e){return 90===e.kind}function I5(e,n){const t=x5(n);return t&&e.getSymbolAtLocation(t)}function D5(e,n){if(n.body)return n;if(wD(n))return sv(n.parent);if(hN(n)||LD(n)){const t=I5(e,n);return t&&t.valueDeclaration&&ld(t.valueDeclaration)&&t.valueDeclaration.body?t.valueDeclaration:void 0}return n}function C5(e,n){const t=I5(e,n);let r;if(t&&t.declarations){const e=J(t.declarations),n=D(t.declarations,e=>({file:e.getSourceFile().fileName,pos:e.pos}));e.sort((e,t)=>xn(n[e].file,n[t].file)||n[e].pos-n[t].pos);const o=D(e,e=>t.declarations[e]);let i;for(const t of o)A5(t)&&(i&&i.parent===t.parent&&i.end===t.pos||(r=re(r,t)),i=t)}return r}function N5(e,n){return kD(n)?n:ld(n)?D5(e,n)??C5(e,n)??n:C5(e,n)??n}function M5(e,n){const t=e.getTypeChecker();let r=!1;for(;;){if(A5(n))return N5(t,n);if(E5(n)){const e=ml(n,A5);return e&&N5(t,e)}if(pg(n)){if(A5(n.parent))return N5(t,n.parent);if(E5(n.parent)){const e=ml(n.parent,A5);return e&&N5(t,e)}return T5(n.parent)&&n.parent.initializer&&S5(n.parent.initializer)?n.parent.initializer:void 0}if(wD(n))return A5(n.parent)?n.parent:void 0;if(126!==n.kind||!kD(n.parent)){if(fN(n)&&n.initializer&&S5(n.initializer))return n.initializer;if(!r){let e=t.getSymbolAtLocation(n);if(e&&(2097152&e.flags&&(e=t.getAliasedSymbol(e)),e.valueDeclaration)){r=!0,n=e.valueDeclaration;continue}}return}n=n.parent}}function P5(e,n){const t=n.getSourceFile(),r=function(e,n){if(uM(n))return{text:n.fileName,pos:0,end:0};if((hN(n)||_N(n))&&!Rl(n)){const e=n.modifiers&&y(n.modifiers,R5);if(e)return{text:"default",pos:e.getStart(),end:e.getEnd()}}if(kD(n)){const t=es(n.getSourceFile().text,Bb(n).pos),r=t+6,o=e.getTypeChecker(),i=o.getSymbolAtLocation(n.parent);return{text:(i?`${o.symbolToString(i,n.parent)} `:"")+"static {}",pos:t,end:r}}const t=S5(n)?n.parent.name:dt.checkDefined(Dl(n),"Expected call hierarchy item to have a name");let r=dD(t)?vl(t):zg(t)?t.text:RD(t)&&zg(t.expression)?t.expression.text:void 0;if(void 0===r){const o=e.getTypeChecker(),i=o.getSymbolAtLocation(t);i&&(r=o.symbolToString(i,n))}if(void 0===r){const e=Nj();r=cp(t=>e.writeNode(4,n,n.getSourceFile(),t))}return{text:r,pos:t.getStart(),end:t.getEnd()}}(e,n),o=function(e){var n,t,r,o;if(S5(e))return MD(e.parent)&&md(e.parent.parent)?OC(e.parent.parent)?null==(n=Cl(e.parent.parent))?void 0:n.getText():null==(t=e.parent.parent.name)?void 0:t.getText():TN(e.parent.parent.parent.parent)&&dD(e.parent.parent.parent.parent.parent.name)?e.parent.parent.parent.parent.parent.name.getText():void 0;switch(e.kind){case 178:case 179:case 175:return 211===e.parent.kind?null==(r=Cl(e.parent))?void 0:r.getText():null==(o=Dl(e.parent))?void 0:o.getText();case 263:case 264:case 268:if(TN(e.parent)&&dD(e.parent.parent.name))return e.parent.parent.name.getText()}}(n),i=MY(n),a=C$(n),s=Xs(es(t.text,n.getFullStart(),!1,!0),n.getEnd()),l=Xs(r.pos,r.end);return{file:t.fileName,kind:i,kindModifiers:a,name:r.text,containerName:o,span:s,selectionSpan:l}}function L5(e){return void 0!==e}function k5(e){if(e.kind===kle.EntryKind.Node){const{node:n}=e;if(lY(n,!0,!0)||cY(n,!0,!0)||dY(n,!0,!0)||uY(n,!0,!0)||AY(n)||xY(n)){const e=n.getSourceFile();return{declaration:ml(n,A5)||e,range:H$(n,e)}}}}function w5(e){return cB(e.declaration)}function O5(e,n,t){if(uM(n)||bN(n)||kD(n))return[];const r=x5(n),o=x(kle.findReferenceOrRenameEntries(e,t,e.getSourceFiles(),r,0,{use:kle.FindReferencesUse.References},k5),L5);return o?ze(o,w5,n=>function(e,n){return t=P5(e,n[0].declaration),r=D(n,e=>K$(e.range)),{from:t,fromSpans:r};var t,r}(e,n)):[]}function F5(e,n){const t=[],r=function(e,n){function t(t){const r=bC(t)?t.tag:Eu(t)?t.tagName:IT(t)||kD(t)?t:t.expression,o=M5(e,r);if(o){const e=H$(r,t.getSourceFile());if(Ye(o))for(const t of o)n.push({declaration:t,range:e});else n.push({declaration:o,range:e})}}return function e(n){if(n&&!(33554432&n.flags))if(A5(n)){if(md(n))for(const t of n.members)t.name&&RD(t.name)&&e(t.name.expression)}else{switch(n.kind){case 80:case 272:case 273:case 279:case 265:case 266:return;case 176:return void t(n);case 217:case 235:case 239:return void e(n.expression);case 261:case 170:return e(n.name),void e(n.initializer);case 214:case 215:return t(n),e(n.expression),void d(n.arguments,e);case 216:return t(n),e(n.tag),void e(n.template);case 287:case 286:return t(n),e(n.tagName),void e(n.attributes);case 171:return t(n),void e(n.expression);case 212:case 213:t(n),rk(n,e)}Cm(n)||rk(n,e)}}}(e,t);switch(n.kind){case 308:!function(e,n){d(e.statements,n)}(n,r);break;case 268:!function(e,n){!Mv(e,128)&&e.body&&TN(e.body)&&d(e.body.statements,n)}(n,r);break;case 263:case 219:case 220:case 175:case 178:case 179:!function(e,n,t){const r=D5(e,n);r&&(d(r.parameters,t),t(r.body))}(e.getTypeChecker(),n,r);break;case 264:case 232:!function(e,n){d(e.modifiers,n);const t=Sg(e);t&&n(t.expression);for(const r of e.members)CL(r)&&d(r.modifiers,n),MD(r)?n(r.initializer):wD(r)&&r.body?(d(r.parameters,n),n(r.body)):kD(r)&&n(r)}(n,r);break;case 176:!function(e,n){n(e.body)}(n,r);break;default:dt.assertNever(n)}return t}function W5(e,n){return 33554432&n.flags||PD(n)?[]:ze(F5(e,n),w5,n=>function(e,n){return t=P5(e,n[0].declaration),r=D(n,e=>K$(e.range)),{to:t,fromSpans:r};var t,r}(e,n))}t(b5,{createCallHierarchyItem:()=>P5,getIncomingCalls:()=>O5,getOutgoingCalls:()=>W5,resolveCallHierarchyDeclaration:()=>M5});var z5={};t(z5,{v2020:()=>B5});var B5={};t(B5,{TokenEncodingConsts:()=>R4,TokenModifier:()=>D4,TokenType:()=>I4,getEncodedSemanticClassifications:()=>N4,getSemanticClassifications:()=>C4});var G5={};t(G5,{PreserveOptionalFlags:()=>$oe,addNewNodeForMemberSymbol:()=>Qoe,codeFixAll:()=>n7,createCodeFixAction:()=>K5,createCodeFixActionMaybeFixAll:()=>q5,createCodeFixActionWithoutFixAll:()=>H5,createCombinedCodeActions:()=>Z5,createFileTextChanges:()=>e7,createImportAdder:()=>Ree,createImportSpecifierResolver:()=>Dee,createMissingMemberNodes:()=>Xoe,createSignatureDeclarationFromCallExpression:()=>eie,createSignatureDeclarationFromSignature:()=>Zoe,createStubbedBody:()=>uie,eachDiagnostic:()=>t7,findAncestorMatchingSpan:()=>vie,generateAccessorFromProperty:()=>bie,getAccessorConvertiblePropertyAtPosition:()=>Aie,getAllFixes:()=>Q5,getFixes:()=>$5,getImportCompletionAction:()=>Cee,getImportKind:()=>Hee,getJSDocTypedefNodes:()=>fee,getNoopSymbolTrackerWithResolver:()=>Yoe,getPromoteTypeOnlyCompletionAction:()=>Nee,getSupportedErrorCodes:()=>Y5,importFixName:()=>Eee,importSymbols:()=>yie,parameterShouldGetTypeFromJSDoc:()=>K7,registerCodeFix:()=>X5,setJsonCompilerOptionValue:()=>fie,setJsonCompilerOptionValues:()=>pie,tryGetAutoImportableReferenceFromTypeNode:()=>_ie,typeNodeToAutoImportableTypeNode:()=>rie,typePredicateToAutoImportableTypeNode:()=>iie,typeToAutoImportableTypeNode:()=>tie,typeToMinimizedReferenceType:()=>oie});var V5,j5=He(),U5=new Map;function H5(e,n,t){return J5(e,d0(t),n,void 0,void 0)}function K5(e,n,t,r,o,i){return J5(e,d0(t),n,r,d0(o),i)}function q5(e,n,t,r,o,i){return J5(e,d0(t),n,r,o&&d0(o),i)}function J5(e,n,t,r,o,i){return{fixName:e,description:n,changes:t,fixId:r,fixAllDescription:o,commands:i?[i]:void 0}}function X5(e){for(const n of e.errorCodes)V5=void 0,j5.add(String(n),e);if(e.fixIds)for(const n of e.fixIds)dt.assert(!U5.has(n)),U5.set(n,e)}function Y5(){return V5??(V5=Le(j5.keys()))}function $5(e){const n=r7(e);return P(j5.get(String(e.errorCode)),t=>D(t.getCodeActions(e),function(e,n){const{errorCodes:t}=e;let r=0;for(const i of n)if(S(t,i.code)&&r++,r>1)break;const o=r<2;return({fixId:e,fixAllDescription:n,...t})=>o?t:{...t,fixId:e,fixAllDescription:n}}(t,n)))}function Q5(e){return U5.get(nn(e.fixId,Qe)).getAllCodeActions(e)}function Z5(e,n){return{changes:e,commands:n}}function e7(e,n){return{fileName:e,textChanges:n}}function n7(e,n,t){const r=[];return Z5(tpe.ChangeTracker.with(e,o=>t7(e,n,e=>t(o,e,r))),0===r.length?void 0:r)}function t7(e,n,t){for(const r of r7(e))S(n,r.code)&&t(r)}function r7({program:e,sourceFile:n,cancellationToken:t}){const r=[...e.getSemanticDiagnostics(n,t),...e.getSyntacticDiagnostics(n,t),...W1(n,e,t)];return PS(e.getCompilerOptions())&&r.push(...e.getDeclarationDiagnostics(n,t)),r}var o7="addConvertToUnknownForNonOverlappingTypes",i7=[fa.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 a7(e,n,t){const r=zC(t)?vR.createAsExpression(t.expression,vR.createKeywordTypeNode(159)):vR.createTypeAssertion(vR.createKeywordTypeNode(159),t.expression);e.replaceNode(n,t.expression,r)}function s7(e,n){if(!Lh(e))return ml(s$(e,n),e=>zC(e)||TC(e))}X5({errorCodes:i7,getCodeActions:function(e){const n=s7(e.sourceFile,e.span.start);if(void 0===n)return;const t=tpe.ChangeTracker.with(e,t=>a7(t,e.sourceFile,n));return[K5(o7,t,fa.Add_unknown_conversion_for_non_overlapping_types,o7,fa.Add_unknown_to_all_conversions_of_non_overlapping_types)]},fixIds:[o7],getAllCodeActions:e=>n7(e,i7,(e,n)=>{const t=s7(n.file,n.start);t&&a7(e,n.file,t)})}),X5({errorCodes:[fa.await_expressions_are_only_allowed_at_the_top_level_of_a_file_when_that_file_is_a_module_but_this_file_has_no_imports_or_exports_Consider_adding_an_empty_export_to_make_this_file_a_module.code,fa.await_using_statements_are_only_allowed_at_the_top_level_of_a_file_when_that_file_is_a_module_but_this_file_has_no_imports_or_exports_Consider_adding_an_empty_export_to_make_this_file_a_module.code,fa.for_await_loops_are_only_allowed_at_the_top_level_of_a_file_when_that_file_is_a_module_but_this_file_has_no_imports_or_exports_Consider_adding_an_empty_export_to_make_this_file_a_module.code],getCodeActions:function(e){const{sourceFile:n}=e;return[H5("addEmptyExportDeclaration",tpe.ChangeTracker.with(e,e=>{const t=vR.createExportDeclaration(void 0,!1,vR.createNamedExports([]),void 0);e.insertNodeAtEndOfScope(n,n,t)}),fa.Add_export_to_make_this_file_into_a_module)]}});var l7="addMissingAsync",c7=[fa.Argument_of_type_0_is_not_assignable_to_parameter_of_type_1.code,fa.Type_0_is_not_assignable_to_type_1.code,fa.Type_0_is_not_comparable_to_type_1.code];function d7(e,n,t,r){const o=t(t=>function(e,n,t,r){if(r&&r.has(cB(t)))return;null==r||r.add(cB(t));const o=vR.replaceModifiers(Vx(t,!0),vR.createNodeArray(vR.createModifiersFromModifierFlags(1024|Hv(t))));e.replaceNode(n,t,o)}(t,e.sourceFile,n,r));return K5(l7,o,fa.Add_async_modifier_to_containing_function,l7,fa.Add_all_missing_async_modifiers)}function u7(e,n){if(!n)return;return ml(s$(e,n.start),t=>t.getStart(e)<n.start||t.getEnd()>Ps(n)?"quit":(AC(t)||LD(t)||EC(t)||hN(t))&&IQ(n,j$(t,e)))}X5({fixIds:[l7],errorCodes:c7,getCodeActions:function(e){const{sourceFile:n,errorCode:t,cancellationToken:r,program:o,span:i}=e,a=y(o.getTypeChecker().getDiagnostics(n,r),function(e,n){return({start:t,length:r,relatedInformation:o,code:i})=>Ze(t)&&Ze(r)&&IQ({start:t,length:r},e)&&i===n&&!!o&&U(o,e=>e.code===fa.Did_you_mean_to_mark_this_function_as_async.code)}(i,t)),s=u7(n,a&&a.relatedInformation&&y(a.relatedInformation,e=>e.code===fa.Did_you_mean_to_mark_this_function_as_async.code));if(!s)return;return[d7(e,s,n=>tpe.ChangeTracker.with(e,n))]},getAllCodeActions:e=>{const{sourceFile:n}=e,t=new Set;return n7(e,c7,(r,o)=>{const i=o.relatedInformation&&y(o.relatedInformation,e=>e.code===fa.Did_you_mean_to_mark_this_function_as_async.code),a=u7(n,i);if(!a)return;return d7(e,a,e=>(e(r),[]),t)})}});var p7="addMissingAwait",f7=fa.Property_0_does_not_exist_on_type_1.code,m7=[fa.This_expression_is_not_callable.code,fa.This_expression_is_not_constructable.code],h7=[fa.An_arithmetic_operand_must_be_of_type_any_number_bigint_or_an_enum_type.code,fa.The_left_hand_side_of_an_arithmetic_operation_must_be_of_type_any_number_bigint_or_an_enum_type.code,fa.The_right_hand_side_of_an_arithmetic_operation_must_be_of_type_any_number_bigint_or_an_enum_type.code,fa.Operator_0_cannot_be_applied_to_type_1.code,fa.Operator_0_cannot_be_applied_to_types_1_and_2.code,fa.This_comparison_appears_to_be_unintentional_because_the_types_0_and_1_have_no_overlap.code,fa.This_condition_will_always_return_true_since_this_0_is_always_defined.code,fa.Type_0_is_not_an_array_type.code,fa.Type_0_is_not_an_array_type_or_a_string_type.code,fa.Type_0_can_only_be_iterated_through_when_using_the_downlevelIteration_flag_or_with_a_target_of_es2015_or_higher.code,fa.Type_0_is_not_an_array_type_or_a_string_type_or_does_not_have_a_Symbol_iterator_method_that_returns_an_iterator.code,fa.Type_0_is_not_an_array_type_or_does_not_have_a_Symbol_iterator_method_that_returns_an_iterator.code,fa.Type_0_must_have_a_Symbol_iterator_method_that_returns_an_iterator.code,fa.Type_0_must_have_a_Symbol_asyncIterator_method_that_returns_an_async_iterator.code,fa.Argument_of_type_0_is_not_assignable_to_parameter_of_type_1.code,f7,...m7];function _7(e,n,t,r,o){const i=QZ(e,t);return i&&function(e,n,t,r,o){const i=o.getTypeChecker(),a=i.getDiagnostics(e,r);return U(a,({start:e,length:r,relatedInformation:o,code:i})=>Ze(e)&&Ze(r)&&IQ({start:e,length:r},t)&&i===n&&!!o&&U(o,e=>e.code===fa.Did_you_forget_to_use_await.code))}(e,n,t,r,o)&&b7(i)?i:void 0}function g7(e,n,t,r,o,i){const{sourceFile:a,program:s,cancellationToken:l}=e,c=function(e,n,t,r,o){const i=function(e,n){if(_C(e.parent)&&dD(e.parent.expression))return{identifiers:[e.parent.expression],isCompleteFix:!0};if(dD(e))return{identifiers:[e],isCompleteFix:!0};if(MC(e)){let t,r=!0;for(const o of[e.left,e.right]){const e=n.getTypeAtLocation(o);if(n.getPromisedTypeOfPromise(e)){if(!dD(o)){r=!1;continue}(t||(t=[])).push(o)}}return t&&{identifiers:t,isCompleteFix:r}}}(e,o);if(!i)return;let a,s=i.isCompleteFix;for(const l of i.identifiers){const e=o.getSymbolAtLocation(l);if(!e)continue;const i=en(e.valueDeclaration,fN),c=i&&en(i.name,dD),d=Ig(i,244);if(!i||!d||i.type||!i.initializer||d.getSourceFile()!==n||Mv(d,32)||!c||!b7(i.initializer)){s=!1;continue}const u=r.getSemanticDiagnostics(n,t);kle.Core.eachSymbolReferenceInFile(c,o,n,e=>l!==e&&!v7(e,u,n,o))?s=!1:(a||(a=[])).push({expression:i.initializer,declarationSymbol:e})}return a&&{initializers:a,needsSecondPassForFixAll:!s}}(n,a,l,s,r);if(c){return H5("addMissingAwaitToInitializer",o(e=>{d(c.initializers,({expression:n})=>T7(e,t,a,r,n,i)),i&&c.needsSecondPassForFixAll&&T7(e,t,a,r,n,i)}),1===c.initializers.length?[fa.Add_await_to_initializer_for_0,c.initializers[0].declarationSymbol.name]:fa.Add_await_to_initializers)}}function y7(e,n,t,r,o,i){const a=o(o=>T7(o,t,e.sourceFile,r,n,i));return K5(p7,a,fa.Add_await,p7,fa.Fix_all_expressions_possibly_missing_await)}function v7(e,n,t,r){const o=_C(e.parent)?e.parent.name:MC(e.parent)?e.parent:e,i=y(n,e=>e.start===o.getStart(t)&&e.start+e.length===o.getEnd());return i&&S(h7,i.code)||1&r.getTypeAtLocation(o).flags}function b7(e){return 65536&e.flags||!!ml(e,e=>e.parent&&AC(e.parent)&&e.parent.body===e||JC(e)&&(263===e.parent.kind||219===e.parent.kind||220===e.parent.kind||175===e.parent.kind))}function T7(e,n,t,r,o,i){if(rN(o.parent)&&!o.parent.awaitModifier){const n=r.getTypeAtLocation(o),i=r.getAnyAsyncIterableType();if(i&&r.isTypeAssignableTo(n,i)){const n=o.parent;return void e.replaceNode(t,n,vR.updateForOfStatement(n,vR.createToken(135),n.initializer,n.expression,n.statement))}}if(MC(o))for(const a of[o.left,o.right]){if(i&&dD(a)){const e=r.getSymbolAtLocation(a);if(e&&i.has(dB(e)))continue}const n=r.getTypeAtLocation(a),o=r.getPromisedTypeOfPromise(n)?vR.createAwaitExpression(a):a;e.replaceNode(t,a,o)}else if(n===f7&&_C(o.parent)){if(i&&dD(o.parent.expression)){const e=r.getSymbolAtLocation(o.parent.expression);if(e&&i.has(dB(e)))return}e.replaceNode(t,o.parent.expression,vR.createParenthesizedExpression(vR.createAwaitExpression(o.parent.expression))),S7(e,o.parent.expression,t)}else if(S(m7,n)&&zd(o.parent)){if(i&&dD(o)){const e=r.getSymbolAtLocation(o);if(e&&i.has(dB(e)))return}e.replaceNode(t,o,vR.createParenthesizedExpression(vR.createAwaitExpression(o))),S7(e,o,t)}else{if(i&&fN(o.parent)&&dD(o.parent.name)){const e=r.getSymbolAtLocation(o.parent.name);if(e&&!B(i,dB(e)))return}e.replaceNode(t,o,vR.createAwaitExpression(o))}}function S7(e,n,t){const r=p$(n.pos,t);r&&kZ(r.end,r.parent,t)&&e.insertText(t,n.getStart(t),";")}X5({fixIds:[p7],errorCodes:h7,getCodeActions:function(e){const{sourceFile:n,errorCode:t,span:r,cancellationToken:o,program:i}=e,a=_7(n,t,r,o,i);if(!a)return;const s=e.program.getTypeChecker(),l=n=>tpe.ChangeTracker.with(e,n);return ne([g7(e,a,t,s,l),y7(e,a,t,s,l)])},getAllCodeActions:e=>{const{sourceFile:n,program:t,cancellationToken:r}=e,o=e.program.getTypeChecker(),i=new Set;return n7(e,h7,(a,s)=>{const l=_7(n,s.code,s,r,t);if(!l)return;const c=e=>(e(a),[]);return g7(e,l,s.code,o,c,i)||y7(e,l,s.code,o,c,i)})}});var E7="addMissingConst",A7=[fa.Cannot_find_name_0.code,fa.No_value_exists_in_scope_for_the_shorthand_property_0_Either_declare_one_or_provide_an_initializer.code];function x7(e,n,t,r,o){const i=s$(n,t),a=ml(i,e=>eu(e.parent)?e.parent.initializer===e:!function(e){switch(e.kind){case 80:case 210:case 211:case 304:case 305:return!0;default:return!1}}(e)&&"quit");if(a)return R7(e,a,n,o);const s=i.parent;if(MC(s)&&64===s.operatorToken.kind&&$C(s.parent))return R7(e,i,n,o);if(mC(s)){const t=r.getTypeChecker();if(!g(s.elements,e=>function(e,n){const t=dD(e)?e:sb(e,!0)&&dD(e.left)?e.left:void 0;return!!t&&!n.getSymbolAtLocation(t)}(e,t)))return;return R7(e,s,n,o)}const l=ml(i,e=>!!$C(e.parent)||!function(e){switch(e.kind){case 80:case 227:case 28:return!0;default:return!1}}(e)&&"quit");if(l){if(!I7(l,r.getTypeChecker()))return;return R7(e,l,n,o)}}function R7(e,n,t,r){r&&!B(r,n)||e.insertModifierBefore(t,87,n)}function I7(e,n){return!!MC(e)&&(28===e.operatorToken.kind?g([e.left,e.right],e=>I7(e,n)):64===e.operatorToken.kind&&dD(e.left)&&!n.getSymbolAtLocation(e.left))}X5({errorCodes:A7,getCodeActions:function(e){const n=tpe.ChangeTracker.with(e,n=>x7(n,e.sourceFile,e.span.start,e.program));if(n.length>0)return[K5(E7,n,fa.Add_const_to_unresolved_variable,E7,fa.Add_const_to_all_unresolved_variables)]},fixIds:[E7],getAllCodeActions:e=>{const n=new Set;return n7(e,A7,(t,r)=>x7(t,r.file,r.start,e.program,n))}});var D7="addMissingDeclareProperty",C7=[fa.Property_0_will_overwrite_the_base_property_in_1_If_this_is_intentional_add_an_initializer_Otherwise_add_a_declare_modifier_or_remove_the_redundant_declaration.code];function N7(e,n,t,r){const o=s$(n,t);if(!dD(o))return;const i=o.parent;173!==i.kind||r&&!B(r,i)||e.insertModifierBefore(n,138,i)}X5({errorCodes:C7,getCodeActions:function(e){const n=tpe.ChangeTracker.with(e,n=>N7(n,e.sourceFile,e.span.start));if(n.length>0)return[K5(D7,n,fa.Prefix_with_declare,D7,fa.Prefix_all_incorrect_property_declarations_with_declare)]},fixIds:[D7],getAllCodeActions:e=>{const n=new Set;return n7(e,C7,(e,t)=>N7(e,t.file,t.start,n))}});var M7="addMissingInvocationForDecorator",P7=[fa._0_accepts_too_few_arguments_to_be_used_as_a_decorator_here_Did_you_mean_to_call_it_first_and_write_0.code];function L7(e,n,t){const r=ml(s$(n,t),CD);dt.assert(!!r,"Expected position to be owned by a decorator.");const o=vR.createCallExpression(r.expression,void 0,void 0);e.replaceNode(n,r.expression,o)}X5({errorCodes:P7,getCodeActions:function(e){const n=tpe.ChangeTracker.with(e,n=>L7(n,e.sourceFile,e.span.start));return[K5(M7,n,fa.Call_decorator_expression,M7,fa.Add_to_all_uncalled_decorators)]},fixIds:[M7],getAllCodeActions:e=>n7(e,P7,(e,n)=>L7(e,n.file,n.start))});var k7="addMissingResolutionModeImportAttribute",w7=[fa.Type_only_import_of_an_ECMAScript_module_from_a_CommonJS_module_must_have_a_resolution_mode_attribute.code,fa.Type_import_of_an_ECMAScript_module_from_a_CommonJS_module_must_have_a_resolution_mode_attribute.code];function O7(e,n,t,r,o,i){var a,s,l;const c=ml(s$(n,t),et(xN,lC));dt.assert(!!c,"Expected position to be owned by an ImportDeclaration or ImportType.");const d=0===hQ(n,i),u=T_(c),p=!u||(null==(a=KF(u.text,n.fileName,r.getCompilerOptions(),o,r.getModuleResolutionCache(),void 0,99).resolvedModule)?void 0:a.resolvedFileName)===(null==(l=null==(s=r.getResolvedModuleFromModuleSpecifier(u,n))?void 0:s.resolvedModule)?void 0:l.resolvedFileName),f=c.attributes?vR.updateImportAttributes(c.attributes,vR.createNodeArray([...c.attributes.elements,vR.createImportAttribute(vR.createStringLiteral("resolution-mode",d),vR.createStringLiteral(p?"import":"require",d))],c.attributes.elements.hasTrailingComma),c.attributes.multiLine):vR.createImportAttributes(vR.createNodeArray([vR.createImportAttribute(vR.createStringLiteral("resolution-mode",d),vR.createStringLiteral(p?"import":"require",d))]));273===c.kind?e.replaceNode(n,c,vR.updateImportDeclaration(c,c.modifiers,c.importClause,c.moduleSpecifier,f)):e.replaceNode(n,c,vR.updateImportTypeNode(c,c.argument,f,c.qualifier,c.typeArguments))}X5({errorCodes:w7,getCodeActions:function(e){const n=tpe.ChangeTracker.with(e,n=>O7(n,e.sourceFile,e.span.start,e.program,e.host,e.preferences));return[K5(k7,n,fa.Add_resolution_mode_import_attribute,k7,fa.Add_resolution_mode_import_attribute_to_all_type_only_imports_that_need_it)]},fixIds:[k7],getAllCodeActions:e=>n7(e,w7,(n,t)=>O7(n,t.file,t.start,e.program,e.host,e.preferences))});var F7="addNameToNamelessParameter",W7=[fa.Parameter_has_a_name_but_no_type_Did_you_mean_0_Colon_1.code];function z7(e,n,t){const r=s$(n,t),o=r.parent;if(!DD(o))return dt.fail("Tried to add a parameter name to a non-parameter: "+dt.formatSyntaxKind(r.kind));const i=o.parent.parameters.indexOf(o);dt.assert(!o.type,"Tried to add a parameter name to a parameter that already had one."),dt.assert(i>-1,"Parameter not found in parent parameter list.");let a=o.name.getEnd(),s=vR.createTypeReferenceNode(o.name,void 0),l=B7(n,o);for(;l;)s=vR.createArrayTypeNode(s),a=l.getEnd(),l=B7(n,l);const c=vR.createParameterDeclaration(o.modifiers,o.dotDotDotToken,"arg"+i,o.questionToken,o.dotDotDotToken&&!qD(s)?vR.createArrayTypeNode(s):s,o.initializer);e.replaceRange(n,Ob(o.getStart(n),a),c)}function B7(e,n){const t=u$(n.name,n.parent,e);if(t&&23===t.kind&&pC(t.parent)&&DD(t.parent.parent))return t.parent.parent}X5({errorCodes:W7,getCodeActions:function(e){const n=tpe.ChangeTracker.with(e,n=>z7(n,e.sourceFile,e.span.start));return[K5(F7,n,fa.Add_parameter_name,F7,fa.Add_names_to_all_parameters_without_names)]},fixIds:[F7],getAllCodeActions:e=>n7(e,W7,(e,n)=>z7(e,n.file,n.start))});var G7="addOptionalPropertyUndefined";function V7(e,n){var t;if(e){if(MC(e.parent)&&64===e.parent.operatorToken.kind)return{source:e.parent.right,target:e.parent.left};if(fN(e.parent)&&e.parent.initializer)return{source:e.parent.initializer,target:e.parent.name};if(yC(e.parent)){const t=n.getSymbolAtLocation(e.parent.expression);if(!(null==t?void 0:t.valueDeclaration)||!ud(t.valueDeclaration.kind))return;if(!qd(e))return;const r=e.parent.arguments.indexOf(e);if(-1===r)return;const o=t.valueDeclaration.parameters[r].name;if(dD(o))return{source:e,target:o}}else if(sM(e.parent)&&dD(e.parent.name)||lM(e.parent)){const r=V7(e.parent.parent,n);if(!r)return;const o=n.getPropertyOfType(n.getTypeAtLocation(r.target),e.parent.name.text),i=null==(t=null==o?void 0:o.declarations)?void 0:t[0];if(!i)return;return{source:sM(e.parent)?e.parent.initializer:e.parent.name,target:i}}}}X5({errorCodes:[fa.Type_0_is_not_assignable_to_type_1_with_exactOptionalPropertyTypes_Colon_true_Consider_adding_undefined_to_the_type_of_the_target.code,fa.Type_0_is_not_assignable_to_type_1_with_exactOptionalPropertyTypes_Colon_true_Consider_adding_undefined_to_the_types_of_the_target_s_properties.code,fa.Argument_of_type_0_is_not_assignable_to_parameter_of_type_1_with_exactOptionalPropertyTypes_Colon_true_Consider_adding_undefined_to_the_types_of_the_target_s_properties.code],getCodeActions(e){const n=e.program.getTypeChecker(),t=function(e,n,t){var r,o;const i=V7(QZ(e,n),t);if(!i)return s;const{source:a,target:l}=i,c=function(e,n,t){return _C(n)&&!!t.getExactOptionalProperties(t.getTypeAtLocation(n.expression)).length&&t.getTypeAtLocation(e)===t.getUndefinedType()}(a,l,t)?t.getTypeAtLocation(l.expression):t.getTypeAtLocation(l);if(null==(o=null==(r=c.symbol)?void 0:r.declarations)?void 0:o.some(e=>Sp(e).fileName.match(/\.d\.ts$/)))return s;return t.getExactOptionalProperties(c)}(e.sourceFile,e.span,n);if(!t.length)return;const r=tpe.ChangeTracker.with(e,e=>function(e,n){for(const t of n){const n=t.valueDeclaration;if(n&&(ND(n)||MD(n))&&n.type){const t=vR.createUnionTypeNode([...193===n.type.kind?n.type.types:[n.type],vR.createTypeReferenceNode("undefined")]);e.replaceNode(n.getSourceFile(),n.type,t)}}}(e,t));return[H5(G7,r,fa.Add_undefined_to_optional_property_type)]},fixIds:[G7]});var j7="annotateWithTypeFromJSDoc",U7=[fa.JSDoc_types_may_be_moved_to_TypeScript_types.code];function H7(e,n){const t=s$(e,n);return en(DD(t.parent)?t.parent.parent:t.parent,K7)}function K7(e){return function(e){return ld(e)||261===e.kind||172===e.kind||173===e.kind}(e)&&q7(e)}function q7(e){return ld(e)?e.parameters.some(q7)||!e.type&&!!ac(e):!e.type&&!!ic(e)}function J7(e,n,t){if(ld(t)&&(ac(t)||t.parameters.some(e=>!!ic(e)))){if(!t.typeParameters){const r=bv(t);r.length&&e.insertTypeParameters(n,t,r)}const r=AC(t)&&!qY(t,21,n);r&&e.insertNodeBefore(n,he(t.parameters),vR.createToken(21));for(const o of t.parameters)if(!o.type){const t=ic(o);t&&e.tryInsertTypeAnnotation(n,o,vB(t,X7,Ed))}if(r&&e.insertNodeAfter(n,ye(t.parameters),vR.createToken(22)),!t.type){const r=ac(t);r&&e.tryInsertTypeAnnotation(n,t,vB(r,X7,Ed))}}else{const r=dt.checkDefined(ic(t),"A JSDocType for this declaration should exist");dt.assert(!t.type,"The JSDocType decl should have a type"),e.tryInsertTypeAnnotation(n,t,vB(r,X7,Ed))}}function X7(e){switch(e.kind){case 313:case 314:return vR.createTypeReferenceNode("any",s);case 317:return function(e){return vR.createUnionTypeNode([vB(e.type,X7,Ed),vR.createTypeReferenceNode("undefined",s)])}(e);case 316:return X7(e.type);case 315:return function(e){return vR.createUnionTypeNode([vB(e.type,X7,Ed),vR.createTypeReferenceNode("null",s)])}(e);case 319:return function(e){return vR.createArrayTypeNode(vB(e.type,X7,Ed))}(e);case 318:return function(e){return vR.createFunctionTypeNode(s,e.parameters.map(Y7),e.type??vR.createKeywordTypeNode(133))}(e);case 184:return function(e){let n=e.typeName,t=e.typeArguments;if(dD(e.typeName)){if(Fh(e))return function(e){const n=vR.createParameterDeclaration(void 0,void 0,150===e.typeArguments[0].kind?"n":"s",void 0,vR.createTypeReferenceNode(150===e.typeArguments[0].kind?"number":"string",[]),void 0),t=vR.createTypeLiteralNode([vR.createIndexSignature(void 0,[n],e.typeArguments[1])]);return xR(t,1),t}(e);let r=e.typeName.text;switch(e.typeName.text){case"String":case"Boolean":case"Object":case"Number":r=r.toLowerCase();break;case"array":case"date":case"promise":r=r[0].toUpperCase()+r.slice(1)}n=vR.createIdentifier(r),t="Array"!==r&&"Promise"!==r||e.typeArguments?bB(e.typeArguments,X7,Ed):vR.createNodeArray([vR.createTypeReferenceNode("any",s)])}return vR.createTypeReferenceNode(n,t)}(e);case 323:return function(e){const n=vR.createTypeLiteralNode(D(e.jsDocPropertyTags,e=>vR.createPropertySignature(void 0,dD(e.name)?e.name:e.name.right,YA(e)?vR.createToken(58):void 0,e.typeExpression&&vB(e.typeExpression.type,X7,Ed)||vR.createKeywordTypeNode(133))));return xR(n,1),n}(e);default:const n=CB(e,X7,void 0);return xR(n,1),n}}function Y7(e){const n=e.parent.parameters.indexOf(e),t=319===e.type.kind&&n===e.parent.parameters.length-1,r=e.name||(t?"rest":"arg"+n),o=t?vR.createToken(26):e.dotDotDotToken;return vR.createParameterDeclaration(e.modifiers,o,r,e.questionToken,vB(e.type,X7,Ed),e.initializer)}X5({errorCodes:U7,getCodeActions(e){const n=H7(e.sourceFile,e.span.start);if(!n)return;const t=tpe.ChangeTracker.with(e,t=>J7(t,e.sourceFile,n));return[K5(j7,t,fa.Annotate_with_type_from_JSDoc,j7,fa.Annotate_everything_with_types_from_JSDoc)]},fixIds:[j7],getAllCodeActions:e=>n7(e,U7,(e,n)=>{const t=H7(n.file,n.start);t&&J7(e,n.file,t)})});var $7="convertFunctionToEs6Class",Q7=[fa.This_constructor_function_may_be_converted_to_a_class_declaration.code];function Z7(e,n,t,r,o,i){const a=r.getSymbolAtLocation(s$(n,t));if(!(a&&a.valueDeclaration&&19&a.flags))return;const s=a.valueDeclaration;if(hN(s)||EC(s))e.replaceNode(n,s,function(e){const n=l(a);e.body&&n.unshift(vR.createConstructorDeclaration(void 0,e.parameters,e.body));const t=e9(e,95);return vR.createClassDeclaration(t,e.name,void 0,void 0,n)}(s));else if(fN(s)){const t=function(e){const n=e.initializer;if(!n||!EC(n)||!dD(e.name))return;const t=l(e.symbol);n.body&&t.unshift(vR.createConstructorDeclaration(void 0,n.parameters,n.body));const r=e9(e.parent.parent,95);return vR.createClassDeclaration(r,e.name,void 0,void 0,t)}(s);if(!t)return;const r=s.parent.parent;mN(s.parent)&&s.parent.declarations.length>1?(e.delete(n,s),e.insertNodeAfter(n,r,t)):e.replaceNode(n,r,t)}function l(t){const r=[];return t.exports&&t.exports.forEach(e=>{if("prototype"===e.name&&e.declarations){const n=e.declarations[0];if(1===e.declarations.length&&_C(n)&&MC(n.parent)&&64===n.parent.operatorToken.kind&&hC(n.parent.right)){a(n.parent.right.symbol,void 0,r)}}else a(e,[vR.createToken(126)],r)}),t.members&&t.members.forEach((o,i)=>{var s,l,c,d;if("constructor"===i&&o.valueDeclaration){const r=null==(d=null==(c=null==(l=null==(s=t.exports)?void 0:s.get("prototype"))?void 0:l.declarations)?void 0:c[0])?void 0:d.parent;return void(r&&MC(r)&&hC(r.right)&&U(r.right.properties,n9)||e.delete(n,o.valueDeclaration.parent))}a(o,void 0,r)}),r;function a(t,r,a){if(!(8192&t.flags||4096&t.flags))return;const s=t.valueDeclaration,l=s.parent,c=l.right;if(p=c,!(IT(u=s)?_C(u)&&n9(u)||ad(p):g(u.properties,e=>!!(LD(e)||_c(e)||sM(e)&&EC(e.initializer)&&e.name||n9(e)))))return;var u,p;if(U(a,e=>{const n=Dl(e);return!(!n||!dD(n)||vl(n)!==Tl(t))}))return;const f=l.parent&&245===l.parent.kind?l.parent:l;if(e.delete(n,f),c){if(IT(s)&&(EC(c)||AC(c))){const e=hQ(n,o),t=function(e,n,t){if(_C(e))return e.name;const r=e.argumentExpression;if(HI(r))return r;if(zu(r))return ys(r.text,SS(n))?vR.createIdentifier(r.text):YI(r)?vR.createStringLiteral(r.text,0===t):r;return}(s,i,e);return void(t&&m(a,c,t))}if(!hC(c)){if(Ph(n))return;if(!_C(s))return;const e=vR.createPropertyDeclaration(r,s.name,void 0,void 0,c);return hZ(l.parent,e,n),void a.push(e)}d(c.properties,e=>{(LD(e)||_c(e))&&a.push(e),sM(e)&&EC(e.initializer)&&m(a,e.initializer,e.name),n9(e)})}else a.push(vR.createPropertyDeclaration(r,t.name,void 0,void 0,void 0));function m(e,t,o){return EC(t)?function(e,t,o){const i=K(r,e9(t,134)),a=vR.createMethodDeclaration(i,void 0,o,void 0,void 0,t.parameters,void 0,t.body);return hZ(l,a,n),void e.push(a)}(e,t,o):function(e,t,o){const i=t.body;let a;a=242===i.kind?i:vR.createBlock([vR.createReturnStatement(i)]);const s=K(r,e9(t,134)),c=vR.createMethodDeclaration(s,void 0,o,void 0,void 0,t.parameters,void 0,a);hZ(l,c,n),e.push(c)}(e,t,o)}}}}function e9(e,n){return CL(e)?x(e.modifiers,e=>e.kind===n):void 0}function n9(e){return!!e.name&&!(!dD(e.name)||"constructor"!==e.name.text)}X5({errorCodes:Q7,getCodeActions(e){const n=tpe.ChangeTracker.with(e,n=>Z7(n,e.sourceFile,e.span.start,e.program.getTypeChecker(),e.preferences,e.program.getCompilerOptions()));return[K5($7,n,fa.Convert_function_to_an_ES2015_class,$7,fa.Convert_all_constructor_functions_to_classes)]},fixIds:[$7],getAllCodeActions:e=>n7(e,Q7,(n,t)=>Z7(n,t.file,t.start,e.program.getTypeChecker(),e.preferences,e.program.getCompilerOptions()))});var t9="convertToAsyncFunction",r9=[fa.This_may_be_converted_to_an_async_function.code],o9=!0;function i9(e,n,t,r){const o=s$(n,t);let i;if(i=dD(o)&&fN(o.parent)&&o.parent.initializer&&ld(o.parent.initializer)?o.parent.initializer:en($m(s$(n,t)),J1),!i)return;const a=new Map,l=Lh(i),c=function(e,n){if(!e.body)return new Set;const t=new Set;return rk(e.body,function e(r){a9(r,n,"then")?(t.add(cB(r)),d(r.arguments,e)):a9(r,n,"catch")||a9(r,n,"finally")?(t.add(cB(r)),rk(r,e)):c9(r,n)?t.add(cB(r)):rk(r,e)}),t}(i,r),u=function(e,n,t){const r=new Map,o=He();return rk(e,function e(i){if(!dD(i))return void rk(i,e);const a=n.getSymbolAtLocation(i);if(a){const e=S9(n.getTypeAtLocation(i),n),s=dB(a).toString();if(!e||DD(i.parent)||ld(i.parent)||t.has(s)){if(i.parent&&(DD(i.parent)||fN(i.parent)||fC(i.parent))){const e=i.text,n=o.get(e);if(n&&n.some(e=>e!==a)){const n=d9(i,o);r.set(s,n.identifier),t.set(s,n),o.add(e,a)}else{const n=Vx(i);t.set(s,R9(n)),o.add(e,a)}}}else{const n=fe(e.parameters),r=(null==n?void 0:n.valueDeclaration)&&DD(n.valueDeclaration)&&en(n.valueDeclaration.name,dD)||vR.createUniqueName("result",16),i=d9(r,o);t.set(s,i),o.add(r.text,a)}}}),jx(e,!0,e=>{if(fC(e)&&dD(e.name)&&uC(e.parent)){const t=n.getSymbolAtLocation(e.name),o=t&&r.get(String(dB(t)));if(o&&o.text!==(e.name||e.propertyName).getText())return vR.createBindingElement(e.dotDotDotToken,e.propertyName||e.name,o,e.initializer)}else if(dD(e)){const t=n.getSymbolAtLocation(e),o=t&&r.get(String(dB(t)));if(o)return vR.createIdentifier(o.text)}})}(i,r,a);if(!G1(u,r))return;const p=u.body&&JC(u.body)?function(e,n){const t=[];return Mm(e,e=>{V1(e,n)&&t.push(e)}),t}(u.body,r):s,f={checker:r,synthNamesMap:a,setOfExpressionsToReturn:c,isInJSFile:l};if(!p.length)return;const m=es(n.text,Bb(i).pos);e.insertModifierAt(n,m,134,{suffix:" "});for(const s of p)if(rk(s,function t(r){if(yC(r)){const t=f9(r,r,f,!1);if(u9())return!0;e.replaceNodeWithNodes(n,s,t)}else if(!ad(r)&&(rk(r,t),u9()))return!0}),u9())return}function a9(e,n,t){if(!yC(e))return!1;const r=yY(e,t)&&n.getTypeAtLocation(e);return!(!r||!n.getPromisedTypeOfPromise(r))}function s9(e,n){return!!(4&bT(e))&&e.target===n}function l9(e,n,t){if("finally"===e.expression.name.escapedText)return;const r=t.getTypeAtLocation(e.expression.expression);if(s9(r,t.getPromiseType())||s9(r,t.getPromiseLikeType())){if("then"!==e.expression.name.escapedText)return pe(e.typeArguments,0);if(n===pe(e.arguments,0))return pe(e.typeArguments,0);if(n===pe(e.arguments,1))return pe(e.typeArguments,1)}}function c9(e,n){return!!qd(e)&&!!n.getPromisedTypeOfPromise(n.getTypeAtLocation(e))}function d9(e,n){const t=(n.get(e.text)||s).length;return R9(0===t?e:vR.createIdentifier(e.text+"_"+t))}function u9(){return!o9}function p9(){return o9=!1,s}function f9(e,n,t,r,o){if(a9(n,t.checker,"then"))return function(e,n,t,r,o,i){if(!n||m9(r,n))return g9(e,t,r,o,i);if(t&&!m9(r,t))return p9();const a=A9(n,r),s=f9(e.expression.expression,e.expression.expression,r,!0,a);if(u9())return p9();const l=b9(n,o,i,a,e,r);return u9()?p9():K(s,l)}(n,pe(n.arguments,0),pe(n.arguments,1),t,r,o);if(a9(n,t.checker,"catch"))return g9(n,pe(n.arguments,0),t,r,o);if(a9(n,t.checker,"finally"))return function(e,n,t,r,o){if(!n||m9(t,n))return f9(e,e.expression.expression,t,r,o);const i=h9(e,t,o),a=f9(e,e.expression.expression,t,!0,i);if(u9())return p9();const s=b9(n,r,void 0,void 0,e,t);if(u9())return p9();const l=vR.createBlock(a),c=vR.createBlock(s),d=vR.createTryStatement(l,void 0,c);return _9(e,t,d,i,o)}(n,pe(n.arguments,0),t,r,o);if(_C(n))return f9(e,n.expression,t,r,o);const i=t.checker.getTypeAtLocation(n);return i&&t.checker.getPromisedTypeOfPromise(i)?(dt.assertNode(fl(n).parent,_C),function(e,n,t,r,o){if(P9(e,t)){let e=Vx(n);return r&&(e=vR.createAwaitExpression(e)),[vR.createReturnStatement(e)]}return y9(o,vR.createAwaitExpression(n),void 0)}(e,n,t,r,o)):p9()}function m9({checker:e},n){if(106===n.kind)return!0;if(dD(n)&&!Jc(n)&&"undefined"===vl(n)){const t=e.getSymbolAtLocation(n);return!t||e.isUndefinedSymbol(t)}return!1}function h9(e,n,t){let r;return t&&!P9(e,n)&&(M9(t)?(r=t,n.synthNamesMap.forEach((e,r)=>{if(e.identifier.text===t.identifier.text){const e=(o=t,R9(vR.createUniqueName(o.identifier.text,16)));n.synthNamesMap.set(r,e)}var o})):r=R9(vR.createUniqueName("result",16),t.types),N9(r)),r}function _9(e,n,t,r,o){const i=[];let a;if(r&&!P9(e,n)){a=Vx(N9(r));const e=r.types,t=n.checker.getUnionType(e,2),o=n.isInJSFile?void 0:n.checker.typeToTypeNode(t,void 0,void 0),s=[vR.createVariableDeclaration(a,void 0,o)],l=vR.createVariableStatement(void 0,vR.createVariableDeclarationList(s,1));i.push(l)}return i.push(t),o&&a&&1===o.kind&&i.push(vR.createVariableStatement(void 0,vR.createVariableDeclarationList([vR.createVariableDeclaration(Vx(C9(o)),void 0,void 0,a)],2))),i}function g9(e,n,t,r,o){if(!n||m9(t,n))return f9(e,e.expression.expression,t,r,o);const i=A9(n,t),a=h9(e,t,o),s=f9(e,e.expression.expression,t,!0,a);if(u9())return p9();const l=b9(n,r,a,i,e,t);if(u9())return p9();const c=vR.createBlock(s),d=vR.createCatchClause(i&&Vx(D9(i)),vR.createBlock(l));return _9(e,t,vR.createTryStatement(c,d,void 0),a,o)}function y9(e,n,t){return!e||x9(e)?[vR.createExpressionStatement(n)]:M9(e)&&e.hasBeenDeclared?[vR.createExpressionStatement(vR.createAssignment(Vx(I9(e)),n))]:[vR.createVariableStatement(void 0,vR.createVariableDeclarationList([vR.createVariableDeclaration(Vx(D9(e)),void 0,t,n)],2))]}function v9(e,n){if(n&&e){const t=vR.createUniqueName("result",16);return[...y9(R9(t),e,n),vR.createReturnStatement(t)]}return[vR.createReturnStatement(e)]}function b9(e,n,t,r,o,i){var a;switch(e.kind){case 106:break;case 212:case 80:if(!r)break;const l=vR.createCallExpression(Vx(e),void 0,M9(r)?[I9(r)]:[]);if(P9(o,i))return v9(l,l9(o,e,i.checker));const c=i.checker.getTypeAtLocation(e),d=i.checker.getSignaturesOfType(c,0);if(!d.length)return p9();const u=d[0].getReturnType(),p=y9(t,vR.createAwaitExpression(l),l9(o,e,i.checker));return t&&t.types.push(i.checker.getAwaitedType(u)||u),p;case 219:case 220:{const r=e.body,l=null==(a=S9(i.checker.getTypeAtLocation(e),i.checker))?void 0:a.getReturnType();if(JC(r)){let a=[],s=!1;for(const c of r.statements)if(aN(c))if(s=!0,V1(c,i.checker))a=a.concat(E9(i,c,n,t));else{const n=l&&c.expression?T9(i.checker,l,c.expression):c.expression;a.push(...v9(n,l9(o,e,i.checker)))}else{if(n&&Mm(c,on))return p9();a.push(c)}return P9(o,i)?a.map(e=>Vx(e)):function(e,n,t,r){const o=[];for(const i of e)if(aN(i)){if(i.expression){const e=c9(i.expression,t.checker)?vR.createAwaitExpression(i.expression):i.expression;void 0===n?o.push(vR.createExpressionStatement(e)):M9(n)&&n.hasBeenDeclared?o.push(vR.createExpressionStatement(vR.createAssignment(I9(n),e))):o.push(vR.createVariableStatement(void 0,vR.createVariableDeclarationList([vR.createVariableDeclaration(D9(n),void 0,void 0,e)],2)))}}else o.push(Vx(i));r||void 0===n||o.push(vR.createVariableStatement(void 0,vR.createVariableDeclarationList([vR.createVariableDeclaration(D9(n),void 0,void 0,vR.createIdentifier("undefined"))],2)));return o}(a,t,i,s)}{const a=j1(r,i.checker)?E9(i,vR.createReturnStatement(r),n,t):s;if(a.length>0)return a;if(l){const n=T9(i.checker,l,r);if(P9(o,i))return v9(n,l9(o,e,i.checker));{const e=y9(t,n,void 0);return t&&t.types.push(i.checker.getAwaitedType(l)||l),e}}return p9()}}default:return p9()}return s}function T9(e,n,t){const r=Vx(t);return e.getPromisedTypeOfPromise(n)?vR.createAwaitExpression(r):r}function S9(e,n){return ge(n.getSignaturesOfType(e,0))}function E9(e,n,t,r){let o=[];return rk(n,function n(i){if(yC(i)){const n=f9(i,i,e,t,r);if(o=o.concat(n),o.length>0)return}else ad(i)||rk(i,n)}),o}function A9(e,n){const t=[];let r;if(ld(e)){if(e.parameters.length>0){r=function e(n){if(dD(n))return o(n);const t=P(n.elements,n=>FC(n)?[]:[e(n.name)]);return function(e,n=s,t=[]){return{kind:1,bindingPattern:e,elements:n,types:t}}(n,t)}(e.parameters[0].name)}}else dD(e)?r=o(e):_C(e)&&dD(e.name)&&(r=o(e.name));if(r&&(!("identifier"in r)||"undefined"!==r.identifier.text))return r;function o(e){var r;const o=function(e){var t;return(null==(t=en(e,cu))?void 0:t.symbol)??n.checker.getSymbolAtLocation(e)}((r=e).original?r.original:r);if(!o)return R9(e,t);return n.synthNamesMap.get(dB(o).toString())||R9(e,t)}}function x9(e){return!e||(M9(e)?!e.identifier.text:g(e.elements,x9))}function R9(e,n=[]){return{kind:0,identifier:e,types:n,hasBeenDeclared:!1,hasBeenReferenced:!1}}function I9(e){return e.hasBeenReferenced=!0,e.identifier}function D9(e){return M9(e)?N9(e):C9(e)}function C9(e){for(const n of e.elements)D9(n);return e.bindingPattern}function N9(e){return e.hasBeenDeclared=!0,e.identifier}function M9(e){return 0===e.kind}function P9(e,n){return!!e.original&&n.setOfExpressionsToReturn.has(cB(e.original))}function L9(e,n,t,r,o){var i;for(const a of e.imports){const s=null==(i=t.getResolvedModuleFromModuleSpecifier(a,e))?void 0:i.resolvedModule;if(!s||s.resolvedFileName!==n.fileName)continue;const l=S_(a);switch(l.kind){case 272:r.replaceNode(e,l,uQ(l.name,void 0,a,o));break;case 214:Wh(l,!1)&&r.replaceNode(e,l,vR.createPropertyAccessExpression(Vx(l),"default"))}}}function k9(e,n){e.forEachChild(function t(r){if(_C(r)&&lz(e,r.expression)&&dD(r.name)){const{parent:e}=r;n(r,MC(e)&&e.left===r&&64===e.operatorToken.kind)}r.forEachChild(t)})}function w9(e,n,t,r,o,i,a,s,c){switch(n.kind){case 244:return O9(e,n,r,t,o,i,c),!1;case 245:{const{expression:o}=n;switch(o.kind){case 214:return Wh(o,!0)&&r.replaceNode(e,n,uQ(void 0,void 0,o.arguments[0],c)),!1;case 227:{const{operatorToken:n}=o;return 64===n.kind&&function(e,n,t,r,o,i){const{left:a,right:s}=t;if(!_C(a))return!1;if(lz(e,a)){if(!lz(e,s)){const o=hC(s)?function(e,n){const t=O(e.properties,e=>{switch(e.kind){case 178:case 179:case 305:case 306:return;case 304:return dD(e.name)?function(e,n,t){const r=[vR.createToken(95)];switch(n.kind){case 219:{const{name:t}=n;if(t&&t.text!==e)return o()}case 220:return j9(e,r,n,t);case 232:return function(e,n,t,r){return vR.createClassDeclaration(K(n,Hx(t.modifiers)),e,Hx(t.typeParameters),Hx(t.heritageClauses),z9(t.members,r))}(e,r,n,t);default:return o()}function o(){return K9(r,vR.createIdentifier(e),z9(n,t))}}(e.name.text,e.initializer,n):void 0;case 175:return dD(e.name)?j9(e.name.text,[vR.createToken(95)],e,n):void 0;default:dt.assertNever(e,`Convert to ES6 got invalid prop kind ${e.kind}`)}});return t&&[t,!1]}(s,i):Wh(s,!0)?function(e,n){const t=e.text,r=n.getSymbolAtLocation(e),o=r?r.exports:l;return o.has("export=")?[[W9(t)],!0]:o.has("default")?o.size>1?[[F9(t),W9(t)],!0]:[[W9(t)],!0]:[[F9(t)],!1]}(s.arguments[0],n):void 0;return o?(r.replaceNodeWithNodes(e,t.parent,o[0]),o[1]):(r.replaceRangeWithText(e,Ob(a.getStart(e),s.pos),"export default"),!0)}r.delete(e,t.parent)}else lz(e,a.expression)&&function(e,n,t,r){const{text:o}=n.left.name,i=r.get(o);if(void 0!==i){const r=[K9(void 0,i,n.right),q9([vR.createExportSpecifier(!1,i,o)])];t.replaceNodeWithNodes(e,n.parent,r)}else!function({left:e,right:n,parent:t},r,o){const i=e.name.text;if(!(EC(n)||AC(n)||OC(n))||n.name&&n.name.text!==i)o.replaceNodeRangeWithNodes(r,e.expression,qY(e,25,r),[vR.createToken(95),vR.createToken(87)],{joiner:" ",suffix:" "});else{o.replaceRange(r,{pos:e.getStart(r),end:n.getStart(r)},vR.createToken(95),{suffix:" "}),n.name||o.insertName(r,n,i);const a=qY(t,27,r);a&&o.delete(r,a)}}(n,e,t)}(e,t,r,o);return!1}(e,t,o,r,a,s)}}}default:return!1}}function O9(e,n,t,r,o,i,a){const{declarationList:s}=n;let l=!1;const c=D(s.declarations,n=>{const{name:t,initializer:c}=n;if(c){if(lz(e,c))return l=!0,J9([]);if(Wh(c,!0))return l=!0,function(e,n,t,r,o,i){switch(e.kind){case 207:{const t=O(e.elements,e=>e.dotDotDotToken||e.initializer||e.propertyName&&!dD(e.propertyName)||!dD(e.name)?void 0:H9(e.propertyName&&e.propertyName.text,e.name.text));if(t)return J9([uQ(void 0,t,n,i)])}case 208:{const t=B9(o0(n.text,o),r);return J9([uQ(vR.createIdentifier(t),void 0,n,i),K9(void 0,Vx(e),vR.createIdentifier(t))])}case 80:return function(e,n,t,r,o){const i=t.getSymbolAtLocation(e),a=new Map;let s,l=!1;for(const d of r.original.get(e.text)){if(t.getSymbolAtLocation(d)!==i||d===e)continue;const{parent:n}=d;if(_C(n)){const{name:{text:e}}=n;if("default"===e){l=!0;const e=d.getText();(s??(s=new Map)).set(n,vR.createIdentifier(e))}else{dt.assert(n.expression===d,"Didn't expect expression === use");let t=a.get(e);void 0===t&&(t=B9(e,r),a.set(e,t)),(s??(s=new Map)).set(n,vR.createIdentifier(t))}}else l=!0}const c=0===a.size?void 0:Le(C(a.entries(),([e,n])=>vR.createImportSpecifier(!1,e===n?void 0:vR.createIdentifier(e),vR.createIdentifier(n))));c||(l=!0);return J9([uQ(l?Vx(e):void 0,c,n,o)],s)}(e,n,t,r,i);default:return dt.assertNever(e,`Convert to ES module got invalid name kind ${e.kind}`)}}(t,c.arguments[0],r,o,i,a);if(_C(c)&&Wh(c.expression,!0))return l=!0,function(e,n,t,r,o){switch(e.kind){case 207:case 208:{const i=B9(n,r);return J9([U9(i,n,t,o),K9(void 0,e,vR.createIdentifier(i))])}case 80:return J9([U9(e.text,n,t,o)]);default:return dt.assertNever(e,`Convert to ES module got invalid syntax form ${e.kind}`)}}(t,c.name.text,c.expression.arguments[0],o,a)}return J9([vR.createVariableStatement(void 0,vR.createVariableDeclarationList([n],s.flags))])});if(l){let r;return t.replaceNodeWithNodes(e,n,P(c,e=>e.newImports)),d(c,e=>{e.useSitesToUnqualify&&lp(e.useSitesToUnqualify,r??(r=new Map))}),r}}function F9(e){return q9(void 0,e)}function W9(e){return q9([vR.createExportSpecifier(!1,void 0,"default")],e)}function z9(e,n){return n&&U(Le(n.keys()),n=>eT(e,n))?Ye(e)?Kx(e,!0,t):jx(e,!0,t):e;function t(e){if(212===e.kind){const t=n.get(e);return n.delete(e),t}}}function B9(e,n){for(;n.original.has(e)||n.additional.has(e);)e=`_${e}`;return n.additional.add(e),e}function G9(e){const n=He();return V9(e,e=>n.add(e.text,e)),n}function V9(e,n){dD(e)&&function(e){const{parent:n}=e;switch(n.kind){case 212:return n.name!==e;case 209:case 277:return n.propertyName!==e;default:return!0}}(e)&&n(e),e.forEachChild(e=>V9(e,n))}function j9(e,n,t,r){return vR.createFunctionDeclaration(K(n,Hx(t.modifiers)),Vx(t.asteriskToken),e,Hx(t.typeParameters),Hx(t.parameters),Vx(t.type),vR.converters.convertToFunctionBlock(z9(t.body,r)))}function U9(e,n,t,r){return"default"===n?uQ(vR.createIdentifier(e),void 0,t,r):uQ(void 0,[H9(n,e)],t,r)}function H9(e,n){return vR.createImportSpecifier(!1,void 0!==e&&e!==n?vR.createIdentifier(e):void 0,vR.createIdentifier(n))}function K9(e,n,t){return vR.createVariableStatement(e,vR.createVariableDeclarationList([vR.createVariableDeclaration(n,void 0,void 0,t)],2))}function q9(e,n){return vR.createExportDeclaration(void 0,!1,e&&vR.createNamedExports(e),void 0===n?void 0:vR.createStringLiteral(n))}function J9(e,n){return{newImports:e,useSitesToUnqualify:n}}X5({errorCodes:r9,getCodeActions(e){o9=!0;const n=tpe.ChangeTracker.with(e,n=>i9(n,e.sourceFile,e.span.start,e.program.getTypeChecker()));return o9?[K5(t9,n,fa.Convert_to_async_function,t9,fa.Convert_all_to_async_functions)]:[]},fixIds:[t9],getAllCodeActions:e=>n7(e,r9,(n,t)=>i9(n,t.file,t.start,e.program.getTypeChecker()))}),X5({errorCodes:[fa.File_is_a_CommonJS_module_it_may_be_converted_to_an_ES_module.code],getCodeActions(e){const{sourceFile:n,program:t,preferences:r}=e;return[H5("convertToEsModule",tpe.ChangeTracker.with(e,e=>{const o=function(e,n,t,r,o){const i={original:G9(e),additional:new Set},a=function(e,n,t){const r=new Map;return k9(e,e=>{const{text:o}=e.name;r.has(o)||!kg(e.name)&&!n.resolveName(o,e,111551,!0)||r.set(o,B9(`_${o}`,t))}),r}(e,n,i);!function(e,n,t){k9(e,(r,o)=>{if(o)return;const{text:i}=r.name;t.replaceNode(e,r,vR.createIdentifier(n.get(i)||i))})}(e,a,t);let s,l=!1;for(const c of x(e.statements,XC)){const a=O9(e,c,t,n,i,r,o);a&&lp(a,s??(s=new Map))}for(const c of x(e.statements,e=>!XC(e))){const d=w9(e,c,n,t,i,r,a,s,o);l=l||d}return null==s||s.forEach((n,r)=>{t.replaceNode(e,r,n)}),l}(n,t.getTypeChecker(),e,SS(t.getCompilerOptions()),hQ(n,r));if(o)for(const i of t.getSourceFiles())L9(i,n,t,e,hQ(i,r))}),fa.Convert_to_ES_module)]}});var X9="correctQualifiedNameToIndexedAccessType",Y9=[fa.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 $9(e,n){const t=ml(s$(e,n),xD);return dt.assert(!!t,"Expected position to be owned by a qualified name."),dD(t.left)?t:void 0}function Q9(e,n,t){const r=t.right.text,o=vR.createIndexedAccessTypeNode(vR.createTypeReferenceNode(t.left,void 0),vR.createLiteralTypeNode(vR.createStringLiteral(r)));e.replaceNode(n,t,o)}X5({errorCodes:Y9,getCodeActions(e){const n=$9(e.sourceFile,e.span.start);if(!n)return;const t=tpe.ChangeTracker.with(e,t=>Q9(t,e.sourceFile,n)),r=`${n.left.text}["${n.right.text}"]`;return[K5(X9,t,[fa.Rewrite_as_the_indexed_access_type_0,r],X9,fa.Rewrite_all_as_indexed_access_types)]},fixIds:[X9],getAllCodeActions:e=>n7(e,Y9,(e,n)=>{const t=$9(n.file,n.start);t&&Q9(e,n.file,t)})});var Z9=[fa.Re_exporting_a_type_when_0_is_enabled_requires_using_export_type.code],eee="convertToTypeOnlyExport";function nee(e,n){return en(s$(n,e.start).parent,zN)}function tee(e,n,t){if(!n)return;const r=n.parent,o=r.parent,i=function(e,n){const t=e.parent;if(1===t.elements.length)return t.elements;const r=YZ(j$(t),n.program.getSemanticDiagnostics(n.sourceFile,n.cancellationToken));return x(t.elements,n=>{var t;return n===e||(null==(t=XZ(n,r))?void 0:t.code)===Z9[0]})}(n,t);if(i.length===r.elements.length)e.insertModifierBefore(t.sourceFile,156,r);else{const n=vR.updateExportDeclaration(o,o.modifiers,!1,vR.updateNamedExports(r,x(r.elements,e=>!S(i,e))),o.moduleSpecifier,void 0),a=vR.createExportDeclaration(void 0,!0,vR.createNamedExports(i),o.moduleSpecifier,void 0);e.replaceNode(t.sourceFile,o,n,{leadingTriviaOption:tpe.LeadingTriviaOption.IncludeAll,trailingTriviaOption:tpe.TrailingTriviaOption.Exclude}),e.insertNodeAfter(t.sourceFile,o,a)}}X5({errorCodes:Z9,getCodeActions:function(e){const n=tpe.ChangeTracker.with(e,n=>tee(n,nee(e.span,e.sourceFile),e));if(n.length)return[K5(eee,n,fa.Convert_to_type_only_export,eee,fa.Convert_all_re_exported_types_to_type_only_exports)]},fixIds:[eee],getAllCodeActions:function(e){const n=new Set;return n7(e,Z9,(t,r)=>{const o=nee(r,e.sourceFile);o&&AT(n,cB(o.parent.parent))&&tee(t,o,e)})}});var ree=[fa._0_is_a_type_and_must_be_imported_using_a_type_only_import_when_verbatimModuleSyntax_is_enabled.code,fa._0_resolves_to_a_type_only_declaration_and_must_be_imported_using_a_type_only_import_when_verbatimModuleSyntax_is_enabled.code],oee="convertToTypeOnlyImport";function iee(e,n){const{parent:t}=s$(e,n);return wN(t)||xN(t)&&t.importClause?t:void 0}function aee(e,n,t){if(e.parent.parent.name)return!1;const r=e.parent.elements.filter(e=>!e.isTypeOnly);if(1===r.length)return!0;const o=t.getTypeChecker();for(const i of r){if(kle.Core.eachSymbolReferenceInFile(i.name,o,n,e=>{const n=o.getSymbolAtLocation(e);return!!n&&o.symbolIsValue(n)||!AA(e)}))return!1}return!0}function see(e,n,t){var r;if(wN(t))e.replaceNode(n,t,vR.updateImportSpecifier(t,!0,t.propertyName,t.name));else{const o=t.importClause;if(o.name&&o.namedBindings)e.replaceNodeWithNodes(n,t,[vR.createImportDeclaration(Hx(t.modifiers,!0),vR.createImportClause(156,Vx(o.name,!0),void 0),Vx(t.moduleSpecifier,!0),Vx(t.attributes,!0)),vR.createImportDeclaration(Hx(t.modifiers,!0),vR.createImportClause(156,void 0,Vx(o.namedBindings,!0)),Vx(t.moduleSpecifier,!0),Vx(t.attributes,!0))]);else{const i=276===(null==(r=o.namedBindings)?void 0:r.kind)?vR.updateNamedImports(o.namedBindings,N(o.namedBindings.elements,e=>vR.updateImportSpecifier(e,!1,e.propertyName,e.name))):o.namedBindings,a=vR.updateImportDeclaration(t,t.modifiers,vR.updateImportClause(o,156,o.name,i),t.moduleSpecifier,t.attributes);e.replaceNode(n,t,a)}}}X5({errorCodes:ree,getCodeActions:function(e){var n;const t=iee(e.sourceFile,e.span.start);if(t){const r=tpe.ChangeTracker.with(e,n=>see(n,e.sourceFile,t)),o=277===t.kind&&xN(t.parent.parent.parent)&&aee(t,e.sourceFile,e.program)?tpe.ChangeTracker.with(e,n=>see(n,e.sourceFile,t.parent.parent.parent)):void 0,i=K5(oee,r,277===t.kind?[fa.Use_type_0,(null==(n=t.propertyName)?void 0:n.text)??t.name.text]:fa.Use_import_type,oee,fa.Fix_all_with_type_only_imports);return U(o)?[H5(oee,o,fa.Use_import_type),i]:[i]}},fixIds:[oee],getAllCodeActions:function(e){const n=new Set;return n7(e,ree,(t,r)=>{const o=iee(r.file,r.start);273!==(null==o?void 0:o.kind)||n.has(o)?277===(null==o?void 0:o.kind)&&xN(o.parent.parent.parent)&&!n.has(o.parent.parent.parent)&&aee(o,r.file,e.program)?(see(t,r.file,o.parent.parent.parent),n.add(o.parent.parent.parent)):277===(null==o?void 0:o.kind)&&see(t,r.file,o):(see(t,r.file,o),n.add(o))})}});var lee="convertTypedefToType",cee=[fa.JSDoc_typedef_may_be_converted_to_TypeScript_type.code];function dee(e,n,t,r,o=!1){if(!JM(n))return;const i=function(e){var n;const{typeExpression:t}=e;if(!t)return;const r=null==(n=e.name)?void 0:n.getText();if(!r)return;if(323===t.kind)return function(e,n){const t=pee(n);if(!U(t))return;return vR.createInterfaceDeclaration(void 0,e,void 0,void 0,t)}(r,t);if(310===t.kind)return function(e,n){const t=Vx(n.type);if(!t)return;return vR.createTypeAliasDeclaration(void 0,vR.createIdentifier(e),void 0,t)}(r,t)}(n);if(!i)return;const a=n.parent,{leftSibling:s,rightSibling:l}=function(e){const n=e.parent,t=n.getChildCount()-1,r=n.getChildren().findIndex(n=>n.getStart()===e.getStart()&&n.getEnd()===e.getEnd()),o=r>0?n.getChildAt(r-1):void 0,i=r<t?n.getChildAt(r+1):void 0;return{leftSibling:o,rightSibling:i}}(n);let c=a.getStart(),d="";!s&&a.comment&&(c=uee(a,a.getStart(),n.getStart()),d=`${r} */${r}`),s&&(o&&JM(s)?(c=n.getStart(),d=""):(c=uee(a,s.getStart(),n.getStart()),d=`${r} */${r}`));let u=a.getEnd(),p="";l&&(o&&JM(l)?(u=l.getStart(),p=`${r}${r}`):(u=l.getStart(),p=`${r}/**${r} * `)),e.replaceRange(t,{pos:c,end:u},i,{prefix:d,suffix:p})}function uee(e,n,t){const r=e.getText().substring(n-e.getStart(),t-e.getStart());for(let o=r.length;o>0;o--)if(!/[*/\s]/.test(r.substring(o-1,o)))return n+o;return t}function pee(e){const n=e.jsDocPropertyTags;if(!U(n))return;return F(n,e=>{var n;const t=function(e){return 80===e.name.kind?e.name.text:e.name.right.text}(e),r=null==(n=e.typeExpression)?void 0:n.type,o=e.isBracketed;let i;if(r&&DM(r)){const e=pee(r);i=vR.createTypeLiteralNode(e)}else r&&(i=Vx(r));if(i&&t){const e=o?vR.createToken(58):void 0;return vR.createPropertySignature(void 0,t,e,i)}})}function fee(e){return Mu(e)?P(e.jsDoc,e=>{var n;return null==(n=e.tags)?void 0:n.filter(e=>JM(e))}):[]}X5({fixIds:[lee],errorCodes:cee,getCodeActions(e){const n=ZQ(e.host,e.formatContext.options),t=s$(e.sourceFile,e.span.start);if(!t)return;const r=tpe.ChangeTracker.with(e,r=>dee(r,t,e.sourceFile,n));return r.length>0?[K5(lee,r,fa.Convert_typedef_to_TypeScript_type,lee,fa.Convert_all_typedef_to_TypeScript_types)]:void 0},getAllCodeActions:e=>n7(e,cee,(n,t)=>{const r=ZQ(e.host,e.formatContext.options),o=s$(t.file,t.start);o&&dee(n,o,t.file,r,!0)})});var mee="convertLiteralTypeToMappedType",hee=[fa._0_only_refers_to_a_type_but_is_being_used_as_a_value_here_Did_you_mean_to_use_1_in_0.code];function _ee(e,n){const t=s$(e,n);if(dD(t)){const n=nn(t.parent.parent,ND),r=t.getText(e);return{container:nn(n.parent,KD),typeNode:n.type,constraint:r,name:"K"===r?"P":"K"}}}function gee(e,n,{container:t,typeNode:r,constraint:o,name:i}){e.replaceNode(n,t,vR.createMappedTypeNode(void 0,vR.createTypeParameterDeclaration(void 0,i,vR.createTypeReferenceNode(o)),void 0,void 0,r,void 0))}X5({errorCodes:hee,getCodeActions:function(e){const{sourceFile:n,span:t}=e,r=_ee(n,t.start);if(!r)return;const{name:o,constraint:i}=r,a=tpe.ChangeTracker.with(e,e=>gee(e,n,r));return[K5(mee,a,[fa.Convert_0_to_1_in_0,i,o],mee,fa.Convert_all_type_literals_to_mapped_type)]},fixIds:[mee],getAllCodeActions:e=>n7(e,hee,(e,n)=>{const t=_ee(n.file,n.start);t&&gee(e,n.file,t)})});var yee=[fa.Class_0_incorrectly_implements_interface_1.code,fa.Class_0_incorrectly_implements_class_1_Did_you_mean_to_extend_1_and_inherit_its_members_as_a_subclass.code],vee="fixClassIncorrectlyImplementsInterface";function bee(e,n){return dt.checkDefined(Zm(s$(e,n)),"There should be a containing class")}function Tee(e){return!(e.valueDeclaration&&2&jv(e.valueDeclaration))}function See(e,n,t,r,o,i){const a=e.program.getTypeChecker(),s=function(e,n){const t=Tg(e);if(!t)return Qu();const r=n.getTypeAtLocation(t),o=n.getPropertiesOfType(r);return Qu(o.filter(Tee))}(r,a),l=a.getTypeAtLocation(n),c=a.getPropertiesOfType(l).filter(Zn(Tee,e=>!s.has(e.escapedName))),d=a.getTypeAtLocation(r),u=y(r.members,e=>wD(e));d.getNumberIndexType()||f(l,1),d.getStringIndexType()||f(l,0);const p=Ree(t,e.program,i,e.host);function f(n,o){const i=a.getIndexInfoOfType(n,o);i&&m(t,r,a.indexInfoToIndexSignatureDeclaration(i,r,void 0,void 0,Yoe(e)))}function m(e,n,t){u?o.insertNodeAfter(e,u,t):o.insertMemberAtStart(e,n,t)}Xoe(r,c,t,e,i,p,e=>m(t,r,e)),p.writeFixes(o)}X5({errorCodes:yee,getCodeActions(e){const{sourceFile:n,span:t}=e,r=bee(n,t.start);return F(Eg(r),t=>{const o=tpe.ChangeTracker.with(e,o=>See(e,t,n,r,o,e.preferences));return 0===o.length?void 0:K5(vee,o,[fa.Implement_interface_0,t.getText(n)],vee,fa.Implement_all_unimplemented_interfaces)})},fixIds:[vee],getAllCodeActions(e){const n=new Set;return n7(e,yee,(t,r)=>{const o=bee(r.file,r.start);if(AT(n,cB(o)))for(const n of Eg(o))See(e,n,r.file,o,t,e.preferences)})}});var Eee="import",Aee="fixMissingImport",xee=[fa.Cannot_find_name_0.code,fa.Cannot_find_name_0_Did_you_mean_1.code,fa.Cannot_find_name_0_Did_you_mean_the_instance_member_this_0.code,fa.Cannot_find_name_0_Did_you_mean_the_static_member_1_0.code,fa.Cannot_find_namespace_0.code,fa._0_refers_to_a_UMD_global_but_the_current_file_is_a_module_Consider_adding_an_import_instead.code,fa._0_only_refers_to_a_type_but_is_being_used_as_a_value_here.code,fa.No_value_exists_in_scope_for_the_shorthand_property_0_Either_declare_one_or_provide_an_initializer.code,fa._0_cannot_be_used_as_a_value_because_it_was_imported_using_import_type.code,fa.Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_jQuery_Try_npm_i_save_dev_types_Slashjquery.code,fa.Cannot_find_name_0_Do_you_need_to_change_your_target_library_Try_changing_the_lib_compiler_option_to_1_or_later.code,fa.Cannot_find_name_0_Do_you_need_to_change_your_target_library_Try_changing_the_lib_compiler_option_to_include_dom.code,fa.Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_a_test_runner_Try_npm_i_save_dev_types_Slashjest_or_npm_i_save_dev_types_Slashmocha_and_then_add_jest_or_mocha_to_the_types_field_in_your_tsconfig.code,fa.Cannot_find_name_0_Did_you_mean_to_write_this_in_an_async_function.code,fa.Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_jQuery_Try_npm_i_save_dev_types_Slashjquery_and_then_add_jquery_to_the_types_field_in_your_tsconfig.code,fa.Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_a_test_runner_Try_npm_i_save_dev_types_Slashjest_or_npm_i_save_dev_types_Slashmocha.code,fa.Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_node_Try_npm_i_save_dev_types_Slashnode.code,fa.Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_node_Try_npm_i_save_dev_types_Slashnode_and_then_add_node_to_the_types_field_in_your_tsconfig.code,fa.Cannot_find_namespace_0_Did_you_mean_1.code,fa.Cannot_extend_an_interface_0_Did_you_mean_implements.code,fa.This_JSX_tag_requires_0_to_be_in_scope_but_it_could_not_be_found.code];function Ree(e,n,t,r,o){return Iee(e,n,!1,t,r,o)}function Iee(e,n,t,r,o,i){const a=n.getCompilerOptions(),s=[],l=[],c=new Map,d=new Set,u=new Set,p=new Map;return{addImportFromDiagnostic:function(e,n){const r=Bee(n,e.code,e.start,t);if(!r||!r.length)return;f(he(r))},addImportFromExportedSymbol:function(t,s,l){var c,d;const u=dt.checkDefined(t.parent,"Expected exported symbol to have module symbol as parent"),p=n0(t,SS(a)),m=n.getTypeChecker(),h=m.getMergedSymbol(cT(t,m)),_=Lee(e,h,p,u,!1,n,o,r,i);if(!_)return void dt.assert(null==(c=r.autoImportFileExcludePatterns)?void 0:c.length);const g=Wee(e,n);let y=Mee(e,_,n,void 0,!!s,g,o,r);if(y){const e=(null==(d=en(null==l?void 0:l.name,dD))?void 0:d.text)??p;let n,r;l&&Vc(l)&&(3===y.kind||2===y.kind)&&1===y.addAsTypeOnly&&(n=2),t.name!==e&&(r=t.name),y={...y,...void 0===n?{}:{addAsTypeOnly:n},...void 0===r?{}:{propertyName:r}},f({fix:y,symbolName:e??p})}},addImportForModuleSymbol:function(t,i,s){var l,c,d;const u=n.getTypeChecker(),p=u.getAliasedSymbol(t);dt.assert(1536&p.flags,"Expected symbol to be a module");const m=lQ(n,o),h=pz.getModuleSpecifiersWithCacheInfo(p,u,a,e,m,r,void 0,!0),_=Wee(e,n);let g=Oee(i,!0,void 0,t.flags,n.getTypeChecker(),a);g=1===g&&Vc(s)?2:1;const y=xN(s)?I_(s)?1:2:wN(s)?0:RN(s)&&s.name?1:2,v=[{symbol:t,moduleSymbol:p,moduleFileName:null==(d=null==(c=null==(l=p.declarations)?void 0:l[0])?void 0:c.getSourceFile())?void 0:d.fileName,exportKind:4,targetFlags:t.flags,isFromPackageJson:!1}],b=Mee(e,v,n,void 0,!!i,_,o,r);let T;T=b&&2!==y&&0!==b.kind&&1!==b.kind?{...b,addAsTypeOnly:g,importKind:y}:{kind:3,moduleSpecifierKind:void 0!==b?b.moduleSpecifierKind:h.kind,moduleSpecifier:void 0!==b?b.moduleSpecifier:he(h.moduleSpecifiers),importKind:y,addAsTypeOnly:g,useRequire:_};f({fix:T,symbolName:t.name})},writeFixes:function(n,t){var o,i;let u,f,h;u=void 0!==e.imports&&0===e.imports.length&&void 0!==t?t:hQ(e,r);for(const r of s)Qee(n,e,r);for(const r of l)Zee(n,e,r,u);if(d.size){dt.assert(Mh(e),"Cannot remove imports from a future source file");const t=new Set(F([...d],e=>ml(e,xN))),r=new Set(F([...d],e=>ml(e,zh))),a=[...t].filter(e=>{var n,t,r;return!c.has(e.importClause)&&(!(null==(n=e.importClause)?void 0:n.name)||d.has(e.importClause))&&(!en(null==(t=e.importClause)?void 0:t.namedBindings,PN)||d.has(e.importClause.namedBindings))&&(!en(null==(r=e.importClause)?void 0:r.namedBindings,kN)||g(e.importClause.namedBindings.elements,e=>d.has(e)))}),s=[...r].filter(e=>(207!==e.name.kind||!c.has(e.name))&&(207!==e.name.kind||g(e.name.elements,e=>d.has(e)))),l=[...t].filter(e=>{var n,t;return(null==(n=e.importClause)?void 0:n.namedBindings)&&-1===a.indexOf(e)&&!(null==(t=c.get(e.importClause))?void 0:t.namedImports)&&(275===e.importClause.namedBindings.kind||g(e.importClause.namedBindings.elements,e=>d.has(e)))});for(const o of[...a,...s])n.delete(e,o);for(const o of l)n.replaceNode(e,o.importClause,vR.updateImportClause(o.importClause,o.importClause.phaseModifier,o.importClause.name,void 0));for(const u of d){const t=ml(u,xN);t&&-1===a.indexOf(t)&&-1===l.indexOf(t)?274===u.kind?n.delete(e,u.name):(dt.assert(277===u.kind,"NamespaceImport should have been handled earlier"),(null==(o=c.get(t.importClause))?void 0:o.namedImports)?(f??(f=new Set)).add(u):n.delete(e,u)):209===u.kind?(null==(i=c.get(u.parent))?void 0:i.namedImports)?(f??(f=new Set)).add(u):n.delete(e,u):272===u.kind&&n.delete(e,u)}}c.forEach(({importClauseOrBindingPattern:t,defaultImport:o,namedImports:i})=>{$ee(n,e,t,o,Le(i.entries(),([e,{addAsTypeOnly:n,propertyName:t}])=>({addAsTypeOnly:n,propertyName:t,name:e})),f,r)}),p.forEach(({useRequire:e,defaultImport:n,namedImports:t,namespaceLikeImport:o},i)=>{const s=(e?one:rne)(i.slice(2),u,n,t&&Le(t.entries(),([e,[n,t]])=>({addAsTypeOnly:n,propertyName:t,name:e})),o,a,r);h=oe(h,s)}),h=oe(h,m()),h&&xQ(n,e,h,!0,r)},hasFixes:function(){return s.length>0||l.length>0||c.size>0||p.size>0||u.size>0||d.size>0},addImportForUnresolvedIdentifier:function(e,n,t){const r=function(e,n,t){const r=Kee(e,n,t),o=HZ(e.sourceFile,e.preferences,e.host);return r&&Gee(r,e.sourceFile,e.program,o,e.host,e.preferences)}(e,n,t);if(!r||!r.length)return;f(he(r))},addImportForNonExistentExport:function(t,i,s,l,c){const d=n.getSourceFile(i),u=Wee(e,n);if(d&&d.symbol){const{fixes:a}=wee([{exportKind:s,isFromPackageJson:!1,moduleFileName:i,moduleSymbol:d.symbol,targetFlags:l}],void 0,c,u,n,e,o,r);a.length&&f({fix:a[0],symbolName:t})}else{const d=g0(i,99,n,o);f({fix:{kind:3,moduleSpecifierKind:"relative",moduleSpecifier:pz.getLocalModuleSpecifierBetweenFileNames(e,i,a,lQ(n,o),r),importKind:Hee(d,s,n),addAsTypeOnly:Oee(c,!0,void 0,l,n.getTypeChecker(),a),useRequire:u},symbolName:t})}},removeExistingImport:function(e){274===e.kind&&dt.assertIsDefined(e.name,"ImportClause should have a name if it's being removed");d.add(e)},addVerbatimImport:function(e){u.add(e)}};function f(e){var n,t,r;const{fix:o,symbolName:i}=e;switch(o.kind){case 0:s.push(o);break;case 1:l.push(o);break;case 2:{const{importClauseOrBindingPattern:e,importKind:r,addAsTypeOnly:a,propertyName:s}=o;let l=c.get(e);if(l||c.set(e,l={importClauseOrBindingPattern:e,defaultImport:void 0,namedImports:new Map}),0===r){const e=null==(n=null==l?void 0:l.namedImports.get(i))?void 0:n.addAsTypeOnly;l.namedImports.set(i,{addAsTypeOnly:d(e,a),propertyName:s})}else dt.assert(void 0===l.defaultImport||l.defaultImport.name===i,"(Add to Existing) Default import should be missing or match symbolName"),l.defaultImport={name:i,addAsTypeOnly:d(null==(t=l.defaultImport)?void 0:t.addAsTypeOnly,a)};break}case 3:{const{moduleSpecifier:e,importKind:n,useRequire:t,addAsTypeOnly:s,propertyName:l}=o,c=function(e,n,t,r){const o=u(e,!0),i=u(e,!1),a=p.get(o),s=p.get(i),l={defaultImport:void 0,namedImports:void 0,namespaceLikeImport:void 0,useRequire:t};if(1===n&&2===r)return a||(p.set(o,l),l);if(1===r&&(a||s))return a||s;if(s)return s;return p.set(i,l),l}(e,n,t,s);switch(dt.assert(c.useRequire===t,"(Add new) Tried to add an `import` and a `require` for the same module"),n){case 1:dt.assert(void 0===c.defaultImport||c.defaultImport.name===i,"(Add new) Default import should be missing or match symbolName"),c.defaultImport={name:i,addAsTypeOnly:d(null==(r=c.defaultImport)?void 0:r.addAsTypeOnly,s)};break;case 0:const e=(c.namedImports||(c.namedImports=new Map)).get(i);c.namedImports.set(i,[d(e,s),l]);break;case 3:if(a.verbatimModuleSyntax){const e=(c.namedImports||(c.namedImports=new Map)).get(i);c.namedImports.set(i,[d(e,s),l])}else dt.assert(void 0===c.namespaceLikeImport||c.namespaceLikeImport.name===i,"Namespacelike import shoudl be missing or match symbolName"),c.namespaceLikeImport={importKind:n,name:i,addAsTypeOnly:s};break;case 2:dt.assert(void 0===c.namespaceLikeImport||c.namespaceLikeImport.name===i,"Namespacelike import shoudl be missing or match symbolName"),c.namespaceLikeImport={importKind:n,name:i,addAsTypeOnly:s}}break}case 4:break;default:dt.assertNever(o,`fix wasn't never - got kind ${o.kind}`)}function d(e,n){return Math.max(e??0,n)}function u(e,n){return`${n?1:0}|${e}`}}function m(){if(!u.size)return;const e=new Set(F([...u],e=>ml(e,xN))),n=new Set(F([...u],e=>ml(e,jh)));return[...F([...u],e=>272===e.kind?Vx(e,!0):void 0),...[...e].map(e=>{var n;return u.has(e)?Vx(e,!0):Vx(vR.updateImportDeclaration(e,e.modifiers,e.importClause&&vR.updateImportClause(e.importClause,e.importClause.phaseModifier,u.has(e.importClause)?e.importClause.name:void 0,u.has(e.importClause.namedBindings)?e.importClause.namedBindings:(null==(n=en(e.importClause.namedBindings,kN))?void 0:n.elements.some(e=>u.has(e)))?vR.updateNamedImports(e.importClause.namedBindings,e.importClause.namedBindings.elements.filter(e=>u.has(e))):void 0),e.moduleSpecifier,e.attributes),!0)}),...[...n].map(e=>u.has(e)?Vx(e,!0):Vx(vR.updateVariableStatement(e,e.modifiers,vR.updateVariableDeclarationList(e.declarationList,F(e.declarationList.declarations,e=>u.has(e)?e:vR.updateVariableDeclaration(e,207===e.name.kind?vR.updateObjectBindingPattern(e.name,e.name.elements.filter(e=>u.has(e))):e.name,e.exclamationToken,e.type,e.initializer)))),!0))]}}function Dee(e,n,t,r){const o=HZ(e,r,t),i=Fee(e,n);return{getModuleSpecifierForBestExportInfo:function(a,s,l,c){const{fixes:d,computedWithoutCacheCount:u}=wee(a,s,l,!1,n,e,t,r,i,c),p=Vee(d,e,n,o,t,r);return p&&{...p,computedWithoutCacheCount:u}}}}function Cee(e,n,t,r,o,i,a,s,l,c,d,u){let p;t?(p=D0(r,a,s,d,u).get(r.path,t),dt.assertIsDefined(p,"Some exportInfo should match the specified exportMapKey")):(p=Ei(Py(n.name))?[kee(e,o,n,s,a)]:Lee(r,e,o,n,i,s,a,d,u),dt.assertIsDefined(p,"Some exportInfo should match the specified symbol / moduleSymbol"));const f=Wee(r,s),m=AA(s$(r,c)),h=dt.checkDefined(Mee(r,p,s,c,m,f,a,d));return{moduleSpecifier:h.moduleSpecifier,codeAction:Pee(Xee({host:a,formatContext:l,preferences:d},r,o,h,!1,s,d))}}function Nee(e,n,t,r,o,i){const a=t.getCompilerOptions(),s=be(Jee(e,t.getTypeChecker(),n,a)),l=qee(e,n,s,t),c=s!==n.text;return l&&Pee(Xee({host:r,formatContext:o,preferences:i},e,s,l,c,t,i))}function Mee(e,n,t,r,o,i,a,s){const l=HZ(e,s,a);return Vee(wee(n,r,o,i,t,e,a,s).fixes,e,t,l,a,s)}function Pee({description:e,changes:n,commands:t}){return{description:e,changes:n,commands:t}}function Lee(e,n,t,r,o,i,a,s,l){const c=zee(i,a),d=s.autoImportFileExcludePatterns&&I0(a,s),u=i.getTypeChecker().getMergedSymbol(r),p=d&&u.declarations&&Yu(u,308),f=p&&d(p);return D0(e,a,i,s,l).search(e.path,o,e=>e===t,e=>{const t=c(e[0].isFromPackageJson);if(t.getMergedSymbol(cT(e[0].symbol,t))===n&&(f||e.some(e=>t.getMergedSymbol(e.moduleSymbol)===r||e.symbol.parent===r)))return e})}function kee(e,n,t,r,o){var i,a;const s=c(r.getTypeChecker(),!1);if(s)return s;const l=null==(a=null==(i=o.getPackageJsonAutoImportProvider)?void 0:i.call(o))?void 0:a.getTypeChecker();return dt.checkDefined(l&&c(l,!0),"Could not find symbol in specified module for code actions");function c(r,o){const i=C0(t,r);if(i&&cT(i.symbol,r)===e)return{symbol:i.symbol,moduleSymbol:t,moduleFileName:void 0,exportKind:i.exportKind,targetFlags:cT(e,r).flags,isFromPackageJson:o};const a=r.tryGetMemberInModuleExportsAndProperties(n,t);return a&&cT(a,r)===e?{symbol:a,moduleSymbol:t,moduleFileName:void 0,exportKind:0,targetFlags:cT(e,r).flags,isFromPackageJson:o}:void 0}}function wee(e,n,t,r,o,i,a,l,c=(Mh(i)?Fee(i,o):void 0),d){const u=o.getTypeChecker(),f=c?P(e,c.getImportsForExportInfo):s,m=void 0!==n&&function(e,n){return p(e,({declaration:e,importKind:t})=>{var r;if(0!==t)return;const o=function(e){var n,t,r;switch(e.kind){case 261:return null==(n=en(e.name,dD))?void 0:n.text;case 272:return e.name.text;case 352:case 273:return null==(r=en(null==(t=e.importClause)?void 0:t.namedBindings,PN))?void 0:r.name.text;default:return dt.assertNever(e)}}(e),i=o&&(null==(r=T_(e))?void 0:r.text);return i?{kind:0,namespacePrefix:o,usagePosition:n,moduleSpecifierKind:void 0,moduleSpecifier:i}:void 0})}(f,n),h=function(e,n,t,r){let o;for(const a of e){const e=i(a);if(!e)continue;const n=Vc(e.importClauseOrBindingPattern);if(4!==e.addAsTypeOnly&&n||4===e.addAsTypeOnly&&!n)return e;o??(o=e)}return o;function i({declaration:e,importKind:o,symbol:i,targetFlags:a}){if(3===o||2===o||272===e.kind)return;if(261===e.kind)return 0!==o&&1!==o||207!==e.name.kind?void 0:{kind:2,importClauseOrBindingPattern:e.name,importKind:o,moduleSpecifierKind:void 0,moduleSpecifier:e.initializer.arguments[0].text,addAsTypeOnly:4};const{importClause:s}=e;if(!s||!zu(e.moduleSpecifier))return;const{name:l,namedBindings:c}=s;if(s.isTypeOnly&&(0!==o||!c))return;const d=Oee(n,!1,i,a,t,r);return 1===o&&(l||2===d&&c)||0===o&&275===(null==c?void 0:c.kind)?void 0:{kind:2,importClauseOrBindingPattern:s,importKind:o,moduleSpecifierKind:void 0,moduleSpecifier:e.moduleSpecifier.text,addAsTypeOnly:d}}}(f,t,u,o.getCompilerOptions());if(h)return{computedWithoutCacheCount:0,fixes:[...m?[m]:s,h]};const{fixes:_,computedWithoutCacheCount:g=0}=function(e,n,t,r,o,i,a,s,l,c){const d=p(n,e=>function({declaration:e,importKind:n,symbol:t,targetFlags:r},o,i,a,s){var l;const c=null==(l=T_(e))?void 0:l.text;if(c){return{kind:3,moduleSpecifierKind:void 0,moduleSpecifier:c,importKind:n,addAsTypeOnly:i?4:Oee(o,!0,t,r,a,s),useRequire:i}}}(e,i,a,t.getTypeChecker(),t.getCompilerOptions()));return d?{fixes:[d]}:function(e,n,t,r,o,i,a,s,l){const c=WE(n.fileName),d=e.getCompilerOptions(),u=lQ(e,a),p=zee(e,a),f=dQ(AS(d)),m=l?e=>pz.tryGetModuleSpecifiersFromCache(e.moduleSymbol,n,u,s):(e,t)=>pz.getModuleSpecifiersWithCacheInfo(e.moduleSymbol,t,d,n,u,s,void 0,!0);let h=0;const _=P(i,(i,a)=>{const s=p(i.isFromPackageJson),{computedWithoutCache:l,moduleSpecifiers:u,kind:_}=m(i,s)??{},g=!!(111551&i.targetFlags),y=Oee(r,!0,i.symbol,i.targetFlags,s,d);return h+=l?1:0,F(u,r=>{if(f&&iW(r))return;if(!g&&c&&void 0!==t)return{kind:1,moduleSpecifierKind:_,moduleSpecifier:r,usagePosition:t,exportInfo:i,isReExport:a>0};const l=Hee(n,i.exportKind,e);let u;if(void 0!==t&&3===l&&0===i.exportKind){const e=s.resolveExternalModuleSymbol(i.moduleSymbol);let n;e!==i.moduleSymbol&&(n=M0(e,s,SS(d),sn)),n||(n=r0(i.moduleSymbol,SS(d),!1)),u={namespacePrefix:n,usagePosition:t}}return{kind:3,moduleSpecifierKind:_,moduleSpecifier:r,importKind:l,useRequire:o,addAsTypeOnly:y,exportInfo:i,isReExport:a>0,qualification:u}})});return{computedWithoutCacheCount:h,fixes:_}}(t,r,o,i,a,e,s,l,c)}(e,f,o,i,n,t,r,a,l,d);return{computedWithoutCacheCount:g,fixes:[...m?[m]:s,..._]}}function Oee(e,n,t,r,o,i){return e?!t||!i.verbatimModuleSyntax||111551&r&&!o.getTypeOnlyAliasDeclaration(t)?1:2:4}function Fee(e,n){const t=n.getTypeChecker();let r;for(const o of e.imports){const e=S_(o);if(zh(e.parent)){const n=t.resolveExternalModuleName(o);n&&(r||(r=He())).add(dB(n),e.parent)}else if(273===e.kind||272===e.kind||352===e.kind){const n=t.getSymbolAtLocation(o);n&&(r||(r=He())).add(dB(n),e)}}return{getImportsForExportInfo:({moduleSymbol:t,exportKind:o,targetFlags:i,symbol:a})=>{const l=null==r?void 0:r.get(dB(t));if(!l)return s;if(Ph(e)&&!(111551&i)&&!g(l,eP))return s;const c=Hee(e,o,n);return l.map(e=>({declaration:e,importKind:c,symbol:a,targetFlags:i}))}}}function Wee(e,n){if(!WE(e.fileName))return!1;if(e.commonJsModuleIndicator&&!e.externalModuleIndicator)return!0;if(e.externalModuleIndicator&&!e.commonJsModuleIndicator)return!1;const t=n.getCompilerOptions();if(t.configFile)return ES(t)<5;if(1===sne(e,n))return!0;if(99===sne(e,n))return!1;for(const r of n.getSourceFiles())if(r!==e&&Ph(r)&&!n.isSourceFileFromExternalLibrary(r)){if(r.commonJsModuleIndicator&&!r.externalModuleIndicator)return!0;if(r.externalModuleIndicator&&!r.commonJsModuleIndicator)return!1}return!0}function zee(e,n){return fn(t=>t?n.getPackageJsonAutoImportProvider().getTypeChecker():e.getTypeChecker())}function Bee(e,n,t,r){const o=s$(e.sourceFile,t);let i;if(n===fa._0_refers_to_a_UMD_global_but_the_current_file_is_a_module_Consider_adding_an_import_instead.code)i=function({sourceFile:e,program:n,host:t,preferences:r},o){const i=n.getTypeChecker(),a=function(e,n){const t=dD(e)?n.getSymbolAtLocation(e):void 0;if(TT(t))return t;const{parent:r}=e;if(Eu(r)&&r.tagName===e||YN(r)){const t=n.resolveName(n.getJsxNamespace(r),Eu(r)?e:r,111551,!1);if(TT(t))return t}return}(o,i);if(!a)return;const s=i.getAliasedSymbol(a),l=a.name,c=[{symbol:a,moduleSymbol:s,moduleFileName:void 0,exportKind:3,targetFlags:s.flags,isFromPackageJson:!1}],d=Wee(e,n);return wee(c,void 0,!1,d,n,e,t,r).fixes.map(e=>{var n;return{fix:e,symbolName:l,errorIdentifierText:null==(n=en(o,dD))?void 0:n.text}})}(e,o);else{if(!dD(o))return;if(n===fa._0_cannot_be_used_as_a_value_because_it_was_imported_using_import_type.code){const n=be(Jee(e.sourceFile,e.program.getTypeChecker(),o,e.program.getCompilerOptions())),t=qee(e.sourceFile,o,n,e.program);return t&&[{fix:t,symbolName:n,errorIdentifierText:o.text}]}i=Kee(e,o,r)}const a=HZ(e.sourceFile,e.preferences,e.host);return i&&Gee(i,e.sourceFile,e.program,a,e.host,e.preferences)}function Gee(e,n,t,r,o,i){const a=e=>Ki(e,o.getCurrentDirectory(),By(o));return ce(e,(e,o)=>kn(!!e.isJsxNamespaceFix,!!o.isJsxNamespaceFix)||vn(e.fix.kind,o.fix.kind)||jee(e.fix,o.fix,n,t,i,r.allowsImportingSpecifier,a))}function Vee(e,n,t,r,o,i){if(U(e))return 0===e[0].kind||2===e[0].kind?e[0]:e.reduce((e,a)=>-1===jee(a,e,n,t,i,r.allowsImportingSpecifier,e=>Ki(e,o.getCurrentDirectory(),By(o)))?a:e)}function jee(e,n,t,r,o,i,a){return 0!==e.kind&&0!==n.kind?kn("node_modules"!==n.moduleSpecifierKind||i(n.moduleSpecifier),"node_modules"!==e.moduleSpecifierKind||i(e.moduleSpecifier))||function(e,n,t){if("non-relative"===t.importModuleSpecifierPreference||"project-relative"===t.importModuleSpecifierPreference)return kn("relative"===e.moduleSpecifierKind,"relative"===n.moduleSpecifierKind);return 0}(e,n,o)||function(e,n,t,r){return Xn(e,"node:")&&!Xn(n,"node:")?l0(t,r)?-1:1:Xn(n,"node:")&&!Xn(e,"node:")?l0(t,r)?1:-1:0}(e.moduleSpecifier,n.moduleSpecifier,t,r)||kn(Uee(e,t.path,a),Uee(n,t.path,a))||HE(e.moduleSpecifier,n.moduleSpecifier):0}function Uee(e,n,t){var r;if(e.isReExport&&(null==(r=e.exportInfo)?void 0:r.moduleFileName)&&"index"===Pi(e.exportInfo.moduleFileName,[".js",".jsx",".d.ts",".ts",".tsx"],!0)){return Xn(n,t(Mi(e.exportInfo.moduleFileName)))}return!1}function Hee(e,n,t,r){if(t.getCompilerOptions().verbatimModuleSyntax&&1===function(e,n){return Mh(e)?n.getEmitModuleFormatOfFile(e):KU(e,n.getCompilerOptions())}(e,t))return 3;switch(n){case 0:return 0;case 1:return 1;case 2:return function(e,n,t){const r=DS(n),o=WE(e.fileName);if(!o&&ES(n)>=5)return r?1:2;if(o)return e.externalModuleIndicator||t?r?1:2:3;for(const i of e.statements??s)if(AN(i)&&!Np(i.moduleReference))return 3;return r?1:3}(e,t.getCompilerOptions(),!!r);case 3:return function(e,n,t){if(DS(n.getCompilerOptions()))return 1;const r=ES(n.getCompilerOptions());switch(r){case 2:case 1:case 3:return WE(e.fileName)&&(e.externalModuleIndicator||t)?2:3;case 4:case 5:case 6:case 7:case 99:case 0:case 200:return 2;case 100:case 101:case 102:case 199:return 99===sne(e,n)?2:3;default:return dt.assertNever(r,`Unexpected moduleKind ${r}`)}}(e,t,!!r);case 4:return 2;default:return dt.assertNever(n)}}function Kee({sourceFile:e,program:n,cancellationToken:t,host:r,preferences:o},i,a){const s=n.getTypeChecker(),l=n.getCompilerOptions();return P(Jee(e,s,i,l),s=>{if("default"===s)return;const l=AA(i),c=Wee(e,n),d=function(e,n,t,r,o,i,a,s,l){var c;const d=He(),u=HZ(o,l,s),p=null==(c=s.getModuleSpecifierCache)?void 0:c.call(s),f=fn(e=>lQ(e?s.getPackageJsonAutoImportProvider():i,s));function m(e,n,t,r,i,a){const s=f(a);if(T0(i,o,n,e,l,u,s,p)){const o=i.getTypeChecker();d.add(cZ(t,o).toString(),{symbol:t,moduleSymbol:e,moduleFileName:null==n?void 0:n.fileName,exportKind:r,targetFlags:cT(t,o).flags,isFromPackageJson:a})}}return E0(i,s,l,a,(o,i,a,s)=>{const l=a.getTypeChecker();r.throwIfCancellationRequested();const c=a.getCompilerOptions(),d=C0(o,l);d&&ane(l.getSymbolFlags(d.symbol),t)&&M0(d.symbol,l,SS(c),(t,r)=>(n?r??t:t)===e)&&m(o,i,d.symbol,d.exportKind,a,s);const u=l.tryGetMemberInModuleExportsAndProperties(e,o);u&&ane(l.getSymbolFlags(u),t)&&m(o,i,u,0,a,s)}),d}(s,Sh(i),oY(i),t,e,n,a,r,o);return Le(k(d.values(),t=>wee(t,i.getStart(e),l,c,n,e,r,o).fixes),e=>({fix:e,symbolName:s,errorIdentifierText:i.text,isJsxNamespaceFix:s!==i.text}))})}function qee(e,n,t,r){const o=r.getTypeChecker(),i=o.resolveName(t,n,111551,!0);if(!i)return;const a=o.getTypeOnlyAliasDeclaration(i);return a&&Sp(a)===e?{kind:4,typeOnlyAliasDeclaration:a}:void 0}function Jee(e,n,t,r){const o=t.parent;if((Eu(o)||JN(o))&&o.tagName===t&&p0(r.jsx)){const r=n.getJsxNamespace(e);if(function(e,n,t){if(Ly(n.text))return!0;const r=t.resolveName(e,n,111551,!0);return!r||U(r.declarations,Uc)&&!(111551&r.flags)}(r,t,n)){return!Ly(t.text)&&!n.resolveName(t.text,t,111551,!1)?[t.text,r]:[r]}}return[t.text]}function Xee(e,n,t,r,o,i,a){let l;const c=tpe.ChangeTracker.with(e,e=>{l=function(e,n,t,r,o,i,a){const l=hQ(n,a);switch(r.kind){case 0:return Qee(e,n,r),[fa.Change_0_to_1,t,`${r.namespacePrefix}.${t}`];case 1:return Zee(e,n,r,l),[fa.Change_0_to_1,t,ene(r.moduleSpecifier,l)+t];case 2:{const{importClauseOrBindingPattern:i,importKind:l,addAsTypeOnly:c,moduleSpecifier:d}=r;$ee(e,n,i,1===l?{name:t,addAsTypeOnly:c}:void 0,0===l?[{name:t,addAsTypeOnly:c}]:s,void 0,a);const u=Py(d);return o?[fa.Import_0_from_1,t,u]:[fa.Update_import_from_0,u]}case 3:{const{importKind:s,moduleSpecifier:c,addAsTypeOnly:d,useRequire:u,qualification:p}=r;return xQ(e,n,(u?one:rne)(c,l,1===s?{name:t,addAsTypeOnly:d}:void 0,0===s?[{name:t,addAsTypeOnly:d}]:void 0,2===s||3===s?{importKind:s,name:(null==p?void 0:p.namespacePrefix)||t,addAsTypeOnly:d}:void 0,i.getCompilerOptions(),a),!0,a),p&&Qee(e,n,p),o?[fa.Import_0_from_1,t,c]:[fa.Add_import_from_0,c]}case 4:{const{typeOnlyAliasDeclaration:o}=r,s=function(e,n,t,r,o){const i=t.getCompilerOptions(),a=i.verbatimModuleSyntax;switch(n.kind){case 277:if(n.isTypeOnly){if(n.parent.elements.length>1){const t=vR.updateImportSpecifier(n,!1,n.propertyName,n.name),{specifierComparer:i}=_de.getNamedImportSpecifierComparerWithDetection(n.parent.parent.parent,o,r),a=_de.getImportSpecifierInsertionIndex(n.parent.elements,t,i);if(a!==n.parent.elements.indexOf(n))return e.delete(r,n),e.insertImportSpecifierAtIndex(r,t,n.parent,a),n}return e.deleteRange(r,{pos:Up(n.getFirstToken()),end:Up(n.propertyName??n.name)}),n}return dt.assert(n.parent.parent.isTypeOnly),s(n.parent.parent),n.parent.parent;case 274:return s(n),n;case 275:return s(n.parent),n.parent;case 272:return e.deleteRange(r,n.getChildAt(1)),n;default:dt.failBadSyntaxKind(n)}function s(s){var l;if(e.delete(r,RQ(s,r)),!i.allowImportingTsExtensions){const n=T_(s.parent),o=n&&(null==(l=t.getResolvedModuleFromModuleSpecifier(n,r))?void 0:l.resolvedModule);if(null==o?void 0:o.resolvedUsingTsExtension){const t=Yi(n.text,lj(n.text,i));e.replaceNode(r,n,vR.createStringLiteral(t))}}if(a){const t=en(s.namedBindings,kN);if(t&&t.elements.length>1){!1!==_de.getNamedImportSpecifierComparerWithDetection(s.parent,o,r).isSorted&&277===n.kind&&0!==t.elements.indexOf(n)&&(e.delete(r,n),e.insertImportSpecifierAtIndex(r,n,t,0));for(const o of t.elements)o===n||o.isTypeOnly||e.insertModifierBefore(r,156,o)}}}}(e,o,i,n,a);return 277===s.kind?[fa.Remove_type_from_import_of_0_from_1,t,Yee(s.parent.parent)]:[fa.Remove_type_from_import_declaration_from_0,Yee(s)]}default:return dt.assertNever(r,`Unexpected fix kind ${r.kind}`)}}(e,n,t,r,o,i,a)});return K5(Eee,c,l,Aee,fa.Add_all_missing_imports)}function Yee(e){var n,t;return 272===e.kind?(null==(t=en(null==(n=en(e.moduleReference,UN))?void 0:n.expression,zu))?void 0:t.text)||e.moduleReference.getText():nn(e.parent.moduleSpecifier,qI).text}function $ee(e,n,t,r,o,i,a){var l;if(207===t.kind){if(i&&t.elements.some(e=>i.has(e)))return void e.replaceNode(n,t,vR.createObjectBindingPattern([...t.elements.filter(e=>!i.has(e)),...r?[vR.createBindingElement(void 0,"default",r.name)]:s,...o.map(e=>vR.createBindingElement(void 0,e.propertyName,e.name))]));r&&u(t,r.name,"default");for(const e of o)u(t,e.name,e.propertyName);return}const c=t.isTypeOnly&&U([r,...o],e=>4===(null==e?void 0:e.addAsTypeOnly)),d=t.namedBindings&&(null==(l=en(t.namedBindings,kN))?void 0:l.elements);if(r&&(dt.assert(!t.name,"Cannot add a default import to an import clause that already has one"),e.insertNodeAt(n,t.getStart(n),vR.createIdentifier(r.name),{suffix:", "})),o.length){const{specifierComparer:r,isSorted:s}=_de.getNamedImportSpecifierComparerWithDetection(t.parent,a,n),l=ce(o.map(e=>vR.createImportSpecifier((!t.isTypeOnly||c)&&tne(e,a),void 0===e.propertyName?void 0:vR.createIdentifier(e.propertyName),vR.createIdentifier(e.name))),r);if(i)e.replaceNode(n,t.namedBindings,vR.updateNamedImports(t.namedBindings,ce([...d.filter(e=>!i.has(e)),...l],r)));else if((null==d?void 0:d.length)&&!1!==s){const o=c&&d?vR.updateNamedImports(t.namedBindings,N(d,e=>vR.updateImportSpecifier(e,!0,e.propertyName,e.name))).elements:d;for(const i of l){const a=_de.getImportSpecifierInsertionIndex(o,i,r);e.insertImportSpecifierAtIndex(n,i,t.namedBindings,a)}}else if(null==d?void 0:d.length)for(const t of l)e.insertNodeInListAfter(n,ye(d),t,d);else if(l.length){const r=vR.createNamedImports(l);t.namedBindings?e.replaceNode(n,t.namedBindings,r):e.insertNodeAfter(n,dt.checkDefined(t.name,"Import clause must have either named imports or a default import"),r)}}if(c&&(e.delete(n,RQ(t,n)),d))for(const s of d)e.insertModifierBefore(n,156,s);function u(t,r,o){const i=vR.createBindingElement(void 0,o,r);t.elements.length?e.insertNodeInListAfter(n,ye(t.elements),i):e.replaceNode(n,t,vR.createObjectBindingPattern([i]))}}function Qee(e,n,{namespacePrefix:t,usagePosition:r}){e.insertText(n,r,t+".")}function Zee(e,n,{moduleSpecifier:t,usagePosition:r},o){e.insertText(n,r,ene(t,o))}function ene(e,n){const t=_Q(n);return`import(${t}${e}${t}).`}function nne({addAsTypeOnly:e}){return 2===e}function tne(e,n){return nne(e)||!!n.preferTypeOnlyAutoImports&&4!==e.addAsTypeOnly}function rne(e,n,t,r,o,i,a){const s=pQ(e,n);let l;if(void 0!==t||(null==r?void 0:r.length)){const o=(!t||nne(t))&&g(r,nne)||(i.verbatimModuleSyntax||a.preferTypeOnlyAutoImports)&&4!==(null==t?void 0:t.addAsTypeOnly)&&!U(r,e=>4===e.addAsTypeOnly);l=oe(l,uQ(t&&vR.createIdentifier(t.name),null==r?void 0:r.map(e=>vR.createImportSpecifier(!o&&tne(e,a),void 0===e.propertyName?void 0:vR.createIdentifier(e.propertyName),vR.createIdentifier(e.name))),e,n,o))}if(o){l=oe(l,3===o.importKind?vR.createImportEqualsDeclaration(void 0,tne(o,a),vR.createIdentifier(o.name),vR.createExternalModuleReference(s)):vR.createImportDeclaration(void 0,vR.createImportClause(tne(o,a)?156:void 0,void 0,vR.createNamespaceImport(vR.createIdentifier(o.name))),s,void 0))}return dt.checkDefined(l)}function one(e,n,t,r,o){const i=pQ(e,n);let a;if(t||(null==r?void 0:r.length)){const e=(null==r?void 0:r.map(({name:e,propertyName:n})=>vR.createBindingElement(void 0,n,e)))||[];t&&e.unshift(vR.createBindingElement(void 0,"default",t.name));a=oe(a,ine(vR.createObjectBindingPattern(e),i))}if(o){a=oe(a,ine(o.name,i))}return dt.checkDefined(a)}function ine(e,n){return vR.createVariableStatement(void 0,vR.createVariableDeclarationList([vR.createVariableDeclaration("string"==typeof e?vR.createIdentifier(e):e,void 0,void 0,vR.createCallExpression(vR.createIdentifier("require"),void 0,[n]))],2))}function ane(e,n){return 7===n||(1&n?!!(111551&e):2&n?!!(788968&e):!!(4&n)&&!!(1920&e))}function sne(e,n){return Mh(e)?n.getImpliedNodeFormatForEmit(e):qU(e,n.getCompilerOptions())}X5({errorCodes:xee,getCodeActions(e){const{errorCode:n,preferences:t,sourceFile:r,span:o,program:i}=e,a=Bee(e,n,o.start,!0);if(a)return a.map(({fix:n,symbolName:o,errorIdentifierText:a})=>Xee(e,r,o,n,o!==a,i,t))},fixIds:[Aee],getAllCodeActions:e=>{const{sourceFile:n,program:t,preferences:r,host:o,cancellationToken:i}=e,a=Iee(n,t,!0,r,o,i);return t7(e,xee,n=>a.addImportFromDiagnostic(n,e)),Z5(tpe.ChangeTracker.with(e,a.writeFixes))}});var lne="addMissingConstraint",cne=[fa.Type_0_is_not_comparable_to_type_1.code,fa.Type_0_is_not_assignable_to_type_1_Two_different_types_with_this_name_exist_but_they_are_unrelated.code,fa.Type_0_is_not_assignable_to_type_1_with_exactOptionalPropertyTypes_Colon_true_Consider_adding_undefined_to_the_types_of_the_target_s_properties.code,fa.Type_0_is_not_assignable_to_type_1.code,fa.Argument_of_type_0_is_not_assignable_to_parameter_of_type_1_with_exactOptionalPropertyTypes_Colon_true_Consider_adding_undefined_to_the_types_of_the_target_s_properties.code,fa.Property_0_is_incompatible_with_index_signature.code,fa.Property_0_in_type_1_is_not_assignable_to_type_2.code,fa.Type_0_does_not_satisfy_the_constraint_1.code];function dne(e,n,t){const r=y(e.getSemanticDiagnostics(n),e=>e.start===t.start&&e.length===t.length);if(void 0===r||void 0===r.relatedInformation)return;const o=y(r.relatedInformation,e=>e.code===fa.This_type_parameter_might_need_an_extends_0_constraint.code);if(void 0===o||void 0===o.file||void 0===o.start||void 0===o.length)return;let i=vie(o.file,Js(o.start,o.length));if(void 0!==i&&(dD(i)&&ID(i.parent)&&(i=i.parent),ID(i))){if(aC(i.parent))return;const r=s$(n,t.start),a=function(e,n){if(Ed(n.parent))return e.getTypeArgumentConstraint(n.parent);const t=qd(n)?e.getContextualType(n):void 0;return t||e.getTypeAtLocation(n)}(e.getTypeChecker(),r)||function(e){const[,n]=gU(e,"\n",0).match(/`extends (.*)`/)||[];return n}(o.messageText);return{constraint:a,declaration:i,token:r}}}function une(e,n,t,r,o,i){const{declaration:a,constraint:s}=i,l=n.getTypeChecker();if(Qe(s))e.insertText(o,a.name.end,` extends ${s}`);else{const i=SS(n.getCompilerOptions()),c=Yoe({program:n,host:r}),d=Ree(o,n,t,r),u=tie(l,d,s,void 0,i,void 0,void 0,c);u&&(e.replaceNode(o,a,vR.updateTypeParameterDeclaration(a,void 0,a.name,u,a.default)),d.writeFixes(e))}}X5({errorCodes:cne,getCodeActions(e){const{sourceFile:n,span:t,program:r,preferences:o,host:i}=e,a=dne(r,n,t);if(void 0===a)return;const s=tpe.ChangeTracker.with(e,e=>une(e,r,o,i,n,a));return[K5(lne,s,fa.Add_extends_constraint,lne,fa.Add_extends_constraint_to_all_type_parameters)]},fixIds:[lne],getAllCodeActions:e=>{const{program:n,preferences:t,host:r}=e,o=new Set;return Z5(tpe.ChangeTracker.with(e,i=>{t7(e,cne,e=>{const a=dne(n,e.file,Js(e.start,e.length));if(a&&AT(o,cB(a.declaration)))return une(i,n,t,r,e.file,a)})}))}});var pne="fixOverrideModifier",fne="fixAddOverrideModifier",mne="fixRemoveOverrideModifier",hne=[fa.This_member_cannot_have_an_override_modifier_because_it_is_not_declared_in_the_base_class_0.code,fa.This_member_cannot_have_an_override_modifier_because_its_containing_class_0_does_not_extend_another_class.code,fa.This_member_must_have_an_override_modifier_because_it_overrides_an_abstract_method_that_is_declared_in_the_base_class_0.code,fa.This_member_must_have_an_override_modifier_because_it_overrides_a_member_in_the_base_class_0.code,fa.This_parameter_property_must_have_an_override_modifier_because_it_overrides_a_member_in_base_class_0.code,fa.This_member_must_have_a_JSDoc_comment_with_an_override_tag_because_it_overrides_a_member_in_the_base_class_0.code,fa.This_member_cannot_have_a_JSDoc_comment_with_an_override_tag_because_its_containing_class_0_does_not_extend_another_class.code,fa.This_parameter_property_must_have_a_JSDoc_comment_with_an_override_tag_because_it_overrides_a_member_in_the_base_class_0.code,fa.This_member_cannot_have_a_JSDoc_comment_with_an_override_tag_because_it_is_not_declared_in_the_base_class_0.code],_ne={[fa.This_member_must_have_an_override_modifier_because_it_overrides_a_member_in_the_base_class_0.code]:{descriptions:fa.Add_override_modifier,fixId:fne,fixAllDescriptions:fa.Add_all_missing_override_modifiers},[fa.This_member_must_have_a_JSDoc_comment_with_an_override_tag_because_it_overrides_a_member_in_the_base_class_0.code]:{descriptions:fa.Add_override_modifier,fixId:fne,fixAllDescriptions:fa.Add_all_missing_override_modifiers},[fa.This_member_cannot_have_an_override_modifier_because_its_containing_class_0_does_not_extend_another_class.code]:{descriptions:fa.Remove_override_modifier,fixId:mne,fixAllDescriptions:fa.Remove_all_unnecessary_override_modifiers},[fa.This_member_cannot_have_a_JSDoc_comment_with_an_override_tag_because_its_containing_class_0_does_not_extend_another_class.code]:{descriptions:fa.Remove_override_modifier,fixId:mne,fixAllDescriptions:fa.Remove_override_modifier},[fa.This_parameter_property_must_have_an_override_modifier_because_it_overrides_a_member_in_base_class_0.code]:{descriptions:fa.Add_override_modifier,fixId:fne,fixAllDescriptions:fa.Add_all_missing_override_modifiers},[fa.This_parameter_property_must_have_a_JSDoc_comment_with_an_override_tag_because_it_overrides_a_member_in_the_base_class_0.code]:{descriptions:fa.Add_override_modifier,fixId:fne,fixAllDescriptions:fa.Add_all_missing_override_modifiers},[fa.This_member_must_have_an_override_modifier_because_it_overrides_an_abstract_method_that_is_declared_in_the_base_class_0.code]:{descriptions:fa.Add_override_modifier,fixId:fne,fixAllDescriptions:fa.Remove_all_unnecessary_override_modifiers},[fa.This_member_cannot_have_an_override_modifier_because_it_is_not_declared_in_the_base_class_0.code]:{descriptions:fa.Remove_override_modifier,fixId:mne,fixAllDescriptions:fa.Remove_all_unnecessary_override_modifiers},[fa.This_member_cannot_have_a_JSDoc_comment_with_an_override_tag_because_it_is_not_declared_in_the_base_class_0.code]:{descriptions:fa.Remove_override_modifier,fixId:mne,fixAllDescriptions:fa.Remove_all_unnecessary_override_modifiers}};function gne(e,n,t,r){switch(t){case fa.This_member_must_have_an_override_modifier_because_it_overrides_a_member_in_the_base_class_0.code:case fa.This_member_must_have_a_JSDoc_comment_with_an_override_tag_because_it_overrides_a_member_in_the_base_class_0.code:case fa.This_member_must_have_an_override_modifier_because_it_overrides_an_abstract_method_that_is_declared_in_the_base_class_0.code:case fa.This_parameter_property_must_have_an_override_modifier_because_it_overrides_a_member_in_base_class_0.code:case fa.This_parameter_property_must_have_a_JSDoc_comment_with_an_override_tag_because_it_overrides_a_member_in_the_base_class_0.code:return function(e,n,t){const r=vne(n,t);if(Ph(n))return void e.addJSDocTags(n,r,[vR.createJSDocOverrideTag(vR.createIdentifier("override"))]);const o=r.modifiers||s,i=y(o,yD),a=y(o,vD),l=y(o,e=>O$(e.kind)),c=v(o,CD),d=a?a.end:i?i.end:l?l.end:c?es(n.text,c.end):r.getStart(n),u=l||i||a?{prefix:" "}:{suffix:" "};e.insertModifierAt(n,d,164,u)}(e,n.sourceFile,r);case fa.This_member_cannot_have_an_override_modifier_because_it_is_not_declared_in_the_base_class_0.code:case fa.This_member_cannot_have_a_JSDoc_comment_with_an_override_tag_because_it_is_not_declared_in_the_base_class_0.code:case fa.This_member_cannot_have_an_override_modifier_because_its_containing_class_0_does_not_extend_another_class.code:case fa.This_member_cannot_have_a_JSDoc_comment_with_an_override_tag_because_its_containing_class_0_does_not_extend_another_class.code:return function(e,n,t){const r=vne(n,t);if(Ph(n))return void e.filterJSDocTags(n,r,nt(WM));const o=y(r.modifiers,bD);dt.assertIsDefined(o),e.deleteModifier(n,o)}(e,n.sourceFile,r);default:dt.fail("Unexpected error code: "+t)}}function yne(e){switch(e.kind){case 177:case 173:case 175:case 178:case 179:return!0;case 170:return tl(e,e.parent);default:return!1}}function vne(e,n){const t=ml(s$(e,n),e=>md(e)?"quit":yne(e));return dt.assert(t&&yne(t)),t}X5({errorCodes:hne,getCodeActions:function(e){const{errorCode:n,span:t}=e,r=_ne[n];if(!r)return s;const{descriptions:o,fixId:i,fixAllDescriptions:a}=r,l=tpe.ChangeTracker.with(e,r=>gne(r,e,n,t.start));return[q5(pne,l,o,i,a)]},fixIds:[pne,fne,mne],getAllCodeActions:e=>n7(e,hne,(n,t)=>{const{code:r,start:o}=t,i=_ne[r];i&&i.fixId===e.fixId&&gne(n,e,r,o)})});var bne="fixNoPropertyAccessFromIndexSignature",Tne=[fa.Property_0_comes_from_an_index_signature_so_it_must_be_accessed_with_0.code];function Sne(e,n,t,r){const o=hQ(n,r),i=vR.createStringLiteral(t.name.text,0===o);e.replaceNode(n,t,gc(t)?vR.createElementAccessChain(t.expression,t.questionDotToken,i):vR.createElementAccessExpression(t.expression,i))}function Ene(e,n){return nn(s$(e,n).parent,_C)}X5({errorCodes:Tne,fixIds:[bne],getCodeActions(e){const{sourceFile:n,span:t,preferences:r}=e,o=Ene(n,t.start),i=tpe.ChangeTracker.with(e,n=>Sne(n,e.sourceFile,o,r));return[K5(bne,i,[fa.Use_element_access_for_0,o.name.text],bne,fa.Use_element_access_for_all_undeclared_properties)]},getAllCodeActions:e=>n7(e,Tne,(n,t)=>Sne(n,t.file,Ene(t.file,t.start),e.preferences))});var Ane="fixImplicitThis",xne=[fa.this_implicitly_has_type_any_because_it_does_not_have_a_type_annotation.code];function Rne(e,n,t,r){const o=s$(n,t);if(!PY(o))return;const i=rh(o,!1,!1);if((hN(i)||EC(i))&&!uM(rh(i,!1,!1))){const t=dt.checkDefined(qY(i,100,n)),{name:o}=i,a=dt.checkDefined(i.body);if(EC(i)){if(o&&kle.Core.isSymbolReferencedInFile(o,r,n,a))return;return e.delete(n,t),o&&e.delete(n,o),e.insertText(n,a.pos," =>"),[fa.Convert_function_expression_0_to_arrow_function,o?o.text:IZ]}return e.replaceNode(n,t,vR.createToken(87)),e.insertText(n,o.end," = "),e.insertText(n,a.pos," =>"),[fa.Convert_function_declaration_0_to_arrow_function,o.text]}}X5({errorCodes:xne,getCodeActions:function(e){const{sourceFile:n,program:t,span:r}=e;let o;const i=tpe.ChangeTracker.with(e,e=>{o=Rne(e,n,r.start,t.getTypeChecker())});return o?[K5(Ane,i,o,Ane,fa.Fix_all_implicit_this_errors)]:s},fixIds:[Ane],getAllCodeActions:e=>n7(e,xne,(n,t)=>{Rne(n,t.file,t.start,e.program.getTypeChecker())})});var Ine="fixImportNonExportedMember",Dne=[fa.Module_0_declares_1_locally_but_it_is_not_exported.code];function Cne(e,n,t){var r,o;const i=s$(e,n);if(dD(i)){const n=ml(i,xN);if(void 0===n)return;const a=qI(n.moduleSpecifier)?n.moduleSpecifier:void 0;if(void 0===a)return;const s=null==(r=t.getResolvedModuleFromModuleSpecifier(a,e))?void 0:r.resolvedModule;if(void 0===s)return;const l=t.getSourceFile(s.resolvedFileName);if(void 0===l||f0(t,l))return;const d=null==(o=en(l.symbol.valueDeclaration,du))?void 0:o.locals;if(void 0===d)return;const u=d.get(i.escapedText);if(void 0===u)return;const p=function(e){if(void 0===e.valueDeclaration)return fe(e.declarations);const n=e.valueDeclaration,t=fN(n)?en(n.parent.parent,XC):void 0;return t&&1===c(t.declarationList.declarations)?t:n}(u);if(void 0===p)return;return{exportName:{node:i,isTypeOnly:JA(p)},node:p,moduleSourceFile:l,moduleSpecifier:a.text}}}function Nne(e,n,t,r,o){c(r)&&(o?Pne(e,n,t,o,r):Lne(e,n,t,r))}function Mne(e,n){return v(e.statements,e=>FN(e)&&(n&&e.isTypeOnly||!e.isTypeOnly))}function Pne(e,n,t,r,o){const i=r.exportClause&&WN(r.exportClause)?r.exportClause.elements:vR.createNodeArray([]),a=!(r.isTypeOnly||!RS(n.getCompilerOptions())&&!y(i,e=>e.isTypeOnly));e.replaceNode(t,r,vR.updateExportDeclaration(r,r.modifiers,r.isTypeOnly,vR.createNamedExports(vR.createNodeArray([...i,...kne(o,a)],i.hasTrailingComma)),r.moduleSpecifier,r.attributes))}function Lne(e,n,t,r){e.insertNodeAtEndOfScope(t,t,vR.createExportDeclaration(void 0,!1,vR.createNamedExports(kne(r,RS(n.getCompilerOptions()))),void 0,void 0))}function kne(e,n){return vR.createNodeArray(D(e,e=>vR.createExportSpecifier(n&&e.isTypeOnly,void 0,e.node)))}X5({errorCodes:Dne,fixIds:[Ine],getCodeActions(e){const{sourceFile:n,span:t,program:r}=e,o=Cne(n,t.start,r);if(void 0===o)return;const i=tpe.ChangeTracker.with(e,e=>function(e,n,{exportName:t,node:r,moduleSourceFile:o}){const i=Mne(o,t.isTypeOnly);i?Pne(e,n,o,i,[t]):XA(r)?e.insertExportModifier(o,r):Lne(e,n,o,[t])}(e,r,o));return[K5(Ine,i,[fa.Export_0_from_module_1,o.exportName.node.text,o.moduleSpecifier],Ine,fa.Export_all_referenced_locals)]},getAllCodeActions(e){const{program:n}=e;return Z5(tpe.ChangeTracker.with(e,t=>{const r=new Map;t7(e,Dne,e=>{const o=Cne(e.file,e.start,n);if(void 0===o)return;const{exportName:i,node:a,moduleSourceFile:s}=o;if(void 0===Mne(s,i.isTypeOnly)&&XA(a))t.insertExportModifier(s,a);else{const e=r.get(s)||{typeOnlyExports:[],exports:[]};i.isTypeOnly?e.typeOnlyExports.push(i):e.exports.push(i),r.set(s,e)}}),r.forEach((e,r)=>{const o=Mne(r,!0);o&&o.isTypeOnly?(Nne(t,n,r,e.typeOnlyExports,o),Nne(t,n,r,e.exports,Mne(r,!1))):Nne(t,n,r,[...e.exports,...e.typeOnlyExports],o)})}))}});var wne="fixIncorrectNamedTupleSyntax";X5({errorCodes:[fa.A_labeled_tuple_element_is_declared_as_optional_with_a_question_mark_after_the_name_and_before_the_colon_rather_than_after_the_type.code,fa.A_labeled_tuple_element_is_declared_as_rest_with_a_before_the_name_rather_than_before_the_type.code],getCodeActions:function(e){const{sourceFile:n,span:t}=e,r=function(e,n){const t=s$(e,n);return ml(t,e=>203===e.kind)}(n,t.start),o=tpe.ChangeTracker.with(e,e=>function(e,n,t){if(!t)return;let r=t.type,o=!1,i=!1;for(;191===r.kind||192===r.kind||197===r.kind;)191===r.kind?o=!0:192===r.kind&&(i=!0),r=r.type;const a=vR.updateNamedTupleMember(t,t.dotDotDotToken||(i?vR.createToken(26):void 0),t.name,t.questionToken||(o?vR.createToken(58):void 0),r);if(a===t)return;e.replaceNode(n,t,a)}(e,n,r));return[K5(wne,o,fa.Move_labeled_tuple_element_modifiers_to_labels,wne,fa.Move_labeled_tuple_element_modifiers_to_labels)]},fixIds:[wne]});var One="fixSpelling",Fne=[fa.Property_0_does_not_exist_on_type_1_Did_you_mean_2.code,fa.Property_0_may_not_exist_on_type_1_Did_you_mean_2.code,fa.Cannot_find_name_0_Did_you_mean_1.code,fa.Could_not_find_name_0_Did_you_mean_1.code,fa.Cannot_find_namespace_0_Did_you_mean_1.code,fa.Cannot_find_name_0_Did_you_mean_the_instance_member_this_0.code,fa.Cannot_find_name_0_Did_you_mean_the_static_member_1_0.code,fa._0_has_no_exported_member_named_1_Did_you_mean_2.code,fa.This_member_cannot_have_an_override_modifier_because_it_is_not_declared_in_the_base_class_0_Did_you_mean_1.code,fa.This_member_cannot_have_a_JSDoc_comment_with_an_override_tag_because_it_is_not_declared_in_the_base_class_0_Did_you_mean_1.code,fa.No_overload_matches_this_call.code,fa.Type_0_is_not_assignable_to_type_1.code];function Wne(e,n,t,r){const o=s$(e,n),i=o.parent;if((r===fa.No_overload_matches_this_call.code||r===fa.Type_0_is_not_assignable_to_type_1.code)&&!QN(i))return;const a=t.program.getTypeChecker();let s;if(_C(i)&&i.name===o){dt.assert(hc(o),"Expected an identifier for spelling (property access)");let e=a.getTypeAtLocation(i.expression);64&i.flags&&(e=a.getNonNullableType(e)),s=a.getSuggestedSymbolForNonexistentProperty(o,e)}else if(MC(i)&&103===i.operatorToken.kind&&i.left===o&&uD(o)){const e=a.getTypeAtLocation(i.right);s=a.getSuggestedSymbolForNonexistentProperty(o,e)}else if(xD(i)&&i.right===o){const e=a.getSymbolAtLocation(i.left);e&&1536&e.flags&&(s=a.getSuggestedSymbolForNonexistentModule(i.right,e))}else if(wN(i)&&i.name===o){dt.assertNode(o,dD,"Expected an identifier for spelling (import)");const n=function(e,n,t){var r;if(!n||!zu(n.moduleSpecifier))return;const o=null==(r=e.program.getResolvedModuleFromModuleSpecifier(n.moduleSpecifier,t))?void 0:r.resolvedModule;return o?e.program.getSourceFile(o.resolvedFileName):void 0}(t,ml(o,xN),e);n&&n.symbol&&(s=a.getSuggestedSymbolForNonexistentModule(o,n.symbol))}else if(QN(i)&&i.name===o){dt.assertNode(o,dD,"Expected an identifier for JSX attribute");const e=ml(o,Eu),n=a.getContextualTypeForArgumentAtIndex(e,0);s=a.getSuggestedSymbolForNonexistentJSXAttribute(o,n)}else if(kv(i)&&fd(i)&&i.name===o){const e=ml(o,md),n=e?Tg(e):void 0,t=n?a.getTypeAtLocation(n):void 0;t&&(s=a.getSuggestedSymbolForNonexistentClassMember(Zp(o),t))}else{const e=oY(o),n=Zp(o);dt.assert(void 0!==n,"name should be defined"),s=a.getSuggestedSymbolForNonexistentSymbol(o,n,function(e){let n=0;4&e&&(n|=1920);2&e&&(n|=788968);1&e&&(n|=111551);return n}(e))}return void 0===s?void 0:{node:o,suggestedSymbol:s}}function zne(e,n,t,r,o){const i=Tl(r);if(!ys(i,o)&&_C(t.parent)){const o=r.valueDeclaration;o&&Rl(o)&&uD(o.name)?e.replaceNode(n,t,vR.createIdentifier(i)):e.replaceNode(n,t.parent,vR.createElementAccessExpression(t.parent.expression,vR.createStringLiteral(i)))}else e.replaceNode(n,t,vR.createIdentifier(i))}X5({errorCodes:Fne,getCodeActions(e){const{sourceFile:n,errorCode:t}=e,r=Wne(n,e.span.start,e,t);if(!r)return;const{node:o,suggestedSymbol:i}=r,a=SS(e.host.getCompilationSettings());return[K5("spelling",tpe.ChangeTracker.with(e,e=>zne(e,n,o,i,a)),[fa.Change_spelling_to_0,Tl(i)],One,fa.Fix_all_detected_spelling_errors)]},fixIds:[One],getAllCodeActions:e=>n7(e,Fne,(n,t)=>{const r=Wne(t.file,t.start,e,t.code),o=SS(e.host.getCompilationSettings());r&&zne(n,e.sourceFile,r.node,r.suggestedSymbol,o)})});var Bne="returnValueCorrect",Gne="fixAddReturnStatement",Vne="fixRemoveBracesFromArrowFunctionBody",jne="fixWrapTheBlockWithParen",Une=[fa.A_function_whose_declared_type_is_neither_undefined_void_nor_any_must_return_a_value.code,fa.Type_0_is_not_assignable_to_type_1.code,fa.Argument_of_type_0_is_not_assignable_to_parameter_of_type_1.code];function Hne(e,n,t){const r=e.createSymbol(4,n.escapedText);r.links.type=e.getTypeAtLocation(t);const o=Qu([r]);return e.createAnonymousType(void 0,o,[],[],[])}function Kne(e,n,t,r){if(!n.body||!JC(n.body)||1!==c(n.body.statements))return;const o=he(n.body.statements);if($C(o)&&qne(e,n,e.getTypeAtLocation(o.expression),t,r))return{declaration:n,kind:0,expression:o.expression,statement:o,commentSource:o.expression};if(cN(o)&&$C(o.statement)){const i=vR.createObjectLiteralExpression([vR.createPropertyAssignment(o.label,o.statement.expression)]);if(qne(e,n,Hne(e,o.label,o.statement.expression),t,r))return AC(n)?{declaration:n,kind:1,expression:i,statement:o,commentSource:o.statement.expression}:{declaration:n,kind:0,expression:i,statement:o,commentSource:o.statement.expression}}else if(JC(o)&&1===c(o.statements)){const i=he(o.statements);if(cN(i)&&$C(i.statement)){const a=vR.createObjectLiteralExpression([vR.createPropertyAssignment(i.label,i.statement.expression)]);if(qne(e,n,Hne(e,i.label,i.statement.expression),t,r))return{declaration:n,kind:0,expression:a,statement:o,commentSource:i}}}}function qne(e,n,t,r,o){if(o){const r=e.getSignatureFromDeclaration(n);if(r){Mv(n,1024)&&(t=e.createPromiseType(t));const o=e.createSignature(n,r.typeParameters,r.thisParameter,r.parameters,t,void 0,r.minArgumentCount,r.flags);t=e.createAnonymousType(void 0,Qu(),[o],[],[])}else t=e.getAnyType()}return e.isTypeAssignableTo(t,r)}function Jne(e,n,t,r){const o=s$(n,t);if(!o.parent)return;const i=ml(o.parent,ld);switch(r){case fa.A_function_whose_declared_type_is_neither_undefined_void_nor_any_must_return_a_value.code:if(!(i&&i.body&&i.type&&eT(i.type,o)))return;return Kne(e,i,e.getTypeFromTypeNode(i.type),!1);case fa.Argument_of_type_0_is_not_assignable_to_parameter_of_type_1.code:if(!i||!yC(i.parent)||!i.body)return;const n=i.parent.arguments.indexOf(i);if(-1===n)return;const t=e.getContextualTypeForArgumentAtIndex(i.parent,n);if(!t)return;return Kne(e,i,t,!0);case fa.Type_0_is_not_assignable_to_type_1.code:if(!pg(o)||!wm(o.parent)&&!QN(o.parent))return;const r=function(e){switch(e.kind){case 261:case 170:case 209:case 173:case 304:return e.initializer;case 292:return e.initializer&&(nM(e.initializer)?e.initializer.expression:void 0);case 305:case 172:case 307:case 349:case 342:return}}(o.parent);if(!r||!ld(r)||!r.body)return;return Kne(e,r,e.getTypeAtLocation(o.parent),!0)}}function Xne(e,n,t,r){qx(t);const o=wZ(n);e.replaceNode(n,r,vR.createReturnStatement(t),{leadingTriviaOption:tpe.LeadingTriviaOption.Exclude,trailingTriviaOption:tpe.TrailingTriviaOption.Exclude,suffix:o?";":void 0})}function Yne(e,n,t,r,o,i){const a=bZ(r)?vR.createParenthesizedExpression(r):r;qx(o),pZ(o,a),e.replaceNode(n,t.body,a)}function $ne(e,n,t,r){e.replaceNode(n,t.body,vR.createParenthesizedExpression(r))}function Qne(e,n,t){const r=tpe.ChangeTracker.with(e,r=>Xne(r,e.sourceFile,n,t));return K5(Bne,r,fa.Add_a_return_statement,Gne,fa.Add_all_missing_return_statement)}function Zne(e,n,t){const r=tpe.ChangeTracker.with(e,r=>$ne(r,e.sourceFile,n,t));return K5(Bne,r,fa.Wrap_the_following_body_with_parentheses_which_should_be_an_object_literal,jne,fa.Wrap_all_object_literal_with_parentheses)}X5({errorCodes:Une,fixIds:[Gne,Vne,jne],getCodeActions:function(e){const{program:n,sourceFile:t,span:{start:r},errorCode:o}=e,i=Jne(n.getTypeChecker(),t,r,o);if(i)return 0===i.kind?re([Qne(e,i.expression,i.statement)],AC(i.declaration)?function(e,n,t,r){const o=tpe.ChangeTracker.with(e,o=>Yne(o,e.sourceFile,n,t,r));return K5(Bne,o,fa.Remove_braces_from_arrow_function_body,Vne,fa.Remove_braces_from_all_arrow_function_bodies_with_relevant_issues)}(e,i.declaration,i.expression,i.commentSource):void 0):[Zne(e,i.declaration,i.expression)]},getAllCodeActions:e=>n7(e,Une,(n,t)=>{const r=Jne(e.program.getTypeChecker(),t.file,t.start,t.code);if(r)switch(e.fixId){case Gne:Xne(n,t.file,r.expression,r.statement);break;case Vne:if(!AC(r.declaration))return;Yne(n,t.file,r.declaration,r.expression,r.commentSource);break;case jne:if(!AC(r.declaration))return;$ne(n,t.file,r.declaration,r.expression);break;default:dt.fail(JSON.stringify(e.fixId))}})});var ete="fixMissingMember",nte="fixMissingProperties",tte="fixMissingAttributes",rte="fixMissingFunctionDeclaration",ote=[fa.Property_0_does_not_exist_on_type_1.code,fa.Property_0_does_not_exist_on_type_1_Did_you_mean_2.code,fa.Property_0_is_missing_in_type_1_but_required_in_type_2.code,fa.Type_0_is_missing_the_following_properties_from_type_1_Colon_2.code,fa.Type_0_is_missing_the_following_properties_from_type_1_Colon_2_and_3_more.code,fa.Argument_of_type_0_is_not_assignable_to_parameter_of_type_1.code,fa.Cannot_find_name_0.code,fa.Type_0_does_not_satisfy_the_expected_type_1.code];function ite(e,n,t,r,o){var i,a;const l=s$(e,n),d=l.parent;if(t===fa.Argument_of_type_0_is_not_assignable_to_parameter_of_type_1.code){if(19!==l.kind||!hC(d)||!yC(d.parent))return;const e=b(d.parent.arguments,e=>e===d);if(e<0)return;const n=r.getResolvedSignature(d.parent);if(!(n&&n.declaration&&n.parameters[e]))return;const t=n.parameters[e].valueDeclaration;if(!(t&&DD(t)&&dD(t.name)))return;const o=Le(r.getUnmatchedProperties(r.getTypeAtLocation(d),r.getParameterType(n,e).getNonNullableType(),!1,!1));if(!c(o))return;return{kind:3,token:t.name,identifier:t.name.text,properties:o,parentDeclaration:d}}if(19===l.kind||BC(d)||aN(d)){const e=(BC(d)||aN(d))&&d.expression?d.expression:d;if(hC(e)){const n=BC(d)?r.getTypeFromTypeNode(d.type):r.getContextualType(e)||r.getTypeAtLocation(e),t=Le(r.getUnmatchedProperties(r.getTypeAtLocation(d),n.getNonNullableType(),!1,!1));if(!c(t))return;return{kind:3,token:d,identifier:void 0,properties:t,parentDeclaration:e,indentation:aN(e.parent)||kC(e.parent)?0:void 0}}}if(!hc(l))return;if(dD(l)&&Lu(d)&&d.initializer&&hC(d.initializer)){const e=null==(i=r.getContextualType(l)||r.getTypeAtLocation(l))?void 0:i.getNonNullableType(),n=Le(r.getUnmatchedProperties(r.getTypeAtLocation(d.initializer),e,!1,!1));if(!c(n))return;return{kind:3,token:l,identifier:l.text,properties:n,parentDeclaration:d.initializer}}if(dD(l)&&Eu(l.parent)){const e=function(e,n,t){const r=e.getContextualType(t.attributes);if(void 0===r)return s;const o=r.getProperties();if(!c(o))return s;const i=new Set;for(const a of t.attributes.properties)if(QN(a)&&i.add(ix(a.name)),eM(a)){const n=e.getTypeAtLocation(a.expression);for(const e of n.getProperties())i.add(e.escapedName)}return x(o,e=>ys(e.name,n,1)&&!(16777216&e.flags||48&sT(e)||i.has(e.escapedName)))}(r,SS(o.getCompilerOptions()),l.parent);if(!c(e))return;return{kind:4,token:l,attributes:e,parentDeclaration:l.parent}}if(dD(l)){const n=null==(a=r.getContextualType(l))?void 0:a.getNonNullableType();if(n&&16&bT(n)){const t=fe(r.getSignaturesOfType(n,0));if(void 0===t)return;return{kind:5,token:l,signature:t,sourceFile:e,parentDeclaration:yte(l)}}if(yC(d)&&d.expression===l)return{kind:2,token:l,call:d,sourceFile:e,modifierFlags:0,parentDeclaration:yte(l)}}if(!_C(d))return;const u=rQ(r.getTypeAtLocation(d.expression)),p=u.symbol;if(!p||!p.declarations)return;if(dD(l)&&yC(d.parent)){const n=y(p.declarations,bN),t=null==n?void 0:n.getSourceFile();if(n&&t&&!f0(o,t))return{kind:2,token:l,call:d.parent,sourceFile:t,modifierFlags:32,parentDeclaration:n};const r=y(p.declarations,uM);if(e.commonJsModuleIndicator)return;if(r&&!f0(o,r))return{kind:2,token:l,call:d.parent,sourceFile:r,modifierFlags:32,parentDeclaration:r}}const f=y(p.declarations,md);if(!f&&uD(l))return;const m=f||y(p.declarations,e=>gN(e)||KD(e));if(m&&!f0(o,m.getSourceFile())){const e=!KD(m)&&(u.target||u)!==r.getDeclaredTypeOfSymbol(p);if(e&&(uD(l)||gN(m)))return;const n=m.getSourceFile(),t=KD(m)?0:(e?256:0)|(a0(l.text)?2:0),o=Ph(n);return{kind:0,token:l,call:en(d.parent,yC),modifierFlags:t,parentDeclaration:m,declSourceFile:n,isJSFile:o}}const h=y(p.declarations,vN);return!h||1056&u.flags||uD(l)||f0(o,h.getSourceFile())?void 0:{kind:1,token:l,parentDeclaration:h}}function ate(e,n,t,r,o){const i=r.text;if(o){if(232===t.kind)return;const r=t.name.getText(),o=ste(vR.createIdentifier(r),i);e.insertNodeAfter(n,t,o)}else if(uD(r)){const r=vR.createPropertyDeclaration(void 0,i,void 0,void 0,void 0),o=dte(t);o?e.insertNodeAfter(n,o,r):e.insertMemberAtStart(n,t,r)}else{const r=sv(t);if(!r)return;const o=ste(vR.createThis(),i);e.insertNodeAtConstructorEnd(n,r,o)}}function ste(e,n){return vR.createExpressionStatement(vR.createAssignment(vR.createPropertyAccessExpression(e,n),gte()))}function lte(e,n,t){let r;if(227===t.parent.parent.kind){const o=t.parent.parent,i=t.parent===o.left?o.right:o.left,a=e.getWidenedType(e.getBaseTypeOfLiteralType(e.getTypeAtLocation(i)));r=e.typeToTypeNode(a,n,1,8)}else{const n=e.getContextualType(t.parent);r=n?e.typeToTypeNode(n,void 0,1,8):void 0}return r||vR.createKeywordTypeNode(133)}function cte(e,n,t,r,o,i){const a=i?vR.createNodeArray(vR.createModifiersFromModifierFlags(i)):void 0,s=md(t)?vR.createPropertyDeclaration(a,r,void 0,o,void 0):vR.createPropertySignature(void 0,r,void 0,o),l=dte(t);l?e.insertNodeAfter(n,l,s):e.insertMemberAtStart(n,t,s)}function dte(e){let n;for(const t of e.members){if(!MD(t))break;n=t}return n}function ute(e,n,t,r,o,i,a){const s=Ree(a,e.program,e.preferences,e.host),l=eie(md(i)?175:174,e,s,t,r,o,i),c=function(e,n){if(KD(e))return;const t=ml(n,e=>LD(e)||wD(e));return t&&t.parent===e?t:void 0}(i,t);c?n.insertNodeAfter(a,c,l):n.insertMemberAtStart(a,i,l),s.writeFixes(n)}function pte(e,n,{token:t,parentDeclaration:r}){const o=U(r.members,e=>{const t=n.getTypeAtLocation(e);return!!(t&&402653316&t.flags)}),i=r.getSourceFile(),a=vR.createEnumMember(t,o?vR.createStringLiteral(t.text):void 0),s=ge(r.members);s?e.insertNodeInListAfter(i,s,a,r.members):e.insertMemberAtStart(i,r,a)}function fte(e,n,t){const r=hQ(n.sourceFile,n.preferences),o=Ree(n.sourceFile,n.program,n.preferences,n.host),i=2===t.kind?eie(263,n,o,t.call,vl(t.token),t.modifierFlags,t.parentDeclaration):Zoe(263,n,r,t.signature,uie(fa.Function_not_implemented.message,r),t.token,void 0,void 0,void 0,o);void 0===i&&dt.fail("fixMissingFunctionDeclaration codefix got unexpected error."),aN(t.parentDeclaration)?e.insertNodeBefore(t.sourceFile,t.parentDeclaration,i,!0):e.insertNodeAtEndOfScope(t.sourceFile,t.parentDeclaration,i),o.writeFixes(e)}function mte(e,n,t){const r=Ree(n.sourceFile,n.program,n.preferences,n.host),o=hQ(n.sourceFile,n.preferences),i=n.program.getTypeChecker(),a=t.parentDeclaration.attributes,s=U(a.properties,eM),l=D(t.attributes,e=>{const a=_te(n,i,r,o,i.getTypeOfSymbol(e),t.parentDeclaration),s=vR.createIdentifier(e.name),l=vR.createJsxAttribute(s,vR.createJsxExpression(void 0,a));return PA(s,l),l}),c=vR.createJsxAttributes(s?[...l,...a.properties]:[...a.properties,...l]),d={prefix:a.pos===a.end?" ":void 0};e.replaceNode(n.sourceFile,a,c,d),r.writeFixes(e)}function hte(e,n,t){const r=Ree(n.sourceFile,n.program,n.preferences,n.host),o=hQ(n.sourceFile,n.preferences),i=SS(n.program.getCompilerOptions()),a=n.program.getTypeChecker(),s=D(t.properties,e=>{const s=_te(n,a,r,o,a.getTypeOfSymbol(e),t.parentDeclaration);return vR.createPropertyAssignment(function(e,n,t,r){if(Zu(e)){const n=r.symbolToNode(e,111551,void 0,void 0,1);if(n&&RD(n))return n}return HA(e.name,n,0===t,!1,!1)}(e,i,o,a),s)}),l={leadingTriviaOption:tpe.LeadingTriviaOption.Exclude,trailingTriviaOption:tpe.TrailingTriviaOption.Exclude,indentation:t.indentation};e.replaceNode(n.sourceFile,t.parentDeclaration,vR.createObjectLiteralExpression([...t.parentDeclaration.properties,...s],!0),l),r.writeFixes(e)}function _te(e,n,t,r,o,i){if(3&o.flags)return gte();if(134217732&o.flags)return vR.createStringLiteral("",0===r);if(8&o.flags)return vR.createNumericLiteral(0);if(64&o.flags)return vR.createBigIntLiteral("0n");if(16&o.flags)return vR.createFalse();if(1056&o.flags){const e=o.symbol.exports?me(o.symbol.exports.values()):o.symbol,t=o.symbol.parent&&256&o.symbol.parent.flags?o.symbol.parent:o.symbol,r=n.symbolToExpression(t,111551,void 0,64);return void 0===e||void 0===r?vR.createNumericLiteral(0):vR.createPropertyAccessExpression(r,n.symbolToString(e))}if(256&o.flags)return vR.createNumericLiteral(o.value);if(2048&o.flags)return vR.createBigIntLiteral(o.value);if(128&o.flags)return vR.createStringLiteral(o.value,0===r);if(512&o.flags)return o===n.getFalseType()||o===n.getFalseType(!0)?vR.createFalse():vR.createTrue();if(65536&o.flags)return vR.createNull();if(1048576&o.flags){return p(o.types,o=>_te(e,n,t,r,o,i))??gte()}if(n.isArrayLikeType(o))return vR.createArrayLiteralExpression();if(function(e){return 524288&e.flags&&(128&bT(e)||e.symbol&&en(ve(e.symbol.declarations),KD))}(o)){const a=D(n.getPropertiesOfType(o),o=>{const a=_te(e,n,t,r,n.getTypeOfSymbol(o),i);return vR.createPropertyAssignment(o.name,a)});return vR.createObjectLiteralExpression(a,!0)}if(16&bT(o)){if(void 0===y(o.symbol.declarations||s,et(jD,PD,LD)))return gte();const a=n.getSignaturesOfType(o,0);if(void 0===a)return gte();return Zoe(219,e,r,a[0],uie(fa.Function_not_implemented.message,r),void 0,void 0,void 0,i,t)??gte()}if(1&bT(o)){const e=vT(o.symbol);if(void 0===e||wv(e))return gte();const n=sv(e);return n&&c(n.parameters)?gte():vR.createNewExpression(vR.createIdentifier(o.symbol.name),void 0,void 0)}return gte()}function gte(){return vR.createIdentifier("undefined")}function yte(e){if(ml(e,nM)){const n=ml(e.parent,aN);if(n)return n}return Sp(e)}X5({errorCodes:ote,getCodeActions(e){const n=e.program.getTypeChecker(),t=ite(e.sourceFile,e.span.start,e.errorCode,n,e.program);if(t){if(3===t.kind){const n=tpe.ChangeTracker.with(e,n=>hte(n,e,t));return[K5(nte,n,fa.Add_missing_properties,nte,fa.Add_all_missing_properties)]}if(4===t.kind){const n=tpe.ChangeTracker.with(e,n=>mte(n,e,t));return[K5(tte,n,fa.Add_missing_attributes,tte,fa.Add_all_missing_attributes)]}if(2===t.kind||5===t.kind){const n=tpe.ChangeTracker.with(e,n=>fte(n,e,t));return[K5(rte,n,[fa.Add_missing_function_declaration_0,t.token.text],rte,fa.Add_all_missing_function_declarations)]}if(1===t.kind){const n=tpe.ChangeTracker.with(e,n=>pte(n,e.program.getTypeChecker(),t));return[K5(ete,n,[fa.Add_missing_enum_member_0,t.token.text],ete,fa.Add_all_missing_members)]}return K(function(e,n){const{parentDeclaration:t,declSourceFile:r,modifierFlags:o,token:i,call:a}=n;if(void 0===a)return;const s=i.text,l=n=>tpe.ChangeTracker.with(e,o=>ute(e,o,a,i,n,t,r)),c=[K5(ete,l(256&o),[256&o?fa.Declare_static_method_0:fa.Declare_method_0,s],ete,fa.Add_all_missing_members)];2&o&&c.unshift(H5(ete,l(2),[fa.Declare_private_method_0,s]));return c}(e,t),function(e,n){return n.isJSFile?rt(function(e,{parentDeclaration:n,declSourceFile:t,modifierFlags:r,token:o}){if(gN(n)||KD(n))return;const i=tpe.ChangeTracker.with(e,e=>ate(e,t,n,o,!!(256&r)));if(0===i.length)return;const a=256&r?fa.Initialize_static_property_0:uD(o)?fa.Declare_a_private_field_named_0:fa.Initialize_property_0_in_the_constructor;return K5(ete,i,[a,o.text],ete,fa.Add_all_missing_members)}(e,n)):function(e,{parentDeclaration:n,declSourceFile:t,modifierFlags:r,token:o}){const i=o.text,a=256&r,s=lte(e.program.getTypeChecker(),n,o),l=r=>tpe.ChangeTracker.with(e,e=>cte(e,t,n,i,s,r)),c=[K5(ete,l(256&r),[a?fa.Declare_static_property_0:fa.Declare_property_0,i],ete,fa.Add_all_missing_members)];if(a||uD(o))return c;2&r&&c.unshift(H5(ete,l(2),[fa.Declare_private_property_0,i]));return c.push(function(e,n,t,r,o){const i=vR.createKeywordTypeNode(154),a=vR.createParameterDeclaration(void 0,void 0,"x",void 0,i,void 0),s=vR.createIndexSignature(void 0,[a],o),l=tpe.ChangeTracker.with(e,e=>e.insertMemberAtStart(n,t,s));return H5(ete,l,[fa.Add_index_signature_for_property_0,r])}(e,t,n,o.text,s)),c}(e,n)}(e,t))}},fixIds:[ete,rte,nte,tte],getAllCodeActions:e=>{const{program:n,fixId:t}=e,r=n.getTypeChecker(),o=new Set,i=new Map;return Z5(tpe.ChangeTracker.with(e,n=>{t7(e,ote,a=>{const s=ite(a.file,a.start,a.code,r,e.program);if(void 0===s)return;const l=cB(s.parentDeclaration)+"#"+(3===s.kind?s.identifier||cB(s.token):s.token.text);if(AT(o,l))if(t!==rte||2!==s.kind&&5!==s.kind){if(t===nte&&3===s.kind)hte(n,e,s);else if(t===tte&&4===s.kind)mte(n,e,s);else if(1===s.kind&&pte(n,r,s),0===s.kind){const{parentDeclaration:e,token:n}=s,t=z(i,e,()=>[]);t.some(e=>e.token.text===n.text)||t.push(s)}}else fte(n,e,s)}),i.forEach((t,o)=>{const a=KD(o)?void 0:function(e,n){const t=[];for(;e;){const r=Sg(e),o=r&&n.getSymbolAtLocation(r.expression);if(!o)break;const i=2097152&o.flags?n.getAliasedSymbol(o):o,a=i.declarations&&y(i.declarations,md);if(!a)break;t.push(a),e=a}return t}(o,r);for(const s of t){if(null==a?void 0:a.some(e=>{const n=i.get(e);return!!n&&n.some(({token:e})=>e.text===s.token.text)}))continue;const{parentDeclaration:t,declSourceFile:o,modifierFlags:l,token:c,call:d,isJSFile:u}=s;if(d&&!uD(c))ute(e,n,d,c,256&l,t,o);else if(!u||gN(t)||KD(t)){const e=lte(r,t,c);cte(n,o,t,c.text,e,256&l)}else ate(n,o,t,c,!!(256&l))}})}))}});var vte="addMissingNewOperator",bte=[fa.Value_of_type_0_is_not_callable_Did_you_mean_to_include_new.code];function Tte(e,n,t){const r=nn(function(e,n){let t=s$(e,n.start);const r=Ps(n);for(;t.end<r;)t=t.parent;return t}(n,t),yC),o=vR.createNewExpression(r.expression,r.typeArguments,r.arguments);e.replaceNode(n,r,o)}X5({errorCodes:bte,getCodeActions(e){const{sourceFile:n,span:t}=e,r=tpe.ChangeTracker.with(e,e=>Tte(e,n,t));return[K5(vte,r,fa.Add_missing_new_operator_to_call,vte,fa.Add_missing_new_operator_to_all_calls)]},fixIds:[vte],getAllCodeActions:e=>n7(e,bte,(n,t)=>Tte(n,e.sourceFile,t))});var Ste="addMissingParam",Ete="addOptionalParam",Ate=[fa.Expected_0_arguments_but_got_1.code];function xte(e,n,t){const r=ml(s$(e,t),yC);if(void 0===r||0===c(r.arguments))return;const o=n.getTypeChecker(),i=x(o.getTypeAtLocation(r.expression).symbol.declarations,Dte);if(void 0===i)return;const a=ge(i);if(void 0===a||void 0===a.body||f0(n,a.getSourceFile()))return;const s=function(e){const n=Dl(e);if(n)return n;if(fN(e.parent)&&dD(e.parent.name)||MD(e.parent)||DD(e.parent))return e.parent.name}(a);if(void 0===s)return;const l=[],d=[],u=c(a.parameters),p=c(r.arguments);if(u>p)return;const f=[a,...Nte(a,i)];for(let c=0,m=0,h=0;c<p;c++){const e=r.arguments[c],n=IT(e)?DT(e):e,t=o.getWidenedType(o.getBaseTypeOfLiteralType(o.getTypeAtLocation(e))),i=m<u?a.parameters[m]:void 0;if(i&&o.isTypeAssignableTo(t,o.getTypeAtLocation(i))){m++;continue}const s=n&&dD(n)?n.text:"p"+h++,p=Rte(o,t,a);re(l,{pos:c,declaration:Pte(s,p,void 0)}),Lte(f,m)||re(d,{pos:c,declaration:Pte(s,p,vR.createToken(58))})}return{newParameters:l,newOptionalParameters:d,name:Of(s),declarations:f}}function Rte(e,n,t){return e.typeToTypeNode(e.getWidenedType(n),t,1,8)??vR.createKeywordTypeNode(159)}function Ite(e,n,t,r,o,i){const a=SS(n.getCompilerOptions());d(o,o=>{const s=Sp(o),l=Ree(s,n,t,r);c(o.parameters)?e.replaceNodeRangeWithNodes(s,he(o.parameters),ye(o.parameters),Cte(l,a,o,i),{joiner:", ",indentation:0,leadingTriviaOption:tpe.LeadingTriviaOption.IncludeAll,trailingTriviaOption:tpe.TrailingTriviaOption.Include}):d(Cte(l,a,o,i),(n,t)=>{0===c(o.parameters)&&0===t?e.insertNodeAt(s,o.parameters.end,n):e.insertNodeAtEndOfList(s,o.parameters,n)}),l.writeFixes(e)})}function Dte(e){switch(e.kind){case 263:case 219:case 175:case 220:return!0;default:return!1}}function Cte(e,n,t,r){const o=D(t.parameters,e=>vR.createParameterDeclaration(e.modifiers,e.dotDotDotToken,e.name,e.questionToken,e.type,e.initializer));for(const{pos:i,declaration:a}of r){const t=i>0?o[i-1]:void 0;o.splice(i,0,vR.updateParameterDeclaration(a,a.modifiers,a.dotDotDotToken,a.name,t&&t.questionToken?vR.createToken(58):a.questionToken,kte(e,a.type,n),a.initializer))}return o}function Nte(e,n){const t=[];for(const r of n)if(Mte(r)){if(c(r.parameters)===c(e.parameters)){t.push(r);continue}if(c(r.parameters)>c(e.parameters))return[]}return t}function Mte(e){return Dte(e)&&void 0===e.body}function Pte(e,n,t){return vR.createParameterDeclaration(void 0,void 0,e,t,n,void 0)}function Lte(e,n){return c(e)&&U(e,e=>n<c(e.parameters)&&!!e.parameters[n]&&void 0===e.parameters[n].questionToken)}function kte(e,n,t){const r=_ie(n,t);return r?(yie(e,r.symbols),r.typeNode):n}X5({errorCodes:Ate,fixIds:[Ste,Ete],getCodeActions(e){const n=xte(e.sourceFile,e.program,e.span.start);if(void 0===n)return;const{name:t,declarations:r,newParameters:o,newOptionalParameters:i}=n,a=[];return c(o)&&re(a,K5(Ste,tpe.ChangeTracker.with(e,n=>Ite(n,e.program,e.preferences,e.host,r,o)),[c(o)>1?fa.Add_missing_parameters_to_0:fa.Add_missing_parameter_to_0,t],Ste,fa.Add_all_missing_parameters)),c(i)&&re(a,K5(Ete,tpe.ChangeTracker.with(e,n=>Ite(n,e.program,e.preferences,e.host,r,i)),[c(i)>1?fa.Add_optional_parameters_to_0:fa.Add_optional_parameter_to_0,t],Ete,fa.Add_all_optional_parameters)),a},getAllCodeActions:e=>n7(e,Ate,(n,t)=>{const r=xte(e.sourceFile,e.program,t.start);if(r){const{declarations:t,newParameters:o,newOptionalParameters:i}=r;e.fixId===Ste&&Ite(n,e.program,e.preferences,e.host,t,o),e.fixId===Ete&&Ite(n,e.program,e.preferences,e.host,t,i)}})});var wte="installTypesPackage",Ote=fa.Cannot_find_module_0_or_its_corresponding_type_declarations.code,Fte=fa.This_JSX_tag_requires_the_module_path_0_to_exist_but_none_could_be_found_Make_sure_you_have_types_for_the_appropriate_package_installed.code,Wte=[Ote,fa.Could_not_find_a_declaration_file_for_module_0_1_implicitly_has_an_any_type.code,Fte];function zte(e,n){return{type:"install package",file:e,packageName:n}}function Bte(e,n){const t=en(s$(e,n),qI);if(!t)return;const r=t.text,{packageName:o}=xW(r);return Ds(o)?void 0:o}function Gte(e,n,t){var r;return t===Ote?Mx.has(e)?"@types/node":void 0:(null==(r=n.isKnownTypesPackageName)?void 0:r.call(n,e))?BW(e):void 0}X5({errorCodes:Wte,getCodeActions:function(e){const{host:n,sourceFile:t,span:{start:r},errorCode:o}=e,i=o===Fte?QS(e.program.getCompilerOptions(),t):Bte(t,r);if(void 0===i)return;const a=Gte(i,n,o);return void 0===a?[]:[K5("fixCannotFindModule",[],[fa.Install_0,a],wte,fa.Install_all_missing_types_packages,zte(t.fileName,a))]},fixIds:[wte],getAllCodeActions:e=>n7(e,Wte,(n,t,r)=>{const o=Bte(t.file,t.start);if(void 0!==o)switch(e.fixId){case wte:{const n=Gte(o,e.host,t.code);n&&r.push(zte(t.file.fileName,n));break}default:dt.fail(`Bad fixId: ${e.fixId}`)}})});var Vte=[fa.Non_abstract_class_0_does_not_implement_inherited_abstract_member_1_from_class_2.code,fa.Non_abstract_class_0_is_missing_implementations_for_the_following_members_of_1_Colon_2.code,fa.Non_abstract_class_0_is_missing_implementations_for_the_following_members_of_1_Colon_2_and_3_more.code,fa.Non_abstract_class_expression_does_not_implement_inherited_abstract_member_0_from_class_1.code,fa.Non_abstract_class_expression_is_missing_implementations_for_the_following_members_of_0_Colon_1.code,fa.Non_abstract_class_expression_is_missing_implementations_for_the_following_members_of_0_Colon_1_and_2_more.code],jte="fixClassDoesntImplementInheritedAbstractMember";function Ute(e,n){return nn(s$(e,n).parent,md)}function Hte(e,n,t,r,o){const i=Tg(e),a=t.program.getTypeChecker(),s=a.getTypeAtLocation(i),l=a.getPropertiesOfType(s).filter(Kte),c=Ree(n,t.program,o,t.host);Xoe(e,l,n,t,o,c,t=>r.insertMemberAtStart(n,e,t)),c.writeFixes(r)}function Kte(e){const n=Hv(he(e.getDeclarations()));return!(2&n||!(64&n))}X5({errorCodes:Vte,getCodeActions:function(e){const{sourceFile:n,span:t}=e,r=tpe.ChangeTracker.with(e,r=>Hte(Ute(n,t.start),n,e,r,e.preferences));return 0===r.length?void 0:[K5(jte,r,fa.Implement_inherited_abstract_class,jte,fa.Implement_all_inherited_abstract_classes)]},fixIds:[jte],getAllCodeActions:function(e){const n=new Set;return n7(e,Vte,(t,r)=>{const o=Ute(r.file,r.start);AT(n,cB(o))&&Hte(o,e.sourceFile,e,t,e.preferences)})}});var qte="classSuperMustPrecedeThisAccess",Jte=[fa.super_must_be_called_before_accessing_this_in_the_constructor_of_a_derived_class.code];function Xte(e,n,t,r){e.insertNodeAtConstructorStart(n,t,r),e.delete(n,r)}function Yte(e,n){const t=s$(e,n);if(110!==t.kind)return;const r=$m(t),o=$te(r.body);return o&&!o.expression.arguments.some(e=>_C(e)&&e.expression===t)?{constructor:r,superCall:o}:void 0}function $te(e){return $C(e)&&pm(e.expression)?e:ad(e)?void 0:rk(e,$te)}X5({errorCodes:Jte,getCodeActions(e){const{sourceFile:n,span:t}=e,r=Yte(n,t.start);if(!r)return;const{constructor:o,superCall:i}=r,a=tpe.ChangeTracker.with(e,e=>Xte(e,n,o,i));return[K5(qte,a,fa.Make_super_call_the_first_statement_in_the_constructor,qte,fa.Make_all_super_calls_the_first_statement_in_their_constructor)]},fixIds:[qte],getAllCodeActions(e){const{sourceFile:n}=e,t=new Set;return n7(e,Jte,(e,r)=>{const o=Yte(r.file,r.start);if(!o)return;const{constructor:i,superCall:a}=o;AT(t,cB(i.parent))&&Xte(e,n,i,a)})}});var Qte="constructorForDerivedNeedSuperCall",Zte=[fa.Constructors_for_derived_classes_must_contain_a_super_call.code];function ere(e,n){const t=s$(e,n);return dt.assert(wD(t.parent),"token should be at the constructor declaration"),t.parent}function nre(e,n,t){const r=vR.createExpressionStatement(vR.createCallExpression(vR.createSuper(),void 0,s));e.insertNodeAtConstructorStart(n,t,r)}X5({errorCodes:Zte,getCodeActions(e){const{sourceFile:n,span:t}=e,r=ere(n,t.start),o=tpe.ChangeTracker.with(e,e=>nre(e,n,r));return[K5(Qte,o,fa.Add_missing_super_call,Qte,fa.Add_all_missing_super_calls)]},fixIds:[Qte],getAllCodeActions:e=>n7(e,Zte,(n,t)=>nre(n,e.sourceFile,ere(t.file,t.start)))});var tre="fixEnableJsxFlag",rre=[fa.Cannot_use_JSX_unless_the_jsx_flag_is_provided.code];function ore(e,n){fie(e,n,"jsx",vR.createStringLiteral("react"))}X5({errorCodes:rre,getCodeActions:function(e){const{configFile:n}=e.program.getCompilerOptions();if(void 0===n)return;const t=tpe.ChangeTracker.with(e,e=>ore(e,n));return[H5(tre,t,fa.Enable_the_jsx_flag_in_your_configuration_file)]},fixIds:[tre],getAllCodeActions:e=>n7(e,rre,n=>{const{configFile:t}=e.program.getCompilerOptions();void 0!==t&&ore(n,t)})});var ire="fixNaNEquality",are=[fa.This_condition_will_always_return_0.code];function sre(e,n,t){const r=y(e.getSemanticDiagnostics(n),e=>e.start===t.start&&e.length===t.length);if(void 0===r||void 0===r.relatedInformation)return;const o=y(r.relatedInformation,e=>e.code===fa.Did_you_mean_0.code);if(void 0===o||void 0===o.file||void 0===o.start||void 0===o.length)return;const i=vie(o.file,Js(o.start,o.length));return void 0!==i&&qd(i)&&MC(i.parent)?{suggestion:cre(o.messageText),expression:i.parent,arg:i}:void 0}function lre(e,n,t,r){const o=vR.createCallExpression(vR.createPropertyAccessExpression(vR.createIdentifier("Number"),vR.createIdentifier("isNaN")),void 0,[t]),i=r.operatorToken.kind;e.replaceNode(n,r,38===i||36===i?vR.createPrefixUnaryExpression(54,o):o)}function cre(e){const[,n]=gU(e,"\n",0).match(/'(.*)'/)||[];return n}X5({errorCodes:are,getCodeActions(e){const{sourceFile:n,span:t,program:r}=e,o=sre(r,n,t);if(void 0===o)return;const{suggestion:i,expression:a,arg:s}=o,l=tpe.ChangeTracker.with(e,e=>lre(e,n,s,a));return[K5(ire,l,[fa.Use_0,i],ire,fa.Use_Number_isNaN_in_all_conditions)]},fixIds:[ire],getAllCodeActions:e=>n7(e,are,(n,t)=>{const r=sre(e.program,t.file,Js(t.start,t.length));r&&lre(n,t.file,r.arg,r.expression)})}),X5({errorCodes:[fa.Top_level_await_expressions_are_only_allowed_when_the_module_option_is_set_to_es2022_esnext_system_node16_node18_node20_nodenext_or_preserve_and_the_target_option_is_set_to_es2017_or_higher.code,fa.Top_level_await_using_statements_are_only_allowed_when_the_module_option_is_set_to_es2022_esnext_system_node16_node18_node20_nodenext_or_preserve_and_the_target_option_is_set_to_es2017_or_higher.code,fa.Top_level_for_await_loops_are_only_allowed_when_the_module_option_is_set_to_es2022_esnext_system_node16_node18_node20_nodenext_or_preserve_and_the_target_option_is_set_to_es2017_or_higher.code],getCodeActions:function(e){const n=e.program.getCompilerOptions(),{configFile:t}=n;if(void 0===t)return;const r=[],o=ES(n);if(o>=5&&o<99){const n=tpe.ChangeTracker.with(e,e=>{fie(e,t,"module",vR.createStringLiteral("esnext"))});r.push(H5("fixModuleOption",n,[fa.Set_the_module_option_in_your_configuration_file_to_0,"esnext"]))}const i=SS(n);if(i<4||i>99){const n=tpe.ChangeTracker.with(e,e=>{if(!Jm(t))return;const n=[["target",vR.createStringLiteral("es2017")]];1===o&&n.push(["module",vR.createStringLiteral("commonjs")]),pie(e,t,n)});r.push(H5("fixTargetOption",n,[fa.Set_the_target_option_in_your_configuration_file_to_0,"es2017"]))}return r.length?r:void 0}});var dre="fixPropertyAssignment",ure=[fa.Did_you_mean_to_use_a_Colon_An_can_only_follow_a_property_name_when_the_containing_object_literal_is_part_of_a_destructuring_pattern.code];function pre(e,n,t){e.replaceNode(n,t,vR.createPropertyAssignment(t.name,t.objectAssignmentInitializer))}function fre(e,n){return nn(s$(e,n).parent,lM)}X5({errorCodes:ure,fixIds:[dre],getCodeActions(e){const{sourceFile:n,span:t}=e,r=fre(n,t.start),o=tpe.ChangeTracker.with(e,n=>pre(n,e.sourceFile,r));return[K5(dre,o,[fa.Change_0_to_1,"=",":"],dre,[fa.Switch_each_misused_0_to_1,"=",":"])]},getAllCodeActions:e=>n7(e,ure,(e,n)=>pre(e,n.file,fre(n.file,n.start)))});var mre="extendsInterfaceBecomesImplements",hre=[fa.Cannot_extend_an_interface_0_Did_you_mean_implements.code];function _re(e,n){const t=Zm(s$(e,n)).heritageClauses,r=t[0].getFirstToken();return 96===r.kind?{extendsToken:r,heritageClauses:t}:void 0}function gre(e,n,t,r){if(e.replaceNode(n,t,vR.createToken(119)),2===r.length&&96===r[0].token&&119===r[1].token){const t=r[1].getFirstToken(),o=t.getFullStart();e.replaceRange(n,{pos:o,end:o},vR.createToken(28));const i=n.text;let a=t.end;for(;a<i.length&&Ka(i.charCodeAt(a));)a++;e.deleteRange(n,{pos:t.getStart(),end:a})}}X5({errorCodes:hre,getCodeActions(e){const{sourceFile:n}=e,t=_re(n,e.span.start);if(!t)return;const{extendsToken:r,heritageClauses:o}=t,i=tpe.ChangeTracker.with(e,e=>gre(e,n,r,o));return[K5(mre,i,fa.Change_extends_to_implements,mre,fa.Change_all_extended_interfaces_to_implements)]},fixIds:[mre],getAllCodeActions:e=>n7(e,hre,(e,n)=>{const t=_re(n.file,n.start);t&&gre(e,n.file,t.extendsToken,t.heritageClauses)})});var yre="forgottenThisPropertyAccess",vre=fa.Cannot_find_name_0_Did_you_mean_the_static_member_1_0.code,bre=[fa.Cannot_find_name_0_Did_you_mean_the_instance_member_this_0.code,fa.Private_identifiers_are_only_allowed_in_class_bodies_and_may_only_be_used_as_part_of_a_class_member_declaration_property_access_or_on_the_left_hand_side_of_an_in_expression.code,vre];function Tre(e,n,t){const r=s$(e,n);if(dD(r)||uD(r))return{node:r,className:t===vre?Zm(r).name.text:void 0}}function Sre(e,n,{node:t,className:r}){qx(t),e.replaceNode(n,t,vR.createPropertyAccessExpression(r?vR.createIdentifier(r):vR.createThis(),t))}X5({errorCodes:bre,getCodeActions(e){const{sourceFile:n}=e,t=Tre(n,e.span.start,e.errorCode);if(!t)return;const r=tpe.ChangeTracker.with(e,e=>Sre(e,n,t));return[K5(yre,r,[fa.Add_0_to_unresolved_variable,t.className||"this"],yre,fa.Add_qualifier_to_all_unresolved_variables_matching_a_member_name)]},fixIds:[yre],getAllCodeActions:e=>n7(e,bre,(n,t)=>{const r=Tre(t.file,t.start,t.code);r&&Sre(n,e.sourceFile,r)})});var Ere="fixInvalidJsxCharacters_expression",Are="fixInvalidJsxCharacters_htmlEntity",xre=[fa.Unexpected_token_Did_you_mean_or_gt.code,fa.Unexpected_token_Did_you_mean_or_rbrace.code];X5({errorCodes:xre,fixIds:[Ere,Are],getCodeActions(e){const{sourceFile:n,preferences:t,span:r}=e,o=tpe.ChangeTracker.with(e,e=>Ire(e,t,n,r.start,!1)),i=tpe.ChangeTracker.with(e,e=>Ire(e,t,n,r.start,!0));return[K5(Ere,o,fa.Wrap_invalid_character_in_an_expression_container,Ere,fa.Wrap_all_invalid_characters_in_an_expression_container),K5(Are,i,fa.Convert_invalid_character_to_its_html_entity_code,Are,fa.Convert_all_invalid_characters_to_HTML_entity_code)]},getAllCodeActions:e=>n7(e,xre,(n,t)=>Ire(n,e.preferences,t.file,t.start,e.fixId===Are))});var Rre={">":">","}":"}"};function Ire(e,n,t,r,o){const i=t.getText()[r];if(!function(e){return Ie(Rre,e)}(i))return;const a=o?Rre[i]:`{${SZ(t,n,i)}}`;e.replaceRangeWithText(t,{pos:r,end:r+1},a)}var Dre="deleteUnmatchedParameter",Cre="renameUnmatchedParameter",Nre=[fa.JSDoc_param_tag_has_name_0_but_there_is_no_parameter_with_that_name.code];function Mre(e,n){const t=s$(e,n);if(t.parent&&jM(t.parent)&&dD(t.parent.name)){const e=t.parent,n=q_(e),r=H_(e);if(n&&r)return{jsDocHost:n,signature:r,name:t.parent.name,jsDocParameterTag:e}}}X5({fixIds:[Dre,Cre],errorCodes:Nre,getCodeActions:function(e){const{sourceFile:n,span:t}=e,r=[],o=Mre(n,t.start);if(o)return re(r,function(e,{name:n,jsDocHost:t,jsDocParameterTag:r}){const o=tpe.ChangeTracker.with(e,n=>n.filterJSDocTags(e.sourceFile,t,e=>e!==r));return K5(Dre,o,[fa.Delete_unused_param_tag_0,n.getText(e.sourceFile)],Dre,fa.Delete_all_unused_param_tags)}(e,o)),re(r,function(e,{name:n,jsDocHost:t,signature:r,jsDocParameterTag:o}){if(!c(r.parameters))return;const i=e.sourceFile,a=lc(r),s=new Set;for(const c of a)jM(c)&&dD(c.name)&&s.add(c.name.escapedText);const l=p(r.parameters,e=>dD(e.name)&&!s.has(e.name.escapedText)?e.name.getText(i):void 0);if(void 0===l)return;const d=vR.updateJSDocParameterTag(o,o.tagName,vR.createIdentifier(l),o.isBracketed,o.typeExpression,o.isNameFirst,o.comment),u=tpe.ChangeTracker.with(e,e=>e.replaceJSDocComment(i,t,D(a,e=>e===o?d:e)));return H5(Cre,u,[fa.Rename_param_tag_name_0_to_1,n.getText(i),l])}(e,o)),r},getAllCodeActions:function(e){const n=new Map;return Z5(tpe.ChangeTracker.with(e,t=>{t7(e,Nre,({file:e,start:t})=>{const r=Mre(e,t);r&&n.set(r.signature,re(n.get(r.signature),r.jsDocParameterTag))}),n.forEach((n,r)=>{if(e.fixId===Dre){const e=new Set(n);t.filterJSDocTags(r.getSourceFile(),r,n=>!e.has(n))}})}))}});var Pre="fixUnreferenceableDecoratorMetadata";X5({errorCodes:[fa.A_type_referenced_in_a_decorated_signature_must_be_imported_with_import_type_or_a_namespace_import_when_isolatedModules_and_emitDecoratorMetadata_are_enabled.code],getCodeActions:e=>{const n=function(e,n,t){const r=en(s$(e,t),dD);if(!r||184!==r.parent.kind)return;const o=n.getTypeChecker().getSymbolAtLocation(r);return y((null==o?void 0:o.declarations)||s,et(RN,wN,AN))}(e.sourceFile,e.program,e.span.start);if(!n)return;const t=tpe.ChangeTracker.with(e,t=>277===n.kind&&function(e,n,t,r){p8.doChangeNamedToNamespaceOrDefault(n,r,e,t.parent)}(t,e.sourceFile,n,e.program)),r=tpe.ChangeTracker.with(e,t=>function(e,n,t,r){if(272===t.kind)return void e.insertModifierBefore(n,156,t.name);const o=274===t.kind?t:t.parent.parent;if(o.name&&o.namedBindings)return;const i=r.getTypeChecker();if(D_(o,e=>{if(111551&cT(e.symbol,i).flags)return!0}))return;e.insertModifierBefore(n,156,o)}(t,e.sourceFile,n,e.program));let o;return t.length&&(o=re(o,H5(Pre,t,fa.Convert_named_imports_to_namespace_import))),r.length&&(o=re(o,H5(Pre,r,fa.Use_import_type))),o},fixIds:[Pre]});var Lre="unusedIdentifier",kre="unusedIdentifier_prefix",wre="unusedIdentifier_delete",Ore="unusedIdentifier_deleteImports",Fre="unusedIdentifier_infer",Wre=[fa._0_is_declared_but_its_value_is_never_read.code,fa._0_is_declared_but_never_used.code,fa.Property_0_is_declared_but_its_value_is_never_read.code,fa.All_imports_in_import_declaration_are_unused.code,fa.All_destructured_elements_are_unused.code,fa.All_variables_are_unused.code,fa.All_type_parameters_are_unused.code];function zre(e,n,t){e.replaceNode(n,t.parent,vR.createKeywordTypeNode(159))}function Bre(e,n){return K5(Lre,e,n,wre,fa.Delete_all_unused_declarations)}function Gre(e,n,t){e.delete(n,dt.checkDefined(nn(t.parent,Rf).typeParameters,"The type parameter to delete should exist"))}function Vre(e){return 102===e.kind||80===e.kind&&(277===e.parent.kind||274===e.parent.kind)}function jre(e){return 102===e.kind?en(e.parent,xN):void 0}function Ure(e,n){return mN(n.parent)&&he(n.parent.getChildren(e))===n}function Hre(e,n,t){e.delete(n,244===t.parent.kind?t.parent:t)}function Kre(e,n,t,r){n!==fa.Property_0_is_declared_but_its_value_is_never_read.code&&(140===r.kind&&(r=nn(r.parent,nC).typeParameter.name),dD(r)&&function(e){switch(e.parent.kind){case 170:case 169:return!0;case 261:switch(e.parent.parent.parent.kind){case 251:case 250:return!0}}return!1}(r)&&(e.replaceNode(t,r,vR.createIdentifier(`_${r.text}`)),DD(r.parent)&&Ll(r.parent).forEach(n=>{dD(n.name)&&e.replaceNode(t,n.name,vR.createIdentifier(`_${n.name.text}`))})))}function qre(e,n,t,r,o,i,a,s){!function(e,n,t,r,o,i,a,s){const{parent:l}=e;if(DD(l))!function(e,n,t,r,o,i,a,s=!1){if(function(e,n,t,r,o,i,a){const{parent:s}=t;switch(s.kind){case 175:case 177:const l=s.parameters.indexOf(t),c=LD(s)?s.name:s,d=kle.Core.getReferencedSymbolsForNode(s.pos,c,o,r,i);if(d)for(const e of d)for(const n of e.references)if(n.kind===kle.EntryKind.Node){const e=SD(n.node)&&yC(n.node.parent)&&n.node.parent.arguments.length>l,r=_C(n.node.parent)&&SD(n.node.parent.expression)&&yC(n.node.parent.parent)&&n.node.parent.parent.arguments.length>l,o=(LD(n.node.parent)||PD(n.node.parent))&&n.node.parent!==t.parent&&n.node.parent.parameters.length>l;if(e||r||o)return!1}return!0;case 263:return!s.name||!function(e,n,t){return!!kle.Core.eachSymbolReferenceInFile(t,e,n,e=>dD(e)&&yC(e.parent)&&e.parent.arguments.includes(e))}(e,n,s.name)||Xre(s,t,a);case 219:case 220:return Xre(s,t,a);case 179:return!1;case 178:return!0;default:return dt.failBadSyntaxKind(s)}}(r,n,t,o,i,a,s))if(t.modifiers&&t.modifiers.length>0&&(!dD(t.name)||kle.Core.isSymbolReferencedInFile(t.name,r,n)))for(const l of t.modifiers)td(l)&&e.deleteModifier(n,l);else!t.initializer&&Jre(t,r,o)&&e.delete(n,t)}(n,t,l,r,o,i,a,s);else if(!(s&&dD(e)&&kle.Core.isSymbolReferencedInFile(e,r,t))){const r=RN(l)?e:RD(l)?l.parent:l;dt.assert(r!==t,"should not delete whole source file"),n.delete(t,r)}}(n,t,e,r,o,i,a,s),dD(n)&&kle.Core.eachSymbolReferenceInFile(n,r,e,n=>{var r;_C(n.parent)&&n.parent.name===n&&(n=n.parent),!s&&((MC((r=n).parent)&&r.parent.left===r||(NC(r.parent)||CC(r.parent))&&r.parent.operand===r)&&$C(r.parent.parent))&&t.delete(e,n.parent.parent)})}function Jre(e,n,t){const r=e.parent.parameters.indexOf(e);return!kle.Core.someSignatureUsage(e.parent,t,n,(e,n)=>!n||n.arguments.length>r)}function Xre(e,n,t){const r=e.parameters,o=r.indexOf(n);return dt.assert(-1!==o,"The parameter should already be in the list"),t?r.slice(o+1).every(e=>dD(e.name)&&!e.symbol.isReferenced):o===r.length-1}function Yre(e,n,t){const r=t.symbol.declarations;if(r)for(const o of r)e.delete(n,o)}X5({errorCodes:Wre,getCodeActions(e){const{errorCode:n,sourceFile:t,program:r,cancellationToken:o}=e,i=r.getTypeChecker(),a=r.getSourceFiles(),s=s$(t,e.span.start);if(qM(s))return[Bre(tpe.ChangeTracker.with(e,e=>e.delete(t,s)),fa.Remove_template_tag)];if(30===s.kind){return[Bre(tpe.ChangeTracker.with(e,e=>Gre(e,t,s)),fa.Remove_type_parameters)]}const l=jre(s);if(l){const n=tpe.ChangeTracker.with(e,e=>e.delete(t,l));return[K5(Lre,n,[fa.Remove_import_from_0,ST(l)],Ore,fa.Delete_all_unused_imports)]}if(Vre(s)){const n=tpe.ChangeTracker.with(e,e=>qre(t,s,e,i,a,r,o,!1));if(n.length)return[K5(Lre,n,[fa.Remove_unused_declaration_for_Colon_0,s.getText(t)],Ore,fa.Delete_all_unused_imports)]}if(uC(s.parent)||pC(s.parent)){if(DD(s.parent.parent)){const n=s.parent.elements,r=[n.length>1?fa.Remove_unused_declarations_for_Colon_0:fa.Remove_unused_declaration_for_Colon_0,D(n,e=>e.getText(t)).join(", ")];return[Bre(tpe.ChangeTracker.with(e,e=>function(e,n,t){d(t.elements,t=>e.delete(n,t))}(e,t,s.parent)),r)]}return[Bre(tpe.ChangeTracker.with(e,n=>function(e,n,t,{parent:r}){if(fN(r)&&r.initializer&&Wd(r.initializer))if(mN(r.parent)&&c(r.parent.declarations)>1){const o=r.parent.parent,i=o.getStart(t),a=o.end;n.delete(t,r),n.insertNodeAt(t,a,r.initializer,{prefix:ZQ(e.host,e.formatContext.options)+t.text.slice(uZ(t.text,i-1),i),suffix:wZ(t)?";":""})}else n.replaceNode(t,r.parent,r.initializer);else n.delete(t,r)}(e,n,t,s.parent)),fa.Remove_unused_destructuring_declaration)]}if(Ure(t,s))return[Bre(tpe.ChangeTracker.with(e,e=>Hre(e,t,s.parent)),fa.Remove_variable_statement)];if(dD(s)&&hN(s.parent))return[Bre(tpe.ChangeTracker.with(e,e=>Yre(e,t,s.parent)),[fa.Remove_unused_declaration_for_Colon_0,s.getText(t)])];const u=[];if(140===s.kind){const n=tpe.ChangeTracker.with(e,e=>zre(e,t,s)),r=nn(s.parent,nC).typeParameter.name.text;u.push(K5(Lre,n,[fa.Replace_infer_0_with_unknown,r],Fre,fa.Replace_all_unused_infer_with_unknown))}else{const n=tpe.ChangeTracker.with(e,e=>qre(t,s,e,i,a,r,o,!1));if(n.length){const e=RD(s.parent)?s.parent:s;u.push(Bre(n,[fa.Remove_unused_declaration_for_Colon_0,e.getText(t)]))}}const p=tpe.ChangeTracker.with(e,e=>Kre(e,n,t,s));return p.length&&u.push(K5(Lre,p,[fa.Prefix_0_with_an_underscore,s.getText(t)],kre,fa.Prefix_all_unused_declarations_with_where_possible)),u},fixIds:[kre,wre,Ore,Fre],getAllCodeActions:e=>{const{sourceFile:n,program:t,cancellationToken:r}=e,o=t.getTypeChecker(),i=t.getSourceFiles();return n7(e,Wre,(a,s)=>{const l=s$(n,s.start);switch(e.fixId){case kre:Kre(a,s.code,n,l);break;case Ore:{const e=jre(l);e?a.delete(n,e):Vre(l)&&qre(n,l,a,o,i,t,r,!0);break}case wre:if(140===l.kind||Vre(l))break;if(qM(l))a.delete(n,l);else if(30===l.kind)Gre(a,n,l);else if(uC(l.parent)){if(l.parent.parent.initializer)break;DD(l.parent.parent)&&!Jre(l.parent.parent,o,i)||a.delete(n,l.parent.parent)}else{if(pC(l.parent.parent)&&l.parent.parent.parent.initializer)break;Ure(n,l)?Hre(a,n,l.parent):dD(l)&&hN(l.parent)?Yre(a,n,l.parent):qre(n,l,a,o,i,t,r,!0)}break;case Fre:140===l.kind&&zre(a,n,l);break;default:dt.fail(JSON.stringify(e.fixId))}})}});var $re="fixUnreachableCode",Qre=[fa.Unreachable_code_detected.code];function Zre(e,n,t,r,o){const i=s$(n,t),a=ml(i,_u);if(a.getStart(n)!==i.getStart(n)){const e=JSON.stringify({statementKind:dt.formatSyntaxKind(a.kind),tokenKind:dt.formatSyntaxKind(i.kind),errorCode:o,start:t,length:r});dt.fail("Token and statement should start at the same point. "+e)}const l=(JC(a.parent)?a.parent:a).parent;if(!JC(a.parent)||a===he(a.parent.statements))switch(l.kind){case 246:if(l.elseStatement){if(JC(a.parent))break;return void e.replaceNode(n,a,vR.createBlock(s))}case 248:case 249:return void e.delete(n,l)}if(JC(a.parent)){const o=t+r,i=dt.checkDefined(function(e,n){let t;for(const r of e){if(!n(r))break;t=r}return t}(cA(a.parent.statements,a),e=>e.pos<o),"Some statement should be last");e.deleteNodeRange(n,a,i)}else e.delete(n,a)}X5({errorCodes:Qre,getCodeActions(e){if(e.program.getSyntacticDiagnostics(e.sourceFile,e.cancellationToken).length)return;const n=tpe.ChangeTracker.with(e,n=>Zre(n,e.sourceFile,e.span.start,e.span.length,e.errorCode));return[K5($re,n,fa.Remove_unreachable_code,$re,fa.Remove_all_unreachable_code)]},fixIds:[$re],getAllCodeActions:e=>n7(e,Qre,(e,n)=>Zre(e,n.file,n.start,n.length,n.code))});var eoe="fixUnusedLabel",noe=[fa.Unused_label.code];function toe(e,n,t){const r=s$(n,t),o=nn(r.parent,cN),i=r.getStart(n),a=o.statement.getStart(n),s=Yb(i,a,n)?a:es(n.text,qY(o,59,n).end,!0);e.deleteRange(n,{pos:i,end:s})}X5({errorCodes:noe,getCodeActions(e){const n=tpe.ChangeTracker.with(e,n=>toe(n,e.sourceFile,e.span.start));return[K5(eoe,n,fa.Remove_unused_label,eoe,fa.Remove_all_unused_labels)]},fixIds:[eoe],getAllCodeActions:e=>n7(e,noe,(e,n)=>toe(e,n.file,n.start))});var roe="fixJSDocTypes_plain",ooe="fixJSDocTypes_nullable",ioe=[fa.JSDoc_types_can_only_be_used_inside_documentation_comments.code,fa._0_at_the_end_of_a_type_is_not_valid_TypeScript_syntax_Did_you_mean_to_write_1.code,fa._0_at_the_start_of_a_type_is_not_valid_TypeScript_syntax_Did_you_mean_to_write_1.code];function aoe(e,n,t,r,o){e.replaceNode(n,t,o.typeToTypeNode(r,t,void 0))}function soe(e,n,t){const r=ml(s$(e,n),loe),o=r&&r.type;return o&&{typeNode:o,type:coe(t,o)}}function loe(e){switch(e.kind){case 235:case 180:case 181:case 263:case 178:case 182:case 201:case 175:case 174:case 170:case 173:case 172:case 179:case 266:case 217:case 261:return!0;default:return!1}}function coe(e,n){if(TM(n)){const t=e.getTypeFromTypeNode(n.type);return t===e.getNeverType()||t===e.getVoidType()?t:e.getUnionType(re([t,e.getUndefinedType()],n.postfix?void 0:e.getNullType()))}return e.getTypeFromTypeNode(n)}X5({errorCodes:ioe,getCodeActions(e){const{sourceFile:n}=e,t=e.program.getTypeChecker(),r=soe(n,e.span.start,t);if(!r)return;const{typeNode:o,type:i}=r,a=o.getText(n),s=[l(i,roe,fa.Change_all_jsdoc_style_types_to_TypeScript)];return 315===o.kind&&s.push(l(i,ooe,fa.Change_all_jsdoc_style_types_to_TypeScript_and_add_undefined_to_nullable_types)),s;function l(r,i,s){return K5("jdocTypes",tpe.ChangeTracker.with(e,e=>aoe(e,n,o,r,t)),[fa.Change_0_to_1,a,t.typeToString(r)],i,s)}},fixIds:[roe,ooe],getAllCodeActions(e){const{fixId:n,program:t,sourceFile:r}=e,o=t.getTypeChecker();return n7(e,ioe,(e,t)=>{const i=soe(t.file,t.start,o);if(!i)return;const{typeNode:a,type:s}=i,l=315===a.kind&&n===ooe?o.getNullableType(s,32768):s;aoe(e,r,a,l,o)})}});var doe="fixMissingCallParentheses",uoe=[fa.This_condition_will_always_return_true_since_this_function_is_always_defined_Did_you_mean_to_call_it_instead.code];function poe(e,n,t){e.replaceNodeWithText(n,t,`${t.text}()`)}function foe(e,n){const t=s$(e,n);if(_C(t.parent)){let e=t.parent;for(;_C(e.parent);)e=e.parent;return e.name}if(dD(t))return t}X5({errorCodes:uoe,fixIds:[doe],getCodeActions(e){const{sourceFile:n,span:t}=e,r=foe(n,t.start);if(!r)return;const o=tpe.ChangeTracker.with(e,n=>poe(n,e.sourceFile,r));return[K5(doe,o,fa.Add_missing_call_parentheses,doe,fa.Add_all_missing_call_parentheses)]},getAllCodeActions:e=>n7(e,uoe,(e,n)=>{const t=foe(n.file,n.start);t&&poe(e,n.file,t)})});var moe="fixMissingTypeAnnotationOnExports",hoe="add-annotation",_oe="add-type-assertion",goe=[fa.Function_must_have_an_explicit_return_type_annotation_with_isolatedDeclarations.code,fa.Method_must_have_an_explicit_return_type_annotation_with_isolatedDeclarations.code,fa.At_least_one_accessor_must_have_an_explicit_type_annotation_with_isolatedDeclarations.code,fa.Variable_must_have_an_explicit_type_annotation_with_isolatedDeclarations.code,fa.Parameter_must_have_an_explicit_type_annotation_with_isolatedDeclarations.code,fa.Property_must_have_an_explicit_type_annotation_with_isolatedDeclarations.code,fa.Expression_type_can_t_be_inferred_with_isolatedDeclarations.code,fa.Binding_elements_can_t_be_exported_directly_with_isolatedDeclarations.code,fa.Computed_property_names_on_class_or_object_literals_cannot_be_inferred_with_isolatedDeclarations.code,fa.Computed_properties_must_be_number_or_string_literals_variables_or_dotted_expressions_with_isolatedDeclarations.code,fa.Enum_member_initializers_must_be_computable_without_references_to_external_symbols_with_isolatedDeclarations.code,fa.Extends_clause_can_t_contain_an_expression_with_isolatedDeclarations.code,fa.Objects_that_contain_shorthand_properties_can_t_be_inferred_with_isolatedDeclarations.code,fa.Objects_that_contain_spread_assignments_can_t_be_inferred_with_isolatedDeclarations.code,fa.Arrays_with_spread_elements_can_t_inferred_with_isolatedDeclarations.code,fa.Default_exports_can_t_be_inferred_with_isolatedDeclarations.code,fa.Only_const_arrays_can_be_inferred_with_isolatedDeclarations.code,fa.Assigning_properties_to_functions_without_declaring_them_is_not_supported_with_isolatedDeclarations_Add_an_explicit_declaration_for_the_properties_assigned_to_this_function.code,fa.Declaration_emit_for_this_parameter_requires_implicitly_adding_undefined_to_its_type_This_is_not_supported_with_isolatedDeclarations.code,fa.Type_containing_private_name_0_can_t_be_used_with_isolatedDeclarations.code,fa.Add_satisfies_and_a_type_assertion_to_this_expression_satisfies_T_as_T_to_make_the_type_explicit.code],yoe=new Set([178,175,173,263,219,220,261,170,278,264,207,208]),voe=531469;function boe(e,n,t,r,o){const i=Toe(t,r,o);i.result&&i.textChanges.length&&n.push(K5(e,i.textChanges,i.result,moe,fa.Add_all_missing_type_annotations))}function Toe(e,n,t){const r={typeNode:void 0,mutatedTarget:!1},o=tpe.ChangeTracker.fromContext(e),i=e.sourceFile,a=e.program,s=a.getTypeChecker(),l=SS(a.getCompilerOptions()),c=Ree(e.sourceFile,e.program,e.preferences,e.host),d=new Set,u=new Set,p=Mj({preserveSourceNewlines:!1}),f=t({addTypeAnnotation:function(n){e.cancellationToken.throwIfCancellationRequested();const t=s$(i,n.start),r=_(t);if(r)return hN(r)?function(e){var n;if(null==u?void 0:u.has(e))return;null==u||u.add(e);const t=s.getTypeAtLocation(e),r=s.getPropertiesOfType(t);if(!e.name||0===r.length)return;const l=[];for(const o of r)ys(o.name,SS(a.getCompilerOptions()))&&(o.valueDeclaration&&fN(o.valueDeclaration)||l.push(vR.createVariableStatement([vR.createModifier(95)],vR.createVariableDeclarationList([vR.createVariableDeclaration(o.name,void 0,R(s.getTypeOfSymbol(o),e),void 0)]))));if(0===l.length)return;const c=[];(null==(n=e.modifiers)?void 0:n.some(e=>95===e.kind))&&c.push(vR.createModifier(95));c.push(vR.createModifier(138));const d=vR.createModuleDeclaration(c,e.name,vR.createModuleBlock(l),101441696);return o.insertNodeAfter(i,e,d),[fa.Annotate_types_of_properties_expando_function_in_a_namespace]}(r):g(r);const l=(c=t,ml(c,e=>yoe.has(e.kind)&&(!uC(e)&&!pC(e)||fN(e.parent))));var c;if(l)return g(l);return},addInlineAssertion:function(n){e.cancellationToken.throwIfCancellationRequested();const t=s$(i,n.start);if(_(t))return;const r=C(t,n);if(!r||rg(r)||rg(r.parent))return;const a=qd(r),l=lM(r);if(!l&&fu(r))return;if(ml(r,xd))return;if(ml(r,dM))return;if(a&&(ml(r,iM)||ml(r,Ed)))return;if(wC(r))return;const c=ml(r,fN),d=c&&s.getTypeAtLocation(c);if(d&&8192&d.flags)return;if(!a&&!l)return;const{typeNode:u,mutatedTarget:p}=T(r,d);if(!u||p)return;l?o.insertNodeAt(i,r.end,h(Vx(r.name),u),{prefix:": "}):a?o.replaceNode(i,r,function(e,n){m(e)&&(e=vR.createParenthesizedExpression(e));return vR.createAsExpression(vR.createSatisfiesExpression(e,Vx(n)),n)}(Vx(r),u)):dt.assertNever(r);return[fa.Add_satisfies_and_an_inline_type_assertion_with_0,D(u)]},extractAsVariable:function(n){e.cancellationToken.throwIfCancellationRequested();const t=C(s$(i,n.start),n);if(!t||rg(t)||rg(t.parent))return;if(!qd(t))return;if(mC(t))return o.replaceNode(i,t,h(t,vR.createTypeReferenceNode("const"))),[fa.Mark_array_literal_as_const];const r=ml(t,sM);if(r){if(r===t.parent&&db(t))return;const e=vR.createUniqueName(x6(t,i,s,i),16);let n=t,a=t;if(wC(n)&&(n=ag(n.parent),a=A(n.parent)?n=n.parent:h(n,vR.createTypeReferenceNode("const"))),db(n))return;const l=vR.createVariableStatement(void 0,vR.createVariableDeclarationList([vR.createVariableDeclaration(e,void 0,void 0,a)],2)),c=ml(t,_u);return o.insertNodeBefore(i,c,l),o.replaceNode(i,n,vR.createAsExpression(vR.cloneNode(e),vR.createTypeQueryNode(vR.cloneNode(e)))),[fa.Extract_to_variable_and_replace_with_0_as_typeof_0,D(e)]}}});return c.writeFixes(o),{result:f,textChanges:o.getChanges()};function m(e){return!(db(e)||yC(e)||hC(e)||mC(e))}function h(e,n){return m(e)&&(e=vR.createParenthesizedExpression(e)),vR.createAsExpression(e,n)}function _(e){const n=ml(e,e=>_u(e)?"quit":fx(e));if(n&&fx(n)){let e=n;if(MC(e)&&(e=e.left,!fx(e)))return;const t=s.getTypeAtLocation(e.expression);if(!t)return;if(U(s.getPropertiesOfType(t),e=>e.valueDeclaration===n||e.valueDeclaration===n.parent)){const e=t.symbol.valueDeclaration;if(e){if(VA(e)&&fN(e.parent))return e.parent;if(hN(e))return e}}}}function g(e){if(!(null==d?void 0:d.has(e)))switch(null==d||d.add(e),e.kind){case 170:case 173:case 261:return function(e){const{typeNode:n}=T(e);if(n)return e.type?o.replaceNode(Sp(e),e.type,n):o.tryInsertTypeAnnotation(Sp(e),e,n),[fa.Add_annotation_of_type_0,D(n)]}(e);case 220:case 219:case 263:case 175:case 178:return function(e,n){if(e.type)return;const{typeNode:t}=T(e);if(t)return o.tryInsertTypeAnnotation(n,e,t),[fa.Add_return_type_0,D(t)]}(e,i);case 278:return function(e){if(e.isExportEquals)return;const{typeNode:n}=T(e.expression);if(!n)return;const t=vR.createUniqueName("_default");return o.replaceNodeWithNodes(i,e,[vR.createVariableStatement(void 0,vR.createVariableDeclarationList([vR.createVariableDeclaration(t,void 0,n,e.expression)],2)),vR.updateExportAssignment(e,null==e?void 0:e.modifiers,t)]),[fa.Extract_default_export_to_variable]}(e);case 264:return function(e){var n,t;const r=null==(n=e.heritageClauses)?void 0:n.find(e=>96===e.token),a=null==r?void 0:r.types[0];if(!a)return;const{typeNode:s}=T(a.expression);if(!s)return;const l=vR.createUniqueName(e.name?e.name.text+"Base":"Anonymous",16),c=vR.createVariableStatement(void 0,vR.createVariableDeclarationList([vR.createVariableDeclaration(l,void 0,s,a.expression)],2));o.insertNodeBefore(i,e,c);const d=ms(i.text,a.end),u=(null==(t=null==d?void 0:d[d.length-1])?void 0:t.end)??a.end;return o.replaceRange(i,{pos:a.getFullStart(),end:u},l,{prefix:" "}),[fa.Extract_base_class_to_variable]}(e);case 207:case 208:return function(e){var n;const t=e.parent,r=e.parent.parent.parent;if(!t.initializer)return;let a;const s=[];if(dD(t.initializer))a={expression:{kind:3,identifier:t.initializer}};else{const e=vR.createUniqueName("dest",16);a={expression:{kind:3,identifier:e}},s.push(vR.createVariableStatement(void 0,vR.createVariableDeclarationList([vR.createVariableDeclaration(e,void 0,void 0,t.initializer)],2)))}const l=[];pC(e)?y(e,l,a):v(e,l,a);const c=new Map;for(const o of l){if(o.element.propertyName&&RD(o.element.propertyName)){const e=o.element.propertyName.expression,n=vR.getGeneratedNameForNode(e),t=vR.createVariableDeclaration(n,void 0,void 0,e),r=vR.createVariableDeclarationList([t],2),i=vR.createVariableStatement(void 0,r);s.push(i),c.set(e,n)}const e=o.element.name;if(pC(e))y(e,l,o);else if(uC(e))v(e,l,o);else{const{typeNode:t}=T(e);let i=b(o,c);if(o.element.initializer){const e=null==(n=o.element)?void 0:n.propertyName,t=vR.createUniqueName(e&&dD(e)?e.text:"temp",16);s.push(vR.createVariableStatement(void 0,vR.createVariableDeclarationList([vR.createVariableDeclaration(t,void 0,void 0,i)],2))),i=vR.createConditionalExpression(vR.createBinaryExpression(t,vR.createToken(37),vR.createIdentifier("undefined")),vR.createToken(58),o.element.initializer,vR.createToken(59),i)}const a=Mv(r,32)?[vR.createToken(95)]:void 0;s.push(vR.createVariableStatement(a,vR.createVariableDeclarationList([vR.createVariableDeclaration(e,void 0,t,i)],2)))}}r.declarationList.declarations.length>1&&s.push(vR.updateVariableStatement(r,r.modifiers,vR.updateVariableDeclarationList(r.declarationList,r.declarationList.declarations.filter(n=>n!==e.parent))));return o.replaceNodeWithNodes(i,r,s),[fa.Extract_binding_expressions_to_variable]}(e);default:throw new Error(`Cannot find a fix for the given node ${e.kind}`)}}function y(e,n,t){for(let r=0;r<e.elements.length;++r){const o=e.elements[r];FC(o)||n.push({element:o,parent:t,expression:{kind:2,arrayIndex:r}})}}function v(e,n,t){for(const r of e.elements){let e;if(r.propertyName){if(RD(r.propertyName)){n.push({element:r,parent:t,expression:{kind:1,computed:r.propertyName.expression}});continue}e=r.propertyName.text}else e=r.name.text;n.push({element:r,parent:t,expression:{kind:0,text:e}})}}function b(e,n){const t=[e];for(;e.parent;)e=e.parent,t.push(e);let r=t[t.length-1].expression.identifier;for(let o=t.length-2;o>=0;--o){const e=t[o].expression;0===e.kind?r=vR.createPropertyAccessChain(r,void 0,vR.createIdentifier(e.text)):1===e.kind?r=vR.createElementAccessExpression(r,n.get(e.computed)):2===e.kind&&(r=vR.createElementAccessExpression(r,e.arrayIndex))}return r}function T(e,t){if(1===n)return x(e);let o;if(rg(e)){const n=s.getSignatureFromDeclaration(e);if(n){const t=s.getTypePredicateOfSignature(n);if(t)return t.type?{typeNode:I(t,ml(e,fu)??i,l(t.type)),mutatedTarget:!1}:r;o=s.getReturnTypeOfSignature(n)}}else o=s.getTypeAtLocation(e);if(!o)return r;if(2===n){t&&(o=t);const e=s.getWidenedLiteralType(o);if(s.isTypeAssignableTo(e,o))return r;o=e}const a=ml(e,fu)??i;return DD(e)&&s.requiresAddingImplicitUndefined(e,a)&&(o=s.getUnionType([s.getUndefinedType(),o],0)),{typeNode:R(o,a,l(o)),mutatedTarget:!1};function l(n){return(fN(e)||MD(e)&&Mv(e,264))&&8192&n.flags?1048576:0}}function S(e){return vR.createTypeQueryNode(Vx(e))}function E(e,n,t,a,s,l,c,d){const u=[],p=[];let f;const m=ml(e,_u);for(const r of a(e))s(r)?(_(),db(r.expression)?(u.push(S(r.expression)),p.push(r)):h(r.expression)):(f??(f=[])).push(r);return 0===p.length?r:(_(),o.replaceNode(i,e,c(p)),{typeNode:d(u),mutatedTarget:!0});function h(e){const r=vR.createUniqueName(n+"_Part"+(p.length+1),16),a=t?vR.createAsExpression(e,vR.createTypeReferenceNode("const")):e,s=vR.createVariableStatement(void 0,vR.createVariableDeclarationList([vR.createVariableDeclaration(r,void 0,void 0,a)],2));o.insertNodeBefore(i,m,s),u.push(S(r)),p.push(l(r))}function _(){f&&(h(c(f)),f=void 0)}}function A(e){return Jd(e)&&xc(e.type)}function x(e){if(DD(e))return r;if(lM(e))return{typeNode:S(e.name),mutatedTarget:!1};if(db(e))return{typeNode:S(e),mutatedTarget:!1};if(A(e))return x(e.expression);if(mC(e)){const n=ml(e,fN);return function(e,n="temp"){const t=!!ml(e,A);return t?E(e,n,t,e=>e.elements,wC,vR.createSpreadElement,e=>vR.createArrayLiteralExpression(e,!0),e=>vR.createTupleTypeNode(e.map(vR.createRestTypeNode))):r}(e,n&&dD(n.name)?n.name.text:void 0)}if(hC(e)){const n=ml(e,fN);return function(e,n="temp"){return E(e,n,!!ml(e,A),e=>e.properties,cM,vR.createSpreadAssignment,e=>vR.createObjectLiteralExpression(e,!0),vR.createIntersectionTypeNode)}(e,n&&dD(n.name)?n.name.text:void 0)}if(fN(e)&&e.initializer)return x(e.initializer);if(PC(e)){const{typeNode:n,mutatedTarget:t}=x(e.whenTrue);if(!n)return r;const{typeNode:o,mutatedTarget:i}=x(e.whenFalse);return o?{typeNode:vR.createUnionTypeNode([n,o]),mutatedTarget:t||i}:r}return r}function R(e,n,t=0){let r=!1;const o=oie(s,e,n,voe|t,1,{moduleResolverHost:a,trackSymbol:()=>!0,reportTruncationError(){r=!0}});if(!o)return;const i=rie(o,c,l);return r?vR.createKeywordTypeNode(133):i}function I(e,n,t=0){let r=!1;const o=iie(s,c,e,n,l,voe|t,1,{moduleResolverHost:a,trackSymbol:()=>!0,reportTruncationError(){r=!0}});return r?vR.createKeywordTypeNode(133):o}function D(e){xR(e,1);const n=p.printNode(4,e,i);return n.length>qu?n.substring(0,qu-3)+"...":(xR(e,0),n)}function C(e,n){for(;e&&e.end<n.start+n.length;)e=e.parent;for(;e.parent.pos===e.pos&&e.parent.end===e.end;)e=e.parent;return dD(e)&&Lu(e.parent)&&e.parent.initializer?e.parent.initializer:e}}X5({errorCodes:goe,fixIds:[moe],getCodeActions(e){const n=[];return boe(hoe,n,e,0,n=>n.addTypeAnnotation(e.span)),boe(hoe,n,e,1,n=>n.addTypeAnnotation(e.span)),boe(hoe,n,e,2,n=>n.addTypeAnnotation(e.span)),boe(_oe,n,e,0,n=>n.addInlineAssertion(e.span)),boe(_oe,n,e,1,n=>n.addInlineAssertion(e.span)),boe(_oe,n,e,2,n=>n.addInlineAssertion(e.span)),boe("extract-expression",n,e,0,n=>n.extractAsVariable(e.span)),n},getAllCodeActions:e=>Z5(Toe(e,0,n=>{t7(e,goe,e=>{n.addTypeAnnotation(e)})}).textChanges)});var Soe="fixAwaitInSyncFunction",Eoe=[fa.await_expressions_are_only_allowed_within_async_functions_and_at_the_top_levels_of_modules.code,fa.await_using_statements_are_only_allowed_within_async_functions_and_at_the_top_levels_of_modules.code,fa.for_await_loops_are_only_allowed_within_async_functions_and_at_the_top_levels_of_modules.code,fa.Cannot_find_name_0_Did_you_mean_to_write_this_in_an_async_function.code];function Aoe(e,n){const t=$m(s$(e,n));if(!t)return;let r;switch(t.kind){case 175:r=t.name;break;case 263:case 219:r=qY(t,100,e);break;case 220:r=qY(t,t.typeParameters?30:21,e)||he(t.parameters);break;default:return}return r&&{insertBefore:r,returnType:(o=t,o.type?o.type:fN(o.parent)&&o.parent.type&&jD(o.parent.type)?o.parent.type.type:void 0)};var o}function xoe(e,n,{insertBefore:t,returnType:r}){if(r){const t=fh(r);t&&80===t.kind&&"Promise"===t.text||e.replaceNode(n,r,vR.createTypeReferenceNode("Promise",vR.createNodeArray([r])))}e.insertModifierBefore(n,134,t)}X5({errorCodes:Eoe,getCodeActions(e){const{sourceFile:n,span:t}=e,r=Aoe(n,t.start);if(!r)return;const o=tpe.ChangeTracker.with(e,e=>xoe(e,n,r));return[K5(Soe,o,fa.Add_async_modifier_to_containing_function,Soe,fa.Add_all_missing_async_modifiers)]},fixIds:[Soe],getAllCodeActions:function(e){const n=new Set;return n7(e,Eoe,(t,r)=>{const o=Aoe(r.file,r.start);o&&AT(n,cB(o.insertBefore))&&xoe(t,e.sourceFile,o)})}});var Roe=[fa._0_is_defined_as_an_accessor_in_class_1_but_is_overridden_here_in_2_as_an_instance_property.code,fa._0_is_defined_as_a_property_in_class_1_but_is_overridden_here_in_2_as_an_accessor.code],Ioe="fixPropertyOverrideAccessor";function Doe(e,n,t,r,o){let i,a;if(r===fa._0_is_defined_as_an_accessor_in_class_1_but_is_overridden_here_in_2_as_an_instance_property.code)i=n,a=n+t;else if(r===fa._0_is_defined_as_a_property_in_class_1_but_is_overridden_here_in_2_as_an_accessor.code){const t=o.program.getTypeChecker(),r=s$(e,n).parent;if(RD(r))return;dt.assert(hd(r),"error span of fixPropertyOverrideAccessor should only be on an accessor");const s=r.parent;dt.assert(md(s),"erroneous accessors should only be inside classes");const l=Tg(s);if(!l)return;const c=cg(l.expression),d=OC(c)?c.symbol:t.getSymbolAtLocation(c);if(!d)return;const u=t.getDeclaredTypeOfSymbol(d),p=t.getPropertyOfType(u,yl(Bf(r.name)));if(!p||!p.valueDeclaration)return;i=p.valueDeclaration.pos,a=p.valueDeclaration.end,e=Sp(p.valueDeclaration)}else dt.fail("fixPropertyOverrideAccessor codefix got unexpected error code "+r);return bie(e,o.program,i,a,o,fa.Generate_get_and_set_accessors.message)}X5({errorCodes:Roe,getCodeActions(e){const n=Doe(e.sourceFile,e.span.start,e.span.length,e.errorCode,e);if(n)return[K5(Ioe,n,fa.Generate_get_and_set_accessors,Ioe,fa.Generate_get_and_set_accessors_for_all_overriding_properties)]},fixIds:[Ioe],getAllCodeActions:e=>n7(e,Roe,(n,t)=>{const r=Doe(t.file,t.start,t.length,t.code,e);if(r)for(const o of r)n.pushRaw(e.sourceFile,o)})});var Coe="inferFromUsage",Noe=[fa.Variable_0_implicitly_has_type_1_in_some_locations_where_its_type_cannot_be_determined.code,fa.Variable_0_implicitly_has_an_1_type.code,fa.Parameter_0_implicitly_has_an_1_type.code,fa.Rest_parameter_0_implicitly_has_an_any_type.code,fa.Property_0_implicitly_has_type_any_because_its_get_accessor_lacks_a_return_type_annotation.code,fa._0_which_lacks_return_type_annotation_implicitly_has_an_1_return_type.code,fa.Property_0_implicitly_has_type_any_because_its_set_accessor_lacks_a_parameter_type_annotation.code,fa.Member_0_implicitly_has_an_1_type.code,fa.Variable_0_implicitly_has_type_1_in_some_locations_but_a_better_type_may_be_inferred_from_usage.code,fa.Variable_0_implicitly_has_an_1_type_but_a_better_type_may_be_inferred_from_usage.code,fa.Parameter_0_implicitly_has_an_1_type_but_a_better_type_may_be_inferred_from_usage.code,fa.Rest_parameter_0_implicitly_has_an_any_type_but_a_better_type_may_be_inferred_from_usage.code,fa.Property_0_implicitly_has_type_any_but_a_better_type_for_its_get_accessor_may_be_inferred_from_usage.code,fa._0_implicitly_has_an_1_return_type_but_a_better_type_may_be_inferred_from_usage.code,fa.Property_0_implicitly_has_type_any_but_a_better_type_for_its_set_accessor_may_be_inferred_from_usage.code,fa.Member_0_implicitly_has_an_1_type_but_a_better_type_may_be_inferred_from_usage.code,fa.this_implicitly_has_type_any_because_it_does_not_have_a_type_annotation.code];function Moe(e,n){switch(e){case fa.Parameter_0_implicitly_has_an_1_type.code:case fa.Parameter_0_implicitly_has_an_1_type_but_a_better_type_may_be_inferred_from_usage.code:return FD($m(n))?fa.Infer_type_of_0_from_usage:fa.Infer_parameter_types_from_usage;case fa.Rest_parameter_0_implicitly_has_an_any_type.code:case fa.Rest_parameter_0_implicitly_has_an_any_type_but_a_better_type_may_be_inferred_from_usage.code:return fa.Infer_parameter_types_from_usage;case fa.this_implicitly_has_type_any_because_it_does_not_have_a_type_annotation.code:return fa.Infer_this_type_of_0_from_usage;default:return fa.Infer_type_of_0_from_usage}}function Poe(e,n,t,r,o,i,a,s,l){if(!ed(t.kind)&&80!==t.kind&&26!==t.kind&&110!==t.kind)return;const{parent:c}=t,d=Ree(n,o,l,s);switch(r=function(e){switch(e){case fa.Variable_0_implicitly_has_type_1_in_some_locations_but_a_better_type_may_be_inferred_from_usage.code:return fa.Variable_0_implicitly_has_type_1_in_some_locations_where_its_type_cannot_be_determined.code;case fa.Variable_0_implicitly_has_an_1_type_but_a_better_type_may_be_inferred_from_usage.code:return fa.Variable_0_implicitly_has_an_1_type.code;case fa.Parameter_0_implicitly_has_an_1_type_but_a_better_type_may_be_inferred_from_usage.code:return fa.Parameter_0_implicitly_has_an_1_type.code;case fa.Rest_parameter_0_implicitly_has_an_any_type_but_a_better_type_may_be_inferred_from_usage.code:return fa.Rest_parameter_0_implicitly_has_an_any_type.code;case fa.Property_0_implicitly_has_type_any_but_a_better_type_for_its_get_accessor_may_be_inferred_from_usage.code:return fa.Property_0_implicitly_has_type_any_because_its_get_accessor_lacks_a_return_type_annotation.code;case fa._0_implicitly_has_an_1_return_type_but_a_better_type_may_be_inferred_from_usage.code:return fa._0_which_lacks_return_type_annotation_implicitly_has_an_1_return_type.code;case fa.Property_0_implicitly_has_type_any_but_a_better_type_for_its_set_accessor_may_be_inferred_from_usage.code:return fa.Property_0_implicitly_has_type_any_because_its_set_accessor_lacks_a_parameter_type_annotation.code;case fa.Member_0_implicitly_has_an_1_type_but_a_better_type_may_be_inferred_from_usage.code:return fa.Member_0_implicitly_has_an_1_type.code}return e}(r)){case fa.Member_0_implicitly_has_an_1_type.code:case fa.Variable_0_implicitly_has_type_1_in_some_locations_where_its_type_cannot_be_determined.code:if(fN(c)&&a(c)||MD(c)||ND(c))return Loe(e,d,n,c,o,s,i),d.writeFixes(e),c;if(_C(c)){const t=DZ(Woe(c.name,o,i),c,o,s);if(t){const r=vR.createJSDocTypeTag(void 0,vR.createJSDocTypeExpression(t),void 0);e.addJSDocTags(n,nn(c.parent.parent,$C),[r])}return d.writeFixes(e),c}return;case fa.Variable_0_implicitly_has_an_1_type.code:{const n=o.getTypeChecker().getSymbolAtLocation(t);return n&&n.valueDeclaration&&fN(n.valueDeclaration)&&a(n.valueDeclaration)?(Loe(e,d,Sp(n.valueDeclaration),n.valueDeclaration,o,s,i),d.writeFixes(e),n.valueDeclaration):void 0}}const u=$m(t);if(void 0===u)return;let p;switch(r){case fa.Parameter_0_implicitly_has_an_1_type.code:if(FD(u)){koe(e,d,n,u,o,s,i),p=u;break}case fa.Rest_parameter_0_implicitly_has_an_any_type.code:if(a(u)){const t=nn(c,DD);!function(e,n,t,r,o,i,a,s){if(!dD(r.name))return;const l=function(e,n,t,r){const o=zoe(e,n,t,r);return o&&Boe(t,o,r).parameters(e)||e.parameters.map(e=>({declaration:e,type:dD(e.name)?Woe(e.name,t,r):t.getTypeChecker().getAnyType()}))}(o,t,i,s);if(dt.assert(o.parameters.length===l.length,"Parameter count and inference count should match"),Lh(o))Ooe(e,t,l,i,a);else{const r=AC(o)&&!qY(o,21,t);r&&e.insertNodeBefore(t,he(o.parameters),vR.createToken(21));for(const{declaration:o,type:s}of l)!o||o.type||o.initializer||woe(e,n,t,o,s,i,a);r&&e.insertNodeAfter(t,ye(o.parameters),vR.createToken(22))}}(e,d,n,t,u,o,s,i),p=t}break;case fa.Property_0_implicitly_has_type_any_because_its_get_accessor_lacks_a_return_type_annotation.code:case fa._0_which_lacks_return_type_annotation_implicitly_has_an_1_return_type.code:OD(u)&&dD(u.name)&&(woe(e,d,n,u,Woe(u.name,o,i),o,s),p=u);break;case fa.Property_0_implicitly_has_type_any_because_its_set_accessor_lacks_a_parameter_type_annotation.code:FD(u)&&(koe(e,d,n,u,o,s,i),p=u);break;case fa.this_implicitly_has_type_any_because_it_does_not_have_a_type_annotation.code:tpe.isThisTypeAnnotatable(u)&&a(u)&&(!function(e,n,t,r,o,i){const a=zoe(t,n,r,i);if(!a||!a.length)return;const s=Boe(r,a,i).thisParameter(),l=DZ(s,t,r,o);if(!l)return;Lh(t)?function(e,n,t,r){e.addJSDocTags(n,t,[vR.createJSDocThisTag(void 0,vR.createJSDocTypeExpression(r))])}(e,n,t,l):e.tryInsertThisTypeAnnotation(n,t,l)}(e,n,u,o,s,i),p=u);break;default:return dt.fail(String(r))}return d.writeFixes(e),p}function Loe(e,n,t,r,o,i,a){dD(r.name)&&woe(e,n,t,r,Woe(r.name,o,a),o,i)}function koe(e,n,t,r,o,i,a){const s=fe(r.parameters);if(s&&dD(r.name)&&dD(s.name)){let l=Woe(r.name,o,a);l===o.getTypeChecker().getAnyType()&&(l=Woe(s.name,o,a)),Lh(r)?Ooe(e,t,[{declaration:s,type:l}],o,i):woe(e,n,t,s,l,o,i)}}function woe(e,n,t,r,o,i,a){const s=DZ(o,r,i,a);if(s)if(Lh(t)&&172!==r.kind){const n=fN(r)?en(r.parent.parent,XC):r;if(!n)return;const o=vR.createJSDocTypeExpression(s),i=OD(r)?vR.createJSDocReturnTag(void 0,o,void 0):vR.createJSDocTypeTag(void 0,o,void 0);e.addJSDocTags(t,n,[i])}else(function(e,n,t,r,o,i){const a=_ie(e,i);if(a&&r.tryInsertTypeAnnotation(t,n,a.typeNode))return d(a.symbols,e=>o.addImportFromExportedSymbol(e,!0)),!0;return!1})(s,r,t,e,n,SS(i.getCompilerOptions()))||e.tryInsertTypeAnnotation(t,r,s)}function Ooe(e,n,t,r,o){const i=t.length&&t[0].declaration.parent;if(!i)return;const a=F(t,e=>{const n=e.declaration;if(n.initializer||ic(n)||!dD(n.name))return;const t=e.type&&DZ(e.type,n,r,o);if(t){return xR(vR.cloneNode(n.name),7168),{name:vR.cloneNode(n.name),param:n,isOptional:!!e.isOptional,typeNode:t}}});if(a.length)if(AC(i)||EC(i)){const t=AC(i)&&!qY(i,21,n);t&&e.insertNodeBefore(n,he(i.parameters),vR.createToken(21)),d(a,({typeNode:t,param:r})=>{const o=vR.createJSDocTypeTag(void 0,vR.createJSDocTypeExpression(t)),i=vR.createJSDocComment(void 0,[o]);e.insertNodeAt(n,r.getStart(n),i,{suffix:" "})}),t&&e.insertNodeAfter(n,ye(i.parameters),vR.createToken(22))}else{const t=D(a,({name:e,typeNode:n,isOptional:t})=>vR.createJSDocParameterTag(void 0,e,!!t,vR.createJSDocTypeExpression(n),!1,void 0));e.addJSDocTags(n,i,t)}}function Foe(e,n,t){return F(kle.getReferenceEntriesForNode(-1,e,n,n.getSourceFiles(),t),e=>e.kind!==kle.EntryKind.Span?en(e.node,dD):void 0)}function Woe(e,n,t){return Boe(n,Foe(e,n,t),t).single()}function zoe(e,n,t,r){let o;switch(e.kind){case 177:o=qY(e,137,n);break;case 220:case 219:const t=e.parent;o=(fN(t)||MD(t))&&dD(t.name)?t.name:e.name;break;case 263:case 175:case 174:o=e.name}if(o)return Foe(o,t,r)}function Boe(e,n,t){const r=e.getTypeChecker(),o={string:()=>r.getStringType(),number:()=>r.getNumberType(),Array:e=>r.createArrayType(e),Promise:e=>r.createPromiseType(e)},i=[r.getStringType(),r.getNumberType(),r.createArrayType(r.getAnyType()),r.createPromiseType(r.getAnyType())];return{single:function(){return m(l(n))},parameters:function(o){if(0===n.length||!o.parameters)return;const i={isNumber:void 0,isString:void 0,isNumberOrString:void 0,candidateTypes:void 0,properties:void 0,calls:void 0,constructs:void 0,numberIndex:void 0,stringIndex:void 0,candidateThisTypes:void 0,inferredTypes:void 0};for(const e of n)t.throwIfCancellationRequested(),u(e,i);const a=[...i.constructs||[],...i.calls||[]];return o.parameters.map((n,i)=>{const s=[],c=Vu(n);let d=!1;for(const e of a)if(e.argumentTypes.length<=i)d=Lh(o),s.push(r.getUndefinedType());else if(c)for(let n=i;n<e.argumentTypes.length;n++)s.push(r.getBaseTypeOfLiteralType(e.argumentTypes[n]));else s.push(r.getBaseTypeOfLiteralType(e.argumentTypes[i]));if(dD(n.name)){const o=l(Foe(n.name,e,t));s.push(...c?F(o,r.getElementTypeOfArrayType):o)}const u=m(s);return{type:c?r.createArrayType(u):u,isOptional:d&&!c,declaration:n}})},thisParameter:function(){const e={isNumber:void 0,isString:void 0,isNumberOrString:void 0,candidateTypes:void 0,properties:void 0,calls:void 0,constructs:void 0,numberIndex:void 0,stringIndex:void 0,candidateThisTypes:void 0,inferredTypes:void 0};for(const r of n)t.throwIfCancellationRequested(),u(r,e);return m(e.candidateThisTypes||s)}};function a(e){const n=new Map;for(const r of e)r.properties&&r.properties.forEach((e,t)=>{n.has(t)||n.set(t,[]),n.get(t).push(e)});const t=new Map;return n.forEach((e,n)=>{t.set(n,a(e))}),{isNumber:e.some(e=>e.isNumber),isString:e.some(e=>e.isString),isNumberOrString:e.some(e=>e.isNumberOrString),candidateTypes:P(e,e=>e.candidateTypes),properties:t,calls:P(e,e=>e.calls),constructs:P(e,e=>e.constructs),numberIndex:d(e,e=>e.numberIndex),stringIndex:d(e,e=>e.stringIndex),candidateThisTypes:P(e,e=>e.candidateThisTypes),inferredTypes:void 0}}function l(e){const n={isNumber:void 0,isString:void 0,isNumberOrString:void 0,candidateTypes:void 0,properties:void 0,calls:void 0,constructs:void 0,numberIndex:void 0,stringIndex:void 0,candidateThisTypes:void 0,inferredTypes:void 0};for(const r of e)t.throwIfCancellationRequested(),u(r,n);return h(n)}function u(e,n){for(;_b(e);)e=e.parent;switch(e.parent.kind){case 245:!function(e,n){v(n,yC(e)?r.getVoidType():r.getAnyType())}(e,n);break;case 226:n.isNumber=!0;break;case 225:!function(e,n){switch(e.operator){case 46:case 47:case 41:case 55:n.isNumber=!0;break;case 40:n.isNumberOrString=!0}}(e.parent,n);break;case 227:!function(e,n,t){switch(n.operatorToken.kind){case 43:case 42:case 44:case 45:case 48:case 49:case 50:case 51:case 52:case 53:case 66:case 68:case 67:case 69:case 70:case 74:case 75:case 79:case 71:case 73:case 72:case 41:case 30:case 33:case 32:case 34:const o=r.getTypeAtLocation(n.left===e?n.right:n.left);1056&o.flags?v(t,o):t.isNumber=!0;break;case 65:case 40:const i=r.getTypeAtLocation(n.left===e?n.right:n.left);1056&i.flags?v(t,i):296&i.flags?t.isNumber=!0:402653316&i.flags?t.isString=!0:1&i.flags||(t.isNumberOrString=!0);break;case 64:case 35:case 37:case 38:case 36:case 77:case 78:case 76:v(t,r.getTypeAtLocation(n.left===e?n.right:n.left));break;case 103:e===n.left&&(t.isString=!0);break;case 57:case 61:e!==n.left||261!==e.parent.parent.kind&&!sb(e.parent.parent,!0)||v(t,r.getTypeAtLocation(n.right))}}(e,e.parent,n);break;case 297:case 298:!function(e,n){v(n,r.getTypeAtLocation(e.parent.parent.expression))}(e.parent,n);break;case 214:case 215:e.parent.expression===e?function(e,n){const t={argumentTypes:[],return_:{isNumber:void 0,isString:void 0,isNumberOrString:void 0,candidateTypes:void 0,properties:void 0,calls:void 0,constructs:void 0,numberIndex:void 0,stringIndex:void 0,candidateThisTypes:void 0,inferredTypes:void 0}};if(e.arguments)for(const o of e.arguments)t.argumentTypes.push(r.getTypeAtLocation(o));u(e,t.return_),214===e.kind?(n.calls||(n.calls=[])).push(t):(n.constructs||(n.constructs=[])).push(t)}(e.parent,n):p(e,n);break;case 212:!function(e,n){const t=gl(e.name.text);n.properties||(n.properties=new Map);const r=n.properties.get(t)||{isNumber:void 0,isString:void 0,isNumberOrString:void 0,candidateTypes:void 0,properties:void 0,calls:void 0,constructs:void 0,numberIndex:void 0,stringIndex:void 0,candidateThisTypes:void 0,inferredTypes:void 0};u(e,r),n.properties.set(t,r)}(e.parent,n);break;case 213:!function(e,n,t){if(n===e.argumentExpression)return void(t.isNumberOrString=!0);{const n=r.getTypeAtLocation(e.argumentExpression),o={isNumber:void 0,isString:void 0,isNumberOrString:void 0,candidateTypes:void 0,properties:void 0,calls:void 0,constructs:void 0,numberIndex:void 0,stringIndex:void 0,candidateThisTypes:void 0,inferredTypes:void 0};u(e,o),296&n.flags?t.numberIndex=o:t.stringIndex=o}}(e.parent,e,n);break;case 304:case 305:!function(e,n){const t=fN(e.parent.parent)?e.parent.parent:e.parent;b(n,r.getTypeAtLocation(t))}(e.parent,n);break;case 173:!function(e,n){b(n,r.getTypeAtLocation(e.parent))}(e.parent,n);break;case 261:{const{name:t,initializer:o}=e.parent;if(e===t){o&&v(n,r.getTypeAtLocation(o));break}}default:return p(e,n)}}function p(e,n){Eh(e)&&v(n,r.getContextualType(e))}function f(e){return m(h(e))}function m(e){if(!e.length)return r.getAnyType();const n=r.getUnionType([r.getStringType(),r.getNumberType()]);let t=function(e,n){const t=[];for(const r of e)for(const{high:e,low:o}of n)e(r)&&(dt.assert(!o(r),"Priority can't have both low and high"),t.push(o));return e.filter(e=>t.every(n=>!n(e)))}(e,[{high:e=>e===r.getStringType()||e===r.getNumberType(),low:e=>e===n},{high:e=>!(16385&e.flags),low:e=>!!(16385&e.flags)},{high:e=>!(114689&e.flags||16&bT(e)),low:e=>!!(16&bT(e))}]);const o=t.filter(e=>16&bT(e));return o.length&&(t=t.filter(e=>!(16&bT(e))),t.push(function(e){if(1===e.length)return e[0];const n=[],t=[],o=[],i=[];let a=!1,s=!1;const l=He();for(const u of e){for(const n of r.getPropertiesOfType(u))l.add(n.escapedName,n.valueDeclaration?r.getTypeOfSymbolAtLocation(n,n.valueDeclaration):r.getAnyType());n.push(...r.getSignaturesOfType(u,0)),t.push(...r.getSignaturesOfType(u,1));const e=r.getIndexInfoOfType(u,0);e&&(o.push(e.type),a=a||e.isReadonly);const c=r.getIndexInfoOfType(u,1);c&&(i.push(c.type),s=s||c.isReadonly)}const c=j(l,(n,t)=>{const o=t.length<e.length?16777216:0,i=r.createSymbol(4|o,n);return i.links.type=r.getUnionType(t),[n,i]}),d=[];o.length&&d.push(r.createIndexInfo(r.getStringType(),r.getUnionType(o),a));i.length&&d.push(r.createIndexInfo(r.getNumberType(),r.getUnionType(i),s));return r.createAnonymousType(e[0].symbol,c,n,t,d)}(o))),r.getWidenedType(r.getUnionType(t.map(r.getBaseTypeOfLiteralType),2))}function h(e){var n,t,a;const l=[];e.isNumber&&l.push(r.getNumberType()),e.isString&&l.push(r.getStringType()),e.isNumberOrString&&l.push(r.getUnionType([r.getStringType(),r.getNumberType()])),e.numberIndex&&l.push(r.createArrayType(f(e.numberIndex))),((null==(n=e.properties)?void 0:n.size)||(null==(t=e.constructs)?void 0:t.length)||e.stringIndex)&&l.push(_(e));const d=(e.candidateTypes||[]).map(e=>r.getBaseTypeOfLiteralType(e)),u=(null==(a=e.calls)?void 0:a.length)?_(e):void 0;return u&&d?l.push(r.getUnionType([u,...d],2)):(u&&l.push(u),c(d)&&l.push(...d)),l.push(...function(e){if(!e.properties||!e.properties.size)return[];const n=i.filter(n=>function(e,n){return!!n.properties&&!ap(n.properties,(n,t)=>{const o=r.getTypeOfPropertyOfType(e,t);if(!o)return!0;if(n.calls){return!r.getSignaturesOfType(o,0).length||!r.isTypeAssignableTo(o,(i=n.calls,r.createAnonymousType(void 0,Qu(),[y(i)],s,s)))}return!r.isTypeAssignableTo(o,f(n));var i})}(n,e));if(0<n.length&&n.length<3)return n.map(n=>function(e,n){if(!(4&bT(e)&&n.properties))return e;const t=e.target,i=ve(t.typeParameters);if(!i)return e;const a=[];return n.properties.forEach((e,n)=>{const o=r.getTypeOfPropertyOfType(t,n);dt.assert(!!o,"generic should have all the properties of its reference."),a.push(...g(o,f(e),i))}),o[e.symbol.escapedName](m(a))}(n,e));return[]}(e)),l}function _(e){const n=new Map;e.properties&&e.properties.forEach((e,t)=>{const o=r.createSymbol(4,t);o.links.type=f(e),n.set(t,o)});const t=e.calls?[y(e.calls)]:[],o=e.constructs?[y(e.constructs)]:[],i=e.stringIndex?[r.createIndexInfo(r.getStringType(),f(e.stringIndex),!1)]:[];return r.createAnonymousType(void 0,n,t,o,i)}function g(e,n,t){if(e===t)return[n];if(3145728&e.flags)return P(e.types,e=>g(e,n,t));if(4&bT(e)&&4&bT(n)){const o=r.getTypeArguments(e),i=r.getTypeArguments(n),a=[];if(o&&i)for(let e=0;e<o.length;e++)i[e]&&a.push(...g(o[e],i[e],t));return a}const o=r.getSignaturesOfType(e,0),i=r.getSignaturesOfType(n,0);return 1===o.length&&1===i.length?function(e,n,t){var o;const i=[];for(let l=0;l<e.parameters.length;l++){const a=e.parameters[l],s=n.parameters[l],c=e.declaration&&Vu(e.declaration.parameters[l]);if(!s)break;let d=a.valueDeclaration?r.getTypeOfSymbolAtLocation(a,a.valueDeclaration):r.getAnyType();const u=c&&r.getElementTypeOfArrayType(d);u&&(d=u);const p=(null==(o=en(s,Zu))?void 0:o.links.type)||(s.valueDeclaration?r.getTypeOfSymbolAtLocation(s,s.valueDeclaration):r.getAnyType());i.push(...g(d,p,t))}const a=r.getReturnTypeOfSignature(e),s=r.getReturnTypeOfSignature(n);return i.push(...g(a,s,t)),i}(o[0],i[0],t):[]}function y(e){const n=[],t=Math.max(...e.map(e=>e.argumentTypes.length));for(let i=0;i<t;i++){const t=r.createSymbol(1,gl(`arg${i}`));t.links.type=m(e.map(e=>e.argumentTypes[i]||r.getUndefinedType())),e.some(e=>void 0===e.argumentTypes[i])&&(t.flags|=16777216),n.push(t)}const o=f(a(e.map(e=>e.return_)));return r.createSignature(void 0,void 0,void 0,n,o,void 0,t,0)}function v(e,n){!n||1&n.flags||131072&n.flags||(e.candidateTypes||(e.candidateTypes=[])).push(n)}function b(e,n){!n||1&n.flags||131072&n.flags||(e.candidateThisTypes||(e.candidateThisTypes=[])).push(n)}}X5({errorCodes:Noe,getCodeActions(e){const{sourceFile:n,program:t,span:{start:r},errorCode:o,cancellationToken:i,host:a,preferences:s}=e,l=s$(n,r);let c;const d=tpe.ChangeTracker.with(e,e=>{c=Poe(e,n,l,o,t,i,on,a,s)}),u=c&&Dl(c);return u&&0!==d.length?[K5(Coe,d,[Moe(o,l),Zp(u)],Coe,fa.Infer_all_types_from_usage)]:void 0},fixIds:[Coe],getAllCodeActions(e){const{sourceFile:n,program:t,cancellationToken:r,host:o,preferences:i}=e,a=eQ();return n7(e,Noe,(e,s)=>{Poe(e,n,s$(s.file,s.start),s.code,t,r,a,o,i)})}});var Goe="fixReturnTypeInAsyncFunction",Voe=[fa.The_return_type_of_an_async_function_or_method_must_be_the_global_Promise_T_type_Did_you_mean_to_write_Promise_0.code];function joe(e,n,t){if(Lh(e))return;const r=ml(s$(e,t),ld),o=null==r?void 0:r.type;if(!o)return;const i=n.getTypeFromTypeNode(o),a=n.getAwaitedType(i)||n.getVoidType(),s=n.typeToTypeNode(a,o,void 0);return s?{returnTypeNode:o,returnType:i,promisedTypeNode:s,promisedType:a}:void 0}function Uoe(e,n,t,r){e.replaceNode(n,t,vR.createTypeReferenceNode("Promise",[r]))}X5({errorCodes:Voe,fixIds:[Goe],getCodeActions:function(e){const{sourceFile:n,program:t,span:r}=e,o=t.getTypeChecker(),i=joe(n,t.getTypeChecker(),r.start);if(!i)return;const{returnTypeNode:a,returnType:s,promisedTypeNode:l,promisedType:c}=i,d=tpe.ChangeTracker.with(e,e=>Uoe(e,n,a,l));return[K5(Goe,d,[fa.Replace_0_with_Promise_1,o.typeToString(s),o.typeToString(c)],Goe,fa.Fix_all_incorrect_return_type_of_an_async_functions)]},getAllCodeActions:e=>n7(e,Voe,(n,t)=>{const r=joe(t.file,e.program.getTypeChecker(),t.start);r&&Uoe(n,t.file,r.returnTypeNode,r.promisedTypeNode)})});var Hoe="disableJsDiagnostics",Koe="disableJsDiagnostics",qoe=F(Object.keys(fa),e=>{const n=fa[e];return 1===n.category?n.code:void 0});function Joe(e,n,t,r){const{line:o}=Ua(n,t);r&&!B(r,o)||e.insertCommentBeforeLine(n,o,t," @ts-ignore")}function Xoe(e,n,t,r,o,i,a){const s=e.symbol.members;for(const l of n)s.has(l.escapedName)||Qoe(l,e,t,r,o,i,a,void 0)}function Yoe(e){return{trackSymbol:()=>!1,moduleResolverHost:cQ(e.program,e.host)}}X5({errorCodes:qoe,getCodeActions:function(e){const{sourceFile:n,program:t,span:r,host:o,formatContext:i}=e;if(!Lh(n)||!aA(n,t.getCompilerOptions()))return;const a=n.checkJsDirective?"":ZQ(o,i.options),s=[H5(Hoe,[e7(n.fileName,[X$(n.checkJsDirective?Xs(n.checkJsDirective.pos,n.checkJsDirective.end):Js(0,0),`// @ts-nocheck${a}`)])],fa.Disable_checking_for_this_file)];return tpe.isValidLocationToAddComment(n,r.start)&&s.unshift(K5(Hoe,tpe.ChangeTracker.with(e,e=>Joe(e,n,r.start)),fa.Ignore_this_error_message,Koe,fa.Add_ts_ignore_to_all_error_messages)),s},fixIds:[Koe],getAllCodeActions:e=>{const n=new Set;return n7(e,qoe,(e,t)=>{tpe.isValidLocationToAddComment(t.file,t.start)&&Joe(e,t.file,t.start,n)})}});var $oe=(e=>(e[e.Method=1]="Method",e[e.Property=2]="Property",e[e.All=3]="All",e))($oe||{});function Qoe(e,n,t,r,o,i,a,l,d=3,u=!1){const p=e.getDeclarations(),f=fe(p),m=r.program.getTypeChecker(),h=SS(r.program.getCompilerOptions()),_=(null==f?void 0:f.kind)??172,g=function(e,n){if(262144&sT(e)){const n=e.links.nameType;if(n&&ux(n))return vR.createIdentifier(yl(px(n)))}return Vx(Dl(n),!1)}(e,f),y=f?jv(f):0;let v=256&y;v|=1&y?1:4&y?4:0,f&&_d(f)&&(v|=512);const b=function(){let e;v&&(e=oe(e,vR.createModifiersFromModifierFlags(v)));r.program.getCompilerOptions().noImplicitOverride&&f&&wv(f)&&(e=re(e,vR.createToken(164)));return e&&vR.createNodeArray(e)}(),T=m.getWidenedType(m.getTypeOfSymbolAtLocation(e,n)),S=!!(16777216&e.flags),E=!!(33554432&n.flags)||u,A=hQ(t,o),x=1|(0===A?268435456:0);switch(_){case 172:case 173:let t=m.typeToTypeNode(T,n,x,8,Yoe(r));if(i){const e=_ie(t,h);e&&(t=e.typeNode,yie(i,e.symbols))}a(vR.createPropertyDeclaration(b,f?I(g):e.getName(),S&&2&d?vR.createToken(58):void 0,t,void 0));break;case 178:case 179:{dt.assertIsDefined(p);let e=m.typeToTypeNode(T,n,x,void 0,Yoe(r));const t=_v(p,f),o=t.secondAccessor?[t.firstAccessor,t.secondAccessor]:[t.firstAccessor];if(i){const n=_ie(e,h);n&&(e=n.typeNode,yie(i,n.symbols))}for(const n of o)if(OD(n))a(vR.createGetAccessorDeclaration(b,I(g),s,N(e),C(l,A,E)));else{dt.assertNode(n,FD,"The counterpart to a getter should be a setter");const t=lv(n),r=t&&dD(t.name)?vl(t.name):void 0;a(vR.createSetAccessorDeclaration(b,I(g),cie(1,[r],[N(e)],1,!1),C(l,A,E)))}break}case 174:case 175:dt.assertIsDefined(p);const o=T.isUnion()?P(T.types,e=>e.getCallSignatures()):T.getCallSignatures();if(!U(o))break;if(1===p.length){dt.assert(1===o.length,"One declaration implies one signature");const e=o[0];R(A,e,b,I(g),C(l,A,E));break}for(const e of o)e.declaration&&33554432&e.declaration.flags||R(A,e,b,I(g));if(!E)if(p.length>o.length){const e=m.getSignatureFromDeclaration(p[p.length-1]);R(A,e,b,I(g),C(l,A))}else dt.assert(p.length===o.length,"Declarations and signatures should match count"),a(function(e,n,t,r,o,i,a,s,l){let d=r[0],u=r[0].minArgumentCount,p=!1;for(const c of r)u=Math.min(c.minArgumentCount,u),_B(c)&&(p=!0),c.parameters.length>=d.parameters.length&&(!_B(c)||_B(d))&&(d=c);const f=d.parameters.length-(_B(d)?1:0),m=d.parameters.map(e=>e.name),h=cie(f,m,void 0,u,!1);if(p){const e=vR.createParameterDeclaration(void 0,vR.createToken(26),m[f]||"rest",f>=u?vR.createToken(58):void 0,vR.createArrayTypeNode(vR.createKeywordTypeNode(159)),void 0);h.push(e)}return function(e,n,t,r,o,i,a,s){return vR.createMethodDeclaration(e,void 0,n,t?vR.createToken(58):void 0,r,o,i,s||die(a))}(a,o,i,void 0,h,function(e,n,t,r){if(c(e)){const o=n.getUnionType(D(e,n.getReturnTypeOfSignature));return n.typeToTypeNode(o,r,1,8,Yoe(t))}}(r,e,n,t),s,l)}(m,r,n,o,I(g),S&&!!(1&d),b,A,l))}function R(e,t,o,s,l){const c=Zoe(175,r,e,t,l,s,o,S&&!!(1&d),n,i);c&&a(c)}function I(e){return dD(e)&&"constructor"===e.escapedText?vR.createComputedPropertyName(vR.createStringLiteral(vl(e),0===A)):Vx(e,!1)}function C(e,n,t){return t?void 0:Vx(e,!1)||die(n)}function N(e){return Vx(e,!1)}}function Zoe(e,n,t,r,o,i,a,s,l,c){const d=n.program,u=d.getTypeChecker(),p=SS(d.getCompilerOptions()),f=Lh(l),m=524545|(0===t?268435456:0),h=u.signatureToSignatureDeclaration(r,e,l,m,8,Yoe(n));if(!h)return;let _=f?void 0:h.typeParameters,g=h.parameters,y=f?void 0:Vx(h.type);if(c){if(_){const e=N(_,e=>{let n=e.constraint,t=e.default;if(n){const e=_ie(n,p);e&&(n=e.typeNode,yie(c,e.symbols))}if(t){const e=_ie(t,p);e&&(t=e.typeNode,yie(c,e.symbols))}return vR.updateTypeParameterDeclaration(e,e.modifiers,e.name,n,t)});_!==e&&(_=DL(vR.createNodeArray(e,_.hasTrailingComma),_))}const e=N(g,e=>{let n=f?void 0:e.type;if(n){const e=_ie(n,p);e&&(n=e.typeNode,yie(c,e.symbols))}return vR.updateParameterDeclaration(e,e.modifiers,e.dotDotDotToken,e.name,f?void 0:e.questionToken,n,e.initializer)});if(g!==e&&(g=DL(vR.createNodeArray(e,g.hasTrailingComma),g)),y){const e=_ie(y,p);e&&(y=e.typeNode,yie(c,e.symbols))}}const v=s?vR.createToken(58):void 0,b=h.asteriskToken;return EC(h)?vR.updateFunctionExpression(h,a,h.asteriskToken,en(i,dD),_,g,y,o??h.body):AC(h)?vR.updateArrowFunction(h,a,_,g,y,h.equalsGreaterThanToken,o??h.body):LD(h)?vR.updateMethodDeclaration(h,a,b,i??vR.createIdentifier(""),v,_,g,y,o):hN(h)?vR.updateFunctionDeclaration(h,a,h.asteriskToken,en(i,dD),_,g,y,o??h.body):void 0}function eie(e,n,t,r,o,i,a){const s=hQ(n.sourceFile,n.preferences),l=SS(n.program.getCompilerOptions()),c=Yoe(n),d=n.program.getTypeChecker(),u=Lh(a),{typeArguments:p,arguments:f,parent:m}=r,h=u?void 0:d.getContextualType(r),_=D(f,e=>dD(e)?e.text:_C(e)&&dD(e.name)?e.name.text:void 0),g=u?[]:D(f,e=>d.getTypeAtLocation(e)),{argumentTypeNodes:y,argumentTypeParameters:v}=function(e,n,t,r,o,i,a,s){const l=[],c=new Map;for(let d=0;d<t.length;d+=1){const u=t[d];if(u.isUnionOrIntersection()&&u.types.some(aie)){const e=nie(d);l.push(vR.createTypeReferenceNode(e)),c.set(e,void 0);continue}const p=e.getBaseTypeOfLiteralType(u),f=tie(e,n,p,r,o,i,a,s);if(!f)continue;l.push(f);const m=lie(u),h=u.isTypeParameter()&&u.constraint&&!sie(u.constraint)?tie(e,n,u.constraint,r,o,i,a,s):void 0;m&&c.set(m,{argumentType:u,constraint:h})}return{argumentTypeNodes:l,argumentTypeParameters:Le(c.entries())}}(d,t,g,a,l,1,8,c),b=i?vR.createNodeArray(vR.createModifiersFromModifierFlags(i)):void 0,T=kC(m)?vR.createToken(42):void 0,S=u?void 0:function(e,n,t){const r=new Set(n.map(e=>e[0])),o=new Map(n);if(t){const o=t.filter(t=>!n.some(n=>{var r;return e.getTypeAtLocation(t)===(null==(r=n[1])?void 0:r.argumentType)})),i=r.size+o.length;for(let e=0;r.size<i;e+=1)r.add(nie(e))}return Le(r.values(),e=>{var n;return vR.createTypeParameterDeclaration(void 0,e,null==(n=o.get(e))?void 0:n.constraint)})}(d,v,p),E=cie(f.length,_,y,void 0,u),A=u||void 0===h?void 0:d.typeToTypeNode(h,a,void 0,void 0,c);switch(e){case 175:return vR.createMethodDeclaration(b,T,o,void 0,S,E,A,die(s));case 174:return vR.createMethodSignature(b,o,void 0,S,E,void 0===A?vR.createKeywordTypeNode(159):A);case 263:return dt.assert("string"==typeof o||dD(o),"Unexpected name"),vR.createFunctionDeclaration(b,T,o,S,E,A,uie(fa.Function_not_implemented.message,s));default:dt.fail("Unexpected kind")}}function nie(e){return 84+e<=90?String.fromCharCode(84+e):`T${e}`}function tie(e,n,t,r,o,i,a,s){const l=e.typeToTypeNode(t,r,i,a,s);if(l)return rie(l,n,o)}function rie(e,n,t){const r=_ie(e,t);return r&&(yie(n,r.symbols),e=r.typeNode),Vx(e)}function oie(e,n,t,r,o,i){let a=e.typeToTypeNode(n,t,r,o,i);if(a){if(VD(a)){const t=n;if(t.typeArguments&&a.typeArguments){const n=function(e,n){var t;dt.assert(n.typeArguments);const r=n.typeArguments,o=n.target;for(let i=0;i<r.length;i++){if(void 0===(null==(t=o.localTypeParameters)?void 0:t[i].constraint))continue;const n=r.slice(0,i);if(e.fillMissingTypeArguments(n,o.typeParameters,i,!1).every((e,n)=>e===r[n]))return i}return r.length}(e,t);if(n<a.typeArguments.length){const e=vR.createNodeArray(a.typeArguments.slice(0,n));a=vR.updateTypeReferenceNode(a,a.typeName,e)}}}return a}}function iie(e,n,t,r,o,i,a,s){let l=e.typePredicateToTypePredicateNode(t,r,i,a,s);if((null==l?void 0:l.type)&&lC(l.type)){const e=_ie(l.type,o);e&&(yie(n,e.symbols),l=vR.updateTypePredicateNode(l,l.assertsModifier,l.parameterName,e.typeNode))}return Vx(l)}function aie(e){return e.isUnionOrIntersection()?e.types.some(aie):262144&e.flags}function sie(e){return 524288&e.flags&&16===e.objectFlags}function lie(e){var n;if(3145728&e.flags)for(const t of e.types){const e=lie(t);if(e)return e}return 262144&e.flags?null==(n=e.getSymbol())?void 0:n.getName():void 0}function cie(e,n,t,r,o){const i=[],a=new Map;for(let s=0;s<e;s++){const e=(null==n?void 0:n[s])||`arg${s}`,l=a.get(e);a.set(e,(l||0)+1);const c=vR.createParameterDeclaration(void 0,void 0,e+(l||""),void 0!==r&&s>=r?vR.createToken(58):void 0,o?void 0:(null==t?void 0:t[s])||vR.createKeywordTypeNode(159),void 0);i.push(c)}return i}function die(e){return uie(fa.Method_not_implemented.message,e)}function uie(e,n){return vR.createBlock([vR.createThrowStatement(vR.createNewExpression(vR.createIdentifier("Error"),void 0,[vR.createStringLiteral(e,0===n)]))],!0)}function pie(e,n,t){const r=Jm(n);if(!r)return;const o=hie(r,"compilerOptions");if(void 0===o)return void e.insertNodeAtObjectStart(n,r,mie("compilerOptions",vR.createObjectLiteralExpression(t.map(([e,n])=>mie(e,n)),!0)));const i=o.initializer;if(hC(i))for(const[a,s]of t){const t=hie(i,a);void 0===t?e.insertNodeAtObjectStart(n,i,mie(a,s)):e.replaceNode(n,t.initializer,s)}}function fie(e,n,t,r){pie(e,n,[[t,r]])}function mie(e,n){return vR.createPropertyAssignment(vR.createStringLiteral(e),n)}function hie(e,n){return y(e.properties,e=>sM(e)&&!!e.name&&qI(e.name)&&e.name.text===n)}function _ie(e,n){let t;const r=vB(e,function e(r){if(hm(r)&&r.qualifier){const o=ub(r.qualifier);if(!o.symbol)return CB(r,e,void 0);const i=n0(o.symbol,n),a=i!==o.text?gie(r.qualifier,vR.createIdentifier(i)):r.qualifier;t=re(t,o.symbol);const s=bB(r.typeArguments,e,Ed);return vR.createTypeReferenceNode(a,s)}return CB(r,e,void 0)},Ed);if(t&&r)return{typeNode:r,symbols:t}}function gie(e,n){return 80===e.kind?n:vR.createQualifiedName(gie(e.left,n),e.right)}function yie(e,n){n.forEach(n=>e.addImportFromExportedSymbol(n,!0))}function vie(e,n){const t=Ps(n);let r=s$(e,n.start);for(;r.end<t;)r=r.parent;return r}function bie(e,n,t,r,o,i){const a=Aie(e,n,t,r);if(!a||p8.isRefactorErrorInfo(a))return;const s=tpe.ChangeTracker.fromContext(o),{isStatic:l,isReadonly:c,fieldName:d,accessorName:u,originalName:p,type:f,container:m,declaration:h}=a;let _,g;if(qx(d),qx(u),qx(h),qx(m),md(m)){const n=jv(h);if(Ph(e)){const e=vR.createModifiersFromModifierFlags(n);_=e,g=e}else _=vR.createModifiersFromModifierFlags(function(e){e&=-9,e&=-3,4&e||(e|=1);return e}(n)),g=vR.createModifiersFromModifierFlags(function(e){return e&=-2,e&=-5,e|=2,e}(n));NL(h)&&(g=K(Nl(h),g))}!function(e,n,t,r,o,i){MD(t)?function(e,n,t,r,o,i){const a=vR.updatePropertyDeclaration(t,i,o,t.questionToken||t.exclamationToken,r,t.initializer);e.replaceNode(n,t,a)}(e,n,t,r,o,i):sM(t)?function(e,n,t,r){let o=vR.updatePropertyAssignment(t,r,t.initializer);(o.modifiers||o.questionToken||o.exclamationToken)&&(o===t&&(o=vR.cloneNode(o)),o.modifiers=void 0,o.questionToken=void 0,o.exclamationToken=void 0);e.replacePropertyAssignment(n,t,o)}(e,n,t,o):e.replaceNode(n,t,vR.updateParameterDeclaration(t,i,t.dotDotDotToken,nn(o,dD),t.questionToken,t.type,t.initializer))}(s,e,h,f,d,g);const y=function(e,n,t,r,o,i){return vR.createGetAccessorDeclaration(r,n,[],t,vR.createBlock([vR.createReturnStatement(Eie(e,o,i))],!0))}(d,u,f,_,l,m);if(qx(y),xie(s,e,y,h,m),c){const n=sv(m);n&&function(e,n,t,r,o){if(!t.body)return;t.body.forEachChild(function t(i){gC(i)&&110===i.expression.kind&&qI(i.argumentExpression)&&i.argumentExpression.text===o&&pT(i)&&e.replaceNode(n,i.argumentExpression,vR.createStringLiteral(r)),_C(i)&&110===i.expression.kind&&i.name.text===o&&pT(i)&&e.replaceNode(n,i.name,vR.createIdentifier(r)),ad(i)||md(i)||i.forEachChild(t)})}(s,e,n,d.text,p)}else{const n=function(e,n,t,r,o,i){return vR.createSetAccessorDeclaration(r,n,[vR.createParameterDeclaration(void 0,void 0,vR.createIdentifier("value"),void 0,t)],vR.createBlock([vR.createExpressionStatement(vR.createAssignment(Eie(e,o,i),vR.createIdentifier("value")))],!0))}(d,u,f,_,l,m);qx(n),xie(s,e,n,h,m)}return s.getChanges()}function Tie(e){return tl(e,e.parent)||MD(e)||sM(e)}function Sie(e,n){return dD(n)?vR.createIdentifier(e):vR.createStringLiteral(e)}function Eie(e,n,t){const r=n?t.name:vR.createThis();return dD(e)?vR.createPropertyAccessExpression(r,e):vR.createElementAccessExpression(r,vR.createStringLiteralFromNode(e))}function Aie(e,n,t,r,o=!0){const i=t===r&&o,a=ml(s$(e,t).parent,Tie);if(!a||!BY(a.name,e,t,r)&&!i)return{error:JT(fa.Could_not_find_property_for_which_to_generate_accessor)};if(!function(e){return dD(e)||qI(e)}(a.name))return{error:JT(fa.Name_is_not_valid)};if(271!=(98303&jv(a)|271))return{error:JT(fa.Can_only_convert_property_with_modifier)};const s=a.name.text,l=a0(s),c=Sie(l?s:fZ(`_${s}`,e),a.name),d=Sie(l?fZ(s.substring(1),e):s,a.name);return{isStatic:Lv(a),isReadonly:Wv(a),type:Rie(a,n),container:170===a.kind?a.parent.parent:a.parent,originalName:a.name.text,declaration:a,fieldName:c,accessorName:d,renameAccessor:l}}function xie(e,n,t,r,o){tl(r,r.parent)?e.insertMemberAtStart(n,o,t):sM(r)?e.insertNodeAfterComma(n,r,t):e.insertNodeAfter(n,r,t)}function Rie(e,n){const t=yv(e);if(MD(e)&&t&&e.questionToken){const e=n.getTypeChecker(),r=e.getTypeFromTypeNode(t);if(!e.isTypeAssignableTo(e.getUndefinedType(),r)){const e=QD(t)?t.types:[t];return vR.createUnionTypeNode([...e,vR.createKeywordTypeNode(157)])}}return t}var Iie="invalidImportSyntax";function Die(e,n,t,r){const o=tpe.ChangeTracker.with(e,e=>e.replaceNode(n,t,r));return H5(Iie,o,[fa.Replace_import_with_0,o[0].textChanges[0].newText])}function Cie(e,n){const t=e.program.getTypeChecker().getTypeAtLocation(n);if(!(t.symbol&&Zu(t.symbol)&&t.symbol.links.originatingImport))return[];const r=[],o=t.symbol.links.originatingImport;if(fm(o)||ae(r,function(e,n){const t=Sp(n),r=R_(n),o=e.program.getCompilerOptions(),i=[];return i.push(Die(e,t,n,uQ(r.name,void 0,n.moduleSpecifier,hQ(t,e.preferences)))),1===ES(o)&&i.push(Die(e,t,n,vR.createImportEqualsDeclaration(void 0,!1,r.name,vR.createExternalModuleReference(n.moduleSpecifier)))),i}(e,o)),qd(n)&&(!Rl(n.parent)||n.parent.name!==n)){const t=e.sourceFile,o=tpe.ChangeTracker.with(e,e=>e.replaceNode(t,n,vR.createPropertyAccessExpression(n,"default"),{}));r.push(H5(Iie,o,fa.Use_synthetic_default_member))}return r}X5({errorCodes:[fa.This_expression_is_not_callable.code,fa.This_expression_is_not_constructable.code],getCodeActions:function(e){const n=e.sourceFile,t=fa.This_expression_is_not_callable.code===e.errorCode?214:215,r=ml(s$(n,e.span.start),e=>e.kind===t);if(!r)return[];const o=r.expression;return Cie(e,o)}}),X5({errorCodes:[fa.Argument_of_type_0_is_not_assignable_to_parameter_of_type_1.code,fa.Type_0_does_not_satisfy_the_constraint_1.code,fa.Type_0_is_not_assignable_to_type_1.code,fa.Type_0_is_not_assignable_to_type_1_Two_different_types_with_this_name_exist_but_they_are_unrelated.code,fa.Type_predicate_0_is_not_assignable_to_1.code,fa.Property_0_of_type_1_is_not_assignable_to_2_index_type_3.code,fa._0_index_type_1_is_not_assignable_to_2_index_type_3.code,fa.Property_0_in_type_1_is_not_assignable_to_the_same_property_in_base_type_2.code,fa.Property_0_in_type_1_is_not_assignable_to_type_2.code,fa.Property_0_of_JSX_spread_attribute_is_not_assignable_to_target_property.code,fa.The_this_context_of_type_0_is_not_assignable_to_method_s_this_of_type_1.code],getCodeActions:function(e){const n=ml(s$(e.sourceFile,e.span.start),n=>n.getStart()===e.span.start&&n.getEnd()===e.span.start+e.span.length);if(!n)return[];return Cie(e,n)}});var Nie="strictClassInitialization",Mie="addMissingPropertyDefiniteAssignmentAssertions",Pie="addMissingPropertyUndefinedType",Lie="addMissingPropertyInitializer",kie=[fa.Property_0_has_no_initializer_and_is_not_definitely_assigned_in_the_constructor.code];function wie(e,n){const t=s$(e,n);if(dD(t)&&MD(t.parent)){const e=gv(t.parent);if(e)return{type:e,prop:t.parent,isJs:Lh(t.parent)}}}function Oie(e,n,t){qx(t);const r=vR.updatePropertyDeclaration(t,t.modifiers,t.name,vR.createToken(54),t.type,t.initializer);e.replaceNode(n,t,r)}function Fie(e,n,t){const r=vR.createKeywordTypeNode(157),o=QD(t.type)?t.type.types.concat(r):[t.type,r],i=vR.createUnionTypeNode(o);t.isJs?e.addJSDocTags(n,t.prop,[vR.createJSDocTypeTag(void 0,vR.createJSDocTypeExpression(i))]):e.replaceNode(n,t.type,i)}function Wie(e,n,t,r){qx(t);const o=vR.updatePropertyDeclaration(t,t.modifiers,t.name,t.questionToken,t.type,r);e.replaceNode(n,t,o)}function zie(e,n){return Bie(e,e.getTypeFromTypeNode(n.type))}function Bie(e,n){if(512&n.flags)return n===e.getFalseType()||n===e.getFalseType(!0)?vR.createFalse():vR.createTrue();if(n.isStringLiteral())return vR.createStringLiteral(n.value);if(n.isNumberLiteral())return vR.createNumericLiteral(n.value);if(2048&n.flags)return vR.createBigIntLiteral(n.value);if(n.isUnion())return p(n.types,n=>Bie(e,n));if(n.isClass()){const e=vT(n.symbol);if(!e||Mv(e,64))return;const t=sv(e);if(t&&t.parameters.length)return;return vR.createNewExpression(vR.createIdentifier(n.symbol.name),void 0,void 0)}return e.isArrayLikeType(n)?vR.createArrayLiteralExpression():void 0}X5({errorCodes:kie,getCodeActions:function(e){const n=wie(e.sourceFile,e.span.start);if(!n)return;const t=[];return re(t,function(e,n){const t=tpe.ChangeTracker.with(e,t=>Fie(t,e.sourceFile,n));return K5(Nie,t,[fa.Add_undefined_type_to_property_0,n.prop.name.getText()],Pie,fa.Add_undefined_type_to_all_uninitialized_properties)}(e,n)),re(t,function(e,n){if(n.isJs)return;const t=tpe.ChangeTracker.with(e,t=>Oie(t,e.sourceFile,n.prop));return K5(Nie,t,[fa.Add_definite_assignment_assertion_to_property_0,n.prop.getText()],Mie,fa.Add_definite_assignment_assertions_to_all_uninitialized_properties)}(e,n)),re(t,function(e,n){if(n.isJs)return;const t=e.program.getTypeChecker(),r=zie(t,n.prop);if(!r)return;const o=tpe.ChangeTracker.with(e,t=>Wie(t,e.sourceFile,n.prop,r));return K5(Nie,o,[fa.Add_initializer_to_property_0,n.prop.name.getText()],Lie,fa.Add_initializers_to_all_uninitialized_properties)}(e,n)),t},fixIds:[Mie,Pie,Lie],getAllCodeActions:e=>n7(e,kie,(n,t)=>{const r=wie(t.file,t.start);if(r)switch(e.fixId){case Mie:Oie(n,t.file,r.prop);break;case Pie:Fie(n,t.file,r);break;case Lie:const o=zie(e.program.getTypeChecker(),r.prop);if(!o)return;Wie(n,t.file,r.prop,o);break;default:dt.fail(JSON.stringify(e.fixId))}})});var Gie="requireInTs",Vie=[fa.require_call_may_be_converted_to_an_import.code];function jie(e,n,t){const{allowSyntheticDefaults:r,defaultImportName:o,namedImports:i,statement:a,moduleSpecifier:s}=t;e.replaceNode(n,a,o&&!r?vR.createImportEqualsDeclaration(void 0,!1,o,vR.createExternalModuleReference(s)):vR.createImportDeclaration(void 0,vR.createImportClause(void 0,o,i),s,void 0))}function Uie(e,n,t,r){const{parent:o}=s$(e,t);Wh(o,!0)||dt.failBadSyntaxKind(o);const i=nn(o.parent,fN),a=hQ(e,r),s=en(i.name,dD),l=uC(i.name)?function(e){const n=[];for(const t of e.elements){if(!dD(t.name)||t.initializer)return;n.push(vR.createImportSpecifier(!1,en(t.propertyName,dD),t.name))}if(n.length)return vR.createNamedImports(n)}(i.name):void 0;if(s||l){const e=he(o.arguments);return{allowSyntheticDefaults:DS(n.getCompilerOptions()),defaultImportName:s,namedImports:l,statement:nn(i.parent.parent,XC),moduleSpecifier:YI(e)?vR.createStringLiteral(e.text,0===a):e}}}X5({errorCodes:Vie,getCodeActions(e){const n=Uie(e.sourceFile,e.program,e.span.start,e.preferences);if(!n)return;const t=tpe.ChangeTracker.with(e,t=>jie(t,e.sourceFile,n));return[K5(Gie,t,fa.Convert_require_to_import,Gie,fa.Convert_all_require_to_import)]},fixIds:[Gie],getAllCodeActions:e=>n7(e,Vie,(n,t)=>{const r=Uie(t.file,e.program,t.start,e.preferences);r&&jie(n,e.sourceFile,r)})});var Hie="useDefaultImport",Kie=[fa.Import_may_be_converted_to_a_default_import.code];function qie(e,n){const t=s$(e,n);if(!dD(t))return;const{parent:r}=t;if(AN(r)&&UN(r.moduleReference))return{importNode:r,name:t,moduleSpecifier:r.moduleReference.expression};if(PN(r)&&xN(r.parent.parent)){const e=r.parent.parent;return{importNode:e,name:t,moduleSpecifier:e.moduleSpecifier}}}function Jie(e,n,t,r){e.replaceNode(n,t.importNode,uQ(t.name,void 0,t.moduleSpecifier,hQ(n,r)))}X5({errorCodes:Kie,getCodeActions(e){const{sourceFile:n,span:{start:t}}=e,r=qie(n,t);if(!r)return;const o=tpe.ChangeTracker.with(e,t=>Jie(t,n,r,e.preferences));return[K5(Hie,o,fa.Convert_to_default_import,Hie,fa.Convert_all_to_default_imports)]},fixIds:[Hie],getAllCodeActions:e=>n7(e,Kie,(n,t)=>{const r=qie(t.file,t.start);r&&Jie(n,t.file,r,e.preferences)})});var Xie="useBigintLiteral",Yie=[fa.Numeric_literals_with_absolute_values_equal_to_2_53_or_greater_are_too_large_to_be_represented_accurately_as_integers.code];function $ie(e,n,t){const r=en(s$(n,t.start),HI);if(!r)return;const o=r.getText(n)+"n";e.replaceNode(n,r,vR.createBigIntLiteral(o))}X5({errorCodes:Yie,getCodeActions:function(e){const n=tpe.ChangeTracker.with(e,n=>$ie(n,e.sourceFile,e.span));if(n.length>0)return[K5(Xie,n,fa.Convert_to_a_bigint_numeric_literal,Xie,fa.Convert_all_to_bigint_numeric_literals)]},fixIds:[Xie],getAllCodeActions:e=>n7(e,Yie,(e,n)=>$ie(e,n.file,n))});var Qie="fixAddModuleReferTypeMissingTypeof",Zie=[fa.Module_0_does_not_refer_to_a_type_but_is_used_as_a_type_here_Did_you_mean_typeof_import_0.code];function eae(e,n){const t=s$(e,n);return dt.assert(102===t.kind,"This token should be an ImportKeyword"),dt.assert(206===t.parent.kind,"Token parent should be an ImportType"),t.parent}function nae(e,n,t){const r=vR.updateImportTypeNode(t,t.argument,t.attributes,t.qualifier,t.typeArguments,!0);e.replaceNode(n,t,r)}X5({errorCodes:Zie,getCodeActions:function(e){const{sourceFile:n,span:t}=e,r=eae(n,t.start),o=tpe.ChangeTracker.with(e,e=>nae(e,n,r));return[K5(Qie,o,fa.Add_missing_typeof,Qie,fa.Add_missing_typeof)]},fixIds:[Qie],getAllCodeActions:e=>n7(e,Zie,(n,t)=>nae(n,e.sourceFile,eae(t.file,t.start)))});var tae="wrapJsxInFragment",rae=[fa.JSX_expressions_must_have_one_parent_element.code];function oae(e,n){let t=s$(e,n).parent.parent;if((MC(t)||(t=t.parent,MC(t)))&&Np(t.operatorToken))return t}function iae(e,n,t){const r=function(e){const n=[];let t=e;for(;;){if(MC(t)&&Np(t.operatorToken)&&28===t.operatorToken.kind){if(n.push(t.left),bu(t.right))return n.push(t.right),n;if(MC(t.right)){t=t.right;continue}return}return}}(t);r&&e.replaceNode(n,t,vR.createJsxFragment(vR.createJsxOpeningFragment(),r,vR.createJsxJsxClosingFragment()))}X5({errorCodes:rae,getCodeActions:function(e){const{sourceFile:n,span:t}=e,r=oae(n,t.start);if(!r)return;const o=tpe.ChangeTracker.with(e,e=>iae(e,n,r));return[K5(tae,o,fa.Wrap_in_JSX_fragment,tae,fa.Wrap_all_unparented_JSX_in_JSX_fragment)]},fixIds:[tae],getAllCodeActions:e=>n7(e,rae,(n,t)=>{const r=oae(e.sourceFile,t.start);r&&iae(n,e.sourceFile,r)})});var aae="wrapDecoratorInParentheses",sae=[fa.Expression_must_be_enclosed_in_parentheses_to_be_used_as_a_decorator.code];function lae(e,n,t){const r=ml(s$(n,t),CD);dt.assert(!!r,"Expected position to be owned by a decorator.");const o=vR.createParenthesizedExpression(r.expression);e.replaceNode(n,r.expression,o)}X5({errorCodes:sae,getCodeActions:function(e){const n=tpe.ChangeTracker.with(e,n=>lae(n,e.sourceFile,e.span.start));return[K5(aae,n,fa.Wrap_in_parentheses,aae,fa.Wrap_all_invalid_decorator_expressions_in_parentheses)]},fixIds:[aae],getAllCodeActions:e=>n7(e,sae,(e,n)=>lae(e,n.file,n.start))});var cae="fixConvertToMappedObjectType",dae=[fa.An_index_signature_parameter_type_cannot_be_a_literal_type_or_generic_type_Consider_using_a_mapped_object_type_instead.code];function uae(e,n){const t=en(s$(e,n).parent.parent,BD);if(!t)return;const r=gN(t.parent)?t.parent:en(t.parent.parent,yN);return r?{indexSignature:t,container:r}:void 0}function pae(e,n,{indexSignature:t,container:r}){const o=(gN(r)?r.members:r.type.members).filter(e=>!BD(e)),i=he(t.parameters),a=vR.createTypeParameterDeclaration(void 0,nn(i.name,dD),i.type),l=vR.createMappedTypeNode(Wv(t)?vR.createModifier(148):void 0,a,void 0,t.questionToken,t.type,void 0),c=vR.createIntersectionTypeNode([...Ag(r),l,...o.length?[vR.createTypeLiteralNode(o)]:s]);var d,u;e.replaceNode(n,r,(d=r,u=c,vR.createTypeAliasDeclaration(d.modifiers,d.name,d.typeParameters,u)))}X5({errorCodes:dae,getCodeActions:function(e){const{sourceFile:n,span:t}=e,r=uae(n,t.start);if(!r)return;const o=tpe.ChangeTracker.with(e,e=>pae(e,n,r)),i=vl(r.container.name);return[K5(cae,o,[fa.Convert_0_to_mapped_object_type,i],cae,[fa.Convert_0_to_mapped_object_type,i])]},fixIds:[cae],getAllCodeActions:e=>n7(e,dae,(e,n)=>{const t=uae(n.file,n.start);t&&pae(e,n.file,t)})});var fae="removeAccidentalCallParentheses";X5({errorCodes:[fa.This_expression_is_not_callable_because_it_is_a_get_accessor_Did_you_mean_to_use_it_without.code],getCodeActions(e){const n=ml(s$(e.sourceFile,e.span.start),yC);if(!n)return;const t=tpe.ChangeTracker.with(e,t=>{t.deleteRange(e.sourceFile,{pos:n.expression.end,end:n.end})});return[H5(fae,t,fa.Remove_parentheses)]},fixIds:[fae]});var mae="removeUnnecessaryAwait",hae=[fa.await_has_no_effect_on_the_type_of_this_expression.code];function _ae(e,n,t){const r=en(s$(n,t.start),e=>135===e.kind),o=r&&en(r.parent,DC);if(!o)return;let i=o;if(SC(o.parent)){if(dD(PT(o.expression,!1))){const e=p$(o.parent.pos,n);e&&105!==e.kind&&(i=o.parent)}}e.replaceNode(n,i,o.expression)}X5({errorCodes:hae,getCodeActions:function(e){const n=tpe.ChangeTracker.with(e,n=>_ae(n,e.sourceFile,e.span));if(n.length>0)return[K5(mae,n,fa.Remove_unnecessary_await,mae,fa.Remove_all_unnecessary_uses_of_await)]},fixIds:[mae],getAllCodeActions:e=>n7(e,hae,(e,n)=>_ae(e,n.file,n))});var gae=[fa.A_type_only_import_can_specify_a_default_import_or_named_bindings_but_not_both.code],yae="splitTypeOnlyImport";function vae(e,n){return ml(s$(e,n.start),xN)}function bae(e,n,t){if(!n)return;const r=dt.checkDefined(n.importClause);e.replaceNode(t.sourceFile,n,vR.updateImportDeclaration(n,n.modifiers,vR.updateImportClause(r,r.phaseModifier,r.name,void 0),n.moduleSpecifier,n.attributes)),e.insertNodeAfter(t.sourceFile,n,vR.createImportDeclaration(void 0,vR.updateImportClause(r,r.phaseModifier,void 0,r.namedBindings),n.moduleSpecifier,n.attributes))}X5({errorCodes:gae,fixIds:[yae],getCodeActions:function(e){const n=tpe.ChangeTracker.with(e,n=>bae(n,vae(e.sourceFile,e.span),e));if(n.length)return[K5(yae,n,fa.Split_into_two_separate_import_declarations,yae,fa.Split_all_invalid_type_only_imports)]},getAllCodeActions:e=>n7(e,gae,(n,t)=>{bae(n,vae(e.sourceFile,t),e)})});var Tae="fixConvertConstToLet",Sae=[fa.Cannot_assign_to_0_because_it_is_a_constant.code];function Eae(e,n,t){var r;const o=t.getTypeChecker().getSymbolAtLocation(s$(e,n));if(void 0===o)return;const i=en(null==(r=null==o?void 0:o.valueDeclaration)?void 0:r.parent,mN);if(void 0===i)return;const a=qY(i,87,e);return void 0!==a?{symbol:o,token:a}:void 0}function Aae(e,n,t){e.replaceNode(n,t,vR.createToken(121))}X5({errorCodes:Sae,getCodeActions:function(e){const{sourceFile:n,span:t,program:r}=e,o=Eae(n,t.start,r);if(void 0===o)return;const i=tpe.ChangeTracker.with(e,e=>Aae(e,n,o.token));return[q5(Tae,i,fa.Convert_const_to_let,Tae,fa.Convert_all_const_to_let)]},getAllCodeActions:e=>{const{program:n}=e,t=new Set;return Z5(tpe.ChangeTracker.with(e,r=>{t7(e,Sae,e=>{const o=Eae(e.file,e.start,n);if(o&&AT(t,dB(o.symbol)))return Aae(r,e.file,o.token)})}))},fixIds:[Tae]});var xae="fixExpectedComma",Rae=[fa._0_expected.code];function Iae(e,n,t){const r=s$(e,n);return 27===r.kind&&r.parent&&(hC(r.parent)||mC(r.parent))?{node:r}:void 0}function Dae(e,n,{node:t}){const r=vR.createToken(28);e.replaceNode(n,t,r)}X5({errorCodes:Rae,getCodeActions(e){const{sourceFile:n}=e,t=Iae(n,e.span.start,e.errorCode);if(!t)return;const r=tpe.ChangeTracker.with(e,e=>Dae(e,n,t));return[K5(xae,r,[fa.Change_0_to_1,";",","],xae,[fa.Change_0_to_1,";",","])]},fixIds:[xae],getAllCodeActions:e=>n7(e,Rae,(n,t)=>{const r=Iae(t.file,t.start,t.code);r&&Dae(n,e.sourceFile,r)})});var Cae="addVoidToPromise",Nae=[fa.Expected_1_argument_but_got_0_new_Promise_needs_a_JSDoc_hint_to_produce_a_resolve_that_can_be_called_without_arguments.code,fa.Expected_0_arguments_but_got_1_Did_you_forget_to_include_void_in_your_type_argument_to_Promise.code];function Mae(e,n,t,r,o){const i=s$(n,t.start);if(!dD(i)||!yC(i.parent)||i.parent.expression!==i||0!==i.parent.arguments.length)return;const a=r.getTypeChecker(),s=a.getSymbolAtLocation(i),l=null==s?void 0:s.valueDeclaration;if(!l||!DD(l)||!vC(l.parent.parent))return;if(null==o?void 0:o.has(l))return;null==o||o.add(l);const c=function(e){var n;if(!Lh(e))return e.typeArguments;if(SC(e.parent)){const t=null==(n=oc(e.parent))?void 0:n.typeExpression.type;if(t&&VD(t)&&dD(t.typeName)&&"Promise"===vl(t.typeName))return t.typeArguments}}(l.parent.parent);if(U(c)){const t=c[0],r=!QD(t)&&!tC(t)&&tC(vR.createUnionTypeNode([t,vR.createKeywordTypeNode(116)]).types[0]);r&&e.insertText(n,t.pos,"("),e.insertText(n,t.end,r?") | void":" | void")}else{const t=a.getResolvedSignature(i.parent),r=null==t?void 0:t.parameters[0],o=r&&a.getTypeOfSymbolAtLocation(r,l.parent.parent);Lh(l)?(!o||3&o.flags)&&(e.insertText(n,l.parent.parent.end,")"),e.insertText(n,es(n.text,l.parent.parent.pos),"/** @type {Promise<void>} */(")):(!o||2&o.flags)&&e.insertText(n,l.parent.parent.expression.end,"<void>")}}X5({errorCodes:Nae,fixIds:[Cae],getCodeActions(e){const n=tpe.ChangeTracker.with(e,n=>Mae(n,e.sourceFile,e.span,e.program));if(n.length>0)return[K5("addVoidToPromise",n,fa.Add_void_to_Promise_resolved_without_a_value,Cae,fa.Add_void_to_all_Promises_resolved_without_a_value)]},getAllCodeActions:e=>n7(e,Nae,(n,t)=>Mae(n,t.file,t,e.program,new Set))});var Pae={};t(Pae,{CompletionKind:()=>Rse,CompletionSource:()=>Wae,SortText:()=>wae,StringCompletions:()=>ole,SymbolOriginInfoKind:()=>zae,createCompletionDetails:()=>Ase,createCompletionDetailsForSymbol:()=>Ese,getCompletionEntriesFromSymbols:()=>vse,getCompletionEntryDetails:()=>Tse,getCompletionEntrySymbol:()=>xse,getCompletionsAtPosition:()=>Jae,getDefaultCommitCharacters:()=>qae,getPropertiesForObjectExpression:()=>Bse,moduleSpecifierResolutionCacheAttemptLimit:()=>kae,moduleSpecifierResolutionLimit:()=>Lae});var Lae=100,kae=1e3,wae={LocalDeclarationPriority:"10",LocationPriority:"11",OptionalMember:"12",MemberDeclaredBySpreadAssignment:"13",SuggestedClassMembers:"14",GlobalsOrKeywords:"15",AutoImportSuggestions:"16",ClassMemberSnippets:"17",JavascriptIdentifiers:"18",Deprecated:e=>"z"+e,ObjectLiteralProperty:(e,n)=>`${e}\0${n}\0`,SortBelow:e=>e+"1"},Oae=[".",",",";"],Fae=[".",";"],Wae=(e=>(e.ThisProperty="ThisProperty/",e.ClassMemberSnippet="ClassMemberSnippet/",e.TypeOnlyAlias="TypeOnlyAlias/",e.ObjectLiteralMethodSnippet="ObjectLiteralMethodSnippet/",e.SwitchCases="SwitchCases/",e.ObjectLiteralMemberWithComma="ObjectLiteralMemberWithComma/",e))(Wae||{}),zae=(e=>(e[e.ThisType=1]="ThisType",e[e.SymbolMember=2]="SymbolMember",e[e.Export=4]="Export",e[e.Promise=8]="Promise",e[e.Nullable=16]="Nullable",e[e.ResolvedExport=32]="ResolvedExport",e[e.TypeOnlyAlias=64]="TypeOnlyAlias",e[e.ObjectLiteralMethod=128]="ObjectLiteralMethod",e[e.Ignore=256]="Ignore",e[e.ComputedPropertyName=512]="ComputedPropertyName",e[e.SymbolMemberNoExport=2]="SymbolMemberNoExport",e[e.SymbolMemberExport=6]="SymbolMemberExport",e))(zae||{});function Bae(e){return!!(e&&4&e.kind)}function Gae(e){return!(!e||32!==e.kind)}function Vae(e){return(Bae(e)||Gae(e))&&!!e.isFromPackageJson}function jae(e){return!!(e&&64&e.kind)}function Uae(e){return!!(e&&128&e.kind)}function Hae(e){return!!(e&&512&e.kind)}function Kae(e,n,t,r,o,i,a,s,l){var c,d,u,p;const f=Vt(),m=a||CS(r.getCompilerOptions())||(null==(c=i.autoImportSpecifierExcludeRegexes)?void 0:c.length);let h=!1,_=0,g=0,y=0,v=0;const b=l({tryResolve:function(e,n){if(n){const n=t.getModuleSpecifierForBestExportInfo(e,o,s);return n&&_++,n||"failed"}const r=m||i.allowIncompleteCompletions&&g<Lae,a=!r&&i.allowIncompleteCompletions&&v<kae,l=r||a?t.getModuleSpecifierForBestExportInfo(e,o,s,a):void 0;(!r&&!a||a&&!l)&&(h=!0);g+=(null==l?void 0:l.computedWithoutCacheCount)||0,y+=e.length-((null==l?void 0:l.computedWithoutCacheCount)||0),a&&v++;return l||(m?"failed":"skipped")},skippedAny:()=>h,resolvedAny:()=>g>0,resolvedBeyondLimit:()=>g>Lae}),T=v?` (${(y/v*100).toFixed(1)}% hit rate)`:"";return null==(d=n.log)||d.call(n,`${e}: resolved ${g} module specifiers, plus ${_} ambient and ${y} from cache${T}`),null==(u=n.log)||u.call(n,`${e}: response is ${h?"incomplete":"complete"}`),null==(p=n.log)||p.call(n,`${e}: ${Vt()-f}`),b}function qae(e){return e?[]:Oae}function Jae(e,n,t,r,o,i,a,s,l,c,d=!1){var u;const{previousToken:p}=Cse(o,r);if(a&&!_$(r,o,p)&&!function(e,n,t,r){switch(n){case".":case"@":return!0;case'"':case"'":case"`":return!!t&&AZ(t)&&r===t.getStart(e)+1;case"#":return!!t&&uD(t)&&!!Zm(t);case"<":return!!t&&30===t.kind&&(!MC(t.parent)||Hse(t.parent));case"/":return!!t&&(zu(t)?!!E_(t):44===t.kind&&JN(t.parent));case" ":return!!t&&ED(t)&&308===t.parent.kind;default:return dt.assertNever(n)}}(r,a,p,o))return;if(" "===a)return i.includeCompletionsForImportStatements&&i.includeCompletionsWithInsertText?{isGlobalCompletion:!0,isMemberCompletion:!1,isNewIdentifierLocation:!0,isIncomplete:!0,entries:[],defaultCommitCharacters:qae(!0)}:void 0;const f=n.getCompilerOptions(),m=n.getTypeChecker(),h=i.allowIncompleteCompletions?null==(u=e.getIncompleteCompletionsCache)?void 0:u.call(e):void 0;if(h&&3===s&&p&&dD(p)){const t=function(e,n,t,r,o,i,a,s){const l=e.get();if(!l)return;const c=i$(n,s),d=t.text.toLowerCase(),u=D0(n,o,r,i,a),p=Kae("continuePreviousIncompleteResponse",o,G5.createImportSpecifierResolver(n,r,o,i),r,t.getStart(),i,!1,AA(t),e=>{const t=F(l.entries,t=>{var i;if(!t.hasAction||!t.source||!t.data||Yae(t.data))return t;if(!nle(t.name,d))return;const{origin:a}=dt.checkDefined(Nse(t.name,t.data,r,o)),s=u.get(n.path,t.data.exportMapKey),l=s&&e.tryResolve(s,!Ds(Py(a.moduleSymbol.name)));if("skipped"===l)return t;if(!l||"failed"===l)return void(null==(i=o.log)||i.call(o,`Unexpected failure resolving auto import for '${t.name}' from '${t.source}'`));const c={...a,kind:32,moduleSpecifier:l.moduleSpecifier};return t.data=mse(c),t.source=yse(c),t.sourceDisplay=[KQ(c.moduleSpecifier)],t});return e.skippedAny()||(l.isIncomplete=void 0),t});return l.entries=p,l.flags=4|(l.flags||0),l.optionalReplacementSpan=tse(c),l}(h,r,p,n,e,i,l,o);if(t)return t}else null==h||h.clear();const _=ole.getStringLiteralCompletions(r,o,p,f,e,n,t,i,d);if(_)return _;if(p&&Dc(p.parent)&&(83===p.kind||88===p.kind||80===p.kind))return function(e){const n=function(e){const n=[],t=new Map;let r=e;for(;r&&!ad(r);){if(cN(r)){const e=r.label.text;t.has(e)||(t.set(e,!0),n.push({name:e,kindModifiers:"",kind:"label",sortText:wae.LocationPriority}))}r=r.parent}return n}(e);if(n.length)return{isGlobalCompletion:!1,isMemberCompletion:!1,isNewIdentifierLocation:!1,entries:n,defaultCommitCharacters:qae(!1)}}(p.parent);const g=Dse(n,t,r,f,o,i,void 0,e,c,l);var y,v;if(g)switch(g.kind){case 0:const a=function(e,n,t,r,o,i,a,s,l,c){const{symbols:d,contextToken:u,completionKind:p,isInSnippetScope:f,isNewIdentifierLocation:m,location:h,propertyAccessToConvert:_,keywordFilters:g,symbolToOriginInfoMap:y,recommendedCompletion:v,isJsxInitializer:b,isTypeOnlyLocation:T,isJsxIdentifierExpected:S,isRightOfOpenTag:E,isRightOfDotOrQuestionDot:A,importStatementCompletion:x,insideJsDocTagTypeExpression:R,symbolToSortTextMap:I,hasUnresolvedAutoImports:D,defaultCommitCharacters:C}=i;let N=i.literals;const M=t.getTypeChecker();if(1===fS(e.scriptKind)){const n=function(e,n){const t=ml(e,e=>{switch(e.kind){case 288:return!0;case 44:case 32:case 80:case 212:return!1;default:return"quit"}});if(t){const e=!!qY(t,32,n),r=t.parent.openingElement.tagName.getText(n)+(e?"":">");return{isGlobalCompletion:!1,isMemberCompletion:!0,isNewIdentifierLocation:!1,optionalReplacementSpan:j$(t.tagName),entries:[{name:r,kind:"class",kindModifiers:void 0,sortText:wae.LocationPriority}],defaultCommitCharacters:qae(!1)}}return}(h,e);if(n)return n}const P=ml(u,rM);if(P&&(AD(u)||ug(u,P.expression))){const e=m0(M,P.parent.clauses);N=N.filter(n=>!e.hasValue(n)),d.forEach((n,t)=>{if(n.valueDeclaration&&dM(n.valueDeclaration)){const r=M.getConstantValue(n.valueDeclaration);void 0!==r&&e.hasValue(r)&&(y[t]={kind:256})}})}const L=[],k=rse(e,r);if(k&&!m&&(!d||0===d.length)&&0===g)return;const w=vse(d,L,void 0,u,h,l,e,n,t,SS(r),o,p,a,r,s,T,_,S,b,x,v,y,I,S,E,c);if(0!==g)for(const F of kse(g,!R&&Ph(e)))(T&&$$(La(F.name))||!T&&rle(F.name)||!w.has(F.name))&&(w.add(F.name),Q(L,F,Xae,void 0,!0));for(const F of function(e,n){const t=[];if(e){const r=e.getSourceFile(),o=e.parent,i=r.getLineAndCharacterOfPosition(e.end).line,a=r.getLineAndCharacterOfPosition(n).line;(xN(o)||FN(o)&&o.moduleSpecifier)&&e===o.moduleSpecifier&&i===a&&t.push({name:Pa(132),kind:"keyword",kindModifiers:"",sortText:wae.GlobalsOrKeywords})}return t}(u,l))w.has(F.name)||(w.add(F.name),Q(L,F,Xae,void 0,!0));for(const F of N){const n=cse(e,a,F);w.add(n.name),Q(L,n,Xae,void 0,!0)}k||function(e,n,t,r,o){f5(e).forEach((e,i)=>{if(e===n)return;const a=yl(i);!t.has(a)&&ys(a,r)&&(t.add(a),Q(o,{name:a,kind:"warning",kindModifiers:"",sortText:wae.JavascriptIdentifiers,isFromUncheckedFile:!0,commitCharacters:[]},Xae))})}(e,h.pos,w,SS(r),L);let O;if(a.includeCompletionsWithInsertText&&u&&!E&&!A&&(O=ml(u,SN))){const o=ose(O,e,a,r,n,t,s);o&&L.push(o.entry)}return{flags:i.flags,isGlobalCompletion:f,isIncomplete:!(!a.allowIncompleteCompletions||!D)||void 0,isMemberCompletion:sse(p),isNewIdentifierLocation:m,optionalReplacementSpan:tse(h),entries:L,defaultCommitCharacters:C??qae(m)}}(r,e,n,f,t,g,i,c,o,d);return(null==a?void 0:a.isIncomplete)&&(null==h||h.set(a)),a;case 1:return $ae([...Uce.getJSDocTagNameCompletions(),...Qae(r,o,m,f,i,!0)]);case 2:return $ae([...Uce.getJSDocTagCompletions(),...Qae(r,o,m,f,i,!1)]);case 3:return $ae(Uce.getJSDocParameterNameCompletions(g.tag));case 4:return y=g.keywordCompletions,{isGlobalCompletion:!1,isMemberCompletion:!1,isNewIdentifierLocation:v=g.isNewIdentifierLocation,entries:y.slice(),defaultCommitCharacters:qae(v)};default:return dt.assertNever(g)}}function Xae(e,n){var t,r;let o=Pn(e.sortText,n.sortText);return 0===o&&(o=Pn(e.name,n.name)),0===o&&(null==(t=e.data)?void 0:t.moduleSpecifier)&&(null==(r=n.data)?void 0:r.moduleSpecifier)&&(o=HE(e.data.moduleSpecifier,n.data.moduleSpecifier)),0===o?-1:o}function Yae(e){return!!(null==e?void 0:e.moduleSpecifier)}function $ae(e){return{isGlobalCompletion:!1,isMemberCompletion:!1,isNewIdentifierLocation:!1,entries:e,defaultCommitCharacters:qae(!1)}}function Qae(e,n,t,r,o,i){const a=s$(e,n);if(!Du(a)&&!IM(a))return[];const s=IM(a)?a:a.parent;if(!IM(s))return[];const l=s.parent;if(!ad(l))return[];const c=Ph(e),d=o.includeCompletionsWithSnippetText||void 0,u=A(s.tags,e=>jM(e)&&e.getEnd()<=n);return F(l.parameters,e=>{if(!Ll(e).length){if(dD(e.name)){const n={tabstop:1},a=e.name.text;let s=ese(a,e.initializer,e.dotDotDotToken,c,!1,!1,t,r,o),l=d?ese(a,e.initializer,e.dotDotDotToken,c,!1,!0,t,r,o,n):void 0;return i&&(s=s.slice(1),l&&(l=l.slice(1))),{name:s,kind:"parameter",sortText:wae.LocationPriority,insertText:d?l:void 0,isSnippet:d}}if(e.parent.parameters.indexOf(e)===u){const n=`param${u}`,a=Zae(n,e.name,e.initializer,e.dotDotDotToken,c,!1,t,r,o),s=d?Zae(n,e.name,e.initializer,e.dotDotDotToken,c,!0,t,r,o):void 0;let l=a.join(wb(r)+"* "),p=null==s?void 0:s.join(wb(r)+"* ");return i&&(l=l.slice(1),p&&(p=p.slice(1))),{name:l,kind:"parameter",sortText:wae.LocationPriority,insertText:d?p:void 0,isSnippet:d}}}})}function Zae(e,n,t,r,o,i,a,s,l){return o?c(e,n,t,r,{tabstop:1}):[ese(e,t,r,o,!1,i,a,s,l,{tabstop:1})];function c(e,n,t,r,c){if(uC(n)&&!r){const u={tabstop:c.tabstop},p=ese(e,t,r,o,!0,i,a,s,l,u);let f=[];for(const t of n.elements){const n=d(e,t,u);if(!n){f=void 0;break}f.push(...n)}if(f)return c.tabstop=u.tabstop,[p,...f]}return[ese(e,t,r,o,!1,i,a,s,l,c)]}function d(e,n,t){if(!n.propertyName&&dD(n.name)||dD(n.name)){const r=n.propertyName?zf(n.propertyName):n.name.text;if(!r)return;return[ese(`${e}.${r}`,n.initializer,n.dotDotDotToken,o,!1,i,a,s,l,t)]}if(n.propertyName){const r=zf(n.propertyName);return r&&c(`${e}.${r}`,n.name,n.initializer,n.dotDotDotToken,t)}}}function ese(e,n,t,r,o,i,a,s,l,c){if(i&&dt.assertIsDefined(c),n&&(e=function(e,n){const t=n.getText().trim();if(t.includes("\n")||t.length>80)return`[${e}]`;return`[${e}=${t}]`}(e,n)),i&&(e=jA(e)),r){let r="*";if(o)dt.assert(!t,"Cannot annotate a rest parameter with type 'Object'."),r="Object";else{if(n){const e=a.getTypeAtLocation(n.parent);if(!(16385&e.flags)){const t=n.getSourceFile(),o=0===hQ(t,l)?268435456:0,c=a.typeToTypeNode(e,ml(n,ad),o);if(c){const e=i?fse({removeComments:!0,module:s.module,moduleResolution:s.moduleResolution,target:s.target}):Mj({removeComments:!0,module:s.module,moduleResolution:s.moduleResolution,target:s.target});xR(c,1),r=e.printNode(4,c,t)}}}i&&"*"===r&&(r=`\${${c.tabstop++}:${r}}`)}return`@param {${!o&&t?"...":""}${r}} ${e} ${i?`\${${c.tabstop++}}`:""}`}return`@param ${e} ${i?`\${${c.tabstop++}}`:""}`}function nse(e,n,t){return{kind:4,keywordCompletions:kse(e,n),isNewIdentifierLocation:t}}function tse(e){return 80===(null==e?void 0:e.kind)?j$(e):void 0}function rse(e,n){return!Ph(e)||!!aA(e,n)}function ose(e,n,t,r,o,i,a){const s=e.clauses,l=i.getTypeChecker(),c=l.getTypeAtLocation(e.parent.expression);if(c&&c.isUnion()&&g(c.types,e=>e.isLiteral())){const d=m0(l,s),u=SS(r),p=hQ(n,t),f=G5.createImportAdder(n,i,t,o),m=[];for(const n of c.types)if(1024&n.flags){dt.assert(n.symbol,"An enum member type should have a symbol"),dt.assert(n.symbol.parent,"An enum member type should have a parent symbol (the enum symbol)");const t=n.symbol.valueDeclaration&&l.getConstantValue(n.symbol.valueDeclaration);if(void 0!==t){if(d.hasValue(t))continue;d.addValue(t)}const r=G5.typeToAutoImportableTypeNode(l,f,n,e,u);if(!r)return;const o=ise(r,u,p);if(!o)return;m.push(o)}else if(!d.hasValue(n.value))switch(typeof n.value){case"object":m.push(n.value.negative?vR.createPrefixUnaryExpression(41,vR.createBigIntLiteral({negative:!1,base10Value:n.value.base10Value})):vR.createBigIntLiteral(n.value));break;case"number":m.push(n.value<0?vR.createPrefixUnaryExpression(41,vR.createNumericLiteral(-n.value)):vR.createNumericLiteral(n.value));break;case"string":m.push(vR.createStringLiteral(n.value,0===p))}if(0===m.length)return;const h=D(m,e=>vR.createCaseClause(e,[])),_=ZQ(o,null==a?void 0:a.options),g=fse({removeComments:!0,module:r.module,moduleResolution:r.moduleResolution,target:r.target,newLine:c0(_)}),y=a?e=>g.printAndFormatNode(4,e,n,a):e=>g.printNode(4,e,n),v=D(h,(e,n)=>t.includeCompletionsWithSnippetText?`${y(e)}$${n+1}`:`${y(e)}`).join(_);return{entry:{name:`${g.printNode(4,h[0],n)} ...`,kind:"",sortText:wae.GlobalsOrKeywords,insertText:v,hasAction:f.hasFixes()||void 0,source:"SwitchCases/",isSnippet:!!t.includeCompletionsWithSnippetText||void 0},importAdder:f}}}function ise(e,n,t){switch(e.kind){case 184:return ase(e.typeName,n,t);case 200:const r=ise(e.objectType,n,t),o=ise(e.indexType,n,t);return r&&o&&vR.createElementAccessExpression(r,o);case 202:const i=e.literal;switch(i.kind){case 11:return vR.createStringLiteral(i.text,0===t);case 9:return vR.createNumericLiteral(i.text,i.numericLiteralFlags)}return;case 197:const a=ise(e.type,n,t);return a&&(dD(a)?a:vR.createParenthesizedExpression(a));case 187:return ase(e.exprName,n,t);case 206:dt.fail("We should not get an import type after calling 'codefix.typeToAutoImportableTypeNode'.")}}function ase(e,n,t){if(dD(e))return e;const r=yl(e.right.escapedText);return $A(r,n)?vR.createPropertyAccessExpression(ase(e.left,n,t),r):vR.createElementAccessExpression(ase(e.left,n,t),vR.createStringLiteral(r,0===t))}function sse(e){switch(e){case 0:case 3:case 2:return!0;default:return!1}}function lse(e,n,t){return"object"==typeof t?bA(t)+"n":Qe(t)?SZ(e,n,t):JSON.stringify(t)}function cse(e,n,t){return{name:lse(e,n,t),kind:"string",kindModifiers:"",sortText:wae.LocationPriority,commitCharacters:[]}}function dse(e,n,t,r,o,i,a,s,l,c,d,u,p,f,m,h,_,v,b,T,S,E,A,x){var R,I;let D,C,N,M,P,L,k,w=V$(t,i),O=yse(u);const F=l.getTypeChecker(),W=u&&function(e){return!!(16&e.kind)}(u),z=u&&function(e){return!!(2&e.kind)}(u)||d;if(u&&function(e){return!!(1&e.kind)}(u))D=d?`this${W?"?.":""}[${_se(a,b,c)}]`:`this${W?"?.":"."}${c}`;else if((z||W)&&f){D=z?d?`[${_se(a,b,c)}]`:`[${c}]`:c,(W||f.questionDotToken)&&(D=`?.${D}`);const e=qY(f,25,a)||qY(f,29,a);if(!e)return;const n=Xn(c,f.name.text)?f.name.end:e.end;w=Xs(e.getStart(a),n)}if(m&&(void 0===D&&(D=c),D=`{${D}}`,"boolean"!=typeof m&&(w=j$(m,a))),u&&function(e){return!!(8&e.kind)}(u)&&f){void 0===D&&(D=c);const e=p$(f.pos,a);let n="";e&&kZ(e.end,e.parent,a)&&(n=";"),n+=`(await ${f.expression.getText()})`,D=d?`${n}${D}`:`${n}${W?"?.":"."}${D}`;w=Xs((en(f.parent,DC)?f.parent:f.expression).getStart(a),f.end)}if(Gae(u)&&(P=[KQ(u.moduleSpecifier)],h&&(({insertText:D,replacementSpan:w}=function(e,n,t,r,o,i,a){const s=n.replacementSpan,l=jA(SZ(o,a,t.moduleSpecifier)),c=t.isDefaultExport?1:"export="===t.exportName?2:0,d=a.includeCompletionsWithSnippetText?"$1":"",u=G5.getImportKind(o,c,i,!0),p=n.couldBeTypeOnlyImportSpecifier,f=n.isTopLevelTypeOnly?` ${Pa(156)} `:" ",m=p?`${Pa(156)} `:"",h=r?";":"";switch(u){case 3:return{replacementSpan:s,insertText:`import${f}${jA(e)}${d} = require(${l})${h}`};case 1:return{replacementSpan:s,insertText:`import${f}${jA(e)}${d} from ${l}${h}`};case 2:return{replacementSpan:s,insertText:`import${f}* as ${jA(e)} from ${l}${h}`};case 0:return{replacementSpan:s,insertText:`import${f}{ ${m}${jA(e)}${d} } from ${l}${h}`}}}(c,h,u,_,a,l,b)),M=!!b.includeCompletionsWithSnippetText||void 0)),64===(null==u?void 0:u.kind)&&(L=!0),0===T&&r&&28!==(null==(R=p$(r.pos,a,r))?void 0:R.kind)&&(LD(r.parent.parent)||OD(r.parent.parent)||FD(r.parent.parent)||cM(r.parent)||(null==(I=ml(r.parent,sM))?void 0:I.getLastToken(a))===r||lM(r.parent)&&Ua(a,r.getEnd()).line!==Ua(a,i).line)&&(O="ObjectLiteralMemberWithComma/",L=!0),b.includeCompletionsWithClassMemberSnippets&&b.includeCompletionsWithInsertText&&3===T&&function(e,n,t){if(Lh(n))return!1;const r=106500;return!!(e.flags&r)&&(md(n)||n.parent&&n.parent.parent&&fd(n.parent)&&n===n.parent.name&&n.parent.getLastToken(t)===n.parent.name&&md(n.parent.parent)||n.parent&&nP(n)&&md(n.parent))}(e,o,a)){let n;const t=use(s,l,v,b,c,e,o,i,r,S);if(!t)return;({insertText:D,filterText:C,isSnippet:M,importAdder:n}=t),((null==n?void 0:n.hasFixes())||t.eraseRange)&&(L=!0,O="ClassMemberSnippet/")}if(u&&Uae(u)&&(({insertText:D,isSnippet:M,labelDetails:k}=u),b.useLabelDetailsInCompletionEntries||(c+=k.detail,k=void 0),O="ObjectLiteralMethodSnippet/",n=wae.SortBelow(n)),E&&!A&&b.includeCompletionsWithSnippetText&&b.jsxAttributeCompletionStyle&&"none"!==b.jsxAttributeCompletionStyle&&(!QN(o.parent)||!o.parent.initializer)){let n="braces"===b.jsxAttributeCompletionStyle;const t=F.getTypeOfSymbolAtLocation(e,o);"auto"!==b.jsxAttributeCompletionStyle||528&t.flags||1048576&t.flags&&y(t.types,e=>!!(528&e.flags))||(402653316&t.flags||1048576&t.flags&&g(t.types,e=>!!(402686084&e.flags||k$(e)))?(D=`${jA(c)}=${SZ(a,b,"$1")}`,M=!0):n=!0),n&&(D=`${jA(c)}={$1}`,M=!0)}if(void 0!==D&&!b.includeCompletionsWithInsertText)return;(Bae(u)||Gae(u))&&(N=mse(u),L=!h);const B=ml(o,CT);if(B){const e=SS(s.getCompilationSettings());if(ys(c,e)){if(276===B.kind){const e=La(c);e&&(135===e||Pg(e))&&(D=`${c} as ${c}_`)}}else D=_se(a,b,c),276===B.kind&&(nY.setText(a.text),nY.resetTokenState(i),130===nY.scan()&&80===nY.scan()||(D+=" as "+function(e,n){let t,r=!1,o="";for(let i=0;i<e.length;i+=void 0!==t&&t>=65536?2:1)t=e.codePointAt(i),void 0!==t&&(0===i?_s(t,n):gs(t,n))?(r&&(o+="_"),o+=String.fromCodePoint(t),r=!1):r=!0;r&&(o+="_");return o||"_"}(c,e)))}const G=que.getSymbolKind(F,e,o),V="warning"===G||"string"===G?[]:void 0;return{name:c,kind:G,kindModifiers:que.getSymbolModifiers(F,e),sortText:n,source:O,hasAction:!!L||void 0,isRecommended:gse(e,p,F)||void 0,insertText:D,filterText:C,replacementSpan:w,sourceDisplay:P,labelDetails:k,isSnippet:M,isPackageJsonImport:Vae(u)||void 0,isImportStatementCompletion:!!h||void 0,data:N,commitCharacters:V,...x?{symbol:e}:void 0}}function use(e,n,t,r,o,i,a,s,l,c){const d=ml(a,md);if(!d)return;let u,p=o;const f=o,m=n.getTypeChecker(),h=a.getSourceFile(),_=fse({removeComments:!0,module:t.module,moduleResolution:t.moduleResolution,target:t.target,omitTrailingSemicolon:!1,newLine:c0(ZQ(e,null==c?void 0:c.options))}),g=G5.createImportAdder(h,n,r,e);let y;if(r.includeCompletionsWithSnippetText){u=!0;const e=vR.createEmptyStatement();y=vR.createBlock([e],!0),QR(e,{kind:0,order:0})}else y=vR.createBlock([],!0);let v=0;const{modifiers:b,range:T,decorators:S}=function(e,n,t){if(!e||Ua(n,t).line>Ua(n,e.getEnd()).line)return{modifiers:0};let r,o,i=0;const a={pos:t,end:t};if(MD(e.parent)&&(o=function(e){if(td(e))return e.kind;if(dD(e)){const n=bl(e);if(n&&Zc(n))return n}return}(e))){e.parent.modifiers&&(i|=98303&Yv(e.parent.modifiers),r=e.parent.modifiers.filter(CD)||[],a.pos=Math.min(...e.parent.modifiers.map(e=>e.getStart(n))));const t=$v(o);i&t||(i|=t,a.pos=Math.min(a.pos,e.getStart(n))),e.parent.name!==e&&(a.end=e.parent.name.getStart(n))}return{modifiers:i,decorators:r,range:a.pos<a.end?a:void 0}}(l,h,s),E=64&b&&64&d.modifierFlagsCache;let A=[];if(G5.addNewNodeForMemberSymbol(i,d,h,{program:n,host:e},r,g,e=>{let n=0;E&&(n|=64),fd(e)&&1===m.getMemberOverrideModifierStatus(d,e,i)&&(n|=16),A.length||(v=e.modifierFlagsCache|n),e=vR.replaceModifiers(e,v),A.push(e)},y,G5.PreserveOptionalFlags.Property,!!E),A.length){const e=8192&i.flags;let n=17|v;n|=e?1024:136;const t=b&n;if(b&~n)return;if(4&v&&1&t&&(v&=-5),0===t||1&t||(v&=-2),v|=t,A=A.map(e=>vR.replaceModifiers(e,v)),null==S?void 0:S.length){const e=A[A.length-1];NL(e)&&(A[A.length-1]=vR.replaceDecoratorsAndModifiers(e,S.concat(Ml(e)||[])))}const r=131073;p=c?_.printAndFormatSnippetList(r,vR.createNodeArray(A),h,c):_.printSnippetList(r,vR.createNodeArray(A),h)}return{insertText:p,filterText:f,isSnippet:u,importAdder:g,eraseRange:T}}function pse(e,n,t,r,o,i,a,s){const l=a.includeCompletionsWithSnippetText||void 0;let c=n;const d=t.getSourceFile(),u=function(e,n,t,r,o,i){const a=e.getDeclarations();if(!a||!a.length)return;const s=r.getTypeChecker(),l=a[0],c=Vx(Dl(l),!1),d=s.getWidenedType(s.getTypeOfSymbolAtLocation(e,n)),u=hQ(t,i),p=33554432|(0===u?268435456:0);switch(l.kind){case 172:case 173:case 174:case 175:{let e=1048576&d.flags&&d.types.length<10?s.getUnionType(d.types,2):d;if(1048576&e.flags){const n=x(e.types,e=>s.getSignaturesOfType(e,0).length>0);if(1!==n.length)return;e=n[0]}if(1!==s.getSignaturesOfType(e,0).length)return;const t=s.typeToTypeNode(e,n,p,void 0,G5.getNoopSymbolTrackerWithResolver({program:r,host:o}));if(!t||!jD(t))return;let a;if(i.includeCompletionsWithSnippetText){const e=vR.createEmptyStatement();a=vR.createBlock([e],!0),QR(e,{kind:0,order:0})}else a=vR.createBlock([],!0);const l=t.parameters.map(e=>vR.createParameterDeclaration(void 0,e.dotDotDotToken,e.name,void 0,void 0,e.initializer));return vR.createMethodDeclaration(void 0,void 0,c,void 0,void 0,l,void 0,a)}default:return}}(e,t,d,r,o,a);if(!u)return;const p=fse({removeComments:!0,module:i.module,moduleResolution:i.moduleResolution,target:i.target,omitTrailingSemicolon:!1,newLine:c0(ZQ(o,null==s?void 0:s.options))});c=s?p.printAndFormatSnippetList(80,vR.createNodeArray([u],!0),d,s):p.printSnippetList(80,vR.createNodeArray([u],!0),d);const f=Mj({removeComments:!0,module:i.module,moduleResolution:i.moduleResolution,target:i.target,omitTrailingSemicolon:!0}),m=vR.createMethodSignature(void 0,"",u.questionToken,u.typeParameters,u.parameters,u.type);return{isSnippet:l,insertText:c,labelDetails:{detail:f.printNode(4,m,d)}}}function fse(e){let n;const t=tpe.createWriter(wb(e)),r=Mj(e,t),o={...t,write:e=>i(e,()=>t.write(e)),nonEscapingWrite:t.write,writeLiteral:e=>i(e,()=>t.writeLiteral(e)),writeStringLiteral:e=>i(e,()=>t.writeStringLiteral(e)),writeSymbol:(e,n)=>i(e,()=>t.writeSymbol(e,n)),writeParameter:e=>i(e,()=>t.writeParameter(e)),writeComment:e=>i(e,()=>t.writeComment(e)),writeProperty:e=>i(e,()=>t.writeProperty(e))};return{printSnippetList:function(e,t,r){const o=a(e,t,r);return n?tpe.applyChanges(o,n):o},printAndFormatSnippetList:function(e,t,r,o){const i={text:a(e,t,r),getLineAndCharacterOfPosition(e){return Ua(this,e)}},s=u0(o,r),l=P(t,e=>{const n=tpe.assignPositionsToNode(e);return Mpe.formatNodeGivenIndentation(n,i,r.languageVariant,0,0,{...o,options:s})}),c=n?ce(K(l,n),(e,n)=>bn(e.span,n.span)):l;return tpe.applyChanges(i.text,c)},printNode:function(e,t,r){const o=s(e,t,r);return n?tpe.applyChanges(o,n):o},printAndFormatNode:function(e,t,r,o){const i={text:s(e,t,r),getLineAndCharacterOfPosition(e){return Ua(this,e)}},a=u0(o,r),l=tpe.assignPositionsToNode(t),c=Mpe.formatNodeGivenIndentation(l,i,r.languageVariant,0,0,{...o,options:a}),d=n?ce(K(c,n),(e,n)=>bn(e.span,n.span)):c;return tpe.applyChanges(i.text,d)}};function i(e,r){const o=jA(e);if(o!==e){const e=t.getTextPos();r();const i=t.getTextPos();n=re(n||(n=[]),{newText:o,span:{start:e,length:i-e}})}else r()}function a(e,t,i){return n=void 0,o.clear(),r.writeList(e,t,i,o),o.getText()}function s(e,t,i){return n=void 0,o.clear(),r.writeNode(e,t,i,o),o.getText()}}function mse(e){const n=e.fileName?void 0:Py(e.moduleSymbol.name),t=!!e.isFromPackageJson||void 0;if(Gae(e)){return{exportName:e.exportName,exportMapKey:e.exportMapKey,moduleSpecifier:e.moduleSpecifier,ambientModuleName:n,fileName:e.fileName,isPackageJsonImport:t}}return{exportName:e.exportName,exportMapKey:e.exportMapKey,fileName:e.fileName,ambientModuleName:e.fileName?void 0:Py(e.moduleSymbol.name),isPackageJsonImport:!!e.isFromPackageJson||void 0}}function hse(e,n,t){const r="default"===e.exportName,o=!!e.isPackageJsonImport;if(Yae(e)){return{kind:32,exportName:e.exportName,exportMapKey:e.exportMapKey,moduleSpecifier:e.moduleSpecifier,symbolName:n,fileName:e.fileName,moduleSymbol:t,isDefaultExport:r,isFromPackageJson:o}}return{kind:4,exportName:e.exportName,exportMapKey:e.exportMapKey,symbolName:n,fileName:e.fileName,moduleSymbol:t,isDefaultExport:r,isFromPackageJson:o}}function _se(e,n,t){return/^\d+$/.test(t)?t:SZ(e,n,t)}function gse(e,n,t){return e===n||!!(1048576&e.flags)&&t.getExportSymbolOfSymbol(e)===n}function yse(e){return Bae(e)?Py(e.moduleSymbol.name):Gae(e)?e.moduleSpecifier:1===(null==e?void 0:e.kind)?"ThisProperty/":64===(null==e?void 0:e.kind)?"TypeOnlyAlias/":void 0}function vse(e,n,t,r,o,i,a,s,l,c,d,u,p,f,m,h,_,g,y,v,b,T,S,E,A,x=!1){const R=Vt(),I=function(e,n){if(!e)return;let t=ml(e,e=>Vm(e)||Qse(e)||xd(e)?"quit":(DD(e)||ID(e))&&!BD(e.parent));t||(t=ml(n,e=>Vm(e)||Qse(e)||xd(e)?"quit":fN(e)));return t}(r,o),D=wZ(a),C=l.getTypeChecker(),N=new Map;for(let L=0;L<e.length;L++){const d=e[L],R=null==T?void 0:T[L],I=Mse(d,c,R,u,!!g);if(!I||N.get(I.name)&&(!R||!Uae(R))||1===u&&S&&!M(d,S))continue;if(!h&&Lh(a)&&P(d))continue;const{name:k,needsConvertPropertyAccess:w}=I,O=(null==S?void 0:S[dB(d)])??wae.LocationPriority,F=dse(d,ele(d,C)?wae.Deprecated(O):O,t,r,o,i,a,s,l,k,w,R,b,_,y,v,D,f,p,u,m,E,A,x);if(!F)continue;const W=(!R||jae(R))&&!(void 0===d.parent&&!U(d.declarations,e=>e.getSourceFile()===o.getSourceFile()));N.set(k,W),Q(n,F,Xae,void 0,!0)}return d("getCompletionsAtPosition: getCompletionEntriesFromSymbols: "+(Vt()-R)),{has:e=>N.has(e),add:e=>N.set(e,!0)};function M(e,n){var t;let i=e.flags;if(o.parent&&ON(o.parent))return!0;if(I&&en(I,fN)){if(e.valueDeclaration===I)return!1;if(xd(I.name)&&I.name.elements.some(n=>n===e.valueDeclaration))return!1}const s=e.valueDeclaration??(null==(t=e.declarations)?void 0:t[0]);if(I&&s)if(DD(I)&&DD(s)){const e=I.parent.parameters;if(s.pos>=I.pos&&s.pos<e.end)return!1}else if(ID(I)&&ID(s)){if(I===s&&96===(null==r?void 0:r.kind))return!1;if(function(e){if(!e)return!1;let n=e,t=e.parent;for(;t;){if(ID(t))return t.default===n||64===n.kind;n=t,t=t.parent}return!1}(r)&&!nC(I.parent)){const e=I.parent.typeParameters;if(e&&s.pos>=I.pos&&s.pos<e.end)return!1}}const l=cT(e,C);return!(a.externalModuleIndicator&&!f.allowUmdGlobalAccess&&n[dB(e)]===wae.GlobalsOrKeywords&&(n[dB(l)]===wae.AutoImportSuggestions||n[dB(l)]===wae.LocationPriority))&&(i|=dT(l),iY(o)?!!(1920&i):h?Zse(e,C):!!(111551&i))}function P(e){var n;const t=dT(cT(e,C));return!(111551&t||Lh(null==(n=e.declarations)?void 0:n[0])&&!(788968&t))}}function bse(e,n,t,r,o,i,a){if("SwitchCases/"===o.source)return{type:"cases"};if(o.data){const n=Nse(o.name,o.data,e,i);if(n){const{contextToken:e,previousToken:o}=Cse(r,t);return{type:"symbol",symbol:n.symbol,location:i$(t,r),previousToken:o,contextToken:e,isJsxInitializer:!1,isTypeOnlyLocation:!1,origin:n.origin}}}const s=e.getCompilerOptions(),l=Dse(e,n,t,s,r,{includeCompletionsForModuleExports:!0,includeCompletionsWithInsertText:!0},o,i,void 0);if(!l)return{type:"none"};if(0!==l.kind)return{type:"request",request:l};const{symbols:c,literals:d,location:u,completionKind:f,symbolToOriginInfoMap:m,contextToken:h,previousToken:_,isJsxInitializer:g,isTypeOnlyLocation:v}=l,b=y(d,e=>lse(t,a,e)===o.name);return void 0!==b?{type:"literal",literal:b}:p(c,(e,n)=>{const t=m[n],r=Mse(e,SS(s),t,f,l.isJsxIdentifierExpected);return r&&r.name===o.name&&("ClassMemberSnippet/"===o.source&&106500&e.flags||"ObjectLiteralMethodSnippet/"===o.source&&8196&e.flags||yse(t)===o.source||"ObjectLiteralMemberWithComma/"===o.source)?{type:"symbol",symbol:e,location:u,origin:t,contextToken:h,previousToken:_,isJsxInitializer:g,isTypeOnlyLocation:v}:void 0})||{type:"none"}}function Tse(e,n,t,r,o,i,a,s,l){const c=e.getTypeChecker(),d=e.getCompilerOptions(),{name:u,source:p,data:f}=o,{previousToken:m,contextToken:h}=Cse(r,t);if(_$(t,r,m))return ole.getStringLiteralCompletionDetails(u,t,r,m,e,i,l,s);const _=bse(e,n,t,r,o,i,s);switch(_.type){case"request":{const{request:e}=_;switch(e.kind){case 1:return Uce.getJSDocTagNameCompletionDetails(u);case 2:return Uce.getJSDocTagCompletionDetails(u);case 3:return Uce.getJSDocParameterNameCompletionDetails(u);case 4:return U(e.keywordCompletions,e=>e.name===u)?Sse(u,"keyword",5):void 0;default:return dt.assertNever(e)}}case"symbol":{const{symbol:n,location:o,contextToken:m,origin:h,previousToken:g}=_,{codeActions:y,sourceDisplay:v}=function(e,n,t,r,o,i,a,s,l,c,d,u,p,f,m,h){if((null==f?void 0:f.moduleSpecifier)&&d&&Kse(t||d,l).replacementSpan)return{codeActions:void 0,sourceDisplay:[KQ(f.moduleSpecifier)]};if("ClassMemberSnippet/"===m){const{importAdder:r,eraseRange:d}=use(a,i,s,p,e,o,n,c,t,u);if((null==r?void 0:r.hasFixes())||d){return{sourceDisplay:void 0,codeActions:[{changes:tpe.ChangeTracker.with({host:a,formatContext:u,preferences:p},e=>{r&&r.writeFixes(e),d&&e.deleteRange(l,d)}),description:(null==r?void 0:r.hasFixes())?d0([fa.Includes_imports_of_types_referenced_by_0,e]):d0([fa.Update_modifiers_of_0,e])}]}}}if(jae(r)){const e=G5.getPromoteTypeOnlyCompletionAction(l,r.declaration.name,i,a,u,p);return dt.assertIsDefined(e,"Expected to have a code action for promoting type-only alias"),{codeActions:[e],sourceDisplay:void 0}}if("ObjectLiteralMemberWithComma/"===m&&t){const n=tpe.ChangeTracker.with({host:a,formatContext:u,preferences:p},e=>e.insertText(l,t.end,","));if(n)return{sourceDisplay:void 0,codeActions:[{changes:n,description:d0([fa.Add_missing_comma_for_object_member_completion_0,e])}]}}if(!r||!Bae(r)&&!Gae(r))return{codeActions:void 0,sourceDisplay:void 0};const _=r.isFromPackageJson?a.getPackageJsonAutoImportProvider().getTypeChecker():i.getTypeChecker(),{moduleSymbol:g}=r,y=_.getMergedSymbol(cT(o.exportSymbol||o,_)),v=30===(null==t?void 0:t.kind)&&Eu(t.parent),{moduleSpecifier:b,codeAction:T}=G5.getImportCompletionAction(y,g,null==f?void 0:f.exportMapKey,l,e,v,a,i,u,d&&dD(d)?d.getStart(l):c,p,h);return dt.assert(!(null==f?void 0:f.moduleSpecifier)||b===f.moduleSpecifier),{sourceDisplay:[KQ(b)],codeActions:[T]}}(u,o,m,h,n,e,i,d,t,r,g,a,s,f,p,l);return Ese(n,Hae(h)?h.symbolName:n.name,c,t,o,l,y,v)}case"literal":{const{literal:e}=_;return Sse(lse(t,s,e),"string","string"==typeof e?8:7)}case"cases":{const n=ose(h.parent,t,s,e.getCompilerOptions(),i,e,void 0);if(null==n?void 0:n.importAdder.hasFixes()){const{entry:e,importAdder:t}=n,r=tpe.ChangeTracker.with({host:i,formatContext:a,preferences:s},t.writeFixes);return{name:e.name,kind:"",kindModifiers:"",displayParts:[],sourceDisplay:void 0,codeActions:[{changes:r,description:d0([fa.Includes_imports_of_types_referenced_by_0,u])}]}}return{name:u,kind:"",kindModifiers:"",displayParts:[],sourceDisplay:void 0}}case"none":return Lse().some(e=>e.name===u)?Sse(u,"keyword",5):void 0;default:dt.assertNever(_)}}function Sse(e,n,t){return Ase(e,"",n,[WQ(e,t)])}function Ese(e,n,t,r,o,i,a,s){const{displayParts:l,documentation:c,symbolKind:d,tags:u}=t.runWithCancellationToken(i,n=>que.getSymbolDisplayPartsDocumentationAndSymbolKind(n,e,r,o,o,7));return Ase(n,que.getSymbolModifiers(t,e),d,l,c,u,a,s)}function Ase(e,n,t,r,o,i,a,s){return{name:e,kindModifiers:n,kind:t,displayParts:r,documentation:o,tags:i,codeActions:a,source:s,sourceDisplay:s}}function xse(e,n,t,r,o,i,a){const s=bse(e,n,t,r,o,i,a);return"symbol"===s.type?s.symbol:void 0}var Rse=(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",e))(Rse||{});function Ise(e,n,t){const r=t.getAccessibleSymbolChain(e,n,-1,!1);return r?he(r):e.parent&&(function(e){var n;return!!(null==(n=e.declarations)?void 0:n.some(e=>308===e.kind))}(e.parent)?e:Ise(e.parent,n,t))}function Dse(e,n,t,r,o,i,a,s,l,c){const u=e.getTypeChecker(),f=rse(t,r);let m=Vt(),h=s$(t,o);n("getCompletionData: Get current token: "+(Vt()-m)),m=Vt();const _=R$(t,o,h);n("getCompletionData: Is inside comment: "+(Vt()-m));let g=!1,v=!1,b=!1;if(_){if(I$(t,o)){if(64===t.text.charCodeAt(o-1))return{kind:1};{const e=kY(o,t);if(!/[^*|\s(/)]/.test(t.text.substring(e,o)))return{kind:2}}}const e=function(e,n){return ml(e,e=>!(!Du(e)||!OY(e,n))||!!IM(e)&&"quit")}(h,o);if(e){if(e.tagName.pos<=o&&o<=e.tagName.end)return{kind:1};if(eP(e))v=!0;else{const n=function(e){if(function(e){switch(e.kind){case 342:case 349:case 343:case 345:case 347:case 350:case 351:return!0;case 346:return!!e.constraint;default:return!1}}(e)){const n=qM(e)?e.constraint:e.typeExpression;return n&&310===n.kind?n:void 0}if(NM(e)||$M(e))return e.class;return}(e);if(n&&(h=s$(t,o),h&&(pg(h)||349===h.parent.kind&&h.parent.name===h)||(g=ve(n))),!g&&jM(e)&&(Np(e.name)||e.name.pos<=o&&o<=e.name.end))return{kind:3,tag:e}}}if(!g&&!v)return void n("Returning an empty list because completion was inside a regular comment or plain text part of a JsDoc comment.")}m=Vt();const T=!g&&!v&&Ph(t),S=Cse(o,t),E=S.previousToken;let A=S.contextToken;n("getCompletionData: Get previous token: "+(Vt()-m));let R,I,D,C=h,N=!1,M=!1,L=!1,k=!1,w=!1,O=!1,W=i$(t,o),z=0,B=!1,G=0;if(A){const e=Kse(A,t);if(e.keywordCompletion){if(e.isKeywordOnlyCompletion)return{kind:4,keywordCompletions:[(V=e.keywordCompletion,{name:Pa(V),kind:"keyword",kindModifiers:"",sortText:wae.GlobalsOrKeywords})],isNewIdentifierLocation:e.isNewIdentifierLocation};z=function(e){if(156===e)return 8;dt.fail("Unknown mapping from SyntaxKind to KeywordCompletionFilters")}(e.keywordCompletion)}if(e.replacementSpan&&i.includeCompletionsForImportStatements&&i.includeCompletionsWithInsertText&&(G|=2,I=e,B=e.isNewIdentifierLocation),!e.replacementSpan&&function(e){const r=Vt(),i=function(e){return(XI(e)||Kc(e))&&(FY(e,o)||o===e.end&&(!!e.isUnterminated||XI(e)))}(e)||function(e){const n=e.parent,r=n.kind;switch(e.kind){case 28:return 261===r||262===(i=e).parent.kind&&!E$(i,t,u)||244===r||267===r||fe(r)||265===r||208===r||266===r||md(n)&&!!n.typeParameters&&n.typeParameters.end>=e.pos;case 25:case 23:return 208===r;case 59:return 209===r;case 21:return 300===r||fe(r);case 19:return 267===r;case 30:return 264===r||232===r||265===r||266===r||ud(r);case 126:return 173===r&&!md(n.parent);case 26:return 170===r||!!n.parent&&208===n.parent.kind;case 125:case 123:case 124:return 170===r&&!wD(n.parent);case 130:return 277===r||282===r||275===r;case 139:case 153:return!Use(e);case 80:if((277===r||282===r)&&e===n.name&&"type"===e.text)return!1;if(ml(e.parent,fN)&&function(e,n){return t.getLineEndOfPosition(e.getEnd())<n}(e,o))return!1;break;case 86:case 94:case 120:case 100:case 115:case 102:case 121:case 87:case 140:return!0;case 156:return 277!==r;case 42:return ad(e.parent)&&!LD(e.parent)}var i;if(Fse(zse(e))&&Use(e))return!1;if(ue(e)&&(!dD(e)||ed(zse(e))||ve(e)))return!1;switch(zse(e)){case 128:case 86:case 87:case 138:case 94:case 100:case 120:case 121:case 123:case 124:case 125:case 126:case 115:return!0;case 134:return MD(e.parent)}const a=ml(e.parent,md);if(a&&e===E&&pe(e,o))return!1;const s=Ig(e.parent,173);if(s&&e!==E&&md(E.parent.parent)&&o<=E.end){if(pe(e,E.end))return!1;if(64!==e.kind&&(TG(s)||Pu(s)))return!0}return pg(e)&&!lM(e.parent)&&!QN(e.parent)&&!((md(e.parent)||gN(e.parent)||ID(e.parent))&&(e!==E||o>E.end))}(e)||function(e){if(9===e.kind){const n=e.getFullText();return"."===n.charAt(n.length-1)}return!1}(e)||function(e){if(12===e.kind)return!0;if(32===e.kind&&e.parent){if(W===e.parent&&(287===W.kind||286===W.kind))return!1;if(287===e.parent.kind)return 287!==W.parent.kind;if(288===e.parent.kind||286===e.parent.kind)return!!e.parent.parent&&285===e.parent.parent.kind}return!1}(e)||KI(e);return n("getCompletionsAtPosition: isCompletionListBlocker: "+(Vt()-r)),i}(A))return n("Returning an empty list because completion was requested in an invalid position."),z?nse(z,T,de().isNewIdentifierLocation):void 0;let r=A.parent;if(25===A.kind||29===A.kind)switch(N=25===A.kind,M=29===A.kind,r.kind){case 212:R=r,C=R.expression;if(Np(NT(R))||(yC(C)||ad(C))&&C.end===A.pos&&C.getChildCount(t)&&22!==ye(C.getChildren(t)).kind)return;break;case 167:C=r.left;break;case 268:C=r.name;break;case 206:C=r;break;case 237:C=r.getFirstToken(t),dt.assert(102===C.kind||105===C.kind);break;default:return}else if(!I){if(r&&212===r.kind&&(A=r,r=r.parent),h.parent===W)switch(h.kind){case 32:285!==h.parent.kind&&287!==h.parent.kind||(W=h);break;case 44:286===h.parent.kind&&(W=h)}switch(r.kind){case 288:44===A.kind&&(k=!0,W=A);break;case 227:if(!Hse(r))break;case 286:case 285:case 287:O=!0,30===A.kind&&(L=!0,W=A);break;case 295:case 294:(20===E.kind||80===E.kind&&292===E.parent.kind)&&(O=!0);break;case 292:if(r.initializer===E&&E.end<o){O=!0;break}switch(E.kind){case 64:w=!0;break;case 80:O=!0,r!==E.parent&&!r.initializer&&qY(r,64,t)&&(w=E)}}}}var V;const j=Vt();let H,q=5,J=!1,X=[];const Y=[],$=[],Q=new Set,Z=g||v||!!I&&Uc(W.parent)||!((ee=A)&&(114===ee.kind&&(187===ee.parent.kind||RC(ee.parent))||131===ee.kind&&183===ee.parent.kind))&&(E$(A,t,u)||Cm(W)||function(e){if(e){const n=e.parent.kind;switch(e.kind){case 59:return 173===n||172===n||170===n||261===n||ud(n);case 64:return 266===n||169===n;case 130:return 235===n;case 30:return 184===n||217===n;case 96:return 169===n;case 152:return 239===n}}return!1}(A));var ee;const ne=fn(n=>lQ(n?s.getPackageJsonAutoImportProvider():e,s));if(N||M)!function(){q=2;const e=hm(C),n=e&&!C.isTypeOf||Cm(C.parent)||E$(A,t,u),r=iY(C);if(rd(C)||e||_C(C)){const t=bN(C.parent);t&&(B=!0,D=[]);let o=u.getSymbolAtLocation(C);if(o&&(o=cT(o,u),1920&o.flags)){const a=u.getExportsOfModule(o);dt.assertEachIsDefined(a,"getExportsOfModule() should all be defined");const s=n=>u.isValidPropertyAccess(e?C:C.parent,n.name),l=e=>Zse(e,u),c=t?e=>{var n;return!!(1920&e.flags)&&!(null==(n=e.declarations)?void 0:n.every(e=>e.parent===C.parent))}:r?e=>l(e)||s(e):n||g?l:s;for(const e of a)c(e)&&X.push(e);if(!n&&!g&&o.declarations&&o.declarations.some(e=>308!==e.kind&&268!==e.kind&&267!==e.kind)){let e=u.getTypeOfSymbolAtLocation(o,C).getNonOptionalType(),n=!1;if(e.isNullableType()){const t=N&&!M&&!1!==i.includeAutomaticOptionalChainCompletions;(t||M)&&(e=e.getNonNullableType(),t&&(n=!0))}ie(e,!!(65536&C.flags),n)}return}}if(!n||fv(C)){u.tryGetThisTypeAt(C,!1);let e=u.getTypeAtLocation(C).getNonOptionalType();if(n)ie(e.getNonNullableType(),!1,!1);else{let n=!1;if(e.isNullableType()){const t=N&&!M&&!1!==i.includeAutomaticOptionalChainCompletions;(t||M)&&(e=e.getNonNullableType(),t&&(n=!0))}ie(e,!!(65536&C.flags),n)}}}();else if(L)X=u.getJsxIntrinsicTagNamesAt(W),dt.assertEachIsDefined(X,"getJsxIntrinsicTagNames() should all be defined"),le(),q=1,z=0;else if(k){const e=A.parent.parent.openingElement.tagName,n=u.getSymbolAtLocation(e);n&&(X=[n]),q=1,z=0}else if(!le())return z?nse(z,T,B):void 0;n("getCompletionData: Semantic work: "+(Vt()-j));const te=E&&function(e,n,t,r){const{parent:o}=e;switch(e.kind){case 80:return TZ(e,r);case 64:switch(o.kind){case 261:return r.getContextualType(o.initializer);case 227:return r.getTypeAtLocation(o.left);case 292:return r.getContextualTypeForJsxAttribute(o);default:return}case 105:return r.getContextualType(o);case 84:const i=en(o,rM);return i?RZ(i,r):void 0;case 19:return!nM(o)||HN(o.parent)||XN(o.parent)?void 0:r.getContextualTypeForJsxAttribute(o.parent);default:const a=due.getArgumentInfoForCompletions(e,n,t,r);return a?r.getContextualTypeForArgumentAtIndex(a.invocation,a.argumentIndex):EZ(e.kind)&&MC(o)&&EZ(o.operatorToken.kind)?r.getTypeAtLocation(o.left):r.getContextualType(e,4)||r.getContextualType(e)}}(E,o,t,u),re=!en(E,zu)&&!O?F(te&&(te.isUnion()?te.types:[te]),e=>!e.isLiteral()||1024&e.flags?void 0:e.value):[],oe=E&&te&&function(e,n,t){return p(n&&(n.isUnion()?n.types:[n]),n=>{const r=n&&n.symbol;return r&&424&r.flags&&!yT(r)?Ise(r,e,t):void 0})}(E,te,u);return{kind:0,symbols:X,completionKind:q,isInSnippetScope:b,propertyAccessToConvert:R,isNewIdentifierLocation:B,location:W,keywordFilters:z,literals:re,symbolToOriginInfoMap:Y,recommendedCompletion:oe,previousToken:E,contextToken:A,isJsxInitializer:w,insideJsDocTagTypeExpression:g,symbolToSortTextMap:$,isTypeOnlyLocation:Z,isJsxIdentifierExpected:O,isRightOfOpenTag:L,isRightOfDotOrQuestionDot:N||M,importStatementCompletion:I,hasUnresolvedAutoImports:J,flags:G,defaultCommitCharacters:D};function ie(e,n,t){e.getStringIndexType()&&(B=!0,D=[]),M&&U(e.getCallSignatures())&&(B=!0,D??(D=Oae));const r=206===C.kind?C:C.parent;if(f)for(const o of e.getApparentProperties())u.isValidPropertyAccessForCompletions(r,e,o)&&ae(o,!1,t);else X.push(...x(Vse(e,u),n=>u.isValidPropertyAccessForCompletions(r,e,n)));if(n&&i.includeCompletionsWithInsertText){const n=u.getPromisedTypeOfPromise(e);if(n)for(const e of n.getApparentProperties())u.isValidPropertyAccessForCompletions(r,n,e)&&ae(e,!0,t)}}function ae(n,r,a){var l;const c=p(n.declarations,e=>en(Dl(e),RD));if(c){const r=se(c.expression),a=r&&u.getSymbolAtLocation(r),p=a&&Ise(a,A,u),h=p&&dB(p);if(h&&AT(Q,h)){const n=X.length;X.push(p),$[dB(p)]=wae.GlobalsOrKeywords;const r=p.parent;if(r&&ep(r)&&u.tryGetMemberInModuleExportsAndProperties(p.name,r)===p){const a=Ds(Py(r.name))?null==(l=Ep(r))?void 0:l.fileName:void 0,{moduleSpecifier:c}=(H||(H=G5.createImportSpecifierResolver(t,e,s,i))).getModuleSpecifierForBestExportInfo([{exportKind:0,moduleFileName:a,isFromPackageJson:!1,moduleSymbol:r,symbol:p,targetFlags:cT(p,u).flags}],o,AA(W))||{};if(c){const e={kind:m(6),moduleSymbol:r,isDefaultExport:!1,symbolName:p.name,exportName:p.name,fileName:a,moduleSpecifier:c};Y[n]=e}}else Y[n]={kind:m(2)}}else if(i.includeCompletionsWithInsertText){if(h&&Q.has(h))return;f(n),d(n),X.push(n)}}else f(n),d(n),X.push(n);function d(e){(function(e){return!!(e.valueDeclaration&&256&jv(e.valueDeclaration)&&md(e.valueDeclaration.parent))})(e)&&($[dB(e)]=wae.LocalDeclarationPriority)}function f(e){i.includeCompletionsWithInsertText&&(r&&AT(Q,dB(e))?Y[X.length]={kind:m(8)}:a&&(Y[X.length]={kind:16}))}function m(e){return a?16|e:e}}function se(e){return dD(e)?e:_C(e)?se(e.expression):void 0}function le(){const n=function(){const e=function(e){if(!e)return;const n=e.parent;switch(e.kind){case 19:if(KD(n))return n;break;case 27:case 28:case 80:if(172===n.kind&&KD(n.parent))return n.parent}return}(A);if(!e)return 0;const n=(ZD(e.parent)?e.parent:void 0)||e,t=jse(n,u);if(!t)return 0;const r=u.getTypeFromTypeNode(n),o=Vse(t,u),i=Vse(r,u),a=new Set;return i.forEach(e=>a.add(e.escapedName)),X=K(X,x(o,e=>!a.has(e.escapedName))),q=0,B=!0,1}()||function(){if(26===(null==A?void 0:A.kind))return 0;const n=X.length,a=function(e,n,t){var r;if(e){const{parent:o}=e;switch(e.kind){case 19:case 28:if(hC(o)||uC(o))return o;break;case 42:return LD(o)?en(o.parent,hC):void 0;case 134:return en(o.parent,hC);case 80:if("async"===e.text&&lM(e.parent))return e.parent.parent;{if(hC(e.parent.parent)&&(cM(e.parent)||lM(e.parent)&&Ua(t,e.getEnd()).line!==Ua(t,n).line))return e.parent.parent;const r=ml(o,sM);if((null==r?void 0:r.getLastToken(t))===e&&hC(r.parent))return r.parent}break;default:if((null==(r=o.parent)?void 0:r.parent)&&(LD(o.parent)||OD(o.parent)||FD(o.parent))&&hC(o.parent.parent))return o.parent.parent;if(cM(o)&&hC(o.parent))return o.parent;const i=ml(o,sM);if(59!==e.kind&&(null==i?void 0:i.getLastToken(t))===e&&hC(i.parent))return i.parent}}return}(A,o,t);if(!a)return 0;let c,d;if(q=0,211===a.kind){const e=function(e,n){const t=n.getContextualType(e);if(t)return t;const r=ag(e.parent);if(MC(r)&&64===r.operatorToken.kind&&e===r.left)return n.getTypeAtLocation(r);if(qd(r))return n.getContextualType(r);return}(a,u);if(void 0===e)return 67108864&a.flags?2:0;const n=u.getContextualType(a,4),t=(n||e).getStringIndexType(),r=(n||e).getNumberIndexType();if(B=!!t||!!r,c=Bse(e,n,a,u),d=a.properties,0===c.length&&!r)return 0}else{dt.assert(207===a.kind),B=!1;const e=ny(a.parent);if(!wm(e))return dt.fail("Root declaration is not variable-like.");let n=Lu(e)||!!gv(e)||251===e.parent.parent.kind;if(n||170!==e.kind||(qd(e.parent)?n=!!u.getContextualType(e.parent):175!==e.parent.kind&&179!==e.parent.kind||(n=qd(e.parent.parent)&&!!u.getContextualType(e.parent.parent))),n){const e=u.getTypeAtLocation(a);if(!e)return 2;c=u.getPropertiesOfType(e).filter(n=>u.isPropertyAccessible(a,!1,!1,e,n)),d=a.elements}}if(c&&c.length>0){const t=function(e,n){if(0===n.length)return e;const t=new Set,r=new Set;for(const i of n){if(304!==i.kind&&305!==i.kind&&209!==i.kind&&175!==i.kind&&178!==i.kind&&179!==i.kind&&306!==i.kind)continue;if(ve(i))continue;let e;if(cM(i))me(i,t);else if(fC(i)&&i.propertyName)80===i.propertyName.kind&&(e=i.propertyName.escapedText);else{const n=Dl(i);e=n&&Ug(n)?Kg(n):void 0}void 0!==e&&r.add(e)}const o=e.filter(e=>!r.has(e.escapedName));return _e(t,o),o}(c,dt.checkDefined(d));X=K(X,t),he(),211===a.kind&&i.includeCompletionsWithObjectLiteralMethodSnippets&&i.includeCompletionsWithInsertText&&(function(e){for(let n=e;n<X.length;n++){const e=X[n],t=dB(e),o=null==Y?void 0:Y[n],i=Mse(e,SS(r),o,0,!1);if(i){const e=$[t]??wae.LocationPriority,{name:n}=i;$[t]=wae.ObjectLiteralProperty(e,n)}}}(n),function(n,t){if(Lh(W))return;n.forEach(n=>{if(!function(e){if(!(8196&e.flags))return!1;return!0}(n))return;const o=Mse(n,SS(r),void 0,0,!1);if(!o)return;const{name:a}=o,c=pse(n,a,t,e,s,r,i,l);if(!c)return;const d={kind:128,...c};G|=32,Y[X.length]=d,X.push(n)})}(t,a))}return 1}()||(I?(B=!0,ce(),1):0)||function(){if(!A)return 0;const e=19===A.kind||28===A.kind?en(A.parent,CT):Z$(A)?en(A.parent.parent,CT):void 0;if(!e)return 0;Z$(A)||(z=8);const{moduleSpecifier:n}=276===e.kind?e.parent.parent:e.parent;if(!n)return B=!0,276===e.kind?2:0;const t=u.getSymbolAtLocation(n);if(!t)return B=!0,2;q=3,B=!1;const r=u.getExportsAndPropertiesOfModule(t),o=new Set(e.elements.filter(e=>!ve(e)).map(e=>Yp(e.propertyName||e.name))),i=r.filter(e=>"default"!==e.escapedName&&!o.has(e.escapedName));X=K(X,i),i.length||(z=0);return 1}()||function(){if(void 0===A)return 0;const e=19===A.kind||28===A.kind?en(A.parent,NN):59===A.kind?en(A.parent.parent,NN):void 0;if(void 0===e)return 0;const n=new Set(e.elements.map(gx));return X=x(u.getTypeAtLocation(e).getApparentProperties(),e=>!n.has(e.escapedName)),1}()||function(){var e;const n=!A||19!==A.kind&&28!==A.kind?void 0:en(A.parent,WN);if(!n)return 0;const t=ml(n,et(uM,bN));return q=5,B=!1,null==(e=t.locals)||e.forEach((e,n)=>{var r,o;X.push(e),(null==(o=null==(r=t.symbol)?void 0:r.exports)?void 0:o.has(n))&&($[dB(e)]=wae.OptionalMember)}),1}()||(function(e){if(e){const n=e.parent;switch(e.kind){case 21:case 28:return wD(e.parent)?e.parent:void 0;default:if(ue(e))return n.parent}}}(A)?(q=5,B=!0,z=4,1):0)||function(){const e=function(e,n,t,r){switch(t.kind){case 353:return en(t.parent,xT);case 1:const n=en(ge(nn(t.parent,uM).statements),xT);if(n&&!qY(n,20,e))return n;break;case 81:if(en(t.parent,MD))return ml(t,md);break;case 80:if(bl(t))return;if(MD(t.parent)&&t.parent.initializer===t)return;if(Use(t))return ml(t,xT)}if(!n)return;if(137===t.kind||dD(n)&&MD(n.parent)&&md(t))return ml(n,md);switch(n.kind){case 64:return;case 27:case 20:return Use(t)&&t.parent.name===t?t.parent.parent:en(t,xT);case 19:case 28:return en(n.parent,xT);default:if(xT(t)){if(Ua(e,n.getEnd()).line!==Ua(e,r).line)return t;const o=md(n.parent.parent)?Fse:Ose;return o(n.kind)||42===n.kind||dD(n)&&o(bl(n)??0)?n.parent.parent:void 0}return}}(t,A,W,o);if(!e)return 0;if(q=3,B=!0,z=42===A.kind?0:md(e)?2:3,!md(e))return 1;const n=27===A.kind?A.parent.parent:A.parent;let r=fd(n)?jv(n):0;if(80===A.kind&&!ve(A))switch(A.getText()){case"private":r|=2;break;case"static":r|=256;break;case"override":r|=16}kD(n)&&(r|=256);if(!(2&r)){const n=P(md(e)&&16&r?rt(Tg(e)):Ag(e),n=>{const t=u.getTypeAtLocation(n);return 256&r?(null==t?void 0:t.symbol)&&u.getPropertiesOfType(u.getTypeOfSymbolAtLocation(t.symbol,e)):t&&u.getPropertiesOfType(t)});X=K(X,function(e,n,t){const r=new Set;for(const o of n){if(173!==o.kind&&175!==o.kind&&178!==o.kind&&179!==o.kind)continue;if(ve(o))continue;if(Nv(o,2))continue;if(Pv(o)!==!!(256&t))continue;const e=jg(o.name);e&&r.add(e)}return e.filter(e=>!(r.has(e.escapedName)||!e.declarations||2&lT(e)||e.valueDeclaration&&$c(e.valueDeclaration)))}(n,e.members,r)),d(X,(e,n)=>{const t=null==e?void 0:e.valueDeclaration;if(t&&fd(t)&&t.name&&RD(t.name)){const t={kind:512,symbolName:u.symbolToString(e)};Y[n]=t}})}return 1}()||function(){const e=function(e){if(e){const n=e.parent;switch(e.kind){case 32:case 31:case 44:case 80:case 212:case 293:case 292:case 294:if(n&&(286===n.kind||287===n.kind)){if(32===e.kind){const r=p$(e.pos,t,void 0);if(!n.typeArguments||r&&44===r.kind)break}return n}if(292===n.kind)return n.parent.parent;break;case 11:if(n&&(292===n.kind||294===n.kind))return n.parent.parent;break;case 20:if(n&&295===n.kind&&n.parent&&292===n.parent.kind)return n.parent.parent.parent;if(n&&294===n.kind)return n.parent.parent}}return}(A),n=e&&u.getContextualType(e.attributes);if(!n)return 0;const r=e&&u.getContextualType(e.attributes,4);return X=K(X,function(e,n){const t=new Set,r=new Set;for(const i of n)ve(i)||(292===i.kind?t.add(ix(i.name)):eM(i)&&me(i,r));const o=e.filter(e=>!t.has(e.escapedName));return _e(r,o),o}(Bse(n,r,e.attributes,u),e.attributes.properties)),he(),q=3,B=!1,1}()||(function(){z=function(e){if(e){let n;const t=ml(e.parent,e=>md(e)?"quit":!(!ld(e)||n!==e.body)||(n=e,!1));return t&&t}}(A)?5:1,q=1,({isNewIdentifierLocation:B,defaultCommitCharacters:D}=de()),E!==A&&dt.assert(!!E,"Expected 'contextToken' to be defined when different from 'previousToken'.");const e=E!==A?E.getStart():o,n=function(e,n,t){let r=e;for(;r&&!VY(r,n,t);)r=r.parent;return r}(A,e,t)||t;b=function(e){switch(e.kind){case 308:case 229:case 295:case 242:return!0;default:return _u(e)}}(n);const r=2887656|(Z?0:111551),a=E&&!AA(E);X=K(X,u.getSymbolsInScope(n,r)),dt.assertEachIsDefined(X,"getSymbolsInScope() should all be defined");for(let o=0;o<X.length;o++){const e=X[o];if(u.isArgumentsSymbol(e)||U(e.declarations,e=>e.getSourceFile()===t)||($[dB(e)]=wae.GlobalsOrKeywords),a&&!(111551&e.flags)){const n=e.declarations&&y(e.declarations,Vc);if(n){const e={kind:64,declaration:n};Y[o]=e}}}if(i.includeCompletionsWithInsertText&&308!==n.kind){const e=u.tryGetThisTypeAt(n,!1,md(n.parent)?n:void 0);if(e&&!function(e,n,t){const r=t.resolveName("self",void 0,111551,!1);if(r&&t.getTypeOfSymbolAtLocation(r,n)===e)return!0;const o=t.resolveName("global",void 0,111551,!1);if(o&&t.getTypeOfSymbolAtLocation(o,n)===e)return!0;const i=t.resolveName("globalThis",void 0,111551,!1);if(i&&t.getTypeOfSymbolAtLocation(i,n)===e)return!0;return!1}(e,t,u))for(const n of Vse(e,u))Y[X.length]={kind:1},X.push(n),$[dB(n)]=wae.SuggestedClassMembers}ce(),Z&&(z=A&&Jd(A.parent)?6:7)}(),1);return 1===n}function ce(){var n,r;if(!function(){var n;return!!I||!!i.includeCompletionsForModuleExports&&(!(!t.externalModuleIndicator&&!t.commonJsModuleIndicator)||!!sQ(e.getCompilerOptions())||(null==(n=e.getSymlinkCache)?void 0:n.call(e).hasAnySymlinks())||!!e.getCompilerOptions().paths||iQ(e))}())return;if(dt.assert(!(null==a?void 0:a.data),"Should not run 'collectAutoImports' when faster path is available via `data`"),a&&!a.source)return;G|=1;const l=E===A&&I?"":E&&dD(E)?E.text.toLowerCase():"",d=null==(n=s.getModuleSpecifierCache)?void 0:n.call(s),u=D0(t,s,e,i,c),p=null==(r=s.getPackageJsonAutoImportProvider)?void 0:r.call(s),f=a?void 0:HZ(t,i,s);function m(n){return T0(n.isFromPackageJson?p:e,t,en(n.moduleSymbol.valueDeclaration,uM),n.moduleSymbol,i,f,ne(n.isFromPackageJson),d)}Kae("collectAutoImports",s,H||(H=G5.createImportSpecifierResolver(t,e,s,i)),e,o,i,!!I,AA(W),e=>{u.search(t.path,L,(e,n)=>{if(!ys(e,SS(s.getCompilationSettings())))return!1;if(!a&&Lg(e))return!1;if(!(Z||I||111551&n))return!1;if(Z&&!(790504&n))return!1;const t=e.charCodeAt(0);return(!L||!(t<65||t>90))&&(!!a||nle(e,l))},(n,t,r,o)=>{if(a&&!U(n,e=>a.source===Py(e.moduleSymbol.name)))return;if(!(n=x(n,m)).length)return;const i=e.tryResolve(n,r)||{};if("failed"===i)return;let s,l=n[0];"skipped"!==i&&({exportInfo:l=n[0],moduleSpecifier:s}=i);const c=1===l.exportKind;!function(e,n){const t=dB(e);if($[t]===wae.GlobalsOrKeywords)return;Y[X.length]=n,$[t]=I?wae.LocationPriority:wae.AutoImportSuggestions,X.push(e)}(c&&Eb(dt.checkDefined(l.symbol))||dt.checkDefined(l.symbol),{kind:s?32:4,moduleSpecifier:s,symbolName:t,exportMapKey:o,exportName:2===l.exportKind?"export=":dt.checkDefined(l.symbol).name,fileName:l.moduleFileName,isDefaultExport:c,moduleSymbol:l.moduleSymbol,isFromPackageJson:l.isFromPackageJson})}),J=e.skippedAny(),G|=e.resolvedAny()?8:0,G|=e.resolvedBeyondLimit()?16:0})}function de(){if(A){const e=A.parent.kind,n=zse(A);switch(n){case 28:switch(e){case 214:case 215:{const e=A.parent.expression;return Ua(t,e.end).line!==Ua(t,o).line?{defaultCommitCharacters:Fae,isNewIdentifierLocation:!0}:{defaultCommitCharacters:Oae,isNewIdentifierLocation:!0}}case 227:return{defaultCommitCharacters:Fae,isNewIdentifierLocation:!0};case 177:case 185:case 211:return{defaultCommitCharacters:[],isNewIdentifierLocation:!0};case 210:return{defaultCommitCharacters:Oae,isNewIdentifierLocation:!0};default:return{defaultCommitCharacters:Oae,isNewIdentifierLocation:!1}}case 21:switch(e){case 214:case 215:{const e=A.parent.expression;return Ua(t,e.end).line!==Ua(t,o).line?{defaultCommitCharacters:Fae,isNewIdentifierLocation:!0}:{defaultCommitCharacters:Oae,isNewIdentifierLocation:!0}}case 218:return{defaultCommitCharacters:Fae,isNewIdentifierLocation:!0};case 177:case 197:return{defaultCommitCharacters:[],isNewIdentifierLocation:!0};default:return{defaultCommitCharacters:Oae,isNewIdentifierLocation:!1}}case 23:switch(e){case 210:case 182:case 190:case 168:return{defaultCommitCharacters:Oae,isNewIdentifierLocation:!0};default:return{defaultCommitCharacters:Oae,isNewIdentifierLocation:!1}}case 144:case 145:case 102:return{defaultCommitCharacters:[],isNewIdentifierLocation:!0};case 25:return 268===e?{defaultCommitCharacters:[],isNewIdentifierLocation:!0}:{defaultCommitCharacters:Oae,isNewIdentifierLocation:!1};case 19:switch(e){case 264:case 211:return{defaultCommitCharacters:[],isNewIdentifierLocation:!0};default:return{defaultCommitCharacters:Oae,isNewIdentifierLocation:!1}}case 64:switch(e){case 261:case 227:return{defaultCommitCharacters:Oae,isNewIdentifierLocation:!0};default:return{defaultCommitCharacters:Oae,isNewIdentifierLocation:!1}}case 16:return{defaultCommitCharacters:Oae,isNewIdentifierLocation:229===e};case 17:return{defaultCommitCharacters:Oae,isNewIdentifierLocation:240===e};case 134:return 175===e||305===e?{defaultCommitCharacters:[],isNewIdentifierLocation:!0}:{defaultCommitCharacters:Oae,isNewIdentifierLocation:!1};case 42:return 175===e?{defaultCommitCharacters:[],isNewIdentifierLocation:!0}:{defaultCommitCharacters:Oae,isNewIdentifierLocation:!1}}if(Fse(n))return{defaultCommitCharacters:[],isNewIdentifierLocation:!0}}return{defaultCommitCharacters:Oae,isNewIdentifierLocation:!1}}function ue(e){return!!e.parent&&DD(e.parent)&&wD(e.parent.parent)&&(ed(e.kind)||pg(e))}function pe(e,n){return 64!==e.kind&&(27===e.kind||!Yb(e.end,n,t))}function fe(e){return ud(e)&&177!==e}function me(e,n){const t=e.expression,r=u.getSymbolAtLocation(t),o=r&&u.getTypeOfSymbolAtLocation(r,t),i=o&&o.properties;i&&i.forEach(e=>{n.add(e.name)})}function he(){X.forEach(e=>{if(16777216&e.flags){const n=dB(e);$[n]=$[n]??wae.OptionalMember}})}function _e(e,n){if(0!==e.size)for(const t of n)e.has(t.name)&&($[dB(t)]=wae.MemberDeclaredBySpreadAssignment)}function ve(e){return e.getStart(t)<=o&&o<=e.getEnd()}}function Cse(e,n){const t=p$(e,n);if(t&&e<=t.end&&(hc(t)||Dg(t.kind))){return{contextToken:p$(t.getFullStart(),n,void 0),previousToken:t}}return{contextToken:t,previousToken:t}}function Nse(e,n,t,r){const o=n.isPackageJsonImport?r.getPackageJsonAutoImportProvider():t,i=o.getTypeChecker(),a=n.ambientModuleName?i.tryFindAmbientModule(n.ambientModuleName):n.fileName?i.getMergedSymbol(dt.checkDefined(o.getSourceFile(n.fileName)).symbol):void 0;if(!a)return;let s="export="===n.exportName?i.resolveExternalModuleSymbol(a):i.tryGetMemberInModuleExportsAndProperties(n.exportName,a);if(!s)return;return s="default"===n.exportName&&Eb(s)||s,{symbol:s,origin:hse(n,e,a)}}function Mse(e,n,t,r,o){if(function(e){return!!(e&&256&e.kind)}(t))return;const i=function(e){return Bae(e)||Gae(e)||Hae(e)}(t)?t.symbolName:e.name;if(void 0===i||1536&e.flags&&Uh(i.charCodeAt(0))||Jg(e))return;const a={name:i,needsConvertPropertyAccess:!1};if(ys(i,n,o?1:0)||e.valueDeclaration&&$c(e.valueDeclaration))return a;if(2097152&e.flags)return{name:i,needsConvertPropertyAccess:!0};switch(r){case 3:return Hae(t)?{name:t.symbolName,needsConvertPropertyAccess:!1}:void 0;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 a;default:dt.assertNever(r)}}var Pse=[],Lse=pn(()=>{const e=[];for(let n=83;n<=166;n++)e.push({name:Pa(n),kind:"keyword",kindModifiers:"",sortText:wae.GlobalsOrKeywords});return e});function kse(e,n){if(!n)return wse(e);const t=e+8+1;return Pse[t]||(Pse[t]=wse(e).filter(e=>!function(e){switch(e){case 128:case 133:case 163:case 136:case 138:case 94:case 162:case 119:case 140:case 120:case 142:case 143:case 144:case 145:case 146:case 150:case 151:case 164:case 123:case 124:case 125:case 148:case 154:case 155:case 156:case 158:case 159:return!0;default:return!1}}(La(e.name))))}function wse(e){return Pse[e]||(Pse[e]=Lse().filter(n=>{const t=La(n.name);switch(e){case 0:return!1;case 1:return Wse(t)||138===t||144===t||156===t||145===t||128===t||$$(t)&&157!==t;case 5:return Wse(t);case 2:return Fse(t);case 3:return Ose(t);case 4:return ed(t);case 6:return $$(t)||87===t;case 7:return $$(t);case 8:return 156===t;default:return dt.assertNever(e)}}))}function Ose(e){return 148===e}function Fse(e){switch(e){case 128:case 129:case 137:case 139:case 153:case 134:case 138:case 164:return!0;default:return nd(e)}}function Wse(e){return 134===e||135===e||160===e||130===e||152===e||156===e||!Mg(e)&&!Fse(e)}function zse(e){return dD(e)?bl(e)??0:e.kind}function Bse(e,n,t,r){const o=n&&n!==e,i=r.getUnionType(x(1048576&e.flags?e.types:[e],e=>!r.getPromisedTypeOfPromise(e))),a=!o||3&n.flags?i:r.getUnionType([i,n]),s=function(e,n,t){return e.isUnion()?t.getAllPossiblePropertiesOfTypes(x(e.types,e=>!(402784252&e.flags||t.isArrayLikeType(e)||t.isTypeInvalidDueToUnionDiscriminant(e,n)||t.typeHasCallOrConstructSignatures(e)||e.isClass()&&Gse(e.getApparentProperties())))):e.getApparentProperties()}(a,t,r);return a.isClass()&&Gse(s)?[]:o?x(s,function(e){return!c(e.declarations)||U(e.declarations,e=>e.parent!==t)}):s}function Gse(e){return U(e,e=>!!(6&lT(e)))}function Vse(e,n){return e.isUnion()?dt.checkEachDefined(n.getAllPossiblePropertiesOfTypes(e.types),"getAllPossiblePropertiesOfTypes() should all be defined"):dt.checkEachDefined(e.getApparentProperties(),"getApparentProperties() should all be defined")}function jse(e,n){if(!e)return;if(Ed(e)&&Ou(e.parent))return n.getTypeArgumentConstraint(e);const t=jse(e.parent,n);if(t)switch(e.kind){case 172:return n.getTypeOfPropertyOfContextualType(t,e.symbol.escapedName);case 194:case 188:case 193:return t}}function Use(e){return e.parent&&Td(e.parent)&&xT(e.parent.parent)}function Hse({left:e}){return Np(e)}function Kse(e,n){var t,r,o;let i,a=!1;const s=function(){const t=e.parent;if(AN(t)){const r=t.getLastToken(n);return dD(e)&&r!==e?(i=161,void(a=!0)):(i=156===e.kind?void 0:156,$se(t.moduleReference)?t:void 0)}if(Xse(t,e)&&Yse(t.parent))return t;if(kN(t)||PN(t)){if(t.parent.isTypeOnly||19!==e.kind&&102!==e.kind&&28!==e.kind||(i=156),Yse(t)){if(20!==e.kind&&80!==e.kind)return t.parent.parent;a=!0,i=161}return}if(FN(t)&&42===e.kind||WN(t)&&20===e.kind)return a=!0,void(i=161);if(ED(e)&&uM(t))return i=156,e;if(ED(e)&&xN(t))return i=156,$se(t.moduleSpecifier)?t:void 0;return}();return{isKeywordOnlyCompletion:a,keywordCompletion:i,isNewIdentifierLocation:!(!s&&156!==i),isTopLevelTypeOnly:!!(null==(r=null==(t=en(s,xN))?void 0:t.importClause)?void 0:r.isTypeOnly)||!!(null==(o=en(s,AN))?void 0:o.isTypeOnly),couldBeTypeOnlyImportSpecifier:!!s&&Xse(s,e),replacementSpan:qse(s)}}function qse(e){var n;if(!e)return;const t=ml(e,et(xN,AN,eP))??e,r=t.getSourceFile();if(Vb(t,r))return j$(t,r);dt.assert(102!==t.kind&&277!==t.kind);const o=273===t.kind||352===t.kind?Jse(null==(n=t.importClause)?void 0:n.namedBindings)??t.moduleSpecifier:t.moduleReference,i={pos:t.getFirstToken().getStart(),end:o.pos};return Vb(i,r)?K$(i):void 0}function Jse(e){var n;return y(null==(n=en(e,kN))?void 0:n.elements,n=>{var t;return!n.propertyName&&Lg(n.name.text)&&28!==(null==(t=p$(n.name.pos,e.getSourceFile(),e))?void 0:t.kind)})}function Xse(e,n){return wN(e)&&(e.isTypeOnly||n===e.name&&Z$(n))}function Yse(e){if(!$se(e.parent.parent.moduleSpecifier)||e.parent.name)return!1;if(kN(e)){const n=Jse(e);return(n?e.elements.indexOf(n):e.elements.length)<2}return!0}function $se(e){var n;return!!Np(e)||!(null==(n=en(UN(e)?e.expression:e,zu))?void 0:n.text)}function Qse(e){return e.parent&&AC(e.parent)&&(e.parent.body===e||39===e.kind)}function Zse(e,n,t=new Set){return r(e)||r(cT(e.exportSymbol||e,n));function r(e){return!!(788968&e.flags)||n.isUnknownSymbol(e)||!!(1536&e.flags)&&AT(t,e)&&n.getExportsOfModule(e).some(e=>Zse(e,n,t))}}function ele(e,n){const t=cT(e,n).declarations;return!!c(t)&&g(t,s0)}function nle(e,n){if(0===n.length)return!0;let t,r=!1,o=0;const i=e.length;for(let a=0;a<i;a++){const i=e.charCodeAt(a),s=n.charCodeAt(o);if((i===s||i===tle(s))&&(r||(r=void 0===t||97<=t&&t<=122&&65<=i&&i<=90||95===t&&95!==i),r&&o++,o===n.length))return!0;t=i}return!1}function tle(e){return 97<=e&&e<=122?e-32:e}function rle(e){return"abstract"===e||"async"===e||"await"===e||"declare"===e||"module"===e||"namespace"===e||"type"===e||"satisfies"===e||"as"===e}var ole={};t(ole,{getStringLiteralCompletionDetails:()=>lle,getStringLiteralCompletions:()=>sle});var ile={directory:0,script:1,"external module name":2};function ale(){const e=new Map;return{add:function(n){const t=e.get(n.name);(!t||ile[t.kind]<ile[n.kind])&&e.set(n.name,n)},has:e.has.bind(e),values:e.values.bind(e)}}function sle(e,n,t,r,o,i,a,s,l){if(z$(e,n)){const t=function(e,n,t,r,o){const i=t.getCompilerOptions(),a=s$(e,n),s=fs(e.text,a.pos),l=s&&y(s,e=>n>=e.pos&&n<=e.end);if(!l)return;const c=e.text.slice(l.pos,n),d=Mle.exec(c);if(!d)return;const[,u,p,f]=d,m=Mi(e.path),h="path"===p?Tle(f,m,vle(i,0,e),t,r,o,!0,e.path):"types"===p?Nle(t,r,o,m,Rle(f),vle(i,1,e)):dt.fail();return gle(f,l.pos+u.length,Le(h.values()))}(e,n,i,o,lQ(i,o));return t&&cle(t)}if(_$(e,n,t)){if(!t||!zu(t))return;return function(e,n,t,r,o,i,a,s,l,c){if(void 0===e)return;const d=U$(n,l);switch(e.kind){case 0:return cle(e.paths);case 1:{const u=[];return vse(e.symbols,u,n,n,t,l,t,r,o,99,i,4,s,a,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,c),{isGlobalCompletion:!1,isMemberCompletion:!0,isNewIdentifierLocation:e.hasIndexSignature,optionalReplacementSpan:d,entries:u,defaultCommitCharacters:qae(e.hasIndexSignature)}}case 2:{const t=15===n.kind?96:Xn(Zp(n),"'")?39:34,r=e.types.map(e=>({name:Ay(e.value,t),kindModifiers:"",kind:"string",sortText:wae.LocationPriority,replacementSpan:V$(n,l),commitCharacters:[]}));return{isGlobalCompletion:!1,isMemberCompletion:!1,isNewIdentifierLocation:e.isNewIdentifier,optionalReplacementSpan:d,entries:r,defaultCommitCharacters:qae(e.isNewIdentifier)}}default:return dt.assertNever(e)}}(ule(e,t,n,i,o,s),t,e,o,i,a,r,s,n,l)}}function lle(e,n,t,r,o,i,a,s){if(!r||!zu(r))return;const l=ule(n,r,t,o,i,s);return l&&function(e,n,t,r,o,i){switch(t.kind){case 0:{const n=y(t.paths,n=>n.name===e);return n&&Ase(e,dle(n.extension),n.kind,[KQ(e)])}case 1:{const a=y(t.symbols,n=>n.name===e);return a&&Ese(a,a.name,o,r,n,i)}case 2:return y(t.types,n=>n.value===e)?Ase(e,"","string",[KQ(e)]):void 0;default:return dt.assertNever(t)}}(e,r,l,n,o.getTypeChecker(),a)}function cle(e){const n=!0;return{isGlobalCompletion:!1,isMemberCompletion:!1,isNewIdentifierLocation:n,entries:e.map(({name:e,kind:n,span:t,extension:r})=>({name:e,kind:n,kindModifiers:dle(r),sortText:wae.LocationPriority,replacementSpan:t})),defaultCommitCharacters:qae(n)}}function dle(e){switch(e){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".d.mts":return".d.mts";case".mjs":return".mjs";case".mts":return".mts";case".d.cts":return".d.cts";case".cjs":return".cjs";case".cts":return".cts";case".tsbuildinfo":return dt.fail("Extension .tsbuildinfo is unsupported.");case void 0:return"";default:return dt.assertNever(e)}}function ule(e,n,t,r,o,i){const a=r.getTypeChecker(),s=ple(n.parent);switch(s.kind){case 202:{const l=ple(s.parent);return 206===l.kind?{kind:0,paths:yle(e,n,r,o,i)}:function e(n){switch(n.kind){case 234:case 184:{const e=ml(s,e=>e.parent===n);return e?{kind:2,types:mle(a.getTypeArgumentConstraint(e)),isNewIdentifier:!1}:void 0}case 200:const{indexType:o,objectType:i}=n;if(!OY(o,t))return;return fle(a.getTypeFromTypeNode(i));case 193:{const t=e(ple(n.parent));if(!t)return;const o=(r=s,F(n.types,e=>e!==r&&sC(e)&&qI(e.literal)?e.literal.text:void 0));return 1===t.kind?{kind:1,symbols:t.symbols.filter(e=>!S(o,e.name)),hasIndexSignature:t.hasIndexSignature}:{kind:2,types:t.types.filter(e=>!S(o,e.value)),isNewIdentifier:!1}}default:return}var r}(l)}case 304:return hC(s.parent)&&s.name===n?function(e,n){const t=e.getContextualType(n);if(!t)return;const r=e.getContextualType(n,4);return{kind:1,symbols:Bse(t,r,n,e),hasIndexSignature:xZ(t)}}(a,s.parent):l()||l(0);case 213:{const{expression:e,argumentExpression:t}=s;return n===cg(t)?fle(a.getTypeAtLocation(e)):void 0}case 214:case 215:case 292:if(!function(e){return yC(e.parent)&&fe(e.parent.arguments)===e&&dD(e.parent.expression)&&"require"===e.parent.expression.escapedText}(n)&&!fm(s)){const r=due.getArgumentInfoForCompletions(292===s.kind?s.parent:n,t,e,a);return r&&function(e,n,t,r){let o=!1;const i=new Set,a=Eu(e)?dt.checkDefined(ml(n.parent,QN)):n,s=P(r.getCandidateSignaturesForStringLiteralCompletions(e,a),n=>{if(!_B(n)&&t.argumentCount>n.parameters.length)return;let s=n.getTypeParameterAtPosition(t.argumentIndex);if(Eu(e)){const e=r.getTypeOfPropertyOfType(s,ax(a.name));e&&(s=e)}return o=o||!!(4&s.flags),mle(s,i)});return c(s)?{kind:2,types:s,isNewIdentifier:o}:void 0}(r.invocation,n,r,a)||l(0)}case 273:case 279:case 284:case 352:return{kind:0,paths:yle(e,n,r,o,i)};case 297:const d=m0(a,s.parent.clauses),u=l();if(!u)return;return{kind:2,types:u.types.filter(e=>!d.hasValue(e.value)),isNewIdentifier:!1};case 277:case 282:const p=s;if(p.propertyName&&n!==p.propertyName)return;const f=p.parent,{moduleSpecifier:m}=276===f.kind?f.parent.parent:f.parent;if(!m)return;const h=a.getSymbolAtLocation(m);if(!h)return;const _=a.getExportsAndPropertiesOfModule(h),g=new Set(f.elements.map(e=>Yp(e.propertyName||e.name)));return{kind:1,symbols:_.filter(e=>"default"!==e.escapedName&&!g.has(e.escapedName)),hasIndexSignature:!1};case 227:if(103===s.operatorToken.kind){const e=a.getTypeAtLocation(s.right);return{kind:1,symbols:(e.isUnion()?a.getAllPossiblePropertiesOfTypes(e.types):e.getApparentProperties()).filter(e=>!e.valueDeclaration||!$c(e.valueDeclaration)),hasIndexSignature:!1}}return l(0);default:return l()||l(0)}function l(e=4){const t=mle(TZ(n,a,e));if(t.length)return{kind:2,types:t,isNewIdentifier:!1}}}function ple(e){switch(e.kind){case 197:return ig(e);case 218:return ag(e);default:return e}}function fle(e){return e&&{kind:1,symbols:x(e.getApparentProperties(),e=>!(e.valueDeclaration&&$c(e.valueDeclaration))),hasIndexSignature:xZ(e)}}function mle(e,n=new Set){return e?(e=rQ(e)).isUnion()?P(e.types,e=>mle(e,n)):!e.isStringLiteral()||1024&e.flags||!AT(n,e.value)?s:[e]:s}function hle(e,n,t){return{name:e,kind:n,extension:t}}function _le(e){return hle(e,"directory",void 0)}function gle(e,n,t){const r=function(e,n){const t=Math.max(e.lastIndexOf(pi),e.lastIndexOf(fi)),r=-1!==t?t+1:0,o=e.length-r;return 0===o||ys(e.substr(r,o),99)?void 0:Js(n+r,o)}(e,n),o=0===e.length?void 0:Js(n,e.length);return t.map(({name:e,kind:n,extension:t})=>e.includes(pi)||e.includes(fi)?{name:e,kind:n,extension:t,span:o}:{name:e,kind:n,extension:t,span:r})}function yle(e,n,t,r,o){return gle(n.text,n.getStart(e)+1,function(e,n,t,r,o){const i=Fi(n.text),a=zu(n)?t.getModeForUsageLocation(e,n):void 0,l=e.path,c=Mi(l),d=t.getCompilerOptions(),u=t.getTypeChecker(),f=lQ(t,r),m=vle(d,1,e,u,o,a);return function(e){if(e&&e.length>=2&&46===e.charCodeAt(0)){const n=e.length>=3&&46===e.charCodeAt(1)?2:1,t=e.charCodeAt(n);return 47===t||92===t}return!1}(i)||!d.baseUrl&&!d.paths&&(yi(i)||gi(i))?function(e,n,t,r,o,i,a){const s=t.getCompilerOptions();return s.rootDirs?function(e,n,t,r,o,i,a,s){const l=o.getCompilerOptions(),c=l.project||i.getCurrentDirectory(),d=!(i.useCaseSensitiveFileNames&&i.useCaseSensitiveFileNames()),u=function(e,n,t,r){e=e.map(e=>Ji(ji(yi(e)?e:zi(n,e))));const o=p(e,e=>ra(e,t,n,r)?t.substr(e.length):void 0);return Y([...e.map(e=>zi(e,o)),t].map(e=>qi(e)),gn,xn)}(e,c,t,d);return Y(P(u,e=>Le(Tle(n,e,r,o,i,a,!0,s).values())),(e,n)=>e.name===n.name&&e.kind===n.kind&&e.extension===n.extension)}(s.rootDirs,e,n,a,t,r,o,i):Le(Tle(e,n,a,t,r,o,!0,i).values())}(i,c,t,r,f,l,m):function(e,n,t,r,o,i,a){const l=r.getTypeChecker(),c=r.getCompilerOptions(),{baseUrl:d,paths:u}=c,p=ale(),f=AS(c);if(d){const n=ji(zi(o.getCurrentDirectory(),d));Tle(e,n,a,r,o,i,!1,void 0,p)}if(u){const n=$y(c,o);Ele(p,e,n,a,r,o,i,u)}const m=Rle(e);for(const s of function(e,n,t){const r=t.getAmbientModules().map(e=>Py(e.name)).filter(n=>Xn(n,e)&&!n.includes("*"));if(void 0!==n){const e=Ji(n);return r.map(n=>Yn(n,e))}return r}(e,m,l))p.add(hle(s,"external module name",void 0));if(Nle(r,o,i,n,m,a,p),dQ(f)){let t=!1;if(void 0===m)for(const e of function(e,n){if(!e.readFile||!e.fileExists)return s;const t=[];for(const r of VZ(n,e)){const n=Nb(r,e);for(const e of Ple){const r=n[e];if(r)for(const e in r)Ie(r,e)&&!Xn(e,"@types/")&&t.push(e)}}return t}(o,n)){const n=hle(e,"external module name",void 0);p.has(n.name)||(t=!0,p.add(n))}if(!t){const t=CS(c),s=NS(c);let l=!1;const d=n=>{if(s&&!l){const t=zi(n,"package.json");if(l=WZ(o,t)){h(Nb(t,o).imports,e,n,!1,!0)}}};let u=n=>{const t=zi(n,"node_modules");zZ(o,t)&&Tle(e,t,a,r,o,i,!1,void 0,p),d(n)};if(m&&t){const n=u;u=t=>{const r=wi(e);r.shift();let i=r.shift();if(!i)return n(t);if(Xn(i,"@")){const e=r.shift();if(!e)return n(t);i=zi(i,e)}if(s&&Xn(i,"#"))return d(t);const a=zi(t,"node_modules",i),l=zi(a,"package.json");if(WZ(o,l)){const n=Nb(l,o),t=r.join("/")+(r.length&&Ii(e)?"/":"");return void h(n.exports,t,a,!0,!1)}return n(t)}}kW(o,n,u)}}return Le(p.values());function h(e,n,s,l,d){if("object"!=typeof e||null===e)return;const u=Ce(e),f=RF(c,t);Ale(p,l,d,n,s,a,r,o,i,u,n=>{const t=xle(e[n],f);if(void 0!==t)return rt(Fn(n,"/")&&Fn(t,"/")?t+"*":t)},DW)}}(i,c,a,t,r,f,m)}(e,n,t,r,o))}function vle(e,n,t,r,o,i){return{extensionsToSearch:M(ble(e,r)),referenceKind:n,importingSourceFile:t,endingPreference:null==o?void 0:o.importModuleSpecifierEnding,resolutionMode:i}}function ble(e,n){const t=n?F(n.getAmbientModules(),e=>{const n=e.name.slice(1,-1);if(n.startsWith("*.")&&!n.includes("/"))return n.slice(1)}):[],r=[...OE(e),t];return dQ(AS(e))?FE(e,r):r}function Tle(e,n,t,r,o,i,a,s,l=ale()){var c;void 0===e&&(e=""),Ii(e=Fi(e))||(e=Mi(e)),""===e&&(e="."+pi);const d=Bi(n,e=Ji(e)),u=Ii(d)?d:Mi(d);if(!a){const e=jZ(u,o);if(e){const n=Nb(e,o).typesVersions;if("object"==typeof n){const a=null==(c=yF(n))?void 0:c.paths;if(a){const n=Mi(e);if(Ele(l,d.slice(Ji(n).length),n,t,r,o,i,a))return l}}}}const p=!(o.useCaseSensitiveFileNames&&o.useCaseSensitiveFileNames());if(!zZ(o,u))return l;const f=FZ(o,u,t.extensionsToSearch,void 0,["./*"]);if(f)for(let h of f){if(h=ji(h),s&&0===ta(h,s,n,p))continue;const{name:e,extension:o}=Sle(Pi(h),r,t,!1);l.add(hle(e,"script",o))}const m=OZ(o,u);if(m)for(const h of m){const e=Pi(ji(h));"@types"!==e&&l.add(_le(e))}return l}function Sle(e,n,t,r){const o=pz.tryGetRealFileNameForNonJsDeclarationFileName(e);if(o)return{name:o,extension:iA(o)};if(0===t.referenceKind)return{name:e,extension:iA(e)};let i=pz.getModuleSpecifierPreferences({importModuleSpecifierEnding:t.endingPreference},n,n.getCompilerOptions(),t.importingSourceFile).getAllowedEndingsInPreferredOrder(t.resolutionMode);if(r&&(i=i.filter(e=>0!==e&&1!==e)),3===i[0]){if(Ri(e,kE))return{name:e,extension:iA(e)};const t=pz.tryGetJSExtensionForFile(e,n.getCompilerOptions());return t?{name:YE(e,t),extension:t}:{name:e,extension:iA(e)}}if(!r&&(0===i[0]||1===i[0])&&Ri(e,[".js",".jsx",".ts",".tsx",".d.ts"]))return{name:qE(e),extension:iA(e)};const a=pz.tryGetJSExtensionForFile(e,n.getCompilerOptions());return a?{name:YE(e,a),extension:a}:{name:e,extension:iA(e)}}function Ele(e,n,t,r,o,i,a,s){return Ale(e,!1,!1,n,t,r,o,i,a,Ce(s),e=>s[e],(e,n)=>{const t=$E(e),r=$E(n),o="object"==typeof t?t.prefix.length:e.length;return vn("object"==typeof r?r.prefix.length:n.length,o)})}function Ale(e,n,t,r,o,i,a,s,l,c,d,u){let p,f=[];for(const m of c){if("."===m)continue;const e=m.replace(/^\.\//,"")+((n||t)&&Fn(m,"/")?"*":""),c=d(m);if(c){const d=$E(e);if(!d)continue;const m="object"==typeof d&&Qn(d,r);m&&(void 0===p||-1===u(e,p))&&(p=e,f=f.filter(e=>!e.matchedPattern)),"string"!=typeof d&&void 0!==p&&1===u(e,p)||f.push({matchedPattern:m,results:Ile(e,c,r,o,i,n,t,a,s,l).map(({name:e,kind:n,extension:t})=>hle(e,n,t))})}}return f.forEach(n=>n.results.forEach(n=>e.add(n))),void 0!==p}function xle(e,n){if("string"==typeof e)return e;if(e&&"object"==typeof e&&!Ye(e))for(const t in e)if("default"===t||n.includes(t)||MW(n,t)){return xle(e[t],n)}}function Rle(e){return Lle(e)?Ii(e)?e:Mi(e):void 0}function Ile(e,n,t,r,o,i,a,l,c,d){const u=$E(e);if(!u)return s;if("string"==typeof u)return f(e,"script");const p=$n(t,u.prefix);if(void 0===p){return Fn(e,"/*")?f(u.prefix,"directory"):P(n,e=>{var n;return null==(n=Dle("",r,e,o,i,a,l,c,d))?void 0:n.map(({name:e,...n})=>({name:u.prefix+e+u.suffix,...n}))})}return P(n,e=>Dle(p,r,e,o,i,a,l,c,d));function f(e,n){return Xn(e,t)?[{name:qi(e),kind:n,extension:void 0}]:s}}function Dle(e,n,t,r,o,i,a,s,l){if(!s.readDirectory)return;const c=$E(t);if(void 0===c||Qe(c))return;const d=Bi(c.prefix),u=Ii(c.prefix)?d:Mi(d),f=Ii(c.prefix)?"":Pi(d),m=Lle(e),h=m?Ii(e)?e:Mi(e):void 0,_=()=>l.getCommonSourceDirectory(),g=!zy(l),y=a.getCompilerOptions().outDir,v=a.getCompilerOptions().declarationDir,b=m?zi(u,f+h):u,T=ji(zi(n,b)),S=i&&y&&Yy(T,g,y,_),E=i&&v&&Yy(T,g,v,_),A=ji(c.suffix),x=A&&Jy("_"+A),R=A?Xy("_"+A):void 0,I=[x&&YE(A,x),...R?R.map(e=>YE(A,e)):[],A].filter(Qe),D=A?I.map(e=>"**/*"+e):["./*"],C=(o||i)&&Fn(t,"/*");let N=M(T);return S&&(N=K(N,M(S))),E&&(N=K(N,M(E))),A||(N=K(N,P(T)),S&&(N=K(N,P(S))),E&&(N=K(N,P(E)))),N;function M(e){const n=m?e:Ji(e)+f;return F(FZ(s,e,r.extensionsToSearch,void 0,D),e=>{const t=(o=e,i=n,p(I,e=>{const n=function(e,n,t){return Xn(e,n)&&Fn(e,t)?e.slice(n.length,e.length-t.length):void 0}(ji(o),i,e);return void 0===n?void 0:Cle(n)}));var o,i;if(t){if(Lle(t))return _le(wi(Cle(t))[1]);const{name:e,extension:n}=Sle(t,a,r,C);return hle(e,"script",n)}})}function P(e){return F(OZ(s,e),e=>"node_modules"===e?void 0:_le(e))}}function Cle(e){return e[0]===pi?e.slice(1):e}function Nle(e,n,t,r,o,i,a=ale()){const l=e.getCompilerOptions(),c=new Map,d=BZ(()=>vF(l,n))||s;for(const s of d)u(s);for(const s of VZ(r,n)){u(zi(Mi(s),"node_modules/@types"))}return a;function u(r){if(zZ(n,r))for(const s of OZ(n,r)){const d=jW(s);if(!l.types||S(l.types,d))if(void 0===o)c.has(d)||(a.add(hle(d,"external module name",void 0)),c.set(d,!0));else{const l=zi(r,s),c=rE(o,d,By(n));void 0!==c&&Tle(c,l,i,e,n,t,!1,void 0,a)}}}}var Mle=/^(\/\/\/\s*<reference\s+(path|types)\s*=\s*(?:'|"))([^\x03"]*)$/,Ple=["dependencies","devDependencies","peerDependencies","optionalDependencies"];function Lle(e){return e.includes(pi)}var kle={};function wle(e,n,t,r){const o=function(e,n,t){const r=new Map;for(const o of e)t&&t.throwIfCancellationRequested(),Gle(o,(e,t)=>{const o=n.getSymbolAtLocation(t);if(o){const n=dB(o).toString();let t=r.get(n);t||r.set(n,t=[]),t.push(e)}});return r}(e,t,r);return(i,a,s)=>{const{directImports:l,indirectUsers:c}=function(e,n,t,{exportingModuleSymbol:r,exportKind:o},i,a){const s=eQ(),l=eQ(),c=[],d=!!r.globalExports,u=d?void 0:[];return f(r),{directImports:c,indirectUsers:p()};function p(){if(d)return e;if(r.declarations)for(const e of r.declarations)yf(e)&&n.has(e.getSourceFile().fileName)&&g(e);return u.map(Sp)}function f(e){const n=y(e);if(n)for(const t of n)if(s(t))switch(a&&a.throwIfCancellationRequested(),t.kind){case 214:if(fm(t)){m(t);break}if(!d){const e=t.parent;if(2===o&&261===e.kind){const{name:n}=e;if(80===n.kind){c.push(n);break}}}break;case 80:break;case 272:_(t,t.name,Mv(t,32),!1);break;case 273:case 352:c.push(t);const e=t.importClause&&t.importClause.namedBindings;e&&275===e.kind?_(t,e.name,!1,!0):!d&&I_(t)&&g(Hle(t));break;case 279:t.exportClause?281===t.exportClause.kind?g(Hle(t),!0):c.push(t):f(Ule(t,i));break;case 206:!d&&t.isTypeOf&&!t.qualifier&&h(t)&&g(t.getSourceFile(),!0),c.push(t);break;default:dt.failBadSyntaxKind(t,"Unexpected import kind.")}}function m(e){g(ml(e,Kle)||e.getSourceFile(),!!h(e,!0))}function h(e,n=!1){return ml(e,e=>n&&Kle(e)?"quit":CL(e)&&U(e.modifiers,pD))}function _(e,n,t,r){if(2===o)r||c.push(e);else if(!d){const r=Hle(e);dt.assert(308===r.kind||268===r.kind),t||function(e,n,t){const r=t.getSymbolAtLocation(n);return!!Ble(e,e=>{if(!FN(e))return;const{exportClause:n,moduleSpecifier:o}=e;return!o&&n&&WN(n)&&n.elements.some(e=>t.getExportSpecifierLocalTargetSymbol(e)===r)})}(r,n,i)?g(r,!0):g(r)}}function g(e,n=!1){dt.assert(!d);if(!l(e))return;if(u.push(e),!n)return;const t=i.getMergedSymbol(e.symbol);if(!t)return;dt.assert(!!(1536&t.flags));const r=y(t);if(r)for(const o of r)lC(o)||g(Hle(o),!0)}function y(e){return t.get(dB(e).toString())}}(e,n,o,a,t,r);return{indirectUsers:c,...Wle(l,i,a.exportKind,t,s)}}}t(kle,{Core:()=>nce,DefinitionKind:()=>Jle,EntryKind:()=>Xle,ExportKind:()=>Ole,FindReferencesUse:()=>tce,ImportExport:()=>Fle,createImportTracker:()=>wle,findModuleReferences:()=>zle,findReferenceOrRenameEntries:()=>ace,findReferencedSymbols:()=>rce,getContextNode:()=>Zle,getExportInfo:()=>jle,getImplementationsAtPosition:()=>oce,getImportOrExportSymbol:()=>Vle,getReferenceEntriesForNode:()=>sce,isContextWithStartAndEndNode:()=>$le,isDeclarationOfSymbol:()=>bce,isWriteAccessForReference:()=>vce,toContextSpan:()=>ece,toHighlightSpan:()=>_ce,toReferenceEntry:()=>pce,toRenameLocation:()=>uce});var Ole=(e=>(e[e.Named=0]="Named",e[e.Default=1]="Default",e[e.ExportEquals=2]="ExportEquals",e))(Ole||{}),Fle=(e=>(e[e.Import=0]="Import",e[e.Export=1]="Export",e))(Fle||{});function Wle(e,n,t,r,o){const i=[],a=[];function s(e,n){i.push([e,n])}if(e)for(const p of e)l(p);return{importSearches:i,singleReferences:a};function l(e){if(272===e.kind)return void(qle(e)&&c(e.name));if(80===e.kind)return void c(e);if(206===e.kind){if(e.qualifier){const t=ub(e.qualifier);t.escapedText===Tl(n)&&a.push(t)}else 2===t&&a.push(e.argument.literal);return}if(11!==e.moduleSpecifier.kind)return;if(279===e.kind)return void(e.exportClause&&WN(e.exportClause)&&d(e.exportClause));const{name:i,namedBindings:l}=e.importClause||{name:void 0,namedBindings:void 0};if(l)switch(l.kind){case 275:c(l.name);break;case 276:0!==t&&1!==t||d(l);break;default:dt.assertNever(l)}if(i&&(1===t||2===t)&&(!o||i.escapedText===yQ(n))){s(i,r.getSymbolAtLocation(i))}}function c(e){2!==t||o&&!u(e.escapedText)||s(e,r.getSymbolAtLocation(e))}function d(e){if(e)for(const t of e.elements){const{name:e,propertyName:i}=t;if(u(Yp(i||e)))if(i)a.push(i),o&&Yp(e)!==n.escapedName||s(e,r.getSymbolAtLocation(e));else{s(e,282===t.kind&&t.propertyName?r.getExportSpecifierLocalTargetSymbol(t):r.getSymbolAtLocation(e))}}}function u(e){return e===n.escapedName||0!==t&&"default"===e}}function zle(e,n,t){var r;const o=[],i=e.getTypeChecker();for(const a of n){const n=t.valueDeclaration;if(308===(null==n?void 0:n.kind)){for(const t of a.referencedFiles)e.getSourceFileFromReference(a,t)===n&&o.push({kind:"reference",referencingFile:a,ref:t});for(const t of a.typeReferenceDirectives){const i=null==(r=e.getResolvedTypeReferenceDirectiveFromTypeReferenceDirective(t,a))?void 0:r.resolvedTypeReferenceDirective;void 0!==i&&i.resolvedFileName===n.fileName&&o.push({kind:"reference",referencingFile:a,ref:t})}}Gle(a,(e,n)=>{i.getSymbolAtLocation(n)===t&&o.push(ry(e)?{kind:"implicit",literal:n,referencingFile:a}:{kind:"import",literal:n})})}return o}function Ble(e,n){return d(308===e.kind?e.statements:e.body.statements,e=>n(e)||Kle(e)&&d(e.body&&e.body.statements,n))}function Gle(e,n){if(e.externalModuleIndicator||void 0!==e.imports)for(const t of e.imports)n(S_(t),t);else Ble(e,e=>{switch(e.kind){case 279:case 273:{const t=e;t.moduleSpecifier&&qI(t.moduleSpecifier)&&n(t,t.moduleSpecifier);break}case 272:{const t=e;qle(t)&&n(t,t.moduleReference.expression);break}}})}function Vle(e,n,t,r){return r?o():o()||function(){if(!function(e){const{parent:n}=e;switch(n.kind){case 272:return n.name===e&&qle(n);case 277:return!n.propertyName;case 274:case 275:return dt.assert(n.name===e),!0;case 209:return Lh(e)&&Bh(n.parent.parent);default:return!1}}(e))return;let r=t.getImmediateAliasedSymbol(n);if(!r)return;if(r=function(e,n){if(e.declarations)for(const t of e.declarations){if(zN(t)&&!t.propertyName&&!t.parent.parent.moduleSpecifier)return n.getExportSpecifierLocalTargetSymbol(t)||e;if(_C(t)&&r_(t.expression)&&!uD(t.name))return n.getSymbolAtLocation(t);if(lM(t)&&MC(t.parent.parent)&&2===o_(t.parent.parent))return n.getExportSpecifierLocalTargetSymbol(t.name)}return e}(r,t),"export="===r.escapedName&&(r=function(e,n){var t,r;if(2097152&e.flags)return n.getImmediateAliasedSymbol(e);const o=dt.checkDefined(e.valueDeclaration);if(ON(o))return null==(t=en(o.expression,cu))?void 0:t.symbol;if(MC(o))return null==(r=en(o.right,cu))?void 0:r.symbol;if(uM(o))return o.symbol;return}(r,t),void 0===r))return;const o=yQ(r);if(void 0===o||"default"===o||o===n.escapedName)return{kind:0,symbol:r}}();function o(){var o;const{parent:s}=e,l=s.parent;if(n.exportSymbol)return 212===s.kind?(null==(o=n.declarations)?void 0:o.some(e=>e===s))&&MC(l)?d(l,!1):void 0:i(n.exportSymbol,a(s));{const o=function(e,n){const t=fN(e)?e:fC(e)?il(e):void 0;return t?e.name!==n||aM(t.parent)?void 0:XC(t.parent.parent)?t.parent.parent:void 0:e}(s,e);if(o&&Mv(o,32)){if(AN(o)&&o.moduleReference===e){if(r)return;return{kind:0,symbol:t.getSymbolAtLocation(o.name)}}return i(n,a(o))}if(LN(s))return i(n,0);if(ON(s))return c(s);if(ON(l))return c(l);if(MC(s))return d(s,!0);if(MC(l))return d(l,!0);if(JM(s)||LM(s))return i(n,0)}function c(e){if(!e.symbol.parent)return;const t=e.isExportEquals?2:1;return{kind:1,symbol:n,exportInfo:{exportingModuleSymbol:e.symbol.parent,exportKind:t}}}function d(e,r){let o;switch(o_(e)){case 1:o=0;break;case 2:o=2;break;default:return}const a=r?t.getSymbolAtLocation(DT(nn(e.left,IT))):n;return a&&i(a,o)}}function i(e,n){const r=jle(e,n,t);return r&&{kind:1,symbol:e,exportInfo:r}}function a(e){return Mv(e,2048)?1:0}}function jle(e,n,t){const r=e.parent;if(!r)return;const o=t.getMergedSymbol(r);return ep(o)?{exportingModuleSymbol:o,exportKind:n}:void 0}function Ule(e,n){return n.getMergedSymbol(Hle(e).symbol)}function Hle(e){if(214===e.kind||352===e.kind)return e.getSourceFile();const{parent:n}=e;return 308===n.kind?n:(dt.assert(269===n.kind),nn(n.parent,Kle))}function Kle(e){return 268===e.kind&&11===e.name.kind}function qle(e){return 284===e.moduleReference.kind&&11===e.moduleReference.expression.kind}var Jle=(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",e[e.TripleSlashReference=5]="TripleSlashReference",e))(Jle||{}),Xle=(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",e))(Xle||{});function Yle(e,n=1){return{kind:n,node:e.name||e,context:Qle(e)}}function $le(e){return e&&void 0===e.kind}function Qle(e){if(fu(e))return Zle(e);if(e.parent){if(!fu(e.parent)&&!ON(e.parent)){if(Lh(e)){const n=MC(e.parent)?e.parent:IT(e.parent)&&MC(e.parent.parent)&&e.parent.parent.left===e.parent?e.parent.parent:void 0;if(n&&0!==o_(n))return Zle(n)}if(qN(e.parent)||JN(e.parent))return e.parent.parent;if(KN(e.parent)||cN(e.parent)||Dc(e.parent))return e.parent;if(zu(e)){const n=E_(e);if(n){const e=ml(n,e=>fu(e)||_u(e)||Du(e));return fu(e)?Zle(e):e}}const n=ml(e,RD);return n?Zle(n.parent):void 0}return e.parent.name===e||wD(e.parent)||ON(e.parent)||(Gc(e.parent)||fC(e.parent))&&e.parent.propertyName===e||90===e.kind&&Mv(e.parent,2080)?Zle(e.parent):void 0}}function Zle(e){if(e)switch(e.kind){case 261:return mN(e.parent)&&1===e.parent.declarations.length?XC(e.parent.parent)?e.parent.parent:eu(e.parent.parent)?Zle(e.parent.parent):e.parent:e;case 209:return Zle(e.parent.parent);case 277:return e.parent.parent.parent;case 282:case 275:return e.parent.parent;case 274:case 281:return e.parent;case 227:return $C(e.parent)?e.parent:e;case 251:case 250:return{start:e.initializer,end:e.expression};case 304:case 305:return W$(e.parent)?Zle(ml(e.parent,e=>MC(e)||eu(e))):e;case 256:return{start:y(e.getChildren(e.getSourceFile()),e=>109===e.kind),end:e.caseBlock};default:return e}}function ece(e,n,t){if(!t)return;const r=$le(t)?gce(t.start,n,t.end):gce(t,n);return r.start!==e.start||r.length!==e.length?{contextSpan:r}:void 0}var nce,tce=(e=>(e[e.Other=0]="Other",e[e.References=1]="References",e[e.Rename=2]="Rename",e))(tce||{});function rce(e,n,t,r,o){const i=i$(r,o),a={use:1},s=nce.getReferencedSymbolsForNode(o,i,e,t,n,a),l=e.getTypeChecker(),c=nce.getAdjustedNode(i,a),d=function(e){return 90===e.kind||!!fg(e)||mg(e)||137===e.kind&&wD(e.parent)}(c)?l.getSymbolAtLocation(c):void 0;return s&&s.length?F(s,({definition:e,references:t})=>e&&{definition:l.runWithCancellationToken(n,n=>function(e,n,t){const r=(()=>{switch(e.type){case 0:{const{symbol:r}=e,{displayParts:o,kind:i}=dce(r,n,t),a=o.map(e=>e.text).join(""),s=r.declarations&&fe(r.declarations);return{...cce(s?Dl(s)||s:t),name:a,kind:i,displayParts:o,context:Zle(s)}}case 1:{const{node:n}=e;return{...cce(n),name:n.text,kind:"label",displayParts:[WQ(n.text,17)]}}case 2:{const{node:n}=e,t=Pa(n.kind);return{...cce(n),name:t,kind:"keyword",displayParts:[{text:t,kind:"keyword"}]}}case 3:{const{node:t}=e,r=n.getSymbolAtLocation(t),o=r&&que.getSymbolDisplayPartsDocumentationAndSymbolKind(n,r,t.getSourceFile(),NY(t),t).displayParts||[KQ("this")];return{...cce(t),name:"this",kind:"var",displayParts:o}}case 4:{const{node:n}=e;return{...cce(n),name:n.text,kind:"var",displayParts:[WQ(Zp(n),8)]}}case 5:return{textSpan:K$(e.reference),sourceFile:e.file,name:e.reference.fileName,kind:"string",displayParts:[WQ(`"${e.reference.fileName}"`,8)]};default:return dt.assertNever(e)}})(),{sourceFile:o,textSpan:i,name:a,kind:s,displayParts:l,context:c}=r;return{containerKind:"",containerName:"",fileName:o.fileName,kind:s,name:a,textSpan:i,displayParts:l,...ece(i,o,c)}}(e,n,i)),references:t.map(e=>function(e,n){const t=pce(e);return n?{...t,isDefinition:0!==e.kind&&bce(e.node,n)}:t}(e,d))}):void 0}function oce(e,n,t,r,o){const i=i$(r,o);let a;const s=ice(e,n,t,i,o);if(212===i.parent.kind||209===i.parent.kind||213===i.parent.kind||108===i.kind)a=s&&[...s];else if(s){const r=Je(s),o=new Set;for(;!r.isEmpty();){const i=r.dequeue();if(!AT(o,cB(i.node)))continue;a=re(a,i);const s=ice(e,n,t,i.node,i.node.pos);s&&r.enqueue(...s)}}const l=e.getTypeChecker();return D(a,e=>function(e,n){const t=fce(e);if(0!==e.kind){const{node:r}=e;return{...t,...hce(r,n)}}return{...t,kind:"",displayParts:[]}}(e,l))}function ice(e,n,t,r,o){if(308===r.kind)return;const i=e.getTypeChecker();if(305===r.parent.kind){const e=[];return nce.getReferenceEntriesForShorthandPropertyAssignment(r,i,n=>e.push(Yle(n))),e}if(108===r.kind||ch(r.parent)){const e=i.getSymbolAtLocation(r);return e.valueDeclaration&&[Yle(e.valueDeclaration)]}return sce(o,r,e,t,n,{implementations:!0,use:1})}function ace(e,n,t,r,o,i,a){return D(lce(nce.getReferencedSymbolsForNode(o,r,e,t,n,i)),n=>a(n,r,e.getTypeChecker()))}function sce(e,n,t,r,o,i={},a=new Set(r.map(e=>e.fileName))){return lce(nce.getReferencedSymbolsForNode(e,n,t,r,o,i,a))}function lce(e){return e&&P(e,e=>e.references)}function cce(e){const n=e.getSourceFile();return{sourceFile:n,textSpan:gce(RD(e)?e.expression:e,n)}}function dce(e,n,t){const r=nce.getIntersectingMeaningFromDeclarations(t,e),o=e.declarations&&fe(e.declarations)||t,{displayParts:i,symbolKind:a}=que.getSymbolDisplayPartsDocumentationAndSymbolKind(n,e,o.getSourceFile(),o,o,r);return{displayParts:i,kind:a}}function uce(e,n,t,r,o){return{...fce(e),...r&&mce(e,n,t,o)}}function pce(e){const n=fce(e);if(0===e.kind)return{...n,isWriteAccess:!1};const{kind:t,node:r}=e;return{...n,isWriteAccess:vce(r),isInString:2===t||void 0}}function fce(e){if(0===e.kind)return{textSpan:e.textSpan,fileName:e.fileName};{const n=e.node.getSourceFile(),t=gce(e.node,n);return{textSpan:t,fileName:n.fileName,...ece(t,n,e.context)}}}function mce(e,n,t,r){if(0!==e.kind&&(dD(n)||zu(n))){const{node:r,kind:o}=e,i=r.parent,a=n.text,s=lM(i);if(s||bQ(i)&&i.name===r&&void 0===i.dotDotDotToken){const e={prefixText:a+": "},n={suffixText:": "+a};if(3===o)return e;if(4===o)return n;if(s){const t=i.parent;return hC(t)&&MC(t.parent)&&r_(t.parent.left)?e:n}return e}if(wN(i)&&!i.propertyName){return S((zN(n.parent)?t.getExportSpecifierLocalTargetSymbol(n.parent):t.getSymbolAtLocation(n)).declarations,i)?{prefixText:a+" as "}:wX}if(zN(i)&&!i.propertyName)return n===e.node||t.getSymbolAtLocation(n)===t.getSymbolAtLocation(e.node)?{prefixText:a+" as "}:{suffixText:" as "+a}}if(0!==e.kind&&HI(e.node)&&IT(e.node.parent)){const e=_Q(r);return{prefixText:e,suffixText:e}}return wX}function hce(e,n){const t=n.getSymbolAtLocation(fu(e)&&e.name?e.name:e);return t?dce(t,n,e):211===e.kind?{kind:"interface",displayParts:[GQ(21),KQ("object literal"),GQ(22)]}:232===e.kind?{kind:"local class",displayParts:[GQ(21),KQ("anonymous local class"),GQ(22)]}:{kind:MY(e),displayParts:[]}}function _ce(e){const n=fce(e);if(0===e.kind)return{fileName:n.fileName,span:{textSpan:n.textSpan,kind:"reference"}};const t=vce(e.node),r={textSpan:n.textSpan,kind:t?"writtenReference":"reference",isInString:2===e.kind||void 0,...n.contextSpan&&{contextSpan:n.contextSpan}};return{fileName:n.fileName,span:r}}function gce(e,n,t){let r=e.getStart(n),o=(t||e).getEnd();return zu(e)&&o-r>2&&(dt.assert(void 0===t),r+=1,o-=1),270===(null==t?void 0:t.kind)&&(o=t.getFullStart()),Xs(r,o)}function yce(e){return 0===e.kind?e.textSpan:gce(e.node,e.node.getSourceFile())}function vce(e){const n=fg(e);return!!n&&function(e){if(33554432&e.flags)return!0;switch(e.kind){case 227:case 209:case 264:case 232:case 90:case 267:case 307:case 282:case 274:case 272:case 277:case 265:case 339:case 347:case 292:case 268:case 271:case 275:case 281:case 170:case 305:case 266:case 169:return!0;case 304:return!W$(e.parent);case 263:case 219:case 177:case 175:case 178:case 179:return!!e.body;case 261:case 173:return!!e.initializer||aM(e.parent);case 174:case 172:case 349:case 342:return!1;default:return dt.failBadSyntaxKind(e)}}(n)||90===e.kind||pT(e)}function bce(e,n){var t;if(!n)return!1;const r=fg(e)||(90===e.kind?e.parent:mg(e)||137===e.kind&&wD(e.parent)?e.parent.parent:void 0),o=r&&MC(r)?r.left:void 0;return!(!r||!(null==(t=n.declarations)?void 0:t.some(e=>e===r||e===o)))}(e=>{function n(e,n){return 1===n.use?e=r$(e):2===n.use&&(e=o$(e)),e}function t(e,n,t){let r;const o=n.get(e.path)||s;for(const i of o)if(OU(i)){const e=t.getSourceFileByPath(i.file),n=WU(t,i);FU(n)&&(r=re(r,{kind:0,fileName:e.fileName,textSpan:K$(n)}))}return r}function r(e,n,t){if(e.parent&&EN(e.parent)){const e=t.getAliasedSymbol(n),r=t.getMergedSymbol(e);if(e!==r)return r}}function o(e,n,t,r,o,a){const s=1536&e.flags&&e.declarations&&y(e.declarations,uM);if(!s)return;const c=e.exports.get("export="),d=l(n,e,!!c,t,a);if(!c||!a.has(s.fileName))return d;const u=n.getTypeChecker();return i(n,d,f(e=cT(c,u),void 0,t,a,u,r,o))}function i(e,...n){let t;for(const r of n)if(r&&r.length)if(t)for(const n of r){if(!n.definition||0!==n.definition.type){t.push(n);continue}const r=n.definition.symbol,o=b(t,e=>!!e.definition&&0===e.definition.type&&e.definition.symbol===r);if(-1===o){t.push(n);continue}const i=t[o];t[o]={definition:i.definition,references:i.references.concat(n.references).sort((n,t)=>{const r=a(e,n),o=a(e,t);if(r!==o)return vn(r,o);const i=yce(n),s=yce(t);return i.start!==s.start?vn(i.start,s.start):vn(i.length,s.length)})}}else t=r;return t}function a(e,n){const t=0===n.kind?e.getSourceFile(n.fileName):n.node.getSourceFile();return e.getSourceFiles().indexOf(t)}function l(e,n,t,r,o){dt.assert(!!n.valueDeclaration);const i=F(zle(e,r,n),e=>{if("import"===e.kind){const n=e.literal.parent;if(sC(n)){const e=nn(n.parent,lC);if(t&&!e.qualifier)return}return Yle(e.literal)}if("implicit"===e.kind){return Yle(e.literal.text!==Ku&&ok(e.referencingFile,e=>2&e.transformFlags?HN(e)||KN(e)||XN(e)?e:void 0:"skip")||e.referencingFile.statements[0]||e.referencingFile)}return{kind:0,fileName:e.referencingFile.fileName,textSpan:K$(e.ref)}});if(n.declarations)for(const s of n.declarations)switch(s.kind){case 308:break;case 268:o.has(s.getSourceFile().fileName)&&i.push(Yle(s.name));break;default:dt.assert(!!(33554432&n.flags),"Expected a module symbol to be declared by a SourceFile or ModuleDeclaration.")}const a=n.exports.get("export=");if(null==a?void 0:a.declarations)for(const s of a.declarations){const e=s.getSourceFile();if(o.has(e.fileName)){const n=MC(s)&&_C(s.left)?s.left.expression:ON(s)?dt.checkDefined(qY(s,95,e)):Dl(s)||s;i.push(Yle(n))}}return i.length?[{definition:{type:0,symbol:n},references:i}]:s}function u(e){return 148===e.kind&&oC(e.parent)&&148===e.parent.operator}function f(e,n,t,r,o,i,a){const s=n&&function(e,n,t,r){const{parent:o}=n;if(zN(o)&&r)return W(n,e,o,t);return p(e.declarations,r=>{if(!r.parent){if(33554432&e.flags)return;dt.fail(`Unexpected symbol at ${dt.formatSyntaxKind(n.kind)}: ${dt.formatSymbol(e)}`)}return KD(r.parent)&&QD(r.parent.parent)?t.getPropertyOfType(t.getTypeFromTypeNode(r.parent.parent),e.name):void 0})}(e,n,o,!Z(a))||e,l=n&&2!==a.use?Y(n,s):7,c=[],d=new v(t,r,n?function(e){switch(e.kind){case 177:case 137:return 1;case 80:if(md(e.parent))return dt.assert(e.parent.name===e),2;default:return 0}}(n):0,o,i,l,a,c),u=Z(a)&&s.declarations?y(s.declarations,zN):void 0;if(u)O(u.name,s,u,d.createSearch(n,e,void 0),d,!0,!0);else if(n&&90===n.kind&&"default"===s.escapedName&&s.parent)z(n,s,d),T(n,s,{exportingModuleSymbol:s.parent,exportKind:1},d);else{const e=d.createSearch(n,s,void 0,{allSearchSymbols:n?q(s,n,o,2===a.use,!!a.providePrefixAndSuffixTextForRename,!!a.implementations):[s]});m(s,d,e)}return c}function m(e,n,t){const r=function(e){const{declarations:n,flags:t,parent:r,valueDeclaration:o}=e;if(o&&(219===o.kind||232===o.kind))return o;if(!n)return;if(8196&t){const e=y(n,e=>Nv(e,2)||$c(e));return e?Ig(e,264):void 0}if(n.some(bQ))return;const i=r&&!(262144&e.flags);if(i&&(!ep(r)||r.globalExports))return;let a;for(const s of n){const e=NY(s);if(a&&a!==e)return;if(!e||308===e.kind&&!rm(e))return;if(a=e,EC(a)){let e;for(;e=G_(a);)a=e}}return i?a.getSourceFile():a}(e);if(r)L(r,r.getSourceFile(),t,n,!(uM(r)&&!S(n.sourceFiles,r)));else for(const o of n.sourceFiles)n.cancellationToken.throwIfCancellationRequested(),R(o,t,n)}let h;var _;function g(e){if(!(33555968&e.flags))return;const n=e.declarations&&y(e.declarations,e=>!uM(e)&&!bN(e));return n&&n.symbol}e.getReferencedSymbolsForNode=function(e,a,c,d,m,h={},_=new Set(d.map(e=>e.fileName))){var g,y;if(uM(a=n(a,h))){const n=Tce.getReferenceAtPosition(a,e,c);if(!(null==n?void 0:n.file))return;const r=c.getTypeChecker().getMergedSymbol(n.file.symbol);if(r)return l(c,r,!1,d,_);const o=c.getFileIncludeReasons();if(!o)return;return[{definition:{type:5,reference:n.reference,file:a},references:t(n.file,o,c)||s}]}if(!h.implementations){const e=function(e,n,t){if($$(e.kind)){if(116===e.kind&&IC(e.parent))return;if(148===e.kind&&!u(e))return;return function(e,n,t,r){const o=P(e,e=>(t.throwIfCancellationRequested(),F(D(e,Pa(n),e),e=>{if(e.kind===n&&(!r||r(e)))return Yle(e)})));return o.length?[{definition:{type:2,node:o[0].node},references:o}]:void 0}(n,e.kind,t,148===e.kind?u:void 0)}if(mm(e.parent)&&e.parent.name===e)return function(e,n){const t=P(e,e=>(n.throwIfCancellationRequested(),F(D(e,"meta",e),e=>{const n=e.parent;if(mm(n))return Yle(n)})));return t.length?[{definition:{type:2,node:t[0].node},references:t}]:void 0}(n,t);if(yD(e)&&kD(e.parent))return[{definition:{type:2,node:e},references:[Yle(e)]}];if(vY(e)){const n=gY(e.parent,e.text);return n&&N(n.parent,n)}if(bY(e))return N(e.parent,e);if(PY(e))return function(e,n,t){let r=rh(e,!1,!1),o=256;switch(r.kind){case 175:case 174:if(jm(r)){o&=Hv(r),r=r.parent;break}case 173:case 172:case 177:case 178:case 179:o&=Hv(r),r=r.parent;break;case 308:if(dk(r)||K(e))return;case 263:case 219:break;default:return}const i=P(308===r.kind?n:[r.getSourceFile()],e=>(t.throwIfCancellationRequested(),D(e,"this",uM(r)?e:r).filter(e=>{if(!PY(e))return!1;const n=rh(e,!1,!1);if(!cu(n))return!1;switch(r.kind){case 219:case 263:return r.symbol===n.symbol;case 175:case 174:return jm(r)&&r.symbol===n.symbol;case 232:case 264:case 211:return n.parent&&cu(n.parent)&&r.symbol===n.parent.symbol&&Pv(n)===!!o;case 308:return 308===n.kind&&!dk(n)&&!K(e)}}))).map(e=>Yle(e)),a=p(i,e=>DD(e.node.parent)?e.node:void 0);return[{definition:{type:3,node:a||e},references:i}]}(e,n,t);if(108===e.kind)return function(e){let n=sh(e,!1);if(!n)return;let t=256;switch(n.kind){case 173:case 172:case 175:case 174:case 177:case 178:case 179:t&=Hv(n),n=n.parent;break;default:return}const r=F(D(n.getSourceFile(),"super",n),e=>{if(108!==e.kind)return;const r=sh(e,!1);return r&&Pv(r)===!!t&&r.parent.symbol===n.symbol?Yle(e):void 0});return[{definition:{type:0,symbol:n.symbol},references:r}]}(e);return}(a,d,m);if(e)return e}const v=c.getTypeChecker(),b=v.getSymbolAtLocation(wD(a)&&a.parent.name||a);if(!b){if(!h.implementations&&zu(a)){if(vQ(a)){const e=c.getFileIncludeReasons(),n=null==(y=null==(g=c.getResolvedModuleFromModuleSpecifier(a))?void 0:g.resolvedModule)?void 0:y.resolvedFileName,r=n?c.getSourceFile(n):void 0;if(r)return[{definition:{type:4,node:a},references:t(r,e,c)||s}]}return function(e,n,t,r){const o=QY(e,t),i=P(n,n=>(r.throwIfCancellationRequested(),F(D(n,e.text),r=>{if(zu(r)&&r.text===e.text){if(!o)return YI(r)&&!Vb(r,n)?void 0:Yle(r,2);{const e=QY(r,t);if(o!==t.getStringType()&&(o===e||function(e,n){if(ND(e.parent))return n.getPropertyOfType(n.getTypeAtLocation(e.parent.parent),e.text)}(r,t)))return Yle(r,2)}}})));return[{definition:{type:4,node:e},references:i}]}(a,d,v,m)}return}if("export="===b.escapedName)return l(c,b.parent,!1,d,_);const T=o(b,c,d,m,h,_);if(T&&!(33554432&b.flags))return T;const S=r(a,b,v),E=S&&o(S,c,d,m,h,_);return i(c,T,f(b,a,d,_,v,m,h),E)},e.getAdjustedNode=n,e.getReferencesForFileName=function(e,n,r,o=new Set(r.map(e=>e.fileName))){var i,a;const c=null==(i=n.getSourceFile(e))?void 0:i.symbol;if(c)return(null==(a=l(n,c,!1,r,o)[0])?void 0:a.references)||s;const d=n.getFileIncludeReasons(),u=n.getSourceFile(e);return u&&d&&t(u,d,n)||s},(_=h||(h={}))[_.None=0]="None",_[_.Constructor=1]="Constructor",_[_.Class=2]="Class";class v{constructor(e,n,t,r,o,i,a,s){this.sourceFiles=e,this.sourceFilesSet=n,this.specialSearchKind=t,this.checker=r,this.cancellationToken=o,this.searchMeaning=i,this.options=a,this.result=s,this.inheritsFromCache=new Map,this.markSeenContainingTypeReference=eQ(),this.markSeenReExportRHS=eQ(),this.symbolIdToReferences=[],this.sourceFileToSeenSymbols=[]}includesSourceFile(e){return this.sourceFilesSet.has(e.fileName)}getImportSearches(e,n){return this.importTracker||(this.importTracker=wle(this.sourceFiles,this.sourceFilesSet,this.checker,this.cancellationToken)),this.importTracker(e,n,2===this.options.use)}createSearch(e,n,t,r={}){const{text:o=Py(Tl(Eb(n)||g(n)||n)),allSearchSymbols:i=[n]}=r,a=gl(o),s=this.options.implementations&&e?function(e,n,t){const r=AY(e)?e.parent:void 0,o=r&&t.getTypeAtLocation(r.expression),i=F(o&&(o.isUnionOrIntersection()?o.types:o.symbol===n.parent?void 0:[o]),e=>e.symbol&&96&e.symbol.flags?e.symbol:void 0);return 0===i.length?void 0:i}(e,n,this.checker):void 0;return{symbol:n,comingFrom:t,text:o,escapedText:a,parents:s,allSearchSymbols:i,includes:e=>S(i,e)}}referenceAdder(e){const n=dB(e);let t=this.symbolIdToReferences[n];return t||(t=this.symbolIdToReferences[n]=[],this.result.push({definition:{type:0,symbol:e},references:t})),(e,n)=>t.push(Yle(e,n))}addStringOrCommentReference(e,n){this.result.push({definition:void 0,references:[{kind:0,fileName:e,textSpan:n}]})}markSearchedSymbols(e,n){const t=cB(e),r=this.sourceFileToSeenSymbols[t]||(this.sourceFileToSeenSymbols[t]=new Set);let o=!1;for(const i of n)o=B(r,dB(i))||o;return o}}function T(e,n,t,r){const{importSearches:o,singleReferences:i,indirectUsers:a}=r.getImportSearches(n,t);if(i.length){const e=r.referenceAdder(n);for(const n of i)E(n,r)&&e(n)}for(const[s,l]of o)M(s.getSourceFile(),r.createSearch(s,l,1),r);if(a.length){let o;switch(t.exportKind){case 0:o=r.createSearch(e,n,1);break;case 1:o=2===r.options.use?void 0:r.createSearch(e,n,1,{text:"default"})}if(o)for(const e of a)R(e,o,r)}}function E(e,n){return!!k(e,n)&&(2!==n.options.use||!(!dD(e)&&!Gc(e.parent))&&!(Gc(e.parent)&&$p(e)))}function A(e,n){if(e.declarations)for(const t of e.declarations){const r=t.getSourceFile();M(r,n.createSearch(t,e,0),n,n.includesSourceFile(r))}}function R(e,n,t){void 0!==f5(e).get(n.escapedText)&&M(e,n,t)}function I(e,n,t,r,o=t){const i=tl(e.parent,e.parent.parent)?he(n.getSymbolsOfParameterPropertyDeclaration(e.parent,e.text)):n.getSymbolAtLocation(e);if(i)for(const a of D(t,i.name,o)){if(!dD(a)||a===e||a.escapedText!==e.escapedText)continue;const t=n.getSymbolAtLocation(a);if(t===i||n.getShorthandAssignmentValueSymbol(a.parent)===i||zN(a.parent)&&W(a,t,a.parent,n)===i){const e=r(a);if(e)return e}}}function D(e,n,t=e){return F(C(e,n,t),n=>{const t=i$(e,n);return t===e?void 0:t})}function C(e,n,t=e){const r=[];if(!n||!n.length)return r;const o=e.text,i=o.length,a=n.length;let s=o.indexOf(n,t.pos);for(;s>=0&&!(s>t.end);){const e=s+a;0!==s&&gs(o.charCodeAt(s-1),99)||e!==i&&gs(o.charCodeAt(e),99)||r.push(s),s=o.indexOf(n,s+a+1)}return r}function N(e,n){const t=e.getSourceFile(),r=n.text,o=F(D(t,r,e),e=>e===n||vY(e)&&gY(e,r)===n?Yle(e):void 0);return[{definition:{type:1,node:n},references:o}]}function M(e,n,t,r=!0){return t.cancellationToken.throwIfCancellationRequested(),L(e,e,n,t,r)}function L(e,n,t,r,o){if(r.markSearchedSymbols(n,t.allSearchSymbols))for(const i of C(n,t.text,e))w(n,i,t,r,o)}function k(e,n){return!!(oY(e)&n.searchMeaning)}function w(e,n,t,r,o){const i=i$(e,n);if(!function(e,n){switch(e.kind){case 81:if(hM(e.parent))return!0;case 80:return e.text.length===n.length;case 15:case 11:{const t=e;return t.text.length===n.length&&(DY(t)||RY(e)||CY(e)||yC(e.parent)&&i_(e.parent)&&e.parent.arguments[1]===e||Gc(e.parent))}case 9:return DY(e)&&e.text.length===n.length;case 90:return 7===n.length;default:return!1}}(i,t.text))return void(!r.options.implementations&&(r.options.findInStrings&&_$(e,n)||r.options.findInComments&&B$(e,n))&&r.addStringOrCommentReference(e.fileName,Js(n,t.text.length)));if(!k(i,r))return;let a=r.checker.getSymbolAtLocation(i);if(!a)return;const s=i.parent;if(wN(s)&&s.propertyName===i)return;if(zN(s))return dt.assert(80===i.kind||11===i.kind),void O(i,a,s,t,r,o);if(Nc(s)&&s.isNameFirst&&s.typeExpression&&DM(s.typeExpression.type)&&s.typeExpression.type.jsDocPropertyTags&&c(s.typeExpression.type.jsDocPropertyTags))return void function(e,n,t,r){const o=r.referenceAdder(t.symbol);z(n,t.symbol,r),d(e,e=>{xD(e.name)&&o(e.name.left)})}(s.typeExpression.type.jsDocPropertyTags,i,t,r);const l=function(e,n,t,r){const{checker:o}=r;return J(n,t,o,!1,2!==r.options.use||!!r.options.providePrefixAndSuffixTextForRename,(t,r,o,i)=>(o&&X(n)!==X(o)&&(o=void 0),e.includes(o||r||t)?{symbol:!r||6&sT(t)?t:r,kind:i}:void 0),n=>!(e.parents&&!e.parents.some(e=>H(n.parent,e,r.inheritsFromCache,o))))}(t,a,i,r);if(l){switch(r.specialSearchKind){case 0:o&&z(i,l,r);break;case 1:!function(e,n,t,r){sY(e)&&z(e,t.symbol,r);const o=()=>r.referenceAdder(t.symbol);if(md(e.parent))dt.assert(90===e.kind||e.parent.name===e),function(e,n,t){const r=G(e);if(r&&r.declarations)for(const o of r.declarations){const e=qY(o,137,n);dt.assert(177===o.kind&&!!e),t(e)}e.exports&&e.exports.forEach(e=>{const n=e.valueDeclaration;if(n&&175===n.kind){const e=n.body;e&&Q(e,110,e=>{sY(e)&&t(e)})}})}(t.symbol,n,o());else{const n=ib(_Y(e).parent);n&&(function(e,n){const t=G(e.symbol);if(!t||!t.declarations)return;for(const r of t.declarations){dt.assert(177===r.kind);const e=r.body;e&&Q(e,108,e=>{aY(e)&&n(e)})}}(n,o()),function(e,n){if(function(e){return!!G(e.symbol)}(e))return;const t=e.symbol,r=n.createSearch(void 0,t,void 0);m(t,n,r)}(n,r))}}(i,e,t,r);break;case 2:!function(e,n,t){z(e,n.symbol,t);const r=e.parent;if(2===t.options.use||!md(r))return;dt.assert(r.name===e);const o=t.referenceAdder(n.symbol);for(const i of r.members)yd(i)&&Pv(i)&&i.body&&i.body.forEachChild(function e(n){110===n.kind?o(n):ad(n)||md(n)||n.forEachChild(e)})}(i,t,r);break;default:dt.assertNever(r.specialSearchKind)}Lh(i)&&fC(i.parent)&&Bh(i.parent.parent.parent)&&(a=i.parent.symbol,!a)||function(e,n,t,r){const o=Vle(e,n,r.checker,1===t.comingFrom);if(!o)return;const{symbol:i}=o;0===o.kind?Z(r.options)||A(i,r):T(e,i,o.exportInfo,r)}(i,a,t,r)}else!function({flags:e,valueDeclaration:n},t,r){const o=r.checker.getShorthandAssignmentValueSymbol(n),i=n&&Dl(n);33554432&e||!i||!t.includes(o)||z(i,o,r)}(a,t,r)}function O(e,n,t,r,o,i,a){dt.assert(!a||!!o.options.providePrefixAndSuffixTextForRename,"If alwaysGetReferences is true, then prefix/suffix text must be enabled");const{parent:s,propertyName:l,name:c}=t,d=s.parent,u=W(e,n,t,o.checker);if(a||r.includes(u)){if(l?e===l?(d.moduleSpecifier||p(),i&&2!==o.options.use&&o.markSeenReExportRHS(c)&&z(c,dt.checkDefined(t.symbol),o)):o.markSeenReExportRHS(e)&&p():2===o.options.use&&$p(c)||p(),!Z(o.options)||a){const n=$p(e)||$p(t.name)?1:0,r=dt.checkDefined(t.symbol),i=jle(r,n,o.checker);i&&T(e,r,i,o)}if(1!==r.comingFrom&&d.moduleSpecifier&&!l&&!Z(o.options)){const e=o.checker.getExportSpecifierLocalTargetSymbol(t);e&&A(e,o)}}function p(){i&&z(e,u,o)}}function W(e,n,t,r){return function(e,n){const{parent:t,propertyName:r,name:o}=n;return dt.assert(r===e||o===e),r?r===e:!t.parent.moduleSpecifier}(e,t)&&r.getExportSpecifierLocalTargetSymbol(t)||n}function z(e,n,t){const{kind:r,symbol:o}="kind"in n?n:{kind:void 0,symbol:n};if(2===t.options.use&&90===e.kind)return;const i=t.referenceAdder(o);t.options.implementations?function(e,n,t){if(pg(e)&&(r=e.parent,33554432&r.flags?!gN(r)&&!yN(r):wm(r)?Lu(r):ld(r)?r.body:md(r)||lu(r)))return void n(e);var r;if(80!==e.kind)return;305===e.parent.kind&&$(e,t.checker,n);const o=V(e);if(o)return void n(o);const i=ml(e,e=>!xD(e.parent)&&!Ed(e.parent)&&!bd(e.parent)),a=i.parent;if(Pu(a)&&a.type===i&&t.markSeenContainingTypeReference(a))if(Lu(a))s(a.initializer);else if(ad(a)&&a.body){const e=a.body;242===e.kind?Mm(e,e=>{e.expression&&s(e.expression)}):s(e)}else(Jd(a)||BC(a))&&s(a.expression);function s(e){j(e)&&n(e)}}(e,i,t):i(e,r)}function G(e){return e.members&&e.members.get("__constructor")}function V(e){return dD(e)||_C(e)?V(e.parent):WC(e)?en(e.parent.parent,et(md,gN)):void 0}function j(e){switch(e.kind){case 218:return j(e.expression);case 220:case 219:case 211:case 232:case 210:return!0;default:return!1}}function H(e,n,t,r){if(e===n)return!0;const o=dB(e)+","+dB(n),i=t.get(o);if(void 0!==i)return i;t.set(o,!1);const a=!!e.declarations&&e.declarations.some(e=>Ag(e).some(e=>{const o=r.getTypeAtLocation(e);return!!o&&!!o.symbol&&H(o.symbol,n,t,r)}));return t.set(o,a),a}function K(e){return 80===e.kind&&170===e.parent.kind&&e.parent.name===e}function q(e,n,t,r,o,i){const a=[];return J(e,n,t,r,!(r&&o),(n,t,r)=>{r&&X(e)!==X(r)&&(r=void 0),a.push(r||t||n)},()=>!i),a}function J(e,n,t,o,i,a,s){const l=m5(n);if(l){const e=t.getShorthandAssignmentValueSymbol(n.parent);if(e&&o)return a(e,void 0,void 0,3);const r=t.getContextualType(l.parent),i=r&&p(h5(l,t,r,!0),e=>f(e,4));if(i)return i;const s=function(e,n){return W$(e.parent.parent)?n.getPropertySymbolOfDestructuringAssignment(e):void 0}(n,t),c=s&&a(s,void 0,void 0,4);if(c)return c;const d=e&&a(e,void 0,void 0,3);if(d)return d}const c=r(n,e,t);if(c){const e=a(c,void 0,void 0,1);if(e)return e}const d=f(e);if(d)return d;if(e.valueDeclaration&&tl(e.valueDeclaration,e.valueDeclaration.parent)){const n=t.getSymbolsOfParameterPropertyDeclaration(nn(e.valueDeclaration,DD),e.name);return dt.assert(2===n.length&&!!(1&n[0].flags)&&!!(4&n[1].flags)),f(1&e.flags?n[1]:n[0])}const u=Yu(e,282);if(!o||u&&!u.propertyName){const e=u&&t.getExportSpecifierLocalTargetSymbol(u);if(e){const n=a(e,void 0,void 0,1);if(n)return n}}if(!o){let r;return r=i?bQ(n.parent)?TQ(t,n.parent):void 0:m(e,t),r&&f(r,4)}dt.assert(o);if(i){const n=m(e,t);return n&&f(n,4)}function f(e,n){return p(t.getRootSymbols(e),r=>a(e,r,void 0,n)||(r.parent&&96&r.parent.flags&&s(r)?function(e,n,t,r){const o=new Set;return i(e);function i(e){if(96&e.flags&&AT(o,e))return p(e.declarations,e=>p(Ag(e),e=>{const o=t.getTypeAtLocation(e),a=o.symbol&&t.getPropertyOfType(o,n);return a&&p(t.getRootSymbols(a),r)||o.symbol&&i(o.symbol)}))}}(r.parent,r.name,t,t=>a(e,r,t,n)):void 0))}function m(e,n){const t=Yu(e,209);if(t&&bQ(t))return TQ(n,t)}}function X(e){if(!e.valueDeclaration)return!1;return!!(256&jv(e.valueDeclaration))}function Y(e,n){let t=oY(e);const{declarations:r}=n;if(r){let e;do{e=t;for(const e of r){const n=rY(e);n&t&&(t|=n)}}while(t!==e)}return t}function $(e,n,t){const r=n.getSymbolAtLocation(e),o=n.getShorthandAssignmentValueSymbol(r.valueDeclaration);if(o)for(const i of o.getDeclarations())1&rY(i)&&t(i)}function Q(e,n,t){rk(e,e=>{e.kind===n&&t(e),Q(e,n,t)})}function Z(e){return 2===e.use&&e.providePrefixAndSuffixTextForRename}e.eachExportReference=function(e,n,t,r,o,i,a,s){const l=wle(e,new Set(e.map(e=>e.fileName)),n,t),{importSearches:c,indirectUsers:d,singleReferences:u}=l(r,{exportKind:a?1:0,exportingModuleSymbol:o},!1);for(const[p]of c)s(p);for(const p of u)dD(p)&&lC(p.parent)&&s(p);for(const p of d)for(const e of D(p,a?"default":i)){const t=n.getSymbolAtLocation(e),o=U(null==t?void 0:t.declarations,e=>!!en(e,ON));!dD(e)||Gc(e.parent)||t!==r&&!o||s(e)}},e.isSymbolReferencedInFile=function(e,n,t,r=t){return I(e,n,t,()=>!0,r)||!1},e.eachSymbolReferenceInFile=I,e.getTopMostDeclarationNamesInFile=function(e,n){return x(D(n,e),e=>!!fg(e)).reduce((e,n)=>{const t=function(e){let n=0;for(;e;)e=NY(e),n++;return n}(n);return U(e.declarationNames)&&t!==e.depth?t<e.depth&&(e.declarationNames=[n],e.depth=t):(e.declarationNames.push(n),e.depth=t),e},{depth:1/0,declarationNames:[]}).declarationNames},e.someSignatureUsage=function(e,n,t,r){if(!e.name||!dD(e.name))return!1;const o=dt.checkDefined(t.getSymbolAtLocation(e.name));for(const i of n)for(const n of D(i,o.name)){if(!dD(n)||n===e.name||n.escapedText!==e.name.escapedText)continue;const i=_Y(n),a=yC(i.parent)&&i.parent.expression===i?i.parent:void 0,s=t.getSymbolAtLocation(n);if(s&&t.getRootSymbols(s).some(e=>e===o)&&r(n,a))return!0}return!1},e.getIntersectingMeaningFromDeclarations=Y,e.getReferenceEntriesForShorthandPropertyAssignment=$})(nce||(nce={}));var Tce={};function Sce(e,n,t,r,o){var i;const a=Ace(n,t,e),l=a&&[(c=a.reference.fileName,u=a.fileName,p=a.unverified,{fileName:u,textSpan:Xs(0,0),kind:"script",name:c,containerName:void 0,containerKind:void 0,unverified:p})]||s;var c,u,p;if(null==a?void 0:a.file)return l;const f=i$(n,t);if(f===n)return;const{parent:m}=f,h=e.getTypeChecker();if(164===f.kind||dD(f)&&WM(m)&&m.tagName===f){const e=function(e,n){const t=ml(n,fd);if(!t||!t.name)return;const r=ml(t,md);if(!r)return;const o=Tg(r);if(!o)return;const i=cg(o.expression),a=OC(i)?i.symbol:e.getSymbolAtLocation(i);if(!a)return;const s=Lv(t)?e.getTypeOfSymbol(a):e.getDeclaredTypeOfSymbol(a);let l;if(RD(t.name)){const n=e.getSymbolAtLocation(t.name);if(!n)return;l=Jg(n)?y(e.getPropertiesOfType(s),e=>e.escapedName===n.escapedName):e.getPropertyOfType(s,yl(n.escapedName))}else l=e.getPropertyOfType(s,yl(Bf(t.name)));if(!l)return;return Pce(e,l,n)}(h,f);if(void 0!==e||164!==f.kind)return e||s}if(vY(f)){const e=gY(f.parent,f.text);return e?[kce(h,e,"label",f.text,void 0)]:void 0}switch(f.kind){case 90:if(!oM(f.parent))break;case 84:const e=ml(f.parent,lN);if(e)return[wce(e,n)]}let _;switch(f.kind){case 107:case 135:case 127:_=ld;const e=ml(f,_);return e?[Fce(h,e)]:void 0}if(yD(f)&&kD(f.parent)){const e=f.parent.parent,{symbol:n,failedAliasResolution:t}=Mce(e,h,o),r=x(e.members,kD),i=n?h.symbolToString(n,e):"",a=f.getSourceFile();return D(r,e=>{let{pos:n}=Bb(e);return n=es(a.text,n),kce(h,e,"constructor","static {}",i,!1,t,{start:n,length:6})})}let{symbol:v,failedAliasResolution:b}=Mce(f,h,o),T=f;if(r&&b){const e=d([f,...(null==v?void 0:v.declarations)||s],e=>ml(e,Df)),n=e&&T_(e);n&&(({symbol:v,failedAliasResolution:b}=Mce(n,h,o)),T=n)}if(!v&&vQ(T)){const t=null==(i=e.getResolvedModuleFromModuleSpecifier(T,n))?void 0:i.resolvedModule;if(t)return[{name:T.text,fileName:t.resolvedFileName,containerName:void 0,containerKind:void 0,kind:"script",textSpan:Js(0,0),failedAliasResolution:b,isAmbient:yk(t.resolvedFileName),unverified:T!==f}]}if(td(f)&&(fd(m)||Rl(m))&&(v=m.symbol),!v)return K(l,function(e,n){return F(n.getIndexInfosAtLocation(e),e=>e.declaration&&Fce(n,e.declaration))}(f,h));if(r&&g(v.declarations,e=>e.getSourceFile().fileName===n.fileName))return;const S=function(e,n){const t=function(e){const n=ml(e,e=>!AY(e)),t=null==n?void 0:n.parent;return t&&Wd(t)&&mh(t)===n?t:void 0}(n),r=t&&e.getResolvedSignature(t);return en(r&&r.declaration,e=>ad(e)&&!jD(e))}(h,f);if(S&&(!Eu(f.parent)||!function(e){switch(e.kind){case 177:case 186:case 180:case 181:return!0;default:return!1}}(S))){const e=Fce(h,S,b);let n=e=>e!==S;if(h.getRootSymbols(v).some(e=>function(e,n){var t;return e===n.symbol||e===n.symbol.parent||sb(n.parent)||!Wd(n.parent)&&e===(null==(t=en(n.parent,cu))?void 0:t.symbol)}(e,S))){if(!wD(S))return[e];n=e=>e!==S&&(_N(e)||OC(e))}const t=Pce(h,v,f,b,n)||s;return 108===f.kind?[e,...t]:[...t,e]}if(305===f.parent.kind){const e=h.getShorthandAssignmentValueSymbol(v.valueDeclaration);return K((null==e?void 0:e.declarations)?e.declarations.map(n=>Lce(n,h,e,f,!1,b)):s,Ece(h,f))}if(od(f)&&fC(m)&&uC(m.parent)&&f===(m.propertyName||m.name)){const e=oQ(f),n=h.getTypeAtLocation(m.parent);return void 0===e?s:P(n.isUnion()?n.types:[n],n=>{const t=n.getProperty(e);return t&&Pce(h,t,f)})}const E=Ece(h,f);return K(l,E.length?E:Pce(h,v,f,b))}function Ece(e,n){const t=m5(n);if(t){const r=t&&e.getContextualType(t.parent);if(r)return P(h5(t,e,r,!1),t=>Pce(e,t,n))}return s}function Ace(e,n,t){var r,o;const i=Wce(e.referencedFiles,n);if(i){const n=t.getSourceFileFromReference(e,i);return n&&{reference:i,fileName:n.fileName,file:n,unverified:!1}}const a=Wce(e.typeReferenceDirectives,n);if(a){const n=null==(r=t.getResolvedTypeReferenceDirectiveFromTypeReferenceDirective(a,e))?void 0:r.resolvedTypeReferenceDirective,o=n&&t.getSourceFile(n.resolvedFileName);return o&&{reference:a,fileName:o.fileName,file:o,unverified:!1}}const s=Wce(e.libReferenceDirectives,n);if(s){const e=t.getLibFileFromReference(s);return e&&{reference:s,fileName:e.fileName,file:e,unverified:!1}}if(e.imports.length||e.moduleAugmentations.length){const r=a$(e,n);let i;if(vQ(r)&&Ds(r.text)&&(i=t.getResolvedModuleFromModuleSpecifier(r,e))){const n=null==(o=i.resolvedModule)?void 0:o.resolvedFileName,a=n||Bi(Mi(e.fileName),r.text);return{file:t.getSourceFile(a),fileName:a,reference:{pos:r.getStart(),end:r.getEnd(),fileName:r.text},unverified:!n}}}}t(Tce,{createDefinitionInfo:()=>Lce,getDefinitionAndBoundSpan:()=>Nce,getDefinitionAtPosition:()=>Sce,getReferenceAtPosition:()=>Ace,getTypeDefinitionAtPosition:()=>Dce});var xce=new Set(["Array","ArrayLike","ReadonlyArray","Promise","PromiseLike","Iterable","IterableIterator","AsyncIterable","Set","WeakSet","ReadonlySet","Map","WeakMap","ReadonlyMap","Partial","Required","Readonly","Pick","Omit"]);function Rce(e,n){if(!n.aliasSymbol)return!1;const t=n.aliasSymbol.name;if(!xce.has(t))return!1;const r=e.resolveName(t,void 0,788968,!1);return!!r&&r===n.aliasSymbol}function Ice(e,n,t,r){var o,i;if(4&bT(n)&&function(e,n){const t=n.symbol.name;if(!xce.has(t))return!1;const r=e.resolveName(t,void 0,788968,!1);return!!r&&r===n.target.symbol}(e,n))return Cce(e.getTypeArguments(n)[0],e,t,r);if(Rce(e,n)&&n.aliasTypeArguments)return Cce(n.aliasTypeArguments[0],e,t,r);if(32&bT(n)&&n.target&&Rce(e,n.target)){const a=null==(i=null==(o=n.aliasSymbol)?void 0:o.declarations)?void 0:i[0];if(a&&yN(a)&&VD(a.type)&&a.type.typeArguments)return Cce(e.getTypeAtLocation(a.type.typeArguments[0]),e,t,r)}return[]}function Dce(e,n,t){const r=i$(n,t);if(r===n)return;if(mm(r.parent)&&r.parent.name===r)return Cce(e.getTypeAtLocation(r.parent),e,r.parent,!1);let{symbol:o,failedAliasResolution:i}=Mce(r,e,!1);if(td(r)&&(fd(r.parent)||Rl(r.parent))&&(o=r.parent.symbol,i=!1),!o)return;const a=e.getTypeOfSymbolAtLocation(o,r),s=function(e,n,t){if(n.symbol===e||e.valueDeclaration&&n.symbol&&fN(e.valueDeclaration)&&e.valueDeclaration.initializer===n.symbol.valueDeclaration){const e=n.getCallSignatures();if(1===e.length)return t.getReturnTypeOfSignature(he(e))}return}(o,a,e),l=s&&Cce(s,e,r,i),[c,d]=l&&0!==l.length?[s,l]:[a,Cce(a,e,r,i)];return d.length?[...Ice(e,c,r,i),...d]:!(111551&o.flags)&&788968&o.flags?Pce(e,cT(o,e),r,i):void 0}function Cce(e,n,t,r){return P(!e.isUnion()||32&e.flags?[e]:e.types,e=>e.symbol&&Pce(n,e.symbol,t,r))}function Nce(e,n,t){const r=Sce(e,n,t);if(!r||0===r.length)return;const o=Wce(n.referencedFiles,t)||Wce(n.typeReferenceDirectives,t)||Wce(n.libReferenceDirectives,t);if(o)return{definitions:r,textSpan:K$(o)};const i=i$(n,t);return{definitions:r,textSpan:Js(i.getStart(),i.getWidth())}}function Mce(e,n,t){const r=n.getSymbolAtLocation(e);let o=!1;if((null==r?void 0:r.declarations)&&2097152&r.flags&&!t&&function(e,n){if(80!==e.kind&&(11!==e.kind||!Gc(e.parent)))return!1;if(e.parent===n)return!0;if(275===n.kind)return!1;return!0}(e,r.declarations[0])){const e=n.getAliasedSymbol(r);if(e.declarations)return{symbol:e};o=!0}return{symbol:r,failedAliasResolution:o}}function Pce(e,n,t,r,o){const i=void 0!==o?x(n.declarations,o):n.declarations,a=!o&&(function(){if(32&n.flags&&!(19&n.flags)&&(sY(t)||137===t.kind)){const e=y(i,md);return e&&l(e.members,!0)}}()||(lY(t)||IY(t)?l(i,!1):void 0));if(a)return a;const s=x(i,e=>!function(e){if(!Kh(e))return!1;const n=ml(e,e=>!!sb(e)||!Kh(e)&&"quit");return!!n&&5===o_(n)}(e));return D(U(s)?s:i,o=>Lce(o,e,n,t,!1,r));function l(o,i){if(!o)return;const a=o.filter(i?wD:ad),s=a.filter(e=>!!e.body);return a.length?0!==s.length?s.map(r=>Lce(r,e,n,t)):[Lce(ye(a),e,n,t,!1,r)]:void 0}}function Lce(e,n,t,r,o,i){const a=n.symbolToString(t),s=que.getSymbolKind(n,t,r),l=t.parent?n.symbolToString(t.parent,r):"";return kce(n,e,s,a,l,o,i)}function kce(e,n,t,r,o,i,a,s){const l=n.getSourceFile();if(!s){s=j$(Dl(n)||n,l)}return{fileName:l.fileName,textSpan:s,kind:t,name:r,containerKind:void 0,containerName:o,...kle.toContextSpan(s,l,kle.getContextNode(n)),isLocal:!Oce(e,n),isAmbient:!!(33554432&n.flags),unverified:i,failedAliasResolution:a}}function wce(e,n){const t=kle.getContextNode(e),r=j$($le(t)?t.start:t,n);return{fileName:n.fileName,textSpan:r,kind:"keyword",name:"switch",containerKind:void 0,containerName:"",...kle.toContextSpan(r,n,t),isLocal:!0,isAmbient:!1,unverified:!1,failedAliasResolution:void 0}}function Oce(e,n){if(e.isDeclarationVisible(n))return!0;if(!n.parent)return!1;if(Lu(n.parent)&&n.parent.initializer===n)return Oce(e,n.parent);switch(n.kind){case 173:case 178:case 179:case 175:if(Nv(n,2))return!1;case 177:case 304:case 305:case 211:case 232:case 220:case 219:return Oce(e,n.parent);default:return!1}}function Fce(e,n,t){return Lce(n,e,n.symbol,n,!1,t)}function Wce(e,n){return y(e,e=>ws(e,n))}var zce={};t(zce,{provideInlayHints:()=>jce});var Bce=e=>new RegExp(`^\\s?/\\*\\*?\\s?${e}\\s?\\*\\/\\s?$`);function Gce(e){return"literals"===e.includeInlayParameterNameHints}function Vce(e){return!0===e.interactiveInlayHints}function jce(e){const{file:n,program:t,span:r,cancellationToken:o,preferences:i}=e,a=n.text,s=t.getCompilerOptions(),l=hQ(n,i),c=t.getTypeChecker(),d=[];return function e(t){if(!t||0===t.getFullWidth())return;switch(t.kind){case 268:case 264:case 265:case 263:case 232:case 219:case 175:case 220:o.throwIfCancellationRequested()}if(!Vs(r,t.pos,t.getFullWidth()))return;if(Ed(t)&&!WC(t))return;i.includeInlayVariableTypeHints&&fN(t)||i.includeInlayPropertyDeclarationTypeHints&&MD(t)?m(t):i.includeInlayEnumMemberValueHints&&dM(t)?function(e){if(e.initializer)return;const n=c.getConstantValue(e);void 0!==n&&(t=n.toString(),r=e.end,d.push({text:`= ${t}`,position:r,kind:"Enum",whitespaceBefore:!0}));var t,r}(t):function(e){return"literals"===e.includeInlayParameterNameHints||"all"===e.includeInlayParameterNameHints}(i)&&(yC(t)||vC(t))?function(e){const n=e.arguments;if(!n||!n.length)return;const t=c.getResolvedSignature(e);if(void 0===t)return;let r=0;for(const o of n){const e=cg(o);if(Gce(i)&&!g(e)){r++;continue}let n=0;if(wC(e)){const t=c.getTypeAtLocation(e.expression);if(c.isTupleType(t)){const{elementFlags:e,fixedLength:r}=t.target;if(0===r)continue;const o=b(e,e=>!(1&e));(o<0?r:o)>0&&(n=o<0?r:o)}}const a=c.getParameterIdentifierInfoAtPosition(t,r);if(r+=n||1,a){const{parameter:n,parameterName:t,isRestParameter:r}=a;if(!(i.includeInlayParameterNameHintsWhenArgumentMatchesName||!h(e,t))&&!r)continue;const s=yl(t);if(_(e,s))continue;u(s,n,o.getStart(),r)}}}(t):(i.includeInlayFunctionParameterTypeHints&&ld(t)&&zA(t)&&function(e){const n=c.getSignatureFromDeclaration(e);if(!n)return;let t=0;for(const r of e.parameters)E(r)&&v(r,uv(r)?n.thisParameter:n.parameters[t]),uv(r)||t++}(t),i.includeInlayFunctionLikeReturnTypeHints&&function(e){return AC(e)||EC(e)||hN(e)||LD(e)||OD(e)}(t)&&function(e){if(AC(e)&&!qY(e,21,n))return;if(vv(e)||!e.body)return;const t=c.getSignatureFromDeclaration(e);if(!t)return;const r=c.getTypePredicateOfSignature(t);if(null==r?void 0:r.type){const t=function(e){if(!Vce(i))return function(e){const t=71286784,r=Dj();return cp(o=>{const i=c.typePredicateToTypePredicateNode(e,void 0,t);dt.assertIsDefined(i,"should always get typePredicateNode"),r.writeNode(4,i,n,o)})}(e);const t=71286784,r=c.typePredicateToTypePredicateNode(e,void 0,t);return dt.assertIsDefined(r,"should always get typenode"),S(r)}(r);if(t)return void p(t,y(e))}const o=c.getReturnTypeOfSignature(t);if(f(o))return;const a=T(o);a&&p(a,y(e))}(t));return rk(t,e)}(n),d;function u(e,n,t,r){let o,a=`${r?"...":""}${e}`;Vce(i)?(o=[A(a,n),{text:":"}],a=""):a+=":",d.push({text:a,position:t,kind:"Parameter",whitespaceAfter:!0,displayParts:o})}function p(e,n){d.push({text:"string"==typeof e?`: ${e}`:"",displayParts:"string"==typeof e?void 0:[{text:": "},...e],position:n,kind:"Type",whitespaceBefore:!0})}function f(e){return e.symbol&&1536&e.symbol.flags}function m(e){if(void 0===e.initializer&&(!MD(e)||1&c.getTypeAtLocation(e).flags)||xd(e.name)||fN(e)&&!E(e))return;if(gv(e))return;const n=c.getTypeAtLocation(e);if(f(n))return;const t=T(n);if(t){const n="string"==typeof t?t:t.map(e=>e.text).join("");if(!1===i.includeInlayVariableTypeHintsWhenTypeMatchesName&&_n(e.name.getText(),n))return;p(t,e.name.end)}}function h(e,n){return dD(e)?e.text===n:!!_C(e)&&e.name.text===n}function _(e,t){if(!ys(t,SS(s),fS(n.scriptKind)))return!1;const r=fs(a,e.pos);if(!(null==r?void 0:r.length))return!1;const o=Bce(t);return U(r,e=>o.test(a.substring(e.pos,e.end)))}function g(e){switch(e.kind){case 225:{const n=e.operand;return Oc(n)||dD(n)&&BA(n.escapedText)}case 112:case 97:case 106:case 15:case 229:return!0;case 80:{const n=e.escapedText;return function(e){return"undefined"===e}(n)||BA(n)}}return Oc(e)}function y(e){const t=qY(e,22,n);return t?t.end:e.parameters.end}function v(e,n){if(gv(e)||void 0===n)return;const t=function(e){const n=e.valueDeclaration;if(!n||!DD(n))return;const t=c.getTypeOfSymbolAtLocation(e,n);if(f(t))return;return T(t)}(n);void 0!==t&&p(t,e.questionToken?e.questionToken.end:e.name.end)}function T(e){if(!Vce(i))return function(e){const t=Dj();return cp(r=>{const o=c.typeToTypeNode(e,void 0,71286784);dt.assertIsDefined(o,"should always get typenode"),t.writeNode(4,o,n,r)})}(e);const t=c.typeToTypeNode(e,void 0,71286784);return dt.assertIsDefined(t,"should always get typeNode"),S(t)}function S(e){const n=[];return t(e),n;function t(e){var a,s;if(!e)return;const l=Pa(e.kind);if(l)n.push({text:l});else if(Oc(e))n.push({text:i(e)});else switch(e.kind){case 80:dt.assertNode(e,dD);const l=vl(e),c=e.symbol&&e.symbol.declarations&&e.symbol.declarations.length&&Dl(e.symbol.declarations[0]);c?n.push(A(l,c)):n.push({text:l});break;case 167:dt.assertNode(e,xD),t(e.left),n.push({text:"."}),t(e.right);break;case 183:dt.assertNode(e,GD),e.assertsModifier&&n.push({text:"asserts "}),t(e.parameterName),e.type&&(n.push({text:" is "}),t(e.type));break;case 184:dt.assertNode(e,VD),t(e.typeName),e.typeArguments&&(n.push({text:"<"}),o(e.typeArguments,", "),n.push({text:">"}));break;case 169:dt.assertNode(e,ID),e.modifiers&&o(e.modifiers," "),t(e.name),e.constraint&&(n.push({text:" extends "}),t(e.constraint)),e.default&&(n.push({text:" = "}),t(e.default));break;case 170:dt.assertNode(e,DD),e.modifiers&&o(e.modifiers," "),e.dotDotDotToken&&n.push({text:"..."}),t(e.name),e.questionToken&&n.push({text:"?"}),e.type&&(n.push({text:": "}),t(e.type));break;case 186:dt.assertNode(e,UD),n.push({text:"new "}),r(e),n.push({text:" => "}),t(e.type);break;case 187:dt.assertNode(e,HD),n.push({text:"typeof "}),t(e.exprName),e.typeArguments&&(n.push({text:"<"}),o(e.typeArguments,", "),n.push({text:">"}));break;case 188:dt.assertNode(e,KD),n.push({text:"{"}),e.members.length&&(n.push({text:" "}),o(e.members,"; "),n.push({text:" "})),n.push({text:"}"});break;case 189:dt.assertNode(e,qD),t(e.elementType),n.push({text:"[]"});break;case 190:dt.assertNode(e,JD),n.push({text:"["}),o(e.elements,", "),n.push({text:"]"});break;case 203:dt.assertNode(e,XD),e.dotDotDotToken&&n.push({text:"..."}),t(e.name),e.questionToken&&n.push({text:"?"}),n.push({text:": "}),t(e.type);break;case 191:dt.assertNode(e,YD),t(e.type),n.push({text:"?"});break;case 192:dt.assertNode(e,$D),n.push({text:"..."}),t(e.type);break;case 193:dt.assertNode(e,QD),o(e.types," | ");break;case 194:dt.assertNode(e,ZD),o(e.types," & ");break;case 195:dt.assertNode(e,eC),t(e.checkType),n.push({text:" extends "}),t(e.extendsType),n.push({text:" ? "}),t(e.trueType),n.push({text:" : "}),t(e.falseType);break;case 196:dt.assertNode(e,nC),n.push({text:"infer "}),t(e.typeParameter);break;case 197:dt.assertNode(e,tC),n.push({text:"("}),t(e.type),n.push({text:")"});break;case 199:dt.assertNode(e,oC),n.push({text:`${Pa(e.operator)} `}),t(e.type);break;case 200:dt.assertNode(e,iC),t(e.objectType),n.push({text:"["}),t(e.indexType),n.push({text:"]"});break;case 201:dt.assertNode(e,aC),n.push({text:"{ "}),e.readonlyToken&&(40===e.readonlyToken.kind?n.push({text:"+"}):41===e.readonlyToken.kind&&n.push({text:"-"}),n.push({text:"readonly "})),n.push({text:"["}),t(e.typeParameter),e.nameType&&(n.push({text:" as "}),t(e.nameType)),n.push({text:"]"}),e.questionToken&&(40===e.questionToken.kind?n.push({text:"+"}):41===e.questionToken.kind&&n.push({text:"-"}),n.push({text:"?"})),n.push({text:": "}),e.type&&t(e.type),n.push({text:"; }"});break;case 202:dt.assertNode(e,sC),t(e.literal);break;case 185:dt.assertNode(e,jD),r(e),n.push({text:" => "}),t(e.type);break;case 206:dt.assertNode(e,lC),e.isTypeOf&&n.push({text:"typeof "}),n.push({text:"import("}),t(e.argument),e.assertions&&(n.push({text:", { assert: "}),o(e.assertions.assertClause.elements,", "),n.push({text:" }"})),n.push({text:")"}),e.qualifier&&(n.push({text:"."}),t(e.qualifier)),e.typeArguments&&(n.push({text:"<"}),o(e.typeArguments,", "),n.push({text:">"}));break;case 172:dt.assertNode(e,ND),(null==(a=e.modifiers)?void 0:a.length)&&(o(e.modifiers," "),n.push({text:" "})),t(e.name),e.questionToken&&n.push({text:"?"}),e.type&&(n.push({text:": "}),t(e.type));break;case 182:dt.assertNode(e,BD),n.push({text:"["}),o(e.parameters,", "),n.push({text:"]"}),e.type&&(n.push({text:": "}),t(e.type));break;case 174:dt.assertNode(e,PD),(null==(s=e.modifiers)?void 0:s.length)&&(o(e.modifiers," "),n.push({text:" "})),t(e.name),e.questionToken&&n.push({text:"?"}),r(e),e.type&&(n.push({text:": "}),t(e.type));break;case 180:dt.assertNode(e,WD),r(e),e.type&&(n.push({text:": "}),t(e.type));break;case 181:dt.assertNode(e,zD),n.push({text:"new "}),r(e),e.type&&(n.push({text:": "}),t(e.type));break;case 208:dt.assertNode(e,pC),n.push({text:"["}),o(e.elements,", "),n.push({text:"]"});break;case 207:dt.assertNode(e,uC),n.push({text:"{"}),e.elements.length&&(n.push({text:" "}),o(e.elements,", "),n.push({text:" "})),n.push({text:"}"});break;case 209:dt.assertNode(e,fC),t(e.name);break;case 225:dt.assertNode(e,CC),n.push({text:Pa(e.operator)}),t(e.operand);break;case 204:dt.assertNode(e,dC),t(e.head),e.templateSpans.forEach(t);break;case 16:dt.assertNode(e,$I),n.push({text:i(e)});break;case 205:dt.assertNode(e,cC),t(e.type),t(e.literal);break;case 17:dt.assertNode(e,QI),n.push({text:i(e)});break;case 18:dt.assertNode(e,ZI),n.push({text:i(e)});break;case 198:dt.assertNode(e,rC),n.push({text:"this"});break;case 168:dt.assertNode(e,RD),n.push({text:"["}),t(e.expression),n.push({text:"]"});break;default:dt.failBadSyntaxKind(e)}}function r(e){e.typeParameters&&(n.push({text:"<"}),o(e.typeParameters,", "),n.push({text:">"})),n.push({text:"("}),o(e.parameters,", "),n.push({text:")"})}function o(e,r){e.forEach((e,o)=>{o>0&&n.push({text:r}),t(e)})}function i(e){switch(e.kind){case 11:return 0===l?`'${Ay(e.text,39)}'`:`"${Ay(e.text,34)}"`;case 16:case 17:case 18:{const n=e.rawText??hy(Ay(e.text,96));switch(e.kind){case 16:return"`"+n+"${";case 17:return"}"+n+"${";case 18:return"}"+n+"`"}}}return e.text}}function E(e){if((ey(e)||fN(e)&&cm(e))&&e.initializer){const n=cg(e.initializer);return!(g(n)||vC(n)||hC(n)||Jd(n))}return!0}function A(e,n){const t=n.getSourceFile();return{text:e,span:j$(n,t),file:t.fileName}}}var Uce={};t(Uce,{getDocCommentTemplateAtPosition:()=>sde,getJSDocParameterNameCompletionDetails:()=>ade,getJSDocParameterNameCompletions:()=>ide,getJSDocTagCompletionDetails:()=>ode,getJSDocTagCompletions:()=>rde,getJSDocTagNameCompletionDetails:()=>tde,getJSDocTagNameCompletions:()=>nde,getJsDocCommentsFromDeclarations:()=>Jce,getJsDocTagsFromDeclarations:()=>Yce});var Hce,Kce,qce=["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","import","inheritdoc","inner","instance","interface","kind","lends","license","link","linkcode","linkplain","listens","member","memberof","method","mixes","module","name","namespace","overload","override","package","param","private","prop","property","protected","public","readonly","requires","returns","satisfies","see","since","static","summary","template","this","throws","todo","tutorial","type","typedef","var","variation","version","virtual","yields"];function Jce(e,n){const t=[];return NQ(e,e=>{for(const r of function(e){switch(e.kind){case 342:case 349:return[e];case 339:case 347:return[e,e.parent];case 324:if(zM(e.parent))return[e.parent.parent];default:return z_(e)}}(e)){const o=IM(r)&&r.tags&&y(r.tags,e=>328===e.kind&&("inheritDoc"===e.tagName.escapedText||"inheritdoc"===e.tagName.escapedText));if(void 0===r.comment&&!o||IM(r)&&347!==e.kind&&339!==e.kind&&r.tags&&r.tags.some(e=>347===e.kind||339===e.kind)&&!r.tags.some(e=>342===e.kind||343===e.kind))continue;let i=r.comment?Zce(r.comment,n):[];o&&o.comment&&(i=i.concat(Zce(o.comment,n))),S(t,i,Xce)||t.push(i)}}),M(_(t,[eZ()]))}function Xce(e,n){return ee(e,n,(e,n)=>e.kind===n.kind&&e.text===n.text)}function Yce(e,n){const t=[];return NQ(e,e=>{const r=lc(e);if(!r.some(e=>347===e.kind||339===e.kind)||r.some(e=>342===e.kind||343===e.kind))for(const o of r)t.push({name:o.tagName.text,text:ede(o,n)}),t.push(...$ce(Qce(o),n))}),t}function $ce(e,n){return P(e,e=>K([{name:e.tagName.text,text:ede(e,n)}],$ce(Qce(e),n)))}function Qce(e){return Nc(e)&&e.isNameFirst&&e.typeExpression&&DM(e.typeExpression.type)?e.typeExpression.type.jsDocPropertyTags:void 0}function Zce(e,n){return"string"==typeof e?[KQ(e)]:P(e,e=>322===e.kind?[KQ(e.text)]:$Q(e,n))}function ede(e,n){const{comment:t,kind:r}=e,o=function(e){switch(e){case 342:return jQ;case 349:return UQ;case 346:return JQ;case 347:case 339:return qQ;default:return KQ}}(r);switch(r){case 350:const r=e.typeExpression;return r?i(r):void 0===t?void 0:Zce(t,n);case 330:case 329:return i(e.class);case 346:const a=e,s=[];if(a.constraint&&s.push(KQ(a.constraint.getText())),c(a.typeParameters)){c(s)&&s.push(zQ());const e=a.typeParameters[a.typeParameters.length-1];d(a.typeParameters,n=>{s.push(o(n.getText())),e!==n&&s.push(GQ(28),zQ())})}return t&&s.push(zQ(),...Zce(t,n)),s;case 345:case 351:return i(e.typeExpression);case 347:case 339:case 349:case 342:case 348:const{name:l}=e;return l?i(l):void 0===t?void 0:Zce(t,n);default:return void 0===t?void 0:Zce(t,n)}function i(e){return r=e.getText(),t?r.match(/^https?$/)?[KQ(r),...Zce(t,n)]:[o(r),zQ(),...Zce(t,n)]:[KQ(r)];var r}}function nde(){return Hce||(Hce=D(qce,e=>({name:e,kind:"keyword",kindModifiers:"",sortText:Pae.SortText.LocationPriority})))}var tde=ode;function rde(){return Kce||(Kce=D(qce,e=>({name:`@${e}`,kind:"keyword",kindModifiers:"",sortText:Pae.SortText.LocationPriority})))}function ode(e){return{name:e,kind:"",kindModifiers:"",displayParts:[KQ(e)],documentation:s,tags:void 0,codeActions:void 0}}function ide(e){if(!dD(e.name))return s;const n=e.name.text,t=e.parent,r=t.parent;return ad(r)?F(r.parameters,r=>{if(!dD(r.name))return;const o=r.name.text;return t.tags.some(n=>n!==e&&jM(n)&&dD(n.name)&&n.name.escapedText===o)||void 0!==n&&!Xn(o,n)?void 0:{name:o,kind:"parameter",kindModifiers:"",sortText:Pae.SortText.LocationPriority}}):[]}function ade(e){return{name:e,kind:"parameter",kindModifiers:"",displayParts:[KQ(e)],documentation:s,tags:void 0,codeActions:void 0}}function sde(e,n,t,r){const o=s$(n,t),i=ml(o,IM);if(i&&(void 0!==i.comment||c(i.tags)))return;const a=o.getStart(n);if(!i&&a<t)return;const s=function(e,n){return ip(e,e=>lde(e,n))}(o,r);if(!s)return;const{commentOwner:l,parameters:d,hasReturn:u}=s,p=ge(Mu(l)&&l.jsDoc?l.jsDoc:void 0);if(l.getStart(n)<t||p&&i&&p!==i)return;const f=function(e,n){const{text:t}=e,r=kY(n,e);let o=r;for(;o<=n&&Ka(t.charCodeAt(o));o++);return t.slice(r,o)}(n,t),m=WE(n.fileName),h=(d?function(e,n,t,r){return e.map(({name:e,dotDotDotToken:o},i)=>{const a=80===e.kind?e.text:"param"+i;return`${t} * @param ${n?o?"{...any} ":"{any} ":""}${a}${r}`}).join("")}(d||[],m,f,e):"")+(u?function(e,n){return`${e} * @returns${n}`}(f,e):""),_=c(lc(l))>0;if(h&&!_){const n="/**"+e+f+" * ";return{newText:n+e+h+f+" */"+(a===t?e+f:""),caretOffset:n.length}}return{newText:"/** */",caretOffset:3}}function lde(e,n){switch(e.kind){case 263:case 219:case 175:case 177:case 174:case 220:const t=e;return{commentOwner:e,parameters:t.parameters,hasReturn:cde(t,n)};case 304:return lde(e.initializer,n);case 264:case 265:case 267:case 307:case 266:return{commentOwner:e};case 172:{const t=e;return t.type&&jD(t.type)?{commentOwner:e,parameters:t.type.parameters,hasReturn:cde(t.type,n)}:{commentOwner:e}}case 244:{const t=e.declarationList.declarations,r=1===t.length&&t[0].initializer?function(e){for(;218===e.kind;)e=e.expression;switch(e.kind){case 219:case 220:return e;case 232:return y(e.members,wD)}}(t[0].initializer):void 0;return r?{commentOwner:e,parameters:r.parameters,hasReturn:cde(r,n)}:{commentOwner:e}}case 308:return"quit";case 268:return 268===e.parent.kind?void 0:{commentOwner:e};case 245:return lde(e.expression,n);case 227:{const t=e;return 0===o_(t)?"quit":ad(t.right)?{commentOwner:e,parameters:t.right.parameters,hasReturn:cde(t.right,n)}:{commentOwner:e}}case 173:const r=e.initializer;if(r&&(EC(r)||AC(r)))return{commentOwner:e,parameters:r.parameters,hasReturn:cde(r,n)}}}function cde(e,n){return!!(null==n?void 0:n.generateReturnInDocTemplate)&&(jD(e)||AC(e)&&qd(e.body)||ld(e)&&e.body&&JC(e.body)&&!!Mm(e.body,e=>e))}var dde={};function ude(e,n,t,r,o,i){return tpe.ChangeTracker.with({host:r,formatContext:o,preferences:i},r=>{const o=n.map(n=>function(e,n){const t=[{parse:()=>sk("__mapcode_content_nodes.ts",n,e.languageVersion,!0,e.scriptKind),body:e=>e.statements},{parse:()=>sk("__mapcode_class_content_nodes.ts",`class __class {\n${n}\n}`,e.languageVersion,!0,e.scriptKind),body:e=>e.statements[0].members}],r=[];for(const{parse:i,body:a}of t){const e=i(),n=a(e);if(n.length&&0===e.parseDiagnostics.length)return n;n.length&&r.push({sourceFile:e,body:n})}r.sort((e,n)=>e.sourceFile.parseDiagnostics.length-n.sourceFile.parseDiagnostics.length);const{body:o}=r[0];return o}(e,n)),i=t&&M(t);for(const n of o)pde(e,r,n,i)})}function pde(e,n,t,r){fd(t[0])||bd(t[0])?function(e,n,t,r){let o;o=r&&r.length?d(r,n=>ml(s$(e,n.start),et(md,gN))):y(e.statements,et(md,gN));if(!o)return;const i=o.members.find(e=>t.some(n=>fde(n,e)));if(i){const r=v(o.members,e=>t.some(n=>fde(n,e)));return d(t,mde),void n.replaceNodeRangeWithNodes(e,i,r,t)}d(t,mde),n.insertNodesAfter(e,o.members[o.members.length-1],t)}(e,n,t,r):function(e,n,t,r){if(!(null==r?void 0:r.length))return void n.insertNodesAtEndOfFile(e,t,!1);for(const i of r){const r=ml(s$(e,i.start),e=>et(JC,uM)(e)&&U(e.statements,e=>t.some(n=>fde(n,e))));if(r){const o=r.statements.find(e=>t.some(n=>fde(n,e)));if(o){const i=v(r.statements,e=>t.some(n=>fde(n,e)));return d(t,mde),void n.replaceNodeRangeWithNodes(e,o,i,t)}}}let o=e.statements;for(const i of r){const n=ml(s$(e,i.start),JC);if(n){o=n.statements;break}}d(t,mde),n.insertNodesAfter(e,o[o.length-1],t)}(e,n,t,r)}function fde(e,n){var t,r,o,i,a,s;return e.kind===n.kind&&(177===e.kind?e.kind===n.kind:Rl(e)&&Rl(n)?e.name.getText()===n.name.getText():QC(e)&&QC(n)||eN(e)&&eN(n)?e.expression.getText()===n.expression.getText():nN(e)&&nN(n)?(null==(t=e.initializer)?void 0:t.getText())===(null==(r=n.initializer)?void 0:r.getText())&&(null==(o=e.incrementor)?void 0:o.getText())===(null==(i=n.incrementor)?void 0:i.getText())&&(null==(a=e.condition)?void 0:a.getText())===(null==(s=n.condition)?void 0:s.getText()):eu(e)&&eu(n)?e.expression.getText()===n.expression.getText()&&e.initializer.getText()===n.initializer.getText():cN(e)&&cN(n)?e.label.getText()===n.label.getText():e.getText()===n.getText())}function mde(e){hde(e),e.parent=void 0}function hde(e){e.pos=-1,e.end=-1,e.forEachChild(hde)}t(dde,{mapCode:()=>ude});var _de={};function gde(e,n,t,r,o,i){const a=tpe.ChangeTracker.fromContext({host:t,formatContext:n,preferences:o}),s="SortAndCombine"===i||"All"===i,l=s,d="RemoveUnused"===i||"All"===i,u=e.statements.filter(xN),p=vde(e,u),{comparersToTest:f,typeOrdersToTest:m}=yde(o),h=f[0],_={moduleSpecifierComparer:"boolean"==typeof o.organizeImportsIgnoreCase?h:void 0,namedImportComparer:"boolean"==typeof o.organizeImportsIgnoreCase?h:void 0,typeOrder:o.organizeImportsTypeOrder};if("boolean"!=typeof o.organizeImportsIgnoreCase&&({comparer:_.moduleSpecifierComparer}=Mde(p,f)),!_.typeOrder||"boolean"!=typeof o.organizeImportsIgnoreCase){const e=Pde(u,f,m);if(e){const{namedImportComparer:n,typeOrder:t}=e;_.namedImportComparer=_.namedImportComparer??n,_.typeOrder=_.typeOrder??t}}p.forEach(e=>y(e,_)),"RemoveUnused"!==i&&function(e){const n=[],t=e.statements,r=c(t);let o=0,i=0;for(;o<r;)if(FN(t[o])){void 0===n[i]&&(n[i]=[]);const e=t[o];if(e.moduleSpecifier)n[i].push(e),o++;else{for(;o<r&&FN(t[o]);)n[i].push(t[o++]);i++}}else o++;return P(n,n=>vde(e,n))}(e).forEach(e=>v(e,_.namedImportComparer));for(const c of e.statements.filter(pf)){if(!c.body)continue;if(vde(e,c.body.statements.filter(xN)).forEach(e=>y(e,_)),"RemoveUnused"!==i){v(c.body.statements.filter(FN),_.namedImportComparer)}}return a.getChanges();function g(r,o){if(0===c(r))return;xR(r[0],1024);const i=l?ze(r,e=>Tde(e.moduleSpecifier)):[r],d=P(s?ce(i,(e,n)=>Ide(e[0].moduleSpecifier,n[0].moduleSpecifier,_.moduleSpecifierComparer??h)):i,e=>Tde(e[0].moduleSpecifier)||void 0===e[0].moduleSpecifier?o(e):e);if(0===d.length)a.deleteNodes(e,r,{leadingTriviaOption:tpe.LeadingTriviaOption.Exclude,trailingTriviaOption:tpe.TrailingTriviaOption.Include},!0);else{const o={leadingTriviaOption:tpe.LeadingTriviaOption.Exclude,trailingTriviaOption:tpe.TrailingTriviaOption.Include,suffix:ZQ(t,n.options)};a.replaceNodeWithNodes(e,r[0],d,o);const i=a.nodeHasTrailingComment(e,r[0],o);a.deleteNodes(e,r.slice(1),{trailingTriviaOption:tpe.TrailingTriviaOption.Include},i)}}function y(n,t){const o=t.moduleSpecifierComparer??h,i=t.namedImportComparer??h,a=Bde({organizeImportsTypeOrder:t.typeOrder??"last"},i);g(n,n=>(d&&(n=function(e,n,t){const r=t.getTypeChecker(),o=t.getCompilerOptions(),i=r.getJsxNamespace(n),a=r.getJsxFragmentFactory(n),s=!!(2&n.transformFlags),l=[];for(const d of e){const{importClause:e,moduleSpecifier:t}=d;if(!e){l.push(d);continue}let{name:r,namedBindings:o}=e;if(r&&!c(r)&&(r=void 0),o)if(PN(o))c(o.name)||(o=void 0);else{const e=o.elements.filter(e=>c(e.name));e.length<o.elements.length&&(o=e.length?vR.updateNamedImports(o,e):void 0)}r||o?l.push(xde(d,r,o)):Cde(n,t)&&(n.isDeclarationFile?l.push(vR.createImportDeclaration(d.modifiers,void 0,t,void 0)):l.push(d))}return l;function c(e){return s&&(e.text===i||a&&e.text===a)&&p0(o.jsx)||kle.Core.isSymbolReferencedInFile(e,r,n)}}(n,e,r)),l&&(n=Ede(n,o,a,e)),s&&(n=ce(n,(e,n)=>Ude(e,n,o))),n))}function v(e,n){const t=Bde(o,n);g(e,e=>Ade(e,t))}}function yde(e){return{comparersToTest:"boolean"==typeof e.organizeImportsIgnoreCase?[Wde(e,e.organizeImportsIgnoreCase)]:[Wde(e,!0),Wde(e,!1)],typeOrdersToTest:e.organizeImportsTypeOrder?[e.organizeImportsTypeOrder]:["last","inline","first"]}}function vde(e,n){const t=vs(e.languageVersion,!1,e.languageVariant),r=[];let o=0;for(const i of n)r[o]&&bde(e,i,t)&&o++,r[o]||(r[o]=[]),r[o].push(i);return r}function bde(e,n,t){const r=n.getFullStart(),o=n.getStart();t.setText(e.text,r,o-r);let i=0;for(;t.getTokenStart()<o;){if(4===t.scan()&&(i++,i>=2))return!0}return!1}function Tde(e){return void 0!==e&&zu(e)?e.text:void 0}function Sde(e){let n;const t={defaultImports:[],namespaceImports:[],namedImports:[]},r={defaultImports:[],namespaceImports:[],namedImports:[]};for(const o of e){if(void 0===o.importClause){n=n||o;continue}const e=o.importClause.isTypeOnly?t:r,{name:i,namedBindings:a}=o.importClause;i&&e.defaultImports.push(o),a&&(PN(a)?e.namespaceImports.push(o):e.namedImports.push(o))}return{importWithoutClause:n,typeOnlyImports:t,regularImports:r}}function Ede(e,n,t,r){if(0===e.length)return e;const o=Be(e,e=>{if(e.attributes){let n=e.attributes.token+" ";for(const t of ce(e.attributes.elements,(e,n)=>xn(e.name.text,n.name.text)))n+=t.name.text+":",n+=zu(t.value)?`"${t.value.text}"`:t.value.getText()+" ";return n}return""}),i=[];for(const a in o){const e=o[a],{importWithoutClause:l,typeOnlyImports:c,regularImports:d}=Sde(e);l&&i.push(l);for(const o of[d,c]){const e=o===c,{defaultImports:a,namespaceImports:l,namedImports:d}=o;if(!e&&1===a.length&&1===l.length&&0===d.length){const e=a[0];i.push(xde(e,e.importClause.name,l[0].importClause.namedBindings));continue}const u=ce(l,(e,t)=>n(e.importClause.namedBindings.name.text,t.importClause.namedBindings.name.text));for(const n of u)i.push(xde(n,void 0,n.importClause.namedBindings));const p=fe(a),f=fe(d),m=p??f;if(!m)continue;let h;const _=[];if(1===a.length)h=a[0].importClause.name;else for(const n of a)_.push(vR.createImportSpecifier(!1,vR.createIdentifier("default"),n.importClause.name));_.push(...Nde(d));const g=vR.createNodeArray(ce(_,t),null==f?void 0:f.importClause.namedBindings.elements.hasTrailingComma),y=0===g.length?h?void 0:vR.createNamedImports(s):f?vR.updateNamedImports(f.importClause.namedBindings,g):vR.createNamedImports(g);r&&y&&(null==f?void 0:f.importClause.namedBindings)&&!Vb(f.importClause.namedBindings,r)&&xR(y,2),e&&h&&y?(i.push(xde(m,h,void 0)),i.push(xde(f??m,void 0,y))):i.push(xde(m,h,y))}}return i}function Ade(e,n){if(0===e.length)return e;const{exportWithoutClause:t,namedExports:r,typeOnlyExports:o}=function(e){let n;const t=[],r=[];for(const o of e)void 0===o.exportClause?n=n||o:o.isTypeOnly?r.push(o):t.push(o);return{exportWithoutClause:n,namedExports:t,typeOnlyExports:r}}(e),i=[];t&&i.push(t);for(const a of[r,o]){if(0===a.length)continue;const e=[];e.push(...P(a,e=>e.exportClause&&WN(e.exportClause)?e.exportClause.elements:s));const t=ce(e,n),r=a[0];i.push(vR.updateExportDeclaration(r,r.modifiers,r.isTypeOnly,r.exportClause&&(WN(r.exportClause)?vR.updateNamedExports(r.exportClause,t):vR.updateNamespaceExport(r.exportClause,r.exportClause.name)),r.moduleSpecifier,r.attributes))}return i}function xde(e,n,t){return vR.updateImportDeclaration(e,e.modifiers,vR.updateImportClause(e.importClause,e.importClause.phaseModifier,n,t),e.moduleSpecifier,e.attributes)}function Rde(e,n,t,r){switch(null==r?void 0:r.organizeImportsTypeOrder){case"first":return kn(n.isTypeOnly,e.isTypeOnly)||t(e.name.text,n.name.text);case"inline":return t(e.name.text,n.name.text);default:return kn(e.isTypeOnly,n.isTypeOnly)||t(e.name.text,n.name.text)}}function Ide(e,n,t){const r=void 0===e?void 0:Tde(e),o=void 0===n?void 0:Tde(n);return kn(void 0===r,void 0===o)||kn(Ds(r),Ds(o))||t(r,o)}function Dde(e){var n;switch(e.kind){case 272:return null==(n=en(e.moduleReference,UN))?void 0:n.expression;case 273:return e.moduleSpecifier;case 244:return e.declarationList.declarations[0].initializer.arguments[0]}}function Cde(e,n){const t=qI(n)&&n.text;return Qe(t)&&U(e.moduleAugmentations,e=>qI(e)&&e.text===t)}function Nde(e){return P(e,e=>D(function(e){var n;return(null==(n=e.importClause)?void 0:n.namedBindings)&&kN(e.importClause.namedBindings)?e.importClause.namedBindings.elements:void 0}(e),e=>e.name&&e.propertyName&&Yp(e.name)===Yp(e.propertyName)?vR.updateImportSpecifier(e,e.isTypeOnly,void 0,e.name):e))}function Mde(e,n){const t=[];return e.forEach(e=>{t.push(e.map(e=>Tde(Dde(e))||""))}),kde(t,n)}function Pde(e,n,t){let r=!1;const o=e.filter(e=>{var n,t;const o=null==(t=en(null==(n=e.importClause)?void 0:n.namedBindings,kN))?void 0:t.elements;return!!(null==o?void 0:o.length)&&(!r&&o.some(e=>e.isTypeOnly)&&o.some(e=>!e.isTypeOnly)&&(r=!0),!0)});if(0===o.length)return;const i=o.map(e=>{var n,t;return null==(t=en(null==(n=e.importClause)?void 0:n.namedBindings,kN))?void 0:t.elements}).filter(e=>void 0!==e);if(!r||0===t.length){const e=kde(i.map(e=>e.map(e=>e.name.text)),n);return{namedImportComparer:e.comparer,typeOrder:1===t.length?t[0]:void 0,isSorted:e.isSorted}}const a={first:1/0,last:1/0,inline:1/0},s={first:n[0],last:n[0],inline:n[0]};for(const l of n){const e={first:0,last:0,inline:0};for(const n of i)for(const r of t)e[r]=(e[r]??0)+Lde(n,(e,n)=>Rde(e,n,l,{organizeImportsTypeOrder:r}));for(const n of t){const t=n;e[t]<a[t]&&(a[t]=e[t],s[t]=l)}}e:for(const l of t){const e=l;for(const n of t){if(a[n]<a[e])continue e}return{namedImportComparer:s[e],typeOrder:e,isSorted:0===a[e]}}return{namedImportComparer:s.last,typeOrder:"last",isSorted:0===a.last}}function Lde(e,n){let t=0;for(let r=0;r<e.length-1;r++)n(e[r],e[r+1])>0&&t++;return t}function kde(e,n){let t,r=1/0;for(const o of n){let n=0;for(const t of e){if(t.length<=1)continue;n+=Lde(t,o)}n<r&&(r=n,t=o)}return{comparer:t??n[0],isSorted:0===r}}function wde(e){var n;switch(e.kind){case 273:return e.importClause?e.importClause.isTypeOnly?1:275===(null==(n=e.importClause.namedBindings)?void 0:n.kind)?2:e.importClause.name?3:4:0;case 272:return 5;case 244:return 6}}function Ode(e){return e?An:xn}function Fde(e,n){const t=function(e){let n=e.organizeImportsLocale;"auto"===n&&(n=Nn());void 0===n&&(n="en");const t=Intl.Collator.supportedLocalesOf(n),r=t.length?t[0]:"en";return r}(n),r=n.organizeImportsCaseFirst??!1,o=n.organizeImportsNumericCollation??!1,i=n.organizeImportsAccentCollation??!0,a=e?i?"accent":"base":i?"variant":"case";return new Intl.Collator(t,{usage:"sort",caseFirst:r||"false",sensitivity:a,numeric:o}).compare}function Wde(e,n){return"unicode"===(e.organizeImportsCollation??"ordinal")?Fde(n,e):Ode(n)}function zde(e,n){return Mde([e],yde(n).comparersToTest)}function Bde(e,n){const t=n??Ode(!!e.organizeImportsIgnoreCase);return(n,r)=>Rde(n,r,t,e)}function Gde(e,n,t){const{comparersToTest:r,typeOrdersToTest:o}=yde(n),i=Pde([e],r,o);let a,s=Bde(n,r[0]);if("boolean"!=typeof n.organizeImportsIgnoreCase||!n.organizeImportsTypeOrder)if(i){const{namedImportComparer:e,typeOrder:n,isSorted:t}=i;a=t,s=Bde({organizeImportsTypeOrder:n},e)}else if(t){const e=Pde(t.statements.filter(xN),r,o);if(e){const{namedImportComparer:n,typeOrder:t,isSorted:r}=e;a=r,s=Bde({organizeImportsTypeOrder:t},n)}}return{specifierComparer:s,isSorted:a}}function Vde(e,n,t){const r=Ee(e,n,sn,(e,n)=>Ude(e,n,t));return r<0?~r:r}function jde(e,n,t){const r=Ee(e,n,sn,t);return r<0?~r:r}function Ude(e,n,t){return Ide(Dde(e),Dde(n),t)||function(e,n){return vn(wde(e),wde(n))}(e,n)}function Hde(e,n,t,r){const o=Ode(n);return Ede(e,o,Bde({organizeImportsTypeOrder:null==r?void 0:r.organizeImportsTypeOrder},o),t)}function Kde(e,n,t){return Ade(e,(e,r)=>Rde(e,r,Ode(n),{organizeImportsTypeOrder:(null==t?void 0:t.organizeImportsTypeOrder)??"last"}))}function qde(e,n,t){return Ide(e,n,Ode(!!t))}t(_de,{compareImportsOrRequireStatements:()=>Ude,compareModuleSpecifiers:()=>qde,getImportDeclarationInsertionIndex:()=>Vde,getImportSpecifierInsertionIndex:()=>jde,getNamedImportSpecifierComparerWithDetection:()=>Gde,getOrganizeImportsStringComparerWithDetection:()=>zde,organizeImports:()=>gde,testCoalesceExports:()=>Kde,testCoalesceImports:()=>Hde});var Jde={};function Xde(e,n){const t=[];return function(e,n,t){let r=40,o=0;const i=e.statements,a=i.length;for(;o<a;){for(;o<a&&!If(i[o]);)s(i[o]),o++;if(o===a)break;const n=o;for(;o<a&&If(i[o]);)s(i[o]),o++;const r=o-1;r!==n&&t.push(eue(qY(i[n],102,e).getStart(e),i[r].getEnd(),"imports"))}function s(o){var i;if(0===r)return;n.throwIfCancellationRequested(),(fu(o)||XC(o)||aN(o)||zd(o)||1===o.kind)&&Zde(o,e,n,t),ad(o)&&MC(o.parent)&&_C(o.parent.left)&&Zde(o.parent.left,e,n,t),(JC(o)||TN(o))&&Qde(o.statements.end,e,n,t),(md(o)||gN(o))&&Qde(o.members.end,e,n,t);const a=function(e,n){switch(e.kind){case 242:if(ad(e.parent))return function(e,n,t){const r=function(e,n,t){if(Xb(e.parameters,t)){const n=qY(e,21,t);if(n)return n}return qY(n,19,t)}(e,n,t),o=qY(n,20,t);return r&&o&&nue(r,o,e,t,220!==e.kind)}(e.parent,e,n);switch(e.parent.kind){case 247:case 250:case 251:case 249:case 246:case 248:case 255:case 300:return d(e.parent);case 259:const t=e.parent;if(t.tryBlock===e)return d(e.parent);if(t.finallyBlock===e){const e=qY(t,98,n);if(e)return d(e)}default:return tue(j$(e,n),"code")}case 269:return d(e.parent);case 264:case 232:case 265:case 267:case 270:case 188:case 207:return d(e);case 190:return d(e,!1,!JD(e.parent),23);case 297:case 298:return u(e.statements);case 211:return c(e);case 210:return c(e,23);case 285:return i(e);case 289:return a(e);case 286:case 287:return s(e.attributes);case 229:case 15:return l(e);case 208:return d(e,!1,!fC(e.parent),23);case 220:return o(e);case 214:return r(e);case 218:return p(e);case 276:case 280:case 301:return t(e)}function t(e){if(!e.elements.length)return;const t=qY(e,19,n),r=qY(e,20,n);return t&&r&&!Yb(t.pos,r.pos,n)?nue(t,r,e,n,!1,!1):void 0}function r(e){if(!e.arguments.length)return;const t=qY(e,21,n),r=qY(e,22,n);return t&&r&&!Yb(t.pos,r.pos,n)?nue(t,r,e,n,!1,!0):void 0}function o(e){if(JC(e.body)||SC(e.body)||Yb(e.body.getFullStart(),e.body.getEnd(),n))return;return tue(Xs(e.body.getFullStart(),e.body.getEnd()),"code",j$(e))}function i(e){const t=Xs(e.openingElement.getStart(n),e.closingElement.getEnd()),r=e.openingElement.tagName.getText(n);return tue(t,"code",t,!1,"<"+r+">...</"+r+">")}function a(e){const t=Xs(e.openingFragment.getStart(n),e.closingFragment.getEnd());return tue(t,"code",t,!1,"<>...</>")}function s(e){if(0!==e.properties.length)return eue(e.getStart(n),e.getEnd(),"code")}function l(e){if(15!==e.kind||0!==e.text.length)return eue(e.getStart(n),e.getEnd(),"code")}function c(e,n=19){return d(e,!1,!mC(e.parent)&&!yC(e.parent),n)}function d(t,r=!1,o=!0,i=19,a=(19===i?20:24)){const s=qY(e,i,n),l=qY(e,a,n);return s&&l&&nue(s,l,t,n,r,o)}function u(e){return e.length?tue(K$(e),"code"):void 0}function p(e){if(Yb(e.getStart(),e.getEnd(),n))return;return tue(Xs(e.getStart(),e.getEnd()),"code",j$(e))}}(o,e);a&&t.push(a),r--,yC(o)?(r++,s(o.expression),r--,o.arguments.forEach(s),null==(i=o.typeArguments)||i.forEach(s)):QC(o)&&o.elseStatement&&QC(o.elseStatement)?(s(o.expression),s(o.thenStatement),r++,s(o.elseStatement),r--):o.forEachChild(s),r++}s(e.endOfFileToken)}(e,n,t),function(e,n){const t=[],r=e.getLineStarts();for(const o of r){const r=e.getLineEndOfPosition(o),i=$de(e.text.substring(o,r));if(i&&!R$(e,o))if(i.isStart){const n=Xs(e.text.indexOf("//",o),r);t.push(tue(n,"region",n,!1,i.name||"#region"))}else{const e=t.pop();e&&(e.textSpan.length=r-e.textSpan.start,e.hintSpan.length=r-e.textSpan.start,n.push(e))}}}(e,t),t.sort((e,n)=>e.textSpan.start-n.textSpan.start),t}t(Jde,{collectElements:()=>Xde});var Yde=/^#(end)?region(.*)\r?$/;function $de(e){if(!Xn(e=e.trimStart(),"//"))return null;e=e.slice(2).trim();const n=Yde.exec(e);return n?{isStart:!n[1],name:n[2].trim()}:void 0}function Qde(e,n,t,r){const o=fs(n.text,e);if(!o)return;let i=-1,a=-1,s=0;const l=n.getFullText();for(const{kind:d,pos:u,end:p}of o)switch(t.throwIfCancellationRequested(),d){case 2:if($de(l.slice(u,p))){c(),s=0;break}0===s&&(i=u),a=p,s++;break;case 3:c(),r.push(eue(u,p,"comment")),s=0;break;default:dt.assertNever(d)}function c(){s>1&&r.push(eue(i,a,"comment"))}c()}function Zde(e,n,t,r){JI(e)||Qde(e.pos,n,t,r)}function eue(e,n,t){return tue(Xs(e,n),t)}function nue(e,n,t,r,o=!1,i=!0){return tue(Xs(i?e.getFullStart():e.getStart(r),n.getEnd()),"code",j$(t,r),o)}function tue(e,n,t=e,r=!1,o="..."){return{textSpan:e,kind:n,hintSpan:t,bannerText:o,autoCollapse:r}}var rue={};function oue(e,n,t,r){const o=o$(i$(n,t));if(cue(o)){const t=function(e,n,t,r,o){const i=n.getSymbolAtLocation(e);if(!i){if(zu(e)){const r=QY(e,n);if(r&&(128&r.flags||1048576&r.flags&&g(r.types,e=>!!(128&e.flags))))return aue(e.text,e.text,"string","",e,t)}else if(TY(e)){const n=Zp(e);return aue(n,n,"label","",e,t)}return}const{declarations:a}=i;if(!a||0===a.length)return;if(a.some(e=>function(e,n){const t=n.getSourceFile();return e.isSourceFileDefaultLibrary(t)&&xi(t.fileName,".d.ts")}(r,e)))return sue(fa.You_cannot_rename_elements_that_are_defined_in_the_standard_TypeScript_library);if(dD(e)&&"default"===e.escapedText&&i.parent&&1536&i.parent.flags)return;if(zu(e)&&E_(e))return o.allowRenameOfImportPath?function(e,n,t){if(!Ds(e.text))return sue(fa.You_cannot_rename_a_module_via_a_global_import);const r=t.declarations&&y(t.declarations,uM);if(!r)return;const o=Fn(e.text,"/index")||Fn(e.text,"/index.js")?void 0:zn(qE(r.fileName),"/index"),i=void 0===o?r.fileName:o,a=void 0===o?"module":"directory",s=e.text.lastIndexOf("/")+1,l=Js(e.getStart(n)+1+s,e.text.length-s);return{canRename:!0,fileToRename:i,kind:a,displayName:i,fullDisplayName:e.text,kindModifiers:"",triggerSpan:l}}(e,t,i):void 0;const s=function(e,n,t,r){if(!r.providePrefixAndSuffixTextForRename&&2097152&n.flags){const e=n.declarations&&y(n.declarations,e=>wN(e));e&&!e.propertyName&&(n=t.getAliasedSymbol(n))}const{declarations:o}=n;if(!o)return;const i=iue(e.path);if(void 0===i)return U(o,e=>qZ(e.getSourceFile().path))?fa.You_cannot_rename_elements_that_are_defined_in_a_node_modules_folder:void 0;for(const a of o){const e=iue(a.getSourceFile().path);if(e){const n=Math.min(i.length,e.length);for(let t=0;t<=n;t++)if(0!==xn(i[t],e[t]))return fa.You_cannot_rename_elements_that_are_defined_in_another_node_modules_folder}}return}(t,i,n,o);if(s)return sue(s);const l=que.getSymbolKind(n,i,e),c=iZ(e)||zg(e)&&168===e.parent.kind?Py(Hg(e)):void 0,d=c||n.symbolToString(i),u=c||n.getFullyQualifiedName(i);return aue(d,u,l,que.getSymbolModifiers(n,i),e,t)}(o,e.getTypeChecker(),n,e,r);if(t)return t}return sue(fa.You_cannot_rename_this_element)}function iue(e){const n=wi(e),t=n.lastIndexOf("node_modules");if(-1!==t)return n.slice(0,t+2)}function aue(e,n,t,r,o,i){return{canRename:!0,fileToRename:void 0,kind:t,displayName:e,fullDisplayName:n,kindModifiers:r,triggerSpan:lue(o,i)}}function sue(e){return{canRename:!1,localizedErrorMessage:JT(e)}}function lue(e,n){let t=e.getStart(n),r=e.getWidth(n);return zu(e)&&(t+=1,r-=2),Js(t,r)}function cue(e){switch(e.kind){case 80:case 81:case 11:case 15:case 110:return!0;case 9:return DY(e);default:return!1}}t(rue,{getRenameInfo:()=>oue,nodeIsEligibleForRename:()=>cue});var due={};function uue(e,n,t,r,o){const i=e.getTypeChecker(),a=d$(n,t);if(!a)return;const s=!!r&&"characterTyped"===r.kind;if(s&&(_$(n,t,a)||R$(n,t)))return;const l=!!r&&"invoked"===r.kind,c=function(e,n,t,r,o){for(let i=e;!uM(i)&&(o||!JC(i));i=i.parent){dt.assert(eT(i.parent,i),"Not a subspan",()=>`Child: ${dt.formatSyntaxKind(i.kind)}, parent: ${dt.formatSyntaxKind(i.parent.kind)}`);const e=_ue(i,n,t,r);if(e)return e}return}(a,t,n,i,l);if(!c)return;o.throwIfCancellationRequested();const d=function({invocation:e,argumentCount:n},t,r,o,i){switch(e.kind){case 0:{if(i&&!function(e,n,t){if(!zd(n))return!1;const r=n.getChildren(t);switch(e.kind){case 21:return S(r,e);case 28:{const n=JY(e);return!!n&&S(r,n)}case 30:return pue(e,t,n.expression);default:return!1}}(o,e.node,r))return;const a=[],s=t.getResolvedSignatureForSignatureHelp(e.node,a,n);return 0===a.length?void 0:{kind:0,candidates:a,resolvedSignature:s}}case 1:{const{called:a}=e;if(i&&!pue(o,r,dD(a)?a.parent:a))return;const s=A$(a,n,t);if(0!==s.length)return{kind:0,candidates:s,resolvedSignature:he(s)};const l=t.getSymbolAtLocation(a);return l&&{kind:1,symbol:l}}case 2:return{kind:0,candidates:[e.signature],resolvedSignature:e.signature};default:return dt.assertNever(e)}}(c,i,n,a,s);return o.throwIfCancellationRequested(),d?i.runWithCancellationToken(o,e=>0===d.kind?Cue(d.candidates,d.resolvedSignature,c,n,e):function(e,{argumentCount:n,argumentsSpan:t,invocation:r,argumentIndex:o},i,a){const s=a.getLocalTypeParametersOfClassOrInterfaceOrTypeAlias(e);if(!s)return;const l=[Nue(e,s,a,Iue(r),i)];return{items:l,applicableSpan:t,selectedItemIndex:0,argumentIndex:o,argumentCount:n}}(d.symbol,c,n,e)):Ph(n)?function(e,n,t){if(2===e.invocation.kind)return;const r=Rue(e.invocation),o=_C(r)?r.name.text:void 0,i=n.getTypeChecker();return void 0===o?void 0:p(n.getSourceFiles(),n=>p(n.getNamedDeclarations().get(o),r=>{const o=r.symbol&&i.getTypeOfSymbolAtLocation(r.symbol,r),a=o&&o.getCallSignatures();if(a&&a.length)return i.runWithCancellationToken(t,t=>Cue(a,a[0],e,n,t,!0))}))}(c,e,o):void 0}function pue(e,n,t){const r=e.getFullStart();let o=e.parent;for(;o;){const e=p$(r,n,o,!0);if(e)return eT(t,e);o=o.parent}return dt.fail("Could not find preceding token")}function fue(e,n,t,r){const o=hue(e,n,t,r);return!o||o.isTypeParameterList||0!==o.invocation.kind?void 0:{invocation:o.invocation.node,argumentCount:o.argumentCount,argumentIndex:o.argumentIndex}}function mue(e,n,t,r){const o=function(e,n,t){if(30===e.kind||21===e.kind)return{list:xue(e.parent,e,n),argumentIndex:0};{const n=JY(e);return n&&{list:n,argumentIndex:Tue(t,n,e)}}}(e,t,r);if(!o)return;const{list:i,argumentIndex:a}=o,s=function(e,n){return Sue(e,n,void 0)}(r,i),l=function(e,n){const t=e.getFullStart(),r=es(n.text,e.getEnd(),!1);return Js(t,r-t)}(i,t);return{list:i,argumentIndex:a,argumentCount:s,argumentsSpan:l}}function hue(e,n,t,r){const{parent:o}=e;if(zd(o)){const n=o,i=mue(e,0,t,r);if(!i)return;const{list:a,argumentIndex:s,argumentCount:l,argumentsSpan:c}=i;return{isTypeParameterList:!!o.typeArguments&&o.typeArguments.pos===a.pos,invocation:{kind:0,node:n},argumentsSpan:c,argumentIndex:s,argumentCount:l}}if(YI(e)&&bC(o))return w$(e,n,t)?Eue(o,0,t):void 0;if($I(e)&&216===o.parent.kind){const r=o,i=r.parent;dt.assert(229===r.kind);return Eue(i,w$(e,n,t)?0:1,t)}if(KC(o)&&bC(o.parent.parent)){const r=o,i=o.parent.parent;if(ZI(e)&&!w$(e,n,t))return;const a=function(e,n,t,r){if(dt.assert(t>=n.getStart(),"Assumed 'position' could not occur before node."),zc(n))return w$(n,t,r)?0:e+2;return e+1}(r.parent.templateSpans.indexOf(r),e,n,t);return Eue(i,a,t)}if(Eu(o)){const e=o.attributes.pos;return{isTypeParameterList:!1,invocation:{kind:0,node:o},argumentsSpan:Js(e,es(t.text,o.attributes.end,!1)-e),argumentIndex:0,argumentCount:1}}{const n=x$(e,t);if(n){const{called:r,nTypeArguments:o}=n;return{isTypeParameterList:!0,invocation:{kind:1,called:r},argumentsSpan:Xs(r.getStart(t),e.end),argumentIndex:o,argumentCount:o+1}}return}}function _ue(e,n,t,r){return function(e,n,t,r){const o=function(e){switch(e.kind){case 21:case 28:return e;default:return ml(e.parent,e=>!!DD(e)||!(fC(e)||uC(e)||pC(e))&&"quit")}}(e);if(void 0===o)return;const i=function(e,n,t,r){const{parent:o}=e;switch(o.kind){case 218:case 175:case 219:case 220:const t=mue(e,0,n,r);if(!t)return;const{argumentIndex:i,argumentCount:a,argumentsSpan:s}=t,l=LD(o)?r.getContextualTypeForObjectLiteralElement(o):r.getContextualType(o);return l&&{contextualType:l,argumentIndex:i,argumentCount:a,argumentsSpan:s};case 227:{const n=gue(o),t=r.getContextualType(n),i=21===e.kind?0:yue(o)-1,a=yue(n);return t&&{contextualType:t,argumentIndex:i,argumentCount:a,argumentsSpan:j$(o)}}default:return}}(o,t,0,r);if(void 0===i)return;const{contextualType:a,argumentIndex:s,argumentCount:l,argumentsSpan:c}=i,d=a.getNonNullableType(),u=d.symbol;if(void 0===u)return;const p=ge(d.getCallSignatures());if(void 0===p)return;return{isTypeParameterList:!1,invocation:{kind:2,signature:p,node:e,symbol:vue(u)},argumentsSpan:c,argumentIndex:s,argumentCount:l}}(e,0,t,r)||hue(e,n,t,r)}function gue(e){return MC(e.parent)?gue(e.parent):e}function yue(e){return MC(e.left)?yue(e.left)+1:2}function vue(e){return"__type"===e.name&&p(e.declarations,e=>{var n;return jD(e)?null==(n=en(e.parent,cu))?void 0:n.symbol:void 0})||e}function bue(e,n){const t=n.getTypeAtLocation(e.expression);if(n.isTupleType(t)){const{elementFlags:e,fixedLength:n}=t.target;if(0===n)return 0;const r=b(e,e=>!(1&e));return r<0?n:r}return 0}function Tue(e,n,t){return Sue(e,n,t)}function Sue(e,n,t){const r=n.getChildren();let o=0,i=!1;for(const a of r){if(t&&a===t)return i||28!==a.kind||o++,o;wC(a)?(o+=bue(a,e),i=!0):28===a.kind?i?i=!1:o++:(o++,i=!0)}return t?o:r.length&&28===ye(r).kind?o+1:o}function Eue(e,n,t){const r=YI(e.template)?1:e.template.templateSpans.length+1;return 0!==n&&dt.assertLessThan(n,r),{isTypeParameterList:!1,invocation:{kind:0,node:e},argumentsSpan:Aue(e,t),argumentIndex:n,argumentCount:r}}function Aue(e,n){const t=e.template,r=t.getStart();let o=t.getEnd();if(229===t.kind){0===ye(t.templateSpans).literal.getFullWidth()&&(o=es(n.text,o,!1))}return Js(r,o-r)}function xue(e,n,t){const r=e.getChildren(t),o=r.indexOf(n);return dt.assert(o>=0&&r.length>o+1),r[o+1]}function Rue(e){return 0===e.kind?mh(e.node):e.called}function Iue(e){return 0===e.kind?e.node:1===e.kind?e.called:e.node}t(due,{getArgumentInfoForCompletions:()=>fue,getSignatureHelpItems:()=>uue});var Due=70246400;function Cue(e,n,{isTypeParameterList:t,argumentCount:r,argumentsSpan:o,invocation:i,argumentIndex:a},l,c,d){var u;const p=Iue(i),f=2===i.kind?i.symbol:c.getSymbolAtLocation(Rue(i))||d&&(null==(u=n.declaration)?void 0:u.symbol),m=f?rZ(c,f,d?l:void 0,void 0):s,h=D(e,e=>function(e,n,t,r,o,i){const a=(t?Lue:kue)(e,r,o,i);return D(a,({isVariadic:t,parameters:i,prefix:a,suffix:s})=>{const l=[...n,...a],c=[...s,...Pue(e,o,r)],d=e.getDocumentationComment(r),u=e.getJsDocTags();return{isVariadic:t,prefixDisplayParts:l,suffixDisplayParts:c,separatorDisplayParts:Mue,parameters:i,documentation:d,tags:u}})}(e,m,t,c,p,l));let _=0,g=0;for(let s=0;s<h.length;s++){const t=h[s];if(e[s]===n&&(_=g,t.length>1)){let e=0;for(const n of t){if(n.isVariadic||n.parameters.length>=r){_=g+e;break}e++}}g+=t.length}dt.assert(-1!==_);const y={items:L(h,sn),applicableSpan:o,selectedItemIndex:_,argumentIndex:a,argumentCount:r},v=y.items[_];if(v.isVariadic){const e=b(v.parameters,e=>!!e.isRest);-1<e&&e<v.parameters.length-1?y.argumentIndex=v.parameters.length:y.argumentIndex=Math.min(y.argumentIndex,v.parameters.length-1)}return y}function Nue(e,n,t,r,o){const i=rZ(t,e),a=Dj(),s=n.map(e=>wue(e,t,r,o,a)),l=e.getDocumentationComment(t),c=e.getJsDocTags(t);return{isVariadic:!1,prefixDisplayParts:[...i,GQ(30)],suffixDisplayParts:[GQ(32)],separatorDisplayParts:Mue,parameters:s,documentation:l,tags:c}}var Mue=[GQ(28),zQ()];function Pue(e,n,t){return nZ(r=>{r.writePunctuation(":"),r.writeSpace(" ");const o=t.getTypePredicateOfSignature(e);o?t.writeTypePredicate(o,n,void 0,r):t.writeType(t.getReturnTypeOfSignature(e),n,void 0,r)})}function Lue(e,n,t,r){const o=(e.target||e).typeParameters,i=Dj(),a=(o||s).map(e=>wue(e,n,t,r,i)),l=e.thisParameter?[n.symbolToParameterDeclaration(e.thisParameter,t,Due)]:[];return n.getExpandedParameters(e).map(e=>{const o=vR.createNodeArray([...l,...D(e,e=>n.symbolToParameterDeclaration(e,t,Due))]),s=nZ(e=>{i.writeList(2576,o,r,e)});return{isVariadic:!1,parameters:a,prefix:[GQ(30)],suffix:[GQ(32),...s]}})}function kue(e,n,t,r){const o=Dj(),i=nZ(i=>{if(e.typeParameters&&e.typeParameters.length){const a=vR.createNodeArray(e.typeParameters.map(e=>n.typeParameterToDeclaration(e,t,Due)));o.writeList(53776,a,r,i)}}),a=n.getExpandedParameters(e),s=n.hasEffectiveRestParameter(e)?1===a.length?e=>!0:e=>{var n;return!!(e.length&&32768&(null==(n=en(e[e.length-1],Zu))?void 0:n.links.checkFlags))}:e=>!1;return a.map(e=>({isVariadic:s(e),parameters:e.map(e=>function(e,n,t,r,o){const i=nZ(i=>{const a=n.symbolToParameterDeclaration(e,t,Due);o.writeNode(4,a,r,i)}),a=n.isOptionalParameter(e.valueDeclaration),s=Zu(e)&&!!(32768&e.links.checkFlags);return{name:e.name,documentation:e.getDocumentationComment(n),displayParts:i,isOptional:a,isRest:s}}(e,n,t,r,o)),prefix:[...i,GQ(21)],suffix:[GQ(22)]}))}function wue(e,n,t,r,o){const i=nZ(i=>{const a=n.typeParameterToDeclaration(e,t,Due);o.writeNode(4,a,r,i)});return{name:e.symbol.name,documentation:e.symbol.getDocumentationComment(n),displayParts:i,isOptional:!1,isRest:!1}}var Oue={};function Fue(e,n){var t,r;let o={textSpan:Xs(n.getFullStart(),n.getEnd())},i=n;e:for(;;){const o=Bue(i);if(!o.length)break;for(let l=0;l<o.length;l++){const c=o[l-1],d=o[l],u=o[l+1];if(Up(d,n,!0)>e)break e;const p=ve(ms(n.text,d.end));if(p&&2===p.kind&&s(p.pos,p.end),Wue(n,e,d)){if(tu(d)&&ld(i)&&!Yb(d.getStart(n),d.getEnd(),n)&&a(d.getStart(n),d.getEnd()),JC(d)||KC(d)||$I(d)||ZI(d)||c&&$I(c)||mN(d)&&XC(i)||nP(d)&&mN(i)||fN(d)&&nP(i)&&1===o.length||fM(d)||CM(d)||DM(d)){i=d;break}if(KC(i)&&u&&Bc(u)){a(d.getFullStart()-2,u.getStart()+1)}const e=nP(d)&&Uue(c)&&Hue(u)&&!Yb(c.getStart(),u.getStart(),n);let s=e?c.getEnd():d.getStart();const l=e?u.getStart():Kue(n,d);if(Mu(d)&&(null==(t=d.jsDoc)?void 0:t.length)&&a(he(d.jsDoc).getStart(),l),nP(d)){const e=d.getChildren()[0];e&&Mu(e)&&(null==(r=e.jsDoc)?void 0:r.length)&&e.getStart()!==d.pos&&(s=Math.min(s,he(e.jsDoc).getStart()))}a(s,l),(qI(d)||Bd(d))&&a(s+1,l-1),i=d;break}if(l===o.length-1)break e}}return o;function a(n,t){if(n!==t){const r=Xs(n,t);(!o||!IQ(r,o.textSpan)&&Us(r,e))&&(o={textSpan:r,...o&&{parent:o}})}}function s(e,t){a(e,t);let r=e;for(;47===n.text.charCodeAt(r);)r++;a(r,t)}}function Wue(e,n,t){if(dt.assert(t.pos<=n),n<t.end)return!0;return t.getEnd()===n&&i$(e,n).pos<t.end}t(Oue,{getSmartSelectionRange:()=>Fue});var zue=et(xN,AN);function Bue(e){var n;if(uM(e))return Gue(e.getChildAt(0).getChildren(),zue);if(aC(e)){const[n,...t]=e.getChildren(),r=dt.checkDefined(t.pop());dt.assertEqual(n.kind,19),dt.assertEqual(r.kind,20);const o=Gue(t,n=>n===e.readonlyToken||148===n.kind||n===e.questionToken||58===n.kind);return[n,jue(Vue(Gue(o,({kind:e})=>23===e||169===e||24===e),({kind:e})=>59===e)),r]}if(ND(e)){const t=Gue(e.getChildren(),n=>n===e.name||S(e.modifiers,n)),r=321===(null==(n=t[0])?void 0:n.kind)?t[0]:void 0,o=Vue(r?t.slice(1):t,({kind:e})=>59===e);return r?[r,jue(o)]:o}if(DD(e)){const n=Gue(e.getChildren(),n=>n===e.dotDotDotToken||n===e.name);return Vue(Gue(n,t=>t===n[0]||t===e.questionToken),({kind:e})=>64===e)}return fC(e)?Vue(e.getChildren(),({kind:e})=>64===e):e.getChildren()}function Gue(e,n){const t=[];let r;for(const o of e)n(o)?(r=r||[],r.push(o)):(r&&(t.push(jue(r)),r=void 0),t.push(o));return r&&t.push(jue(r)),t}function Vue(e,n,t=!0){if(e.length<2)return e;const r=b(e,n);if(-1===r)return e;const o=e.slice(0,r),i=e[r],a=ye(e),s=t&&27===a.kind,l=e.slice(r+1,s?e.length-1:void 0),c=ne([o.length?jue(o):void 0,i,l.length?jue(l):void 0]);return s?c.concat(a):c}function jue(e){return dt.assertGreaterThanOrEqual(e.length,1),CA(PL.createSyntaxList(e),e[0].pos,ye(e).end)}function Uue(e){const n=e&&e.kind;return 19===n||23===n||21===n||287===n}function Hue(e){const n=e&&e.kind;return 20===n||24===n||22===n||288===n}function Kue(e,n){switch(n.kind){case 342:case 339:case 349:case 347:case 344:return e.getLineEndOfPosition(n.getStart());default:return n.getEnd()}}var que={};t(que,{getSymbolDisplayPartsDocumentationAndSymbolKind:()=>epe,getSymbolKind:()=>Xue,getSymbolModifiers:()=>Que});var Jue=70246400;function Xue(e,n,t){const r=Yue(e,n,t);if(""!==r)return r;const o=dT(n);return 32&o?Yu(n,232)?"local class":"class":384&o?"enum":524288&o?"type":64&o?"interface":262144&o?"type parameter":8&o?"enum member":2097152&o?"alias":1536&o?"module":r}function Yue(e,n,t){const r=e.getRootSymbols(n);if(1===r.length&&8192&he(r).flags&&0!==e.getTypeOfSymbolAtLocation(n,t).getNonNullableType().getCallSignatures().length)return"method";if(e.isUndefinedSymbol(n))return"var";if(e.isArgumentsSymbol(n))return"local var";if(110===t.kind&&qd(t)||mv(t))return"parameter";const o=dT(n);if(3&o)return wQ(n)?"parameter":n.valueDeclaration&&cm(n.valueDeclaration)?"const":n.valueDeclaration&&lm(n.valueDeclaration)?"using":n.valueDeclaration&&sm(n.valueDeclaration)?"await using":d(n.declarations,um)?"let":npe(n)?"local var":"var";if(16&o)return npe(n)?"local function":"function";if(32768&o)return"getter";if(65536&o)return"setter";if(8192&o)return"method";if(16384&o)return"constructor";if(131072&o)return"index";if(4&o){if(33554432&o&&6&n.links.checkFlags){const r=d(e.getRootSymbols(n),e=>{if(98311&e.getFlags())return"property"});if(!r){return e.getTypeOfSymbolAtLocation(n,t).getCallSignatures().length?"method":"property"}return r}return"property"}return""}function $ue(e){if(e.declarations&&e.declarations.length){const[n,...t]=e.declarations,r=C$(n,c(t)&&s0(n)&&U(t,e=>!s0(e))?65536:0);if(r)return r.split(",")}return[]}function Que(e,n){if(!n)return"";const t=new Set($ue(n));if(2097152&n.flags){const r=e.getAliasedSymbol(n);r!==n&&d($ue(r),e=>{t.add(e)})}return 16777216&n.flags&&t.add("optional"),t.size>0?Le(t.values()).join(","):""}function Zue(e,n,t,r,o,i,a,l,c,u){var f;const m=[];let h=[],_=[];const g=dT(n);let v=1&a?Yue(e,n,o):"",b=!1;const T=110===o.kind&&Ah(o)||mv(o);let E,A,x=!1;const R={canIncreaseExpansionDepth:!1,truncated:!1};let I=!1;if(110===o.kind&&!T)return{displayParts:[BQ(110)],documentation:[],symbolKind:"primitive type",tags:void 0};if(""!==v||32&g||2097152&g){if("getter"===v||"setter"===v){const e=y(n.declarations,e=>e.name===o&&212!==e.kind);if(e)switch(e.kind){case 178:v="getter";break;case 179:v="setter";break;case 173:v="accessor";break;default:dt.assertNever(e)}else v="property"}let t,a;if(i??(i=T?e.getTypeAtLocation(o):e.getTypeOfSymbolAtLocation(n,o)),o.parent&&212===o.parent.kind){const e=o.parent.name;(e===o||e&&0===e.getFullWidth())&&(o=o.parent)}if(zd(o)?a=o:(aY(o)||sY(o)||o.parent&&(Eu(o.parent)||bC(o.parent))&&ad(n.valueDeclaration))&&(a=o.parent),a){t=e.getResolvedSignature(a);const o=215===a.kind||yC(a)&&108===a.expression.kind,s=o?i.getConstructSignatures():i.getCallSignatures();if(!t||S(s,t.target)||S(s,t)||(t=s.length?s[0]:void 0),t){switch(o&&32&g?(v="constructor",w(i.symbol,v)):2097152&g?(v="alias",O(v),m.push(zQ()),o&&(4&t.flags&&(m.push(BQ(128)),m.push(zQ())),m.push(BQ(105)),m.push(zQ())),k(n)):w(n,v),v){case"JSX attribute":case"property":case"var":case"const":case"let":case"parameter":case"local var":m.push(GQ(59)),m.push(zQ()),16&bT(i)||!i.symbol||(ae(m,rZ(e,i.symbol,r,void 0,5)),m.push(eZ())),o&&(4&t.flags&&(m.push(BQ(128)),m.push(zQ())),m.push(BQ(105)),m.push(zQ())),F(t,s,262144);break;default:F(t,s)}b=!0,x=s.length>1}}else if(IY(o)&&!(98304&g)||137===o.kind&&177===o.parent.kind){const r=o.parent;if(n.declarations&&y(n.declarations,e=>e===(137===o.kind?r.parent:r))){const o=177===r.kind?i.getNonNullableType().getConstructSignatures():i.getNonNullableType().getCallSignatures();t=e.isImplementationOfOverload(r)?o[0]:e.getSignatureFromDeclaration(r),177===r.kind?(v="constructor",w(i.symbol,v)):w(180!==r.kind||2048&i.symbol.flags||4096&i.symbol.flags?n:i.symbol,v),t&&F(t,o),b=!0,x=o.length>1}}}if(32&g&&!b&&!T){M();const e=Yu(n,232);e&&(O("local class"),m.push(zQ())),L(n,a)||(e||(m.push(BQ(86)),m.push(zQ())),k(n),W(n,t))}if(64&g&&2&a&&(N(),L(n,a)||(m.push(BQ(120)),m.push(zQ()),k(n),W(n,t))),524288&g&&2&a&&(N(),m.push(BQ(156)),m.push(zQ()),k(n),W(n,t),m.push(zQ()),m.push(VQ(64)),m.push(zQ()),ae(m,tZ(e,o.parent&&xc(o.parent)?e.getTypeAtLocation(o.parent):e.getDeclaredTypeOfSymbol(n),r,8388608,c,u,R))),384&g&&(N(),L(n,a)||(U(n.declarations,e=>vN(e)&&im(e))&&(m.push(BQ(87)),m.push(zQ())),m.push(BQ(94)),m.push(zQ()),k(n,void 0))),1536&g&&!T&&(N(),!L(n,a))){const e=Yu(n,268),t=e&&e.name&&80===e.name.kind;m.push(BQ(t?145:144)),m.push(zQ()),k(n)}if(262144&g&&2&a)if(N(),m.push(GQ(21)),m.push(KQ("type parameter")),m.push(GQ(22)),m.push(zQ()),k(n),n.parent)P(),k(n.parent,r),W(n.parent,r);else{const r=Yu(n,169);if(void 0===r)return dt.fail();const o=r.parent;if(o)if(ad(o)){P();const n=e.getSignatureFromDeclaration(o);181===o.kind?(m.push(BQ(105)),m.push(zQ())):180!==o.kind&&o.name&&k(o.symbol),ae(m,oZ(e,n,t,32))}else yN(o)&&(P(),m.push(BQ(156)),m.push(zQ()),k(o.symbol),W(o.symbol,t))}if(8&g){v="enum member",w(n,"enum member");const t=null==(f=n.declarations)?void 0:f[0];if(307===(null==t?void 0:t.kind)){const n=e.getConstantValue(t);void 0!==n&&(m.push(zQ()),m.push(VQ(64)),m.push(zQ()),m.push(WQ(lf(n),"number"==typeof n?7:8)))}}if(2097152&n.flags){if(N(),!b||0===h.length&&0===_.length){const t=e.getAliasedSymbol(n);if(t!==n&&t.declarations&&t.declarations.length>0){const o=t.declarations[0],s=Dl(o);if(s&&!b){const l=ff(o)&&Mv(o,128),d="default"!==n.name&&!l,p=Zue(e,t,Sp(o),r,s,i,a,d?n:t,c,u);m.push(...p.displayParts),m.push(eZ()),E=p.documentation,A=p.tags,R&&p.canIncreaseVerbosityLevel&&(R.canIncreaseExpansionDepth=!0)}else E=t.getContextualDocumentationComment(o,e),A=t.getJsDocTags(e)}}if(n.declarations)switch(n.declarations[0].kind){case 271:m.push(BQ(95)),m.push(zQ()),m.push(BQ(145));break;case 278:m.push(BQ(95)),m.push(zQ()),m.push(BQ(n.declarations[0].isExportEquals?64:90));break;case 282:m.push(BQ(95));break;default:m.push(BQ(102))}m.push(zQ()),k(n),d(n.declarations,n=>{if(272===n.kind){const t=n;if(Ih(t))m.push(zQ()),m.push(VQ(64)),m.push(zQ()),m.push(BQ(149)),m.push(GQ(21)),m.push(WQ(Zp(Dh(t)),8)),m.push(GQ(22));else{const n=e.getSymbolAtLocation(t.moduleReference);n&&(m.push(zQ()),m.push(VQ(64)),m.push(zQ()),k(n,r))}return!0}})}if(!b)if(""!==v){if(i)if(T?(N(),m.push(BQ(110))):w(n,v),"property"===v||"accessor"===v||"getter"===v||"setter"===v||"JSX attribute"===v||3&g||"local var"===v||"index"===v||"using"===v||"await using"===v||T){if(m.push(GQ(59)),m.push(zQ()),i.symbol&&262144&i.symbol.flags&&"index"!==v){const n=nZ(n=>{const t=e.typeParameterToDeclaration(i,r,Jue,void 0,void 0,c,u,R);C().writeNode(4,t,Sp(_l(r)),n)},c);ae(m,n)}else ae(m,tZ(e,i,r,void 0,c,u,R));if(Zu(n)&&n.links.target&&Zu(n.links.target)&&n.links.target.links.tupleLabelDeclaration){const e=n.links.target.links.tupleLabelDeclaration;dt.assertNode(e.name,dD),m.push(zQ()),m.push(GQ(21)),m.push(KQ(vl(e.name))),m.push(GQ(22))}}else if(16&g||8192&g||16384&g||131072&g||98304&g||"method"===v){const e=i.getNonNullableType().getCallSignatures();e.length&&(F(e[0],e),x=e.length>1)}}else v=Xue(e,n,o);if(0!==h.length||x||(h=n.getContextualDocumentationComment(r,e)),0===h.length&&4&g&&n.parent&&n.declarations&&d(n.parent.declarations,e=>308===e.kind))for(const s of n.declarations){if(!s.parent||227!==s.parent.kind)continue;const n=e.getSymbolAtLocation(s.parent.right);if(n&&(h=n.getDocumentationComment(e),_=n.getJsDocTags(e),h.length>0))break}if(0===h.length&&dD(o)&&n.valueDeclaration&&fC(n.valueDeclaration)){const t=n.valueDeclaration,r=t.parent,o=t.propertyName||t.name;if(dD(o)&&uC(r)){const n=Hg(o),t=e.getTypeAtLocation(r);h=p(t.isUnion()?t.types:[t],t=>{const r=t.getProperty(n);return r?r.getDocumentationComment(e):void 0})||s}}0!==_.length||x||Oh(o)||(_=n.getContextualJsDocTags(r,e)),0===h.length&&E&&(h=E),0===_.length&&A&&(_=A);const D=!R.truncated&&R.canIncreaseExpansionDepth;return{displayParts:m,documentation:h,symbolKind:v,tags:0===_.length?void 0:_,canIncreaseVerbosityLevel:void 0!==u?D:void 0};function C(){return Dj()}function N(){m.length&&m.push(eZ()),M()}function M(){l&&(O("alias"),m.push(zQ()))}function P(){m.push(zQ()),m.push(BQ(103)),m.push(zQ())}function L(n,t){if(I)return!0;if(function(n,t){if(void 0===u)return!1;const r=96&n.flags?e.getDeclaredTypeOfSymbol(n):e.getTypeOfSymbolAtLocation(n,o);return!(!r||e.isLibType(r))&&(0<u||(t&&(t.canIncreaseExpansionDepth=!0),!1))}(n,R)){const r=function(e){let n=0;return 1&e&&(n|=111551),2&e&&(n|=788968),4&e&&(n|=1920),n}(t),o=nZ(t=>{const o=e.getEmitResolver().symbolToDeclarations(n,r,17408,c,void 0!==u?u-1:void 0,R),i=C(),a=n.valueDeclaration&&Sp(n.valueDeclaration);o.forEach((e,n)=>{n>0&&t.writeLine(),i.writeNode(4,e,a,t)})},c);return ae(m,o),I=!0,!0}return!1}function k(r,o){let i;l&&r===n&&(r=l),"index"===v&&(i=e.getIndexInfosOfIndexSymbol(r));let a=[];131072&r.flags&&i?(r.parent&&(a=rZ(e,r.parent)),a.push(GQ(23)),i.forEach((n,t)=>{a.push(...tZ(e,n.keyType)),t!==i.length-1&&(a.push(zQ()),a.push(GQ(52)),a.push(zQ()))}),a.push(GQ(24))):a=rZ(e,r,o||t,void 0,7),ae(m,a),16777216&n.flags&&m.push(GQ(58))}function w(e,n){N(),n&&(O(n),e&&!U(e.declarations,e=>AC(e)||(EC(e)||OC(e))&&!e.name)&&(m.push(zQ()),k(e)))}function O(e){switch(e){case"var":case"function":case"let":case"const":case"constructor":case"using":case"await using":return void m.push(HQ(e));default:return m.push(GQ(21)),m.push(HQ(e)),void m.push(GQ(22))}}function F(n,t,o=0){ae(m,oZ(e,n,r,32|o,c,u,R)),t.length>1&&(m.push(zQ()),m.push(GQ(21)),m.push(VQ(40)),m.push(WQ((t.length-1).toString(),7)),m.push(zQ()),m.push(KQ(2===t.length?"overload":"overloads")),m.push(GQ(22))),h=n.getDocumentationComment(e),_=n.getJsDocTags(),t.length>1&&0===h.length&&0===_.length&&(h=t[0].getDocumentationComment(e),_=t[0].getJsDocTags().filter(e=>"deprecated"!==e.name))}function W(n,t){const r=nZ(r=>{const o=e.symbolToTypeParameterDeclarations(n,t,Jue);C().writeList(53776,o,Sp(_l(t)),r)});ae(m,r)}}function epe(e,n,t,r,o,i=oY(o),a,s,l){return Zue(e,n,t,r,o,void 0,i,a,s,l)}function npe(e){return!e.parent&&d(e.declarations,e=>{if(219===e.kind)return!0;if(261!==e.kind&&263!==e.kind)return!1;for(let n=e.parent;!Vm(n);n=n.parent)if(308===n.kind||269===n.kind)return!1;return!0})}var tpe={};function rpe(e){const n=e.__pos;return dt.assert("number"==typeof n),n}function ope(e,n){dt.assert("number"==typeof n),e.__pos=n}function ipe(e){const n=e.__end;return dt.assert("number"==typeof n),n}function ape(e,n){dt.assert("number"==typeof n),e.__end=n}t(tpe,{ChangeTracker:()=>ype,LeadingTriviaOption:()=>spe,TrailingTriviaOption:()=>lpe,applyChanges:()=>Spe,assignPositionsToNode:()=>xpe,createWriter:()=>Ipe,deleteNode:()=>Cpe,getAdjustedEndPosition:()=>mpe,isThisTypeAnnotatable:()=>_pe,isValidLocationToAddComment:()=>Dpe});var spe=(e=>(e[e.Exclude=0]="Exclude",e[e.IncludeAll=1]="IncludeAll",e[e.JSDoc=2]="JSDoc",e[e.StartLine=3]="StartLine",e))(spe||{}),lpe=(e=>(e[e.Exclude=0]="Exclude",e[e.ExcludeWhitespace=1]="ExcludeWhitespace",e[e.Include=2]="Include",e))(lpe||{});function cpe(e,n){return es(e,n,!1,!0)}var dpe={leadingTriviaOption:0,trailingTriviaOption:0};function upe(e,n,t,r){return{pos:ppe(e,n,r),end:mpe(e,t,r)}}function ppe(e,n,t,r=!1){var o,i;const{leadingTriviaOption:a}=t;if(0===a)return n.getStart(e);if(3===a){const t=n.getStart(e),r=kY(t,e);return OY(n,r)?r:t}if(2===a){const t=Sm(n,e.text);if(null==t?void 0:t.length)return kY(t[0].pos,e)}const s=n.getFullStart(),l=n.getStart(e);if(s===l)return l;const c=kY(s,e);if(kY(l,e)===c)return 1===a?s:l;if(r){const n=(null==(o=fs(e.text,s))?void 0:o[0])||(null==(i=ms(e.text,s))?void 0:i[0]);if(n)return es(e.text,n.end,!0,!0)}const d=s>0?1:0;let u=Rp(iv(e,c)+d,e);return u=cpe(e.text,u),Rp(iv(e,u),e)}function fpe(e,n,t){const{end:r}=n,{trailingTriviaOption:o}=t;if(2===o){const t=ms(e.text,r);if(t){const r=iv(e,n.end);for(const n of t){if(2===n.kind||iv(e,n.pos)>r)break;if(iv(e,n.end)>r)return es(e.text,n.end,!0,!0)}}}}function mpe(e,n,t){var r;const{end:o}=n,{trailingTriviaOption:i}=t;if(0===i)return o;if(1===i){const n=K(ms(e.text,o),fs(e.text,o)),t=null==(r=null==n?void 0:n[n.length-1])?void 0:r.end;return t||o}const a=fpe(e,n,t);if(a)return a;const s=es(e.text,o,!0);return s===o||2!==i&&!qa(e.text.charCodeAt(s-1))?o:s}function hpe(e,n){return!!n&&!!e.parent&&(28===n.kind||27===n.kind&&211===e.parent.kind)}function _pe(e){return EC(e)||hN(e)}var gpe,ype=class e{constructor(e,n){this.newLineCharacter=e,this.formatContext=n,this.changes=[],this.classesWithNodesInsertedAtStart=new Map,this.deletedNodes=[]}static fromContext(n){return new e(ZQ(n.host,n.formatContext.options),n.formatContext)}static with(n,t){const r=e.fromContext(n);return t(r),r.getChanges()}pushRaw(e,n){dt.assertEqual(e.fileName,n.fileName);for(const t of n.textChanges)this.changes.push({kind:3,sourceFile:e,text:t.newText,range:q$(t.span)})}deleteRange(e,n){this.changes.push({kind:0,sourceFile:e,range:n})}delete(e,n){this.deletedNodes.push({sourceFile:e,node:n})}deleteNode(e,n,t={leadingTriviaOption:1}){this.deleteRange(e,upe(e,n,n,t))}deleteNodes(e,n,t={leadingTriviaOption:1},r){for(const o of n){const n=ppe(e,o,t,r),i=mpe(e,o,t);this.deleteRange(e,{pos:n,end:i}),r=!!fpe(e,o,t)}}deleteModifier(e,n){this.deleteRange(e,{pos:n.getStart(e),end:es(e.text,n.end,!0)})}deleteNodeRange(e,n,t,r={leadingTriviaOption:1}){const o=ppe(e,n,r),i=mpe(e,t,r);this.deleteRange(e,{pos:o,end:i})}deleteNodeRangeExcludingEnd(e,n,t,r={leadingTriviaOption:1}){const o=ppe(e,n,r),i=void 0===t?e.text.length:ppe(e,t,r);this.deleteRange(e,{pos:o,end:i})}replaceRange(e,n,t,r={}){this.changes.push({kind:1,sourceFile:e,range:n,options:r,node:t})}replaceNode(e,n,t,r=dpe){this.replaceRange(e,upe(e,n,n,r),t,r)}replaceNodeRange(e,n,t,r,o=dpe){this.replaceRange(e,upe(e,n,t,o),r,o)}replaceRangeWithNodes(e,n,t,r={}){this.changes.push({kind:2,sourceFile:e,range:n,options:r,nodes:t})}replaceNodeWithNodes(e,n,t,r=dpe){this.replaceRangeWithNodes(e,upe(e,n,n,r),t,r)}replaceNodeWithText(e,n,t){this.replaceRangeWithText(e,upe(e,n,n,dpe),t)}replaceNodeRangeWithNodes(e,n,t,r,o=dpe){this.replaceRangeWithNodes(e,upe(e,n,t,o),r,o)}nodeHasTrailingComment(e,n,t=dpe){return!!fpe(e,n,t)}nextCommaToken(e,n){const t=u$(n,n.parent,e);return t&&28===t.kind?t:void 0}replacePropertyAssignment(e,n,t){const r=this.nextCommaToken(e,n)?"":","+this.newLineCharacter;this.replaceNode(e,n,t,{suffix:r})}insertNodeAt(e,n,t,r={}){this.replaceRange(e,Ob(n),t,r)}insertNodesAt(e,n,t,r={}){this.replaceRangeWithNodes(e,Ob(n),t,r)}insertNodeAtTopOfFile(e,n,t){this.insertAtTopOfFile(e,n,t)}insertNodesAtTopOfFile(e,n,t){this.insertAtTopOfFile(e,n,t)}insertAtTopOfFile(e,n,t){const r=function(e){let n;for(const c of e.statements){if(!_m(c))break;n=c}let t=0;const r=e.text;if(n)return t=n.end,l(),t;const o=hs(r);void 0!==o&&(t=o.length,l());const i=fs(r,t);if(!i)return t;let a,s;for(const c of i){if(3===c.kind){if(Vp(r,c.pos)){a={range:c,pinnedOrTripleSlash:!0};continue}}else if(Gp(r,c.pos,c.end)){a={range:c,pinnedOrTripleSlash:!0};continue}if(a){if(a.pinnedOrTripleSlash)break;if(e.getLineAndCharacterOfPosition(c.pos).line>=e.getLineAndCharacterOfPosition(a.range.end).line+2)break}if(e.statements.length){void 0===s&&(s=e.getLineAndCharacterOfPosition(e.statements[0].getStart()).line);if(s<e.getLineAndCharacterOfPosition(c.end).line+2)break}a={range:c,pinnedOrTripleSlash:!1}}a&&(t=a.range.end,l());return t;function l(){if(t<r.length){const e=r.charCodeAt(t);qa(e)&&(t++,t<r.length&&13===e&&10===r.charCodeAt(t)&&t++)}}}(e),o={prefix:0===r?void 0:this.newLineCharacter,suffix:(qa(e.text.charCodeAt(r))?"":this.newLineCharacter)+(t?this.newLineCharacter:"")};Ye(n)?this.insertNodesAt(e,r,n,o):this.insertNodeAt(e,r,n,o)}insertNodesAtEndOfFile(e,n,t){this.insertAtEndOfFile(e,n,t)}insertAtEndOfFile(e,n,t){const r=e.end+1,o={prefix:this.newLineCharacter,suffix:this.newLineCharacter+(t?this.newLineCharacter:"")};this.insertNodesAt(e,r,n,o)}insertStatementsInNewFile(e,n,t){this.newFileChanges||(this.newFileChanges=He()),this.newFileChanges.add(e,{oldFile:t,statements:n})}insertFirstParameter(e,n,t){const r=fe(n);r?this.insertNodeBefore(e,r,t):this.insertNodeAt(e,n.pos,t)}insertNodeBefore(e,n,t,r=!1,o={}){this.insertNodeAt(e,ppe(e,n,o),t,this.getOptionsForInsertNodeBefore(n,t,r))}insertNodesBefore(e,n,t,r=!1,o={}){this.insertNodesAt(e,ppe(e,n,o),t,this.getOptionsForInsertNodeBefore(n,he(t),r))}insertModifierAt(e,n,t,r={}){this.insertNodeAt(e,n,vR.createToken(t),r)}insertModifierBefore(e,n,t){return this.insertModifierAt(e,t.getStart(e),n,{suffix:" "})}insertCommentBeforeLine(e,n,t,r){const o=Rp(n,e),i=dZ(e.text,o),a=Dpe(e,i),s=a$(e,a?i:t),l=e.text.slice(o,i),c=`${a?"":this.newLineCharacter}//${r}${this.newLineCharacter}${l}`;this.insertText(e,s.getStart(e),c)}insertJsdocCommentBefore(e,n,t){const r=n.getStart(e);if(n.jsDoc)for(const a of n.jsDoc)this.deleteRange(e,{pos:kY(a.getStart(e),e),end:mpe(e,a,{})});const o=uZ(e.text,r-1),i=e.text.slice(o,r);this.insertNodeAt(e,r,t,{suffix:this.newLineCharacter+i})}createJSDocText(e,n){const t=P(n.jsDoc,e=>Qe(e.comment)?vR.createJSDocText(e.comment):e.comment),r=ve(n.jsDoc);return r&&Yb(r.pos,r.end,e)&&0===c(t)?void 0:vR.createNodeArray(_(t,vR.createJSDocText("\n")))}replaceJSDocComment(e,n,t){this.insertJsdocCommentBefore(e,function(e){if(220!==e.kind)return e;const n=173===e.parent.kind?e.parent:e.parent.parent;return n.jsDoc=e.jsDoc,n}(n),vR.createJSDocComment(this.createJSDocText(e,n),vR.createNodeArray(t)))}addJSDocTags(e,n,t){const r=L(n.jsDoc,e=>e.tags),o=t.filter(e=>!r.some((n,t)=>{const o=function(e,n){if(e.kind!==n.kind)return;switch(e.kind){case 342:{const t=e,r=n;return dD(t.name)&&dD(r.name)&&t.name.escapedText===r.name.escapedText?vR.createJSDocParameterTag(void 0,r.name,!1,r.typeExpression,r.isNameFirst,t.comment):void 0}case 343:return vR.createJSDocReturnTag(void 0,n.typeExpression,e.comment);case 345:return vR.createJSDocTypeTag(void 0,n.typeExpression,e.comment)}}(n,e);return o&&(r[t]=o),!!o}));this.replaceJSDocComment(e,n,[...r,...o])}filterJSDocTags(e,n,t){this.replaceJSDocComment(e,n,x(L(n.jsDoc,e=>e.tags),t))}replaceRangeWithText(e,n,t){this.changes.push({kind:3,sourceFile:e,range:n,text:t})}insertText(e,n,t){this.replaceRangeWithText(e,Ob(n),t)}tryInsertTypeAnnotation(e,n,t){let r;if(ad(n)){if(r=qY(n,22,e),!r){if(!AC(n))return!1;r=he(n.parameters)}}else r=(261===n.kind?n.exclamationToken:n.questionToken)??n.name;return this.insertNodeAt(e,r.end,t,{prefix:": "}),!0}tryInsertThisTypeAnnotation(e,n,t){const r=qY(n,21,e).getStart(e)+1,o=n.parameters.length?", ":"";this.insertNodeAt(e,r,t,{prefix:"this: ",suffix:o})}insertTypeParameters(e,n,t){const r=(qY(n,21,e)||he(n.parameters)).getStart(e);this.insertNodesAt(e,r,t,{prefix:"<",suffix:">",joiner:", "})}getOptionsForInsertNodeBefore(e,n,t){return _u(e)||fd(e)?{suffix:t?this.newLineCharacter+this.newLineCharacter:this.newLineCharacter}:fN(e)?{suffix:", "}:DD(e)?DD(n)?{suffix:", "}:{}:qI(e)&&xN(e.parent)||kN(e)?{suffix:", "}:wN(e)?{suffix:","+(t?this.newLineCharacter:" ")}:dt.failBadSyntaxKind(e)}insertNodeAtConstructorStart(e,n,t){const r=fe(n.body.statements);r&&n.body.multiLine?this.insertNodeBefore(e,r,t):this.replaceConstructorBody(e,n,[t,...n.body.statements])}insertNodeAtConstructorStartAfterSuperCall(e,n,t){const r=y(n.body.statements,e=>$C(e)&&pm(e.expression));r&&n.body.multiLine?this.insertNodeAfter(e,r,t):this.replaceConstructorBody(e,n,[...n.body.statements,t])}insertNodeAtConstructorEnd(e,n,t){const r=ge(n.body.statements);r&&n.body.multiLine?this.insertNodeAfter(e,r,t):this.replaceConstructorBody(e,n,[...n.body.statements,t])}replaceConstructorBody(e,n,t){this.replaceNode(e,n.body,vR.createBlock(t,!0))}insertNodeAtEndOfScope(e,n,t){const r=ppe(e,n.getLastToken(),{});this.insertNodeAt(e,r,t,{prefix:qa(e.text.charCodeAt(n.getLastToken().pos))?this.newLineCharacter:this.newLineCharacter+this.newLineCharacter,suffix:this.newLineCharacter})}insertMemberAtStart(e,n,t){this.insertNodeAtStartWorker(e,n,t)}insertNodeAtObjectStart(e,n,t){this.insertNodeAtStartWorker(e,n,t)}insertNodeAtStartWorker(e,n,t){const r=this.guessIndentationFromExistingMembers(e,n)??this.computeIndentationForNewMember(e,n);this.insertNodeAt(e,Tpe(n).pos,t,this.getInsertNodeAtStartInsertOptions(e,n,r))}guessIndentationFromExistingMembers(e,n){let t,r=n;for(const o of Tpe(n)){if(jb(r,o,e))return;const n=o.getStart(e),i=Mpe.SmartIndenter.findFirstNonWhitespaceColumn(kY(n,e),n,e,this.formatContext.options);if(void 0===t)t=i;else if(i!==t)return;r=o}return t}computeIndentationForNewMember(e,n){const t=n.getStart(e);return Mpe.SmartIndenter.findFirstNonWhitespaceColumn(kY(t,e),t,e,this.formatContext.options)+(this.formatContext.options.indentSize??4)}getInsertNodeAtStartInsertOptions(e,n,t){const r=0===Tpe(n).length,o=!this.classesWithNodesInsertedAtStart.has(cB(n));o&&this.classesWithNodesInsertedAtStart.set(cB(n),{node:n,sourceFile:e});const i=hC(n)&&(!om(e)||!r);return{indentation:t,prefix:(hC(n)&&om(e)&&r&&!o?",":"")+this.newLineCharacter,suffix:i?",":gN(n)&&r?";":""}}insertNodeAfterComma(e,n,t){const r=this.insertNodeAfterWorker(e,this.nextCommaToken(e,n)||n,t);this.insertNodeAt(e,r,t,this.getInsertNodeAfterOptions(e,n))}insertNodeAfter(e,n,t){const r=this.insertNodeAfterWorker(e,n,t);this.insertNodeAt(e,r,t,this.getInsertNodeAfterOptions(e,n))}insertNodeAtEndOfList(e,n,t){this.insertNodeAt(e,n.end,t,{prefix:", "})}insertNodesAfter(e,n,t){const r=this.insertNodeAfterWorker(e,n,he(t));this.insertNodesAt(e,r,t,this.getInsertNodeAfterOptions(e,n))}insertNodeAfterWorker(e,n,t){var r,o;o=t,((ND(r=n)||MD(r))&&Td(o)&&168===o.name.kind||hu(r)&&hu(o))&&59!==e.text.charCodeAt(n.end-1)&&this.replaceRange(e,Ob(n.end),vR.createToken(27));return mpe(e,n,{})}getInsertNodeAfterOptions(e,n){const t=this.getInsertNodeAfterOptionsWorker(n);return{...t,prefix:n.end===e.end&&_u(n)?t.prefix?`\n${t.prefix}`:"\n":t.prefix}}getInsertNodeAfterOptionsWorker(e){switch(e.kind){case 264:case 268:return{prefix:this.newLineCharacter,suffix:this.newLineCharacter};case 261:case 11:case 80:return{prefix:", "};case 304:return{suffix:","+this.newLineCharacter};case 95:return{prefix:" "};case 170:return{};default:return dt.assert(_u(e)||Td(e)),{suffix:this.newLineCharacter}}}insertName(e,n,t){if(dt.assert(!n.name),220===n.kind){const r=qY(n,39,e),o=qY(n,21,e);o?(this.insertNodesAt(e,o.getStart(e),[vR.createToken(100),vR.createIdentifier(t)],{joiner:" "}),Cpe(this,e,r)):(this.insertText(e,he(n.parameters).getStart(e),`function ${t}(`),this.replaceRange(e,r,vR.createToken(22))),242!==n.body.kind&&(this.insertNodesAt(e,n.body.getStart(e),[vR.createToken(19),vR.createToken(107)],{joiner:" ",suffix:" "}),this.insertNodesAt(e,n.body.end,[vR.createToken(27),vR.createToken(20)],{joiner:" "}))}else{const r=qY(n,219===n.kind?100:86,e).end;this.insertNodeAt(e,r,vR.createIdentifier(t),{prefix:" "})}}insertExportModifier(e,n){this.insertText(e,n.getStart(e),"export ")}insertImportSpecifierAtIndex(e,n,t,r){const o=t.elements[r-1];o?this.insertNodeInListAfter(e,o,n):this.insertNodeBefore(e,t.elements[0],n,!Yb(t.elements[0].getStart(),t.parent.parent.getStart(),e))}insertNodeInListAfter(e,n,t,r=Mpe.SmartIndenter.getContainingList(n,e)){if(!r)return void dt.fail("node is not a list element");const o=nf(r,n);if(o<0)return;const i=n.getEnd();if(o!==r.length-1){const i=s$(e,n.end);if(i&&hpe(n,i)){const n=r[o+1],a=cpe(e.text,n.getFullStart()),s=`${Pa(i.kind)}${e.text.substring(i.end,a)}`;this.insertNodesAt(e,a,[t],{suffix:s})}}else{const a=n.getStart(e),s=kY(a,e);let l,c=!1;if(1===r.length)l=28;else{const t=p$(n.pos,e);l=hpe(n,t)?t.kind:28;c=kY(r[o-1].getStart(e),e)!==s}if(!function(e,n){let t=n;for(;t<e.length;){const n=e.charCodeAt(t);if(!Ka(n))return 47===n;t++}return!1}(e.text,n.end)&&Yb(r.pos,r.end,e)||(c=!0),c){this.replaceRange(e,Ob(i),vR.createToken(l));const n=Mpe.SmartIndenter.findFirstNonWhitespaceColumn(s,a,e,this.formatContext.options);let r=es(e.text,i,!0,!1);for(;r!==i&&qa(e.text.charCodeAt(r-1));)r--;this.replaceRange(e,Ob(r),t,{indentation:n,prefix:this.newLineCharacter})}else this.replaceRange(e,Ob(i),t,{prefix:`${Pa(l)} `})}}parenthesizeExpression(e,n){this.replaceRange(e,pA(n),vR.createParenthesizedExpression(n))}finishClassesWithNodesInsertedAtStart(){this.classesWithNodesInsertedAtStart.forEach(({node:e,sourceFile:n})=>{const[t,r]=function(e,n){const t=qY(e,19,n),r=qY(e,20,n);return[null==t?void 0:t.end,null==r?void 0:r.end]}(e,n);if(void 0!==t&&void 0!==r){const o=0===Tpe(e).length,i=Yb(t,r,n);o&&i&&t!==r-1&&this.deleteRange(n,Ob(t,r-1)),i&&this.insertText(n,r-1,this.newLineCharacter)}})}finishDeleteDeclarations(){const e=new Set;for(const{sourceFile:n,node:t}of this.deletedNodes)this.deletedNodes.some(e=>e.sourceFile===n&&wY(e.node,t))||(Ye(t)?this.deleteRange(n,fA(n,t)):Epe.deleteDeclaration(this,e,n,t));e.forEach(n=>{const t=n.getSourceFile(),r=Mpe.SmartIndenter.getContainingList(n,t);if(n!==ye(r))return;const o=T(r,n=>!e.has(n),r.length-2);-1!==o&&this.deleteRange(t,{pos:r[o].end,end:vpe(t,r[o+1])})})}getChanges(e){this.finishDeleteDeclarations(),this.finishClassesWithNodesInsertedAtStart();const n=gpe.getTextChangesFromChanges(this.changes,this.newLineCharacter,this.formatContext,e);return this.newFileChanges&&this.newFileChanges.forEach((e,t)=>{n.push(gpe.newFileChanges(t,e,this.newLineCharacter,this.formatContext))}),n}createNewFile(e,n,t){this.insertStatementsInNewFile(n,t,e)}};function vpe(e,n){return es(e.text,ppe(e,n,{leadingTriviaOption:1}),!1,!0)}function bpe(e,n,t,r){const o=vpe(e,r);if(void 0===t||Yb(mpe(e,n,{}),o,e))return o;const i=p$(r.getStart(e),e);if(hpe(n,i)){const r=p$(n.getStart(e),e);if(hpe(t,r)){const n=es(e.text,i.getEnd(),!0,!0);if(Yb(r.getStart(e),i.getStart(e),e))return qa(e.text.charCodeAt(n-1))?n-1:n;if(qa(e.text.charCodeAt(n)))return n}}return o}function Tpe(e){return hC(e)?e.properties:e.members}function Spe(e,n){for(let t=n.length-1;t>=0;t--){const{span:r,newText:o}=n[t];e=`${e.substring(0,r.start)}${o}${e.substring(Ps(r))}`}return e}(e=>{function n(e,n,r,o){const i=P(n,e=>e.statements.map(n=>4===n?"":t(n,e.oldFile,r).text)).join(r),a=sk("any file name",i,{languageVersion:99,jsDocParsingMode:1},!0,e);return Spe(i,Mpe.formatDocument(a,o))+r}function t(e,n,t){const r=Ipe(t);return Mj({newLine:c0(t),neverAsciiEscape:!0,preserveSourceNewlines:!0,terminateUnterminatedLiterals:!0},r).writeNode(4,e,n,r),{text:r.getText(),node:xpe(e)}}e.getTextChangesFromChanges=function(e,n,r,o){return F(ze(e,e=>e.sourceFile.path),e=>{const i=e[0].sourceFile,a=ce(e,(e,n)=>e.range.pos-n.range.pos||e.range.end-n.range.end);for(let n=0;n<a.length-1;n++)dt.assert(a[n].range.end<=a[n+1].range.pos,"Changes overlap",()=>`${JSON.stringify(a[n].range)} and ${JSON.stringify(a[n+1].range)}`);const s=F(a,e=>{const a=K$(e.range),s=1===e.kind?Sp(fl(e.node))??e.sourceFile:2===e.kind?Sp(fl(e.nodes[0]))??e.sourceFile:e.sourceFile,l=function(e,n,r,o,i,a){var s;if(0===e.kind)return"";if(3===e.kind)return e.text;const{options:l={},range:{pos:c}}=e,d=e=>function(e,n,r,o,{indentation:i,prefix:a,delta:s},l,c,d){const{node:u,text:p}=t(e,n,l);d&&d(u,p);const f=u0(c,n),m=void 0!==i?i:Mpe.SmartIndenter.getIndentation(o,r,f,a===l||kY(o,n)===o);void 0===s&&(s=Mpe.SmartIndenter.shouldIndentChildNode(f,e)&&f.indentSize||0);const h={text:p,getLineAndCharacterOfPosition(e){return Ua(this,e)}},_=Mpe.formatNodeGivenIndentation(u,h,n.languageVariant,m,s,{...c,options:f});return Spe(p,_)}(e,n,r,c,l,o,i,a),u=2===e.kind?e.nodes.map(e=>Wn(d(e),o)).join((null==(s=e.options)?void 0:s.joiner)||o):d(e.node),p=void 0!==l.indentation||kY(c,n)===c?u:u.replace(/^\s+/,"");return(l.prefix||"")+p+(!l.suffix||Fn(p,l.suffix)?"":l.suffix)}(e,s,i,n,r,o);if(a.length!==l.length||!i0(s.text,l,a.start))return X$(a,l)});return s.length>0?{fileName:i.fileName,textChanges:s}:void 0})},e.newFileChanges=function(e,t,r,o){const i=n(xE(e),t,r,o);return{fileName:e,textChanges:[X$(Js(0,0),i)],isNewFile:!0}},e.newFileChangesWorker=n,e.getNonformattedText=t})(gpe||(gpe={}));var Epe,Ape={...ej,factory:lR(1|ej.factory.flags,ej.factory.baseFactory)};function xpe(e){const n=CB(e,xpe,Ape,Rpe,xpe),t=ry(n)?n:Object.create(n);return CA(t,rpe(e),ipe(e)),t}function Rpe(e,n,t,r,o){const i=bB(e,n,t,r,o);if(!i)return i;dt.assert(e);const a=i===e?vR.createNodeArray(i.slice(0)):i;return CA(a,rpe(e),ipe(e)),a}function Ipe(e){let n=0;const t=Fy(e);function r(e,r){if(r||!function(e){return es(e,0)===e.length}(e)){n=t.getTextPos();let r=0;for(;Ha(e.charCodeAt(e.length-r-1));)r++;n-=r}}return{onBeforeEmitNode:e=>{e&&ope(e,n)},onAfterEmitNode:e=>{e&&ape(e,n)},onBeforeEmitNodeArray:e=>{e&&ope(e,n)},onAfterEmitNodeArray:e=>{e&&ape(e,n)},onBeforeEmitToken:e=>{e&&ope(e,n)},onAfterEmitToken:e=>{e&&ape(e,n)},write:function(e){t.write(e),r(e,!1)},writeComment:function(e){t.writeComment(e)},writeKeyword:function(e){t.writeKeyword(e),r(e,!1)},writeOperator:function(e){t.writeOperator(e),r(e,!1)},writePunctuation:function(e){t.writePunctuation(e),r(e,!1)},writeTrailingSemicolon:function(e){t.writeTrailingSemicolon(e),r(e,!1)},writeParameter:function(e){t.writeParameter(e),r(e,!1)},writeProperty:function(e){t.writeProperty(e),r(e,!1)},writeSpace:function(e){t.writeSpace(e),r(e,!1)},writeStringLiteral:function(e){t.writeStringLiteral(e),r(e,!1)},writeSymbol:function(e,n){t.writeSymbol(e,n),r(e,!1)},writeLine:function(e){t.writeLine(e)},increaseIndent:function(){t.increaseIndent()},decreaseIndent:function(){t.decreaseIndent()},getText:function(){return t.getText()},rawWrite:function(e){t.rawWrite(e),r(e,!1)},writeLiteral:function(e){t.writeLiteral(e),r(e,!0)},getTextPos:function(){return t.getTextPos()},getLine:function(){return t.getLine()},getColumn:function(){return t.getColumn()},getIndent:function(){return t.getIndent()},isAtStartOfLine:function(){return t.isAtStartOfLine()},hasTrailingComment:()=>t.hasTrailingComment(),hasTrailingWhitespace:()=>t.hasTrailingWhitespace(),clear:function(){t.clear(),n=0}}}function Dpe(e,n){return!(R$(e,n)||_$(e,n)||v$(e,n)||b$(e,n))}function Cpe(e,n,t,r={leadingTriviaOption:1}){const o=ppe(n,t,r),i=mpe(n,t,r);e.deleteRange(n,{pos:o,end:i})}function Npe(e,n,t,r){const o=dt.checkDefined(Mpe.SmartIndenter.getContainingList(r,t)),i=nf(o,r);dt.assert(-1!==i),1!==o.length?(dt.assert(!n.has(r),"Deleting a node twice"),n.add(r),e.deleteRange(t,{pos:vpe(t,r),end:i===o.length-1?mpe(t,r,{}):bpe(t,r,o[i-1],o[i+1])})):Cpe(e,t,r)}(e=>{function n(e,n,t){if(t.parent.name){const r=dt.checkDefined(s$(n,t.pos-1));e.deleteRange(n,{pos:r.getStart(n),end:t.end})}else{Cpe(e,n,Ig(t,273))}}e.deleteDeclaration=function(e,t,r,o){switch(o.kind){case 170:{const n=o.parent;AC(n)&&1===n.parameters.length&&!qY(n,21,r)?e.replaceNodeWithText(r,o,"()"):Npe(e,t,r,o);break}case 273:case 272:Cpe(e,r,o,{leadingTriviaOption:r.imports.length&&o===he(r.imports).parent||o===y(r.statements,If)?0:Mu(o)?2:3});break;case 209:const i=o.parent;208===i.kind&&o!==ye(i.elements)?Cpe(e,r,o):Npe(e,t,r,o);break;case 261:!function(e,n,t,r){const{parent:o}=r;if(300===o.kind)return void e.deleteNodeRange(t,qY(o,21,t),qY(o,22,t));if(1!==o.declarations.length)return void Npe(e,n,t,r);const i=o.parent;switch(i.kind){case 251:case 250:e.replaceNode(t,r,vR.createObjectLiteralExpression());break;case 249:Cpe(e,t,o);break;case 244:Cpe(e,t,i,{leadingTriviaOption:Mu(i)?2:3});break;default:dt.assertNever(i)}}(e,t,r,o);break;case 169:Npe(e,t,r,o);break;case 277:const a=o.parent;1===a.elements.length?n(e,r,a):Npe(e,t,r,o);break;case 275:n(e,r,o);break;case 27:Cpe(e,r,o,{trailingTriviaOption:0});break;case 100:Cpe(e,r,o,{leadingTriviaOption:0});break;case 264:case 263:Cpe(e,r,o,{leadingTriviaOption:Mu(o)?2:3});break;default:o.parent?RN(o.parent)&&o.parent.name===o?function(e,n,t){if(t.namedBindings){const r=t.name.getStart(n),o=s$(n,t.name.end);if(o&&28===o.kind){const t=es(n.text,o.end,!1,!0);e.deleteRange(n,{pos:r,end:t})}else Cpe(e,n,t.name)}else Cpe(e,n,t.parent)}(e,r,o.parent):yC(o.parent)&&S(o.parent.arguments,o)?Npe(e,t,r,o):Cpe(e,r,o):Cpe(e,r,o)}}})(Epe||(Epe={}));var Mpe={};t(Mpe,{FormattingContext:()=>Lpe,FormattingRequestKind:()=>Ppe,RuleAction:()=>zpe,RuleFlags:()=>Bpe,SmartIndenter:()=>cme,anyContext:()=>Wpe,createTextRangeWithKind:()=>hme,formatDocument:()=>bme,formatNodeGivenIndentation:()=>xme,formatOnClosingCurly:()=>vme,formatOnEnter:()=>_me,formatOnOpeningCurly:()=>yme,formatOnSemicolon:()=>gme,formatSelection:()=>Tme,getAllRules:()=>Gpe,getFormatContext:()=>nme,getFormattingScanner:()=>Ope,getIndentationString:()=>Nme,getRangeOfEnclosingComment:()=>Cme});var Ppe=(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",e))(Ppe||{}),Lpe=class{constructor(e,n,t){this.sourceFile=e,this.formattingRequestKind=n,this.options=t}updateContext(e,n,t,r,o){this.currentTokenSpan=dt.checkDefined(e),this.currentTokenParent=dt.checkDefined(n),this.nextTokenSpan=dt.checkDefined(t),this.nextTokenParent=dt.checkDefined(r),this.contextNode=dt.checkDefined(o),this.contextNodeAllOnSameLine=void 0,this.nextNodeAllOnSameLine=void 0,this.tokensAreOnSameLine=void 0,this.contextNodeBlockIsOnOneLine=void 0,this.nextNodeBlockIsOnOneLine=void 0}ContextNodeAllOnSameLine(){return void 0===this.contextNodeAllOnSameLine&&(this.contextNodeAllOnSameLine=this.NodeIsOnOneLine(this.contextNode)),this.contextNodeAllOnSameLine}NextNodeAllOnSameLine(){return void 0===this.nextNodeAllOnSameLine&&(this.nextNodeAllOnSameLine=this.NodeIsOnOneLine(this.nextTokenParent)),this.nextNodeAllOnSameLine}TokensAreOnSameLine(){if(void 0===this.tokensAreOnSameLine){const e=this.sourceFile.getLineAndCharacterOfPosition(this.currentTokenSpan.pos).line,n=this.sourceFile.getLineAndCharacterOfPosition(this.nextTokenSpan.pos).line;this.tokensAreOnSameLine=e===n}return this.tokensAreOnSameLine}ContextNodeBlockIsOnOneLine(){return void 0===this.contextNodeBlockIsOnOneLine&&(this.contextNodeBlockIsOnOneLine=this.BlockIsOnOneLine(this.contextNode)),this.contextNodeBlockIsOnOneLine}NextNodeBlockIsOnOneLine(){return void 0===this.nextNodeBlockIsOnOneLine&&(this.nextNodeBlockIsOnOneLine=this.BlockIsOnOneLine(this.nextTokenParent)),this.nextNodeBlockIsOnOneLine}NodeIsOnOneLine(e){return this.sourceFile.getLineAndCharacterOfPosition(e.getStart(this.sourceFile)).line===this.sourceFile.getLineAndCharacterOfPosition(e.getEnd()).line}BlockIsOnOneLine(e){const n=qY(e,19,this.sourceFile),t=qY(e,20,this.sourceFile);if(n&&t){return this.sourceFile.getLineAndCharacterOfPosition(n.getEnd()).line===this.sourceFile.getLineAndCharacterOfPosition(t.getStart(this.sourceFile)).line}return!1}},kpe=vs(99,!1,0),wpe=vs(99,!1,1);function Ope(e,n,t,r,o){const i=1===n?wpe:kpe;i.setText(e),i.resetTokenState(t);let a,s,l,c,d,u=!0;const p=o({advance:function(){d=void 0;i.getTokenFullStart()!==t?u=!!s&&4===ye(s).kind:i.scan();a=void 0,s=void 0;let e=i.getTokenFullStart();for(;e<r;){const n=i.getToken();if(!wg(n))break;i.scan();const t={pos:e,end:i.getTokenFullStart(),kind:n};e=i.getTokenFullStart(),a=re(a,t)}l=i.getTokenFullStart()},readTokenInfo:function(e){dt.assert(f());const n=function(e){switch(e.kind){case 34:case 72:case 73:case 50:case 49:return!0}return!1}(e)?1:(o=e,14===o.kind?2:function(e){return 17===e.kind||18===e.kind}(e)?3:function(e){if(e.parent)switch(e.parent.kind){case 292:case 287:case 288:case 286:return Dg(e.kind)||80===e.kind}return!1}(e)?4:(t=e,JI(t)||HN(t)&&12===(null==d?void 0:d.token.kind)?5:function(e){return e.parent&&QN(e.parent)&&e.parent.initializer===e}(e)?6:0));var t;var o;if(d&&n===c)return h(d,e);i.getTokenFullStart()!==l&&(dt.assert(void 0!==d),i.resetTokenState(l),i.scan());let u=function(e,n){const t=i.getToken();switch(c=0,n){case 1:if(32===t){c=1;const n=i.reScanGreaterToken();return dt.assert(e.kind===n),n}break;case 2:if(44===(r=t)||69===r){c=2;const n=i.reScanSlashToken();return dt.assert(e.kind===n),n}break;case 3:if(20===t)return c=3,i.reScanTemplateToken(!1);break;case 4:return c=4,i.scanJsxIdentifier();case 5:return c=5,i.reScanJsxToken(!1);case 6:return c=6,i.reScanJsxAttributeValue();case 0:break;default:dt.assertNever(n)}var r;return t}(e,n);const p=hme(i.getTokenFullStart(),i.getTokenEnd(),u);s&&(s=void 0);for(;i.getTokenFullStart()<r&&(u=i.scan(),wg(u));){const e=hme(i.getTokenFullStart(),i.getTokenEnd(),u);if(s||(s=[]),s.push(e),4===u){i.scan();break}}return d={leadingTrivia:a,trailingTrivia:s,token:p},h(d,e)},readEOFTokenRange:function(){return dt.assert(m()),hme(i.getTokenFullStart(),i.getTokenEnd(),1)},isOnToken:f,isOnEOF:m,getCurrentLeadingTrivia:()=>a,lastTrailingTriviaWasNewLine:()=>u,skipToEndOf:function(e){i.resetTokenState(e.end),l=i.getTokenFullStart(),c=void 0,d=void 0,u=!1,a=void 0,s=void 0},skipToStartOf:function(e){i.resetTokenState(e.pos),l=i.getTokenFullStart(),c=void 0,d=void 0,u=!1,a=void 0,s=void 0},getTokenFullStart:()=>(null==d?void 0:d.token.pos)??i.getTokenStart(),getStartPos:()=>(null==d?void 0:d.token.pos)??i.getTokenStart()});return d=void 0,i.setText(void 0),p;function f(){const e=d?d.token.kind:i.getToken();return 1!==e&&!wg(e)}function m(){return 1===(d?d.token.kind:i.getToken())}function h(e,n){return Lc(n)&&e.token.kind!==n.kind&&(e.token.kind=n.kind),e}}var Fpe,Wpe=s,zpe=(e=>(e[e.None=0]="None",e[e.StopProcessingSpaceActions=1]="StopProcessingSpaceActions",e[e.StopProcessingTokenActions=2]="StopProcessingTokenActions",e[e.InsertSpace=4]="InsertSpace",e[e.InsertNewLine=8]="InsertNewLine",e[e.DeleteSpace=16]="DeleteSpace",e[e.DeleteToken=32]="DeleteToken",e[e.InsertTrailingSemicolon=64]="InsertTrailingSemicolon",e[e.StopAction=3]="StopAction",e[e.ModifySpaceAction=28]="ModifySpaceAction",e[e.ModifyTokenAction=96]="ModifyTokenAction",e))(zpe||{}),Bpe=(e=>(e[e.None=0]="None",e[e.CanDeleteNewLines=1]="CanDeleteNewLines",e))(Bpe||{});function Gpe(){const e=[];for(let p=0;p<=166;p++)1!==p&&e.push(p);function n(...n){return{tokens:e.filter(e=>!n.some(n=>n===e)),isSpecific:!1}}const t={tokens:e,isSpecific:!1},r=jpe([...e,3]),o=jpe([...e,1]),i=Hpe(83,166),a=Hpe(30,79),s=[103,104,165,130,142,152],l=[80,...Y$],c=r,d=jpe([80,32,3,86,95,102]),u=jpe([22,3,92,113,98,93,85]);return[...[Vpe("IgnoreBeforeComment",t,[2,3],Wpe,1),Vpe("IgnoreAfterLineComment",2,t,Wpe,1),Vpe("NotSpaceBeforeColon",t,59,[Ife,nfe,tfe],16),Vpe("SpaceAfterColon",59,t,[Ife,nfe,Lfe],4),Vpe("NoSpaceBeforeQuestionMark",t,58,[Ife,nfe,tfe],16),Vpe("SpaceAfterQuestionMarkInConditionalOperator",58,t,[Ife,ife],4),Vpe("NoSpaceAfterQuestionMark",58,t,[Ife,ofe],16),Vpe("NoSpaceBeforeDot",t,[25,29],[Ife,eme],16),Vpe("NoSpaceAfterDot",[25,29],t,[Ife],16),Vpe("NoSpaceBetweenImportParenInImportType",102,21,[Ife,Rfe],16),Vpe("NoSpaceAfterUnaryPrefixOperator",[46,47,55,54],[9,10,80,21,23,19,110,105],[Ife,nfe],16),Vpe("NoSpaceAfterUnaryPreincrementOperator",46,[80,21,110,105],[Ife],16),Vpe("NoSpaceAfterUnaryPredecrementOperator",47,[80,21,110,105],[Ife],16),Vpe("NoSpaceBeforeUnaryPostincrementOperator",[80,22,24,105],46,[Ife,$fe],16),Vpe("NoSpaceBeforeUnaryPostdecrementOperator",[80,22,24,105],47,[Ife,$fe],16),Vpe("SpaceAfterPostincrementWhenFollowedByAdd",46,40,[Ife,efe],4),Vpe("SpaceAfterAddWhenFollowedByUnaryPlus",40,40,[Ife,efe],4),Vpe("SpaceAfterAddWhenFollowedByPreincrement",40,46,[Ife,efe],4),Vpe("SpaceAfterPostdecrementWhenFollowedBySubtract",47,41,[Ife,efe],4),Vpe("SpaceAfterSubtractWhenFollowedByUnaryMinus",41,41,[Ife,efe],4),Vpe("SpaceAfterSubtractWhenFollowedByPredecrement",41,47,[Ife,efe],4),Vpe("NoSpaceAfterCloseBrace",20,[28,27],[Ife],16),Vpe("NewLineBeforeCloseBraceInBlockContext",r,20,[cfe],8),Vpe("SpaceAfterCloseBrace",20,n(22),[Ife,yfe],4),Vpe("SpaceBetweenCloseBraceAndElse",20,93,[Ife],4),Vpe("SpaceBetweenCloseBraceAndWhile",20,117,[Ife],4),Vpe("NoSpaceBetweenEmptyBraceBrackets",19,20,[Ife,bfe],16),Vpe("SpaceAfterConditionalClosingParen",22,23,[vfe],4),Vpe("NoSpaceBetweenFunctionKeywordAndStar",100,42,[hfe],16),Vpe("SpaceAfterStarInGeneratorDeclaration",42,80,[hfe],4),Vpe("SpaceAfterFunctionInFuncDecl",100,t,[ffe],4),Vpe("NewLineAfterOpenBraceInBlockContext",19,t,[cfe],8),Vpe("SpaceAfterGetSetInMember",[139,153],80,[ffe],4),Vpe("NoSpaceBetweenYieldKeywordAndStar",127,42,[Ife,Xfe],16),Vpe("SpaceBetweenYieldOrYieldStarAndOperand",[127,42],t,[Ife,Xfe],4),Vpe("NoSpaceBetweenReturnAndSemicolon",107,27,[Ife],16),Vpe("SpaceAfterCertainKeywords",[115,111,105,91,107,114,135],t,[Ife],4),Vpe("SpaceAfterLetConstInVariableDeclaration",[121,87],t,[Ife,zfe],4),Vpe("NoSpaceBeforeOpenParenInFuncCall",t,21,[Ife,Tfe,Sfe],16),Vpe("SpaceBeforeBinaryKeywordOperator",t,s,[Ife,efe],4),Vpe("SpaceAfterBinaryKeywordOperator",s,t,[Ife,efe],4),Vpe("SpaceAfterVoidOperator",116,t,[Ife,Jfe],4),Vpe("SpaceBetweenAsyncAndOpenParen",134,21,[xfe,Ife],4),Vpe("SpaceBetweenAsyncAndFunctionKeyword",134,[100,80],[Ife],4),Vpe("NoSpaceBetweenTagAndTemplateString",[80,22],[15,16],[Ife],16),Vpe("SpaceBeforeJsxAttribute",t,80,[Mfe,Ife],4),Vpe("SpaceBeforeSlashInJsxOpeningElement",t,44,[wfe,Ife],4),Vpe("NoSpaceBeforeGreaterThanTokenInJsxOpeningElement",44,32,[wfe,Ife],16),Vpe("NoSpaceBeforeEqualInJsxAttribute",t,64,[Pfe,Ife],16),Vpe("NoSpaceAfterEqualInJsxAttribute",64,t,[Pfe,Ife],16),Vpe("NoSpaceBeforeJsxNamespaceColon",80,59,[kfe],16),Vpe("NoSpaceAfterJsxNamespaceColon",59,80,[kfe],16),Vpe("NoSpaceAfterModuleImport",[144,149],21,[Ife],16),Vpe("SpaceAfterCertainTypeScriptKeywords",[128,129,86,138,90,94,95,96,139,119,102,120,144,145,123,125,124,148,153,126,156,161,143,140],t,[Ife],4),Vpe("SpaceBeforeCertainTypeScriptKeywords",t,[96,119,161],[Ife],4),Vpe("SpaceAfterModuleName",11,19,[Gfe],4),Vpe("SpaceBeforeArrow",t,39,[Ife],4),Vpe("SpaceAfterArrow",39,t,[Ife],4),Vpe("NoSpaceAfterEllipsis",26,80,[Ife],16),Vpe("NoSpaceAfterOptionalParameters",58,[22,28],[Ife,nfe],16),Vpe("NoSpaceBetweenEmptyInterfaceBraceBrackets",19,20,[Ife,Vfe],16),Vpe("NoSpaceBeforeOpenAngularBracket",l,30,[Ife,Hfe],16),Vpe("NoSpaceBetweenCloseParenAndAngularBracket",22,30,[Ife,Hfe],16),Vpe("NoSpaceAfterOpenAngularBracket",30,t,[Ife,Hfe],16),Vpe("NoSpaceBeforeCloseAngularBracket",t,32,[Ife,Hfe],16),Vpe("NoSpaceAfterCloseAngularBracket",32,[21,23,32,28],[Ife,Hfe,mfe,qfe],16),Vpe("SpaceBeforeAt",[22,80],60,[Ife],4),Vpe("NoSpaceAfterAt",60,t,[Ife],16),Vpe("SpaceAfterDecorator",t,[128,80,95,90,86,126,125,123,124,139,153,23,42],[Ffe],4),Vpe("NoSpaceBeforeNonNullAssertionOperator",t,54,[Ife,Yfe],16),Vpe("NoSpaceAfterNewKeywordOnConstructorSignature",105,21,[Ife,jfe],16),Vpe("SpaceLessThanAndNonJSXTypeAnnotation",30,30,[Ife],4)],...[Vpe("SpaceAfterConstructor",137,21,[qpe("insertSpaceAfterConstructor"),Ife],4),Vpe("NoSpaceAfterConstructor",137,21,[Xpe("insertSpaceAfterConstructor"),Ife],16),Vpe("SpaceAfterComma",28,t,[qpe("insertSpaceAfterCommaDelimiter"),Ife,Cfe,Efe,Afe],4),Vpe("NoSpaceAfterComma",28,t,[Xpe("insertSpaceAfterCommaDelimiter"),Ife,Cfe],16),Vpe("SpaceAfterAnonymousFunctionKeyword",[100,42],21,[qpe("insertSpaceAfterFunctionKeywordForAnonymousFunctions"),ffe],4),Vpe("NoSpaceAfterAnonymousFunctionKeyword",[100,42],21,[Xpe("insertSpaceAfterFunctionKeywordForAnonymousFunctions"),ffe],16),Vpe("SpaceAfterKeywordInControl",i,21,[qpe("insertSpaceAfterKeywordsInControlFlowStatements"),vfe],4),Vpe("NoSpaceAfterKeywordInControl",i,21,[Xpe("insertSpaceAfterKeywordsInControlFlowStatements"),vfe],16),Vpe("SpaceAfterOpenParen",21,t,[qpe("insertSpaceAfterOpeningAndBeforeClosingNonemptyParenthesis"),Ife],4),Vpe("SpaceBeforeCloseParen",t,22,[qpe("insertSpaceAfterOpeningAndBeforeClosingNonemptyParenthesis"),Ife],4),Vpe("SpaceBetweenOpenParens",21,21,[qpe("insertSpaceAfterOpeningAndBeforeClosingNonemptyParenthesis"),Ife],4),Vpe("NoSpaceBetweenParens",21,22,[Ife],16),Vpe("NoSpaceAfterOpenParen",21,t,[Xpe("insertSpaceAfterOpeningAndBeforeClosingNonemptyParenthesis"),Ife],16),Vpe("NoSpaceBeforeCloseParen",t,22,[Xpe("insertSpaceAfterOpeningAndBeforeClosingNonemptyParenthesis"),Ife],16),Vpe("SpaceAfterOpenBracket",23,t,[qpe("insertSpaceAfterOpeningAndBeforeClosingNonemptyBrackets"),Ife],4),Vpe("SpaceBeforeCloseBracket",t,24,[qpe("insertSpaceAfterOpeningAndBeforeClosingNonemptyBrackets"),Ife],4),Vpe("NoSpaceBetweenBrackets",23,24,[Ife],16),Vpe("NoSpaceAfterOpenBracket",23,t,[Xpe("insertSpaceAfterOpeningAndBeforeClosingNonemptyBrackets"),Ife],16),Vpe("NoSpaceBeforeCloseBracket",t,24,[Xpe("insertSpaceAfterOpeningAndBeforeClosingNonemptyBrackets"),Ife],16),Vpe("SpaceAfterOpenBrace",19,t,[$pe("insertSpaceAfterOpeningAndBeforeClosingNonemptyBraces"),sfe],4),Vpe("SpaceBeforeCloseBrace",t,20,[$pe("insertSpaceAfterOpeningAndBeforeClosingNonemptyBraces"),sfe],4),Vpe("NoSpaceBetweenEmptyBraceBrackets",19,20,[Ife,bfe],16),Vpe("NoSpaceAfterOpenBrace",19,t,[Jpe("insertSpaceAfterOpeningAndBeforeClosingNonemptyBraces"),Ife],16),Vpe("NoSpaceBeforeCloseBrace",t,20,[Jpe("insertSpaceAfterOpeningAndBeforeClosingNonemptyBraces"),Ife],16),Vpe("SpaceBetweenEmptyBraceBrackets",19,20,[qpe("insertSpaceAfterOpeningAndBeforeClosingEmptyBraces")],4),Vpe("NoSpaceBetweenEmptyBraceBrackets",19,20,[Jpe("insertSpaceAfterOpeningAndBeforeClosingEmptyBraces"),Ife],16),Vpe("SpaceAfterTemplateHeadAndMiddle",[16,17],t,[qpe("insertSpaceAfterOpeningAndBeforeClosingTemplateStringBraces"),Dfe],4,1),Vpe("SpaceBeforeTemplateMiddleAndTail",t,[17,18],[qpe("insertSpaceAfterOpeningAndBeforeClosingTemplateStringBraces"),Ife],4),Vpe("NoSpaceAfterTemplateHeadAndMiddle",[16,17],t,[Xpe("insertSpaceAfterOpeningAndBeforeClosingTemplateStringBraces"),Dfe],16,1),Vpe("NoSpaceBeforeTemplateMiddleAndTail",t,[17,18],[Xpe("insertSpaceAfterOpeningAndBeforeClosingTemplateStringBraces"),Ife],16),Vpe("SpaceAfterOpenBraceInJsxExpression",19,t,[qpe("insertSpaceAfterOpeningAndBeforeClosingJsxExpressionBraces"),Ife,Nfe],4),Vpe("SpaceBeforeCloseBraceInJsxExpression",t,20,[qpe("insertSpaceAfterOpeningAndBeforeClosingJsxExpressionBraces"),Ife,Nfe],4),Vpe("NoSpaceAfterOpenBraceInJsxExpression",19,t,[Xpe("insertSpaceAfterOpeningAndBeforeClosingJsxExpressionBraces"),Ife,Nfe],16),Vpe("NoSpaceBeforeCloseBraceInJsxExpression",t,20,[Xpe("insertSpaceAfterOpeningAndBeforeClosingJsxExpressionBraces"),Ife,Nfe],16),Vpe("SpaceAfterSemicolonInFor",27,t,[qpe("insertSpaceAfterSemicolonInForStatements"),Ife,Qpe],4),Vpe("NoSpaceAfterSemicolonInFor",27,t,[Xpe("insertSpaceAfterSemicolonInForStatements"),Ife,Qpe],16),Vpe("SpaceBeforeBinaryOperator",t,a,[qpe("insertSpaceBeforeAndAfterBinaryOperators"),Ife,efe],4),Vpe("SpaceAfterBinaryOperator",a,t,[qpe("insertSpaceBeforeAndAfterBinaryOperators"),Ife,efe],4),Vpe("NoSpaceBeforeBinaryOperator",t,a,[Xpe("insertSpaceBeforeAndAfterBinaryOperators"),Ife,efe],16),Vpe("NoSpaceAfterBinaryOperator",a,t,[Xpe("insertSpaceBeforeAndAfterBinaryOperators"),Ife,efe],16),Vpe("SpaceBeforeOpenParenInFuncDecl",t,21,[qpe("insertSpaceBeforeFunctionParenthesis"),Ife,ffe],4),Vpe("NoSpaceBeforeOpenParenInFuncDecl",t,21,[Xpe("insertSpaceBeforeFunctionParenthesis"),Ife,ffe],16),Vpe("NewLineBeforeOpenBraceInControl",u,19,[qpe("placeOpenBraceOnNewLineForControlBlocks"),vfe,lfe],8,1),Vpe("NewLineBeforeOpenBraceInFunction",c,19,[qpe("placeOpenBraceOnNewLineForFunctions"),ffe,lfe],8,1),Vpe("NewLineBeforeOpenBraceInTypeScriptDeclWithBlock",d,19,[qpe("placeOpenBraceOnNewLineForFunctions"),_fe,lfe],8,1),Vpe("SpaceAfterTypeAssertion",32,t,[qpe("insertSpaceAfterTypeAssertion"),Ife,Kfe],4),Vpe("NoSpaceAfterTypeAssertion",32,t,[Xpe("insertSpaceAfterTypeAssertion"),Ife,Kfe],16),Vpe("SpaceBeforeTypeAnnotation",t,[58,59],[qpe("insertSpaceBeforeTypeAnnotation"),Ife,rfe],4),Vpe("NoSpaceBeforeTypeAnnotation",t,[58,59],[Xpe("insertSpaceBeforeTypeAnnotation"),Ife,rfe],16),Vpe("NoOptionalSemicolon",27,o,[Kpe("semicolons","remove"),Qfe],32),Vpe("OptionalSemicolon",t,o,[Kpe("semicolons","insert"),Zfe],64)],...[Vpe("NoSpaceBeforeSemicolon",t,27,[Ife],16),Vpe("SpaceBeforeOpenBraceInControl",u,19,[Ype("placeOpenBraceOnNewLineForControlBlocks"),vfe,Bfe,afe],4,1),Vpe("SpaceBeforeOpenBraceInFunction",c,19,[Ype("placeOpenBraceOnNewLineForFunctions"),ffe,ufe,Bfe,afe],4,1),Vpe("SpaceBeforeOpenBraceInTypeScriptDeclWithBlock",d,19,[Ype("placeOpenBraceOnNewLineForFunctions"),_fe,Bfe,afe],4,1),Vpe("NoSpaceBeforeComma",t,28,[Ife],16),Vpe("NoSpaceBeforeOpenBracket",n(134,84),23,[Ife],16),Vpe("NoSpaceAfterCloseBracket",24,t,[Ife,Ofe],16),Vpe("SpaceAfterSemicolon",27,t,[Ife],4),Vpe("SpaceBetweenForAndAwaitKeyword",99,135,[Ife],4),Vpe("SpaceBetweenDotDotDotAndTypeName",26,l,[Ife],16),Vpe("SpaceBetweenStatements",[22,92,93,84],t,[Ife,Cfe,Zpe],4),Vpe("SpaceAfterTryCatchFinally",[113,85,98],19,[Ife],4)]]}function Vpe(e,n,t,r,o,i=0){return{leftTokenRange:Upe(n),rightTokenRange:Upe(t),rule:{debugName:e,context:r,action:o,flags:i}}}function jpe(e){return{tokens:e,isSpecific:!0}}function Upe(e){return"number"==typeof e?jpe([e]):Ye(e)?jpe(e):e}function Hpe(e,n,t=[]){const r=[];for(let o=e;o<=n;o++)S(t,o)||r.push(o);return jpe(r)}function Kpe(e,n){return t=>t.options&&t.options[e]===n}function qpe(e){return n=>n.options&&Ie(n.options,e)&&!!n.options[e]}function Jpe(e){return n=>n.options&&Ie(n.options,e)&&!n.options[e]}function Xpe(e){return n=>!n.options||!Ie(n.options,e)||!n.options[e]}function Ype(e){return n=>!n.options||!Ie(n.options,e)||!n.options[e]||n.TokensAreOnSameLine()}function $pe(e){return n=>!n.options||!Ie(n.options,e)||!!n.options[e]}function Qpe(e){return 249===e.contextNode.kind}function Zpe(e){return!Qpe(e)}function efe(e){switch(e.contextNode.kind){case 227:return 28!==e.contextNode.operatorToken.kind;case 228:case 195:case 235:case 282:case 277:case 183:case 193:case 194:case 239:return!0;case 209:case 266:case 272:case 278:case 261:case 170:case 307:case 173:case 172:return 64===e.currentTokenSpan.kind||64===e.nextTokenSpan.kind;case 250:case 169:return 103===e.currentTokenSpan.kind||103===e.nextTokenSpan.kind||64===e.currentTokenSpan.kind||64===e.nextTokenSpan.kind;case 251:return 165===e.currentTokenSpan.kind||165===e.nextTokenSpan.kind}return!1}function nfe(e){return!efe(e)}function tfe(e){return!rfe(e)}function rfe(e){const n=e.contextNode.kind;return 173===n||172===n||170===n||261===n||ud(n)}function ofe(e){return!function(e){return MD(e.contextNode)&&e.contextNode.questionToken}(e)}function ife(e){return 228===e.contextNode.kind||195===e.contextNode.kind}function afe(e){return e.TokensAreOnSameLine()||ufe(e)}function sfe(e){return 207===e.contextNode.kind||201===e.contextNode.kind||function(e){return dfe(e)&&(e.ContextNodeAllOnSameLine()||e.ContextNodeBlockIsOnOneLine())}(e)}function lfe(e){return ufe(e)&&!(e.NextNodeAllOnSameLine()||e.NextNodeBlockIsOnOneLine())}function cfe(e){return dfe(e)&&!(e.ContextNodeAllOnSameLine()||e.ContextNodeBlockIsOnOneLine())}function dfe(e){return pfe(e.contextNode)}function ufe(e){return pfe(e.nextTokenParent)}function pfe(e){if(gfe(e))return!0;switch(e.kind){case 242:case 270:case 211:case 269:return!0}return!1}function ffe(e){switch(e.contextNode.kind){case 263:case 175:case 174:case 178:case 179:case 180:case 219:case 177:case 220:case 265:return!0}return!1}function mfe(e){return!ffe(e)}function hfe(e){return 263===e.contextNode.kind||219===e.contextNode.kind}function _fe(e){return gfe(e.contextNode)}function gfe(e){switch(e.kind){case 264:case 232:case 265:case 267:case 188:case 268:case 279:case 280:case 273:case 276:return!0}return!1}function yfe(e){switch(e.currentTokenParent.kind){case 264:case 268:case 267:case 300:case 269:case 256:return!0;case 242:{const n=e.currentTokenParent.parent;if(!n||220!==n.kind&&219!==n.kind)return!0}}return!1}function vfe(e){switch(e.contextNode.kind){case 246:case 256:case 249:case 250:case 251:case 248:case 259:case 247:case 255:case 300:return!0;default:return!1}}function bfe(e){return 211===e.contextNode.kind}function Tfe(e){return function(e){return 214===e.contextNode.kind}(e)||function(e){return 215===e.contextNode.kind}(e)}function Sfe(e){return 28!==e.currentTokenSpan.kind}function Efe(e){return 24!==e.nextTokenSpan.kind}function Afe(e){return 22!==e.nextTokenSpan.kind}function xfe(e){return 220===e.contextNode.kind}function Rfe(e){return 206===e.contextNode.kind}function Ife(e){return e.TokensAreOnSameLine()&&12!==e.contextNode.kind}function Dfe(e){return 12!==e.contextNode.kind}function Cfe(e){return 285!==e.contextNode.kind&&289!==e.contextNode.kind}function Nfe(e){return 295===e.contextNode.kind||294===e.contextNode.kind}function Mfe(e){return 292===e.nextTokenParent.kind||296===e.nextTokenParent.kind&&292===e.nextTokenParent.parent.kind}function Pfe(e){return 292===e.contextNode.kind}function Lfe(e){return 296!==e.nextTokenParent.kind}function kfe(e){return 296===e.nextTokenParent.kind}function wfe(e){return 286===e.contextNode.kind}function Ofe(e){return!ffe(e)&&!ufe(e)}function Ffe(e){return e.TokensAreOnSameLine()&&zv(e.contextNode)&&Wfe(e.currentTokenParent)&&!Wfe(e.nextTokenParent)}function Wfe(e){for(;e&&qd(e);)e=e.parent;return e&&171===e.kind}function zfe(e){return 262===e.currentTokenParent.kind&&e.currentTokenParent.getStart(e.sourceFile)===e.currentTokenSpan.pos}function Bfe(e){return 2!==e.formattingRequestKind}function Gfe(e){return 268===e.contextNode.kind}function Vfe(e){return 188===e.contextNode.kind}function jfe(e){return 181===e.contextNode.kind}function Ufe(e,n){if(30!==e.kind&&32!==e.kind)return!1;switch(n.kind){case 184:case 217:case 266:case 264:case 232:case 265:case 263:case 219:case 220:case 175:case 174:case 180:case 181:case 214:case 215:case 234:return!0;default:return!1}}function Hfe(e){return Ufe(e.currentTokenSpan,e.currentTokenParent)||Ufe(e.nextTokenSpan,e.nextTokenParent)}function Kfe(e){return 217===e.contextNode.kind}function qfe(e){return!Kfe(e)}function Jfe(e){return 116===e.currentTokenSpan.kind&&223===e.currentTokenParent.kind}function Xfe(e){return 230===e.contextNode.kind&&void 0!==e.contextNode.expression}function Yfe(e){return 236===e.contextNode.kind}function $fe(e){return!function(e){switch(e.contextNode.kind){case 246:case 249:case 250:case 251:case 247:case 248:return!0;default:return!1}}(e)}function Qfe(e){let n=e.nextTokenSpan.kind,t=e.nextTokenSpan.pos;if(wg(n)){const r=e.nextTokenParent===e.currentTokenParent?u$(e.currentTokenParent,ml(e.currentTokenParent,e=>!e.parent),e.sourceFile):e.nextTokenParent.getFirstToken(e.sourceFile);if(!r)return!0;n=r.kind,t=r.getStart(e.sourceFile)}return e.sourceFile.getLineAndCharacterOfPosition(e.currentTokenSpan.pos).line===e.sourceFile.getLineAndCharacterOfPosition(t).line?20===n||1===n:27===n&&27===e.currentTokenSpan.kind||241!==n&&27!==n&&(265===e.contextNode.kind||266===e.contextNode.kind?!ND(e.currentTokenParent)||!!e.currentTokenParent.type||21!==n:MD(e.currentTokenParent)?!e.currentTokenParent.initializer:249!==e.currentTokenParent.kind&&243!==e.currentTokenParent.kind&&241!==e.currentTokenParent.kind&&23!==n&&21!==n&&40!==n&&41!==n&&44!==n&&14!==n&&28!==n&&229!==n&&16!==n&&15!==n&&25!==n)}function Zfe(e){return kZ(e.currentTokenSpan.end,e.currentTokenParent,e.sourceFile)}function eme(e){return!_C(e.contextNode)||!HI(e.contextNode.expression)||e.contextNode.expression.getText().includes(".")}function nme(e,n){return{options:e,getRules:tme(),host:n}}function tme(){return void 0===Fpe&&(Fpe=function(e){const n=function(e){const n=new Array(pme*pme),t=new Array(n.length);for(const r of e){const e=r.leftTokenRange.isSpecific&&r.rightTokenRange.isSpecific;for(const o of r.leftTokenRange.tokens)for(const i of r.rightTokenRange.tokens){const a=ome(o,i);let s=n[a];void 0===s&&(s=n[a]=[]),mme(s,r.rule,e,t,a)}}return n}(e);return e=>{const t=n[ome(e.currentTokenSpan.kind,e.nextTokenSpan.kind)];if(t){const n=[];let r=0;for(const o of t){const t=~rme(r);o.action&t&&g(o.context,n=>n(e))&&(n.push(o),r|=o.action)}if(n.length)return n}}}(Gpe())),Fpe}function rme(e){let n=0;return 1&e&&(n|=28),2&e&&(n|=96),28&e&&(n|=28),96&e&&(n|=96),n}function ome(e,n){return dt.assert(e<=166&&n<=166,"Must compute formatting context from tokens"),e*pme+n}var ime,ame,sme,lme,cme,dme=5,ume=31,pme=167,fme=((ime=fme||{})[ime.StopRulesSpecific=0]="StopRulesSpecific",ime[ime.StopRulesAny=1*dme]="StopRulesAny",ime[ime.ContextRulesSpecific=2*dme]="ContextRulesSpecific",ime[ime.ContextRulesAny=3*dme]="ContextRulesAny",ime[ime.NoContextRulesSpecific=4*dme]="NoContextRulesSpecific",ime[ime.NoContextRulesAny=5*dme]="NoContextRulesAny",ime);function mme(e,n,t,r,o){const i=3&n.action?t?0:fme.StopRulesAny:n.context!==Wpe?t?fme.ContextRulesSpecific:fme.ContextRulesAny:t?fme.NoContextRulesSpecific:fme.NoContextRulesAny,a=r[o]||0;e.splice(function(e,n){let t=0;for(let r=0;r<=n;r+=dme)t+=e&ume,e>>=dme;return t}(a,i),0,n),r[o]=function(e,n){const t=1+(e>>n&ume);return dt.assert((t&ume)===t,"Adding more rules into the sub-bucket than allowed. Maximum allowed is 32 rules."),e&~(ume<<n)|t<<n}(a,i)}function hme(e,n,t){const r={pos:e,end:n,kind:t};return dt.isDebugging&&Object.defineProperty(r,"__debugKind",{get:()=>dt.formatSyntaxKind(t)}),r}function _me(e,n,t){const r=n.getLineAndCharacterOfPosition(e).line;if(0===r)return[];let o=Dp(r,n);for(;Ka(n.text.charCodeAt(o));)o--;qa(n.text.charCodeAt(o))&&o--;return Ime({pos:Rp(r-1,n),end:o+1},n,t,2)}function gme(e,n,t){return Rme(Eme(Sme(e,27,n)),n,t,3)}function yme(e,n,t){const r=Sme(e,19,n);if(!r)return[];return Ime({pos:kY(Eme(r.parent).getStart(n),n),end:e},n,t,4)}function vme(e,n,t){return Rme(Eme(Sme(e,20,n)),n,t,5)}function bme(e,n){return Ime({pos:0,end:e.text.length},e,n,0)}function Tme(e,n,t,r){return Ime({pos:kY(e,t),end:n},t,r,1)}function Sme(e,n,t){const r=p$(e,t);return r&&r.kind===n&&e===r.getEnd()?r:void 0}function Eme(e){let n=e;for(;n&&n.parent&&n.parent.end===e.end&&!Ame(n.parent,n);)n=n.parent;return n}function Ame(e,n){switch(e.kind){case 264:case 265:return eT(e.members,n);case 268:const t=e.body;return!!t&&269===t.kind&&eT(t.statements,n);case 308:case 242:case 269:return eT(e.statements,n);case 300:return eT(e.block.statements,n)}return!1}function xme(e,n,t,r,o,i){const a={pos:e.pos,end:e.end};return Ope(n.text,t,a.pos,a.end,t=>Dme(a,e,r,o,t,i,1,e=>!1,n))}function Rme(e,n,t,r){if(!e)return[];return Ime({pos:kY(e.getStart(n),n),end:e.end},n,t,r)}function Ime(e,n,t,r){const o=function(e,n){return function t(r){const o=rk(r,t=>nT(t.getStart(n),t.end,e)&&t);if(o){const e=t(o);if(e)return e}return r}(n)}(e,n);return Ope(n.text,n.languageVariant,function(e,n,t){const r=e.getStart(t);if(r===n.pos&&e.end===n.end)return r;const o=p$(n.pos,t);return o?o.end>=n.pos?e.pos:o.end:e.pos}(o,e,n),e.end,i=>Dme(e,o,cme.getIndentationForNode(o,e,n,t.options),function(e,n,t){let r,o=-1;for(;e;){const i=t.getLineAndCharacterOfPosition(e.getStart(t)).line;if(-1!==o&&i!==o)break;if(cme.shouldIndentChildNode(n,e,r,t))return n.indentSize;o=i,r=e,e=e.parent}return 0}(o,t.options,n),i,t,r,function(e,n){if(!e.length)return o;const t=e.filter(e=>zY(n,e.start,e.start+e.length)).sort((e,n)=>e.start-n.start);if(!t.length)return o;let r=0;return e=>{for(;;){if(r>=t.length)return!1;const n=t[r];if(e.end<=n.start)return!1;if(GY(e.pos,e.end,n.start,n.start+n.length))return!0;r++}};function o(){return!1}}(n.parseDiagnostics,e),n))}function Dme(e,n,t,r,o,{options:i,getRules:a,host:s},l,c,d){var p;const f=new Lpe(d,l,i);let m,h,_,g,v,T=-1;const S=[];if(o.advance(),o.isOnToken()){const a=d.getLineAndCharacterOfPosition(n.getStart(d)).line;let s=a;zv(n)&&(s=d.getLineAndCharacterOfPosition(Hp(n,d)).line),function n(t,r,a,s,l,u){if(!zY(e,t.getStart(d),t.getEnd()))return;const p=A(t,a,l,u);let f=r;rk(t,e=>{_(e,-1,t,p,a,s,!1)},e=>{g(e,t,a,p)});for(;o.isOnToken()&&o.getTokenFullStart()<e.end;){const n=o.readTokenInfo(t);if(n.token.end>Math.min(t.end,e.end))break;y(n,t,p,t)}function _(r,a,s,l,c,u,p,m){if(dt.assert(!ry(r)),Np(r)||Pp(s,r))return a;const h=r.getStart(d),_=d.getLineAndCharacterOfPosition(h).line;let g=_;zv(r)&&(g=d.getLineAndCharacterOfPosition(Hp(r,d)).line);let b=-1;if(p&&eT(e,s)&&(b=function(e,n,t,r,o){if(zY(r,e,n)||WY(r,e,n)){if(-1!==o)return o}else{const n=d.getLineAndCharacterOfPosition(e).line,r=kY(e,d),o=cme.findFirstNonWhitespaceColumn(r,e,d,i);if(n!==t||e===o){const e=cme.getBaseIndentation(i);return e>o?e:o}}return-1}(h,r.end,c,e,a),-1!==b&&(a=b)),!zY(e,r.pos,r.end))return r.end<e.pos&&o.skipToEndOf(r),a;if(0===r.getFullWidth())return a;for(;o.isOnToken()&&o.getTokenFullStart()<e.end;){const n=o.readTokenInfo(t);if(n.token.end>e.end)return a;if(n.token.end>h){n.token.pos>h&&o.skipToStartOf(r);break}y(n,t,l,t)}if(!o.isOnToken()||o.getTokenFullStart()>=e.end)return a;if(Lc(r)){const e=o.readTokenInfo(r);if(12!==r.kind)return dt.assert(e.token.end===r.end,"Token end is child end"),y(e,t,l,r),a}const S=171===r.kind?_:u,E=function(e,n,t,r,o,a){const s=cme.shouldIndentChildNode(i,e)?i.indentSize:0;return a===n?{indentation:n===v?T:o.getIndentation(),delta:Math.min(i.indentSize,o.getDelta(e)+s)}:-1===t?21===e.kind&&n===v?{indentation:T,delta:o.getDelta(e)}:cme.childStartsOnTheSameLineWithElseInIfStatement(r,e,n,d)||cme.childIsUnindentedBranchOfConditionalExpression(r,e,n,d)||cme.argumentStartsOnSameLineAsPreviousArgument(r,e,n,d)?{indentation:o.getIndentation(),delta:s}:{indentation:o.getIndentation()+o.getDelta(e),delta:s}:{indentation:t,delta:s}}(r,_,b,t,l,S);return n(r,f,_,g,E.indentation,E.delta),f=t,m&&210===s.kind&&-1===a&&(a=E.indentation),a}function g(n,r,a,s){dt.assert(kc(n)),dt.assert(!ry(n));const l=function(e,n){switch(e.kind){case 177:case 263:case 219:case 175:case 174:case 220:case 180:case 181:case 185:case 186:case 178:case 179:if(e.typeParameters===n)return 30;if(e.parameters===n)return 21;break;case 214:case 215:if(e.typeArguments===n)return 30;if(e.arguments===n)return 21;break;case 264:case 232:case 265:case 266:if(e.typeParameters===n)return 30;break;case 184:case 216:case 187:case 234:case 206:if(e.typeArguments===n)return 30;break;case 188:return 19}return 0}(r,n);let c=s,u=a;if(!zY(e,n.pos,n.end))return void(n.end<e.pos&&o.skipToEndOf(n));if(0!==l)for(;o.isOnToken()&&o.getTokenFullStart()<e.end;){const e=o.readTokenInfo(r);if(e.token.end>n.pos)break;if(e.token.kind===l){let n;if(u=d.getLineAndCharacterOfPosition(e.token.pos).line,y(e,r,s,r),-1!==T)n=T;else{const t=kY(e.token.pos,d);n=cme.findFirstNonWhitespaceColumn(t,e.token.pos,d,i)}c=A(r,a,n,i.indentSize)}else y(e,r,s,r)}let p=-1;for(let e=0;e<n.length;e++){p=_(n[e],p,t,c,u,u,!0,0===e)}const f=function(e){switch(e){case 21:return 22;case 30:return 32;case 19:return 20}return 0}(l);if(0!==f&&o.isOnToken()&&o.getTokenFullStart()<e.end){let e=o.readTokenInfo(r);28===e.token.kind&&(y(e,r,c,r),e=o.isOnToken()?o.readTokenInfo(r):void 0),e&&e.token.kind===f&&eT(r,e.token)&&y(e,r,c,r,!0)}}function y(n,t,r,i,a){dt.assert(eT(t,n.token));const s=o.lastTrailingTriviaWasNewLine();let l=!1;n.leadingTrivia&&R(n.leadingTrivia,t,f,r);let u=0;const p=eT(e,n.token),_=d.getLineAndCharacterOfPosition(n.token.pos);if(p){const e=c(n.token),o=h;if(u=I(n.token,_,t,f,r),!e)if(0===u){const e=o&&d.getLineAndCharacterOfPosition(o.end).line;l=s&&_.line!==e}else l=1===u}if(n.trailingTrivia&&(m=ye(n.trailingTrivia).end,R(n.trailingTrivia,t,f,r)),l){const e=p&&!c(n.token)?r.getIndentationForToken(_.line,n.token.kind,i,!!a):-1;let t=!0;if(n.leadingTrivia){const o=r.getIndentationForComment(n.token.kind,e,i);t=x(n.leadingTrivia,o,t,e=>C(e.pos,o,!1))}-1!==e&&t&&(C(n.token.pos,e,1===u),v=_.line,T=e)}o.advance(),f=t}}(n,n,a,s,t,r)}const E=o.getCurrentLeadingTrivia();if(E){const r=cme.nodeWillIndentChild(i,n,void 0,d,!1)?t+i.indentSize:t;x(E,r,!0,e=>{I(e,d.getLineAndCharacterOfPosition(e.pos),n,n,void 0),C(e.pos,r,!1)}),!1!==i.trimTrailingWhitespace&&function(n){let t=h?h.end:e.pos;for(const e of n)M$(e.kind)&&(t<e.pos&&L(t,e.pos-1,h),t=e.end+1);t<e.end&&L(t,e.end,h)}(E)}if(h&&o.getTokenFullStart()>=e.end){const e=o.isOnEOF()?o.readEOFTokenRange():o.isOnToken()?o.readTokenInfo(n).token:void 0;if(e&&e.pos===m){const t=(null==(p=p$(e.end,d,n))?void 0:p.parent)||_;D(e,d.getLineAndCharacterOfPosition(e.pos).line,t,h,g,_,t,void 0)}}return S;function A(e,n,t,r){return{getIndentationForComment:(e,n,r)=>{switch(e){case 20:case 24:case 22:return t+o(r)}return-1!==n?n:t},getIndentationForToken:(r,i,a,s)=>!s&&function(t,r,o){switch(r){case 19:case 20:case 22:case 93:case 117:case 60:return!1;case 44:case 32:switch(o.kind){case 287:case 288:case 286:return!1}break;case 23:case 24:if(201!==o.kind)return!1}return n!==t&&!(zv(e)&&r===function(e){if(CL(e)){const n=y(e.modifiers,td,b(e.modifiers,CD));if(n)return n.kind}switch(e.kind){case 264:return 86;case 265:return 120;case 263:return 100;case 267:return 267;case 178:return 139;case 179:return 153;case 175:if(e.asteriskToken)return 42;case 173:case 170:const n=Dl(e);if(n)return n.kind}}(e))}(r,i,a)?t+o(a):t,getIndentation:()=>t,getDelta:o,recomputeIndentation:(n,o)=>{cme.shouldIndentChildNode(i,o,e,d)&&(t+=n?i.indentSize:-i.indentSize,r=cme.shouldIndentChildNode(i,e)?i.indentSize:0)}};function o(n){return cme.nodeWillIndentChild(i,e,n,d,!0)?r:0}}function x(n,t,r,o){for(const i of n){const n=eT(e,i);switch(i.kind){case 3:n&&N(i,t,!r),r=!1;break;case 2:r&&n&&o(i),r=!1;break;case 4:r=!0}}return r}function R(n,t,r,o){for(const i of n)if(M$(i.kind)&&eT(e,i)){I(i,d.getLineAndCharacterOfPosition(i.pos),t,r,o)}}function I(n,t,r,o,i){let a=0;if(!c(n))if(h)a=D(n,t.line,r,h,g,_,o,i);else{M(d.getLineAndCharacterOfPosition(e.pos).line,t.line)}return h=n,m=n.end,_=r,g=t.line,a}function D(e,n,t,r,o,l,c,p){f.updateContext(r,l,e,t,c);const m=a(f);let h=!1!==f.options.trimTrailingWhitespace,_=0;return m?u(m,a=>{if(_=function(e,n,t,r,o){const a=o!==t;switch(e.action){case 1:return 0;case 16:if(n.end!==r.pos)return k(n.end,r.pos-n.end),a?2:0;break;case 32:k(n.pos,n.end-n.pos);break;case 8:if(1!==e.flags&&t!==o)return 0;if(1!==o-t)return w(n.end,r.pos-n.end,ZQ(s,i)),a?0:1;break;case 4:if(1!==e.flags&&t!==o)return 0;if(1!==r.pos-n.end||32!==d.text.charCodeAt(n.end))return w(n.end,r.pos-n.end," "),a?2:0;break;case 64:!function(e,n){S.push(J$(e,0,n))}(n.end,";")}return 0}(a,r,o,e,n),p)switch(_){case 2:t.getStart(d)===e.pos&&p.recomputeIndentation(!1,c);break;case 1:t.getStart(d)===e.pos&&p.recomputeIndentation(!0,c);break;default:dt.assert(0===_)}h=h&&!(16&a.action)&&1!==a.flags}):h=h&&1!==e.kind,n!==o&&h&&M(o,n,r),_}function C(e,n,t){const r=Nme(n,i);if(t)w(e,0,r);else{const t=d.getLineAndCharacterOfPosition(e),o=Rp(t.line,d);(n!==function(e,n){let t=0;for(let r=0;r<n;r++)9===d.text.charCodeAt(e+r)?t+=i.tabSize-t%i.tabSize:t++;return t}(o,t.character)||function(e,n){return e!==d.text.substr(n,e.length)}(r,o))&&w(o,t.character,r)}}function N(e,n,t,r=!0){let o=d.getLineAndCharacterOfPosition(e.pos).line;const a=d.getLineAndCharacterOfPosition(e.end).line;if(o===a)return void(t||C(e.pos,n,!1));const s=[];let l=e.pos;for(let i=o;i<a;i++){const e=Dp(i,d);s.push({pos:l,end:e}),l=Rp(i+1,d)}if(r&&s.push({pos:l,end:e.end}),0===s.length)return;const c=Rp(o,d),u=cme.findFirstNonWhitespaceCharacterAndColumn(c,s[0].pos,d,i);let p=0;t&&(p=1,o++);const f=n-u.column;for(let m=p;m<s.length;m++,o++){const e=Rp(o,d),n=0===m?u:cme.findFirstNonWhitespaceCharacterAndColumn(s[m].pos,s[m].end,d,i),t=n.column+f;if(t>0){const r=Nme(t,i);w(e,n.character,r)}else k(e,n.character)}}function M(e,n,t){for(let r=e;r<n;r++){const e=Rp(r,d),n=Dp(r,d);if(t&&(M$(t.kind)||P$(t.kind))&&t.pos<=n&&t.end>n)continue;const o=P(e,n);-1!==o&&(dt.assert(o===e||!Ka(d.text.charCodeAt(o-1))),k(o,n+1-o))}}function P(e,n){let t=n;for(;t>=e&&Ka(d.text.charCodeAt(t));)t--;return t!==n?t+1:-1}function L(e,n,t){M(d.getLineAndCharacterOfPosition(e).line,d.getLineAndCharacterOfPosition(n).line+1,t)}function k(e,n){n&&S.push(J$(e,n,""))}function w(e,n,t){(n||t)&&S.push(J$(e,n,t))}}function Cme(e,n,t,r=s$(e,n)){const o=ml(r,IM);o&&(r=o.parent);if(r.getStart(e)<=n&&n<r.getEnd())return;const i=K((t=null===t?void 0:void 0===t?p$(n,e):t)&&ms(e.text,t.end),Tm(r,e));return i&&y(i,t=>FY(t,n)||n===t.end&&(2===t.kind||n===e.getFullWidth()))}function Nme(e,n){if((!ame||ame.tabSize!==n.tabSize||ame.indentSize!==n.indentSize)&&(ame={tabSize:n.tabSize,indentSize:n.indentSize},sme=lme=void 0),n.convertTabsToSpaces){let t;const r=Math.floor(e/n.indentSize),o=e%n.indentSize;return lme||(lme=[]),void 0===lme[r]?(t=tQ(" ",n.indentSize*r),lme[r]=t):t=lme[r],o?t+tQ(" ",o):t}{const t=Math.floor(e/n.tabSize),r=e-t*n.tabSize;let o;return sme||(sme=[]),void 0===sme[t]?sme[t]=o=tQ("\t",t):o=sme[t],r?o+tQ(" ",r):o}}(e=>{let n;var t;function r(e){return e.baseIndentSize||0}function o(e,n,t,o,s,l,c){var m;let h=e.parent;for(;h;){let r=!0;if(t){const n=e.getStart(s);r=n<t.pos||n>t.end}const g=i(h,e,s),y=g.line===n.line||p(h,e,n.line,s);if(r){const t=null==(m=f(e,s))?void 0:m[0];let r=_(e,s,c,!!t&&d(t,s).line>g.line);if(-1!==r)return r+o;if(r=a(e,h,n,y,s,c),-1!==r)return r+o}A(c,h,e,s,l)&&!y&&(o+=c.indentSize);const v=u(h,e,n.line,s);h=(e=h).parent,n=v?s.getLineAndCharacterOfPosition(e.getStart(s)):g}return o+r(c)}function i(e,n,t){const r=f(n,t),o=r?r.pos:e.getStart(t);return t.getLineAndCharacterOfPosition(o)}function a(e,n,t,r,o,i){return(fu(e)||hu(e))&&(308===n.kind||!r)?v(t,o,i):-1}let s;var l;function c(e,n,t,r){const o=u$(e,n,r);if(!o)return 0;if(19===o.kind)return 1;if(20===o.kind){return t===d(o,r).line?2:0}return 0}function d(e,n){return n.getLineAndCharacterOfPosition(e.getStart(n))}function u(e,n,t,r){if(!yC(e)||!S(e.arguments,n))return!1;return Ua(r,e.expression.getEnd()).line===t}function p(e,n,t,r){if(246===e.kind&&e.elseStatement===n){const n=qY(e,93,r);dt.assert(void 0!==n);return d(n,r).line===t}return!1}function f(e,n){return e.parent&&m(e.getStart(n),e.getEnd(),e.parent,n)}function m(e,n,t,r){switch(t.kind){case 184:return o(t.typeArguments);case 211:return o(t.properties);case 210:case 276:case 280:case 207:case 208:return o(t.elements);case 188:return o(t.members);case 263:case 219:case 220:case 175:case 174:case 180:case 177:case 186:case 181:return o(t.typeParameters)||o(t.parameters);case 178:return o(t.parameters);case 264:case 232:case 265:case 266:case 346:return o(t.typeParameters);case 215:case 214:return o(t.typeArguments)||o(t.arguments);case 262:return o(t.declarations)}function o(o){return o&&WY(function(e,n,t){const r=e.getChildren(t);for(let o=1;o<r.length-1;o++)if(r[o].pos===n.pos&&r[o].end===n.end)return{pos:r[o-1].end,end:r[o+1].getStart(t)};return n}(t,o,r),e,n)?o:void 0}}function h(e,n,t){return e?v(n.getLineAndCharacterOfPosition(e.pos),n,t):-1}function _(e,n,t,r){if(e.parent&&262===e.parent.kind)return-1;const o=f(e,n);if(o){const i=o.indexOf(e);if(-1!==i){const e=g(o,i,n,t);if(-1!==e)return e}return h(o,n,t)+(r?t.indentSize:0)}return-1}function g(e,n,t,r){dt.assert(n>=0&&n<e.length);let o=d(e[n],t);for(let i=n-1;i>=0;i--){if(28===e[i].kind)continue;if(t.getLineAndCharacterOfPosition(e[i].end).line!==o.line)return v(o,t,r);o=d(e[i],t)}return-1}function v(e,n,t){const r=n.getPositionOfLineAndCharacter(e.line,0);return T(r,r+e.character,n,t)}function b(e,n,t,r){let o=0,i=0;for(let a=e;a<n;a++){const e=t.text.charCodeAt(a);if(!Ka(e))break;9===e?i+=r.tabSize+i%r.tabSize:i++,o++}return{column:i,character:o}}function T(e,n,t,r){return b(e,n,t,r).column}function E(e,n,t,r,o){const i=t?t.kind:0;switch(n.kind){case 245:case 264:case 232:case 265:case 267:case 266:case 210:case 242:case 269:case 211:case 188:case 201:case 190:case 218:case 212:case 214:case 215:case 244:case 278:case 254:case 228:case 208:case 207:case 287:case 290:case 286:case 295:case 174:case 180:case 181:case 170:case 185:case 186:case 197:case 216:case 224:case 280:case 276:case 282:case 277:case 173:case 297:case 298:return!0;case 270:return e.indentSwitchCase??!0;case 261:case 304:case 227:if(!e.indentMultiLineObjectLiteralBeginningOnBlankLine&&r&&211===i)return x(r,t);if(227===n.kind&&r&&t&&285===i){return r.getLineAndCharacterOfPosition(es(r.text,n.pos)).line!==r.getLineAndCharacterOfPosition(es(r.text,t.pos)).line}if(227!==n.kind)return!0;break;case 247:case 248:case 250:case 251:case 249:case 246:case 263:case 219:case 175:case 177:case 178:case 179:return 242!==i;case 220:return r&&218===i?x(r,t):242!==i;case 279:return 280!==i;case 273:return 274!==i||!!t.namedBindings&&276!==t.namedBindings.kind;case 285:return 288!==i;case 289:return 291!==i;case 194:case 193:case 239:if(188===i||190===i||201===i)return!1;break;case 259:if(242===i)return!1}return o}function A(e,n,t,r,o=!1){return E(e,n,t,r,!1)&&!(o&&t&&function(e,n){switch(e){case 254:case 258:case 252:case 253:return 242!==n.kind;default:return!1}}(t.kind,n))}function x(e,n){const t=es(e.text,n.pos);return e.getLineAndCharacterOfPosition(t).line===e.getLineAndCharacterOfPosition(n.end).line}(t=n||(n={}))[t.Unknown=-1]="Unknown",e.getIndentation=function(e,n,t,i=!1){if(e>n.text.length)return r(t);if(0===t.indentStyle)return 0;const a=p$(e,n,void 0,!0),s=Cme(n,e,a||null);if(s&&3===s.kind)return function(e,n,t,r){const o=Ua(e,n).line-1,i=Ua(e,r.pos).line;if(dt.assert(i>=0),o<=i)return T(Rp(i,e),n,e,t);const a=Rp(o,e),{column:s,character:l}=b(a,n,e,t);if(0===s)return s;const c=e.text.charCodeAt(a+l);return 42===c?s-1:s}(n,e,t,s);if(!a)return r(t);if(P$(a.kind)&&a.getStart(n)<=e&&e<a.end)return 0;const l=n.getLineAndCharacterOfPosition(e).line,u=s$(n,e),p=19===u.kind&&211===u.parent.kind;if(1===t.indentStyle||p)return function(e,n,t){let r=n;for(;r>0;){if(!Ha(e.text.charCodeAt(r)))break;r--}const o=kY(r,e);return T(o,r,e,t)}(n,e,t);if(28===a.kind&&227!==a.parent.kind){const e=function(e,n,t){const r=HY(e);return r&&r.listItemIndex>0?g(r.list.getChildren(),r.listItemIndex-1,n,t):-1}(a,n,t);if(-1!==e)return e}const f=function(e,n,t){return n&&m(e,e,n,t)}(e,a.parent,n);if(f&&!eT(f,a)){const e=[219,220].includes(u.parent.kind)?0:t.indentSize;return h(f,n,t)+e}return function(e,n,t,i,a,s){let l,u=t;for(;u;){if(VY(u,n,e)&&A(s,u,l,e,!0)){const n=d(u,e),r=c(t,u,i,e);return o(u,n,void 0,0!==r?a&&2===r?s.indentSize:0:i!==n.line?s.indentSize:0,e,!0,s)}const r=_(u,e,s,!0);if(-1!==r)return r;l=u,u=u.parent}return r(s)}(n,e,a,l,i,t)},e.getIndentationForNode=function(e,n,t,r){const i=t.getLineAndCharacterOfPosition(e.getStart(t));return o(e,i,n,0,t,!1,r)},e.getBaseIndentation=r,(l=s||(s={}))[l.Unknown=0]="Unknown",l[l.OpenBrace=1]="OpenBrace",l[l.CloseBrace=2]="CloseBrace",e.isArgumentAndStartLineOverlapsExpressionBeingCalled=u,e.childStartsOnTheSameLineWithElseInIfStatement=p,e.childIsUnindentedBranchOfConditionalExpression=function(e,n,t,r){if(PC(e)&&(n===e.whenTrue||n===e.whenFalse)){const o=Ua(r,e.condition.end).line;if(n===e.whenTrue)return t===o;{const n=d(e.whenTrue,r).line,i=Ua(r,e.whenTrue.end).line;return o===n&&i===t}}return!1},e.argumentStartsOnSameLineAsPreviousArgument=function(e,n,t,r){if(zd(e)){if(!e.arguments)return!1;const o=y(e.arguments,e=>e.pos===n.pos);if(!o)return!1;const i=e.arguments.indexOf(o);if(0===i)return!1;if(t===Ua(r,e.arguments[i-1].getEnd()).line)return!0}return!1},e.getContainingList=f,e.findFirstNonWhitespaceCharacterAndColumn=b,e.findFirstNonWhitespaceColumn=T,e.nodeWillIndentChild=E,e.shouldIndentChildNode=A})(cme||(cme={}));var Mme={};function Pme(e,n,t){let r=!1;return n.forEach(n=>{const o=ml(s$(e,n.pos),e=>eT(e,n));o&&rk(o,function o(i){var a;if(!r){if(dD(i)&&OY(n,i.getStart(e))){const n=t.resolveName(i.text,i,-1,!1);if(n&&n.declarations)for(const t of n.declarations)if(_6(t)||i.text&&e.symbol&&(null==(a=e.symbol.exports)?void 0:a.has(i.escapedText)))return void(r=!0)}i.forEachChild(o)}})}),r}t(Mme,{preparePasteEdits:()=>Pme});var Lme={};t(Lme,{pasteEditsProvider:()=>wme});var kme="providePostPasteEdits";function wme(e,n,t,r,o,i,a,s){const l=tpe.ChangeTracker.with({host:o,formatContext:a,preferences:i},l=>function(e,n,t,r,o,i,a,s,l){let c;n.length!==t.length&&(c=1===n.length?n[0]:n.join(ZQ(a.host,a.options)));const d=[];let u,p=e.text;for(let f=t.length-1;f>=0;f--){const{pos:e,end:r}=t[f];p=c?p.slice(0,e)+c+p.slice(r):p.slice(0,e)+n[f]+p.slice(r)}if(dt.checkDefined(o.runWithTemporaryFileUpdate).call(o,e.fileName,p,(p,f,m)=>{if(u=G5.createImportAdder(m,p,i,o),null==r?void 0:r.range){dt.assert(r.range.length===n.length),r.range.forEach(e=>{const n=r.file.statements,t=b(n,n=>n.end>e.pos);if(-1===t)return;let o=b(n,n=>n.end>=e.end,t);-1!==o&&e.end<=n[o].getStart()&&o--,d.push(...n.slice(t,-1===o?n.length:o+1))}),dt.assertIsDefined(f,"no original program found");const t=f.getTypeChecker(),i=function({file:e,range:n}){const t=n[0].pos,r=n[n.length-1].end,o=s$(e,t),i=d$(e,t)??s$(e,r);return{pos:dD(o)&&t<=o.getStart(e)?o.getFullStart():t,end:dD(i)&&r===i.getEnd()?tpe.getAdjustedEndPosition(e,i,{}):r}}(r),a=f6(r.file,d,t,S6(m,d,t),i),s=!h0(e.fileName,f,o,!!r.file.commonJsModuleIndicator);H8(r.file,a.targetFileImportsFromOldFile,l,s),R6(r.file,a.oldImportsNeededByTargetFile,a.targetFileImportsFromOldFile,t,p,u)}else{const e={sourceFile:m,program:f,cancellationToken:s,host:o,preferences:i,formatContext:a};let r=0;t.forEach((t,o)=>{const i=t.end-t.pos,a=c??n[o],s=t.pos+r,l={pos:s,end:s+a.length};r+=a.length-i;const d=ml(s$(e.sourceFile,l.pos),e=>eT(e,l));d&&rk(d,function n(t){if(dD(t)&&OY(l,t.getStart(m))&&!(null==p?void 0:p.getTypeChecker().resolveName(t.text,t,-1,!1)))return u.addImportForUnresolvedIdentifier(e,t,!0);t.forEachChild(n)})})}u.writeFixes(l,hQ(r?r.file:e,i))}),!u.hasFixes())return;t.forEach((t,r)=>{l.replaceRangeWithText(e,{pos:t.pos,end:t.end},c??n[r])})}(e,n,t,r,o,i,a,s,l));return{edits:l,fixId:kme}}var Ome,Fme={};function Wme(e,n,t,r,o){let i=n?"DeprecationError: ":"DeprecationWarning: ";return i+=`'${e}' `,i+=r?`has been deprecated since v${r}`:"is deprecated",i+=n?" and can no longer be used.":t?` and will no longer be usable after v${t}.`:".",i+=o?` ${HT(o,[e])}`:"",i}function zme(e,n={}){const t="string"==typeof n.typeScriptVersion?new vt(n.typeScriptVersion):n.typeScriptVersion??Ome??(Ome=new vt(i)),r="string"==typeof n.errorAfter?new vt(n.errorAfter):n.errorAfter,o="string"==typeof n.warnAfter?new vt(n.warnAfter):n.warnAfter,a="string"==typeof n.since?new vt(n.since):n.since??o,s=n.error||r&&t.compareTo(r)>=0,l=!o||t.compareTo(o)>=0;return s?function(e,n,t,r){const o=Wme(e,!0,n,t,r);return()=>{throw new TypeError(o)}}(e,r,a,n.message):l?function(e,n,t,r){let o=!1;return()=>{o||(dt.log.warn(Wme(e,!1,n,t,r)),o=!0)}}(e,r,a,n.message):tn}function Bme(e,n){return function(e,n){return function(){return e(),n.apply(this,arguments)}}(zme((null==n?void 0:n.name)??dt.getFunctionName(e),n),e)}function Gme(e,n,t,r){if(Object.defineProperty(i,"name",{...Object.getOwnPropertyDescriptor(i,"name"),value:e}),r)for(const a of Object.keys(r)){const t=+a;!isNaN(t)&&Ie(n,`${t}`)&&(n[t]=Bme(n[t],{...r[t],name:e}))}const o=function(e,n){return t=>{for(let r=0;Ie(e,`${r}`)&&Ie(n,`${r}`);r++){if((0,n[r])(t))return r}}}(n,t);return i;function i(...e){const t=o(e),r=void 0!==t?n[t]:void 0;if("function"==typeof r)return r(...e);throw new TypeError("Invalid arguments")}}function Vme(e){return{overload:n=>({bind:t=>({finish:()=>Gme(e,n,t),deprecate:r=>({finish:()=>Gme(e,n,t,r)})})})}}t(Fme,{ANONYMOUS:()=>IZ,AccessFlags:()=>Xr,AssertionLevel:()=>mn,AssignmentDeclarationKind:()=>io,AssignmentKind:()=>$_,Associativity:()=>oy,BreakpointResolver:()=>y5,BuilderFileEmit:()=>sH,BuilderProgramKind:()=>OH,BuilderState:()=>iH,CallHierarchy:()=>b5,CharacterCodes:()=>So,CheckFlags:()=>Vr,CheckMode:()=>rB,ClassificationType:()=>eY,ClassificationTypeNames:()=>ZX,CommentDirectiveType:()=>Er,Comparison:()=>a,CompletionInfoFlags:()=>KX,CompletionTriggerKind:()=>WX,Completions:()=>Pae,ContainerFlags:()=>tz,ContextFlags:()=>Lr,Debug:()=>dt,DiagnosticCategory:()=>ao,Diagnostics:()=>fa,DocumentHighlights:()=>L0,ElementFlags:()=>Jr,EmitFlags:()=>Ro,EmitHint:()=>No,EmitOnly:()=>Ir,EndOfLineState:()=>XX,ExitStatus:()=>Cr,ExportKind:()=>v0,Extension:()=>Eo,ExternalEmitHelpers:()=>Co,FileIncludeKind:()=>xr,FilePreprocessingDiagnosticsKind:()=>Rr,FileSystemEntryKind:()=>ii,FileWatcherEventKind:()=>zo,FindAllReferences:()=>kle,FlattenLevel:()=>kG,FlowFlags:()=>Sr,ForegroundColorEscapeSequences:()=>iU,FunctionFlags:()=>Og,GeneratedIdentifierFlags:()=>vr,GetLiteralTextFlags:()=>af,GoToDefinition:()=>Tce,HighlightSpanKind:()=>BX,IdentifierNameMap:()=>cG,ImportKind:()=>y0,ImportsNotUsedAsValues:()=>_o,IndentStyle:()=>GX,IndexFlags:()=>Yr,IndexKind:()=>eo,InferenceFlags:()=>ro,InferencePriority:()=>to,InlayHintKind:()=>zX,InlayHints:()=>zce,InternalEmitFlags:()=>Io,InternalNodeBuilderFlags:()=>wr,InternalSymbolName:()=>jr,IntersectionFlags:()=>Pr,InvalidatedProjectKind:()=>Cq,JSDocParsingMode:()=>Oo,JsDoc:()=>Uce,JsTyping:()=>rX,JsxEmit:()=>ho,JsxFlags:()=>_r,JsxReferenceKind:()=>$r,LanguageFeatureMinimumTarget:()=>Do,LanguageServiceMode:()=>kX,LanguageVariant:()=>bo,LexicalEnvironmentFlags:()=>Po,ListFormat:()=>Lo,LogLevel:()=>ut,MapCode:()=>dde,MemberOverrideStatus:()=>Nr,ModifierFlags:()=>hr,ModuleDetectionKind:()=>co,ModuleInstanceState:()=>QW,ModuleKind:()=>mo,ModuleResolutionKind:()=>lo,ModuleSpecifierEnding:()=>GE,NavigateTo:()=>i2,NavigationBar:()=>_2,NewLineKind:()=>go,NodeBuilderFlags:()=>kr,NodeCheckFlags:()=>Ur,NodeFactoryFlags:()=>iR,NodeFlags:()=>mr,NodeResolutionFeatures:()=>XF,ObjectFlags:()=>Kr,OperationCanceledException:()=>Ar,OperatorPrecedence:()=>cy,OrganizeImports:()=>_de,OrganizeImportsMode:()=>FX,OuterExpressionKinds:()=>Mo,OutliningElementsCollector:()=>Jde,OutliningSpanKind:()=>qX,OutputFileType:()=>JX,PackageJsonAutoImportPreference:()=>LX,PackageJsonDependencyGroup:()=>PX,PatternMatchKind:()=>a1,PollingInterval:()=>Bo,PollingWatchKind:()=>fo,PragmaKindFlags:()=>ko,PredicateSemantics:()=>yr,PreparePasteEdits:()=>Mme,PrivateIdentifierKind:()=>lI,ProcessLevel:()=>nV,ProgramUpdateLevel:()=>Oj,QuotePreference:()=>fQ,RegularExpressionFlags:()=>br,RelationComparisonResult:()=>gr,Rename:()=>rue,ScriptElementKind:()=>$X,ScriptElementKindModifier:()=>QX,ScriptKind:()=>yo,ScriptSnapshot:()=>xX,ScriptTarget:()=>vo,SemanticClassificationFormat:()=>OX,SemanticMeaning:()=>tY,SemicolonPreference:()=>VX,SignatureCheckMode:()=>oB,SignatureFlags:()=>Zr,SignatureHelp:()=>due,SignatureInfo:()=>aH,SignatureKind:()=>Qr,SmartSelectionRange:()=>Oue,SnippetKind:()=>xo,StatisticType:()=>hJ,StructureIsReused:()=>Dr,SymbolAccessibility:()=>Wr,SymbolDisplay:()=>que,SymbolDisplayPartKind:()=>HX,SymbolFlags:()=>Gr,SymbolFormatFlags:()=>Fr,SyntaxKind:()=>fr,Ternary:()=>oo,ThrottledCancellationToken:()=>c5,TokenClass:()=>YX,TokenFlags:()=>Tr,TransformFlags:()=>Ao,TypeFacts:()=>nB,TypeFlags:()=>Hr,TypeFormatFlags:()=>Or,TypeMapKind:()=>no,TypePredicateKind:()=>zr,TypeReferenceSerializationKind:()=>Br,UnionReduction:()=>Mr,UpToDateStatusType:()=>nq,VarianceFlags:()=>qr,Version:()=>vt,VersionRange:()=>Tt,WatchDirectoryFlags:()=>To,WatchDirectoryKind:()=>po,WatchFileKind:()=>uo,WatchLogLevel:()=>Uj,WatchType:()=>zK,accessPrivateIdentifier:()=>NG,addEmitFlags:()=>RR,addEmitHelper:()=>KR,addEmitHelpers:()=>qR,addInternalEmitFlags:()=>DR,addNodeFactoryPatcher:()=>sR,addObjectAllocatorPatcher:()=>jT,addRange:()=>ae,addRelatedInfo:()=>dA,addSyntheticLeadingComment:()=>zR,addSyntheticTrailingComment:()=>VR,addToSeen:()=>AT,advancedAsyncSuperHelper:()=>jI,affectsDeclarationPathOptionDeclarations:()=>jk,affectsEmitOptionDeclarations:()=>Vk,allKeysStartWithDot:()=>RW,altDirectorySeparator:()=>fi,and:()=>Zn,append:()=>re,appendIfUnique:()=>le,arrayFrom:()=>Le,arrayIsEqualTo:()=>ee,arrayIsHomogeneous:()=>RA,arrayOf:()=>Pe,arrayReverseIterator:()=>de,arrayToMap:()=>Oe,arrayToMultiMap:()=>We,arrayToNumericMap:()=>Fe,assertType:()=>tt,assign:()=>ke,asyncSuperHelper:()=>VI,attachFileToDiagnostics:()=>QT,base64decode:()=>Db,base64encode:()=>Ib,binarySearch:()=>Ee,binarySearchKey:()=>Ae,bindSourceFile:()=>iz,breakIntoCharacterSpans:()=>E1,breakIntoWordSpans:()=>A1,buildLinkParts:()=>$Q,buildOpts:()=>ew,buildOverload:()=>Vme,bundlerModuleNameResolver:()=>$F,canBeConvertedToAsync:()=>J1,canHaveDecorators:()=>NL,canHaveExportModifier:()=>XA,canHaveFlowNode:()=>F_,canHaveIllegalDecorators:()=>YP,canHaveIllegalModifiers:()=>$P,canHaveIllegalType:()=>JP,canHaveIllegalTypeParameters:()=>XP,canHaveJSDoc:()=>W_,canHaveLocals:()=>du,canHaveModifiers:()=>CL,canHaveModuleSpecifier:()=>b_,canHaveSymbol:()=>cu,canIncludeBindAndCheckDiagnostics:()=>gA,canJsonReportNoInputFiles:()=>EO,canProduceDiagnostics:()=>kV,canUsePropertyAccess:()=>$A,canWatchAffectingLocation:()=>iK,canWatchAtTypes:()=>tK,canWatchDirectoryOrFile:()=>eK,canWatchDirectoryOrFilePath:()=>nK,cartesianProduct:()=>it,cast:()=>nn,chainBundle:()=>tG,chainDiagnosticMessages:()=>rS,changeAnyExtension:()=>Yi,changeCompilerHostLikeToUseCache:()=>nU,changeExtension:()=>YE,changeFullExtension:()=>$i,changesAffectModuleResolution:()=>tp,changesAffectingProgramStructure:()=>rp,characterCodeToRegularExpressionFlag:()=>Oa,childIsDecorated:()=>yh,classElementOrClassElementParameterIsDecorated:()=>bh,classHasClassThisAssignment:()=>HG,classHasDeclaredOrExplicitlyAssignedName:()=>$G,classHasExplicitlyAssignedName:()=>YG,classOrConstructorParameterIsDecorated:()=>vh,classicNameResolver:()=>HW,classifier:()=>z5,cleanExtendedConfigCache:()=>zj,clear:()=>I,clearMap:()=>hT,clearSharedExtendedConfigFileWatcher:()=>Wj,climbPastPropertyAccess:()=>_Y,clone:()=>Ge,cloneCompilerOptions:()=>F$,closeFileWatcher:()=>aT,closeFileWatcherOf:()=>qj,codefix:()=>G5,collapseTextChangeRangesAcrossMultipleVersions:()=>el,collectExternalModuleInfo:()=>aG,combine:()=>oe,combinePaths:()=>zi,commandLineOptionOfCustomType:()=>Yk,commentPragmas:()=>wo,commonOptionsWithBuild:()=>Ok,compact:()=>ne,compareBooleans:()=>kn,compareDataObjects:()=>mT,compareDiagnostics:()=>aS,compareEmitHelpers:()=>dI,compareNumberOfDirectorySeparators:()=>HE,comparePaths:()=>ta,comparePathsCaseInsensitive:()=>na,comparePathsCaseSensitive:()=>ea,comparePatternKeys:()=>DW,compareProperties:()=>Ln,compareStringsCaseInsensitive:()=>En,compareStringsCaseInsensitiveEslintCompatible:()=>An,compareStringsCaseSensitive:()=>xn,compareStringsCaseSensitiveUI:()=>Pn,compareTextSpans:()=>bn,compareValues:()=>vn,compilerOptionsAffectDeclarationPath:()=>XS,compilerOptionsAffectEmit:()=>JS,compilerOptionsAffectSemanticDiagnostics:()=>qS,compilerOptionsDidYouMeanDiagnostics:()=>hw,compilerOptionsIndicateEsModules:()=>sQ,computeCommonSourceDirectoryOfFilenames:()=>Yj,computeLineAndCharacterOfPosition:()=>Ga,computeLineOfPosition:()=>Va,computeLineStarts:()=>Fa,computePositionOfLineAndCharacter:()=>za,computeSignatureWithDiagnostics:()=>zH,computeSuggestionDiagnostics:()=>W1,computedOptions:()=>bS,concatenate:()=>K,concatenateDiagnosticMessageChains:()=>oS,consumesNodeCoreModules:()=>KZ,contains:()=>S,containsIgnoredPath:()=>FA,containsObjectRestOrSpread:()=>IL,containsParseError:()=>Tp,containsPath:()=>ra,convertCompilerOptionsForTelemetry:()=>nF,convertCompilerOptionsFromJson:()=>DO,convertJsonOption:()=>OO,convertToBase64:()=>Rb,convertToJson:()=>Kw,convertToObject:()=>Hw,convertToOptionsWithAbsolutePaths:()=>oO,convertToRelativePath:()=>sa,convertToTSConfig:()=>Xw,convertTypeAcquisitionFromJson:()=>CO,copyComments:()=>pZ,copyEntries:()=>lp,copyLeadingComments:()=>hZ,copyProperties:()=>je,copyTrailingAsLeadingComments:()=>gZ,copyTrailingComments:()=>_Z,couldStartTrivia:()=>Za,countWhere:()=>A,createAbstractBuilder:()=>$H,createAccessorPropertyBackingField:()=>TL,createAccessorPropertyGetRedirector:()=>SL,createAccessorPropertySetRedirector:()=>EL,createBaseNodeFactory:()=>Qx,createBinaryExpressionTrampoline:()=>mL,createBuilderProgram:()=>BH,createBuilderProgramUsingIncrementalBuildInfo:()=>HH,createBuilderStatusReporter:()=>lq,createCacheableExportInfoMap:()=>b0,createCachedDirectoryStructureHost:()=>wj,createClassifier:()=>P0,createCommentDirectivesMap:()=>jp,createCompilerDiagnostic:()=>nS,createCompilerDiagnosticForInvalidCustomType:()=>aw,createCompilerDiagnosticFromMessageChain:()=>tS,createCompilerHost:()=>$j,createCompilerHostFromProgramHost:()=>GK,createCompilerHostWorker:()=>eU,createDetachedDiagnostic:()=>XT,createDiagnosticCollection:()=>fy,createDiagnosticForFileFromMessageChain:()=>Xf,createDiagnosticForNode:()=>Vf,createDiagnosticForNodeArray:()=>jf,createDiagnosticForNodeArrayFromMessageChain:()=>Kf,createDiagnosticForNodeFromMessageChain:()=>Hf,createDiagnosticForNodeInSourceFile:()=>Uf,createDiagnosticForRange:()=>$f,createDiagnosticMessageChainFromDiagnostic:()=>Yf,createDiagnosticReporter:()=>_K,createDocumentPositionMapper:()=>$B,createDocumentRegistry:()=>J0,createDocumentRegistryInternal:()=>X0,createEmitAndSemanticDiagnosticsBuilderProgram:()=>YH,createEmitHelperFactory:()=>cI,createEmptyExports:()=>lP,createEvaluator:()=>bx,createExpressionForJsxElement:()=>fP,createExpressionForJsxFragment:()=>mP,createExpressionForObjectLiteralElementLike:()=>yP,createExpressionForPropertyName:()=>gP,createExpressionFromEntityName:()=>_P,createExternalHelpersImportDeclarationIfNeeded:()=>OP,createFileDiagnostic:()=>ZT,createFileDiagnosticFromMessageChain:()=>Jf,createFlowNode:()=>rz,createForOfBindingStatement:()=>hP,createFutureSourceFile:()=>g0,createGetCanonicalFileName:()=>Hn,createGetIsolatedDeclarationErrors:()=>FV,createGetSourceFile:()=>Qj,createGetSymbolAccessibilityDiagnosticForNode:()=>OV,createGetSymbolAccessibilityDiagnosticForNodeName:()=>wV,createGetSymbolWalker:()=>uz,createIncrementalCompilerHost:()=>$K,createIncrementalProgram:()=>QK,createJsxFactoryExpression:()=>pP,createLanguageService:()=>p5,createLanguageServiceSourceFile:()=>i5,createMemberAccessForPropertyName:()=>cP,createModeAwareCache:()=>OF,createModeAwareCacheKey:()=>wF,createModeMismatchDetails:()=>_p,createModuleNotFoundChain:()=>hp,createModuleResolutionCache:()=>GF,createModuleResolutionLoader:()=>DU,createModuleResolutionLoaderUsingGlobalCache:()=>pK,createModuleSpecifierResolutionHost:()=>lQ,createMultiMap:()=>He,createNameResolver:()=>Ex,createNodeConverters:()=>nR,createNodeFactory:()=>lR,createOptionNameMap:()=>tw,createOverload:()=>Gme,createPackageJsonImportFilter:()=>HZ,createPackageJsonInfo:()=>UZ,createParenthesizerRules:()=>Zx,createPatternMatcher:()=>l1,createPrinter:()=>Mj,createPrinterWithDefaults:()=>Ij,createPrinterWithRemoveComments:()=>Dj,createPrinterWithRemoveCommentsNeverAsciiEscape:()=>Cj,createPrinterWithRemoveCommentsOmitTrailingSemicolon:()=>Nj,createProgram:()=>UU,createProgramDiagnostics:()=>rH,createProgramHost:()=>UK,createPropertyNameNodeForIdentifierOrLiteral:()=>HA,createQueue:()=>Je,createRange:()=>Ob,createRedirectedBuilderProgram:()=>JH,createResolutionCache:()=>fK,createRuntimeTypeSerializer:()=>lV,createScanner:()=>vs,createSemanticDiagnosticsBuilderProgram:()=>XH,createSet:()=>Xe,createSolutionBuilder:()=>pq,createSolutionBuilderHost:()=>dq,createSolutionBuilderWithWatch:()=>fq,createSolutionBuilderWithWatchHost:()=>uq,createSortedArray:()=>$,createSourceFile:()=>sk,createSourceMapGenerator:()=>PB,createSourceMapSource:()=>bR,createSuperAccessVariableStatement:()=>pV,createSymbolTable:()=>Qu,createSymlinkCache:()=>nE,createSyntacticTypeNodeBuilder:()=>tX,createSystemWatchFunctions:()=>li,createTextChange:()=>X$,createTextChangeFromStartLength:()=>J$,createTextChangeRange:()=>Qs,createTextRangeFromNode:()=>H$,createTextRangeFromSpan:()=>q$,createTextSpan:()=>Js,createTextSpanFromBounds:()=>Xs,createTextSpanFromNode:()=>j$,createTextSpanFromRange:()=>K$,createTextSpanFromStringLiteralLikeContent:()=>U$,createTextWriter:()=>Fy,createTokenRange:()=>Gb,createTypeChecker:()=>pB,createTypeReferenceDirectiveResolutionCache:()=>VF,createTypeReferenceResolutionLoader:()=>MU,createWatchCompilerHost:()=>ZK,createWatchCompilerHostOfConfigFile:()=>qK,createWatchCompilerHostOfFilesAndCompilerOptions:()=>JK,createWatchFactory:()=>BK,createWatchHost:()=>WK,createWatchProgram:()=>eq,createWatchStatusReporter:()=>bK,createWriteFileMeasuringIO:()=>Zj,declarationNameToString:()=>Of,decodeMappings:()=>BB,decodedTextSpanIntersectsWith:()=>js,deduplicate:()=>Y,defaultHoverMaximumTruncationLength:()=>Xu,defaultInitCompilerOptions:()=>iw,defaultMaximumTruncationLength:()=>qu,diagnosticCategoryName:()=>so,diagnosticToString:()=>d0,diagnosticsEqualityComparer:()=>dS,directoryProbablyExists:()=>Pb,directorySeparator:()=>pi,displayPart:()=>WQ,displayPartsToString:()=>e5,disposeEmitNodes:()=>ER,documentSpansEqual:()=>DQ,dumpTracingLegend:()=>pr,elementAt:()=>pe,elideNodes:()=>_L,emitDetachedComments:()=>Av,emitFiles:()=>Ej,emitFilesAndReportErrors:()=>kK,emitFilesAndReportErrorsAndGetExitStatus:()=>wK,emitModuleKindIsNonNodeESM:()=>WS,emitNewLineBeforeLeadingCommentOfPosition:()=>Ev,emitResolverSkipsTypeChecking:()=>Sj,emitSkippedWithNoDiagnostics:()=>XU,emptyArray:()=>s,emptyFileSystemEntries:()=>sA,emptyMap:()=>l,emptyOptions:()=>wX,endsWith:()=>Fn,ensurePathIsNonModuleName:()=>Xi,ensureScriptKind:()=>AE,ensureTrailingDirectorySeparator:()=>Ji,entityNameToString:()=>Gf,enumerateInsertsAndDeletes:()=>ot,equalOwnProperties:()=>we,equateStringsCaseInsensitive:()=>_n,equateStringsCaseSensitive:()=>gn,equateValues:()=>hn,escapeJsxAttributeString:()=>My,escapeLeadingUnderscores:()=>gl,escapeNonAsciiString:()=>Ry,escapeSnippetText:()=>jA,escapeString:()=>Ay,escapeTemplateSubstitution:()=>hy,evaluatorResult:()=>vx,every:()=>g,exclusivelyPrefixedNodeCoreModules:()=>Nx,executeCommandLine:()=>PJ,expandPreOrPostfixIncrementOrDecrementExpression:()=>vP,explainFiles:()=>DK,explainIfFileIsRedirectAndImpliedFormat:()=>CK,exportAssignmentIsAlias:()=>yg,expressionResultIsUnused:()=>OA,extend:()=>Ve,extensionFromPath:()=>rA,extensionIsTS:()=>nA,extensionsNotSupportingExtensionlessResolution:()=>wE,externalHelpersModuleNameText:()=>Ku,factory:()=>vR,fileExtensionIs:()=>xi,fileExtensionIsOneOf:()=>Ri,fileIncludeReasonToDiagnostics:()=>PK,fileShouldUseJavaScriptRequire:()=>h0,filter:()=>x,filterMutate:()=>R,filterSemanticDiagnostics:()=>$U,find:()=>y,findAncestor:()=>ml,findBestPatternMatch:()=>Jn,findChildOfKind:()=>qY,findComputedPropertyNameCacheAssignment:()=>AL,findConfigFile:()=>Jj,findConstructorDeclaration:()=>Sx,findContainingList:()=>JY,findDiagnosticForNode:()=>XZ,findFirstNonJsxWhitespaceToken:()=>c$,findIndex:()=>b,findLast:()=>v,findLastIndex:()=>T,findListItemInfo:()=>HY,findModifier:()=>AQ,findNextToken:()=>u$,findPackageJson:()=>jZ,findPackageJsons:()=>VZ,findPrecedingMatchingToken:()=>S$,findPrecedingToken:()=>p$,findSuperStatementIndexPath:()=>gG,findTokenOnLeftOfPosition:()=>d$,findUseStrictPrologue:()=>AP,first:()=>he,firstDefined:()=>p,firstDefinedIterator:()=>f,firstIterator:()=>_e,firstOrOnly:()=>e0,firstOrUndefined:()=>fe,firstOrUndefinedIterator:()=>me,fixupCompilerOptions:()=>o2,flatMap:()=>P,flatMapIterator:()=>k,flatMapToMutable:()=>L,flatten:()=>M,flattenCommaList:()=>RL,flattenDestructuringAssignment:()=>wG,flattenDestructuringBinding:()=>WG,flattenDiagnosticMessageText:()=>gU,forEach:()=>d,forEachAncestor:()=>ip,forEachAncestorDirectory:()=>da,forEachAncestorDirectoryStoppingAtGlobalCache:()=>kW,forEachChild:()=>rk,forEachChildRecursively:()=>ok,forEachDynamicImportOrRequireCall:()=>Px,forEachEmittedFile:()=>rj,forEachEnclosingBlockScopeContainer:()=>wf,forEachEntry:()=>ap,forEachExternalModuleToImportFrom:()=>E0,forEachImportClauseDeclaration:()=>D_,forEachKey:()=>sp,forEachLeadingCommentRange:()=>ls,forEachNameInAccessChainWalkingLeft:()=>MT,forEachNameOfDefaultExport:()=>M0,forEachOptionsSyntaxByName:()=>Gx,forEachProjectReference:()=>Wx,forEachPropertyAssignment:()=>qm,forEachResolvedProjectReference:()=>Fx,forEachReturnStatement:()=>Mm,forEachRight:()=>u,forEachTrailingCommentRange:()=>cs,forEachTsConfigPropArray:()=>Ym,forEachUnique:()=>NQ,forEachYieldExpression:()=>Pm,formatColorAndReset:()=>fU,formatDiagnostic:()=>oU,formatDiagnostics:()=>rU,formatDiagnosticsWithColorAndContext:()=>_U,formatGeneratedName:()=>bL,formatGeneratedNamePart:()=>yL,formatLocation:()=>hU,formatMessage:()=>eS,formatStringFromArgs:()=>HT,formatting:()=>Mpe,generateDjb2Hash:()=>Fo,generateTSConfig:()=>rO,getAdjustedReferenceLocation:()=>r$,getAdjustedRenameLocation:()=>o$,getAliasDeclarationFromName:()=>_g,getAllAccessorDeclarations:()=>_v,getAllDecoratorsOfClass:()=>AG,getAllDecoratorsOfClassElement:()=>xG,getAllJSDocTags:()=>dc,getAllJSDocTagsOfKind:()=>uc,getAllKeys:()=>Ne,getAllProjectOutputs:()=>vj,getAllSuperTypeNodes:()=>Ag,getAllowImportingTsExtensions:()=>TS,getAllowJSCompilerOption:()=>OS,getAllowSyntheticDefaultImports:()=>DS,getAncestor:()=>Ig,getAnyExtensionFromPath:()=>ki,getAreDeclarationMapsEnabled:()=>wS,getAssignedExpandoInitializer:()=>Xh,getAssignedName:()=>Cl,getAssignmentDeclarationKind:()=>o_,getAssignmentDeclarationPropertyAccessKind:()=>m_,getAssignmentTargetKind:()=>Z_,getAutomaticTypeDirectiveNames:()=>DF,getBaseFileName:()=>Pi,getBinaryOperatorPrecedence:()=>uy,getBuildInfo:()=>xj,getBuildInfoFileVersionMap:()=>KH,getBuildInfoText:()=>Aj,getBuildOrderFromAnyBuildOrder:()=>sq,getBuilderCreationParameters:()=>FH,getBuilderFileEmit:()=>cH,getCanonicalDiagnostic:()=>Qf,getCheckFlags:()=>sT,getClassExtendsHeritageElement:()=>Sg,getClassLikeDeclarationOfSymbol:()=>vT,getCombinedLocalAndExportSymbolFlags:()=>dT,getCombinedModifierFlags:()=>sl,getCombinedNodeFlags:()=>cl,getCombinedNodeFlagsAlwaysIncludeJSDoc:()=>ll,getCommentRange:()=>wR,getCommonSourceDirectory:()=>gj,getCommonSourceDirectoryOfConfig:()=>yj,getCompilerOptionValue:()=>YS,getConditions:()=>RF,getConfigFileParsingDiagnostics:()=>BU,getConstantValue:()=>UR,getContainerFlags:()=>cz,getContainerNode:()=>NY,getContainingClass:()=>Zm,getContainingClassExcludingClassDecorators:()=>th,getContainingClassStaticBlock:()=>eh,getContainingFunction:()=>$m,getContainingFunctionDeclaration:()=>Qm,getContainingFunctionOrClassStaticBlock:()=>nh,getContainingNodeArray:()=>WA,getContainingObjectLiteralElement:()=>m5,getContextualTypeFromParent:()=>TZ,getContextualTypeFromParentOrAncestorTypeNode:()=>QY,getDeclarationDiagnostics:()=>WV,getDeclarationEmitExtensionForPath:()=>Jy,getDeclarationEmitOutputFilePath:()=>Ky,getDeclarationEmitOutputFilePathWorker:()=>qy,getDeclarationFileExtension:()=>vk,getDeclarationFromName:()=>fg,getDeclarationModifierFlagsFromSymbol:()=>lT,getDeclarationOfKind:()=>Yu,getDeclarationsOfKind:()=>$u,getDeclaredExpandoInitializer:()=>Jh,getDecorators:()=>Nl,getDefaultCompilerOptions:()=>n5,getDefaultFormatCodeSettings:()=>jX,getDefaultLibFileName:()=>Ms,getDefaultLibFilePath:()=>_5,getDefaultLikeExportInfo:()=>C0,getDefaultLikeExportNameFromDeclaration:()=>t0,getDefaultResolutionModeForFileWorker:()=>JU,getDiagnosticText:()=>Sw,getDiagnosticsWithinSpan:()=>YZ,getDirectoryPath:()=>Mi,getDirectoryToWatchFailedLookupLocation:()=>aK,getDirectoryToWatchFailedLookupLocationFromTypeRoot:()=>cK,getDocumentPositionMapper:()=>w1,getDocumentSpansEqualityComparer:()=>CQ,getESModuleInterop:()=>IS,getEditsForFileRename:()=>Q0,getEffectiveBaseTypeNode:()=>Tg,getEffectiveConstraintOfTypeParameter:()=>mc,getEffectiveContainerForJSDocTemplateTag:()=>j_,getEffectiveImplementsTypeNodes:()=>Eg,getEffectiveInitializer:()=>qh,getEffectiveJSDocHost:()=>K_,getEffectiveModifierFlags:()=>jv,getEffectiveModifierFlagsAlwaysIncludeJSDoc:()=>Uv,getEffectiveModifierFlagsNoCache:()=>Jv,getEffectiveReturnTypeNode:()=>vv,getEffectiveSetAccessorTypeAnnotationNode:()=>Tv,getEffectiveTypeAnnotationNode:()=>gv,getEffectiveTypeParameterDeclarations:()=>fc,getEffectiveTypeRoots:()=>vF,getElementOrPropertyAccessArgumentExpressionOrName:()=>p_,getElementOrPropertyAccessName:()=>f_,getElementsOfBindingOrAssignmentPattern:()=>KP,getEmitDeclarations:()=>PS,getEmitFlags:()=>tf,getEmitHelpers:()=>XR,getEmitModuleDetectionKind:()=>xS,getEmitModuleFormatOfFileWorker:()=>KU,getEmitModuleKind:()=>ES,getEmitModuleResolutionKind:()=>AS,getEmitScriptTarget:()=>SS,getEmitStandardClassFields:()=>KS,getEnclosingBlockScopeContainer:()=>kf,getEnclosingContainer:()=>Lf,getEncodedSemanticClassifications:()=>G0,getEncodedSyntacticClassifications:()=>K0,getEndLinePosition:()=>Dp,getEntityNameFromTypeNode:()=>fh,getEntrypointsFromPackageJsonInfo:()=>_W,getErrorCountForSummary:()=>SK,getErrorSpanForNode:()=>nm,getErrorSummaryText:()=>RK,getEscapedTextOfIdentifierOrLiteral:()=>Kg,getEscapedTextOfJsxAttributeName:()=>ix,getEscapedTextOfJsxNamespacedName:()=>lx,getExpandoInitializer:()=>Yh,getExportAssignmentExpression:()=>vg,getExportInfoMap:()=>D0,getExportNeedsImportStarHelper:()=>rG,getExpressionAssociativity:()=>iy,getExpressionPrecedence:()=>sy,getExternalHelpersModuleName:()=>kP,getExternalModuleImportEqualsDeclarationExpression:()=>Dh,getExternalModuleName:()=>x_,getExternalModuleNameFromDeclaration:()=>jy,getExternalModuleNameFromPath:()=>Uy,getExternalModuleNameLiteral:()=>WP,getExternalModuleRequireArgument:()=>Ch,getFallbackOptions:()=>Kj,getFileEmitOutput:()=>oH,getFileMatcherPatterns:()=>vE,getFileNamesFromConfigSpecs:()=>jO,getFileWatcherEventKind:()=>Qo,getFilesInErrorForSummary:()=>EK,getFirstConstructorWithBody:()=>sv,getFirstIdentifier:()=>ub,getFirstNonSpaceCharacterPosition:()=>dZ,getFirstProjectOutput:()=>Tj,getFixableErrorSpanExpression:()=>QZ,getFormatCodeSettingsForWriting:()=>u0,getFullWidth:()=>dp,getFunctionFlags:()=>Fg,getHeritageClause:()=>Rg,getHostSignatureFromJSDoc:()=>H_,getIdentifierAutoGenerate:()=>iI,getIdentifierGeneratedImportReference:()=>sI,getIdentifierTypeArguments:()=>rI,getImmediatelyInvokedFunctionExpression:()=>lh,getImpliedNodeFormatForEmitWorker:()=>qU,getImpliedNodeFormatForFile:()=>GU,getImpliedNodeFormatForFileWorker:()=>VU,getImportNeedsImportDefaultHelper:()=>iG,getImportNeedsImportStarHelper:()=>oG,getIndentString:()=>wy,getInferredLibraryNameResolveFrom:()=>kU,getInitializedVariables:()=>rT,getInitializerOfBinaryExpression:()=>h_,getInitializerOfBindingOrAssignmentElement:()=>BP,getInterfaceBaseTypeNodes:()=>xg,getInternalEmitFlags:()=>rf,getInvokedExpression:()=>mh,getIsFileExcluded:()=>I0,getIsolatedModules:()=>RS,getJSDocAugmentsTag:()=>zl,getJSDocClassTag:()=>Gl,getJSDocCommentRanges:()=>Sm,getJSDocCommentsAndTags:()=>z_,getJSDocDeprecatedTag:()=>$l,getJSDocDeprecatedTagNoCache:()=>Ql,getJSDocEnumTag:()=>Zl,getJSDocHost:()=>q_,getJSDocImplementsTags:()=>Bl,getJSDocOverloadTags:()=>U_,getJSDocOverrideTagNoCache:()=>Yl,getJSDocParameterTags:()=>Ll,getJSDocParameterTagsNoCache:()=>kl,getJSDocPrivateTag:()=>Ul,getJSDocPrivateTagNoCache:()=>Hl,getJSDocProtectedTag:()=>Kl,getJSDocProtectedTagNoCache:()=>ql,getJSDocPublicTag:()=>Vl,getJSDocPublicTagNoCache:()=>jl,getJSDocReadonlyTag:()=>Jl,getJSDocReadonlyTagNoCache:()=>Xl,getJSDocReturnTag:()=>nc,getJSDocReturnType:()=>ac,getJSDocRoot:()=>J_,getJSDocSatisfiesExpressionType:()=>rx,getJSDocSatisfiesTag:()=>rc,getJSDocTags:()=>lc,getJSDocTemplateTag:()=>tc,getJSDocThisTag:()=>ec,getJSDocType:()=>ic,getJSDocTypeAliasName:()=>qP,getJSDocTypeAssertionType:()=>CP,getJSDocTypeParameterDeclarations:()=>bv,getJSDocTypeParameterTags:()=>Ol,getJSDocTypeParameterTagsNoCache:()=>Fl,getJSDocTypeTag:()=>oc,getJSXImplicitImportBase:()=>QS,getJSXRuntimeImport:()=>ZS,getJSXTransformEnabled:()=>$S,getKeyForCompilerOptions:()=>PF,getLanguageVariant:()=>fS,getLastChild:()=>ET,getLeadingCommentRanges:()=>fs,getLeadingCommentRangesOfNode:()=>Tm,getLeftmostAccessExpression:()=>NT,getLeftmostExpression:()=>PT,getLibFileNameFromLibReference:()=>Ox,getLibNameFromLibReference:()=>wx,getLibraryNameFromLibFileName:()=>wU,getLineAndCharacterOfPosition:()=>Ua,getLineInfo:()=>OB,getLineOfLocalPosition:()=>iv,getLineStartPositionForPosition:()=>kY,getLineStarts:()=>Ba,getLinesBetweenPositionAndNextNonWhitespaceCharacter:()=>Zb,getLinesBetweenPositionAndPrecedingNonWhitespaceCharacter:()=>Qb,getLinesBetweenPositions:()=>ja,getLinesBetweenRangeEndAndRangeStart:()=>qb,getLinesBetweenRangeEndPositions:()=>Jb,getLiteralText:()=>sf,getLocalNameForExternalImport:()=>FP,getLocalSymbolForExportDefault:()=>Eb,getLocaleSpecificMessage:()=>JT,getLocaleTimeString:()=>vK,getMappedContextSpan:()=>kQ,getMappedDocumentSpan:()=>LQ,getMappedLocation:()=>PQ,getMatchedFileSpec:()=>NK,getMatchedIncludeSpec:()=>MK,getMeaningFromDeclaration:()=>rY,getMeaningFromLocation:()=>oY,getMembersOfDeclaration:()=>km,getModeForFileReference:()=>yU,getModeForResolutionAtIndex:()=>vU,getModeForUsageLocation:()=>TU,getModifiedTime:()=>Vo,getModifiers:()=>Ml,getModuleInstanceState:()=>ZW,getModuleNameStringLiteralAt:()=>tH,getModuleSpecifierEndingPreference:()=>VE,getModuleSpecifierResolverHost:()=>cQ,getNameForExportedSymbol:()=>n0,getNameFromImportAttribute:()=>gx,getNameFromIndexInfo:()=>Ff,getNameFromPropertyName:()=>oQ,getNameOfAccessExpression:()=>DT,getNameOfCompilerOptionValue:()=>eO,getNameOfDeclaration:()=>Dl,getNameOfExpando:()=>Qh,getNameOfJSDocTypedef:()=>xl,getNameOfScriptTarget:()=>HS,getNameOrArgument:()=>u_,getNameTable:()=>f5,getNamespaceDeclarationNode:()=>R_,getNewLineCharacter:()=>wb,getNewLineKind:()=>c0,getNewLineOrDefaultFromHost:()=>ZQ,getNewTargetContainer:()=>ah,getNextJSDocCommentLocation:()=>G_,getNodeChildren:()=>oP,getNodeForGeneratedName:()=>gL,getNodeId:()=>cB,getNodeKind:()=>MY,getNodeModifiers:()=>C$,getNodeModulePathParts:()=>qA,getNonAssignedNameOfDeclaration:()=>Il,getNonAssignmentOperatorForCompoundAssignment:()=>mG,getNonAugmentationDeclaration:()=>bf,getNonDecoratorTokenPosOfNode:()=>Hp,getNonIncrementalBuildInfoRoots:()=>qH,getNonModifierTokenPosOfNode:()=>Kp,getNormalizedAbsolutePath:()=>Vi,getNormalizedAbsolutePathWithoutRoot:()=>Hi,getNormalizedPathComponents:()=>Gi,getObjectFlags:()=>bT,getOperatorAssociativity:()=>ay,getOperatorPrecedence:()=>dy,getOptionFromName:()=>gw,getOptionsForLibraryResolution:()=>jF,getOptionsNameMap:()=>rw,getOptionsSyntaxByArrayElementValue:()=>zx,getOptionsSyntaxByValue:()=>Bx,getOrCreateEmitNode:()=>SR,getOrUpdate:()=>z,getOriginalNode:()=>fl,getOriginalNodeId:()=>ZB,getOutputDeclarationFileName:()=>dj,getOutputDeclarationFileNameWorker:()=>uj,getOutputExtension:()=>lj,getOutputFileNames:()=>bj,getOutputJSFileNameWorker:()=>fj,getOutputPathsFor:()=>aj,getOwnEmitOutputFilePath:()=>Hy,getOwnKeys:()=>Ce,getOwnValues:()=>Me,getPackageJsonTypesVersionsPaths:()=>yF,getPackageNameFromTypesPackageName:()=>VW,getPackageScopeForPath:()=>vW,getParameterSymbolFromJSDoc:()=>V_,getParentNodeInSpan:()=>SQ,getParseTreeNode:()=>_l,getParsedCommandLineOfConfigFile:()=>Ew,getPathComponents:()=>wi,getPathFromPathComponents:()=>Oi,getPathUpdater:()=>Z0,getPathsBasePath:()=>$y,getPatternFromSpec:()=>_E,getPendingEmitKindWithSeen:()=>TH,getPositionOfLineAndCharacter:()=>Wa,getPossibleGenericSignatures:()=>A$,getPossibleOriginalInputExtensionForExtension:()=>Xy,getPossibleOriginalInputPathWithoutChangingExt:()=>Yy,getPossibleTypeArgumentsInfo:()=>x$,getPreEmitDiagnostics:()=>tU,getPrecedingNonSpaceCharacterPosition:()=>uZ,getPrivateIdentifier:()=>DG,getProperties:()=>yG,getProperty:()=>De,getPropertyAssignmentAliasLikeExpression:()=>bg,getPropertyNameForPropertyNameNode:()=>jg,getPropertyNameFromType:()=>px,getPropertyNameOfBindingOrAssignmentElement:()=>jP,getPropertySymbolFromBindingElement:()=>TQ,getPropertySymbolsFromContextualType:()=>h5,getQuoteFromPreference:()=>_Q,getQuotePreference:()=>hQ,getRangesWhere:()=>H,getRefactorContextSpan:()=>$Z,getReferencedFileLocation:()=>WU,getRegexFromPattern:()=>bE,getRegularExpressionForWildcard:()=>fE,getRegularExpressionsForWildcards:()=>mE,getRelativePathFromDirectory:()=>aa,getRelativePathFromFile:()=>la,getRelativePathToDirectoryOrUrl:()=>ca,getRenameLocation:()=>mZ,getReplacementSpanForContextToken:()=>V$,getResolutionDiagnostic:()=>eH,getResolutionModeOverride:()=>AU,getResolveJsonModule:()=>MS,getResolvePackageJsonExports:()=>CS,getResolvePackageJsonImports:()=>NS,getResolvedExternalModuleName:()=>Gy,getResolvedModuleFromResolution:()=>fp,getResolvedTypeReferenceDirectiveFromResolution:()=>mp,getRestIndicatorOfBindingOrAssignmentElement:()=>VP,getRestParameterElementType:()=>Lm,getRightMostAssignedExpression:()=>e_,getRootDeclaration:()=>ny,getRootDirectoryOfResolutionCache:()=>dK,getRootLength:()=>Ni,getScriptKind:()=>aZ,getScriptKindFromFileName:()=>xE,getScriptTargetFeatures:()=>of,getSelectedEffectiveModifierFlags:()=>Bv,getSelectedSyntacticModifierFlags:()=>Gv,getSemanticClassifications:()=>z0,getSemanticJsxChildren:()=>py,getSetAccessorTypeAnnotationNode:()=>cv,getSetAccessorValueParameter:()=>lv,getSetExternalModuleIndicator:()=>gS,getShebang:()=>hs,getSingleVariableOfVariableStatement:()=>w_,getSnapshotText:()=>nQ,getSnippetElement:()=>$R,getSourceFileOfModule:()=>Ep,getSourceFileOfNode:()=>Sp,getSourceFilePathInNewDir:()=>ev,getSourceFileVersionAsHashFromText:()=>VK,getSourceFilesToEmit:()=>Qy,getSourceMapRange:()=>CR,getSourceMapper:()=>k1,getSourceTextOfNodeFromSourceFile:()=>qp,getSpanOfTokenAtPosition:()=>Zf,getSpellingSuggestion:()=>wn,getStartPositionOfLine:()=>Rp,getStartPositionOfRange:()=>$b,getStartsOnNewLine:()=>LR,getStaticPropertiesAndClassStaticBlock:()=>bG,getStrictOptionValue:()=>US,getStringComparer:()=>Rn,getSubPatternFromSpec:()=>gE,getSuperCallFromStatement:()=>hG,getSuperContainer:()=>sh,getSupportedCodeFixes:()=>t5,getSupportedExtensions:()=>OE,getSupportedExtensionsWithJsonIfResolveJsonModule:()=>FE,getSwitchedType:()=>RZ,getSymbolId:()=>dB,getSymbolNameForPrivateIdentifier:()=>qg,getSymbolTarget:()=>sZ,getSyntacticClassifications:()=>H0,getSyntacticModifierFlags:()=>Hv,getSyntacticModifierFlagsNoCache:()=>Xv,getSynthesizedDeepClone:()=>Vx,getSynthesizedDeepCloneWithReplacements:()=>jx,getSynthesizedDeepClones:()=>Hx,getSynthesizedDeepClonesWithReplacements:()=>Kx,getSyntheticLeadingComments:()=>FR,getSyntheticTrailingComments:()=>BR,getTargetLabel:()=>gY,getTargetOfBindingOrAssignmentElement:()=>GP,getTemporaryModuleResolutionState:()=>yW,getTextOfConstantValue:()=>lf,getTextOfIdentifierOrLiteral:()=>Hg,getTextOfJSDocComment:()=>pc,getTextOfJsxAttributeName:()=>ax,getTextOfJsxNamespacedName:()=>cx,getTextOfNode:()=>Zp,getTextOfNodeFromSourceText:()=>Qp,getTextOfPropertyName:()=>Bf,getThisContainer:()=>rh,getThisParameter:()=>dv,getTokenAtPosition:()=>s$,getTokenPosOfNode:()=>Up,getTokenSourceMapRange:()=>MR,getTouchingPropertyName:()=>i$,getTouchingToken:()=>a$,getTrailingCommentRanges:()=>ms,getTrailingSemicolonDeferringWriter:()=>Wy,getTransformers:()=>HV,getTsBuildInfoEmitOutputFilePath:()=>oj,getTsConfigObjectLiteralExpression:()=>Jm,getTsConfigPropArrayElementValue:()=>Xm,getTypeAnnotationNode:()=>yv,getTypeArgumentOrTypeParameterList:()=>N$,getTypeKeywordOfTypeOnlyImport:()=>RQ,getTypeNode:()=>nI,getTypeNodeIfAccessible:()=>DZ,getTypeParameterFromJsDoc:()=>X_,getTypeParameterOwner:()=>nl,getTypesPackageName:()=>BW,getUILocale:()=>Nn,getUniqueName:()=>fZ,getUniqueSymbolId:()=>cZ,getUseDefineForClassFields:()=>FS,getWatchErrorSummaryDiagnosticMessage:()=>AK,getWatchFactory:()=>Hj,group:()=>ze,groupBy:()=>Be,guessIndentation:()=>Wu,handleNoEmitOptions:()=>YU,handleWatchOptionsConfigDirTemplateSubstitution:()=>fO,hasAbstractModifier:()=>wv,hasAccessorModifier:()=>Fv,hasAmbientModifier:()=>Ov,hasChangesInResolutions:()=>bp,hasContextSensitiveParameters:()=>zA,hasDecorators:()=>zv,hasDocComment:()=>I$,hasDynamicName:()=>Gg,hasEffectiveModifier:()=>Nv,hasEffectiveModifiers:()=>Dv,hasEffectiveReadonlyModifier:()=>Wv,hasExtension:()=>Ai,hasImplementationTSFileExtension:()=>BE,hasIndexSignature:()=>xZ,hasInferredType:()=>Rx,hasInitializer:()=>Lu,hasInvalidEscape:()=>gy,hasJSDocNodes:()=>Mu,hasJSDocParameterTags:()=>Wl,hasJSFileExtension:()=>WE,hasJsonModuleEmitEnabled:()=>zS,hasOnlyExpressionInitializer:()=>ku,hasOverrideModifier:()=>kv,hasPossibleExternalModuleReference:()=>Mf,hasProperty:()=>Ie,hasPropertyAccessExpressionWithName:()=>yY,hasQuestionToken:()=>C_,hasRecordedExternalHelpers:()=>wP,hasResolutionModeOverride:()=>mx,hasRestParameter:()=>Gu,hasScopeMarker:()=>$d,hasStaticModifier:()=>Lv,hasSyntacticModifier:()=>Mv,hasSyntacticModifiers:()=>Cv,hasTSFileExtension:()=>zE,hasTabstop:()=>QA,hasTrailingDirectorySeparator:()=>Ii,hasType:()=>Pu,hasTypeArguments:()=>Y_,hasZeroOrOneAsteriskCharacter:()=>eE,hostGetCanonicalFileName:()=>By,hostUsesCaseSensitiveFileNames:()=>zy,idText:()=>vl,identifierIsThisKeyword:()=>hv,identifierToKeywordKind:()=>bl,identity:()=>sn,identitySourceMapConsumer:()=>QB,ignoreSourceNewlines:()=>ZR,ignoredPaths:()=>Zo,importFromModuleSpecifier:()=>S_,importSyntaxAffectsModuleResolution:()=>yS,indexOfAnyCharCode:()=>E,indexOfNode:()=>nf,indicesOf:()=>J,inferredTypesContainingFile:()=>LU,injectClassNamedEvaluationHelperBlockIfMissing:()=>QG,injectClassThisAssignmentIfMissing:()=>KG,insertImports:()=>xQ,insertSorted:()=>Q,insertStatementAfterCustomPrologue:()=>Bp,insertStatementAfterStandardPrologue:()=>zp,insertStatementsAfterCustomPrologue:()=>Wp,insertStatementsAfterStandardPrologue:()=>Fp,intersperse:()=>_,intrinsicTagNameToString:()=>dx,introducesArgumentsExoticObject:()=>Bm,inverseJsxOptionMap:()=>Mk,isAbstractConstructorSymbol:()=>yT,isAbstractModifier:()=>vD,isAccessExpression:()=>IT,isAccessibilityModifier:()=>O$,isAccessor:()=>hd,isAccessorModifier:()=>TD,isAliasableExpression:()=>gg,isAmbientModule:()=>pf,isAmbientPropertyDeclaration:()=>Ef,isAnyDirectorySeparator:()=>_i,isAnyImportOrBareOrAccessedRequire:()=>Df,isAnyImportOrReExport:()=>Pf,isAnyImportOrRequireStatement:()=>Cf,isAnyImportSyntax:()=>If,isAnySupportedFileExtension:()=>oA,isApplicableVersionedTypesKey:()=>MW,isArgumentExpressionOfElementAccess:()=>xY,isArray:()=>Ye,isArrayBindingElement:()=>Id,isArrayBindingOrAssignmentElement:()=>kd,isArrayBindingOrAssignmentPattern:()=>Ld,isArrayBindingPattern:()=>pC,isArrayLiteralExpression:()=>mC,isArrayLiteralOrObjectLiteralDestructuringPattern:()=>W$,isArrayTypeNode:()=>qD,isArrowFunction:()=>AC,isAsExpression:()=>zC,isAssertClause:()=>DN,isAssertEntry:()=>CN,isAssertionExpression:()=>Jd,isAssertsKeyword:()=>hD,isAssignmentDeclaration:()=>Kh,isAssignmentExpression:()=>sb,isAssignmentOperator:()=>ob,isAssignmentPattern:()=>Rd,isAssignmentTarget:()=>eg,isAsteriskToken:()=>oD,isAsyncFunction:()=>Wg,isAsyncModifier:()=>mD,isAutoAccessorPropertyDeclaration:()=>_d,isAwaitExpression:()=>DC,isAwaitKeyword:()=>_D,isBigIntLiteral:()=>KI,isBinaryExpression:()=>MC,isBinaryLogicalOperator:()=>Qv,isBinaryOperatorToken:()=>sL,isBindableObjectDefinePropertyCall:()=>i_,isBindableStaticAccessExpression:()=>l_,isBindableStaticElementAccessExpression:()=>c_,isBindableStaticNameExpression:()=>d_,isBindingElement:()=>fC,isBindingElementOfBareOrAccessedRequire:()=>Gh,isBindingName:()=>id,isBindingOrAssignmentElement:()=>Cd,isBindingOrAssignmentPattern:()=>Nd,isBindingPattern:()=>xd,isBlock:()=>JC,isBlockLike:()=>_0,isBlockOrCatchScoped:()=>df,isBlockScope:()=>Af,isBlockScopedContainerTopLevel:()=>_f,isBooleanLiteral:()=>cd,isBreakOrContinueStatement:()=>Dc,isBreakStatement:()=>iN,isBuildCommand:()=>MJ,isBuildInfoFile:()=>tj,isBuilderProgram:()=>IK,isBundle:()=>pM,isCallChain:()=>vc,isCallExpression:()=>yC,isCallExpressionTarget:()=>aY,isCallLikeExpression:()=>Wd,isCallLikeOrFunctionLikeExpression:()=>Fd,isCallOrNewExpression:()=>zd,isCallOrNewExpressionTarget:()=>lY,isCallSignatureDeclaration:()=>WD,isCallToHelper:()=>UI,isCaseBlock:()=>SN,isCaseClause:()=>rM,isCaseKeyword:()=>AD,isCaseOrDefaultClause:()=>xu,isCatchClause:()=>aM,isCatchClauseVariableDeclaration:()=>GA,isCatchClauseVariableDeclarationOrBindingElement:()=>uf,isCheckJsEnabledForFile:()=>aA,isCircularBuildOrder:()=>aq,isClassDeclaration:()=>_N,isClassElement:()=>fd,isClassExpression:()=>OC,isClassInstanceProperty:()=>gd,isClassLike:()=>md,isClassMemberModifier:()=>nd,isClassNamedEvaluationHelperBlock:()=>XG,isClassOrTypeElement:()=>Td,isClassStaticBlockDeclaration:()=>kD,isClassThisAssignmentBlock:()=>UG,isColonToken:()=>sD,isCommaExpression:()=>RP,isCommaListExpression:()=>HC,isCommaSequence:()=>IP,isCommaToken:()=>nD,isComment:()=>M$,isCommonJsExportPropertyAssignment:()=>Wm,isCommonJsExportedExpression:()=>Fm,isCompoundAssignment:()=>fG,isComputedNonLiteralName:()=>Wf,isComputedPropertyName:()=>RD,isConciseBody:()=>nu,isConditionalExpression:()=>PC,isConditionalTypeNode:()=>eC,isConstAssertion:()=>Tx,isConstTypeReference:()=>xc,isConstructSignatureDeclaration:()=>zD,isConstructorDeclaration:()=>wD,isConstructorTypeNode:()=>UD,isContextualKeyword:()=>Mg,isContinueStatement:()=>oN,isCustomPrologue:()=>gm,isDebuggerStatement:()=>pN,isDeclaration:()=>fu,isDeclarationBindingElement:()=>Dd,isDeclarationFileName:()=>yk,isDeclarationName:()=>pg,isDeclarationNameOfEnumOrNamespace:()=>tT,isDeclarationReadonly:()=>am,isDeclarationStatement:()=>mu,isDeclarationWithTypeParameterChildren:()=>Rf,isDeclarationWithTypeParameters:()=>xf,isDecorator:()=>CD,isDecoratorTarget:()=>dY,isDefaultClause:()=>oM,isDefaultImport:()=>I_,isDefaultModifier:()=>fD,isDefaultedExpandoInitializer:()=>$h,isDeleteExpression:()=>xC,isDeleteTarget:()=>dg,isDeprecatedDeclaration:()=>s0,isDestructuringAssignment:()=>lb,isDiskPathRoot:()=>vi,isDoStatement:()=>ZC,isDocumentRegistryEntry:()=>q0,isDotDotDotToken:()=>eD,isDottedName:()=>pb,isDynamicName:()=>Vg,isEffectiveExternalModule:()=>Tf,isEffectiveStrictModeSourceFile:()=>Sf,isElementAccessChain:()=>yc,isElementAccessExpression:()=>gC,isEmittedFileOfProgram:()=>jj,isEmptyArrayLiteral:()=>Sb,isEmptyBindingElement:()=>ol,isEmptyBindingPattern:()=>rl,isEmptyObjectLiteral:()=>Tb,isEmptyStatement:()=>YC,isEmptyStringLiteral:()=>Th,isEntityName:()=>rd,isEntityNameExpression:()=>db,isEnumConst:()=>im,isEnumDeclaration:()=>vN,isEnumMember:()=>dM,isEqualityOperatorKind:()=>EZ,isEqualsGreaterThanToken:()=>cD,isExclamationToken:()=>iD,isExcludedFile:()=>UO,isExclusivelyTypeOnlyImportOrExport:()=>bU,isExpandoPropertyDeclaration:()=>fx,isExportAssignment:()=>ON,isExportDeclaration:()=>FN,isExportModifier:()=>pD,isExportName:()=>SP,isExportNamespaceAsDefaultDeclaration:()=>Jp,isExportOrDefaultModifier:()=>hL,isExportSpecifier:()=>zN,isExportsIdentifier:()=>n_,isExportsOrModuleExportsOrAlias:()=>lz,isExpression:()=>qd,isExpressionNode:()=>Eh,isExpressionOfExternalModuleImportEqualsDeclaration:()=>CY,isExpressionOfOptionalChainRoot:()=>Sc,isExpressionStatement:()=>$C,isExpressionWithTypeArguments:()=>WC,isExpressionWithTypeArgumentsInClassExtendsClause:()=>cb,isExternalModule:()=>dk,isExternalModuleAugmentation:()=>yf,isExternalModuleImportEqualsDeclaration:()=>Ih,isExternalModuleIndicator:()=>Zd,isExternalModuleNameRelative:()=>Ds,isExternalModuleReference:()=>UN,isExternalModuleSymbol:()=>ep,isExternalOrCommonJsModule:()=>rm,isFileLevelReservedGeneratedIdentifier:()=>Yc,isFileLevelUniqueName:()=>Cp,isFileProbablyExternalModule:()=>OL,isFirstDeclarationOfSymbolParameter:()=>wQ,isFixablePromiseHandler:()=>j1,isForInOrOfStatement:()=>eu,isForInStatement:()=>tN,isForInitializer:()=>ru,isForOfStatement:()=>rN,isForStatement:()=>nN,isFullSourceFile:()=>Mh,isFunctionBlock:()=>Vm,isFunctionBody:()=>tu,isFunctionDeclaration:()=>hN,isFunctionExpression:()=>EC,isFunctionExpressionOrArrowFunction:()=>VA,isFunctionLike:()=>ad,isFunctionLikeDeclaration:()=>ld,isFunctionLikeKind:()=>ud,isFunctionLikeOrClassStaticBlockDeclaration:()=>sd,isFunctionOrConstructorTypeNode:()=>Ad,isFunctionOrModuleBlock:()=>pd,isFunctionSymbol:()=>v_,isFunctionTypeNode:()=>jD,isGeneratedIdentifier:()=>Jc,isGeneratedPrivateIdentifier:()=>Xc,isGetAccessor:()=>Nu,isGetAccessorDeclaration:()=>OD,isGetOrSetAccessorDeclaration:()=>_c,isGlobalScopeAugmentation:()=>gf,isGlobalSourceFile:()=>tm,isGrammarError:()=>Pp,isHeritageClause:()=>iM,isHoistedFunction:()=>ym,isHoistedVariableStatement:()=>bm,isIdentifier:()=>dD,isIdentifierANonContextualKeyword:()=>kg,isIdentifierName:()=>hg,isIdentifierOrThisTypeNode:()=>ZP,isIdentifierPart:()=>gs,isIdentifierStart:()=>_s,isIdentifierText:()=>ys,isIdentifierTypePredicate:()=>Hm,isIdentifierTypeReference:()=>xA,isIfStatement:()=>QC,isIgnoredFileFromWildCardWatching:()=>Vj,isImplicitGlob:()=>hE,isImportAttribute:()=>MN,isImportAttributeName:()=>qc,isImportAttributes:()=>NN,isImportCall:()=>fm,isImportClause:()=>RN,isImportDeclaration:()=>xN,isImportEqualsDeclaration:()=>AN,isImportKeyword:()=>ED,isImportMeta:()=>mm,isImportOrExportSpecifier:()=>Gc,isImportOrExportSpecifierName:()=>iZ,isImportSpecifier:()=>wN,isImportTypeAssertionContainer:()=>IN,isImportTypeNode:()=>lC,isImportable:()=>T0,isInComment:()=>R$,isInCompoundLikeAssignment:()=>ng,isInExpressionContext:()=>Ah,isInJSDoc:()=>Oh,isInJSFile:()=>Lh,isInJSXText:()=>b$,isInJsonFile:()=>kh,isInNonReferenceComment:()=>B$,isInReferenceComment:()=>z$,isInRightSideOfInternalImportEqualsDeclaration:()=>iY,isInString:()=>_$,isInTemplateString:()=>v$,isInTopLevelContext:()=>ih,isInTypeQuery:()=>fv,isIncrementalBuildInfo:()=>PH,isIncrementalBundleEmitBuildInfo:()=>MH,isIncrementalCompilation:()=>kS,isIndexSignatureDeclaration:()=>BD,isIndexedAccessTypeNode:()=>iC,isInferTypeNode:()=>nC,isInfinityOrNaNString:()=>BA,isInitializedProperty:()=>TG,isInitializedVariable:()=>oT,isInsideJsxElement:()=>T$,isInsideJsxElementOrAttribute:()=>g$,isInsideNodeModules:()=>qZ,isInsideTemplateLiteral:()=>w$,isInstanceOfExpression:()=>vb,isInstantiatedModule:()=>uB,isInterfaceDeclaration:()=>gN,isInternalDeclaration:()=>Uu,isInternalModuleImportEqualsDeclaration:()=>Nh,isInternalName:()=>bP,isIntersectionTypeNode:()=>ZD,isIntrinsicJsxName:()=>Ly,isIterationStatement:()=>Xd,isJSDoc:()=>IM,isJSDocAllType:()=>vM,isJSDocAugmentsTag:()=>NM,isJSDocAuthorTag:()=>MM,isJSDocCallbackTag:()=>LM,isJSDocClassTag:()=>PM,isJSDocCommentContainingNode:()=>Iu,isJSDocConstructSignature:()=>N_,isJSDocDeprecatedTag:()=>BM,isJSDocEnumTag:()=>VM,isJSDocFunctionType:()=>AM,isJSDocImplementsTag:()=>$M,isJSDocImportTag:()=>eP,isJSDocIndexSignature:()=>Fh,isJSDocLikeText:()=>wL,isJSDocLink:()=>_M,isJSDocLinkCode:()=>gM,isJSDocLinkLike:()=>Bu,isJSDocLinkPlain:()=>yM,isJSDocMemberName:()=>hM,isJSDocNameReference:()=>mM,isJSDocNamepathType:()=>RM,isJSDocNamespaceBody:()=>au,isJSDocNode:()=>Ru,isJSDocNonNullableType:()=>SM,isJSDocNullableType:()=>TM,isJSDocOptionalParameter:()=>ZA,isJSDocOptionalType:()=>EM,isJSDocOverloadTag:()=>zM,isJSDocOverrideTag:()=>WM,isJSDocParameterTag:()=>jM,isJSDocPrivateTag:()=>wM,isJSDocPropertyLikeTag:()=>Nc,isJSDocPropertyTag:()=>YM,isJSDocProtectedTag:()=>OM,isJSDocPublicTag:()=>kM,isJSDocReadonlyTag:()=>FM,isJSDocReturnTag:()=>UM,isJSDocSatisfiesExpression:()=>tx,isJSDocSatisfiesTag:()=>QM,isJSDocSeeTag:()=>GM,isJSDocSignature:()=>CM,isJSDocTag:()=>Du,isJSDocTemplateTag:()=>qM,isJSDocThisTag:()=>HM,isJSDocThrowsTag:()=>ZM,isJSDocTypeAlias:()=>M_,isJSDocTypeAssertion:()=>DP,isJSDocTypeExpression:()=>fM,isJSDocTypeLiteral:()=>DM,isJSDocTypeTag:()=>KM,isJSDocTypedefTag:()=>JM,isJSDocUnknownTag:()=>XM,isJSDocUnknownType:()=>bM,isJSDocVariadicType:()=>xM,isJSXTagName:()=>Sh,isJsonEqual:()=>yA,isJsonSourceFile:()=>om,isJsxAttribute:()=>QN,isJsxAttributeLike:()=>Tu,isJsxAttributeName:()=>sx,isJsxAttributes:()=>ZN,isJsxCallLike:()=>Au,isJsxChild:()=>bu,isJsxClosingElement:()=>JN,isJsxClosingFragment:()=>$N,isJsxElement:()=>HN,isJsxExpression:()=>nM,isJsxFragment:()=>XN,isJsxNamespacedName:()=>tM,isJsxOpeningElement:()=>qN,isJsxOpeningFragment:()=>YN,isJsxOpeningLikeElement:()=>Eu,isJsxOpeningLikeElementTagName:()=>uY,isJsxSelfClosingElement:()=>KN,isJsxSpreadAttribute:()=>eM,isJsxTagNameExpression:()=>vu,isJsxText:()=>JI,isJumpStatementTarget:()=>vY,isKeyword:()=>Dg,isKeywordOrPunctuation:()=>Ng,isKnownSymbol:()=>Jg,isLabelName:()=>TY,isLabelOfLabeledStatement:()=>bY,isLabeledStatement:()=>cN,isLateVisibilityPaintedStatement:()=>Nf,isLeftHandSideExpression:()=>Gd,isLet:()=>um,isLineBreak:()=>qa,isLiteralComputedPropertyDeclarationName:()=>mg,isLiteralExpression:()=>Oc,isLiteralExpressionOfObject:()=>Fc,isLiteralImportTypeNode:()=>hm,isLiteralKind:()=>wc,isLiteralNameOfPropertyDeclarationOrIndexAccess:()=>DY,isLiteralTypeLiteral:()=>Kd,isLiteralTypeNode:()=>sC,isLocalName:()=>TP,isLogicalOperator:()=>Zv,isLogicalOrCoalescingAssignmentExpression:()=>nb,isLogicalOrCoalescingAssignmentOperator:()=>eb,isLogicalOrCoalescingBinaryExpression:()=>rb,isLogicalOrCoalescingBinaryOperator:()=>tb,isMappedTypeNode:()=>aC,isMemberName:()=>hc,isMetaProperty:()=>VC,isMethodDeclaration:()=>LD,isMethodOrAccessor:()=>yd,isMethodSignature:()=>PD,isMinusToken:()=>rD,isMissingDeclaration:()=>GN,isMissingPackageJsonInfo:()=>NF,isModifier:()=>td,isModifierKind:()=>Zc,isModifierLike:()=>vd,isModuleAugmentationExternal:()=>vf,isModuleBlock:()=>TN,isModuleBody:()=>ou,isModuleDeclaration:()=>bN,isModuleExportName:()=>BN,isModuleExportsAccessExpression:()=>r_,isModuleIdentifier:()=>t_,isModuleName:()=>tL,isModuleOrEnumDeclaration:()=>lu,isModuleReference:()=>yu,isModuleSpecifierLike:()=>vQ,isModuleWithStringLiteralName:()=>ff,isNameOfFunctionDeclaration:()=>IY,isNameOfModuleDeclaration:()=>RY,isNamedDeclaration:()=>Rl,isNamedEvaluation:()=>Qg,isNamedEvaluationSource:()=>$g,isNamedExportBindings:()=>Cc,isNamedExports:()=>WN,isNamedImportBindings:()=>su,isNamedImports:()=>kN,isNamedImportsOrExports:()=>CT,isNamedTupleMember:()=>XD,isNamespaceBody:()=>iu,isNamespaceExport:()=>LN,isNamespaceExportDeclaration:()=>EN,isNamespaceImport:()=>PN,isNamespaceReexportDeclaration:()=>Rh,isNewExpression:()=>vC,isNewExpressionTarget:()=>sY,isNewScopeNode:()=>kx,isNoSubstitutionTemplateLiteral:()=>YI,isNodeArray:()=>kc,isNodeArrayMultiLine:()=>Xb,isNodeDescendantOf:()=>ug,isNodeKind:()=>Mc,isNodeLikeSystem:()=>ct,isNodeModulesDirectory:()=>ua,isNodeWithPossibleHoistedDeclaration:()=>tg,isNonContextualKeyword:()=>Pg,isNonGlobalAmbientModule:()=>mf,isNonNullAccess:()=>nx,isNonNullChain:()=>Ic,isNonNullExpression:()=>GC,isNonStaticMethodOrAccessorWithPrivateName:()=>SG,isNotEmittedStatement:()=>VN,isNullishCoalesce:()=>Ac,isNumber:()=>Ze,isNumericLiteral:()=>HI,isNumericLiteralName:()=>UA,isObjectBindingElementWithoutPropertyName:()=>bQ,isObjectBindingOrAssignmentElement:()=>Pd,isObjectBindingOrAssignmentPattern:()=>Md,isObjectBindingPattern:()=>uC,isObjectLiteralElement:()=>wu,isObjectLiteralElementLike:()=>Sd,isObjectLiteralExpression:()=>hC,isObjectLiteralMethod:()=>jm,isObjectLiteralOrClassExpressionMethodOrAccessor:()=>Um,isObjectTypeDeclaration:()=>xT,isOmittedExpression:()=>FC,isOptionalChain:()=>bc,isOptionalChainRoot:()=>Tc,isOptionalDeclaration:()=>ex,isOptionalJSDocPropertyLikeTag:()=>YA,isOptionalTypeNode:()=>YD,isOuterExpression:()=>NP,isOutermostOptionalChain:()=>Ec,isOverrideModifier:()=>bD,isPackageJsonInfo:()=>CF,isPackedArrayLiteral:()=>wA,isParameter:()=>DD,isParameterPropertyDeclaration:()=>tl,isParameterPropertyModifier:()=>ed,isParenthesizedExpression:()=>SC,isParenthesizedTypeNode:()=>tC,isParseTreeNode:()=>hl,isPartOfParameterDeclaration:()=>ey,isPartOfTypeNode:()=>Cm,isPartOfTypeOnlyImportOrExportDeclaration:()=>Hc,isPartOfTypeQuery:()=>xh,isPartiallyEmittedExpression:()=>UC,isPatternMatch:()=>Qn,isPinnedComment:()=>Vp,isPlainJsFile:()=>Ap,isPlusToken:()=>tD,isPossiblyTypeArgumentPosition:()=>E$,isPostfixUnaryExpression:()=>NC,isPrefixUnaryExpression:()=>CC,isPrimitiveLiteralValue:()=>Ax,isPrivateIdentifier:()=>uD,isPrivateIdentifierClassElementDeclaration:()=>$c,isPrivateIdentifierPropertyAccessExpression:()=>Qc,isPrivateIdentifierSymbol:()=>Xg,isProgramUptoDate:()=>zU,isPrologueDirective:()=>_m,isPropertyAccessChain:()=>gc,isPropertyAccessEntityNameExpression:()=>fb,isPropertyAccessExpression:()=>_C,isPropertyAccessOrQualifiedName:()=>Od,isPropertyAccessOrQualifiedNameOrImportTypeNode:()=>wd,isPropertyAssignment:()=>sM,isPropertyDeclaration:()=>MD,isPropertyName:()=>od,isPropertyNameLiteral:()=>Ug,isPropertySignature:()=>ND,isPrototypeAccess:()=>hb,isPrototypePropertyAssignment:()=>__,isPunctuation:()=>Cg,isPushOrUnshiftIdentifier:()=>Zg,isQualifiedName:()=>xD,isQuestionDotToken:()=>lD,isQuestionOrExclamationToken:()=>QP,isQuestionOrPlusOrMinusToken:()=>nL,isQuestionToken:()=>aD,isReadonlyKeyword:()=>gD,isReadonlyKeywordOrPlusOrMinusToken:()=>eL,isRecognizedTripleSlashComment:()=>Gp,isReferenceFileLocation:()=>FU,isReferencedFile:()=>OU,isRegularExpressionLiteral:()=>XI,isRequireCall:()=>Wh,isRequireVariableStatement:()=>jh,isRestParameter:()=>Vu,isRestTypeNode:()=>$D,isReturnStatement:()=>aN,isReturnStatementWithFixablePromiseHandler:()=>V1,isRightSideOfAccessExpression:()=>gb,isRightSideOfInstanceofExpression:()=>bb,isRightSideOfPropertyAccess:()=>AY,isRightSideOfQualifiedName:()=>EY,isRightSideOfQualifiedNameOrPropertyAccess:()=>_b,isRightSideOfQualifiedNameOrPropertyAccessOrJSDocMemberName:()=>yb,isRootedDiskPath:()=>yi,isSameEntityName:()=>Zh,isSatisfiesExpression:()=>BC,isSemicolonClassElement:()=>qC,isSetAccessor:()=>Cu,isSetAccessorDeclaration:()=>FD,isShiftOperatorOrHigher:()=>rL,isShorthandAmbientModuleSymbol:()=>hf,isShorthandPropertyAssignment:()=>lM,isSideEffectImport:()=>Ix,isSignedNumericLiteral:()=>Bg,isSimpleCopiableExpression:()=>uG,isSimpleInlineableExpression:()=>pG,isSimpleParameterList:()=>PG,isSingleOrDoubleQuote:()=>Uh,isSolutionConfig:()=>SO,isSourceElement:()=>yx,isSourceFile:()=>uM,isSourceFileFromLibrary:()=>f0,isSourceFileJS:()=>Ph,isSourceFileNotJson:()=>wh,isSourceMapping:()=>VB,isSpecialPropertyDeclaration:()=>g_,isSpreadAssignment:()=>cM,isSpreadElement:()=>wC,isStatement:()=>_u,isStatementButNotDeclaration:()=>hu,isStatementOrBlock:()=>gu,isStatementWithLocals:()=>xp,isStatic:()=>Pv,isStaticModifier:()=>yD,isString:()=>Qe,isStringANonContextualKeyword:()=>Lg,isStringAndEmptyAnonymousObjectIntersection:()=>k$,isStringDoubleQuoted:()=>Hh,isStringLiteral:()=>qI,isStringLiteralLike:()=>zu,isStringLiteralOrJsxExpression:()=>Su,isStringLiteralOrTemplate:()=>AZ,isStringOrNumericLiteralLike:()=>zg,isStringOrRegularExpressionOrTemplateLiteral:()=>P$,isStringTextContainingNode:()=>Kc,isSuperCall:()=>pm,isSuperKeyword:()=>SD,isSuperProperty:()=>ch,isSupportedSourceFileName:()=>jE,isSwitchStatement:()=>lN,isSyntaxList:()=>nP,isSyntheticExpression:()=>jC,isSyntheticReference:()=>jN,isTagName:()=>SY,isTaggedTemplateExpression:()=>bC,isTaggedTemplateTag:()=>cY,isTemplateExpression:()=>LC,isTemplateHead:()=>$I,isTemplateLiteral:()=>Bd,isTemplateLiteralKind:()=>Wc,isTemplateLiteralToken:()=>zc,isTemplateLiteralTypeNode:()=>dC,isTemplateLiteralTypeSpan:()=>cC,isTemplateMiddle:()=>QI,isTemplateMiddleOrTemplateTail:()=>Bc,isTemplateSpan:()=>KC,isTemplateTail:()=>ZI,isTextWhiteSpaceLike:()=>MQ,isThis:()=>PY,isThisContainerOrFunctionBlock:()=>oh,isThisIdentifier:()=>pv,isThisInTypeQuery:()=>mv,isThisInitializedDeclaration:()=>uh,isThisInitializedObjectBindingExpression:()=>ph,isThisProperty:()=>dh,isThisTypeNode:()=>rC,isThisTypeParameter:()=>KA,isThisTypePredicate:()=>Km,isThrowStatement:()=>dN,isToken:()=>Lc,isTokenKind:()=>Pc,isTraceEnabled:()=>oF,isTransientSymbol:()=>Zu,isTrivia:()=>wg,isTryStatement:()=>uN,isTupleTypeNode:()=>JD,isTypeAlias:()=>P_,isTypeAliasDeclaration:()=>yN,isTypeAssertionExpression:()=>TC,isTypeDeclaration:()=>JA,isTypeElement:()=>bd,isTypeKeyword:()=>$$,isTypeKeywordTokenOrIdentifier:()=>Z$,isTypeLiteralNode:()=>KD,isTypeNode:()=>Ed,isTypeNodeKind:()=>RT,isTypeOfExpression:()=>RC,isTypeOnlyExportDeclaration:()=>jc,isTypeOnlyImportDeclaration:()=>Vc,isTypeOnlyImportOrExportDeclaration:()=>Uc,isTypeOperatorNode:()=>oC,isTypeParameterDeclaration:()=>ID,isTypePredicateNode:()=>GD,isTypeQueryNode:()=>HD,isTypeReferenceNode:()=>VD,isTypeReferenceType:()=>Ou,isTypeUsableAsPropertyName:()=>ux,isUMDExportSymbol:()=>TT,isUnaryExpression:()=>jd,isUnaryExpressionWithWrite:()=>Hd,isUnicodeIdentifierStart:()=>Ca,isUnionTypeNode:()=>QD,isUrl:()=>gi,isValidBigIntString:()=>EA,isValidESSymbolDeclaration:()=>zm,isValidTypeOnlyAliasUseSite:()=>AA,isValueSignatureDeclaration:()=>rg,isVarAwaitUsing:()=>sm,isVarConst:()=>cm,isVarConstLike:()=>dm,isVarUsing:()=>lm,isVariableDeclaration:()=>fN,isVariableDeclarationInVariableStatement:()=>Om,isVariableDeclarationInitializedToBareOrAccessedRequire:()=>Bh,isVariableDeclarationInitializedToRequire:()=>zh,isVariableDeclarationList:()=>mN,isVariableLike:()=>wm,isVariableStatement:()=>XC,isVoidExpression:()=>IC,isWatchSet:()=>iT,isWhileStatement:()=>eN,isWhiteSpaceLike:()=>Ha,isWhiteSpaceSingleLine:()=>Ka,isWithStatement:()=>sN,isWriteAccess:()=>pT,isWriteOnlyAccess:()=>uT,isYieldExpression:()=>kC,jsxModeNeedsExplicitImport:()=>p0,keywordPart:()=>BQ,last:()=>ye,lastOrUndefined:()=>ge,length:()=>c,libMap:()=>kk,libs:()=>Lk,lineBreakPart:()=>eZ,loadModuleFromGlobalCache:()=>JW,loadWithModeAwareCache:()=>PU,makeIdentifierFromModuleName:()=>cf,makeImport:()=>uQ,makeStringLiteral:()=>pQ,mangleScopedPackageName:()=>GW,map:()=>D,mapAllOrFail:()=>O,mapDefined:()=>F,mapDefinedIterator:()=>W,mapEntries:()=>j,mapIterator:()=>C,mapOneOrMany:()=>ZZ,mapToDisplayParts:()=>nZ,matchFiles:()=>TE,matchPatternOrExact:()=>lA,matchedText:()=>qn,matchesExclude:()=>KO,matchesExcludeWorker:()=>qO,maxBy:()=>Tn,maybeBind:()=>Ue,maybeSetLocalizedDiagnosticMessages:()=>qT,memoize:()=>pn,memoizeOne:()=>fn,min:()=>Sn,minAndMax:()=>uA,missingFileModifiedTime:()=>Go,modifierToFlag:()=>$v,modifiersToFlags:()=>Yv,moduleExportNameIsDefault:()=>$p,moduleExportNameTextEscaped:()=>Yp,moduleExportNameTextUnescaped:()=>Xp,moduleOptionDeclaration:()=>Wk,moduleResolutionIsEqualTo:()=>pp,moduleResolutionNameAndModeGetter:()=>IU,moduleResolutionOptionDeclarations:()=>Uk,moduleResolutionSupportsPackageJsonExportsAndImports:()=>VS,moduleResolutionUsesNodeModules:()=>dQ,moduleSpecifierToValidIdentifier:()=>o0,moduleSpecifiers:()=>pz,moduleSupportsImportAttributes:()=>jS,moduleSymbolToValidIdentifier:()=>r0,moveEmitHelpers:()=>YR,moveRangeEnd:()=>Fb,moveRangePastDecorators:()=>zb,moveRangePastModifiers:()=>Bb,moveRangePos:()=>Wb,moveSyntheticComments:()=>jR,mutateMap:()=>gT,mutateMapSkippingNewValues:()=>_T,needsParentheses:()=>bZ,needsScopeMarker:()=>Qd,newCaseClauseTracker:()=>m0,newPrivateEnvironment:()=>IG,noEmitNotification:()=>QV,noEmitSubstitution:()=>$V,noTransformers:()=>UV,noTruncationMaximumTruncationLength:()=>Ju,nodeCanBeDecorated:()=>hh,nodeCoreModules:()=>Mx,nodeHasName:()=>Al,nodeIsDecorated:()=>_h,nodeIsMissing:()=>Np,nodeIsPresent:()=>Mp,nodeIsSynthesized:()=>ry,nodeModuleNameResolver:()=>QF,nodeModulesPathPart:()=>oW,nodeNextJsonConfigResolver:()=>ZF,nodeOrChildIsDecorated:()=>gh,nodeOverlapsWithStartEnd:()=>BY,nodePosToString:()=>Ip,nodeSeenTracker:()=>eQ,nodeStartsNewLexicalEnvironment:()=>ty,noop:()=>tn,noopFileWatcher:()=>OK,normalizePath:()=>ji,normalizeSlashes:()=>Fi,normalizeSpans:()=>qs,not:()=>nt,notImplemented:()=>un,notImplementedResolver:()=>Rj,nullNodeConverters:()=>rR,nullParenthesizerRules:()=>eR,nullTransformationContext:()=>ej,objectAllocator:()=>GT,operatorPart:()=>VQ,optionDeclarations:()=>Bk,optionMapToObject:()=>$w,optionsAffectingProgramStructure:()=>Kk,optionsForBuild:()=>Zk,optionsForWatch:()=>wk,optionsHaveChanges:()=>op,or:()=>et,orderedRemoveItem:()=>Gn,orderedRemoveItemAt:()=>Vn,packageIdToPackageName:()=>gp,packageIdToString:()=>yp,parameterIsThisKeyword:()=>uv,parameterNamePart:()=>jQ,parseBaseNodeFactory:()=>ML,parseBigInt:()=>TA,parseBuildCommand:()=>Tw,parseCommandLine:()=>_w,parseCommandLineWorker:()=>pw,parseConfigFileTextToJson:()=>xw,parseConfigFileWithSystem:()=>TK,parseConfigHostFromCompilerHostLike:()=>QU,parseCustomTypeOption:()=>lw,parseIsolatedEntityName:()=>lk,parseIsolatedJSDocComment:()=>pk,parseJSDocTypeExpressionForTests:()=>fk,parseJsonConfigFileContent:()=>aO,parseJsonSourceFileConfigFileContent:()=>sO,parseJsonText:()=>ck,parseListTypeOption:()=>cw,parseNodeFactory:()=>PL,parseNodeModuleFromPath:()=>aW,parsePackageName:()=>xW,parsePseudoBigInt:()=>vA,parseValidBigInt:()=>SA,pasteEdits:()=>Lme,patchWriteFileEnsuringDirectory:()=>ci,pathContainsNodeModules:()=>iW,pathIsAbsolute:()=>Ti,pathIsBareSpecifier:()=>Ei,pathIsRelative:()=>Si,patternText:()=>Kn,performIncrementalCompilation:()=>XK,performance:()=>jt,positionBelongsToNode:()=>VY,positionIsASICandidate:()=>kZ,positionIsSynthesized:()=>eA,positionsAreOnSameLine:()=>Yb,preProcessFile:()=>P1,probablyUsesSemicolons:()=>wZ,processCommentPragmas:()=>bk,processPragmasIntoFields:()=>Tk,processTaggedTemplateExpression:()=>tV,programContainsEsModules:()=>aQ,programContainsModules:()=>iQ,projectReferenceIsEqualTo:()=>up,propertyNamePart:()=>UQ,pseudoBigIntToString:()=>bA,punctuationPart:()=>GQ,pushIfUnique:()=>se,quote:()=>SZ,quotePreferenceFromString:()=>mQ,rangeContainsPosition:()=>OY,rangeContainsPositionExclusive:()=>FY,rangeContainsRange:()=>eT,rangeContainsRangeExclusive:()=>wY,rangeContainsStartEnd:()=>WY,rangeEndIsOnSameLineAsRangeStart:()=>Kb,rangeEndPositionsAreOnSameLine:()=>Ub,rangeEquals:()=>ue,rangeIsOnSingleLine:()=>Vb,rangeOfNode:()=>pA,rangeOfTypeParameters:()=>fA,rangeOverlapsWithStartEnd:()=>zY,rangeStartIsOnSameLineAsRangeEnd:()=>Hb,rangeStartPositionsAreOnSameLine:()=>jb,readBuilderProgram:()=>YK,readConfigFile:()=>Aw,readJson:()=>Nb,readJsonConfigFile:()=>Rw,readJsonOrUndefined:()=>Cb,reduceEachLeadingCommentRange:()=>ds,reduceEachTrailingCommentRange:()=>us,reduceLeft:()=>xe,reduceLeftIterator:()=>m,reducePathComponents:()=>Wi,refactor:()=>p8,regExpEscape:()=>iE,regularExpressionFlagToCharacterCode:()=>wa,relativeComplement:()=>te,removeAllComments:()=>AR,removeEmitHelper:()=>JR,removeExtension:()=>XE,removeFileExtension:()=>qE,removeIgnoredPath:()=>QH,removeMinAndVersionNumbers:()=>Bn,removePrefix:()=>Yn,removeSuffix:()=>Wn,removeTrailingDirectorySeparator:()=>qi,repeatString:()=>tQ,replaceElement:()=>Se,replaceFirstStar:()=>_x,resolutionExtensionIsTSOrJson:()=>tA,resolveConfigFileProjectName:()=>tq,resolveJSModule:()=>JF,resolveLibrary:()=>UF,resolveModuleName:()=>KF,resolveModuleNameFromCache:()=>HF,resolvePackageNameToPackageJson:()=>IF,resolvePath:()=>Bi,resolveProjectReferencePath:()=>ZU,resolveTripleslashReference:()=>Xj,resolveTypeReferenceDirective:()=>AF,resolvingEmptyArray:()=>Hu,returnFalse:()=>rn,returnNoopFileWatcher:()=>FK,returnTrue:()=>on,returnUndefined:()=>an,returnsPromise:()=>G1,rewriteModuleSpecifier:()=>LG,sameFlatMap:()=>w,sameMap:()=>N,sameMapping:()=>GB,scanTokenAtPosition:()=>em,scanner:()=>nY,semanticDiagnosticsOptionDeclarations:()=>Gk,serializeCompilerOptions:()=>nO,server:()=>jme,servicesVersion:()=>w4,setCommentRange:()=>OR,setConfigFileInOptions:()=>lO,setConstantValue:()=>HR,setEmitFlags:()=>xR,setGetSourceFileAsHashVersioned:()=>jK,setIdentifierAutoGenerate:()=>oI,setIdentifierGeneratedImportReference:()=>aI,setIdentifierTypeArguments:()=>tI,setInternalEmitFlags:()=>IR,setLocalizedDiagnosticMessages:()=>KT,setNodeChildren:()=>iP,setNodeFlags:()=>MA,setObjectAllocator:()=>UT,setOriginalNode:()=>TR,setParent:()=>PA,setParentRecursive:()=>LA,setPrivateIdentifier:()=>CG,setSnippetElement:()=>QR,setSourceMapRange:()=>NR,setStackTraceLimit:()=>Wo,setStartsOnNewLine:()=>kR,setSyntheticLeadingComments:()=>WR,setSyntheticTrailingComments:()=>GR,setSys:()=>ui,setSysLog:()=>ti,setTextRange:()=>DL,setTextRangeEnd:()=>DA,setTextRangePos:()=>IA,setTextRangePosEnd:()=>CA,setTextRangePosWidth:()=>NA,setTokenSourceMapRange:()=>PR,setTypeNode:()=>eI,setUILocale:()=>Mn,setValueDeclaration:()=>y_,shouldAllowImportingTsExtension:()=>qW,shouldPreserveConstEnums:()=>LS,shouldRewriteModuleSpecifier:()=>A_,shouldUseUriStyleNodeCoreModules:()=>l0,showModuleSpecifier:()=>ST,signatureHasRestParameter:()=>_B,signatureToDisplayParts:()=>oZ,single:()=>be,singleElementArray:()=>rt,singleIterator:()=>G,singleOrMany:()=>Te,singleOrUndefined:()=>ve,skipAlias:()=>cT,skipConstraint:()=>rQ,skipOuterExpressions:()=>MP,skipParentheses:()=>cg,skipPartiallyEmittedExpressions:()=>Rc,skipTrivia:()=>es,skipTypeChecking:()=>mA,skipTypeCheckingIgnoringNoCheck:()=>hA,skipTypeParentheses:()=>lg,skipWhile:()=>lt,sliceAfter:()=>cA,some:()=>U,sortAndDeduplicate:()=>Z,sortAndDeduplicateDiagnostics:()=>Cs,sourceFileAffectingCompilerOptions:()=>Hk,sourceFileMayBeEmitted:()=>Zy,sourceMapCommentRegExp:()=>kB,sourceMapCommentRegExpDontCareLineStart:()=>LB,spacePart:()=>zQ,spanMap:()=>V,startEndContainsRange:()=>nT,startEndOverlapsWithStartEnd:()=>GY,startOnNewLine:()=>LP,startTracing:()=>ur,startsWith:()=>Xn,startsWithDirectory:()=>oa,startsWithUnderscore:()=>a0,startsWithUseStrict:()=>xP,stringContainsAt:()=>i0,stringToToken:()=>La,stripQuotes:()=>Py,supportedDeclarationExtensions:()=>LE,supportedJSExtensionsFlat:()=>NE,supportedLocaleDirectories:()=>ul,supportedTSExtensionsFlat:()=>IE,supportedTSImplementationExtensions:()=>kE,suppressLeadingAndTrailingTrivia:()=>qx,suppressLeadingTrivia:()=>Jx,suppressTrailingTrivia:()=>Xx,symbolEscapedNameNoDefault:()=>yQ,symbolName:()=>Tl,symbolNameNoDefault:()=>gQ,symbolToDisplayParts:()=>rZ,sys:()=>di,sysLog:()=>ni,tagNamesAreEquivalent:()=>Dk,takeWhile:()=>st,targetOptionDeclaration:()=>Fk,targetToLibMap:()=>Ns,testFormatSettings:()=>UX,textChangeRangeIsUnchanged:()=>$s,textChangeRangeNewSpan:()=>Ys,textChanges:()=>tpe,textOrKeywordPart:()=>HQ,textPart:()=>KQ,textRangeContainsPositionInclusive:()=>ws,textRangeContainsTextSpan:()=>Ws,textRangeIntersectsWithTextSpan:()=>Hs,textSpanContainsPosition:()=>ks,textSpanContainsTextRange:()=>Fs,textSpanContainsTextSpan:()=>Os,textSpanEnd:()=>Ps,textSpanIntersection:()=>Ks,textSpanIntersectsWith:()=>Vs,textSpanIntersectsWithPosition:()=>Us,textSpanIntersectsWithTextSpan:()=>Gs,textSpanIsEmpty:()=>Ls,textSpanOverlap:()=>Bs,textSpanOverlapsWith:()=>zs,textSpansEqual:()=>IQ,textToKeywordObj:()=>_a,timestamp:()=>Vt,toArray:()=>$e,toBuilderFileEmit:()=>jH,toBuilderStateFileInfoForMultiEmit:()=>VH,toEditorSettings:()=>Q4,toFileNameLowerCase:()=>dn,toPath:()=>Ki,toProgramEmitPending:()=>UH,toSorted:()=>ce,tokenIsIdentifierOrKeyword:()=>ma,tokenIsIdentifierOrKeywordOrGreaterThan:()=>ha,tokenToString:()=>Pa,trace:()=>rF,tracing:()=>Kt,tracingEnabled:()=>qt,transferSourceFileChildren:()=>sP,transform:()=>g5,transformClassFields:()=>aV,transformDeclarations:()=>GV,transformECMAScriptModule:()=>PV,transformES2015:()=>IV,transformES2016:()=>xV,transformES2017:()=>uV,transformES2018:()=>fV,transformES2019:()=>mV,transformES2020:()=>hV,transformES2021:()=>_V,transformESDecorators:()=>dV,transformESNext:()=>gV,transformGenerators:()=>DV,transformImpliedNodeFormatDependentModule:()=>LV,transformJsx:()=>EV,transformLegacyDecorators:()=>cV,transformModule:()=>CV,transformNamedEvaluation:()=>eV,transformNodes:()=>ZV,transformSystemModule:()=>MV,transformTypeScript:()=>iV,transpile:()=>r2,transpileDeclaration:()=>$1,transpileModule:()=>Y1,transpileOptionValueCompilerOptions:()=>qk,tryAddToSet:()=>B,tryAndIgnoreErrors:()=>BZ,tryCast:()=>en,tryDirectoryExists:()=>zZ,tryExtractTSExtension:()=>Ab,tryFileExists:()=>WZ,tryGetClassExtendingExpressionWithTypeArguments:()=>ib,tryGetClassImplementingOrExtendingExpressionWithTypeArguments:()=>ab,tryGetDirectories:()=>OZ,tryGetExtensionFromPath:()=>iA,tryGetImportFromModuleSpecifier:()=>E_,tryGetJSDocSatisfiesTypeNode:()=>ox,tryGetModuleNameFromFile:()=>zP,tryGetModuleSpecifierFromDeclaration:()=>T_,tryGetNativePerformanceHooks:()=>zt,tryGetPropertyAccessOrIdentifierToString:()=>mb,tryGetPropertyNameOfBindingOrAssignmentElement:()=>UP,tryGetSourceMappingURL:()=>FB,tryGetTextOfPropertyName:()=>zf,tryParseJson:()=>Mb,tryParsePattern:()=>$E,tryParsePatterns:()=>ZE,tryParseRawSourceMap:()=>zB,tryReadDirectory:()=>FZ,tryReadFile:()=>Iw,tryRemoveDirectoryPrefix:()=>rE,tryRemoveExtension:()=>JE,tryRemovePrefix:()=>$n,tryRemoveSuffix:()=>zn,tscBuildOption:()=>Qk,typeAcquisitionDeclarations:()=>nw,typeAliasNamePart:()=>qQ,typeDirectiveIsEqualTo:()=>vp,typeKeywords:()=>Y$,typeParameterNamePart:()=>JQ,typeToDisplayParts:()=>tZ,unchangedPollThresholds:()=>Ko,unchangedTextChangeRange:()=>Zs,unescapeLeadingUnderscores:()=>yl,unmangleScopedPackageName:()=>jW,unorderedRemoveItem:()=>Un,unprefixedNodeCoreModules:()=>Cx,unreachableCodeIsError:()=>BS,unsetNodeChildren:()=>aP,unusedLabelIsError:()=>GS,unwrapInnermostStatementOfLabel:()=>Gm,unwrapParenthesizedExpression:()=>xx,updateErrorForNoInputFiles:()=>AO,updateLanguageServiceSourceFile:()=>a5,updateMissingFilePathsWatch:()=>Bj,updateResolutionField:()=>fF,updateSharedExtendedConfigFileWatcher:()=>Fj,updateSourceFile:()=>uk,updateWatchingWildcardDirectories:()=>Gj,usingSingleLineStringWriter:()=>cp,utf16EncodeAsString:()=>Es,validateLocaleAndSetLanguage:()=>pl,version:()=>i,versionMajorMinor:()=>o,visitArray:()=>TB,visitCommaListElements:()=>DB,visitEachChild:()=>CB,visitFunctionBody:()=>RB,visitIterationBody:()=>IB,visitLexicalEnvironment:()=>EB,visitNode:()=>vB,visitNodes:()=>bB,visitParameterList:()=>AB,walkUpBindingElementsAndPatterns:()=>il,walkUpOuterExpressions:()=>PP,walkUpParenthesizedExpressions:()=>ag,walkUpParenthesizedTypes:()=>ig,walkUpParenthesizedTypesAndGetParentAndChild:()=>sg,whitespaceOrMapCommentRegExp:()=>wB,writeCommentRange:()=>xv,writeFile:()=>tv,writeFileEnsuringDirectories:()=>ov,zipWith:()=>h});var jme={};t(jme,{ActionInvalidate:()=>sX,ActionPackageInstalled:()=>lX,ActionSet:()=>aX,ActionWatchTypingLocations:()=>fX,Arguments:()=>oX,AutoImportProviderProject:()=>Vhe,AuxiliaryProject:()=>Bhe,CharRangeSection:()=>kge,CloseFileWatcherEvent:()=>l_e,CommandNames:()=>lge,ConfigFileDiagEvent:()=>t_e,ConfiguredProject:()=>jhe,ConfiguredProjectLoadKind:()=>N_e,CreateDirectoryWatcherEvent:()=>s_e,CreateFileWatcherEvent:()=>a_e,Errors:()=>$me,EventBeginInstallTypes:()=>dX,EventEndInstallTypes:()=>uX,EventInitializationFailed:()=>pX,EventTypesRegistry:()=>cX,ExternalProject:()=>Uhe,GcTimer:()=>fhe,InferredProject:()=>zhe,LargeFileReferencedEvent:()=>n_e,LineIndex:()=>Bge,LineLeaf:()=>Vge,LineNode:()=>Gge,LogLevel:()=>Zme,Msg:()=>nhe,OpenFileInfoTelemetryEvent:()=>i_e,Project:()=>Whe,ProjectInfoTelemetryEvent:()=>o_e,ProjectKind:()=>Mhe,ProjectLanguageServiceStateEvent:()=>r_e,ProjectLoadingFinishEvent:()=>e_e,ProjectLoadingStartEvent:()=>Zhe,ProjectService:()=>$_e,ProjectsUpdatedInBackgroundEvent:()=>Qhe,ScriptInfo:()=>Dhe,ScriptVersionCache:()=>Wge,Session:()=>Rge,TextStorage:()=>Rhe,ThrottledOperations:()=>phe,TypingsInstallerAdapter:()=>Uge,allFilesAreJsOrDts:()=>khe,allRootFilesAreJsOrDts:()=>Lhe,asNormalizedPath:()=>ihe,convertCompilerOptions:()=>__e,convertFormatOptions:()=>h_e,convertScriptKindName:()=>b_e,convertTypeAcquisition:()=>y_e,convertUserPreferences:()=>T_e,convertWatchOptions:()=>g_e,countEachFileTypes:()=>Phe,createInstallTypingsRequest:()=>the,createModuleSpecifierCache:()=>ege,createNormalizedPathMap:()=>ahe,createPackageJsonCache:()=>nge,createSortedArray:()=>uhe,emptyArray:()=>ehe,findArgument:()=>hX,formatDiagnosticToProtocol:()=>sge,formatMessage:()=>cge,getBaseConfigFileName:()=>mhe,getDetailWatchInfo:()=>W_e,getLocationInNewDocument:()=>Mge,hasArgument:()=>mX,hasNoTypeScriptSource:()=>whe,indent:()=>yX,isBackgroundProject:()=>Jhe,isConfigFile:()=>Q_e,isConfiguredProject:()=>Khe,isDynamicFileName:()=>Ihe,isExternalProject:()=>qhe,isInferredProject:()=>Hhe,isInferredProjectName:()=>she,isProjectDeferredClose:()=>Xhe,makeAutoImportProviderProjectName:()=>che,makeAuxiliaryProjectName:()=>dhe,makeInferredProjectName:()=>lhe,maxFileSize:()=>$he,maxProgramSizeForNonTsFiles:()=>Yhe,normalizedPathToPath:()=>ohe,nowString:()=>_X,nullCancellationToken:()=>tge,nullTypingsInstaller:()=>x_e,protocol:()=>hhe,scriptInfoIsContainedByBackgroundProject:()=>Che,scriptInfoIsContainedByDeferredClosedProject:()=>Nhe,stringifyIndented:()=>vX,toEvent:()=>uge,toNormalizedPath:()=>rhe,tryConvertScriptKindName:()=>v_e,typingsInstaller:()=>Ume,updateProjectIfDirty:()=>B_e});var Ume={};t(Ume,{TypingsInstaller:()=>Xme,getNpmCommandForInstallation:()=>Jme,installNpmPackages:()=>qme,typingsName:()=>Yme});var Hme={isEnabled:()=>!1,writeLine:tn};function Kme(e,n,t,r){try{const r=KF(n,zi(e,"index.d.ts"),{moduleResolution:2},t);return r.resolvedModule&&r.resolvedModule.resolvedFileName}catch(bi){return void(r.isEnabled()&&r.writeLine(`Failed to resolve ${n} in folder '${e}': ${bi.message}`))}}function qme(e,n,t,r){let o=!1;for(let i=t.length;i>0;){const a=Jme(e,n,t,i);i=a.remaining,o=r(a.command)||o}return o}function Jme(e,n,t,r){const o=t.length-r;let i,a=r;for(;i=`${e} install --ignore-scripts ${(a===t.length?t:t.slice(o,o+a)).join(" ")} --save-dev --user-agent="typesInstaller/${n}"`,!(i.length<8e3);)a-=Math.floor(a/2);return{command:i,remaining:r-a}}var Xme=class{constructor(e,n,t,r,o,i=Hme){this.installTypingHost=e,this.globalCachePath=n,this.safeListPath=t,this.typesMapLocation=r,this.throttleLimit=o,this.log=i,this.packageNameToTypingLocation=new Map,this.missingTypingsSet=new Set,this.knownCachesSet=new Set,this.projectWatchers=new Map,this.pendingRunRequests=[],this.installRunCount=1,this.inFlightRequestCount=0,this.latestDistTag="latest";this.log.isEnabled()&&this.log.writeLine(`Global cache location '${n}', safe file path '${t}', types map path ${r}`),this.processCacheLocation(this.globalCachePath)}handleRequest(e){switch(e.kind){case"discover":this.install(e);break;case"closeProject":this.closeProject(e);break;case"typesRegistry":{const e={};this.typesRegistry.forEach((n,t)=>{e[t]=n});const n={kind:cX,typesRegistry:e};this.sendResponse(n);break}case"installPackage":this.installPackage(e);break;default:dt.assertNever(e)}}closeProject(e){this.closeWatchers(e.projectName)}closeWatchers(e){this.log.isEnabled()&&this.log.writeLine(`Closing file watchers for project '${e}'`);this.projectWatchers.get(e)?(this.projectWatchers.delete(e),this.sendResponse({kind:fX,projectName:e,files:[]}),this.log.isEnabled()&&this.log.writeLine(`Closing file watchers for project '${e}' - done.`)):this.log.isEnabled()&&this.log.writeLine(`No watchers are registered for project '${e}'`)}install(e){this.log.isEnabled()&&this.log.writeLine(`Got install request${vX(e)}`),e.cachePath&&(this.log.isEnabled()&&this.log.writeLine(`Request specifies cache path '${e.cachePath}', loading cached information...`),this.processCacheLocation(e.cachePath)),void 0===this.safeList&&this.initializeSafeList();const n=rX.discoverTypings(this.installTypingHost,this.log.isEnabled()?e=>this.log.writeLine(e):void 0,e.fileNames,e.projectRootPath,this.safeList,this.packageNameToTypingLocation,e.typeAcquisition,e.unresolvedImports,this.typesRegistry,e.compilerOptions);this.watchFiles(e.projectName,n.filesToWatch),n.newTypingNames.length?this.installTypings(e,e.cachePath||this.globalCachePath,n.cachedTypingPaths,n.newTypingNames):(this.sendResponse(this.createSetTypings(e,n.cachedTypingPaths)),this.log.isEnabled()&&this.log.writeLine("No new typings were requested as a result of typings discovery"))}installPackage(e){const{fileName:n,packageName:t,projectName:r,projectRootPath:o,id:i}=e,a=da(Mi(n),e=>{if(this.installTypingHost.fileExists(zi(e,"package.json")))return e})||o;if(a)this.installWorker(-1,[t],a,e=>{const n={kind:lX,projectName:r,id:i,success:e,message:e?`Package ${t} installed.`:`There was an error installing ${t}.`};this.sendResponse(n)});else{const e={kind:lX,projectName:r,id:i,success:!1,message:"Could not determine a project root path."};this.sendResponse(e)}}initializeSafeList(){if(this.typesMapLocation){const e=rX.loadTypesMap(this.installTypingHost,this.typesMapLocation);if(e)return this.log.writeLine(`Loaded safelist from types map file '${this.typesMapLocation}'`),void(this.safeList=e);this.log.writeLine(`Failed to load safelist from types map file '${this.typesMapLocation}'`)}this.safeList=rX.loadSafeList(this.installTypingHost,this.safeListPath)}processCacheLocation(e){if(this.log.isEnabled()&&this.log.writeLine(`Processing cache location '${e}'`),this.knownCachesSet.has(e))return void(this.log.isEnabled()&&this.log.writeLine("Cache location was already processed..."));const n=zi(e,"package.json"),t=zi(e,"package-lock.json");if(this.log.isEnabled()&&this.log.writeLine(`Trying to find '${n}'...`),this.installTypingHost.fileExists(n)&&this.installTypingHost.fileExists(t)){const r=JSON.parse(this.installTypingHost.readFile(n)),o=JSON.parse(this.installTypingHost.readFile(t));if(this.log.isEnabled()&&(this.log.writeLine(`Loaded content of '${n}':${vX(r)}`),this.log.writeLine(`Loaded content of '${t}':${vX(o)}`)),r.devDependencies&&(o.packages||o.dependencies))for(const n in r.devDependencies){if(o.packages&&!Ie(o.packages,`node_modules/${n}`)||o.dependencies&&!Ie(o.dependencies,n))continue;const t=Pi(n);if(!t)continue;const r=Kme(e,t,this.installTypingHost,this.log);if(!r){this.missingTypingsSet.add(t);continue}const i=this.packageNameToTypingLocation.get(t);if(i){if(i.typingLocation===r)continue;this.log.isEnabled()&&this.log.writeLine(`New typing for package ${t} from '${r}' conflicts with existing typing file '${i}'`)}this.log.isEnabled()&&this.log.writeLine(`Adding entry into typings cache: '${t}' => '${r}'`);const a=o.packages&&De(o.packages,`node_modules/${n}`)||De(o.dependencies,n),s=a&&a.version;if(!s)continue;const l={typingLocation:r,version:new vt(s)};this.packageNameToTypingLocation.set(t,l)}}this.log.isEnabled()&&this.log.writeLine(`Finished processing cache location '${e}'`),this.knownCachesSet.add(e)}filterTypings(e){return F(e,e=>{const n=GW(e);if(this.missingTypingsSet.has(n))return void(this.log.isEnabled()&&this.log.writeLine(`'${e}':: '${n}' is in missingTypingsSet - skipping...`));const t=rX.validatePackageName(e);if(t!==rX.NameValidationResult.Ok)return this.missingTypingsSet.add(n),void(this.log.isEnabled()&&this.log.writeLine(rX.renderPackageNameValidationFailure(t,e)));if(this.typesRegistry.has(n)){if(!this.packageNameToTypingLocation.get(n)||!rX.isTypingUpToDate(this.packageNameToTypingLocation.get(n),this.typesRegistry.get(n)))return n;this.log.isEnabled()&&this.log.writeLine(`'${e}':: '${n}' already has an up-to-date typing - skipping...`)}else this.log.isEnabled()&&this.log.writeLine(`'${e}':: Entry for package '${n}' does not exist in local types registry - skipping...`)})}ensurePackageDirectoryExists(e){const n=zi(e,"package.json");this.log.isEnabled()&&this.log.writeLine(`Npm config file: ${n}`),this.installTypingHost.fileExists(n)||(this.log.isEnabled()&&this.log.writeLine(`Npm config file: '${n}' is missing, creating new one...`),this.ensureDirectoryExists(e,this.installTypingHost),this.installTypingHost.writeFile(n,'{ "private": true }'))}installTypings(e,n,t,r){this.log.isEnabled()&&this.log.writeLine(`Installing typings ${JSON.stringify(r)}`);const a=this.filterTypings(r);if(0===a.length)return this.log.isEnabled()&&this.log.writeLine("All typings are known to be missing or invalid - no need to install more typings"),void this.sendResponse(this.createSetTypings(e,t));this.ensurePackageDirectoryExists(n);const s=this.installRunCount;this.installRunCount++,this.sendResponse({kind:dX,eventId:s,typingsInstallerVersion:i,projectName:e.projectName});const l=a.map(Yme);this.installTypingsAsync(s,l,n,r=>{try{if(!r){this.log.isEnabled()&&this.log.writeLine(`install request failed, marking packages as missing to prevent repeated requests: ${JSON.stringify(a)}`);for(const e of a)this.missingTypingsSet.add(e);return}this.log.isEnabled()&&this.log.writeLine(`Installed typings ${JSON.stringify(l)}`);const i=[];for(const e of a){const t=Kme(n,e,this.installTypingHost,this.log);if(!t){this.missingTypingsSet.add(e);continue}const r=this.typesRegistry.get(e),a={typingLocation:t,version:new vt(r[`ts${o}`]||r[this.latestDistTag])};this.packageNameToTypingLocation.set(e,a),i.push(t)}this.log.isEnabled()&&this.log.writeLine(`Installed typing files ${JSON.stringify(i)}`),this.sendResponse(this.createSetTypings(e,t.concat(i)))}finally{const n={kind:uX,eventId:s,projectName:e.projectName,packagesToInstall:l,installSuccess:r,typingsInstallerVersion:i};this.sendResponse(n)}})}ensureDirectoryExists(e,n){const t=Mi(e);n.directoryExists(t)||this.ensureDirectoryExists(t,n),n.directoryExists(e)||n.createDirectory(e)}watchFiles(e,n){if(!n.length)return void this.closeWatchers(e);const t=this.projectWatchers.get(e),r=new Set(n);!t||sp(r,e=>!t.has(e))||sp(t,e=>!r.has(e))?(this.projectWatchers.set(e,r),this.sendResponse({kind:fX,projectName:e,files:n})):this.sendResponse({kind:fX,projectName:e,files:void 0})}createSetTypings(e,n){return{projectName:e.projectName,typeAcquisition:e.typeAcquisition,compilerOptions:e.compilerOptions,typings:n,unresolvedImports:e.unresolvedImports,kind:aX}}installTypingsAsync(e,n,t,r){this.pendingRunRequests.unshift({requestId:e,packageNames:n,cwd:t,onRequestCompleted:r}),this.executeWithThrottling()}executeWithThrottling(){for(;this.inFlightRequestCount<this.throttleLimit&&this.pendingRunRequests.length;){this.inFlightRequestCount++;const e=this.pendingRunRequests.pop();this.installWorker(e.requestId,e.packageNames,e.cwd,n=>{this.inFlightRequestCount--,e.onRequestCompleted(n),this.executeWithThrottling()})}}};function Yme(e){return`@types/${e}@ts${o}`}var $me,Qme,Zme=(e=>(e[e.terse=0]="terse",e[e.normal=1]="normal",e[e.requestTime=2]="requestTime",e[e.verbose=3]="verbose",e))(Zme||{}),ehe=[],nhe=(e=>(e.Err="Err",e.Info="Info",e.Perf="Perf",e))(nhe||{});function the(e,n,t,r){return{projectName:e.getProjectName(),fileNames:e.getFileNames(!0,!0).concat(e.getExcludedFiles()),compilerOptions:e.getCompilationSettings(),typeAcquisition:n,unresolvedImports:t,projectRootPath:e.getCurrentDirectory(),cachePath:r,kind:"discover"}}function rhe(e){return ji(e)}function ohe(e,n,t){return t(yi(e)?e:Vi(e,n))}function ihe(e){return e}function ahe(){const e=new Map;return{get:n=>e.get(n),set(n,t){e.set(n,t)},contains:n=>e.has(n),remove(n){e.delete(n)}}}function she(e){return/dev\/null\/inferredProject\d+\*/.test(e)}function lhe(e){return`/dev/null/inferredProject${e}*`}function che(e){return`/dev/null/autoImportProviderProject${e}*`}function dhe(e){return`/dev/null/auxiliaryProject${e}*`}function uhe(){return[]}(Qme=$me||($me={})).ThrowNoProject=function(){throw new Error("No Project.")},Qme.ThrowProjectLanguageServiceDisabled=function(){throw new Error("The project's language service is disabled.")},Qme.ThrowProjectDoesNotContainDocument=function(e,n){throw new Error(`Project '${n.getProjectName()}' does not contain document '${e}'`)};var phe=class e{constructor(e,n){this.host=e,this.pendingTimeouts=new Map,this.logger=n.hasLevel(3)?n:void 0}schedule(n,t,r){const o=this.pendingTimeouts.get(n);o&&this.host.clearTimeout(o),this.pendingTimeouts.set(n,this.host.setTimeout(e.run,t,n,this,r)),this.logger&&this.logger.info(`Scheduled: ${n}${o?", Cancelled earlier one":""}`)}cancel(e){const n=this.pendingTimeouts.get(e);return!!n&&(this.host.clearTimeout(n),this.pendingTimeouts.delete(e))}static run(e,n,t){n.pendingTimeouts.delete(e),n.logger&&n.logger.info(`Running: ${e}`),t()}},fhe=class e{constructor(e,n,t){this.host=e,this.delay=n,this.logger=t}scheduleCollect(){this.host.gc&&void 0===this.timerId&&(this.timerId=this.host.setTimeout(e.run,this.delay,this))}static run(e){e.timerId=void 0;const n=e.logger.hasLevel(2),t=n&&e.host.getMemoryUsage();if(e.host.gc(),n){const n=e.host.getMemoryUsage();e.logger.perftrc(`GC::before ${t}, after ${n}`)}}};function mhe(e){const n=Pi(e);return"tsconfig.json"===n||"jsconfig.json"===n?n:void 0}var hhe={};t(hhe,{ClassificationType:()=>eY,CommandTypes:()=>_he,CompletionTriggerKind:()=>WX,IndentStyle:()=>bhe,JsxEmit:()=>The,ModuleKind:()=>She,ModuleResolutionKind:()=>Ehe,NewLineKind:()=>Ahe,OrganizeImportsMode:()=>FX,PollingWatchKind:()=>vhe,ScriptTarget:()=>xhe,SemicolonPreference:()=>VX,WatchDirectoryKind:()=>yhe,WatchFileKind:()=>ghe});var _he=(e=>(e.JsxClosingTag="jsxClosingTag",e.LinkedEditingRange="linkedEditingRange",e.Brace="brace",e.BraceFull="brace-full",e.BraceCompletion="braceCompletion",e.GetSpanOfEnclosingComment="getSpanOfEnclosingComment",e.Change="change",e.Close="close",e.Completions="completions",e.CompletionInfo="completionInfo",e.CompletionsFull="completions-full",e.CompletionDetails="completionEntryDetails",e.CompletionDetailsFull="completionEntryDetails-full",e.CompileOnSaveAffectedFileList="compileOnSaveAffectedFileList",e.CompileOnSaveEmitFile="compileOnSaveEmitFile",e.Configure="configure",e.Definition="definition",e.DefinitionFull="definition-full",e.DefinitionAndBoundSpan="definitionAndBoundSpan",e.DefinitionAndBoundSpanFull="definitionAndBoundSpan-full",e.Implementation="implementation",e.ImplementationFull="implementation-full",e.EmitOutput="emit-output",e.Exit="exit",e.FileReferences="fileReferences",e.FileReferencesFull="fileReferences-full",e.Format="format",e.Formatonkey="formatonkey",e.FormatFull="format-full",e.FormatonkeyFull="formatonkey-full",e.FormatRangeFull="formatRange-full",e.Geterr="geterr",e.GeterrForProject="geterrForProject",e.SemanticDiagnosticsSync="semanticDiagnosticsSync",e.SyntacticDiagnosticsSync="syntacticDiagnosticsSync",e.SuggestionDiagnosticsSync="suggestionDiagnosticsSync",e.NavBar="navbar",e.NavBarFull="navbar-full",e.Navto="navto",e.NavtoFull="navto-full",e.NavTree="navtree",e.NavTreeFull="navtree-full",e.DocumentHighlights="documentHighlights",e.DocumentHighlightsFull="documentHighlights-full",e.Open="open",e.Quickinfo="quickinfo",e.QuickinfoFull="quickinfo-full",e.References="references",e.ReferencesFull="references-full",e.Reload="reload",e.Rename="rename",e.RenameInfoFull="rename-full",e.RenameLocationsFull="renameLocations-full",e.Saveto="saveto",e.SignatureHelp="signatureHelp",e.SignatureHelpFull="signatureHelp-full",e.FindSourceDefinition="findSourceDefinition",e.Status="status",e.TypeDefinition="typeDefinition",e.ProjectInfo="projectInfo",e.ReloadProjects="reloadProjects",e.Unknown="unknown",e.OpenExternalProject="openExternalProject",e.OpenExternalProjects="openExternalProjects",e.CloseExternalProject="closeExternalProject",e.SynchronizeProjectList="synchronizeProjectList",e.ApplyChangedToOpenFiles="applyChangedToOpenFiles",e.UpdateOpen="updateOpen",e.EncodedSyntacticClassificationsFull="encodedSyntacticClassifications-full",e.EncodedSemanticClassificationsFull="encodedSemanticClassifications-full",e.Cleanup="cleanup",e.GetOutliningSpans="getOutliningSpans",e.GetOutliningSpansFull="outliningSpans",e.TodoComments="todoComments",e.Indentation="indentation",e.DocCommentTemplate="docCommentTemplate",e.CompilerOptionsDiagnosticsFull="compilerOptionsDiagnostics-full",e.NameOrDottedNameSpan="nameOrDottedNameSpan",e.BreakpointStatement="breakpointStatement",e.CompilerOptionsForInferredProjects="compilerOptionsForInferredProjects",e.GetCodeFixes="getCodeFixes",e.GetCodeFixesFull="getCodeFixes-full",e.GetCombinedCodeFix="getCombinedCodeFix",e.GetCombinedCodeFixFull="getCombinedCodeFix-full",e.ApplyCodeActionCommand="applyCodeActionCommand",e.GetSupportedCodeFixes="getSupportedCodeFixes",e.GetApplicableRefactors="getApplicableRefactors",e.GetEditsForRefactor="getEditsForRefactor",e.GetMoveToRefactoringFileSuggestions="getMoveToRefactoringFileSuggestions",e.PreparePasteEdits="preparePasteEdits",e.GetPasteEdits="getPasteEdits",e.GetEditsForRefactorFull="getEditsForRefactor-full",e.OrganizeImports="organizeImports",e.OrganizeImportsFull="organizeImports-full",e.GetEditsForFileRename="getEditsForFileRename",e.GetEditsForFileRenameFull="getEditsForFileRename-full",e.ConfigurePlugin="configurePlugin",e.SelectionRange="selectionRange",e.SelectionRangeFull="selectionRange-full",e.ToggleLineComment="toggleLineComment",e.ToggleLineCommentFull="toggleLineComment-full",e.ToggleMultilineComment="toggleMultilineComment",e.ToggleMultilineCommentFull="toggleMultilineComment-full",e.CommentSelection="commentSelection",e.CommentSelectionFull="commentSelection-full",e.UncommentSelection="uncommentSelection",e.UncommentSelectionFull="uncommentSelection-full",e.PrepareCallHierarchy="prepareCallHierarchy",e.ProvideCallHierarchyIncomingCalls="provideCallHierarchyIncomingCalls",e.ProvideCallHierarchyOutgoingCalls="provideCallHierarchyOutgoingCalls",e.ProvideInlayHints="provideInlayHints",e.WatchChange="watchChange",e.MapCode="mapCode",e.CopilotRelated="copilotRelated",e))(_he||{}),ghe=(e=>(e.FixedPollingInterval="FixedPollingInterval",e.PriorityPollingInterval="PriorityPollingInterval",e.DynamicPriorityPolling="DynamicPriorityPolling",e.FixedChunkSizePolling="FixedChunkSizePolling",e.UseFsEvents="UseFsEvents",e.UseFsEventsOnParentDirectory="UseFsEventsOnParentDirectory",e))(ghe||{}),yhe=(e=>(e.UseFsEvents="UseFsEvents",e.FixedPollingInterval="FixedPollingInterval",e.DynamicPriorityPolling="DynamicPriorityPolling",e.FixedChunkSizePolling="FixedChunkSizePolling",e))(yhe||{}),vhe=(e=>(e.FixedInterval="FixedInterval",e.PriorityInterval="PriorityInterval",e.DynamicPriority="DynamicPriority",e.FixedChunkSize="FixedChunkSize",e))(vhe||{}),bhe=(e=>(e.None="None",e.Block="Block",e.Smart="Smart",e))(bhe||{}),The=(e=>(e.None="none",e.Preserve="preserve",e.ReactNative="react-native",e.React="react",e.ReactJSX="react-jsx",e.ReactJSXDev="react-jsxdev",e))(The||{}),She=(e=>(e.None="none",e.CommonJS="commonjs",e.AMD="amd",e.UMD="umd",e.System="system",e.ES6="es6",e.ES2015="es2015",e.ES2020="es2020",e.ES2022="es2022",e.ESNext="esnext",e.Node16="node16",e.Node18="node18",e.Node20="node20",e.NodeNext="nodenext",e.Preserve="preserve",e))(She||{}),Ehe=(e=>(e.Classic="classic",e.Node="node",e.NodeJs="node",e.Node10="node10",e.Node16="node16",e.NodeNext="nodenext",e.Bundler="bundler",e))(Ehe||{}),Ahe=(e=>(e.Crlf="Crlf",e.Lf="Lf",e))(Ahe||{}),xhe=(e=>(e.ES3="es3",e.ES5="es5",e.ES6="es6",e.ES2015="es2015",e.ES2016="es2016",e.ES2017="es2017",e.ES2018="es2018",e.ES2019="es2019",e.ES2020="es2020",e.ES2021="es2021",e.ES2022="es2022",e.ES2023="es2023",e.ES2024="es2024",e.ESNext="esnext",e.JSON="json",e.Latest="esnext",e))(xhe||{}),Rhe=class{constructor(e,n,t){this.host=e,this.info=n,this.isOpen=!1,this.ownFileText=!1,this.pendingReloadFromDisk=!1,this.version=t||0}getVersion(){return this.svc?`SVC-${this.version}-${this.svc.getSnapshotVersion()}`:`Text-${this.version}`}hasScriptVersionCache_TestOnly(){return void 0!==this.svc}resetSourceMapInfo(){this.info.sourceFileLike=void 0,this.info.closeSourceMapFileWatcher(),this.info.sourceMapFilePath=void 0,this.info.declarationInfoPath=void 0,this.info.sourceInfos=void 0,this.info.documentPositionMapper=void 0}useText(e){this.svc=void 0,this.text=e,this.textSnapshot=void 0,this.lineMap=void 0,this.fileSize=void 0,this.resetSourceMapInfo(),this.version++}edit(e,n,t){this.switchToScriptVersionCache().edit(e,n-e,t),this.ownFileText=!1,this.text=void 0,this.textSnapshot=void 0,this.lineMap=void 0,this.fileSize=void 0,this.resetSourceMapInfo()}reload(e){return dt.assert(void 0!==e),this.pendingReloadFromDisk=!1,!this.text&&this.svc&&(this.text=nQ(this.svc.getSnapshot())),this.text!==e&&(this.useText(e),this.ownFileText=!1,!0)}reloadWithFileText(e){const{text:n,fileSize:t}=e||!this.info.isDynamicOrHasMixedContent()?this.getFileTextAndSize(e):{text:"",fileSize:void 0},r=this.reload(n);return this.fileSize=t,this.ownFileText=!e||e===this.info.fileName,this.ownFileText&&this.info.mTime===Go.getTime()&&(this.info.mTime=(this.host.getModifiedTime(this.info.fileName)||Go).getTime()),r}scheduleReloadIfNeeded(){return!this.pendingReloadFromDisk&&!this.ownFileText&&(this.pendingReloadFromDisk=!0)}delayReloadFromFileIntoText(){this.pendingReloadFromDisk=!0}getTelemetryFileSize(){return this.fileSize?this.fileSize:this.text?this.text.length:this.svc?this.svc.getSnapshot().getLength():this.getSnapshot().getLength()}getSnapshot(){var e;return(null==(e=this.tryUseScriptVersionCache())?void 0:e.getSnapshot())||(this.textSnapshot??(this.textSnapshot=xX.fromString(dt.checkDefined(this.text))))}getAbsolutePositionAndLineText(e){const n=this.tryUseScriptVersionCache();if(n)return n.getAbsolutePositionAndLineText(e);const t=this.getLineMap();return e<=t.length?{absolutePosition:t[e-1],lineText:this.text.substring(t[e-1],t[e])}:{absolutePosition:this.text.length,lineText:void 0}}lineToTextSpan(e){const n=this.tryUseScriptVersionCache();if(n)return n.lineToTextSpan(e);const t=this.getLineMap();return Xs(t[e],e+1<t.length?t[e+1]:this.text.length)}lineOffsetToPosition(e,n,t){const r=this.tryUseScriptVersionCache();return r?r.lineOffsetToPosition(e,n):za(this.getLineMap(),e-1,n-1,this.text,t)}positionToLineOffset(e){const n=this.tryUseScriptVersionCache();if(n)return n.positionToLineOffset(e);const{line:t,character:r}=Ga(this.getLineMap(),e);return{line:t+1,offset:r+1}}getFileTextAndSize(e){let n;const t=e||this.info.fileName,r=()=>void 0===n?n=this.host.readFile(t)||"":n;if(!zE(this.info.fileName)){const e=this.host.getFileSize?this.host.getFileSize(t):r().length;if(e>$he){dt.assert(!!this.info.containingProjects.length);return this.info.containingProjects[0].projectService.logger.info(`Skipped loading contents of large file ${t} for info ${this.info.fileName}: fileSize: ${e}`),this.info.containingProjects[0].projectService.sendLargeFileReferencedEvent(t,e),{text:"",fileSize:e}}}return{text:r()}}switchToScriptVersionCache(){return this.svc&&!this.pendingReloadFromDisk||(this.svc=Wge.fromString(this.getOrLoadText()),this.textSnapshot=void 0,this.version++),this.svc}tryUseScriptVersionCache(){return this.svc&&!this.pendingReloadFromDisk||this.getOrLoadText(),this.isOpen?(this.svc||this.textSnapshot||(this.svc=Wge.fromString(dt.checkDefined(this.text)),this.textSnapshot=void 0),this.svc):this.svc}getOrLoadText(){return(void 0===this.text||this.pendingReloadFromDisk)&&(dt.assert(!this.svc||this.pendingReloadFromDisk,"ScriptVersionCache should not be set when reloading from disk"),this.reloadWithFileText()),this.text}getLineMap(){return dt.assert(!this.svc,"ScriptVersionCache should not be set"),this.lineMap||(this.lineMap=Fa(dt.checkDefined(this.text)))}getLineInfo(){const e=this.tryUseScriptVersionCache();if(e)return{getLineCount:()=>e.getLineCount(),getLineText:n=>e.getAbsolutePositionAndLineText(n+1).lineText};const n=this.getLineMap();return OB(this.text,n)}};function Ihe(e){return"^"===e[0]||(e.includes("walkThroughSnippet:/")||e.includes("untitled:/"))&&"^"===Pi(e)[0]||e.includes(":^")&&!e.includes(pi)}var Dhe=class{constructor(e,n,t,r,o,i){this.host=e,this.fileName=n,this.scriptKind=t,this.hasMixedContent=r,this.path=o,this.containingProjects=[],this.isDynamic=Ihe(n),this.textStorage=new Rhe(e,this,i),(r||this.isDynamic)&&(this.realpath=this.path),this.scriptKind=t||xE(n)}isDynamicOrHasMixedContent(){return this.hasMixedContent||this.isDynamic}isScriptOpen(){return this.textStorage.isOpen}open(e){this.textStorage.isOpen=!0,void 0!==e&&this.textStorage.reload(e)&&this.markContainingProjectsAsDirty()}close(e=!0){this.textStorage.isOpen=!1,e&&this.textStorage.scheduleReloadIfNeeded()&&this.markContainingProjectsAsDirty()}getSnapshot(){return this.textStorage.getSnapshot()}ensureRealPath(){if(void 0===this.realpath&&(this.realpath=this.path,this.host.realpath)){dt.assert(!!this.containingProjects.length);const e=this.containingProjects[0],n=this.host.realpath(this.path);n&&(this.realpath=e.toPath(n),this.realpath!==this.path&&e.projectService.realpathToScriptInfos.add(this.realpath,this))}}getRealpathIfDifferent(){return this.realpath&&this.realpath!==this.path?this.realpath:void 0}isSymlink(){return this.realpath&&this.realpath!==this.path}getFormatCodeSettings(){return this.formatSettings}getPreferences(){return this.preferences}attachToProject(e){const n=!this.isAttached(e);return n&&(this.containingProjects.push(e),e.getCompilerOptions().preserveSymlinks||this.ensureRealPath(),e.onFileAddedOrRemoved(this.isSymlink())),n}isAttached(e){switch(this.containingProjects.length){case 0:return!1;case 1:return this.containingProjects[0]===e;case 2:return this.containingProjects[0]===e||this.containingProjects[1]===e;default:return S(this.containingProjects,e)}}detachFromProject(e){switch(this.containingProjects.length){case 0:return;case 1:this.containingProjects[0]===e&&(e.onFileAddedOrRemoved(this.isSymlink()),this.containingProjects.pop());break;case 2:this.containingProjects[0]===e?(e.onFileAddedOrRemoved(this.isSymlink()),this.containingProjects[0]=this.containingProjects.pop()):this.containingProjects[1]===e&&(e.onFileAddedOrRemoved(this.isSymlink()),this.containingProjects.pop());break;default:Gn(this.containingProjects,e)&&e.onFileAddedOrRemoved(this.isSymlink())}}detachAllProjects(){for(const e of this.containingProjects){Khe(e)&&e.getCachedDirectoryStructureHost().addOrDeleteFile(this.fileName,this.path,2);const n=e.getRootFilesMap().get(this.path);e.removeFile(this,!1,!1),e.onFileAddedOrRemoved(this.isSymlink()),n&&!Hhe(e)&&e.addMissingFileRoot(n.fileName)}I(this.containingProjects)}getDefaultProject(){switch(this.containingProjects.length){case 0:return $me.ThrowNoProject();case 1:return Xhe(this.containingProjects[0])||Jhe(this.containingProjects[0])?$me.ThrowNoProject():this.containingProjects[0];default:let e,n,t,r;for(let o=0;o<this.containingProjects.length;o++){const i=this.containingProjects[o];if(Khe(i)){if(i.deferredClose)continue;if(!i.isSourceOfProjectReferenceRedirect(this.fileName)){if(void 0===r&&o!==this.containingProjects.length-1&&(r=i.projectService.findDefaultConfiguredProject(this)||!1),r===i)return i;t||(t=i)}e||(e=i)}else{if(qhe(i))return i;!n&&Hhe(i)&&(n=i)}}return(r||t||e||n)??$me.ThrowNoProject()}}registerFileUpdate(){for(const e of this.containingProjects)e.registerFileUpdate(this.path)}setOptions(e,n){e&&(this.formatSettings?this.formatSettings={...this.formatSettings,...e}:(this.formatSettings=jX(this.host.newLine),ke(this.formatSettings,e))),n&&(this.preferences||(this.preferences=wX),this.preferences={...this.preferences,...n})}getLatestVersion(){return this.textStorage.getSnapshot(),this.textStorage.getVersion()}saveTo(e){this.host.writeFile(e,nQ(this.textStorage.getSnapshot()))}delayReloadNonMixedContentFile(){dt.assert(!this.isDynamicOrHasMixedContent()),this.textStorage.delayReloadFromFileIntoText(),this.markContainingProjectsAsDirty()}reloadFromFile(e){return!!this.textStorage.reloadWithFileText(e)&&(this.markContainingProjectsAsDirty(),!0)}editContent(e,n,t){this.textStorage.edit(e,n,t),this.markContainingProjectsAsDirty()}markContainingProjectsAsDirty(){for(const e of this.containingProjects)e.markFileAsDirty(this.path)}isOrphan(){return this.deferredDelete||!d(this.containingProjects,e=>!e.isOrphan())}lineToTextSpan(e){return this.textStorage.lineToTextSpan(e)}lineOffsetToPosition(e,n,t){return this.textStorage.lineOffsetToPosition(e,n,t)}positionToLineOffset(e){!function(e){dt.assert("number"==typeof e,`Expected position ${e} to be a number.`),dt.assert(e>=0,"Expected position to be non-negative.")}(e);const n=this.textStorage.positionToLineOffset(e);return function(e){dt.assert("number"==typeof e.line,`Expected line ${e.line} to be a number.`),dt.assert("number"==typeof e.offset,`Expected offset ${e.offset} to be a number.`),dt.assert(e.line>0,"Expected line to be non-"+(0===e.line?"zero":"negative")),dt.assert(e.offset>0,"Expected offset to be non-"+(0===e.offset?"zero":"negative"))}(n),n}isJavaScript(){return 1===this.scriptKind||2===this.scriptKind}closeSourceMapFileWatcher(){this.sourceMapFilePath&&!Qe(this.sourceMapFilePath)&&(qj(this.sourceMapFilePath),this.sourceMapFilePath=void 0)}};function Che(e){return U(e.containingProjects,Jhe)}function Nhe(e){return U(e.containingProjects,Xhe)}var Mhe=(e=>(e[e.Inferred=0]="Inferred",e[e.Configured=1]="Configured",e[e.External=2]="External",e[e.AutoImportProvider=3]="AutoImportProvider",e[e.Auxiliary=4]="Auxiliary",e))(Mhe||{});function Phe(e,n=!1){const t={js:0,jsSize:0,jsx:0,jsxSize:0,ts:0,tsSize:0,tsx:0,tsxSize:0,dts:0,dtsSize:0,deferred:0,deferredSize:0};for(const r of e){const e=n?r.textStorage.getTelemetryFileSize():0;switch(r.scriptKind){case 1:t.js+=1,t.jsSize+=e;break;case 2:t.jsx+=1,t.jsxSize+=e;break;case 3:yk(r.fileName)?(t.dts+=1,t.dtsSize+=e):(t.ts+=1,t.tsSize+=e);break;case 4:t.tsx+=1,t.tsxSize+=e;break;case 7:t.deferred+=1,t.deferredSize+=e}}return t}function Lhe(e){const n=Phe(e.getRootScriptInfos());return 0===n.ts&&0===n.tsx}function khe(e){const n=Phe(e.getScriptInfos());return 0===n.ts&&0===n.tsx}function whe(e){return!e.some(e=>xi(e,".ts")&&!yk(e)||xi(e,".tsx"))}function Ohe(e){return void 0!==e.generatedFilePath}function Fhe(e,n){if(e===n)return!0;if(0===(e||ehe).length&&0===(n||ehe).length)return!0;const t=new Map;let r=0;for(const o of e)!0!==t.get(o)&&(t.set(o,!0),r++);for(const o of n){const e=t.get(o);if(void 0===e)return!1;!0===e&&(t.set(o,!1),r--)}return 0===r}var Whe=class e{constructor(e,n,t,r,o,i,a,s,l,c){switch(this.projectKind=n,this.projectService=t,this.compilerOptions=i,this.compileOnSaveEnabled=a,this.watchOptions=s,this.rootFilesMap=new Map,this.plugins=[],this.cachedUnresolvedImportsPerFile=new Map,this.hasAddedorRemovedFiles=!1,this.hasAddedOrRemovedSymlinks=!1,this.lastReportedVersion=0,this.projectProgramVersion=0,this.projectStateVersion=0,this.initialLoadPending=!1,this.dirty=!1,this.typingFiles=ehe,this.moduleSpecifierCache=ege(this),this.createHash=Ue(this.projectService.host,this.projectService.host.createHash),this.globalCacheResolutionModuleName=rX.nonRelativeModuleNameForTypingCache,this.updateFromProjectInProgress=!1,t.logger.info(`Creating ${Mhe[n]}Project: ${e}, currentDirectory: ${c}`),this.projectName=e,this.directoryStructureHost=l,this.currentDirectory=this.projectService.getNormalizedAbsolutePath(c),this.getCanonicalFileName=this.projectService.toCanonicalFileName,this.jsDocParsingMode=this.projectService.jsDocParsingMode,this.cancellationToken=new c5(this.projectService.cancellationToken,this.projectService.throttleWaitMilliseconds),this.compilerOptions?(r||OS(this.compilerOptions)||this.projectService.hasDeferredExtension())&&(this.compilerOptions.allowNonTsExtensions=!0):(this.compilerOptions={target:1,jsx:1},this.compilerOptions.allowNonTsExtensions=!0,this.compilerOptions.allowJs=!0),t.serverMode){case 0:this.languageServiceEnabled=!0;break;case 1:this.languageServiceEnabled=!0,this.compilerOptions.noResolve=!0,this.compilerOptions.types=[];break;case 2:this.languageServiceEnabled=!1,this.compilerOptions.noResolve=!0,this.compilerOptions.types=[];break;default:dt.assertNever(t.serverMode)}this.setInternalCompilerOptionsForEmittingJsFiles();const d=this.projectService.host;this.projectService.logger.loggingEnabled()?this.trace=e=>this.writeLog(e):d.trace&&(this.trace=e=>d.trace(e)),this.realpath=Ue(d,d.realpath),this.preferNonRecursiveWatch=this.projectService.canUseWatchEvents||d.preferNonRecursiveWatch,this.resolutionCache=fK(this,this.currentDirectory,!0),this.languageService=p5(this,this.projectService.documentRegistry,this.projectService.serverMode),o&&this.disableLanguageService(o),this.markAsDirty(),Jhe(this)||(this.projectService.pendingEnsureProjectForOpenFiles=!0),this.projectService.onProjectCreation(this)}getRedirectFromSourceFile(e){}isNonTsProject(){return B_e(this),khe(this)}isJsOnlyProject(){return B_e(this),function(e){const n=Phe(e.getScriptInfos());return n.js>0&&0===n.ts&&0===n.tsx}(this)}static resolveModule(n,t,r,o){return e.importServicePluginSync({name:n},[t],r,o).resolvedModule}static importServicePluginSync(e,n,t,r){let o,i;dt.assertIsDefined(t.require);for(const a of n){const n=Fi(t.resolvePath(zi(a,"node_modules")));r(`Loading ${e.name} from ${a} (resolved to ${n})`);const s=t.require(n,e.name);if(!s.error){i=s.module;break}const l=s.error.stack||s.error.message||JSON.stringify(s.error);(o??(o=[])).push(`Failed to load module '${e.name}' from ${n}: ${l}`)}return{pluginConfigEntry:e,resolvedModule:i,errorLogs:o}}static async importServicePluginAsync(e,n,t,r){let o,i;dt.assertIsDefined(t.importPlugin);for(const a of n){const n=zi(a,"node_modules");let s;r(`Dynamically importing ${e.name} from ${a} (resolved to ${n})`);try{s=await t.importPlugin(n,e.name)}catch(bi){s={module:void 0,error:bi}}if(!s.error){i=s.module;break}const l=s.error.stack||s.error.message||JSON.stringify(s.error);(o??(o=[])).push(`Failed to dynamically import module '${e.name}' from ${n}: ${l}`)}return{pluginConfigEntry:e,resolvedModule:i,errorLogs:o}}isKnownTypesPackageName(e){return this.projectService.typingsInstaller.isKnownTypesPackageName(e)}installPackage(e){return this.projectService.typingsInstaller.installPackage({...e,projectName:this.projectName,projectRootPath:this.toPath(this.currentDirectory)})}getGlobalTypingsCacheLocation(){return this.getTypeAcquisition().enable?this.projectService.typingsInstaller.globalTypingsCacheLocation:void 0}getSymlinkCache(){return this.symlinks||(this.symlinks=nE(this.getCurrentDirectory(),this.getCanonicalFileName)),this.program&&!this.symlinks.hasProcessedResolutions()&&this.symlinks.setSymlinksFromResolutions(this.program.forEachResolvedModule,this.program.forEachResolvedTypeReferenceDirective,this.program.getAutomaticTypeDirectiveResolutions()),this.symlinks}getCompilationSettings(){return this.compilerOptions}getCompilerOptions(){return this.getCompilationSettings()}getNewLine(){return this.projectService.host.newLine}getProjectVersion(){return this.projectStateVersion.toString()}getProjectReferences(){}getScriptFileNames(){if(!this.rootFilesMap.size)return s;let e;return this.rootFilesMap.forEach(n=>{(this.languageServiceEnabled||n.info&&n.info.isScriptOpen())&&(e||(e=[])).push(n.fileName)}),ae(e,this.typingFiles)||s}getOrCreateScriptInfoAndAttachToProject(e){const n=this.projectService.getOrCreateScriptInfoNotOpenedByClient(e,this.currentDirectory,this.directoryStructureHost,!1);if(n){const e=this.rootFilesMap.get(n.path);e&&e.info!==n&&(e.info=n),n.attachToProject(this)}return n}getScriptKind(e){const n=this.projectService.getScriptInfoForPath(this.toPath(e));return n&&n.scriptKind}getScriptVersion(e){const n=this.projectService.getOrCreateScriptInfoNotOpenedByClient(e,this.currentDirectory,this.directoryStructureHost,!1);return n&&n.getLatestVersion()}getScriptSnapshot(e){const n=this.getOrCreateScriptInfoAndAttachToProject(e);if(n)return n.getSnapshot()}getCancellationToken(){return this.cancellationToken}getCurrentDirectory(){return this.currentDirectory}getDefaultLibFileName(){return zi(Mi(ji(this.projectService.getExecutingFilePath())),Ms(this.compilerOptions))}useCaseSensitiveFileNames(){return this.projectService.host.useCaseSensitiveFileNames}readDirectory(e,n,t,r,o){return this.directoryStructureHost.readDirectory(e,n,t,r,o)}readFile(e){return this.projectService.host.readFile(e)}writeFile(e,n){return this.projectService.host.writeFile(e,n)}fileExists(e){const n=this.toPath(e);return!!this.projectService.getScriptInfoForPath(n)||!this.isWatchedMissingFile(n)&&this.directoryStructureHost.fileExists(e)}resolveModuleNameLiterals(e,n,t,r,o,i){return this.resolutionCache.resolveModuleNameLiterals(e,n,t,r,o,i)}getModuleResolutionCache(){return this.resolutionCache.getModuleResolutionCache()}resolveTypeReferenceDirectiveReferences(e,n,t,r,o,i){return this.resolutionCache.resolveTypeReferenceDirectiveReferences(e,n,t,r,o,i)}resolveLibrary(e,n,t,r){return this.resolutionCache.resolveLibrary(e,n,t,r)}directoryExists(e){return this.directoryStructureHost.directoryExists(e)}getDirectories(e){return this.directoryStructureHost.getDirectories(e)}getCachedDirectoryStructureHost(){}toPath(e){return Ki(e,this.currentDirectory,this.projectService.toCanonicalFileName)}watchDirectoryOfFailedLookupLocation(e,n,t){return this.projectService.watchFactory.watchDirectory(e,n,t,this.projectService.getWatchOptions(this),zK.FailedLookupLocations,this)}watchAffectingFileLocation(e,n){return this.projectService.watchFactory.watchFile(e,n,2e3,this.projectService.getWatchOptions(this),zK.AffectingFileLocation,this)}clearInvalidateResolutionOfFailedLookupTimer(){return this.projectService.throttledOperations.cancel(`${this.getProjectName()}FailedLookupInvalidation`)}scheduleInvalidateResolutionsOfFailedLookupLocations(){this.projectService.throttledOperations.schedule(`${this.getProjectName()}FailedLookupInvalidation`,1e3,()=>{this.resolutionCache.invalidateResolutionsOfFailedLookupLocations()&&this.projectService.delayUpdateProjectGraphAndEnsureProjectStructureForOpenFiles(this)})}invalidateResolutionsOfFailedLookupLocations(){this.clearInvalidateResolutionOfFailedLookupTimer()&&this.resolutionCache.invalidateResolutionsOfFailedLookupLocations()&&(this.markAsDirty(),this.projectService.delayEnsureProjectForOpenFiles())}onInvalidatedResolution(){this.projectService.delayUpdateProjectGraphAndEnsureProjectStructureForOpenFiles(this)}watchTypeRootsDirectory(e,n,t){return this.projectService.watchFactory.watchDirectory(e,n,t,this.projectService.getWatchOptions(this),zK.TypeRoots,this)}hasChangedAutomaticTypeDirectiveNames(){return this.resolutionCache.hasChangedAutomaticTypeDirectiveNames()}onChangedAutomaticTypeDirectiveNames(){this.projectService.delayUpdateProjectGraphAndEnsureProjectStructureForOpenFiles(this)}fileIsOpen(e){return this.projectService.openFiles.has(e)}writeLog(e){this.projectService.logger.info(e)}log(e){this.writeLog(e)}error(e){this.projectService.logger.msg(e,"Err")}setInternalCompilerOptionsForEmittingJsFiles(){0!==this.projectKind&&2!==this.projectKind||(this.compilerOptions.noEmitForJsFiles=!0)}getGlobalProjectErrors(){return x(this.projectErrors,e=>!e.file)||ehe}getAllProjectErrors(){return this.projectErrors||ehe}setProjectErrors(e){this.projectErrors=e}getLanguageService(e=!0){return e&&B_e(this),this.languageService}getSourceMapper(){return this.getLanguageService().getSourceMapper()}clearSourceMapperCache(){this.languageService.clearSourceMapperCache()}getDocumentPositionMapper(e,n){return this.projectService.getDocumentPositionMapper(this,e,n)}getSourceFileLike(e){return this.projectService.getSourceFileLike(e,this)}shouldEmitFile(e){return e&&!e.isDynamicOrHasMixedContent()&&!this.program.isSourceOfProjectReferenceRedirect(e.path)}getCompileOnSaveAffectedFileList(e){return this.languageServiceEnabled?(B_e(this),this.builderState=iH.create(this.program,this.builderState,!0),F(iH.getFilesAffectedBy(this.builderState,this.program,e.path,this.cancellationToken,this.projectService.host),e=>this.shouldEmitFile(this.projectService.getScriptInfoForPath(e.path))?e.fileName:void 0)):[]}emitFile(e,n){if(!this.languageServiceEnabled||!this.shouldEmitFile(e))return{emitSkipped:!0,diagnostics:ehe};const{emitSkipped:t,diagnostics:r,outputFiles:o}=this.getLanguageService().getEmitOutput(e.fileName);if(!t){for(const e of o){n(Vi(e.name,this.currentDirectory),e.text,e.writeByteOrderMark)}if(this.builderState&&PS(this.compilerOptions)){const n=o.filter(e=>yk(e.name));if(1===n.length){const t=this.program.getSourceFile(e.fileName),r=this.projectService.host.createHash?this.projectService.host.createHash(n[0].text):Fo(n[0].text);iH.updateSignatureOfFile(this.builderState,r,t.resolvedPath)}}}return{emitSkipped:t,diagnostics:r}}enableLanguageService(){this.languageServiceEnabled||2===this.projectService.serverMode||(this.languageServiceEnabled=!0,this.lastFileExceededProgramSize=void 0,this.projectService.onUpdateLanguageServiceStateForProject(this,!0))}cleanupProgram(){if(this.program){for(const e of this.program.getSourceFiles())this.detachScriptInfoIfNotRoot(e.fileName);this.program.forEachResolvedProjectReference(e=>this.detachScriptInfoFromProject(e.sourceFile.fileName)),this.program=void 0}}disableLanguageService(e){this.languageServiceEnabled&&(dt.assert(2!==this.projectService.serverMode),this.languageService.cleanupSemanticCache(),this.languageServiceEnabled=!1,this.cleanupProgram(),this.lastFileExceededProgramSize=e,this.builderState=void 0,this.autoImportProviderHost&&this.autoImportProviderHost.close(),this.autoImportProviderHost=void 0,this.resolutionCache.closeTypeRootsWatch(),this.clearGeneratedFileWatch(),this.projectService.verifyDocumentRegistry(),this.projectService.onUpdateLanguageServiceStateForProject(this,!1))}getProjectName(){return this.projectName}removeLocalTypingsFromTypeAcquisition(e){return e.enable&&e.include?{...e,include:this.removeExistingTypings(e.include)}:e}getExternalFiles(e){return ce(P(this.plugins,n=>{if("function"==typeof n.module.getExternalFiles)try{return n.module.getExternalFiles(this,e||0)}catch(bi){this.projectService.logger.info(`A plugin threw an exception in getExternalFiles: ${bi}`),bi.stack&&this.projectService.logger.info(bi.stack)}}))}getSourceFile(e){if(this.program)return this.program.getSourceFileByPath(e)}getSourceFileOrConfigFile(e){const n=this.program.getCompilerOptions();return e===n.configFilePath?n.configFile:this.getSourceFile(e)}close(){var e;this.typingsCache&&this.projectService.typingsInstaller.onProjectClosed(this),this.typingsCache=void 0,this.closeWatchingTypingLocations(),this.cleanupProgram(),d(this.externalFiles,e=>this.detachScriptInfoIfNotRoot(e)),this.rootFilesMap.forEach(e=>{var n;return null==(n=e.info)?void 0:n.detachFromProject(this)}),this.projectService.pendingEnsureProjectForOpenFiles=!0,this.rootFilesMap=void 0,this.externalFiles=void 0,this.program=void 0,this.builderState=void 0,this.resolutionCache.clear(),this.resolutionCache=void 0,this.cachedUnresolvedImportsPerFile=void 0,null==(e=this.packageJsonWatches)||e.forEach(e=>{e.projects.delete(this),e.close()}),this.packageJsonWatches=void 0,this.moduleSpecifierCache.clear(),this.moduleSpecifierCache=void 0,this.directoryStructureHost=void 0,this.exportMapCache=void 0,this.projectErrors=void 0,this.plugins.length=0,this.missingFilesMap&&(hT(this.missingFilesMap,aT),this.missingFilesMap=void 0),this.clearGeneratedFileWatch(),this.clearInvalidateResolutionOfFailedLookupTimer(),this.autoImportProviderHost&&this.autoImportProviderHost.close(),this.autoImportProviderHost=void 0,this.noDtsResolutionProject&&this.noDtsResolutionProject.close(),this.noDtsResolutionProject=void 0,this.languageService.dispose(),this.languageService=void 0}detachScriptInfoIfNotRoot(e){const n=this.projectService.getScriptInfo(e);n&&!this.isRoot(n)&&n.detachFromProject(this)}isClosed(){return void 0===this.rootFilesMap}hasRoots(){var e;return!!(null==(e=this.rootFilesMap)?void 0:e.size)}isOrphan(){return!1}getRootFiles(){return this.rootFilesMap&&Le(W(this.rootFilesMap.values(),e=>{var n;return null==(n=e.info)?void 0:n.fileName}))}getRootFilesMap(){return this.rootFilesMap}getRootScriptInfos(){return Le(W(this.rootFilesMap.values(),e=>e.info))}getScriptInfos(){return this.languageServiceEnabled?D(this.program.getSourceFiles(),e=>{const n=this.projectService.getScriptInfoForPath(e.resolvedPath);return dt.assert(!!n,"getScriptInfo",()=>`scriptInfo for a file '${e.fileName}' Path: '${e.path}' / '${e.resolvedPath}' is missing.`),n}):this.getRootScriptInfos()}getExcludedFiles(){return ehe}getFileNames(e,n){if(!this.program)return[];if(!this.languageServiceEnabled){let e=this.getRootFiles();if(this.compilerOptions){const n=_5(this.compilerOptions);n&&(e||(e=[])).push(n)}return e}const t=[];for(const r of this.program.getSourceFiles())e&&this.program.isSourceFileFromExternalLibrary(r)||t.push(ihe(r.fileName));if(!n){const e=this.program.getCompilerOptions().configFile;if(e&&(t.push(e.fileName),e.extendedSourceFiles))for(const n of e.extendedSourceFiles)t.push(ihe(n))}return t}getFileNamesWithRedirectInfo(e){return this.getFileNames().map(n=>({fileName:n,isSourceOfProjectReferenceRedirect:e&&this.isSourceOfProjectReferenceRedirect(n)}))}hasConfigFile(e){if(this.program&&this.languageServiceEnabled){const n=this.program.getCompilerOptions().configFile;if(n){if(e===n.fileName)return!0;if(n.extendedSourceFiles)for(const t of n.extendedSourceFiles)if(e===ihe(t))return!0}}return!1}containsScriptInfo(e){if(this.isRoot(e))return!0;if(!this.program)return!1;const n=this.program.getSourceFileByPath(e.path);return!!n&&n.resolvedPath===e.path}containsFile(e,n){const t=this.projectService.getScriptInfoForNormalizedPath(e);return!(!t||!t.isScriptOpen()&&n)&&this.containsScriptInfo(t)}isRoot(e){var n,t;return(null==(t=null==(n=this.rootFilesMap)?void 0:n.get(e.path))?void 0:t.info)===e}addRoot(e,n){dt.assert(!this.isRoot(e)),this.rootFilesMap.set(e.path,{fileName:n||e.fileName,info:e}),e.attachToProject(this),this.markAsDirty()}addMissingFileRoot(e){const n=this.projectService.toPath(e);this.rootFilesMap.set(n,{fileName:e}),this.markAsDirty()}removeFile(e,n,t){this.isRoot(e)&&this.removeRoot(e),n?this.resolutionCache.removeResolutionsOfFile(e.path):this.resolutionCache.invalidateResolutionOfFile(e.path),this.cachedUnresolvedImportsPerFile.delete(e.path),t&&e.detachFromProject(this),this.markAsDirty()}registerFileUpdate(e){(this.updatedFileNames||(this.updatedFileNames=new Set)).add(e)}markFileAsDirty(e){this.markAsDirty(),this.exportMapCache&&!this.exportMapCache.isEmpty()&&(this.changedFilesForExportMapCache||(this.changedFilesForExportMapCache=new Set)).add(e)}markAsDirty(){this.dirty||(this.projectStateVersion++,this.dirty=!0)}markAutoImportProviderAsDirty(){var e;this.autoImportProviderHost||(this.autoImportProviderHost=void 0),null==(e=this.autoImportProviderHost)||e.markAsDirty()}onAutoImportProviderSettingsChanged(){this.markAutoImportProviderAsDirty()}onPackageJsonChange(){this.moduleSpecifierCache.clear(),this.markAutoImportProviderAsDirty()}onFileAddedOrRemoved(e){this.hasAddedorRemovedFiles=!0,e&&(this.hasAddedOrRemovedSymlinks=!0)}onDiscoveredSymlink(){this.hasAddedOrRemovedSymlinks=!0}onReleaseOldSourceFile(e,n,t,r){(!r||e.resolvedPath===e.path&&r.resolvedPath!==e.path)&&this.detachScriptInfoFromProject(e.fileName,t)}updateFromProject(){B_e(this)}updateGraph(){var e,n;null==(e=Kt)||e.push(Kt.Phase.Session,"updateGraph",{name:this.projectName,kind:Mhe[this.projectKind]}),this.resolutionCache.startRecordingFilesWithChangedResolutions();const t=this.updateGraphWorker(),r=this.hasAddedorRemovedFiles;this.hasAddedorRemovedFiles=!1,this.hasAddedOrRemovedSymlinks=!1;const o=this.resolutionCache.finishRecordingFilesWithChangedResolutions()||ehe;for(const a of o)this.cachedUnresolvedImportsPerFile.delete(a);this.languageServiceEnabled&&0===this.projectService.serverMode&&!this.isOrphan()?((t||o.length)&&(this.lastCachedUnresolvedImportsList=function(e,n){var t,r;const o=e.getSourceFiles();null==(t=Kt)||t.push(Kt.Phase.Session,"getUnresolvedImports",{count:o.length});const i=e.getTypeChecker().getAmbientModules().map(e=>Py(e.getName())),a=Z(P(o,t=>function(e,n,t,r){return z(r,n.path,()=>{let r;return e.forEachResolvedModule(({resolvedModule:e},n)=>{e&&tA(e.extension)||Ds(n)||t.some(e=>e===n)||(r=re(r,xW(n).packageName))},n),r||ehe})}(e,t,i,n)));return null==(r=Kt)||r.pop(),a}(this.program,this.cachedUnresolvedImportsPerFile)),this.enqueueInstallTypingsForProject(r)):this.lastCachedUnresolvedImportsList=void 0;const i=0===this.projectProgramVersion&&t;return t&&this.projectProgramVersion++,r&&this.markAutoImportProviderAsDirty(),i&&this.getPackageJsonAutoImportProvider(),null==(n=Kt)||n.pop(),!t}enqueueInstallTypingsForProject(e){const n=this.getTypeAcquisition();if(!n||!n.enable||this.projectService.typingsInstaller===x_e)return;const t=this.typingsCache;var r,o,i,a;!e&&t&&(i=n,a=t.typeAcquisition,i.enable===a.enable&&Fhe(i.include,a.include)&&Fhe(i.exclude,a.exclude))&&!function(e,n){return OS(e)!==OS(n)}(this.getCompilationSettings(),t.compilerOptions)&&(r=this.lastCachedUnresolvedImportsList,o=t.unresolvedImports,r===o||ee(r,o))||(this.typingsCache={compilerOptions:this.getCompilationSettings(),typeAcquisition:n,unresolvedImports:this.lastCachedUnresolvedImportsList},this.projectService.typingsInstaller.enqueueInstallTypingsRequest(this,n,this.lastCachedUnresolvedImportsList))}updateTypingFiles(e,n,t,r){this.typingsCache={compilerOptions:e,typeAcquisition:n,unresolvedImports:t};const o=n&&n.enable?ce(r):ehe;ot(o,this.typingFiles,Rn(!this.useCaseSensitiveFileNames()),tn,e=>this.detachScriptInfoFromProject(e))&&(this.typingFiles=o,this.resolutionCache.setFilesWithInvalidatedNonRelativeUnresolvedImports(this.cachedUnresolvedImportsPerFile),this.projectService.delayUpdateProjectGraphAndEnsureProjectStructureForOpenFiles(this))}closeWatchingTypingLocations(){this.typingWatchers&&hT(this.typingWatchers,aT),this.typingWatchers=void 0}onTypingInstallerWatchInvoke(){this.typingWatchers.isInvoked=!0,this.projectService.updateTypingsForProject({projectName:this.getProjectName(),kind:sX})}watchTypingLocations(e){if(!e)return void(this.typingWatchers.isInvoked=!1);if(!e.length)return void this.closeWatchingTypingLocations();const n=new Map(this.typingWatchers);this.typingWatchers||(this.typingWatchers=new Map),this.typingWatchers.isInvoked=!1;const t=(e,t)=>{const r=this.toPath(e);if(n.delete(r),!this.typingWatchers.has(r)){const n="FileWatcher"===t?zK.TypingInstallerLocationFile:zK.TypingInstallerLocationDirectory;this.typingWatchers.set(r,nK(r)?"FileWatcher"===t?this.projectService.watchFactory.watchFile(e,()=>this.typingWatchers.isInvoked?this.writeLog("TypingWatchers already invoked"):this.onTypingInstallerWatchInvoke(),2e3,this.projectService.getWatchOptions(this),n,this):this.projectService.watchFactory.watchDirectory(e,e=>this.typingWatchers.isInvoked?this.writeLog("TypingWatchers already invoked"):xi(e,".json")?ta(e,zi(this.projectService.typingsInstaller.globalTypingsCacheLocation,"package.json"),!this.useCaseSensitiveFileNames())?this.writeLog("Ignoring package.json change at global typings location"):void this.onTypingInstallerWatchInvoke():this.writeLog("Ignoring files that are not *.json"),1,this.projectService.getWatchOptions(this),n,this):(this.writeLog(`Skipping watcher creation at ${e}:: ${W_e(n,this)}`),OK))}};for(const r of e){const e=Pi(r);if("package.json"!==e&&"bower.json"!==e){if(ra(this.currentDirectory,r,this.currentDirectory,!this.useCaseSensitiveFileNames())){const e=r.indexOf(pi,this.currentDirectory.length+1);t(-1!==e?r.substr(0,e):r,"DirectoryWatcher");continue}ra(this.projectService.typingsInstaller.globalTypingsCacheLocation,r,this.currentDirectory,!this.useCaseSensitiveFileNames())?t(this.projectService.typingsInstaller.globalTypingsCacheLocation,"DirectoryWatcher"):t(r,"DirectoryWatcher")}else t(r,"FileWatcher")}n.forEach((e,n)=>{e.close(),this.typingWatchers.delete(n)})}getCurrentProgram(){return this.program}removeExistingTypings(e){if(!e.length)return e;const n=DF(this.getCompilerOptions(),this);return x(e,e=>!n.includes(e))}updateGraphWorker(){var e,n;const t=this.languageService.getCurrentProgram();dt.assert(t===this.program),dt.assert(!this.isClosed(),"Called update graph worker of closed project"),this.writeLog(`Starting updateGraphWorker: Project: ${this.getProjectName()}`);const r=Vt(),{hasInvalidatedResolutions:o,hasInvalidatedLibResolutions:i}=this.resolutionCache.createHasInvalidatedResolutions(rn,rn);this.hasInvalidatedResolutions=o,this.hasInvalidatedLibResolutions=i,this.resolutionCache.startCachingPerDirectoryResolution(),this.dirty=!1,this.updateFromProjectInProgress=!0,this.program=this.languageService.getProgram(),this.updateFromProjectInProgress=!1,null==(e=Kt)||e.push(Kt.Phase.Session,"finishCachingPerDirectoryResolution"),this.resolutionCache.finishCachingPerDirectoryResolution(this.program,t),null==(n=Kt)||n.pop(),dt.assert(void 0===t||void 0!==this.program);let a=!1;if(this.program&&(!t||this.program!==t&&2!==this.program.structureIsReused)){if(a=!0,this.rootFilesMap.forEach((e,n)=>{var t;const r=this.program.getSourceFileByPath(n),o=e.info;r&&(null==(t=e.info)?void 0:t.path)!==r.resolvedPath&&(e.info=this.projectService.getScriptInfo(r.fileName),dt.assert(e.info.isAttached(this)),null==o||o.detachFromProject(this))}),Bj(this.program,this.missingFilesMap||(this.missingFilesMap=new Map),(e,n)=>this.addMissingFileWatcher(e,n)),this.generatedFilesMap){const e=this.compilerOptions.outFile;Ohe(this.generatedFilesMap)?e&&this.isValidGeneratedFileWatcher(qE(e)+".d.ts",this.generatedFilesMap)||this.clearGeneratedFileWatch():e?this.clearGeneratedFileWatch():this.generatedFilesMap.forEach((e,n)=>{const t=this.program.getSourceFileByPath(n);t&&t.resolvedPath===n&&this.isValidGeneratedFileWatcher(qy(t.fileName,this.compilerOptions,this.program),e)||(qj(e),this.generatedFilesMap.delete(n))})}this.languageServiceEnabled&&0===this.projectService.serverMode&&this.resolutionCache.updateTypeRootsWatch()}this.projectService.verifyProgram(this),this.exportMapCache&&!this.exportMapCache.isEmpty()&&(this.exportMapCache.releaseSymbols(),this.hasAddedorRemovedFiles||t&&!this.program.structureIsReused?this.exportMapCache.clear():this.changedFilesForExportMapCache&&t&&this.program&&sp(this.changedFilesForExportMapCache,e=>{const n=t.getSourceFileByPath(e),r=this.program.getSourceFileByPath(e);return n&&r?this.exportMapCache.onFileChanged(n,r,!!this.getTypeAcquisition().enable):(this.exportMapCache.clear(),!0)})),this.changedFilesForExportMapCache&&this.changedFilesForExportMapCache.clear(),(this.hasAddedOrRemovedSymlinks||this.program&&!this.program.structureIsReused&&this.getCompilerOptions().preserveSymlinks)&&(this.symlinks=void 0,this.moduleSpecifierCache.clear());const s=this.externalFiles||ehe;this.externalFiles=this.getExternalFiles(),ot(this.externalFiles,s,Rn(!this.useCaseSensitiveFileNames()),e=>{const n=this.projectService.getOrCreateScriptInfoNotOpenedByClient(e,this.currentDirectory,this.directoryStructureHost,!1);null==n||n.attachToProject(this)},e=>this.detachScriptInfoFromProject(e));const l=Vt()-r;return this.sendPerformanceEvent("UpdateGraph",l),this.writeLog(`Finishing updateGraphWorker: Project: ${this.getProjectName()} projectStateVersion: ${this.projectStateVersion} projectProgramVersion: ${this.projectProgramVersion} structureChanged: ${a}${this.program?` structureIsReused:: ${Dr[this.program.structureIsReused]}`:""} Elapsed: ${l}ms`),this.projectService.logger.isTestLogger?this.program!==t?this.print(!0,this.hasAddedorRemovedFiles,!0):this.writeLog("Same program as before"):this.hasAddedorRemovedFiles?this.print(!0,!0,!1):this.program!==t&&this.writeLog("Different program with same set of files"),this.projectService.verifyDocumentRegistry(),a}sendPerformanceEvent(e,n){this.projectService.sendPerformanceEvent(e,n)}detachScriptInfoFromProject(e,n){const t=this.projectService.getScriptInfo(e);t&&(t.detachFromProject(this),n||this.resolutionCache.removeResolutionsOfFile(t.path))}addMissingFileWatcher(e,n){var t;if(Khe(this)){const n=this.projectService.configFileExistenceInfoCache.get(e);if(null==(t=null==n?void 0:n.config)?void 0:t.projects.has(this.canonicalConfigFilePath))return OK}const r=this.projectService.watchFactory.watchFile(Vi(n,this.currentDirectory),(n,t)=>{Khe(this)&&this.getCachedDirectoryStructureHost().addOrDeleteFile(n,e,t),0===t&&this.missingFilesMap.has(e)&&(this.missingFilesMap.delete(e),r.close(),this.projectService.delayUpdateProjectGraphAndEnsureProjectStructureForOpenFiles(this))},500,this.projectService.getWatchOptions(this),zK.MissingFile,this);return r}isWatchedMissingFile(e){return!!this.missingFilesMap&&this.missingFilesMap.has(e)}addGeneratedFileWatch(e,n){if(this.compilerOptions.outFile)this.generatedFilesMap||(this.generatedFilesMap=this.createGeneratedFileWatcher(e));else{const t=this.toPath(n);if(this.generatedFilesMap){if(Ohe(this.generatedFilesMap))return void dt.fail(`${this.projectName} Expected to not have --out watcher for generated file with options: ${JSON.stringify(this.compilerOptions)}`);if(this.generatedFilesMap.has(t))return}else this.generatedFilesMap=new Map;this.generatedFilesMap.set(t,this.createGeneratedFileWatcher(e))}}createGeneratedFileWatcher(e){return{generatedFilePath:this.toPath(e),watcher:this.projectService.watchFactory.watchFile(e,()=>{this.clearSourceMapperCache(),this.projectService.delayUpdateProjectGraphAndEnsureProjectStructureForOpenFiles(this)},2e3,this.projectService.getWatchOptions(this),zK.MissingGeneratedFile,this)}}isValidGeneratedFileWatcher(e,n){return this.toPath(e)===n.generatedFilePath}clearGeneratedFileWatch(){this.generatedFilesMap&&(Ohe(this.generatedFilesMap)?qj(this.generatedFilesMap):hT(this.generatedFilesMap,qj),this.generatedFilesMap=void 0)}getScriptInfoForNormalizedPath(e){const n=this.projectService.getScriptInfoForPath(this.toPath(e));return n&&!n.isAttached(this)?$me.ThrowProjectDoesNotContainDocument(e,this):n}getScriptInfo(e){return this.projectService.getScriptInfo(e)}filesToString(e){return this.filesToStringWorker(e,!0,!1)}filesToStringWorker(e,n,t){if(this.initialLoadPending)return"\tFiles (0) InitialLoadPending\n";if(!this.program)return"\tFiles (0) NoProgram\n";const r=this.program.getSourceFiles();let o=`\tFiles (${r.length})\n`;if(e){for(const e of r)o+=`\t${e.fileName}${t?` ${e.version} ${JSON.stringify(e.text)}`:""}\n`;n&&(o+="\n\n",DK(this.program,e=>o+=`\t${e}\n`))}return o}print(e,n,t){var r;this.writeLog(`Project '${this.projectName}' (${Mhe[this.projectKind]})`),this.writeLog(this.filesToStringWorker(e&&this.projectService.logger.hasLevel(3),n&&this.projectService.logger.hasLevel(3),t&&this.projectService.logger.hasLevel(3))),this.writeLog("-----------------------------------------------"),this.autoImportProviderHost&&this.autoImportProviderHost.print(!1,!1,!1),null==(r=this.noDtsResolutionProject)||r.print(!1,!1,!1)}setCompilerOptions(e){var n;if(e){e.allowNonTsExtensions=!0;const t=this.compilerOptions;this.compilerOptions=e,this.setInternalCompilerOptionsForEmittingJsFiles(),null==(n=this.noDtsResolutionProject)||n.setCompilerOptions(this.getCompilerOptionsForNoDtsResolutionProject()),tp(t,e)&&(this.cachedUnresolvedImportsPerFile.clear(),this.lastCachedUnresolvedImportsList=void 0,this.resolutionCache.onChangesAffectModuleResolution(),this.moduleSpecifierCache.clear()),this.markAsDirty()}}setWatchOptions(e){this.watchOptions=e}getWatchOptions(){return this.watchOptions}setTypeAcquisition(e){e&&(this.typeAcquisition=this.removeLocalTypingsFromTypeAcquisition(e))}getTypeAcquisition(){return this.typeAcquisition||{}}getChangesSinceVersion(e,n){var t,r;const o=n?e=>Le(e.entries(),([e,n])=>({fileName:e,isSourceOfProjectReferenceRedirect:n})):e=>Le(e.keys());this.initialLoadPending||B_e(this);const i={projectName:this.getProjectName(),version:this.projectProgramVersion,isInferred:Hhe(this),options:this.getCompilationSettings(),languageServiceDisabled:!this.languageServiceEnabled,lastFileExceededProgramSize:this.lastFileExceededProgramSize},a=this.updatedFileNames;if(this.updatedFileNames=void 0,this.lastReportedFileNames&&e===this.lastReportedVersion){if(this.projectProgramVersion===this.lastReportedVersion&&!a)return{info:i,projectErrors:this.getGlobalProjectErrors()};const e=this.lastReportedFileNames,r=(null==(t=this.externalFiles)?void 0:t.map(e=>({fileName:rhe(e),isSourceOfProjectReferenceRedirect:!1})))||ehe,s=Oe(this.getFileNamesWithRedirectInfo(!!n).concat(r),e=>e.fileName,e=>e.isSourceOfProjectReferenceRedirect),l=new Map,c=new Map,d=a?Le(a.keys()):[],u=[];return ap(s,(t,r)=>{e.has(r)?n&&t!==e.get(r)&&u.push({fileName:r,isSourceOfProjectReferenceRedirect:t}):l.set(r,t)}),ap(e,(e,n)=>{s.has(n)||c.set(n,e)}),this.lastReportedFileNames=s,this.lastReportedVersion=this.projectProgramVersion,{info:i,changes:{added:o(l),removed:o(c),updated:n?d.map(e=>({fileName:e,isSourceOfProjectReferenceRedirect:this.isSourceOfProjectReferenceRedirect(e)})):d,updatedRedirects:n?u:void 0},projectErrors:this.getGlobalProjectErrors()}}{const e=this.getFileNamesWithRedirectInfo(!!n),t=(null==(r=this.externalFiles)?void 0:r.map(e=>({fileName:rhe(e),isSourceOfProjectReferenceRedirect:!1})))||ehe,o=e.concat(t);return this.lastReportedFileNames=Oe(o,e=>e.fileName,e=>e.isSourceOfProjectReferenceRedirect),this.lastReportedVersion=this.projectProgramVersion,{info:i,files:n?o:o.map(e=>e.fileName),projectErrors:this.getGlobalProjectErrors()}}}removeRoot(e){this.rootFilesMap.delete(e.path)}isSourceOfProjectReferenceRedirect(e){return!!this.program&&this.program.isSourceOfProjectReferenceRedirect(e)}getGlobalPluginSearchPaths(){return[...this.projectService.pluginProbeLocations,zi(this.projectService.getExecutingFilePath(),"../../..")]}enableGlobalPlugins(e){if(!this.projectService.globalPlugins.length)return;const n=this.projectService.host;if(!n.require&&!n.importPlugin)return void this.projectService.logger.info("Plugins were requested but not running in environment that supports 'require'. Nothing will be loaded");const t=this.getGlobalPluginSearchPaths();for(const r of this.projectService.globalPlugins)r&&(e.plugins&&e.plugins.some(e=>e.name===r)||(this.projectService.logger.info(`Loading global plugin ${r}`),this.enablePlugin({name:r,global:!0},t)))}enablePlugin(e,n){this.projectService.requestEnablePlugin(this,e,n)}enableProxy(e,n){try{if("function"!=typeof e)return void this.projectService.logger.info(`Skipped loading plugin ${n.name} because it did not expose a proper factory function`);const t={config:n,project:this,languageService:this.languageService,languageServiceHost:this,serverHost:this.projectService.host,session:this.projectService.session},r=e({typescript:Fme}),o=r.create(t);for(const e of Object.keys(this.languageService))e in o||(this.projectService.logger.info(`Plugin activation warning: Missing proxied method ${e} in created LS. Patching.`),o[e]=this.languageService[e]);this.projectService.logger.info("Plugin validation succeeded"),this.languageService=o,this.plugins.push({name:n.name,module:r})}catch(bi){this.projectService.logger.info(`Plugin activation failed: ${bi}`)}}onPluginConfigurationChanged(e,n){this.plugins.filter(n=>n.name===e).forEach(e=>{e.module.onConfigurationChanged&&e.module.onConfigurationChanged(n)})}refreshDiagnostics(){this.projectService.sendProjectsUpdatedInBackgroundEvent()}getPackageJsonsVisibleToFile(e,n){return 0!==this.projectService.serverMode?ehe:this.projectService.getPackageJsonsVisibleToFile(e,this,n)}getNearestAncestorDirectoryWithPackageJson(e){return this.projectService.getNearestAncestorDirectoryWithPackageJson(e,this)}getPackageJsonsForAutoImport(e){return this.getPackageJsonsVisibleToFile(zi(this.currentDirectory,LU),e)}getPackageJsonCache(){return this.projectService.packageJsonCache}getCachedExportInfoMap(){return this.exportMapCache||(this.exportMapCache=b0(this))}clearCachedExportInfoMap(){var e;null==(e=this.exportMapCache)||e.clear()}getModuleSpecifierCache(){return this.moduleSpecifierCache}includePackageJsonAutoImports(){return 0!==this.projectService.includePackageJsonAutoImports()&&this.languageServiceEnabled&&!qZ(this.currentDirectory)&&this.isDefaultProjectForOpenFiles()?this.projectService.includePackageJsonAutoImports():0}getHostForAutoImportProvider(){var e,n;return this.program?{fileExists:this.program.fileExists,directoryExists:this.program.directoryExists,realpath:this.program.realpath||(null==(e=this.projectService.host.realpath)?void 0:e.bind(this.projectService.host)),getCurrentDirectory:this.getCurrentDirectory.bind(this),readFile:this.projectService.host.readFile.bind(this.projectService.host),getDirectories:this.projectService.host.getDirectories.bind(this.projectService.host),trace:null==(n=this.projectService.host.trace)?void 0:n.bind(this.projectService.host),useCaseSensitiveFileNames:this.program.useCaseSensitiveFileNames(),readDirectory:this.projectService.host.readDirectory.bind(this.projectService.host)}:this.projectService.host}getPackageJsonAutoImportProvider(){var e,n,t;if(!1===this.autoImportProviderHost)return;if(0!==this.projectService.serverMode)return void(this.autoImportProviderHost=!1);if(this.autoImportProviderHost)return B_e(this.autoImportProviderHost),this.autoImportProviderHost.isEmpty()?(this.autoImportProviderHost.close(),void(this.autoImportProviderHost=void 0)):this.autoImportProviderHost.getCurrentProgram();const r=this.includePackageJsonAutoImports();if(r){null==(e=Kt)||e.push(Kt.Phase.Session,"getPackageJsonAutoImportProvider");const o=Vt();if(this.autoImportProviderHost=Vhe.create(r,this,this.getHostForAutoImportProvider())??!1,this.autoImportProviderHost)return B_e(this.autoImportProviderHost),this.sendPerformanceEvent("CreatePackageJsonAutoImportProvider",Vt()-o),null==(n=Kt)||n.pop(),this.autoImportProviderHost.getCurrentProgram();null==(t=Kt)||t.pop()}}isDefaultProjectForOpenFiles(){return!!ap(this.projectService.openFiles,(e,n)=>this.projectService.tryGetDefaultProjectForFile(this.projectService.getScriptInfoForPath(n))===this)}watchNodeModulesForPackageJsonChanges(e){return this.projectService.watchPackageJsonsInNodeModules(e,this)}getIncompleteCompletionsCache(){return this.projectService.getIncompleteCompletionsCache()}getNoDtsResolutionProject(e){return dt.assert(0===this.projectService.serverMode),this.noDtsResolutionProject??(this.noDtsResolutionProject=new Bhe(this)),this.noDtsResolutionProject.rootFile!==e&&(this.projectService.setFileNamesOfAutoImportProviderOrAuxillaryProject(this.noDtsResolutionProject,[e]),this.noDtsResolutionProject.rootFile=e),this.noDtsResolutionProject}runWithTemporaryFileUpdate(e,n,t){var r,o,i,a;const s=this.program,l=dt.checkDefined(null==(r=this.program)?void 0:r.getSourceFile(e),"Expected file to be part of program"),c=dt.checkDefined(l.getFullText());null==(o=this.getScriptInfo(e))||o.editContent(0,c.length,n),this.updateGraph();try{t(this.program,s,null==(i=this.program)?void 0:i.getSourceFile(e))}finally{null==(a=this.getScriptInfo(e))||a.editContent(0,n.length,c)}}getCompilerOptionsForNoDtsResolutionProject(){return{...this.getCompilerOptions(),noDtsResolution:!0,allowJs:!0,maxNodeModuleJsDepth:3,diagnostics:!1,skipLibCheck:!0,sourceMap:!1,types:s,lib:s,noLib:!0}}};var zhe=class extends Whe{constructor(e,n,t,r,o,i){super(e.newInferredProjectName(),0,e,!1,void 0,n,!1,t,e.host,o),this._isJsInferredProject=!1,this.typeAcquisition=i,this.projectRootPath=r&&e.toCanonicalFileName(r),r||e.useSingleInferredProject||(this.canonicalCurrentDirectory=e.toCanonicalFileName(this.currentDirectory)),this.enableGlobalPlugins(this.getCompilerOptions())}toggleJsInferredProject(e){e!==this._isJsInferredProject&&(this._isJsInferredProject=e,this.setCompilerOptions())}setCompilerOptions(e){if(!e&&!this.getCompilationSettings())return;const n=F$(e||this.getCompilationSettings());this._isJsInferredProject&&"number"!=typeof n.maxNodeModuleJsDepth?n.maxNodeModuleJsDepth=2:this._isJsInferredProject||(n.maxNodeModuleJsDepth=void 0),n.allowJs=!0,super.setCompilerOptions(n)}addRoot(e){dt.assert(e.isScriptOpen()),this.projectService.startWatchingConfigFilesForInferredProjectRoot(e),!this._isJsInferredProject&&e.isJavaScript()?this.toggleJsInferredProject(!0):this.isOrphan()&&this._isJsInferredProject&&!e.isJavaScript()&&this.toggleJsInferredProject(!1),super.addRoot(e)}removeRoot(e){this.projectService.stopWatchingConfigFilesForScriptInfo(e),super.removeRoot(e),!this.isOrphan()&&this._isJsInferredProject&&e.isJavaScript()&&g(this.getRootScriptInfos(),e=>!e.isJavaScript())&&this.toggleJsInferredProject(!1)}isOrphan(){return!this.hasRoots()}isProjectWithSingleRoot(){return!this.projectRootPath&&!this.projectService.useSingleInferredProject||1===this.getRootScriptInfos().length}close(){d(this.getRootScriptInfos(),e=>this.projectService.stopWatchingConfigFilesForScriptInfo(e)),super.close()}getTypeAcquisition(){return this.typeAcquisition||{enable:Lhe(this),include:s,exclude:s}}},Bhe=class extends Whe{constructor(e){super(e.projectService.newAuxiliaryProjectName(),4,e.projectService,!1,void 0,e.getCompilerOptionsForNoDtsResolutionProject(),!1,void 0,e.projectService.host,e.currentDirectory)}isOrphan(){return!0}scheduleInvalidateResolutionsOfFailedLookupLocations(){}},Ghe=class e extends Whe{constructor(e,n,t){super(e.projectService.newAutoImportProviderProjectName(),3,e.projectService,!1,void 0,t,!1,e.getWatchOptions(),e.projectService.host,e.currentDirectory),this.hostProject=e,this.rootFileNames=n,this.useSourceOfProjectReferenceRedirect=Ue(this.hostProject,this.hostProject.useSourceOfProjectReferenceRedirect),this.getParsedCommandLine=Ue(this.hostProject,this.hostProject.getParsedCommandLine)}static getRootFileNames(e,n,t,r){var o,i;if(!e)return s;const a=n.getCurrentProgram();if(!a)return s;const l=Vt();let c,u;const p=zi(n.currentDirectory,LU),f=n.getPackageJsonsForAutoImport(zi(n.currentDirectory,p));for(const s of f)null==(o=s.dependencies)||o.forEach((e,n)=>y(n)),null==(i=s.peerDependencies)||i.forEach((e,n)=>y(n));let m=0;if(c){const o=n.getSymlinkCache();for(const i of Le(c.keys())){if(2===e&&m>=this.maxDependencies)return n.log(`AutoImportProviderProject: attempted to add more than ${this.maxDependencies} dependencies. Aborting.`),s;const l=IF(i,n.currentDirectory,r,t,a.getModuleResolutionCache());if(l){const e=v(l,a,o);if(e){m+=g(e);continue}}if(!d([n.currentDirectory,n.getGlobalTypingsCacheLocation()],e=>{if(e){const n=IF(`@types/${i}`,e,r,t,a.getModuleResolutionCache());if(n){const e=v(n,a,o);return m+=g(e),!0}}})&&(l&&r.allowJs&&r.maxNodeModuleJsDepth)){const e=v(l,a,o,!0);m+=g(e)}}}const h=a.getResolvedProjectReferences();let _=0;return(null==h?void 0:h.length)&&n.projectService.getHostPreferences().includeCompletionsForModuleExports&&h.forEach(e=>{if(null==e?void 0:e.commandLine.options.outFile)_+=g(b([YE(e.commandLine.options.outFile,".d.ts")]));else if(e){const t=pn(()=>yj(e.commandLine,!n.useCaseSensitiveFileNames()));_+=g(b(F(e.commandLine.fileNames,r=>yk(r)||xi(r,".json")||a.getSourceFile(r)?void 0:dj(r,e.commandLine,!n.useCaseSensitiveFileNames(),t))))}}),(null==u?void 0:u.size)&&n.log(`AutoImportProviderProject: found ${u.size} root files in ${m} dependencies ${_} referenced projects in ${Vt()-l} ms`),u?Le(u.values()):s;function g(e){return(null==e?void 0:e.length)?(u??(u=new Set),e.forEach(e=>u.add(e)),1):0}function y(e){Xn(e,"@types/")||(c||(c=new Set)).add(e)}function v(e,o,i,a){var s;const l=_W(e,r,t,o.getModuleResolutionCache(),a);if(l){const r=null==(s=t.realpath)?void 0:s.call(t,e.packageDirectory),o=r?n.toPath(r):void 0,a=o&&o!==n.toPath(e.packageDirectory);return a&&i.setSymlinkedDirectory(e.packageDirectory,{real:Ji(r),realPath:Ji(o)}),b(l,a?n=>n.replace(e.packageDirectory,r):void 0)}}function b(e,n){return F(e,e=>{const t=n?n(e):e;if(!(a.getSourceFile(t)||n&&a.getSourceFile(e)))return t})}}static create(n,t,r){if(0===n)return;const o={...t.getCompilerOptions(),...this.compilerOptionsOverrides},i=this.getRootFileNames(n,t,r,o);return i.length?new e(t,i,o):void 0}isEmpty(){return!U(this.rootFileNames)}isOrphan(){return!0}updateGraph(){let n=this.rootFileNames;n||(n=e.getRootFileNames(this.hostProject.includePackageJsonAutoImports(),this.hostProject,this.hostProject.getHostForAutoImportProvider(),this.getCompilationSettings())),this.projectService.setFileNamesOfAutoImportProviderOrAuxillaryProject(this,n),this.rootFileNames=n;const t=this.getCurrentProgram(),r=super.updateGraph();return t&&t!==this.getCurrentProgram()&&this.hostProject.clearCachedExportInfoMap(),r}scheduleInvalidateResolutionsOfFailedLookupLocations(){}hasRoots(){var e;return!!(null==(e=this.rootFileNames)?void 0:e.length)}markAsDirty(){this.rootFileNames=void 0,super.markAsDirty()}getScriptFileNames(){return this.rootFileNames||s}getLanguageService(){throw new Error("AutoImportProviderProject language service should never be used. To get the program, use `project.getCurrentProgram()`.")}onAutoImportProviderSettingsChanged(){throw new Error("AutoImportProviderProject is an auto import provider; use `markAsDirty()` instead.")}onPackageJsonChange(){throw new Error("package.json changes should be notified on an AutoImportProvider's host project")}getHostForAutoImportProvider(){throw new Error("AutoImportProviderProject cannot provide its own host; use `hostProject.getModuleResolutionHostForAutomImportProvider()` instead.")}getProjectReferences(){return this.hostProject.getProjectReferences()}includePackageJsonAutoImports(){return 0}getSymlinkCache(){return this.hostProject.getSymlinkCache()}getModuleResolutionCache(){var e;return null==(e=this.hostProject.getCurrentProgram())?void 0:e.getModuleResolutionCache()}};Ghe.maxDependencies=10,Ghe.compilerOptionsOverrides={diagnostics:!1,skipLibCheck:!0,sourceMap:!1,types:s,lib:s,noLib:!0};var Vhe=Ghe,jhe=class extends Whe{constructor(e,n,t,r,o){super(e,1,t,!1,void 0,{},!1,void 0,r,Mi(e)),this.canonicalConfigFilePath=n,this.openFileWatchTriggered=new Map,this.initialLoadPending=!0,this.sendLoadingProjectFinish=!1,this.pendingUpdateLevel=2,this.pendingUpdateReason=o}setCompilerHost(e){this.compilerHost=e}getCompilerHost(){return this.compilerHost}useSourceOfProjectReferenceRedirect(){return this.languageServiceEnabled}getParsedCommandLine(e){const n=rhe(e),t=this.projectService.toCanonicalFileName(n);let r=this.projectService.configFileExistenceInfoCache.get(t);return r||this.projectService.configFileExistenceInfoCache.set(t,r={exists:this.projectService.host.fileExists(n)}),this.projectService.ensureParsedConfigUptoDate(n,t,r,this),this.languageServiceEnabled&&0===this.projectService.serverMode&&this.projectService.watchWildcards(n,r,this),r.exists?r.config.parsedCommandLine:void 0}onReleaseParsedCommandLine(e){this.releaseParsedConfig(this.projectService.toCanonicalFileName(rhe(e)))}releaseParsedConfig(e){this.projectService.stopWatchingWildCards(e,this),this.projectService.releaseParsedConfig(e,this)}updateGraph(){if(this.deferredClose)return!1;const e=this.dirty;this.initialLoadPending=!1;const n=this.pendingUpdateLevel;let t;switch(this.pendingUpdateLevel=0,n){case 1:this.openFileWatchTriggered.clear(),t=this.projectService.reloadFileNamesOfConfiguredProject(this);break;case 2:this.openFileWatchTriggered.clear();const e=dt.checkDefined(this.pendingUpdateReason);this.projectService.reloadConfiguredProject(this,e),t=!0;break;default:t=super.updateGraph()}return this.compilerHost=void 0,this.projectService.sendProjectLoadingFinishEvent(this),this.projectService.sendProjectTelemetry(this),2!==n&&(!t||e&&this.triggerFileForConfigFileDiag&&2!==this.getCurrentProgram().structureIsReused)?this.triggerFileForConfigFileDiag||this.projectService.sendConfigFileDiagEvent(this,void 0,!1):this.triggerFileForConfigFileDiag=void 0,t}getCachedDirectoryStructureHost(){return this.directoryStructureHost}getConfigFilePath(){return this.getProjectName()}getProjectReferences(){return this.projectReferences}updateReferences(e){this.projectReferences=e,this.potentialProjectReferences=void 0}setPotentialProjectReference(e){dt.assert(this.initialLoadPending),(this.potentialProjectReferences||(this.potentialProjectReferences=new Set)).add(e)}getRedirectFromSourceFile(e){const n=this.getCurrentProgram();return n&&n.getRedirectFromSourceFile(e)}forEachResolvedProjectReference(e){var n;return null==(n=this.getCurrentProgram())?void 0:n.forEachResolvedProjectReference(e)}enablePluginsWithOptions(e){var n;if(this.plugins.length=0,!(null==(n=e.plugins)?void 0:n.length)&&!this.projectService.globalPlugins.length)return;const t=this.projectService.host;if(!t.require&&!t.importPlugin)return void this.projectService.logger.info("Plugins were requested but not running in environment that supports 'require'. Nothing will be loaded");const r=this.getGlobalPluginSearchPaths();if(this.projectService.allowLocalPluginLoads){const e=Mi(this.canonicalConfigFilePath);this.projectService.logger.info(`Local plugin loading enabled; adding ${e} to search paths`),r.unshift(e)}if(e.plugins)for(const o of e.plugins)this.enablePlugin(o,r);return this.enableGlobalPlugins(e)}getGlobalProjectErrors(){return x(this.projectErrors,e=>!e.file)||ehe}getAllProjectErrors(){return this.projectErrors||ehe}setProjectErrors(e){this.projectErrors=e}close(){this.projectService.configFileExistenceInfoCache.forEach((e,n)=>this.releaseParsedConfig(n)),this.projectErrors=void 0,this.openFileWatchTriggered.clear(),this.compilerHost=void 0,super.close()}markAsDirty(){this.deferredClose||super.markAsDirty()}isOrphan(){return!!this.deferredClose}getEffectiveTypeRoots(){return vF(this.getCompilationSettings(),this)||[]}updateErrorOnNoInputFiles(e){this.parsedCommandLine=e,AO(e.fileNames,this.getConfigFilePath(),this.getCompilerOptions().configFile.configFileSpecs,this.projectErrors,EO(e.raw))}},Uhe=class extends Whe{constructor(e,n,t,r,o,i,a){super(e,2,n,!0,r,t,o,a,n.host,Mi(i||Fi(e))),this.externalProjectName=e,this.compileOnSaveEnabled=o,this.excludedFiles=[],this.enableGlobalPlugins(this.getCompilerOptions())}updateGraph(){const e=super.updateGraph();return this.projectService.sendProjectTelemetry(this),e}getExcludedFiles(){return this.excludedFiles}};function Hhe(e){return 0===e.projectKind}function Khe(e){return 1===e.projectKind}function qhe(e){return 2===e.projectKind}function Jhe(e){return 3===e.projectKind||4===e.projectKind}function Xhe(e){return Khe(e)&&!!e.deferredClose}var Yhe=20971520,$he=4194304,Qhe="projectsUpdatedInBackground",Zhe="projectLoadingStart",e_e="projectLoadingFinish",n_e="largeFileReferenced",t_e="configFileDiag",r_e="projectLanguageServiceState",o_e="projectInfo",i_e="openFileInfo",a_e="createFileWatcher",s_e="createDirectoryWatcher",l_e="closeFileWatcher",c_e="*ensureProjectForOpenFiles*";function d_e(e){const n=new Map;for(const t of e)if("object"==typeof t.type){const e=t.type;e.forEach(e=>{dt.assert("number"==typeof e)}),n.set(t.name,e)}return n}var u_e=d_e(Bk),p_e=d_e(wk),f_e=new Map(Object.entries({none:0,block:1,smart:2})),m_e={jquery:{match:/jquery(-[\d.]+)?(\.intellisense)?(\.min)?\.js$/i,types:["jquery"]},WinJS:{match:/^(.*\/winjs-[.\d]+)\/js\/base\.js$/i,exclude:[["^",1,"/.*"]],types:["winjs"]},Kendo:{match:/^(.*\/kendo(-ui)?)\/kendo\.all(\.min)?\.js$/i,exclude:[["^",1,"/.*"]],types:["kendo-ui"]},"Office Nuget":{match:/^(.*\/office\/1)\/excel-\d+\.debug\.js$/i,exclude:[["^",1,"/.*"]],types:["office"]},References:{match:/^(.*\/_references\.js)$/i,exclude:[["^",1,"$"]]}};function h_e(e){return Qe(e.indentStyle)&&(e.indentStyle=f_e.get(e.indentStyle.toLowerCase()),dt.assert(void 0!==e.indentStyle)),e}function __e(e){return u_e.forEach((n,t)=>{const r=e[t];Qe(r)&&(e[t]=n.get(r.toLowerCase()))}),e}function g_e(e,n){let t,r;return wk.forEach(o=>{const i=e[o.name];if(void 0===i)return;const a=p_e.get(o.name);(t||(t={}))[o.name]=a?Qe(i)?a.get(i.toLowerCase()):i:OO(o,i,n||"",r||(r=[]))}),t&&{watchOptions:t,errors:r}}function y_e(e){let n;return nw.forEach(t=>{const r=e[t.name];void 0!==r&&((n||(n={}))[t.name]=r)}),n}function v_e(e){return Qe(e)?b_e(e):e}function b_e(e){switch(e){case"JS":return 1;case"JSX":return 2;case"TS":return 3;case"TSX":return 4;default:return 0}}function T_e(e){const{lazyConfiguredProjectsFromExternalProject:n,...t}=e;return t}var S_e={getFileName:e=>e,getScriptKind:(e,n)=>{let t;if(n){const r=ki(e);r&&U(n,e=>e.extension===r&&(t=e.scriptKind,!0))}return t},hasMixedContent:(e,n)=>U(n,n=>n.isMixedContent&&xi(e,n.extension))},E_e={getFileName:e=>e.fileName,getScriptKind:e=>v_e(e.scriptKind),hasMixedContent:e=>!!e.hasMixedContent};function A_e(e,n){for(const t of n)if(t.getProjectName()===e)return t}var x_e={isKnownTypesPackageName:rn,installPackage:un,enqueueInstallTypingsRequest:tn,attach:tn,onProjectClosed:tn,globalTypingsCacheLocation:void 0},R_e={close:tn};function I_e(e,n){if(!n)return;const t=n.get(e.path);return void 0!==t?C_e(e)?t&&!Qe(t)?t.get(e.fileName):void 0:Qe(t)||!t?t:t.get(!1):void 0}function D_e(e){return!!e.containingProjects}function C_e(e){return!!e.configFileInfo}var N_e=(e=>(e[e.FindOptimized=0]="FindOptimized",e[e.Find=1]="Find",e[e.CreateReplayOptimized=2]="CreateReplayOptimized",e[e.CreateReplay=3]="CreateReplay",e[e.CreateOptimized=4]="CreateOptimized",e[e.Create=5]="Create",e[e.ReloadOptimized=6]="ReloadOptimized",e[e.Reload=7]="Reload",e))(N_e||{});function M_e(e){return e-1}function P_e(e,n,t,r,o,i,a,s,l){for(var c;;){if(n.parsedCommandLine&&(s&&!n.parsedCommandLine.options.composite||n.parsedCommandLine.options.disableSolutionSearching))return;const d=n.projectService.getConfigFileNameForFile({fileName:n.getConfigFilePath(),path:e.path,configFileInfo:!0,isForDefaultProject:!s},r<=3);if(!d)return;const u=n.projectService.findCreateOrReloadConfiguredProject(d,r,o,i,s?void 0:e.fileName,a,s,l);if(!u)return;!u.project.parsedCommandLine&&(null==(c=n.parsedCommandLine)?void 0:c.options.composite)&&u.project.setPotentialProjectReference(n.canonicalConfigFilePath);const p=t(u);if(p)return p;n=u.project}}function L_e(e,n,t,r,o,i,a,s){const l=n.options.disableReferencedProjectLoad?0:r;let c;return d(n.projectReferences,n=>{var d;const u=rhe(ZU(n)),p=e.projectService.toCanonicalFileName(u),f=null==s?void 0:s.get(p);if(void 0!==f&&f>=l)return;const m=e.projectService.configFileExistenceInfoCache.get(p);let h=0===l?(null==m?void 0:m.exists)||(null==(d=e.resolvedChildConfigs)?void 0:d.has(p))?m.config.parsedCommandLine:void 0:e.getParsedCommandLine(u);if(h&&l!==r&&l>2&&(h=e.getParsedCommandLine(u)),!h)return;const _=e.projectService.findConfiguredProjectByProjectName(u,i);if(2!==l||m||_){switch(l){case 6:_&&_.projectService.reloadConfiguredProjectOptimized(_,o,a);case 4:(e.resolvedChildConfigs??(e.resolvedChildConfigs=new Set)).add(p);case 2:case 0:if(_||0!==l){const n=t(m??e.projectService.configFileExistenceInfoCache.get(p),_,u,o,e,p);if(n)return n}break;default:dt.assertNever(l)}(s??(s=new Map)).set(p,l),(c??(c=[])).push(h)}})||d(c,n=>n.projectReferences&&L_e(e,n,t,l,o,i,a,s))}function k_e(e,n,t,r,o){let i,a=!1;switch(n){case 2:case 3:j_e(e)&&(i=e.projectService.configFileExistenceInfoCache.get(e.canonicalConfigFilePath));break;case 4:if(i=V_e(e),i)break;case 5:a=function(e,n){if(n){if(G_e(e,n,!1))return!0}else B_e(e);return!1}(e,t);break;case 6:if(e.projectService.reloadConfiguredProjectOptimized(e,r,o),i=V_e(e),i)break;case 7:a=e.projectService.reloadConfiguredProjectClearingSemanticCache(e,r,o);break;case 0:case 1:break;default:dt.assertNever(n)}return{project:e,sentConfigFileDiag:a,configFileExistenceInfo:i,reason:r}}function w_e(e,n){return e.initialLoadPending?(e.potentialProjectReferences&&sp(e.potentialProjectReferences,n))??(e.resolvedChildConfigs&&sp(e.resolvedChildConfigs,n)):void 0}function O_e(e,n,t){const r=t&&e.projectService.configuredProjects.get(t);return r&&n(r)}function F_e(e,n){return function(e,n,t,r){return e.getCurrentProgram()?e.forEachResolvedProjectReference(n):e.initialLoadPending?w_e(e,r):d(e.getProjectReferences(),t)}(e,t=>O_e(e,n,t.sourceFile.path),t=>O_e(e,n,e.toPath(ZU(t))),t=>O_e(e,n,t))}function W_e(e,n){return`${Qe(n)?`Config: ${n} `:n?`Project: ${n.getProjectName()} `:""}WatchType: ${e}`}function z_e(e){return!e.isScriptOpen()&&void 0!==e.mTime}function B_e(e){return e.invalidateResolutionsOfFailedLookupLocations(),e.dirty&&!e.updateGraph()}function G_e(e,n,t){if(!t&&(e.invalidateResolutionsOfFailedLookupLocations(),!e.dirty))return!1;e.triggerFileForConfigFileDiag=n;const r=e.pendingUpdateLevel;if(e.updateGraph(),!e.triggerFileForConfigFileDiag&&!t)return 2===r;const o=e.projectService.sendConfigFileDiagEvent(e,n,t);return e.triggerFileForConfigFileDiag=void 0,o}function V_e(e){const n=rhe(e.getConfigFilePath()),t=e.projectService.ensureParsedConfigUptoDate(n,e.canonicalConfigFilePath,e.projectService.configFileExistenceInfoCache.get(e.canonicalConfigFilePath),e),r=t.config.parsedCommandLine;if(e.parsedCommandLine=r,e.resolvedChildConfigs=void 0,e.updateReferences(r.projectReferences),j_e(e))return t}function j_e(e){return!(!e.parsedCommandLine||!e.parsedCommandLine.options.composite&&!SO(e.parsedCommandLine))}function U_e(e){return`User requested reload projects: ${e}`}function H_e(e){Khe(e)&&(e.projectOptions=!0)}function K_e(e){let n=1;return()=>e(n++)}function q_e(){return{idToCallbacks:new Map,pathToId:new Map}}function J_e(e,n){return!!n&&!!e.eventHandler&&!!e.session}function X_e(e,n){if(!J_e(e,n))return;const t=q_e(),r=q_e(),o=q_e();let i=1;return e.session.addProtocolHandler("watchChange",e=>{var n;return Ye(n=e.arguments)?n.forEach(s):s(n),{responseRequired:!1}}),{watchFile:function(e,n){return a(t,e,n,n=>({eventName:a_e,data:{id:n,path:e}}))},watchDirectory:function(e,n,t){return a(t?o:r,e,n,n=>({eventName:s_e,data:{id:n,path:e,recursive:!!t,ignoreUpdate:!e.endsWith("/node_modules")||void 0}}))},getCurrentDirectory:()=>e.host.getCurrentDirectory(),useCaseSensitiveFileNames:e.host.useCaseSensitiveFileNames};function a({pathToId:n,idToCallbacks:t},r,o,a){const s=e.toPath(r);let l=n.get(s);l||n.set(s,l=i++);let c=t.get(l);return c||(t.set(l,c=new Set),e.eventHandler(a(l))),c.add(o),{close(){const r=t.get(l);(null==r?void 0:r.delete(o))&&(r.size||(t.delete(l),n.delete(s),e.eventHandler({eventName:l_e,data:{id:l}})))}}}function s({id:e,created:n,deleted:t,updated:r}){l(e,n,0),l(e,t,2),l(e,r,1)}function l(e,n,i){(null==n?void 0:n.length)&&(c(t,e,n,(e,n)=>e(n,i)),c(r,e,n,(e,n)=>e(n)),c(o,e,n,(e,n)=>e(n)))}function c(e,n,t,r){var o;null==(o=e.idToCallbacks.get(n))||o.forEach(e=>{t.forEach(n=>r(e,Fi(n)))})}}var Y_e=class e{constructor(e){var n;this.filenameToScriptInfo=new Map,this.nodeModulesWatchers=new Map,this.filenameToScriptInfoVersion=new Map,this.allJsFilesForOpenFileTelemetry=new Set,this.externalProjectToConfiguredProjectMap=new Map,this.externalProjects=[],this.inferredProjects=[],this.configuredProjects=new Map,this.newInferredProjectName=K_e(lhe),this.newAutoImportProviderProjectName=K_e(che),this.newAuxiliaryProjectName=K_e(dhe),this.openFiles=new Map,this.configFileForOpenFiles=new Map,this.rootOfInferredProjects=new Set,this.openFilesWithNonRootedDiskPath=new Map,this.compilerOptionsForInferredProjectsPerProjectRoot=new Map,this.watchOptionsForInferredProjectsPerProjectRoot=new Map,this.typeAcquisitionForInferredProjectsPerProjectRoot=new Map,this.projectToSizeMap=new Map,this.configFileExistenceInfoCache=new Map,this.safelist=m_e,this.legacySafelist=new Map,this.pendingProjectUpdates=new Map,this.pendingEnsureProjectForOpenFiles=!1,this.seenProjects=new Map,this.sharedExtendedConfigFileWatchers=new Map,this.extendedConfigCache=new Map,this.baseline=tn,this.verifyDocumentRegistry=tn,this.verifyProgram=tn,this.onProjectCreation=tn,this.host=e.host,this.logger=e.logger,this.cancellationToken=e.cancellationToken,this.useSingleInferredProject=e.useSingleInferredProject,this.useInferredProjectPerProjectRoot=e.useInferredProjectPerProjectRoot,this.typingsInstaller=e.typingsInstaller||x_e,this.throttleWaitMilliseconds=e.throttleWaitMilliseconds,this.eventHandler=e.eventHandler,this.suppressDiagnosticEvents=e.suppressDiagnosticEvents,this.globalPlugins=e.globalPlugins||ehe,this.pluginProbeLocations=e.pluginProbeLocations||ehe,this.allowLocalPluginLoads=!!e.allowLocalPluginLoads,this.typesMapLocation=void 0===e.typesMapLocation?zi(Mi(this.getExecutingFilePath()),"typesMap.json"):e.typesMapLocation,this.session=e.session,this.jsDocParsingMode=e.jsDocParsingMode,void 0!==e.serverMode?this.serverMode=e.serverMode:this.serverMode=0,this.host.realpath&&(this.realpathToScriptInfos=He()),this.currentDirectory=rhe(this.host.getCurrentDirectory()),this.toCanonicalFileName=Hn(this.host.useCaseSensitiveFileNames),this.globalCacheLocationDirectoryPath=this.typingsInstaller.globalTypingsCacheLocation?Ji(this.toPath(this.typingsInstaller.globalTypingsCacheLocation)):void 0,this.throttledOperations=new phe(this.host,this.logger),this.logger.info(`currentDirectory:: ${this.host.getCurrentDirectory()} useCaseSensitiveFileNames:: ${this.host.useCaseSensitiveFileNames}`),this.logger.info(`libs Location:: ${Mi(this.host.getExecutingFilePath())}`),this.logger.info(`globalTypingsCacheLocation:: ${this.typingsInstaller.globalTypingsCacheLocation}`),this.typesMapLocation?this.loadTypesMap():this.logger.info("No types map provided; using the default"),this.typingsInstaller.attach(this),this.hostConfiguration={formatCodeOptions:jX(this.host.newLine),preferences:wX,hostInfo:"Unknown host",extraFileExtensions:[]},this.documentRegistry=X0(this.host.useCaseSensitiveFileNames,this.currentDirectory,this.jsDocParsingMode,this);const t=this.logger.hasLevel(3)?2:this.logger.loggingEnabled()?1:0,r=0!==t?e=>this.logger.info(e):tn;this.packageJsonCache=nge(this),this.watchFactory=0!==this.serverMode?{watchFile:FK,watchDirectory:FK}:Hj(X_e(this,e.canUseWatchEvents)||this.host,t,r,W_e),this.canUseWatchEvents=J_e(this,e.canUseWatchEvents),null==(n=e.incrementalVerifier)||n.call(e,this)}toPath(e){return Ki(e,this.currentDirectory,this.toCanonicalFileName)}getExecutingFilePath(){return this.getNormalizedAbsolutePath(this.host.getExecutingFilePath())}getNormalizedAbsolutePath(e){return Vi(e,this.host.getCurrentDirectory())}setDocument(e,n,t){dt.checkDefined(this.getScriptInfoForPath(n)).cacheSourceFile={key:e,sourceFile:t}}getDocument(e,n){const t=this.getScriptInfoForPath(n);return t&&t.cacheSourceFile&&t.cacheSourceFile.key===e?t.cacheSourceFile.sourceFile:void 0}ensureInferredProjectsUpToDate_TestOnly(){this.ensureProjectStructuresUptoDate()}getCompilerOptionsForInferredProjects(){return this.compilerOptionsForInferredProjects}onUpdateLanguageServiceStateForProject(e,n){if(!this.eventHandler)return;const t={eventName:r_e,data:{project:e,languageServiceEnabled:n}};this.eventHandler(t)}loadTypesMap(){try{const e=this.host.readFile(this.typesMapLocation);if(void 0===e)return void this.logger.info(`Provided types map file "${this.typesMapLocation}" doesn't exist`);const n=JSON.parse(e);for(const t of Object.keys(n.typesMap))n.typesMap[t].match=new RegExp(n.typesMap[t].match,"i");this.safelist=n.typesMap;for(const t in n.simpleMap)Ie(n.simpleMap,t)&&this.legacySafelist.set(t,n.simpleMap[t].toLowerCase())}catch(bi){this.logger.info(`Error loading types map: ${bi}`),this.safelist=m_e,this.legacySafelist.clear()}}updateTypingsForProject(e){const n=this.findProject(e.projectName);if(n)switch(e.kind){case aX:return void n.updateTypingFiles(e.compilerOptions,e.typeAcquisition,e.unresolvedImports,e.typings);case sX:return void n.enqueueInstallTypingsForProject(!0)}}watchTypingLocations(e){var n;null==(n=this.findProject(e.projectName))||n.watchTypingLocations(e.files)}delayEnsureProjectForOpenFiles(){this.openFiles.size&&(this.pendingEnsureProjectForOpenFiles=!0,this.throttledOperations.schedule(c_e,2500,()=>{0!==this.pendingProjectUpdates.size?this.delayEnsureProjectForOpenFiles():this.pendingEnsureProjectForOpenFiles&&(this.ensureProjectForOpenFiles(),this.sendProjectsUpdatedInBackgroundEvent())}))}delayUpdateProjectGraph(e){if(Xhe(e))return;if(e.markAsDirty(),Jhe(e))return;const n=e.getProjectName();this.pendingProjectUpdates.set(n,e),this.throttledOperations.schedule(n,250,()=>{this.pendingProjectUpdates.delete(n)&&B_e(e)})}hasPendingProjectUpdate(e){return this.pendingProjectUpdates.has(e.getProjectName())}sendProjectsUpdatedInBackgroundEvent(){if(!this.eventHandler)return;const e={eventName:Qhe,data:{openFiles:Le(this.openFiles.keys(),e=>this.getScriptInfoForPath(e).fileName)}};this.eventHandler(e)}sendLargeFileReferencedEvent(e,n){if(!this.eventHandler)return;const t={eventName:n_e,data:{file:e,fileSize:n,maxFileSize:$he}};this.eventHandler(t)}sendProjectLoadingStartEvent(e,n){if(!this.eventHandler)return;e.sendLoadingProjectFinish=!0;const t={eventName:Zhe,data:{project:e,reason:n}};this.eventHandler(t)}sendProjectLoadingFinishEvent(e){if(!this.eventHandler||!e.sendLoadingProjectFinish)return;e.sendLoadingProjectFinish=!1;const n={eventName:e_e,data:{project:e}};this.eventHandler(n)}sendPerformanceEvent(e,n){this.performanceEventHandler&&this.performanceEventHandler({kind:e,durationMs:n})}delayUpdateProjectGraphAndEnsureProjectStructureForOpenFiles(e){this.delayUpdateProjectGraph(e),this.delayEnsureProjectForOpenFiles()}delayUpdateProjectGraphs(e,n){if(e.length){for(const t of e)n&&t.clearSourceMapperCache(),this.delayUpdateProjectGraph(t);this.delayEnsureProjectForOpenFiles()}}setCompilerOptionsForInferredProjects(e,n){dt.assert(void 0===n||this.useInferredProjectPerProjectRoot,"Setting compiler options per project root path is only supported when useInferredProjectPerProjectRoot is enabled");const t=__e(e),r=g_e(e,n),o=y_e(e);t.allowNonTsExtensions=!0;const i=n&&this.toCanonicalFileName(n);i?(this.compilerOptionsForInferredProjectsPerProjectRoot.set(i,t),this.watchOptionsForInferredProjectsPerProjectRoot.set(i,r||!1),this.typeAcquisitionForInferredProjectsPerProjectRoot.set(i,o)):(this.compilerOptionsForInferredProjects=t,this.watchOptionsForInferredProjects=r,this.typeAcquisitionForInferredProjects=o);for(const a of this.inferredProjects)(i?a.projectRootPath!==i:a.projectRootPath&&this.compilerOptionsForInferredProjectsPerProjectRoot.has(a.projectRootPath))||(a.setCompilerOptions(t),a.setTypeAcquisition(o),a.setWatchOptions(null==r?void 0:r.watchOptions),a.setProjectErrors(null==r?void 0:r.errors),a.compileOnSaveEnabled=t.compileOnSave,a.markAsDirty(),this.delayUpdateProjectGraph(a));this.delayEnsureProjectForOpenFiles()}findProject(e){if(void 0!==e)return she(e)?A_e(e,this.inferredProjects):this.findExternalProjectByProjectName(e)||this.findConfiguredProjectByProjectName(rhe(e))}forEachProject(e){this.externalProjects.forEach(e),this.configuredProjects.forEach(e),this.inferredProjects.forEach(e)}forEachEnabledProject(e){this.forEachProject(n=>{!n.isOrphan()&&n.languageServiceEnabled&&e(n)})}getDefaultProjectForFile(e,n){return n?this.ensureDefaultProjectForFile(e):this.tryGetDefaultProjectForFile(e)}tryGetDefaultProjectForFile(e){const n=Qe(e)?this.getScriptInfoForNormalizedPath(e):e;return n&&!n.isOrphan()?n.getDefaultProject():void 0}tryGetDefaultProjectForEnsuringConfiguredProjectForFile(e){var n;const t=Qe(e)?this.getScriptInfoForNormalizedPath(e):e;if(t)return(null==(n=this.pendingOpenFileProjectUpdates)?void 0:n.delete(t.path))&&(this.tryFindDefaultConfiguredProjectAndLoadAncestorsForOpenScriptInfo(t,5),t.isOrphan()&&this.assignOrphanScriptInfoToInferredProject(t,this.openFiles.get(t.path))),this.tryGetDefaultProjectForFile(t)}ensureDefaultProjectForFile(e){return this.tryGetDefaultProjectForEnsuringConfiguredProjectForFile(e)||this.doEnsureDefaultProjectForFile(e)}doEnsureDefaultProjectForFile(e){this.ensureProjectStructuresUptoDate();const n=Qe(e)?this.getScriptInfoForNormalizedPath(e):e;return n?n.getDefaultProject():(this.logErrorForScriptInfoNotFound(Qe(e)?e:e.fileName),$me.ThrowNoProject())}getScriptInfoEnsuringProjectsUptoDate(e){return this.ensureProjectStructuresUptoDate(),this.getScriptInfo(e)}ensureProjectStructuresUptoDate(){let e=this.pendingEnsureProjectForOpenFiles;this.pendingProjectUpdates.clear();const n=n=>{e=B_e(n)||e};this.externalProjects.forEach(n),this.configuredProjects.forEach(n),this.inferredProjects.forEach(n),e&&this.ensureProjectForOpenFiles()}getFormatCodeOptions(e){const n=this.getScriptInfoForNormalizedPath(e);return n&&n.getFormatCodeSettings()||this.hostConfiguration.formatCodeOptions}getPreferences(e){const n=this.getScriptInfoForNormalizedPath(e);return{...this.hostConfiguration.preferences,...n&&n.getPreferences()}}getHostFormatCodeOptions(){return this.hostConfiguration.formatCodeOptions}getHostPreferences(){return this.hostConfiguration.preferences}onSourceFileChanged(e,n){dt.assert(!e.isScriptOpen()),2===n?this.handleDeletedFile(e,!0):(e.deferredDelete&&(e.deferredDelete=void 0),e.delayReloadNonMixedContentFile(),this.delayUpdateProjectGraphs(e.containingProjects,!1),this.handleSourceMapProjects(e))}handleSourceMapProjects(e){if(e.sourceMapFilePath)if(Qe(e.sourceMapFilePath)){const n=this.getScriptInfoForPath(e.sourceMapFilePath);this.delayUpdateSourceInfoProjects(null==n?void 0:n.sourceInfos)}else this.delayUpdateSourceInfoProjects(e.sourceMapFilePath.sourceInfos);this.delayUpdateSourceInfoProjects(e.sourceInfos),e.declarationInfoPath&&this.delayUpdateProjectsOfScriptInfoPath(e.declarationInfoPath)}delayUpdateSourceInfoProjects(e){e&&e.forEach((e,n)=>this.delayUpdateProjectsOfScriptInfoPath(n))}delayUpdateProjectsOfScriptInfoPath(e){const n=this.getScriptInfoForPath(e);n&&this.delayUpdateProjectGraphs(n.containingProjects,!0)}handleDeletedFile(e,n){dt.assert(!e.isScriptOpen()),this.delayUpdateProjectGraphs(e.containingProjects,!1),this.handleSourceMapProjects(e),e.detachAllProjects(),n?(e.delayReloadNonMixedContentFile(),e.deferredDelete=!0):this.deleteScriptInfo(e)}watchWildcardDirectory(e,n,t,r){let o=this.watchFactory.watchDirectory(e,n=>this.onWildCardDirectoryWatcherInvoke(e,t,r,i,n),n,this.getWatchOptionsFromProjectWatchOptions(r.parsedCommandLine.watchOptions,Mi(t)),zK.WildcardDirectory,t);const i={packageJsonWatches:void 0,close(){var e;o&&(o.close(),o=void 0,null==(e=i.packageJsonWatches)||e.forEach(e=>{e.projects.delete(i),e.close()}),i.packageJsonWatches=void 0)}};return i}onWildCardDirectoryWatcherInvoke(e,n,t,r,o){const i=this.toPath(o),a=t.cachedDirectoryStructureHost.addOrDeleteFileOrDirectory(o,i);if("package.json"===Pi(i)&&!qZ(i)&&(a&&a.fileExists||!a&&this.host.fileExists(o))){const e=this.getNormalizedAbsolutePath(o);this.logger.info(`Config: ${n} Detected new package.json: ${e}`),this.packageJsonCache.addOrUpdate(e,i),this.watchPackageJsonFile(e,i,r)}(null==a?void 0:a.fileExists)||this.sendSourceFileChange(i);const s=this.findConfiguredProjectByProjectName(n);Vj({watchedDirPath:this.toPath(e),fileOrDirectory:o,fileOrDirectoryPath:i,configFileName:n,extraFileExtensions:this.hostConfiguration.extraFileExtensions,currentDirectory:this.currentDirectory,options:t.parsedCommandLine.options,program:(null==s?void 0:s.getCurrentProgram())||t.parsedCommandLine.fileNames,useCaseSensitiveFileNames:this.host.useCaseSensitiveFileNames,writeLog:e=>this.logger.info(e),toPath:e=>this.toPath(e),getScriptKind:s?e=>s.getScriptKind(e):void 0})||(2!==t.updateLevel&&(t.updateLevel=1),t.projects.forEach((e,t)=>{var r;if(!e)return;const o=this.getConfiguredProjectByCanonicalConfigFilePath(t);if(!o)return;if(s!==o&&this.getHostPreferences().includeCompletionsForModuleExports){const e=this.toPath(n);y(null==(r=o.getCurrentProgram())?void 0:r.getResolvedProjectReferences(),n=>(null==n?void 0:n.sourceFile.path)===e)&&o.markAutoImportProviderAsDirty()}const a=s===o?1:0;if(!(o.pendingUpdateLevel>a))if(this.openFiles.has(i)){if(dt.checkDefined(this.getScriptInfoForPath(i)).isAttached(o)){const e=Math.max(a,o.openFileWatchTriggered.get(i)||0);o.openFileWatchTriggered.set(i,e)}else o.pendingUpdateLevel=a,this.delayUpdateProjectGraphAndEnsureProjectStructureForOpenFiles(o)}else o.pendingUpdateLevel=a,this.delayUpdateProjectGraphAndEnsureProjectStructureForOpenFiles(o)}))}delayUpdateProjectsFromParsedConfigOnConfigFileChange(e,n){const t=this.configFileExistenceInfoCache.get(e);if(!(null==t?void 0:t.config))return!1;let r=!1;return t.config.updateLevel=2,t.config.cachedDirectoryStructureHost.clearCache(),t.config.projects.forEach((t,o)=>{var i,a,s;const l=this.getConfiguredProjectByCanonicalConfigFilePath(o);if(l)if(r=!0,o===e){if(l.initialLoadPending)return;l.pendingUpdateLevel=2,l.pendingUpdateReason=n,this.delayUpdateProjectGraph(l),l.markAutoImportProviderAsDirty()}else{if(l.initialLoadPending)return void(null==(a=null==(i=this.configFileExistenceInfoCache.get(o))?void 0:i.openFilesImpactedByConfigFile)||a.forEach(e=>{var n;(null==(n=this.pendingOpenFileProjectUpdates)?void 0:n.has(e))||(this.pendingOpenFileProjectUpdates??(this.pendingOpenFileProjectUpdates=new Map)).set(e,this.configFileForOpenFiles.get(e))}));const n=this.toPath(e);l.resolutionCache.removeResolutionsFromProjectReferenceRedirects(n),this.delayUpdateProjectGraph(l),this.getHostPreferences().includeCompletionsForModuleExports&&y(null==(s=l.getCurrentProgram())?void 0:s.getResolvedProjectReferences(),e=>(null==e?void 0:e.sourceFile.path)===n)&&l.markAutoImportProviderAsDirty()}}),r}onConfigFileChanged(e,n,t){const r=this.configFileExistenceInfoCache.get(n),o=this.getConfiguredProjectByCanonicalConfigFilePath(n),i=null==o?void 0:o.deferredClose;2===t?(r.exists=!1,o&&(o.deferredClose=!0)):(r.exists=!0,i&&(o.deferredClose=void 0,o.markAsDirty())),this.delayUpdateProjectsFromParsedConfigOnConfigFileChange(n,"Change in config file detected"),this.openFiles.forEach((e,n)=>{var t,o;const i=this.configFileForOpenFiles.get(n);if(!(null==(t=r.openFilesImpactedByConfigFile)?void 0:t.has(n)))return;this.configFileForOpenFiles.delete(n);const a=this.getScriptInfoForPath(n);this.getConfigFileNameForFile(a,!1)&&((null==(o=this.pendingOpenFileProjectUpdates)?void 0:o.has(n))||(this.pendingOpenFileProjectUpdates??(this.pendingOpenFileProjectUpdates=new Map)).set(n,i))}),this.delayEnsureProjectForOpenFiles()}removeProject(e){switch(this.logger.info("`remove Project::"),e.print(!0,!0,!1),e.close(),dt.shouldAssert(1)&&this.filenameToScriptInfo.forEach(n=>dt.assert(!n.isAttached(e),"Found script Info still attached to project",()=>`${e.projectName}: ScriptInfos still attached: ${JSON.stringify(Le(W(this.filenameToScriptInfo.values(),n=>n.isAttached(e)?{fileName:n.fileName,projects:n.containingProjects.map(e=>e.projectName),hasMixedContent:n.hasMixedContent}:void 0)),void 0," ")}`)),this.pendingProjectUpdates.delete(e.getProjectName()),e.projectKind){case 2:Un(this.externalProjects,e),this.projectToSizeMap.delete(e.getProjectName());break;case 1:this.configuredProjects.delete(e.canonicalConfigFilePath),this.projectToSizeMap.delete(e.canonicalConfigFilePath);break;case 0:Un(this.inferredProjects,e)}}assignOrphanScriptInfoToInferredProject(e,n){dt.assert(e.isOrphan());const t=this.getOrCreateInferredProjectForProjectRootPathIfEnabled(e,n)||this.getOrCreateSingleInferredProjectIfEnabled()||this.getOrCreateSingleInferredWithoutProjectRoot(e.isDynamic?n||this.currentDirectory:Mi(yi(e.fileName)?e.fileName:Vi(e.fileName,n?this.getNormalizedAbsolutePath(n):this.currentDirectory)));if(t.addRoot(e),e.containingProjects[0]!==t&&(Gn(e.containingProjects,t),e.containingProjects.unshift(t)),t.updateGraph(),!this.useSingleInferredProject&&!t.projectRootPath)for(const r of this.inferredProjects){if(r===t||r.isOrphan())continue;const e=r.getRootScriptInfos();dt.assert(1===e.length||!!r.projectRootPath),1===e.length&&d(e[0].containingProjects,n=>n!==e[0].containingProjects[0]&&!n.isOrphan())&&r.removeFile(e[0],!0,!0)}return t}assignOrphanScriptInfosToInferredProject(){this.openFiles.forEach((e,n)=>{const t=this.getScriptInfoForPath(n);t.isOrphan()&&this.assignOrphanScriptInfoToInferredProject(t,e)})}closeOpenFile(e,n){var t;const r=!e.isDynamic&&this.host.fileExists(e.fileName);e.close(r),this.stopWatchingConfigFilesForScriptInfo(e);const o=this.toCanonicalFileName(e.fileName);this.openFilesWithNonRootedDiskPath.get(o)===e&&this.openFilesWithNonRootedDiskPath.delete(o);let i=!1;for(const a of e.containingProjects){if(Khe(a)){e.hasMixedContent&&e.registerFileUpdate();const n=a.openFileWatchTriggered.get(e.path);void 0!==n&&(a.openFileWatchTriggered.delete(e.path),a.pendingUpdateLevel<n&&(a.pendingUpdateLevel=n,a.markFileAsDirty(e.path)))}else Hhe(a)&&a.isRoot(e)&&(a.isProjectWithSingleRoot()&&(i=!0),a.removeFile(e,r,!0));a.languageServiceEnabled||a.markAsDirty()}return this.openFiles.delete(e.path),this.configFileForOpenFiles.delete(e.path),null==(t=this.pendingOpenFileProjectUpdates)||t.delete(e.path),dt.assert(!this.rootOfInferredProjects.has(e)),!n&&i&&this.assignOrphanScriptInfosToInferredProject(),r?this.watchClosedScriptInfo(e):this.handleDeletedFile(e,!1),i}deleteScriptInfo(e){dt.assert(!e.isScriptOpen()),this.filenameToScriptInfo.delete(e.path),this.filenameToScriptInfoVersion.set(e.path,e.textStorage.version),this.stopWatchingScriptInfo(e);const n=e.getRealpathIfDifferent();n&&this.realpathToScriptInfos.remove(n,e),e.closeSourceMapFileWatcher()}configFileExists(e,n,t){const r=this.configFileExistenceInfoCache.get(n);let o;if(!this.openFiles.has(t.path)||C_e(t)&&!t.isForDefaultProject||(r?(r.openFilesImpactedByConfigFile??(r.openFilesImpactedByConfigFile=new Set)).add(t.path):(o=new Set).add(t.path)),r)return r.exists;const i=this.host.fileExists(e);return this.configFileExistenceInfoCache.set(n,{exists:i,openFilesImpactedByConfigFile:o}),i}createConfigFileWatcherForParsedConfig(e,n,t){var r,o;const i=this.configFileExistenceInfoCache.get(n);i.watcher&&i.watcher!==R_e||(i.watcher=this.watchFactory.watchFile(e,(t,r)=>this.onConfigFileChanged(e,n,r),2e3,this.getWatchOptionsFromProjectWatchOptions(null==(o=null==(r=null==i?void 0:i.config)?void 0:r.parsedCommandLine)?void 0:o.watchOptions,Mi(e)),zK.ConfigFile,t)),this.ensureConfigFileWatcherForProject(i,t)}ensureConfigFileWatcherForProject(e,n){const t=e.config.projects;t.set(n.canonicalConfigFilePath,t.get(n.canonicalConfigFilePath)||!1)}releaseParsedConfig(e,n){var t,r,o;const i=this.configFileExistenceInfoCache.get(e);(null==(t=i.config)?void 0:t.projects.delete(n.canonicalConfigFilePath))&&((null==(r=i.config)?void 0:r.projects.size)||(i.config=void 0,Wj(e,this.sharedExtendedConfigFileWatchers),dt.checkDefined(i.watcher),(null==(o=i.openFilesImpactedByConfigFile)?void 0:o.size)?i.inferredProjectRoots?nK(Mi(e))||(i.watcher.close(),i.watcher=R_e):(i.watcher.close(),i.watcher=void 0):(i.watcher.close(),this.configFileExistenceInfoCache.delete(e))))}stopWatchingConfigFilesForScriptInfo(e){if(0!==this.serverMode)return;const n=this.rootOfInferredProjects.delete(e),t=e.isScriptOpen();t&&!n||this.forEachConfigFileLocation(e,r=>{var o,i,a;const s=this.configFileExistenceInfoCache.get(r);if(s){if(t){if(!(null==(o=null==s?void 0:s.openFilesImpactedByConfigFile)?void 0:o.has(e.path)))return}else if(!(null==(i=s.openFilesImpactedByConfigFile)?void 0:i.delete(e.path)))return;n&&(s.inferredProjectRoots--,!s.watcher||s.config||s.inferredProjectRoots||(s.watcher.close(),s.watcher=void 0)),(null==(a=s.openFilesImpactedByConfigFile)?void 0:a.size)||s.config||(dt.assert(!s.watcher),this.configFileExistenceInfoCache.delete(r))}})}startWatchingConfigFilesForInferredProjectRoot(e){0===this.serverMode&&(dt.assert(e.isScriptOpen()),this.rootOfInferredProjects.add(e),this.forEachConfigFileLocation(e,(n,t)=>{let r=this.configFileExistenceInfoCache.get(n);r?r.inferredProjectRoots=(r.inferredProjectRoots??0)+1:(r={exists:this.host.fileExists(t),inferredProjectRoots:1},this.configFileExistenceInfoCache.set(n,r)),(r.openFilesImpactedByConfigFile??(r.openFilesImpactedByConfigFile=new Set)).add(e.path),r.watcher||(r.watcher=nK(Mi(n))?this.watchFactory.watchFile(t,(e,r)=>this.onConfigFileChanged(t,n,r),2e3,this.hostConfiguration.watchOptions,zK.ConfigFileForInferredRoot):R_e)}))}forEachConfigFileLocation(e,n){if(0!==this.serverMode)return;dt.assert(!D_e(e)||this.openFiles.has(e.path));const t=this.openFiles.get(e.path);if(dt.checkDefined(this.getScriptInfo(e.path)).isDynamic)return;let r=Mi(e.fileName);const o=()=>ra(t,r,this.currentDirectory,!this.host.useCaseSensitiveFileNames),i=!t||!o();let a=!0,s=!0;C_e(e)&&(a=!Fn(e.fileName,"tsconfig.json")&&(s=!1));do{const e=ohe(r,this.currentDirectory,this.toCanonicalFileName);if(a){const t=ihe(zi(r,"tsconfig.json"));if(n(zi(e,"tsconfig.json"),t))return t}if(s){const t=ihe(zi(r,"jsconfig.json"));if(n(zi(e,"jsconfig.json"),t))return t}if(ua(e))break;const t=ihe(Mi(r));if(t===r)break;r=t,a=s=!0}while(i||o())}findDefaultConfiguredProject(e){var n;return null==(n=this.findDefaultConfiguredProjectWorker(e,1))?void 0:n.defaultProject}findDefaultConfiguredProjectWorker(e,n){return e.isScriptOpen()?this.tryFindDefaultConfiguredProjectForOpenScriptInfo(e,n):void 0}getConfigFileNameForFileFromCache(e,n){if(n){const n=I_e(e,this.pendingOpenFileProjectUpdates);if(void 0!==n)return n}return I_e(e,this.configFileForOpenFiles)}setConfigFileNameForFileInCache(e,n){if(!this.openFiles.has(e.path))return;const t=n||!1;if(C_e(e)){let n=this.configFileForOpenFiles.get(e.path);n&&!Qe(n)||this.configFileForOpenFiles.set(e.path,n=(new Map).set(!1,n)),n.set(e.fileName,t)}else this.configFileForOpenFiles.set(e.path,t)}getConfigFileNameForFile(e,n){const t=this.getConfigFileNameForFileFromCache(e,n);if(void 0!==t)return t||void 0;if(n)return;const r=this.forEachConfigFileLocation(e,(n,t)=>this.configFileExists(t,n,e));return this.logger.info(`getConfigFileNameForFile:: File: ${e.fileName} ProjectRootPath: ${this.openFiles.get(e.path)}:: Result: ${r}`),this.setConfigFileNameForFileInCache(e,r),r}printProjects(){this.logger.hasLevel(1)&&(this.logger.startGroup(),this.externalProjects.forEach(Z_e),this.configuredProjects.forEach(Z_e),this.inferredProjects.forEach(Z_e),this.logger.info("Open files: "),this.openFiles.forEach((e,n)=>{const t=this.getScriptInfoForPath(n);this.logger.info(`\tFileName: ${t.fileName} ProjectRootPath: ${e}`),this.logger.info(`\t\tProjects: ${t.containingProjects.map(e=>e.getProjectName())}`)}),this.logger.endGroup())}findConfiguredProjectByProjectName(e,n){const t=this.toCanonicalFileName(e),r=this.getConfiguredProjectByCanonicalConfigFilePath(t);return n?r:(null==r?void 0:r.deferredClose)?void 0:r}getConfiguredProjectByCanonicalConfigFilePath(e){return this.configuredProjects.get(e)}findExternalProjectByProjectName(e){return A_e(e,this.externalProjects)}getFilenameForExceededTotalSizeLimitForNonTsFiles(e,n,t,r){if(n&&n.disableSizeLimit||!this.host.getFileSize)return;let o=Yhe;this.projectToSizeMap.set(e,0),this.projectToSizeMap.forEach(e=>o-=e||0);let i=0;for(const a of t){const e=r.getFileName(a);if(!zE(e)&&(i+=this.host.getFileSize(e),i>Yhe||i>o)){const n=t.map(e=>r.getFileName(e)).filter(e=>!zE(e)).map(e=>({name:e,size:this.host.getFileSize(e)})).sort((e,n)=>n.size-e.size).slice(0,5);return this.logger.info(`Non TS file size exceeded limit (${i}). Largest files: ${n.map(e=>`${e.name}:${e.size}`).join(", ")}`),e}}this.projectToSizeMap.set(e,i)}createExternalProject(e,n,t,r,o){const i=__e(t),a=g_e(t,Mi(Fi(e))),s=new Uhe(e,this,i,this.getFilenameForExceededTotalSizeLimitForNonTsFiles(e,i,n,E_e),void 0===t.compileOnSave||t.compileOnSave,void 0,null==a?void 0:a.watchOptions);return s.setProjectErrors(null==a?void 0:a.errors),s.excludedFiles=o,this.addFilesToNonInferredProject(s,n,E_e,r),this.externalProjects.push(s),s}sendProjectTelemetry(e){if(this.seenProjects.has(e.projectName))return void H_e(e);if(this.seenProjects.set(e.projectName,!0),!this.eventHandler||!this.host.createSHA256Hash)return void H_e(e);const n=Khe(e)?e.projectOptions:void 0;H_e(e);const t={projectId:this.host.createSHA256Hash(e.projectName),fileStats:Phe(e.getScriptInfos(),!0),compilerOptions:nF(e.getCompilationSettings()),typeAcquisition:function({enable:e,include:n,exclude:t}){return{enable:e,include:void 0!==n&&0!==n.length,exclude:void 0!==t&&0!==t.length}}(e.getTypeAcquisition()),extends:n&&n.configHasExtendsProperty,files:n&&n.configHasFilesProperty,include:n&&n.configHasIncludeProperty,exclude:n&&n.configHasExcludeProperty,compileOnSave:e.compileOnSaveEnabled,configFileName:function(){if(!Khe(e))return"other";return mhe(e.getConfigFilePath())||"other"}(),projectType:e instanceof Uhe?"external":"configured",languageServiceEnabled:e.languageServiceEnabled,version:i};this.eventHandler({eventName:o_e,data:t})}addFilesToNonInferredProject(e,n,t,r){this.updateNonInferredProjectFiles(e,n,t),e.setTypeAcquisition(r),e.markAsDirty()}createConfiguredProject(e,n){var t;null==(t=Kt)||t.instant(Kt.Phase.Session,"createConfiguredProject",{configFilePath:e});const r=this.toCanonicalFileName(e);let o=this.configFileExistenceInfoCache.get(r);o?o.exists=!0:this.configFileExistenceInfoCache.set(r,o={exists:!0}),o.config||(o.config={cachedDirectoryStructureHost:wj(this.host,this.host.getCurrentDirectory(),this.host.useCaseSensitiveFileNames),projects:new Map,updateLevel:2});const i=new jhe(e,r,this,o.config.cachedDirectoryStructureHost,n);return dt.assert(!this.configuredProjects.has(r)),this.configuredProjects.set(r,i),this.createConfigFileWatcherForParsedConfig(e,r,i),i}loadConfiguredProject(e,n){var t,r;null==(t=Kt)||t.push(Kt.Phase.Session,"loadConfiguredProject",{configFilePath:e.canonicalConfigFilePath}),this.sendProjectLoadingStartEvent(e,n);const o=rhe(e.getConfigFilePath()),i=this.ensureParsedConfigUptoDate(o,e.canonicalConfigFilePath,this.configFileExistenceInfoCache.get(e.canonicalConfigFilePath),e),a=i.config.parsedCommandLine;dt.assert(!!a.fileNames);const s=a.options;e.projectOptions||(e.projectOptions={configHasExtendsProperty:void 0!==a.raw.extends,configHasFilesProperty:void 0!==a.raw.files,configHasIncludeProperty:void 0!==a.raw.include,configHasExcludeProperty:void 0!==a.raw.exclude}),e.parsedCommandLine=a,e.setProjectErrors(a.options.configFile.parseDiagnostics),e.updateReferences(a.projectReferences);const l=this.getFilenameForExceededTotalSizeLimitForNonTsFiles(e.canonicalConfigFilePath,s,a.fileNames,S_e);l?(e.disableLanguageService(l),this.configFileExistenceInfoCache.forEach((n,t)=>this.stopWatchingWildCards(t,e))):(e.setCompilerOptions(s),e.setWatchOptions(a.watchOptions),e.enableLanguageService(),this.watchWildcards(o,i,e)),e.enablePluginsWithOptions(s);const c=a.fileNames.concat(e.getExternalFiles(2));this.updateRootAndOptionsOfNonInferredProject(e,c,S_e,s,a.typeAcquisition,a.compileOnSave,a.watchOptions),null==(r=Kt)||r.pop()}ensureParsedConfigUptoDate(e,n,t,r){var o,i,a;if(t.config&&(1===t.config.updateLevel&&this.reloadFileNamesOfParsedConfig(e,t.config),!t.config.updateLevel))return this.ensureConfigFileWatcherForProject(t,r),t;if(!t.exists&&t.config)return t.config.updateLevel=void 0,this.ensureConfigFileWatcherForProject(t,r),t;const s=(null==(o=t.config)?void 0:o.cachedDirectoryStructureHost)||wj(this.host,this.host.getCurrentDirectory(),this.host.useCaseSensitiveFileNames),l=Iw(e,e=>this.host.readFile(e)),c=ck(e,Qe(l)?l:""),d=c.parseDiagnostics;Qe(l)||d.push(l);const u=Mi(e),p=sO(c,s,u,void 0,e,void 0,this.hostConfiguration.extraFileExtensions,this.extendedConfigCache);p.errors.length&&d.push(...p.errors),this.logger.info(`Config: ${e} : ${JSON.stringify({rootNames:p.fileNames,options:p.options,watchOptions:p.watchOptions,projectReferences:p.projectReferences},void 0," ")}`);const f=null==(i=t.config)?void 0:i.parsedCommandLine;return t.config?(t.config.parsedCommandLine=p,t.config.watchedDirectoriesStale=!0,t.config.updateLevel=void 0):t.config={parsedCommandLine:p,cachedDirectoryStructureHost:s,projects:new Map},f||yA(this.getWatchOptionsFromProjectWatchOptions(void 0,u),this.getWatchOptionsFromProjectWatchOptions(p.watchOptions,u))||(null==(a=t.watcher)||a.close(),t.watcher=void 0),this.createConfigFileWatcherForParsedConfig(e,n,r),Fj(n,p.options,this.sharedExtendedConfigFileWatchers,(n,t)=>this.watchFactory.watchFile(n,()=>{var e;zj(this.extendedConfigCache,t,e=>this.toPath(e));let r=!1;null==(e=this.sharedExtendedConfigFileWatchers.get(t))||e.projects.forEach(e=>{r=this.delayUpdateProjectsFromParsedConfigOnConfigFileChange(e,`Change in extended config file ${n} detected`)||r}),r&&this.delayEnsureProjectForOpenFiles()},2e3,this.hostConfiguration.watchOptions,zK.ExtendedConfigFile,e),e=>this.toPath(e)),t}watchWildcards(e,{exists:n,config:t},r){if(t.projects.set(r.canonicalConfigFilePath,!0),n){if(t.watchedDirectories&&!t.watchedDirectoriesStale)return;t.watchedDirectoriesStale=!1,Gj(t.watchedDirectories||(t.watchedDirectories=new Map),t.parsedCommandLine.wildcardDirectories,(n,r)=>this.watchWildcardDirectory(n,r,e,t))}else{if(t.watchedDirectoriesStale=!1,!t.watchedDirectories)return;hT(t.watchedDirectories,qj),t.watchedDirectories=void 0}}stopWatchingWildCards(e,n){const t=this.configFileExistenceInfoCache.get(e);t.config&&t.config.projects.get(n.canonicalConfigFilePath)&&(t.config.projects.set(n.canonicalConfigFilePath,!1),ap(t.config.projects,sn)||(t.config.watchedDirectories&&(hT(t.config.watchedDirectories,qj),t.config.watchedDirectories=void 0),t.config.watchedDirectoriesStale=void 0))}updateNonInferredProjectFiles(e,n,t){var r;const o=e.getRootFilesMap(),i=new Map;for(const a of n){const n=t.getFileName(a),s=rhe(n);let l;if(Ihe(s)||e.fileExists(n)){const n=t.getScriptKind(a,this.hostConfiguration.extraFileExtensions),r=t.hasMixedContent(a,this.hostConfiguration.extraFileExtensions),i=dt.checkDefined(this.getOrCreateScriptInfoNotOpenedByClientForNormalizedPath(s,e.currentDirectory,n,r,e.directoryStructureHost,!1));l=i.path;const c=o.get(l);c&&c.info===i?c.fileName=s:(e.addRoot(i,s),i.isScriptOpen()&&this.removeRootOfInferredProjectIfNowPartOfOtherProject(i))}else{l=ohe(s,this.currentDirectory,this.toCanonicalFileName);const n=o.get(l);n?((null==(r=n.info)?void 0:r.path)===l&&(e.removeFile(n.info,!1,!0),n.info=void 0),n.fileName=s):o.set(l,{fileName:s})}i.set(l,!0)}o.size>i.size&&o.forEach((n,t)=>{i.has(t)||(n.info?e.removeFile(n.info,e.fileExists(n.info.fileName),!0):o.delete(t))})}updateRootAndOptionsOfNonInferredProject(e,n,t,r,o,i,a){e.setCompilerOptions(r),e.setWatchOptions(a),void 0!==i&&(e.compileOnSaveEnabled=i),this.addFilesToNonInferredProject(e,n,t,o)}reloadFileNamesOfConfiguredProject(e){const n=this.reloadFileNamesOfParsedConfig(e.getConfigFilePath(),this.configFileExistenceInfoCache.get(e.canonicalConfigFilePath).config);return e.updateErrorOnNoInputFiles(n),this.updateNonInferredProjectFiles(e,n.fileNames.concat(e.getExternalFiles(1)),S_e),e.markAsDirty(),e.updateGraph()}reloadFileNamesOfParsedConfig(e,n){if(void 0===n.updateLevel)return n.parsedCommandLine;dt.assert(1===n.updateLevel);const t=jO(n.parsedCommandLine.options.configFile.configFileSpecs,Mi(e),n.parsedCommandLine.options,n.cachedDirectoryStructureHost,this.hostConfiguration.extraFileExtensions);return n.parsedCommandLine={...n.parsedCommandLine,fileNames:t},n.updateLevel=void 0,n.parsedCommandLine}setFileNamesOfAutoImportProviderOrAuxillaryProject(e,n){this.updateNonInferredProjectFiles(e,n,S_e)}reloadConfiguredProjectOptimized(e,n,t){t.has(e)||(t.set(e,6),e.initialLoadPending||this.setProjectForReload(e,2,n))}reloadConfiguredProjectClearingSemanticCache(e,n,t){return 7!==t.get(e)&&(t.set(e,7),this.clearSemanticCache(e),this.reloadConfiguredProject(e,U_e(n)),!0)}setProjectForReload(e,n,t){2===n&&this.clearSemanticCache(e),e.pendingUpdateReason=t&&U_e(t),e.pendingUpdateLevel=n}reloadConfiguredProject(e,n){e.initialLoadPending=!1,this.setProjectForReload(e,0),this.loadConfiguredProject(e,n),G_e(e,e.triggerFileForConfigFileDiag??e.getConfigFilePath(),!0)}clearSemanticCache(e){e.originalConfiguredProjects=void 0,e.resolutionCache.clear(),e.getLanguageService(!1).cleanupSemanticCache(),e.cleanupProgram(),e.markAsDirty()}sendConfigFileDiagEvent(e,n,t){if(!this.eventHandler||this.suppressDiagnosticEvents)return!1;const r=e.getLanguageService().getCompilerOptionsDiagnostics();return r.push(...e.getAllProjectErrors()),!(!t&&r.length===(e.configDiagDiagnosticsReported??0))&&(e.configDiagDiagnosticsReported=r.length,this.eventHandler({eventName:t_e,data:{configFileName:e.getConfigFilePath(),diagnostics:r,triggerFile:n??e.getConfigFilePath()}}),!0)}getOrCreateInferredProjectForProjectRootPathIfEnabled(e,n){if(!this.useInferredProjectPerProjectRoot||e.isDynamic&&void 0===n)return;if(n){const e=this.toCanonicalFileName(n);for(const n of this.inferredProjects)if(n.projectRootPath===e)return n;return this.createInferredProject(n,!1,n)}let t;for(const r of this.inferredProjects)r.projectRootPath&&ra(r.projectRootPath,e.path,this.host.getCurrentDirectory(),!this.host.useCaseSensitiveFileNames)&&(t&&t.projectRootPath.length>r.projectRootPath.length||(t=r));return t}getOrCreateSingleInferredProjectIfEnabled(){if(this.useSingleInferredProject)return this.inferredProjects.length>0&&void 0===this.inferredProjects[0].projectRootPath?this.inferredProjects[0]:this.createInferredProject(this.currentDirectory,!0,void 0)}getOrCreateSingleInferredWithoutProjectRoot(e){dt.assert(!this.useSingleInferredProject);const n=this.toCanonicalFileName(this.getNormalizedAbsolutePath(e));for(const t of this.inferredProjects)if(!t.projectRootPath&&t.isOrphan()&&t.canonicalCurrentDirectory===n)return t;return this.createInferredProject(e,!1,void 0)}createInferredProject(e,n,t){const r=t&&this.compilerOptionsForInferredProjectsPerProjectRoot.get(t)||this.compilerOptionsForInferredProjects;let o,i;t&&(o=this.watchOptionsForInferredProjectsPerProjectRoot.get(t),i=this.typeAcquisitionForInferredProjectsPerProjectRoot.get(t)),void 0===o&&(o=this.watchOptionsForInferredProjects),void 0===i&&(i=this.typeAcquisitionForInferredProjects),o=o||void 0;const a=new zhe(this,r,null==o?void 0:o.watchOptions,t,e,i);return a.setProjectErrors(null==o?void 0:o.errors),n?this.inferredProjects.unshift(a):this.inferredProjects.push(a),a}getOrCreateScriptInfoNotOpenedByClient(e,n,t,r){return this.getOrCreateScriptInfoNotOpenedByClientForNormalizedPath(rhe(e),n,void 0,void 0,t,r)}getScriptInfo(e){return this.getScriptInfoForNormalizedPath(rhe(e))}getScriptInfoOrConfig(e){const n=rhe(e),t=this.getScriptInfoForNormalizedPath(n);if(t)return t;const r=this.configuredProjects.get(this.toPath(e));return r&&r.getCompilerOptions().configFile}logErrorForScriptInfoNotFound(e){const n=Le(W(this.filenameToScriptInfo.entries(),e=>e[1].deferredDelete?void 0:e),([e,n])=>({path:e,fileName:n.fileName}));this.logger.msg(`Could not find file ${JSON.stringify(e)}.\nAll files are: ${JSON.stringify(n)}`,"Err")}getSymlinkedProjects(e){let n;if(this.realpathToScriptInfos){const n=e.getRealpathIfDifferent();n&&d(this.realpathToScriptInfos.get(n),t),d(this.realpathToScriptInfos.get(e.path),t)}return n;function t(t){if(t!==e)for(const r of t.containingProjects)!r.languageServiceEnabled||r.isOrphan()||r.getCompilerOptions().preserveSymlinks||e.isAttached(r)||(n?ap(n,(e,n)=>n!==t.path&&S(e,r))||n.add(t.path,r):(n=He(),n.add(t.path,r)))}}watchClosedScriptInfo(e){if(dt.assert(!e.fileWatcher),!(e.isDynamicOrHasMixedContent()||this.globalCacheLocationDirectoryPath&&Xn(e.path,this.globalCacheLocationDirectoryPath))){const n=e.fileName.indexOf("/node_modules/");this.host.getModifiedTime&&-1!==n?(e.mTime=this.getModifiedTime(e),e.fileWatcher=this.watchClosedScriptInfoInNodeModules(e.fileName.substring(0,n))):e.fileWatcher=this.watchFactory.watchFile(e.fileName,(n,t)=>this.onSourceFileChanged(e,t),500,this.hostConfiguration.watchOptions,zK.ClosedScriptInfo)}}createNodeModulesWatcher(e,n){let t=this.watchFactory.watchDirectory(e,e=>{var t;const o=QH(this.toPath(e));if(!o)return;const i=Pi(o);if(!(null==(t=r.affectedModuleSpecifierCacheProjects)?void 0:t.size)||"package.json"!==i&&"node_modules"!==i||r.affectedModuleSpecifierCacheProjects.forEach(e=>{var n;null==(n=e.getModuleSpecifierCache())||n.clear()}),r.refreshScriptInfoRefCount)if(n===o)this.refreshScriptInfosInDirectory(n);else{const e=this.filenameToScriptInfo.get(o);e?z_e(e)&&this.refreshScriptInfo(e):Ai(o)||this.refreshScriptInfosInDirectory(o)}},1,this.hostConfiguration.watchOptions,zK.NodeModules);const r={refreshScriptInfoRefCount:0,affectedModuleSpecifierCacheProjects:void 0,close:()=>{var e;!t||r.refreshScriptInfoRefCount||(null==(e=r.affectedModuleSpecifierCacheProjects)?void 0:e.size)||(t.close(),t=void 0,this.nodeModulesWatchers.delete(n))}};return this.nodeModulesWatchers.set(n,r),r}watchPackageJsonsInNodeModules(e,n){var t;const r=this.toPath(e),o=this.nodeModulesWatchers.get(r)||this.createNodeModulesWatcher(e,r);return dt.assert(!(null==(t=o.affectedModuleSpecifierCacheProjects)?void 0:t.has(n))),(o.affectedModuleSpecifierCacheProjects||(o.affectedModuleSpecifierCacheProjects=new Set)).add(n),{close:()=>{var e;null==(e=o.affectedModuleSpecifierCacheProjects)||e.delete(n),o.close()}}}watchClosedScriptInfoInNodeModules(e){const n=e+"/node_modules",t=this.toPath(n),r=this.nodeModulesWatchers.get(t)||this.createNodeModulesWatcher(n,t);return r.refreshScriptInfoRefCount++,{close:()=>{r.refreshScriptInfoRefCount--,r.close()}}}getModifiedTime(e){return(this.host.getModifiedTime(e.fileName)||Go).getTime()}refreshScriptInfo(e){const n=this.getModifiedTime(e);if(n!==e.mTime){const t=Qo(e.mTime,n);e.mTime=n,this.onSourceFileChanged(e,t)}}refreshScriptInfosInDirectory(e){e+=pi,this.filenameToScriptInfo.forEach(n=>{z_e(n)&&Xn(n.path,e)&&this.refreshScriptInfo(n)})}stopWatchingScriptInfo(e){e.fileWatcher&&(e.fileWatcher.close(),e.fileWatcher=void 0)}getOrCreateScriptInfoNotOpenedByClientForNormalizedPath(e,n,t,r,o,i){if(yi(e)||Ihe(e))return this.getOrCreateScriptInfoWorker(e,n,!1,void 0,t,!!r,o,i);const a=this.openFilesWithNonRootedDiskPath.get(this.toCanonicalFileName(e));return a||void 0}getOrCreateScriptInfoForNormalizedPath(e,n,t,r,o,i){return this.getOrCreateScriptInfoWorker(e,this.currentDirectory,n,t,r,!!o,i,!1)}getOrCreateScriptInfoWorker(e,n,t,r,o,i,a,s){dt.assert(void 0===r||t,"ScriptInfo needs to be opened by client to be able to set its user defined content");const l=ohe(e,n,this.toCanonicalFileName);let c=this.filenameToScriptInfo.get(l);if(c){if(c.deferredDelete){if(dt.assert(!c.isDynamic),!t&&!(a||this.host).fileExists(e))return s?c:void 0;c.deferredDelete=void 0}}else{const r=Ihe(e);if(dt.assert(yi(e)||r||t,"",()=>`${JSON.stringify({fileName:e,currentDirectory:n,hostCurrentDirectory:this.currentDirectory,openKeys:Le(this.openFilesWithNonRootedDiskPath.keys())})}\nScript info with non-dynamic relative file name can only be open script info or in context of host currentDirectory`),dt.assert(!yi(e)||this.currentDirectory===n||!this.openFilesWithNonRootedDiskPath.has(this.toCanonicalFileName(e)),"",()=>`${JSON.stringify({fileName:e,currentDirectory:n,hostCurrentDirectory:this.currentDirectory,openKeys:Le(this.openFilesWithNonRootedDiskPath.keys())})}\nOpen script files with non rooted disk path opened with current directory context cannot have same canonical names`),dt.assert(!r||this.currentDirectory===n||this.useInferredProjectPerProjectRoot,"",()=>`${JSON.stringify({fileName:e,currentDirectory:n,hostCurrentDirectory:this.currentDirectory,openKeys:Le(this.openFilesWithNonRootedDiskPath.keys())})}\nDynamic files must always be opened with service's current directory or service should support inferred project per projectRootPath.`),!t&&!r&&!(a||this.host).fileExists(e))return;c=new Dhe(this.host,e,o,i,l,this.filenameToScriptInfoVersion.get(l)),this.filenameToScriptInfo.set(c.path,c),this.filenameToScriptInfoVersion.delete(c.path),t?yi(e)||r&&this.currentDirectory===n||this.openFilesWithNonRootedDiskPath.set(this.toCanonicalFileName(e),c):this.watchClosedScriptInfo(c)}return t&&(this.stopWatchingScriptInfo(c),c.open(r),i&&c.registerFileUpdate()),c}getScriptInfoForNormalizedPath(e){return!yi(e)&&this.openFilesWithNonRootedDiskPath.get(this.toCanonicalFileName(e))||this.getScriptInfoForPath(ohe(e,this.currentDirectory,this.toCanonicalFileName))}getScriptInfoForPath(e){const n=this.filenameToScriptInfo.get(e);return n&&n.deferredDelete?void 0:n}getDocumentPositionMapper(e,n,t){const r=this.getOrCreateScriptInfoNotOpenedByClient(n,e.currentDirectory,this.host,!1);if(!r)return void(t&&e.addGeneratedFileWatch(n,t));if(r.getSnapshot(),Qe(r.sourceMapFilePath)){const n=this.getScriptInfoForPath(r.sourceMapFilePath);if(n&&(n.getSnapshot(),void 0!==n.documentPositionMapper))return n.sourceInfos=this.addSourceInfoToSourceMap(t,e,n.sourceInfos),n.documentPositionMapper?n.documentPositionMapper:void 0;r.sourceMapFilePath=void 0}else{if(r.sourceMapFilePath)return void(r.sourceMapFilePath.sourceInfos=this.addSourceInfoToSourceMap(t,e,r.sourceMapFilePath.sourceInfos));if(void 0!==r.sourceMapFilePath)return}let o,i=(n,t)=>{const r=this.getOrCreateScriptInfoNotOpenedByClient(n,e.currentDirectory,this.host,!0);if(o=r||t,!r||r.deferredDelete)return;const i=r.getSnapshot();return void 0!==r.documentPositionMapper?r.documentPositionMapper:nQ(i)};const a=e.projectName,s=w1({getCanonicalFileName:this.toCanonicalFileName,log:e=>this.logger.info(e),getSourceFileLike:e=>this.getSourceFileLike(e,a,r)},r.fileName,r.textStorage.getLineInfo(),i);return i=void 0,o?Qe(o)?r.sourceMapFilePath={watcher:this.addMissingSourceMapFile(e.currentDirectory===this.currentDirectory?o:Vi(o,e.currentDirectory),r.path),sourceInfos:this.addSourceInfoToSourceMap(t,e)}:(r.sourceMapFilePath=o.path,o.declarationInfoPath=r.path,o.deferredDelete||(o.documentPositionMapper=s||!1),o.sourceInfos=this.addSourceInfoToSourceMap(t,e,o.sourceInfos)):r.sourceMapFilePath=!1,s}addSourceInfoToSourceMap(e,n,t){if(e){const r=this.getOrCreateScriptInfoNotOpenedByClient(e,n.currentDirectory,n.directoryStructureHost,!1);(t||(t=new Set)).add(r.path)}return t}addMissingSourceMapFile(e,n){return this.watchFactory.watchFile(e,()=>{const e=this.getScriptInfoForPath(n);e&&e.sourceMapFilePath&&!Qe(e.sourceMapFilePath)&&(this.delayUpdateProjectGraphs(e.containingProjects,!0),this.delayUpdateSourceInfoProjects(e.sourceMapFilePath.sourceInfos),e.closeSourceMapFileWatcher())},2e3,this.hostConfiguration.watchOptions,zK.MissingSourceMapFile)}getSourceFileLike(e,n,t){const r=n.projectName?n:this.findProject(n);if(r){const n=r.toPath(e),t=r.getSourceFile(n);if(t&&t.resolvedPath===n)return t}const o=this.getOrCreateScriptInfoNotOpenedByClient(e,(r||this).currentDirectory,r?r.directoryStructureHost:this.host,!1);if(o){if(t&&Qe(t.sourceMapFilePath)&&o!==t){const e=this.getScriptInfoForPath(t.sourceMapFilePath);e&&(e.sourceInfos??(e.sourceInfos=new Set)).add(o.path)}return o.cacheSourceFile?o.cacheSourceFile.sourceFile:(o.sourceFileLike||(o.sourceFileLike={get text(){return dt.fail("shouldnt need text"),""},getLineAndCharacterOfPosition:e=>{const n=o.positionToLineOffset(e);return{line:n.line-1,character:n.offset-1}},getPositionOfLineAndCharacter:(e,n,t)=>o.lineOffsetToPosition(e+1,n+1,t)}),o.sourceFileLike)}}setPerformanceEventHandler(e){this.performanceEventHandler=e}setHostConfiguration(e){var n;if(e.file){const n=this.getScriptInfoForNormalizedPath(rhe(e.file));n&&(n.setOptions(h_e(e.formatOptions),e.preferences),this.logger.info(`Host configuration update for file ${e.file}`))}else{if(void 0!==e.hostInfo&&(this.hostConfiguration.hostInfo=e.hostInfo,this.logger.info(`Host information ${e.hostInfo}`)),e.formatOptions&&(this.hostConfiguration.formatCodeOptions={...this.hostConfiguration.formatCodeOptions,...h_e(e.formatOptions)},this.logger.info("Format host information updated")),e.preferences){const{lazyConfiguredProjectsFromExternalProject:n,includePackageJsonAutoImports:t,includeCompletionsForModuleExports:r}=this.hostConfiguration.preferences;this.hostConfiguration.preferences={...this.hostConfiguration.preferences,...e.preferences},n&&!this.hostConfiguration.preferences.lazyConfiguredProjectsFromExternalProject&&this.externalProjectToConfiguredProjectMap.forEach(e=>e.forEach(e=>{e.deferredClose||e.isClosed()||2!==e.pendingUpdateLevel||this.hasPendingProjectUpdate(e)||e.updateGraph()})),t===e.preferences.includePackageJsonAutoImports&&!!r==!!e.preferences.includeCompletionsForModuleExports||this.forEachProject(e=>{e.onAutoImportProviderSettingsChanged()})}if(e.extraFileExtensions&&(this.hostConfiguration.extraFileExtensions=e.extraFileExtensions,this.reloadProjects(),this.logger.info("Host file extension mappings updated")),e.watchOptions){const t=null==(n=g_e(e.watchOptions))?void 0:n.watchOptions,r=fO(t,this.currentDirectory);this.hostConfiguration.watchOptions=r,this.hostConfiguration.beforeSubstitution=r===t?void 0:t,this.logger.info(`Host watch options changed to ${JSON.stringify(this.hostConfiguration.watchOptions)}, it will be take effect for next watches.`)}}}getWatchOptions(e){return this.getWatchOptionsFromProjectWatchOptions(e.getWatchOptions(),e.getCurrentDirectory())}getWatchOptionsFromProjectWatchOptions(e,n){const t=this.hostConfiguration.beforeSubstitution?fO(this.hostConfiguration.beforeSubstitution,n):this.hostConfiguration.watchOptions;return e&&t?{...t,...e}:e||t}closeLog(){this.logger.close()}sendSourceFileChange(e){this.filenameToScriptInfo.forEach(n=>{if(this.openFiles.has(n.path))return;if(!n.fileWatcher)return;const t=pn(()=>this.host.fileExists(n.fileName)?n.deferredDelete?0:1:2);if(e){if(z_e(n)||!n.path.startsWith(e))return;if(2===t()&&n.deferredDelete)return;this.logger.info(`Invoking sourceFileChange on ${n.fileName}:: ${t()}`)}this.onSourceFileChanged(n,t())})}reloadProjects(){this.logger.info("reload projects."),this.sendSourceFileChange(void 0),this.pendingProjectUpdates.forEach((e,n)=>{this.throttledOperations.cancel(n),this.pendingProjectUpdates.delete(n)}),this.throttledOperations.cancel(c_e),this.pendingOpenFileProjectUpdates=void 0,this.pendingEnsureProjectForOpenFiles=!1,this.configFileExistenceInfoCache.forEach(e=>{e.config&&(e.config.updateLevel=2,e.config.cachedDirectoryStructureHost.clearCache())}),this.configFileForOpenFiles.clear(),this.externalProjects.forEach(e=>{this.clearSemanticCache(e),e.updateGraph()});const e=new Map,n=new Set;this.externalProjectToConfiguredProjectMap.forEach((n,t)=>{const r=`Reloading configured project in external project: ${t}`;n.forEach(n=>{this.getHostPreferences().lazyConfiguredProjectsFromExternalProject?this.reloadConfiguredProjectOptimized(n,r,e):this.reloadConfiguredProjectClearingSemanticCache(n,r,e)})}),this.openFiles.forEach((t,r)=>{const o=this.getScriptInfoForPath(r);y(o.containingProjects,qhe)||this.tryFindDefaultConfiguredProjectAndLoadAncestorsForOpenScriptInfo(o,7,e,n)}),n.forEach(n=>e.set(n,7)),this.inferredProjects.forEach(e=>this.clearSemanticCache(e)),this.ensureProjectForOpenFiles(),this.cleanupProjectsAndScriptInfos(e,new Set(this.openFiles.keys()),new Set(this.externalProjectToConfiguredProjectMap.keys())),this.logger.info("After reloading projects.."),this.printProjects()}removeRootOfInferredProjectIfNowPartOfOtherProject(e){dt.assert(e.containingProjects.length>0);const n=e.containingProjects[0];!n.isOrphan()&&Hhe(n)&&n.isRoot(e)&&d(e.containingProjects,e=>e!==n&&!e.isOrphan())&&n.removeFile(e,!0,!0)}ensureProjectForOpenFiles(){this.logger.info("Before ensureProjectForOpenFiles:"),this.printProjects();const e=this.pendingOpenFileProjectUpdates;this.pendingOpenFileProjectUpdates=void 0,null==e||e.forEach((e,n)=>this.tryFindDefaultConfiguredProjectAndLoadAncestorsForOpenScriptInfo(this.getScriptInfoForPath(n),5)),this.openFiles.forEach((e,n)=>{const t=this.getScriptInfoForPath(n);t.isOrphan()?this.assignOrphanScriptInfoToInferredProject(t,e):this.removeRootOfInferredProjectIfNowPartOfOtherProject(t)}),this.pendingEnsureProjectForOpenFiles=!1,this.inferredProjects.forEach(B_e),this.logger.info("After ensureProjectForOpenFiles:"),this.printProjects()}openClientFile(e,n,t,r){return this.openClientFileWithNormalizedPath(rhe(e),n,t,!1,r?rhe(r):void 0)}getOriginalLocationEnsuringConfiguredProject(e,n){const t=e.isSourceOfProjectReferenceRedirect(n.fileName),r=t?n:e.getSourceMapper().tryGetSourcePosition(n);if(!r)return;const{fileName:o}=r,i=this.getScriptInfo(o);if(!i&&!this.host.fileExists(o))return;const a={fileName:rhe(o),path:this.toPath(o)},s=this.getConfigFileNameForFile(a,!1);if(!s)return;let l=this.findConfiguredProjectByProjectName(s);if(!l){if(e.getCompilerOptions().disableReferencedProjectLoad)return t?n:(null==i?void 0:i.containingProjects.length)?r:n;l=this.createConfiguredProject(s,`Creating project for original file: ${a.fileName}${n!==r?" for location: "+n.fileName:""}`)}const c=this.tryFindDefaultConfiguredProjectForOpenScriptInfoOrClosedFileInfo(a,5,k_e(l,4),e=>`Creating project referenced in solution ${e.projectName} to find possible configured project for original file: ${a.fileName}${n!==r?" for location: "+n.fileName:""}`);if(!c.defaultProject)return;if(c.defaultProject===e)return r;u(c.defaultProject);const d=this.getScriptInfo(o);if(d&&d.containingProjects.length)return d.containingProjects.forEach(e=>{Khe(e)&&u(e)}),r;function u(n){(e.originalConfiguredProjects??(e.originalConfiguredProjects=new Set)).add(n.canonicalConfigFilePath)}}fileExists(e){return!!this.getScriptInfoForNormalizedPath(e)||this.host.fileExists(e)}findExternalProjectContainingOpenScriptInfo(e){return y(this.externalProjects,n=>(B_e(n),n.containsScriptInfo(e)))}getOrCreateOpenScriptInfo(e,n,t,r,o){const i=this.getOrCreateScriptInfoWorker(e,o?this.getNormalizedAbsolutePath(o):this.currentDirectory,!0,n,t,!!r,void 0,!0);return this.openFiles.set(i.path,o),i}assignProjectToOpenedScriptInfo(e){let n,t;let r,o;if(!this.findExternalProjectContainingOpenScriptInfo(e)&&0===this.serverMode){const i=this.tryFindDefaultConfiguredProjectAndLoadAncestorsForOpenScriptInfo(e,5);i&&(r=i.seenProjects,o=i.sentConfigDiag,i.defaultProject&&(n=i.defaultProject.getConfigFilePath(),t=i.defaultProject.getAllProjectErrors()))}return e.containingProjects.forEach(B_e),e.isOrphan()&&(null==r||r.forEach((n,t)=>{4===n||o.has(t)||this.sendConfigFileDiagEvent(t,e.fileName,!0)}),dt.assert(this.openFiles.has(e.path)),this.assignOrphanScriptInfoToInferredProject(e,this.openFiles.get(e.path))),dt.assert(!e.isOrphan()),{configFileName:n,configFileErrors:t,retainProjects:r}}findCreateOrReloadConfiguredProject(e,n,t,r,o,i,a,s,l){let c,d=l??this.findConfiguredProjectByProjectName(e,r),u=!1;switch(n){case 0:case 1:case 3:if(!d)return;break;case 2:if(!d)return;c=function(e){return j_e(e)?e.projectService.configFileExistenceInfoCache.get(e.canonicalConfigFilePath):void 0}(d);break;case 4:case 5:d??(d=this.createConfiguredProject(e,t)),a||({sentConfigFileDiag:u,configFileExistenceInfo:c}=k_e(d,n,o));break;case 6:if(d??(d=this.createConfiguredProject(e,U_e(t))),d.projectService.reloadConfiguredProjectOptimized(d,t,i),c=V_e(d),c)break;case 7:d??(d=this.createConfiguredProject(e,U_e(t))),u=!s&&this.reloadConfiguredProjectClearingSemanticCache(d,t,i),!s||s.has(d)||i.has(d)||(this.setProjectForReload(d,2,t),s.add(d));break;default:dt.assertNever(n)}return{project:d,sentConfigFileDiag:u,configFileExistenceInfo:c,reason:t}}tryFindDefaultConfiguredProjectForOpenScriptInfo(e,n,t,r){const o=this.getConfigFileNameForFile(e,n<=3);if(!o)return;const i=M_e(n),a=this.findCreateOrReloadConfiguredProject(o,i,function(e){return`Creating possible configured project for ${e.fileName} to open`}(e),t,e.fileName,r);return a&&this.tryFindDefaultConfiguredProjectForOpenScriptInfoOrClosedFileInfo(e,n,a,n=>`Creating project referenced in solution ${n.projectName} to find possible configured project for ${e.fileName} to open`,t,r)}isMatchedByConfig(e,n,t){if(n.fileNames.some(e=>this.toPath(e)===t.path))return!0;if(jE(t.fileName,n.options,this.hostConfiguration.extraFileExtensions))return!1;const{validatedFilesSpec:r,validatedIncludeSpecs:o,validatedExcludeSpecs:i}=n.options.configFile.configFileSpecs,a=rhe(Vi(Mi(e),this.currentDirectory));return!!(null==r?void 0:r.some(e=>this.toPath(Vi(e,a))===t.path))||!!(null==o?void 0:o.length)&&(!qO(t.fileName,i,this.host.useCaseSensitiveFileNames,this.currentDirectory,a)&&(null==o?void 0:o.some(e=>{const n=_E(e,a,"files");return!!n&&bE(`(${n})$`,this.host.useCaseSensitiveFileNames).test(t.fileName)})))}tryFindDefaultConfiguredProjectForOpenScriptInfoOrClosedFileInfo(e,n,t,r,o,i){const a=D_e(e),s=M_e(n),l=new Map;let c;const d=new Set;let u,p,f,m;return h(t),{defaultProject:u??p,tsconfigProject:f??m,sentConfigDiag:d,seenProjects:l,seenConfigs:c};function h(n){return function(e,n){e.sentConfigFileDiag&&d.add(e.project);return e.configFileExistenceInfo?_(e.configFileExistenceInfo,e.project,rhe(e.project.getConfigFilePath()),e.reason,e.project,e.project.canonicalConfigFilePath):g(e.project,n)}(n,n.project)??((t=n.project).parsedCommandLine&&L_e(t,t.parsedCommandLine,_,s,r(t),o,i))??function(n){return a?P_e(e,n,h,s,`Creating possible configured project for ${e.fileName} to open`,o,i,!1):void 0}(n.project);var t}function _(t,r,a,u,p,f){if(r){if(l.has(r))return;l.set(r,s)}else{if(null==c?void 0:c.has(f))return;(c??(c=new Set)).add(f)}if(!p.projectService.isMatchedByConfig(a,t.config.parsedCommandLine,e))return void(p.languageServiceEnabled&&p.projectService.watchWildcards(a,t,p));const m=r?k_e(r,n,e.fileName,u,i):p.projectService.findCreateOrReloadConfiguredProject(a,n,u,o,e.fileName,i);if(m)return l.set(m.project,s),m.sentConfigFileDiag&&d.add(m.project),g(m.project,p);dt.assert(3===n)}function g(t,r){if(l.get(t)===n)return;l.set(t,n);const o=a?e:t.projectService.getScriptInfo(e.fileName),i=o&&t.containsScriptInfo(o);if(i&&!t.isSourceOfProjectReferenceRedirect(o.path))return f=r,u=t;!p&&a&&i&&(m=r,p=t)}}tryFindDefaultConfiguredProjectAndLoadAncestorsForOpenScriptInfo(e,n,t,r){const o=1===n,i=this.tryFindDefaultConfiguredProjectForOpenScriptInfo(e,n,o,t);if(!i)return;const{defaultProject:a,tsconfigProject:s,seenProjects:l}=i;return a&&P_e(e,s,e=>{l.set(e.project,n)},n,`Creating project possibly referencing default composite project ${a.getProjectName()} of open file ${e.fileName}`,o,t,!0,r),i}loadAncestorProjectTree(e){e??(e=new Set(W(this.configuredProjects.entries(),([e,n])=>n.initialLoadPending?void 0:e)));const n=new Set,t=Le(this.configuredProjects.values());for(const r of t)w_e(r,n=>e.has(n))&&B_e(r),this.ensureProjectChildren(r,e,n)}ensureProjectChildren(e,n,t){var r;if(!B(t,e.canonicalConfigFilePath))return;if(e.getCompilerOptions().disableReferencedProjectLoad)return;const o=null==(r=e.getCurrentProgram())?void 0:r.getResolvedProjectReferences();if(o)for(const i of o){if(!i)continue;const r=Fx(i.references,e=>n.has(e.sourceFile.path)?e:void 0);if(!r)continue;const o=rhe(i.sourceFile.fileName),a=this.findConfiguredProjectByProjectName(o)??this.createConfiguredProject(o,`Creating project referenced by : ${e.projectName} as it references project ${r.sourceFile.fileName}`);B_e(a),this.ensureProjectChildren(a,n,t)}}cleanupConfiguredProjects(e,n,t){this.getOrphanConfiguredProjects(e,t,n).forEach(e=>this.removeProject(e))}cleanupProjectsAndScriptInfos(e,n,t){this.cleanupConfiguredProjects(e,t,n);for(const r of this.inferredProjects.slice())r.isOrphan()&&this.removeProject(r);this.removeOrphanScriptInfos()}tryInvokeWildCardDirectories(e){this.configFileExistenceInfoCache.forEach((n,t)=>{var r,o;(null==(r=n.config)?void 0:r.parsedCommandLine)&&!S(n.config.parsedCommandLine.fileNames,e.fileName,this.host.useCaseSensitiveFileNames?gn:_n)&&(null==(o=n.config.watchedDirectories)||o.forEach((r,o)=>{ra(o,e.fileName,!this.host.useCaseSensitiveFileNames)&&(this.logger.info(`Invoking ${t}:: wildcard for open scriptInfo:: ${e.fileName}`),this.onWildCardDirectoryWatcherInvoke(o,t,n.config,r.watcher,e.fileName))}))})}openClientFileWithNormalizedPath(e,n,t,r,o){const i=this.getScriptInfoForPath(ohe(e,o?this.getNormalizedAbsolutePath(o):this.currentDirectory,this.toCanonicalFileName)),a=this.getOrCreateOpenScriptInfo(e,n,t,r,o);i||!a||a.isDynamic||this.tryInvokeWildCardDirectories(a);const{retainProjects:s,...l}=this.assignProjectToOpenedScriptInfo(a);return this.cleanupProjectsAndScriptInfos(s,new Set([a.path]),void 0),this.telemetryOnOpenFile(a),this.printProjects(),l}getOrphanConfiguredProjects(e,n,t){const r=new Set(this.configuredProjects.values()),o=e=>{!e.originalConfiguredProjects||!Khe(e)&&e.isOrphan()||e.originalConfiguredProjects.forEach((e,n)=>{const t=this.getConfiguredProjectByCanonicalConfigFilePath(n);return t&&s(t)})};return null==e||e.forEach((e,n)=>s(n)),r.size?(this.inferredProjects.forEach(o),this.externalProjects.forEach(o),this.externalProjectToConfiguredProjectMap.forEach((e,n)=>{(null==t?void 0:t.has(n))||e.forEach(s)}),r.size?(ap(this.openFiles,(e,t)=>{if(null==n?void 0:n.has(t))return;const o=this.getScriptInfoForPath(t);if(y(o.containingProjects,qhe))return;const i=this.tryFindDefaultConfiguredProjectAndLoadAncestorsForOpenScriptInfo(o,1);return(null==i?void 0:i.defaultProject)&&(null==i||i.seenProjects.forEach((e,n)=>s(n)),!r.size)?r:void 0}),r.size?(ap(this.configuredProjects,e=>{if(r.has(e)&&(a(e)||F_e(e,i))&&(s(e),!r.size))return r}),r):r):r):r;function i(e){return!r.has(e)||a(e)}function a(e){var n,t;return(e.deferredClose||e.projectService.hasPendingProjectUpdate(e))&&!!(null==(t=null==(n=e.projectService.configFileExistenceInfoCache.get(e.canonicalConfigFilePath))?void 0:n.openFilesImpactedByConfigFile)?void 0:t.size)}function s(e){r.delete(e)&&(o(e),F_e(e,s))}}removeOrphanScriptInfos(){const e=new Map(this.filenameToScriptInfo);this.filenameToScriptInfo.forEach(n=>{if(!n.deferredDelete){if(!n.isScriptOpen()&&n.isOrphan()&&!Nhe(n)&&!Che(n)){if(!n.sourceMapFilePath)return;let e;if(Qe(n.sourceMapFilePath)){const t=this.filenameToScriptInfo.get(n.sourceMapFilePath);e=null==t?void 0:t.sourceInfos}else e=n.sourceMapFilePath.sourceInfos;if(!e)return;if(!sp(e,e=>{const n=this.getScriptInfoForPath(e);return!!n&&(n.isScriptOpen()||!n.isOrphan())}))return}if(e.delete(n.path),n.sourceMapFilePath){let t;if(Qe(n.sourceMapFilePath)){const r=this.filenameToScriptInfo.get(n.sourceMapFilePath);(null==r?void 0:r.deferredDelete)?n.sourceMapFilePath={watcher:this.addMissingSourceMapFile(r.fileName,n.path),sourceInfos:r.sourceInfos}:e.delete(n.sourceMapFilePath),t=null==r?void 0:r.sourceInfos}else t=n.sourceMapFilePath.sourceInfos;t&&t.forEach((n,t)=>e.delete(t))}}}),e.forEach(e=>this.deleteScriptInfo(e))}telemetryOnOpenFile(e){if(0!==this.serverMode||!this.eventHandler||!e.isJavaScript()||!AT(this.allJsFilesForOpenFileTelemetry,e.path))return;const n=this.ensureDefaultProjectForFile(e);if(!n.languageServiceEnabled)return;const t=n.getSourceFile(e.path),r=!!t&&!!t.checkJsDirective;this.eventHandler({eventName:i_e,data:{info:{checkJs:r}}})}closeClientFile(e,n){const t=this.getScriptInfoForNormalizedPath(rhe(e)),r=!!t&&this.closeOpenFile(t,n);return n||this.printProjects(),r}collectChanges(e,n,t,r){for(const o of n){const n=y(e,e=>e.projectName===o.getProjectName());r.push(o.getChangesSinceVersion(n&&n.version,t))}}synchronizeProjectList(e,n){const t=[];return this.collectChanges(e,this.externalProjects,n,t),this.collectChanges(e,W(this.configuredProjects.values(),e=>e.deferredClose?void 0:e),n,t),this.collectChanges(e,this.inferredProjects,n,t),t}applyChangesInOpenFiles(e,n,t){let r,o,i,a=!1;if(e)for(const s of e){(r??(r=[])).push(this.getScriptInfoForPath(ohe(rhe(s.fileName),s.projectRootPath?this.getNormalizedAbsolutePath(s.projectRootPath):this.currentDirectory,this.toCanonicalFileName)));const e=this.getOrCreateOpenScriptInfo(rhe(s.fileName),s.content,v_e(s.scriptKind),s.hasMixedContent,s.projectRootPath?rhe(s.projectRootPath):void 0);(o||(o=[])).push(e)}if(n)for(const s of n){const e=this.getScriptInfo(s.fileName);dt.assert(!!e),this.applyChangesToFile(e,s.changes)}if(t)for(const s of t)a=this.closeClientFile(s,!0)||a;d(r,(e,n)=>e||!o[n]||o[n].isDynamic?void 0:this.tryInvokeWildCardDirectories(o[n])),null==o||o.forEach(e=>{var n;return null==(n=this.assignProjectToOpenedScriptInfo(e).retainProjects)?void 0:n.forEach((e,n)=>(i??(i=new Map)).set(n,e))}),a&&this.assignOrphanScriptInfosToInferredProject(),o?(this.cleanupProjectsAndScriptInfos(i,new Set(o.map(e=>e.path)),void 0),o.forEach(e=>this.telemetryOnOpenFile(e)),this.printProjects()):c(t)&&this.printProjects()}applyChangesToFile(e,n){for(const t of n)e.editContent(t.span.start,t.span.start+t.span.length,t.newText)}closeExternalProject(e,n){const t=rhe(e);if(this.externalProjectToConfiguredProjectMap.get(t))this.externalProjectToConfiguredProjectMap.delete(t);else{const n=this.findExternalProjectByProjectName(e);n&&this.removeProject(n)}n&&(this.cleanupConfiguredProjects(),this.printProjects())}openExternalProjects(e){const n=new Set(this.externalProjects.map(e=>e.getProjectName()));this.externalProjectToConfiguredProjectMap.forEach((e,t)=>n.add(t));for(const t of e)this.openExternalProject(t,!1),n.delete(t.projectFileName);n.forEach(e=>this.closeExternalProject(e,!1)),this.cleanupConfiguredProjects(),this.printProjects()}static escapeFilenameForRegex(e){return e.replace(this.filenameEscapeRegexp,"\\$&")}resetSafeList(){this.safelist=m_e}applySafeList(e){const n=e.typeAcquisition;dt.assert(!!n,"proj.typeAcquisition should be set by now");const t=this.applySafeListWorker(e,e.rootFiles,n);return(null==t?void 0:t.excludedFiles)??[]}applySafeListWorker(n,t,r){if(!1===r.enable||r.disableFilenameBasedTypeAcquisition)return;const o=r.include||(r.include=[]),i=[],a=t.map(e=>Fi(e.fileName));for(const u of Object.keys(this.safelist)){const n=this.safelist[u];for(const t of a)if(n.match.test(t)){if(this.logger.info(`Excluding files based on rule ${u} matching file '${t}'`),n.types)for(const e of n.types)o.includes(e)||o.push(e);if(n.exclude)for(const r of n.exclude){const o=t.replace(n.match,(...n)=>r.map(t=>"number"==typeof t?Qe(n[t])?e.escapeFilenameForRegex(n[t]):(this.logger.info(`Incorrect RegExp specification in safelist rule ${u} - not enough groups`),"\\*"):t).join(""));i.includes(o)||i.push(o)}else{const n=e.escapeFilenameForRegex(t);i.includes(n)||i.push(n)}}}const s=i.map(e=>new RegExp(e,"i"));let l,c;for(let e=0;e<t.length;e++)if(s.some(n=>n.test(a[e])))d(e);else{if(r.enable){const n=Pi(dn(a[e]));if(xi(n,"js")){const t=Bn(qE(n)),r=this.legacySafelist.get(t);if(void 0!==r){this.logger.info(`Excluded '${a[e]}' because it matched ${t} from the legacy safelist`),d(e),o.includes(r)||o.push(r);continue}}}/^.+[.-]min\.js$/.test(a[e])?d(e):null==l||l.push(t[e])}return c?{rootFiles:l,excludedFiles:c}:void 0;function d(e){c||(dt.assert(!l),l=t.slice(0,e),c=[]),c.push(a[e])}}openExternalProject(e,n){const t=this.findExternalProjectByProjectName(e.projectFileName);let r,o=[];for(const i of e.rootFiles){const n=rhe(i.fileName);if(mhe(n)){if(0===this.serverMode&&this.host.fileExists(n)){let t=this.findConfiguredProjectByProjectName(n);t||(t=this.createConfiguredProject(n,`Creating configured project in external project: ${e.projectFileName}`),this.getHostPreferences().lazyConfiguredProjectsFromExternalProject||t.updateGraph()),(r??(r=new Set)).add(t),dt.assert(!t.isClosed())}}else o.push(i)}if(r)this.externalProjectToConfiguredProjectMap.set(e.projectFileName,r),t&&this.removeProject(t);else{this.externalProjectToConfiguredProjectMap.delete(e.projectFileName);const n=e.typeAcquisition||{};n.include=n.include||[],n.exclude=n.exclude||[],void 0===n.enable&&(n.enable=whe(o.map(e=>e.fileName)));const r=this.applySafeListWorker(e,o,n),i=(null==r?void 0:r.excludedFiles)??[];if(o=(null==r?void 0:r.rootFiles)??o,t){t.excludedFiles=i;const r=__e(e.options),a=g_e(e.options,t.getCurrentDirectory()),s=this.getFilenameForExceededTotalSizeLimitForNonTsFiles(e.projectFileName,r,o,E_e);s?t.disableLanguageService(s):t.enableLanguageService(),t.setProjectErrors(null==a?void 0:a.errors),this.updateRootAndOptionsOfNonInferredProject(t,o,E_e,r,n,e.options.compileOnSave,null==a?void 0:a.watchOptions),t.updateGraph()}else{this.createExternalProject(e.projectFileName,o,e.options,n,i).updateGraph()}}n&&(this.cleanupConfiguredProjects(r,new Set([e.projectFileName])),this.printProjects())}hasDeferredExtension(){for(const e of this.hostConfiguration.extraFileExtensions)if(7===e.scriptKind)return!0;return!1}requestEnablePlugin(e,n,t){if(this.host.importPlugin||this.host.require)if(this.logger.info(`Enabling plugin ${n.name} from candidate paths: ${t.join(",")}`),!n.name||Ds(n.name)||/[\\/]\.\.?(?:$|[\\/])/.test(n.name))this.logger.info(`Skipped loading plugin ${n.name||JSON.stringify(n)} because only package name is allowed plugin name`);else{if(this.host.importPlugin){const r=Whe.importServicePluginAsync(n,t,this.host,e=>this.logger.info(e));this.pendingPluginEnablements??(this.pendingPluginEnablements=new Map);let o=this.pendingPluginEnablements.get(e);return o||this.pendingPluginEnablements.set(e,o=[]),void o.push(r)}this.endEnablePlugin(e,Whe.importServicePluginSync(n,t,this.host,e=>this.logger.info(e)))}else this.logger.info("Plugins were requested but not running in environment that supports 'require'. Nothing will be loaded")}endEnablePlugin(e,{pluginConfigEntry:n,resolvedModule:t,errorLogs:r}){var o;if(t){const r=null==(o=this.currentPluginConfigOverrides)?void 0:o.get(n.name);if(r){const e=n.name;(n=r).name=e}e.enableProxy(t,n)}else d(r,e=>this.logger.info(e)),this.logger.info(`Couldn't find ${n.name}`)}hasNewPluginEnablementRequests(){return!!this.pendingPluginEnablements}hasPendingPluginEnablements(){return!!this.currentPluginEnablementPromise}async waitForPendingPlugins(){for(;this.currentPluginEnablementPromise;)await this.currentPluginEnablementPromise}enableRequestedPlugins(){this.pendingPluginEnablements&&this.enableRequestedPluginsAsync()}async enableRequestedPluginsAsync(){if(this.currentPluginEnablementPromise&&await this.waitForPendingPlugins(),!this.pendingPluginEnablements)return;const e=Le(this.pendingPluginEnablements.entries());this.pendingPluginEnablements=void 0,this.currentPluginEnablementPromise=this.enableRequestedPluginsWorker(e),await this.currentPluginEnablementPromise}async enableRequestedPluginsWorker(e){dt.assert(void 0===this.currentPluginEnablementPromise);let n=!1;await Promise.all(D(e,async([e,t])=>{const r=await Promise.all(t);if(e.isClosed()||Xhe(e))this.logger.info(`Cancelling plugin enabling for ${e.getProjectName()} as it is ${e.isClosed()?"closed":"deferred close"}`);else{n=!0;for(const n of r)this.endEnablePlugin(e,n);this.delayUpdateProjectGraph(e)}})),this.currentPluginEnablementPromise=void 0,n&&this.sendProjectsUpdatedInBackgroundEvent()}configurePlugin(e){this.forEachEnabledProject(n=>n.onPluginConfigurationChanged(e.pluginName,e.configuration)),this.currentPluginConfigOverrides=this.currentPluginConfigOverrides||new Map,this.currentPluginConfigOverrides.set(e.pluginName,e.configuration)}getPackageJsonsVisibleToFile(e,n,t){const r=this.packageJsonCache,o=t&&this.toPath(t),i=[],a=e=>{switch(r.directoryHasPackageJson(e)){case 3:return r.searchDirectoryAndAncestors(e,n),a(e);case-1:const t=zi(e,"package.json");this.watchPackageJsonFile(t,this.toPath(t),n);const o=r.getInDirectory(e);o&&i.push(o)}if(o&&o===e)return!0};return kW(n,Mi(e),a),i}getNearestAncestorDirectoryWithPackageJson(e,n){return kW(n,e,e=>{switch(this.packageJsonCache.directoryHasPackageJson(e)){case-1:return e;case 0:return;case 3:return this.host.fileExists(zi(e,"package.json"))?e:void 0}})}watchPackageJsonFile(e,n,t){dt.assert(void 0!==t);let r=(this.packageJsonFilesMap??(this.packageJsonFilesMap=new Map)).get(n);if(!r){let t=this.watchFactory.watchFile(e,(e,t)=>{switch(t){case 0:case 1:this.packageJsonCache.addOrUpdate(e,n),this.onPackageJsonChange(r);break;case 2:this.packageJsonCache.delete(n),this.onPackageJsonChange(r),r.projects.clear(),r.close()}},250,this.hostConfiguration.watchOptions,zK.PackageJson);r={projects:new Set,close:()=>{var e;!r.projects.size&&t&&(t.close(),t=void 0,null==(e=this.packageJsonFilesMap)||e.delete(n),this.packageJsonCache.invalidate(n))}},this.packageJsonFilesMap.set(n,r)}r.projects.add(t),(t.packageJsonWatches??(t.packageJsonWatches=new Set)).add(r)}onPackageJsonChange(e){e.projects.forEach(e=>{var n;return null==(n=e.onPackageJsonChange)?void 0:n.call(e)})}includePackageJsonAutoImports(){switch(this.hostConfiguration.preferences.includePackageJsonAutoImports){case"on":return 1;case"off":return 0;default:return 2}}getIncompleteCompletionsCache(){return this.incompleteCompletionsCache||(this.incompleteCompletionsCache=function(){let e;return{get:()=>e,set(n){e=n},clear(){e=void 0}}}())}};Y_e.filenameEscapeRegexp=/[-/\\^$*+?.()|[\]{}]/g;var $_e=Y_e;function Q_e(e){return void 0!==e.kind}function Z_e(e){e.print(!1,!1,!1)}function ege(e){let n,t,r;const o={get(e,n,o,i){if(t&&r===a(e,o,i))return t.get(n)},set(t,r,o,a,l,c,d){if(i(t,o,a).set(r,s(l,c,d,void 0,!1)),d)for(const i of c)if(i.isInNodeModules){const t=i.path.substring(0,i.path.indexOf(oW)+oW.length-1),r=e.toPath(t);(null==n?void 0:n.has(r))||(n||(n=new Map)).set(r,e.watchNodeModulesForPackageJsonChanges(t))}},setModulePaths(e,n,t,r,o){const a=i(e,t,r),l=a.get(n);l?l.modulePaths=o:a.set(n,s(void 0,o,void 0,void 0,void 0))},setBlockedByPackageJsonDependencies(e,n,t,r,o,a){const l=i(e,t,r),c=l.get(n);c?(c.isBlockedByPackageJsonDependencies=a,c.packageName=o):l.set(n,s(void 0,void 0,void 0,o,a))},clear(){null==n||n.forEach(aT),null==t||t.clear(),null==n||n.clear(),r=void 0},count:()=>t?t.size:0};return dt.isDebugging&&Object.defineProperty(o,"__cache",{get:()=>t}),o;function i(e,n,i){const s=a(e,n,i);return t&&r!==s&&o.clear(),r=s,t||(t=new Map)}function a(e,n,t){return`${e},${n.importModuleSpecifierEnding},${n.importModuleSpecifierPreference},${t.overrideImportMode}`}function s(e,n,t,r,o){return{kind:e,modulePaths:n,moduleSpecifiers:t,packageName:r,isBlockedByPackageJsonDependencies:o}}}function nge(e){const n=new Map,t=new Map;return{addOrUpdate:r,invalidate:function(e){n.delete(e),t.delete(Mi(e))},delete:e=>{n.delete(e),t.set(Mi(e),!0)},getInDirectory:t=>n.get(e.toPath(zi(t,"package.json")))||void 0,directoryHasPackageJson:n=>o(e.toPath(n)),searchDirectoryAndAncestors:(n,i)=>{kW(i,n,n=>{const i=e.toPath(n);if(3!==o(i))return!0;const a=zi(n,"package.json");WZ(e,a)?r(a,zi(i,"package.json")):t.set(i,!0)})}};function r(r,o){const i=dt.checkDefined(UZ(r,e.host));n.set(o,i),t.delete(Mi(o))}function o(e){return n.has(zi(e,"package.json"))?-1:t.has(e)?0:3}}var tge={isCancellationRequested:()=>!1,setRequest:()=>{},resetRequest:()=>{}};function rge(e,n){if((Hhe(e)||qhe(e))&&e.isJsOnlyProject()){const t=e.getScriptInfoForNormalizedPath(n);return t&&!t.isJavaScript()}return!1}function oge(e,n,t){const r=n.getScriptInfoForNormalizedPath(e);return{start:r.positionToLineOffset(t.start),end:r.positionToLineOffset(t.start+t.length),text:gU(t.messageText,"\n"),code:t.code,category:so(t),reportsUnnecessary:t.reportsUnnecessary,reportsDeprecated:t.reportsDeprecated,source:t.source,relatedInformation:D(t.relatedInformation,ige)}}function ige(e){return e.file?{span:{start:age(Ua(e.file,e.start)),end:age(Ua(e.file,e.start+e.length)),file:e.file.fileName},message:gU(e.messageText,"\n"),category:so(e),code:e.code}:{message:gU(e.messageText,"\n"),category:so(e),code:e.code}}function age(e){return{line:e.line+1,offset:e.character+1}}function sge(e,n){const t=e.file&&age(Ua(e.file,e.start)),r=e.file&&age(Ua(e.file,e.start+e.length)),o=gU(e.messageText,"\n"),{code:i,source:a}=e,s={start:t,end:r,text:o,code:i,category:so(e),reportsUnnecessary:e.reportsUnnecessary,reportsDeprecated:e.reportsDeprecated,source:a,relatedInformation:D(e.relatedInformation,ige)};return n?{...s,fileName:e.file&&e.file.fileName}:s}var lge=_he;function cge(e,n,t,r){const o=n.hasLevel(3),i=JSON.stringify(e);o&&n.info(`${e.type}:${vX(e)}`);return`Content-Length: ${1+t(i,"utf8")}\r\n\r\n${i}${r}`}var dge=class{constructor(e){this.operationHost=e}startNew(e){this.complete(),this.requestId=this.operationHost.getCurrentRequestId(),this.executeAction(e)}complete(){void 0!==this.requestId&&(this.operationHost.sendRequestCompletedEvent(this.requestId,this.performanceData),this.requestId=void 0),this.setTimerHandle(void 0),this.setImmediateId(void 0),this.performanceData=void 0}immediate(e,n){const t=this.requestId;dt.assert(t===this.operationHost.getCurrentRequestId(),"immediate: incorrect request id"),this.setImmediateId(this.operationHost.getServerHost().setImmediate(()=>{this.immediateId=void 0,this.operationHost.executeWithRequestId(t,()=>this.executeAction(n),this.performanceData)},e))}delay(e,n,t){const r=this.requestId;dt.assert(r===this.operationHost.getCurrentRequestId(),"delay: incorrect request id"),this.setTimerHandle(this.operationHost.getServerHost().setTimeout(()=>{this.timerHandle=void 0,this.operationHost.executeWithRequestId(r,()=>this.executeAction(t),this.performanceData)},n,e))}executeAction(e){var n,t,r,o,i,a;let s=!1;try{this.operationHost.isCancellationRequested()?(s=!0,null==(n=Kt)||n.instant(Kt.Phase.Session,"stepCanceled",{seq:this.requestId,early:!0})):(null==(t=Kt)||t.push(Kt.Phase.Session,"stepAction",{seq:this.requestId}),e(this),null==(r=Kt)||r.pop())}catch(bi){null==(o=Kt)||o.popAll(),s=!0,bi instanceof Ar?null==(i=Kt)||i.instant(Kt.Phase.Session,"stepCanceled",{seq:this.requestId}):(null==(a=Kt)||a.instant(Kt.Phase.Session,"stepError",{seq:this.requestId,message:bi.message}),this.operationHost.logError(bi,`delayed processing of request ${this.requestId}`))}this.performanceData=this.operationHost.getPerformanceData(),!s&&this.hasPendingWork()||this.complete()}setTimerHandle(e){void 0!==this.timerHandle&&this.operationHost.getServerHost().clearTimeout(this.timerHandle),this.timerHandle=e}setImmediateId(e){void 0!==this.immediateId&&this.operationHost.getServerHost().clearImmediate(this.immediateId),this.immediateId=e}hasPendingWork(){return!!this.timerHandle||!!this.immediateId}};function uge(e,n){return{seq:0,type:"event",event:e,body:n}}function pge(e){return Xe(({textSpan:e})=>e.start+100003*e.length,CQ(e))}function fge(e,n,t){const r=e.getLanguageService().getDefinitionAtPosition(n.fileName,n.pos,!1,t),o=r&&fe(r);return o&&!o.isLocal?{fileName:o.fileName,pos:o.textSpan.start}:void 0}function mge(e,n,t){for(const r of Ye(e)?e:e.projects)t(r,n);!Ye(e)&&e.symLinkedProjects&&e.symLinkedProjects.forEach((e,n)=>{for(const r of e)t(r,n)})}function hge(e,n,t,r,o,i,a){const s=new Map,l=Je();l.enqueue({project:n,location:t}),mge(e,t.fileName,(e,n)=>{const r={fileName:n,pos:t.pos};l.enqueue({project:e,location:r})});const c=n.projectService,d=n.getCancellationToken(),u=pn(()=>n.isSourceOfProjectReferenceRedirect(r.fileName)?r:n.getLanguageService().getSourceMapper().tryGetGeneratedPosition(r)),p=pn(()=>n.isSourceOfProjectReferenceRedirect(r.fileName)?r:n.getLanguageService().getSourceMapper().tryGetSourcePosition(r)),f=new Set;e:for(;!l.isEmpty();){for(;!l.isEmpty();){if(d.isCancellationRequested())break e;const{project:e,location:n}=l.dequeue();if(s.has(e))continue;if(yge(e,n))continue;if(B_e(e),!e.containsFile(rhe(n.fileName)))continue;const t=m(e,n);s.set(e,t??ehe),f.add(vge(e))}r&&(c.loadAncestorProjectTree(f),c.forEachEnabledProject(e=>{if(d.isCancellationRequested())return;if(s.has(e))return;const n=o(r,e,u,p);n&&l.enqueue({project:e,location:n})}))}return 1===s.size?_e(s.values()):s;function m(e,n){const t=i(e,n);if(!t||!a)return t;for(const r of t)a(r,n=>{const t=c.getOriginalLocationEnsuringConfiguredProject(e,n);if(!t)return;const r=c.getScriptInfo(t.fileName);for(const e of r.containingProjects)e.isOrphan()||s.has(e)||l.enqueue({project:e,location:t});const o=c.getSymlinkedProjects(r);o&&o.forEach((e,n)=>{for(const r of e)r.isOrphan()||s.has(r)||l.enqueue({project:r,location:{fileName:n,pos:t.pos}})})});return t}}function _ge(e,n){if(n.containsFile(rhe(e.fileName))&&!yge(n,e))return e}function gge(e,n,t,r){const o=_ge(e,n);if(o)return o;const i=t();if(i&&n.containsFile(rhe(i.fileName)))return i;const a=r();return a&&n.containsFile(rhe(a.fileName))?a:void 0}function yge(e,n){if(!n)return!1;const t=e.getLanguageService().getProgram();if(!t)return!1;const r=t.getSourceFile(n.fileName);return!!r&&r.resolvedPath!==r.path&&r.resolvedPath!==e.toPath(n.fileName)}function vge(e){return Khe(e)?e.canonicalConfigFilePath:e.getProjectName()}function bge({fileName:e,textSpan:n}){return{fileName:e,pos:n.start}}function Tge(e,n){return PQ(e,n.getSourceMapper(),e=>n.projectService.fileExists(e))}function Sge(e,n){return LQ(e,n.getSourceMapper(),e=>n.projectService.fileExists(e))}function Ege(e,n){return kQ(e,n.getSourceMapper(),e=>n.projectService.fileExists(e))}var Age=["openExternalProject","openExternalProjects","closeExternalProject","synchronizeProjectList","emit-output","compileOnSaveAffectedFileList","compileOnSaveEmitFile","compilerOptionsDiagnostics-full","encodedSemanticClassifications-full","semanticDiagnosticsSync","suggestionDiagnosticsSync","geterrForProject","reload","reloadProjects","getCodeFixes","getCodeFixes-full","getCombinedCodeFix","getCombinedCodeFix-full","applyCodeActionCommand","getSupportedCodeFixes","getApplicableRefactors","getMoveToRefactoringFileSuggestions","getEditsForRefactor","getEditsForRefactor-full","organizeImports","organizeImports-full","getEditsForFileRename","getEditsForFileRename-full","prepareCallHierarchy","provideCallHierarchyIncomingCalls","provideCallHierarchyOutgoingCalls","getPasteEdits","copilotRelated"],xge=[...Age,"definition","definition-full","definitionAndBoundSpan","definitionAndBoundSpan-full","typeDefinition","implementation","implementation-full","references","references-full","rename","renameLocations-full","rename-full","quickinfo","quickinfo-full","completionInfo","completions","completions-full","completionEntryDetails","completionEntryDetails-full","signatureHelp","signatureHelp-full","navto","navto-full","documentHighlights","documentHighlights-full","preparePasteEdits"],Rge=class e{constructor(e){this.changeSeq=0,this.regionDiagLineCountThreshold=500,this.handlers=new Map(Object.entries({status:()=>{const e={version:i};return this.requiredResponse(e)},openExternalProject:e=>(this.projectService.openExternalProject(e.arguments,!0),this.requiredResponse(!0)),openExternalProjects:e=>(this.projectService.openExternalProjects(e.arguments.projects),this.requiredResponse(!0)),closeExternalProject:e=>(this.projectService.closeExternalProject(e.arguments.projectFileName,!0),this.requiredResponse(!0)),synchronizeProjectList:e=>{const n=this.projectService.synchronizeProjectList(e.arguments.knownProjects,e.arguments.includeProjectReferenceRedirectInfo);if(!n.some(e=>e.projectErrors&&0!==e.projectErrors.length))return this.requiredResponse(n);const t=D(n,e=>e.projectErrors&&0!==e.projectErrors.length?{info:e.info,changes:e.changes,files:e.files,projectErrors:this.convertToDiagnosticsWithLinePosition(e.projectErrors,void 0)}:e);return this.requiredResponse(t)},updateOpen:e=>(this.changeSeq++,this.projectService.applyChangesInOpenFiles(e.arguments.openFiles&&C(e.arguments.openFiles,e=>({fileName:e.file,content:e.fileContent,scriptKind:e.scriptKindName,projectRootPath:e.projectRootPath})),e.arguments.changedFiles&&C(e.arguments.changedFiles,e=>({fileName:e.fileName,changes:W(de(e.textChanges),n=>{const t=dt.checkDefined(this.projectService.getScriptInfo(e.fileName)),r=t.lineOffsetToPosition(n.start.line,n.start.offset),o=t.lineOffsetToPosition(n.end.line,n.end.offset);return r>=0?{span:{start:r,length:o-r},newText:n.newText}:void 0})})),e.arguments.closedFiles),this.requiredResponse(!0)),applyChangedToOpenFiles:e=>(this.changeSeq++,this.projectService.applyChangesInOpenFiles(e.arguments.openFiles,e.arguments.changedFiles&&C(e.arguments.changedFiles,e=>({fileName:e.fileName,changes:de(e.changes)})),e.arguments.closedFiles),this.requiredResponse(!0)),exit:()=>(this.exit(),this.notRequired(void 0)),definition:e=>this.requiredResponse(this.getDefinition(e.arguments,!0)),"definition-full":e=>this.requiredResponse(this.getDefinition(e.arguments,!1)),definitionAndBoundSpan:e=>this.requiredResponse(this.getDefinitionAndBoundSpan(e.arguments,!0)),"definitionAndBoundSpan-full":e=>this.requiredResponse(this.getDefinitionAndBoundSpan(e.arguments,!1)),findSourceDefinition:e=>this.requiredResponse(this.findSourceDefinition(e.arguments)),"emit-output":e=>this.requiredResponse(this.getEmitOutput(e.arguments)),typeDefinition:e=>this.requiredResponse(this.getTypeDefinition(e.arguments)),implementation:e=>this.requiredResponse(this.getImplementation(e.arguments,!0)),"implementation-full":e=>this.requiredResponse(this.getImplementation(e.arguments,!1)),references:e=>this.requiredResponse(this.getReferences(e.arguments,!0)),"references-full":e=>this.requiredResponse(this.getReferences(e.arguments,!1)),rename:e=>this.requiredResponse(this.getRenameLocations(e.arguments,!0)),"renameLocations-full":e=>this.requiredResponse(this.getRenameLocations(e.arguments,!1)),"rename-full":e=>this.requiredResponse(this.getRenameInfo(e.arguments)),open:e=>(this.openClientFile(rhe(e.arguments.file),e.arguments.fileContent,b_e(e.arguments.scriptKindName),e.arguments.projectRootPath?rhe(e.arguments.projectRootPath):void 0),this.notRequired(e)),quickinfo:e=>this.requiredResponse(this.getQuickInfoWorker(e.arguments,!0)),"quickinfo-full":e=>this.requiredResponse(this.getQuickInfoWorker(e.arguments,!1)),getOutliningSpans:e=>this.requiredResponse(this.getOutliningSpans(e.arguments,!0)),outliningSpans:e=>this.requiredResponse(this.getOutliningSpans(e.arguments,!1)),todoComments:e=>this.requiredResponse(this.getTodoComments(e.arguments)),indentation:e=>this.requiredResponse(this.getIndentation(e.arguments)),nameOrDottedNameSpan:e=>this.requiredResponse(this.getNameOrDottedNameSpan(e.arguments)),breakpointStatement:e=>this.requiredResponse(this.getBreakpointStatement(e.arguments)),braceCompletion:e=>this.requiredResponse(this.isValidBraceCompletion(e.arguments)),docCommentTemplate:e=>this.requiredResponse(this.getDocCommentTemplate(e.arguments)),getSpanOfEnclosingComment:e=>this.requiredResponse(this.getSpanOfEnclosingComment(e.arguments)),fileReferences:e=>this.requiredResponse(this.getFileReferences(e.arguments,!0)),"fileReferences-full":e=>this.requiredResponse(this.getFileReferences(e.arguments,!1)),format:e=>this.requiredResponse(this.getFormattingEditsForRange(e.arguments)),formatonkey:e=>this.requiredResponse(this.getFormattingEditsAfterKeystroke(e.arguments)),"format-full":e=>this.requiredResponse(this.getFormattingEditsForDocumentFull(e.arguments)),"formatonkey-full":e=>this.requiredResponse(this.getFormattingEditsAfterKeystrokeFull(e.arguments)),"formatRange-full":e=>this.requiredResponse(this.getFormattingEditsForRangeFull(e.arguments)),completionInfo:e=>this.requiredResponse(this.getCompletions(e.arguments,"completionInfo")),completions:e=>this.requiredResponse(this.getCompletions(e.arguments,"completions")),"completions-full":e=>this.requiredResponse(this.getCompletions(e.arguments,"completions-full")),completionEntryDetails:e=>this.requiredResponse(this.getCompletionEntryDetails(e.arguments,!1)),"completionEntryDetails-full":e=>this.requiredResponse(this.getCompletionEntryDetails(e.arguments,!0)),compileOnSaveAffectedFileList:e=>this.requiredResponse(this.getCompileOnSaveAffectedFileList(e.arguments)),compileOnSaveEmitFile:e=>this.requiredResponse(this.emitFile(e.arguments)),signatureHelp:e=>this.requiredResponse(this.getSignatureHelpItems(e.arguments,!0)),"signatureHelp-full":e=>this.requiredResponse(this.getSignatureHelpItems(e.arguments,!1)),"compilerOptionsDiagnostics-full":e=>this.requiredResponse(this.getCompilerOptionsDiagnostics(e.arguments)),"encodedSyntacticClassifications-full":e=>this.requiredResponse(this.getEncodedSyntacticClassifications(e.arguments)),"encodedSemanticClassifications-full":e=>this.requiredResponse(this.getEncodedSemanticClassifications(e.arguments)),cleanup:()=>(this.cleanup(),this.requiredResponse(!0)),semanticDiagnosticsSync:e=>this.requiredResponse(this.getSemanticDiagnosticsSync(e.arguments)),syntacticDiagnosticsSync:e=>this.requiredResponse(this.getSyntacticDiagnosticsSync(e.arguments)),suggestionDiagnosticsSync:e=>this.requiredResponse(this.getSuggestionDiagnosticsSync(e.arguments)),geterr:e=>(this.errorCheck.startNew(n=>this.getDiagnostics(n,e.arguments.delay,e.arguments.files)),this.notRequired(void 0)),geterrForProject:e=>(this.errorCheck.startNew(n=>this.getDiagnosticsForProject(n,e.arguments.delay,e.arguments.file)),this.notRequired(void 0)),change:e=>(this.change(e.arguments),this.notRequired(e)),configure:e=>(this.projectService.setHostConfiguration(e.arguments),this.notRequired(e)),reload:e=>(this.reload(e.arguments),this.requiredResponse({reloadFinished:!0})),saveto:e=>{const n=e.arguments;return this.saveToTmp(n.file,n.tmpfile),this.notRequired(e)},close:e=>{const n=e.arguments;return this.closeClientFile(n.file),this.notRequired(e)},navto:e=>this.requiredResponse(this.getNavigateToItems(e.arguments,!0)),"navto-full":e=>this.requiredResponse(this.getNavigateToItems(e.arguments,!1)),brace:e=>this.requiredResponse(this.getBraceMatching(e.arguments,!0)),"brace-full":e=>this.requiredResponse(this.getBraceMatching(e.arguments,!1)),navbar:e=>this.requiredResponse(this.getNavigationBarItems(e.arguments,!0)),"navbar-full":e=>this.requiredResponse(this.getNavigationBarItems(e.arguments,!1)),navtree:e=>this.requiredResponse(this.getNavigationTree(e.arguments,!0)),"navtree-full":e=>this.requiredResponse(this.getNavigationTree(e.arguments,!1)),documentHighlights:e=>this.requiredResponse(this.getDocumentHighlights(e.arguments,!0)),"documentHighlights-full":e=>this.requiredResponse(this.getDocumentHighlights(e.arguments,!1)),compilerOptionsForInferredProjects:e=>(this.setCompilerOptionsForInferredProjects(e.arguments),this.requiredResponse(!0)),projectInfo:e=>this.requiredResponse(this.getProjectInfo(e.arguments)),reloadProjects:e=>(this.projectService.reloadProjects(),this.notRequired(e)),jsxClosingTag:e=>this.requiredResponse(this.getJsxClosingTag(e.arguments)),linkedEditingRange:e=>this.requiredResponse(this.getLinkedEditingRange(e.arguments)),getCodeFixes:e=>this.requiredResponse(this.getCodeFixes(e.arguments,!0)),"getCodeFixes-full":e=>this.requiredResponse(this.getCodeFixes(e.arguments,!1)),getCombinedCodeFix:e=>this.requiredResponse(this.getCombinedCodeFix(e.arguments,!0)),"getCombinedCodeFix-full":e=>this.requiredResponse(this.getCombinedCodeFix(e.arguments,!1)),applyCodeActionCommand:e=>this.requiredResponse(this.applyCodeActionCommand(e.arguments)),getSupportedCodeFixes:e=>this.requiredResponse(this.getSupportedCodeFixes(e.arguments)),getApplicableRefactors:e=>this.requiredResponse(this.getApplicableRefactors(e.arguments)),getEditsForRefactor:e=>this.requiredResponse(this.getEditsForRefactor(e.arguments,!0)),getMoveToRefactoringFileSuggestions:e=>this.requiredResponse(this.getMoveToRefactoringFileSuggestions(e.arguments)),preparePasteEdits:e=>this.requiredResponse(this.preparePasteEdits(e.arguments)),getPasteEdits:e=>this.requiredResponse(this.getPasteEdits(e.arguments)),"getEditsForRefactor-full":e=>this.requiredResponse(this.getEditsForRefactor(e.arguments,!1)),organizeImports:e=>this.requiredResponse(this.organizeImports(e.arguments,!0)),"organizeImports-full":e=>this.requiredResponse(this.organizeImports(e.arguments,!1)),getEditsForFileRename:e=>this.requiredResponse(this.getEditsForFileRename(e.arguments,!0)),"getEditsForFileRename-full":e=>this.requiredResponse(this.getEditsForFileRename(e.arguments,!1)),configurePlugin:e=>(this.configurePlugin(e.arguments),this.notRequired(e)),selectionRange:e=>this.requiredResponse(this.getSmartSelectionRange(e.arguments,!0)),"selectionRange-full":e=>this.requiredResponse(this.getSmartSelectionRange(e.arguments,!1)),prepareCallHierarchy:e=>this.requiredResponse(this.prepareCallHierarchy(e.arguments)),provideCallHierarchyIncomingCalls:e=>this.requiredResponse(this.provideCallHierarchyIncomingCalls(e.arguments)),provideCallHierarchyOutgoingCalls:e=>this.requiredResponse(this.provideCallHierarchyOutgoingCalls(e.arguments)),toggleLineComment:e=>this.requiredResponse(this.toggleLineComment(e.arguments,!0)),"toggleLineComment-full":e=>this.requiredResponse(this.toggleLineComment(e.arguments,!1)),toggleMultilineComment:e=>this.requiredResponse(this.toggleMultilineComment(e.arguments,!0)),"toggleMultilineComment-full":e=>this.requiredResponse(this.toggleMultilineComment(e.arguments,!1)),commentSelection:e=>this.requiredResponse(this.commentSelection(e.arguments,!0)),"commentSelection-full":e=>this.requiredResponse(this.commentSelection(e.arguments,!1)),uncommentSelection:e=>this.requiredResponse(this.uncommentSelection(e.arguments,!0)),"uncommentSelection-full":e=>this.requiredResponse(this.uncommentSelection(e.arguments,!1)),provideInlayHints:e=>this.requiredResponse(this.provideInlayHints(e.arguments)),mapCode:e=>this.requiredResponse(this.mapCode(e.arguments)),copilotRelated:()=>this.requiredResponse(this.getCopilotRelatedInfo())})),this.host=e.host,this.cancellationToken=e.cancellationToken,this.typingsInstaller=e.typingsInstaller||x_e,this.byteLength=e.byteLength,this.hrtime=e.hrtime,this.logger=e.logger,this.canUseEvents=e.canUseEvents,this.suppressDiagnosticEvents=e.suppressDiagnosticEvents,this.noGetErrOnBackgroundUpdate=e.noGetErrOnBackgroundUpdate;const{throttleWaitMilliseconds:n}=e;this.eventHandler=this.canUseEvents?e.eventHandler||(e=>this.defaultEventHandler(e)):void 0;const t={executeWithRequestId:(e,n,t)=>this.executeWithRequestId(e,n,t),getCurrentRequestId:()=>this.currentRequestId,getPerformanceData:()=>this.performanceData,getServerHost:()=>this.host,logError:(e,n)=>this.logError(e,n),sendRequestCompletedEvent:(e,n)=>this.sendRequestCompletedEvent(e,n),isCancellationRequested:()=>this.cancellationToken.isCancellationRequested()};this.errorCheck=new dge(t);const r={host:this.host,logger:this.logger,cancellationToken:this.cancellationToken,useSingleInferredProject:e.useSingleInferredProject,useInferredProjectPerProjectRoot:e.useInferredProjectPerProjectRoot,typingsInstaller:this.typingsInstaller,throttleWaitMilliseconds:n,eventHandler:this.eventHandler,suppressDiagnosticEvents:this.suppressDiagnosticEvents,globalPlugins:e.globalPlugins,pluginProbeLocations:e.pluginProbeLocations,allowLocalPluginLoads:e.allowLocalPluginLoads,typesMapLocation:e.typesMapLocation,serverMode:e.serverMode,session:this,canUseWatchEvents:e.canUseWatchEvents,incrementalVerifier:e.incrementalVerifier};switch(this.projectService=new $_e(r),this.projectService.setPerformanceEventHandler(this.performanceEventHandler.bind(this)),this.gcTimer=new fhe(this.host,7e3,this.logger),this.projectService.serverMode){case 0:break;case 1:Age.forEach(e=>this.handlers.set(e,e=>{throw new Error(`Request: ${e.command} not allowed in LanguageServiceMode.PartialSemantic`)}));break;case 2:xge.forEach(e=>this.handlers.set(e,e=>{throw new Error(`Request: ${e.command} not allowed in LanguageServiceMode.Syntactic`)}));break;default:dt.assertNever(this.projectService.serverMode)}}sendRequestCompletedEvent(e,n){this.event({request_seq:e,performanceData:n&&Ige(n)},"requestCompleted")}addPerformanceData(e,n){this.performanceData||(this.performanceData={}),this.performanceData[e]=(this.performanceData[e]??0)+n}addDiagnosticsPerformanceData(e,n,t){var r,o;this.performanceData||(this.performanceData={});let i=null==(r=this.performanceData.diagnosticsDuration)?void 0:r.get(e);i||((o=this.performanceData).diagnosticsDuration??(o.diagnosticsDuration=new Map)).set(e,i={}),i[n]=t}performanceEventHandler(e){switch(e.kind){case"UpdateGraph":this.addPerformanceData("updateGraphDurationMs",e.durationMs);break;case"CreatePackageJsonAutoImportProvider":this.addPerformanceData("createAutoImportProviderProgramDurationMs",e.durationMs)}}defaultEventHandler(e){switch(e.eventName){case Qhe:this.projectsUpdatedInBackgroundEvent(e.data.openFiles);break;case Zhe:this.event({projectName:e.data.project.getProjectName(),reason:e.data.reason},e.eventName);break;case e_e:this.event({projectName:e.data.project.getProjectName()},e.eventName);break;case n_e:case a_e:case s_e:case l_e:this.event(e.data,e.eventName);break;case t_e:this.event({triggerFile:e.data.triggerFile,configFile:e.data.configFileName,diagnostics:D(e.data.diagnostics,e=>sge(e,!0))},e.eventName);break;case r_e:this.event({projectName:e.data.project.getProjectName(),languageServiceEnabled:e.data.languageServiceEnabled},e.eventName);break;case o_e:{const n="telemetry";this.event({telemetryEventName:e.eventName,payload:e.data},n);break}}}projectsUpdatedInBackgroundEvent(e){this.projectService.logger.info(`got projects updated in background ${e}`),e.length&&(this.suppressDiagnosticEvents||this.noGetErrOnBackgroundUpdate||(this.projectService.logger.info(`Queueing diagnostics update for ${e}`),this.errorCheck.startNew(n=>this.updateErrorCheck(n,e,100,!0))),this.event({openFiles:e},Qhe))}logError(e,n){this.logErrorWorker(e,n)}logErrorWorker(e,n,t){let r="Exception on executing command "+n;if(e.message&&(r+=":\n"+yX(e.message),e.stack&&(r+="\n"+yX(e.stack))),this.logger.hasLevel(3)){if(t)try{const{file:e,project:n}=this.getFileAndProject(t),o=n.getScriptInfoForNormalizedPath(e);if(o){const e=nQ(o.getSnapshot());r+=`\n\nFile text of ${t.file}:${yX(e)}\n`}}catch{}if(e.ProgramFiles){r+=`\n\nProgram files: ${JSON.stringify(e.ProgramFiles)}\n`,r+="\n\nProjects::\n";let n=0;const t=e=>{r+=`\nProject '${e.projectName}' (${Mhe[e.projectKind]}) ${n}\n`,r+=e.filesToString(!0),r+="\n-----------------------------------------------\n",n++};this.projectService.externalProjects.forEach(t),this.projectService.configuredProjects.forEach(t),this.projectService.inferredProjects.forEach(t)}}this.logger.msg(r,"Err")}send(e){"event"!==e.type||this.canUseEvents?this.writeMessage(e):this.logger.hasLevel(3)&&this.logger.info(`Session does not support events: ignored event: ${vX(e)}`)}writeMessage(e){const n=cge(e,this.logger,this.byteLength,this.host.newLine);this.host.write(n)}event(e,n){this.send(uge(n,e))}doOutput(e,n,t,r,o,i){const a={seq:0,type:"response",command:n,request_seq:t,success:r,performanceData:o&&Ige(o)};if(r){let n;if(Ye(e))a.body=e,n=e.metadata,delete e.metadata;else if("object"==typeof e)if(e.metadata){const{metadata:t,...r}=e;a.body=r,n=t}else a.body=e;else a.body=e;n&&(a.metadata=n)}else dt.assert(void 0===e);i&&(a.message=i),this.send(a)}semanticCheck(e,n){var t,r;const o=Vt();null==(t=Kt)||t.push(Kt.Phase.Session,"semanticCheck",{file:e,configFilePath:n.canonicalConfigFilePath});const i=rge(n,e)?ehe:n.getLanguageService().getSemanticDiagnostics(e).filter(e=>!!e.file);this.sendDiagnosticsEvent(e,n,i,"semanticDiag",o),null==(r=Kt)||r.pop()}syntacticCheck(e,n){var t,r;const o=Vt();null==(t=Kt)||t.push(Kt.Phase.Session,"syntacticCheck",{file:e,configFilePath:n.canonicalConfigFilePath}),this.sendDiagnosticsEvent(e,n,n.getLanguageService().getSyntacticDiagnostics(e),"syntaxDiag",o),null==(r=Kt)||r.pop()}suggestionCheck(e,n){var t,r;const o=Vt();null==(t=Kt)||t.push(Kt.Phase.Session,"suggestionCheck",{file:e,configFilePath:n.canonicalConfigFilePath}),this.sendDiagnosticsEvent(e,n,n.getLanguageService().getSuggestionDiagnostics(e),"suggestionDiag",o),null==(r=Kt)||r.pop()}regionSemanticCheck(e,n,t){var r,o,i;const a=Vt();let s;null==(r=Kt)||r.push(Kt.Phase.Session,"regionSemanticCheck",{file:e,configFilePath:n.canonicalConfigFilePath}),this.shouldDoRegionCheck(e)&&(s=n.getLanguageService().getRegionSemanticDiagnostics(e,t))?(this.sendDiagnosticsEvent(e,n,s.diagnostics,"regionSemanticDiag",a,s.spans),null==(i=Kt)||i.pop()):null==(o=Kt)||o.pop()}shouldDoRegionCheck(e){var n;const t=null==(n=this.projectService.getScriptInfoForNormalizedPath(e))?void 0:n.textStorage.getLineInfo().getLineCount();return!!(t&&t>=this.regionDiagLineCountThreshold)}sendDiagnosticsEvent(e,n,t,r,o,i){try{const a=dt.checkDefined(n.getScriptInfo(e)),s=Vt()-o,l={file:e,diagnostics:t.map(t=>oge(e,n,t)),spans:null==i?void 0:i.map(e=>Dge(e,a))};this.event(l,r),this.addDiagnosticsPerformanceData(e,r,s)}catch(a){this.logError(a,r)}}updateErrorCheck(e,n,t,r=!0){if(0===n.length)return;dt.assert(!this.suppressDiagnosticEvents);const o=this.changeSeq,i=Math.min(t,200);let a=0;const s=()=>{if(a++,n.length>a)return e.delay("checkOne",i,c)},l=(n,t)=>{if(this.semanticCheck(n,t),this.changeSeq===o)return this.getPreferences(n).disableSuggestions?s():void e.immediate("suggestionCheck",()=>{this.suggestionCheck(n,t),s()})},c=()=>{if(this.changeSeq!==o)return;let t,i=n[a];if(Qe(i)?i=this.toPendingErrorCheck(i):"ranges"in i&&(t=i.ranges,i=this.toPendingErrorCheck(i.file)),!i)return s();const{fileName:c,project:d}=i;return B_e(d),d.containsFile(c,r)&&(this.syntacticCheck(c,d),this.changeSeq===o)?0!==d.projectService.serverMode?s():t?e.immediate("regionSemanticCheck",()=>{const n=this.projectService.getScriptInfoForNormalizedPath(c);n&&this.regionSemanticCheck(c,d,t.map(e=>this.getRange({file:c,...e},n))),this.changeSeq===o&&e.immediate("semanticCheck",()=>l(c,d))}):void e.immediate("semanticCheck",()=>l(c,d)):void 0};n.length>a&&this.changeSeq===o&&e.delay("checkOne",t,c)}cleanProjects(e,n){if(n){this.logger.info(`cleaning ${e}`);for(const e of n)e.getLanguageService(!1).cleanupSemanticCache(),e.cleanupProgram()}}cleanup(){this.cleanProjects("inferred projects",this.projectService.inferredProjects),this.cleanProjects("configured projects",Le(this.projectService.configuredProjects.values())),this.cleanProjects("external projects",this.projectService.externalProjects),this.host.gc&&(this.logger.info("host.gc()"),this.host.gc())}getEncodedSyntacticClassifications(e){const{file:n,languageService:t}=this.getFileAndLanguageServiceForSyntacticOperation(e);return t.getEncodedSyntacticClassifications(n,e)}getEncodedSemanticClassifications(e){const{file:n,project:t}=this.getFileAndProject(e),r="2020"===e.format?"2020":"original";return t.getLanguageService().getEncodedSemanticClassifications(n,e,r)}getProject(e){return void 0===e?void 0:this.projectService.findProject(e)}getConfigFileAndProject(e){const n=this.getProject(e.projectFileName),t=rhe(e.file);return{configFile:n&&n.hasConfigFile(t)?t:void 0,project:n}}getConfigFileDiagnostics(e,n,t){const r=x(K(n.getAllProjectErrors(),n.getLanguageService().getCompilerOptionsDiagnostics()),n=>!!n.file&&n.file.fileName===e);return t?this.convertToDiagnosticsWithLinePositionFromDiagnosticFile(r):D(r,e=>sge(e,!1))}convertToDiagnosticsWithLinePositionFromDiagnosticFile(e){return e.map(e=>({message:gU(e.messageText,this.host.newLine),start:e.start,length:e.length,category:so(e),code:e.code,source:e.source,startLocation:e.file&&age(Ua(e.file,e.start)),endLocation:e.file&&age(Ua(e.file,e.start+e.length)),reportsUnnecessary:e.reportsUnnecessary,reportsDeprecated:e.reportsDeprecated,relatedInformation:D(e.relatedInformation,ige)}))}getCompilerOptionsDiagnostics(e){const n=this.getProject(e.projectFileName);return this.convertToDiagnosticsWithLinePosition(x(n.getLanguageService().getCompilerOptionsDiagnostics(),e=>!e.file),void 0)}convertToDiagnosticsWithLinePosition(e,n){return e.map(e=>({message:gU(e.messageText,this.host.newLine),start:e.start,length:e.length,category:so(e),code:e.code,source:e.source,startLocation:n&&n.positionToLineOffset(e.start),endLocation:n&&n.positionToLineOffset(e.start+e.length),reportsUnnecessary:e.reportsUnnecessary,reportsDeprecated:e.reportsDeprecated,relatedInformation:D(e.relatedInformation,ige)}))}getDiagnosticsWorker(e,n,t,r){const{project:o,file:i}=this.getFileAndProject(e);if(n&&rge(o,i))return ehe;const a=o.getScriptInfoForNormalizedPath(i),s=t(o,i);return r?this.convertToDiagnosticsWithLinePosition(s,a):s.map(e=>oge(i,o,e))}getDefinition(n,t){const{file:r,project:o}=this.getFileAndProject(n),i=this.getPositionInFile(n,r),a=this.mapDefinitionInfoLocations(o.getLanguageService().getDefinitionAtPosition(r,i)||ehe,o);return t?this.mapDefinitionInfo(a,o):a.map(e.mapToOriginalLocation)}mapDefinitionInfoLocations(e,n){return e.map(e=>{const t=Sge(e,n);return t?{...t,containerKind:e.containerKind,containerName:e.containerName,kind:e.kind,name:e.name,failedAliasResolution:e.failedAliasResolution,...e.unverified&&{unverified:e.unverified}}:e})}getDefinitionAndBoundSpan(n,t){const{file:r,project:o}=this.getFileAndProject(n),i=this.getPositionInFile(n,r),a=dt.checkDefined(o.getScriptInfo(r)),s=o.getLanguageService().getDefinitionAndBoundSpan(r,i);if(!s||!s.definitions)return{definitions:ehe,textSpan:void 0};const l=this.mapDefinitionInfoLocations(s.definitions,o),{textSpan:c}=s;return t?{definitions:this.mapDefinitionInfo(l,o),textSpan:Dge(c,a)}:{definitions:l.map(e.mapToOriginalLocation),textSpan:c}}findSourceDefinition(e){var n;const{file:t,project:r}=this.getFileAndProject(e),o=this.getPositionInFile(e,t),i=r.getLanguageService().getDefinitionAtPosition(t,o);let a=this.mapDefinitionInfoLocations(i||ehe,r).slice();if(0===this.projectService.serverMode&&(!U(a,e=>rhe(e.fileName)!==t&&!e.isAmbient)||U(a,e=>!!e.failedAliasResolution))){const e=Xe(e=>e.textSpan.start,CQ(this.host.useCaseSensitiveFileNames));null==a||a.forEach(n=>e.add(n));const i=r.getNoDtsResolutionProject(t),d=i.getLanguageService(),u=null==(n=d.getDefinitionAtPosition(t,o,!0,!1))?void 0:n.filter(e=>rhe(e.fileName)!==t);if(U(u))for(const n of u){if(n.unverified){const t=l(n,r.getLanguageService().getProgram(),d.getProgram());if(U(t)){for(const n of t)e.add(n);continue}}e.add(n)}else{const n=a.filter(e=>rhe(e.fileName)!==t&&e.isAmbient);for(const a of U(n)?n:function(){const e=r.getLanguageService(),n=e.getProgram(),i=i$(n.getSourceFile(t),o);if((zu(i)||dD(i))&&IT(i.parent))return MT(i,n=>{var r;if(n===i)return;const o=null==(r=e.getDefinitionAtPosition(t,n.getStart(),!0,!1))?void 0:r.filter(e=>rhe(e.fileName)!==t&&e.isAmbient).map(e=>({fileName:e.fileName,name:Hg(i)}));return U(o)?o:void 0})||ehe;return ehe}()){const n=s(a.fileName,t,i);if(!n)continue;const r=this.projectService.getOrCreateScriptInfoNotOpenedByClient(n,i.currentDirectory,i.directoryStructureHost,!1);if(!r)continue;i.containsScriptInfo(r)||(i.addRoot(r),i.updateGraph());const o=d.getProgram(),l=dt.checkDefined(o.getSourceFile(n));for(const t of c(a.name,l,o))e.add(t)}}a=Le(e.values())}return a=a.filter(e=>!e.isAmbient&&!e.failedAliasResolution),this.mapDefinitionInfo(a,r);function s(e,n,t){var o,i,a;const s=qA(e);if(s&&e.lastIndexOf(oW)===s.topLevelNodeModulesIndex){const l=e.substring(0,s.packageRootIndex),c=null==(o=r.getModuleResolutionCache())?void 0:o.getPackageJsonInfoCache(),d=r.getCompilationSettings(),u=vW(Vi(l,r.getCurrentDirectory()),yW(c,r,d));if(!u)return;const p=_W(u,{moduleResolution:2},r,r.getModuleResolutionCache()),f=VW(jW(e.substring(s.topLevelPackageNameIndex+1,s.packageRootIndex))),m=r.toPath(e);if(p&&U(p,e=>r.toPath(e)===m))return null==(i=t.resolutionCache.resolveSingleModuleNameWithoutWatching(f,n).resolvedModule)?void 0:i.resolvedFileName;{const r=`${f}/${qE(e.substring(s.packageRootIndex+1))}`;return null==(a=t.resolutionCache.resolveSingleModuleNameWithoutWatching(r,n).resolvedModule)?void 0:a.resolvedFileName}}}function l(e,n,r){var i;const a=r.getSourceFile(e.fileName);if(!a)return;const s=i$(n.getSourceFile(t),o),l=n.getTypeChecker().getSymbolAtLocation(s),d=l&&Yu(l,277);if(!d)return;return c((null==(i=d.propertyName)?void 0:i.text)||d.name.text,a,r)}function c(e,n,t){return F(kle.Core.getTopMostDeclarationNamesInFile(e,n),e=>{const n=t.getTypeChecker().getSymbolAtLocation(e),r=fg(e);if(n&&r)return Tce.createDefinitionInfo(r,t.getTypeChecker(),n,r,!0)})}}getEmitOutput(e){const{file:n,project:t}=this.getFileAndProject(e);if(!t.shouldEmitFile(t.getScriptInfo(n)))return{emitSkipped:!0,outputFiles:[],diagnostics:[]};const r=t.getLanguageService().getEmitOutput(n);return e.richResponse?{...r,diagnostics:e.includeLinePosition?this.convertToDiagnosticsWithLinePositionFromDiagnosticFile(r.diagnostics):r.diagnostics.map(e=>sge(e,!0))}:r}mapJSDocTagInfo(e,n,t){return e?e.map(e=>{var r;return{...e,text:t?this.mapDisplayParts(e.text,n):null==(r=e.text)?void 0:r.map(e=>e.text).join("")}}):[]}mapDisplayParts(e,n){return e?e.map(e=>"linkName"!==e.kind?e:{...e,target:this.toFileSpan(e.target.fileName,e.target.textSpan,n)}):[]}mapSignatureHelpItems(e,n,t){return e.map(e=>({...e,documentation:this.mapDisplayParts(e.documentation,n),parameters:e.parameters.map(e=>({...e,documentation:this.mapDisplayParts(e.documentation,n)})),tags:this.mapJSDocTagInfo(e.tags,n,t)}))}mapDefinitionInfo(e,n){return e.map(e=>({...this.toFileSpanWithContext(e.fileName,e.textSpan,e.contextSpan,n),...e.unverified&&{unverified:e.unverified}}))}static mapToOriginalLocation(e){return e.originalFileName?(dt.assert(void 0!==e.originalTextSpan,"originalTextSpan should be present if originalFileName is"),{...e,fileName:e.originalFileName,textSpan:e.originalTextSpan,targetFileName:e.fileName,targetTextSpan:e.textSpan,contextSpan:e.originalContextSpan,targetContextSpan:e.contextSpan}):e}toFileSpan(e,n,t){const r=t.getLanguageService(),o=r.toLineColumnOffset(e,n.start),i=r.toLineColumnOffset(e,Ps(n));return{file:e,start:{line:o.line+1,offset:o.character+1},end:{line:i.line+1,offset:i.character+1}}}toFileSpanWithContext(e,n,t,r){const o=this.toFileSpan(e,n,r),i=t&&this.toFileSpan(e,t,r);return i?{...o,contextStart:i.start,contextEnd:i.end}:o}getTypeDefinition(e){const{file:n,project:t}=this.getFileAndProject(e),r=this.getPositionInFile(e,n),o=this.mapDefinitionInfoLocations(t.getLanguageService().getTypeDefinitionAtPosition(n,r)||ehe,t);return this.mapDefinitionInfo(o,t)}mapImplementationLocations(e,n){return e.map(e=>{const t=Sge(e,n);return t?{...t,kind:e.kind,displayParts:e.displayParts}:e})}getImplementation(n,t){const{file:r,project:o}=this.getFileAndProject(n),i=this.getPositionInFile(n,r),a=this.mapImplementationLocations(o.getLanguageService().getImplementationAtPosition(r,i)||ehe,o);return t?a.map(({fileName:e,textSpan:n,contextSpan:t})=>this.toFileSpanWithContext(e,n,t,o)):a.map(e.mapToOriginalLocation)}getSyntacticDiagnosticsSync(e){const{configFile:n}=this.getConfigFileAndProject(e);return n?ehe:this.getDiagnosticsWorker(e,!1,(e,n)=>e.getLanguageService().getSyntacticDiagnostics(n),!!e.includeLinePosition)}getSemanticDiagnosticsSync(e){const{configFile:n,project:t}=this.getConfigFileAndProject(e);return n?this.getConfigFileDiagnostics(n,t,!!e.includeLinePosition):this.getDiagnosticsWorker(e,!0,(e,n)=>e.getLanguageService().getSemanticDiagnostics(n).filter(e=>!!e.file),!!e.includeLinePosition)}getSuggestionDiagnosticsSync(e){const{configFile:n}=this.getConfigFileAndProject(e);return n?ehe:this.getDiagnosticsWorker(e,!0,(e,n)=>e.getLanguageService().getSuggestionDiagnostics(n),!!e.includeLinePosition)}getJsxClosingTag(e){const{file:n,languageService:t}=this.getFileAndLanguageServiceForSyntacticOperation(e),r=this.getPositionInFile(e,n),o=t.getJsxClosingTagAtPosition(n,r);return void 0===o?void 0:{newText:o.newText,caretOffset:0}}getLinkedEditingRange(e){const{file:n,languageService:t}=this.getFileAndLanguageServiceForSyntacticOperation(e),r=this.getPositionInFile(e,n),o=t.getLinkedEditingRangeAtPosition(n,r),i=this.projectService.getScriptInfoForNormalizedPath(n);if(void 0!==i&&void 0!==o)return function(e,n){const t=e.ranges.map(e=>({start:n.positionToLineOffset(e.start),end:n.positionToLineOffset(e.start+e.length)}));return e.wordPattern?{ranges:t,wordPattern:e.wordPattern}:{ranges:t}}(o,i)}getDocumentHighlights(e,n){const{file:t,project:r}=this.getFileAndProject(e),o=this.getPositionInFile(e,t),i=r.getLanguageService().getDocumentHighlights(t,o,e.filesToSearch);return i?n?i.map(({fileName:e,highlightSpans:n})=>{const t=r.getScriptInfo(e);return{file:e,highlightSpans:n.map(({textSpan:e,kind:n,contextSpan:r})=>({...Cge(e,r,t),kind:n}))}}):i:ehe}provideInlayHints(e){const{file:n,project:t}=this.getFileAndProject(e),r=this.projectService.getScriptInfoForNormalizedPath(n);return t.getLanguageService().provideInlayHints(n,e,this.getPreferences(n)).map(e=>{const{position:n,displayParts:t}=e;return{...e,position:r.positionToLineOffset(n),displayParts:null==t?void 0:t.map(({text:e,span:n,file:t})=>{if(n){dt.assertIsDefined(t,"Target file should be defined together with its span.");const r=this.projectService.getScriptInfo(t);return{text:e,span:{start:r.positionToLineOffset(n.start),end:r.positionToLineOffset(n.start+n.length),file:t}}}return{text:e}})}})}mapCode(e){var n;const t=this.getHostFormatOptions(),r=this.getHostPreferences(),{file:o,languageService:i}=this.getFileAndLanguageServiceForSyntacticOperation(e),a=this.projectService.getScriptInfoForNormalizedPath(o),s=null==(n=e.mapping.focusLocations)?void 0:n.map(e=>e.map(e=>{const n=a.lineOffsetToPosition(e.start.line,e.start.offset);return{start:n,length:a.lineOffsetToPosition(e.end.line,e.end.offset)-n}})),l=i.mapCode(o,e.mapping.contents,s,t,r);return this.mapTextChangesToCodeEdits(l)}getCopilotRelatedInfo(){return{relatedFiles:[]}}setCompilerOptionsForInferredProjects(e){this.projectService.setCompilerOptionsForInferredProjects(e.options,e.projectRootPath)}getProjectInfo(e){return this.getProjectInfoWorker(e.file,e.projectFileName,e.needFileNameList,e.needDefaultConfiguredProjectInfo,!1)}getProjectInfoWorker(e,n,t,r,o){const{project:i}=this.getFileAndProjectWorker(e,n);B_e(i);return{configFileName:i.getProjectName(),languageServiceDisabled:!i.languageServiceEnabled,fileNames:t?i.getFileNames(!1,o):void 0,configuredProjectInfo:r?this.getDefaultConfiguredProjectInfo(e):void 0}}getDefaultConfiguredProjectInfo(e){var n;const t=this.projectService.getScriptInfo(e);if(!t)return;const r=this.projectService.findDefaultConfiguredProjectWorker(t,3);if(!r)return;let o,i;return r.seenProjects.forEach((e,n)=>{n!==r.defaultProject&&(3!==e?(o??(o=[])).push(rhe(n.getConfigFilePath())):(i??(i=[])).push(rhe(n.getConfigFilePath())))}),null==(n=r.seenConfigs)||n.forEach(e=>(o??(o=[])).push(e)),{notMatchedByConfig:o,notInProject:i,defaultProject:r.defaultProject&&rhe(r.defaultProject.getConfigFilePath())}}getRenameInfo(e){const{file:n,project:t}=this.getFileAndProject(e),r=this.getPositionInFile(e,n),o=this.getPreferences(n);return t.getLanguageService().getRenameInfo(n,r,o)}getProjects(e,n,t){let r,o;if(e.projectFileName){const n=this.getProject(e.projectFileName);n&&(r=[n])}else{const i=n?this.projectService.getScriptInfoEnsuringProjectsUptoDate(e.file):this.projectService.getScriptInfo(e.file);if(!i)return t?ehe:(this.projectService.logErrorForScriptInfoNotFound(e.file),$me.ThrowNoProject());n||this.projectService.ensureDefaultProjectForFile(i),r=i.containingProjects,o=this.projectService.getSymlinkedProjects(i)}return r=x(r,e=>e.languageServiceEnabled&&!e.isOrphan()),t||r&&r.length||o?o?{projects:r,symLinkedProjects:o}:r:(this.projectService.logErrorForScriptInfoNotFound(e.file??e.projectFileName),$me.ThrowNoProject())}getDefaultProject(e){if(e.projectFileName){const n=this.getProject(e.projectFileName);if(n)return n;if(!e.file)return $me.ThrowNoProject()}return this.projectService.getScriptInfo(e.file).getDefaultProject()}getRenameLocations(e,n){const t=rhe(e.file),r=this.getPositionInFile(e,t),o=this.getProjects(e),i=this.getDefaultProject(e),a=this.getPreferences(t),s=this.mapRenameInfo(i.getLanguageService().getRenameInfo(t,r,a),dt.checkDefined(this.projectService.getScriptInfo(t)));if(!s.canRename)return n?{info:s,locs:[]}:[];const l=function(e,n,t,r,o,i,a){const s=hge(e,n,t,fge(n,t,!0),gge,(e,n)=>e.getLanguageService().findRenameLocations(n.fileName,n.pos,r,o,i),(e,n)=>n(bge(e)));if(Ye(s))return s;const l=[],c=pge(a);return s.forEach((e,n)=>{for(const t of e)c.has(t)||Tge(bge(t),n)||(l.push(t),c.add(t))}),l}(o,i,{fileName:e.file,pos:r},!!e.findInStrings,!!e.findInComments,a,this.host.useCaseSensitiveFileNames);return n?{info:s,locs:this.toSpanGroups(l)}:l}mapRenameInfo(e,n){if(e.canRename){const{canRename:t,fileToRename:r,displayName:o,fullDisplayName:i,kind:a,kindModifiers:s,triggerSpan:l}=e;return{canRename:t,fileToRename:r,displayName:o,fullDisplayName:i,kind:a,kindModifiers:s,triggerSpan:Dge(l,n)}}return e}toSpanGroups(e){const n=new Map;for(const{fileName:t,textSpan:r,contextSpan:o,originalContextSpan:i,originalTextSpan:a,originalFileName:s,...l}of e){let e=n.get(t);e||n.set(t,e={file:t,locs:[]});const i=dt.checkDefined(this.projectService.getScriptInfo(t));e.locs.push({...Cge(r,o,i),...l})}return Le(n.values())}getReferences(e,n){const t=rhe(e.file),r=this.getProjects(e),o=this.getPositionInFile(e,t),i=function(e,n,t,r,o){var i,a;const s=hge(e,n,t,fge(n,t,!1),gge,(e,n)=>(o.info(`Finding references to ${n.fileName} position ${n.pos} in project ${e.getProjectName()}`),e.getLanguageService().findReferences(n.fileName,n.pos)),(e,n)=>{n(bge(e.definition));for(const t of e.references)n(bge(t))});if(Ye(s))return s;const l=s.get(n);if(void 0===(null==(a=null==(i=null==l?void 0:l[0])?void 0:i.references[0])?void 0:a.isDefinition))s.forEach(e=>{for(const n of e)for(const e of n.references)delete e.isDefinition});else{const e=pge(r);for(const t of l)for(const n of t.references)if(n.isDefinition){e.add(n);break}const n=new Set;for(;;){let t=!1;if(s.forEach((r,o)=>{n.has(o)||o.getLanguageService().updateIsDefinitionOfReferencedSymbols(r,e)&&(n.add(o),t=!0)}),!t)break}s.forEach((e,t)=>{if(!n.has(t))for(const n of e)for(const e of n.references)e.isDefinition=!1})}const c=[],d=pge(r);return s.forEach((e,n)=>{for(const t of e){const e=Tge(bge(t.definition),n),o=void 0===e?t.definition:{...t.definition,textSpan:Js(e.pos,t.definition.textSpan.length),fileName:e.fileName,contextSpan:Ege(t.definition,n)};let i=y(c,e=>DQ(e.definition,o,r));i||(i={definition:o,references:[]},c.push(i));for(const r of t.references)d.has(r)||Tge(bge(r),n)||(d.add(r),i.references.push(r))}}),c.filter(e=>0!==e.references.length)}(r,this.getDefaultProject(e),{fileName:e.file,pos:o},this.host.useCaseSensitiveFileNames,this.logger);if(!n)return i;const a=this.getPreferences(t),s=this.getDefaultProject(e),l=s.getScriptInfoForNormalizedPath(t),c=s.getLanguageService().getQuickInfoAtPosition(t,o),d=c?e5(c.displayParts):"",u=c&&c.textSpan,p=u?l.positionToLineOffset(u.start).offset:0,f=u?l.getSnapshot().getText(u.start,Ps(u)):"";return{refs:P(i,e=>e.references.map(e=>Pge(this.projectService,e,a))),symbolName:f,symbolStartOffset:p,symbolDisplayString:d}}getFileReferences(e,n){const t=this.getProjects(e),r=rhe(e.file),o=this.getPreferences(r),i={fileName:r,pos:0},a=hge(t,this.getDefaultProject(e),i,i,_ge,e=>(this.logger.info(`Finding references to file ${r} in project ${e.getProjectName()}`),e.getLanguageService().getFileReferences(r)));let s;if(Ye(a))s=a;else{s=[];const e=pge(this.host.useCaseSensitiveFileNames);a.forEach(n=>{for(const t of n)e.has(t)||(s.push(t),e.add(t))})}if(!n)return s;return{refs:s.map(e=>Pge(this.projectService,e,o)),symbolName:`"${e.file}"`}}openClientFile(e,n,t,r){this.projectService.openClientFileWithNormalizedPath(e,n,t,!1,r)}getPosition(e,n){return void 0!==e.position?e.position:n.lineOffsetToPosition(e.line,e.offset)}getPositionInFile(e,n){const t=this.projectService.getScriptInfoForNormalizedPath(n);return this.getPosition(e,t)}getFileAndProject(e){return this.getFileAndProjectWorker(e.file,e.projectFileName)}getFileAndLanguageServiceForSyntacticOperation(e){const{file:n,project:t}=this.getFileAndProject(e);return{file:n,languageService:t.getLanguageService(!1)}}getFileAndProjectWorker(e,n){const t=rhe(e);return{file:t,project:this.getProject(n)||this.projectService.ensureDefaultProjectForFile(t)}}getOutliningSpans(e,n){const{file:t,languageService:r}=this.getFileAndLanguageServiceForSyntacticOperation(e),o=r.getOutliningSpans(t);if(n){const e=this.projectService.getScriptInfoForNormalizedPath(t);return o.map(n=>({textSpan:Dge(n.textSpan,e),hintSpan:Dge(n.hintSpan,e),bannerText:n.bannerText,autoCollapse:n.autoCollapse,kind:n.kind}))}return o}getTodoComments(e){const{file:n,project:t}=this.getFileAndProject(e);return t.getLanguageService().getTodoComments(n,e.descriptors)}getDocCommentTemplate(e){const{file:n,languageService:t}=this.getFileAndLanguageServiceForSyntacticOperation(e),r=this.getPositionInFile(e,n);return t.getDocCommentTemplateAtPosition(n,r,this.getPreferences(n),this.getFormatOptions(n))}getSpanOfEnclosingComment(e){const{file:n,languageService:t}=this.getFileAndLanguageServiceForSyntacticOperation(e),r=e.onlyMultiLine,o=this.getPositionInFile(e,n);return t.getSpanOfEnclosingComment(n,o,r)}getIndentation(e){const{file:n,languageService:t}=this.getFileAndLanguageServiceForSyntacticOperation(e),r=this.getPositionInFile(e,n),o=e.options?h_e(e.options):this.getFormatOptions(n);return{position:r,indentation:t.getIndentationAtPosition(n,r,o)}}getBreakpointStatement(e){const{file:n,languageService:t}=this.getFileAndLanguageServiceForSyntacticOperation(e),r=this.getPositionInFile(e,n);return t.getBreakpointStatementAtPosition(n,r)}getNameOrDottedNameSpan(e){const{file:n,languageService:t}=this.getFileAndLanguageServiceForSyntacticOperation(e),r=this.getPositionInFile(e,n);return t.getNameOrDottedNameSpan(n,r,r)}isValidBraceCompletion(e){const{file:n,languageService:t}=this.getFileAndLanguageServiceForSyntacticOperation(e),r=this.getPositionInFile(e,n);return t.isValidBraceCompletionAtPosition(n,r,e.openingBrace.charCodeAt(0))}getQuickInfoWorker(e,n){const{file:t,project:r}=this.getFileAndProject(e),o=this.projectService.getScriptInfoForNormalizedPath(t),i=this.getPreferences(t),a=r.getLanguageService().getQuickInfoAtPosition(t,this.getPosition(e,o),i.maximumHoverLength,e.verbosityLevel);if(!a)return;const s=!!i.displayPartsForJSDoc;if(n){const e=e5(a.displayParts);return{kind:a.kind,kindModifiers:a.kindModifiers,start:o.positionToLineOffset(a.textSpan.start),end:o.positionToLineOffset(Ps(a.textSpan)),displayString:e,documentation:s?this.mapDisplayParts(a.documentation,r):e5(a.documentation),tags:this.mapJSDocTagInfo(a.tags,r,s),canIncreaseVerbosityLevel:a.canIncreaseVerbosityLevel}}return s?a:{...a,tags:this.mapJSDocTagInfo(a.tags,r,!1)}}getFormattingEditsForRange(e){const{file:n,languageService:t}=this.getFileAndLanguageServiceForSyntacticOperation(e),r=this.projectService.getScriptInfoForNormalizedPath(n),o=r.lineOffsetToPosition(e.line,e.offset),i=r.lineOffsetToPosition(e.endLine,e.endOffset),a=t.getFormattingEditsForRange(n,o,i,this.getFormatOptions(n));if(a)return a.map(e=>this.convertTextChangeToCodeEdit(e,r))}getFormattingEditsForRangeFull(e){const{file:n,languageService:t}=this.getFileAndLanguageServiceForSyntacticOperation(e),r=e.options?h_e(e.options):this.getFormatOptions(n);return t.getFormattingEditsForRange(n,e.position,e.endPosition,r)}getFormattingEditsForDocumentFull(e){const{file:n,languageService:t}=this.getFileAndLanguageServiceForSyntacticOperation(e),r=e.options?h_e(e.options):this.getFormatOptions(n);return t.getFormattingEditsForDocument(n,r)}getFormattingEditsAfterKeystrokeFull(e){const{file:n,languageService:t}=this.getFileAndLanguageServiceForSyntacticOperation(e),r=e.options?h_e(e.options):this.getFormatOptions(n);return t.getFormattingEditsAfterKeystroke(n,e.position,e.key,r)}getFormattingEditsAfterKeystroke(e){const{file:n,languageService:t}=this.getFileAndLanguageServiceForSyntacticOperation(e),r=this.projectService.getScriptInfoForNormalizedPath(n),o=r.lineOffsetToPosition(e.line,e.offset),i=this.getFormatOptions(n),a=t.getFormattingEditsAfterKeystroke(n,o,e.key,i);if("\n"===e.key&&(!a||0===a.length||function(e,n){return e.every(e=>Ps(e.span)<n)}(a,o))){const{lineText:s,absolutePosition:l}=r.textStorage.getAbsolutePositionAndLineText(e.line);if(s&&s.search("\\S")<0){const e=t.getIndentationAtPosition(n,o,i);let r,c,d=0;for(r=0,c=s.length;r<c;r++)if(" "===s.charAt(r))d++;else{if("\t"!==s.charAt(r))break;d+=i.tabSize}if(e!==d){const n=l+r;a.push({span:Xs(l,n),newText:Mpe.getIndentationString(e,i)})}}}if(a)return a.map(e=>({start:r.positionToLineOffset(e.span.start),end:r.positionToLineOffset(Ps(e.span)),newText:e.newText?e.newText:""}))}getCompletions(e,n){const{file:t,project:r}=this.getFileAndProject(e),o=this.projectService.getScriptInfoForNormalizedPath(t),i=this.getPosition(e,o),a=r.getLanguageService().getCompletionsAtPosition(t,i,{...T_e(this.getPreferences(t)),triggerCharacter:e.triggerCharacter,triggerKind:e.triggerKind,includeExternalModuleExports:e.includeExternalModuleExports,includeInsertTextCompletions:e.includeInsertTextCompletions},r.projectService.getFormatCodeOptions(t));if(void 0===a)return;if("completions-full"===n)return a;const s=e.prefix||"",l=F(a.entries,e=>{if(a.isMemberCompletion||Xn(e.name.toLowerCase(),s.toLowerCase())){const n=e.replacementSpan?Dge(e.replacementSpan,o):void 0;return{...e,replacementSpan:n,hasAction:e.hasAction||void 0,symbol:void 0}}});if("completions"===n)return a.metadata&&(l.metadata=a.metadata),l;return{...a,optionalReplacementSpan:a.optionalReplacementSpan&&Dge(a.optionalReplacementSpan,o),entries:l}}getCompletionEntryDetails(e,n){const{file:t,project:r}=this.getFileAndProject(e),o=this.projectService.getScriptInfoForNormalizedPath(t),i=this.getPosition(e,o),a=r.projectService.getFormatCodeOptions(t),s=!!this.getPreferences(t).displayPartsForJSDoc,l=F(e.entryNames,e=>{const{name:n,source:o,data:s}="string"==typeof e?{name:e,source:void 0,data:void 0}:e;return r.getLanguageService().getCompletionEntryDetails(t,i,n,a,o,this.getPreferences(t),s?nn(s,Lge):void 0)});return n?s?l:l.map(e=>({...e,tags:this.mapJSDocTagInfo(e.tags,r,!1)})):l.map(e=>({...e,codeActions:D(e.codeActions,e=>this.mapCodeAction(e)),documentation:this.mapDisplayParts(e.documentation,r),tags:this.mapJSDocTagInfo(e.tags,r,s)}))}getCompileOnSaveAffectedFileList(e){const n=this.getProjects(e,!0,!0),t=this.projectService.getScriptInfo(e.file);return t?function(e,n,t,r){const o=L(Ye(t)?t:t.projects,n=>r(n,e));return!Ye(t)&&t.symLinkedProjects&&t.symLinkedProjects.forEach((e,t)=>{const i=n(t);o.push(...P(e,e=>r(e,i)))}),Y(o,hn)}(t,e=>this.projectService.getScriptInfoForPath(e),n,(e,n)=>{if(!e.compileOnSaveEnabled||!e.languageServiceEnabled||e.isOrphan())return;const t=e.getCompilationSettings();return t.noEmit||yk(n.fileName)&&!function(e){return PS(e)||!!e.emitDecoratorMetadata}(t)?void 0:{projectFileName:e.getProjectName(),fileNames:e.getCompileOnSaveAffectedFileList(n),projectUsesOutFile:!!t.outFile}}):ehe}emitFile(e){const{file:n,project:t}=this.getFileAndProject(e);if(t||$me.ThrowNoProject(),!t.languageServiceEnabled)return!!e.richResponse&&{emitSkipped:!0,diagnostics:[]};const r=t.getScriptInfo(n),{emitSkipped:o,diagnostics:i}=t.emitFile(r,(e,n,t)=>this.host.writeFile(e,n,t));return e.richResponse?{emitSkipped:o,diagnostics:e.includeLinePosition?this.convertToDiagnosticsWithLinePositionFromDiagnosticFile(i):i.map(e=>sge(e,!0))}:!o}getSignatureHelpItems(e,n){const{file:t,project:r}=this.getFileAndProject(e),o=this.projectService.getScriptInfoForNormalizedPath(t),i=this.getPosition(e,o),a=r.getLanguageService().getSignatureHelpItems(t,i,e),s=!!this.getPreferences(t).displayPartsForJSDoc;if(a&&n){const e=a.applicableSpan;return{...a,applicableSpan:{start:o.positionToLineOffset(e.start),end:o.positionToLineOffset(e.start+e.length)},items:this.mapSignatureHelpItems(a.items,r,s)}}return s||!a?a:{...a,items:a.items.map(e=>({...e,tags:this.mapJSDocTagInfo(e.tags,r,!1)}))}}toPendingErrorCheck(e){const n=rhe(e),t=this.projectService.tryGetDefaultProjectForFile(n);return t&&{fileName:n,project:t}}getDiagnostics(e,n,t){this.suppressDiagnosticEvents||t.length>0&&this.updateErrorCheck(e,t,n)}change(e){const n=this.projectService.getScriptInfo(e.file);dt.assert(!!n),n.textStorage.switchToScriptVersionCache();const t=n.lineOffsetToPosition(e.line,e.offset),r=n.lineOffsetToPosition(e.endLine,e.endOffset);t>=0&&(this.changeSeq++,this.projectService.applyChangesToFile(n,G({span:{start:t,length:r-t},newText:e.insertString})))}reload(e){const n=rhe(e.file),t=void 0===e.tmpfile?void 0:rhe(e.tmpfile),r=this.projectService.getScriptInfoForNormalizedPath(n);r&&(this.changeSeq++,r.reloadFromFile(t))}saveToTmp(e,n){const t=this.projectService.getScriptInfo(e);t&&t.saveTo(n)}closeClientFile(e){if(!e)return;const n=ji(e);this.projectService.closeClientFile(n)}mapLocationNavigationBarItems(e,n){return D(e,e=>({text:e.text,kind:e.kind,kindModifiers:e.kindModifiers,spans:e.spans.map(e=>Dge(e,n)),childItems:this.mapLocationNavigationBarItems(e.childItems,n),indent:e.indent}))}getNavigationBarItems(e,n){const{file:t,languageService:r}=this.getFileAndLanguageServiceForSyntacticOperation(e),o=r.getNavigationBarItems(t);return o?n?this.mapLocationNavigationBarItems(o,this.projectService.getScriptInfoForNormalizedPath(t)):o:void 0}toLocationNavigationTree(e,n){return{text:e.text,kind:e.kind,kindModifiers:e.kindModifiers,spans:e.spans.map(e=>Dge(e,n)),nameSpan:e.nameSpan&&Dge(e.nameSpan,n),childItems:D(e.childItems,e=>this.toLocationNavigationTree(e,n))}}getNavigationTree(e,n){const{file:t,languageService:r}=this.getFileAndLanguageServiceForSyntacticOperation(e),o=r.getNavigationTree(t);return o?n?this.toLocationNavigationTree(o,this.projectService.getScriptInfoForNormalizedPath(t)):o:void 0}getNavigateToItems(e,n){const t=this.getFullNavigateToItems(e);return P(t,n?({project:e,navigateToItems:n})=>n.map(n=>{const t=e.getScriptInfo(n.fileName),r={name:n.name,kind:n.kind,kindModifiers:n.kindModifiers,isCaseSensitive:n.isCaseSensitive,matchKind:n.matchKind,file:n.fileName,start:t.positionToLineOffset(n.textSpan.start),end:t.positionToLineOffset(Ps(n.textSpan))};return n.kindModifiers&&""!==n.kindModifiers&&(r.kindModifiers=n.kindModifiers),n.containerName&&n.containerName.length>0&&(r.containerName=n.containerName),n.containerKind&&n.containerKind.length>0&&(r.containerKind=n.containerKind),r}):({navigateToItems:e})=>e)}getFullNavigateToItems(e){const{currentFileOnly:n,searchValue:t,maxResultCount:r,projectFileName:o}=e;if(n){dt.assertIsDefined(e.file);const{file:n,project:o}=this.getFileAndProject(e);return[{project:o,navigateToItems:o.getLanguageService().getNavigateToItems(t,r,n)}]}const i=this.getHostPreferences(),a=[],s=new Map;if(e.file||o){mge(this.getProjects(e),void 0,e=>l(e))}else this.projectService.loadAncestorProjectTree(),this.projectService.forEachEnabledProject(e=>l(e));return a;function l(e){const n=x(e.getLanguageService().getNavigateToItems(t,r,void 0,e.isNonTsProject(),i.excludeLibrarySymbolsInNavTo),n=>function(e){const n=e.name;if(!s.has(n))return s.set(n,[e]),!0;const t=s.get(n);for(const r of t)if(c(r,e))return!1;return t.push(e),!0}(n)&&!Tge(bge(n),e));n.length&&a.push({project:e,navigateToItems:n})}function c(e,n){return e===n||!(!e||!n)&&(e.containerKind===n.containerKind&&e.containerName===n.containerName&&e.fileName===n.fileName&&e.isCaseSensitive===n.isCaseSensitive&&e.kind===n.kind&&e.kindModifiers===n.kindModifiers&&e.matchKind===n.matchKind&&e.name===n.name&&e.textSpan.start===n.textSpan.start&&e.textSpan.length===n.textSpan.length)}}getSupportedCodeFixes(e){if(!e)return t5();if(e.file){const{file:n,project:t}=this.getFileAndProject(e);return t.getLanguageService().getSupportedCodeFixes(n)}const n=this.getProject(e.projectFileName);return n||$me.ThrowNoProject(),n.getLanguageService().getSupportedCodeFixes()}isLocation(e){return void 0!==e.line}extractPositionOrRange(e,n){let t,r;var o;return this.isLocation(e)?t=void 0!==(o=e).position?o.position:n.lineOffsetToPosition(o.line,o.offset):r=this.getRange(e,n),dt.checkDefined(void 0===t?r:t)}getRange(e,n){const{startPosition:t,endPosition:r}=this.getStartAndEndPosition(e,n);return{pos:t,end:r}}getApplicableRefactors(e){const{file:n,project:t}=this.getFileAndProject(e),r=t.getScriptInfoForNormalizedPath(n);return t.getLanguageService().getApplicableRefactors(n,this.extractPositionOrRange(e,r),this.getPreferences(n),e.triggerReason,e.kind,e.includeInteractiveActions).map(e=>({...e,actions:e.actions.map(e=>({...e,range:e.range?{start:age({line:e.range.start.line,character:e.range.start.offset}),end:age({line:e.range.end.line,character:e.range.end.offset})}:void 0}))}))}getEditsForRefactor(e,n){const{file:t,project:r}=this.getFileAndProject(e),o=r.getScriptInfoForNormalizedPath(t),i=r.getLanguageService().getEditsForRefactor(t,this.getFormatOptions(t),this.extractPositionOrRange(e,o),e.refactor,e.action,this.getPreferences(t),e.interactiveRefactorArguments);if(void 0===i)return{edits:[]};if(n){const{renameFilename:e,renameLocation:n,edits:t}=i;let o;if(void 0!==e&&void 0!==n){o=Mge(nQ(r.getScriptInfoForNormalizedPath(rhe(e)).getSnapshot()),e,n,t)}return{renameLocation:o,renameFilename:e,edits:this.mapTextChangesToCodeEdits(t),notApplicableReason:i.notApplicableReason}}return i}getMoveToRefactoringFileSuggestions(e){const{file:n,project:t}=this.getFileAndProject(e),r=t.getScriptInfoForNormalizedPath(n);return t.getLanguageService().getMoveToRefactoringFileSuggestions(n,this.extractPositionOrRange(e,r),this.getPreferences(n))}preparePasteEdits(e){const{file:n,project:t}=this.getFileAndProject(e);return t.getLanguageService().preparePasteEditsForFile(n,e.copiedTextSpan.map(e=>this.getRange({file:n,startLine:e.start.line,startOffset:e.start.offset,endLine:e.end.line,endOffset:e.end.offset},this.projectService.getScriptInfoForNormalizedPath(n))))}getPasteEdits(e){const{file:n,project:t}=this.getFileAndProject(e);if(Ihe(n))return;const r=e.copiedFrom?{file:e.copiedFrom.file,range:e.copiedFrom.spans.map(n=>this.getRange({file:e.copiedFrom.file,startLine:n.start.line,startOffset:n.start.offset,endLine:n.end.line,endOffset:n.end.offset},t.getScriptInfoForNormalizedPath(rhe(e.copiedFrom.file))))}:void 0,o=t.getLanguageService().getPasteEdits({targetFile:n,pastedText:e.pastedText,pasteLocations:e.pasteLocations.map(e=>this.getRange({file:n,startLine:e.start.line,startOffset:e.start.offset,endLine:e.end.line,endOffset:e.end.offset},t.getScriptInfoForNormalizedPath(n))),copiedFrom:r,preferences:this.getPreferences(n)},this.getFormatOptions(n));return o&&this.mapPasteEditsAction(o)}organizeImports(e,n){dt.assert("file"===e.scope.type);const{file:t,project:r}=this.getFileAndProject(e.scope.args),o=r.getLanguageService().organizeImports({fileName:t,mode:e.mode??(e.skipDestructiveCodeActions?"SortAndCombine":void 0),type:"file"},this.getFormatOptions(t),this.getPreferences(t));return n?this.mapTextChangesToCodeEdits(o):o}getEditsForFileRename(e,n){const t=rhe(e.oldFilePath),r=rhe(e.newFilePath),o=this.getHostFormatOptions(),i=this.getHostPreferences(),a=new Set,s=[];return this.projectService.loadAncestorProjectTree(),this.projectService.forEachEnabledProject(e=>{const n=e.getLanguageService().getEditsForFileRename(t,r,o,i),l=[];for(const t of n)a.has(t.fileName)||(s.push(t),l.push(t.fileName));for(const t of l)a.add(t)}),n?s.map(e=>this.mapTextChangeToCodeEdit(e)):s}getCodeFixes(e,n){const{file:t,project:r}=this.getFileAndProject(e),o=r.getScriptInfoForNormalizedPath(t),{startPosition:i,endPosition:a}=this.getStartAndEndPosition(e,o);let s;try{s=r.getLanguageService().getCodeFixesAtPosition(t,i,a,e.errorCodes,this.getFormatOptions(t),this.getPreferences(t))}catch(bi){const o=bi instanceof Error?bi:new Error(bi),s=r.getLanguageService(),l=[...s.getSyntacticDiagnostics(t),...s.getSemanticDiagnostics(t),...s.getSuggestionDiagnostics(t)].filter(e=>js(i,a-i,e.start,e.length)).map(e=>e.code),c=e.errorCodes.find(e=>!l.includes(e));throw void 0!==c&&(o.message+=`\nAdditional information: BADCLIENT: Bad error code, ${c} not found in range ${i}..${a} (found: ${l.join(", ")})`),o}return n?s.map(e=>this.mapCodeFixAction(e)):s}getCombinedCodeFix({scope:e,fixId:n},t){dt.assert("file"===e.type);const{file:r,project:o}=this.getFileAndProject(e.args),i=o.getLanguageService().getCombinedCodeFix({type:"file",fileName:r},n,this.getFormatOptions(r),this.getPreferences(r));return t?{changes:this.mapTextChangesToCodeEdits(i.changes),commands:i.commands}:i}applyCodeActionCommand(e){const n=e.command;for(const t of $e(n)){const{file:e,project:n}=this.getFileAndProject(t);n.getLanguageService().applyCodeActionCommand(t,this.getFormatOptions(e)).then(e=>{},e=>{})}return{}}getStartAndEndPosition(e,n){let t,r;return void 0!==e.startPosition?t=e.startPosition:(t=n.lineOffsetToPosition(e.startLine,e.startOffset),e.startPosition=t),void 0!==e.endPosition?r=e.endPosition:(r=n.lineOffsetToPosition(e.endLine,e.endOffset),e.endPosition=r),{startPosition:t,endPosition:r}}mapCodeAction({description:e,changes:n,commands:t}){return{description:e,changes:this.mapTextChangesToCodeEdits(n),commands:t}}mapCodeFixAction({fixName:e,description:n,changes:t,commands:r,fixId:o,fixAllDescription:i}){return{fixName:e,description:n,changes:this.mapTextChangesToCodeEdits(t),commands:r,fixId:o,fixAllDescription:i}}mapPasteEditsAction({edits:e,fixId:n}){return{edits:this.mapTextChangesToCodeEdits(e),fixId:n}}mapTextChangesToCodeEdits(e){return e.map(e=>this.mapTextChangeToCodeEdit(e))}mapTextChangeToCodeEdit(e){const n=this.projectService.getScriptInfoOrConfig(e.fileName);return!!e.isNewFile==!!n&&(n||this.projectService.logErrorForScriptInfoNotFound(e.fileName),dt.fail("Expected isNewFile for (only) new files. "+JSON.stringify({isNewFile:!!e.isNewFile,hasScriptInfo:!!n}))),n?{fileName:e.fileName,textChanges:e.textChanges.map(e=>function(e,n){return{start:Nge(n,e.span.start),end:Nge(n,Ps(e.span)),newText:e.newText}}(e,n))}:function(e){dt.assert(1===e.textChanges.length);const n=he(e.textChanges);return dt.assert(0===n.span.start&&0===n.span.length),{fileName:e.fileName,textChanges:[{start:{line:0,offset:0},end:{line:0,offset:0},newText:n.newText}]}}(e)}convertTextChangeToCodeEdit(e,n){return{start:n.positionToLineOffset(e.span.start),end:n.positionToLineOffset(e.span.start+e.span.length),newText:e.newText?e.newText:""}}getBraceMatching(e,n){const{file:t,languageService:r}=this.getFileAndLanguageServiceForSyntacticOperation(e),o=this.projectService.getScriptInfoForNormalizedPath(t),i=this.getPosition(e,o),a=r.getBraceMatchingAtPosition(t,i);return a?n?a.map(e=>Dge(e,o)):a:void 0}getDiagnosticsForProject(e,n,t){if(this.suppressDiagnosticEvents)return;const{fileNames:r,languageServiceDisabled:o}=this.getProjectInfoWorker(t,void 0,!0,void 0,!0);if(o)return;const i=r.filter(e=>!e.includes("lib.d.ts"));if(0===i.length)return;const a=[],s=[],l=[],c=[],d=rhe(t),u=this.projectService.ensureDefaultProjectForFile(d);for(const f of i)if(this.getCanonicalFileName(f)===this.getCanonicalFileName(t))a.push(f);else{this.projectService.getScriptInfo(f).isScriptOpen()?s.push(f):yk(f)?c.push(f):l.push(f)}const p=[...a,...s,...l,...c].map(e=>({fileName:e,project:u}));this.updateErrorCheck(e,p,n,!1)}configurePlugin(e){this.projectService.configurePlugin(e)}getSmartSelectionRange(e,n){const{locations:t}=e,{file:r,languageService:o}=this.getFileAndLanguageServiceForSyntacticOperation(e),i=dt.checkDefined(this.projectService.getScriptInfo(r));return D(t,e=>{const t=this.getPosition(e,i),a=o.getSmartSelectionRange(r,t);return n?this.mapSelectionRange(a,i):a})}toggleLineComment(e,n){const{file:t,languageService:r}=this.getFileAndLanguageServiceForSyntacticOperation(e),o=this.projectService.getScriptInfo(t),i=this.getRange(e,o),a=r.toggleLineComment(t,i);if(n){const e=this.projectService.getScriptInfoForNormalizedPath(t);return a.map(n=>this.convertTextChangeToCodeEdit(n,e))}return a}toggleMultilineComment(e,n){const{file:t,languageService:r}=this.getFileAndLanguageServiceForSyntacticOperation(e),o=this.projectService.getScriptInfoForNormalizedPath(t),i=this.getRange(e,o),a=r.toggleMultilineComment(t,i);if(n){const e=this.projectService.getScriptInfoForNormalizedPath(t);return a.map(n=>this.convertTextChangeToCodeEdit(n,e))}return a}commentSelection(e,n){const{file:t,languageService:r}=this.getFileAndLanguageServiceForSyntacticOperation(e),o=this.projectService.getScriptInfoForNormalizedPath(t),i=this.getRange(e,o),a=r.commentSelection(t,i);if(n){const e=this.projectService.getScriptInfoForNormalizedPath(t);return a.map(n=>this.convertTextChangeToCodeEdit(n,e))}return a}uncommentSelection(e,n){const{file:t,languageService:r}=this.getFileAndLanguageServiceForSyntacticOperation(e),o=this.projectService.getScriptInfoForNormalizedPath(t),i=this.getRange(e,o),a=r.uncommentSelection(t,i);if(n){const e=this.projectService.getScriptInfoForNormalizedPath(t);return a.map(n=>this.convertTextChangeToCodeEdit(n,e))}return a}mapSelectionRange(e,n){const t={textSpan:Dge(e.textSpan,n)};return e.parent&&(t.parent=this.mapSelectionRange(e.parent,n)),t}getScriptInfoFromProjectService(e){const n=rhe(e),t=this.projectService.getScriptInfoForNormalizedPath(n);return t||(this.projectService.logErrorForScriptInfoNotFound(n),$me.ThrowNoProject())}toProtocolCallHierarchyItem(e){const n=this.getScriptInfoFromProjectService(e.file);return{name:e.name,kind:e.kind,kindModifiers:e.kindModifiers,file:e.file,containerName:e.containerName,span:Dge(e.span,n),selectionSpan:Dge(e.selectionSpan,n)}}toProtocolCallHierarchyIncomingCall(e){const n=this.getScriptInfoFromProjectService(e.from.file);return{from:this.toProtocolCallHierarchyItem(e.from),fromSpans:e.fromSpans.map(e=>Dge(e,n))}}toProtocolCallHierarchyOutgoingCall(e,n){return{to:this.toProtocolCallHierarchyItem(e.to),fromSpans:e.fromSpans.map(e=>Dge(e,n))}}prepareCallHierarchy(e){const{file:n,project:t}=this.getFileAndProject(e),r=this.projectService.getScriptInfoForNormalizedPath(n);if(r){const o=this.getPosition(e,r),i=t.getLanguageService().prepareCallHierarchy(n,o);return i&&ZZ(i,e=>this.toProtocolCallHierarchyItem(e))}}provideCallHierarchyIncomingCalls(e){const{file:n,project:t}=this.getFileAndProject(e),r=this.getScriptInfoFromProjectService(n);return t.getLanguageService().provideCallHierarchyIncomingCalls(n,this.getPosition(e,r)).map(e=>this.toProtocolCallHierarchyIncomingCall(e))}provideCallHierarchyOutgoingCalls(e){const{file:n,project:t}=this.getFileAndProject(e),r=this.getScriptInfoFromProjectService(n);return t.getLanguageService().provideCallHierarchyOutgoingCalls(n,this.getPosition(e,r)).map(e=>this.toProtocolCallHierarchyOutgoingCall(e,r))}getCanonicalFileName(e){return ji(this.host.useCaseSensitiveFileNames?e:dn(e))}exit(){}notRequired(e){return e&&this.doOutput(void 0,e.command,e.seq,!0,this.performanceData),{responseRequired:!1,performanceData:this.performanceData}}requiredResponse(e){return{response:e,responseRequired:!0,performanceData:this.performanceData}}addProtocolHandler(e,n){if(this.handlers.has(e))throw new Error(`Protocol handler already exists for command "${e}"`);this.handlers.set(e,n)}setCurrentRequest(e){dt.assert(void 0===this.currentRequestId),this.currentRequestId=e,this.cancellationToken.setRequest(e)}resetCurrentRequest(e){dt.assert(this.currentRequestId===e),this.currentRequestId=void 0,this.cancellationToken.resetRequest(e)}executeWithRequestId(e,n,t){const r=this.performanceData;try{return this.performanceData=t,this.setCurrentRequest(e),n()}finally{this.resetCurrentRequest(e),this.performanceData=r}}executeCommand(e){const n=this.handlers.get(e.command);if(n){const t=this.executeWithRequestId(e.seq,()=>n(e),void 0);return this.projectService.enableRequestedPlugins(),t}return this.logger.msg(`Unrecognized JSON command:${vX(e)}`,"Err"),this.doOutput(void 0,"unknown",e.seq,!1,void 0,`Unrecognized JSON command: ${e.command}`),{responseRequired:!1}}onMessage(e){var n,t,r,o,i,a,s;let l;this.gcTimer.scheduleCollect();const c=this.performanceData;let d,u;this.logger.hasLevel(2)&&(l=this.hrtime(),this.logger.hasLevel(3)&&this.logger.info(`request:${yX(this.toStringMessage(e))}`));try{d=this.parseMessage(e),u=d.arguments&&d.arguments.file?d.arguments:void 0,null==(n=Kt)||n.instant(Kt.Phase.Session,"request",{seq:d.seq,command:d.command}),null==(t=Kt)||t.push(Kt.Phase.Session,"executeCommand",{seq:d.seq,command:d.command},!0);const{response:i,responseRequired:a,performanceData:s}=this.executeCommand(d);if(null==(r=Kt)||r.pop(),this.logger.hasLevel(2)){const e=(p=this.hrtime(l),(1e9*p[0]+p[1])/1e6).toFixed(4);a?this.logger.perftrc(`${d.seq}::${d.command}: elapsed time (in milliseconds) ${e}`):this.logger.perftrc(`${d.seq}::${d.command}: async elapsed time (in milliseconds) ${e}`)}null==(o=Kt)||o.instant(Kt.Phase.Session,"response",{seq:d.seq,command:d.command,success:!!i}),i?this.doOutput(i,d.command,d.seq,!0,s):a&&this.doOutput(void 0,d.command,d.seq,!1,s,"No content available.")}catch(f){if(null==(i=Kt)||i.popAll(),f instanceof Ar)return null==(a=Kt)||a.instant(Kt.Phase.Session,"commandCanceled",{seq:null==d?void 0:d.seq,command:null==d?void 0:d.command}),void this.doOutput({canceled:!0},d.command,d.seq,!0,this.performanceData);this.logErrorWorker(f,this.toStringMessage(e),u),null==(s=Kt)||s.instant(Kt.Phase.Session,"commandError",{seq:null==d?void 0:d.seq,command:null==d?void 0:d.command,message:f.message}),this.doOutput(void 0,d?d.command:"unknown",d?d.seq:0,!1,this.performanceData,"Error processing request. "+f.message+"\n"+f.stack)}finally{this.performanceData=c}var p}parseMessage(e){return JSON.parse(e)}toStringMessage(e){return e}getFormatOptions(e){return this.projectService.getFormatCodeOptions(e)}getPreferences(e){return this.projectService.getPreferences(e)}getHostFormatOptions(){return this.projectService.getHostFormatCodeOptions()}getHostPreferences(){return this.projectService.getHostPreferences()}};function Ige(e){const n=e.diagnosticsDuration&&Le(e.diagnosticsDuration,([e,n])=>({...n,file:e}));return{...e,diagnosticsDuration:n}}function Dge(e,n){return{start:n.positionToLineOffset(e.start),end:n.positionToLineOffset(Ps(e))}}function Cge(e,n,t){const r=Dge(e,t),o=n&&Dge(n,t);return o?{...r,contextStart:o.start,contextEnd:o.end}:r}function Nge(e,n){return Q_e(e)?{line:(t=e.getLineAndCharacterOfPosition(n)).line+1,offset:t.character+1}:e.positionToLineOffset(n);var t}function Mge(e,n,t,r){const o=function(e,n,t){for(const{fileName:r,textChanges:o}of t)if(r===n)for(let n=o.length-1;n>=0;n--){const{newText:t,span:{start:r,length:i}}=o[n];e=e.slice(0,r)+t+e.slice(r+i)}return e}(e,n,r),{line:i,character:a}=Ga(Fa(o),t);return{line:i+1,offset:a+1}}function Pge(e,{fileName:n,textSpan:t,contextSpan:r,isWriteAccess:o,isDefinition:i},{disableLineTextInReferences:a}){const s=dt.checkDefined(e.getScriptInfo(n)),l=Cge(t,r,s),c=a?void 0:function(e,n){const t=e.lineToTextSpan(n.start.line-1);return e.getSnapshot().getText(t.start,Ps(t)).replace(/\r|\n/g,"")}(s,l);return{file:n,...l,lineText:c,isWriteAccess:o,isDefinition:i}}function Lge(e){return void 0===e||e&&"object"==typeof e&&"string"==typeof e.exportName&&(void 0===e.fileName||"string"==typeof e.fileName)&&(void 0===e.ambientModuleName||"string"==typeof e.ambientModuleName&&(void 0===e.isPackageJsonImport||"boolean"==typeof e.isPackageJsonImport))}var kge=(e=>(e[e.PreStart=0]="PreStart",e[e.Start=1]="Start",e[e.Entire=2]="Entire",e[e.Mid=3]="Mid",e[e.End=4]="End",e[e.PostEnd=5]="PostEnd",e))(kge||{}),wge=class{constructor(){this.goSubtree=!0,this.lineIndex=new Bge,this.endBranch=[],this.state=2,this.initialText="",this.trailingText="",this.lineIndex.root=new Gge,this.startPath=[this.lineIndex.root],this.stack=[this.lineIndex.root]}get done(){return!1}insertLines(e,n){n&&(this.trailingText=""),e=e?this.initialText+e+this.trailingText:this.initialText+this.trailingText;const t=Bge.linesFromText(e).lines;let r,o;t.length>1&&""===t[t.length-1]&&t.pop();for(let a=this.endBranch.length-1;a>=0;a--)this.endBranch[a].updateCounts(),0===this.endBranch[a].charCount()&&(o=this.endBranch[a],r=a>0?this.endBranch[a-1]:this.branchNode);o&&r.remove(o);const i=this.startPath[this.startPath.length-1];if(t.length>0)if(i.text=t[0],t.length>1){let e=new Array(t.length-1),n=i;for(let i=1;i<t.length;i++)e[i-1]=new Vge(t[i]);let r=this.startPath.length-2;for(;r>=0;){const t=this.startPath[r];e=t.insertAt(n,e),r--,n=t}let o=e.length;for(;o>0;){const n=new Gge;n.add(this.lineIndex.root),e=n.insertAt(this.lineIndex.root,e),o=e.length,this.lineIndex.root=n}this.lineIndex.root.updateCounts()}else for(let a=this.startPath.length-2;a>=0;a--)this.startPath[a].updateCounts();else{this.startPath[this.startPath.length-2].remove(i);for(let e=this.startPath.length-2;e>=0;e--)this.startPath[e].updateCounts()}return this.lineIndex}post(e,n,t){t===this.lineCollectionAtBranch&&(this.state=4),this.stack.pop()}pre(e,n,t,r,o){const i=this.stack[this.stack.length-1];let a;function s(e){return e.isLeaf()?new Vge(""):new Gge}switch(2===this.state&&1===o&&(this.state=1,this.branchNode=i,this.lineCollectionAtBranch=t),o){case 0:this.goSubtree=!1,4!==this.state&&i.add(t);break;case 1:4===this.state?this.goSubtree=!1:(a=s(t),i.add(a),this.startPath.push(a));break;case 2:4!==this.state?(a=s(t),i.add(a),this.startPath.push(a)):t.isLeaf()||(a=s(t),i.add(a),this.endBranch.push(a));break;case 3:this.goSubtree=!1;break;case 4:4!==this.state?this.goSubtree=!1:t.isLeaf()||(a=s(t),i.add(a),this.endBranch.push(a));break;case 5:this.goSubtree=!1,1!==this.state&&i.add(t)}this.goSubtree&&this.stack.push(a)}leaf(e,n,t){1===this.state?this.initialText=t.text.substring(0,e):2===this.state?(this.initialText=t.text.substring(0,e),this.trailingText=t.text.substring(e+n)):this.trailingText=t.text.substring(e+n)}},Oge=class{constructor(e,n,t){this.pos=e,this.deleteLen=n,this.insertedText=t}getTextChangeRange(){return Qs(Js(this.pos,this.deleteLen),this.insertedText?this.insertedText.length:0)}},Fge=class e{constructor(){this.changes=[],this.versions=new Array(e.maxVersions),this.minVersion=0,this.currentVersion=0}versionToIndex(n){if(!(n<this.minVersion||n>this.currentVersion))return n%e.maxVersions}currentVersionToIndex(){return this.currentVersion%e.maxVersions}edit(n,t,r){this.changes.push(new Oge(n,t,r)),(this.changes.length>e.changeNumberThreshold||t>e.changeLengthThreshold||r&&r.length>e.changeLengthThreshold)&&this.getSnapshot()}getSnapshot(){return this._getSnapshot()}_getSnapshot(){let n=this.versions[this.currentVersionToIndex()];if(this.changes.length>0){let t=n.index;for(const e of this.changes)t=t.edit(e.pos,e.deleteLen,e.insertedText);n=new zge(this.currentVersion+1,this,t,this.changes),this.currentVersion=n.version,this.versions[this.currentVersionToIndex()]=n,this.changes=[],this.currentVersion-this.minVersion>=e.maxVersions&&(this.minVersion=this.currentVersion-e.maxVersions+1)}return n}getSnapshotVersion(){return this._getSnapshot().version}getAbsolutePositionAndLineText(e){return this._getSnapshot().index.lineNumberToInfo(e)}lineOffsetToPosition(e,n){return this._getSnapshot().index.absolutePositionOfStartOfLine(e)+(n-1)}positionToLineOffset(e){return this._getSnapshot().index.positionToLineOffset(e)}lineToTextSpan(e){const n=this._getSnapshot().index,{lineText:t,absolutePosition:r}=n.lineNumberToInfo(e+1);return Js(r,void 0!==t?t.length:n.absolutePositionOfStartOfLine(e+2)-r)}getTextChangesBetweenVersions(e,n){if(!(e<n))return Zs;if(e>=this.minVersion){const t=[];for(let r=e+1;r<=n;r++){const e=this.versions[this.versionToIndex(r)];for(const n of e.changesSincePreviousVersion)t.push(n.getTextChangeRange())}return el(t)}}getLineCount(){return this._getSnapshot().index.getLineCount()}static fromString(n){const t=new e,r=new zge(0,t,new Bge);t.versions[t.currentVersion]=r;const o=Bge.linesFromText(n);return r.index.load(o.lines),t}};Fge.changeNumberThreshold=8,Fge.changeLengthThreshold=256,Fge.maxVersions=8;var Wge=Fge,zge=class e{constructor(e,n,t,r=ehe){this.version=e,this.cache=n,this.index=t,this.changesSincePreviousVersion=r}getText(e,n){return this.index.getText(e,n-e)}getLength(){return this.index.getLength()}getChangeRange(n){if(n instanceof e&&this.cache===n.cache)return this.version<=n.version?Zs:this.cache.getTextChangesBetweenVersions(n.version,this.version)}},Bge=class e{constructor(){this.checkEdits=!1}absolutePositionOfStartOfLine(e){return this.lineNumberToInfo(e).absolutePosition}positionToLineOffset(e){const{oneBasedLine:n,zeroBasedColumn:t}=this.root.charOffsetToLineInfo(1,e);return{line:n,offset:t+1}}positionToColumnAndLineText(e){return this.root.charOffsetToLineInfo(1,e)}getLineCount(){return this.root.lineCount()}lineNumberToInfo(e){if(e<=this.getLineCount()){const{position:n,leaf:t}=this.root.lineNumberToInfo(e,0);return{absolutePosition:n,lineText:t&&t.text}}return{absolutePosition:this.root.charCount(),lineText:void 0}}load(n){if(n.length>0){const t=[];for(let e=0;e<n.length;e++)t[e]=new Vge(n[e]);this.root=e.buildTreeFromBottom(t)}else this.root=new Gge}walk(e,n,t){this.root.walk(e,n,t)}getText(e,n){let t="";return n>0&&e<this.root.charCount()&&this.walk(e,n,{goSubtree:!0,done:!1,leaf:(e,n,r)=>{t=t.concat(r.text.substring(e,e+n))}}),t}getLength(){return this.root.charCount()}every(e,n,t){t||(t=this.root.charCount());const r={goSubtree:!0,done:!1,leaf(n,t,r){e(r,n,t)||(this.done=!0)}};return this.walk(n,t-n,r),!r.done}edit(n,t,r){if(0===this.root.charCount())return dt.assert(0===t),void 0!==r?(this.load(e.linesFromText(r).lines),this):void 0;{let e;if(this.checkEdits){const o=this.getText(0,this.root.charCount());e=o.slice(0,n)+r+o.slice(n+t)}const o=new wge;let i=!1;if(n>=this.root.charCount()){n=this.root.charCount()-1;const e=this.getText(n,1);r=r?e+r:e,t=0,i=!0}else if(t>0){const e=n+t,{zeroBasedColumn:o,lineText:i}=this.positionToColumnAndLineText(e);0===o&&(t+=i.length,r=r?r+i:i)}if(this.root.walk(n,t,o),o.insertLines(r,i),this.checkEdits){const n=o.lineIndex.getText(0,o.lineIndex.getLength());dt.assert(e===n,"buffer edit mismatch")}return o.lineIndex}}static buildTreeFromBottom(e){if(e.length<4)return new Gge(e);const n=new Array(Math.ceil(e.length/4));let t=0;for(let r=0;r<n.length;r++){const o=Math.min(t+4,e.length);n[r]=new Gge(e.slice(t,o)),t=o}return this.buildTreeFromBottom(n)}static linesFromText(e){const n=Fa(e);if(0===n.length)return{lines:[],lineMap:n};const t=new Array(n.length),r=n.length-1;for(let i=0;i<r;i++)t[i]=e.substring(n[i],n[i+1]);const o=e.substring(n[r]);return o.length>0?t[r]=o:t.pop(),{lines:t,lineMap:n}}},Gge=class e{constructor(e=[]){this.children=e,this.totalChars=0,this.totalLines=0,e.length&&this.updateCounts()}isLeaf(){return!1}updateCounts(){this.totalChars=0,this.totalLines=0;for(const e of this.children)this.totalChars+=e.charCount(),this.totalLines+=e.lineCount()}execWalk(e,n,t,r,o){return t.pre&&t.pre(e,n,this.children[r],this,o),t.goSubtree?(this.children[r].walk(e,n,t),t.post&&t.post(e,n,this.children[r],this,o)):t.goSubtree=!0,t.done}skipChild(e,n,t,r,o){r.pre&&!r.done&&(r.pre(e,n,this.children[t],this,o),r.goSubtree=!0)}walk(e,n,t){if(0===this.children.length)return;let r=0,o=this.children[r].charCount(),i=e;for(;i>=o;)this.skipChild(i,n,r,t,0),i-=o,r++,o=this.children[r].charCount();if(i+n<=o){if(this.execWalk(i,n,t,r,2))return}else{if(this.execWalk(i,o-i,t,r,1))return;let e=n-(o-i);r++;for(o=this.children[r].charCount();e>o;){if(this.execWalk(0,o,t,r,3))return;e-=o,r++,o=this.children[r].charCount()}if(e>0&&this.execWalk(0,e,t,r,4))return}if(t.pre){const e=this.children.length;if(r<e-1)for(let n=r+1;n<e;n++)this.skipChild(0,0,n,t,5)}}charOffsetToLineInfo(e,n){if(0===this.children.length)return{oneBasedLine:e,zeroBasedColumn:n,lineText:void 0};for(const r of this.children){if(r.charCount()>n)return r.isLeaf()?{oneBasedLine:e,zeroBasedColumn:n,lineText:r.text}:r.charOffsetToLineInfo(e,n);n-=r.charCount(),e+=r.lineCount()}const t=this.lineCount();if(0===t)return{oneBasedLine:1,zeroBasedColumn:0,lineText:void 0};return{oneBasedLine:t,zeroBasedColumn:dt.checkDefined(this.lineNumberToInfo(t,0).leaf).charCount(),lineText:void 0}}lineNumberToInfo(e,n){for(const t of this.children){const r=t.lineCount();if(r>=e)return t.isLeaf()?{position:n,leaf:t}:t.lineNumberToInfo(e,n);e-=r,n+=t.charCount()}return{position:n,leaf:void 0}}splitAfter(n){let t;const r=this.children.length,o=++n;if(n<r){for(t=new e;n<r;)t.add(this.children[n]),n++;t.updateCounts()}return this.children.length=o,t}remove(e){const n=this.findChildIndex(e),t=this.children.length;if(n<t-1)for(let r=n;r<t-1;r++)this.children[r]=this.children[r+1];this.children.pop()}findChildIndex(e){const n=this.children.indexOf(e);return dt.assert(-1!==n),n}insertAt(n,t){let r=this.findChildIndex(n);const o=this.children.length,i=t.length;if(o<4&&r===o-1&&1===i)return this.add(t[0]),this.updateCounts(),[];{const n=this.splitAfter(r);let o=0;for(r++;r<4&&o<i;)this.children[r]=t[o],r++,o++;let a=[],s=0;if(o<i){s=Math.ceil((i-o)/4),a=new Array(s);let n=0;for(let t=0;t<s;t++)a[t]=new e;let r=a[0];for(;o<i;)r.add(t[o]),o++,4===r.children.length&&(n++,r=a[n]);for(let e=a.length-1;e>=0;e--)0===a[e].children.length&&a.pop()}n&&a.push(n),this.updateCounts();for(let e=0;e<s;e++)a[e].updateCounts();return a}}add(e){this.children.push(e),dt.assert(this.children.length<=4)}charCount(){return this.totalChars}lineCount(){return this.totalLines}},Vge=class{constructor(e){this.text=e}isLeaf(){return!0}walk(e,n,t){t.leaf(e,n,this)}charCount(){return this.text.length}lineCount(){return 1}},jge=class e{constructor(e,n,t,r,o,i){this.telemetryEnabled=e,this.logger=n,this.host=t,this.globalTypingsCacheLocation=r,this.event=o,this.maxActiveRequestCount=i,this.activeRequestCount=0,this.requestQueue=Je(),this.requestMap=new Map,this.requestedRegistry=!1,this.packageInstallId=0}isKnownTypesPackageName(e){var n;return rX.validatePackageName(e)===rX.NameValidationResult.Ok&&(this.requestedRegistry||(this.requestedRegistry=!0,this.installer.send({kind:"typesRegistry"})),!!(null==(n=this.typesRegistryCache)?void 0:n.has(e)))}installPackage(e){this.packageInstallId++;const n={kind:"installPackage",...e,id:this.packageInstallId},t=new Promise((e,n)=>{(this.packageInstalledPromise??(this.packageInstalledPromise=new Map)).set(this.packageInstallId,{resolve:e,reject:n})});return this.installer.send(n),t}attach(e){this.projectService=e,this.installer=this.createInstallerProcess()}onProjectClosed(e){this.installer.send({projectName:e.getProjectName(),kind:"closeProject"})}enqueueInstallTypingsRequest(e,n,t){const r=the(e,n,t);this.logger.hasLevel(3)&&this.logger.info(`TIAdapter:: Scheduling throttled operation:${vX(r)}`),this.activeRequestCount<this.maxActiveRequestCount?this.scheduleRequest(r):(this.logger.hasLevel(3)&&this.logger.info(`TIAdapter:: Deferring request for: ${r.projectName}`),this.requestQueue.enqueue(r),this.requestMap.set(r.projectName,r))}handleMessage(e){var n,t;switch(this.logger.hasLevel(3)&&this.logger.info(`TIAdapter:: Received response:${vX(e)}`),e.kind){case cX:this.typesRegistryCache=new Map(Object.entries(e.typesRegistry));break;case lX:{const r=null==(n=this.packageInstalledPromise)?void 0:n.get(e.id);dt.assertIsDefined(r,"Should find the promise for package install"),null==(t=this.packageInstalledPromise)||t.delete(e.id),e.success?r.resolve({successMessage:e.message}):r.reject(e.message),this.projectService.updateTypingsForProject(e),this.event(e,"setTypings");break}case pX:{const n={message:e.message},t="typesInstallerInitializationFailed";this.event(n,t);break}case dX:{const n={eventId:e.eventId,packages:e.packagesToInstall},t="beginInstallTypes";this.event(n,t);break}case uX:{if(this.telemetryEnabled){const n={telemetryEventName:"typingsInstalled",payload:{installedPackages:e.packagesToInstall.join(","),installSuccess:e.installSuccess,typingsInstallerVersion:e.typingsInstallerVersion}},t="telemetry";this.event(n,t)}const n={eventId:e.eventId,packages:e.packagesToInstall,success:e.installSuccess},t="endInstallTypes";this.event(n,t);break}case sX:this.projectService.updateTypingsForProject(e);break;case aX:for(this.activeRequestCount>0?this.activeRequestCount--:dt.fail("TIAdapter:: Received too many responses");!this.requestQueue.isEmpty();){const e=this.requestQueue.dequeue();if(this.requestMap.get(e.projectName)===e){this.requestMap.delete(e.projectName),this.scheduleRequest(e);break}this.logger.hasLevel(3)&&this.logger.info(`TIAdapter:: Skipping defunct request for: ${e.projectName}`)}this.projectService.updateTypingsForProject(e),this.event(e,"setTypings");break;case fX:this.projectService.watchTypingLocations(e)}}scheduleRequest(n){this.logger.hasLevel(3)&&this.logger.info(`TIAdapter:: Scheduling request for: ${n.projectName}`),this.activeRequestCount++,this.host.setTimeout(()=>{this.logger.hasLevel(3)&&this.logger.info(`TIAdapter:: Sending request:${vX(n)}`),this.installer.send(n)},e.requestDelayMillis,`${n.projectName}::${n.kind}`)}};jge.requestDelayMillis=100;var Uge=jge,Hge={};t(Hge,{ActionInvalidate:()=>sX,ActionPackageInstalled:()=>lX,ActionSet:()=>aX,ActionWatchTypingLocations:()=>fX,Arguments:()=>oX,AutoImportProviderProject:()=>Vhe,AuxiliaryProject:()=>Bhe,CharRangeSection:()=>kge,CloseFileWatcherEvent:()=>l_e,CommandNames:()=>lge,ConfigFileDiagEvent:()=>t_e,ConfiguredProject:()=>jhe,ConfiguredProjectLoadKind:()=>N_e,CreateDirectoryWatcherEvent:()=>s_e,CreateFileWatcherEvent:()=>a_e,Errors:()=>$me,EventBeginInstallTypes:()=>dX,EventEndInstallTypes:()=>uX,EventInitializationFailed:()=>pX,EventTypesRegistry:()=>cX,ExternalProject:()=>Uhe,GcTimer:()=>fhe,InferredProject:()=>zhe,LargeFileReferencedEvent:()=>n_e,LineIndex:()=>Bge,LineLeaf:()=>Vge,LineNode:()=>Gge,LogLevel:()=>Zme,Msg:()=>nhe,OpenFileInfoTelemetryEvent:()=>i_e,Project:()=>Whe,ProjectInfoTelemetryEvent:()=>o_e,ProjectKind:()=>Mhe,ProjectLanguageServiceStateEvent:()=>r_e,ProjectLoadingFinishEvent:()=>e_e,ProjectLoadingStartEvent:()=>Zhe,ProjectService:()=>$_e,ProjectsUpdatedInBackgroundEvent:()=>Qhe,ScriptInfo:()=>Dhe,ScriptVersionCache:()=>Wge,Session:()=>Rge,TextStorage:()=>Rhe,ThrottledOperations:()=>phe,TypingsInstallerAdapter:()=>Uge,allFilesAreJsOrDts:()=>khe,allRootFilesAreJsOrDts:()=>Lhe,asNormalizedPath:()=>ihe,convertCompilerOptions:()=>__e,convertFormatOptions:()=>h_e,convertScriptKindName:()=>b_e,convertTypeAcquisition:()=>y_e,convertUserPreferences:()=>T_e,convertWatchOptions:()=>g_e,countEachFileTypes:()=>Phe,createInstallTypingsRequest:()=>the,createModuleSpecifierCache:()=>ege,createNormalizedPathMap:()=>ahe,createPackageJsonCache:()=>nge,createSortedArray:()=>uhe,emptyArray:()=>ehe,findArgument:()=>hX,formatDiagnosticToProtocol:()=>sge,formatMessage:()=>cge,getBaseConfigFileName:()=>mhe,getDetailWatchInfo:()=>W_e,getLocationInNewDocument:()=>Mge,hasArgument:()=>mX,hasNoTypeScriptSource:()=>whe,indent:()=>yX,isBackgroundProject:()=>Jhe,isConfigFile:()=>Q_e,isConfiguredProject:()=>Khe,isDynamicFileName:()=>Ihe,isExternalProject:()=>qhe,isInferredProject:()=>Hhe,isInferredProjectName:()=>she,isProjectDeferredClose:()=>Xhe,makeAutoImportProviderProjectName:()=>che,makeAuxiliaryProjectName:()=>dhe,makeInferredProjectName:()=>lhe,maxFileSize:()=>$he,maxProgramSizeForNonTsFiles:()=>Yhe,normalizedPathToPath:()=>ohe,nowString:()=>_X,nullCancellationToken:()=>tge,nullTypingsInstaller:()=>x_e,protocol:()=>hhe,scriptInfoIsContainedByBackgroundProject:()=>Che,scriptInfoIsContainedByDeferredClosedProject:()=>Nhe,stringifyIndented:()=>vX,toEvent:()=>uge,toNormalizedPath:()=>rhe,tryConvertScriptKindName:()=>v_e,typingsInstaller:()=>Ume,updateProjectIfDirty:()=>B_e}),"undefined"!=typeof console&&(dt.loggingHost={log(e,n){switch(e){case 1:case 2:case 3:case 4:return}}})})({get exports(){return ii},set exports(e){ii=e}});var ai=ii.createClassifier,si=ii.createLanguageService,li=ii.displayPartsToString,ci=ii.EndOfLineState,di=ii.flattenDiagnosticMessageText,ui=ii.IndentStyle,pi=ii.ScriptKind,fi=ii.ScriptTarget,mi=ii.TokenClass,hi=ii,_i=Object.freeze({__proto__:null,EndOfLineState:ci,IndentStyle:ui,ScriptKind:pi,ScriptTarget:fi,TokenClass:mi,createClassifier:ai,createLanguageService:si,displayPartsToString:li,flattenDiagnosticMessageText:di,typescript:hi});const gi={};function yi(e){return"string"==typeof e?!!/^file:\/\/\//.test(e)&&!!gi[e.substr(8)]:0===e.path.indexOf("/lib.")&&!!gi[e.path.slice(1)]}gi["lib.d.ts"]='/*! *****************************************************************************\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/// <reference no-default-lib="true"/>\n\n/// <reference lib="es5" />\n/// <reference lib="dom" />\n/// <reference lib="webworker.importscripts" />\n/// <reference lib="scripthost" />\n',gi["lib.decorators.d.ts"]='/*! *****************************************************************************\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/// <reference no-default-lib="true"/>\n\n/**\n * The decorator context types provided to class element decorators.\n */\ntype ClassMemberDecoratorContext =\n | ClassMethodDecoratorContext\n | ClassGetterDecoratorContext\n | ClassSetterDecoratorContext\n | ClassFieldDecoratorContext\n | ClassAccessorDecoratorContext;\n\n/**\n * The decorator context types provided to any decorator.\n */\ntype DecoratorContext =\n | ClassDecoratorContext\n | ClassMemberDecoratorContext;\n\ntype DecoratorMetadataObject = Record<PropertyKey, unknown> & object;\n\ntype DecoratorMetadata = typeof globalThis extends { Symbol: { readonly metadata: symbol; }; } ? DecoratorMetadataObject : DecoratorMetadataObject | undefined;\n\n/**\n * Context provided to a class decorator.\n * @template Class The type of the decorated class associated with this context.\n */\ninterface ClassDecoratorContext<\n Class extends abstract new (...args: any) => any = abstract new (...args: any) => any,\n> {\n /** The kind of element that was decorated. */\n readonly kind: "class";\n\n /** The name of the decorated class. */\n readonly name: string | undefined;\n\n /**\n * Adds a callback to be invoked after the class definition has been finalized.\n *\n * @example\n * ```ts\n * function customElement(name: string): ClassDecoratorFunction {\n * return (target, context) => {\n * context.addInitializer(function () {\n * customElements.define(name, this);\n * });\n * }\n * }\n *\n * @customElement("my-element")\n * class MyElement {}\n * ```\n */\n addInitializer(initializer: (this: Class) => void): void;\n\n readonly metadata: DecoratorMetadata;\n}\n\n/**\n * Context provided to a class method decorator.\n * @template This The type on which the class element will be defined. For a static class element, this will be\n * the type of the constructor. For a non-static class element, this will be the type of the instance.\n * @template Value The type of the decorated class method.\n */\ninterface ClassMethodDecoratorContext<\n This = unknown,\n Value extends (this: This, ...args: any) => any = (this: This, ...args: any) => any,\n> {\n /** The kind of class element that was decorated. */\n readonly kind: "method";\n\n /** The name of the decorated class element. */\n readonly name: string | symbol;\n\n /** A value indicating whether the class element is a static (`true`) or instance (`false`) element. */\n readonly static: boolean;\n\n /** A value indicating whether the class element has a private name. */\n readonly private: boolean;\n\n /** An object that can be used to access the current value of the class element at runtime. */\n readonly access: {\n /**\n * Determines whether an object has a property with the same name as the decorated element.\n */\n has(object: This): boolean;\n /**\n * Gets the current value of the method from the provided object.\n *\n * @example\n * let fn = context.access.get(instance);\n */\n get(object: This): Value;\n };\n\n /**\n * Adds a callback to be invoked either after static methods are defined but before\n * static initializers are run (when decorating a `static` element), or before instance\n * initializers are run (when decorating a non-`static` element).\n *\n * @example\n * ```ts\n * const bound: ClassMethodDecoratorFunction = (value, context) {\n * if (context.private) throw new TypeError("Not supported on private methods.");\n * context.addInitializer(function () {\n * this[context.name] = this[context.name].bind(this);\n * });\n * }\n *\n * class C {\n * message = "Hello";\n *\n * @bound\n * m() {\n * console.log(this.message);\n * }\n * }\n * ```\n */\n addInitializer(initializer: (this: This) => void): void;\n\n readonly metadata: DecoratorMetadata;\n}\n\n/**\n * Context provided to a class getter decorator.\n * @template This The type on which the class element will be defined. For a static class element, this will be\n * the type of the constructor. For a non-static class element, this will be the type of the instance.\n * @template Value The property type of the decorated class getter.\n */\ninterface ClassGetterDecoratorContext<\n This = unknown,\n Value = unknown,\n> {\n /** The kind of class element that was decorated. */\n readonly kind: "getter";\n\n /** The name of the decorated class element. */\n readonly name: string | symbol;\n\n /** A value indicating whether the class element is a static (`true`) or instance (`false`) element. */\n readonly static: boolean;\n\n /** A value indicating whether the class element has a private name. */\n readonly private: boolean;\n\n /** An object that can be used to access the current value of the class element at runtime. */\n readonly access: {\n /**\n * Determines whether an object has a property with the same name as the decorated element.\n */\n has(object: This): boolean;\n /**\n * Invokes the getter on the provided object.\n *\n * @example\n * let value = context.access.get(instance);\n */\n get(object: This): Value;\n };\n\n /**\n * Adds a callback to be invoked either after static methods are defined but before\n * static initializers are run (when decorating a `static` element), or before instance\n * initializers are run (when decorating a non-`static` element).\n */\n addInitializer(initializer: (this: This) => void): void;\n\n readonly metadata: DecoratorMetadata;\n}\n\n/**\n * Context provided to a class setter decorator.\n * @template This The type on which the class element will be defined. For a static class element, this will be\n * the type of the constructor. For a non-static class element, this will be the type of the instance.\n * @template Value The type of the decorated class setter.\n */\ninterface ClassSetterDecoratorContext<\n This = unknown,\n Value = unknown,\n> {\n /** The kind of class element that was decorated. */\n readonly kind: "setter";\n\n /** The name of the decorated class element. */\n readonly name: string | symbol;\n\n /** A value indicating whether the class element is a static (`true`) or instance (`false`) element. */\n readonly static: boolean;\n\n /** A value indicating whether the class element has a private name. */\n readonly private: boolean;\n\n /** An object that can be used to access the current value of the class element at runtime. */\n readonly access: {\n /**\n * Determines whether an object has a property with the same name as the decorated element.\n */\n has(object: This): boolean;\n /**\n * Invokes the setter on the provided object.\n *\n * @example\n * context.access.set(instance, value);\n */\n set(object: This, value: Value): void;\n };\n\n /**\n * Adds a callback to be invoked either after static methods are defined but before\n * static initializers are run (when decorating a `static` element), or before instance\n * initializers are run (when decorating a non-`static` element).\n */\n addInitializer(initializer: (this: This) => void): void;\n\n readonly metadata: DecoratorMetadata;\n}\n\n/**\n * Context provided to a class `accessor` field decorator.\n * @template This The type on which the class element will be defined. For a static class element, this will be\n * the type of the constructor. For a non-static class element, this will be the type of the instance.\n * @template Value The type of decorated class field.\n */\ninterface ClassAccessorDecoratorContext<\n This = unknown,\n Value = unknown,\n> {\n /** The kind of class element that was decorated. */\n readonly kind: "accessor";\n\n /** The name of the decorated class element. */\n readonly name: string | symbol;\n\n /** A value indicating whether the class element is a static (`true`) or instance (`false`) element. */\n readonly static: boolean;\n\n /** A value indicating whether the class element has a private name. */\n readonly private: boolean;\n\n /** An object that can be used to access the current value of the class element at runtime. */\n readonly access: {\n /**\n * Determines whether an object has a property with the same name as the decorated element.\n */\n has(object: This): boolean;\n\n /**\n * Invokes the getter on the provided object.\n *\n * @example\n * let value = context.access.get(instance);\n */\n get(object: This): Value;\n\n /**\n * Invokes the setter on the provided object.\n *\n * @example\n * context.access.set(instance, value);\n */\n set(object: This, value: Value): void;\n };\n\n /**\n * Adds a callback to be invoked immediately after the auto `accessor` being\n * decorated is initialized (regardless if the `accessor` is `static` or not).\n */\n addInitializer(initializer: (this: This) => void): void;\n\n readonly metadata: DecoratorMetadata;\n}\n\n/**\n * Describes the target provided to class `accessor` field decorators.\n * @template This The `this` type to which the target applies.\n * @template Value The property type for the class `accessor` field.\n */\ninterface ClassAccessorDecoratorTarget<This, Value> {\n /**\n * Invokes the getter that was defined prior to decorator application.\n *\n * @example\n * let value = target.get.call(instance);\n */\n get(this: This): Value;\n\n /**\n * Invokes the setter that was defined prior to decorator application.\n *\n * @example\n * target.set.call(instance, value);\n */\n set(this: This, value: Value): void;\n}\n\n/**\n * Describes the allowed return value from a class `accessor` field decorator.\n * @template This The `this` type to which the target applies.\n * @template Value The property type for the class `accessor` field.\n */\ninterface ClassAccessorDecoratorResult<This, Value> {\n /**\n * An optional replacement getter function. If not provided, the existing getter function is used instead.\n */\n get?(this: This): Value;\n\n /**\n * An optional replacement setter function. If not provided, the existing setter function is used instead.\n */\n set?(this: This, value: Value): void;\n\n /**\n * An optional initializer mutator that is invoked when the underlying field initializer is evaluated.\n * @param value The incoming initializer value.\n * @returns The replacement initializer value.\n */\n init?(this: This, value: Value): Value;\n}\n\n/**\n * Context provided to a class field decorator.\n * @template This The type on which the class element will be defined. For a static class element, this will be\n * the type of the constructor. For a non-static class element, this will be the type of the instance.\n * @template Value The type of the decorated class field.\n */\ninterface ClassFieldDecoratorContext<\n This = unknown,\n Value = unknown,\n> {\n /** The kind of class element that was decorated. */\n readonly kind: "field";\n\n /** The name of the decorated class element. */\n readonly name: string | symbol;\n\n /** A value indicating whether the class element is a static (`true`) or instance (`false`) element. */\n readonly static: boolean;\n\n /** A value indicating whether the class element has a private name. */\n readonly private: boolean;\n\n /** An object that can be used to access the current value of the class element at runtime. */\n readonly access: {\n /**\n * Determines whether an object has a property with the same name as the decorated element.\n */\n has(object: This): boolean;\n\n /**\n * Gets the value of the field on the provided object.\n */\n get(object: This): Value;\n\n /**\n * Sets the value of the field on the provided object.\n */\n set(object: This, value: Value): void;\n };\n\n /**\n * Adds a callback to be invoked immediately after the field being decorated\n * is initialized (regardless if the field is `static` or not).\n */\n addInitializer(initializer: (this: This) => void): void;\n\n readonly metadata: DecoratorMetadata;\n}\n',gi["lib.decorators.legacy.d.ts"]='/*! *****************************************************************************\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/// <reference no-default-lib="true"/>\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 | undefined, parameterIndex: number) => void;\n',gi["lib.dom.asynciterable.d.ts"]='/*! *****************************************************************************\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/// <reference no-default-lib="true"/>\n\n/////////////////////////////\n/// Window Async Iterable APIs\n/////////////////////////////\n\ninterface FileSystemDirectoryHandleAsyncIterator<T> extends AsyncIteratorObject<T, BuiltinIteratorReturn, unknown> {\n [Symbol.asyncIterator](): FileSystemDirectoryHandleAsyncIterator<T>;\n}\n\ninterface FileSystemDirectoryHandle {\n [Symbol.asyncIterator](): FileSystemDirectoryHandleAsyncIterator<[string, FileSystemHandle]>;\n entries(): FileSystemDirectoryHandleAsyncIterator<[string, FileSystemHandle]>;\n keys(): FileSystemDirectoryHandleAsyncIterator<string>;\n values(): FileSystemDirectoryHandleAsyncIterator<FileSystemHandle>;\n}\n\ninterface ReadableStreamAsyncIterator<T> extends AsyncIteratorObject<T, BuiltinIteratorReturn, unknown> {\n [Symbol.asyncIterator](): ReadableStreamAsyncIterator<T>;\n}\n\ninterface ReadableStream<R = any> {\n [Symbol.asyncIterator](options?: ReadableStreamIteratorOptions): ReadableStreamAsyncIterator<R>;\n values(options?: ReadableStreamIteratorOptions): ReadableStreamAsyncIterator<R>;\n}\n',gi["lib.dom.d.ts"]='/*! *****************************************************************************\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/// <reference no-default-lib="true"/>\n\n/////////////////////////////\n/// Window APIs\n/////////////////////////////\n\ninterface AddEventListenerOptions extends EventListenerOptions {\n once?: boolean;\n passive?: boolean;\n signal?: AbortSignal;\n}\n\ninterface AddressErrors {\n addressLine?: string;\n city?: string;\n country?: string;\n dependentLocality?: string;\n organization?: string;\n phone?: string;\n postalCode?: string;\n recipient?: string;\n region?: string;\n sortingCode?: string;\n}\n\ninterface AesCbcParams extends Algorithm {\n iv: BufferSource;\n}\n\ninterface AesCtrParams extends Algorithm {\n counter: BufferSource;\n length: number;\n}\n\ninterface AesDerivedKeyParams extends Algorithm {\n length: number;\n}\n\ninterface AesGcmParams extends Algorithm {\n additionalData?: BufferSource;\n iv: BufferSource;\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?: CSSNumberish | null;\n timelineTime?: CSSNumberish | null;\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 AudioConfiguration {\n bitrate?: number;\n channels?: string;\n contentType: string;\n samplerate?: number;\n spatialRendering?: boolean;\n}\n\ninterface AudioContextOptions {\n latencyHint?: AudioContextLatencyCategory | number;\n sampleRate?: number;\n}\n\ninterface AudioDataCopyToOptions {\n format?: AudioSampleFormat;\n frameCount?: number;\n frameOffset?: number;\n planeIndex: number;\n}\n\ninterface AudioDataInit {\n data: BufferSource;\n format: AudioSampleFormat;\n numberOfChannels: number;\n numberOfFrames: number;\n sampleRate: number;\n timestamp: number;\n transfer?: ArrayBuffer[];\n}\n\ninterface AudioDecoderConfig {\n codec: string;\n description?: AllowSharedBufferSource;\n numberOfChannels: number;\n sampleRate: number;\n}\n\ninterface AudioDecoderInit {\n error: WebCodecsErrorCallback;\n output: AudioDataOutputCallback;\n}\n\ninterface AudioDecoderSupport {\n config?: AudioDecoderConfig;\n supported?: boolean;\n}\n\ninterface AudioEncoderConfig {\n bitrate?: number;\n bitrateMode?: BitrateMode;\n codec: string;\n numberOfChannels: number;\n opus?: OpusEncoderConfig;\n sampleRate: number;\n}\n\ninterface AudioEncoderInit {\n error: WebCodecsErrorCallback;\n output: EncodedAudioChunkOutputCallback;\n}\n\ninterface AudioEncoderSupport {\n config?: AudioEncoderConfig;\n supported?: boolean;\n}\n\ninterface AudioNodeOptions {\n channelCount?: number;\n channelCountMode?: ChannelCountMode;\n channelInterpretation?: ChannelInterpretation;\n}\n\ninterface AudioProcessingEventInit extends EventInit {\n inputBuffer: AudioBuffer;\n outputBuffer: AudioBuffer;\n playbackTime: number;\n}\n\ninterface AudioTimestamp {\n contextTime?: number;\n performanceTime?: DOMHighResTimeStamp;\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 credProps?: boolean;\n credentialProtectionPolicy?: string;\n enforceCredentialProtectionPolicy?: boolean;\n hmacCreateSecret?: boolean;\n largeBlob?: AuthenticationExtensionsLargeBlobInputs;\n minPinLength?: boolean;\n prf?: AuthenticationExtensionsPRFInputs;\n}\n\ninterface AuthenticationExtensionsClientInputsJSON {\n appid?: string;\n credProps?: boolean;\n largeBlob?: AuthenticationExtensionsLargeBlobInputsJSON;\n prf?: AuthenticationExtensionsPRFInputsJSON;\n}\n\ninterface AuthenticationExtensionsClientOutputs {\n appid?: boolean;\n credProps?: CredentialPropertiesOutput;\n hmacCreateSecret?: boolean;\n largeBlob?: AuthenticationExtensionsLargeBlobOutputs;\n prf?: AuthenticationExtensionsPRFOutputs;\n}\n\ninterface AuthenticationExtensionsLargeBlobInputs {\n read?: boolean;\n support?: string;\n write?: BufferSource;\n}\n\ninterface AuthenticationExtensionsLargeBlobInputsJSON {\n read?: boolean;\n support?: string;\n write?: Base64URLString;\n}\n\ninterface AuthenticationExtensionsLargeBlobOutputs {\n blob?: ArrayBuffer;\n supported?: boolean;\n written?: boolean;\n}\n\ninterface AuthenticationExtensionsPRFInputs {\n eval?: AuthenticationExtensionsPRFValues;\n evalByCredential?: Record<string, AuthenticationExtensionsPRFValues>;\n}\n\ninterface AuthenticationExtensionsPRFInputsJSON {\n eval?: AuthenticationExtensionsPRFValuesJSON;\n evalByCredential?: Record<string, AuthenticationExtensionsPRFValuesJSON>;\n}\n\ninterface AuthenticationExtensionsPRFOutputs {\n enabled?: boolean;\n results?: AuthenticationExtensionsPRFValues;\n}\n\ninterface AuthenticationExtensionsPRFValues {\n first: BufferSource;\n second?: BufferSource;\n}\n\ninterface AuthenticationExtensionsPRFValuesJSON {\n first: Base64URLString;\n second?: Base64URLString;\n}\n\ninterface AuthenticatorSelectionCriteria {\n authenticatorAttachment?: AuthenticatorAttachment;\n requireResidentKey?: boolean;\n residentKey?: ResidentKeyRequirement;\n userVerification?: UserVerificationRequirement;\n}\n\ninterface AvcEncoderConfig {\n format?: AvcBitstreamFormat;\n}\n\ninterface BiquadFilterOptions extends AudioNodeOptions {\n Q?: number;\n detune?: number;\n frequency?: number;\n gain?: number;\n type?: BiquadFilterType;\n}\n\ninterface BlobEventInit extends EventInit {\n data: Blob;\n timecode?: DOMHighResTimeStamp;\n}\n\ninterface BlobPropertyBag {\n endings?: EndingType;\n type?: string;\n}\n\ninterface CSSMatrixComponentOptions {\n is2D?: boolean;\n}\n\ninterface CSSNumericType {\n angle?: number;\n flex?: number;\n frequency?: number;\n length?: number;\n percent?: number;\n percentHint?: CSSNumericBaseType;\n resolution?: number;\n time?: number;\n}\n\ninterface CSSStyleSheetInit {\n baseURL?: string;\n disabled?: boolean;\n media?: MediaList | string;\n}\n\ninterface CacheQueryOptions {\n ignoreMethod?: boolean;\n ignoreSearch?: boolean;\n ignoreVary?: boolean;\n}\n\ninterface CanvasRenderingContext2DSettings {\n alpha?: boolean;\n colorSpace?: PredefinedColorSpace;\n desynchronized?: boolean;\n willReadFrequently?: boolean;\n}\n\ninterface CaretPositionFromPointOptions {\n shadowRoots?: ShadowRoot[];\n}\n\ninterface ChannelMergerOptions extends AudioNodeOptions {\n numberOfInputs?: number;\n}\n\ninterface ChannelSplitterOptions extends AudioNodeOptions {\n numberOfOutputs?: number;\n}\n\ninterface CheckVisibilityOptions {\n checkOpacity?: boolean;\n checkVisibilityCSS?: boolean;\n contentVisibilityAuto?: boolean;\n opacityProperty?: boolean;\n visibilityProperty?: boolean;\n}\n\ninterface ClientQueryOptions {\n includeUncontrolled?: boolean;\n type?: ClientTypes;\n}\n\ninterface ClipboardEventInit extends EventInit {\n clipboardData?: DataTransfer | null;\n}\n\ninterface ClipboardItemOptions {\n presentationStyle?: PresentationStyle;\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?: CSSNumberish;\n currentIteration?: number | null;\n endTime?: CSSNumberish;\n localTime?: CSSNumberish | null;\n progress?: number | null;\n startTime?: CSSNumberish;\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 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 ContentVisibilityAutoStateChangeEventInit extends EventInit {\n skipped?: boolean;\n}\n\ninterface ConvolverOptions extends AudioNodeOptions {\n buffer?: AudioBuffer | null;\n disableNormalization?: boolean;\n}\n\ninterface CookieChangeEventInit extends EventInit {\n changed?: CookieList;\n deleted?: CookieList;\n}\n\ninterface CookieInit {\n domain?: string | null;\n expires?: DOMHighResTimeStamp | null;\n name: string;\n partitioned?: boolean;\n path?: string;\n sameSite?: CookieSameSite;\n value: string;\n}\n\ninterface CookieListItem {\n name?: string;\n value?: string;\n}\n\ninterface CookieStoreDeleteOptions {\n domain?: string | null;\n name: string;\n partitioned?: boolean;\n path?: string;\n}\n\ninterface CookieStoreGetOptions {\n name?: string;\n url?: string;\n}\n\ninterface CredentialCreationOptions {\n publicKey?: PublicKeyCredentialCreationOptions;\n signal?: AbortSignal;\n}\n\ninterface CredentialPropertiesOutput {\n rk?: boolean;\n}\n\ninterface CredentialRequestOptions {\n mediation?: CredentialMediationRequirement;\n publicKey?: PublicKeyCredentialRequestOptions;\n signal?: AbortSignal;\n}\n\ninterface CryptoKeyPair {\n privateKey: CryptoKey;\n publicKey: CryptoKey;\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 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 DisplayMediaStreamOptions {\n audio?: boolean | MediaTrackConstraints;\n video?: boolean | MediaTrackConstraints;\n}\n\ninterface DocumentTimelineOptions {\n originTime?: DOMHighResTimeStamp;\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 | CSSNumericValue | string;\n easing?: string;\n endDelay?: number;\n fill?: FillMode;\n iterationStart?: number;\n iterations?: number;\n playbackRate?: number;\n}\n\ninterface ElementCreationOptions {\n customElementRegistry?: CustomElementRegistry;\n is?: string;\n}\n\ninterface ElementDefinitionOptions {\n extends?: string;\n}\n\ninterface EncodedAudioChunkInit {\n data: AllowSharedBufferSource;\n duration?: number;\n timestamp: number;\n transfer?: ArrayBuffer[];\n type: EncodedAudioChunkType;\n}\n\ninterface EncodedAudioChunkMetadata {\n decoderConfig?: AudioDecoderConfig;\n}\n\ninterface EncodedVideoChunkInit {\n data: AllowSharedBufferSource;\n duration?: number;\n timestamp: number;\n type: EncodedVideoChunkType;\n}\n\ninterface EncodedVideoChunkMetadata {\n decoderConfig?: VideoDecoderConfig;\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 FilePropertyBag extends BlobPropertyBag {\n lastModified?: number;\n}\n\ninterface FileSystemCreateWritableOptions {\n keepExistingData?: boolean;\n}\n\ninterface FileSystemFlags {\n create?: boolean;\n exclusive?: boolean;\n}\n\ninterface FileSystemGetDirectoryOptions {\n create?: boolean;\n}\n\ninterface FileSystemGetFileOptions {\n create?: boolean;\n}\n\ninterface FileSystemRemoveOptions {\n recursive?: boolean;\n}\n\ninterface FocusEventInit extends UIEventInit {\n relatedTarget?: EventTarget | null;\n}\n\ninterface FocusOptions {\n preventScroll?: boolean;\n}\n\ninterface FontFaceDescriptors {\n ascentOverride?: string;\n descentOverride?: string;\n display?: FontDisplay;\n featureSettings?: string;\n lineGapOverride?: string;\n stretch?: string;\n style?: string;\n unicodeRange?: string;\n weight?: string;\n}\n\ninterface FontFaceSetLoadEventInit extends EventInit {\n fontfaces?: FontFace[];\n}\n\ninterface FormDataEventInit extends EventInit {\n formData: FormData;\n}\n\ninterface FullscreenOptions {\n navigationUI?: FullscreenNavigationUI;\n}\n\ninterface GainOptions extends AudioNodeOptions {\n gain?: number;\n}\n\ninterface GamepadEffectParameters {\n duration?: number;\n leftTrigger?: number;\n rightTrigger?: number;\n startDelay?: number;\n strongMagnitude?: number;\n weakMagnitude?: number;\n}\n\ninterface GamepadEventInit extends EventInit {\n gamepad: Gamepad;\n}\n\ninterface GetAnimationsOptions {\n subtree?: boolean;\n}\n\ninterface GetComposedRangesOptions {\n shadowRoots?: ShadowRoot[];\n}\n\ninterface GetHTMLOptions {\n serializableShadowRoots?: boolean;\n shadowRoots?: ShadowRoot[];\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: BufferSource;\n salt: BufferSource;\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 IDBDatabaseInfo {\n name?: string;\n version?: 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 IDBTransactionOptions {\n durability?: IDBTransactionDurability;\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 IdleRequestOptions {\n timeout?: number;\n}\n\ninterface ImageBitmapOptions {\n colorSpaceConversion?: ColorSpaceConversion;\n imageOrientation?: ImageOrientation;\n premultiplyAlpha?: PremultiplyAlpha;\n resizeHeight?: number;\n resizeQuality?: ResizeQuality;\n resizeWidth?: number;\n}\n\ninterface ImageBitmapRenderingContextSettings {\n alpha?: boolean;\n}\n\ninterface ImageDataSettings {\n colorSpace?: PredefinedColorSpace;\n}\n\ninterface ImageDecodeOptions {\n completeFramesOnly?: boolean;\n frameIndex?: number;\n}\n\ninterface ImageDecodeResult {\n complete: boolean;\n image: VideoFrame;\n}\n\ninterface ImageDecoderInit {\n colorSpaceConversion?: ColorSpaceConversion;\n data: ImageBufferSource;\n desiredHeight?: number;\n desiredWidth?: number;\n preferAnimation?: boolean;\n transfer?: ArrayBuffer[];\n type: string;\n}\n\ninterface ImageEncodeOptions {\n quality?: number;\n type?: string;\n}\n\ninterface ImportNodeOptions {\n customElementRegistry?: CustomElementRegistry;\n selfOnly?: boolean;\n}\n\ninterface InputEventInit extends UIEventInit {\n data?: string | null;\n dataTransfer?: DataTransfer | null;\n inputType?: string;\n isComposing?: boolean;\n targetRanges?: StaticRange[];\n}\n\ninterface IntersectionObserverInit {\n root?: Element | Document | 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 KeySystemTrackConfiguration {\n robustness?: string;\n}\n\ninterface KeyboardEventInit extends EventModifierInit {\n /** @deprecated */\n charCode?: number;\n code?: string;\n isComposing?: boolean;\n key?: string;\n /** @deprecated */\n keyCode?: number;\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 timeline?: AnimationTimeline | null;\n}\n\ninterface KeyframeEffectOptions extends EffectTiming {\n composite?: CompositeOperation;\n iterationComposite?: IterationCompositeOperation;\n pseudoElement?: string | null;\n}\n\ninterface LockInfo {\n clientId?: string;\n mode?: LockMode;\n name?: string;\n}\n\ninterface LockManagerSnapshot {\n held?: LockInfo[];\n pending?: LockInfo[];\n}\n\ninterface LockOptions {\n ifAvailable?: boolean;\n mode?: LockMode;\n signal?: AbortSignal;\n steal?: boolean;\n}\n\ninterface MIDIConnectionEventInit extends EventInit {\n port?: MIDIPort;\n}\n\ninterface MIDIMessageEventInit extends EventInit {\n data?: Uint8Array<ArrayBuffer>;\n}\n\ninterface MIDIOptions {\n software?: boolean;\n sysex?: boolean;\n}\n\ninterface MediaCapabilitiesDecodingInfo extends MediaCapabilitiesInfo {\n keySystemAccess: MediaKeySystemAccess | null;\n}\n\ninterface MediaCapabilitiesEncodingInfo extends MediaCapabilitiesInfo {\n}\n\ninterface MediaCapabilitiesInfo {\n powerEfficient: boolean;\n smooth: boolean;\n supported: boolean;\n}\n\ninterface MediaCapabilitiesKeySystemConfiguration {\n audio?: KeySystemTrackConfiguration;\n distinctiveIdentifier?: MediaKeysRequirement;\n initDataType?: string;\n keySystem: string;\n persistentState?: MediaKeysRequirement;\n sessionTypes?: string[];\n video?: KeySystemTrackConfiguration;\n}\n\ninterface MediaConfiguration {\n audio?: AudioConfiguration;\n video?: VideoConfiguration;\n}\n\ninterface MediaDecodingConfiguration extends MediaConfiguration {\n keySystemConfiguration?: MediaCapabilitiesKeySystemConfiguration;\n type: MediaDecodingType;\n}\n\ninterface MediaElementAudioSourceOptions {\n mediaElement: HTMLMediaElement;\n}\n\ninterface MediaEncodingConfiguration extends MediaConfiguration {\n type: MediaEncodingType;\n}\n\ninterface MediaEncryptedEventInit extends EventInit {\n initData?: ArrayBuffer | null;\n initDataType?: string;\n}\n\ninterface MediaImage {\n sizes?: string;\n src: string;\n type?: 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 encryptionScheme?: string | null;\n robustness?: string;\n}\n\ninterface MediaKeysPolicy {\n minHdcpVersion?: string;\n}\n\ninterface MediaMetadataInit {\n album?: string;\n artist?: string;\n artwork?: MediaImage[];\n title?: string;\n}\n\ninterface MediaPositionState {\n duration?: number;\n playbackRate?: number;\n position?: number;\n}\n\ninterface MediaQueryListEventInit extends EventInit {\n matches?: boolean;\n media?: string;\n}\n\ninterface MediaRecorderOptions {\n audioBitsPerSecond?: number;\n bitsPerSecond?: number;\n mimeType?: string;\n videoBitsPerSecond?: number;\n}\n\ninterface MediaSessionActionDetails {\n action: MediaSessionAction;\n fastSeek?: boolean;\n seekOffset?: number;\n seekTime?: number;\n}\n\ninterface MediaSettingsRange {\n max?: number;\n min?: number;\n step?: number;\n}\n\ninterface MediaStreamAudioSourceOptions {\n mediaStream: MediaStream;\n}\n\ninterface MediaStreamConstraints {\n audio?: boolean | MediaTrackConstraints;\n peerIdentity?: string;\n preferCurrentTab?: boolean;\n video?: boolean | MediaTrackConstraints;\n}\n\ninterface MediaStreamTrackEventInit extends EventInit {\n track: MediaStreamTrack;\n}\n\ninterface MediaTrackCapabilities {\n aspectRatio?: DoubleRange;\n autoGainControl?: boolean[];\n backgroundBlur?: boolean[];\n channelCount?: ULongRange;\n deviceId?: string;\n displaySurface?: string;\n echoCancellation?: boolean[];\n facingMode?: string[];\n frameRate?: DoubleRange;\n groupId?: string;\n height?: ULongRange;\n noiseSuppression?: boolean[];\n sampleRate?: ULongRange;\n sampleSize?: ULongRange;\n width?: ULongRange;\n}\n\ninterface MediaTrackConstraintSet {\n aspectRatio?: ConstrainDouble;\n autoGainControl?: ConstrainBoolean;\n backgroundBlur?: ConstrainBoolean;\n channelCount?: ConstrainULong;\n deviceId?: ConstrainDOMString;\n displaySurface?: ConstrainDOMString;\n echoCancellation?: ConstrainBoolean;\n facingMode?: ConstrainDOMString;\n frameRate?: ConstrainDouble;\n groupId?: ConstrainDOMString;\n height?: ConstrainULong;\n noiseSuppression?: ConstrainBoolean;\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 backgroundBlur?: boolean;\n channelCount?: number;\n deviceId?: string;\n displaySurface?: string;\n echoCancellation?: boolean;\n facingMode?: string;\n frameRate?: number;\n groupId?: string;\n height?: number;\n noiseSuppression?: boolean;\n sampleRate?: number;\n sampleSize?: number;\n torch?: boolean;\n whiteBalanceMode?: string;\n width?: number;\n zoom?: number;\n}\n\ninterface MediaTrackSupportedConstraints {\n aspectRatio?: boolean;\n autoGainControl?: boolean;\n backgroundBlur?: boolean;\n channelCount?: boolean;\n deviceId?: boolean;\n displaySurface?: boolean;\n echoCancellation?: boolean;\n facingMode?: boolean;\n frameRate?: boolean;\n groupId?: boolean;\n height?: boolean;\n noiseSuppression?: boolean;\n sampleRate?: boolean;\n sampleSize?: boolean;\n width?: boolean;\n}\n\ninterface MessageEventInit<T = any> extends EventInit {\n data?: T;\n lastEventId?: string;\n origin?: string;\n ports?: MessagePort[];\n source?: MessageEventSource | null;\n}\n\ninterface MouseEventInit extends EventModifierInit {\n button?: number;\n buttons?: number;\n clientX?: number;\n clientY?: number;\n 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 /** 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 attributeFilter?: string[];\n /** Set to true if attributes is true or omitted and target\'s attribute value before the mutation needs to be recorded. */\n attributeOldValue?: boolean;\n /** Set to true if mutations to target\'s attributes are to be observed. Can be omitted if attributeOldValue or attributeFilter is specified. */\n attributes?: boolean;\n /** Set to true if mutations to target\'s data are to be observed. Can be omitted if characterDataOldValue is specified. */\n characterData?: boolean;\n /** Set to true if characterData is set to true or omitted and target\'s data before the mutation needs to be recorded. */\n characterDataOldValue?: boolean;\n /** Set to true if mutations to target\'s children are to be observed. */\n childList?: boolean;\n /** Set to true if mutations to not just target, but also target\'s descendants are to be observed. */\n subtree?: boolean;\n}\n\ninterface NavigationPreloadState {\n enabled?: boolean;\n headerValue?: string;\n}\n\ninterface NotificationOptions {\n badge?: string;\n body?: string;\n data?: any;\n dir?: NotificationDirection;\n icon?: string;\n lang?: string;\n requireInteraction?: boolean;\n silent?: boolean | null;\n tag?: string;\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 playbackRate?: number;\n}\n\ninterface OpusEncoderConfig {\n complexity?: number;\n format?: OpusBitstreamFormat;\n frameDuration?: number;\n packetlossperc?: number;\n usedtx?: boolean;\n useinbandfec?: boolean;\n}\n\ninterface OscillatorOptions extends AudioNodeOptions {\n detune?: number;\n frequency?: number;\n periodicWave?: PeriodicWave;\n type?: OscillatorType;\n}\n\ninterface PageRevealEventInit extends EventInit {\n viewTransition?: ViewTransition | null;\n}\n\ninterface PageSwapEventInit extends EventInit {\n activation?: NavigationActivation | null;\n viewTransition?: ViewTransition | null;\n}\n\ninterface PageTransitionEventInit extends EventInit {\n persisted?: boolean;\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 PayerErrors {\n email?: string;\n name?: string;\n phone?: string;\n}\n\ninterface PaymentCurrencyAmount {\n currency: 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;\n total?: PaymentItem;\n}\n\ninterface PaymentDetailsUpdate extends PaymentDetailsBase {\n error?: string;\n paymentMethodErrors?: any;\n shippingAddressErrors?: AddressErrors;\n total?: PaymentItem;\n}\n\ninterface PaymentItem {\n amount: PaymentCurrencyAmount;\n label: string;\n pending?: boolean;\n}\n\ninterface PaymentMethodChangeEventInit extends PaymentRequestUpdateEventInit {\n methodDetails?: any;\n methodName?: string;\n}\n\ninterface PaymentMethodData {\n data?: any;\n supportedMethods: string;\n}\n\ninterface PaymentOptions {\n requestPayerEmail?: boolean;\n requestPayerName?: boolean;\n requestPayerPhone?: boolean;\n requestShipping?: boolean;\n shippingType?: PaymentShippingType;\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 PaymentValidationErrors {\n error?: string;\n payer?: PayerErrors;\n shippingAddress?: AddressErrors;\n}\n\ninterface Pbkdf2Params extends Algorithm {\n hash: HashAlgorithmIdentifier;\n iterations: number;\n salt: BufferSource;\n}\n\ninterface PerformanceMarkOptions {\n detail?: any;\n startTime?: DOMHighResTimeStamp;\n}\n\ninterface PerformanceMeasureOptions {\n detail?: any;\n duration?: DOMHighResTimeStamp;\n end?: string | DOMHighResTimeStamp;\n start?: string | DOMHighResTimeStamp;\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 PhotoCapabilities {\n fillLightMode?: FillLightMode[];\n imageHeight?: MediaSettingsRange;\n imageWidth?: MediaSettingsRange;\n redEyeReduction?: RedEyeReduction;\n}\n\ninterface PhotoSettings {\n fillLightMode?: FillLightMode;\n imageHeight?: number;\n imageWidth?: number;\n redEyeReduction?: boolean;\n}\n\ninterface PictureInPictureEventInit extends EventInit {\n pictureInPictureWindow: PictureInPictureWindow;\n}\n\ninterface PlaneLayout {\n offset: number;\n stride: number;\n}\n\ninterface PointerEventInit extends MouseEventInit {\n altitudeAngle?: number;\n azimuthAngle?: number;\n coalescedEvents?: PointerEvent[];\n height?: number;\n isPrimary?: boolean;\n pointerId?: number;\n pointerType?: string;\n predictedEvents?: PointerEvent[];\n pressure?: number;\n tangentialPressure?: number;\n tiltX?: number;\n tiltY?: number;\n twist?: number;\n width?: number;\n}\n\ninterface PointerLockOptions {\n unadjustedMovement?: boolean;\n}\n\ninterface PopStateEventInit extends EventInit {\n state?: any;\n}\n\ninterface PositionOptions {\n enableHighAccuracy?: boolean;\n maximumAge?: number;\n timeout?: number;\n}\n\ninterface ProgressEventInit extends EventInit {\n lengthComputable?: boolean;\n loaded?: number;\n total?: number;\n}\n\ninterface PromiseRejectionEventInit extends EventInit {\n promise: Promise<any>;\n reason?: any;\n}\n\ninterface PropertyDefinition {\n inherits: boolean;\n initialValue?: string;\n name: string;\n syntax?: string;\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 PublicKeyCredentialCreationOptionsJSON {\n attestation?: string;\n authenticatorSelection?: AuthenticatorSelectionCriteria;\n challenge: Base64URLString;\n excludeCredentials?: PublicKeyCredentialDescriptorJSON[];\n extensions?: AuthenticationExtensionsClientInputsJSON;\n hints?: string[];\n pubKeyCredParams: PublicKeyCredentialParameters[];\n rp: PublicKeyCredentialRpEntity;\n timeout?: number;\n user: PublicKeyCredentialUserEntityJSON;\n}\n\ninterface PublicKeyCredentialDescriptor {\n id: BufferSource;\n transports?: AuthenticatorTransport[];\n type: PublicKeyCredentialType;\n}\n\ninterface PublicKeyCredentialDescriptorJSON {\n id: Base64URLString;\n transports?: string[];\n type: string;\n}\n\ninterface PublicKeyCredentialEntity {\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 PublicKeyCredentialRequestOptionsJSON {\n allowCredentials?: PublicKeyCredentialDescriptorJSON[];\n challenge: Base64URLString;\n extensions?: AuthenticationExtensionsClientInputsJSON;\n hints?: string[];\n rpId?: string;\n timeout?: number;\n userVerification?: string;\n}\n\ninterface PublicKeyCredentialRpEntity extends PublicKeyCredentialEntity {\n id?: string;\n}\n\ninterface PublicKeyCredentialUserEntity extends PublicKeyCredentialEntity {\n displayName: string;\n id: BufferSource;\n}\n\ninterface PublicKeyCredentialUserEntityJSON {\n displayName: string;\n id: Base64URLString;\n name: string;\n}\n\ninterface PushSubscriptionJSON {\n endpoint?: string;\n expirationTime?: EpochTimeStamp | 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?: QueuingStrategySize<T>;\n}\n\ninterface QueuingStrategyInit {\n /**\n * Creates a new ByteLengthQueuingStrategy with the provided high water mark.\n *\n * Note that the provided high water mark will not be validated ahead of time. Instead, if it is negative, NaN, or not a number, the resulting ByteLengthQueuingStrategy will cause the corresponding stream constructor to throw.\n */\n highWaterMark: number;\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 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 protocol?: string;\n}\n\ninterface RTCDtlsFingerprint {\n algorithm?: string;\n value?: string;\n}\n\ninterface RTCEncodedAudioFrameMetadata extends RTCEncodedFrameMetadata {\n sequenceNumber?: number;\n}\n\ninterface RTCEncodedFrameMetadata {\n contributingSources?: number[];\n mimeType?: string;\n payloadType?: number;\n rtpTimestamp?: number;\n synchronizationSource?: number;\n}\n\ninterface RTCEncodedVideoFrameMetadata extends RTCEncodedFrameMetadata {\n dependencies?: number[];\n frameId?: number;\n height?: number;\n spatialIndex?: number;\n temporalIndex?: number;\n timestamp?: number;\n width?: number;\n}\n\ninterface RTCErrorEventInit extends EventInit {\n error: RTCError;\n}\n\ninterface RTCErrorInit {\n errorDetail: RTCErrorDetailType;\n httpRequestStatusCode?: number;\n receivedAlert?: number;\n sctpCauseCode?: number;\n sdpLineNumber?: number;\n sentAlert?: number;\n}\n\ninterface RTCIceCandidateInit {\n candidate?: string;\n sdpMLineIndex?: number | null;\n sdpMid?: string | null;\n usernameFragment?: string | null;\n}\n\ninterface RTCIceCandidatePairStats extends RTCStats {\n availableIncomingBitrate?: number;\n availableOutgoingBitrate?: number;\n bytesDiscardedOnSend?: number;\n bytesReceived?: number;\n bytesSent?: number;\n consentRequestsSent?: number;\n currentRoundTripTime?: number;\n lastPacketReceivedTimestamp?: DOMHighResTimeStamp;\n lastPacketSentTimestamp?: DOMHighResTimeStamp;\n localCandidateId: string;\n nominated?: boolean;\n packetsDiscardedOnSend?: number;\n packetsReceived?: number;\n packetsSent?: number;\n remoteCandidateId: string;\n requestsReceived?: number;\n requestsSent?: number;\n responsesReceived?: number;\n responsesSent?: number;\n state: RTCStatsIceCandidatePairState;\n totalRoundTripTime?: number;\n transportId: string;\n}\n\ninterface RTCIceServer {\n credential?: string;\n urls: string | string[];\n username?: string;\n}\n\ninterface RTCInboundRtpStreamStats extends RTCReceivedRtpStreamStats {\n audioLevel?: number;\n bytesReceived?: number;\n concealedSamples?: number;\n concealmentEvents?: number;\n decoderImplementation?: string;\n estimatedPlayoutTimestamp?: DOMHighResTimeStamp;\n fecBytesReceived?: number;\n fecPacketsDiscarded?: number;\n fecPacketsReceived?: number;\n fecSsrc?: number;\n firCount?: number;\n frameHeight?: number;\n frameWidth?: number;\n framesAssembledFromMultiplePackets?: number;\n framesDecoded?: number;\n framesDropped?: number;\n framesPerSecond?: number;\n framesReceived?: number;\n framesRendered?: number;\n freezeCount?: number;\n headerBytesReceived?: number;\n insertedSamplesForDeceleration?: number;\n jitterBufferDelay?: number;\n jitterBufferEmittedCount?: number;\n jitterBufferMinimumDelay?: number;\n jitterBufferTargetDelay?: number;\n keyFramesDecoded?: number;\n lastPacketReceivedTimestamp?: DOMHighResTimeStamp;\n mid?: string;\n nackCount?: number;\n packetsDiscarded?: number;\n pauseCount?: number;\n playoutId?: string;\n pliCount?: number;\n qpSum?: number;\n remoteId?: string;\n removedSamplesForAcceleration?: number;\n retransmittedBytesReceived?: number;\n retransmittedPacketsReceived?: number;\n rtxSsrc?: number;\n silentConcealedSamples?: number;\n totalAssemblyTime?: number;\n totalAudioEnergy?: number;\n totalDecodeTime?: number;\n totalFreezesDuration?: number;\n totalInterFrameDelay?: number;\n totalPausesDuration?: number;\n totalProcessingDelay?: number;\n totalSamplesDuration?: number;\n totalSamplesReceived?: number;\n totalSquaredInterFrameDelay?: number;\n trackIdentifier: string;\n}\n\ninterface RTCLocalIceCandidateInit extends RTCIceCandidateInit {\n}\n\ninterface RTCLocalSessionDescriptionInit {\n sdp?: string;\n type?: RTCSdpType;\n}\n\ninterface RTCOfferAnswerOptions {\n}\n\ninterface RTCOfferOptions extends RTCOfferAnswerOptions {\n iceRestart?: boolean;\n offerToReceiveAudio?: boolean;\n offerToReceiveVideo?: boolean;\n}\n\ninterface RTCOutboundRtpStreamStats extends RTCSentRtpStreamStats {\n active?: boolean;\n firCount?: number;\n frameHeight?: number;\n frameWidth?: number;\n framesEncoded?: number;\n framesPerSecond?: number;\n framesSent?: number;\n headerBytesSent?: number;\n hugeFramesSent?: number;\n keyFramesEncoded?: number;\n mediaSourceId?: string;\n mid?: string;\n nackCount?: number;\n pliCount?: number;\n qpSum?: number;\n qualityLimitationDurations?: Record<string, number>;\n qualityLimitationReason?: RTCQualityLimitationReason;\n qualityLimitationResolutionChanges?: number;\n remoteId?: string;\n retransmittedBytesSent?: number;\n retransmittedPacketsSent?: number;\n rid?: string;\n rtxSsrc?: number;\n scalabilityMode?: string;\n targetBitrate?: number;\n totalEncodeTime?: number;\n totalEncodedBytesTarget?: number;\n totalPacketSendDelay?: number;\n}\n\ninterface RTCPeerConnectionIceErrorEventInit extends EventInit {\n address?: string | null;\n errorCode: number;\n errorText?: string;\n port?: number | null;\n url?: string;\n}\n\ninterface RTCPeerConnectionIceEventInit extends EventInit {\n candidate?: RTCIceCandidate | null;\n}\n\ninterface RTCReceivedRtpStreamStats extends RTCRtpStreamStats {\n jitter?: number;\n packetsLost?: number;\n packetsReceived?: number;\n}\n\ninterface RTCRtcpParameters {\n cname?: string;\n reducedSize?: boolean;\n}\n\ninterface RTCRtpCapabilities {\n codecs: RTCRtpCodec[];\n headerExtensions: RTCRtpHeaderExtensionCapability[];\n}\n\ninterface RTCRtpCodec {\n channels?: number;\n clockRate: number;\n mimeType: string;\n sdpFmtpLine?: string;\n}\n\ninterface RTCRtpCodecParameters extends RTCRtpCodec {\n payloadType: number;\n}\n\ninterface RTCRtpCodingParameters {\n rid?: string;\n}\n\ninterface RTCRtpContributingSource {\n audioLevel?: number;\n rtpTimestamp: number;\n source: number;\n timestamp: DOMHighResTimeStamp;\n}\n\ninterface RTCRtpEncodingParameters extends RTCRtpCodingParameters {\n active?: boolean;\n maxBitrate?: number;\n maxFramerate?: number;\n networkPriority?: RTCPriorityType;\n priority?: RTCPriorityType;\n scaleResolutionDownBy?: number;\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}\n\ninterface RTCRtpSendParameters extends RTCRtpParameters {\n degradationPreference?: RTCDegradationPreference;\n encodings: RTCRtpEncodingParameters[];\n transactionId: string;\n}\n\ninterface RTCRtpStreamStats extends RTCStats {\n codecId?: string;\n kind: string;\n ssrc: number;\n transportId?: string;\n}\n\ninterface RTCRtpSynchronizationSource extends RTCRtpContributingSource {\n}\n\ninterface RTCRtpTransceiverInit {\n direction?: RTCRtpTransceiverDirection;\n sendEncodings?: RTCRtpEncodingParameters[];\n streams?: MediaStream[];\n}\n\ninterface RTCSentRtpStreamStats extends RTCRtpStreamStats {\n bytesSent?: number;\n packetsSent?: number;\n}\n\ninterface RTCSessionDescriptionInit {\n sdp?: string;\n type: RTCSdpType;\n}\n\ninterface RTCSetParameterOptions {\n}\n\ninterface RTCStats {\n id: string;\n timestamp: DOMHighResTimeStamp;\n type: RTCStatsType;\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 bytesReceived?: number;\n bytesSent?: number;\n dtlsCipher?: string;\n dtlsRole?: RTCDtlsRole;\n dtlsState: RTCDtlsTransportState;\n iceLocalUsernameFragment?: string;\n iceRole?: RTCIceRole;\n iceState?: RTCIceTransportState;\n localCertificateId?: string;\n packetsReceived?: number;\n packetsSent?: number;\n remoteCertificateId?: string;\n selectedCandidatePairChanges?: number;\n selectedCandidatePairId?: string;\n srtpCipher?: string;\n tlsVersion?: string;\n}\n\ninterface ReadableStreamGetReaderOptions {\n /**\n * Creates a ReadableStreamBYOBReader and locks the stream to the new reader.\n *\n * This call behaves the same way as the no-argument variant, except that it only works on readable byte streams, i.e. streams which were constructed specifically with the ability to handle "bring your own buffer" reading. The returned BYOB reader provides the ability to directly read individual chunks from the stream via its read() method, into developer-supplied buffers, allowing more precise control over allocation.\n */\n mode?: ReadableStreamReaderMode;\n}\n\ninterface ReadableStreamIteratorOptions {\n /**\n * Asynchronously iterates over the chunks in the stream\'s internal queue.\n *\n * Asynchronously iterating over the stream will lock it, preventing any other consumer from acquiring a reader. The lock will be released if the async iterator\'s return() method is called, e.g. by breaking out of the loop.\n *\n * By default, calling the async iterator\'s return() method will also cancel the stream. To prevent this, use the stream\'s values() method, passing true for the preventCancel option.\n */\n preventCancel?: boolean;\n}\n\ninterface ReadableStreamReadDoneResult<T> {\n done: true;\n value: T | undefined;\n}\n\ninterface ReadableStreamReadValueResult<T> {\n done: false;\n value: T;\n}\n\ninterface ReadableWritablePair<R = any, W = any> {\n readable: ReadableStream<R>;\n /**\n * Provides a convenient, chainable way of piping this readable stream through a transform stream (or any other { writable, readable } pair). It simply pipes the stream into the writable side of the supplied pair, and returns the readable side for further use.\n *\n * Piping a stream will lock it for the duration of the pipe, preventing any other consumer from acquiring a reader.\n */\n writable: WritableStream<W>;\n}\n\ninterface RegistrationOptions {\n scope?: string;\n type?: WorkerType;\n updateViaCache?: ServiceWorkerUpdateViaCache;\n}\n\ninterface ReportingObserverOptions {\n buffered?: boolean;\n types?: string[];\n}\n\ninterface RequestInit {\n /** A BodyInit object or null to set request\'s body. */\n body?: BodyInit | null;\n /** A string indicating how the request will interact with the browser\'s cache to set request\'s cache. */\n cache?: RequestCache;\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 credentials?: RequestCredentials;\n /** A Headers object, an object literal, or an array of two-item arrays to set request\'s headers. */\n headers?: HeadersInit;\n /** A cryptographic hash of the resource to be fetched by request. Sets request\'s integrity. */\n integrity?: string;\n /** A boolean to set request\'s keepalive. */\n keepalive?: boolean;\n /** A string to set request\'s method. */\n method?: string;\n /** A string to indicate whether the request will use CORS, or will be restricted to same-origin URLs. Sets request\'s mode. */\n mode?: RequestMode;\n priority?: RequestPriority;\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 redirect?: RequestRedirect;\n /** A string whose value is a same-origin URL, "about:client", or the empty string, to set request\'s referrer. */\n referrer?: string;\n /** A referrer policy to set request\'s referrerPolicy. */\n referrerPolicy?: ReferrerPolicy;\n /** An AbortSignal to set request\'s signal. */\n signal?: AbortSignal | null;\n /** Can only be null. Used to disassociate request from any Window. */\n window?: null;\n}\n\ninterface ResizeObserverOptions {\n box?: ResizeObserverBoxOptions;\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?: BufferSource;\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 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 disposition?: SecurityPolicyViolationEventDisposition;\n documentURI?: string;\n effectiveDirective?: string;\n lineNumber?: number;\n originalPolicy?: string;\n referrer?: string;\n sample?: string;\n sourceFile?: string;\n statusCode?: number;\n violatedDirective?: string;\n}\n\ninterface ShadowRootInit {\n clonable?: boolean;\n customElementRegistry?: CustomElementRegistry;\n delegatesFocus?: boolean;\n mode: ShadowRootMode;\n serializable?: boolean;\n slotAssignment?: SlotAssignmentMode;\n}\n\ninterface ShareData {\n files?: File[];\n text?: string;\n title?: string;\n url?: string;\n}\n\ninterface SpeechSynthesisErrorEventInit extends SpeechSynthesisEventInit {\n error: SpeechSynthesisErrorCode;\n}\n\ninterface SpeechSynthesisEventInit extends EventInit {\n charIndex?: number;\n charLength?: number;\n elapsedTime?: number;\n name?: string;\n utterance: SpeechSynthesisUtterance;\n}\n\ninterface StartViewTransitionOptions {\n types?: string[] | null;\n update?: ViewTransitionUpdateCallback | null;\n}\n\ninterface StaticRangeInit {\n endContainer: Node;\n endOffset: number;\n startContainer: Node;\n startOffset: number;\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 StreamPipeOptions {\n preventAbort?: boolean;\n preventCancel?: boolean;\n /**\n * Pipes this readable stream to a given writable stream destination. The way in which the piping process behaves under various error conditions can be customized with a number of passed options. It returns a promise that fulfills when the piping process completes successfully, or rejects if any errors were encountered.\n *\n * Piping a stream will lock it for the duration of the pipe, preventing any other consumer from acquiring a reader.\n *\n * Errors and closures of the source and destination streams propagate as follows:\n *\n * An error in this source readable stream will abort destination, unless preventAbort is truthy. The returned promise will be rejected with the source\'s error, or with any error that occurs during aborting the destination.\n *\n * An error in destination will cancel this source readable stream, unless preventCancel is truthy. The returned promise will be rejected with the destination\'s error, or with any error that occurs during canceling the source.\n *\n * When this source readable stream closes, destination will be closed, unless preventClose is truthy. The returned promise will be fulfilled once this process completes, unless an error is encountered while closing the destination, in which case it will be rejected with that error.\n *\n * If destination starts out closed or closing, this source readable stream will be canceled, unless preventCancel is true. The returned promise will be rejected with an error indicating piping to a closed stream failed, or with any error that occurs during canceling the source.\n *\n * The signal option can be set to an AbortSignal to allow aborting an ongoing pipe operation via the corresponding AbortController. In this case, this source readable stream will be canceled, and destination aborted, unless the respective options preventCancel or preventAbort are set.\n */\n preventClose?: boolean;\n signal?: AbortSignal;\n}\n\ninterface StructuredSerializeOptions {\n transfer?: Transferable[];\n}\n\ninterface SubmitEventInit extends EventInit {\n submitter?: HTMLElement | null;\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 ToggleEventInit extends EventInit {\n newState?: string;\n oldState?: string;\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?: TextTrack | null;\n}\n\ninterface Transformer<I = any, O = any> {\n flush?: TransformerFlushCallback<O>;\n readableType?: undefined;\n start?: TransformerStartCallback<O>;\n transform?: TransformerTransformCallback<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 /** @deprecated */\n which?: number;\n}\n\ninterface ULongRange {\n max?: number;\n min?: number;\n}\n\ninterface UnderlyingByteSource {\n autoAllocateChunkSize?: number;\n cancel?: UnderlyingSourceCancelCallback;\n pull?: (controller: ReadableByteStreamController) => void | PromiseLike<void>;\n start?: (controller: ReadableByteStreamController) => any;\n type: "bytes";\n}\n\ninterface UnderlyingDefaultSource<R = any> {\n cancel?: UnderlyingSourceCancelCallback;\n pull?: (controller: ReadableStreamDefaultController<R>) => void | PromiseLike<void>;\n start?: (controller: ReadableStreamDefaultController<R>) => any;\n type?: undefined;\n}\n\ninterface UnderlyingSink<W = any> {\n abort?: UnderlyingSinkAbortCallback;\n close?: UnderlyingSinkCloseCallback;\n start?: UnderlyingSinkStartCallback;\n type?: undefined;\n write?: UnderlyingSinkWriteCallback<W>;\n}\n\ninterface UnderlyingSource<R = any> {\n autoAllocateChunkSize?: number;\n cancel?: UnderlyingSourceCancelCallback;\n pull?: UnderlyingSourcePullCallback<R>;\n start?: UnderlyingSourceStartCallback<R>;\n type?: ReadableStreamType;\n}\n\ninterface ValidityStateFlags {\n badInput?: boolean;\n customError?: boolean;\n patternMismatch?: boolean;\n rangeOverflow?: boolean;\n rangeUnderflow?: boolean;\n stepMismatch?: boolean;\n tooLong?: boolean;\n tooShort?: boolean;\n typeMismatch?: boolean;\n valueMissing?: boolean;\n}\n\ninterface VideoColorSpaceInit {\n fullRange?: boolean | null;\n matrix?: VideoMatrixCoefficients | null;\n primaries?: VideoColorPrimaries | null;\n transfer?: VideoTransferCharacteristics | null;\n}\n\ninterface VideoConfiguration {\n bitrate: number;\n colorGamut?: ColorGamut;\n contentType: string;\n framerate: number;\n hasAlphaChannel?: boolean;\n hdrMetadataType?: HdrMetadataType;\n height: number;\n scalabilityMode?: string;\n transferFunction?: TransferFunction;\n width: number;\n}\n\ninterface VideoDecoderConfig {\n codec: string;\n codedHeight?: number;\n codedWidth?: number;\n colorSpace?: VideoColorSpaceInit;\n description?: AllowSharedBufferSource;\n displayAspectHeight?: number;\n displayAspectWidth?: number;\n hardwareAcceleration?: HardwareAcceleration;\n optimizeForLatency?: boolean;\n}\n\ninterface VideoDecoderInit {\n error: WebCodecsErrorCallback;\n output: VideoFrameOutputCallback;\n}\n\ninterface VideoDecoderSupport {\n config?: VideoDecoderConfig;\n supported?: boolean;\n}\n\ninterface VideoEncoderConfig {\n alpha?: AlphaOption;\n avc?: AvcEncoderConfig;\n bitrate?: number;\n bitrateMode?: VideoEncoderBitrateMode;\n codec: string;\n contentHint?: string;\n displayHeight?: number;\n displayWidth?: number;\n framerate?: number;\n hardwareAcceleration?: HardwareAcceleration;\n height: number;\n latencyMode?: LatencyMode;\n scalabilityMode?: string;\n width: number;\n}\n\ninterface VideoEncoderEncodeOptions {\n avc?: VideoEncoderEncodeOptionsForAvc;\n keyFrame?: boolean;\n}\n\ninterface VideoEncoderEncodeOptionsForAvc {\n quantizer?: number | null;\n}\n\ninterface VideoEncoderInit {\n error: WebCodecsErrorCallback;\n output: EncodedVideoChunkOutputCallback;\n}\n\ninterface VideoEncoderSupport {\n config?: VideoEncoderConfig;\n supported?: boolean;\n}\n\ninterface VideoFrameBufferInit {\n codedHeight: number;\n codedWidth: number;\n colorSpace?: VideoColorSpaceInit;\n displayHeight?: number;\n displayWidth?: number;\n duration?: number;\n format: VideoPixelFormat;\n layout?: PlaneLayout[];\n timestamp: number;\n visibleRect?: DOMRectInit;\n}\n\ninterface VideoFrameCallbackMetadata {\n captureTime?: DOMHighResTimeStamp;\n expectedDisplayTime: DOMHighResTimeStamp;\n height: number;\n mediaTime: number;\n presentationTime: DOMHighResTimeStamp;\n presentedFrames: number;\n processingDuration?: number;\n receiveTime?: DOMHighResTimeStamp;\n rtpTimestamp?: number;\n width: number;\n}\n\ninterface VideoFrameCopyToOptions {\n colorSpace?: PredefinedColorSpace;\n format?: VideoPixelFormat;\n layout?: PlaneLayout[];\n rect?: DOMRectInit;\n}\n\ninterface VideoFrameInit {\n alpha?: AlphaOption;\n displayHeight?: number;\n displayWidth?: number;\n duration?: number;\n timestamp?: number;\n visibleRect?: DOMRectInit;\n}\n\ninterface WaveShaperOptions extends AudioNodeOptions {\n curve?: number[] | Float32Array;\n oversample?: OverSampleType;\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 WebTransportCloseInfo {\n closeCode?: number;\n reason?: string;\n}\n\ninterface WebTransportErrorOptions {\n source?: WebTransportErrorSource;\n streamErrorCode?: number | null;\n}\n\ninterface WebTransportHash {\n algorithm?: string;\n value?: BufferSource;\n}\n\ninterface WebTransportOptions {\n allowPooling?: boolean;\n congestionControl?: WebTransportCongestionControl;\n requireUnreliable?: boolean;\n serverCertificateHashes?: WebTransportHash[];\n}\n\ninterface WebTransportSendOptions {\n sendOrder?: number;\n}\n\ninterface WebTransportSendStreamOptions extends WebTransportSendOptions {\n}\n\ninterface WheelEventInit extends MouseEventInit {\n deltaMode?: number;\n deltaX?: number;\n deltaY?: number;\n deltaZ?: number;\n}\n\ninterface WindowPostMessageOptions extends StructuredSerializeOptions {\n targetOrigin?: string;\n}\n\ninterface WorkerOptions {\n credentials?: RequestCredentials;\n name?: string;\n type?: WorkerType;\n}\n\ninterface WorkletOptions {\n credentials?: RequestCredentials;\n}\n\ninterface WriteParams {\n data?: BufferSource | Blob | string | null;\n position?: number | null;\n size?: number | null;\n type: WriteCommandType;\n}\n\ntype NodeFilter = ((node: Node) => number) | { acceptNode(node: Node): number; };\n\ndeclare var NodeFilter: {\n readonly FILTER_ACCEPT: 1;\n readonly FILTER_REJECT: 2;\n readonly FILTER_SKIP: 3;\n readonly SHOW_ALL: 0xFFFFFFFF;\n readonly SHOW_ELEMENT: 0x1;\n readonly SHOW_ATTRIBUTE: 0x2;\n readonly SHOW_TEXT: 0x4;\n readonly SHOW_CDATA_SECTION: 0x8;\n readonly SHOW_ENTITY_REFERENCE: 0x10;\n readonly SHOW_ENTITY: 0x20;\n readonly SHOW_PROCESSING_INSTRUCTION: 0x40;\n readonly SHOW_COMMENT: 0x80;\n readonly SHOW_DOCUMENT: 0x100;\n readonly SHOW_DOCUMENT_TYPE: 0x200;\n readonly SHOW_DOCUMENT_FRAGMENT: 0x400;\n readonly SHOW_NOTATION: 0x800;\n};\n\ntype XPathNSResolver = ((prefix: string | null) => string | null) | { lookupNamespaceURI(prefix: string | null): string | null; };\n\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.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ANGLE_instanced_arrays)\n */\ninterface ANGLE_instanced_arrays {\n /**\n * The **`ANGLE_instanced_arrays.drawArraysInstancedANGLE()`** method of the WebGL API renders primitives from array data like the WebGLRenderingContext.drawArrays() method.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ANGLE_instanced_arrays/drawArraysInstancedANGLE)\n */\n drawArraysInstancedANGLE(mode: GLenum, first: GLint, count: GLsizei, primcount: GLsizei): void;\n /**\n * The **`ANGLE_instanced_arrays.drawElementsInstancedANGLE()`** method of the WebGL API renders primitives from array data like the WebGLRenderingContext.drawElements() method.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ANGLE_instanced_arrays/drawElementsInstancedANGLE)\n */\n drawElementsInstancedANGLE(mode: GLenum, count: GLsizei, type: GLenum, offset: GLintptr, primcount: GLsizei): void;\n /**\n * The **ANGLE_instanced_arrays.vertexAttribDivisorANGLE()** method of the WebGL API modifies the rate at which generic vertex attributes advance when rendering multiple instances of primitives with ANGLE_instanced_arrays.drawArraysInstancedANGLE() and ANGLE_instanced_arrays.drawElementsInstancedANGLE().\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ANGLE_instanced_arrays/vertexAttribDivisorANGLE)\n */\n vertexAttribDivisorANGLE(index: GLuint, divisor: GLuint): void;\n readonly VERTEX_ATTRIB_ARRAY_DIVISOR_ANGLE: 0x88FE;\n}\n\ninterface ARIAMixin {\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/ariaActiveDescendantElement) */\n ariaActiveDescendantElement: Element | null;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/ariaAtomic) */\n ariaAtomic: string | null;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/ariaAutoComplete) */\n ariaAutoComplete: string | null;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/ariaBrailleLabel) */\n ariaBrailleLabel: string | null;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/ariaBrailleRoleDescription) */\n ariaBrailleRoleDescription: string | null;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/ariaBusy) */\n ariaBusy: string | null;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/ariaChecked) */\n ariaChecked: string | null;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/ariaColCount) */\n ariaColCount: string | null;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/ariaColIndex) */\n ariaColIndex: string | null;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/ariaColIndexText) */\n ariaColIndexText: string | null;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/ariaColSpan) */\n ariaColSpan: string | null;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/ariaControlsElements) */\n ariaControlsElements: ReadonlyArray<Element> | null;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/ariaCurrent) */\n ariaCurrent: string | null;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/ariaDescribedByElements) */\n ariaDescribedByElements: ReadonlyArray<Element> | null;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/ariaDescription) */\n ariaDescription: string | null;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/ariaDetailsElements) */\n ariaDetailsElements: ReadonlyArray<Element> | null;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/ariaDisabled) */\n ariaDisabled: string | null;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/ariaErrorMessageElements) */\n ariaErrorMessageElements: ReadonlyArray<Element> | null;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/ariaExpanded) */\n ariaExpanded: string | null;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/ariaFlowToElements) */\n ariaFlowToElements: ReadonlyArray<Element> | null;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/ariaHasPopup) */\n ariaHasPopup: string | null;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/ariaHidden) */\n ariaHidden: string | null;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/ariaInvalid) */\n ariaInvalid: string | null;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/ariaKeyShortcuts) */\n ariaKeyShortcuts: string | null;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/ariaLabel) */\n ariaLabel: string | null;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/ariaLabelledByElements) */\n ariaLabelledByElements: ReadonlyArray<Element> | null;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/ariaLevel) */\n ariaLevel: string | null;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/ariaLive) */\n ariaLive: string | null;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/ariaModal) */\n ariaModal: string | null;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/ariaMultiLine) */\n ariaMultiLine: string | null;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/ariaMultiSelectable) */\n ariaMultiSelectable: string | null;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/ariaOrientation) */\n ariaOrientation: string | null;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/ariaOwnsElements) */\n ariaOwnsElements: ReadonlyArray<Element> | null;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/ariaPlaceholder) */\n ariaPlaceholder: string | null;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/ariaPosInSet) */\n ariaPosInSet: string | null;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/ariaPressed) */\n ariaPressed: string | null;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/ariaReadOnly) */\n ariaReadOnly: string | null;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/ariaRelevant) */\n ariaRelevant: string | null;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/ariaRequired) */\n ariaRequired: string | null;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/ariaRoleDescription) */\n ariaRoleDescription: string | null;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/ariaRowCount) */\n ariaRowCount: string | null;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/ariaRowIndex) */\n ariaRowIndex: string | null;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/ariaRowIndexText) */\n ariaRowIndexText: string | null;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/ariaRowSpan) */\n ariaRowSpan: string | null;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/ariaSelected) */\n ariaSelected: string | null;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/ariaSetSize) */\n ariaSetSize: string | null;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/ariaSort) */\n ariaSort: string | null;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/ariaValueMax) */\n ariaValueMax: string | null;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/ariaValueMin) */\n ariaValueMin: string | null;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/ariaValueNow) */\n ariaValueNow: string | null;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/ariaValueText) */\n ariaValueText: string | null;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/role) */\n role: string | null;\n}\n\n/**\n * The **`AbortController`** interface represents a controller object that allows you to abort one or more Web requests as and when desired.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/AbortController)\n */\ninterface AbortController {\n /**\n * The **`signal`** read-only property of the AbortController interface returns an AbortSignal object instance, which can be used to communicate with/abort an asynchronous operation as desired.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/AbortController/signal)\n */\n readonly signal: AbortSignal;\n /**\n * The **`abort()`** method of the AbortController interface aborts an asynchronous operation before it has completed.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/AbortController/abort)\n */\n abort(reason?: any): void;\n}\n\ndeclare var AbortController: {\n prototype: AbortController;\n new(): AbortController;\n};\n\ninterface AbortSignalEventMap {\n "abort": Event;\n}\n\n/**\n * The **`AbortSignal`** interface represents a signal object that allows you to communicate with an asynchronous operation (such as a fetch request) and abort it if required via an AbortController object.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/AbortSignal)\n */\ninterface AbortSignal extends EventTarget {\n /**\n * The **`aborted`** read-only property returns a value that indicates whether the asynchronous operations the signal is communicating with are aborted (`true`) or not (`false`).\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/AbortSignal/aborted)\n */\n readonly aborted: boolean;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AbortSignal/abort_event) */\n onabort: ((this: AbortSignal, ev: Event) => any) | null;\n /**\n * The **`reason`** read-only property returns a JavaScript value that indicates the abort reason.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/AbortSignal/reason)\n */\n readonly reason: any;\n /**\n * The **`throwIfAborted()`** method throws the signal\'s abort AbortSignal.reason if the signal has been aborted; otherwise it does nothing.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/AbortSignal/throwIfAborted)\n */\n throwIfAborted(): void;\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 * The **`AbortSignal.abort()`** static method returns an AbortSignal that is already set as aborted (and which does not trigger an AbortSignal/abort_event event).\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/AbortSignal/abort_static)\n */\n abort(reason?: any): AbortSignal;\n /**\n * The **`AbortSignal.any()`** static method takes an iterable of abort signals and returns an AbortSignal.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/AbortSignal/any_static)\n */\n any(signals: AbortSignal[]): AbortSignal;\n /**\n * The **`AbortSignal.timeout()`** static method returns an AbortSignal that will automatically abort after a specified time.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/AbortSignal/timeout_static)\n */\n timeout(milliseconds: number): AbortSignal;\n};\n\n/**\n * The **`AbstractRange`** abstract interface is the base class upon which all DOM range types are defined.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/AbstractRange)\n */\ninterface AbstractRange {\n /**\n * The read-only **`collapsed`** property of the AbstractRange interface returns `true` if the range\'s start position and end position are the same.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/AbstractRange/collapsed)\n */\n readonly collapsed: boolean;\n /**\n * The read-only **`endContainer`** property of the AbstractRange interface returns the Node in which the end of the range is located.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/AbstractRange/endContainer)\n */\n readonly endContainer: Node;\n /**\n * The **`endOffset`** property of the AbstractRange interface returns the offset into the end node of the range\'s end position.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/AbstractRange/endOffset)\n */\n readonly endOffset: number;\n /**\n * The read-only **`startContainer`** property of the AbstractRange interface returns the start Node for the range.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/AbstractRange/startContainer)\n */\n readonly startContainer: Node;\n /**\n * The read-only **`startOffset`** property of the AbstractRange interface returns the offset into the start node of the range\'s start position.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/AbstractRange/startOffset)\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 /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ServiceWorker/error_event) */\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\n/**\n * The **`AnalyserNode`** interface represents a node able to provide real-time frequency and time-domain analysis information.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/AnalyserNode)\n */\ninterface AnalyserNode extends AudioNode {\n /**\n * The **`fftSize`** property of the AnalyserNode interface is an unsigned long value and represents the window size in samples that is used when performing a Fast Fourier Transform (FFT) to get frequency domain data.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/AnalyserNode/fftSize)\n */\n fftSize: number;\n /**\n * The **`frequencyBinCount`** read-only property of the AnalyserNode interface contains the total number of data points available to AudioContext BaseAudioContext.sampleRate.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/AnalyserNode/frequencyBinCount)\n */\n readonly frequencyBinCount: number;\n /**\n * The **`maxDecibels`** property of the AnalyserNode interface is a double value representing the maximum power value in the scaling range for the FFT analysis data, for conversion to unsigned byte values — basically, this specifies the maximum value for the range of results when using `getByteFrequencyData()`.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/AnalyserNode/maxDecibels)\n */\n maxDecibels: number;\n /**\n * The **`minDecibels`** property of the AnalyserNode interface is a double value representing the minimum power value in the scaling range for the FFT analysis data, for conversion to unsigned byte values — basically, this specifies the minimum value for the range of results when using `getByteFrequencyData()`.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/AnalyserNode/minDecibels)\n */\n minDecibels: number;\n /**\n * The **`smoothingTimeConstant`** property of the AnalyserNode interface is a double value representing the averaging constant with the last analysis frame.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/AnalyserNode/smoothingTimeConstant)\n */\n smoothingTimeConstant: number;\n /**\n * The **`getByteFrequencyData()`** method of the AnalyserNode interface copies the current frequency data into a Uint8Array (unsigned byte array) passed into it.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/AnalyserNode/getByteFrequencyData)\n */\n getByteFrequencyData(array: Uint8Array<ArrayBuffer>): void;\n /**\n * The **`getByteTimeDomainData()`** method of the AnalyserNode Interface copies the current waveform, or time-domain, data into a Uint8Array (unsigned byte array) passed into it.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/AnalyserNode/getByteTimeDomainData)\n */\n getByteTimeDomainData(array: Uint8Array<ArrayBuffer>): void;\n /**\n * The **`getFloatFrequencyData()`** method of the AnalyserNode Interface copies the current frequency data into a Float32Array array passed into it.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/AnalyserNode/getFloatFrequencyData)\n */\n getFloatFrequencyData(array: Float32Array<ArrayBuffer>): void;\n /**\n * The **`getFloatTimeDomainData()`** method of the AnalyserNode Interface copies the current waveform, or time-domain, data into a Float32Array array passed into it.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/AnalyserNode/getFloatTimeDomainData)\n */\n getFloatTimeDomainData(array: Float32Array<ArrayBuffer>): void;\n}\n\ndeclare var AnalyserNode: {\n prototype: AnalyserNode;\n new(context: BaseAudioContext, options?: AnalyserOptions): AnalyserNode;\n};\n\ninterface Animatable {\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/animate) */\n animate(keyframes: Keyframe[] | PropertyIndexedKeyframes | null, options?: number | KeyframeAnimationOptions): Animation;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/getAnimations) */\n getAnimations(options?: GetAnimationsOptions): Animation[];\n}\n\ninterface AnimationEventMap {\n "cancel": AnimationPlaybackEvent;\n "finish": AnimationPlaybackEvent;\n "remove": AnimationPlaybackEvent;\n}\n\n/**\n * The **`Animation`** interface of the Web Animations API represents a single animation player and provides playback controls and a timeline for an animation node or source.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Animation)\n */\ninterface Animation extends EventTarget {\n /**\n * The **`Animation.currentTime`** property of the Web Animations API returns and sets the current time value of the animation in milliseconds, whether running or paused.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Animation/currentTime)\n */\n currentTime: CSSNumberish | null;\n /**\n * The **`Animation.effect`** property of the Web Animations API gets and sets the target effect of an animation.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Animation/effect)\n */\n effect: AnimationEffect | null;\n /**\n * The **`Animation.finished`** read-only property of the Web Animations API returns a Promise which resolves once the animation has finished playing.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Animation/finished)\n */\n readonly finished: Promise<Animation>;\n /**\n * The **`Animation.id`** property of the Web Animations API returns or sets a string used to identify the animation.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Animation/id)\n */\n id: string;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Animation/cancel_event) */\n oncancel: ((this: Animation, ev: AnimationPlaybackEvent) => any) | null;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Animation/finish_event) */\n onfinish: ((this: Animation, ev: AnimationPlaybackEvent) => any) | null;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Animation/remove_event) */\n onremove: ((this: Animation, ev: AnimationPlaybackEvent) => any) | null;\n /**\n * The read-only **`Animation.pending`** property of the Web Animations API indicates whether the animation is currently waiting for an asynchronous operation such as initiating playback or pausing a running animation.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Animation/pending)\n */\n readonly pending: boolean;\n /**\n * The read-only **`Animation.playState`** property of the Web Animations API returns an enumerated value describing the playback state of an animation.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Animation/playState)\n */\n readonly playState: AnimationPlayState;\n /**\n * The **`Animation.playbackRate`** property of the Web Animations API returns or sets the playback rate of the animation.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Animation/playbackRate)\n */\n playbackRate: number;\n /**\n * The read-only **`Animation.ready`** property of the Web Animations API returns a Promise which resolves when the animation is ready to play.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Animation/ready)\n */\n readonly ready: Promise<Animation>;\n /**\n * The read-only **`Animation.replaceState`** property of the Web Animations API indicates whether the animation has been removed by the browser automatically after being replaced by another animation.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Animation/replaceState)\n */\n readonly replaceState: AnimationReplaceState;\n /**\n * The **`Animation.startTime`** property of the Animation interface is a double-precision floating-point value which indicates the scheduled time when an animation\'s playback should begin.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Animation/startTime)\n */\n startTime: CSSNumberish | null;\n /**\n * The **`Animation.timeline`** property of the Animation interface returns or sets the AnimationTimeline associated with this animation.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Animation/timeline)\n */\n timeline: AnimationTimeline | null;\n /**\n * The Web Animations API\'s **`cancel()`** method of the Animation interface clears all KeyframeEffects caused by this animation and aborts its playback.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Animation/cancel)\n */\n cancel(): void;\n /**\n * The `commitStyles()` method of the Web Animations API\'s Animation interface writes the computed values of the animation\'s current styles into its target element\'s `style` attribute.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Animation/commitStyles)\n */\n commitStyles(): void;\n /**\n * The **`finish()`** method of the Web Animations API\'s Animation Interface sets the current playback time to the end of the animation corresponding to the current playback direction.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Animation/finish)\n */\n finish(): void;\n /**\n * The **`pause()`** method of the Web Animations API\'s Animation interface suspends playback of the animation.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Animation/pause)\n */\n pause(): void;\n /**\n * The `persist()` method of the Web Animations API\'s Animation interface explicitly persists an animation, preventing it from being automatically removed when it is replaced by another animation.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Animation/persist)\n */\n persist(): void;\n /**\n * The **`play()`** method of the Web Animations API\'s Animation Interface starts or resumes playing of an animation.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Animation/play)\n */\n play(): void;\n /**\n * The **`Animation.reverse()`** method of the Animation Interface reverses the playback direction, meaning the animation ends at its beginning.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Animation/reverse)\n */\n reverse(): void;\n /**\n * The **`updatePlaybackRate()`** method of the Web Animations API\'s synchronizing its playback position.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Animation/updatePlaybackRate)\n */\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\n/**\n * The `AnimationEffect` interface of the Web Animations API is an interface representing animation effects.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/AnimationEffect)\n */\ninterface AnimationEffect {\n /**\n * The `getComputedTiming()` method of the AnimationEffect interface returns the calculated timing properties for this animation effect.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/AnimationEffect/getComputedTiming)\n */\n getComputedTiming(): ComputedEffectTiming;\n /**\n * The `AnimationEffect.getTiming()` method of the AnimationEffect interface returns an object containing the timing properties for the Animation Effect.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/AnimationEffect/getTiming)\n */\n getTiming(): EffectTiming;\n /**\n * The `updateTiming()` method of the AnimationEffect interface updates the specified timing properties for an animation effect.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/AnimationEffect/updateTiming)\n */\n updateTiming(timing?: OptionalEffectTiming): void;\n}\n\ndeclare var AnimationEffect: {\n prototype: AnimationEffect;\n new(): AnimationEffect;\n};\n\n/**\n * The **`AnimationEvent`** interface represents events providing information related to animations.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/AnimationEvent)\n */\ninterface AnimationEvent extends Event {\n /**\n * The **`AnimationEvent.animationName`** read-only property is a string containing the value of the animation-name CSS property associated with the transition.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/AnimationEvent/animationName)\n */\n readonly animationName: string;\n /**\n * The **`AnimationEvent.elapsedTime`** read-only property is a `float` giving the amount of time the animation has been running, in seconds, when this event fired, excluding any time the animation was paused.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/AnimationEvent/elapsedTime)\n */\n readonly elapsedTime: number;\n /**\n * The **`AnimationEvent.pseudoElement`** read-only property is a string, starting with `\'::\'`, containing the name of the pseudo-element the animation runs on.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/AnimationEvent/pseudoElement)\n */\n readonly pseudoElement: string;\n}\n\ndeclare var AnimationEvent: {\n prototype: AnimationEvent;\n new(type: string, animationEventInitDict?: AnimationEventInit): AnimationEvent;\n};\n\ninterface AnimationFrameProvider {\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DedicatedWorkerGlobalScope/cancelAnimationFrame) */\n cancelAnimationFrame(handle: number): void;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DedicatedWorkerGlobalScope/requestAnimationFrame) */\n requestAnimationFrame(callback: FrameRequestCallback): number;\n}\n\n/**\n * The AnimationPlaybackEvent interface of the Web Animations API represents animation events.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/AnimationPlaybackEvent)\n */\ninterface AnimationPlaybackEvent extends Event {\n /**\n * The **`currentTime`** read-only property of the AnimationPlaybackEvent interface represents the current time of the animation that generated the event at the moment the event is queued.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/AnimationPlaybackEvent/currentTime)\n */\n readonly currentTime: CSSNumberish | null;\n /**\n * The **`timelineTime`** read-only property of the AnimationPlaybackEvent interface represents the time value of the animation\'s AnimationTimeline at the moment the event is queued.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/AnimationPlaybackEvent/timelineTime)\n */\n readonly timelineTime: CSSNumberish | null;\n}\n\ndeclare var AnimationPlaybackEvent: {\n prototype: AnimationPlaybackEvent;\n new(type: string, eventInitDict?: AnimationPlaybackEventInit): AnimationPlaybackEvent;\n};\n\n/**\n * The `AnimationTimeline` interface of the Web Animations API represents the timeline of an animation.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/AnimationTimeline)\n */\ninterface AnimationTimeline {\n /**\n * The **`currentTime`** read-only property of the Web Animations API\'s AnimationTimeline interface returns the timeline\'s current time in milliseconds, or `null` if the timeline is inactive.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/AnimationTimeline/currentTime)\n */\n readonly currentTime: CSSNumberish | null;\n}\n\ndeclare var AnimationTimeline: {\n prototype: AnimationTimeline;\n new(): AnimationTimeline;\n};\n\n/**\n * The **`Attr`** interface represents one of an element\'s attributes as an object.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Attr)\n */\ninterface Attr extends Node {\n /**\n * The read-only **`localName`** property of the Attr interface returns the _local part_ of the _qualified name_ of an attribute, that is the name of the attribute, stripped from any namespace in front of it.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Attr/localName)\n */\n readonly localName: string;\n /**\n * The read-only **`name`** property of the Attr interface returns the _qualified name_ of an attribute, that is the name of the attribute, with the namespace prefix, if any, in front of it.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Attr/name)\n */\n readonly name: string;\n /**\n * The read-only **`namespaceURI`** property of the Attr interface returns the namespace URI of the attribute, or `null` if the element is not in a namespace.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Attr/namespaceURI)\n */\n readonly namespaceURI: string | null;\n readonly ownerDocument: Document;\n /**\n * The read-only **`ownerElement`** property of the Attr interface returns the Element the attribute belongs to.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Attr/ownerElement)\n */\n readonly ownerElement: Element | null;\n /**\n * The read-only **`prefix`** property of the Attr returns the namespace prefix of the attribute, or `null` if no prefix is specified.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Attr/prefix)\n */\n readonly prefix: string | null;\n /**\n * The read-only **`specified`** property of the Attr interface always returns `true`.\n * @deprecated\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Attr/specified)\n */\n readonly specified: boolean;\n /**\n * The **`value`** property of the Attr interface contains the value of the attribute.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Attr/value)\n */\n value: string;\n /** [MDN Reference](https://developer.mozilla.org/en-US/docs/Web/API/Node/textContent) */\n get textContent(): string;\n set textContent(value: string | null);\n}\n\ndeclare var Attr: {\n prototype: Attr;\n new(): Attr;\n};\n\n/**\n * The **`AudioBuffer`** interface represents a short audio asset residing in memory, created from an audio file using the BaseAudioContext/decodeAudioData method, or from raw data using BaseAudioContext/createBuffer.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioBuffer)\n */\ninterface AudioBuffer {\n /**\n * The **`duration`** property of the AudioBuffer interface returns a double representing the duration, in seconds, of the PCM data stored in the buffer.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioBuffer/duration)\n */\n readonly duration: number;\n /**\n * The **`length`** property of the AudioBuffer interface returns an integer representing the length, in sample-frames, of the PCM data stored in the buffer.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioBuffer/length)\n */\n readonly length: number;\n /**\n * The `numberOfChannels` property of the AudioBuffer interface returns an integer representing the number of discrete audio channels described by the PCM data stored in the buffer.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioBuffer/numberOfChannels)\n */\n readonly numberOfChannels: number;\n /**\n * The **`sampleRate`** property of the AudioBuffer interface returns a float representing the sample rate, in samples per second, of the PCM data stored in the buffer.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioBuffer/sampleRate)\n */\n readonly sampleRate: number;\n /**\n * The **`copyFromChannel()`** method of the channel of the `AudioBuffer` to a specified ```js-nolint copyFromChannel(destination, channelNumber, startInChannel) ``` - `destination` - : A Float32Array to copy the channel\'s samples to.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioBuffer/copyFromChannel)\n */\n copyFromChannel(destination: Float32Array<ArrayBuffer>, channelNumber: number, bufferOffset?: number): void;\n /**\n * The `copyToChannel()` method of the AudioBuffer interface copies the samples to the specified channel of the `AudioBuffer`, from the source array.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioBuffer/copyToChannel)\n */\n copyToChannel(source: Float32Array<ArrayBuffer>, channelNumber: number, bufferOffset?: number): void;\n /**\n * The **`getChannelData()`** method of the AudioBuffer Interface returns a Float32Array containing the PCM data associated with the channel, defined by the channel parameter (with 0 representing the first channel).\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioBuffer/getChannelData)\n */\n getChannelData(channel: number): Float32Array<ArrayBuffer>;\n}\n\ndeclare var AudioBuffer: {\n prototype: AudioBuffer;\n new(options: AudioBufferOptions): AudioBuffer;\n};\n\n/**\n * The **`AudioBufferSourceNode`** interface is an AudioScheduledSourceNode which represents an audio source consisting of in-memory audio data, stored in an AudioBuffer.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioBufferSourceNode)\n */\ninterface AudioBufferSourceNode extends AudioScheduledSourceNode {\n /**\n * The **`buffer`** property of the AudioBufferSourceNode interface provides the ability to play back audio using an AudioBuffer as the source of the sound data.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioBufferSourceNode/buffer)\n */\n buffer: AudioBuffer | null;\n /**\n * The **`detune`** property of the representing detuning of oscillation in cents.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioBufferSourceNode/detune)\n */\n readonly detune: AudioParam;\n /**\n * The `loop` property of the AudioBufferSourceNode interface is a Boolean indicating if the audio asset must be replayed when the end of the AudioBuffer is reached.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioBufferSourceNode/loop)\n */\n loop: boolean;\n /**\n * The `loopEnd` property of the AudioBufferSourceNode interface specifies is a floating point number specifying, in seconds, at what offset into playing the AudioBuffer playback should loop back to the time indicated by the AudioBufferSourceNode.loopStart property.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioBufferSourceNode/loopEnd)\n */\n loopEnd: number;\n /**\n * The **`loopStart`** property of the AudioBufferSourceNode interface is a floating-point value indicating, in seconds, where in the AudioBuffer the restart of the play must happen.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioBufferSourceNode/loopStart)\n */\n loopStart: number;\n /**\n * The **`playbackRate`** property of the AudioBufferSourceNode interface Is a k-rate AudioParam that defines the speed at which the audio asset will be played.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioBufferSourceNode/playbackRate)\n */\n readonly playbackRate: AudioParam;\n /**\n * The `start()` method of the AudioBufferSourceNode Interface is used to schedule playback of the audio data contained in the buffer, or to begin playback immediately.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioBufferSourceNode/start)\n */\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/**\n * The `AudioContext` interface represents an audio-processing graph built from audio modules linked together, each represented by an AudioNode.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioContext)\n */\ninterface AudioContext extends BaseAudioContext {\n /**\n * The **`baseLatency`** read-only property of the seconds of processing latency incurred by the `AudioContext` passing an audio buffer from the AudioDestinationNode — i.e., the end of the audio graph — into the host system\'s audio subsystem ready for playing.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioContext/baseLatency)\n */\n readonly baseLatency: number;\n /**\n * The **`outputLatency`** read-only property of the AudioContext Interface provides an estimation of the output latency of the current audio context.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioContext/outputLatency)\n */\n readonly outputLatency: number;\n /**\n * The `close()` method of the AudioContext Interface closes the audio context, releasing any system audio resources that it uses.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioContext/close)\n */\n close(): Promise<void>;\n /**\n * The `createMediaElementSource()` method of the AudioContext Interface is used to create a new MediaElementAudioSourceNode object, given an existing HTML audio or video element, the audio from which can then be played and manipulated.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioContext/createMediaElementSource)\n */\n createMediaElementSource(mediaElement: HTMLMediaElement): MediaElementAudioSourceNode;\n /**\n * The `createMediaStreamDestination()` method of the AudioContext Interface is used to create a new MediaStreamAudioDestinationNode object associated with a WebRTC MediaStream representing an audio stream, which may be stored in a local file or sent to another computer.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioContext/createMediaStreamDestination)\n */\n createMediaStreamDestination(): MediaStreamAudioDestinationNode;\n /**\n * The `createMediaStreamSource()` method of the AudioContext Interface is used to create a new MediaStreamAudioSourceNode object, given a media stream (say, from a MediaDevices.getUserMedia instance), the audio from which can then be played and manipulated.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioContext/createMediaStreamSource)\n */\n createMediaStreamSource(mediaStream: MediaStream): MediaStreamAudioSourceNode;\n /**\n * The **`getOutputTimestamp()`** method of the containing two audio timestamp values relating to the current audio context.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioContext/getOutputTimestamp)\n */\n getOutputTimestamp(): AudioTimestamp;\n /**\n * The **`resume()`** method of the AudioContext interface resumes the progression of time in an audio context that has previously been suspended.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioContext/resume)\n */\n resume(): Promise<void>;\n /**\n * The `suspend()` method of the AudioContext Interface suspends the progression of time in the audio context, temporarily halting audio hardware access and reducing CPU/battery usage in the process — this is useful if you want an application to power down the audio hardware when it will not be using an audio context for a while.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioContext/suspend)\n */\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/**\n * The **`AudioData`** interface of the WebCodecs API represents an audio sample.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioData)\n */\ninterface AudioData {\n /**\n * The **`duration`** read-only property of the AudioData interface returns the duration in microseconds of this `AudioData` object.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioData/duration)\n */\n readonly duration: number;\n /**\n * The **`format`** read-only property of the AudioData interface returns the sample format of the `AudioData` object.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioData/format)\n */\n readonly format: AudioSampleFormat | null;\n /**\n * The **`numberOfChannels`** read-only property of the AudioData interface returns the number of channels in the `AudioData` object.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioData/numberOfChannels)\n */\n readonly numberOfChannels: number;\n /**\n * The **`numberOfFrames`** read-only property of the AudioData interface returns the number of frames in the `AudioData` object.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioData/numberOfFrames)\n */\n readonly numberOfFrames: number;\n /**\n * The **`sampleRate`** read-only property of the AudioData interface returns the sample rate in Hz.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioData/sampleRate)\n */\n readonly sampleRate: number;\n /**\n * The **`timestamp`** read-only property of the AudioData interface returns the timestamp of this `AudioData` object.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioData/timestamp)\n */\n readonly timestamp: number;\n /**\n * The **`allocationSize()`** method of the AudioData interface returns the size in bytes required to hold the current sample as filtered by options passed into the method.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioData/allocationSize)\n */\n allocationSize(options: AudioDataCopyToOptions): number;\n /**\n * The **`clone()`** method of the AudioData interface creates a new `AudioData` object with reference to the same media resource as the original.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioData/clone)\n */\n clone(): AudioData;\n /**\n * The **`close()`** method of the AudioData interface clears all states and releases the reference to the media resource.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioData/close)\n */\n close(): void;\n /**\n * The **`copyTo()`** method of the AudioData interface copies a plane of an `AudioData` object to a destination buffer.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioData/copyTo)\n */\n copyTo(destination: AllowSharedBufferSource, options: AudioDataCopyToOptions): void;\n}\n\ndeclare var AudioData: {\n prototype: AudioData;\n new(init: AudioDataInit): AudioData;\n};\n\ninterface AudioDecoderEventMap {\n "dequeue": Event;\n}\n\n/**\n * The **`AudioDecoder`** interface of the WebCodecs API decodes chunks of audio.\n * Available only in secure contexts.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioDecoder)\n */\ninterface AudioDecoder extends EventTarget {\n /**\n * The **`decodeQueueSize`** read-only property of the AudioDecoder interface returns the number of pending decode requests in the queue.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioDecoder/decodeQueueSize)\n */\n readonly decodeQueueSize: number;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioDecoder/dequeue_event) */\n ondequeue: ((this: AudioDecoder, ev: Event) => any) | null;\n /**\n * The **`state`** read-only property of the AudioDecoder interface returns the current state of the underlying codec.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioDecoder/state)\n */\n readonly state: CodecState;\n /**\n * The **`close()`** method of the AudioDecoder interface ends all pending work and releases system resources.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioDecoder/close)\n */\n close(): void;\n /**\n * The **`configure()`** method of the AudioDecoder interface enqueues a control message to configure the audio decoder for decoding chunks.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioDecoder/configure)\n */\n configure(config: AudioDecoderConfig): void;\n /**\n * The **`decode()`** method of the AudioDecoder interface enqueues a control message to decode a given chunk of audio.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioDecoder/decode)\n */\n decode(chunk: EncodedAudioChunk): void;\n /**\n * The **`flush()`** method of the AudioDecoder interface returns a Promise that resolves once all pending messages in the queue have been completed.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioDecoder/flush)\n */\n flush(): Promise<void>;\n /**\n * The **`reset()`** method of the AudioDecoder interface resets all states including configuration, control messages in the control message queue, and all pending callbacks.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioDecoder/reset)\n */\n reset(): void;\n addEventListener<K extends keyof AudioDecoderEventMap>(type: K, listener: (this: AudioDecoder, ev: AudioDecoderEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n removeEventListener<K extends keyof AudioDecoderEventMap>(type: K, listener: (this: AudioDecoder, ev: AudioDecoderEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\ndeclare var AudioDecoder: {\n prototype: AudioDecoder;\n new(init: AudioDecoderInit): AudioDecoder;\n /**\n * The **`isConfigSupported()`** static method of the AudioDecoder interface checks if the given config is supported (that is, if AudioDecoder objects can be successfully configured with the given config).\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioDecoder/isConfigSupported_static)\n */\n isConfigSupported(config: AudioDecoderConfig): Promise<AudioDecoderSupport>;\n};\n\n/**\n * The `AudioDestinationNode` interface represents the end destination of an audio graph in a given context — usually the speakers of your device.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioDestinationNode)\n */\ninterface AudioDestinationNode extends AudioNode {\n /**\n * The `maxChannelCount` property of the AudioDestinationNode interface is an `unsigned long` defining the maximum amount of channels that the physical device can handle.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioDestinationNode/maxChannelCount)\n */\n readonly maxChannelCount: number;\n}\n\ndeclare var AudioDestinationNode: {\n prototype: AudioDestinationNode;\n new(): AudioDestinationNode;\n};\n\ninterface AudioEncoderEventMap {\n "dequeue": Event;\n}\n\n/**\n * The **`AudioEncoder`** interface of the WebCodecs API encodes AudioData objects.\n * Available only in secure contexts.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioEncoder)\n */\ninterface AudioEncoder extends EventTarget {\n /**\n * The **`encodeQueueSize`** read-only property of the AudioEncoder interface returns the number of pending encode requests in the queue.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioEncoder/encodeQueueSize)\n */\n readonly encodeQueueSize: number;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioEncoder/dequeue_event) */\n ondequeue: ((this: AudioEncoder, ev: Event) => any) | null;\n /**\n * The **`state`** read-only property of the AudioEncoder interface returns the current state of the underlying codec.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioEncoder/state)\n */\n readonly state: CodecState;\n /**\n * The **`close()`** method of the AudioEncoder interface ends all pending work and releases system resources.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioEncoder/close)\n */\n close(): void;\n /**\n * The **`configure()`** method of the AudioEncoder interface enqueues a control message to configure the audio encoder for encoding chunks.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioEncoder/configure)\n */\n configure(config: AudioEncoderConfig): void;\n /**\n * The **`encode()`** method of the AudioEncoder interface enqueues a control message to encode a given AudioData object.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioEncoder/encode)\n */\n encode(data: AudioData): void;\n /**\n * The **`flush()`** method of the AudioEncoder interface returns a Promise that resolves once all pending messages in the queue have been completed.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioEncoder/flush)\n */\n flush(): Promise<void>;\n /**\n * The **`reset()`** method of the AudioEncoder interface resets all states including configuration, control messages in the control message queue, and all pending callbacks.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioEncoder/reset)\n */\n reset(): void;\n addEventListener<K extends keyof AudioEncoderEventMap>(type: K, listener: (this: AudioEncoder, ev: AudioEncoderEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n removeEventListener<K extends keyof AudioEncoderEventMap>(type: K, listener: (this: AudioEncoder, ev: AudioEncoderEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\ndeclare var AudioEncoder: {\n prototype: AudioEncoder;\n new(init: AudioEncoderInit): AudioEncoder;\n /**\n * The **`isConfigSupported()`** static method of the AudioEncoder interface checks if the given config is supported (that is, if AudioEncoder objects can be successfully configured with the given config).\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioEncoder/isConfigSupported_static)\n */\n isConfigSupported(config: AudioEncoderConfig): Promise<AudioEncoderSupport>;\n};\n\n/**\n * The `AudioListener` interface represents the position and orientation of the unique person listening to the audio scene, and is used in audio spatialization.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioListener)\n */\ninterface AudioListener {\n /**\n * The `forwardX` read-only property of the AudioListener interface is an AudioParam representing the x value of the direction vector defining the forward direction the listener is pointing in.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioListener/forwardX)\n */\n readonly forwardX: AudioParam;\n /**\n * The `forwardY` read-only property of the AudioListener interface is an AudioParam representing the y value of the direction vector defining the forward direction the listener is pointing in.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioListener/forwardY)\n */\n readonly forwardY: AudioParam;\n /**\n * The `forwardZ` read-only property of the AudioListener interface is an AudioParam representing the z value of the direction vector defining the forward direction the listener is pointing in.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioListener/forwardZ)\n */\n readonly forwardZ: AudioParam;\n /**\n * The `positionX` read-only property of the AudioListener interface is an AudioParam representing the x position of the listener in 3D cartesian space.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioListener/positionX)\n */\n readonly positionX: AudioParam;\n /**\n * The `positionY` read-only property of the AudioListener interface is an AudioParam representing the y position of the listener in 3D cartesian space.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioListener/positionY)\n */\n readonly positionY: AudioParam;\n /**\n * The `positionZ` read-only property of the AudioListener interface is an AudioParam representing the z position of the listener in 3D cartesian space.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioListener/positionZ)\n */\n readonly positionZ: AudioParam;\n /**\n * The `upX` read-only property of the AudioListener interface is an AudioParam representing the x value of the direction vector defining the up direction the listener is pointing in.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioListener/upX)\n */\n readonly upX: AudioParam;\n /**\n * The `upY` read-only property of the AudioListener interface is an AudioParam representing the y value of the direction vector defining the up direction the listener is pointing in.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioListener/upY)\n */\n readonly upY: AudioParam;\n /**\n * The `upZ` read-only property of the AudioListener interface is an AudioParam representing the z value of the direction vector defining the up direction the listener is pointing in.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioListener/upZ)\n */\n readonly upZ: AudioParam;\n /**\n * The `setOrientation()` method of the AudioListener interface defines the orientation of the listener.\n * @deprecated\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioListener/setOrientation)\n */\n setOrientation(x: number, y: number, z: number, xUp: number, yUp: number, zUp: number): void;\n /**\n * The `setPosition()` method of the AudioListener Interface defines the position of the listener.\n * @deprecated\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioListener/setPosition)\n */\n setPosition(x: number, y: number, z: number): void;\n}\n\ndeclare var AudioListener: {\n prototype: AudioListener;\n new(): AudioListener;\n};\n\n/**\n * The **`AudioNode`** interface is a generic interface for representing an audio processing module.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioNode)\n */\ninterface AudioNode extends EventTarget {\n /**\n * The **`channelCount`** property of the AudioNode interface represents an integer used to determine how many channels are used when up-mixing and down-mixing connections to any inputs to the node.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioNode/channelCount)\n */\n channelCount: number;\n /**\n * The `channelCountMode` property of the AudioNode interface represents an enumerated value describing the way channels must be matched between the node\'s inputs and outputs.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioNode/channelCountMode)\n */\n channelCountMode: ChannelCountMode;\n /**\n * The **`channelInterpretation`** property of the AudioNode interface represents an enumerated value describing how input channels are mapped to output channels when the number of inputs/outputs is different.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioNode/channelInterpretation)\n */\n channelInterpretation: ChannelInterpretation;\n /**\n * The read-only `context` property of the the node is participating in.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioNode/context)\n */\n readonly context: BaseAudioContext;\n /**\n * The `numberOfInputs` property of the AudioNode interface returns the number of inputs feeding the node.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioNode/numberOfInputs)\n */\n readonly numberOfInputs: number;\n /**\n * The `numberOfOutputs` property of the AudioNode interface returns the number of outputs coming out of the node.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioNode/numberOfOutputs)\n */\n readonly numberOfOutputs: number;\n /**\n * The `connect()` method of the AudioNode interface lets you connect one of the node\'s outputs to a target, which may be either another `AudioNode` (thereby directing the sound data to the specified node) or an change the value of that parameter over time.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioNode/connect)\n */\n connect(destinationNode: AudioNode, output?: number, input?: number): AudioNode;\n connect(destinationParam: AudioParam, output?: number): void;\n /**\n * The **`disconnect()`** method of the AudioNode interface lets you disconnect one or more nodes from the node on which the method is called.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioNode/disconnect)\n */\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/**\n * The Web Audio API\'s `AudioParam` interface represents an audio-related parameter, usually a parameter of an AudioNode (such as GainNode.gain).\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioParam)\n */\ninterface AudioParam {\n automationRate: AutomationRate;\n /**\n * The **`defaultValue`** read-only property of the AudioParam interface represents the initial value of the attributes as defined by the specific AudioNode creating the `AudioParam`.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioParam/defaultValue)\n */\n readonly defaultValue: number;\n /**\n * The **`maxValue`** read-only property of the AudioParam interface represents the maximum possible value for the parameter\'s nominal (effective) range.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioParam/maxValue)\n */\n readonly maxValue: number;\n /**\n * The **`minValue`** read-only property of the AudioParam interface represents the minimum possible value for the parameter\'s nominal (effective) range.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioParam/minValue)\n */\n readonly minValue: number;\n /**\n * The **`value`** property of the AudioParam interface gets or sets the value of this `AudioParam` at the current time.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioParam/value)\n */\n value: number;\n /**\n * The **`cancelAndHoldAtTime()`** method of the `AudioParam` but holds its value at a given time until further changes are made using other methods.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioParam/cancelAndHoldAtTime)\n */\n cancelAndHoldAtTime(cancelTime: number): AudioParam;\n /**\n * The `cancelScheduledValues()` method of the AudioParam Interface cancels all scheduled future changes to the `AudioParam`.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioParam/cancelScheduledValues)\n */\n cancelScheduledValues(cancelTime: number): AudioParam;\n /**\n * The **`exponentialRampToValueAtTime()`** method of the AudioParam Interface schedules a gradual exponential change in the value of the AudioParam.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioParam/exponentialRampToValueAtTime)\n */\n exponentialRampToValueAtTime(value: number, endTime: number): AudioParam;\n /**\n * The `linearRampToValueAtTime()` method of the AudioParam Interface schedules a gradual linear change in the value of the `AudioParam`.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioParam/linearRampToValueAtTime)\n */\n linearRampToValueAtTime(value: number, endTime: number): AudioParam;\n /**\n * The `setTargetAtTime()` method of the `AudioParam` value.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioParam/setTargetAtTime)\n */\n setTargetAtTime(target: number, startTime: number, timeConstant: number): AudioParam;\n /**\n * The `setValueAtTime()` method of the `AudioParam` value at a precise time, as measured against ```js-nolint setValueAtTime(value, startTime) ``` - `value` - : A floating point number representing the value the AudioParam will change to at the given time.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioParam/setValueAtTime)\n */\n setValueAtTime(value: number, startTime: number): AudioParam;\n /**\n * The **`setValueCurveAtTime()`** method of the following a curve defined by a list of values.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioParam/setValueCurveAtTime)\n */\n setValueCurveAtTime(values: number[] | Float32Array, startTime: number, duration: number): AudioParam;\n}\n\ndeclare var AudioParam: {\n prototype: AudioParam;\n new(): AudioParam;\n};\n\n/**\n * The **`AudioParamMap`** interface of the Web Audio API represents an iterable and read-only set of multiple audio parameters.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioParamMap)\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/**\n * The `AudioProcessingEvent` interface of the Web Audio API represents events that occur when a ScriptProcessorNode input buffer is ready to be processed.\n * @deprecated As of the August 29 2014 Web Audio API spec publication, this feature has been marked as deprecated, and is soon to be replaced by AudioWorklet.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioProcessingEvent)\n */\ninterface AudioProcessingEvent extends Event {\n /**\n * The **`inputBuffer`** read-only property of the AudioProcessingEvent interface represents the input buffer of an audio processing event.\n * @deprecated\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioProcessingEvent/inputBuffer)\n */\n readonly inputBuffer: AudioBuffer;\n /**\n * The **`outputBuffer`** read-only property of the AudioProcessingEvent interface represents the output buffer of an audio processing event.\n * @deprecated\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioProcessingEvent/outputBuffer)\n */\n readonly outputBuffer: AudioBuffer;\n /**\n * The **`playbackTime`** read-only property of the AudioProcessingEvent interface represents the time when the audio will be played.\n * @deprecated\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioProcessingEvent/playbackTime)\n */\n readonly playbackTime: number;\n}\n\n/** @deprecated */\ndeclare var AudioProcessingEvent: {\n prototype: AudioProcessingEvent;\n new(type: string, eventInitDict: AudioProcessingEventInit): AudioProcessingEvent;\n};\n\ninterface AudioScheduledSourceNodeEventMap {\n "ended": Event;\n}\n\n/**\n * The `AudioScheduledSourceNode` interface—part of the Web Audio API—is a parent interface for several types of audio source node interfaces which share the ability to be started and stopped, optionally at specified times.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioScheduledSourceNode)\n */\ninterface AudioScheduledSourceNode extends AudioNode {\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioScheduledSourceNode/ended_event) */\n onended: ((this: AudioScheduledSourceNode, ev: Event) => any) | null;\n /**\n * The `start()` method on AudioScheduledSourceNode schedules a sound to begin playback at the specified time.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioScheduledSourceNode/start)\n */\n start(when?: number): void;\n /**\n * The `stop()` method on AudioScheduledSourceNode schedules a sound to cease playback at the specified time.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioScheduledSourceNode/stop)\n */\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/**\n * The **`AudioWorklet`** interface of the Web Audio API is used to supply custom audio processing scripts that execute in a separate thread to provide very low latency audio processing.\n * Available only in secure contexts.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioWorklet)\n */\ninterface AudioWorklet extends Worklet {\n}\n\ndeclare var AudioWorklet: {\n prototype: AudioWorklet;\n new(): AudioWorklet;\n};\n\ninterface AudioWorkletNodeEventMap {\n "processorerror": ErrorEvent;\n}\n\n/**\n * The **`AudioWorkletNode`** interface of the Web Audio API represents a base class for a user-defined AudioNode, which can be connected to an audio routing graph along with other nodes.\n * Available only in secure contexts.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioWorkletNode)\n */\ninterface AudioWorkletNode extends AudioNode {\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioWorkletNode/processorerror_event) */\n onprocessorerror: ((this: AudioWorkletNode, ev: ErrorEvent) => any) | null;\n /**\n * The read-only **`parameters`** property of the underlying AudioWorkletProcessor according to its getter.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioWorkletNode/parameters)\n */\n readonly parameters: AudioParamMap;\n /**\n * The read-only **`port`** property of the associated AudioWorkletProcessor.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioWorkletNode/port)\n */\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\n/**\n * The **`AuthenticatorAssertionResponse`** interface of the Web Authentication API contains a digital signature from the private key of a particular WebAuthn credential.\n * Available only in secure contexts.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/AuthenticatorAssertionResponse)\n */\ninterface AuthenticatorAssertionResponse extends AuthenticatorResponse {\n /**\n * The **`authenticatorData`** property of the AuthenticatorAssertionResponse interface returns an ArrayBuffer containing information from the authenticator such as the Relying Party ID Hash (rpIdHash), a signature counter, test of user presence, user verification flags, and any extensions processed by the authenticator.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/AuthenticatorAssertionResponse/authenticatorData)\n */\n readonly authenticatorData: ArrayBuffer;\n /**\n * The **`signature`** read-only property of the object which is the signature of the authenticator for both the client data (AuthenticatorResponse.clientDataJSON).\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/AuthenticatorAssertionResponse/signature)\n */\n readonly signature: ArrayBuffer;\n /**\n * The **`userHandle`** read-only property of the AuthenticatorAssertionResponse interface is an ArrayBuffer object providing an opaque identifier for the given user.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/AuthenticatorAssertionResponse/userHandle)\n */\n readonly userHandle: ArrayBuffer | null;\n}\n\ndeclare var AuthenticatorAssertionResponse: {\n prototype: AuthenticatorAssertionResponse;\n new(): AuthenticatorAssertionResponse;\n};\n\n/**\n * The **`AuthenticatorAttestationResponse`** interface of the Web Authentication API is the result of a WebAuthn credential registration.\n * Available only in secure contexts.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/AuthenticatorAttestationResponse)\n */\ninterface AuthenticatorAttestationResponse extends AuthenticatorResponse {\n /**\n * The **`attestationObject`** property of the entire `attestationObject` with a private key that is stored in the authenticator when it is manufactured.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/AuthenticatorAttestationResponse/attestationObject)\n */\n readonly attestationObject: ArrayBuffer;\n /**\n * The **`getAuthenticatorData()`** method of the AuthenticatorAttestationResponse interface returns an ArrayBuffer containing the authenticator data contained within the AuthenticatorAttestationResponse.attestationObject property.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/AuthenticatorAttestationResponse/getAuthenticatorData)\n */\n getAuthenticatorData(): ArrayBuffer;\n /**\n * The **`getPublicKey()`** method of the AuthenticatorAttestationResponse interface returns an ArrayBuffer containing the DER `SubjectPublicKeyInfo` of the new credential (see Subject Public Key Info), or `null` if this is not available.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/AuthenticatorAttestationResponse/getPublicKey)\n */\n getPublicKey(): ArrayBuffer | null;\n /**\n * The **`getPublicKeyAlgorithm()`** method of the AuthenticatorAttestationResponse interface returns a number that is equal to a COSE Algorithm Identifier, representing the cryptographic algorithm used for the new credential.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/AuthenticatorAttestationResponse/getPublicKeyAlgorithm)\n */\n getPublicKeyAlgorithm(): COSEAlgorithmIdentifier;\n /**\n * The **`getTransports()`** method of the AuthenticatorAttestationResponse interface returns an array of strings describing the different transports which may be used by the authenticator.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/AuthenticatorAttestationResponse/getTransports)\n */\n getTransports(): string[];\n}\n\ndeclare var AuthenticatorAttestationResponse: {\n prototype: AuthenticatorAttestationResponse;\n new(): AuthenticatorAttestationResponse;\n};\n\n/**\n * The **`AuthenticatorResponse`** interface of the Web Authentication API is the base interface for interfaces that provide a cryptographic root of trust for a key pair.\n * Available only in secure contexts.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/AuthenticatorResponse)\n */\ninterface AuthenticatorResponse {\n /**\n * The **`clientDataJSON`** property of the AuthenticatorResponse interface stores a JSON string in an An ArrayBuffer.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/AuthenticatorResponse/clientDataJSON)\n */\n readonly clientDataJSON: ArrayBuffer;\n}\n\ndeclare var AuthenticatorResponse: {\n prototype: AuthenticatorResponse;\n new(): AuthenticatorResponse;\n};\n\n/**\n * The **`BarProp`** interface of the Document Object Model represents the web browser user interface elements that are exposed to scripts in web pages.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/BarProp)\n */\ninterface BarProp {\n /**\n * The **`visible`** read-only property of the BarProp interface returns `true` if the user interface element it represents is visible.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/BarProp/visible)\n */\n readonly visible: boolean;\n}\n\ndeclare var BarProp: {\n prototype: BarProp;\n new(): BarProp;\n};\n\ninterface BaseAudioContextEventMap {\n "statechange": Event;\n}\n\n/**\n * The `BaseAudioContext` interface of the Web Audio API acts as a base definition for online and offline audio-processing graphs, as represented by AudioContext and OfflineAudioContext respectively.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/BaseAudioContext)\n */\ninterface BaseAudioContext extends EventTarget {\n /**\n * The `audioWorklet` read-only property of the processing.\n * Available only in secure contexts.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/BaseAudioContext/audioWorklet)\n */\n readonly audioWorklet: AudioWorklet;\n /**\n * The `currentTime` read-only property of the BaseAudioContext interface returns a double representing an ever-increasing hardware timestamp in seconds that can be used for scheduling audio playback, visualizing timelines, etc.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/BaseAudioContext/currentTime)\n */\n readonly currentTime: number;\n /**\n * The `destination` property of the BaseAudioContext interface returns an AudioDestinationNode representing the final destination of all audio in the context.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/BaseAudioContext/destination)\n */\n readonly destination: AudioDestinationNode;\n /**\n * The `listener` property of the BaseAudioContext interface returns an AudioListener object that can then be used for implementing 3D audio spatialization.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/BaseAudioContext/listener)\n */\n readonly listener: AudioListener;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/BaseAudioContext/statechange_event) */\n onstatechange: ((this: BaseAudioContext, ev: Event) => any) | null;\n /**\n * The `sampleRate` property of the BaseAudioContext interface returns a floating point number representing the sample rate, in samples per second, used by all nodes in this audio context.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/BaseAudioContext/sampleRate)\n */\n readonly sampleRate: number;\n /**\n * The `state` read-only property of the BaseAudioContext interface returns the current state of the `AudioContext`.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/BaseAudioContext/state)\n */\n readonly state: AudioContextState;\n /**\n * The `createAnalyser()` method of the can be used to expose audio time and frequency data and create data visualizations.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/BaseAudioContext/createAnalyser)\n */\n createAnalyser(): AnalyserNode;\n /**\n * The `createBiquadFilter()` method of the BaseAudioContext interface creates a BiquadFilterNode, which represents a second order filter configurable as several different common filter types.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/BaseAudioContext/createBiquadFilter)\n */\n createBiquadFilter(): BiquadFilterNode;\n /**\n * The `createBuffer()` method of the BaseAudioContext Interface is used to create a new, empty AudioBuffer object, which can then be populated by data, and played via an AudioBufferSourceNode.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/BaseAudioContext/createBuffer)\n */\n createBuffer(numberOfChannels: number, length: number, sampleRate: number): AudioBuffer;\n /**\n * The `createBufferSource()` method of the BaseAudioContext Interface is used to create a new AudioBufferSourceNode, which can be used to play audio data contained within an AudioBuffer object.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/BaseAudioContext/createBufferSource)\n */\n createBufferSource(): AudioBufferSourceNode;\n /**\n * The `createChannelMerger()` method of the BaseAudioContext interface creates a ChannelMergerNode, which combines channels from multiple audio streams into a single audio stream.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/BaseAudioContext/createChannelMerger)\n */\n createChannelMerger(numberOfInputs?: number): ChannelMergerNode;\n /**\n * The `createChannelSplitter()` method of the BaseAudioContext Interface is used to create a ChannelSplitterNode, which is used to access the individual channels of an audio stream and process them separately.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/BaseAudioContext/createChannelSplitter)\n */\n createChannelSplitter(numberOfOutputs?: number): ChannelSplitterNode;\n /**\n * The **`createConstantSource()`** property of the BaseAudioContext interface creates a outputs a monaural (one-channel) sound signal whose samples all have the same value.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/BaseAudioContext/createConstantSource)\n */\n createConstantSource(): ConstantSourceNode;\n /**\n * The `createConvolver()` method of the BaseAudioContext interface creates a ConvolverNode, which is commonly used to apply reverb effects to your audio.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/BaseAudioContext/createConvolver)\n */\n createConvolver(): ConvolverNode;\n /**\n * The `createDelay()` method of the which is used to delay the incoming audio signal by a certain amount of time.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/BaseAudioContext/createDelay)\n */\n createDelay(maxDelayTime?: number): DelayNode;\n /**\n * The `createDynamicsCompressor()` method of the BaseAudioContext Interface is used to create a DynamicsCompressorNode, which can be used to apply compression to an audio signal.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/BaseAudioContext/createDynamicsCompressor)\n */\n createDynamicsCompressor(): DynamicsCompressorNode;\n /**\n * The `createGain()` method of the BaseAudioContext interface creates a GainNode, which can be used to control the overall gain (or volume) of the audio graph.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/BaseAudioContext/createGain)\n */\n createGain(): GainNode;\n /**\n * The **`createIIRFilter()`** method of the BaseAudioContext interface creates an IIRFilterNode, which represents a general **infinite impulse response** (IIR) filter which can be configured to serve as various types of filter.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/BaseAudioContext/createIIRFilter)\n */\n createIIRFilter(feedforward: number[], feedback: number[]): IIRFilterNode;\n /**\n * The `createOscillator()` method of the BaseAudioContext interface creates an OscillatorNode, a source representing a periodic waveform.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/BaseAudioContext/createOscillator)\n */\n createOscillator(): OscillatorNode;\n /**\n * The `createPanner()` method of the BaseAudioContext Interface is used to create a new PannerNode, which is used to spatialize an incoming audio stream in 3D space.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/BaseAudioContext/createPanner)\n */\n createPanner(): PannerNode;\n /**\n * The `createPeriodicWave()` method of the BaseAudioContext interface is used to create a PeriodicWave.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/BaseAudioContext/createPeriodicWave)\n */\n createPeriodicWave(real: number[] | Float32Array, imag: number[] | Float32Array, constraints?: PeriodicWaveConstraints): PeriodicWave;\n /**\n * The `createScriptProcessor()` method of the BaseAudioContext interface creates a ScriptProcessorNode used for direct audio processing.\n * @deprecated\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/BaseAudioContext/createScriptProcessor)\n */\n createScriptProcessor(bufferSize?: number, numberOfInputChannels?: number, numberOfOutputChannels?: number): ScriptProcessorNode;\n /**\n * The `createStereoPanner()` method of the BaseAudioContext interface creates a StereoPannerNode, which can be used to apply stereo panning to an audio source.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/BaseAudioContext/createStereoPanner)\n */\n createStereoPanner(): StereoPannerNode;\n /**\n * The `createWaveShaper()` method of the BaseAudioContext interface creates a WaveShaperNode, which represents a non-linear distortion.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/BaseAudioContext/createWaveShaper)\n */\n createWaveShaper(): WaveShaperNode;\n /**\n * The `decodeAudioData()` method of the BaseAudioContext Interface is used to asynchronously decode audio file data contained in an rate, then passed to a callback or promise.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/BaseAudioContext/decodeAudioData)\n */\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/**\n * The **`BeforeUnloadEvent`** interface represents the event object for the Window/beforeunload_event event, which is fired when the current window, contained document, and associated resources are about to be unloaded.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/BeforeUnloadEvent)\n */\ninterface BeforeUnloadEvent extends Event {\n /**\n * The **`returnValue`** property of the `returnValue` is initialized to an empty string (`\'\'`) value.\n * @deprecated\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/BeforeUnloadEvent/returnValue)\n */\n returnValue: any;\n}\n\ndeclare var BeforeUnloadEvent: {\n prototype: BeforeUnloadEvent;\n new(): BeforeUnloadEvent;\n};\n\n/**\n * The `BiquadFilterNode` interface represents a simple low-order filter, and is created using the BaseAudioContext/createBiquadFilter method.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/BiquadFilterNode)\n */\ninterface BiquadFilterNode extends AudioNode {\n /**\n * The `Q` property of the BiquadFilterNode interface is an a-rate AudioParam, a double representing a Q factor, or _quality factor_.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/BiquadFilterNode/Q)\n */\n readonly Q: AudioParam;\n /**\n * The `detune` property of the BiquadFilterNode interface is an a-rate AudioParam representing detuning of the frequency in cents.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/BiquadFilterNode/detune)\n */\n readonly detune: AudioParam;\n /**\n * The `frequency` property of the BiquadFilterNode interface is an a-rate AudioParam — a double representing a frequency in the current filtering algorithm measured in hertz (Hz).\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/BiquadFilterNode/frequency)\n */\n readonly frequency: AudioParam;\n /**\n * The `gain` property of the BiquadFilterNode interface is an a-rate AudioParam — a double representing the gain used in the current filtering algorithm.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/BiquadFilterNode/gain)\n */\n readonly gain: AudioParam;\n /**\n * The `type` property of the BiquadFilterNode interface is a string (enum) value defining the kind of filtering algorithm the node is implementing.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/BiquadFilterNode/type)\n */\n type: BiquadFilterType;\n /**\n * The `getFrequencyResponse()` method of the BiquadFilterNode interface takes the current filtering algorithm\'s settings and calculates the frequency response for frequencies specified in a specified array of frequencies.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/BiquadFilterNode/getFrequencyResponse)\n */\n getFrequencyResponse(frequencyHz: Float32Array<ArrayBuffer>, magResponse: Float32Array<ArrayBuffer>, phaseResponse: Float32Array<ArrayBuffer>): void;\n}\n\ndeclare var BiquadFilterNode: {\n prototype: BiquadFilterNode;\n new(context: BaseAudioContext, options?: BiquadFilterOptions): BiquadFilterNode;\n};\n\n/**\n * The **`Blob`** interface represents a blob, which is a file-like object of immutable, raw data; they can be read as text or binary data, or converted into a ReadableStream so its methods can be used for processing the data.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Blob)\n */\ninterface Blob {\n /**\n * The **`size`** read-only property of the Blob interface returns the size of the Blob or File in bytes.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Blob/size)\n */\n readonly size: number;\n /**\n * The **`type`** read-only property of the Blob interface returns the MIME type of the file.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Blob/type)\n */\n readonly type: string;\n /**\n * The **`arrayBuffer()`** method of the Blob interface returns a Promise that resolves with the contents of the blob as binary data contained in an ArrayBuffer.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Blob/arrayBuffer)\n */\n arrayBuffer(): Promise<ArrayBuffer>;\n /**\n * The **`bytes()`** method of the Blob interface returns a Promise that resolves with a Uint8Array containing the contents of the blob as an array of bytes.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Blob/bytes)\n */\n bytes(): Promise<Uint8Array<ArrayBuffer>>;\n /**\n * The **`slice()`** method of the Blob interface creates and returns a new `Blob` object which contains data from a subset of the blob on which it\'s called.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Blob/slice)\n */\n slice(start?: number, end?: number, contentType?: string): Blob;\n /**\n * The **`stream()`** method of the Blob interface returns a ReadableStream which upon reading returns the data contained within the `Blob`.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Blob/stream)\n */\n stream(): ReadableStream<Uint8Array<ArrayBuffer>>;\n /**\n * The **`text()`** method of the string containing the contents of the blob, interpreted as UTF-8.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Blob/text)\n */\n text(): Promise<string>;\n}\n\ndeclare var Blob: {\n prototype: Blob;\n new(blobParts?: BlobPart[], options?: BlobPropertyBag): Blob;\n};\n\n/**\n * The **`BlobEvent`** interface of the MediaStream Recording API represents events associated with a Blob.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/BlobEvent)\n */\ninterface BlobEvent extends Event {\n /**\n * The **`data`** read-only property of the BlobEvent interface represents a Blob associated with the event.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/BlobEvent/data)\n */\n readonly data: Blob;\n /**\n * The **`timecode`** read-only property of the BlobEvent interface indicates the difference between the timestamp of the first chunk of data, and the timestamp of the first chunk in the first `BlobEvent` produced by this recorder.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/BlobEvent/timecode)\n */\n readonly timecode: DOMHighResTimeStamp;\n}\n\ndeclare var BlobEvent: {\n prototype: BlobEvent;\n new(type: string, eventInitDict: BlobEventInit): BlobEvent;\n};\n\ninterface Body {\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Request/body) */\n readonly body: ReadableStream<Uint8Array<ArrayBuffer>> | null;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Request/bodyUsed) */\n readonly bodyUsed: boolean;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Request/arrayBuffer) */\n arrayBuffer(): Promise<ArrayBuffer>;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Request/blob) */\n blob(): Promise<Blob>;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Request/bytes) */\n bytes(): Promise<Uint8Array<ArrayBuffer>>;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Request/formData) */\n formData(): Promise<FormData>;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Request/json) */\n json(): Promise<any>;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Request/text) */\n text(): Promise<string>;\n}\n\ninterface BroadcastChannelEventMap {\n "message": MessageEvent;\n "messageerror": MessageEvent;\n}\n\n/**\n * The **`BroadcastChannel`** interface represents a named channel that any browsing context of a given origin can subscribe to.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/BroadcastChannel)\n */\ninterface BroadcastChannel extends EventTarget {\n /**\n * The **`name`** read-only property of the BroadcastChannel interface returns a string, which uniquely identifies the given channel with its name.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/BroadcastChannel/name)\n */\n readonly name: string;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/BroadcastChannel/message_event) */\n onmessage: ((this: BroadcastChannel, ev: MessageEvent) => any) | null;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/BroadcastChannel/messageerror_event) */\n onmessageerror: ((this: BroadcastChannel, ev: MessageEvent) => any) | null;\n /**\n * The **`close()`** method of the BroadcastChannel interface terminates the connection to the underlying channel, allowing the object to be garbage collected.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/BroadcastChannel/close)\n */\n close(): void;\n /**\n * The **`postMessage()`** method of the BroadcastChannel interface sends a message, which can be of any kind of Object, to each listener in any browsing context with the same origin.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/BroadcastChannel/postMessage)\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/**\n * The **`ByteLengthQueuingStrategy`** interface of the Streams API provides a built-in byte length queuing strategy that can be used when constructing streams.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ByteLengthQueuingStrategy)\n */\ninterface ByteLengthQueuingStrategy extends QueuingStrategy<ArrayBufferView> {\n /**\n * The read-only **`ByteLengthQueuingStrategy.highWaterMark`** property returns the total number of bytes that can be contained in the internal queue before backpressure is applied.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ByteLengthQueuingStrategy/highWaterMark)\n */\n readonly highWaterMark: number;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ByteLengthQueuingStrategy/size) */\n readonly size: QueuingStrategySize<ArrayBufferView>;\n}\n\ndeclare var ByteLengthQueuingStrategy: {\n prototype: ByteLengthQueuingStrategy;\n new(init: QueuingStrategyInit): ByteLengthQueuingStrategy;\n};\n\n/**\n * The **`CDATASection`** interface represents a CDATA section that can be used within XML to include extended portions of unescaped text.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CDATASection)\n */\ninterface CDATASection extends Text {\n}\n\ndeclare var CDATASection: {\n prototype: CDATASection;\n new(): CDATASection;\n};\n\n/**\n * The `CSPViolationReportBody` interface is an extension of the Reporting API that represents the body of a Content Security Policy (CSP) violation report.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSPViolationReportBody)\n */\ninterface CSPViolationReportBody extends ReportBody {\n /**\n * The **`blockedURL`** read-only property of the CSPViolationReportBody interface is a string value that represents the resource that was blocked because it violates a Content Security Policy (CSP).\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSPViolationReportBody/blockedURL)\n */\n readonly blockedURL: string | null;\n /**\n * The **`columnNumber`** read-only property of the CSPViolationReportBody interface indicates the column number in the source file that triggered the Content Security Policy (CSP) violation.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSPViolationReportBody/columnNumber)\n */\n readonly columnNumber: number | null;\n /**\n * The **`disposition`** read-only property of the CSPViolationReportBody interface indicates whether the user agent is configured to enforce Content Security Policy (CSP) violations or only report them.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSPViolationReportBody/disposition)\n */\n readonly disposition: SecurityPolicyViolationEventDisposition;\n /**\n * The **`documentURL`** read-only property of the CSPViolationReportBody interface is a string that represents the URL of the document or worker that violated the Content Security Policy (CSP).\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSPViolationReportBody/documentURL)\n */\n readonly documentURL: string;\n /**\n * The **`effectiveDirective`** read-only property of the CSPViolationReportBody interface is a string that represents the effective Content Security Policy (CSP) directive that was violated.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSPViolationReportBody/effectiveDirective)\n */\n readonly effectiveDirective: string;\n /**\n * The **`lineNumber`** read-only property of the CSPViolationReportBody interface indicates the line number in the source file that triggered the Content Security Policy (CSP) violation.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSPViolationReportBody/lineNumber)\n */\n readonly lineNumber: number | null;\n /**\n * The **`originalPolicy`** read-only property of the CSPViolationReportBody interface is a string that represents the Content Security Policy (CSP) whose enforcement uncovered the violation.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSPViolationReportBody/originalPolicy)\n */\n readonly originalPolicy: string;\n /**\n * The **`referrer`** read-only property of the CSPViolationReportBody interface is a string that represents the URL of the referring page of the resource who\'s Content Security Policy (CSP) was violated.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSPViolationReportBody/referrer)\n */\n readonly referrer: string | null;\n /**\n * The **`sample`** read-only property of the CSPViolationReportBody interface is a string that contains a part of the resource that violated the Content Security Policy (CSP).\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSPViolationReportBody/sample)\n */\n readonly sample: string | null;\n /**\n * The **`sourceFile`** read-only property of the CSPViolationReportBody interface indicates the URL of the source file that violated the Content Security Policy (CSP).\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSPViolationReportBody/sourceFile)\n */\n readonly sourceFile: string | null;\n /**\n * The **`statusCode`** read-only property of the CSPViolationReportBody interface is a number representing the HTTP status code of the response to the request that triggered a Content Security Policy (CSP) violation (when loading a window or worker).\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSPViolationReportBody/statusCode)\n */\n readonly statusCode: number;\n /**\n * The **`toJSON()`** method of the CSPViolationReportBody interface is a _serializer_, which returns a JSON representation of the `CSPViolationReportBody` object.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSPViolationReportBody/toJSON)\n */\n toJSON(): any;\n}\n\ndeclare var CSPViolationReportBody: {\n prototype: CSPViolationReportBody;\n new(): CSPViolationReportBody;\n};\n\n/**\n * The **`CSSAnimation`** interface of the Web Animations API represents an Animation object.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSAnimation)\n */\ninterface CSSAnimation extends Animation {\n /**\n * The **`animationName`** property of the specifies one or more keyframe at-rules which describe the animation applied to the element.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSAnimation/animationName)\n */\n readonly animationName: string;\n addEventListener<K extends keyof AnimationEventMap>(type: K, listener: (this: CSSAnimation, 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: CSSAnimation, ev: AnimationEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\ndeclare var CSSAnimation: {\n prototype: CSSAnimation;\n new(): CSSAnimation;\n};\n\n/**\n * An object implementing the **`CSSConditionRule`** interface represents a single condition CSS at-rule, which consists of a condition and a statement block.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSConditionRule)\n */\ninterface CSSConditionRule extends CSSGroupingRule {\n /**\n * The read-only **`conditionText`** property of the CSSConditionRule interface returns or sets the text of the CSS rule.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSConditionRule/conditionText)\n */\n readonly conditionText: string;\n}\n\ndeclare var CSSConditionRule: {\n prototype: CSSConditionRule;\n new(): CSSConditionRule;\n};\n\n/**\n * The **`CSSContainerRule`** interface represents a single CSS @container rule.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSContainerRule)\n */\ninterface CSSContainerRule extends CSSConditionRule {\n /**\n * The read-only **`containerName`** property of the CSSContainerRule interface represents the container name of the associated CSS @container at-rule.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSContainerRule/containerName)\n */\n readonly containerName: string;\n /**\n * The read-only **`containerQuery`** property of the CSSContainerRule interface returns a string representing the container conditions that are evaluated when the container changes size in order to determine if the styles in the associated @container are applied.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSContainerRule/containerQuery)\n */\n readonly containerQuery: string;\n}\n\ndeclare var CSSContainerRule: {\n prototype: CSSContainerRule;\n new(): CSSContainerRule;\n};\n\n/**\n * The **`CSSCounterStyleRule`** interface represents an @counter-style at-rule.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSCounterStyleRule)\n */\ninterface CSSCounterStyleRule extends CSSRule {\n /**\n * The **`additiveSymbols`** property of the CSSCounterStyleRule interface gets and sets the value of the @counter-style/additive-symbols descriptor.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSCounterStyleRule/additiveSymbols)\n */\n additiveSymbols: string;\n /**\n * The **`fallback`** property of the CSSCounterStyleRule interface gets and sets the value of the @counter-style/fallback descriptor.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSCounterStyleRule/fallback)\n */\n fallback: string;\n /**\n * The **`name`** property of the CSSCounterStyleRule interface gets and sets the <custom-ident> defined as the `name` for the associated rule.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSCounterStyleRule/name)\n */\n name: string;\n /**\n * The **`negative`** property of the CSSCounterStyleRule interface gets and sets the value of the @counter-style/negative descriptor.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSCounterStyleRule/negative)\n */\n negative: string;\n /**\n * The **`pad`** property of the CSSCounterStyleRule interface gets and sets the value of the @counter-style/pad descriptor.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSCounterStyleRule/pad)\n */\n pad: string;\n /**\n * The **`prefix`** property of the CSSCounterStyleRule interface gets and sets the value of the @counter-style/prefix descriptor.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSCounterStyleRule/prefix)\n */\n prefix: string;\n /**\n * The **`range`** property of the CSSCounterStyleRule interface gets and sets the value of the @counter-style/range descriptor.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSCounterStyleRule/range)\n */\n range: string;\n /**\n * The **`speakAs`** property of the CSSCounterStyleRule interface gets and sets the value of the @counter-style/speak-as descriptor.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSCounterStyleRule/speakAs)\n */\n speakAs: string;\n /**\n * The **`suffix`** property of the CSSCounterStyleRule interface gets and sets the value of the @counter-style/suffix descriptor.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSCounterStyleRule/suffix)\n */\n suffix: string;\n /**\n * The **`symbols`** property of the CSSCounterStyleRule interface gets and sets the value of the @counter-style/symbols descriptor.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSCounterStyleRule/symbols)\n */\n symbols: string;\n /**\n * The **`system`** property of the CSSCounterStyleRule interface gets and sets the value of the @counter-style/system descriptor.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSCounterStyleRule/system)\n */\n system: string;\n}\n\ndeclare var CSSCounterStyleRule: {\n prototype: CSSCounterStyleRule;\n new(): CSSCounterStyleRule;\n};\n\n/**\n * The **`CSSFontFaceRule`** interface represents an @font-face at-rule.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSFontFaceRule)\n */\ninterface CSSFontFaceRule extends CSSRule {\n /**\n * The read-only **`style`** property of the CSSFontFaceRule interface returns the style information from the @font-face at-rule.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSFontFaceRule/style)\n */\n get style(): CSSStyleDeclaration;\n set style(cssText: string);\n}\n\ndeclare var CSSFontFaceRule: {\n prototype: CSSFontFaceRule;\n new(): CSSFontFaceRule;\n};\n\n/**\n * The **`CSSFontFeatureValuesRule`** interface represents an @font-feature-values at-rule, letting developers assign for each font face a common name to specify features indices to be used in font-variant-alternates.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSFontFeatureValuesRule)\n */\ninterface CSSFontFeatureValuesRule extends CSSRule {\n /**\n * The **`fontFamily`** property of the CSSConditionRule interface represents the name of the font family it applies to.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSFontFeatureValuesRule/fontFamily)\n */\n fontFamily: string;\n}\n\ndeclare var CSSFontFeatureValuesRule: {\n prototype: CSSFontFeatureValuesRule;\n new(): CSSFontFeatureValuesRule;\n};\n\n/**\n * The **`CSSFontPaletteValuesRule`** interface represents an @font-palette-values at-rule.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSFontPaletteValuesRule)\n */\ninterface CSSFontPaletteValuesRule extends CSSRule {\n /**\n * The read-only **`basePalette`** property of the CSSFontPaletteValuesRule interface indicates the base palette associated with the rule.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSFontPaletteValuesRule/basePalette)\n */\n readonly basePalette: string;\n /**\n * The read-only **`fontFamily`** property of the CSSFontPaletteValuesRule interface lists the font families the rule can be applied to.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSFontPaletteValuesRule/fontFamily)\n */\n readonly fontFamily: string;\n /**\n * The read-only **`name`** property of the CSSFontPaletteValuesRule interface represents the name identifying the associated @font-palette-values at-rule.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSFontPaletteValuesRule/name)\n */\n readonly name: string;\n /**\n * The read-only **`overrideColors`** property of the CSSFontPaletteValuesRule interface is a string containing a list of color index and color pair that are to be used instead.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSFontPaletteValuesRule/overrideColors)\n */\n readonly overrideColors: string;\n}\n\ndeclare var CSSFontPaletteValuesRule: {\n prototype: CSSFontPaletteValuesRule;\n new(): CSSFontPaletteValuesRule;\n};\n\n/**\n * The **`CSSGroupingRule`** interface of the CSS Object Model represents any CSS at-rule that contains other rules nested within it.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSGroupingRule)\n */\ninterface CSSGroupingRule extends CSSRule {\n /**\n * The **`cssRules`** property of the a collection of CSSRule objects.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSGroupingRule/cssRules)\n */\n readonly cssRules: CSSRuleList;\n /**\n * The **`deleteRule()`** method of the rules.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSGroupingRule/deleteRule)\n */\n deleteRule(index: number): void;\n /**\n * The **`insertRule()`** method of the ```js-nolint insertRule(rule) insertRule(rule, index) ``` - `rule` - : A string - `index` [MISSING: optional_inline] - : An optional index at which to insert the rule; defaults to 0.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSGroupingRule/insertRule)\n */\n insertRule(rule: string, index?: number): number;\n}\n\ndeclare var CSSGroupingRule: {\n prototype: CSSGroupingRule;\n new(): CSSGroupingRule;\n};\n\n/**\n * The **`CSSImageValue`** interface of the CSS Typed Object Model API represents values for properties that take an image, for example background-image, list-style-image, or border-image-source.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSImageValue)\n */\ninterface CSSImageValue extends CSSStyleValue {\n}\n\ndeclare var CSSImageValue: {\n prototype: CSSImageValue;\n new(): CSSImageValue;\n};\n\n/**\n * The **`CSSImportRule`** interface represents an @import at-rule.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSImportRule)\n */\ninterface CSSImportRule extends CSSRule {\n /**\n * The read-only **`href`** property of the The resolved URL will be the `href` attribute of the associated stylesheet.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSImportRule/href)\n */\n readonly href: string;\n /**\n * The read-only **`layerName`** property of the CSSImportRule interface returns the name of the cascade layer created by the @import at-rule.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSImportRule/layerName)\n */\n readonly layerName: string | null;\n /**\n * The read-only **`media`** property of the containing the value of the `media` attribute of the associated stylesheet.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSImportRule/media)\n */\n get media(): MediaList;\n set media(mediaText: string);\n /**\n * The read-only **`styleSheet`** property of the in the form of a CSSStyleSheet object.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSImportRule/styleSheet)\n */\n readonly styleSheet: CSSStyleSheet | null;\n /**\n * The read-only **`supportsText`** property of the CSSImportRule interface returns the supports condition specified by the @import at-rule.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSImportRule/supportsText)\n */\n readonly supportsText: string | null;\n}\n\ndeclare var CSSImportRule: {\n prototype: CSSImportRule;\n new(): CSSImportRule;\n};\n\n/**\n * The **`CSSKeyframeRule`** interface describes an object representing a set of styles for a given keyframe.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSKeyframeRule)\n */\ninterface CSSKeyframeRule extends CSSRule {\n /**\n * The **`keyText`** property of the CSSKeyframeRule interface represents the keyframe selector as a comma-separated list of percentage values.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSKeyframeRule/keyText)\n */\n keyText: string;\n /**\n * The read-only **`CSSKeyframeRule.style`** property is the CSSStyleDeclaration interface for the declaration block of the CSSKeyframeRule.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSKeyframeRule/style)\n */\n get style(): CSSStyleDeclaration;\n set style(cssText: string);\n}\n\ndeclare var CSSKeyframeRule: {\n prototype: CSSKeyframeRule;\n new(): CSSKeyframeRule;\n};\n\n/**\n * The **`CSSKeyframesRule`** interface describes an object representing a complete set of keyframes for a CSS animation.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSKeyframesRule)\n */\ninterface CSSKeyframesRule extends CSSRule {\n /**\n * The read-only **`cssRules`** property of the CSSKeyframeRule interface returns a CSSRuleList containing the rules in the keyframes at-rule.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSKeyframesRule/cssRules)\n */\n readonly cssRules: CSSRuleList;\n /**\n * The read-only **`length`** property of the CSSKeyframeRule interface returns the number of CSSKeyframeRule objects in its list.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSKeyframesRule/length)\n */\n readonly length: number;\n /**\n * The **`name`** property of the CSSKeyframeRule interface gets and sets the name of the animation as used by the animation-name property.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSKeyframesRule/name)\n */\n name: string;\n /**\n * The **`appendRule()`** method of the CSSKeyframeRule interface appends a CSSKeyFrameRule to the end of the rules.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSKeyframesRule/appendRule)\n */\n appendRule(rule: string): void;\n /**\n * The **`deleteRule()`** method of the CSSKeyframeRule interface deletes the CSSKeyFrameRule that matches the specified keyframe selector.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSKeyframesRule/deleteRule)\n */\n deleteRule(select: string): void;\n /**\n * The **`findRule()`** method of the CSSKeyframeRule interface finds the CSSKeyFrameRule that matches the specified keyframe selector.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSKeyframesRule/findRule)\n */\n findRule(select: string): CSSKeyframeRule | null;\n [index: number]: CSSKeyframeRule;\n}\n\ndeclare var CSSKeyframesRule: {\n prototype: CSSKeyframesRule;\n new(): CSSKeyframesRule;\n};\n\n/**\n * The **`CSSKeywordValue`** interface of the CSS Typed Object Model API creates an object to represent CSS keywords and other identifiers.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSKeywordValue)\n */\ninterface CSSKeywordValue extends CSSStyleValue {\n /**\n * The **`value`** property of the `CSSKeywordValue`.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSKeywordValue/value)\n */\n value: string;\n}\n\ndeclare var CSSKeywordValue: {\n prototype: CSSKeywordValue;\n new(value: string): CSSKeywordValue;\n};\n\n/**\n * The **`CSSLayerBlockRule`** represents a @layer block rule.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSLayerBlockRule)\n */\ninterface CSSLayerBlockRule extends CSSGroupingRule {\n /**\n * The read-only **`name`** property of the CSSLayerBlockRule interface represents the name of the associated cascade layer.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSLayerBlockRule/name)\n */\n readonly name: string;\n}\n\ndeclare var CSSLayerBlockRule: {\n prototype: CSSLayerBlockRule;\n new(): CSSLayerBlockRule;\n};\n\n/**\n * The **`CSSLayerStatementRule`** represents a @layer statement rule.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSLayerStatementRule)\n */\ninterface CSSLayerStatementRule extends CSSRule {\n /**\n * The read-only **`nameList`** property of the CSSLayerStatementRule interface return the list of associated cascade layer names.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSLayerStatementRule/nameList)\n */\n readonly nameList: ReadonlyArray<string>;\n}\n\ndeclare var CSSLayerStatementRule: {\n prototype: CSSLayerStatementRule;\n new(): CSSLayerStatementRule;\n};\n\ninterface CSSMathClamp extends CSSMathValue {\n readonly lower: CSSNumericValue;\n readonly upper: CSSNumericValue;\n readonly value: CSSNumericValue;\n}\n\ndeclare var CSSMathClamp: {\n prototype: CSSMathClamp;\n new(lower: CSSNumberish, value: CSSNumberish, upper: CSSNumberish): CSSMathClamp;\n};\n\n/**\n * The **`CSSMathInvert`** interface of the CSS Typed Object Model API represents a CSS calc used as `calc(1 / <value>)`.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSMathInvert)\n */\ninterface CSSMathInvert extends CSSMathValue {\n /**\n * The CSSMathInvert.value read-only property of the A CSSNumericValue.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSMathInvert/value)\n */\n readonly value: CSSNumericValue;\n}\n\ndeclare var CSSMathInvert: {\n prototype: CSSMathInvert;\n new(arg: CSSNumberish): CSSMathInvert;\n};\n\n/**\n * The **`CSSMathMax`** interface of the CSS Typed Object Model API represents the CSS max function.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSMathMax)\n */\ninterface CSSMathMax extends CSSMathValue {\n /**\n * The CSSMathMax.values read-only property of the which contains one or more CSSNumericValue objects.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSMathMax/values)\n */\n readonly values: CSSNumericArray;\n}\n\ndeclare var CSSMathMax: {\n prototype: CSSMathMax;\n new(...args: CSSNumberish[]): CSSMathMax;\n};\n\n/**\n * The **`CSSMathMin`** interface of the CSS Typed Object Model API represents the CSS min function.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSMathMin)\n */\ninterface CSSMathMin extends CSSMathValue {\n /**\n * The CSSMathMin.values read-only property of the which contains one or more CSSNumericValue objects.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSMathMin/values)\n */\n readonly values: CSSNumericArray;\n}\n\ndeclare var CSSMathMin: {\n prototype: CSSMathMin;\n new(...args: CSSNumberish[]): CSSMathMin;\n};\n\n/**\n * The **`CSSMathNegate`** interface of the CSS Typed Object Model API negates the value passed into it.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSMathNegate)\n */\ninterface CSSMathNegate extends CSSMathValue {\n /**\n * The CSSMathNegate.value read-only property of the A CSSNumericValue.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSMathNegate/value)\n */\n readonly value: CSSNumericValue;\n}\n\ndeclare var CSSMathNegate: {\n prototype: CSSMathNegate;\n new(arg: CSSNumberish): CSSMathNegate;\n};\n\n/**\n * The **`CSSMathProduct`** interface of the CSS Typed Object Model API represents the result obtained by calling CSSNumericValue.add, CSSNumericValue.sub, or CSSNumericValue.toSum on CSSNumericValue.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSMathProduct)\n */\ninterface CSSMathProduct extends CSSMathValue {\n /**\n * The **`CSSMathProduct.values`** read-only property of the CSSMathProduct interface returns a A CSSNumericArray.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSMathProduct/values)\n */\n readonly values: CSSNumericArray;\n}\n\ndeclare var CSSMathProduct: {\n prototype: CSSMathProduct;\n new(...args: CSSNumberish[]): CSSMathProduct;\n};\n\n/**\n * The **`CSSMathSum`** interface of the CSS Typed Object Model API represents the result obtained by calling CSSNumericValue.add, CSSNumericValue.sub, or CSSNumericValue.toSum on CSSNumericValue.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSMathSum)\n */\ninterface CSSMathSum extends CSSMathValue {\n /**\n * The **`CSSMathSum.values`** read-only property of the CSSMathSum interface returns a CSSNumericArray object which contains one or more CSSNumericValue objects.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSMathSum/values)\n */\n readonly values: CSSNumericArray;\n}\n\ndeclare var CSSMathSum: {\n prototype: CSSMathSum;\n new(...args: CSSNumberish[]): CSSMathSum;\n};\n\n/**\n * The **`CSSMathValue`** interface of the CSS Typed Object Model API a base class for classes representing complex numeric values.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSMathValue)\n */\ninterface CSSMathValue extends CSSNumericValue {\n /**\n * The **`CSSMathValue.operator`** read-only property of the CSSMathValue interface indicates the operator that the current subtype represents.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSMathValue/operator)\n */\n readonly operator: CSSMathOperator;\n}\n\ndeclare var CSSMathValue: {\n prototype: CSSMathValue;\n new(): CSSMathValue;\n};\n\n/**\n * The **`CSSMatrixComponent`** interface of the CSS Typed Object Model API represents the matrix() and matrix3d() values of the individual transform property in CSS.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSMatrixComponent)\n */\ninterface CSSMatrixComponent extends CSSTransformComponent {\n /**\n * The **`matrix`** property of the See the matrix() and matrix3d() pages for examples.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSMatrixComponent/matrix)\n */\n matrix: DOMMatrix;\n}\n\ndeclare var CSSMatrixComponent: {\n prototype: CSSMatrixComponent;\n new(matrix: DOMMatrixReadOnly, options?: CSSMatrixComponentOptions): CSSMatrixComponent;\n};\n\n/**\n * The **`CSSMediaRule`** interface represents a single CSS @media rule.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSMediaRule)\n */\ninterface CSSMediaRule extends CSSConditionRule {\n /**\n * The read-only **`media`** property of the destination medium for style information.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSMediaRule/media)\n */\n get media(): MediaList;\n set media(mediaText: string);\n}\n\ndeclare var CSSMediaRule: {\n prototype: CSSMediaRule;\n new(): CSSMediaRule;\n};\n\n/**\n * The **`CSSNamespaceRule`** interface describes an object representing a single CSS @namespace at-rule.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSNamespaceRule)\n */\ninterface CSSNamespaceRule extends CSSRule {\n /**\n * The read-only **`namespaceURI`** property of the CSSNamespaceRule returns a string containing the text of the URI of the given namespace.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSNamespaceRule/namespaceURI)\n */\n readonly namespaceURI: string;\n /**\n * The read-only **`prefix`** property of the CSSNamespaceRule returns a string with the name of the prefix associated to this namespace.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSNamespaceRule/prefix)\n */\n readonly prefix: string;\n}\n\ndeclare var CSSNamespaceRule: {\n prototype: CSSNamespaceRule;\n new(): CSSNamespaceRule;\n};\n\n/**\n * The **`CSSNestedDeclarations`** interface of the CSS Rule API is used to group nested CSSRules.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSNestedDeclarations)\n */\ninterface CSSNestedDeclarations extends CSSRule {\n /**\n * The read-only **`style`** property of the CSSNestedDeclarations interface represents the styles associated with the nested rules.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSNestedDeclarations/style)\n */\n get style(): CSSStyleDeclaration;\n set style(cssText: string);\n}\n\ndeclare var CSSNestedDeclarations: {\n prototype: CSSNestedDeclarations;\n new(): CSSNestedDeclarations;\n};\n\n/**\n * The **`CSSNumericArray`** interface of the CSS Typed Object Model API contains a list of CSSNumericValue objects.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSNumericArray)\n */\ninterface CSSNumericArray {\n /**\n * The read-only **`length`** property of the An integer representing the number of CSSNumericValue objects in the list.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSNumericArray/length)\n */\n readonly length: number;\n forEach(callbackfn: (value: CSSNumericValue, key: number, parent: CSSNumericArray) => void, thisArg?: any): void;\n [index: number]: CSSNumericValue;\n}\n\ndeclare var CSSNumericArray: {\n prototype: CSSNumericArray;\n new(): CSSNumericArray;\n};\n\n/**\n * The **`CSSNumericValue`** interface of the CSS Typed Object Model API represents operations that all numeric values can perform.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSNumericValue)\n */\ninterface CSSNumericValue extends CSSStyleValue {\n /**\n * The **`add()`** method of the `CSSNumericValue`.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSNumericValue/add)\n */\n add(...values: CSSNumberish[]): CSSNumericValue;\n /**\n * The **`div()`** method of the supplied value.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSNumericValue/div)\n */\n div(...values: CSSNumberish[]): CSSNumericValue;\n /**\n * The **`equals()`** method of the value are strictly equal.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSNumericValue/equals)\n */\n equals(...value: CSSNumberish[]): boolean;\n /**\n * The **`max()`** method of the passed.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSNumericValue/max)\n */\n max(...values: CSSNumberish[]): CSSNumericValue;\n /**\n * The **`min()`** method of the values passed.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSNumericValue/min)\n */\n min(...values: CSSNumberish[]): CSSNumericValue;\n /**\n * The **`mul()`** method of the the supplied value.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSNumericValue/mul)\n */\n mul(...values: CSSNumberish[]): CSSNumericValue;\n /**\n * The **`sub()`** method of the `CSSNumericValue`.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSNumericValue/sub)\n */\n sub(...values: CSSNumberish[]): CSSNumericValue;\n /**\n * The **`to()`** method of the another.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSNumericValue/to)\n */\n to(unit: string): CSSUnitValue;\n /**\n * The **`toSum()`** method of the ```js-nolint toSum(units) ``` - `units` - : The units to convert to.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSNumericValue/toSum)\n */\n toSum(...units: string[]): CSSMathSum;\n /**\n * The **`type()`** method of the `CSSNumericValue`, one of `angle`, `flex`, `frequency`, `length`, `resolution`, `percent`, `percentHint`, or `time`.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSNumericValue/type)\n */\n type(): CSSNumericType;\n}\n\ndeclare var CSSNumericValue: {\n prototype: CSSNumericValue;\n new(): CSSNumericValue;\n /**\n * The **`parse()`** static method of the members are value and the units.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSNumericValue/parse_static)\n */\n parse(cssText: string): CSSNumericValue;\n};\n\n/**\n * **`CSSPageRule`** represents a single CSS @page rule.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSPageRule)\n */\ninterface CSSPageRule extends CSSGroupingRule {\n /**\n * The **`selectorText`** property of the CSSPageRule interface gets and sets the selectors associated with the `CSSPageRule`.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSPageRule/selectorText)\n */\n selectorText: string;\n /**\n * The **`style`** read-only property of the CSSPageRule interface returns a CSSPageDescriptors object.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSPageRule/style)\n */\n get style(): CSSStyleDeclaration;\n set style(cssText: string);\n}\n\ndeclare var CSSPageRule: {\n prototype: CSSPageRule;\n new(): CSSPageRule;\n};\n\n/**\n * The **`CSSPerspective`** interface of the CSS Typed Object Model API represents the perspective() value of the individual transform property in CSS.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSPerspective)\n */\ninterface CSSPerspective extends CSSTransformComponent {\n /**\n * The **`length`** property of the It is used to apply a perspective transform to the element and its content.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSPerspective/length)\n */\n length: CSSPerspectiveValue;\n}\n\ndeclare var CSSPerspective: {\n prototype: CSSPerspective;\n new(length: CSSPerspectiveValue): CSSPerspective;\n};\n\n/**\n * The **`CSSPropertyRule`** interface of the CSS Properties and Values API represents a single CSS @property rule.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSPropertyRule)\n */\ninterface CSSPropertyRule extends CSSRule {\n /**\n * The read-only **`inherits`** property of the CSSPropertyRule interface returns the inherit flag of the custom property registration represented by the @property rule, a boolean describing whether or not the property inherits by default.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSPropertyRule/inherits)\n */\n readonly inherits: boolean;\n /**\n * The read-only **`initialValue`** nullable property of the CSSPropertyRule interface returns the initial value of the custom property registration represented by the @property rule, controlling the property\'s initial value.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSPropertyRule/initialValue)\n */\n readonly initialValue: string | null;\n /**\n * The read-only **`name`** property of the CSSPropertyRule interface represents the property name, this being the serialization of the name given to the custom property in the @property rule\'s prelude.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSPropertyRule/name)\n */\n readonly name: string;\n /**\n * The read-only **`syntax`** property of the CSSPropertyRule interface returns the literal syntax of the custom property registration represented by the @property rule, controlling how the property\'s value is parsed at computed-value time.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSPropertyRule/syntax)\n */\n readonly syntax: string;\n}\n\ndeclare var CSSPropertyRule: {\n prototype: CSSPropertyRule;\n new(): CSSPropertyRule;\n};\n\n/**\n * The **`CSSRotate`** interface of the CSS Typed Object Model API represents the rotate value of the individual transform property in CSS.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSRotate)\n */\ninterface CSSRotate extends CSSTransformComponent {\n /**\n * The **`angle`** property of the denotes a clockwise rotation, a negative angle a counter-clockwise one.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSRotate/angle)\n */\n angle: CSSNumericValue;\n /**\n * The **`x`** property of the translating vector.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSRotate/x)\n */\n x: CSSNumberish;\n /**\n * The **`y`** property of the translating vector.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSRotate/y)\n */\n y: CSSNumberish;\n /**\n * The **`z`** property of the vector.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSRotate/z)\n */\n z: CSSNumberish;\n}\n\ndeclare var CSSRotate: {\n prototype: CSSRotate;\n new(angle: CSSNumericValue): CSSRotate;\n new(x: CSSNumberish, y: CSSNumberish, z: CSSNumberish, angle: CSSNumericValue): CSSRotate;\n};\n\n/**\n * The **`CSSRule`** interface represents a single CSS rule.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSRule)\n */\ninterface CSSRule {\n /**\n * The **`cssText`** property of the CSSRule interface returns the actual text of a CSSStyleSheet style-rule.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSRule/cssText)\n */\n cssText: string;\n /**\n * The **`parentRule`** property of the CSSRule interface returns the containing rule of the current rule if this exists, or otherwise returns null.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSRule/parentRule)\n */\n readonly parentRule: CSSRule | null;\n /**\n * The **`parentStyleSheet`** property of the the current rule is defined.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSRule/parentStyleSheet)\n */\n readonly parentStyleSheet: CSSStyleSheet | null;\n /**\n * The read-only **`type`** property of the indicating which type of rule the CSSRule represents.\n * @deprecated\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSRule/type)\n */\n readonly type: number;\n readonly STYLE_RULE: 1;\n readonly CHARSET_RULE: 2;\n readonly IMPORT_RULE: 3;\n readonly MEDIA_RULE: 4;\n readonly FONT_FACE_RULE: 5;\n readonly PAGE_RULE: 6;\n readonly NAMESPACE_RULE: 10;\n readonly KEYFRAMES_RULE: 7;\n readonly KEYFRAME_RULE: 8;\n readonly SUPPORTS_RULE: 12;\n readonly COUNTER_STYLE_RULE: 11;\n readonly FONT_FEATURE_VALUES_RULE: 14;\n}\n\ndeclare var CSSRule: {\n prototype: CSSRule;\n new(): CSSRule;\n readonly STYLE_RULE: 1;\n readonly CHARSET_RULE: 2;\n readonly IMPORT_RULE: 3;\n readonly MEDIA_RULE: 4;\n readonly FONT_FACE_RULE: 5;\n readonly PAGE_RULE: 6;\n readonly NAMESPACE_RULE: 10;\n readonly KEYFRAMES_RULE: 7;\n readonly KEYFRAME_RULE: 8;\n readonly SUPPORTS_RULE: 12;\n readonly COUNTER_STYLE_RULE: 11;\n readonly FONT_FEATURE_VALUES_RULE: 14;\n};\n\n/**\n * A `CSSRuleList` represents an ordered collection of read-only CSSRule objects.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSRuleList)\n */\ninterface CSSRuleList {\n /**\n * The **`length`** property of the CSSRuleList interface returns the number of CSSRule objects in the list.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSRuleList/length)\n */\n readonly length: number;\n /**\n * The **`item()`** method of the CSSRuleList interface returns the CSSRule object at the specified `index` or `null` if the specified `index` doesn\'t exist.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSRuleList/item)\n */\n item(index: number): CSSRule | null;\n [index: number]: CSSRule;\n}\n\ndeclare var CSSRuleList: {\n prototype: CSSRuleList;\n new(): CSSRuleList;\n};\n\n/**\n * The **`CSSScale`** interface of the CSS Typed Object Model API represents the scale() and scale3d() values of the individual transform property in CSS.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSScale)\n */\ninterface CSSScale extends CSSTransformComponent {\n /**\n * The **`x`** property of the translating vector.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSScale/x)\n */\n x: CSSNumberish;\n /**\n * The **`y`** property of the translating vector.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSScale/y)\n */\n y: CSSNumberish;\n /**\n * The **`z`** property of the vector.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSScale/z)\n */\n z: CSSNumberish;\n}\n\ndeclare var CSSScale: {\n prototype: CSSScale;\n new(x: CSSNumberish, y: CSSNumberish, z?: CSSNumberish): CSSScale;\n};\n\n/**\n * The **`CSSScopeRule`** interface of the CSS Object Model represents a CSS @scope at-rule.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSScopeRule)\n */\ninterface CSSScopeRule extends CSSGroupingRule {\n /**\n * The **`end`** property of the CSSScopeRule interface returns a string containing the value of the `@scope` at-rule\'s scope limit.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSScopeRule/end)\n */\n readonly end: string | null;\n /**\n * The **`start`** property of the CSSScopeRule interface returns a string containing the value of the `@scope` at-rule\'s scope root.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSScopeRule/start)\n */\n readonly start: string | null;\n}\n\ndeclare var CSSScopeRule: {\n prototype: CSSScopeRule;\n new(): CSSScopeRule;\n};\n\n/**\n * The **`CSSSkew`** interface of the CSS Typed Object Model API is part of the CSSTransformValue interface.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSSkew)\n */\ninterface CSSSkew extends CSSTransformComponent {\n /**\n * The **`ax`** property of the along the x-axis (or abscissa).\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSSkew/ax)\n */\n ax: CSSNumericValue;\n /**\n * The **`ay`** property of the along the y-axis (or ordinate).\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSSkew/ay)\n */\n ay: CSSNumericValue;\n}\n\ndeclare var CSSSkew: {\n prototype: CSSSkew;\n new(ax: CSSNumericValue, ay: CSSNumericValue): CSSSkew;\n};\n\n/**\n * The **`CSSSkewX`** interface of the CSS Typed Object Model API represents the `skewX()` value of the individual transform property in CSS.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSSkewX)\n */\ninterface CSSSkewX extends CSSTransformComponent {\n /**\n * The **`ax`** property of the along the x-axis (or abscissa).\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSSkewX/ax)\n */\n ax: CSSNumericValue;\n}\n\ndeclare var CSSSkewX: {\n prototype: CSSSkewX;\n new(ax: CSSNumericValue): CSSSkewX;\n};\n\n/**\n * The **`CSSSkewY`** interface of the CSS Typed Object Model API represents the `skewY()` value of the individual transform property in CSS.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSSkewY)\n */\ninterface CSSSkewY extends CSSTransformComponent {\n /**\n * The **`ay`** property of the along the y-axis (or ordinate).\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSSkewY/ay)\n */\n ay: CSSNumericValue;\n}\n\ndeclare var CSSSkewY: {\n prototype: CSSSkewY;\n new(ay: CSSNumericValue): CSSSkewY;\n};\n\n/**\n * The **`CSSStartingStyleRule`** interface of the CSS Object Model represents a CSS @starting-style at-rule.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSStartingStyleRule)\n */\ninterface CSSStartingStyleRule extends CSSGroupingRule {\n}\n\ndeclare var CSSStartingStyleRule: {\n prototype: CSSStartingStyleRule;\n new(): CSSStartingStyleRule;\n};\n\n/**\n * The **`CSSStyleDeclaration`** interface represents an object that is a CSS declaration block, and exposes style information and various style-related methods and properties.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSStyleDeclaration)\n */\ninterface CSSStyleDeclaration {\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/accent-color) */\n accentColor: string;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/align-content) */\n alignContent: string;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/align-items) */\n alignItems: string;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/align-self) */\n alignSelf: string;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/alignment-baseline) */\n alignmentBaseline: string;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/all) */\n all: string;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/animation) */\n animation: string;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/animation-composition) */\n animationComposition: string;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/animation-delay) */\n animationDelay: string;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/animation-direction) */\n animationDirection: string;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/animation-duration) */\n animationDuration: string;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/animation-fill-mode) */\n animationFillMode: string;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/animation-iteration-count) */\n animationIterationCount: string;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/animation-name) */\n animationName: string;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/animation-play-state) */\n animationPlayState: string;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/animation-timing-function) */\n animationTimingFunction: string;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/appearance) */\n appearance: string;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/aspect-ratio) */\n aspectRatio: string;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/backdrop-filter) */\n backdropFilter: string;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/backface-visibility) */\n backfaceVisibility: string;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/background) */\n background: string;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/background-attachment) */\n backgroundAttachment: string;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/background-blend-mode) */\n backgroundBlendMode: string;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/background-clip) */\n backgroundClip: string;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/background-color) */\n backgroundColor: string;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/background-image) */\n backgroundImage: string;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/background-origin) */\n backgroundOrigin: string;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/background-position) */\n backgroundPosition: string;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/background-position-x) */\n backgroundPositionX: string;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/background-position-y) */\n backgroundPositionY: string;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/background-repeat) */\n backgroundRepeat: string;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/background-size) */\n backgroundSize: string;\n baselineShift: string;\n baselineSource: string;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/block-size) */\n blockSize: string;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/border) */\n border: string;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/border-block) */\n borderBlock: string;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/border-block-color) */\n borderBlockColor: string;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/border-block-end) */\n borderBlockEnd: string;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/border-block-end-color) */\n borderBlockEndColor: string;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/border-block-end-style) */\n borderBlockEndStyle: string;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/border-block-end-width) */\n borderBlockEndWidth: string;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/border-block-start) */\n borderBlockStart: string;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/border-block-start-color) */\n borderBlockStartColor: string;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/border-block-start-style) */\n borderBlockStartStyle: string;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/border-block-start-width) */\n borderBlockStartWidth: string;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/border-block-style) */\n borderBlockStyle: string;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/border-block-width) */\n borderBlockWidth: string;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/border-bottom) */\n borderBottom: string;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/border-bottom-color) */\n borderBottomColor: string;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/border-bottom-left-radius) */\n borderBottomLeftRadius: string;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/border-bottom-right-radius) */\n borderBottomRightRadius: string;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/border-bottom-style) */\n borderBottomStyle: string;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/border-bottom-width) */\n borderBottomWidth: string;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/border-collapse) */\n borderCollapse: string;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/border-color) */\n borderColor: string;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/border-end-end-radius) */\n borderEndEndRadius: string;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/border-end-start-radius) */\n borderEndStartRadius: string;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/border-image) */\n borderImage: string;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/border-image-outset) */\n borderImageOutset: string;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/border-image-repeat) */\n borderImageRepeat: string;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/border-image-slice) */\n borderImageSlice: string;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/border-image-source) */\n borderImageSource: string;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/border-image-width) */\n borderImageWidth: string;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/border-inline) */\n borderInline: string;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/border-inline-color) */\n borderInlineColor: string;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/border-inline-end) */\n borderInlineEnd: string;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/border-inline-end-color) */\n borderInlineEndColor: string;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/border-inline-end-style) */\n borderInlineEndStyle: string;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/border-inline-end-width) */\n borderInlineEndWidth: string;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/border-inline-start) */\n borderInlineStart: string;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/border-inline-start-color) */\n borderInlineStartColor: string;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/border-inline-start-style) */\n borderInlineStartStyle: string;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/border-inline-start-width) */\n borderInlineStartWidth: string;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/border-inline-style) */\n borderInlineStyle: string;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/border-inline-width) */\n borderInlineWidth: string;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/border-left) */\n borderLeft: string;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/border-left-color) */\n borderLeftColor: string;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/border-left-style) */\n borderLeftStyle: string;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/border-left-width) */\n borderLeftWidth: string;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/border-radius) */\n borderRadius: string;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/border-right) */\n borderRight: string;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/border-right-color) */\n borderRightColor: string;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/border-right-style) */\n borderRightStyle: string;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/border-right-width) */\n borderRightWidth: string;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/border-spacing) */\n borderSpacing: string;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/border-start-end-radius) */\n borderStartEndRadius: string;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/border-start-start-radius) */\n borderStartStartRadius: string;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/border-style) */\n borderStyle: string;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/border-top) */\n borderTop: string;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/border-top-color) */\n borderTopColor: string;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/border-top-left-radius) */\n borderTopLeftRadius: string;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/border-top-right-radius) */\n borderTopRightRadius: string;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/border-top-style) */\n borderTopStyle: string;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/border-top-width) */\n borderTopWidth: string;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/border-width) */\n borderWidth: string;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/bottom) */\n bottom: string;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/box-decoration-break) */\n boxDecorationBreak: string;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/box-shadow) */\n boxShadow: string;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/box-sizing) */\n boxSizing: string;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/break-after) */\n breakAfter: string;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/break-before) */\n breakBefore: string;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/break-inside) */\n breakInside: string;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/caption-side) */\n captionSide: string;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/caret-color) */\n caretColor: string;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/clear) */\n clear: string;\n /**\n * @deprecated\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/clip)\n */\n clip: string;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/clip-path) */\n clipPath: string;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/clip-rule) */\n clipRule: string;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/color) */\n color: string;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/color-interpolation) */\n colorInterpolation: string;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/color-interpolation-filters) */\n colorInterpolationFilters: string;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/color-scheme) */\n colorScheme: string;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/column-count) */\n columnCount: string;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/column-fill) */\n columnFill: string;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/column-gap) */\n columnGap: string;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/column-rule) */\n columnRule: string;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/column-rule-color) */\n columnRuleColor: string;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/column-rule-style) */\n columnRuleStyle: string;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/column-rule-width) */\n columnRuleWidth: string;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/column-span) */\n columnSpan: string;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/column-width) */\n columnWidth: string;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/columns) */\n columns: string;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/contain) */\n contain: string;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/contain-intrinsic-block-size) */\n containIntrinsicBlockSize: string;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/contain-intrinsic-height) */\n containIntrinsicHeight: string;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/contain-intrinsic-inline-size) */\n containIntrinsicInlineSize: string;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/contain-intrinsic-size) */\n containIntrinsicSize: string;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/contain-intrinsic-width) */\n containIntrinsicWidth: string;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/container) */\n container: string;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/container-name) */\n containerName: string;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/container-type) */\n containerType: string;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/content) */\n content: string;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/content-visibility) */\n contentVisibility: string;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/counter-increment) */\n counterIncrement: string;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/counter-reset) */\n counterReset: string;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/counter-set) */\n counterSet: string;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSStyleDeclaration/cssFloat) */\n cssFloat: string;\n /**\n * The **`cssText`** property of the CSSStyleDeclaration interface returns or sets the text of the element\'s **inline** style declaration only.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSStyleDeclaration/cssText)\n */\n cssText: string;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/cursor) */\n cursor: string;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/cx) */\n cx: string;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/cy) */\n cy: string;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/d) */\n d: string;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/direction) */\n direction: string;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/display) */\n display: string;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/dominant-baseline) */\n dominantBaseline: string;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/empty-cells) */\n emptyCells: string;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/fill) */\n fill: string;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/fill-opacity) */\n fillOpacity: string;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/fill-rule) */\n fillRule: string;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/filter) */\n filter: string;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/flex) */\n flex: string;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/flex-basis) */\n flexBasis: string;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/flex-direction) */\n flexDirection: string;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/flex-flow) */\n flexFlow: string;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/flex-grow) */\n flexGrow: string;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/flex-shrink) */\n flexShrink: string;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/flex-wrap) */\n flexWrap: string;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/float) */\n float: string;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/flood-color) */\n floodColor: string;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/flood-opacity) */\n floodOpacity: string;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/font) */\n font: string;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/font-family) */\n fontFamily: string;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/font-feature-settings) */\n fontFeatureSettings: string;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/font-kerning) */\n fontKerning: string;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/font-optical-sizing) */\n fontOpticalSizing: string;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/font-palette) */\n fontPalette: string;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/font-size) */\n fontSize: string;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/font-size-adjust) */\n fontSizeAdjust: string;\n /**\n * @deprecated\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/font-stretch)\n */\n fontStretch: string;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/font-style) */\n fontStyle: string;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/font-synthesis) */\n fontSynthesis: string;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/font-synthesis-small-caps) */\n fontSynthesisSmallCaps: string;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/font-synthesis-style) */\n fontSynthesisStyle: string;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/font-synthesis-weight) */\n fontSynthesisWeight: string;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/font-variant) */\n fontVariant: string;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/font-variant-alternates) */\n fontVariantAlternates: string;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/font-variant-caps) */\n fontVariantCaps: string;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/font-variant-east-asian) */\n fontVariantEastAsian: string;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/font-variant-ligatures) */\n fontVariantLigatures: string;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/font-variant-numeric) */\n fontVariantNumeric: string;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/font-variant-position) */\n fontVariantPosition: string;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/font-variation-settings) */\n fontVariationSettings: string;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/font-weight) */\n fontWeight: string;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/forced-color-adjust) */\n forcedColorAdjust: string;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/gap) */\n gap: string;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/grid) */\n grid: string;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/grid-area) */\n gridArea: string;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/grid-auto-columns) */\n gridAutoColumns: string;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/grid-auto-flow) */\n gridAutoFlow: string;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/grid-auto-rows) */\n gridAutoRows: string;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/grid-column) */\n gridColumn: string;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/grid-column-end) */\n gridColumnEnd: string;\n /** @deprecated This is a legacy alias of `columnGap`. */\n gridColumnGap: string;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/grid-column-start) */\n gridColumnStart: string;\n /** @deprecated This is a legacy alias of `gap`. */\n gridGap: string;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/grid-row) */\n gridRow: string;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/grid-row-end) */\n gridRowEnd: string;\n /** @deprecated This is a legacy alias of `rowGap`. */\n gridRowGap: string;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/grid-row-start) */\n gridRowStart: string;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/grid-template) */\n gridTemplate: string;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/grid-template-areas) */\n gridTemplateAreas: string;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/grid-template-columns) */\n gridTemplateColumns: string;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/grid-template-rows) */\n gridTemplateRows: string;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/height) */\n height: string;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/hyphenate-character) */\n hyphenateCharacter: string;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/hyphenate-limit-chars) */\n hyphenateLimitChars: string;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/hyphens) */\n hyphens: string;\n /**\n * @deprecated\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/image-orientation)\n */\n imageOrientation: string;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/image-rendering) */\n imageRendering: string;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/inline-size) */\n inlineSize: string;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/inset) */\n inset: string;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/inset-block) */\n insetBlock: string;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/inset-block-end) */\n insetBlockEnd: string;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/inset-block-start) */\n insetBlockStart: string;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/inset-inline) */\n insetInline: string;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/inset-inline-end) */\n insetInlineEnd: string;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/inset-inline-start) */\n insetInlineStart: string;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/isolation) */\n isolation: string;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/justify-content) */\n justifyContent: string;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/justify-items) */\n justifyItems: string;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/justify-self) */\n justifySelf: string;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/left) */\n left: string;\n /**\n * The read-only property returns an integer that represents the number of style declarations in this CSS declaration block.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSStyleDeclaration/length)\n */\n readonly length: number;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/letter-spacing) */\n letterSpacing: string;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/lighting-color) */\n lightingColor: string;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/line-break) */\n lineBreak: string;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/line-height) */\n lineHeight: string;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/list-style) */\n listStyle: string;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/list-style-image) */\n listStyleImage: string;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/list-style-position) */\n listStylePosition: string;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/list-style-type) */\n listStyleType: string;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/margin) */\n margin: string;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/margin-block) */\n marginBlock: string;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/margin-block-end) */\n marginBlockEnd: string;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/margin-block-start) */\n marginBlockStart: string;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/margin-bottom) */\n marginBottom: string;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/margin-inline) */\n marginInline: string;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/margin-inline-end) */\n marginInlineEnd: string;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/margin-inline-start) */\n marginInlineStart: string;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/margin-left) */\n marginLeft: string;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/margin-right) */\n marginRight: string;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/margin-top) */\n marginTop: string;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/marker) */\n marker: string;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/marker-end) */\n markerEnd: string;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/marker-mid) */\n markerMid: string;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/marker-start) */\n markerStart: string;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/mask) */\n mask: string;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/mask-clip) */\n maskClip: string;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/mask-composite) */\n maskComposite: string;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/mask-image) */\n maskImage: string;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/mask-mode) */\n maskMode: string;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/mask-origin) */\n maskOrigin: string;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/mask-position) */\n maskPosition: string;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/mask-repeat) */\n maskRepeat: string;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/mask-size) */\n maskSize: string;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/mask-type) */\n maskType: string;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/math-depth) */\n mathDepth: string;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/math-style) */\n mathStyle: string;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/max-block-size) */\n maxBlockSize: string;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/max-height) */\n maxHeight: string;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/max-inline-size) */\n maxInlineSize: string;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/max-width) */\n maxWidth: string;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/min-block-size) */\n minBlockSize: string;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/min-height) */\n minHeight: string;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/min-inline-size) */\n minInlineSize: string;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/min-width) */\n minWidth: string;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/mix-blend-mode) */\n mixBlendMode: string;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/object-fit) */\n objectFit: string;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/object-position) */\n objectPosition: string;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/offset) */\n offset: string;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/offset-anchor) */\n offsetAnchor: string;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/offset-distance) */\n offsetDistance: string;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/offset-path) */\n offsetPath: string;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/offset-position) */\n offsetPosition: string;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/offset-rotate) */\n offsetRotate: string;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/opacity) */\n opacity: string;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/order) */\n order: string;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/orphans) */\n orphans: string;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/outline) */\n outline: string;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/outline-color) */\n outlineColor: string;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/outline-offset) */\n outlineOffset: string;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/outline-style) */\n outlineStyle: string;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/outline-width) */\n outlineWidth: string;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/overflow) */\n overflow: string;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/overflow-anchor) */\n overflowAnchor: string;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/overflow-block) */\n overflowBlock: string;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/overflow-clip-margin) */\n overflowClipMargin: string;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/overflow-inline) */\n overflowInline: string;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/overflow-wrap) */\n overflowWrap: string;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/overflow-x) */\n overflowX: string;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/overflow-y) */\n overflowY: string;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/overscroll-behavior) */\n overscrollBehavior: string;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/overscroll-behavior-block) */\n overscrollBehaviorBlock: string;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/overscroll-behavior-inline) */\n overscrollBehaviorInline: string;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/overscroll-behavior-x) */\n overscrollBehaviorX: string;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/overscroll-behavior-y) */\n overscrollBehaviorY: string;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/padding) */\n padding: string;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/padding-block) */\n paddingBlock: string;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/padding-block-end) */\n paddingBlockEnd: string;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/padding-block-start) */\n paddingBlockStart: string;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/padding-bottom) */\n paddingBottom: string;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/padding-inline) */\n paddingInline: string;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/padding-inline-end) */\n paddingInlineEnd: string;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/padding-inline-start) */\n paddingInlineStart: string;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/padding-left) */\n paddingLeft: string;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/padding-right) */\n paddingRight: string;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/padding-top) */\n paddingTop: string;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/page) */\n page: string;\n /**\n * @deprecated\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/page-break-after)\n */\n pageBreakAfter: string;\n /**\n * @deprecated\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/page-break-before)\n */\n pageBreakBefore: string;\n /**\n * @deprecated\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/page-break-inside)\n */\n pageBreakInside: string;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/paint-order) */\n paintOrder: string;\n /**\n * The **CSSStyleDeclaration.parentRule** read-only property returns a CSSRule that is the parent of this style block, e.g., a CSSStyleRule representing the style for a CSS selector.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSStyleDeclaration/parentRule)\n */\n readonly parentRule: CSSRule | null;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/perspective) */\n perspective: string;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/perspective-origin) */\n perspectiveOrigin: string;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/place-content) */\n placeContent: string;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/place-items) */\n placeItems: string;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/place-self) */\n placeSelf: string;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/pointer-events) */\n pointerEvents: string;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/position) */\n position: string;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/print-color-adjust) */\n printColorAdjust: string;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/quotes) */\n quotes: string;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/r) */\n r: string;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/resize) */\n resize: string;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/right) */\n right: string;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/rotate) */\n rotate: string;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/row-gap) */\n rowGap: string;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/ruby-align) */\n rubyAlign: string;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/ruby-position) */\n rubyPosition: string;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/rx) */\n rx: string;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/ry) */\n ry: string;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/scale) */\n scale: string;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/scroll-behavior) */\n scrollBehavior: string;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/scroll-margin) */\n scrollMargin: string;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/scroll-margin-block) */\n scrollMarginBlock: string;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/scroll-margin-block-end) */\n scrollMarginBlockEnd: string;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/scroll-margin-block-start) */\n scrollMarginBlockStart: string;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/scroll-margin-bottom) */\n scrollMarginBottom: string;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/scroll-margin-inline) */\n scrollMarginInline: string;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/scroll-margin-inline-end) */\n scrollMarginInlineEnd: string;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/scroll-margin-inline-start) */\n scrollMarginInlineStart: string;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/scroll-margin-left) */\n scrollMarginLeft: string;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/scroll-margin-right) */\n scrollMarginRight: string;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/scroll-margin-top) */\n scrollMarginTop: string;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/scroll-padding) */\n scrollPadding: string;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/scroll-padding-block) */\n scrollPaddingBlock: string;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/scroll-padding-block-end) */\n scrollPaddingBlockEnd: string;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/scroll-padding-block-start) */\n scrollPaddingBlockStart: string;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/scroll-padding-bottom) */\n scrollPaddingBottom: string;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/scroll-padding-inline) */\n scrollPaddingInline: string;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/scroll-padding-inline-end) */\n scrollPaddingInlineEnd: string;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/scroll-padding-inline-start) */\n scrollPaddingInlineStart: string;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/scroll-padding-left) */\n scrollPaddingLeft: string;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/scroll-padding-right) */\n scrollPaddingRight: string;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/scroll-padding-top) */\n scrollPaddingTop: string;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/scroll-snap-align) */\n scrollSnapAlign: string;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/scroll-snap-stop) */\n scrollSnapStop: string;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/scroll-snap-type) */\n scrollSnapType: string;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/scrollbar-color) */\n scrollbarColor: string;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/scrollbar-gutter) */\n scrollbarGutter: string;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/scrollbar-width) */\n scrollbarWidth: string;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/shape-image-threshold) */\n shapeImageThreshold: string;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/shape-margin) */\n shapeMargin: string;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/shape-outside) */\n shapeOutside: string;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/shape-rendering) */\n shapeRendering: string;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/stop-color) */\n stopColor: string;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/stop-opacity) */\n stopOpacity: string;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/stroke) */\n stroke: string;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/stroke-dasharray) */\n strokeDasharray: string;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/stroke-dashoffset) */\n strokeDashoffset: string;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/stroke-linecap) */\n strokeLinecap: string;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/stroke-linejoin) */\n strokeLinejoin: string;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/stroke-miterlimit) */\n strokeMiterlimit: string;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/stroke-opacity) */\n strokeOpacity: string;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/stroke-width) */\n strokeWidth: string;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/tab-size) */\n tabSize: string;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/table-layout) */\n tableLayout: string;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/text-align) */\n textAlign: string;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/text-align-last) */\n textAlignLast: string;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/text-anchor) */\n textAnchor: string;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/text-box) */\n textBox: string;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/text-box-edge) */\n textBoxEdge: string;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/text-box-trim) */\n textBoxTrim: string;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/text-combine-upright) */\n textCombineUpright: string;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/text-decoration) */\n textDecoration: string;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/text-decoration-color) */\n textDecorationColor: string;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/text-decoration-line) */\n textDecorationLine: string;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/text-decoration-skip-ink) */\n textDecorationSkipInk: string;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/text-decoration-style) */\n textDecorationStyle: string;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/text-decoration-thickness) */\n textDecorationThickness: string;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/text-emphasis) */\n textEmphasis: string;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/text-emphasis-color) */\n textEmphasisColor: string;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/text-emphasis-position) */\n textEmphasisPosition: string;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/text-emphasis-style) */\n textEmphasisStyle: string;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/text-indent) */\n textIndent: string;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/text-orientation) */\n textOrientation: string;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/text-overflow) */\n textOverflow: string;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/text-rendering) */\n textRendering: string;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/text-shadow) */\n textShadow: string;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/text-transform) */\n textTransform: string;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/text-underline-offset) */\n textUnderlineOffset: string;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/text-underline-position) */\n textUnderlinePosition: string;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/text-wrap) */\n textWrap: string;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/text-wrap-mode) */\n textWrapMode: string;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/text-wrap-style) */\n textWrapStyle: string;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/top) */\n top: string;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/touch-action) */\n touchAction: string;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/transform) */\n transform: string;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/transform-box) */\n transformBox: string;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/transform-origin) */\n transformOrigin: string;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/transform-style) */\n transformStyle: string;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/transition) */\n transition: string;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/transition-behavior) */\n transitionBehavior: string;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/transition-delay) */\n transitionDelay: string;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/transition-duration) */\n transitionDuration: string;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/transition-property) */\n transitionProperty: string;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/transition-timing-function) */\n transitionTimingFunction: string;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/translate) */\n translate: string;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/unicode-bidi) */\n unicodeBidi: string;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/user-select) */\n userSelect: string;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/vector-effect) */\n vectorEffect: string;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/vertical-align) */\n verticalAlign: string;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/view-transition-class) */\n viewTransitionClass: string;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/view-transition-name) */\n viewTransitionName: string;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/visibility) */\n visibility: string;\n /**\n * @deprecated This is a legacy alias of `alignContent`.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/align-content)\n */\n webkitAlignContent: string;\n /**\n * @deprecated This is a legacy alias of `alignItems`.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/align-items)\n */\n webkitAlignItems: string;\n /**\n * @deprecated This is a legacy alias of `alignSelf`.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/align-self)\n */\n webkitAlignSelf: string;\n /**\n * @deprecated This is a legacy alias of `animation`.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/animation)\n */\n webkitAnimation: string;\n /**\n * @deprecated This is a legacy alias of `animationDelay`.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/animation-delay)\n */\n webkitAnimationDelay: string;\n /**\n * @deprecated This is a legacy alias of `animationDirection`.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/animation-direction)\n */\n webkitAnimationDirection: string;\n /**\n * @deprecated This is a legacy alias of `animationDuration`.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/animation-duration)\n */\n webkitAnimationDuration: string;\n /**\n * @deprecated This is a legacy alias of `animationFillMode`.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/animation-fill-mode)\n */\n webkitAnimationFillMode: string;\n /**\n * @deprecated This is a legacy alias of `animationIterationCount`.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/animation-iteration-count)\n */\n webkitAnimationIterationCount: string;\n /**\n * @deprecated This is a legacy alias of `animationName`.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/animation-name)\n */\n webkitAnimationName: string;\n /**\n * @deprecated This is a legacy alias of `animationPlayState`.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/animation-play-state)\n */\n webkitAnimationPlayState: string;\n /**\n * @deprecated This is a legacy alias of `animationTimingFunction`.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/animation-timing-function)\n */\n webkitAnimationTimingFunction: string;\n /**\n * @deprecated This is a legacy alias of `appearance`.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/appearance)\n */\n webkitAppearance: string;\n /**\n * @deprecated This is a legacy alias of `backfaceVisibility`.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/backface-visibility)\n */\n webkitBackfaceVisibility: string;\n /**\n * @deprecated This is a legacy alias of `backgroundClip`.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/background-clip)\n */\n webkitBackgroundClip: string;\n /**\n * @deprecated This is a legacy alias of `backgroundOrigin`.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/background-origin)\n */\n webkitBackgroundOrigin: string;\n /**\n * @deprecated This is a legacy alias of `backgroundSize`.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/background-size)\n */\n webkitBackgroundSize: string;\n /**\n * @deprecated This is a legacy alias of `borderBottomLeftRadius`.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/border-bottom-left-radius)\n */\n webkitBorderBottomLeftRadius: string;\n /**\n * @deprecated This is a legacy alias of `borderBottomRightRadius`.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/border-bottom-right-radius)\n */\n webkitBorderBottomRightRadius: string;\n /**\n * @deprecated This is a legacy alias of `borderRadius`.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/border-radius)\n */\n webkitBorderRadius: string;\n /**\n * @deprecated This is a legacy alias of `borderTopLeftRadius`.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/border-top-left-radius)\n */\n webkitBorderTopLeftRadius: string;\n /**\n * @deprecated This is a legacy alias of `borderTopRightRadius`.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/border-top-right-radius)\n */\n webkitBorderTopRightRadius: string;\n /**\n * @deprecated This is a legacy alias of `boxAlign`.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/box-align)\n */\n webkitBoxAlign: string;\n /**\n * @deprecated This is a legacy alias of `boxFlex`.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/box-flex)\n */\n webkitBoxFlex: string;\n /**\n * @deprecated This is a legacy alias of `boxOrdinalGroup`.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/box-ordinal-group)\n */\n webkitBoxOrdinalGroup: string;\n /**\n * @deprecated This is a legacy alias of `boxOrient`.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/box-orient)\n */\n webkitBoxOrient: string;\n /**\n * @deprecated This is a legacy alias of `boxPack`.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/box-pack)\n */\n webkitBoxPack: string;\n /**\n * @deprecated This is a legacy alias of `boxShadow`.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/box-shadow)\n */\n webkitBoxShadow: string;\n /**\n * @deprecated This is a legacy alias of `boxSizing`.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/box-sizing)\n */\n webkitBoxSizing: string;\n /**\n * @deprecated This is a legacy alias of `filter`.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/filter)\n */\n webkitFilter: string;\n /**\n * @deprecated This is a legacy alias of `flex`.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/flex)\n */\n webkitFlex: string;\n /**\n * @deprecated This is a legacy alias of `flexBasis`.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/flex-basis)\n */\n webkitFlexBasis: string;\n /**\n * @deprecated This is a legacy alias of `flexDirection`.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/flex-direction)\n */\n webkitFlexDirection: string;\n /**\n * @deprecated This is a legacy alias of `flexFlow`.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/flex-flow)\n */\n webkitFlexFlow: string;\n /**\n * @deprecated This is a legacy alias of `flexGrow`.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/flex-grow)\n */\n webkitFlexGrow: string;\n /**\n * @deprecated This is a legacy alias of `flexShrink`.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/flex-shrink)\n */\n webkitFlexShrink: string;\n /**\n * @deprecated This is a legacy alias of `flexWrap`.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/flex-wrap)\n */\n webkitFlexWrap: string;\n /**\n * @deprecated This is a legacy alias of `justifyContent`.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/justify-content)\n */\n webkitJustifyContent: string;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/line-clamp) */\n webkitLineClamp: string;\n /**\n * @deprecated This is a legacy alias of `mask`.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/mask)\n */\n webkitMask: string;\n /**\n * @deprecated This is a legacy alias of `maskBorder`.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/mask-border)\n */\n webkitMaskBoxImage: string;\n /**\n * @deprecated This is a legacy alias of `maskBorderOutset`.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/mask-border-outset)\n */\n webkitMaskBoxImageOutset: string;\n /**\n * @deprecated This is a legacy alias of `maskBorderRepeat`.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/mask-border-repeat)\n */\n webkitMaskBoxImageRepeat: string;\n /**\n * @deprecated This is a legacy alias of `maskBorderSlice`.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/mask-border-slice)\n */\n webkitMaskBoxImageSlice: string;\n /**\n * @deprecated This is a legacy alias of `maskBorderSource`.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/mask-border-source)\n */\n webkitMaskBoxImageSource: string;\n /**\n * @deprecated This is a legacy alias of `maskBorderWidth`.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/mask-border-width)\n */\n webkitMaskBoxImageWidth: string;\n /**\n * @deprecated This is a legacy alias of `maskClip`.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/mask-clip)\n */\n webkitMaskClip: string;\n /**\n * @deprecated This is a legacy alias of `maskComposite`.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/mask-composite)\n */\n webkitMaskComposite: string;\n /**\n * @deprecated This is a legacy alias of `maskImage`.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/mask-image)\n */\n webkitMaskImage: string;\n /**\n * @deprecated This is a legacy alias of `maskOrigin`.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/mask-origin)\n */\n webkitMaskOrigin: string;\n /**\n * @deprecated This is a legacy alias of `maskPosition`.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/mask-position)\n */\n webkitMaskPosition: string;\n /**\n * @deprecated This is a legacy alias of `maskRepeat`.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/mask-repeat)\n */\n webkitMaskRepeat: string;\n /**\n * @deprecated This is a legacy alias of `maskSize`.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/mask-size)\n */\n webkitMaskSize: string;\n /**\n * @deprecated This is a legacy alias of `order`.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/order)\n */\n webkitOrder: string;\n /**\n * @deprecated This is a legacy alias of `perspective`.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/perspective)\n */\n webkitPerspective: string;\n /**\n * @deprecated This is a legacy alias of `perspectiveOrigin`.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/perspective-origin)\n */\n webkitPerspectiveOrigin: string;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/-webkit-text-fill-color) */\n webkitTextFillColor: string;\n /**\n * @deprecated This is a legacy alias of `textSizeAdjust`.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/text-size-adjust)\n */\n webkitTextSizeAdjust: string;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/-webkit-text-stroke) */\n webkitTextStroke: string;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/-webkit-text-stroke-color) */\n webkitTextStrokeColor: string;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/-webkit-text-stroke-width) */\n webkitTextStrokeWidth: string;\n /**\n * @deprecated This is a legacy alias of `transform`.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/transform)\n */\n webkitTransform: string;\n /**\n * @deprecated This is a legacy alias of `transformOrigin`.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/transform-origin)\n */\n webkitTransformOrigin: string;\n /**\n * @deprecated This is a legacy alias of `transformStyle`.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/transform-style)\n */\n webkitTransformStyle: string;\n /**\n * @deprecated This is a legacy alias of `transition`.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/transition)\n */\n webkitTransition: string;\n /**\n * @deprecated This is a legacy alias of `transitionDelay`.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/transition-delay)\n */\n webkitTransitionDelay: string;\n /**\n * @deprecated This is a legacy alias of `transitionDuration`.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/transition-duration)\n */\n webkitTransitionDuration: string;\n /**\n * @deprecated This is a legacy alias of `transitionProperty`.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/transition-property)\n */\n webkitTransitionProperty: string;\n /**\n * @deprecated This is a legacy alias of `transitionTimingFunction`.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/transition-timing-function)\n */\n webkitTransitionTimingFunction: string;\n /**\n * @deprecated This is a legacy alias of `userSelect`.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/user-select)\n */\n webkitUserSelect: string;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/white-space) */\n whiteSpace: string;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/white-space-collapse) */\n whiteSpaceCollapse: string;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/widows) */\n widows: string;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/width) */\n width: string;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/will-change) */\n willChange: string;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/word-break) */\n wordBreak: string;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/word-spacing) */\n wordSpacing: string;\n /**\n * @deprecated\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/overflow-wrap)\n */\n wordWrap: string;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/writing-mode) */\n writingMode: string;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/x) */\n x: string;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/y) */\n y: string;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/z-index) */\n zIndex: string;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/zoom) */\n zoom: string;\n /**\n * The **CSSStyleDeclaration.getPropertyPriority()** method interface returns a string that provides all explicitly set priorities on the CSS property.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSStyleDeclaration/getPropertyPriority)\n */\n getPropertyPriority(property: string): string;\n /**\n * The **CSSStyleDeclaration.getPropertyValue()** method interface returns a string containing the value of a specified CSS property.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSStyleDeclaration/getPropertyValue)\n */\n getPropertyValue(property: string): string;\n /**\n * The `CSSStyleDeclaration.item()` method interface returns a CSS property name from a CSSStyleDeclaration by index.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSStyleDeclaration/item)\n */\n item(index: number): string;\n /**\n * The **`CSSStyleDeclaration.removeProperty()`** method interface removes a property from a CSS style declaration object.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSStyleDeclaration/removeProperty)\n */\n removeProperty(property: string): string;\n /**\n * The **`CSSStyleDeclaration.setProperty()`** method interface sets a new value for a property on a CSS style declaration object.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSStyleDeclaration/setProperty)\n */\n setProperty(property: string, value: string | null, priority?: string): void;\n [index: number]: string;\n}\n\ndeclare var CSSStyleDeclaration: {\n prototype: CSSStyleDeclaration;\n new(): CSSStyleDeclaration;\n};\n\n/**\n * The **`CSSStyleRule`** interface represents a single CSS style rule.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSStyleRule)\n */\ninterface CSSStyleRule extends CSSGroupingRule {\n /**\n * The **`selectorText`** property of the CSSStyleRule interface gets and sets the selectors associated with the `CSSStyleRule`.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSStyleRule/selectorText)\n */\n selectorText: string;\n /**\n * The read-only **`style`** property is the CSSStyleDeclaration interface for the declaration block of the CSSStyleRule.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSStyleRule/style)\n */\n get style(): CSSStyleDeclaration;\n set style(cssText: string);\n /**\n * The **`styleMap`** read-only property of the which provides access to the rule\'s property-value pairs.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSStyleRule/styleMap)\n */\n readonly styleMap: StylePropertyMap;\n}\n\ndeclare var CSSStyleRule: {\n prototype: CSSStyleRule;\n new(): CSSStyleRule;\n};\n\n/**\n * The **`CSSStyleSheet`** interface represents a single CSS stylesheet, and lets you inspect and modify the list of rules contained in the stylesheet.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSStyleSheet)\n */\ninterface CSSStyleSheet extends StyleSheet {\n /**\n * The read-only CSSStyleSheet property **`cssRules`** returns a live CSSRuleList which provides a real-time, up-to-date list of every CSS rule which comprises the stylesheet.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSStyleSheet/cssRules)\n */\n readonly cssRules: CSSRuleList;\n /**\n * The read-only CSSStyleSheet property **`ownerRule`** returns the CSSImportRule corresponding to the @import at-rule which imported the stylesheet into the document.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSStyleSheet/ownerRule)\n */\n readonly ownerRule: CSSRule | null;\n /**\n * **`rules`** is a _deprecated_ _legacy property_ of the CSSStyleSheet interface.\n * @deprecated\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSStyleSheet/rules)\n */\n readonly rules: CSSRuleList;\n /**\n * The obsolete CSSStyleSheet interface\'s **`addRule()`** _legacy method_ adds a new rule to the stylesheet.\n * @deprecated\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSStyleSheet/addRule)\n */\n addRule(selector?: string, style?: string, index?: number): number;\n /**\n * The CSSStyleSheet method **`deleteRule()`** removes a rule from the stylesheet object.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSStyleSheet/deleteRule)\n */\n deleteRule(index: number): void;\n /**\n * The **`CSSStyleSheet.insertRule()`** method inserts a new CSS rule into the current style sheet.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSStyleSheet/insertRule)\n */\n insertRule(rule: string, index?: number): number;\n /**\n * The obsolete CSSStyleSheet method **`removeRule()`** removes a rule from the stylesheet object.\n * @deprecated\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSStyleSheet/removeRule)\n */\n removeRule(index?: number): void;\n /**\n * The **`replace()`** method of the CSSStyleSheet interface asynchronously replaces the content of the stylesheet with the content passed into it.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSStyleSheet/replace)\n */\n replace(text: string): Promise<CSSStyleSheet>;\n /**\n * The **`replaceSync()`** method of the CSSStyleSheet interface synchronously replaces the content of the stylesheet with the content passed into it.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSStyleSheet/replaceSync)\n */\n replaceSync(text: string): void;\n}\n\ndeclare var CSSStyleSheet: {\n prototype: CSSStyleSheet;\n new(options?: CSSStyleSheetInit): CSSStyleSheet;\n};\n\n/**\n * The **`CSSStyleValue`** interface of the CSS Typed Object Model API is the base class of all CSS values accessible through the Typed OM API.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSStyleValue)\n */\ninterface CSSStyleValue {\n toString(): string;\n}\n\ndeclare var CSSStyleValue: {\n prototype: CSSStyleValue;\n new(): CSSStyleValue;\n /**\n * The **`parse()`** static method of the CSSStyleValue interface sets a specific CSS property to the specified values and returns the first value as a CSSStyleValue object.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSStyleValue/parse_static)\n */\n parse(property: string, cssText: string): CSSStyleValue;\n /**\n * The **`parseAll()`** static method of the CSSStyleValue interface sets all occurrences of a specific CSS property to the specified value and returns an array of CSSStyleValue objects, each containing one of the supplied values.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSStyleValue/parseAll_static)\n */\n parseAll(property: string, cssText: string): CSSStyleValue[];\n};\n\n/**\n * The **`CSSSupportsRule`** interface represents a single CSS @supports at-rule.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSSupportsRule)\n */\ninterface CSSSupportsRule extends CSSConditionRule {\n}\n\ndeclare var CSSSupportsRule: {\n prototype: CSSSupportsRule;\n new(): CSSSupportsRule;\n};\n\n/**\n * The **`CSSTransformComponent`** interface of the CSS Typed Object Model API is part of the CSSTransformValue interface.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSTransformComponent)\n */\ninterface CSSTransformComponent {\n /**\n * The **`is2D`** read-only property of the CSSTransformComponent interface indicates where the transform is 2D or 3D.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSTransformComponent/is2D)\n */\n is2D: boolean;\n /**\n * The **`toMatrix()`** method of the object.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSTransformComponent/toMatrix)\n */\n toMatrix(): DOMMatrix;\n toString(): string;\n}\n\ndeclare var CSSTransformComponent: {\n prototype: CSSTransformComponent;\n new(): CSSTransformComponent;\n};\n\n/**\n * The **`CSSTransformValue`** interface of the CSS Typed Object Model API represents `transform-list` values as used by the CSS transform property.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSTransformValue)\n */\ninterface CSSTransformValue extends CSSStyleValue {\n /**\n * The read-only **`is2D`** property of the In the case of the `CSSTransformValue` this property returns true unless any of the individual functions return false for `Is2D`, in which case it returns false.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSTransformValue/is2D)\n */\n readonly is2D: boolean;\n /**\n * The read-only **`length`** property of the the list.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSTransformValue/length)\n */\n readonly length: number;\n /**\n * The **`toMatrix()`** method of the ```js-nolint toMatrix() ``` None.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSTransformValue/toMatrix)\n */\n toMatrix(): DOMMatrix;\n forEach(callbackfn: (value: CSSTransformComponent, key: number, parent: CSSTransformValue) => void, thisArg?: any): void;\n [index: number]: CSSTransformComponent;\n}\n\ndeclare var CSSTransformValue: {\n prototype: CSSTransformValue;\n new(transforms: CSSTransformComponent[]): CSSTransformValue;\n};\n\n/**\n * The **`CSSTransition`** interface of the Web Animations API represents an Animation object used for a CSS Transition.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSTransition)\n */\ninterface CSSTransition extends Animation {\n /**\n * The **`transitionProperty`** property of the name** of the transition.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSTransition/transitionProperty)\n */\n readonly transitionProperty: string;\n addEventListener<K extends keyof AnimationEventMap>(type: K, listener: (this: CSSTransition, 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: CSSTransition, ev: AnimationEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\ndeclare var CSSTransition: {\n prototype: CSSTransition;\n new(): CSSTransition;\n};\n\n/**\n * The **`CSSTranslate`** interface of the CSS Typed Object Model API represents the translate() value of the individual transform property in CSS.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSTranslate)\n */\ninterface CSSTranslate extends CSSTransformComponent {\n /**\n * The **`x`** property of the translating vector.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSTranslate/x)\n */\n x: CSSNumericValue;\n /**\n * The **`y`** property of the translating vector.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSTranslate/y)\n */\n y: CSSNumericValue;\n /**\n * The **`z`** property of the vector.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSTranslate/z)\n */\n z: CSSNumericValue;\n}\n\ndeclare var CSSTranslate: {\n prototype: CSSTranslate;\n new(x: CSSNumericValue, y: CSSNumericValue, z?: CSSNumericValue): CSSTranslate;\n};\n\n/**\n * The **`CSSUnitValue`** interface of the CSS Typed Object Model API represents values that contain a single unit type.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSUnitValue)\n */\ninterface CSSUnitValue extends CSSNumericValue {\n /**\n * The **`CSSUnitValue.unit`** read-only property of the CSSUnitValue interface returns a string indicating the type of unit.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSUnitValue/unit)\n */\n readonly unit: string;\n /**\n * The **`CSSUnitValue.value`** property of the A double.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSUnitValue/value)\n */\n value: number;\n}\n\ndeclare var CSSUnitValue: {\n prototype: CSSUnitValue;\n new(value: number, unit: string): CSSUnitValue;\n};\n\n/**\n * The **`CSSUnparsedValue`** interface of the CSS Typed Object Model API represents property values that reference custom properties.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSUnparsedValue)\n */\ninterface CSSUnparsedValue extends CSSStyleValue {\n /**\n * The **`length`** read-only property of the An integer.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSUnparsedValue/length)\n */\n readonly length: number;\n forEach(callbackfn: (value: CSSUnparsedSegment, key: number, parent: CSSUnparsedValue) => void, thisArg?: any): void;\n [index: number]: CSSUnparsedSegment;\n}\n\ndeclare var CSSUnparsedValue: {\n prototype: CSSUnparsedValue;\n new(members: CSSUnparsedSegment[]): CSSUnparsedValue;\n};\n\n/**\n * The **`CSSVariableReferenceValue`** interface of the CSS Typed Object Model API allows you to create a custom name for a built-in CSS value.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSVariableReferenceValue)\n */\ninterface CSSVariableReferenceValue {\n /**\n * The **`fallback`** read-only property of the A CSSUnparsedValue.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSVariableReferenceValue/fallback)\n */\n readonly fallback: CSSUnparsedValue | null;\n /**\n * The **`variable`** property of the A string beginning with `--` (that is, a custom property name).\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSVariableReferenceValue/variable)\n */\n variable: string;\n}\n\ndeclare var CSSVariableReferenceValue: {\n prototype: CSSVariableReferenceValue;\n new(variable: string, fallback?: CSSUnparsedValue | null): CSSVariableReferenceValue;\n};\n\ninterface CSSViewTransitionRule extends CSSRule {\n readonly navigation: string;\n readonly types: ReadonlyArray<string>;\n}\n\ndeclare var CSSViewTransitionRule: {\n prototype: CSSViewTransitionRule;\n new(): CSSViewTransitionRule;\n};\n\n/**\n * The **`Cache`** interface provides a persistent storage mechanism for Request / Response object pairs that are cached in long lived memory.\n * Available only in secure contexts.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Cache)\n */\ninterface Cache {\n /**\n * The **`add()`** method of the Cache interface takes a URL, retrieves it, and adds the resulting response object to the given cache.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Cache/add)\n */\n add(request: RequestInfo | URL): Promise<void>;\n /**\n * The **`addAll()`** method of the Cache interface takes an array of URLs, retrieves them, and adds the resulting response objects to the given cache.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Cache/addAll)\n */\n addAll(requests: RequestInfo[]): Promise<void>;\n /**\n * The **`delete()`** method of the Cache interface finds the Cache entry whose key is the request, and if found, deletes the Cache entry and returns a Promise that resolves to `true`.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Cache/delete)\n */\n delete(request: RequestInfo | URL, options?: CacheQueryOptions): Promise<boolean>;\n /**\n * The **`keys()`** method of the Cache interface returns a representing the keys of the Cache.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Cache/keys)\n */\n keys(request?: RequestInfo | URL, options?: CacheQueryOptions): Promise<ReadonlyArray<Request>>;\n /**\n * The **`match()`** method of the Cache interface returns a Promise that resolves to the Response associated with the first matching request in the Cache object.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Cache/match)\n */\n match(request: RequestInfo | URL, options?: CacheQueryOptions): Promise<Response | undefined>;\n /**\n * The **`matchAll()`** method of the Cache interface returns a Promise that resolves to an array of all matching responses in the Cache object.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Cache/matchAll)\n */\n matchAll(request?: RequestInfo | URL, options?: CacheQueryOptions): Promise<ReadonlyArray<Response>>;\n /**\n * The **`put()`** method of the Often, you will just want to Window/fetch one or more requests, then add the result straight to your cache.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Cache/put)\n */\n put(request: RequestInfo | URL, response: Response): Promise<void>;\n}\n\ndeclare var Cache: {\n prototype: Cache;\n new(): Cache;\n};\n\n/**\n * The **`CacheStorage`** interface represents the storage for Cache objects.\n * Available only in secure contexts.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CacheStorage)\n */\ninterface CacheStorage {\n /**\n * The **`delete()`** method of the CacheStorage interface finds the Cache object matching the `cacheName`, and if found, deletes the Cache object and returns a Promise that resolves to `true`.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CacheStorage/delete)\n */\n delete(cacheName: string): Promise<boolean>;\n /**\n * The **`has()`** method of the CacheStorage interface returns a Promise that resolves to `true` if a You can access `CacheStorage` through the Window.caches property in windows or through the WorkerGlobalScope.caches property in workers.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CacheStorage/has)\n */\n has(cacheName: string): Promise<boolean>;\n /**\n * The **`keys()`** method of the CacheStorage interface returns a Promise that will resolve with an array containing strings corresponding to all of the named Cache objects tracked by the CacheStorage object in the order they were created.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CacheStorage/keys)\n */\n keys(): Promise<string[]>;\n /**\n * The **`match()`** method of the CacheStorage interface checks if a given Request or URL string is a key for a stored Response.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CacheStorage/match)\n */\n match(request: RequestInfo | URL, options?: MultiCacheQueryOptions): Promise<Response | undefined>;\n /**\n * The **`open()`** method of the the Cache object matching the `cacheName`.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CacheStorage/open)\n */\n open(cacheName: string): Promise<Cache>;\n}\n\ndeclare var CacheStorage: {\n prototype: CacheStorage;\n new(): CacheStorage;\n};\n\n/**\n * The **`CanvasCaptureMediaStreamTrack`** interface of the Media Capture and Streams API represents the video track contained in a MediaStream being generated from a canvas following a call to HTMLCanvasElement.captureStream().\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasCaptureMediaStreamTrack)\n */\ninterface CanvasCaptureMediaStreamTrack extends MediaStreamTrack {\n /**\n * The **`canvas`** read-only property of the CanvasCaptureMediaStreamTrack interface returns the HTMLCanvasElement from which frames are being captured.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasCaptureMediaStreamTrack/canvas)\n */\n readonly canvas: HTMLCanvasElement;\n /**\n * The **`requestFrame()`** method of the CanvasCaptureMediaStreamTrack interface requests that a frame be captured from the canvas and sent to the stream.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasCaptureMediaStreamTrack/requestFrame)\n */\n requestFrame(): void;\n addEventListener<K extends keyof MediaStreamTrackEventMap>(type: K, listener: (this: CanvasCaptureMediaStreamTrack, 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: CanvasCaptureMediaStreamTrack, ev: MediaStreamTrackEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\ndeclare var CanvasCaptureMediaStreamTrack: {\n prototype: CanvasCaptureMediaStreamTrack;\n new(): CanvasCaptureMediaStreamTrack;\n};\n\ninterface CanvasCompositing {\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/globalAlpha) */\n globalAlpha: number;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/globalCompositeOperation) */\n globalCompositeOperation: GlobalCompositeOperation;\n}\n\ninterface CanvasDrawImage {\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/drawImage) */\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 /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/beginPath) */\n beginPath(): void;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/clip) */\n clip(fillRule?: CanvasFillRule): void;\n clip(path: Path2D, fillRule?: CanvasFillRule): void;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/fill) */\n fill(fillRule?: CanvasFillRule): void;\n fill(path: Path2D, fillRule?: CanvasFillRule): void;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/isPointInPath) */\n isPointInPath(x: number, y: number, fillRule?: CanvasFillRule): boolean;\n isPointInPath(path: Path2D, x: number, y: number, fillRule?: CanvasFillRule): boolean;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/isPointInStroke) */\n isPointInStroke(x: number, y: number): boolean;\n isPointInStroke(path: Path2D, x: number, y: number): boolean;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/stroke) */\n stroke(): void;\n stroke(path: Path2D): void;\n}\n\ninterface CanvasFillStrokeStyles {\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/fillStyle) */\n fillStyle: string | CanvasGradient | CanvasPattern;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/strokeStyle) */\n strokeStyle: string | CanvasGradient | CanvasPattern;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/createConicGradient) */\n createConicGradient(startAngle: number, x: number, y: number): CanvasGradient;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/createLinearGradient) */\n createLinearGradient(x0: number, y0: number, x1: number, y1: number): CanvasGradient;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/createPattern) */\n createPattern(image: CanvasImageSource, repetition: string | null): CanvasPattern | null;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/createRadialGradient) */\n createRadialGradient(x0: number, y0: number, r0: number, x1: number, y1: number, r1: number): CanvasGradient;\n}\n\ninterface CanvasFilters {\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/filter) */\n filter: string;\n}\n\n/**\n * The **`CanvasGradient`** interface represents an opaque object describing a gradient.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasGradient)\n */\ninterface CanvasGradient {\n /**\n * The **`CanvasGradient.addColorStop()`** method adds a new color stop, defined by an `offset` and a `color`, to a given canvas gradient.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasGradient/addColorStop)\n */\n addColorStop(offset: number, color: string): void;\n}\n\ndeclare var CanvasGradient: {\n prototype: CanvasGradient;\n new(): CanvasGradient;\n};\n\ninterface CanvasImageData {\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/createImageData) */\n createImageData(sw: number, sh: number, settings?: ImageDataSettings): ImageData;\n createImageData(imageData: ImageData): ImageData;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/getImageData) */\n getImageData(sx: number, sy: number, sw: number, sh: number, settings?: ImageDataSettings): ImageData;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/putImageData) */\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 /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/imageSmoothingEnabled) */\n imageSmoothingEnabled: boolean;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/imageSmoothingQuality) */\n imageSmoothingQuality: ImageSmoothingQuality;\n}\n\ninterface CanvasPath {\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/arc) */\n arc(x: number, y: number, radius: number, startAngle: number, endAngle: number, counterclockwise?: boolean): void;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/arcTo) */\n arcTo(x1: number, y1: number, x2: number, y2: number, radius: number): void;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/bezierCurveTo) */\n bezierCurveTo(cp1x: number, cp1y: number, cp2x: number, cp2y: number, x: number, y: number): void;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/closePath) */\n closePath(): void;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/ellipse) */\n ellipse(x: number, y: number, radiusX: number, radiusY: number, rotation: number, startAngle: number, endAngle: number, counterclockwise?: boolean): void;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/lineTo) */\n lineTo(x: number, y: number): void;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/moveTo) */\n moveTo(x: number, y: number): void;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/quadraticCurveTo) */\n quadraticCurveTo(cpx: number, cpy: number, x: number, y: number): void;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/rect) */\n rect(x: number, y: number, w: number, h: number): void;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/roundRect) */\n roundRect(x: number, y: number, w: number, h: number, radii?: number | DOMPointInit | (number | DOMPointInit)[]): void;\n}\n\ninterface CanvasPathDrawingStyles {\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/lineCap) */\n lineCap: CanvasLineCap;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/lineDashOffset) */\n lineDashOffset: number;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/lineJoin) */\n lineJoin: CanvasLineJoin;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/lineWidth) */\n lineWidth: number;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/miterLimit) */\n miterLimit: number;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/getLineDash) */\n getLineDash(): number[];\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/setLineDash) */\n setLineDash(segments: number[]): void;\n}\n\n/**\n * The **`CanvasPattern`** interface represents an opaque object describing a pattern, based on an image, a canvas, or a video, created by the CanvasRenderingContext2D.createPattern() method.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasPattern)\n */\ninterface CanvasPattern {\n /**\n * The **`CanvasPattern.setTransform()`** method uses a DOMMatrix object as the pattern\'s transformation matrix and invokes it on the pattern.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasPattern/setTransform)\n */\n setTransform(transform?: DOMMatrix2DInit): void;\n}\n\ndeclare var CanvasPattern: {\n prototype: CanvasPattern;\n new(): CanvasPattern;\n};\n\ninterface CanvasRect {\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/clearRect) */\n clearRect(x: number, y: number, w: number, h: number): void;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/fillRect) */\n fillRect(x: number, y: number, w: number, h: number): void;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/strokeRect) */\n strokeRect(x: number, y: number, w: number, h: number): void;\n}\n\n/**\n * The **`CanvasRenderingContext2D`** interface, part of the Canvas API, provides the 2D rendering context for the drawing surface of a canvas element.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D)\n */\ninterface CanvasRenderingContext2D extends CanvasCompositing, CanvasDrawImage, CanvasDrawPath, CanvasFillStrokeStyles, CanvasFilters, CanvasImageData, CanvasImageSmoothing, CanvasPath, CanvasPathDrawingStyles, CanvasRect, CanvasSettings, CanvasShadowStyles, CanvasState, CanvasText, CanvasTextDrawingStyles, CanvasTransform, CanvasUserInterface {\n /**\n * The **`CanvasRenderingContext2D.canvas`** property, part of the Canvas API, is a read-only reference to the might be `null` if there is no associated canvas element.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/canvas)\n */\n readonly canvas: HTMLCanvasElement;\n}\n\ndeclare var CanvasRenderingContext2D: {\n prototype: CanvasRenderingContext2D;\n new(): CanvasRenderingContext2D;\n};\n\ninterface CanvasSettings {\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/getContextAttributes) */\n getContextAttributes(): CanvasRenderingContext2DSettings;\n}\n\ninterface CanvasShadowStyles {\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/shadowBlur) */\n shadowBlur: number;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/shadowColor) */\n shadowColor: string;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/shadowOffsetX) */\n shadowOffsetX: number;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/shadowOffsetY) */\n shadowOffsetY: number;\n}\n\ninterface CanvasState {\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/isContextLost) */\n isContextLost(): boolean;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/reset) */\n reset(): void;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/restore) */\n restore(): void;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/save) */\n save(): void;\n}\n\ninterface CanvasText {\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/fillText) */\n fillText(text: string, x: number, y: number, maxWidth?: number): void;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/measureText) */\n measureText(text: string): TextMetrics;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/strokeText) */\n strokeText(text: string, x: number, y: number, maxWidth?: number): void;\n}\n\ninterface CanvasTextDrawingStyles {\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/direction) */\n direction: CanvasDirection;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/font) */\n font: string;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/fontKerning) */\n fontKerning: CanvasFontKerning;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/fontStretch) */\n fontStretch: CanvasFontStretch;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/fontVariantCaps) */\n fontVariantCaps: CanvasFontVariantCaps;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/letterSpacing) */\n letterSpacing: string;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/textAlign) */\n textAlign: CanvasTextAlign;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/textBaseline) */\n textBaseline: CanvasTextBaseline;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/textRendering) */\n textRendering: CanvasTextRendering;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/wordSpacing) */\n wordSpacing: string;\n}\n\ninterface CanvasTransform {\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/getTransform) */\n getTransform(): DOMMatrix;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/resetTransform) */\n resetTransform(): void;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/rotate) */\n rotate(angle: number): void;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/scale) */\n scale(x: number, y: number): void;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/setTransform) */\n setTransform(a: number, b: number, c: number, d: number, e: number, f: number): void;\n setTransform(transform?: DOMMatrix2DInit): void;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/transform) */\n transform(a: number, b: number, c: number, d: number, e: number, f: number): void;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/translate) */\n translate(x: number, y: number): void;\n}\n\ninterface CanvasUserInterface {\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/drawFocusIfNeeded) */\n drawFocusIfNeeded(element: Element): void;\n drawFocusIfNeeded(path: Path2D, element: Element): void;\n}\n\n/**\n * The `CaretPosition` interface represents the caret position, an indicator for the text insertion point.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CaretPosition)\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/**\n * The `ChannelMergerNode` interface, often used in conjunction with its opposite, ChannelSplitterNode, reunites different mono inputs into a single output.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ChannelMergerNode)\n */\ninterface ChannelMergerNode extends AudioNode {\n}\n\ndeclare var ChannelMergerNode: {\n prototype: ChannelMergerNode;\n new(context: BaseAudioContext, options?: ChannelMergerOptions): ChannelMergerNode;\n};\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.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ChannelSplitterNode)\n */\ninterface ChannelSplitterNode extends AudioNode {\n}\n\ndeclare var ChannelSplitterNode: {\n prototype: ChannelSplitterNode;\n new(context: BaseAudioContext, options?: ChannelSplitterOptions): ChannelSplitterNode;\n};\n\n/**\n * The **`CharacterData`** abstract interface represents a Node object that contains characters.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CharacterData)\n */\ninterface CharacterData extends Node, ChildNode, NonDocumentTypeChildNode {\n /**\n * The **`data`** property of the CharacterData interface represent the value of the current object\'s data.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CharacterData/data)\n */\n data: string;\n /**\n * The read-only **`CharacterData.length`** property returns the number of characters in the contained data, as a positive integer.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CharacterData/length)\n */\n readonly length: number;\n readonly ownerDocument: Document;\n /**\n * The **`appendData()`** method of the CharacterData interface adds the provided data to the end of the node\'s current data.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CharacterData/appendData)\n */\n appendData(data: string): void;\n /**\n * The **`deleteData()`** method of the CharacterData interface removes all or part of the data from this `CharacterData` node.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CharacterData/deleteData)\n */\n deleteData(offset: number, count: number): void;\n /**\n * The **`insertData()`** method of the CharacterData interface inserts the provided data into this `CharacterData` node\'s current data, at the provided offset from the start of the existing data.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CharacterData/insertData)\n */\n insertData(offset: number, data: string): void;\n /**\n * The **`replaceData()`** method of the CharacterData interface removes a certain number of characters of the existing text in a given `CharacterData` node and replaces those characters with the text provided.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CharacterData/replaceData)\n */\n replaceData(offset: number, count: number, data: string): void;\n /**\n * The **`substringData()`** method of the CharacterData interface returns a portion of the existing data, starting at the specified index and extending for a given number of characters afterwards.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CharacterData/substringData)\n */\n substringData(offset: number, count: number): string;\n /** [MDN Reference](https://developer.mozilla.org/en-US/docs/Web/API/Node/textContent) */\n get textContent(): string;\n set textContent(value: string | null);\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 * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CharacterData/after)\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 * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CharacterData/before)\n */\n before(...nodes: (Node | string)[]): void;\n /**\n * Removes node.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CharacterData/remove)\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 * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CharacterData/replaceWith)\n */\n replaceWith(...nodes: (Node | string)[]): void;\n}\n\n/** @deprecated */\ninterface ClientRect extends DOMRect {\n}\n\n/**\n * The **`Clipboard`** interface of the Clipboard API provides read and write access to the contents of the system clipboard.\n * Available only in secure contexts.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Clipboard)\n */\ninterface Clipboard extends EventTarget {\n /**\n * The **`read()`** method of the Clipboard interface requests a copy of the clipboard\'s contents, fulfilling the returned Promise with the data.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Clipboard/read)\n */\n read(): Promise<ClipboardItems>;\n /**\n * The **`readText()`** method of the Clipboard interface returns a Promise which fulfills with a copy of the textual contents of the system clipboard.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Clipboard/readText)\n */\n readText(): Promise<string>;\n /**\n * The **`write()`** method of the Clipboard interface writes arbitrary ClipboardItem data such as images and text to the clipboard, fulfilling the returned Promise on completion.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Clipboard/write)\n */\n write(data: ClipboardItems): Promise<void>;\n /**\n * The **`writeText()`** method of the Clipboard interface writes the specified text to the system clipboard, returning a Promise that is resolved once the system clipboard has been updated.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Clipboard/writeText)\n */\n writeText(data: string): Promise<void>;\n}\n\ndeclare var Clipboard: {\n prototype: Clipboard;\n new(): Clipboard;\n};\n\n/**\n * The **`ClipboardEvent`** interface of the Clipboard API represents events providing information related to modification of the clipboard, that is Element/cut_event, Element/copy_event, and Element/paste_event events.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ClipboardEvent)\n */\ninterface ClipboardEvent extends Event {\n /**\n * The **`clipboardData`** property of the ClipboardEvent interface holds a DataTransfer object, which can be used to: - specify what data should be put into the clipboard from the Element/cut_event and Element/copy_event event handlers, typically with a DataTransfer.setData call; - obtain the data to be pasted from the Element/paste_event event handler, typically with a DataTransfer.getData call.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ClipboardEvent/clipboardData)\n */\n readonly clipboardData: DataTransfer | null;\n}\n\ndeclare var ClipboardEvent: {\n prototype: ClipboardEvent;\n new(type: string, eventInitDict?: ClipboardEventInit): ClipboardEvent;\n};\n\n/**\n * The **`ClipboardItem`** interface of the Clipboard API represents a single item format, used when reading or writing clipboard data using Clipboard.read() and Clipboard.write() respectively.\n * Available only in secure contexts.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ClipboardItem)\n */\ninterface ClipboardItem {\n /**\n * The read-only **`presentationStyle`** property of the ClipboardItem interface returns a string indicating how an item should be presented.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ClipboardItem/presentationStyle)\n */\n readonly presentationStyle: PresentationStyle;\n /**\n * The read-only **`types`** property of the ClipboardItem interface returns an Array of MIME type available within the ClipboardItem.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ClipboardItem/types)\n */\n readonly types: ReadonlyArray<string>;\n /**\n * The **`getType()`** method of the ClipboardItem interface returns a Promise that resolves with a Blob of the requested MIME type or an error if the MIME type is not found.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ClipboardItem/getType)\n */\n getType(type: string): Promise<Blob>;\n}\n\ndeclare var ClipboardItem: {\n prototype: ClipboardItem;\n new(items: Record<string, string | Blob | PromiseLike<string | Blob>>, options?: ClipboardItemOptions): ClipboardItem;\n /**\n * The **`supports()`** static method of the ClipboardItem interface returns `true` if the given MIME type is supported by the clipboard, and `false` otherwise.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ClipboardItem/supports_static)\n */\n supports(type: string): boolean;\n};\n\n/**\n * A `CloseEvent` is sent to clients using WebSockets when the connection is closed.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CloseEvent)\n */\ninterface CloseEvent extends Event {\n /**\n * The **`code`** read-only property of the CloseEvent interface returns a WebSocket connection close code indicating the reason the connection was closed.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CloseEvent/code)\n */\n readonly code: number;\n /**\n * The **`reason`** read-only property of the CloseEvent interface returns the WebSocket connection close reason the server gave for closing the connection; that is, a concise human-readable prose explanation for the closure.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CloseEvent/reason)\n */\n readonly reason: string;\n /**\n * The **`wasClean`** read-only property of the CloseEvent interface returns `true` if the connection closed cleanly.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CloseEvent/wasClean)\n */\n readonly wasClean: boolean;\n}\n\ndeclare var CloseEvent: {\n prototype: CloseEvent;\n new(type: string, eventInitDict?: CloseEventInit): CloseEvent;\n};\n\n/**\n * The **`Comment`** interface represents textual notations within markup; although it is generally not visually shown, such comments are available to be read in the source view.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Comment)\n */\ninterface Comment extends CharacterData {\n}\n\ndeclare var Comment: {\n prototype: Comment;\n new(data?: string): Comment;\n};\n\n/**\n * The DOM **`CompositionEvent`** represents events that occur due to the user indirectly entering text.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CompositionEvent)\n */\ninterface CompositionEvent extends UIEvent {\n /**\n * The **`data`** read-only property of the method that raised the event; its exact nature varies depending on the type of event that generated the `CompositionEvent` object.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CompositionEvent/data)\n */\n readonly data: string;\n /**\n * The **`initCompositionEvent()`** method of the CompositionEvent interface initializes the attributes of a `CompositionEvent` object instance.\n * @deprecated\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CompositionEvent/initCompositionEvent)\n */\n initCompositionEvent(typeArg: string, bubblesArg?: boolean, cancelableArg?: boolean, viewArg?: WindowProxy | null, dataArg?: string): void;\n}\n\ndeclare var CompositionEvent: {\n prototype: CompositionEvent;\n new(type: string, eventInitDict?: CompositionEventInit): CompositionEvent;\n};\n\n/**\n * The **`CompressionStream`** interface of the Compression Streams API is an API for compressing a stream of data.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CompressionStream)\n */\ninterface CompressionStream extends GenericTransformStream {\n readonly readable: ReadableStream<Uint8Array<ArrayBuffer>>;\n readonly writable: WritableStream<BufferSource>;\n}\n\ndeclare var CompressionStream: {\n prototype: CompressionStream;\n new(format: CompressionFormat): CompressionStream;\n};\n\n/**\n * The `ConstantSourceNode` interface—part of the Web Audio API—represents an audio source (based upon AudioScheduledSourceNode) whose output is single unchanging value.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ConstantSourceNode)\n */\ninterface ConstantSourceNode extends AudioScheduledSourceNode {\n /**\n * The read-only `offset` property of the ConstantSourceNode interface returns a AudioParam object indicating the numeric a-rate value which is always returned by the source when asked for the next sample.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ConstantSourceNode/offset)\n */\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/**\n * The **`ContentVisibilityAutoStateChangeEvent`** interface is the event object for the element/contentvisibilityautostatechange_event event, which fires on any element with content-visibility set on it when it starts or stops being relevant to the user and skipping its contents.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ContentVisibilityAutoStateChangeEvent)\n */\ninterface ContentVisibilityAutoStateChangeEvent extends Event {\n /**\n * The `skipped` read-only property of the ContentVisibilityAutoStateChangeEvent interface returns `true` if the user agent skips the element\'s contents, or `false` otherwise.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ContentVisibilityAutoStateChangeEvent/skipped)\n */\n readonly skipped: boolean;\n}\n\ndeclare var ContentVisibilityAutoStateChangeEvent: {\n prototype: ContentVisibilityAutoStateChangeEvent;\n new(type: string, eventInitDict?: ContentVisibilityAutoStateChangeEventInit): ContentVisibilityAutoStateChangeEvent;\n};\n\n/**\n * The `ConvolverNode` interface is an AudioNode that performs a Linear Convolution on a given AudioBuffer, often used to achieve a reverb effect.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ConvolverNode)\n */\ninterface ConvolverNode extends AudioNode {\n /**\n * The **`buffer`** property of the ConvolverNode interface represents a mono, stereo, or 4-channel AudioBuffer containing the (possibly multichannel) impulse response used by the `ConvolverNode` to create the reverb effect.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ConvolverNode/buffer)\n */\n buffer: AudioBuffer | null;\n /**\n * The `normalize` property of the ConvolverNode interface is a boolean that controls whether the impulse response from the buffer will be scaled by an equal-power normalization when the `buffer` attribute is set, or not.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ConvolverNode/normalize)\n */\n normalize: boolean;\n}\n\ndeclare var ConvolverNode: {\n prototype: ConvolverNode;\n new(context: BaseAudioContext, options?: ConvolverOptions): ConvolverNode;\n};\n\n/**\n * The **`CookieChangeEvent`** interface of the Cookie Store API is the event type of the CookieStore/change_event event fired at a CookieStore when any cookies are created or deleted.\n * Available only in secure contexts.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CookieChangeEvent)\n */\ninterface CookieChangeEvent extends Event {\n /**\n * The **`changed`** read-only property of the CookieChangeEvent interface returns an array of the cookies that have been changed.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CookieChangeEvent/changed)\n */\n readonly changed: ReadonlyArray<CookieListItem>;\n /**\n * The **`deleted`** read-only property of the CookieChangeEvent interface returns an array of the cookies that have been deleted by the given `CookieChangeEvent` instance.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CookieChangeEvent/deleted)\n */\n readonly deleted: ReadonlyArray<CookieListItem>;\n}\n\ndeclare var CookieChangeEvent: {\n prototype: CookieChangeEvent;\n new(type: string, eventInitDict?: CookieChangeEventInit): CookieChangeEvent;\n};\n\ninterface CookieStoreEventMap {\n "change": CookieChangeEvent;\n}\n\n/**\n * The **`CookieStore`** interface of the Cookie Store API provides methods for getting and setting cookies asynchronously from either a page or a service worker.\n * Available only in secure contexts.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CookieStore)\n */\ninterface CookieStore extends EventTarget {\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CookieStore/change_event) */\n onchange: ((this: CookieStore, ev: CookieChangeEvent) => any) | null;\n /**\n * The **`delete()`** method of the CookieStore interface deletes a cookie that matches the given `name` or `options` object.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CookieStore/delete)\n */\n delete(name: string): Promise<void>;\n delete(options: CookieStoreDeleteOptions): Promise<void>;\n /**\n * The **`get()`** method of the CookieStore interface returns a Promise that resolves to a single cookie matching the given `name` or `options` object.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CookieStore/get)\n */\n get(name: string): Promise<CookieListItem | null>;\n get(options?: CookieStoreGetOptions): Promise<CookieListItem | null>;\n /**\n * The **`getAll()`** method of the CookieStore interface returns a Promise that resolves as an array of cookies that match the `name` or `options` passed to it.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CookieStore/getAll)\n */\n getAll(name: string): Promise<CookieList>;\n getAll(options?: CookieStoreGetOptions): Promise<CookieList>;\n /**\n * The **`set()`** method of the CookieStore interface sets a cookie with the given `name` and `value` or `options` object.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CookieStore/set)\n */\n set(name: string, value: string): Promise<void>;\n set(options: CookieInit): Promise<void>;\n addEventListener<K extends keyof CookieStoreEventMap>(type: K, listener: (this: CookieStore, ev: CookieStoreEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n removeEventListener<K extends keyof CookieStoreEventMap>(type: K, listener: (this: CookieStore, ev: CookieStoreEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\ndeclare var CookieStore: {\n prototype: CookieStore;\n new(): CookieStore;\n};\n\n/**\n * The **`CookieStoreManager`** interface of the Cookie Store API allows service workers to subscribe to cookie change events.\n * Available only in secure contexts.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CookieStoreManager)\n */\ninterface CookieStoreManager {\n /**\n * The **`getSubscriptions()`** method of the CookieStoreManager interface returns a list of all the cookie change subscriptions for this ServiceWorkerRegistration.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CookieStoreManager/getSubscriptions)\n */\n getSubscriptions(): Promise<CookieStoreGetOptions[]>;\n /**\n * The **`subscribe()`** method of the CookieStoreManager interface subscribes a ServiceWorkerRegistration to cookie change events.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CookieStoreManager/subscribe)\n */\n subscribe(subscriptions: CookieStoreGetOptions[]): Promise<void>;\n /**\n * The **`unsubscribe()`** method of the CookieStoreManager interface stops the ServiceWorkerRegistration from receiving previously subscribed events.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CookieStoreManager/unsubscribe)\n */\n unsubscribe(subscriptions: CookieStoreGetOptions[]): Promise<void>;\n}\n\ndeclare var CookieStoreManager: {\n prototype: CookieStoreManager;\n new(): CookieStoreManager;\n};\n\n/**\n * The **`CountQueuingStrategy`** interface of the Streams API provides a built-in chunk counting queuing strategy that can be used when constructing streams.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CountQueuingStrategy)\n */\ninterface CountQueuingStrategy extends QueuingStrategy {\n /**\n * The read-only **`CountQueuingStrategy.highWaterMark`** property returns the total number of chunks that can be contained in the internal queue before backpressure is applied.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CountQueuingStrategy/highWaterMark)\n */\n readonly highWaterMark: number;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CountQueuingStrategy/size) */\n readonly size: QueuingStrategySize;\n}\n\ndeclare var CountQueuingStrategy: {\n prototype: CountQueuingStrategy;\n new(init: QueuingStrategyInit): CountQueuingStrategy;\n};\n\n/**\n * The **`Credential`** interface of the Credential Management API provides information about an entity (usually a user) normally as a prerequisite to a trust decision.\n * Available only in secure contexts.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Credential)\n */\ninterface Credential {\n /**\n * The **`id`** read-only property of the Credential interface returns a string containing the credential\'s identifier.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Credential/id)\n */\n readonly id: string;\n /**\n * The **`type`** read-only property of the Credential interface returns a string containing the credential\'s type.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Credential/type)\n */\n readonly type: string;\n}\n\ndeclare var Credential: {\n prototype: Credential;\n new(): Credential;\n};\n\n/**\n * The **`CredentialsContainer`** interface of the Credential Management API exposes methods to request credentials and notify the user agent when events such as successful sign in or sign out happen.\n * Available only in secure contexts.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CredentialsContainer)\n */\ninterface CredentialsContainer {\n /**\n * The **`create()`** method of the CredentialsContainer interface creates a new credential, which can then be stored and later retrieved using the CredentialsContainer.get method.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CredentialsContainer/create)\n */\n create(options?: CredentialCreationOptions): Promise<Credential | null>;\n /**\n * The **`get()`** method of the CredentialsContainer interface returns a Promise that fulfills with a single credential, which can then be used to authenticate a user to a website.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CredentialsContainer/get)\n */\n get(options?: CredentialRequestOptions): Promise<Credential | null>;\n /**\n * The **`preventSilentAccess()`** method of the CredentialsContainer interface sets a flag that specifies whether automatic log in is allowed for future visits to the current origin, then returns a Promise that resolves to `undefined`.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CredentialsContainer/preventSilentAccess)\n */\n preventSilentAccess(): Promise<void>;\n /**\n * The **`store()`** method of the ```js-nolint store(credentials) ``` - `credentials` - : A valid Credential instance.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CredentialsContainer/store)\n */\n store(credential: Credential): Promise<void>;\n}\n\ndeclare var CredentialsContainer: {\n prototype: CredentialsContainer;\n new(): CredentialsContainer;\n};\n\n/**\n * The **`Crypto`** interface represents basic cryptography features available in the current context.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Crypto)\n */\ninterface Crypto {\n /**\n * The **`Crypto.subtle`** read-only property returns a cryptographic operations.\n * Available only in secure contexts.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Crypto/subtle)\n */\n readonly subtle: SubtleCrypto;\n /**\n * The **`Crypto.getRandomValues()`** method lets you get cryptographically strong random values.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Crypto/getRandomValues)\n */\n getRandomValues<T extends ArrayBufferView>(array: T): T;\n /**\n * The **`randomUUID()`** method of the Crypto interface is used to generate a v4 UUID using a cryptographically secure random number generator.\n * Available only in secure contexts.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Crypto/randomUUID)\n */\n randomUUID(): `${string}-${string}-${string}-${string}-${string}`;\n}\n\ndeclare var Crypto: {\n prototype: Crypto;\n new(): Crypto;\n};\n\n/**\n * The **`CryptoKey`** interface of the Web Crypto API represents a cryptographic key obtained from one of the SubtleCrypto methods SubtleCrypto.generateKey, SubtleCrypto.deriveKey, SubtleCrypto.importKey, or SubtleCrypto.unwrapKey.\n * Available only in secure contexts.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CryptoKey)\n */\ninterface CryptoKey {\n /**\n * The read-only **`algorithm`** property of the CryptoKey interface returns an object describing the algorithm for which this key can be used, and any associated extra parameters.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CryptoKey/algorithm)\n */\n readonly algorithm: KeyAlgorithm;\n /**\n * The read-only **`extractable`** property of the CryptoKey interface indicates whether or not the key may be extracted using `SubtleCrypto.exportKey()` or `SubtleCrypto.wrapKey()`.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CryptoKey/extractable)\n */\n readonly extractable: boolean;\n /**\n * The read-only **`type`** property of the CryptoKey interface indicates which kind of key is represented by the object.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CryptoKey/type)\n */\n readonly type: KeyType;\n /**\n * The read-only **`usages`** property of the CryptoKey interface indicates what can be done with the key.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CryptoKey/usages)\n */\n readonly usages: KeyUsage[];\n}\n\ndeclare var CryptoKey: {\n prototype: CryptoKey;\n new(): CryptoKey;\n};\n\n/**\n * The **`CustomElementRegistry`** interface provides methods for registering custom elements and querying registered elements.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CustomElementRegistry)\n */\ninterface CustomElementRegistry {\n /**\n * The **`define()`** method of the CustomElementRegistry interface adds a definition for a custom element to the custom element registry, mapping its name to the constructor which will be used to create it.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CustomElementRegistry/define)\n */\n define(name: string, constructor: CustomElementConstructor, options?: ElementDefinitionOptions): void;\n /**\n * The **`get()`** method of the previously-defined custom element.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CustomElementRegistry/get)\n */\n get(name: string): CustomElementConstructor | undefined;\n /**\n * The **`getName()`** method of the previously-defined custom element.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CustomElementRegistry/getName)\n */\n getName(constructor: CustomElementConstructor): string | null;\n /**\n * The **`upgrade()`** method of the elements in a Node subtree, even before they are connected to the main document.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CustomElementRegistry/upgrade)\n */\n upgrade(root: Node): void;\n /**\n * The **`whenDefined()`** method of the resolves when the named element is defined.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CustomElementRegistry/whenDefined)\n */\n whenDefined(name: string): Promise<CustomElementConstructor>;\n}\n\ndeclare var CustomElementRegistry: {\n prototype: CustomElementRegistry;\n new(): CustomElementRegistry;\n};\n\n/**\n * The **`CustomEvent`** interface represents events initialized by an application for any purpose.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CustomEvent)\n */\ninterface CustomEvent<T = any> extends Event {\n /**\n * The read-only **`detail`** property of the CustomEvent interface returns any data passed when initializing the event.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CustomEvent/detail)\n */\n readonly detail: T;\n /**\n * The **`CustomEvent.initCustomEvent()`** method initializes a CustomEvent object.\n * @deprecated\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CustomEvent/initCustomEvent)\n */\n initCustomEvent(type: string, bubbles?: boolean, cancelable?: boolean, detail?: T): void;\n}\n\ndeclare var CustomEvent: {\n prototype: CustomEvent;\n new<T>(type: string, eventInitDict?: CustomEventInit<T>): CustomEvent<T>;\n};\n\n/**\n * The **`CustomStateSet`** interface of the Document Object Model stores a list of states for an autonomous custom element, and allows states to be added and removed from the set.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CustomStateSet)\n */\ninterface CustomStateSet {\n forEach(callbackfn: (value: string, key: string, parent: CustomStateSet) => void, thisArg?: any): void;\n}\n\ndeclare var CustomStateSet: {\n prototype: CustomStateSet;\n new(): CustomStateSet;\n};\n\n/**\n * The **`DOMException`** interface represents an abnormal event (called an **exception**) that occurs as a result of calling a method or accessing a property of a web API.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMException)\n */\ninterface DOMException extends Error {\n /**\n * The **`code`** read-only property of the DOMException interface returns one of the legacy error code constants, or `0` if none match.\n * @deprecated\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMException/code)\n */\n readonly code: number;\n /**\n * The **`message`** read-only property of the a message or description associated with the given error name.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMException/message)\n */\n readonly message: string;\n /**\n * The **`name`** read-only property of the one of the strings associated with an error name.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMException/name)\n */\n readonly name: string;\n readonly INDEX_SIZE_ERR: 1;\n readonly DOMSTRING_SIZE_ERR: 2;\n readonly HIERARCHY_REQUEST_ERR: 3;\n readonly WRONG_DOCUMENT_ERR: 4;\n readonly INVALID_CHARACTER_ERR: 5;\n readonly NO_DATA_ALLOWED_ERR: 6;\n readonly NO_MODIFICATION_ALLOWED_ERR: 7;\n readonly NOT_FOUND_ERR: 8;\n readonly NOT_SUPPORTED_ERR: 9;\n readonly INUSE_ATTRIBUTE_ERR: 10;\n readonly INVALID_STATE_ERR: 11;\n readonly SYNTAX_ERR: 12;\n readonly INVALID_MODIFICATION_ERR: 13;\n readonly NAMESPACE_ERR: 14;\n readonly INVALID_ACCESS_ERR: 15;\n readonly VALIDATION_ERR: 16;\n readonly TYPE_MISMATCH_ERR: 17;\n readonly SECURITY_ERR: 18;\n readonly NETWORK_ERR: 19;\n readonly ABORT_ERR: 20;\n readonly URL_MISMATCH_ERR: 21;\n readonly QUOTA_EXCEEDED_ERR: 22;\n readonly TIMEOUT_ERR: 23;\n readonly INVALID_NODE_TYPE_ERR: 24;\n readonly DATA_CLONE_ERR: 25;\n}\n\ndeclare var DOMException: {\n prototype: DOMException;\n new(message?: string, name?: string): DOMException;\n readonly INDEX_SIZE_ERR: 1;\n readonly DOMSTRING_SIZE_ERR: 2;\n readonly HIERARCHY_REQUEST_ERR: 3;\n readonly WRONG_DOCUMENT_ERR: 4;\n readonly INVALID_CHARACTER_ERR: 5;\n readonly NO_DATA_ALLOWED_ERR: 6;\n readonly NO_MODIFICATION_ALLOWED_ERR: 7;\n readonly NOT_FOUND_ERR: 8;\n readonly NOT_SUPPORTED_ERR: 9;\n readonly INUSE_ATTRIBUTE_ERR: 10;\n readonly INVALID_STATE_ERR: 11;\n readonly SYNTAX_ERR: 12;\n readonly INVALID_MODIFICATION_ERR: 13;\n readonly NAMESPACE_ERR: 14;\n readonly INVALID_ACCESS_ERR: 15;\n readonly VALIDATION_ERR: 16;\n readonly TYPE_MISMATCH_ERR: 17;\n readonly SECURITY_ERR: 18;\n readonly NETWORK_ERR: 19;\n readonly ABORT_ERR: 20;\n readonly URL_MISMATCH_ERR: 21;\n readonly QUOTA_EXCEEDED_ERR: 22;\n readonly TIMEOUT_ERR: 23;\n readonly INVALID_NODE_TYPE_ERR: 24;\n readonly DATA_CLONE_ERR: 25;\n};\n\n/**\n * The **`DOMImplementation`** interface represents an object providing methods which are not dependent on any particular document.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMImplementation)\n */\ninterface DOMImplementation {\n /**\n * The **`DOMImplementation.createDocument()`** method creates and returns an XMLDocument.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMImplementation/createDocument)\n */\n createDocument(namespace: string | null, qualifiedName: string | null, doctype?: DocumentType | null): XMLDocument;\n /**\n * The **`DOMImplementation.createDocumentType()`** method returns a DocumentType object which can either be used with into the document via methods like Node.insertBefore() or ```js-nolint createDocumentType(qualifiedNameStr, publicId, systemId) ``` - `qualifiedNameStr` - : A string containing the qualified name, like `svg:svg`.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMImplementation/createDocumentType)\n */\n createDocumentType(name: string, publicId: string, systemId: string): DocumentType;\n /**\n * The **`DOMImplementation.createHTMLDocument()`** method creates a new HTML Document.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMImplementation/createHTMLDocument)\n */\n createHTMLDocument(title?: string): Document;\n /**\n * The **`DOMImplementation.hasFeature()`** method returns a boolean flag indicating if a given feature is supported.\n * @deprecated\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMImplementation/hasFeature)\n */\n hasFeature(...args: any[]): true;\n}\n\ndeclare var DOMImplementation: {\n prototype: DOMImplementation;\n new(): DOMImplementation;\n};\n\n/**\n * The **`DOMMatrix`** interface represents 4×4 matrices, suitable for 2D and 3D operations including rotation and translation.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrix)\n */\ninterface DOMMatrix extends DOMMatrixReadOnly {\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrix#instance_properties) */\n a: number;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrix#instance_properties) */\n b: number;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrix#instance_properties) */\n c: number;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrix#instance_properties) */\n d: number;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrix#instance_properties) */\n e: number;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrix#instance_properties) */\n f: number;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrix#instance_properties) */\n m11: number;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrix#instance_properties) */\n m12: number;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrix#instance_properties) */\n m13: number;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrix#instance_properties) */\n m14: number;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrix#instance_properties) */\n m21: number;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrix#instance_properties) */\n m22: number;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrix#instance_properties) */\n m23: number;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrix#instance_properties) */\n m24: number;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrix#instance_properties) */\n m31: number;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrix#instance_properties) */\n m32: number;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrix#instance_properties) */\n m33: number;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrix#instance_properties) */\n m34: number;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrix#instance_properties) */\n m41: number;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrix#instance_properties) */\n m42: number;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrix#instance_properties) */\n m43: number;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrix#instance_properties) */\n m44: number;\n /**\n * The **`invertSelf()`** method of the DOMMatrix interface inverts the original matrix.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrix/invertSelf)\n */\n invertSelf(): DOMMatrix;\n /**\n * The **`multiplySelf()`** method of the DOMMatrix interface multiplies a matrix by the `otherMatrix` parameter, computing the dot product of the original matrix and the specified matrix: `A⋅B`.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrix/multiplySelf)\n */\n multiplySelf(other?: DOMMatrixInit): DOMMatrix;\n /**\n * The **`preMultiplySelf()`** method of the DOMMatrix interface modifies the matrix by pre-multiplying it with the specified `DOMMatrix`.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrix/preMultiplySelf)\n */\n preMultiplySelf(other?: DOMMatrixInit): DOMMatrix;\n /**\n * The `rotateAxisAngleSelf()` method of the DOMMatrix interface is a transformation method that rotates the source matrix by the given vector and angle, returning the altered matrix.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrix/rotateAxisAngleSelf)\n */\n rotateAxisAngleSelf(x?: number, y?: number, z?: number, angle?: number): DOMMatrix;\n /**\n * The `rotateFromVectorSelf()` method of the DOMMatrix interface is a mutable transformation method that modifies a matrix by rotating the matrix by the angle between the specified vector and `(1, 0)`.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrix/rotateFromVectorSelf)\n */\n rotateFromVectorSelf(x?: number, y?: number): DOMMatrix;\n /**\n * The `rotateSelf()` method of the DOMMatrix interface is a mutable transformation method that modifies a matrix.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrix/rotateSelf)\n */\n rotateSelf(rotX?: number, rotY?: number, rotZ?: number): DOMMatrix;\n /**\n * The **`scale3dSelf()`** method of the DOMMatrix interface is a mutable transformation method that modifies a matrix by applying a specified scaling factor to all three axes, centered on the given origin, with a default origin of `(0, 0, 0)`, returning the 3D-scaled matrix.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrix/scale3dSelf)\n */\n scale3dSelf(scale?: number, originX?: number, originY?: number, originZ?: number): DOMMatrix;\n /**\n * The **`scaleSelf()`** method of the DOMMatrix interface is a mutable transformation method that modifies a matrix by applying a specified scaling factor, centered on the given origin, with a default origin of `(0, 0)`, returning the scaled matrix.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrix/scaleSelf)\n */\n scaleSelf(scaleX?: number, scaleY?: number, scaleZ?: number, originX?: number, originY?: number, originZ?: number): DOMMatrix;\n /**\n * The **`setMatrixValue()`** method of the DOMMatrix interface replaces the contents of the matrix with the matrix described by the specified transform or transforms, returning itself.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrix/setMatrixValue)\n */\n setMatrixValue(transformList: string): DOMMatrix;\n /**\n * The `skewXSelf()` method of the DOMMatrix interface is a mutable transformation method that modifies a matrix.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrix/skewXSelf)\n */\n skewXSelf(sx?: number): DOMMatrix;\n /**\n * The `skewYSelf()` method of the DOMMatrix interface is a mutable transformation method that modifies a matrix.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrix/skewYSelf)\n */\n skewYSelf(sy?: number): DOMMatrix;\n /**\n * The `translateSelf()` method of the DOMMatrix interface is a mutable transformation method that modifies a matrix.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrix/translateSelf)\n */\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<ArrayBuffer>): DOMMatrix;\n fromFloat64Array(array64: Float64Array<ArrayBuffer>): 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\n/**\n * The **`DOMMatrixReadOnly`** interface represents a read-only 4×4 matrix, suitable for 2D and 3D operations.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrixReadOnly)\n */\ninterface DOMMatrixReadOnly {\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrixReadOnly#instance_properties) */\n readonly a: number;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrixReadOnly#instance_properties) */\n readonly b: number;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrixReadOnly#instance_properties) */\n readonly c: number;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrixReadOnly#instance_properties) */\n readonly d: number;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrixReadOnly#instance_properties) */\n readonly e: number;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrixReadOnly#instance_properties) */\n readonly f: number;\n /**\n * The readonly **`is2D`** property of the DOMMatrixReadOnly interface is a Boolean flag that is `true` when the matrix is 2D.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrixReadOnly/is2D)\n */\n readonly is2D: boolean;\n /**\n * The readonly **`isIdentity`** property of the DOMMatrixReadOnly interface is a Boolean whose value is `true` if the matrix is the identity matrix.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrixReadOnly/isIdentity)\n */\n readonly isIdentity: boolean;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrixReadOnly#instance_properties) */\n readonly m11: number;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrixReadOnly#instance_properties) */\n readonly m12: number;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrixReadOnly#instance_properties) */\n readonly m13: number;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrixReadOnly#instance_properties) */\n readonly m14: number;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrixReadOnly#instance_properties) */\n readonly m21: number;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrixReadOnly#instance_properties) */\n readonly m22: number;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrixReadOnly#instance_properties) */\n readonly m23: number;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrixReadOnly#instance_properties) */\n readonly m24: number;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrixReadOnly#instance_properties) */\n readonly m31: number;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrixReadOnly#instance_properties) */\n readonly m32: number;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrixReadOnly#instance_properties) */\n readonly m33: number;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrixReadOnly#instance_properties) */\n readonly m34: number;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrixReadOnly#instance_properties) */\n readonly m41: number;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrixReadOnly#instance_properties) */\n readonly m42: number;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrixReadOnly#instance_properties) */\n readonly m43: number;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrixReadOnly#instance_properties) */\n readonly m44: number;\n /**\n * The **`flipX()`** method of the DOMMatrixReadOnly interface creates a new matrix being the result of the original matrix flipped about the x-axis.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrixReadOnly/flipX)\n */\n flipX(): DOMMatrix;\n /**\n * The **`flipY()`** method of the DOMMatrixReadOnly interface creates a new matrix being the result of the original matrix flipped about the y-axis.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrixReadOnly/flipY)\n */\n flipY(): DOMMatrix;\n /**\n * The **`inverse()`** method of the DOMMatrixReadOnly interface creates a new matrix which is the inverse of the original matrix.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrixReadOnly/inverse)\n */\n inverse(): DOMMatrix;\n /**\n * The **`multiply()`** method of the DOMMatrixReadOnly interface creates and returns a new matrix which is the dot product of the matrix and the `otherMatrix` parameter.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrixReadOnly/multiply)\n */\n multiply(other?: DOMMatrixInit): DOMMatrix;\n /**\n * The `rotate()` method of the DOMMatrixReadOnly interface returns a new DOMMatrix created by rotating the source matrix around each of its axes by the specified number of degrees.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrixReadOnly/rotate)\n */\n rotate(rotX?: number, rotY?: number, rotZ?: number): DOMMatrix;\n /**\n * The `rotateAxisAngle()` method of the DOMMatrixReadOnly interface returns a new DOMMatrix created by rotating the source matrix by the given vector and angle.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrixReadOnly/rotateAxisAngle)\n */\n rotateAxisAngle(x?: number, y?: number, z?: number, angle?: number): DOMMatrix;\n /**\n * The `rotateFromVector()` method of the DOMMatrixReadOnly interface is returns a new DOMMatrix created by rotating the source matrix by the angle between the specified vector and `(1, 0)`.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrixReadOnly/rotateFromVector)\n */\n rotateFromVector(x?: number, y?: number): DOMMatrix;\n /**\n * The **`scale()`** method of the original matrix with a scale transform applied.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrixReadOnly/scale)\n */\n scale(scaleX?: number, scaleY?: number, scaleZ?: number, originX?: number, originY?: number, originZ?: number): DOMMatrix;\n /**\n * The **`scale3d()`** method of the DOMMatrixReadOnly interface creates a new matrix which is the result of a 3D scale transform being applied to the matrix.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrixReadOnly/scale3d)\n */\n scale3d(scale?: number, originX?: number, originY?: number, originZ?: number): DOMMatrix;\n /** @deprecated */\n scaleNonUniform(scaleX?: number, scaleY?: number): DOMMatrix;\n /**\n * The `skewX()` method of the DOMMatrixReadOnly interface returns a new DOMMatrix created by applying the specified skew transformation to the source matrix along its x-axis.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrixReadOnly/skewX)\n */\n skewX(sx?: number): DOMMatrix;\n /**\n * The `skewY()` method of the DOMMatrixReadOnly interface returns a new DOMMatrix created by applying the specified skew transformation to the source matrix along its y-axis.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrixReadOnly/skewY)\n */\n skewY(sy?: number): DOMMatrix;\n /**\n * The **`toFloat32Array()`** method of the DOMMatrixReadOnly interface returns a new Float32Array containing all 16 elements (`m11`, `m12`, `m13`, `m14`, `m21`, `m22`, `m23`, `m24`, `m31`, `m32`, `m33`, `m34`, `m41`, `m42`, `m43`, `m44`) which comprise the matrix.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrixReadOnly/toFloat32Array)\n */\n toFloat32Array(): Float32Array<ArrayBuffer>;\n /**\n * The **`toFloat64Array()`** method of the DOMMatrixReadOnly interface returns a new Float64Array containing all 16 elements (`m11`, `m12`, `m13`, `m14`, `m21`, `m22`, `m23`, `m24`, `m31`, `m32`, `m33`, `m34`, `m41`, `m42`, `m43`, `m44`) which comprise the matrix.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrixReadOnly/toFloat64Array)\n */\n toFloat64Array(): Float64Array<ArrayBuffer>;\n /**\n * The **`toJSON()`** method of the DOMMatrixReadOnly interface creates and returns a JSON object.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrixReadOnly/toJSON)\n */\n toJSON(): any;\n /**\n * The **`transformPoint`** method of the You can also create a new `DOMPoint` by applying a matrix to a point with the DOMPointReadOnly.matrixTransform() method.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrixReadOnly/transformPoint)\n */\n transformPoint(point?: DOMPointInit): DOMPoint;\n /**\n * The `translate()` method of the DOMMatrixReadOnly interface creates a new matrix being the result of the original matrix with a translation applied.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrixReadOnly/translate)\n */\n translate(tx?: number, ty?: number, tz?: number): DOMMatrix;\n toString(): string;\n}\n\ndeclare var DOMMatrixReadOnly: {\n prototype: DOMMatrixReadOnly;\n new(init?: string | number[]): DOMMatrixReadOnly;\n fromFloat32Array(array32: Float32Array<ArrayBuffer>): DOMMatrixReadOnly;\n fromFloat64Array(array64: Float64Array<ArrayBuffer>): DOMMatrixReadOnly;\n fromMatrix(other?: DOMMatrixInit): DOMMatrixReadOnly;\n};\n\n/**\n * The **`DOMParser`** interface provides the ability to parse XML or HTML source code from a string into a DOM Document.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMParser)\n */\ninterface DOMParser {\n /**\n * The **`parseFromString()`** method of the DOMParser interface parses a string containing either HTML or XML, returning an HTMLDocument or an XMLDocument.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMParser/parseFromString)\n */\n parseFromString(string: string, type: DOMParserSupportedType): Document;\n}\n\ndeclare var DOMParser: {\n prototype: DOMParser;\n new(): DOMParser;\n};\n\n/**\n * A **`DOMPoint`** object represents a 2D or 3D point in a coordinate system; it includes values for the coordinates in up to three dimensions, as well as an optional perspective value.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMPoint)\n */\ninterface DOMPoint extends DOMPointReadOnly {\n /**\n * The **`DOMPoint`** interface\'s **`w`** property holds the point\'s perspective value, w, for a point in space.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMPoint/w)\n */\n w: number;\n /**\n * The **`DOMPoint`** interface\'s **`x`** property holds the horizontal coordinate, x, for a point in space.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMPoint/x)\n */\n x: number;\n /**\n * The **`DOMPoint`** interface\'s **`y`** property holds the vertical coordinate, _y_, for a point in space.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMPoint/y)\n */\n y: number;\n /**\n * The **`DOMPoint`** interface\'s **`z`** property specifies the depth coordinate of a point in space.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMPoint/z)\n */\n z: number;\n}\n\ndeclare var DOMPoint: {\n prototype: DOMPoint;\n new(x?: number, y?: number, z?: number, w?: number): DOMPoint;\n /**\n * The **`fromPoint()`** static method of the DOMPoint interface creates and returns a new mutable `DOMPoint` object given a source point.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMPoint/fromPoint_static)\n */\n fromPoint(other?: DOMPointInit): DOMPoint;\n};\n\ntype SVGPoint = DOMPoint;\ndeclare var SVGPoint: typeof DOMPoint;\n\n/**\n * The **`DOMPointReadOnly`** interface specifies the coordinate and perspective fields used by DOMPoint to define a 2D or 3D point in a coordinate system.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMPointReadOnly)\n */\ninterface DOMPointReadOnly {\n /**\n * The **`DOMPointReadOnly`** interface\'s **`w`** property holds the point\'s perspective value, `w`, for a read-only point in space.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMPointReadOnly/w)\n */\n readonly w: number;\n /**\n * The **`DOMPointReadOnly`** interface\'s **`x`** property holds the horizontal coordinate, x, for a read-only point in space.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMPointReadOnly/x)\n */\n readonly x: number;\n /**\n * The **`DOMPointReadOnly`** interface\'s **`y`** property holds the vertical coordinate, y, for a read-only point in space.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMPointReadOnly/y)\n */\n readonly y: number;\n /**\n * The **`DOMPointReadOnly`** interface\'s **`z`** property holds the depth coordinate, z, for a read-only point in space.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMPointReadOnly/z)\n */\n readonly z: number;\n /**\n * The **`matrixTransform()`** method of the DOMPointReadOnly interface applies a matrix transform specified as an object to the DOMPointReadOnly object, creating and returning a new `DOMPointReadOnly` object.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMPointReadOnly/matrixTransform)\n */\n matrixTransform(matrix?: DOMMatrixInit): DOMPoint;\n /**\n * The DOMPointReadOnly method `toJSON()` returns an object giving the ```js-nolint toJSON() ``` None.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMPointReadOnly/toJSON)\n */\n toJSON(): any;\n}\n\ndeclare var DOMPointReadOnly: {\n prototype: DOMPointReadOnly;\n new(x?: number, y?: number, z?: number, w?: number): DOMPointReadOnly;\n /**\n * The static **DOMPointReadOnly** method `fromPoint()` creates and returns a new `DOMPointReadOnly` object given a source point.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMPointReadOnly/fromPoint_static)\n */\n fromPoint(other?: DOMPointInit): DOMPointReadOnly;\n};\n\n/**\n * A `DOMQuad` is a collection of four `DOMPoint`s defining the corners of an arbitrary quadrilateral.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMQuad)\n */\ninterface DOMQuad {\n /**\n * The **`DOMQuad`** interface\'s **`p1`** property holds the DOMPoint object that represents one of the four corners of the `DOMQuad`.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMQuad/p1)\n */\n readonly p1: DOMPoint;\n /**\n * The **`DOMQuad`** interface\'s **`p2`** property holds the DOMPoint object that represents one of the four corners of the `DOMQuad`.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMQuad/p2)\n */\n readonly p2: DOMPoint;\n /**\n * The **`DOMQuad`** interface\'s **`p3`** property holds the DOMPoint object that represents one of the four corners of the `DOMQuad`.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMQuad/p3)\n */\n readonly p3: DOMPoint;\n /**\n * The **`DOMQuad`** interface\'s **`p4`** property holds the DOMPoint object that represents one of the four corners of the `DOMQuad`.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMQuad/p4)\n */\n readonly p4: DOMPoint;\n /**\n * The DOMQuad method `getBounds()` returns a DOMRect object representing the smallest rectangle that fully contains the `DOMQuad` object.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMQuad/getBounds)\n */\n getBounds(): DOMRect;\n /**\n * The DOMQuad method `toJSON()` returns a ```js-nolint toJSON() ``` None.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMQuad/toJSON)\n */\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\n/**\n * A **`DOMRect`** describes the size and position of a rectangle.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMRect)\n */\ninterface DOMRect extends DOMRectReadOnly {\n /**\n * The **`height`** property of the DOMRect interface represents the height of the rectangle.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMRect/height)\n */\n height: number;\n /**\n * The **`width`** property of the DOMRect interface represents the width of the rectangle.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMRect/width)\n */\n width: number;\n /**\n * The **`x`** property of the DOMRect interface represents the x-coordinate of the rectangle, which is the horizontal distance between the viewport\'s left edge and the rectangle\'s origin.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMRect/x)\n */\n x: number;\n /**\n * The **`y`** property of the DOMRect interface represents the y-coordinate of the rectangle, which is the vertical distance between the viewport\'s top edge and the rectangle\'s origin.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMRect/y)\n */\n y: number;\n}\n\ndeclare var DOMRect: {\n prototype: DOMRect;\n new(x?: number, y?: number, width?: number, height?: number): DOMRect;\n /**\n * The **`fromRect()`** static method of the object with a given location and dimensions.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMRect/fromRect_static)\n */\n fromRect(other?: DOMRectInit): DOMRect;\n};\n\ntype SVGRect = DOMRect;\ndeclare var SVGRect: typeof DOMRect;\n\n/**\n * The **`DOMRectList`** interface represents a collection of DOMRect objects, typically used to hold the rectangles associated with a particular element, like bounding boxes returned by methods such as Element.getClientRects.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMRectList)\n */\ninterface DOMRectList {\n /**\n * The read-only **`length`** property of the DOMRectList interface returns the number of DOMRect objects in the list.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMRectList/length)\n */\n readonly length: number;\n /**\n * The DOMRectList method `item()` returns the DOMRect at the specified index within the list, or `null` if the index is out of range.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMRectList/item)\n */\n item(index: number): DOMRect | null;\n [index: number]: DOMRect;\n}\n\ndeclare var DOMRectList: {\n prototype: DOMRectList;\n new(): DOMRectList;\n};\n\n/**\n * The **`DOMRectReadOnly`** interface specifies the standard properties (also used by DOMRect) to define a rectangle whose properties are immutable.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMRectReadOnly)\n */\ninterface DOMRectReadOnly {\n /**\n * The **`bottom`** read-only property of the **`DOMRectReadOnly`** interface returns the bottom coordinate value of the `DOMRect`.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMRectReadOnly/bottom)\n */\n readonly bottom: number;\n /**\n * The **`height`** read-only property of the **`DOMRectReadOnly`** interface represents the height of the `DOMRect`.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMRectReadOnly/height)\n */\n readonly height: number;\n /**\n * The **`left`** read-only property of the **`DOMRectReadOnly`** interface returns the left coordinate value of the `DOMRect`.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMRectReadOnly/left)\n */\n readonly left: number;\n /**\n * The **`right`** read-only property of the **`DOMRectReadOnly`** interface returns the right coordinate value of the `DOMRect`.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMRectReadOnly/right)\n */\n readonly right: number;\n /**\n * The **`top`** read-only property of the **`DOMRectReadOnly`** interface returns the top coordinate value of the `DOMRect`.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMRectReadOnly/top)\n */\n readonly top: number;\n /**\n * The **`width`** read-only property of the **`DOMRectReadOnly`** interface represents the width of the `DOMRect`.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMRectReadOnly/width)\n */\n readonly width: number;\n /**\n * The **`x`** read-only property of the **`DOMRectReadOnly`** interface represents the x coordinate of the `DOMRect`\'s origin.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMRectReadOnly/x)\n */\n readonly x: number;\n /**\n * The **`y`** read-only property of the **`DOMRectReadOnly`** interface represents the y coordinate of the `DOMRect`\'s origin.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMRectReadOnly/y)\n */\n readonly y: number;\n /**\n * The DOMRectReadOnly method `toJSON()` returns a JSON representation of the `DOMRectReadOnly` object.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMRectReadOnly/toJSON)\n */\n toJSON(): any;\n}\n\ndeclare var DOMRectReadOnly: {\n prototype: DOMRectReadOnly;\n new(x?: number, y?: number, width?: number, height?: number): DOMRectReadOnly;\n /**\n * The **`fromRect()`** static method of the object with a given location and dimensions.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMRectReadOnly/fromRect_static)\n */\n fromRect(other?: DOMRectInit): DOMRectReadOnly;\n};\n\n/**\n * The **`DOMStringList`** interface is a legacy type returned by some APIs and represents a non-modifiable list of strings (`DOMString`).\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMStringList)\n */\ninterface DOMStringList {\n /**\n * The read-only **`length`** property indicates the number of strings in the DOMStringList.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMStringList/length)\n */\n readonly length: number;\n /**\n * The **`contains()`** method returns a boolean indicating whether the given string is in the list.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMStringList/contains)\n */\n contains(string: string): boolean;\n /**\n * The **`item()`** method returns a string from a `DOMStringList` by index.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMStringList/item)\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/**\n * The **`DOMStringMap`** interface is used for the HTMLElement.dataset attribute, to represent data for custom attributes added to elements.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMStringMap)\n */\ninterface DOMStringMap {\n [name: string]: string | undefined;\n}\n\ndeclare var DOMStringMap: {\n prototype: DOMStringMap;\n new(): DOMStringMap;\n};\n\n/**\n * The **`DOMTokenList`** interface represents a set of space-separated tokens.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMTokenList)\n */\ninterface DOMTokenList {\n /**\n * The read-only **`length`** property of the DOMTokenList interface is an `integer` representing the number of objects stored in the object.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMTokenList/length)\n */\n readonly length: number;\n /**\n * The **`value`** property of the DOMTokenList interface is a stringifier that returns the value of the list serialized as a string, or clears and sets the list to the given value.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMTokenList/value)\n */\n value: string;\n toString(): string;\n /**\n * The **`add()`** method of the DOMTokenList interface adds the given tokens to the list, omitting any that are already present.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMTokenList/add)\n */\n add(...tokens: string[]): void;\n /**\n * The **`contains()`** method of the DOMTokenList interface returns a boolean value — `true` if the underlying list contains the given token, otherwise `false`.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMTokenList/contains)\n */\n contains(token: string): boolean;\n /**\n * The **`item()`** method of the DOMTokenList interface returns an item in the list, determined by its position in the list, its index.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMTokenList/item)\n */\n item(index: number): string | null;\n /**\n * The **`remove()`** method of the DOMTokenList interface removes the specified _tokens_ from the list.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMTokenList/remove)\n */\n remove(...tokens: string[]): void;\n /**\n * The **`replace()`** method of the DOMTokenList interface replaces an existing token with a new token.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMTokenList/replace)\n */\n replace(token: string, newToken: string): boolean;\n /**\n * The **`supports()`** method of the DOMTokenList interface returns `true` if a given `token` is in the associated attribute\'s supported tokens.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMTokenList/supports)\n */\n supports(token: string): boolean;\n /**\n * The **`toggle()`** method of the DOMTokenList interface removes an existing token from the list and returns `false`.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMTokenList/toggle)\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\n/**\n * The **`DataTransfer`** object is used to hold any data transferred between contexts, such as a drag and drop operation, or clipboard read/write.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DataTransfer)\n */\ninterface DataTransfer {\n /**\n * The **`DataTransfer.dropEffect`** property controls the feedback (typically visual) the user is given during a drag and drop operation.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DataTransfer/dropEffect)\n */\n dropEffect: "none" | "copy" | "link" | "move";\n /**\n * The **`DataTransfer.effectAllowed`** property specifies the effect that is allowed for a drag operation.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DataTransfer/effectAllowed)\n */\n effectAllowed: "none" | "copy" | "copyLink" | "copyMove" | "link" | "linkMove" | "move" | "all" | "uninitialized";\n /**\n * The **`files`** read-only property of `DataTransfer` objects is a list of the files in the drag operation.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DataTransfer/files)\n */\n readonly files: FileList;\n /**\n * The read-only `items` property of the DataTransfer interface is a A DataTransferItemList object containing DataTransferItem objects representing the items being dragged in a drag operation, one list item for each object being dragged.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DataTransfer/items)\n */\n readonly items: DataTransferItemList;\n /**\n * The **`DataTransfer.types`** read-only property returns the available types that exist in the DataTransfer.items.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DataTransfer/types)\n */\n readonly types: ReadonlyArray<string>;\n /**\n * The **`DataTransfer.clearData()`** method removes the drag operation\'s drag data for the given type.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DataTransfer/clearData)\n */\n clearData(format?: string): void;\n /**\n * The **`DataTransfer.getData()`** method retrieves drag data (as a string) for the specified type.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DataTransfer/getData)\n */\n getData(format: string): string;\n /**\n * The **`DataTransfer.setData()`** method sets the drag operation\'s drag data to the specified data and type.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DataTransfer/setData)\n */\n setData(format: string, data: string): void;\n /**\n * When a drag occurs, a translucent image is generated from the drag target (the element the HTMLElement/dragstart_event event is fired at), and follows the mouse pointer during the drag.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DataTransfer/setDragImage)\n */\n setDragImage(image: Element, x: number, y: number): void;\n}\n\ndeclare var DataTransfer: {\n prototype: DataTransfer;\n new(): DataTransfer;\n};\n\n/**\n * The **`DataTransferItem`** object represents one drag data item.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DataTransferItem)\n */\ninterface DataTransferItem {\n /**\n * The read-only **`DataTransferItem.kind`** property returns the kind–a string or a file–of the DataTransferItem object representing the _drag data item_.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DataTransferItem/kind)\n */\n readonly kind: string;\n /**\n * The read-only **`DataTransferItem.type`** property returns the type (format) of the DataTransferItem object representing the drag data item.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DataTransferItem/type)\n */\n readonly type: string;\n /**\n * If the item is a file, the **`DataTransferItem.getAsFile()`** method returns the drag data item\'s File object.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DataTransferItem/getAsFile)\n */\n getAsFile(): File | null;\n /**\n * The **`DataTransferItem.getAsString()`** method invokes the given callback with the drag data item\'s string data as the argument if the item\'s DataTransferItem.kind is a _Plain unicode string_ (i.e., `kind` is `string`).\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DataTransferItem/getAsString)\n */\n getAsString(callback: FunctionStringCallback | null): void;\n /**\n * If the item described by the DataTransferItem is a file, `webkitGetAsEntry()` returns a FileSystemFileEntry or FileSystemDirectoryEntry representing it.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DataTransferItem/webkitGetAsEntry)\n */\n webkitGetAsEntry(): FileSystemEntry | null;\n}\n\ndeclare var DataTransferItem: {\n prototype: DataTransferItem;\n new(): DataTransferItem;\n};\n\n/**\n * The **`DataTransferItemList`** object is a list of DataTransferItem objects representing items being dragged.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DataTransferItemList)\n */\ninterface DataTransferItemList {\n /**\n * The read-only **`length`** property of the the drag item list.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DataTransferItemList/length)\n */\n readonly length: number;\n /**\n * The **`DataTransferItemList.add()`** method creates a new list.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DataTransferItemList/add)\n */\n add(data: string, type: string): DataTransferItem | null;\n add(data: File): DataTransferItem | null;\n /**\n * The DataTransferItemList method **`clear()`** removes all DataTransferItem objects from the drag data items list, leaving the list empty.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DataTransferItemList/clear)\n */\n clear(): void;\n /**\n * The **`DataTransferItemList.remove()`** method removes the less than zero or greater than one less than the length of the list, the list will not be changed.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DataTransferItemList/remove)\n */\n remove(index: number): void;\n [index: number]: DataTransferItem;\n}\n\ndeclare var DataTransferItemList: {\n prototype: DataTransferItemList;\n new(): DataTransferItemList;\n};\n\n/**\n * The **`DecompressionStream`** interface of the Compression Streams API is an API for decompressing a stream of data.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DecompressionStream)\n */\ninterface DecompressionStream extends GenericTransformStream {\n readonly readable: ReadableStream<Uint8Array<ArrayBuffer>>;\n readonly writable: WritableStream<BufferSource>;\n}\n\ndeclare var DecompressionStream: {\n prototype: DecompressionStream;\n new(format: CompressionFormat): DecompressionStream;\n};\n\n/**\n * The **`DelayNode`** interface represents 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.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DelayNode)\n */\ninterface DelayNode extends AudioNode {\n /**\n * The `delayTime` property of the DelayNode interface is an a-rate AudioParam representing the amount of delay to apply.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DelayNode/delayTime)\n */\n readonly delayTime: AudioParam;\n}\n\ndeclare var DelayNode: {\n prototype: DelayNode;\n new(context: BaseAudioContext, options?: DelayOptions): DelayNode;\n};\n\n/**\n * The **`DeviceMotionEvent`** interface of the Device Orientation Events provides web developers with information about the speed of changes for the device\'s position and orientation.\n * Available only in secure contexts.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DeviceMotionEvent)\n */\ninterface DeviceMotionEvent extends Event {\n /**\n * The **`acceleration`** read-only property of the DeviceMotionEvent interface returns the acceleration recorded by the device, in meters per second squared (m/s²).\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DeviceMotionEvent/acceleration)\n */\n readonly acceleration: DeviceMotionEventAcceleration | null;\n /**\n * The **`accelerationIncludingGravity`** read-only property of the DeviceMotionEvent interface returns the amount of acceleration recorded by the device, in meters per second squared (m/s²).\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DeviceMotionEvent/accelerationIncludingGravity)\n */\n readonly accelerationIncludingGravity: DeviceMotionEventAcceleration | null;\n /**\n * The **`interval`** read-only property of the DeviceMotionEvent interface returns the interval, in milliseconds, at which data is obtained from the underlying hardware.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DeviceMotionEvent/interval)\n */\n readonly interval: number;\n /**\n * The **`rotationRate`** read-only property of the DeviceMotionEvent interface returns the rate at which the device is rotating around each of its axes in degrees per second.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DeviceMotionEvent/rotationRate)\n */\n readonly rotationRate: DeviceMotionEventRotationRate | null;\n}\n\ndeclare var DeviceMotionEvent: {\n prototype: DeviceMotionEvent;\n new(type: string, eventInitDict?: DeviceMotionEventInit): DeviceMotionEvent;\n};\n\n/**\n * The **`DeviceMotionEventAcceleration`** interface of the Device Orientation Events provides information about the amount of acceleration the device is experiencing along all three axes.\n * Available only in secure contexts.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DeviceMotionEventAcceleration)\n */\ninterface DeviceMotionEventAcceleration {\n /**\n * The **`x`** read-only property of the DeviceMotionEventAcceleration interface indicates the amount of acceleration that occurred along the X axis in a `DeviceMotionEventAcceleration` object.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DeviceMotionEventAcceleration/x)\n */\n readonly x: number | null;\n /**\n * The **`y`** read-only property of the DeviceMotionEventAcceleration interface indicates the amount of acceleration that occurred along the Y axis in a `DeviceMotionEventAcceleration` object.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DeviceMotionEventAcceleration/y)\n */\n readonly y: number | null;\n /**\n * The **`z`** read-only property of the DeviceMotionEventAcceleration interface indicates the amount of acceleration that occurred along the Z axis in a `DeviceMotionEventAcceleration` object.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DeviceMotionEventAcceleration/z)\n */\n readonly z: number | null;\n}\n\n/**\n * A **`DeviceMotionEventRotationRate`** interface of the Device Orientation Events provides information about the rate at which the device is rotating around all three axes.\n * Available only in secure contexts.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DeviceMotionEventRotationRate)\n */\ninterface DeviceMotionEventRotationRate {\n /**\n * The **`alpha`** read-only property of the DeviceMotionEventRotationRate interface indicates the rate of rotation around the Z axis, in degrees per second.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DeviceMotionEventRotationRate/alpha)\n */\n readonly alpha: number | null;\n /**\n * The **`beta`** read-only property of the DeviceMotionEventRotationRate interface indicates the rate of rotation around the X axis, in degrees per second.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DeviceMotionEventRotationRate/beta)\n */\n readonly beta: number | null;\n /**\n * The **`gamma`** read-only property of the DeviceMotionEventRotationRate interface indicates the rate of rotation around the Y axis, in degrees per second.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DeviceMotionEventRotationRate/gamma)\n */\n readonly gamma: number | null;\n}\n\n/**\n * The **`DeviceOrientationEvent`** interface of the Device Orientation Events provides web developers with information from the physical orientation of the device running the web page.\n * Available only in secure contexts.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DeviceOrientationEvent)\n */\ninterface DeviceOrientationEvent extends Event {\n /**\n * The **`absolute`** read-only property of the DeviceOrientationEvent interface indicates whether or not the device is providing orientation data absolutely (that is, in reference to the Earth\'s coordinate frame) or using some arbitrary frame determined by the device.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DeviceOrientationEvent/absolute)\n */\n readonly absolute: boolean;\n /**\n * The **`alpha`** read-only property of the DeviceOrientationEvent interface returns the rotation of the device around the Z axis; that is, the number of degrees by which the device is being twisted around the center of the screen.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DeviceOrientationEvent/alpha)\n */\n readonly alpha: number | null;\n /**\n * The **`beta`** read-only property of the DeviceOrientationEvent interface returns the rotation of the device around the X axis; that is, the number of degrees, ranged between -180 and 180, by which the device is tipped forward or backward.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DeviceOrientationEvent/beta)\n */\n readonly beta: number | null;\n /**\n * The **`gamma`** read-only property of the DeviceOrientationEvent interface returns the rotation of the device around the Y axis; that is, the number of degrees, ranged between `-90` and `90`, by which the device is tilted left or right.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DeviceOrientationEvent/gamma)\n */\n readonly gamma: number | null;\n}\n\ndeclare var DeviceOrientationEvent: {\n prototype: DeviceOrientationEvent;\n new(type: string, eventInitDict?: DeviceOrientationEventInit): DeviceOrientationEvent;\n};\n\ninterface DocumentEventMap extends GlobalEventHandlersEventMap {\n "DOMContentLoaded": Event;\n "fullscreenchange": Event;\n "fullscreenerror": Event;\n "pointerlockchange": Event;\n "pointerlockerror": Event;\n "readystatechange": Event;\n "visibilitychange": Event;\n}\n\n/**\n * The **`Document`** interface represents any web page loaded in the browser and serves as an entry point into the web page\'s content, which is the DOM tree.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document)\n */\ninterface Document extends Node, DocumentOrShadowRoot, FontFaceSource, GlobalEventHandlers, NonElementParentNode, ParentNode, XPathEvaluatorBase {\n /**\n * The **`URL`** read-only property of the Document interface returns the document location as a string.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/URL)\n */\n readonly URL: string;\n /**\n * Returns or sets the color of an active link in the document body.\n * @deprecated\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/alinkColor)\n */\n alinkColor: string;\n /**\n * The Document interface\'s read-only **`all`** property returns an HTMLAllCollection rooted at the document node.\n * @deprecated\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/all)\n */\n readonly all: HTMLAllCollection;\n /**\n * The **`anchors`** read-only property of the An HTMLCollection.\n * @deprecated\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/anchors)\n */\n readonly anchors: HTMLCollectionOf<HTMLAnchorElement>;\n /**\n * The **`applets`** property of the Document returns an empty HTMLCollection.\n * @deprecated\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/applets)\n */\n readonly applets: HTMLCollection;\n /**\n * The deprecated `bgColor` property gets or sets the background color of the current document.\n * @deprecated\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/bgColor)\n */\n bgColor: string;\n /**\n * The **`Document.body`** property represents the `null` if no such element exists.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/body)\n */\n body: HTMLElement;\n /**\n * The **`Document.characterSet`** read-only property returns the character encoding of the document that it\'s currently rendered with.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/characterSet)\n */\n readonly characterSet: string;\n /**\n * @deprecated This is a legacy alias of `characterSet`.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/characterSet)\n */\n readonly charset: string;\n /**\n * The **`Document.compatMode`** read-only property indicates whether the document is rendered in Quirks mode or Standards mode.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/compatMode)\n */\n readonly compatMode: string;\n /**\n * The **`Document.contentType`** read-only property returns the MIME type that the document is being rendered as.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/contentType)\n */\n readonly contentType: string;\n /**\n * The Document property `cookie` lets you read and write cookies associated with the document.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/cookie)\n */\n cookie: string;\n /**\n * The **`Document.currentScript`** property returns the script element whose script is currently being processed and isn\'t a JavaScript module.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/currentScript)\n */\n readonly currentScript: HTMLOrSVGScriptElement | null;\n /**\n * In browsers, **`document.defaultView`** returns the This property is read-only.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/defaultView)\n */\n readonly defaultView: (WindowProxy & typeof globalThis) | null;\n /**\n * **`document.designMode`** controls whether the entire document is editable.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/designMode)\n */\n designMode: string;\n /**\n * The **`Document.dir`** property is a string representing the directionality of the text of the document, whether left to right (default) or right to left.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/dir)\n */\n dir: string;\n /**\n * The **`doctype`** read-only property of the Document interface is a DocumentType object representing the Doctype associated with the current document.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/doctype)\n */\n readonly doctype: DocumentType | null;\n /**\n * The **`documentElement`** read-only property of the Document interface returns the example, the html element for HTML documents).\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/documentElement)\n */\n readonly documentElement: HTMLElement;\n /**\n * The **`documentURI`** read-only property of the A string.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/documentURI)\n */\n readonly documentURI: string;\n /**\n * The **`domain`** property of the Document interface gets/sets the domain portion of the origin of the current document, as used by the same-origin policy.\n * @deprecated\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/domain)\n */\n domain: string;\n /**\n * The **`embeds`** read-only property of the An HTMLCollection.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/embeds)\n */\n readonly embeds: HTMLCollectionOf<HTMLEmbedElement>;\n /**\n * **`fgColor`** gets/sets the foreground color, or text color, of the current document.\n * @deprecated\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/fgColor)\n */\n fgColor: string;\n /**\n * The **`forms`** read-only property of the Document interface returns an HTMLCollection listing all the form elements contained in the document.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/forms)\n */\n readonly forms: HTMLCollectionOf<HTMLFormElement>;\n /**\n * The **`fragmentDirective`** read-only property of the Document interface returns the FragmentDirective for the current document.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/fragmentDirective)\n */\n readonly fragmentDirective: FragmentDirective;\n /**\n * The obsolete Document interface\'s **`fullscreen`** read-only property reports whether or not the document is currently displaying content in fullscreen mode.\n * @deprecated\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/fullscreen)\n */\n readonly fullscreen: boolean;\n /**\n * The read-only **`fullscreenEnabled`** property on the Document interface indicates whether or not fullscreen mode is available.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/fullscreenEnabled)\n */\n readonly fullscreenEnabled: boolean;\n /**\n * The **`head`** read-only property of the Document interface returns the head element of the current document.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/head)\n */\n readonly head: HTMLHeadElement;\n /**\n * The **`Document.hidden`** read-only property returns a Boolean value indicating if the page is considered hidden or not.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/hidden)\n */\n readonly hidden: boolean;\n /**\n * The **`images`** read-only property of the Document interface returns a collection of the images in the current HTML document.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/images)\n */\n readonly images: HTMLCollectionOf<HTMLImageElement>;\n /**\n * The **`Document.implementation`** property returns a A DOMImplementation object.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/implementation)\n */\n readonly implementation: DOMImplementation;\n /**\n * @deprecated This is a legacy alias of `characterSet`.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/characterSet)\n */\n readonly inputEncoding: string;\n /**\n * The **`lastModified`** property of the Document interface returns a string containing the date and local time on which the current document was last modified.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/lastModified)\n */\n readonly lastModified: string;\n /**\n * The **`Document.linkColor`** property gets/sets the color of links within the document.\n * @deprecated\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/linkColor)\n */\n linkColor: string;\n /**\n * The **`links`** read-only property of the Document interface returns a collection of all area elements and a elements in a document with a value for the href attribute.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/links)\n */\n readonly links: HTMLCollectionOf<HTMLAnchorElement | HTMLAreaElement>;\n /**\n * The **`Document.location`** read-only property returns a and provides methods for changing that URL and loading another URL.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/location)\n */\n get location(): Location;\n set location(href: string);\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/fullscreenchange_event) */\n onfullscreenchange: ((this: Document, ev: Event) => any) | null;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/fullscreenerror_event) */\n onfullscreenerror: ((this: Document, ev: Event) => any) | null;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/pointerlockchange_event) */\n onpointerlockchange: ((this: Document, ev: Event) => any) | null;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/pointerlockerror_event) */\n onpointerlockerror: ((this: Document, ev: Event) => any) | null;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/readystatechange_event) */\n onreadystatechange: ((this: Document, ev: Event) => any) | null;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/visibilitychange_event) */\n onvisibilitychange: ((this: Document, ev: Event) => any) | null;\n readonly ownerDocument: null;\n /**\n * The read-only **`pictureInPictureEnabled`** property of the available.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/pictureInPictureEnabled)\n */\n readonly pictureInPictureEnabled: boolean;\n /**\n * The **`plugins`** read-only property of the containing one or more HTMLEmbedElements representing the An HTMLCollection.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/plugins)\n */\n readonly plugins: HTMLCollectionOf<HTMLEmbedElement>;\n /**\n * The **`Document.readyState`** property describes the loading state of the document.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/readyState)\n */\n readonly readyState: DocumentReadyState;\n /**\n * The **`Document.referrer`** property returns the URI of the page that linked to this page.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/referrer)\n */\n readonly referrer: string;\n /**\n * **`Document.rootElement`** returns the Element that is the root element of the document if it is an documents.\n * @deprecated\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/rootElement)\n */\n readonly rootElement: SVGSVGElement | null;\n /**\n * The **`scripts`** property of the Document interface returns a list of the script elements in the document.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/scripts)\n */\n readonly scripts: HTMLCollectionOf<HTMLScriptElement>;\n /**\n * The **`scrollingElement`** read-only property of the scrolls the document.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/scrollingElement)\n */\n readonly scrollingElement: Element | null;\n /**\n * The `timeline` readonly property of the Document interface represents the default timeline of the current document.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/timeline)\n */\n readonly timeline: DocumentTimeline;\n /**\n * The **`document.title`** property gets or sets the current title of the document.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/title)\n */\n title: string;\n /**\n * The **`Document.visibilityState`** read-only property returns the visibility of the document.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/visibilityState)\n */\n readonly visibilityState: DocumentVisibilityState;\n /**\n * The **`Document.vlinkColor`** property gets/sets the color of links that the user has visited in the document.\n * @deprecated\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/vlinkColor)\n */\n vlinkColor: string;\n /**\n * **`Document.adoptNode()`** transfers a node/dom from another Document into the method\'s document.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/adoptNode)\n */\n adoptNode<T extends Node>(node: T): T;\n /** @deprecated */\n captureEvents(): void;\n /**\n * The **`caretPositionFromPoint()`** method of the Document interface returns a CaretPosition object, containing the DOM node, along with the caret and caret\'s character offset within that node.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/caretPositionFromPoint)\n */\n caretPositionFromPoint(x: number, y: number, options?: CaretPositionFromPointOptions): CaretPosition | null;\n /** @deprecated */\n caretRangeFromPoint(x: number, y: number): Range | null;\n /**\n * The **`Document.clear()`** method does nothing, but doesn\'t raise any error.\n * @deprecated\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/clear)\n */\n clear(): void;\n /**\n * The **`Document.close()`** method finishes writing to a document, opened with Document.open().\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/close)\n */\n close(): void;\n /**\n * The **`Document.createAttribute()`** method creates a new attribute node, and returns it.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/createAttribute)\n */\n createAttribute(localName: string): Attr;\n /**\n * The **`Document.createAttributeNS()`** method creates a new attribute node with the specified namespace URI and qualified name, and returns it.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/createAttributeNS)\n */\n createAttributeNS(namespace: string | null, qualifiedName: string): Attr;\n /**\n * **`createCDATASection()`** creates a new CDATA section node, and returns it.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/createCDATASection)\n */\n createCDATASection(data: string): CDATASection;\n /**\n * **`createComment()`** creates a new comment node, and returns it.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/createComment)\n */\n createComment(data: string): Comment;\n /**\n * Creates a new empty DocumentFragment into which DOM nodes can be added to build an offscreen DOM tree.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/createDocumentFragment)\n */\n createDocumentFragment(): DocumentFragment;\n /**\n * In an HTML document, the **`document.createElement()`** method creates the HTML element specified by `localName`, or an HTMLUnknownElement if `localName` isn\'t recognized.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/createElement)\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 * Creates an element with the specified namespace URI and qualified name.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/createElementNS)\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<K extends keyof MathMLElementTagNameMap>(namespaceURI: "http://www.w3.org/1998/Math/MathML", qualifiedName: K): MathMLElementTagNameMap[K];\n createElementNS(namespaceURI: "http://www.w3.org/1998/Math/MathML", qualifiedName: string): MathMLElement;\n createElementNS(namespaceURI: string | null, qualifiedName: string, options?: ElementCreationOptions): Element;\n createElementNS(namespace: string | null, qualifiedName: string, options?: string | ElementCreationOptions): Element;\n /**\n * Creates an event of the type specified.\n * @deprecated\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/createEvent)\n */\n createEvent(eventInterface: "AnimationEvent"): AnimationEvent;\n createEvent(eventInterface: "AnimationPlaybackEvent"): AnimationPlaybackEvent;\n createEvent(eventInterface: "AudioProcessingEvent"): AudioProcessingEvent;\n createEvent(eventInterface: "BeforeUnloadEvent"): BeforeUnloadEvent;\n createEvent(eventInterface: "BlobEvent"): BlobEvent;\n createEvent(eventInterface: "ClipboardEvent"): ClipboardEvent;\n createEvent(eventInterface: "CloseEvent"): CloseEvent;\n createEvent(eventInterface: "CompositionEvent"): CompositionEvent;\n createEvent(eventInterface: "ContentVisibilityAutoStateChangeEvent"): ContentVisibilityAutoStateChangeEvent;\n createEvent(eventInterface: "CookieChangeEvent"): CookieChangeEvent;\n createEvent(eventInterface: "CustomEvent"): CustomEvent;\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: "FontFaceSetLoadEvent"): FontFaceSetLoadEvent;\n createEvent(eventInterface: "FormDataEvent"): FormDataEvent;\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: "MIDIConnectionEvent"): MIDIConnectionEvent;\n createEvent(eventInterface: "MIDIMessageEvent"): MIDIMessageEvent;\n createEvent(eventInterface: "MediaEncryptedEvent"): MediaEncryptedEvent;\n createEvent(eventInterface: "MediaKeyMessageEvent"): MediaKeyMessageEvent;\n createEvent(eventInterface: "MediaQueryListEvent"): MediaQueryListEvent;\n createEvent(eventInterface: "MediaStreamTrackEvent"): MediaStreamTrackEvent;\n createEvent(eventInterface: "MessageEvent"): MessageEvent;\n createEvent(eventInterface: "MouseEvent"): MouseEvent;\n createEvent(eventInterface: "MouseEvents"): MouseEvent;\n createEvent(eventInterface: "OfflineAudioCompletionEvent"): OfflineAudioCompletionEvent;\n createEvent(eventInterface: "PageRevealEvent"): PageRevealEvent;\n createEvent(eventInterface: "PageSwapEvent"): PageSwapEvent;\n createEvent(eventInterface: "PageTransitionEvent"): PageTransitionEvent;\n createEvent(eventInterface: "PaymentMethodChangeEvent"): PaymentMethodChangeEvent;\n createEvent(eventInterface: "PaymentRequestUpdateEvent"): PaymentRequestUpdateEvent;\n createEvent(eventInterface: "PictureInPictureEvent"): PictureInPictureEvent;\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: "RTCErrorEvent"): RTCErrorEvent;\n createEvent(eventInterface: "RTCPeerConnectionIceErrorEvent"): RTCPeerConnectionIceErrorEvent;\n createEvent(eventInterface: "RTCPeerConnectionIceEvent"): RTCPeerConnectionIceEvent;\n createEvent(eventInterface: "RTCTrackEvent"): RTCTrackEvent;\n createEvent(eventInterface: "SecurityPolicyViolationEvent"): SecurityPolicyViolationEvent;\n createEvent(eventInterface: "SpeechSynthesisErrorEvent"): SpeechSynthesisErrorEvent;\n createEvent(eventInterface: "SpeechSynthesisEvent"): SpeechSynthesisEvent;\n createEvent(eventInterface: "StorageEvent"): StorageEvent;\n createEvent(eventInterface: "SubmitEvent"): SubmitEvent;\n createEvent(eventInterface: "TextEvent"): TextEvent;\n createEvent(eventInterface: "ToggleEvent"): ToggleEvent;\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: "WebGLContextEvent"): WebGLContextEvent;\n createEvent(eventInterface: "WheelEvent"): WheelEvent;\n createEvent(eventInterface: string): Event;\n /**\n * The **`Document.createNodeIterator()`** method returns a new `NodeIterator` object.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/createNodeIterator)\n */\n createNodeIterator(root: Node, whatToShow?: number, filter?: NodeFilter | null): NodeIterator;\n /**\n * `createProcessingInstruction()` generates a new processing instruction node and returns it.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/createProcessingInstruction)\n */\n createProcessingInstruction(target: string, data: string): ProcessingInstruction;\n /**\n * The **`Document.createRange()`** method returns a new ```js-nolint createRange() ``` None.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/createRange)\n */\n createRange(): Range;\n /**\n * Creates a new Text node.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/createTextNode)\n */\n createTextNode(data: string): Text;\n /**\n * The **`Document.createTreeWalker()`** creator method returns a newly created TreeWalker object.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/createTreeWalker)\n */\n createTreeWalker(root: Node, whatToShow?: number, filter?: NodeFilter | null): TreeWalker;\n /**\n * The **`execCommand`** method implements multiple different commands.\n * @deprecated\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/execCommand)\n */\n execCommand(commandId: string, showUI?: boolean, value?: string): boolean;\n /**\n * The Document method **`exitFullscreen()`** requests that the element on this document which is currently being presented in fullscreen mode be taken out of fullscreen mode, restoring the previous state of the screen.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/exitFullscreen)\n */\n exitFullscreen(): Promise<void>;\n /**\n * The **`exitPictureInPicture()`** method of the Document interface requests that a video contained in this document, which is currently floating, be taken out of picture-in-picture mode, restoring the previous state of the screen.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/exitPictureInPicture)\n */\n exitPictureInPicture(): Promise<void>;\n /**\n * The **`exitPointerLock()`** method of the Document interface asynchronously releases a pointer lock previously requested through Element.requestPointerLock.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/exitPointerLock)\n */\n exitPointerLock(): void;\n getElementById(elementId: string): HTMLElement | null;\n /**\n * The **`getElementsByClassName`** method of of all child elements which have all of the given class name(s).\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/getElementsByClassName)\n */\n getElementsByClassName(classNames: string): HTMLCollectionOf<Element>;\n /**\n * The **`getElementsByName()`** method of the Document object returns a NodeList Collection of elements with a given `name` attribute in the document.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/getElementsByName)\n */\n getElementsByName(elementName: string): NodeListOf<HTMLElement>;\n /**\n * The **`getElementsByTagName`** method of The complete document is searched, including the root node.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/getElementsByTagName)\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<K extends keyof MathMLElementTagNameMap>(qualifiedName: K): HTMLCollectionOf<MathMLElementTagNameMap[K]>;\n /** @deprecated */\n getElementsByTagName<K extends keyof HTMLElementDeprecatedTagNameMap>(qualifiedName: K): HTMLCollectionOf<HTMLElementDeprecatedTagNameMap[K]>;\n getElementsByTagName(qualifiedName: string): HTMLCollectionOf<Element>;\n /**\n * Returns a list of elements with the given tag name belonging to the given namespace.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/getElementsByTagNameNS)\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: "http://www.w3.org/1998/Math/MathML", localName: string): HTMLCollectionOf<MathMLElement>;\n getElementsByTagNameNS(namespace: string | null, localName: string): HTMLCollectionOf<Element>;\n /**\n * The **`getSelection()`** method of the Document interface returns the Selection object associated with this document, representing the range of text selected by the user, or the current position of the caret.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/getSelection)\n */\n getSelection(): Selection | null;\n /**\n * The **`hasFocus()`** method of the Document interface returns a boolean value indicating whether the document or any element inside the document has focus.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/hasFocus)\n */\n hasFocus(): boolean;\n /**\n * The **`hasStorageAccess()`** method of the Document interface returns a Promise that resolves with a boolean value indicating whether the document has access to third-party, unpartitioned cookies.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/hasStorageAccess)\n */\n hasStorageAccess(): Promise<boolean>;\n /**\n * The Document object\'s **`importNode()`** method creates a copy of a inserted into the current document later.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/importNode)\n */\n importNode<T extends Node>(node: T, options?: boolean | ImportNodeOptions): T;\n /**\n * The **`Document.open()`** method opens a document for This does come with some side effects.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/open)\n */\n open(unused1?: string, unused2?: string): Document;\n open(url: string | URL, name: string, features: string): WindowProxy | null;\n /**\n * The **`Document.queryCommandEnabled()`** method reports whether or not the specified editor command is enabled by the browser.\n * @deprecated\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/queryCommandEnabled)\n */\n queryCommandEnabled(commandId: string): boolean;\n /** @deprecated */\n queryCommandIndeterm(commandId: string): boolean;\n /**\n * The **`queryCommandState()`** method will tell you if the current selection has a certain Document.execCommand() command applied.\n * @deprecated\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/queryCommandState)\n */\n queryCommandState(commandId: string): boolean;\n /**\n * The **`Document.queryCommandSupported()`** method reports whether or not the specified editor command is supported by the browser.\n * @deprecated\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/queryCommandSupported)\n */\n queryCommandSupported(commandId: string): boolean;\n /** @deprecated */\n queryCommandValue(commandId: string): string;\n /** @deprecated */\n releaseEvents(): void;\n /**\n * The **`requestStorageAccess()`** method of the Document interface allows content loaded in a third-party context (i.e., embedded in an iframe) to request access to third-party cookies and unpartitioned state.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/requestStorageAccess)\n */\n requestStorageAccess(): Promise<void>;\n /**\n * The **`startViewTransition()`** method of the Document interface starts a new same-document (SPA) view transition and returns a ViewTransition object to represent it.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/startViewTransition)\n */\n startViewTransition(callbackOptions?: ViewTransitionUpdateCallback | StartViewTransitionOptions): ViewTransition;\n /**\n * The **`write()`** method of the Document interface writes text in one or more TrustedHTML or string parameters to a document stream opened by document.open().\n * @deprecated\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/write)\n */\n write(...text: string[]): void;\n /**\n * The **`writeln()`** method of the Document interface writes text in one or more TrustedHTML or string parameters to a document stream opened by document.open(), followed by a newline character.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/writeln)\n */\n writeln(...text: string[]): void;\n /** [MDN Reference](https://developer.mozilla.org/en-US/docs/Web/API/Node/textContent) */\n get textContent(): null;\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 * The **`parseHTMLUnsafe()`** static method of the Document object is used to parse an HTML input, optionally filtering unwanted HTML elements and attributes, in order to create a new Document instance.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/parseHTMLUnsafe_static)\n */\n parseHTMLUnsafe(html: string): Document;\n};\n\n/**\n * The **`DocumentFragment`** interface represents a minimal document object that has no parent.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DocumentFragment)\n */\ninterface DocumentFragment extends Node, NonElementParentNode, ParentNode {\n readonly ownerDocument: Document;\n getElementById(elementId: string): HTMLElement | null;\n /** [MDN Reference](https://developer.mozilla.org/en-US/docs/Web/API/Node/textContent) */\n get textContent(): string;\n set textContent(value: string | null);\n}\n\ndeclare var DocumentFragment: {\n prototype: DocumentFragment;\n new(): DocumentFragment;\n};\n\ninterface DocumentOrShadowRoot {\n /**\n * Returns the deepest element in the document through which or to which key events are being routed. This is, roughly speaking, the focused element in the document.\n *\n * For the purposes of this API, when a child browsing context is focused, its container is focused in the parent browsing context. For example, if the user moves the focus to a text control in an iframe, the iframe is the element returned by the activeElement API in the iframe\'s node document.\n *\n * Similarly, when the focused element is in a different node tree than documentOrShadowRoot, the element returned will be the host that\'s located in the same node tree as documentOrShadowRoot if documentOrShadowRoot is a shadow-including inclusive ancestor of the focused element, and null if not.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/activeElement)\n */\n readonly activeElement: Element | null;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/adoptedStyleSheets) */\n adoptedStyleSheets: CSSStyleSheet[];\n /**\n * Returns document\'s fullscreen element.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/fullscreenElement)\n */\n readonly fullscreenElement: Element | null;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/pictureInPictureElement) */\n readonly pictureInPictureElement: Element | null;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/pointerLockElement) */\n readonly pointerLockElement: Element | null;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/styleSheets) */\n readonly styleSheets: StyleSheetList;\n elementFromPoint(x: number, y: number): Element | null;\n elementsFromPoint(x: number, y: number): Element[];\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/getAnimations) */\n getAnimations(): Animation[];\n}\n\n/**\n * The **`DocumentTimeline`** interface of the Web Animations API represents animation timelines, including the default document timeline (accessed via Document.timeline).\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DocumentTimeline)\n */\ninterface DocumentTimeline extends AnimationTimeline {\n}\n\ndeclare var DocumentTimeline: {\n prototype: DocumentTimeline;\n new(options?: DocumentTimelineOptions): DocumentTimeline;\n};\n\n/**\n * The **`DocumentType`** interface represents a Node containing a doctype.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DocumentType)\n */\ninterface DocumentType extends Node, ChildNode {\n /**\n * The read-only **`name`** property of the DocumentType returns the type of the document.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DocumentType/name)\n */\n readonly name: string;\n readonly ownerDocument: Document;\n /**\n * The read-only **`publicId`** property of the DocumentType returns a formal identifier of the document.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DocumentType/publicId)\n */\n readonly publicId: string;\n /**\n * The read-only **`systemId`** property of the DocumentType returns the URL of the associated DTD.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DocumentType/systemId)\n */\n readonly systemId: string;\n /** [MDN Reference](https://developer.mozilla.org/en-US/docs/Web/API/Node/textContent) */\n get textContent(): null;\n}\n\ndeclare var DocumentType: {\n prototype: DocumentType;\n new(): DocumentType;\n};\n\n/**\n * The **`DragEvent`** interface is a DOM event that represents a drag and drop interaction.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DragEvent)\n */\ninterface DragEvent extends MouseEvent {\n /**\n * The **`DragEvent.dataTransfer`** read-only property holds the drag operation\'s data (as a DataTransfer object).\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DragEvent/dataTransfer)\n */\n readonly dataTransfer: DataTransfer | null;\n}\n\ndeclare var DragEvent: {\n prototype: DragEvent;\n new(type: string, eventInitDict?: DragEventInit): DragEvent;\n};\n\n/**\n * The `DynamicsCompressorNode` interface provides a compression effect, which lowers the volume of the loudest parts of the signal in order to help prevent clipping and distortion that can occur when multiple sounds are played and multiplexed together at once.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DynamicsCompressorNode)\n */\ninterface DynamicsCompressorNode extends AudioNode {\n /**\n * The `attack` property of the DynamicsCompressorNode interface is a k-rate AudioParam representing the amount of time, in seconds, required to reduce the gain by 10 dB.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DynamicsCompressorNode/attack)\n */\n readonly attack: AudioParam;\n /**\n * The `knee` property of the DynamicsCompressorNode interface is a k-rate AudioParam containing a decibel value representing the range above the threshold where the curve smoothly transitions to the compressed portion.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DynamicsCompressorNode/knee)\n */\n readonly knee: AudioParam;\n /**\n * The `ratio` property of the DynamicsCompressorNode interface Is a k-rate AudioParam representing the amount of change, in dB, needed in the input for a 1 dB change in the output.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DynamicsCompressorNode/ratio)\n */\n readonly ratio: AudioParam;\n /**\n * The **`reduction`** read-only property of the DynamicsCompressorNode interface is a float representing the amount of gain reduction currently applied by the compressor to the signal.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DynamicsCompressorNode/reduction)\n */\n readonly reduction: number;\n /**\n * The `release` property of the DynamicsCompressorNode interface Is a k-rate AudioParam representing the amount of time, in seconds, required to increase the gain by 10 dB.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DynamicsCompressorNode/release)\n */\n readonly release: AudioParam;\n /**\n * The `threshold` property of the DynamicsCompressorNode interface is a k-rate AudioParam representing the decibel value above which the compression will start taking effect.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DynamicsCompressorNode/threshold)\n */\n readonly threshold: AudioParam;\n}\n\ndeclare var DynamicsCompressorNode: {\n prototype: DynamicsCompressorNode;\n new(context: BaseAudioContext, options?: DynamicsCompressorOptions): DynamicsCompressorNode;\n};\n\n/**\n * The **`EXT_blend_minmax`** extension is part of the WebGL API and extends blending capabilities by adding two new blend equations: the minimum or maximum color components of the source and destination colors.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/EXT_blend_minmax)\n */\ninterface EXT_blend_minmax {\n readonly MIN_EXT: 0x8007;\n readonly MAX_EXT: 0x8008;\n}\n\n/**\n * The **`EXT_color_buffer_float`** extension is part of WebGL and adds the ability to render a variety of floating point formats.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/EXT_color_buffer_float)\n */\ninterface EXT_color_buffer_float {\n}\n\n/**\n * The **`EXT_color_buffer_half_float`** extension is part of the WebGL API and adds the ability to render to 16-bit floating-point color buffers.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/EXT_color_buffer_half_float)\n */\ninterface EXT_color_buffer_half_float {\n readonly RGBA16F_EXT: 0x881A;\n readonly RGB16F_EXT: 0x881B;\n readonly FRAMEBUFFER_ATTACHMENT_COMPONENT_TYPE_EXT: 0x8211;\n readonly UNSIGNED_NORMALIZED_EXT: 0x8C17;\n}\n\n/**\n * The WebGL API\'s `EXT_float_blend` extension allows blending and draw buffers with 32-bit floating-point components.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/EXT_float_blend)\n */\ninterface EXT_float_blend {\n}\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.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/EXT_frag_depth)\n */\ninterface EXT_frag_depth {\n}\n\n/**\n * The **`EXT_sRGB`** extension is part of the WebGL API and adds sRGB support to textures and framebuffer objects.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/EXT_sRGB)\n */\ninterface EXT_sRGB {\n readonly SRGB_EXT: 0x8C40;\n readonly SRGB_ALPHA_EXT: 0x8C42;\n readonly SRGB8_ALPHA8_EXT: 0x8C43;\n readonly FRAMEBUFFER_ATTACHMENT_COLOR_ENCODING_EXT: 0x8210;\n}\n\n/**\n * The **`EXT_shader_texture_lod`** extension is part of the WebGL API and adds additional texture functions to the OpenGL ES Shading Language which provide the shader writer with explicit control of LOD (Level of detail).\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/EXT_shader_texture_lod)\n */\ninterface EXT_shader_texture_lod {\n}\n\n/**\n * The `EXT_texture_compression_bptc` extension is part of the WebGL API and exposes 4 BPTC compressed texture formats.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/EXT_texture_compression_bptc)\n */\ninterface EXT_texture_compression_bptc {\n readonly COMPRESSED_RGBA_BPTC_UNORM_EXT: 0x8E8C;\n readonly COMPRESSED_SRGB_ALPHA_BPTC_UNORM_EXT: 0x8E8D;\n readonly COMPRESSED_RGB_BPTC_SIGNED_FLOAT_EXT: 0x8E8E;\n readonly COMPRESSED_RGB_BPTC_UNSIGNED_FLOAT_EXT: 0x8E8F;\n}\n\n/**\n * The `EXT_texture_compression_rgtc` extension is part of the WebGL API and exposes 4 RGTC compressed texture formats.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/EXT_texture_compression_rgtc)\n */\ninterface EXT_texture_compression_rgtc {\n readonly COMPRESSED_RED_RGTC1_EXT: 0x8DBB;\n readonly COMPRESSED_SIGNED_RED_RGTC1_EXT: 0x8DBC;\n readonly COMPRESSED_RED_GREEN_RGTC2_EXT: 0x8DBD;\n readonly COMPRESSED_SIGNED_RED_GREEN_RGTC2_EXT: 0x8DBE;\n}\n\n/**\n * The **`EXT_texture_filter_anisotropic`** extension is part of the WebGL API and exposes two constants for anisotropic filtering (AF).\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/EXT_texture_filter_anisotropic)\n */\ninterface EXT_texture_filter_anisotropic {\n readonly TEXTURE_MAX_ANISOTROPY_EXT: 0x84FE;\n readonly MAX_TEXTURE_MAX_ANISOTROPY_EXT: 0x84FF;\n}\n\n/**\n * The **`EXT_texture_norm16`** extension is part of the WebGL API and provides a set of new 16-bit signed normalized and unsigned normalized formats (fixed-point texture, renderbuffer and texture buffer).\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/EXT_texture_norm16)\n */\ninterface EXT_texture_norm16 {\n readonly R16_EXT: 0x822A;\n readonly RG16_EXT: 0x822C;\n readonly RGB16_EXT: 0x8054;\n readonly RGBA16_EXT: 0x805B;\n readonly R16_SNORM_EXT: 0x8F98;\n readonly RG16_SNORM_EXT: 0x8F99;\n readonly RGB16_SNORM_EXT: 0x8F9A;\n readonly RGBA16_SNORM_EXT: 0x8F9B;\n}\n\ninterface ElementEventMap {\n "fullscreenchange": Event;\n "fullscreenerror": Event;\n}\n\n/**\n * **`Element`** is the most general base class from which all element objects (i.e., objects that represent elements) in a Document inherit.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element)\n */\ninterface Element extends Node, ARIAMixin, Animatable, ChildNode, NonDocumentTypeChildNode, ParentNode, Slottable {\n /**\n * The **`Element.attributes`** property returns a live collection of all attribute nodes registered to the specified node.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/attributes)\n */\n readonly attributes: NamedNodeMap;\n /**\n * The **`Element.classList`** is a read-only property that returns a live DOMTokenList collection of the `class` attributes of the element.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/classList)\n */\n get classList(): DOMTokenList;\n set classList(value: string);\n /**\n * The **`className`** property of the of the specified element.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/className)\n */\n className: string;\n /**\n * The **`clientHeight`** read-only property of the Element interface is zero for elements with no CSS or inline layout boxes; otherwise, it\'s the inner height of an element in pixels.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/clientHeight)\n */\n readonly clientHeight: number;\n /**\n * The **`clientLeft`** read-only property of the Element interface returns the width of the left border of an element in pixels.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/clientLeft)\n */\n readonly clientLeft: number;\n /**\n * The **`clientTop`** read-only property of the Element interface returns the width of the top border of an element in pixels.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/clientTop)\n */\n readonly clientTop: number;\n /**\n * The **`clientWidth`** read-only property of the Element interface is zero for inline elements and elements with no CSS; otherwise, it\'s the inner width of an element in pixels.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/clientWidth)\n */\n readonly clientWidth: number;\n /**\n * The **`currentCSSZoom`** read-only property of the Element interface provides the \'effective\' CSS `zoom` of an element, taking into account the zoom applied to the element and all its parent elements.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/currentCSSZoom)\n */\n readonly currentCSSZoom: number;\n /**\n * The **`id`** property of the Element interface represents the element\'s identifier, reflecting the **`id`** global attribute.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/id)\n */\n id: string;\n /**\n * The **`innerHTML`** property of the Element interface gets or sets the HTML or XML markup contained within the element.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/innerHTML)\n */\n innerHTML: string;\n /**\n * The **`Element.localName`** read-only property returns the local part of the qualified name of an element.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/localName)\n */\n readonly localName: string;\n /**\n * The **`Element.namespaceURI`** read-only property returns the namespace URI of the element, or `null` if the element is not in a namespace.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/namespaceURI)\n */\n readonly namespaceURI: string | null;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/fullscreenchange_event) */\n onfullscreenchange: ((this: Element, ev: Event) => any) | null;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/fullscreenerror_event) */\n onfullscreenerror: ((this: Element, ev: Event) => any) | null;\n /**\n * The **`outerHTML`** attribute of the Element DOM interface gets the serialized HTML fragment describing the element including its descendants.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/outerHTML)\n */\n outerHTML: string;\n readonly ownerDocument: Document;\n /**\n * The **`part`** property of the Element interface represents the part identifier(s) of the element (i.e., set using the `part` attribute), returned as a DOMTokenList.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/part)\n */\n get part(): DOMTokenList;\n set part(value: string);\n /**\n * The **`Element.prefix`** read-only property returns the namespace prefix of the specified element, or `null` if no prefix is specified.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/prefix)\n */\n readonly prefix: string | null;\n /**\n * The **`scrollHeight`** read-only property of the Element interface is a measurement of the height of an element\'s content, including content not visible on the screen due to overflow.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/scrollHeight)\n */\n readonly scrollHeight: number;\n /**\n * The **`scrollLeft`** property of the Element interface gets or sets the number of pixels by which an element\'s content is scrolled from its left edge.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/scrollLeft)\n */\n scrollLeft: number;\n /**\n * The **`scrollTop`** property of the Element interface gets or sets the number of pixels by which an element\'s content is scrolled from its top edge.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/scrollTop)\n */\n scrollTop: number;\n /**\n * The **`scrollWidth`** read-only property of the Element interface is a measurement of the width of an element\'s content, including content not visible on the screen due to overflow.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/scrollWidth)\n */\n readonly scrollWidth: number;\n /**\n * The `Element.shadowRoot` read-only property represents the shadow root hosted by the element.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/shadowRoot)\n */\n readonly shadowRoot: ShadowRoot | null;\n /**\n * The **`slot`** property of the Element interface returns the name of the shadow DOM slot the element is inserted in.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/slot)\n */\n slot: string;\n /**\n * The **`tagName`** read-only property of the Element interface returns the tag name of the element on which it\'s called.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/tagName)\n */\n readonly tagName: string;\n /**\n * The **`Element.attachShadow()`** method attaches a shadow DOM tree to the specified element and returns a reference to its ShadowRoot.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/attachShadow)\n */\n attachShadow(init: ShadowRootInit): ShadowRoot;\n /**\n * The **`checkVisibility()`** method of the Element interface checks whether the element is visible.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/checkVisibility)\n */\n checkVisibility(options?: CheckVisibilityOptions): boolean;\n /**\n * The **`closest()`** method of the Element interface traverses the element and its parents (heading toward the document root) until it finds a node that matches the specified CSS selector.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/closest)\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<K extends keyof MathMLElementTagNameMap>(selector: K): MathMLElementTagNameMap[K] | null;\n closest<E extends Element = Element>(selectors: string): E | null;\n /**\n * The **`computedStyleMap()`** method of the Element interface returns a StylePropertyMapReadOnly interface which provides a read-only representation of a CSS declaration block that is an alternative to CSSStyleDeclaration.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/computedStyleMap)\n */\n computedStyleMap(): StylePropertyMapReadOnly;\n /**\n * The **`getAttribute()`** method of the element.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/getAttribute)\n */\n getAttribute(qualifiedName: string): string | null;\n /**\n * The **`getAttributeNS()`** method of the Element interface returns the string value of the attribute with the specified namespace and name.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/getAttributeNS)\n */\n getAttributeNS(namespace: string | null, localName: string): string | null;\n /**\n * The **`getAttributeNames()`** method of the array.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/getAttributeNames)\n */\n getAttributeNames(): string[];\n /**\n * Returns the specified attribute of the specified element, as an Attr node.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/getAttributeNode)\n */\n getAttributeNode(qualifiedName: string): Attr | null;\n /**\n * The **`getAttributeNodeNS()`** method of the Element interface returns the namespaced Attr node of an element.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/getAttributeNodeNS)\n */\n getAttributeNodeNS(namespace: string | null, localName: string): Attr | null;\n /**\n * The **`Element.getBoundingClientRect()`** method returns a position relative to the viewport.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/getBoundingClientRect)\n */\n getBoundingClientRect(): DOMRect;\n /**\n * The **`getClientRects()`** method of the Element interface returns a collection of DOMRect objects that indicate the bounding rectangles for each CSS border box in a client.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/getClientRects)\n */\n getClientRects(): DOMRectList;\n /**\n * The Element method **`getElementsByClassName()`** returns a live specified class name or names.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/getElementsByClassName)\n */\n getElementsByClassName(classNames: string): HTMLCollectionOf<Element>;\n /**\n * The **`Element.getElementsByTagName()`** method returns a live All descendants of the specified element are searched, but not the element itself.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/getElementsByTagName)\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<K extends keyof MathMLElementTagNameMap>(qualifiedName: K): HTMLCollectionOf<MathMLElementTagNameMap[K]>;\n /** @deprecated */\n getElementsByTagName<K extends keyof HTMLElementDeprecatedTagNameMap>(qualifiedName: K): HTMLCollectionOf<HTMLElementDeprecatedTagNameMap[K]>;\n getElementsByTagName(qualifiedName: string): HTMLCollectionOf<Element>;\n /**\n * The **`Element.getElementsByTagNameNS()`** method returns a live HTMLCollection of elements with the given tag name belonging to the given namespace.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/getElementsByTagNameNS)\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: "http://www.w3.org/1998/Math/MathML", localName: string): HTMLCollectionOf<MathMLElement>;\n getElementsByTagNameNS(namespace: string | null, localName: string): HTMLCollectionOf<Element>;\n /**\n * The **`getHTML()`** method of the Element interface is used to serialize an element\'s DOM to an HTML string.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/getHTML)\n */\n getHTML(options?: GetHTMLOptions): string;\n /**\n * The **`Element.hasAttribute()`** method returns a **Boolean** value indicating whether the specified element has the specified attribute or not.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/hasAttribute)\n */\n hasAttribute(qualifiedName: string): boolean;\n /**\n * The **`hasAttributeNS()`** method of the Element interface returns a boolean value indicating whether the current element has the specified attribute with the specified namespace.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/hasAttributeNS)\n */\n hasAttributeNS(namespace: string | null, localName: string): boolean;\n /**\n * The **`hasAttributes()`** method of the Element interface returns a boolean value indicating whether the current element has any attributes or not.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/hasAttributes)\n */\n hasAttributes(): boolean;\n /**\n * The **`hasPointerCapture()`** method of the pointer capture for the pointer identified by the given pointer ID.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/hasPointerCapture)\n */\n hasPointerCapture(pointerId: number): boolean;\n /**\n * The **`insertAdjacentElement()`** method of the relative to the element it is invoked upon.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/insertAdjacentElement)\n */\n insertAdjacentElement(where: InsertPosition, element: Element): Element | null;\n /**\n * The **`insertAdjacentHTML()`** method of the the resulting nodes into the DOM tree at a specified position.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/insertAdjacentHTML)\n */\n insertAdjacentHTML(position: InsertPosition, string: string): void;\n /**\n * The **`insertAdjacentText()`** method of the Element interface, given a relative position and a string, inserts a new text node at the given position relative to the element it is called from.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/insertAdjacentText)\n */\n insertAdjacentText(where: InsertPosition, data: string): void;\n /**\n * The **`matches()`** method of the Element interface tests whether the element would be selected by the specified CSS selector.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/matches)\n */\n matches(selectors: string): boolean;\n /**\n * The **`releasePointerCapture()`** method of the previously set for a specific (PointerEvent) _pointer_.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/releasePointerCapture)\n */\n releasePointerCapture(pointerId: number): void;\n /**\n * The Element method **`removeAttribute()`** removes the attribute with the specified name from the element.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/removeAttribute)\n */\n removeAttribute(qualifiedName: string): void;\n /**\n * The **`removeAttributeNS()`** method of the If you are working with HTML and you don\'t need to specify the requested attribute as being part of a specific namespace, use the Element.removeAttribute() method instead.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/removeAttributeNS)\n */\n removeAttributeNS(namespace: string | null, localName: string): void;\n /**\n * The **`removeAttributeNode()`** method of the Element interface removes the specified Attr node from the element.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/removeAttributeNode)\n */\n removeAttributeNode(attr: Attr): Attr;\n /**\n * The **`Element.requestFullscreen()`** method issues an asynchronous request to make the element be displayed in fullscreen mode.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/requestFullscreen)\n */\n requestFullscreen(options?: FullscreenOptions): Promise<void>;\n /**\n * The **`requestPointerLock()`** method of the Element interface lets you asynchronously ask for the pointer to be locked on the given element.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/requestPointerLock)\n */\n requestPointerLock(options?: PointerLockOptions): Promise<void>;\n /**\n * The **`scroll()`** method of the Element interface scrolls the element to a particular set of coordinates inside a given element.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/scroll)\n */\n scroll(options?: ScrollToOptions): void;\n scroll(x: number, y: number): void;\n /**\n * The **`scrollBy()`** method of the Element interface scrolls an element by the given amount.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/scrollBy)\n */\n scrollBy(options?: ScrollToOptions): void;\n scrollBy(x: number, y: number): void;\n /**\n * The Element interface\'s **`scrollIntoView()`** method scrolls the element\'s ancestor containers such that the element on which `scrollIntoView()` is called is visible to the user.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/scrollIntoView)\n */\n scrollIntoView(arg?: boolean | ScrollIntoViewOptions): void;\n /**\n * The **`scrollTo()`** method of the Element interface scrolls to a particular set of coordinates inside a given element.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/scrollTo)\n */\n scrollTo(options?: ScrollToOptions): void;\n scrollTo(x: number, y: number): void;\n /**\n * The **`setAttribute()`** method of the Element interface sets the value of an attribute on the specified element.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/setAttribute)\n */\n setAttribute(qualifiedName: string, value: string): void;\n /**\n * `setAttributeNS` adds a new attribute or changes the value of an attribute with the given namespace and name.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/setAttributeNS)\n */\n setAttributeNS(namespace: string | null, qualifiedName: string, value: string): void;\n /**\n * The **`setAttributeNode()`** method of the Element interface adds a new Attr node to the specified element.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/setAttributeNode)\n */\n setAttributeNode(attr: Attr): Attr | null;\n /**\n * The **`setAttributeNodeNS()`** method of the Element interface adds a new namespaced Attr node to an element.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/setAttributeNodeNS)\n */\n setAttributeNodeNS(attr: Attr): Attr | null;\n /**\n * The **`setHTMLUnsafe()`** method of the Element interface is used to parse a string of HTML into a DocumentFragment, optionally filtering out unwanted elements and attributes, and those that don\'t belong in the context, and then using it to replace the element\'s subtree in the DOM.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/setHTMLUnsafe)\n */\n setHTMLUnsafe(html: string): void;\n /**\n * The **`setPointerCapture()`** method of the _capture target_ of future pointer events.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/setPointerCapture)\n */\n setPointerCapture(pointerId: number): void;\n /**\n * The **`toggleAttribute()`** method of the present and adding it if it is not present) on the given element.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/toggleAttribute)\n */\n toggleAttribute(qualifiedName: string, force?: boolean): boolean;\n /**\n * @deprecated This is a legacy alias of `matches`.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/matches)\n */\n webkitMatchesSelector(selectors: string): boolean;\n /** [MDN Reference](https://developer.mozilla.org/en-US/docs/Web/API/Node/textContent) */\n get textContent(): string;\n set textContent(value: string | null);\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 /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLElement/attributeStyleMap) */\n readonly attributeStyleMap: StylePropertyMap;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLElement/style) */\n get style(): CSSStyleDeclaration;\n set style(cssText: string);\n}\n\ninterface ElementContentEditable {\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLElement/contentEditable) */\n contentEditable: string;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLElement/enterKeyHint) */\n enterKeyHint: string;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLElement/inputMode) */\n inputMode: string;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLElement/isContentEditable) */\n readonly isContentEditable: boolean;\n}\n\n/**\n * The **`ElementInternals`** interface of the Document Object Model gives web developers a way to allow custom elements to fully participate in HTML forms.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ElementInternals)\n */\ninterface ElementInternals extends ARIAMixin {\n /**\n * The **`form`** read-only property of the ElementInternals interface returns the HTMLFormElement associated with this element.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ElementInternals/form)\n */\n readonly form: HTMLFormElement | null;\n /**\n * The **`labels`** read-only property of the ElementInternals interface returns the labels associated with the element.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ElementInternals/labels)\n */\n readonly labels: NodeList;\n /**\n * The **`shadowRoot`** read-only property of the ElementInternals interface returns the ShadowRoot for this element.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ElementInternals/shadowRoot)\n */\n readonly shadowRoot: ShadowRoot | null;\n /**\n * The **`states`** read-only property of the ElementInternals interface returns a CustomStateSet representing the possible states of the custom element.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ElementInternals/states)\n */\n readonly states: CustomStateSet;\n /**\n * The **`validationMessage`** read-only property of the ElementInternals interface returns the validation message for the element.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ElementInternals/validationMessage)\n */\n readonly validationMessage: string;\n /**\n * The **`validity`** read-only property of the ElementInternals interface returns a ValidityState object which represents the different validity states the element can be in, with respect to constraint validation.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ElementInternals/validity)\n */\n readonly validity: ValidityState;\n /**\n * The **`willValidate`** read-only property of the ElementInternals interface returns `true` if the element is a submittable element that is a candidate for constraint validation.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ElementInternals/willValidate)\n */\n readonly willValidate: boolean;\n /**\n * The **`checkValidity()`** method of the ElementInternals interface checks if the element meets any constraint validation rules applied to it.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ElementInternals/checkValidity)\n */\n checkValidity(): boolean;\n /**\n * The **`reportValidity()`** method of the ElementInternals interface checks if the element meets any constraint validation rules applied to it.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ElementInternals/reportValidity)\n */\n reportValidity(): boolean;\n /**\n * The **`setFormValue()`** method of the ElementInternals interface sets the element\'s submission value and state, communicating these to the user agent.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ElementInternals/setFormValue)\n */\n setFormValue(value: File | string | FormData | null, state?: File | string | FormData | null): void;\n /**\n * The **`setValidity()`** method of the ElementInternals interface sets the validity of the element.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ElementInternals/setValidity)\n */\n setValidity(flags?: ValidityStateFlags, message?: string, anchor?: HTMLElement): void;\n}\n\ndeclare var ElementInternals: {\n prototype: ElementInternals;\n new(): ElementInternals;\n};\n\n/**\n * The **`EncodedAudioChunk`** interface of the WebCodecs API represents a chunk of encoded audio data.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/EncodedAudioChunk)\n */\ninterface EncodedAudioChunk {\n /**\n * The **`byteLength`** read-only property of the EncodedAudioChunk interface returns the length in bytes of the encoded audio data.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/EncodedAudioChunk/byteLength)\n */\n readonly byteLength: number;\n /**\n * The **`duration`** read-only property of the EncodedAudioChunk interface returns an integer indicating the duration of the audio in microseconds.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/EncodedAudioChunk/duration)\n */\n readonly duration: number | null;\n /**\n * The **`timestamp`** read-only property of the EncodedAudioChunk interface returns an integer indicating the timestamp of the audio in microseconds.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/EncodedAudioChunk/timestamp)\n */\n readonly timestamp: number;\n /**\n * The **`type`** read-only property of the EncodedAudioChunk interface returns a value indicating whether the audio chunk is a key chunk, which does not relying on other frames for decoding.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/EncodedAudioChunk/type)\n */\n readonly type: EncodedAudioChunkType;\n /**\n * The **`copyTo()`** method of the EncodedAudioChunk interface copies the encoded chunk of audio data.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/EncodedAudioChunk/copyTo)\n */\n copyTo(destination: AllowSharedBufferSource): void;\n}\n\ndeclare var EncodedAudioChunk: {\n prototype: EncodedAudioChunk;\n new(init: EncodedAudioChunkInit): EncodedAudioChunk;\n};\n\n/**\n * The **`EncodedVideoChunk`** interface of the WebCodecs API represents a chunk of encoded video data.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/EncodedVideoChunk)\n */\ninterface EncodedVideoChunk {\n /**\n * The **`byteLength`** read-only property of the EncodedVideoChunk interface returns the length in bytes of the encoded video data.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/EncodedVideoChunk/byteLength)\n */\n readonly byteLength: number;\n /**\n * The **`duration`** read-only property of the EncodedVideoChunk interface returns an integer indicating the duration of the video in microseconds.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/EncodedVideoChunk/duration)\n */\n readonly duration: number | null;\n /**\n * The **`timestamp`** read-only property of the EncodedVideoChunk interface returns an integer indicating the timestamp of the video in microseconds.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/EncodedVideoChunk/timestamp)\n */\n readonly timestamp: number;\n /**\n * The **`type`** read-only property of the EncodedVideoChunk interface returns a value indicating whether the video chunk is a key chunk, which does not rely on other frames for decoding.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/EncodedVideoChunk/type)\n */\n readonly type: EncodedVideoChunkType;\n /**\n * The **`copyTo()`** method of the EncodedVideoChunk interface copies the encoded chunk of video data.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/EncodedVideoChunk/copyTo)\n */\n copyTo(destination: AllowSharedBufferSource): void;\n}\n\ndeclare var EncodedVideoChunk: {\n prototype: EncodedVideoChunk;\n new(init: EncodedVideoChunkInit): EncodedVideoChunk;\n};\n\n/**\n * The **`ErrorEvent`** interface represents events providing information related to errors in scripts or in files.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ErrorEvent)\n */\ninterface ErrorEvent extends Event {\n /**\n * The **`colno`** read-only property of the ErrorEvent interface returns an integer containing the column number of the script file on which the error occurred.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ErrorEvent/colno)\n */\n readonly colno: number;\n /**\n * The **`error`** read-only property of the ErrorEvent interface returns a JavaScript value, such as an Error or DOMException, representing the error associated with this event.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ErrorEvent/error)\n */\n readonly error: any;\n /**\n * The **`filename`** read-only property of the ErrorEvent interface returns a string containing the name of the script file in which the error occurred.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ErrorEvent/filename)\n */\n readonly filename: string;\n /**\n * The **`lineno`** read-only property of the ErrorEvent interface returns an integer containing the line number of the script file on which the error occurred.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ErrorEvent/lineno)\n */\n readonly lineno: number;\n /**\n * The **`message`** read-only property of the ErrorEvent interface returns a string containing a human-readable error message describing the problem.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ErrorEvent/message)\n */\n readonly message: string;\n}\n\ndeclare var ErrorEvent: {\n prototype: ErrorEvent;\n new(type: string, eventInitDict?: ErrorEventInit): ErrorEvent;\n};\n\n/**\n * The **`Event`** interface represents an event which takes place on an `EventTarget`.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Event)\n */\ninterface Event {\n /**\n * The **`bubbles`** read-only property of the Event interface indicates whether the event bubbles up through the DOM tree or not.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Event/bubbles)\n */\n readonly bubbles: boolean;\n /**\n * The **`cancelBubble`** property of the Event interface is deprecated.\n * @deprecated\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Event/cancelBubble)\n */\n cancelBubble: boolean;\n /**\n * The **`cancelable`** read-only property of the Event interface indicates whether the event can be canceled, and therefore prevented as if the event never happened.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Event/cancelable)\n */\n readonly cancelable: boolean;\n /**\n * The read-only **`composed`** property of the or not the event will propagate across the shadow DOM boundary into the standard DOM.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Event/composed)\n */\n readonly composed: boolean;\n /**\n * The **`currentTarget`** read-only property of the Event interface identifies the element to which the event handler has been attached.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Event/currentTarget)\n */\n readonly currentTarget: EventTarget | null;\n /**\n * The **`defaultPrevented`** read-only property of the Event interface returns a boolean value indicating whether or not the call to Event.preventDefault() canceled the event.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Event/defaultPrevented)\n */\n readonly defaultPrevented: boolean;\n /**\n * The **`eventPhase`** read-only property of the being evaluated.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Event/eventPhase)\n */\n readonly eventPhase: number;\n /**\n * The **`isTrusted`** read-only property of the when the event was generated by the user agent (including via user actions and programmatic methods such as HTMLElement.focus()), and `false` when the event was dispatched via The only exception is the `click` event, which initializes the `isTrusted` property to `false` in user agents.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Event/isTrusted)\n */\n readonly isTrusted: boolean;\n /**\n * The Event property **`returnValue`** indicates whether the default action for this event has been prevented or not.\n * @deprecated\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Event/returnValue)\n */\n returnValue: boolean;\n /**\n * The deprecated **`Event.srcElement`** is an alias for the Event.target property.\n * @deprecated\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Event/srcElement)\n */\n readonly srcElement: EventTarget | null;\n /**\n * The read-only **`target`** property of the dispatched.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Event/target)\n */\n readonly target: EventTarget | null;\n /**\n * The **`timeStamp`** read-only property of the Event interface returns the time (in milliseconds) at which the event was created.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Event/timeStamp)\n */\n readonly timeStamp: DOMHighResTimeStamp;\n /**\n * The **`type`** read-only property of the Event interface returns a string containing the event\'s type.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Event/type)\n */\n readonly type: string;\n /**\n * The **`composedPath()`** method of the Event interface returns the event\'s path which is an array of the objects on which listeners will be invoked.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Event/composedPath)\n */\n composedPath(): EventTarget[];\n /**\n * The **`Event.initEvent()`** method is used to initialize the value of an event created using Document.createEvent().\n * @deprecated\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Event/initEvent)\n */\n initEvent(type: string, bubbles?: boolean, cancelable?: boolean): void;\n /**\n * The **`preventDefault()`** method of the Event interface tells the user agent that if the event does not get explicitly handled, its default action should not be taken as it normally would be.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Event/preventDefault)\n */\n preventDefault(): void;\n /**\n * The **`stopImmediatePropagation()`** method of the If several listeners are attached to the same element for the same event type, they are called in the order in which they were added.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Event/stopImmediatePropagation)\n */\n stopImmediatePropagation(): void;\n /**\n * The **`stopPropagation()`** method of the Event interface prevents further propagation of the current event in the capturing and bubbling phases.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Event/stopPropagation)\n */\n stopPropagation(): void;\n readonly NONE: 0;\n readonly CAPTURING_PHASE: 1;\n readonly AT_TARGET: 2;\n readonly BUBBLING_PHASE: 3;\n}\n\ndeclare var Event: {\n prototype: Event;\n new(type: string, eventInitDict?: EventInit): Event;\n readonly NONE: 0;\n readonly CAPTURING_PHASE: 1;\n readonly AT_TARGET: 2;\n readonly BUBBLING_PHASE: 3;\n};\n\n/**\n * The **`EventCounts`** interface of the Performance API provides the number of events that have been dispatched for each event type.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/EventCounts)\n */\ninterface EventCounts {\n forEach(callbackfn: (value: number, key: string, parent: EventCounts) => void, thisArg?: any): void;\n}\n\ndeclare var EventCounts: {\n prototype: EventCounts;\n new(): EventCounts;\n};\n\ninterface EventListener {\n (evt: Event): void;\n}\n\ninterface EventListenerObject {\n handleEvent(object: Event): void;\n}\n\ninterface EventSourceEventMap {\n "error": Event;\n "message": MessageEvent;\n "open": Event;\n}\n\n/**\n * The **`EventSource`** interface is web content\'s interface to server-sent events.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/EventSource)\n */\ninterface EventSource extends EventTarget {\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/EventSource/error_event) */\n onerror: ((this: EventSource, ev: Event) => any) | null;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/EventSource/message_event) */\n onmessage: ((this: EventSource, ev: MessageEvent) => any) | null;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/EventSource/open_event) */\n onopen: ((this: EventSource, ev: Event) => any) | null;\n /**\n * The **`readyState`** read-only property of the connection.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/EventSource/readyState)\n */\n readonly readyState: number;\n /**\n * The **`url`** read-only property of the URL of the source.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/EventSource/url)\n */\n readonly url: string;\n /**\n * The **`withCredentials`** read-only property of the the `EventSource` object was instantiated with CORS credentials set.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/EventSource/withCredentials)\n */\n readonly withCredentials: boolean;\n /**\n * The **`close()`** method of the EventSource interface closes the connection, if one is made, and sets the ```js-nolint close() ``` None.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/EventSource/close)\n */\n close(): void;\n readonly CONNECTING: 0;\n readonly OPEN: 1;\n readonly CLOSED: 2;\n addEventListener<K extends keyof EventSourceEventMap>(type: K, listener: (this: EventSource, ev: EventSourceEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n addEventListener(type: string, listener: (this: EventSource, event: MessageEvent) => 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: (this: EventSource, event: MessageEvent) => 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 | URL, eventSourceInitDict?: EventSourceInit): EventSource;\n readonly CONNECTING: 0;\n readonly OPEN: 1;\n readonly CLOSED: 2;\n};\n\n/**\n * The **`EventTarget`** interface is implemented by objects that can receive events and may have listeners for them.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/EventTarget)\n */\ninterface EventTarget {\n /**\n * The **`addEventListener()`** method of the EventTarget interface sets up a function that will be called whenever the specified event is delivered to the target.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/EventTarget/addEventListener)\n */\n addEventListener(type: string, callback: EventListenerOrEventListenerObject | null, options?: AddEventListenerOptions | boolean): void;\n /**\n * The **`dispatchEvent()`** method of the EventTarget sends an Event to the object, (synchronously) invoking the affected event listeners in the appropriate order.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/EventTarget/dispatchEvent)\n */\n dispatchEvent(event: Event): boolean;\n /**\n * The **`removeEventListener()`** method of the EventTarget interface removes an event listener previously registered with EventTarget.addEventListener() from the target.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/EventTarget/removeEventListener)\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\n/** @deprecated */\ninterface External {\n /** @deprecated */\n AddSearchProvider(): void;\n /** @deprecated */\n IsSearchProviderInstalled(): void;\n}\n\n/** @deprecated */\ndeclare var External: {\n prototype: External;\n new(): External;\n};\n\n/**\n * The **`File`** interface provides information about files and allows JavaScript in a web page to access their content.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/File)\n */\ninterface File extends Blob {\n /**\n * The **`lastModified`** read-only property of the File interface provides the last modified date of the file as the number of milliseconds since the Unix epoch (January 1, 1970 at midnight).\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/File/lastModified)\n */\n readonly lastModified: number;\n /**\n * The **`name`** read-only property of the File interface returns the name of the file represented by a File object.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/File/name)\n */\n readonly name: string;\n /**\n * The **`webkitRelativePath`** read-only property of the File interface contains a string which specifies the file\'s path relative to the directory selected by the user in an input element with its `webkitdirectory` attribute set.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/File/webkitRelativePath)\n */\n readonly webkitRelativePath: string;\n}\n\ndeclare var File: {\n prototype: File;\n new(fileBits: BlobPart[], fileName: string, options?: FilePropertyBag): File;\n};\n\n/**\n * The **`FileList`** interface represents an object of this type 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.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/FileList)\n */\ninterface FileList {\n /**\n * The **`length`** read-only property of the FileList interface returns the number of files in the `FileList`.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/FileList/length)\n */\n readonly length: number;\n /**\n * The **`item()`** method of the FileList interface returns a File object representing the file at the specified index in the file list.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/FileList/item)\n */\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/**\n * The **`FileReader`** interface 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.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/FileReader)\n */\ninterface FileReader extends EventTarget {\n /**\n * The **`error`** read-only property of the FileReader interface returns the error that occurred while reading the file.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/FileReader/error)\n */\n readonly error: DOMException | null;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FileReader/abort_event) */\n onabort: ((this: FileReader, ev: ProgressEvent<FileReader>) => any) | null;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FileReader/error_event) */\n onerror: ((this: FileReader, ev: ProgressEvent<FileReader>) => any) | null;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FileReader/load_event) */\n onload: ((this: FileReader, ev: ProgressEvent<FileReader>) => any) | null;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FileReader/loadend_event) */\n onloadend: ((this: FileReader, ev: ProgressEvent<FileReader>) => any) | null;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FileReader/loadstart_event) */\n onloadstart: ((this: FileReader, ev: ProgressEvent<FileReader>) => any) | null;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FileReader/progress_event) */\n onprogress: ((this: FileReader, ev: ProgressEvent<FileReader>) => any) | null;\n /**\n * The **`readyState`** read-only property of the FileReader interface provides the current state of the reading operation.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/FileReader/readyState)\n */\n readonly readyState: typeof FileReader.EMPTY | typeof FileReader.LOADING | typeof FileReader.DONE;\n /**\n * The **`result`** read-only property of the FileReader interface returns the file\'s contents.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/FileReader/result)\n */\n readonly result: string | ArrayBuffer | null;\n /**\n * The **`abort()`** method of the FileReader interface aborts the read operation.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/FileReader/abort)\n */\n abort(): void;\n /**\n * The **`readAsArrayBuffer()`** method of the FileReader interface is used to start reading the contents of a specified Blob or File.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/FileReader/readAsArrayBuffer)\n */\n readAsArrayBuffer(blob: Blob): void;\n /**\n * The **`readAsBinaryString()`** method of the FileReader interface is used to start reading the contents of the specified Blob or File.\n * @deprecated\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/FileReader/readAsBinaryString)\n */\n readAsBinaryString(blob: Blob): void;\n /**\n * The **`readAsDataURL()`** method of the FileReader interface is used to read the contents of the specified file\'s data as a base64 encoded string.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/FileReader/readAsDataURL)\n */\n readAsDataURL(blob: Blob): void;\n /**\n * The **`readAsText()`** method of the FileReader interface is used to read the contents of the specified Blob or File.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/FileReader/readAsText)\n */\n readAsText(blob: Blob, encoding?: string): void;\n readonly EMPTY: 0;\n readonly LOADING: 1;\n readonly DONE: 2;\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 EMPTY: 0;\n readonly LOADING: 1;\n readonly DONE: 2;\n};\n\n/**\n * The File and Directory Entries API interface **`FileSystem`** is used to represent a file system.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/FileSystem)\n */\ninterface FileSystem {\n /**\n * The read-only **`name`** property of the string is unique among all file systems currently exposed by the File and Directory Entries API.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/FileSystem/name)\n */\n readonly name: string;\n /**\n * The read-only **`root`** property of the object representing the root directory of the file system, for use with the File and Directory Entries API.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/FileSystem/root)\n */\n readonly root: FileSystemDirectoryEntry;\n}\n\ndeclare var FileSystem: {\n prototype: FileSystem;\n new(): FileSystem;\n};\n\n/**\n * The **`FileSystemDirectoryEntry`** interface of the File and Directory Entries API represents a directory in a file system.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/FileSystemDirectoryEntry)\n */\ninterface FileSystemDirectoryEntry extends FileSystemEntry {\n /**\n * The FileSystemDirectoryEntry interface\'s method **`createReader()`** returns a the directory.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/FileSystemDirectoryEntry/createReader)\n */\n createReader(): FileSystemDirectoryReader;\n /**\n * The FileSystemDirectoryEntry interface\'s method **`getDirectory()`** returns a somewhere within the directory subtree rooted at the directory on which it\'s called.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/FileSystemDirectoryEntry/getDirectory)\n */\n getDirectory(path?: string | null, options?: FileSystemFlags, successCallback?: FileSystemEntryCallback, errorCallback?: ErrorCallback): void;\n /**\n * The FileSystemDirectoryEntry interface\'s method **`getFile()`** returns a within the directory subtree rooted at the directory on which it\'s called.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/FileSystemDirectoryEntry/getFile)\n */\n getFile(path?: string | null, options?: FileSystemFlags, successCallback?: FileSystemEntryCallback, errorCallback?: ErrorCallback): void;\n}\n\ndeclare var FileSystemDirectoryEntry: {\n prototype: FileSystemDirectoryEntry;\n new(): FileSystemDirectoryEntry;\n};\n\n/**\n * The **`FileSystemDirectoryHandle`** interface of the File System API provides a handle to a file system directory.\n * Available only in secure contexts.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/FileSystemDirectoryHandle)\n */\ninterface FileSystemDirectoryHandle extends FileSystemHandle {\n readonly kind: "directory";\n /**\n * The **`getDirectoryHandle()`** method of the within the directory handle on which the method is called.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/FileSystemDirectoryHandle/getDirectoryHandle)\n */\n getDirectoryHandle(name: string, options?: FileSystemGetDirectoryOptions): Promise<FileSystemDirectoryHandle>;\n /**\n * The **`getFileHandle()`** method of the directory the method is called.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/FileSystemDirectoryHandle/getFileHandle)\n */\n getFileHandle(name: string, options?: FileSystemGetFileOptions): Promise<FileSystemFileHandle>;\n /**\n * The **`removeEntry()`** method of the directory handle contains a file or directory called the name specified.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/FileSystemDirectoryHandle/removeEntry)\n */\n removeEntry(name: string, options?: FileSystemRemoveOptions): Promise<void>;\n /**\n * The **`resolve()`** method of the directory names from the parent handle to the specified child entry, with the name of the child entry as the last array item.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/FileSystemDirectoryHandle/resolve)\n */\n resolve(possibleDescendant: FileSystemHandle): Promise<string[] | null>;\n}\n\ndeclare var FileSystemDirectoryHandle: {\n prototype: FileSystemDirectoryHandle;\n new(): FileSystemDirectoryHandle;\n};\n\n/**\n * The `FileSystemDirectoryReader` interface of the File and Directory Entries API lets you access the FileSystemFileEntry-based objects (generally FileSystemFileEntry or FileSystemDirectoryEntry) representing each entry in a directory.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/FileSystemDirectoryReader)\n */\ninterface FileSystemDirectoryReader {\n /**\n * The FileSystemDirectoryReader interface\'s **`readEntries()`** method retrieves the directory entries within the directory being read and delivers them in an array to a provided callback function.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/FileSystemDirectoryReader/readEntries)\n */\n readEntries(successCallback: FileSystemEntriesCallback, errorCallback?: ErrorCallback): void;\n}\n\ndeclare var FileSystemDirectoryReader: {\n prototype: FileSystemDirectoryReader;\n new(): FileSystemDirectoryReader;\n};\n\n/**\n * The **`FileSystemEntry`** interface of the File and Directory Entries API represents a single entry in a file system.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/FileSystemEntry)\n */\ninterface FileSystemEntry {\n /**\n * The read-only **`filesystem`** property of the FileSystemEntry interface contains a resides.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/FileSystemEntry/filesystem)\n */\n readonly filesystem: FileSystem;\n /**\n * The read-only **`fullPath`** property of the FileSystemEntry interface returns a string specifying the full, absolute path from the file system\'s root to the file represented by the entry.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/FileSystemEntry/fullPath)\n */\n readonly fullPath: string;\n /**\n * The read-only **`isDirectory`** property of the FileSystemEntry interface is `true` if the entry represents a directory (meaning it\'s a FileSystemDirectoryEntry) and `false` if it\'s not.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/FileSystemEntry/isDirectory)\n */\n readonly isDirectory: boolean;\n /**\n * The read-only **`isFile`** property of the FileSystemEntry interface is `true` if the entry represents a file (meaning it\'s a FileSystemFileEntry) and `false` if it\'s not.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/FileSystemEntry/isFile)\n */\n readonly isFile: boolean;\n /**\n * The read-only **`name`** property of the FileSystemEntry interface returns a string specifying the entry\'s name; this is the entry within its parent directory (the last component of the path as indicated by the FileSystemEntry.fullPath property).\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/FileSystemEntry/name)\n */\n readonly name: string;\n /**\n * The FileSystemEntry interface\'s method **`getParent()`** obtains a ```js-nolint getParent(successCallback, errorCallback) getParent(successCallback) ``` - `successCallback` - : A function which is called when the parent directory entry has been retrieved.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/FileSystemEntry/getParent)\n */\n getParent(successCallback?: FileSystemEntryCallback, errorCallback?: ErrorCallback): void;\n}\n\ndeclare var FileSystemEntry: {\n prototype: FileSystemEntry;\n new(): FileSystemEntry;\n};\n\n/**\n * The **`FileSystemFileEntry`** interface of the File and Directory Entries API represents a file in a file system.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/FileSystemFileEntry)\n */\ninterface FileSystemFileEntry extends FileSystemEntry {\n /**\n * The FileSystemFileEntry interface\'s method **`file()`** returns a the directory entry.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/FileSystemFileEntry/file)\n */\n file(successCallback: FileCallback, errorCallback?: ErrorCallback): void;\n}\n\ndeclare var FileSystemFileEntry: {\n prototype: FileSystemFileEntry;\n new(): FileSystemFileEntry;\n};\n\n/**\n * The **`FileSystemFileHandle`** interface of the File System API represents a handle to a file system entry.\n * Available only in secure contexts.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/FileSystemFileHandle)\n */\ninterface FileSystemFileHandle extends FileSystemHandle {\n readonly kind: "file";\n /**\n * The **`createWritable()`** method of the FileSystemFileHandle interface creates a FileSystemWritableFileStream that can be used to write to a file.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/FileSystemFileHandle/createWritable)\n */\n createWritable(options?: FileSystemCreateWritableOptions): Promise<FileSystemWritableFileStream>;\n /**\n * The **`getFile()`** method of the If the file on disk changes or is removed after this method is called, the returned ```js-nolint getFile() ``` None.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/FileSystemFileHandle/getFile)\n */\n getFile(): Promise<File>;\n}\n\ndeclare var FileSystemFileHandle: {\n prototype: FileSystemFileHandle;\n new(): FileSystemFileHandle;\n};\n\n/**\n * The **`FileSystemHandle`** interface of the File System API is an object which represents a file or directory entry.\n * Available only in secure contexts.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/FileSystemHandle)\n */\ninterface FileSystemHandle {\n /**\n * The **`kind`** read-only property of the `\'file\'` if the associated entry is a file or `\'directory\'`.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/FileSystemHandle/kind)\n */\n readonly kind: FileSystemHandleKind;\n /**\n * The **`name`** read-only property of the handle.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/FileSystemHandle/name)\n */\n readonly name: string;\n /**\n * The **`isSameEntry()`** method of the ```js-nolint isSameEntry(fileSystemHandle) ``` - FileSystemHandle - : The `FileSystemHandle` to match against the handle on which the method is invoked.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/FileSystemHandle/isSameEntry)\n */\n isSameEntry(other: FileSystemHandle): Promise<boolean>;\n}\n\ndeclare var FileSystemHandle: {\n prototype: FileSystemHandle;\n new(): FileSystemHandle;\n};\n\n/**\n * The **`FileSystemWritableFileStream`** interface of the File System API is a WritableStream object with additional convenience methods, which operates on a single file on disk.\n * Available only in secure contexts.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/FileSystemWritableFileStream)\n */\ninterface FileSystemWritableFileStream extends WritableStream {\n /**\n * The **`seek()`** method of the FileSystemWritableFileStream interface updates the current file cursor offset to the position (in bytes) specified when calling the method.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/FileSystemWritableFileStream/seek)\n */\n seek(position: number): Promise<void>;\n /**\n * The **`truncate()`** method of the FileSystemWritableFileStream interface resizes the file associated with the stream to the specified size in bytes.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/FileSystemWritableFileStream/truncate)\n */\n truncate(size: number): Promise<void>;\n /**\n * The **`write()`** method of the FileSystemWritableFileStream interface writes content into the file the method is called on, at the current file cursor offset.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/FileSystemWritableFileStream/write)\n */\n write(data: FileSystemWriteChunkType): Promise<void>;\n}\n\ndeclare var FileSystemWritableFileStream: {\n prototype: FileSystemWritableFileStream;\n new(): FileSystemWritableFileStream;\n};\n\n/**\n * The **`FocusEvent`** interface represents focus-related events, including Element/focus_event, Element/blur_event, Element/focusin_event, and Element/focusout_event.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/FocusEvent)\n */\ninterface FocusEvent extends UIEvent {\n /**\n * The **`relatedTarget`** read-only property of the FocusEvent interface is the secondary target, depending on the type of event: <table class=\'no-markdown\'> <thead> <tr> <th scope=\'col\'>Event name</th> <th scope=\'col\'><code>target</code></th> <th scope=\'col\'><code>relatedTarget</code></th> </tr> </thead> <tbody> <tr> <td>Element/blur_event</td> <td>The EventTarget losing focus</td> <td>The EventTarget receiving focus (if any).</td> </tr> <tr> <td>Element/focus_event</td> <td>The EventTarget receiving focus</td> <td>The EventTarget losing focus (if any)</td> </tr> <tr> <td>Element/focusin_event</td> <td>The EventTarget receiving focus</td> <td>The EventTarget losing focus (if any)</td> </tr> <tr> <td>Element/focusout_event</td> <td>The EventTarget losing focus</td> <td>The EventTarget receiving focus (if any)</td> </tr> </tbody> </table> Note that many elements can\'t have focus, which is a common reason for `relatedTarget` to be `null`.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/FocusEvent/relatedTarget)\n */\n readonly relatedTarget: EventTarget | null;\n}\n\ndeclare var FocusEvent: {\n prototype: FocusEvent;\n new(type: string, eventInitDict?: FocusEventInit): FocusEvent;\n};\n\n/**\n * The **`FontFace`** interface of the CSS Font Loading API represents a single usable font face.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/FontFace)\n */\ninterface FontFace {\n /**\n * The **`ascentOverride`** property of the FontFace interface returns and sets the ascent metric for the font, the height above the baseline that CSS uses to lay out line boxes in an inline formatting context.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/FontFace/ascentOverride)\n */\n ascentOverride: string;\n /**\n * The **`descentOverride`** property of the FontFace interface returns and sets the value of the @font-face/descent-override descriptor.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/FontFace/descentOverride)\n */\n descentOverride: string;\n /**\n * The **`display`** property of the FontFace interface determines how a font face is displayed based on whether and when it is downloaded and ready to use.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/FontFace/display)\n */\n display: FontDisplay;\n /**\n * The **`FontFace.family`** property allows the author to get or set the font family of a FontFace object.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/FontFace/family)\n */\n family: string;\n /**\n * The **`featureSettings`** property of the FontFace interface retrieves or sets infrequently used font features that are not available from a font\'s variant properties.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/FontFace/featureSettings)\n */\n featureSettings: string;\n /**\n * The **`lineGapOverride`** property of the FontFace interface returns and sets the value of the @font-face/line-gap-override descriptor.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/FontFace/lineGapOverride)\n */\n lineGapOverride: string;\n /**\n * The **`loaded`** read-only property of the FontFace interface returns a Promise that resolves with the current `FontFace` object when the font specified in the object\'s constructor is done loading or rejects with a `SyntaxError`.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/FontFace/loaded)\n */\n readonly loaded: Promise<FontFace>;\n /**\n * The **`status`** read-only property of the FontFace interface returns an enumerated value indicating the status of the font, one of `\'unloaded\'`, `\'loading\'`, `\'loaded\'`, or `\'error\'`.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/FontFace/status)\n */\n readonly status: FontFaceLoadStatus;\n /**\n * The **`stretch`** property of the FontFace interface retrieves or sets how the font stretches.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/FontFace/stretch)\n */\n stretch: string;\n /**\n * The **`style`** property of the FontFace interface retrieves or sets the font\'s style.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/FontFace/style)\n */\n style: string;\n /**\n * The **`unicodeRange`** property of the FontFace interface retrieves or sets the range of unicode code points encompassing the font.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/FontFace/unicodeRange)\n */\n unicodeRange: string;\n /**\n * The **`weight`** property of the FontFace interface retrieves or sets the weight of the font.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/FontFace/weight)\n */\n weight: string;\n /**\n * The **`load()`** method of the FontFace interface requests and loads a font whose `source` was specified as a URL.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/FontFace/load)\n */\n load(): Promise<FontFace>;\n}\n\ndeclare var FontFace: {\n prototype: FontFace;\n new(family: string, source: string | BufferSource, descriptors?: FontFaceDescriptors): FontFace;\n};\n\ninterface FontFaceSetEventMap {\n "loading": FontFaceSetLoadEvent;\n "loadingdone": FontFaceSetLoadEvent;\n "loadingerror": FontFaceSetLoadEvent;\n}\n\n/**\n * The **`FontFaceSet`** interface of the CSS Font Loading API manages the loading of font-faces and querying of their download status.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/FontFaceSet)\n */\ninterface FontFaceSet extends EventTarget {\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FontFaceSet/loading_event) */\n onloading: ((this: FontFaceSet, ev: FontFaceSetLoadEvent) => any) | null;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FontFaceSet/loadingdone_event) */\n onloadingdone: ((this: FontFaceSet, ev: FontFaceSetLoadEvent) => any) | null;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FontFaceSet/loadingerror_event) */\n onloadingerror: ((this: FontFaceSet, ev: FontFaceSetLoadEvent) => any) | null;\n /**\n * The `ready` read-only property of the FontFaceSet interface returns a Promise that resolves to the given FontFaceSet.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/FontFaceSet/ready)\n */\n readonly ready: Promise<FontFaceSet>;\n /**\n * The **`status`** read-only property of the FontFaceSet interface returns the loading state of the fonts in the set.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/FontFaceSet/status)\n */\n readonly status: FontFaceSetLoadStatus;\n /**\n * The `check()` method of the FontFaceSet returns `true` if you can render some text using the given font specification without attempting to use any fonts in this `FontFaceSet` that are not yet fully loaded.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/FontFaceSet/check)\n */\n check(font: string, text?: string): boolean;\n /**\n * The `load()` method of the FontFaceSet forces all the fonts given in parameters to be loaded.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/FontFaceSet/load)\n */\n load(font: string, text?: string): Promise<FontFace[]>;\n forEach(callbackfn: (value: FontFace, key: FontFace, parent: FontFaceSet) => void, thisArg?: any): void;\n addEventListener<K extends keyof FontFaceSetEventMap>(type: K, listener: (this: FontFaceSet, ev: FontFaceSetEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n removeEventListener<K extends keyof FontFaceSetEventMap>(type: K, listener: (this: FontFaceSet, ev: FontFaceSetEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\ndeclare var FontFaceSet: {\n prototype: FontFaceSet;\n new(): FontFaceSet;\n};\n\n/**\n * The **`FontFaceSetLoadEvent`** interface of the CSS Font Loading API represents events fired at a FontFaceSet after it starts loading font faces.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/FontFaceSetLoadEvent)\n */\ninterface FontFaceSetLoadEvent extends Event {\n /**\n * The **`fontfaces`** read-only property of the An array of FontFace instance.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/FontFaceSetLoadEvent/fontfaces)\n */\n readonly fontfaces: ReadonlyArray<FontFace>;\n}\n\ndeclare var FontFaceSetLoadEvent: {\n prototype: FontFaceSetLoadEvent;\n new(type: string, eventInitDict?: FontFaceSetLoadEventInit): FontFaceSetLoadEvent;\n};\n\ninterface FontFaceSource {\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/fonts) */\n readonly fonts: FontFaceSet;\n}\n\n/**\n * The **`FormData`** interface provides a way to construct a set of key/value pairs representing form fields and their values, which can be sent using the Window/fetch, XMLHttpRequest.send() or navigator.sendBeacon() methods.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/FormData)\n */\ninterface FormData {\n /**\n * The **`append()`** method of the FormData interface appends a new value onto an existing key inside a `FormData` object, or adds the key if it does not already exist.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/FormData/append)\n */\n append(name: string, value: string | Blob): void;\n append(name: string, value: string): void;\n append(name: string, blobValue: Blob, filename?: string): void;\n /**\n * The **`delete()`** method of the FormData interface deletes a key and its value(s) from a `FormData` object.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/FormData/delete)\n */\n delete(name: string): void;\n /**\n * The **`get()`** method of the FormData interface returns the first value associated with a given key from within a `FormData` object.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/FormData/get)\n */\n get(name: string): FormDataEntryValue | null;\n /**\n * The **`getAll()`** method of the FormData interface returns all the values associated with a given key from within a `FormData` object.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/FormData/getAll)\n */\n getAll(name: string): FormDataEntryValue[];\n /**\n * The **`has()`** method of the FormData interface returns whether a `FormData` object contains a certain key.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/FormData/has)\n */\n has(name: string): boolean;\n /**\n * The **`set()`** method of the FormData interface sets a new value for an existing key inside a `FormData` object, or adds the key/value if it does not already exist.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/FormData/set)\n */\n set(name: string, value: string | Blob): void;\n set(name: string, value: string): void;\n set(name: string, blobValue: 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, submitter?: HTMLElement | null): FormData;\n};\n\n/**\n * The **`FormDataEvent`** interface represents a `formdata` event — such an event is fired on an HTMLFormElement object after the entry list representing the form\'s data is constructed.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/FormDataEvent)\n */\ninterface FormDataEvent extends Event {\n /**\n * The `formData` read-only property of the FormDataEvent interface contains the FormData object representing the data contained in the form when the event was fired.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/FormDataEvent/formData)\n */\n readonly formData: FormData;\n}\n\ndeclare var FormDataEvent: {\n prototype: FormDataEvent;\n new(type: string, eventInitDict: FormDataEventInit): FormDataEvent;\n};\n\n/**\n * The **`FragmentDirective`** interface is an object exposed to allow code to check whether or not a browser supports text fragments.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/FragmentDirective)\n */\ninterface FragmentDirective {\n}\n\ndeclare var FragmentDirective: {\n prototype: FragmentDirective;\n new(): FragmentDirective;\n};\n\n/**\n * The **`GPUError`** interface of the WebGPU API is the base interface for errors surfaced by GPUDevice.popErrorScope and the GPUDevice.uncapturederror_event event.\n * Available only in secure contexts.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUError)\n */\ninterface GPUError {\n /**\n * The **`message`** read-only property of the A string.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUError/message)\n */\n readonly message: string;\n}\n\n/**\n * The `GainNode` interface represents a change in volume.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GainNode)\n */\ninterface GainNode extends AudioNode {\n /**\n * The `gain` property of the GainNode interface is an a-rate AudioParam representing the amount of gain to apply.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GainNode/gain)\n */\n readonly gain: AudioParam;\n}\n\ndeclare var GainNode: {\n prototype: GainNode;\n new(context: BaseAudioContext, options?: GainOptions): GainNode;\n};\n\n/**\n * The **`Gamepad`** interface of the Gamepad API defines an individual gamepad or other controller, allowing access to information such as button presses, axis positions, and id.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Gamepad)\n */\ninterface Gamepad {\n /**\n * The **`Gamepad.axes`** property of the Gamepad interface returns an array representing the controls with axes present on the device (e.g., analog thumb sticks).\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Gamepad/axes)\n */\n readonly axes: ReadonlyArray<number>;\n /**\n * The **`buttons`** property of the Gamepad interface returns an array of GamepadButton objects representing the buttons present on the device.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Gamepad/buttons)\n */\n readonly buttons: ReadonlyArray<GamepadButton>;\n /**\n * The **`Gamepad.connected`** property of the still connected to the system.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Gamepad/connected)\n */\n readonly connected: boolean;\n /**\n * The **`Gamepad.id`** property of the Gamepad interface returns a string containing some information about the controller.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Gamepad/id)\n */\n readonly id: string;\n /**\n * The **`Gamepad.index`** property of the Gamepad interface returns an integer that is auto-incremented to be unique for each device currently connected to the system.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Gamepad/index)\n */\n readonly index: number;\n /**\n * The **`Gamepad.mapping`** property of the remapped the controls on the device to a known layout.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Gamepad/mapping)\n */\n readonly mapping: GamepadMappingType;\n /**\n * The **`Gamepad.timestamp`** property of the representing the last time the data for this gamepad was updated.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Gamepad/timestamp)\n */\n readonly timestamp: DOMHighResTimeStamp;\n /**\n * The **`vibrationActuator`** read-only property of the Gamepad interface returns a GamepadHapticActuator object, which represents haptic feedback hardware available on the controller.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Gamepad/vibrationActuator)\n */\n readonly vibrationActuator: GamepadHapticActuator;\n}\n\ndeclare var Gamepad: {\n prototype: Gamepad;\n new(): Gamepad;\n};\n\n/**\n * The **`GamepadButton`** interface defines 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.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GamepadButton)\n */\ninterface GamepadButton {\n /**\n * The **`GamepadButton.pressed`** property of the the button is currently pressed (`true`) or unpressed (`false`).\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GamepadButton/pressed)\n */\n readonly pressed: boolean;\n /**\n * The **`touched`** property of the a button capable of detecting touch is currently touched (`true`) or not touched (`false`).\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GamepadButton/touched)\n */\n readonly touched: boolean;\n /**\n * The **`GamepadButton.value`** property of the current state of analog buttons on many modern gamepads, such as the triggers.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GamepadButton/value)\n */\n readonly value: number;\n}\n\ndeclare var GamepadButton: {\n prototype: GamepadButton;\n new(): GamepadButton;\n};\n\n/**\n * The GamepadEvent interface of the Gamepad API contains references to gamepads connected to the system, which is what the gamepad events Window.gamepadconnected_event and Window.gamepaddisconnected_event are fired in response to.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GamepadEvent)\n */\ninterface GamepadEvent extends Event {\n /**\n * The **`GamepadEvent.gamepad`** property of the **GamepadEvent interface** returns a Gamepad object, providing access to the associated gamepad data for fired A Gamepad object.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GamepadEvent/gamepad)\n */\n readonly gamepad: Gamepad;\n}\n\ndeclare var GamepadEvent: {\n prototype: GamepadEvent;\n new(type: string, eventInitDict: GamepadEventInit): GamepadEvent;\n};\n\n/**\n * The **`GamepadHapticActuator`** interface of the Gamepad API represents hardware in the controller designed to provide haptic feedback to the user (if available), most commonly vibration hardware.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GamepadHapticActuator)\n */\ninterface GamepadHapticActuator {\n /**\n * The **`playEffect()`** method of the GamepadHapticActuator interface causes the hardware to play a specific vibration effect.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GamepadHapticActuator/playEffect)\n */\n playEffect(type: GamepadHapticEffectType, params?: GamepadEffectParameters): Promise<GamepadHapticsResult>;\n /**\n * The **`reset()`** method of the GamepadHapticActuator interface stops the hardware from playing an active vibration effect.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GamepadHapticActuator/reset)\n */\n reset(): Promise<GamepadHapticsResult>;\n}\n\ndeclare var GamepadHapticActuator: {\n prototype: GamepadHapticActuator;\n new(): GamepadHapticActuator;\n};\n\ninterface GenericTransformStream {\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CompressionStream/readable) */\n readonly readable: ReadableStream;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CompressionStream/writable) */\n readonly writable: WritableStream;\n}\n\n/**\n * The **`Geolocation`** interface represents an object able to obtain the position of the device programmatically.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Geolocation)\n */\ninterface Geolocation {\n /**\n * The **`clearWatch()`** method of the Geolocation interface is used to unregister location/error monitoring handlers previously installed using Geolocation.watchPosition().\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Geolocation/clearWatch)\n */\n clearWatch(watchId: number): void;\n /**\n * The **`getCurrentPosition()`** method of the Geolocation interface is used to get the current position of the device.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Geolocation/getCurrentPosition)\n */\n getCurrentPosition(successCallback: PositionCallback, errorCallback?: PositionErrorCallback | null, options?: PositionOptions): void;\n /**\n * The **`watchPosition()`** method of the Geolocation interface is used to register a handler function that will be called automatically each time the position of the device changes.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Geolocation/watchPosition)\n */\n watchPosition(successCallback: PositionCallback, errorCallback?: PositionErrorCallback | null, options?: PositionOptions): number;\n}\n\ndeclare var Geolocation: {\n prototype: Geolocation;\n new(): Geolocation;\n};\n\n/**\n * The **`GeolocationCoordinates`** interface represents the position and altitude of the device on Earth, as well as the accuracy with which these properties are calculated.\n * Available only in secure contexts.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GeolocationCoordinates)\n */\ninterface GeolocationCoordinates {\n /**\n * The **`accuracy`** read-only property of the GeolocationCoordinates interface is a strictly positive `double` representing the accuracy, with a 95% confidence level, of the GeolocationCoordinates.latitude and GeolocationCoordinates.longitude properties expressed in meters.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GeolocationCoordinates/accuracy)\n */\n readonly accuracy: number;\n /**\n * The **`altitude`** read-only property of the GeolocationCoordinates interface is a `double` representing the altitude of the position in meters above the WGS84 ellipsoid (which defines the nominal sea level surface).\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GeolocationCoordinates/altitude)\n */\n readonly altitude: number | null;\n /**\n * The **`altitudeAccuracy`** read-only property of the GeolocationCoordinates interface is a strictly positive `double` representing the accuracy, with a 95% confidence level, of the `altitude` expressed in meters.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GeolocationCoordinates/altitudeAccuracy)\n */\n readonly altitudeAccuracy: number | null;\n /**\n * The **`heading`** read-only property of the GeolocationCoordinates interface is a `double` representing the direction in which the device is traveling.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GeolocationCoordinates/heading)\n */\n readonly heading: number | null;\n /**\n * The **`latitude`** read-only property of the GeolocationCoordinates interface is a `double` representing the latitude of the position in decimal degrees.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GeolocationCoordinates/latitude)\n */\n readonly latitude: number;\n /**\n * The **`longitude`** read-only property of the GeolocationCoordinates interface is a number which represents the longitude of a geographical position, specified in decimal degrees.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GeolocationCoordinates/longitude)\n */\n readonly longitude: number;\n /**\n * The **`speed`** read-only property of the GeolocationCoordinates interface is a `double` representing the velocity of the device in meters per second.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GeolocationCoordinates/speed)\n */\n readonly speed: number | null;\n /**\n * The **`toJSON()`** method of the GeolocationCoordinates interface is a Serialization; it returns a JSON representation of the GeolocationCoordinates object.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GeolocationCoordinates/toJSON)\n */\n toJSON(): any;\n}\n\ndeclare var GeolocationCoordinates: {\n prototype: GeolocationCoordinates;\n new(): GeolocationCoordinates;\n};\n\n/**\n * The **`GeolocationPosition`** interface represents the position of the concerned device at a given time.\n * Available only in secure contexts.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GeolocationPosition)\n */\ninterface GeolocationPosition {\n /**\n * The **`coords`** read-only property of the GeolocationPosition interface returns a GeolocationCoordinates object representing a geographic position.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GeolocationPosition/coords)\n */\n readonly coords: GeolocationCoordinates;\n /**\n * The **`timestamp`** read-only property of the GeolocationPosition interface represents the date and time that the position was acquired by the device.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GeolocationPosition/timestamp)\n */\n readonly timestamp: EpochTimeStamp;\n /**\n * The **`toJSON()`** method of the GeolocationPosition interface is a Serialization; it returns a JSON representation of the GeolocationPosition object.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GeolocationPosition/toJSON)\n */\n toJSON(): any;\n}\n\ndeclare var GeolocationPosition: {\n prototype: GeolocationPosition;\n new(): GeolocationPosition;\n};\n\n/**\n * The **`GeolocationPositionError`** interface represents the reason of an error occurring when using the geolocating device.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GeolocationPositionError)\n */\ninterface GeolocationPositionError {\n /**\n * The **`code`** read-only property of the GeolocationPositionError interface is an `unsigned short` representing the error code.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GeolocationPositionError/code)\n */\n readonly code: number;\n /**\n * The **`message`** read-only property of the GeolocationPositionError interface returns a human-readable string describing the details of the error.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GeolocationPositionError/message)\n */\n readonly message: string;\n readonly PERMISSION_DENIED: 1;\n readonly POSITION_UNAVAILABLE: 2;\n readonly TIMEOUT: 3;\n}\n\ndeclare var GeolocationPositionError: {\n prototype: GeolocationPositionError;\n new(): GeolocationPositionError;\n readonly PERMISSION_DENIED: 1;\n readonly POSITION_UNAVAILABLE: 2;\n readonly TIMEOUT: 3;\n};\n\ninterface GlobalEventHandlersEventMap {\n "abort": UIEvent;\n "animationcancel": AnimationEvent;\n "animationend": AnimationEvent;\n "animationiteration": AnimationEvent;\n "animationstart": AnimationEvent;\n "auxclick": PointerEvent;\n "beforeinput": InputEvent;\n "beforematch": Event;\n "beforetoggle": ToggleEvent;\n "blur": FocusEvent;\n "cancel": Event;\n "canplay": Event;\n "canplaythrough": Event;\n "change": Event;\n "click": PointerEvent;\n "close": Event;\n "compositionend": CompositionEvent;\n "compositionstart": CompositionEvent;\n "compositionupdate": CompositionEvent;\n "contextlost": Event;\n "contextmenu": PointerEvent;\n "contextrestored": Event;\n "copy": ClipboardEvent;\n "cuechange": Event;\n "cut": ClipboardEvent;\n "dblclick": MouseEvent;\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 "focusin": FocusEvent;\n "focusout": FocusEvent;\n "formdata": FormDataEvent;\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 "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 "paste": ClipboardEvent;\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 "pointerrawupdate": Event;\n "pointerup": PointerEvent;\n "progress": ProgressEvent;\n "ratechange": Event;\n "reset": Event;\n "resize": UIEvent;\n "scroll": Event;\n "scrollend": Event;\n "securitypolicyviolation": SecurityPolicyViolationEvent;\n "seeked": Event;\n "seeking": Event;\n "select": Event;\n "selectionchange": Event;\n "selectstart": Event;\n "slotchange": Event;\n "stalled": Event;\n "submit": SubmitEvent;\n "suspend": Event;\n "timeupdate": Event;\n "toggle": ToggleEvent;\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 "webkitanimationend": Event;\n "webkitanimationiteration": Event;\n "webkitanimationstart": Event;\n "webkittransitionend": Event;\n "wheel": WheelEvent;\n}\n\ninterface GlobalEventHandlers {\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLMediaElement/abort_event) */\n onabort: ((this: GlobalEventHandlers, ev: UIEvent) => any) | null;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/animationcancel_event) */\n onanimationcancel: ((this: GlobalEventHandlers, ev: AnimationEvent) => any) | null;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/animationend_event) */\n onanimationend: ((this: GlobalEventHandlers, ev: AnimationEvent) => any) | null;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/animationiteration_event) */\n onanimationiteration: ((this: GlobalEventHandlers, ev: AnimationEvent) => any) | null;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/animationstart_event) */\n onanimationstart: ((this: GlobalEventHandlers, ev: AnimationEvent) => any) | null;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/auxclick_event) */\n onauxclick: ((this: GlobalEventHandlers, ev: PointerEvent) => any) | null;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/beforeinput_event) */\n onbeforeinput: ((this: GlobalEventHandlers, ev: InputEvent) => any) | null;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/beforematch_event) */\n onbeforematch: ((this: GlobalEventHandlers, ev: Event) => any) | null;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLElement/beforetoggle_event) */\n onbeforetoggle: ((this: GlobalEventHandlers, ev: ToggleEvent) => any) | null;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/blur_event) */\n onblur: ((this: GlobalEventHandlers, ev: FocusEvent) => any) | null;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLDialogElement/cancel_event) */\n oncancel: ((this: GlobalEventHandlers, ev: Event) => any) | null;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLMediaElement/canplay_event) */\n oncanplay: ((this: GlobalEventHandlers, ev: Event) => any) | null;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLMediaElement/canplaythrough_event) */\n oncanplaythrough: ((this: GlobalEventHandlers, ev: Event) => any) | null;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLElement/change_event) */\n onchange: ((this: GlobalEventHandlers, ev: Event) => any) | null;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/click_event) */\n onclick: ((this: GlobalEventHandlers, ev: PointerEvent) => any) | null;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLDialogElement/close_event) */\n onclose: ((this: GlobalEventHandlers, ev: Event) => any) | null;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLCanvasElement/contextlost_event) */\n oncontextlost: ((this: GlobalEventHandlers, ev: Event) => any) | null;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/contextmenu_event) */\n oncontextmenu: ((this: GlobalEventHandlers, ev: PointerEvent) => any) | null;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLCanvasElement/contextrestored_event) */\n oncontextrestored: ((this: GlobalEventHandlers, ev: Event) => any) | null;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/copy_event) */\n oncopy: ((this: GlobalEventHandlers, ev: ClipboardEvent) => any) | null;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLTrackElement/cuechange_event) */\n oncuechange: ((this: GlobalEventHandlers, ev: Event) => any) | null;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/cut_event) */\n oncut: ((this: GlobalEventHandlers, ev: ClipboardEvent) => any) | null;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/dblclick_event) */\n ondblclick: ((this: GlobalEventHandlers, ev: MouseEvent) => any) | null;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLElement/drag_event) */\n ondrag: ((this: GlobalEventHandlers, ev: DragEvent) => any) | null;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLElement/dragend_event) */\n ondragend: ((this: GlobalEventHandlers, ev: DragEvent) => any) | null;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLElement/dragenter_event) */\n ondragenter: ((this: GlobalEventHandlers, ev: DragEvent) => any) | null;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLElement/dragleave_event) */\n ondragleave: ((this: GlobalEventHandlers, ev: DragEvent) => any) | null;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLElement/dragover_event) */\n ondragover: ((this: GlobalEventHandlers, ev: DragEvent) => any) | null;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLElement/dragstart_event) */\n ondragstart: ((this: GlobalEventHandlers, ev: DragEvent) => any) | null;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLElement/drop_event) */\n ondrop: ((this: GlobalEventHandlers, ev: DragEvent) => any) | null;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLMediaElement/durationchange_event) */\n ondurationchange: ((this: GlobalEventHandlers, ev: Event) => any) | null;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLMediaElement/emptied_event) */\n onemptied: ((this: GlobalEventHandlers, ev: Event) => any) | null;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLMediaElement/ended_event) */\n onended: ((this: GlobalEventHandlers, ev: Event) => any) | null;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLElement/error_event) */\n onerror: OnErrorEventHandler;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/focus_event) */\n onfocus: ((this: GlobalEventHandlers, ev: FocusEvent) => any) | null;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLFormElement/formdata_event) */\n onformdata: ((this: GlobalEventHandlers, ev: FormDataEvent) => any) | null;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/gotpointercapture_event) */\n ongotpointercapture: ((this: GlobalEventHandlers, ev: PointerEvent) => any) | null;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/input_event) */\n oninput: ((this: GlobalEventHandlers, ev: Event) => any) | null;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLInputElement/invalid_event) */\n oninvalid: ((this: GlobalEventHandlers, ev: Event) => any) | null;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/keydown_event) */\n onkeydown: ((this: GlobalEventHandlers, ev: KeyboardEvent) => any) | null;\n /**\n * @deprecated\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/keypress_event)\n */\n onkeypress: ((this: GlobalEventHandlers, ev: KeyboardEvent) => any) | null;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/keyup_event) */\n onkeyup: ((this: GlobalEventHandlers, ev: KeyboardEvent) => any) | null;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLElement/load_event) */\n onload: ((this: GlobalEventHandlers, ev: Event) => any) | null;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLMediaElement/loadeddata_event) */\n onloadeddata: ((this: GlobalEventHandlers, ev: Event) => any) | null;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLMediaElement/loadedmetadata_event) */\n onloadedmetadata: ((this: GlobalEventHandlers, ev: Event) => any) | null;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLMediaElement/loadstart_event) */\n onloadstart: ((this: GlobalEventHandlers, ev: Event) => any) | null;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/lostpointercapture_event) */\n onlostpointercapture: ((this: GlobalEventHandlers, ev: PointerEvent) => any) | null;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/mousedown_event) */\n onmousedown: ((this: GlobalEventHandlers, ev: MouseEvent) => any) | null;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/mouseenter_event) */\n onmouseenter: ((this: GlobalEventHandlers, ev: MouseEvent) => any) | null;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/mouseleave_event) */\n onmouseleave: ((this: GlobalEventHandlers, ev: MouseEvent) => any) | null;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/mousemove_event) */\n onmousemove: ((this: GlobalEventHandlers, ev: MouseEvent) => any) | null;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/mouseout_event) */\n onmouseout: ((this: GlobalEventHandlers, ev: MouseEvent) => any) | null;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/mouseover_event) */\n onmouseover: ((this: GlobalEventHandlers, ev: MouseEvent) => any) | null;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/mouseup_event) */\n onmouseup: ((this: GlobalEventHandlers, ev: MouseEvent) => any) | null;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/paste_event) */\n onpaste: ((this: GlobalEventHandlers, ev: ClipboardEvent) => any) | null;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLMediaElement/pause_event) */\n onpause: ((this: GlobalEventHandlers, ev: Event) => any) | null;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLMediaElement/play_event) */\n onplay: ((this: GlobalEventHandlers, ev: Event) => any) | null;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLMediaElement/playing_event) */\n onplaying: ((this: GlobalEventHandlers, ev: Event) => any) | null;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/pointercancel_event) */\n onpointercancel: ((this: GlobalEventHandlers, ev: PointerEvent) => any) | null;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/pointerdown_event) */\n onpointerdown: ((this: GlobalEventHandlers, ev: PointerEvent) => any) | null;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/pointerenter_event) */\n onpointerenter: ((this: GlobalEventHandlers, ev: PointerEvent) => any) | null;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/pointerleave_event) */\n onpointerleave: ((this: GlobalEventHandlers, ev: PointerEvent) => any) | null;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/pointermove_event) */\n onpointermove: ((this: GlobalEventHandlers, ev: PointerEvent) => any) | null;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/pointerout_event) */\n onpointerout: ((this: GlobalEventHandlers, ev: PointerEvent) => any) | null;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/pointerover_event) */\n onpointerover: ((this: GlobalEventHandlers, ev: PointerEvent) => any) | null;\n /**\n * Available only in secure contexts.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/pointerrawupdate_event)\n */\n onpointerrawupdate: ((this: GlobalEventHandlers, ev: Event) => any) | null;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/pointerup_event) */\n onpointerup: ((this: GlobalEventHandlers, ev: PointerEvent) => any) | null;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLMediaElement/progress_event) */\n onprogress: ((this: GlobalEventHandlers, ev: ProgressEvent) => any) | null;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLMediaElement/ratechange_event) */\n onratechange: ((this: GlobalEventHandlers, ev: Event) => any) | null;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLFormElement/reset_event) */\n onreset: ((this: GlobalEventHandlers, ev: Event) => any) | null;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLVideoElement/resize_event) */\n onresize: ((this: GlobalEventHandlers, ev: UIEvent) => any) | null;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/scroll_event) */\n onscroll: ((this: GlobalEventHandlers, ev: Event) => any) | null;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/scrollend_event) */\n onscrollend: ((this: GlobalEventHandlers, ev: Event) => any) | null;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/securitypolicyviolation_event) */\n onsecuritypolicyviolation: ((this: GlobalEventHandlers, ev: SecurityPolicyViolationEvent) => any) | null;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLMediaElement/seeked_event) */\n onseeked: ((this: GlobalEventHandlers, ev: Event) => any) | null;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLMediaElement/seeking_event) */\n onseeking: ((this: GlobalEventHandlers, ev: Event) => any) | null;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLInputElement/select_event) */\n onselect: ((this: GlobalEventHandlers, ev: Event) => any) | null;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/selectionchange_event) */\n onselectionchange: ((this: GlobalEventHandlers, ev: Event) => any) | null;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Node/selectstart_event) */\n onselectstart: ((this: GlobalEventHandlers, ev: Event) => any) | null;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLSlotElement/slotchange_event) */\n onslotchange: ((this: GlobalEventHandlers, ev: Event) => any) | null;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLMediaElement/stalled_event) */\n onstalled: ((this: GlobalEventHandlers, ev: Event) => any) | null;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLFormElement/submit_event) */\n onsubmit: ((this: GlobalEventHandlers, ev: SubmitEvent) => any) | null;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLMediaElement/suspend_event) */\n onsuspend: ((this: GlobalEventHandlers, ev: Event) => any) | null;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLMediaElement/timeupdate_event) */\n ontimeupdate: ((this: GlobalEventHandlers, ev: Event) => any) | null;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLElement/toggle_event) */\n ontoggle: ((this: GlobalEventHandlers, ev: ToggleEvent) => any) | null;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/touchcancel_event) */\n ontouchcancel?: ((this: GlobalEventHandlers, ev: TouchEvent) => any) | null | undefined;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/touchend_event) */\n ontouchend?: ((this: GlobalEventHandlers, ev: TouchEvent) => any) | null | undefined;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/touchmove_event) */\n ontouchmove?: ((this: GlobalEventHandlers, ev: TouchEvent) => any) | null | undefined;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/touchstart_event) */\n ontouchstart?: ((this: GlobalEventHandlers, ev: TouchEvent) => any) | null | undefined;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/transitioncancel_event) */\n ontransitioncancel: ((this: GlobalEventHandlers, ev: TransitionEvent) => any) | null;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/transitionend_event) */\n ontransitionend: ((this: GlobalEventHandlers, ev: TransitionEvent) => any) | null;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/transitionrun_event) */\n ontransitionrun: ((this: GlobalEventHandlers, ev: TransitionEvent) => any) | null;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/transitionstart_event) */\n ontransitionstart: ((this: GlobalEventHandlers, ev: TransitionEvent) => any) | null;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLMediaElement/volumechange_event) */\n onvolumechange: ((this: GlobalEventHandlers, ev: Event) => any) | null;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLMediaElement/waiting_event) */\n onwaiting: ((this: GlobalEventHandlers, ev: Event) => any) | null;\n /**\n * @deprecated This is a legacy alias of `onanimationend`.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/animationend_event)\n */\n onwebkitanimationend: ((this: GlobalEventHandlers, ev: Event) => any) | null;\n /**\n * @deprecated This is a legacy alias of `onanimationiteration`.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/animationiteration_event)\n */\n onwebkitanimationiteration: ((this: GlobalEventHandlers, ev: Event) => any) | null;\n /**\n * @deprecated This is a legacy alias of `onanimationstart`.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/animationstart_event)\n */\n onwebkitanimationstart: ((this: GlobalEventHandlers, ev: Event) => any) | null;\n /**\n * @deprecated This is a legacy alias of `ontransitionend`.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/transitionend_event)\n */\n onwebkittransitionend: ((this: GlobalEventHandlers, ev: Event) => any) | null;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/wheel_event) */\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\n/**\n * The **`HTMLAllCollection`** interface represents a collection of _all_ of the document\'s elements, accessible by index (like an array) and by the element\'s `id`.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLAllCollection)\n */\ninterface HTMLAllCollection {\n /**\n * The **`HTMLAllCollection.length`** property returns the number of items in this HTMLAllCollection.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLAllCollection/length)\n */\n readonly length: number;\n /**\n * The **`item()`** method of the HTMLAllCollection interface returns the element located at the specified offset into the collection, or the element with the specified value for its `id` or `name` attribute.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLAllCollection/item)\n */\n item(nameOrIndex?: string): HTMLCollection | Element | null;\n /**\n * The **`namedItem()`** method of the HTMLAllCollection interface returns the first Element in the collection whose `id` or `name` attribute matches the specified name, or `null` if no element matches.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLAllCollection/namedItem)\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/**\n * The **`HTMLAnchorElement`** interface represents 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.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLAnchorElement)\n */\ninterface HTMLAnchorElement extends HTMLElement, HTMLHyperlinkElementUtils {\n /** @deprecated */\n charset: string;\n /** @deprecated */\n coords: string;\n /**\n * The **`HTMLAnchorElement.download`** property is a string indicating that the linked resource is intended to be downloaded rather than displayed in the browser.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLAnchorElement/download)\n */\n download: string;\n /**\n * The **`hreflang`** property of the HTMLAnchorElement interface is a string that is the language of the linked resource.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLAnchorElement/hreflang)\n */\n hreflang: string;\n /** @deprecated */\n name: string;\n /**\n * The **`ping`** property of the HTMLAnchorElement interface is a space-separated list of URLs.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLAnchorElement/ping)\n */\n ping: string;\n /**\n * The **`HTMLAnchorElement.referrerPolicy`** property reflect the HTML `referrerpolicy` attribute of the A string; one of the following: - `no-referrer` - : The Referer header will be omitted entirely.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLAnchorElement/referrerPolicy)\n */\n referrerPolicy: string;\n /**\n * The **`HTMLAnchorElement.rel`** property reflects the `rel` attribute.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLAnchorElement/rel)\n */\n rel: string;\n /**\n * The **`HTMLAnchorElement.relList`** read-only property reflects the `rel` attribute.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLAnchorElement/relList)\n */\n get relList(): DOMTokenList;\n set relList(value: string);\n /** @deprecated */\n rev: string;\n /** @deprecated */\n shape: string;\n /**\n * The **`target`** property of the HTMLAnchorElement interface is a string that indicates where to display the linked resource.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLAnchorElement/target)\n */\n target: string;\n /**\n * The **`text`** property of the HTMLAnchorElement represents the text inside the element.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLAnchorElement/text)\n */\n text: string;\n /**\n * The **`type`** property of the HTMLAnchorElement interface is a string that indicates the MIME type of the linked resource.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLAnchorElement/type)\n */\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\n/**\n * The **`HTMLAreaElement`** interface 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.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLAreaElement)\n */\ninterface HTMLAreaElement extends HTMLElement, HTMLHyperlinkElementUtils {\n /**\n * The **`alt`** property of the HTMLAreaElement interface specifies the text of the hyperlink, defining the textual label for an image map\'s link.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLAreaElement/alt)\n */\n alt: string;\n /**\n * The **`coords`** property of the HTMLAreaElement interface specifies the coordinates of the element\'s shape as a list of floating-point numbers.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLAreaElement/coords)\n */\n coords: string;\n /**\n * The **`download`** property of the HTMLAreaElement interface is a string indicating that the linked resource is intended to be downloaded rather than displayed in the browser.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLAreaElement/download)\n */\n download: string;\n /** @deprecated */\n noHref: boolean;\n /**\n * The **`ping`** property of the HTMLAreaElement interface is a space-separated list of URLs.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLAreaElement/ping)\n */\n ping: string;\n /**\n * The **`HTMLAreaElement.referrerPolicy`** property reflect the HTML `referrerpolicy` attribute of the resource.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLAreaElement/referrerPolicy)\n */\n referrerPolicy: string;\n /**\n * The **`HTMLAreaElement.rel`** property reflects the `rel` attribute.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLAreaElement/rel)\n */\n rel: string;\n /**\n * The **`HTMLAreaElement.relList`** read-only property reflects the `rel` attribute.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLAreaElement/relList)\n */\n get relList(): DOMTokenList;\n set relList(value: string);\n /**\n * The **`shape`** property of the HTMLAreaElement interface specifies the shape of an image map area.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLAreaElement/shape)\n */\n shape: string;\n /**\n * The **`target`** property of the HTMLAreaElement interface is a string that indicates where to display the linked resource.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLAreaElement/target)\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/**\n * The **`HTMLAudioElement`** interface provides access to the properties of audio elements, as well as methods to manipulate them.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLAudioElement)\n */\ninterface HTMLAudioElement extends HTMLMediaElement {\n addEventListener<K extends keyof HTMLMediaElementEventMap>(type: K, listener: (this: HTMLAudioElement, ev: HTMLMediaElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n removeEventListener<K extends keyof HTMLMediaElementEventMap>(type: K, listener: (this: HTMLAudioElement, ev: HTMLMediaElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\ndeclare var HTMLAudioElement: {\n prototype: HTMLAudioElement;\n new(): HTMLAudioElement;\n};\n\n/**\n * The **`HTMLBRElement`** interface represents an HTML line break element (br).\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLBRElement)\n */\ninterface HTMLBRElement extends HTMLElement {\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/**\n * The **`HTMLBaseElement`** interface contains the base URI for a document.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLBaseElement)\n */\ninterface HTMLBaseElement extends HTMLElement {\n /**\n * The **`href`** property of the HTMLBaseElement interface contains a string that is the URL to use as the base for relative URLs.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLBaseElement/href)\n */\n href: string;\n /**\n * The `target` property of the HTMLBaseElement interface is a string that represents the default target tab to show the resulting output for hyperlinks and form elements.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLBaseElement/target)\n */\n target: string;\n addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLBaseElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLBaseElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\ndeclare var HTMLBaseElement: {\n prototype: HTMLBaseElement;\n new(): HTMLBaseElement;\n};\n\ninterface HTMLBodyElementEventMap extends HTMLElementEventMap, WindowEventHandlersEventMap {\n}\n\n/**\n * The **`HTMLBodyElement`** interface provides special properties (beyond those inherited from the regular HTMLElement interface) for manipulating body elements.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLBodyElement)\n */\ninterface HTMLBodyElement extends HTMLElement, WindowEventHandlers {\n /** @deprecated */\n aLink: string;\n /** @deprecated */\n background: string;\n /** @deprecated */\n bgColor: string;\n /** @deprecated */\n link: string;\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/**\n * The **`HTMLButtonElement`** interface provides properties and methods (beyond the regular HTMLElement interface it also has available to it by inheritance) for manipulating button elements.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLButtonElement)\n */\ninterface HTMLButtonElement extends HTMLElement, PopoverInvokerElement {\n /**\n * The **`HTMLButtonElement.disabled`** property indicates whether the control is disabled, meaning that it does not accept any clicks.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLButtonElement/disabled)\n */\n disabled: boolean;\n /**\n * The **`form`** read-only property of the HTMLButtonElement interface returns an HTMLFormElement object that owns this button, or `null` if this button is not owned by any form.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLButtonElement/form)\n */\n readonly form: HTMLFormElement | null;\n /**\n * The **`formAction`** property of the HTMLButtonElement interface is the URL of the program that is executed on the server when the form that owns this control is submitted.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLButtonElement/formAction)\n */\n formAction: string;\n /**\n * The **`formEnctype`** property of the HTMLButtonElement interface is the MIME_type of the content sent to the server when the form is submitted.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLButtonElement/formEnctype)\n */\n formEnctype: string;\n /**\n * The **`formMethod`** property of the HTMLButtonElement interface is the HTTP method used to submit the form if the button element is the control that submits the form.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLButtonElement/formMethod)\n */\n formMethod: string;\n /**\n * The **`formNoValidate`** property of the HTMLButtonElement interface is a boolean value indicating if the form will bypass constraint validation when submitted via the button.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLButtonElement/formNoValidate)\n */\n formNoValidate: boolean;\n /**\n * The **`formTarget`** property of the HTMLButtonElement interface is the tab, window, or iframe where the response of the submitted form is to be displayed.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLButtonElement/formTarget)\n */\n formTarget: string;\n /**\n * The **`HTMLButtonElement.labels`** read-only property returns a A NodeList containing the `<label>` elements associated with the `<button>` element.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLButtonElement/labels)\n */\n readonly labels: NodeListOf<HTMLLabelElement>;\n /**\n * The **`name`** property of the HTMLButtonElement interface indicates the name of the button element or the empty string if the element has no name.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLButtonElement/name)\n */\n name: string;\n /**\n * The **`type`** property of the HTMLButtonElement interface is a string that indicates the behavior type of the button element.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLButtonElement/type)\n */\n type: "submit" | "reset" | "button";\n /**\n * The **`validationMessage`** read-only property of the HTMLButtonElement interface returns a string representing a localized message that describes the validation constraints that the button control does not satisfy (if any).\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLButtonElement/validationMessage)\n */\n readonly validationMessage: string;\n /**\n * The **`validity`** read-only property of the HTMLButtonElement interface returns a ValidityState object that represents the validity states this element is in.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLButtonElement/validity)\n */\n readonly validity: ValidityState;\n /**\n * The **`value`** property of the HTMLButtonElement interface represents the value of the button element as a string, or the empty string if no value is set.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLButtonElement/value)\n */\n value: string;\n /**\n * The **`willValidate`** read-only property of the HTMLButtonElement interface indicates whether the button element is a candidate for constraint validation.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLButtonElement/willValidate)\n */\n readonly willValidate: boolean;\n /**\n * The **`checkValidity()`** method of the HTMLButtonElement interface returns a boolean value which indicates if the element meets any constraint validation rules applied to it.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLButtonElement/checkValidity)\n */\n checkValidity(): boolean;\n /**\n * The **`reportValidity()`** method of the HTMLButtonElement interface performs the same validity checking steps as the HTMLButtonElement.checkValidity method.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLButtonElement/reportValidity)\n */\n reportValidity(): boolean;\n /**\n * The **`setCustomValidity()`** method of the HTMLButtonElement interface sets the custom validity message for the button element.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLButtonElement/setCustomValidity)\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/**\n * The **`HTMLCanvasElement`** interface provides properties and methods for manipulating the layout and presentation of canvas elements.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLCanvasElement)\n */\ninterface HTMLCanvasElement extends HTMLElement {\n /**\n * The **`HTMLCanvasElement.height`** property is a positive `integer` reflecting the `height` HTML attribute of the canvas element interpreted in CSS pixels.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLCanvasElement/height)\n */\n height: number;\n /**\n * The **`HTMLCanvasElement.width`** property is a positive `integer` reflecting the `width` HTML attribute of the canvas element interpreted in CSS pixels.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLCanvasElement/width)\n */\n width: number;\n /**\n * The **`captureStream()`** method of the HTMLCanvasElement interface returns a MediaStream which includes a CanvasCaptureMediaStreamTrack containing a real-time video capture of the canvas\'s contents.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLCanvasElement/captureStream)\n */\n captureStream(frameRequestRate?: number): MediaStream;\n /**\n * The **`HTMLCanvasElement.getContext()`** method returns a drawing context on the canvas, or `null` if the context identifier is not supported, or the canvas has already been set to a different context mode.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLCanvasElement/getContext)\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 /**\n * The **`HTMLCanvasElement.toBlob()`** method creates a Blob object representing the image contained in the canvas.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLCanvasElement/toBlob)\n */\n toBlob(callback: BlobCallback, type?: string, quality?: number): void;\n /**\n * The **`HTMLCanvasElement.toDataURL()`** method returns a data URL containing a representation of the image in the format specified by the `type` parameter.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLCanvasElement/toDataURL)\n */\n toDataURL(type?: string, quality?: number): string;\n /**\n * The **`HTMLCanvasElement.transferControlToOffscreen()`** method transfers control to an OffscreenCanvas object, either on the main thread or on a worker.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLCanvasElement/transferControlToOffscreen)\n */\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/**\n * The **`HTMLCollection`** interface represents a generic collection (array-like object similar to Functions/arguments) of elements (in document order) and offers methods and properties for selecting from the list.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLCollection)\n */\ninterface HTMLCollectionBase {\n /**\n * The **`HTMLCollection.length`** property returns the number of items in a HTMLCollection.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLCollection/length)\n */\n readonly length: number;\n /**\n * The HTMLCollection method `item()` returns the element located at the specified offset into the collection.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLCollection/item)\n */\n item(index: number): Element | null;\n [index: number]: Element;\n}\n\ninterface HTMLCollection extends HTMLCollectionBase {\n /**\n * The **`namedItem()`** method of the HTMLCollection interface returns the first Element in the collection whose `id` or `name` attribute match the specified name, or `null` if no element matches.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLCollection/namedItem)\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/**\n * The **`HTMLDListElement`** interface provides special properties (beyond those of the regular HTMLElement interface it also has available to it by inheritance) for manipulating definition list (dl) elements.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLDListElement)\n */\ninterface HTMLDListElement extends HTMLElement {\n /** @deprecated */\n compact: boolean;\n addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLDListElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLDListElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\ndeclare var HTMLDListElement: {\n prototype: HTMLDListElement;\n new(): HTMLDListElement;\n};\n\n/**\n * The **`HTMLDataElement`** interface provides special properties (beyond the regular HTMLElement interface it also has available to it by inheritance) for manipulating data elements.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLDataElement)\n */\ninterface HTMLDataElement extends HTMLElement {\n /**\n * The **`value`** property of the HTMLDataElement interface returns a string reflecting the `value` HTML attribute.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLDataElement/value)\n */\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/**\n * The **`HTMLDataListElement`** interface provides special properties (beyond the HTMLElement object interface it also has available to it by inheritance) to manipulate datalist elements and their content.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLDataListElement)\n */\ninterface HTMLDataListElement extends HTMLElement {\n /**\n * The **`options`** read-only property of the HTMLDataListElement interface returns an HTMLCollection of HTMLOptionElement elements contained in a datalist.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLDataListElement/options)\n */\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\n/**\n * The **`HTMLDetailsElement`** interface provides special properties (beyond the regular HTMLElement interface it also has available to it by inheritance) for manipulating details elements.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLDetailsElement)\n */\ninterface HTMLDetailsElement extends HTMLElement {\n /**\n * The **`name`** property of the HTMLDetailsElement interface reflects the `name` attribute of details elements.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLDetailsElement/name)\n */\n name: string;\n /**\n * The **`open`** property of the `open` HTML attribute, indicating whether the details\'s contents (not counting the summary) is to be shown to the user.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLDetailsElement/open)\n */\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\n/**\n * The **`HTMLDialogElement`** interface provides methods to manipulate dialog elements.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLDialogElement)\n */\ninterface HTMLDialogElement extends HTMLElement {\n /**\n * The **`open`** property of the `open` HTML attribute, indicating whether the dialog is available for interaction.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLDialogElement/open)\n */\n open: boolean;\n /**\n * The **`returnValue`** property of the HTMLDialogElement interface is a string representing the return value for a dialog element when it\'s closed.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLDialogElement/returnValue)\n */\n returnValue: string;\n /**\n * The **`close()`** method of the HTMLDialogElement interface closes the dialog.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLDialogElement/close)\n */\n close(returnValue?: string): void;\n /**\n * The **`requestClose()`** method of the HTMLDialogElement interface requests to close the dialog.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLDialogElement/requestClose)\n */\n requestClose(returnValue?: string): void;\n /**\n * The **`show()`** method of the HTMLDialogElement interface displays the dialog modelessly, i.e., still allowing interaction with content outside of the dialog.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLDialogElement/show)\n */\n show(): void;\n /**\n * The **`showModal()`** method of the of any other dialogs that might be present.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLDialogElement/showModal)\n */\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\n/** @deprecated */\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\n/** @deprecated */\ndeclare var HTMLDirectoryElement: {\n prototype: HTMLDirectoryElement;\n new(): HTMLDirectoryElement;\n};\n\n/**\n * The **`HTMLDivElement`** interface provides special properties (beyond the regular HTMLElement interface it also has available to it by inheritance) for manipulating div elements.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLDivElement)\n */\ninterface HTMLDivElement extends HTMLElement {\n /** @deprecated */\n align: string;\n addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLDivElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLDivElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\ndeclare var HTMLDivElement: {\n prototype: HTMLDivElement;\n new(): HTMLDivElement;\n};\n\ninterface HTMLDocument extends Document {\n addEventListener<K extends keyof DocumentEventMap>(type: K, listener: (this: HTMLDocument, ev: DocumentEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n removeEventListener<K extends keyof DocumentEventMap>(type: K, listener: (this: HTMLDocument, ev: DocumentEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\ndeclare var HTMLDocument: {\n prototype: HTMLDocument;\n new(): HTMLDocument;\n};\n\ninterface HTMLElementEventMap extends ElementEventMap, GlobalEventHandlersEventMap {\n}\n\n/**\n * The **`HTMLElement`** interface represents any HTML element.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLElement)\n */\ninterface HTMLElement extends Element, ElementCSSInlineStyle, ElementContentEditable, GlobalEventHandlers, HTMLOrSVGElement {\n /**\n * The **`HTMLElement.accessKey`** property sets the keystroke which a user can press to jump to a given element.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLElement/accessKey)\n */\n accessKey: string;\n /**\n * The **`HTMLElement.accessKeyLabel`** read-only property returns a string containing the element\'s browser-assigned access key (if any); otherwise it returns an empty string.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLElement/accessKeyLabel)\n */\n readonly accessKeyLabel: string;\n /**\n * The **`autocapitalize`** property of the HTMLElement interface represents the element\'s capitalization behavior for user input.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLElement/autocapitalize)\n */\n autocapitalize: string;\n /**\n * The **`autocorrect`** property of the HTMLElement interface controls whether or not autocorrection of editable text is enabled for spelling and/or punctuation errors.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLElement/autocorrect)\n */\n autocorrect: boolean;\n /**\n * The **`HTMLElement.dir`** property indicates the text writing directionality of the content of the current element.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLElement/dir)\n */\n dir: string;\n /**\n * The **`draggable`** property of the HTMLElement interface gets and sets a Boolean primitive indicating if the element is draggable.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLElement/draggable)\n */\n draggable: boolean;\n /**\n * The HTMLElement property **`hidden`** reflects the value of the element\'s `hidden` attribute.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLElement/hidden)\n */\n hidden: boolean;\n /**\n * The HTMLElement property **`inert`** reflects the value of the element\'s `inert` attribute.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLElement/inert)\n */\n inert: boolean;\n /**\n * The **`innerText`** property of the HTMLElement interface represents the rendered text content of a node and its descendants.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLElement/innerText)\n */\n innerText: string;\n /**\n * The **`lang`** property of the HTMLElement interface indicates the base language of an element\'s attribute values and text content, in the form of a MISSING: RFC(5646, \'BCP 47 language identifier tag\')].\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLElement/lang)\n */\n lang: string;\n /**\n * The **`offsetHeight`** read-only property of the HTMLElement interface returns the height of an element, including vertical padding and borders, as an integer.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLElement/offsetHeight)\n */\n readonly offsetHeight: number;\n /**\n * The **`offsetLeft`** read-only property of the HTMLElement interface returns the number of pixels that the _upper left corner_ of the current element is offset to the left within the HTMLElement.offsetParent node.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLElement/offsetLeft)\n */\n readonly offsetLeft: number;\n /**\n * The **`HTMLElement.offsetParent`** read-only property returns a reference to the element which is the closest (nearest in the containment hierarchy) positioned ancestor element.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLElement/offsetParent)\n */\n readonly offsetParent: Element | null;\n /**\n * The **`offsetTop`** read-only property of the HTMLElement interface returns the distance from the outer border of the current element (including its margin) to the top padding edge of the HTMLelement.offsetParent, the _closest positioned_ ancestor element.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLElement/offsetTop)\n */\n readonly offsetTop: number;\n /**\n * The **`offsetWidth`** read-only property of the HTMLElement interface returns the layout width of an element as an integer.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLElement/offsetWidth)\n */\n readonly offsetWidth: number;\n /**\n * The **`outerText`** property of the HTMLElement interface returns the same value as HTMLElement.innerText.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLElement/outerText)\n */\n outerText: string;\n /**\n * The **`popover`** property of the HTMLElement interface gets and sets an element\'s popover state via JavaScript (`\'auto\'`, `\'hint\'`, or `\'manual\'`), and can be used for feature detection.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLElement/popover)\n */\n popover: string | null;\n /**\n * The **`spellcheck`** property of the HTMLElement interface represents a boolean value that controls the spell-checking hint.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLElement/spellcheck)\n */\n spellcheck: boolean;\n /**\n * The **`HTMLElement.title`** property represents the title of the element: the text usually displayed in a \'tooltip\' popup when the mouse is over the node.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLElement/title)\n */\n title: string;\n /**\n * The **`translate`** property of the HTMLElement interface indicates whether an element\'s attribute values and the values of its Text node children are to be translated when the page is localized, or whether to leave them unchanged.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLElement/translate)\n */\n translate: boolean;\n /**\n * The **`writingSuggestions`** property of the HTMLElement interface is a string indicating if browser-provided writing suggestions should be enabled under the scope of the element or not.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLElement/writingSuggestions)\n */\n writingSuggestions: string;\n /**\n * The **`HTMLElement.attachInternals()`** method returns an ElementInternals object.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLElement/attachInternals)\n */\n attachInternals(): ElementInternals;\n /**\n * The **`HTMLElement.click()`** method simulates a mouse click on an element.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLElement/click)\n */\n click(): void;\n /**\n * The **`hidePopover()`** method of the HTMLElement interface hides a popover element (i.e., one that has a valid `popover` attribute) by removing it from the top layer and styling it with `display: none`.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLElement/hidePopover)\n */\n hidePopover(): void;\n /**\n * The **`showPopover()`** method of the HTMLElement interface shows a Popover_API element (i.e., one that has a valid `popover` attribute) by adding it to the top layer.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLElement/showPopover)\n */\n showPopover(): void;\n /**\n * The **`togglePopover()`** method of the HTMLElement interface toggles a Popover_API element (i.e., one that has a valid `popover` attribute) between the hidden and showing states.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLElement/togglePopover)\n */\n togglePopover(options?: boolean): boolean;\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/**\n * The **`HTMLEmbedElement`** interface provides special properties (beyond the regular HTMLElement interface it also has available to it by inheritance) for manipulating embed elements.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLEmbedElement)\n */\ninterface HTMLEmbedElement extends HTMLElement {\n /** @deprecated */\n align: string;\n /**\n * The **`height`** property of the HTMLEmbedElement interface returns a string that reflects the `height` attribute of the embed element, indicating the displayed height of the resource in CSS pixels.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLEmbedElement/height)\n */\n height: string;\n /** @deprecated */\n name: string;\n /**\n * The **`src`** property of the HTMLEmbedElement interface returns a string that indicates the URL of the resource being embedded.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLEmbedElement/src)\n */\n src: string;\n /**\n * The **`type`** property of the HTMLEmbedElement interface returns a string that reflects the `type` attribute of the embed element, indicating the MIME type of the resource.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLEmbedElement/type)\n */\n type: string;\n /**\n * The **`width`** property of the HTMLEmbedElement interface returns a string that reflects the `width` attribute of the embed element, indicating the displayed width of the resource in CSS pixels.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLEmbedElement/width)\n */\n width: string;\n /**\n * The **`getSVGDocument()`** method of the HTMLEmbedElement interface returns the Document object of the embedded SVG.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLEmbedElement/getSVGDocument)\n */\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/**\n * The **`HTMLFieldSetElement`** interface 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.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLFieldSetElement)\n */\ninterface HTMLFieldSetElement extends HTMLElement {\n /**\n * The **`disabled`** property of the HTMLFieldSetElement interface is a boolean value that reflects the fieldset element\'s `disabled` attribute, which indicates whether the control is disabled.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLFieldSetElement/disabled)\n */\n disabled: boolean;\n /**\n * The **`elements`** read-only property of the HTMLFieldSetElement interface returns an HTMLCollection object containing all form control elements (button, fieldset, input, object, output, select, and textarea) that are descendants of this field set.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLFieldSetElement/elements)\n */\n readonly elements: HTMLCollection;\n /**\n * The **`form`** read-only property of the HTMLFieldSetElement interface returns an HTMLFormElement object that owns this fieldset, or `null` if this fieldset is not owned by any form.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLFieldSetElement/form)\n */\n readonly form: HTMLFormElement | null;\n /**\n * The **`name`** property of the HTMLFieldSetElement interface indicates the name of the fieldset element.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLFieldSetElement/name)\n */\n name: string;\n /**\n * The **`type`** read-only property of the HTMLFieldSetElement interface returns the string `\'fieldset\'`.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLFieldSetElement/type)\n */\n readonly type: string;\n /**\n * The **`validationMessage`** read-only property of the HTMLFieldSetElement interface returns a string representing a localized message that describes the validation constraints that the fieldset control does not satisfy (if any).\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLFieldSetElement/validationMessage)\n */\n readonly validationMessage: string;\n /**\n * The **`validity`** read-only property of the HTMLFieldSetElement interface returns a ValidityState object that represents the validity states this element is in.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLFieldSetElement/validity)\n */\n readonly validity: ValidityState;\n /**\n * The **`willValidate`** read-only property of the HTMLFieldSetElement interface returns `false`, because fieldset elements are not candidates for constraint validation.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLFieldSetElement/willValidate)\n */\n readonly willValidate: boolean;\n /**\n * The **`checkValidity()`** method of the HTMLFieldSetElement interface checks if the element is valid, but always returns true because fieldset elements are never candidates for constraint validation.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLFieldSetElement/checkValidity)\n */\n checkValidity(): boolean;\n /**\n * The **`reportValidity()`** method of the HTMLFieldSetElement interface performs the same validity checking steps as the HTMLFieldSetElement.checkValidity method.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLFieldSetElement/reportValidity)\n */\n reportValidity(): boolean;\n /**\n * The **`setCustomValidity()`** method of the HTMLFieldSetElement interface sets the custom validity message for the fieldset element.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLFieldSetElement/setCustomValidity)\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/**\n * Implements the document object model (DOM) representation of the font element.\n * @deprecated\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLFontElement)\n */\ninterface HTMLFontElement extends HTMLElement {\n /**\n * The obsolete **`HTMLFontElement.color`** property is a string that reflects the `color` HTML attribute, containing either a named color or a color specified in the hexadecimal #RRGGBB format.\n * @deprecated\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLFontElement/color)\n */\n color: string;\n /**\n * The obsolete **`HTMLFontElement.face`** property is a string that reflects the `face` HTML attribute, containing a comma-separated list of one or more font names.\n * @deprecated\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLFontElement/face)\n */\n face: string;\n /**\n * The obsolete **`HTMLFontElement.size`** property is a string that reflects the `size` HTML attribute.\n * @deprecated\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLFontElement/size)\n */\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\n/** @deprecated */\ndeclare var HTMLFontElement: {\n prototype: HTMLFontElement;\n new(): HTMLFontElement;\n};\n\n/**\n * The **`HTMLFormControlsCollection`** interface represents a _collection_ of HTML _form control elements_, returned by the HTMLFormElement interface\'s HTMLFormElement.elements property.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLFormControlsCollection)\n */\ninterface HTMLFormControlsCollection extends HTMLCollectionBase {\n /**\n * The **`HTMLFormControlsCollection.namedItem()`** method returns the RadioNodeList or the Element in the collection whose `name` or `id` match the specified name, or `null` if no node matches.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLFormControlsCollection/namedItem)\n */\n namedItem(name: string): RadioNodeList | Element | null;\n}\n\ndeclare var HTMLFormControlsCollection: {\n prototype: HTMLFormControlsCollection;\n new(): HTMLFormControlsCollection;\n};\n\n/**\n * The **`HTMLFormElement`** interface represents a form element in the DOM.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLFormElement)\n */\ninterface HTMLFormElement extends HTMLElement {\n /**\n * The **`HTMLFormElement.acceptCharset`** property represents the character encoding for the given form element.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLFormElement/acceptCharset)\n */\n acceptCharset: string;\n /**\n * The **`HTMLFormElement.action`** property represents the action of the form element.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLFormElement/action)\n */\n action: string;\n /**\n * The **`autocomplete`** property of the HTMLFormElement interface indicates whether the value of the form\'s controls can be automatically completed by the browser.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLFormElement/autocomplete)\n */\n autocomplete: AutoFillBase;\n /**\n * The HTMLFormElement property **`elements`** returns an the form element.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLFormElement/elements)\n */\n readonly elements: HTMLFormControlsCollection;\n /**\n * The **`HTMLFormElement.encoding`** property is an alternative name for the HTMLFormElement.enctype element on the DOM HTMLFormElement object.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLFormElement/encoding)\n */\n encoding: string;\n /**\n * The **`HTMLFormElement.enctype`** property is the MIME_type of content that is used to submit the form to the server.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLFormElement/enctype)\n */\n enctype: string;\n /**\n * The **`HTMLFormElement.length`** read-only property returns the number of controls in the form element.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLFormElement/length)\n */\n readonly length: number;\n /**\n * The **`HTMLFormElement.method`** property represents the Unless explicitly specified, the default method is \'get\'.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLFormElement/method)\n */\n method: string;\n /**\n * The **`HTMLFormElement.name`** property represents the name of the current form element as a string.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLFormElement/name)\n */\n name: string;\n /**\n * The **`noValidate`** property of the HTMLFormElement interface is a boolean value indicating if the form will bypass constraint validation when submitted.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLFormElement/noValidate)\n */\n noValidate: boolean;\n /**\n * The **`rel`** property of the HTMLFormElement interface reflects the `rel` attribute.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLFormElement/rel)\n */\n rel: string;\n /**\n * The **`relList`** read-only property of the HTMLFormElement interface reflects the `rel` attribute.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLFormElement/relList)\n */\n get relList(): DOMTokenList;\n set relList(value: string);\n /**\n * The **`target`** property of the HTMLFormElement interface represents the target of the form\'s action (i.e., the frame in which to render its output).\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLFormElement/target)\n */\n target: string;\n /**\n * The **`checkValidity()`** method of the HTMLFormElement interface returns a boolean value which indicates if all associated controls meet any constraint validation rules applied to them.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLFormElement/checkValidity)\n */\n checkValidity(): boolean;\n /**\n * The **`reportValidity()`** method of the HTMLFormElement interface performs the same validity checking steps as the HTMLFormElement.checkValidity method.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLFormElement/reportValidity)\n */\n reportValidity(): boolean;\n /**\n * The HTMLFormElement method **`requestSubmit()`** requests that the form be submitted using a specific submit button.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLFormElement/requestSubmit)\n */\n requestSubmit(submitter?: HTMLElement | null): void;\n /**\n * The **`HTMLFormElement.reset()`** method restores a form element\'s default values.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLFormElement/reset)\n */\n reset(): void;\n /**\n * The **`HTMLFormElement.submit()`** method submits a given This method is similar, but not identical to, activating a form\'s submit - No HTMLFormElement/submit_event event is raised.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLFormElement/submit)\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\n/** @deprecated */\ninterface HTMLFrameElement extends HTMLElement {\n /** @deprecated */\n readonly contentDocument: Document | null;\n /** @deprecated */\n readonly contentWindow: WindowProxy | null;\n /** @deprecated */\n frameBorder: string;\n /** @deprecated */\n longDesc: string;\n /** @deprecated */\n marginHeight: string;\n /** @deprecated */\n marginWidth: string;\n /** @deprecated */\n name: string;\n /** @deprecated */\n noResize: boolean;\n /** @deprecated */\n scrolling: string;\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\n/** @deprecated */\ndeclare var HTMLFrameElement: {\n prototype: HTMLFrameElement;\n new(): HTMLFrameElement;\n};\n\ninterface HTMLFrameSetElementEventMap extends HTMLElementEventMap, WindowEventHandlersEventMap {\n}\n\n/**\n * The **`HTMLFrameSetElement`** interface provides special properties (beyond those of the regular HTMLElement interface they also inherit) for manipulating frameset elements.\n * @deprecated\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLFrameSetElement)\n */\ninterface HTMLFrameSetElement extends HTMLElement, WindowEventHandlers {\n /** @deprecated */\n cols: string;\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\n/** @deprecated */\ndeclare var HTMLFrameSetElement: {\n prototype: HTMLFrameSetElement;\n new(): HTMLFrameSetElement;\n};\n\n/**\n * The **`HTMLHRElement`** interface provides special properties (beyond those of the HTMLElement interface it also has available to it by inheritance) for manipulating hr elements.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLHRElement)\n */\ninterface HTMLHRElement extends HTMLElement {\n /** @deprecated */\n align: string;\n /** @deprecated */\n color: string;\n /** @deprecated */\n noShade: boolean;\n /** @deprecated */\n size: string;\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/**\n * The **`HTMLHeadElement`** interface contains the descriptive information, or metadata, for a document.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLHeadElement)\n */\ninterface HTMLHeadElement extends HTMLElement {\n addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLHeadElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLHeadElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\ndeclare var HTMLHeadElement: {\n prototype: HTMLHeadElement;\n new(): HTMLHeadElement;\n};\n\n/**\n * The **`HTMLHeadingElement`** interface represents the different heading elements, `<h1>` through `<h6>`.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLHeadingElement)\n */\ninterface HTMLHeadingElement extends HTMLElement {\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/**\n * The **`HTMLHtmlElement`** interface serves as the root node for a given HTML document.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLHtmlElement)\n */\ninterface HTMLHtmlElement extends HTMLElement {\n /**\n * Returns version information about the document type definition (DTD) of a document.\n * @deprecated\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLHtmlElement/version)\n */\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 /**\n * Returns the hyperlink\'s URL\'s fragment (includes leading "#" if non-empty).\n *\n * Can be set, to change the URL\'s fragment (ignores leading "#").\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLAnchorElement/hash)\n */\n hash: string;\n /**\n * Returns the hyperlink\'s URL\'s host and port (if different from the default port for the scheme).\n *\n * Can be set, to change the URL\'s host and port.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLAnchorElement/host)\n */\n host: string;\n /**\n * Returns the hyperlink\'s URL\'s host.\n *\n * Can be set, to change the URL\'s host.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLAnchorElement/hostname)\n */\n hostname: string;\n /**\n * Returns the hyperlink\'s URL.\n *\n * Can be set, to change the URL.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLAnchorElement/href)\n */\n href: string;\n toString(): string;\n /**\n * Returns the hyperlink\'s URL\'s origin.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLAnchorElement/origin)\n */\n readonly origin: string;\n /**\n * Returns the hyperlink\'s URL\'s password.\n *\n * Can be set, to change the URL\'s password.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLAnchorElement/password)\n */\n password: string;\n /**\n * Returns the hyperlink\'s URL\'s path.\n *\n * Can be set, to change the URL\'s path.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLAnchorElement/pathname)\n */\n pathname: string;\n /**\n * Returns the hyperlink\'s URL\'s port.\n *\n * Can be set, to change the URL\'s port.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLAnchorElement/port)\n */\n port: string;\n /**\n * Returns the hyperlink\'s URL\'s scheme.\n *\n * Can be set, to change the URL\'s scheme.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLAnchorElement/protocol)\n */\n protocol: string;\n /**\n * Returns the hyperlink\'s URL\'s query (includes leading "?" if non-empty).\n *\n * Can be set, to change the URL\'s query (ignores leading "?").\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLAnchorElement/search)\n */\n search: string;\n /**\n * Returns the hyperlink\'s URL\'s username.\n *\n * Can be set, to change the URL\'s username.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLAnchorElement/username)\n */\n username: string;\n}\n\n/**\n * The **`HTMLIFrameElement`** interface 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.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLIFrameElement)\n */\ninterface HTMLIFrameElement extends HTMLElement {\n /** @deprecated */\n align: string;\n /**\n * The **`allow`** property of the HTMLIFrameElement interface indicates the Permissions Policy specified for this `<iframe>` element.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLIFrameElement/allow)\n */\n allow: string;\n /**\n * The **`allowFullscreen`** property of the HTMLIFrameElement interface is a boolean value that reflects the `allowfullscreen` attribute of the iframe element, indicating whether to allow the iframe\'s contents to use Element.requestFullscreen.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLIFrameElement/allowFullscreen)\n */\n allowFullscreen: boolean;\n /**\n * If the iframe and the iframe\'s parent document are Same Origin, returns a `Document` (that is, the active document in the inline frame\'s nested browsing context), else returns `null`.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLIFrameElement/contentDocument)\n */\n readonly contentDocument: Document | null;\n /**\n * The **`contentWindow`** property returns the Window object of an HTMLIFrameElement.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLIFrameElement/contentWindow)\n */\n readonly contentWindow: WindowProxy | null;\n /** @deprecated */\n frameBorder: string;\n /**\n * The **`height`** property of the HTMLIFrameElement interface returns a string that reflects the `height` attribute of the iframe element, indicating the height of the frame in CSS pixels.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLIFrameElement/height)\n */\n height: string;\n /**\n * The **`loading`** property of the HTMLIFrameElement interface is a string that provides a hint to the user agent indicating whether the iframe should be loaded immediately on page load, or only when it is needed.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLIFrameElement/loading)\n */\n loading: "eager" | "lazy";\n /** @deprecated */\n longDesc: string;\n /** @deprecated */\n marginHeight: string;\n /** @deprecated */\n marginWidth: string;\n /**\n * The **`name`** property of the HTMLIFrameElement interface is a string value that reflects the `name` attribute of the iframe element, indicating the specific name of the `<iframe>` element.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLIFrameElement/name)\n */\n name: string;\n /**\n * The **`HTMLIFrameElement.referrerPolicy`** property reflects the HTML `referrerpolicy` attribute of the resource.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLIFrameElement/referrerPolicy)\n */\n referrerPolicy: ReferrerPolicy;\n /**\n * The **`sandbox`** read-only property of the HTMLIFrameElement interface returns a DOMTokenList indicating extra restrictions on the behavior of the nested content.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLIFrameElement/sandbox)\n */\n get sandbox(): DOMTokenList;\n set sandbox(value: string);\n /** @deprecated */\n scrolling: string;\n /**\n * The **`HTMLIFrameElement.src`** A string that reflects the `src` HTML attribute, containing the address of the content to be embedded.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLIFrameElement/src)\n */\n src: string;\n /**\n * The **`srcdoc`** property of the HTMLIFrameElement specifies the content of the page.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLIFrameElement/srcdoc)\n */\n srcdoc: string;\n /**\n * The **`width`** property of the HTMLIFrameElement interface returns a string that reflects the `width` attribute of the iframe element, indicating the width of the frame in CSS pixels.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLIFrameElement/width)\n */\n width: string;\n /**\n * The **`getSVGDocument()`** method of the HTMLIFrameElement interface returns the Document object of the embedded SVG.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLIFrameElement/getSVGDocument)\n */\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/**\n * The **`HTMLImageElement`** interface represents an HTML img element, providing the properties and methods used to manipulate image elements.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLImageElement)\n */\ninterface HTMLImageElement extends HTMLElement {\n /**\n * The _obsolete_ **`align`** property of the HTMLImageElement interface is a string which indicates how to position the image relative to its container.\n * @deprecated\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLImageElement/align)\n */\n align: string;\n /**\n * The HTMLImageElement property **`alt`** provides fallback (alternate) text to display when the image specified by the img element is not loaded.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLImageElement/alt)\n */\n alt: string;\n /**\n * The obsolete HTMLImageElement property **`border`** specifies the number of pixels thick the border surrounding the image should be.\n * @deprecated\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLImageElement/border)\n */\n border: string;\n /**\n * The read-only HTMLImageElement interface\'s **`complete`** attribute is a Boolean value which indicates whether or not the image has completely loaded.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLImageElement/complete)\n */\n readonly complete: boolean;\n /**\n * The HTMLImageElement interface\'s **`crossOrigin`** attribute is a string which specifies the Cross-Origin Resource Sharing (CORS) setting to use when retrieving the image.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLImageElement/crossOrigin)\n */\n crossOrigin: string | null;\n /**\n * The read-only HTMLImageElement property **`currentSrc`** indicates the URL of the image which is currently presented in the img element it represents.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLImageElement/currentSrc)\n */\n readonly currentSrc: string;\n /**\n * The **`decoding`** property of the HTMLImageElement interface provides a hint to the browser as to how it should decode the image.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLImageElement/decoding)\n */\n decoding: "async" | "sync" | "auto";\n /**\n * The **`fetchPriority`** property of the HTMLImageElement interface represents a hint to the browser indicating how it should prioritize fetching a particular image relative to other images.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLImageElement/fetchPriority)\n */\n fetchPriority: "high" | "low" | "auto";\n /**\n * The **`height`** property of the drawn, in CSS pixel if the image is being drawn or rendered to any visual medium such as the screen or a printer; otherwise, it\'s the natural, pixel density corrected height of the image.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLImageElement/height)\n */\n height: number;\n /**\n * The _obsolete_ **`hspace`** property of the space to leave empty on the left and right sides of the img element when laying out the page.\n * @deprecated\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLImageElement/hspace)\n */\n hspace: number;\n /**\n * The HTMLImageElement property **`isMap`** is a Boolean value which indicates that the image is to be used by a server-side image map.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLImageElement/isMap)\n */\n isMap: boolean;\n /**\n * The HTMLImageElement property **`loading`** is a string whose value provides a hint to the user agent on how to handle the loading of the image which is currently outside the window\'s visual viewport.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLImageElement/loading)\n */\n loading: "eager" | "lazy";\n /**\n * The _deprecated_ property **`longDesc`** on the HTMLImageElement interface specifies the URL of a text or HTML file which contains a long-form description of the image.\n * @deprecated\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLImageElement/longDesc)\n */\n longDesc: string;\n /** @deprecated */\n lowsrc: string;\n /**\n * The HTMLImageElement interface\'s _deprecated_ **`name`** property specifies a name for the element.\n * @deprecated\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLImageElement/name)\n */\n name: string;\n /**\n * The HTMLImageElement interface\'s **`naturalHeight`** property is a read-only value which returns the intrinsic (natural), density-corrected height of the image in This is the height the image is if drawn with nothing constraining its height; if you don\'t specify a height for the image, or place the image inside a container that either limits or expressly specifies the image height, it will be rendered this tall.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLImageElement/naturalHeight)\n */\n readonly naturalHeight: number;\n /**\n * The HTMLImageElement interface\'s read-only **`naturalWidth`** property returns the intrinsic (natural), density-corrected width of the image in CSS pixel.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLImageElement/naturalWidth)\n */\n readonly naturalWidth: number;\n /**\n * The **`HTMLImageElement.referrerPolicy`** property reflects the HTML `referrerpolicy` attribute of the resource.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLImageElement/referrerPolicy)\n */\n referrerPolicy: string;\n /**\n * The HTMLImageElement property **`sizes`** allows you to specify the layout width of the image for each of a list of media conditions.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLImageElement/sizes)\n */\n sizes: string;\n /**\n * The HTMLImageElement property **`src`**, which reflects the HTML `src` attribute, specifies the image to display in the img element.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLImageElement/src)\n */\n src: string;\n /**\n * The HTMLImageElement property **`srcset`** is a string which identifies one or more **image candidate strings**, separated using commas (`,`) each specifying image resources to use under given circumstances.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLImageElement/srcset)\n */\n srcset: string;\n /**\n * The **`useMap`** property on the providing the name of the client-side image map to apply to the image.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLImageElement/useMap)\n */\n useMap: string;\n /**\n * The _obsolete_ **`vspace`** property of the to leave empty on the top and bottom of the img element when laying out the page.\n * @deprecated\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLImageElement/vspace)\n */\n vspace: number;\n /**\n * The **`width`** property of the drawn in CSS pixel if it\'s being drawn or rendered to any visual medium such as a screen or printer.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLImageElement/width)\n */\n width: number;\n /**\n * The read-only HTMLImageElement property **`x`** indicates the x-coordinate of the origin.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLImageElement/x)\n */\n readonly x: number;\n /**\n * The read-only HTMLImageElement property **`y`** indicates the y-coordinate of the origin.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLImageElement/y)\n */\n readonly y: number;\n /**\n * The **`decode()`** method of the HTMLImageElement interface returns a it to the DOM.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLImageElement/decode)\n */\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/**\n * The **`HTMLInputElement`** interface provides special properties and methods for manipulating the options, layout, and presentation of input elements.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLInputElement)\n */\ninterface HTMLInputElement extends HTMLElement, PopoverInvokerElement {\n /**\n * The **`accept`** property of the HTMLInputElement interface reflects the input element\'s `accept` attribute, generally a comma-separated list of unique file type specifiers providing a hint for the expected file type for an `<input>` of type `file`.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLInputElement/accept)\n */\n accept: string;\n /** @deprecated */\n align: string;\n /**\n * The **`alt`** property of the HTMLInputElement interface defines the textual label for the button for users and user agents who cannot use the image.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLInputElement/alt)\n */\n alt: string;\n /**\n * The **`autocomplete`** property of the HTMLInputElement interface indicates whether the value of the control can be automatically completed by the browser.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLInputElement/autocomplete)\n */\n autocomplete: AutoFill;\n /**\n * The **`capture`** property of the HTMLInputElement interface reflects the input element\'s `capture` attribute.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLInputElement/capture)\n */\n capture: string;\n /**\n * The **`checked`** property of the HTMLInputElement interface specifies the current checkedness of the element; that is, whether the form control is checked or not.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLInputElement/checked)\n */\n checked: boolean;\n /**\n * The **`defaultChecked`** property of the HTMLInputElement interface specifies the default checkedness state of the element.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLInputElement/defaultChecked)\n */\n defaultChecked: boolean;\n /**\n * The **`defaultValue`** property of the HTMLInputElement interface indicates the original (or default) value of the input element.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLInputElement/defaultValue)\n */\n defaultValue: string;\n /**\n * The **`dirName`** property of the HTMLInputElement interface is the directionality of the element and enables the submission of that value.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLInputElement/dirName)\n */\n dirName: string;\n /**\n * The **`HTMLInputElement.disabled`** property is a boolean value that reflects the `disabled` HTML attribute, which indicates whether the control is disabled.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLInputElement/disabled)\n */\n disabled: boolean;\n /**\n * The **`HTMLInputElement.files`** property allows you to access the FileList selected with the `<input type=\'file\'>` element.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLInputElement/files)\n */\n files: FileList | null;\n /**\n * The **`form`** read-only property of the HTMLInputElement interface returns an HTMLFormElement object that owns this input, or `null` if this input is not owned by any form.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLInputElement/form)\n */\n readonly form: HTMLFormElement | null;\n /**\n * The **`formAction`** property of the HTMLInputElement interface is the URL of the program that is executed on the server when the form that owns this control is submitted.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLInputElement/formAction)\n */\n formAction: string;\n /**\n * The **`formEnctype`** property of the HTMLInputElement interface is the MIME_type of the content sent to the server when the `<input>` with the `formEnctype` is the method of form submission.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLInputElement/formEnctype)\n */\n formEnctype: string;\n /**\n * The **`formMethod`** property of the HTMLInputElement interface is the HTTP method used to submit the form if the input element is the control that submits the form.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLInputElement/formMethod)\n */\n formMethod: string;\n /**\n * The **`formNoValidate`** property of the HTMLInputElement interface is a boolean value indicating if the form will bypass constraint validation when submitted via the input.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLInputElement/formNoValidate)\n */\n formNoValidate: boolean;\n /**\n * The **`formTarget`** property of the HTMLInputElement interface is the tab, window, or iframe where the response of the submitted form is to be displayed.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLInputElement/formTarget)\n */\n formTarget: string;\n /**\n * The **`height`** property of the HTMLInputElement interface specifies the height of a control.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLInputElement/height)\n */\n height: number;\n /**\n * The **`indeterminate`** property of the HTMLInputElement interface returns a boolean value that indicates whether the checkbox is in the _indeterminate_ state.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLInputElement/indeterminate)\n */\n indeterminate: boolean;\n /**\n * The **`HTMLInputElement.labels`** read-only property returns a type `hidden`, the property returns `null`.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLInputElement/labels)\n */\n readonly labels: NodeListOf<HTMLLabelElement> | null;\n /**\n * The **`list`** read-only property of the HTMLInputElement interface returns the HTMLDataListElement pointed to by the `list` attribute of the element, or `null` if the `list` attribute is not defined or the `list` attribute\'s value is not associated with any `<datalist>` in the same tree.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLInputElement/list)\n */\n readonly list: HTMLDataListElement | null;\n /**\n * The **`max`** property of the HTMLInputElement interface reflects the input element\'s `max` attribute, which generally defines the maximum valid value for a numeric or date-time input.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLInputElement/max)\n */\n max: string;\n /**\n * The **`maxLength`** property of the HTMLInputElement interface indicates the maximum number of characters (in UTF-16 code units) allowed to be entered for the value of the input element, and the maximum number of characters allowed for the value to be valid.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLInputElement/maxLength)\n */\n maxLength: number;\n /**\n * The **`min`** property of the HTMLInputElement interface reflects the input element\'s `min` attribute, which generally defines the minimum valid value for a numeric or date-time input.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLInputElement/min)\n */\n min: string;\n /**\n * The **`minLength`** property of the HTMLInputElement interface indicates the minimum number of characters (in UTF-16 code units) required for the value of the input element to be valid.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLInputElement/minLength)\n */\n minLength: number;\n /**\n * The **`HTMLInputElement.multiple`** property indicates if an input can have more than one value.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLInputElement/multiple)\n */\n multiple: boolean;\n /**\n * The **`name`** property of the HTMLInputElement interface indicates the name of the input element.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLInputElement/name)\n */\n name: string;\n /**\n * The **`pattern`** property of the HTMLInputElement interface represents a regular expression a non-null input value should match.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLInputElement/pattern)\n */\n pattern: string;\n /**\n * The **`placeholder`** property of the HTMLInputElement interface represents a hint to the user of what can be entered in the control.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLInputElement/placeholder)\n */\n placeholder: string;\n /**\n * The **`readOnly`** property of the HTMLInputElement interface indicates that the user cannot modify the value of the input.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLInputElement/readOnly)\n */\n readOnly: boolean;\n /**\n * The **`required`** property of the HTMLInputElement interface specifies that the user must fill in a value before submitting a form.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLInputElement/required)\n */\n required: boolean;\n /**\n * The **`selectionDirection`** property of the HTMLInputElement interface is a string that indicates the direction in which the user is selecting the text.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLInputElement/selectionDirection)\n */\n selectionDirection: "forward" | "backward" | "none" | null;\n /**\n * The **`selectionEnd`** property of the HTMLInputElement interface is a number that represents the end index of the selected text.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLInputElement/selectionEnd)\n */\n selectionEnd: number | null;\n /**\n * The **`selectionStart`** property of the HTMLInputElement interface is a number that represents the beginning index of the selected text.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLInputElement/selectionStart)\n */\n selectionStart: number | null;\n /**\n * The **`size`** property of the HTMLInputElement interface defines the number of visible characters displayed.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLInputElement/size)\n */\n size: number;\n /**\n * The **`src`** property of the HTMLInputElement interface specifies the source of an image to display as the graphical submit button.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLInputElement/src)\n */\n src: string;\n /**\n * The **`step`** property of the HTMLInputElement interface indicates the step by which numeric or date-time input elements can change.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLInputElement/step)\n */\n step: string;\n /**\n * The **`type`** property of the HTMLInputElement interface indicates the kind of data allowed in the input element, for example a number, a date, or an email.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLInputElement/type)\n */\n type: string;\n /** @deprecated */\n useMap: string;\n /**\n * The **`validationMessage`** read-only property of the HTMLInputElement interface returns a string representing a localized message that describes the validation constraints that the input control does not satisfy (if any).\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLInputElement/validationMessage)\n */\n readonly validationMessage: string;\n /**\n * The **`validity`** read-only property of the HTMLInputElement interface returns a ValidityState object that represents the validity states this element is in.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLInputElement/validity)\n */\n readonly validity: ValidityState;\n /**\n * The **`value`** property of the HTMLInputElement interface represents the current value of the input element as a string.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLInputElement/value)\n */\n value: string;\n /**\n * The **`valueAsDate`** property of the HTMLInputElement interface represents the current value of the input element as a Date, or `null` if conversion is not possible.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLInputElement/valueAsDate)\n */\n valueAsDate: Date | null;\n /**\n * The **`valueAsNumber`** property of the HTMLInputElement interface represents the current value of the input element as a number or `NaN` if converting to a numeric value is not possible.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLInputElement/valueAsNumber)\n */\n valueAsNumber: number;\n /**\n * The read-only **`webkitEntries`** property of the HTMLInputElement interface contains an array of file system entries (as objects based on FileSystemEntry) representing files and/or directories selected by the user using an input element of type `file`, but only if that selection was made using drag-and-drop: selecting a file in the dialog will leave the property empty.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLInputElement/webkitEntries)\n */\n readonly webkitEntries: ReadonlyArray<FileSystemEntry>;\n /**\n * The **`HTMLInputElement.webkitdirectory`** is a property that reflects the `webkitdirectory` HTML attribute and indicates that the input element should let the user select directories instead of files.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLInputElement/webkitdirectory)\n */\n webkitdirectory: boolean;\n /**\n * The **`width`** property of the HTMLInputElement interface specifies the width of a control.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLInputElement/width)\n */\n width: number;\n /**\n * The **`willValidate`** read-only property of the HTMLInputElement interface indicates whether the input element is a candidate for constraint validation.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLInputElement/willValidate)\n */\n readonly willValidate: boolean;\n /**\n * The **`checkValidity()`** method of the HTMLInputElement interface returns a boolean value which indicates if the element meets any constraint validation rules applied to it.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLInputElement/checkValidity)\n */\n checkValidity(): boolean;\n /**\n * The **`reportValidity()`** method of the HTMLInputElement interface performs the same validity checking steps as the HTMLInputElement.checkValidity method.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLInputElement/reportValidity)\n */\n reportValidity(): boolean;\n /**\n * The **`HTMLInputElement.select()`** method selects all the text in a textarea element or in an input element that includes a text field.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLInputElement/select)\n */\n select(): void;\n /**\n * The **`HTMLInputElement.setCustomValidity()`** method sets a custom validity message for the element.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLInputElement/setCustomValidity)\n */\n setCustomValidity(error: string): void;\n /**\n * The **`HTMLInputElement.setRangeText()`** method replaces a range of text in an input or textarea element with a new string.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLInputElement/setRangeText)\n */\n setRangeText(replacement: string): void;\n setRangeText(replacement: string, start: number, end: number, selectionMode?: SelectionMode): void;\n /**\n * The **`HTMLInputElement.setSelectionRange()`** method sets the start and end positions of the current text selection in an input or textarea element.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLInputElement/setSelectionRange)\n */\n setSelectionRange(start: number | null, end: number | null, direction?: "forward" | "backward" | "none"): void;\n /**\n * The **`HTMLInputElement.showPicker()`** method displays the browser picker for an `input` element.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLInputElement/showPicker)\n */\n showPicker(): void;\n /**\n * The **`HTMLInputElement.stepDown()`** method decrements the value of a numeric type of input element by the value of the `step` attribute or up to `n` multiples of the step attribute if a number is passed as the parameter.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLInputElement/stepDown)\n */\n stepDown(n?: number): void;\n /**\n * The **`HTMLInputElement.stepUp()`** method increments the value of a numeric type of input element by the value of the `step` attribute, or the default `step` value if the step attribute is not explicitly set.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLInputElement/stepUp)\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/**\n * The **`HTMLLIElement`** interface exposes specific properties and methods (beyond those defined by regular HTMLElement interface it also has available to it by inheritance) for manipulating list elements.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLLIElement)\n */\ninterface HTMLLIElement extends HTMLElement {\n /** @deprecated */\n type: string;\n /**\n * The **`value`** property of the HTMLLIElement interface indicates the ordinal position of the _list element_ inside a given ol.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLLIElement/value)\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/**\n * The **`HTMLLabelElement`** interface gives access to properties specific to label elements.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLLabelElement)\n */\ninterface HTMLLabelElement extends HTMLElement {\n /**\n * The read-only **`HTMLLabelElement.control`** property returns a reference to the control (in the form of an object of type HTMLElement or one of its derivatives) with which the label element is associated, or `null` if the label isn\'t associated with a control.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLLabelElement/control)\n */\n readonly control: HTMLElement | null;\n /**\n * The **`form`** read-only property of the HTMLLabelElement interface returns an HTMLFormElement object that owns the HTMLLabelElement.control associated with this label, or `null` if this label is not associated with a control owned by a form.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLLabelElement/form)\n */\n readonly form: HTMLFormElement | null;\n /**\n * The **`HTMLLabelElement.htmlFor`** property reflects the value of the `for` content property.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLLabelElement/htmlFor)\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/**\n * The **`HTMLLegendElement`** is an interface allowing to access properties of the legend elements.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLLegendElement)\n */\ninterface HTMLLegendElement extends HTMLElement {\n /** @deprecated */\n align: string;\n /**\n * The **`form`** read-only property of the HTMLLegendElement interface returns an HTMLFormElement object that owns the HTMLFieldSetElement associated with this legend, or `null` if this legend is not associated with a fieldset owned by a form.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLLegendElement/form)\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/**\n * The **`HTMLLinkElement`** interface represents reference information for external resources and the relationship of those resources to a document and vice versa (corresponds to `<link>` element; not to be confused with `<a>`, which is represented by `HTMLAnchorElement`).\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLLinkElement)\n */\ninterface HTMLLinkElement extends HTMLElement, LinkStyle {\n /**\n * The **`as`** property of the HTMLLinkElement interface returns a string representing the type of content to be preloaded by a link element.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLLinkElement/as)\n */\n as: string;\n /**\n * The **`blocking`** property of the HTMLLinkElement interface is a string indicating that certain operations should be blocked on the fetching of an external resource.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLLinkElement/blocking)\n */\n get blocking(): DOMTokenList;\n set blocking(value: string);\n /** @deprecated */\n charset: string;\n /**\n * The **`crossOrigin`** property of the HTMLLinkElement interface specifies the Cross-Origin Resource Sharing (CORS) setting to use when retrieving the resource.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLLinkElement/crossOrigin)\n */\n crossOrigin: string | null;\n /**\n * The **`disabled`** property of the HTMLLinkElement interface is a boolean value that represents whether the link is disabled.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLLinkElement/disabled)\n */\n disabled: boolean;\n /**\n * The **`fetchPriority`** property of the HTMLLinkElement interface represents a hint to the browser indicating how it should prioritize fetching a particular resource relative to other resources of the same type.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLLinkElement/fetchPriority)\n */\n fetchPriority: "high" | "low" | "auto";\n /**\n * The **`href`** property of the HTMLLinkElement interface contains a string that is the URL associated with the link.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLLinkElement/href)\n */\n href: string;\n /**\n * The **`hreflang`** property of the HTMLLinkElement interface is used to indicate the language and the geographical targeting of a page.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLLinkElement/hreflang)\n */\n hreflang: string;\n /**\n * The **`imageSizes`** property of the HTMLLinkElement interface indicates the size and conditions for the preloaded images defined by the HTMLLinkElement.imageSrcset property.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLLinkElement/imageSizes)\n */\n imageSizes: string;\n /**\n * The **`imageSrcset`** property of the HTMLLinkElement interface is a string which identifies one or more comma-separated **image candidate strings**.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLLinkElement/imageSrcset)\n */\n imageSrcset: string;\n /**\n * The **`integrity`** property of the HTMLLinkElement interface is a string containing inline metadata that a browser can use to verify that a fetched resource has been delivered without unexpected manipulation.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLLinkElement/integrity)\n */\n integrity: string;\n /**\n * The **`media`** property of the HTMLLinkElement interface is a string representing a list of one or more media formats to which the resource applies.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLLinkElement/media)\n */\n media: string;\n /**\n * The **`referrerPolicy`** property of the HTMLLinkElement interface reflects the HTML `referrerpolicy` attribute of the resource.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLLinkElement/referrerPolicy)\n */\n referrerPolicy: string;\n /**\n * The **`rel`** property of the HTMLLinkElement interface reflects the `rel` attribute.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLLinkElement/rel)\n */\n rel: string;\n /**\n * The **`relList`** read-only property of the HTMLLinkElement interface reflects the `rel` attribute.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLLinkElement/relList)\n */\n get relList(): DOMTokenList;\n set relList(value: string);\n /** @deprecated */\n rev: string;\n /**\n * The **`sizes`** read-only property of the HTMLLinkElement interfaces defines the sizes of the icons for visual media contained in the resource.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLLinkElement/sizes)\n */\n get sizes(): DOMTokenList;\n set sizes(value: string);\n /** @deprecated */\n target: string;\n /**\n * The **`type`** property of the HTMLLinkElement interface is a string that reflects the MIME type of the linked resource.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLLinkElement/type)\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/**\n * The **`HTMLMapElement`** interface 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.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLMapElement)\n */\ninterface HTMLMapElement extends HTMLElement {\n /**\n * The **`areas`** read-only property of the HTMLMapElement interface returns a collection of area elements associated with the map element.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLMapElement/areas)\n */\n readonly areas: HTMLCollection;\n /**\n * The **`name`** property of the HTMLMapElement represents the unique name `<map>` element.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLMapElement/name)\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\n/**\n * The **`HTMLMarqueeElement`** interface provides methods to manipulate marquee elements.\n * @deprecated\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLMarqueeElement)\n */\ninterface HTMLMarqueeElement extends HTMLElement {\n /** @deprecated */\n behavior: string;\n /** @deprecated */\n bgColor: string;\n /** @deprecated */\n direction: string;\n /** @deprecated */\n height: string;\n /** @deprecated */\n hspace: number;\n /** @deprecated */\n loop: number;\n /** @deprecated */\n 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 HTMLElementEventMap>(type: K, listener: (this: HTMLMarqueeElement, 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: HTMLMarqueeElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\n/** @deprecated */\ndeclare var HTMLMarqueeElement: {\n prototype: HTMLMarqueeElement;\n new(): HTMLMarqueeElement;\n};\n\ninterface HTMLMediaElementEventMap extends HTMLElementEventMap {\n "encrypted": MediaEncryptedEvent;\n "waitingforkey": Event;\n}\n\n/**\n * The **`HTMLMediaElement`** interface adds to HTMLElement the properties and methods needed to support basic media-related capabilities that are common to audio and video.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLMediaElement)\n */\ninterface HTMLMediaElement extends HTMLElement {\n /**\n * The **`HTMLMediaElement.autoplay`** property reflects the `autoplay` HTML attribute, indicating whether playback should automatically begin as soon as enough media is available to do so without interruption.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLMediaElement/autoplay)\n */\n autoplay: boolean;\n /**\n * The **`buffered`** read-only property of HTMLMediaElement objects returns a new static normalized `TimeRanges` object that represents the ranges of the media resource, if any, that the user agent has buffered at the moment the `buffered` property is accessed.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLMediaElement/buffered)\n */\n readonly buffered: TimeRanges;\n /**\n * The **`HTMLMediaElement.controls`** property reflects the `controls` HTML attribute, which controls whether user interface controls for playing the media item will be displayed.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLMediaElement/controls)\n */\n controls: boolean;\n /**\n * The **`HTMLMediaElement.crossOrigin`** property is the CORS setting for this media element.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLMediaElement/crossOrigin)\n */\n crossOrigin: string | null;\n /**\n * The **`HTMLMediaElement.currentSrc`** property contains the absolute URL of the chosen media resource.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLMediaElement/currentSrc)\n */\n readonly currentSrc: string;\n /**\n * The HTMLMediaElement interface\'s **`currentTime`** property specifies the current playback time in seconds.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLMediaElement/currentTime)\n */\n currentTime: number;\n /**\n * The **`HTMLMediaElement.defaultMuted`** property reflects the `muted` HTML attribute, which indicates whether the media element\'s audio output should be muted by default.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLMediaElement/defaultMuted)\n */\n defaultMuted: boolean;\n /**\n * The **`HTMLMediaElement.defaultPlaybackRate`** property indicates the default playback rate for the media.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLMediaElement/defaultPlaybackRate)\n */\n defaultPlaybackRate: number;\n /**\n * The **`disableRemotePlayback`** property of the HTMLMediaElement interface determines whether the media element is allowed to have a remote playback UI.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLMediaElement/disableRemotePlayback)\n */\n disableRemotePlayback: boolean;\n /**\n * The _read-only_ HTMLMediaElement property **`duration`** indicates the length of the element\'s media in seconds.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLMediaElement/duration)\n */\n readonly duration: number;\n /**\n * The **`HTMLMediaElement.ended`** property indicates whether the media element has ended playback.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLMediaElement/ended)\n */\n readonly ended: boolean;\n /**\n * The **`HTMLMediaElement.error`** property is the there has not been an error.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLMediaElement/error)\n */\n readonly error: MediaError | null;\n /**\n * The **`HTMLMediaElement.loop`** property reflects the `loop` HTML attribute, which controls whether the media element should start over when it reaches the end.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLMediaElement/loop)\n */\n loop: boolean;\n /**\n * The read-only **`HTMLMediaElement.mediaKeys`** property returns a MediaKeys object, that is a set of keys that the element can use for decryption of media data during playback.\n * Available only in secure contexts.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLMediaElement/mediaKeys)\n */\n readonly mediaKeys: MediaKeys | null;\n /**\n * The **`HTMLMediaElement.muted`** property indicates whether the media element is muted.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLMediaElement/muted)\n */\n muted: boolean;\n /**\n * The **`HTMLMediaElement.networkState`** property indicates the current state of the fetching of media over the network.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLMediaElement/networkState)\n */\n readonly networkState: number;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLMediaElement/encrypted_event) */\n onencrypted: ((this: HTMLMediaElement, ev: MediaEncryptedEvent) => any) | null;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLMediaElement/waitingforkey_event) */\n onwaitingforkey: ((this: HTMLMediaElement, ev: Event) => any) | null;\n /**\n * The read-only **`HTMLMediaElement.paused`** property tells whether the media element is paused.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLMediaElement/paused)\n */\n readonly paused: boolean;\n /**\n * The **`HTMLMediaElement.playbackRate`** property sets the rate at which the media is being played back.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLMediaElement/playbackRate)\n */\n playbackRate: number;\n /**\n * The **`played`** read-only property of the HTMLMediaElement interface indicates the time ranges the resource, an audio or video media file, has played.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLMediaElement/played)\n */\n readonly played: TimeRanges;\n /**\n * The **`preload`** property of the HTMLMediaElement interface is a string that provides a hint to the browser about what the author thinks will lead to the best user experience.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLMediaElement/preload)\n */\n preload: "none" | "metadata" | "auto" | "";\n /**\n * The **`HTMLMediaElement.preservesPitch`** property determines whether or not the browser should adjust the pitch of the audio to compensate for changes to the playback rate made by setting HTMLMediaElement.playbackRate.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLMediaElement/preservesPitch)\n */\n preservesPitch: boolean;\n /**\n * The **`HTMLMediaElement.readyState`** property indicates the readiness state of the media.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLMediaElement/readyState)\n */\n readonly readyState: number;\n /**\n * The **`remote`** read-only property of the HTMLMediaElement interface returns the RemotePlayback object associated with the media element.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLMediaElement/remote)\n */\n readonly remote: RemotePlayback;\n /**\n * The **`seekable`** read-only property of HTMLMediaElement objects returns a new static normalized `TimeRanges` object that represents the ranges of the media resource, if any, that the user agent is able to seek to at the time `seekable` property is accessed.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLMediaElement/seekable)\n */\n readonly seekable: TimeRanges;\n /**\n * The **`seeking`** read-only property of the HTMLMediaElement interface is a Boolean indicating whether the resource, the audio or video, is in the process of seeking to a new position.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLMediaElement/seeking)\n */\n readonly seeking: boolean;\n /**\n * The **`sinkId`** read-only property of the HTMLMediaElement interface returns a string that is the unique ID of the device to be used for playing audio output.\n * Available only in secure contexts.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLMediaElement/sinkId)\n */\n readonly sinkId: string;\n /**\n * The **`HTMLMediaElement.src`** property reflects the value of the HTML media element\'s `src` attribute, which indicates the URL of a media resource to use in the element.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLMediaElement/src)\n */\n src: string;\n /**\n * The **`srcObject`** property of the the source of the media associated with the HTMLMediaElement, or `null` if not assigned.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLMediaElement/srcObject)\n */\n srcObject: MediaProvider | null;\n /**\n * The read-only **`textTracks`** property on HTMLMediaElement objects returns a objects representing the media element\'s text tracks, in the same order as in the list of text tracks.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLMediaElement/textTracks)\n */\n readonly textTracks: TextTrackList;\n /**\n * The **`HTMLMediaElement.volume`** property sets the volume at which the media will be played.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLMediaElement/volume)\n */\n volume: number;\n /**\n * The **`addTextTrack()`** method of the HTMLMediaElement interface creates a new TextTrack object and adds it to the media element.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLMediaElement/addTextTrack)\n */\n addTextTrack(kind: TextTrackKind, label?: string, language?: string): TextTrack;\n /**\n * The HTMLMediaElement method **`canPlayType()`** reports how likely it is that the current browser will be able to play media of a given MIME type.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLMediaElement/canPlayType)\n */\n canPlayType(type: string): CanPlayTypeResult;\n /**\n * The **`HTMLMediaElement.fastSeek()`** method quickly seeks the media to the new time with precision tradeoff.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLMediaElement/fastSeek)\n */\n fastSeek(time: number): void;\n /**\n * The HTMLMediaElement method **`load()`** resets the media element to its initial state and begins the process of selecting a media source and loading the media in preparation for playback to begin at the beginning.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLMediaElement/load)\n */\n load(): void;\n /**\n * The **`HTMLMediaElement.pause()`** method will pause playback of the media, if the media is already in a paused state this method will have no effect.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLMediaElement/pause)\n */\n pause(): void;\n /**\n * The HTMLMediaElement **`play()`** method attempts to begin playback of the media.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLMediaElement/play)\n */\n play(): Promise<void>;\n /**\n * The **`setMediaKeys()`** method of the HTMLMediaElement interface sets the MediaKeys that will be used to decrypt media during playback.\n * Available only in secure contexts.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLMediaElement/setMediaKeys)\n */\n setMediaKeys(mediaKeys: MediaKeys | null): Promise<void>;\n /**\n * The **`setSinkId()`** method of the HTMLMediaElement interface sets the ID of the audio device to use for output and returns a Promise.\n * Available only in secure contexts.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLMediaElement/setSinkId)\n */\n setSinkId(sinkId: string): Promise<void>;\n readonly NETWORK_EMPTY: 0;\n readonly NETWORK_IDLE: 1;\n readonly NETWORK_LOADING: 2;\n readonly NETWORK_NO_SOURCE: 3;\n readonly HAVE_NOTHING: 0;\n readonly HAVE_METADATA: 1;\n readonly HAVE_CURRENT_DATA: 2;\n readonly HAVE_FUTURE_DATA: 3;\n readonly HAVE_ENOUGH_DATA: 4;\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 NETWORK_EMPTY: 0;\n readonly NETWORK_IDLE: 1;\n readonly NETWORK_LOADING: 2;\n readonly NETWORK_NO_SOURCE: 3;\n readonly HAVE_NOTHING: 0;\n readonly HAVE_METADATA: 1;\n readonly HAVE_CURRENT_DATA: 2;\n readonly HAVE_FUTURE_DATA: 3;\n readonly HAVE_ENOUGH_DATA: 4;\n};\n\n/**\n * The **`HTMLMenuElement`** interface provides additional properties (beyond those inherited from the HTMLElement interface) for manipulating a menu element.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLMenuElement)\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/**\n * The **`HTMLMetaElement`** interface contains descriptive metadata about a document provided in HTML as `<meta>` elements.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLMetaElement)\n */\ninterface HTMLMetaElement extends HTMLElement {\n /**\n * The **`HTMLMetaElement.content`** property gets or sets the `content` attribute of pragma directives and named meta data in conjunction with HTMLMetaElement.name or HTMLMetaElement.httpEquiv.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLMetaElement/content)\n */\n content: string;\n /**\n * The **`HTMLMetaElement.httpEquiv`** property gets or sets the pragma directive or an HTTP response header name for the HTMLMetaElement.content attribute.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLMetaElement/httpEquiv)\n */\n httpEquiv: string;\n /**\n * The **`HTMLMetaElement.media`** property enables specifying the media for `theme-color` metadata.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLMetaElement/media)\n */\n media: string;\n /**\n * The **`HTMLMetaElement.name`** property is used in combination with HTMLMetaElement.content to define the name-value pairs for the metadata of a document.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLMetaElement/name)\n */\n name: string;\n /**\n * The **`HTMLMetaElement.scheme`** property defines the scheme of the value in the HTMLMetaElement.content attribute.\n * @deprecated\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLMetaElement/scheme)\n */\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/**\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.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLMeterElement)\n */\ninterface HTMLMeterElement extends HTMLElement {\n /**\n * The **`high`** property of the HTMLMeterElement interface represents the high boundary of the meter element as a floating-point number.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLMeterElement/high)\n */\n high: number;\n /**\n * The **`HTMLMeterElement.labels`** read-only property returns a A NodeList containing the `<label>` elements associated with the `<meter>` element.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLMeterElement/labels)\n */\n readonly labels: NodeListOf<HTMLLabelElement>;\n /**\n * The **`low`** property of the HTMLMeterElement interface represents the low boundary of the meter element as a floating-point number.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLMeterElement/low)\n */\n low: number;\n /**\n * The **`max`** property of the HTMLMeterElement interface represents the maximum value of the meter element as a floating-point number.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLMeterElement/max)\n */\n max: number;\n /**\n * The **`min`** property of the HTMLMeterElement interface represents the minimum value of the meter element as a floating-point number.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLMeterElement/min)\n */\n min: number;\n /**\n * The **`optimum`** property of the HTMLMeterElement interface represents the optimum boundary of the meter element as a floating-point number.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLMeterElement/optimum)\n */\n optimum: number;\n /**\n * The **`value`** property of the HTMLMeterElement interface represents the current value of the meter element as a floating-point number.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLMeterElement/value)\n */\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/**\n * The **`HTMLModElement`** interface 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.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLModElement)\n */\ninterface HTMLModElement extends HTMLElement {\n /**\n * The **`cite`** property of the HTMLModElement interface indicates the URL of the resource explaining the modification.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLModElement/cite)\n */\n cite: string;\n /**\n * The **`dateTime`** property of the HTMLModElement interface is a string containing a machine-readable date with an optional time value.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLModElement/dateTime)\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/**\n * The **`HTMLOListElement`** interface provides special properties (beyond those defined on the regular HTMLElement interface it also has available to it by inheritance) for manipulating ordered list elements.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLOListElement)\n */\ninterface HTMLOListElement extends HTMLElement {\n /** @deprecated */\n compact: boolean;\n /**\n * The **`reversed`** property of the HTMLOListElement interface indicates order of a list.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLOListElement/reversed)\n */\n reversed: boolean;\n /**\n * The **`start`** property of the HTMLOListElement interface indicates starting value of the ordered list, with default value of 1.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLOListElement/start)\n */\n start: number;\n /**\n * The **`type`** property of the HTMLOListElement interface indicates the kind of marker to be used to display ordered list.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLOListElement/type)\n */\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/**\n * The **`HTMLObjectElement`** interface 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.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLObjectElement)\n */\ninterface HTMLObjectElement extends HTMLElement {\n /** @deprecated */\n align: string;\n /** @deprecated */\n archive: string;\n /** @deprecated */\n border: string;\n /** @deprecated */\n code: string;\n /** @deprecated */\n codeBase: string;\n /** @deprecated */\n codeType: string;\n /**\n * The **`contentDocument`** read-only property of the HTMLObjectElement interface Returns a Document representing the active document of the object element\'s nested browsing context, if any; otherwise null.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLObjectElement/contentDocument)\n */\n readonly contentDocument: Document | null;\n /**\n * The **`contentWindow`** read-only property of the HTMLObjectElement interface returns a WindowProxy representing the window proxy of the object element\'s nested browsing context, if any; otherwise null.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLObjectElement/contentWindow)\n */\n readonly contentWindow: WindowProxy | null;\n /**\n * The **`data`** property of the reflects the `data` HTML attribute, specifying the address of a resource\'s data.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLObjectElement/data)\n */\n data: string;\n /** @deprecated */\n declare: boolean;\n /**\n * The **`form`** read-only property of the HTMLObjectElement interface returns an HTMLFormElement object that owns this object, or `null` if this object element is not owned by any form.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLObjectElement/form)\n */\n readonly form: HTMLFormElement | null;\n /**\n * The **`height`** property of the reflects the `height` HTML attribute, specifying the displayed height of the resource in CSS pixels.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLObjectElement/height)\n */\n height: string;\n /** @deprecated */\n hspace: number;\n /**\n * The **`name`** property of the reflects the `name` HTML attribute, specifying the name of the browsing context.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLObjectElement/name)\n */\n name: string;\n /** @deprecated */\n standby: string;\n /**\n * The **`type`** property of the reflects the `type` HTML attribute, specifying the MIME type of the resource.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLObjectElement/type)\n */\n type: string;\n /**\n * The **`useMap`** property of the reflects the `usemap` HTML attribute, specifying a A string.\n * @deprecated\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLObjectElement/useMap)\n */\n useMap: string;\n /**\n * The **`validationMessage`** read-only property of the HTMLObjectElement interface returns a string representing a localized message that describes the validation constraints that the control does not satisfy (if any).\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLObjectElement/validationMessage)\n */\n readonly validationMessage: string;\n /**\n * The **`validity`** read-only property of the HTMLObjectElement interface returns a ValidityState object that represents the validity states this element is in.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLObjectElement/validity)\n */\n readonly validity: ValidityState;\n /** @deprecated */\n vspace: number;\n /**\n * The **`width`** property of the reflects the `width` HTML attribute, specifying the displayed width of the resource in CSS pixels.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLObjectElement/width)\n */\n width: string;\n /**\n * The **`willValidate`** read-only property of the HTMLObjectElement interface returns `false`, because object elements are not candidates for constraint validation.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLObjectElement/willValidate)\n */\n readonly willValidate: boolean;\n /**\n * The **`checkValidity()`** method of the HTMLObjectElement interface checks if the element is valid, but always returns true because object elements are never candidates for constraint validation.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLObjectElement/checkValidity)\n */\n checkValidity(): boolean;\n /**\n * The **`getSVGDocument()`** method of the HTMLObjectElement interface returns the Document object of the embedded SVG.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLObjectElement/getSVGDocument)\n */\n getSVGDocument(): Document | null;\n /**\n * The **`reportValidity()`** method of the HTMLObjectElement interface performs the same validity checking steps as the HTMLObjectElement.checkValidity method.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLObjectElement/reportValidity)\n */\n reportValidity(): boolean;\n /**\n * The **`setCustomValidity()`** method of the element.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLObjectElement/setCustomValidity)\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/**\n * The **`HTMLOptGroupElement`** interface 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.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLOptGroupElement)\n */\ninterface HTMLOptGroupElement extends HTMLElement {\n /**\n * The **`disabled`** property of the HTMLOptGroupElement interface is a boolean value that reflects the optgroup element\'s `disabled` attribute, which indicates whether the control is disabled.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLOptGroupElement/disabled)\n */\n disabled: boolean;\n /**\n * The **`label`** property of the HTMLOptGroupElement interface is a string value that reflects the optgroup element\'s `label` attribute, which provides a textual label to the group of options.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLOptGroupElement/label)\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/**\n * The **`HTMLOptionElement`** interface represents option elements and inherits all properties and methods of the HTMLElement interface.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLOptionElement)\n */\ninterface HTMLOptionElement extends HTMLElement {\n /**\n * The **`defaultSelected`** property of the HTMLOptionElement interface specifies the default selected state of the element.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLOptionElement/defaultSelected)\n */\n defaultSelected: boolean;\n /**\n * The **`disabled`** property of the HTMLOptionElement is a boolean value that indicates whether the option element is unavailable to be selected.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLOptionElement/disabled)\n */\n disabled: boolean;\n /**\n * The **`form`** read-only property of the HTMLOptionElement interface returns an HTMLFormElement object that owns the HTMLSelectElement associated with this option, or `null` if this option is not associated with a select owned by a form.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLOptionElement/form)\n */\n readonly form: HTMLFormElement | null;\n /**\n * The read-only **`index`** property of the HTMLOptionElement interface specifies the 0-based index of the element; that is, the position of the option within the list of options it belongs to, in tree-order, as an integer.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLOptionElement/index)\n */\n readonly index: number;\n /**\n * The **`label`** property of the HTMLOptionElement represents the text displayed for an option in a select element or as part of a list of suggestions in a datalist element.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLOptionElement/label)\n */\n label: string;\n /**\n * The **`selected`** property of the HTMLOptionElement interface specifies the current selectedness of the element; that is, whether the option is selected or not.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLOptionElement/selected)\n */\n selected: boolean;\n /**\n * The **`text`** property of the HTMLOptionElement represents the text inside the option element.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLOptionElement/text)\n */\n text: string;\n /**\n * The **`value`** property of the HTMLOptionElement interface represents the value of the option element as a string, or the empty string if no value is set.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLOptionElement/value)\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/**\n * The **`HTMLOptionsCollection`** interface represents a collection of `<option>` HTML elements (in document order) and offers methods and properties for selecting from the list as well as optionally altering its items.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLOptionsCollection)\n */\ninterface HTMLOptionsCollection extends HTMLCollectionOf<HTMLOptionElement> {\n /**\n * The **`length`** property of the HTMLOptionsCollection interface returns the number of option elements in the collection.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLOptionsCollection/length)\n */\n length: number;\n /**\n * The **`selectedIndex`** property of the HTMLOptionsCollection interface is the numeric index of the first selected option element, if any, or `−1` if no `<option>` is selected.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLOptionsCollection/selectedIndex)\n */\n selectedIndex: number;\n /**\n * The **`add()`** method of the HTMLOptionsCollection interface adds an HTMLOptionElement or HTMLOptGroupElement to this `HTMLOptionsCollection`.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLOptionsCollection/add)\n */\n add(element: HTMLOptionElement | HTMLOptGroupElement, before?: HTMLElement | number | null): void;\n /**\n * The **`remove()`** method of the HTMLOptionsCollection interface removes the option element specified by the index from this collection.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLOptionsCollection/remove)\n */\n remove(index: number): void;\n}\n\ndeclare var HTMLOptionsCollection: {\n prototype: HTMLOptionsCollection;\n new(): HTMLOptionsCollection;\n};\n\ninterface HTMLOrSVGElement {\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLElement/autofocus) */\n autofocus: boolean;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLElement/dataset) */\n readonly dataset: DOMStringMap;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLElement/nonce) */\n nonce?: string;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLElement/tabIndex) */\n tabIndex: number;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLElement/blur) */\n blur(): void;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLElement/focus) */\n focus(options?: FocusOptions): void;\n}\n\n/**\n * The **`HTMLOutputElement`** interface provides properties and methods (beyond those inherited from HTMLElement) for manipulating the layout and presentation of output elements.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLOutputElement)\n */\ninterface HTMLOutputElement extends HTMLElement {\n /**\n * The **`defaultValue`** property of the HTMLOutputElement interface represents the default text content of this output element.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLOutputElement/defaultValue)\n */\n defaultValue: string;\n /**\n * The **`form`** read-only property of the HTMLOutputElement interface returns an HTMLFormElement object that owns this output, or `null` if this output is not owned by any form.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLOutputElement/form)\n */\n readonly form: HTMLFormElement | null;\n /**\n * The **`htmlFor`** property of the HTMLOutputElement interface is a string containing a space-separated list of other elements\' `id`s, indicating that those elements contributed input values to (or otherwise affected) the calculation.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLOutputElement/htmlFor)\n */\n get htmlFor(): DOMTokenList;\n set htmlFor(value: string);\n /**\n * The **`HTMLOutputElement.labels`** read-only property returns a A NodeList containing the `<label>` elements associated with the `<output>` element.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLOutputElement/labels)\n */\n readonly labels: NodeListOf<HTMLLabelElement>;\n /**\n * The **`name`** property of the HTMLOutputElement interface indicates the name of the output element.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLOutputElement/name)\n */\n name: string;\n /**\n * The **`type`** read-only property of the HTMLOutputElement interface returns the string `\'output\'`.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLOutputElement/type)\n */\n readonly type: string;\n /**\n * The **`validationMessage`** read-only property of the HTMLOutputElement interface returns a string representing a localized message that describes the validation constraints that the output control does not satisfy (if any).\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLOutputElement/validationMessage)\n */\n readonly validationMessage: string;\n /**\n * The **`validity`** read-only property of the HTMLOutputElement interface returns a ValidityState object that represents the validity states this element is in.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLOutputElement/validity)\n */\n readonly validity: ValidityState;\n /**\n * The **`value`** property of the HTMLOutputElement interface represents the value of the output element as a string, or the empty string if no value is set.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLOutputElement/value)\n */\n value: string;\n /**\n * The **`willValidate`** read-only property of the HTMLOutputElement interface returns `false`, because output elements are not candidates for constraint validation.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLOutputElement/willValidate)\n */\n readonly willValidate: boolean;\n /**\n * The **`checkValidity()`** method of the HTMLOutputElement interface checks if the element is valid, but always returns true because output elements are never candidates for constraint validation.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLOutputElement/checkValidity)\n */\n checkValidity(): boolean;\n /**\n * The **`reportValidity()`** method of the HTMLOutputElement interface performs the same validity checking steps as the HTMLOutputElement.checkValidity method.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLOutputElement/reportValidity)\n */\n reportValidity(): boolean;\n /**\n * The **`setCustomValidity()`** method of the HTMLOutputElement interface sets the custom validity message for the output element.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLOutputElement/setCustomValidity)\n */\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/**\n * The **`HTMLParagraphElement`** interface provides special properties (beyond those of the regular HTMLElement object interface it inherits) for manipulating p elements.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLParagraphElement)\n */\ninterface HTMLParagraphElement extends HTMLElement {\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/**\n * The **`HTMLParamElement`** interface 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.\n * @deprecated\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLParamElement)\n */\ninterface HTMLParamElement extends HTMLElement {\n /** @deprecated */\n name: string;\n /** @deprecated */\n type: string;\n /** @deprecated */\n value: string;\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\n/** @deprecated */\ndeclare var HTMLParamElement: {\n prototype: HTMLParamElement;\n new(): HTMLParamElement;\n};\n\n/**\n * The **`HTMLPictureElement`** interface represents a picture HTML element.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLPictureElement)\n */\ninterface HTMLPictureElement extends HTMLElement {\n addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLPictureElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLPictureElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\ndeclare var HTMLPictureElement: {\n prototype: HTMLPictureElement;\n new(): HTMLPictureElement;\n};\n\n/**\n * The **`HTMLPreElement`** interface 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).\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLPreElement)\n */\ninterface HTMLPreElement extends HTMLElement {\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/**\n * The **`HTMLProgressElement`** interface 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.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLProgressElement)\n */\ninterface HTMLProgressElement extends HTMLElement {\n /**\n * The **`HTMLProgressElement.labels`** read-only property returns a NodeList of the label elements associated with the A NodeList containing the `<label>` elements associated with the `<progress>` element.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLProgressElement/labels)\n */\n readonly labels: NodeListOf<HTMLLabelElement>;\n /**\n * The **`max`** property of the HTMLProgressElement interface represents the upper bound of the progress element\'s range.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLProgressElement/max)\n */\n max: number;\n /**\n * The **`position`** read-only property of the HTMLProgressElement interface returns current progress of the progress element.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLProgressElement/position)\n */\n readonly position: number;\n /**\n * The **`value`** property of the HTMLProgressElement interface represents the current progress of the progress element.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLProgressElement/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/**\n * The **`HTMLQuoteElement`** interface 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.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLQuoteElement)\n */\ninterface HTMLQuoteElement extends HTMLElement {\n /**\n * The **`cite`** property of the HTMLQuoteElement interface indicates the URL for the source of the quotation.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLQuoteElement/cite)\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/**\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).\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLScriptElement)\n */\ninterface HTMLScriptElement extends HTMLElement {\n /**\n * The **`async`** property of the HTMLScriptElement interface is a boolean value that controls how the script should be executed.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLScriptElement/async)\n */\n async: boolean;\n /**\n * The **`blocking`** property of the HTMLScriptElement interface is a string indicating that certain operations should be blocked on the fetching of the script.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLScriptElement/blocking)\n */\n get blocking(): DOMTokenList;\n set blocking(value: string);\n /** @deprecated */\n charset: string;\n /**\n * The **`crossOrigin`** property of the HTMLScriptElement interface reflects the CORS settings for the script element.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLScriptElement/crossOrigin)\n */\n crossOrigin: string | null;\n /**\n * The **`defer`** property of the HTMLScriptElement interface is a boolean value that controls how the script should be executed.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLScriptElement/defer)\n */\n defer: boolean;\n /** @deprecated */\n event: string;\n /**\n * The **`fetchPriority`** property of the HTMLScriptElement interface represents a hint to the browser indicating how it should prioritize fetching an external script relative to other external scripts.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLScriptElement/fetchPriority)\n */\n fetchPriority: "high" | "low" | "auto";\n /** @deprecated */\n htmlFor: string;\n /**\n * The **`integrity`** property of the HTMLScriptElement interface is a string that contains inline metadata that a browser can use to verify that a fetched resource has been delivered without unexpected manipulation.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLScriptElement/integrity)\n */\n integrity: string;\n /**\n * The **`noModule`** property of the HTMLScriptElement interface is a boolean value that indicates whether the script should be executed in browsers that support ES modules.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLScriptElement/noModule)\n */\n noModule: boolean;\n /**\n * The **`referrerPolicy`** property of the `referrerpolicy` of the script element, which defines how the referrer is set when fetching the script and any scripts it imports.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLScriptElement/referrerPolicy)\n */\n referrerPolicy: string;\n /**\n * The **`src`** property of the HTMLScriptElement interface is a string representing the URL of an external script; this can be used as an alternative to embedding a script directly within a document.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLScriptElement/src)\n */\n src: string;\n /**\n * The **`text`** property of the HTMLScriptElement interface is a string that reflects the text content inside the script element.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLScriptElement/text)\n */\n text: string;\n /**\n * The **`type`** property of the HTMLScriptElement interface is a string that reflects the type of the script.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLScriptElement/type)\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 * The **`supports()`** static method of the HTMLScriptElement interface provides a simple and consistent method to feature-detect what types of scripts are supported by the user agent.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLScriptElement/supports_static)\n */\n supports(type: string): boolean;\n};\n\n/**\n * The **`HTMLSelectElement`** interface represents a select HTML Element.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLSelectElement)\n */\ninterface HTMLSelectElement extends HTMLElement {\n /**\n * The **`autocomplete`** property of the HTMLSelectElement interface indicates whether the value of the control can be automatically completed by the browser.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLSelectElement/autocomplete)\n */\n autocomplete: AutoFill;\n /**\n * The **`HTMLSelectElement.disabled`** property is a boolean value that reflects the `disabled` HTML attribute, which indicates whether the control is disabled.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLSelectElement/disabled)\n */\n disabled: boolean;\n /**\n * The **`form`** read-only property of the HTMLSelectElement interface returns an HTMLFormElement object that owns this select, or `null` if this select is not owned by any form.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLSelectElement/form)\n */\n readonly form: HTMLFormElement | null;\n /**\n * The **`HTMLSelectElement.labels`** read-only property returns a A NodeList containing the `<label>` elements associated with the `<select>` element.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLSelectElement/labels)\n */\n readonly labels: NodeListOf<HTMLLabelElement>;\n /**\n * The **`length`** property of the HTMLSelectElement interface specifies the number of option elements in the select element.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLSelectElement/length)\n */\n length: number;\n /**\n * The **`multiple`** property of the HTMLSelectElement interface specifies that the user may select more than one option from the list of options.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLSelectElement/multiple)\n */\n multiple: boolean;\n /**\n * The **`name`** property of the HTMLSelectElement interface indicates the name of the select element.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLSelectElement/name)\n */\n name: string;\n /**\n * The **`HTMLSelectElement.options`** read-only property returns a HTMLOptionsCollection of the option elements contained by the select element.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLSelectElement/options)\n */\n readonly options: HTMLOptionsCollection;\n /**\n * The **`required`** property of the HTMLSelectElement interface specifies that the user must select an option with a non-empty string value before submitting a form.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLSelectElement/required)\n */\n required: boolean;\n /**\n * The **`selectedIndex`** property of the HTMLSelectElement interface is the numeric index of the first selected option element in a select element, if any, or `−1` if no `<option>` is selected.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLSelectElement/selectedIndex)\n */\n selectedIndex: number;\n /**\n * The **read-only** HTMLSelectElement property **`selectedOptions`** contains a list of the element that are currently selected.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLSelectElement/selectedOptions)\n */\n readonly selectedOptions: HTMLCollectionOf<HTMLOptionElement>;\n /**\n * The **`size`** property of the HTMLSelectElement interface specifies the number of options, or rows, that should be visible at one time.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLSelectElement/size)\n */\n size: number;\n /**\n * The **`HTMLSelectElement.type`** read-only property returns the form control\'s `type`.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLSelectElement/type)\n */\n readonly type: "select-one" | "select-multiple";\n /**\n * The **`validationMessage`** read-only property of the HTMLSelectElement interface returns a string representing a localized message that describes the validation constraints that the select control does not satisfy (if any).\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLSelectElement/validationMessage)\n */\n readonly validationMessage: string;\n /**\n * The **`validity`** read-only property of the HTMLSelectElement interface returns a ValidityState object that represents the validity states this element is in.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLSelectElement/validity)\n */\n readonly validity: ValidityState;\n /**\n * The **`HTMLSelectElement.value`** property contains the value of the first selected option element associated with this select element.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLSelectElement/value)\n */\n value: string;\n /**\n * The **`willValidate`** read-only property of the HTMLSelectElement interface indicates whether the select element is a candidate for constraint validation.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLSelectElement/willValidate)\n */\n readonly willValidate: boolean;\n /**\n * The **`HTMLSelectElement.add()`** method adds an element to the collection of `option` elements for this `select` element.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLSelectElement/add)\n */\n add(element: HTMLOptionElement | HTMLOptGroupElement, before?: HTMLElement | number | null): void;\n /**\n * The **`checkValidity()`** method of the HTMLSelectElement interface returns a boolean value which indicates if the element meets any constraint validation rules applied to it.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLSelectElement/checkValidity)\n */\n checkValidity(): boolean;\n /**\n * The **`HTMLSelectElement.item()`** method returns the position in the options list corresponds to the index given in the parameter, or `null` if there are none.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLSelectElement/item)\n */\n item(index: number): HTMLOptionElement | null;\n /**\n * The **`HTMLSelectElement.namedItem()`** method returns the whose `name` or `id` match the specified name, or `null` if no option matches.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLSelectElement/namedItem)\n */\n namedItem(name: string): HTMLOptionElement | null;\n /**\n * The **`HTMLSelectElement.remove()`** method removes the element at the specified index from the options collection for this select element.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLSelectElement/remove)\n */\n remove(): void;\n remove(index: number): void;\n /**\n * The **`reportValidity()`** method of the HTMLSelectElement interface performs the same validity checking steps as the HTMLSelectElement.checkValidity method.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLSelectElement/reportValidity)\n */\n reportValidity(): boolean;\n /**\n * The **`HTMLSelectElement.setCustomValidity()`** method sets the custom validity message for the selection element to the specified message.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLSelectElement/setCustomValidity)\n */\n setCustomValidity(error: string): void;\n /**\n * The **`HTMLSelectElement.showPicker()`** method displays the browser picker for a `select` element.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLSelectElement/showPicker)\n */\n showPicker(): 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\n/**\n * The **`HTMLSlotElement`** interface of the Shadow DOM API enables access to the name and assigned nodes of an HTML slot element.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLSlotElement)\n */\ninterface HTMLSlotElement extends HTMLElement {\n /**\n * The **`name`** property of the HTMLSlotElement interface returns or sets the slot name.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLSlotElement/name)\n */\n name: string;\n /**\n * The **`assign()`** method of the HTMLSlotElement interface sets the slot\'s _manually assigned nodes_ to an ordered set of slottables.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLSlotElement/assign)\n */\n assign(...nodes: (Element | Text)[]): void;\n /**\n * The **`assignedElements()`** method of the HTMLSlotElement interface returns a sequence of the elements assigned to this slot (and no other nodes).\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLSlotElement/assignedElements)\n */\n assignedElements(options?: AssignedNodesOptions): Element[];\n /**\n * The **`assignedNodes()`** method of the HTMLSlotElement interface returns a sequence of the nodes assigned to this slot.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLSlotElement/assignedNodes)\n */\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/**\n * The **`HTMLSourceElement`** interface provides special properties (beyond the regular HTMLElement object interface it also has available to it by inheritance) for manipulating source elements.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLSourceElement)\n */\ninterface HTMLSourceElement extends HTMLElement {\n /**\n * The **`height`** property of the HTMLSourceElement interface is a non-negative number indicating the height of the image resource in CSS pixels.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLSourceElement/height)\n */\n height: number;\n /**\n * The **`media`** property of the HTMLSourceElement interface is a string representing the intended destination medium for the resource.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLSourceElement/media)\n */\n media: string;\n /**\n * The **`sizes`** property of the HTMLSourceElement interface is a string representing a list of one or more sizes, representing sizes between breakpoints, to which the resource applies.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLSourceElement/sizes)\n */\n sizes: string;\n /**\n * The **`src`** property of the HTMLSourceElement interface is a string indicating the URL of a media resource to use as the source for the element.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLSourceElement/src)\n */\n src: string;\n /**\n * The **`srcset`** property of the HTMLSourceElement interface is a string containing a comma-separated list of candidate images.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLSourceElement/srcset)\n */\n srcset: string;\n /**\n * The **`type`** property of the HTMLSourceElement interface is a string representing the MIME type of the media resource.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLSourceElement/type)\n */\n type: string;\n /**\n * The **`width`** property of the HTMLSourceElement interface is a non-negative number indicating the width of the image resource in CSS pixels.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLSourceElement/width)\n */\n width: number;\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/**\n * The **`HTMLSpanElement`** interface represents a span element and derives from the HTMLElement interface, but without implementing any additional properties or methods.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLSpanElement)\n */\ninterface HTMLSpanElement extends HTMLElement {\n addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLSpanElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLSpanElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\ndeclare var HTMLSpanElement: {\n prototype: HTMLSpanElement;\n new(): HTMLSpanElement;\n};\n\n/**\n * The **`HTMLStyleElement`** interface represents a style element.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLStyleElement)\n */\ninterface HTMLStyleElement extends HTMLElement, LinkStyle {\n /**\n * The **`blocking`** property of the HTMLStyleElement interface is a string indicating that certain operations should be blocked on the fetching of critical subresources.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLStyleElement/blocking)\n */\n get blocking(): DOMTokenList;\n set blocking(value: string);\n /**\n * The **`HTMLStyleElement.disabled`** property can be used to get and set whether the stylesheet is disabled (`true`) or not (`false`).\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLStyleElement/disabled)\n */\n disabled: boolean;\n /**\n * The **`HTMLStyleElement.media`** property specifies the intended destination medium for style information.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLStyleElement/media)\n */\n media: string;\n /**\n * The **`HTMLStyleElement.type`** property returns the type of the current style.\n * @deprecated\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLStyleElement/type)\n */\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/**\n * The **`HTMLTableCaptionElement`** interface provides special properties (beyond the regular HTMLElement interface it also has available to it by inheritance) for manipulating table caption elements.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLTableCaptionElement)\n */\ninterface HTMLTableCaptionElement extends HTMLElement {\n /**\n * The **`align`** property of the HTMLTableCaptionElement interface is a string indicating how to horizontally align text in the caption table element.\n * @deprecated\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLTableCaptionElement/align)\n */\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/**\n * The **`HTMLTableCellElement`** interface 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 cells (th) or data cells (td), in an HTML document.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLTableCellElement)\n */\ninterface HTMLTableCellElement extends HTMLElement {\n /**\n * The **`abbr`** property of the HTMLTableCellElement interface indicates an abbreviation associated with the cell.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLTableCellElement/abbr)\n */\n abbr: string;\n /**\n * The **`align`** property of the HTMLTableCellElement interface is a string indicating how to horizontally align text in the th or td table cell.\n * @deprecated\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLTableCellElement/align)\n */\n align: string;\n /** @deprecated */\n axis: string;\n /**\n * The **`HTMLTableCellElement.bgColor`** property is used to set the background color of a cell or get the value of the obsolete `bgColor` attribute, if present.\n * @deprecated\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLTableCellElement/bgColor)\n */\n bgColor: string;\n /**\n * The **`cellIndex`** read-only property of the HTMLTableCellElement interface represents the position of a cell within its row (tr).\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLTableCellElement/cellIndex)\n */\n readonly cellIndex: number;\n /**\n * The **`ch`** property of the HTMLTableCellElement interface does nothing.\n * @deprecated\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLTableCellElement/ch)\n */\n ch: string;\n /**\n * The **`chOff`** property of the HTMLTableCellElement interface does nothing.\n * @deprecated\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLTableCellElement/chOff)\n */\n chOff: string;\n /**\n * The **`colSpan`** read-only property of the HTMLTableCellElement interface represents the number of columns this cell must span; this lets the cell occupy space across multiple columns of the table.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLTableCellElement/colSpan)\n */\n colSpan: number;\n /**\n * The **`headers`** property of the HTMLTableCellElement interface contains a list of IDs of th elements that are _headers_ for this specific cell.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLTableCellElement/headers)\n */\n headers: string;\n /** @deprecated */\n height: string;\n /**\n * The **`noWrap`** property of the HTMLTableCellElement interface returns a Boolean value indicating if the text of the cell may be wrapped on several lines or not.\n * @deprecated\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLTableCellElement/noWrap)\n */\n noWrap: boolean;\n /**\n * The **`rowSpan`** read-only property of the HTMLTableCellElement interface represents the number of rows this cell must span; this lets the cell occupy space across multiple rows of the table.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLTableCellElement/rowSpan)\n */\n rowSpan: number;\n /**\n * The **`scope`** property of the HTMLTableCellElement interface indicates the scope of a th cell.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLTableCellElement/scope)\n */\n scope: string;\n /**\n * The **`vAlign`** property of the HTMLTableCellElement interface is a string indicating how to vertically align text in a th or td table cell.\n * @deprecated\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLTableCellElement/vAlign)\n */\n vAlign: string;\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/**\n * The **`HTMLTableColElement`** interface provides properties for manipulating single or grouped table column elements.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLTableColElement)\n */\ninterface HTMLTableColElement extends HTMLElement {\n /**\n * The **`align`** property of the HTMLTableColElement interface is a string indicating how to horizontally align text in a table col column element.\n * @deprecated\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLTableColElement/align)\n */\n align: string;\n /**\n * The **`ch`** property of the HTMLTableColElement interface does nothing.\n * @deprecated\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLTableColElement/ch)\n */\n ch: string;\n /**\n * The **`chOff`** property of the HTMLTableColElement interface does nothing.\n * @deprecated\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLTableColElement/chOff)\n */\n chOff: string;\n /**\n * The **`span`** read-only property of the HTMLTableColElement interface represents the number of columns this col or colgroup must span; this lets the column occupy space across multiple columns of the table.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLTableColElement/span)\n */\n span: number;\n /**\n * The **`vAlign`** property of the HTMLTableColElement interface is a string indicating how to vertically align text in a table col column element.\n * @deprecated\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLTableColElement/vAlign)\n */\n vAlign: string;\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\n/** @deprecated prefer HTMLTableCellElement */\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\n/**\n * The **`HTMLTableElement`** interface 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.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLTableElement)\n */\ninterface HTMLTableElement extends HTMLElement {\n /**\n * The **`HTMLTableElement.align`** property represents the alignment of the table.\n * @deprecated\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLTableElement/align)\n */\n align: string;\n /**\n * The **`bgcolor`** property of the HTMLTableElement represents the background color of the table.\n * @deprecated\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLTableElement/bgColor)\n */\n bgColor: string;\n /**\n * The **`HTMLTableElement.border`** property represents the border width of the table element.\n * @deprecated\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLTableElement/border)\n */\n border: string;\n /**\n * The **`HTMLTableElement.caption`** property represents the table caption.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLTableElement/caption)\n */\n caption: HTMLTableCaptionElement | null;\n /**\n * The **`HTMLTableElement.cellPadding`** property represents the padding around the individual cells of the table.\n * @deprecated\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLTableElement/cellPadding)\n */\n cellPadding: string;\n /**\n * While you should instead use the CSS interface\'s **`cellSpacing`** property represents the spacing around the individual th and td elements representing a table\'s cells.\n * @deprecated\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLTableElement/cellSpacing)\n */\n cellSpacing: string;\n /**\n * The HTMLTableElement interface\'s **`frame`** property is a string that indicates which of the table\'s exterior borders should be drawn.\n * @deprecated\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLTableElement/frame)\n */\n frame: string;\n /**\n * The read-only HTMLTableElement property **`rows`** returns a live contained within any thead, tfoot, and Although the property itself is read-only, the returned object is live and allows the modification of its content.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLTableElement/rows)\n */\n readonly rows: HTMLCollectionOf<HTMLTableRowElement>;\n /**\n * The **`HTMLTableElement.rules`** property indicates which cell borders to render in the table.\n * @deprecated\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLTableElement/rules)\n */\n rules: string;\n /**\n * The **`HTMLTableElement.summary`** property represents the table description.\n * @deprecated\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLTableElement/summary)\n */\n summary: string;\n /**\n * The **`HTMLTableElement.tBodies`** read-only property returns a live HTMLCollection of the bodies in a table.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLTableElement/tBodies)\n */\n readonly tBodies: HTMLCollectionOf<HTMLTableSectionElement>;\n /**\n * The **`HTMLTableElement.tFoot`** property represents the `null` if there is no such element.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLTableElement/tFoot)\n */\n tFoot: HTMLTableSectionElement | null;\n /**\n * The **`HTMLTableElement.tHead`** represents the `null` if there is no such element.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLTableElement/tHead)\n */\n tHead: HTMLTableSectionElement | null;\n /**\n * The **`HTMLTableElement.width`** property represents the desired width of the table.\n * @deprecated\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLTableElement/width)\n */\n width: string;\n /**\n * The **`HTMLTableElement.createCaption()`** method returns the If no `<caption>` element exists on the table, this method creates it, and then returns it.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLTableElement/createCaption)\n */\n createCaption(): HTMLTableCaptionElement;\n /**\n * The **`createTBody()`** method of ```js-nolint createTBody() ``` None.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLTableElement/createTBody)\n */\n createTBody(): HTMLTableSectionElement;\n /**\n * The **`createTFoot()`** method of associated with a given table.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLTableElement/createTFoot)\n */\n createTFoot(): HTMLTableSectionElement;\n /**\n * The **`createTHead()`** method of associated with a given table.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLTableElement/createTHead)\n */\n createTHead(): HTMLTableSectionElement;\n /**\n * The **`HTMLTableElement.deleteCaption()`** method removes the `<caption>` element associated with the table, this method does nothing.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLTableElement/deleteCaption)\n */\n deleteCaption(): void;\n /**\n * The **`HTMLTableElement.deleteRow()`** method removes a specific row (tr) from a given table.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLTableElement/deleteRow)\n */\n deleteRow(index: number): void;\n /**\n * The **`HTMLTableElement.deleteTFoot()`** method removes the ```js-nolint deleteTFoot() ``` None.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLTableElement/deleteTFoot)\n */\n deleteTFoot(): void;\n /**\n * The **`HTMLTableElement.deleteTHead()`** removes the ```js-nolint deleteTHead() ``` None.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLTableElement/deleteTHead)\n */\n deleteTHead(): void;\n /**\n * The **`insertRow()`** method of the HTMLTableElement interface inserts a new row (tr) in a given table, and returns a reference to the new row.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLTableElement/insertRow)\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\n/** @deprecated prefer HTMLTableCellElement */\ninterface HTMLTableHeaderCellElement extends HTMLTableCellElement {\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\n/**\n * The **`HTMLTableRowElement`** interface 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.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLTableRowElement)\n */\ninterface HTMLTableRowElement extends HTMLElement {\n /**\n * The **`align`** property of the HTMLTableRowElement interface is a string indicating how to horizontally align text in the tr table row.\n * @deprecated\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLTableRowElement/align)\n */\n align: string;\n /**\n * The **`HTMLTableRowElement.bgColor`** property is used to set the background color of a row or retrieve the value of the obsolete `bgColor` attribute, if present.\n * @deprecated\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLTableRowElement/bgColor)\n */\n bgColor: string;\n /**\n * The **`cells`** read-only property of the HTMLTableRowElement interface returns a live HTMLCollection containing the cells in the row.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLTableRowElement/cells)\n */\n readonly cells: HTMLCollectionOf<HTMLTableCellElement>;\n /**\n * The **`ch`** property of the HTMLTableRowElement interface does nothing.\n * @deprecated\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLTableRowElement/ch)\n */\n ch: string;\n /**\n * The **`chOff`** property of the HTMLTableRowElement interface does nothing.\n * @deprecated\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLTableRowElement/chOff)\n */\n chOff: string;\n /**\n * The **`rowIndex`** read-only property of the HTMLTableRowElement interface represents the position of a row within the whole table.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLTableRowElement/rowIndex)\n */\n readonly rowIndex: number;\n /**\n * The **`sectionRowIndex`** read-only property of the HTMLTableRowElement interface represents the position of a row within the current section (thead, tbody, or tfoot).\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLTableRowElement/sectionRowIndex)\n */\n readonly sectionRowIndex: number;\n /**\n * The **`vAlign`** property of the HTMLTableRowElement interface is a string indicating how to vertically align text in a tr table row.\n * @deprecated\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLTableRowElement/vAlign)\n */\n vAlign: string;\n /**\n * The **`deleteCell()`** method of the HTMLTableRowElement interface removes a specific row cell from a given tr.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLTableRowElement/deleteCell)\n */\n deleteCell(index: number): void;\n /**\n * The **`insertCell()`** method of the HTMLTableRowElement interface inserts a new cell (td) into a table row (tr) and returns a reference to the cell.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLTableRowElement/insertCell)\n */\n insertCell(index?: number): HTMLTableCellElement;\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/**\n * The **`HTMLTableSectionElement`** interface 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 (thead, tfoot, and tbody, respectively) in an HTML table.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLTableSectionElement)\n */\ninterface HTMLTableSectionElement extends HTMLElement {\n /**\n * The **`align`** property of the HTMLTableSectionElement interface is a string indicating how to horizontally align text in a thead, tbody or tfoot table section.\n * @deprecated\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLTableSectionElement/align)\n */\n align: string;\n /**\n * The **`ch`** property of the HTMLTableSectionElement interface does nothing.\n * @deprecated\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLTableSectionElement/ch)\n */\n ch: string;\n /**\n * The **`chOff`** property of the HTMLTableSectionElement interface does nothing.\n * @deprecated\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLTableSectionElement/chOff)\n */\n chOff: string;\n /**\n * The **`rows`** read-only property of the HTMLTableSectionElement interface returns a live HTMLCollection containing the rows in the section.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLTableSectionElement/rows)\n */\n readonly rows: HTMLCollectionOf<HTMLTableRowElement>;\n /**\n * The **`vAlign`** property of the HTMLTableSectionElement interface is a string indicating how to vertically align text in a thead, tbody or tfoot table section.\n * @deprecated\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLTableSectionElement/vAlign)\n */\n vAlign: string;\n /**\n * The **`deleteRow()`** method of the HTMLTableSectionElement interface removes a specific row (tr) from a given section.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLTableSectionElement/deleteRow)\n */\n deleteRow(index: number): void;\n /**\n * The **`insertRow()`** method of the HTMLTableSectionElement interface inserts a new row (tr) in the given table sectioning element (thead, tfoot, or ```js-nolint insertRow() insertRow(index) ``` - `index` [MISSING: optional_inline] - : The row index of the new row.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLTableSectionElement/insertRow)\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/**\n * The **`HTMLTemplateElement`** interface enables access to the contents of an HTML template element.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLTemplateElement)\n */\ninterface HTMLTemplateElement extends HTMLElement {\n /**\n * The **`HTMLTemplateElement.content`** property returns a `<template>` element\'s template contents (a A DocumentFragment.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLTemplateElement/content)\n */\n readonly content: DocumentFragment;\n /**\n * The **`shadowRootClonable`** property reflects the value of the `shadowrootclonable` attribute of the associated `<template>` element.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLTemplateElement/shadowRootClonable)\n */\n shadowRootClonable: boolean;\n /**\n * The **`shadowRootDelegatesFocus`** property of the HTMLTemplateElement interface reflects the value of the `shadowrootdelegatesfocus` attribute of the associated `<template>` element.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLTemplateElement/shadowRootDelegatesFocus)\n */\n shadowRootDelegatesFocus: boolean;\n /**\n * The **`shadowRootMode`** property of the HTMLTemplateElement interface reflects the value of the `shadowrootmode` attribute of the associated `<template>` element.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLTemplateElement/shadowRootMode)\n */\n shadowRootMode: string;\n /**\n * The **`shadowRootSerializable`** property reflects the value of the `shadowrootserializable` attribute of the associated `<template>` element.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLTemplateElement/shadowRootSerializable)\n */\n shadowRootSerializable: boolean;\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/**\n * The **`HTMLTextAreaElement`** interface provides properties and methods for manipulating the layout and presentation of textarea elements.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLTextAreaElement)\n */\ninterface HTMLTextAreaElement extends HTMLElement {\n /**\n * The **`autocomplete`** property of the HTMLTextAreaElement interface indicates whether the value of the control can be automatically completed by the browser.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLTextAreaElement/autocomplete)\n */\n autocomplete: AutoFill;\n /**\n * The **`cols`** property of the HTMLTextAreaElement interface is a positive integer representing the visible width of the multi-line text control, in average character widths.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLTextAreaElement/cols)\n */\n cols: number;\n /**\n * The **`defaultValue`** property of the HTMLTextAreaElement interface represents the default text content of this text area.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLTextAreaElement/defaultValue)\n */\n defaultValue: string;\n /**\n * The **`dirName`** property of the HTMLTextAreaElement interface is the directionality of the element.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLTextAreaElement/dirName)\n */\n dirName: string;\n /**\n * The **`disabled`** property of the HTMLTextAreaElement interface indicates whether this multi-line text control is disabled and cannot be interacted with.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLTextAreaElement/disabled)\n */\n disabled: boolean;\n /**\n * The **`form`** read-only property of the HTMLTextAreaElement interface returns an HTMLFormElement object that owns this textarea, or `null` if this textarea is not owned by any form.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLTextAreaElement/form)\n */\n readonly form: HTMLFormElement | null;\n /**\n * The **`HTMLTextAreaElement.labels`** read-only property returns a NodeList of the label elements associated with the A NodeList containing the `<label>` elements associated with the `<textArea>` element.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLTextAreaElement/labels)\n */\n readonly labels: NodeListOf<HTMLLabelElement>;\n /**\n * The **`maxLength`** property of the HTMLTextAreaElement interface indicates the maximum number of characters (in UTF-16 code units) allowed to be entered for the value of the textarea element, and the maximum number of characters allowed for the value to be valid.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLTextAreaElement/maxLength)\n */\n maxLength: number;\n /**\n * The **`minLength`** property of the HTMLTextAreaElement interface indicates the minimum number of characters (in UTF-16 code units) required for the value of the textarea element to be valid.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLTextAreaElement/minLength)\n */\n minLength: number;\n /**\n * The **`name`** property of the HTMLTextAreaElement interface indicates the name of the textarea element.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLTextAreaElement/name)\n */\n name: string;\n /**\n * The **`placeholder`** property of the HTMLTextAreaElement interface represents a hint to the user of what can be entered in the control.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLTextAreaElement/placeholder)\n */\n placeholder: string;\n /**\n * The **`readOnly`** property of the HTMLTextAreaElement interface indicates that the user cannot modify the value of the control.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLTextAreaElement/readOnly)\n */\n readOnly: boolean;\n /**\n * The **`required`** property of the HTMLTextAreaElement interface specifies that the user must fill in a value before submitting a form.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLTextAreaElement/required)\n */\n required: boolean;\n /**\n * The **`rows`** property of the HTMLTextAreaElement interface is a positive integer representing the visible text lines of the text control.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLTextAreaElement/rows)\n */\n rows: number;\n /**\n * \x3c!-- --\x3e The **`selectionDirection`** property of the HTMLTextAreaElement interface specifies the current direction of the selection.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLTextAreaElement/selectionDirection)\n */\n selectionDirection: "forward" | "backward" | "none";\n /**\n * The **`selectionEnd`** property of the HTMLTextAreaElement interface specifies the end position of the current text selection in a textarea element.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLTextAreaElement/selectionEnd)\n */\n selectionEnd: number;\n /**\n * The **`selectionStart`** property of the HTMLTextAreaElement interface specifies the start position of the current text selection in a textarea element.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLTextAreaElement/selectionStart)\n */\n selectionStart: number;\n /**\n * The **`textLength`** read-only property of the HTMLTextAreaElement interface is a non-negative integer representing the number of characters, in UTF-16 code units, of the textarea element\'s value.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLTextAreaElement/textLength)\n */\n readonly textLength: number;\n /**\n * The **`type`** read-only property of the HTMLTextAreaElement interface returns the string `\'textarea\'`.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLTextAreaElement/type)\n */\n readonly type: string;\n /**\n * The **`validationMessage`** read-only property of the HTMLTextAreaElement interface returns a string representing a localized message that describes the validation constraints that the textarea control does not satisfy (if any).\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLTextAreaElement/validationMessage)\n */\n readonly validationMessage: string;\n /**\n * The **`validity`** read-only property of the HTMLTextAreaElement interface returns a ValidityState object that represents the validity states this element is in.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLTextAreaElement/validity)\n */\n readonly validity: ValidityState;\n /**\n * The **`value`** property of the HTMLTextAreaElement interface represents the value of the textarea element as a string, which is an empty string if the widget contains no content.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLTextAreaElement/value)\n */\n value: string;\n /**\n * The **`willValidate`** read-only property of the HTMLTextAreaElement interface indicates whether the textarea element is a candidate for constraint validation.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLTextAreaElement/willValidate)\n */\n readonly willValidate: boolean;\n /**\n * The **`wrap`** property of the HTMLTextAreaElement interface indicates how the control should wrap the value for form submission.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLTextAreaElement/wrap)\n */\n wrap: string;\n /**\n * The **`checkValidity()`** method of the HTMLTextAreaElement interface returns a boolean value which indicates if the element meets any constraint validation rules applied to it.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLTextAreaElement/checkValidity)\n */\n checkValidity(): boolean;\n /**\n * The **`reportValidity()`** method of the HTMLTextAreaElement interface performs the same validity checking steps as the HTMLTextAreaElement.checkValidity method.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLTextAreaElement/reportValidity)\n */\n reportValidity(): boolean;\n /**\n * The **`select()`** method of the HTMLTextAreaElement interface selects the entire contents of the textarea element.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLTextAreaElement/select)\n */\n select(): void;\n /**\n * The **`setCustomValidity()`** method of the HTMLTextAreaElement interface sets the custom validity message for the textarea element.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLTextAreaElement/setCustomValidity)\n */\n setCustomValidity(error: string): void;\n /**\n * The **`setRangeText()`** method of the HTMLTextAreaElement interface replaces a range of text in a textarea element with new text passed as the argument.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLTextAreaElement/setRangeText)\n */\n setRangeText(replacement: string): void;\n setRangeText(replacement: string, start: number, end: number, selectionMode?: SelectionMode): void;\n /**\n * The **`setSelectionRange()`** method of the HTMLTextAreaElement interface sets the start and end positions of the current text selection, and optionally the direction, in a textarea element.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLTextAreaElement/setSelectionRange)\n */\n setSelectionRange(start: number | null, end: number | null, 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/**\n * The **`HTMLTimeElement`** interface provides special properties (beyond the regular HTMLElement interface it also has available to it by inheritance) for manipulating time elements.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLTimeElement)\n */\ninterface HTMLTimeElement extends HTMLElement {\n /**\n * The **`dateTime`** property of the HTMLTimeElement interface is a string that reflects the `datetime` HTML attribute, containing a machine-readable form of the element\'s date and time value.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLTimeElement/dateTime)\n */\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/**\n * The **`HTMLTitleElement`** interface is implemented by a document\'s title.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLTitleElement)\n */\ninterface HTMLTitleElement extends HTMLElement {\n /**\n * The **`text`** property of the HTMLTitleElement interface represents the child text content of the document\'s title as a string.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLTitleElement/text)\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/**\n * The **`HTMLTrackElement`** interface represents an HTML track element within the DOM.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLTrackElement)\n */\ninterface HTMLTrackElement extends HTMLElement {\n /**\n * The **`default`** property of the HTMLTrackElement interface represents whether the track will be enabled if the user\'s preferences do not indicate that another track would be more appropriate.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLTrackElement/default)\n */\n default: boolean;\n /**\n * The **`kind`** property of the HTMLTrackElement interface represents the type of track, or how the text track is meant to be used.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLTrackElement/kind)\n */\n kind: string;\n /**\n * The **`label`** property of the HTMLTrackElement represents the user-readable title displayed when listing subtitle, caption, and audio descriptions for a track.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLTrackElement/label)\n */\n label: string;\n /**\n * The **`readyState`** read-only property of the HTMLTrackElement interface returns a number representing the track element\'s text track readiness state: 0.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLTrackElement/readyState)\n */\n readonly readyState: number;\n /**\n * The **`src`** property of the HTMLTrackElement interface reflects the value of the track element\'s `src` attribute, which indicates the URL of the text track\'s data.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLTrackElement/src)\n */\n src: string;\n /**\n * The **`srclang`** property of the HTMLTrackElement interface reflects the value of the track element\'s `srclang` attribute or the empty string if not defined.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLTrackElement/srclang)\n */\n srclang: string;\n /**\n * The **`track`** read-only property of the HTMLTrackElement interface returns a TextTrack object corresponding to the text track of the track element.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLTrackElement/track)\n */\n readonly track: TextTrack;\n readonly NONE: 0;\n readonly LOADING: 1;\n readonly LOADED: 2;\n readonly ERROR: 3;\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 NONE: 0;\n readonly LOADING: 1;\n readonly LOADED: 2;\n readonly ERROR: 3;\n};\n\n/**\n * The **`HTMLUListElement`** interface provides special properties (beyond those defined on the regular HTMLElement interface it also has available to it by inheritance) for manipulating unordered list (ul) elements.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLUListElement)\n */\ninterface HTMLUListElement extends HTMLElement {\n /** @deprecated */\n compact: boolean;\n /** @deprecated */\n type: string;\n addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLUListElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLUListElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\ndeclare var HTMLUListElement: {\n prototype: HTMLUListElement;\n new(): HTMLUListElement;\n};\n\n/**\n * The **`HTMLUnknownElement`** interface represents an invalid HTML element and derives from the HTMLElement interface, but without implementing any additional properties or methods.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLUnknownElement)\n */\ninterface HTMLUnknownElement extends HTMLElement {\n addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLUnknownElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLUnknownElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\ndeclare var HTMLUnknownElement: {\n prototype: HTMLUnknownElement;\n new(): HTMLUnknownElement;\n};\n\ninterface HTMLVideoElementEventMap extends HTMLMediaElementEventMap {\n "enterpictureinpicture": PictureInPictureEvent;\n "leavepictureinpicture": PictureInPictureEvent;\n}\n\n/**\n * Implemented by the video element, the **`HTMLVideoElement`** interface provides special properties and methods for manipulating video objects.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLVideoElement)\n */\ninterface HTMLVideoElement extends HTMLMediaElement {\n /**\n * The HTMLVideoElement **`disablePictureInPicture`** property reflects the HTML attribute indicating whether the picture-in-picture feature is disabled for the current element.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLVideoElement/disablePictureInPicture)\n */\n disablePictureInPicture: boolean;\n /**\n * The **`height`** property of the HTMLVideoElement interface returns an integer that reflects the `height` attribute of the video element, specifying the displayed height of the resource in CSS pixels.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLVideoElement/height)\n */\n height: number;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLVideoElement/enterpictureinpicture_event) */\n onenterpictureinpicture: ((this: HTMLVideoElement, ev: PictureInPictureEvent) => any) | null;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLVideoElement/leavepictureinpicture_event) */\n onleavepictureinpicture: ((this: HTMLVideoElement, ev: PictureInPictureEvent) => any) | null;\n playsInline: boolean;\n /**\n * The **`poster`** property of the HTMLVideoElement interface is a string that reflects the URL for an image to be shown while no video data is available.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLVideoElement/poster)\n */\n poster: string;\n /**\n * The HTMLVideoElement interface\'s read-only **`videoHeight`** property indicates the intrinsic height of the video, expressed in CSS pixels.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLVideoElement/videoHeight)\n */\n readonly videoHeight: number;\n /**\n * The HTMLVideoElement interface\'s read-only **`videoWidth`** property indicates the intrinsic width of the video, expressed in CSS pixels.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLVideoElement/videoWidth)\n */\n readonly videoWidth: number;\n /**\n * The **`width`** property of the HTMLVideoElement interface returns an integer that reflects the `width` attribute of the video element, specifying the displayed width of the resource in CSS pixels.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLVideoElement/width)\n */\n width: number;\n /**\n * The **`cancelVideoFrameCallback()`** method of the HTMLVideoElement interface cancels a previously-registered video frame callback.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLVideoElement/cancelVideoFrameCallback)\n */\n cancelVideoFrameCallback(handle: number): void;\n /**\n * The **HTMLVideoElement** method **`getVideoPlaybackQuality()`** creates and returns a frames have been lost.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLVideoElement/getVideoPlaybackQuality)\n */\n getVideoPlaybackQuality(): VideoPlaybackQuality;\n /**\n * The **HTMLVideoElement** method **`requestPictureInPicture()`** issues an asynchronous request to display the video in picture-in-picture mode.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLVideoElement/requestPictureInPicture)\n */\n requestPictureInPicture(): Promise<PictureInPictureWindow>;\n /**\n * The **`requestVideoFrameCallback()`** method of the HTMLVideoElement interface registers a callback function that runs when a new video frame is sent to the compositor.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLVideoElement/requestVideoFrameCallback)\n */\n requestVideoFrameCallback(callback: VideoFrameRequestCallback): number;\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/**\n * The **`HashChangeEvent`** interface represents events that fire when the fragment identifier of the URL has changed.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HashChangeEvent)\n */\ninterface HashChangeEvent extends Event {\n /**\n * The **`newURL`** read-only property of the navigating.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HashChangeEvent/newURL)\n */\n readonly newURL: string;\n /**\n * The **`oldURL`** read-only property of the was navigated.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HashChangeEvent/oldURL)\n */\n readonly oldURL: string;\n}\n\ndeclare var HashChangeEvent: {\n prototype: HashChangeEvent;\n new(type: string, eventInitDict?: HashChangeEventInit): HashChangeEvent;\n};\n\n/**\n * The **`Headers`** interface of the Fetch API allows you to perform various actions on HTTP request and response headers.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Headers)\n */\ninterface Headers {\n /**\n * The **`append()`** method of the Headers interface appends a new value onto an existing header inside a `Headers` object, or adds the header if it does not already exist.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Headers/append)\n */\n append(name: string, value: string): void;\n /**\n * The **`delete()`** method of the Headers interface deletes a header from the current `Headers` object.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Headers/delete)\n */\n delete(name: string): void;\n /**\n * The **`get()`** method of the Headers interface returns a byte string of all the values of a header within a `Headers` object with a given name.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Headers/get)\n */\n get(name: string): string | null;\n /**\n * The **`getSetCookie()`** method of the Headers interface returns an array containing the values of all Set-Cookie headers associated with a response.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Headers/getSetCookie)\n */\n getSetCookie(): string[];\n /**\n * The **`has()`** method of the Headers interface returns a boolean stating whether a `Headers` object contains a certain header.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Headers/has)\n */\n has(name: string): boolean;\n /**\n * The **`set()`** method of the Headers interface sets a new value for an existing header inside a `Headers` object, or adds the header if it does not already exist.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Headers/set)\n */\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/**\n * The **`Highlight`** interface of the CSS Custom Highlight API is used to represent a collection of Range instances to be styled using the API.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Highlight)\n */\ninterface Highlight {\n /**\n * It is possible to create Range objects that overlap in a document.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Highlight/priority)\n */\n priority: number;\n /**\n * The `type` property of the Highlight interface is an enumerated String used to specify the meaning of the highlight.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Highlight/type)\n */\n type: HighlightType;\n forEach(callbackfn: (value: AbstractRange, key: AbstractRange, parent: Highlight) => void, thisArg?: any): void;\n}\n\ndeclare var Highlight: {\n prototype: Highlight;\n new(...initialRanges: AbstractRange[]): Highlight;\n};\n\n/**\n * The **`HighlightRegistry`** interface of the CSS Custom Highlight API is used to register Highlight objects to be styled using the API.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HighlightRegistry)\n */\ninterface HighlightRegistry {\n forEach(callbackfn: (value: Highlight, key: string, parent: HighlightRegistry) => void, thisArg?: any): void;\n}\n\ndeclare var HighlightRegistry: {\n prototype: HighlightRegistry;\n new(): HighlightRegistry;\n};\n\n/**\n * The **`History`** interface of the History API allows manipulation of the browser _session history_, that is the pages visited in the tab or frame that the current page is loaded in.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/History)\n */\ninterface History {\n /**\n * The **`length`** read-only property of the History interface returns an integer representing the number of entries in the session history, including the currently loaded page.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/History/length)\n */\n readonly length: number;\n /**\n * The **`scrollRestoration`** property of the History interface allows web applications to explicitly set default scroll restoration behavior on history navigation.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/History/scrollRestoration)\n */\n scrollRestoration: ScrollRestoration;\n /**\n * The **`state`** read-only property of the History interface returns a value representing the state at the top of the history stack.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/History/state)\n */\n readonly state: any;\n /**\n * The **`back()`** method of the History interface causes the browser to move back one page in the session history.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/History/back)\n */\n back(): void;\n /**\n * The **`forward()`** method of the History interface causes the browser to move forward one page in the session history.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/History/forward)\n */\n forward(): void;\n /**\n * The **`go()`** method of the History interface loads a specific page from the session history.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/History/go)\n */\n go(delta?: number): void;\n /**\n * The **`pushState()`** method of the History interface adds an entry to the browser\'s session history stack.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/History/pushState)\n */\n pushState(data: any, unused: string, url?: string | URL | null): void;\n /**\n * The **`replaceState()`** method of the History interface modifies the current history entry, replacing it with the state object and URL passed in the method parameters.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/History/replaceState)\n */\n replaceState(data: any, unused: string, url?: string | URL | null): void;\n}\n\ndeclare var History: {\n prototype: History;\n new(): History;\n};\n\n/**\n * The **`IDBCursor`** interface of the IndexedDB API represents a cursor for traversing or iterating over multiple records in a database.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBCursor)\n */\ninterface IDBCursor {\n /**\n * The **`direction`** read-only property of the direction of traversal of the cursor (set using section below for possible values.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBCursor/direction)\n */\n readonly direction: IDBCursorDirection;\n /**\n * The **`key`** read-only property of the position.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBCursor/key)\n */\n readonly key: IDBValidKey;\n /**\n * The **`primaryKey`** read-only property of the cursor is currently being iterated or has iterated outside its range, this is set to undefined.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBCursor/primaryKey)\n */\n readonly primaryKey: IDBValidKey;\n /**\n * The **`request`** read-only property of the IDBCursor interface returns the IDBRequest used to obtain the cursor.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBCursor/request)\n */\n readonly request: IDBRequest;\n /**\n * The **`source`** read-only property of the null or throws an exception, even if the cursor is currently being iterated, has iterated past its end, or its transaction is not active.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBCursor/source)\n */\n readonly source: IDBObjectStore | IDBIndex;\n /**\n * The **`advance()`** method of the IDBCursor interface sets the number of times a cursor should move its position forward.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBCursor/advance)\n */\n advance(count: number): void;\n /**\n * The **`continue()`** method of the IDBCursor interface advances the cursor to the next position along its direction, to the item whose key matches the optional key parameter.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBCursor/continue)\n */\n continue(key?: IDBValidKey): void;\n /**\n * The **`continuePrimaryKey()`** method of the matches the key parameter as well as whose primary key matches the primary key parameter.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBCursor/continuePrimaryKey)\n */\n continuePrimaryKey(key: IDBValidKey, primaryKey: IDBValidKey): void;\n /**\n * The **`delete()`** method of the IDBCursor interface returns an IDBRequest object, and, in a separate thread, deletes the record at the cursor\'s position, without changing the cursor\'s position.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBCursor/delete)\n */\n delete(): IDBRequest<undefined>;\n /**\n * The **`update()`** method of the IDBCursor interface returns an IDBRequest object, and, in a separate thread, updates the value at the current position of the cursor in the object store.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBCursor/update)\n */\n update(value: any): IDBRequest<IDBValidKey>;\n}\n\ndeclare var IDBCursor: {\n prototype: IDBCursor;\n new(): IDBCursor;\n};\n\n/**\n * The **`IDBCursorWithValue`** interface of the IndexedDB API represents a cursor for traversing or iterating over multiple records in a database.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBCursorWithValue)\n */\ninterface IDBCursorWithValue extends IDBCursor {\n /**\n * The **`value`** read-only property of the whatever that is.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBCursorWithValue/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/**\n * The **`IDBDatabase`** interface of the IndexedDB API 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.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBDatabase)\n */\ninterface IDBDatabase extends EventTarget {\n /**\n * The **`name`** read-only property of the `IDBDatabase` interface is a string that contains the name of the connected database.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBDatabase/name)\n */\n readonly name: string;\n /**\n * The **`objectStoreNames`** read-only property of the list of the names of the object stores currently in the connected database.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBDatabase/objectStoreNames)\n */\n readonly objectStoreNames: DOMStringList;\n onabort: ((this: IDBDatabase, ev: Event) => any) | null;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBDatabase/close_event) */\n onclose: ((this: IDBDatabase, ev: Event) => any) | null;\n onerror: ((this: IDBDatabase, ev: Event) => any) | null;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBDatabase/versionchange_event) */\n onversionchange: ((this: IDBDatabase, ev: IDBVersionChangeEvent) => any) | null;\n /**\n * The **`version`** property of the IDBDatabase interface is a 64-bit integer that contains the version of the connected database.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBDatabase/version)\n */\n readonly version: number;\n /**\n * The **`close()`** method of the IDBDatabase interface returns immediately and closes the connection in a separate thread.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBDatabase/close)\n */\n close(): void;\n /**\n * The **`createObjectStore()`** method of the The method takes the name of the store as well as a parameter object that lets you define important optional properties.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBDatabase/createObjectStore)\n */\n createObjectStore(name: string, options?: IDBObjectStoreParameters): IDBObjectStore;\n /**\n * The **`deleteObjectStore()`** method of the the connected database, along with any indexes that reference it.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBDatabase/deleteObjectStore)\n */\n deleteObjectStore(name: string): void;\n /**\n * The **`transaction`** method of the IDBDatabase interface immediately returns a transaction object (IDBTransaction) containing the IDBTransaction.objectStore method, which you can use to access your object store.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBDatabase/transaction)\n */\n transaction(storeNames: string | string[], mode?: IDBTransactionMode, options?: IDBTransactionOptions): 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\n/**\n * The **`IDBFactory`** interface of the IndexedDB API lets applications asynchronously access the indexed databases.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBFactory)\n */\ninterface IDBFactory {\n /**\n * The **`cmp()`** method of the IDBFactory interface compares two values as keys to determine equality and ordering for IndexedDB operations, such as storing and iterating.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBFactory/cmp)\n */\n cmp(first: any, second: any): number;\n /**\n * The **`databases`** method of the IDBFactory interface returns a Promise that fulfills with an array of objects containing the name and version of all the available databases.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBFactory/databases)\n */\n databases(): Promise<IDBDatabaseInfo[]>;\n /**\n * The **`deleteDatabase()`** method of the returns an IDBOpenDBRequest object immediately, and performs the deletion operation asynchronously.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBFactory/deleteDatabase)\n */\n deleteDatabase(name: string): IDBOpenDBRequest;\n /**\n * The **`open()`** method of the IDBFactory interface requests opening a connection to a database.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBFactory/open)\n */\n open(name: string, version?: number): IDBOpenDBRequest;\n}\n\ndeclare var IDBFactory: {\n prototype: IDBFactory;\n new(): IDBFactory;\n};\n\n/**\n * `IDBIndex` interface of the IndexedDB API provides asynchronous access to an index in a database.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBIndex)\n */\ninterface IDBIndex {\n /**\n * The **`keyPath`** property of the IDBIndex interface returns the key path of the current index.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBIndex/keyPath)\n */\n readonly keyPath: string | string[];\n /**\n * The **`multiEntry`** read-only property of the behaves when the result of evaluating the index\'s key path yields an array.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBIndex/multiEntry)\n */\n readonly multiEntry: boolean;\n /**\n * The **`name`** property of the IDBIndex interface contains a string which names the index.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBIndex/name)\n */\n name: string;\n /**\n * The **`objectStore`** property of the IDBIndex interface returns the object store referenced by the current index.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBIndex/objectStore)\n */\n readonly objectStore: IDBObjectStore;\n /**\n * The **`unique`** read-only property returns a boolean that states whether the index allows duplicate keys.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBIndex/unique)\n */\n readonly unique: boolean;\n /**\n * The **`count()`** method of the IDBIndex interface returns an IDBRequest object, and in a separate thread, returns the number of records within a key range.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBIndex/count)\n */\n count(query?: IDBValidKey | IDBKeyRange): IDBRequest<number>;\n /**\n * The **`get()`** method of the IDBIndex interface returns an IDBRequest object, and, in a separate thread, finds either the value in the referenced object store that corresponds to the given key or the first corresponding value, if `key` is set to an If a value is found, then a structured clone of it is created and set as the `result` of the request object: this returns the record the key is associated with.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBIndex/get)\n */\n get(query: IDBValidKey | IDBKeyRange): IDBRequest<any>;\n /**\n * The **`getAll()`** method of the IDBIndex interface retrieves all objects that are inside the index.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBIndex/getAll)\n */\n getAll(query?: IDBValidKey | IDBKeyRange | null, count?: number): IDBRequest<any[]>;\n /**\n * The **`getAllKeys()`** method of the IDBIndex interface asynchronously retrieves the primary keys of all objects inside the index, setting them as the `result` of the request object.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBIndex/getAllKeys)\n */\n getAllKeys(query?: IDBValidKey | IDBKeyRange | null, count?: number): IDBRequest<IDBValidKey[]>;\n /**\n * The **`getKey()`** method of the IDBIndex interface returns an IDBRequest object, and, in a separate thread, finds either the primary key that corresponds to the given key in this index or the first corresponding primary key, if `key` is set to an If a primary key is found, it is set as the `result` of the request object.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBIndex/getKey)\n */\n getKey(query: IDBValidKey | IDBKeyRange): IDBRequest<IDBValidKey | undefined>;\n /**\n * The **`openCursor()`** method of the IDBIndex interface returns an IDBRequest object, and, in a separate thread, creates a cursor over the specified key range.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBIndex/openCursor)\n */\n openCursor(query?: IDBValidKey | IDBKeyRange | null, direction?: IDBCursorDirection): IDBRequest<IDBCursorWithValue | null>;\n /**\n * The **`openKeyCursor()`** method of the a separate thread, creates a cursor over the specified key range, as arranged by this index.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBIndex/openKeyCursor)\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/**\n * The **`IDBKeyRange`** interface of the IndexedDB API represents a continuous interval over some data type that is used for keys.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBKeyRange)\n */\ninterface IDBKeyRange {\n /**\n * The **`lower`** read-only property of the The lower bound of the key range (can be any type.) The following example illustrates how you\'d use a key range.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBKeyRange/lower)\n */\n readonly lower: any;\n /**\n * The **`lowerOpen`** read-only property of the lower-bound value is included in the key range.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBKeyRange/lowerOpen)\n */\n readonly lowerOpen: boolean;\n /**\n * The **`upper`** read-only property of the The upper bound of the key range (can be any type.) The following example illustrates how you\'d use a key range.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBKeyRange/upper)\n */\n readonly upper: any;\n /**\n * The **`upperOpen`** read-only property of the upper-bound value is included in the key range.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBKeyRange/upperOpen)\n */\n readonly upperOpen: boolean;\n /**\n * The `includes()` method of the IDBKeyRange interface returns a boolean indicating whether a specified key is inside the key range.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBKeyRange/includes)\n */\n includes(key: any): boolean;\n}\n\ndeclare var IDBKeyRange: {\n prototype: IDBKeyRange;\n new(): IDBKeyRange;\n /**\n * The **`bound()`** static method of the IDBKeyRange interface creates a new key range with the specified upper and lower bounds.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBKeyRange/bound_static)\n */\n bound(lower: any, upper: any, lowerOpen?: boolean, upperOpen?: boolean): IDBKeyRange;\n /**\n * The **`lowerBound()`** static method of the By default, it includes the lower endpoint value and is closed.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBKeyRange/lowerBound_static)\n */\n lowerBound(lower: any, open?: boolean): IDBKeyRange;\n /**\n * The **`only()`** static method of the IDBKeyRange interface creates a new key range containing a single value.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBKeyRange/only_static)\n */\n only(value: any): IDBKeyRange;\n /**\n * The **`upperBound()`** static method of the it includes the upper endpoint value and is closed.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBKeyRange/upperBound_static)\n */\n upperBound(upper: any, open?: boolean): IDBKeyRange;\n};\n\n/**\n * The **`IDBObjectStore`** interface of the IndexedDB API represents an object store in a database.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBObjectStore)\n */\ninterface IDBObjectStore {\n /**\n * The **`autoIncrement`** read-only property of the for this object store.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBObjectStore/autoIncrement)\n */\n readonly autoIncrement: boolean;\n /**\n * The **`indexNames`** read-only property of the in this object store.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBObjectStore/indexNames)\n */\n readonly indexNames: DOMStringList;\n /**\n * The **`keyPath`** read-only property of the If this property is null, the application must provide a key for each modification operation.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBObjectStore/keyPath)\n */\n readonly keyPath: string | string[] | null;\n /**\n * The **`name`** property of the IDBObjectStore interface indicates the name of this object store.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBObjectStore/name)\n */\n name: string;\n /**\n * The **`transaction`** read-only property of the object store belongs.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBObjectStore/transaction)\n */\n readonly transaction: IDBTransaction;\n /**\n * The **`add()`** method of the IDBObjectStore interface returns an IDBRequest object, and, in a separate thread, creates a structured clone of the value, and stores the cloned value in the object store.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBObjectStore/add)\n */\n add(value: any, key?: IDBValidKey): IDBRequest<IDBValidKey>;\n /**\n * The **`clear()`** method of the IDBObjectStore interface creates and immediately returns an IDBRequest object, and clears this object store in a separate thread.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBObjectStore/clear)\n */\n clear(): IDBRequest<undefined>;\n /**\n * The **`count()`** method of the IDBObjectStore interface returns an IDBRequest object, and, in a separate thread, returns the total number of records that match the provided key or of records in the store.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBObjectStore/count)\n */\n count(query?: IDBValidKey | IDBKeyRange): IDBRequest<number>;\n /**\n * The **`createIndex()`** method of the field/column defining a new data point for each database record to contain.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBObjectStore/createIndex)\n */\n createIndex(name: string, keyPath: string | string[], options?: IDBIndexParameters): IDBIndex;\n /**\n * The **`delete()`** method of the and, in a separate thread, deletes the specified record or records.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBObjectStore/delete)\n */\n delete(query: IDBValidKey | IDBKeyRange): IDBRequest<undefined>;\n /**\n * The **`deleteIndex()`** method of the the connected database, used during a version upgrade.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBObjectStore/deleteIndex)\n */\n deleteIndex(name: string): void;\n /**\n * The **`get()`** method of the IDBObjectStore interface returns an IDBRequest object, and, in a separate thread, returns the object selected by the specified key.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBObjectStore/get)\n */\n get(query: IDBValidKey | IDBKeyRange): IDBRequest<any>;\n /**\n * The **`getAll()`** method of the containing all objects in the object store matching the specified parameter or all objects in the store if no parameters are given.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBObjectStore/getAll)\n */\n getAll(query?: IDBValidKey | IDBKeyRange | null, count?: number): IDBRequest<any[]>;\n /**\n * The `getAllKeys()` method of the IDBObjectStore interface returns an IDBRequest object retrieves record keys for all objects in the object store matching the specified parameter or all objects in the store if no parameters are given.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBObjectStore/getAllKeys)\n */\n getAllKeys(query?: IDBValidKey | IDBKeyRange | null, count?: number): IDBRequest<IDBValidKey[]>;\n /**\n * The **`getKey()`** method of the and, in a separate thread, returns the key selected by the specified query.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBObjectStore/getKey)\n */\n getKey(query: IDBValidKey | IDBKeyRange): IDBRequest<IDBValidKey | undefined>;\n /**\n * The **`index()`** method of the IDBObjectStore interface opens a named index in the current object store, after which it can be used to, for example, return a series of records sorted by that index using a cursor.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBObjectStore/index)\n */\n index(name: string): IDBIndex;\n /**\n * The **`openCursor()`** method of the and, in a separate thread, returns a new IDBCursorWithValue object.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBObjectStore/openCursor)\n */\n openCursor(query?: IDBValidKey | IDBKeyRange | null, direction?: IDBCursorDirection): IDBRequest<IDBCursorWithValue | null>;\n /**\n * The **`openKeyCursor()`** method of the whose result will be set to an IDBCursor that can be used to iterate through matching results.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBObjectStore/openKeyCursor)\n */\n openKeyCursor(query?: IDBValidKey | IDBKeyRange | null, direction?: IDBCursorDirection): IDBRequest<IDBCursor | null>;\n /**\n * The **`put()`** method of the IDBObjectStore interface updates a given record in a database, or inserts a new record if the given item does not already exist.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBObjectStore/put)\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": IDBVersionChangeEvent;\n "upgradeneeded": IDBVersionChangeEvent;\n}\n\n/**\n * The **`IDBOpenDBRequest`** interface of the IndexedDB API provides access to the results of requests to open or delete databases (performed using IDBFactory.open and IDBFactory.deleteDatabase), using specific event handler attributes.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBOpenDBRequest)\n */\ninterface IDBOpenDBRequest extends IDBRequest<IDBDatabase> {\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBOpenDBRequest/blocked_event) */\n onblocked: ((this: IDBOpenDBRequest, ev: IDBVersionChangeEvent) => any) | null;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBOpenDBRequest/upgradeneeded_event) */\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/**\n * The **`IDBRequest`** interface of the IndexedDB API provides access to results of asynchronous requests to databases and database objects using event handler attributes.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBRequest)\n */\ninterface IDBRequest<T = any> extends EventTarget {\n /**\n * The **`error`** read-only property of the request.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBRequest/error)\n */\n readonly error: DOMException | null;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBRequest/error_event) */\n onerror: ((this: IDBRequest<T>, ev: Event) => any) | null;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBRequest/success_event) */\n onsuccess: ((this: IDBRequest<T>, ev: Event) => any) | null;\n /**\n * The **`readyState`** read-only property of the Every request starts in the `pending` state.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBRequest/readyState)\n */\n readonly readyState: IDBRequestReadyState;\n /**\n * The **`result`** read-only property of the any - `InvalidStateError` DOMException - : Thrown when attempting to access the property if the request is not completed, and therefore the result is not available.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBRequest/result)\n */\n readonly result: T;\n /**\n * The **`source`** read-only property of the Index or an object store.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBRequest/source)\n */\n readonly source: IDBObjectStore | IDBIndex | IDBCursor;\n /**\n * The **`transaction`** read-only property of the IDBRequest interface returns the transaction for the request, that is, the transaction the request is being made inside.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBRequest/transaction)\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\n/**\n * The **`IDBTransaction`** interface of the IndexedDB API provides a static, asynchronous transaction on a database using event handler attributes.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBTransaction)\n */\ninterface IDBTransaction extends EventTarget {\n /**\n * The **`db`** read-only property of the IDBTransaction interface returns the database connection with which this transaction is associated.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBTransaction/db)\n */\n readonly db: IDBDatabase;\n /**\n * The **`durability`** read-only property of the IDBTransaction interface returns the durability hint the transaction was created with.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBTransaction/durability)\n */\n readonly durability: IDBTransactionDurability;\n /**\n * The **`IDBTransaction.error`** property of the IDBTransaction interface returns the type of error when there is an unsuccessful transaction.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBTransaction/error)\n */\n readonly error: DOMException | null;\n /**\n * The **`mode`** read-only property of the data in the object stores in the scope of the transaction (i.e., is the mode to be read-only, or do you want to write to the object stores?) The default value is `readonly`.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBTransaction/mode)\n */\n readonly mode: IDBTransactionMode;\n /**\n * The **`objectStoreNames`** read-only property of the of IDBObjectStore objects.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBTransaction/objectStoreNames)\n */\n readonly objectStoreNames: DOMStringList;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBTransaction/abort_event) */\n onabort: ((this: IDBTransaction, ev: Event) => any) | null;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBTransaction/complete_event) */\n oncomplete: ((this: IDBTransaction, ev: Event) => any) | null;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBTransaction/error_event) */\n onerror: ((this: IDBTransaction, ev: Event) => any) | null;\n /**\n * The **`abort()`** method of the IDBTransaction interface rolls back all the changes to objects in the database associated with this transaction.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBTransaction/abort)\n */\n abort(): void;\n /**\n * The **`commit()`** method of the IDBTransaction interface commits the transaction if it is called on an active transaction.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBTransaction/commit)\n */\n commit(): void;\n /**\n * The **`objectStore()`** method of the added to the scope of this transaction.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBTransaction/objectStore)\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/**\n * The **`IDBVersionChangeEvent`** interface of the IndexedDB API indicates that the version of the database has changed, as the result of an IDBOpenDBRequest.upgradeneeded_event event handler function.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBVersionChangeEvent)\n */\ninterface IDBVersionChangeEvent extends Event {\n /**\n * The **`newVersion`** read-only property of the database.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBVersionChangeEvent/newVersion)\n */\n readonly newVersion: number | null;\n /**\n * The **`oldVersion`** read-only property of the database.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBVersionChangeEvent/oldVersion)\n */\n readonly oldVersion: number;\n}\n\ndeclare var IDBVersionChangeEvent: {\n prototype: IDBVersionChangeEvent;\n new(type: string, eventInitDict?: IDBVersionChangeEventInit): IDBVersionChangeEvent;\n};\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.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/IIRFilterNode)\n */\ninterface IIRFilterNode extends AudioNode {\n /**\n * The `getFrequencyResponse()` method of the IIRFilterNode interface takes the current filtering algorithm\'s settings and calculates the frequency response for frequencies specified in a specified array of frequencies.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/IIRFilterNode/getFrequencyResponse)\n */\n getFrequencyResponse(frequencyHz: Float32Array<ArrayBuffer>, magResponse: Float32Array<ArrayBuffer>, phaseResponse: Float32Array<ArrayBuffer>): void;\n}\n\ndeclare var IIRFilterNode: {\n prototype: IIRFilterNode;\n new(context: BaseAudioContext, options: IIRFilterOptions): IIRFilterNode;\n};\n\n/**\n * The `IdleDeadline` interface is used as the data type of the input parameter to idle callbacks established by calling Window.requestIdleCallback().\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/IdleDeadline)\n */\ninterface IdleDeadline {\n /**\n * The read-only **`didTimeout`** property on the **IdleDeadline** interface is a Boolean value which indicates whether or not the idle callback is being invoked because the timeout interval specified when Window.requestIdleCallback() was called has expired.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/IdleDeadline/didTimeout)\n */\n readonly didTimeout: boolean;\n /**\n * The **`timeRemaining()`** method on the IdleDeadline interface returns the estimated number of milliseconds remaining in the current idle period.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/IdleDeadline/timeRemaining)\n */\n timeRemaining(): DOMHighResTimeStamp;\n}\n\ndeclare var IdleDeadline: {\n prototype: IdleDeadline;\n new(): IdleDeadline;\n};\n\n/**\n * The **`ImageBitmap`** interface represents a bitmap image which can be drawn to a canvas without undue latency.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ImageBitmap)\n */\ninterface ImageBitmap {\n /**\n * The **`ImageBitmap.height`** read-only property returns the ImageBitmap object\'s height in CSS pixels.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ImageBitmap/height)\n */\n readonly height: number;\n /**\n * The **`ImageBitmap.width`** read-only property returns the ImageBitmap object\'s width in CSS pixels.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ImageBitmap/width)\n */\n readonly width: number;\n /**\n * The **`ImageBitmap.close()`** method disposes of all graphical resources associated with an `ImageBitmap`.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ImageBitmap/close)\n */\n close(): void;\n}\n\ndeclare var ImageBitmap: {\n prototype: ImageBitmap;\n new(): ImageBitmap;\n};\n\n/**\n * The **`ImageBitmapRenderingContext`** interface is a canvas rendering context that provides the functionality to replace the canvas\'s contents with the given ImageBitmap.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ImageBitmapRenderingContext)\n */\ninterface ImageBitmapRenderingContext {\n /**\n * The **`ImageBitmapRenderingContext.canvas`** property, part of the Canvas API, is a read-only reference to the A HTMLCanvasElement or OffscreenCanvas object.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ImageBitmapRenderingContext/canvas)\n */\n readonly canvas: HTMLCanvasElement | OffscreenCanvas;\n /**\n * The **`ImageBitmapRenderingContext.transferFromImageBitmap()`** method displays the given ImageBitmap in the canvas associated with this rendering context.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ImageBitmapRenderingContext/transferFromImageBitmap)\n */\n transferFromImageBitmap(bitmap: ImageBitmap | null): void;\n}\n\ndeclare var ImageBitmapRenderingContext: {\n prototype: ImageBitmapRenderingContext;\n new(): ImageBitmapRenderingContext;\n};\n\n/**\n * The **`ImageCapture`** interface of the MediaStream Image Capture API provides methods to enable the capture of images or photos from a camera or other photographic device.\n * Available only in secure contexts.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ImageCapture)\n */\ninterface ImageCapture {\n /**\n * The **`track`** read-only property of the A MediaStreamTrack object.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ImageCapture/track)\n */\n readonly track: MediaStreamTrack;\n /**\n * The **`getPhotoCapabilities()`** method of the ImageCapture interface returns a Promise that resolves with an object containing the ranges of available configuration options.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ImageCapture/getPhotoCapabilities)\n */\n getPhotoCapabilities(): Promise<PhotoCapabilities>;\n /**\n * The **`getPhotoSettings()`** method of the ImageCapture interface returns a Promise that resolves with an object containing the current photo configuration settings.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ImageCapture/getPhotoSettings)\n */\n getPhotoSettings(): Promise<PhotoSettings>;\n /**\n * The **`takePhoto()`** method of the device sourcing a MediaStreamTrack and returns a Promise that resolves with a Blob containing the data.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ImageCapture/takePhoto)\n */\n takePhoto(photoSettings?: PhotoSettings): Promise<Blob>;\n}\n\ndeclare var ImageCapture: {\n prototype: ImageCapture;\n new(videoTrack: MediaStreamTrack): ImageCapture;\n};\n\n/**\n * The **`ImageData`** interface represents the underlying pixel data of an area of a canvas element.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ImageData)\n */\ninterface ImageData {\n /**\n * The read-only **`ImageData.colorSpace`** property is a string indicating the color space of the image data.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ImageData/colorSpace)\n */\n readonly colorSpace: PredefinedColorSpace;\n /**\n * The readonly **`ImageData.data`** property returns a pixel data.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ImageData/data)\n */\n readonly data: ImageDataArray;\n /**\n * The readonly **`ImageData.height`** property returns the number of rows in the ImageData object.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ImageData/height)\n */\n readonly height: number;\n /**\n * The readonly **`ImageData.width`** property returns the number of pixels per row in the ImageData object.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ImageData/width)\n */\n readonly width: number;\n}\n\ndeclare var ImageData: {\n prototype: ImageData;\n new(sw: number, sh: number, settings?: ImageDataSettings): ImageData;\n new(data: ImageDataArray, sw: number, sh?: number, settings?: ImageDataSettings): ImageData;\n};\n\n/**\n * The **`ImageDecoder`** interface of the WebCodecs API provides a way to unpack and decode encoded image data.\n * Available only in secure contexts.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ImageDecoder)\n */\ninterface ImageDecoder {\n /**\n * The **`complete`** read-only property of the ImageDecoder interface returns true if encoded data has completed buffering.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ImageDecoder/complete)\n */\n readonly complete: boolean;\n /**\n * The **`completed`** read-only property of the ImageDecoder interface returns a promise that resolves once encoded data has finished buffering.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ImageDecoder/completed)\n */\n readonly completed: Promise<void>;\n /**\n * The **`tracks`** read-only property of the ImageDecoder interface returns a list of the tracks in the encoded image data.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ImageDecoder/tracks)\n */\n readonly tracks: ImageTrackList;\n /**\n * The **`type`** read-only property of the ImageDecoder interface reflects the MIME type configured during construction.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ImageDecoder/type)\n */\n readonly type: string;\n /**\n * The **`close()`** method of the ImageDecoder interface ends all pending work and releases system resources.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ImageDecoder/close)\n */\n close(): void;\n /**\n * The **`decode()`** method of the ImageDecoder interface enqueues a control message to decode the frame of an image.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ImageDecoder/decode)\n */\n decode(options?: ImageDecodeOptions): Promise<ImageDecodeResult>;\n /**\n * The **`reset()`** method of the ImageDecoder interface aborts all pending `decode()` operations; rejecting all pending promises.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ImageDecoder/reset)\n */\n reset(): void;\n}\n\ndeclare var ImageDecoder: {\n prototype: ImageDecoder;\n new(init: ImageDecoderInit): ImageDecoder;\n /**\n * The **`ImageDecoder.isTypeSupported()`** static method checks if a given MIME type can be decoded by the user agent.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ImageDecoder/isTypeSupported_static)\n */\n isTypeSupported(type: string): Promise<boolean>;\n};\n\n/**\n * The **`ImageTrack`** interface of the WebCodecs API represents an individual image track.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ImageTrack)\n */\ninterface ImageTrack {\n /**\n * The **`animated`** property of the ImageTrack interface returns `true` if the track is animated and therefore has multiple frames.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ImageTrack/animated)\n */\n readonly animated: boolean;\n /**\n * The **`frameCount`** property of the ImageTrack interface returns the number of frames in the track.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ImageTrack/frameCount)\n */\n readonly frameCount: number;\n /**\n * The **`repetitionCount`** property of the ImageTrack interface returns the number of repetitions of this track.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ImageTrack/repetitionCount)\n */\n readonly repetitionCount: number;\n /**\n * The **`selected`** property of the ImageTrack interface returns `true` if the track is selected for decoding.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ImageTrack/selected)\n */\n selected: boolean;\n}\n\ndeclare var ImageTrack: {\n prototype: ImageTrack;\n new(): ImageTrack;\n};\n\n/**\n * The **`ImageTrackList`** interface of the WebCodecs API represents a list of image tracks.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ImageTrackList)\n */\ninterface ImageTrackList {\n /**\n * The **`length`** property of the ImageTrackList interface returns the length of the `ImageTrackList`.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ImageTrackList/length)\n */\n readonly length: number;\n /**\n * The **`ready`** property of the ImageTrackList interface returns a Promise that resolves when the `ImageTrackList` is populated with ImageTrack.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ImageTrackList/ready)\n */\n readonly ready: Promise<void>;\n /**\n * The **`selectedIndex`** property of the ImageTrackList interface returns the `index` of the selected track.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ImageTrackList/selectedIndex)\n */\n readonly selectedIndex: number;\n /**\n * The **`selectedTrack`** property of the ImageTrackList interface returns an ImageTrack object representing the currently selected track.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ImageTrackList/selectedTrack)\n */\n readonly selectedTrack: ImageTrack | null;\n [index: number]: ImageTrack;\n}\n\ndeclare var ImageTrackList: {\n prototype: ImageTrackList;\n new(): ImageTrackList;\n};\n\ninterface ImportMeta {\n url: string;\n resolve(specifier: string): string;\n}\n\n/**\n * The **`InputDeviceInfo`** interface of the Media Capture and Streams API gives access to the capabilities of the input device that it represents.\n * Available only in secure contexts.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/InputDeviceInfo)\n */\ninterface InputDeviceInfo extends MediaDeviceInfo {\n /**\n * The **`getCapabilities()`** method of the InputDeviceInfo interface returns a `MediaTrackCapabilities` object describing the primary audio or video track of the device\'s MediaStream.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/InputDeviceInfo/getCapabilities)\n */\n getCapabilities(): MediaTrackCapabilities;\n}\n\ndeclare var InputDeviceInfo: {\n prototype: InputDeviceInfo;\n new(): InputDeviceInfo;\n};\n\n/**\n * The **`InputEvent`** interface represents an event notifying the user of editable content changes.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/InputEvent)\n */\ninterface InputEvent extends UIEvent {\n /**\n * The **`data`** read-only property of the characters.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/InputEvent/data)\n */\n readonly data: string | null;\n /**\n * The **`dataTransfer`** read-only property of the containing information about richtext or plaintext data being added to or removed from editable content.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/InputEvent/dataTransfer)\n */\n readonly dataTransfer: DataTransfer | null;\n /**\n * The **`inputType`** read-only property of the Possible changes include for example inserting, deleting, and formatting text.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/InputEvent/inputType)\n */\n readonly inputType: string;\n /**\n * The **`InputEvent.isComposing`** read-only property returns a boolean value indicating if the event is fired after A boolean.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/InputEvent/isComposing)\n */\n readonly isComposing: boolean;\n /**\n * The **`getTargetRanges()`** method of the InputEvent interface returns an array of StaticRange objects that will be affected by a change to the DOM if the input event is not canceled.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/InputEvent/getTargetRanges)\n */\n getTargetRanges(): StaticRange[];\n}\n\ndeclare var InputEvent: {\n prototype: InputEvent;\n new(type: string, eventInitDict?: InputEventInit): InputEvent;\n};\n\n/**\n * The **`IntersectionObserver`** interface of the Intersection Observer API 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.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/IntersectionObserver)\n */\ninterface IntersectionObserver {\n /**\n * The IntersectionObserver interface\'s read-only **`root`** property identifies the Element or of the viewport for the element which is the observer\'s target.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/IntersectionObserver/root)\n */\n readonly root: Element | Document | null;\n /**\n * The IntersectionObserver interface\'s read-only **`rootMargin`** property is a string with syntax similar to that of the CSS margin property.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/IntersectionObserver/rootMargin)\n */\n readonly rootMargin: string;\n /**\n * The IntersectionObserver interface\'s read-only **`thresholds`** property returns the list of intersection thresholds that was specified when the observer was instantiated with only one threshold ratio was provided when instantiating the object, this will be an array containing that single value.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/IntersectionObserver/thresholds)\n */\n readonly thresholds: ReadonlyArray<number>;\n /**\n * The IntersectionObserver method **`disconnect()`** stops watching all of its target elements for visibility changes.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/IntersectionObserver/disconnect)\n */\n disconnect(): void;\n /**\n * The IntersectionObserver method **`observe()`** adds an element to the set of target elements being watched by the `IntersectionObserver`.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/IntersectionObserver/observe)\n */\n observe(target: Element): void;\n /**\n * The IntersectionObserver method **`takeRecords()`** returns an array of has experienced an intersection change since the last time the intersections were checked, either explicitly through a call to this method or implicitly by an automatic call to the observer\'s callback.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/IntersectionObserver/takeRecords)\n */\n takeRecords(): IntersectionObserverEntry[];\n /**\n * The IntersectionObserver method **`unobserve()`** instructs the `IntersectionObserver` to stop observing the specified target element.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/IntersectionObserver/unobserve)\n */\n unobserve(target: Element): void;\n}\n\ndeclare var IntersectionObserver: {\n prototype: IntersectionObserver;\n new(callback: IntersectionObserverCallback, options?: IntersectionObserverInit): IntersectionObserver;\n};\n\n/**\n * The **`IntersectionObserverEntry`** interface of the Intersection Observer API describes the intersection between the target element and its root container at a specific moment of transition.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/IntersectionObserverEntry)\n */\ninterface IntersectionObserverEntry {\n /**\n * The IntersectionObserverEntry interface\'s read-only **`boundingClientRect`** property returns a smallest rectangle that contains the entire target element.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/IntersectionObserverEntry/boundingClientRect)\n */\n readonly boundingClientRect: DOMRectReadOnly;\n /**\n * The IntersectionObserverEntry interface\'s read-only **`intersectionRatio`** property tells you how much of the target element is currently visible within the root\'s intersection ratio, as a value between 0.0 and 1.0.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/IntersectionObserverEntry/intersectionRatio)\n */\n readonly intersectionRatio: number;\n /**\n * The IntersectionObserverEntry interface\'s read-only **`intersectionRect`** property is a contains the entire portion of the target element which is currently visible within the intersection root.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/IntersectionObserverEntry/intersectionRect)\n */\n readonly intersectionRect: DOMRectReadOnly;\n /**\n * The IntersectionObserverEntry interface\'s read-only **`isIntersecting`** property is a Boolean value which is `true` if the target element intersects with the intersection observer\'s root.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/IntersectionObserverEntry/isIntersecting)\n */\n readonly isIntersecting: boolean;\n /**\n * The IntersectionObserverEntry interface\'s read-only **`rootBounds`** property is a rectangle, offset by the IntersectionObserver.rootMargin if one is specified.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/IntersectionObserverEntry/rootBounds)\n */\n readonly rootBounds: DOMRectReadOnly | null;\n /**\n * The IntersectionObserverEntry interface\'s read-only **`target`** property indicates which targeted root.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/IntersectionObserverEntry/target)\n */\n readonly target: Element;\n /**\n * The IntersectionObserverEntry interface\'s read-only **`time`** property is a change occurred relative to the time at which the document was created.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/IntersectionObserverEntry/time)\n */\n readonly time: DOMHighResTimeStamp;\n}\n\ndeclare var IntersectionObserverEntry: {\n prototype: IntersectionObserverEntry;\n new(): IntersectionObserverEntry;\n};\n\n/**\n * The **`KHR_parallel_shader_compile`** extension is part of the WebGL API and enables a non-blocking poll operation, so that compile/link status availability (`COMPLETION_STATUS_KHR`) can be queried without potentially incurring stalls.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/KHR_parallel_shader_compile)\n */\ninterface KHR_parallel_shader_compile {\n readonly COMPLETION_STATUS_KHR: 0x91B1;\n}\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.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/KeyboardEvent)\n */\ninterface KeyboardEvent extends UIEvent {\n /**\n * The **`KeyboardEvent.altKey`** read-only property is a boolean value that indicates if the <kbd>alt</kbd> key (<kbd>Option</kbd> or <kbd>⌥</kbd> on macOS) was pressed (`true`) or not (`false`) when the event occurred.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/KeyboardEvent/altKey)\n */\n readonly altKey: boolean;\n /**\n * The **`charCode`** read-only property of the pressed during a Element/keypress_event event.\n * @deprecated\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/KeyboardEvent/charCode)\n */\n readonly charCode: number;\n /**\n * The `KeyboardEvent.code` property represents a physical key on the keyboard (as opposed to the character generated by pressing the key).\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/KeyboardEvent/code)\n */\n readonly code: string;\n /**\n * The **`KeyboardEvent.ctrlKey`** read-only property returns a boolean value that indicates if the <kbd>control</kbd> key was pressed (`true`) or not (`false`) when the event occurred.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/KeyboardEvent/ctrlKey)\n */\n readonly ctrlKey: boolean;\n /**\n * The **`KeyboardEvent.isComposing`** read-only property returns a boolean value indicating if the event is fired within a composition session, i.e., after Element/compositionstart_event and before Element/compositionend_event.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/KeyboardEvent/isComposing)\n */\n readonly isComposing: boolean;\n /**\n * The KeyboardEvent interface\'s **`key`** read-only property returns the value of the key pressed by the user, taking into consideration the state of modifier keys such as <kbd>Shift</kbd> as well as the keyboard locale and layout.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/KeyboardEvent/key)\n */\n readonly key: string;\n /**\n * The deprecated **`KeyboardEvent.keyCode`** read-only property represents a system and implementation dependent numerical code identifying the unmodified value of the pressed key.\n * @deprecated\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/KeyboardEvent/keyCode)\n */\n readonly keyCode: number;\n /**\n * The **`KeyboardEvent.location`** read-only property returns an `unsigned long` representing the location of the key on the keyboard or other input device.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/KeyboardEvent/location)\n */\n readonly location: number;\n /**\n * The **`KeyboardEvent.metaKey`** read-only property returning a boolean value that indicates if the <kbd>Meta</kbd> key was pressed (`true`) or not (`false`) when the event occurred.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/KeyboardEvent/metaKey)\n */\n readonly metaKey: boolean;\n /**\n * The **`repeat`** read-only property of the `true` if the given key is being held down such that it is automatically repeating.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/KeyboardEvent/repeat)\n */\n readonly repeat: boolean;\n /**\n * The **`KeyboardEvent.shiftKey`** read-only property is a boolean value that indicates if the <kbd>shift</kbd> key was pressed (`true`) or not (`false`) when the event occurred.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/KeyboardEvent/shiftKey)\n */\n readonly shiftKey: boolean;\n /**\n * The **`KeyboardEvent.getModifierState()`** method returns the current state of the specified modifier key: `true` if the modifier is active (that is the modifier key is pressed or locked), otherwise, `false`.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/KeyboardEvent/getModifierState)\n */\n getModifierState(keyArg: string): boolean;\n /**\n * The **`KeyboardEvent.initKeyboardEvent()`** method initializes the attributes of a keyboard event object.\n * @deprecated\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/KeyboardEvent/initKeyboardEvent)\n */\n initKeyboardEvent(typeArg: string, bubblesArg?: boolean, cancelableArg?: boolean, viewArg?: Window | null, keyArg?: string, locationArg?: number, ctrlKey?: boolean, altKey?: boolean, shiftKey?: boolean, metaKey?: boolean): void;\n readonly DOM_KEY_LOCATION_STANDARD: 0x00;\n readonly DOM_KEY_LOCATION_LEFT: 0x01;\n readonly DOM_KEY_LOCATION_RIGHT: 0x02;\n readonly DOM_KEY_LOCATION_NUMPAD: 0x03;\n}\n\ndeclare var KeyboardEvent: {\n prototype: KeyboardEvent;\n new(type: string, eventInitDict?: KeyboardEventInit): KeyboardEvent;\n readonly DOM_KEY_LOCATION_STANDARD: 0x00;\n readonly DOM_KEY_LOCATION_LEFT: 0x01;\n readonly DOM_KEY_LOCATION_RIGHT: 0x02;\n readonly DOM_KEY_LOCATION_NUMPAD: 0x03;\n};\n\n/**\n * The **`KeyframeEffect`** interface of the Web Animations API lets us create sets of animatable properties and values, called **keyframes.** These can then be played using the Animation.Animation constructor.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/KeyframeEffect)\n */\ninterface KeyframeEffect extends AnimationEffect {\n /**\n * The **`composite`** property of a KeyframeEffect resolves how an element\'s animation impacts its underlying property values.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/KeyframeEffect/composite)\n */\n composite: CompositeOperation;\n /**\n * The **`iterationComposite`** property of a KeyframeEffect resolves how the animation\'s property value changes accumulate or override each other upon each of the animation\'s iterations.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/KeyframeEffect/iterationComposite)\n */\n iterationComposite: IterationCompositeOperation;\n /**\n * The **`pseudoElement`** property of a KeyframeEffect interface is a string representing the pseudo-element being animated.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/KeyframeEffect/pseudoElement)\n */\n pseudoElement: string | null;\n /**\n * The **`target`** property of a KeyframeEffect interface represents the element or pseudo-element being animated.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/KeyframeEffect/target)\n */\n target: Element | null;\n /**\n * The **`getKeyframes()`** method of a KeyframeEffect returns an Array of the computed keyframes that make up this animation along with their computed offsets.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/KeyframeEffect/getKeyframes)\n */\n getKeyframes(): ComputedKeyframe[];\n /**\n * The **`setKeyframes()`** method of the KeyframeEffect interface replaces the keyframes that make up the affected `KeyframeEffect` with a new set of keyframes.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/KeyframeEffect/setKeyframes)\n */\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\n/**\n * The `LargestContentfulPaint` interface provides timing information about the largest image or text paint before user input on a web page.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/LargestContentfulPaint)\n */\ninterface LargestContentfulPaint extends PerformanceEntry {\n /**\n * The **`element`** read-only property of the LargestContentfulPaint interface returns an object representing the Element that is the largest contentful paint.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/LargestContentfulPaint/element)\n */\n readonly element: Element | null;\n /**\n * The **`id`** read-only property of the LargestContentfulPaint interface returns the ID of the element that is the largest contentful paint.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/LargestContentfulPaint/id)\n */\n readonly id: string;\n /**\n * The **`loadTime`** read-only property of the LargestContentfulPaint interface returns the time that the element was loaded.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/LargestContentfulPaint/loadTime)\n */\n readonly loadTime: DOMHighResTimeStamp;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/LargestContentfulPaint/renderTime) */\n readonly renderTime: DOMHighResTimeStamp;\n /**\n * The **`size`** read-only property of the LargestContentfulPaint interface returns the intrinsic size of the element that is the largest contentful paint.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/LargestContentfulPaint/size)\n */\n readonly size: number;\n /**\n * The **`url`** read-only property of the LargestContentfulPaint interface returns the request URL of the element, if the element is an image.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/LargestContentfulPaint/url)\n */\n readonly url: string;\n /**\n * The **`toJSON()`** method of the LargestContentfulPaint interface is a Serialization; it returns a JSON representation of the LargestContentfulPaint object.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/LargestContentfulPaint/toJSON)\n */\n toJSON(): any;\n}\n\ndeclare var LargestContentfulPaint: {\n prototype: LargestContentfulPaint;\n new(): LargestContentfulPaint;\n};\n\ninterface LinkStyle {\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLLinkElement/sheet) */\n readonly sheet: CSSStyleSheet | null;\n}\n\n/**\n * The **`Location`** interface represents the location (URL) of the object it is linked to.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Location)\n */\ninterface Location {\n /**\n * The **`ancestorOrigins`** read-only property of the Location interface is a static browsing contexts of the document associated with the given Location object.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Location/ancestorOrigins)\n */\n readonly ancestorOrigins: DOMStringList;\n /**\n * The **`hash`** property of the Location interface is a string containing a `\'#\'` followed by the fragment identifier of the location URL.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Location/hash)\n */\n hash: string;\n /**\n * The **`host`** property of the Location interface is a string containing the host, which is the Location.hostname, and then, if the port of the URL is nonempty, a `\':\'`, followed by the Location.port of the URL.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Location/host)\n */\n host: string;\n /**\n * The **`hostname`** property of the Location interface is a string containing either the domain name or IP address of the location URL.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Location/hostname)\n */\n hostname: string;\n /**\n * The **`href`** property of the Location interface is a stringifier that returns a string containing the whole URL, and allows the href to be updated.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Location/href)\n */\n href: string;\n toString(): string;\n /**\n * The **`origin`** read-only property of the Location interface returns a string containing the Unicode serialization of the origin of the location\'s URL.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Location/origin)\n */\n readonly origin: string;\n /**\n * The **`pathname`** property of the Location interface is a string containing the path of the URL for the location.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Location/pathname)\n */\n pathname: string;\n /**\n * The **`port`** property of the Location interface is a string containing the port number of the location\'s URL.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Location/port)\n */\n port: string;\n /**\n * The **`protocol`** property of the Location interface is a string containing the protocol or scheme of the location\'s URL, including the final `\':\'`.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Location/protocol)\n */\n protocol: string;\n /**\n * The **`search`** property of the Location interface is a search string, also called a _query string_, that is a string containing a `\'?\'` followed by the parameters of the location\'s URL.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Location/search)\n */\n search: string;\n /**\n * The **`assign()`** method of the Location interface causes the window to load and display the document at the URL specified.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Location/assign)\n */\n assign(url: string | URL): void;\n /**\n * The **`reload()`** method of the Location interface reloads the current URL, like the Refresh button.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Location/reload)\n */\n reload(): void;\n /**\n * The **`replace()`** method of the Location interface replaces the current resource with the one at the provided URL.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Location/replace)\n */\n replace(url: string | URL): void;\n}\n\ndeclare var Location: {\n prototype: Location;\n new(): Location;\n};\n\n/**\n * The **`Lock`** interface of the Web Locks API provides the name and mode of a lock.\n * Available only in secure contexts.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Lock)\n */\ninterface Lock {\n /**\n * The **`mode`** read-only property of the Lock interface returns the access mode passed to LockManager.request() when the lock was requested.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Lock/mode)\n */\n readonly mode: LockMode;\n /**\n * The **`name`** read-only property of the Lock interface returns the _name_ passed to The name of a lock is passed by script when the lock is requested.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Lock/name)\n */\n readonly name: string;\n}\n\ndeclare var Lock: {\n prototype: Lock;\n new(): Lock;\n};\n\n/**\n * The **`LockManager`** interface of the Web Locks API provides methods for requesting a new Lock object and querying for an existing `Lock` object.\n * Available only in secure contexts.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/LockManager)\n */\ninterface LockManager {\n /**\n * The **`query()`** method of the LockManager interface returns a Promise that resolves with an object containing information about held and pending locks.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/LockManager/query)\n */\n query(): Promise<LockManagerSnapshot>;\n /**\n * The **`request()`** method of the LockManager interface requests a Lock object with parameters specifying its name and characteristics.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/LockManager/request)\n */\n request<T>(name: string, callback: LockGrantedCallback<T>): Promise<T>;\n request<T>(name: string, options: LockOptions, callback: LockGrantedCallback<T>): Promise<T>;\n}\n\ndeclare var LockManager: {\n prototype: LockManager;\n new(): LockManager;\n};\n\ninterface MIDIAccessEventMap {\n "statechange": MIDIConnectionEvent;\n}\n\n/**\n * The **`MIDIAccess`** interface of the Web MIDI API provides methods for listing MIDI input and output devices, and obtaining access to those devices.\n * Available only in secure contexts.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/MIDIAccess)\n */\ninterface MIDIAccess extends EventTarget {\n /**\n * The **`inputs`** read-only property of the MIDIAccess interface provides access to any available MIDI input ports.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/MIDIAccess/inputs)\n */\n readonly inputs: MIDIInputMap;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MIDIAccess/statechange_event) */\n onstatechange: ((this: MIDIAccess, ev: MIDIConnectionEvent) => any) | null;\n /**\n * The **`outputs`** read-only property of the MIDIAccess interface provides access to any available MIDI output ports.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/MIDIAccess/outputs)\n */\n readonly outputs: MIDIOutputMap;\n /**\n * The **`sysexEnabled`** read-only property of the MIDIAccess interface indicates whether system exclusive support is enabled on the current MIDIAccess instance.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/MIDIAccess/sysexEnabled)\n */\n readonly sysexEnabled: boolean;\n addEventListener<K extends keyof MIDIAccessEventMap>(type: K, listener: (this: MIDIAccess, ev: MIDIAccessEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n removeEventListener<K extends keyof MIDIAccessEventMap>(type: K, listener: (this: MIDIAccess, ev: MIDIAccessEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\ndeclare var MIDIAccess: {\n prototype: MIDIAccess;\n new(): MIDIAccess;\n};\n\n/**\n * The **`MIDIConnectionEvent`** interface of the Web MIDI API is the event passed to the MIDIAccess.statechange_event event of the MIDIAccess interface and the MIDIPort.statechange_event event of the MIDIPort interface.\n * Available only in secure contexts.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/MIDIConnectionEvent)\n */\ninterface MIDIConnectionEvent extends Event {\n /**\n * The **`port`** read-only property of the MIDIConnectionEvent interface returns the port that has been disconnected or connected.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/MIDIConnectionEvent/port)\n */\n readonly port: MIDIPort | null;\n}\n\ndeclare var MIDIConnectionEvent: {\n prototype: MIDIConnectionEvent;\n new(type: string, eventInitDict?: MIDIConnectionEventInit): MIDIConnectionEvent;\n};\n\ninterface MIDIInputEventMap extends MIDIPortEventMap {\n "midimessage": MIDIMessageEvent;\n}\n\n/**\n * The **`MIDIInput`** interface of the Web MIDI API receives messages from a MIDI input port.\n * Available only in secure contexts.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/MIDIInput)\n */\ninterface MIDIInput extends MIDIPort {\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MIDIInput/midimessage_event) */\n onmidimessage: ((this: MIDIInput, ev: MIDIMessageEvent) => any) | null;\n addEventListener<K extends keyof MIDIInputEventMap>(type: K, listener: (this: MIDIInput, ev: MIDIInputEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n removeEventListener<K extends keyof MIDIInputEventMap>(type: K, listener: (this: MIDIInput, ev: MIDIInputEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\ndeclare var MIDIInput: {\n prototype: MIDIInput;\n new(): MIDIInput;\n};\n\n/**\n * The **`MIDIInputMap`** read-only interface of the Web MIDI API provides the set of MIDI input ports that are currently available.\n * Available only in secure contexts.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/MIDIInputMap)\n */\ninterface MIDIInputMap {\n forEach(callbackfn: (value: MIDIInput, key: string, parent: MIDIInputMap) => void, thisArg?: any): void;\n}\n\ndeclare var MIDIInputMap: {\n prototype: MIDIInputMap;\n new(): MIDIInputMap;\n};\n\n/**\n * The **`MIDIMessageEvent`** interface of the Web MIDI API represents the event passed to the MIDIInput.midimessage_event event of the MIDIInput interface.\n * Available only in secure contexts.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/MIDIMessageEvent)\n */\ninterface MIDIMessageEvent extends Event {\n /**\n * The **`data`** read-only property of the MIDIMessageEvent interface returns the MIDI data bytes of a single MIDI message.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/MIDIMessageEvent/data)\n */\n readonly data: Uint8Array<ArrayBuffer> | null;\n}\n\ndeclare var MIDIMessageEvent: {\n prototype: MIDIMessageEvent;\n new(type: string, eventInitDict?: MIDIMessageEventInit): MIDIMessageEvent;\n};\n\n/**\n * The **`MIDIOutput`** interface of the Web MIDI API provides methods to add messages to the queue of an output device, and to clear the queue of messages.\n * Available only in secure contexts.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/MIDIOutput)\n */\ninterface MIDIOutput extends MIDIPort {\n /**\n * The **`send()`** method of the MIDIOutput interface queues messages for the corresponding MIDI port.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/MIDIOutput/send)\n */\n send(data: number[], timestamp?: DOMHighResTimeStamp): void;\n addEventListener<K extends keyof MIDIPortEventMap>(type: K, listener: (this: MIDIOutput, ev: MIDIPortEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n removeEventListener<K extends keyof MIDIPortEventMap>(type: K, listener: (this: MIDIOutput, ev: MIDIPortEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\ndeclare var MIDIOutput: {\n prototype: MIDIOutput;\n new(): MIDIOutput;\n};\n\n/**\n * The **`MIDIOutputMap`** read-only interface of the Web MIDI API provides the set of MIDI output ports that are currently available.\n * Available only in secure contexts.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/MIDIOutputMap)\n */\ninterface MIDIOutputMap {\n forEach(callbackfn: (value: MIDIOutput, key: string, parent: MIDIOutputMap) => void, thisArg?: any): void;\n}\n\ndeclare var MIDIOutputMap: {\n prototype: MIDIOutputMap;\n new(): MIDIOutputMap;\n};\n\ninterface MIDIPortEventMap {\n "statechange": MIDIConnectionEvent;\n}\n\n/**\n * The **`MIDIPort`** interface of the Web MIDI API represents a MIDI input or output port.\n * Available only in secure contexts.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/MIDIPort)\n */\ninterface MIDIPort extends EventTarget {\n /**\n * The **`connection`** read-only property of the MIDIPort interface returns the connection state of the port.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/MIDIPort/connection)\n */\n readonly connection: MIDIPortConnectionState;\n /**\n * The **`id`** read-only property of the MIDIPort interface returns the unique ID of the port.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/MIDIPort/id)\n */\n readonly id: string;\n /**\n * The **`manufacturer`** read-only property of the MIDIPort interface returns the manufacturer of the port.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/MIDIPort/manufacturer)\n */\n readonly manufacturer: string | null;\n /**\n * The **`name`** read-only property of the MIDIPort interface returns the system name of the port.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/MIDIPort/name)\n */\n readonly name: string | null;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MIDIPort/statechange_event) */\n onstatechange: ((this: MIDIPort, ev: MIDIConnectionEvent) => any) | null;\n /**\n * The **`state`** read-only property of the MIDIPort interface returns the state of the port.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/MIDIPort/state)\n */\n readonly state: MIDIPortDeviceState;\n /**\n * The **`type`** read-only property of the MIDIPort interface returns the type of the port, indicating whether this is an input or output MIDI port.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/MIDIPort/type)\n */\n readonly type: MIDIPortType;\n /**\n * The **`version`** read-only property of the MIDIPort interface returns the version of the port.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/MIDIPort/version)\n */\n readonly version: string | null;\n /**\n * The **`close()`** method of the MIDIPort interface makes the access to the MIDI device connected to this `MIDIPort` unavailable.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/MIDIPort/close)\n */\n close(): Promise<MIDIPort>;\n /**\n * The **`open()`** method of the MIDIPort interface makes the MIDI device connected to this `MIDIPort` explicitly available.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/MIDIPort/open)\n */\n open(): Promise<MIDIPort>;\n addEventListener<K extends keyof MIDIPortEventMap>(type: K, listener: (this: MIDIPort, ev: MIDIPortEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n removeEventListener<K extends keyof MIDIPortEventMap>(type: K, listener: (this: MIDIPort, ev: MIDIPortEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\ndeclare var MIDIPort: {\n prototype: MIDIPort;\n new(): MIDIPort;\n};\n\ninterface MathMLElementEventMap extends ElementEventMap, GlobalEventHandlersEventMap {\n}\n\n/**\n * The **`MathMLElement`** interface represents any MathML element.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/MathMLElement)\n */\ninterface MathMLElement extends Element, ElementCSSInlineStyle, GlobalEventHandlers, HTMLOrSVGElement {\n addEventListener<K extends keyof MathMLElementEventMap>(type: K, listener: (this: MathMLElement, ev: MathMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n removeEventListener<K extends keyof MathMLElementEventMap>(type: K, listener: (this: MathMLElement, ev: MathMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\ndeclare var MathMLElement: {\n prototype: MathMLElement;\n new(): MathMLElement;\n};\n\n/**\n * The **`MediaCapabilities`** interface of the Media Capabilities API provides information about the decoding abilities of the device, system and browser.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaCapabilities)\n */\ninterface MediaCapabilities {\n /**\n * The **`decodingInfo()`** method of the MediaCapabilities interface returns a promise that fulfils with information about how well the user agent can decode/display media with a given configuration.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaCapabilities/decodingInfo)\n */\n decodingInfo(configuration: MediaDecodingConfiguration): Promise<MediaCapabilitiesDecodingInfo>;\n /**\n * The **`encodingInfo()`** method of the MediaCapabilities interface returns a promise that fulfills with the tested media configuration\'s capabilities for encoding media.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaCapabilities/encodingInfo)\n */\n encodingInfo(configuration: MediaEncodingConfiguration): Promise<MediaCapabilitiesEncodingInfo>;\n}\n\ndeclare var MediaCapabilities: {\n prototype: MediaCapabilities;\n new(): MediaCapabilities;\n};\n\n/**\n * The **`MediaDeviceInfo`** interface of the Media Capture and Streams API contains information that describes a single media input or output device.\n * Available only in secure contexts.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaDeviceInfo)\n */\ninterface MediaDeviceInfo {\n /**\n * The **`deviceId`** read-only property of the MediaDeviceInfo interface returns a string that is an identifier for the represented device and is persisted across sessions.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaDeviceInfo/deviceId)\n */\n readonly deviceId: string;\n /**\n * The **`groupId`** read-only property of the MediaDeviceInfo interface returns a string that is a group identifier.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaDeviceInfo/groupId)\n */\n readonly groupId: string;\n /**\n * The **`kind`** read-only property of the MediaDeviceInfo interface returns an enumerated value, that is either `\'videoinput\'`, `\'audioinput\'` or `\'audiooutput\'`.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaDeviceInfo/kind)\n */\n readonly kind: MediaDeviceKind;\n /**\n * The **`label`** read-only property of the MediaDeviceInfo interface returns a string describing this device (for example \'External USB Webcam\').\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaDeviceInfo/label)\n */\n readonly label: string;\n /**\n * The **`toJSON()`** method of the MediaDeviceInfo interface is a Serialization; it returns a JSON representation of the MediaDeviceInfo object.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaDeviceInfo/toJSON)\n */\n toJSON(): any;\n}\n\ndeclare var MediaDeviceInfo: {\n prototype: MediaDeviceInfo;\n new(): MediaDeviceInfo;\n};\n\ninterface MediaDevicesEventMap {\n "devicechange": Event;\n}\n\n/**\n * The **`MediaDevices`** interface of the Media Capture and Streams API provides access to connected media input devices like cameras and microphones, as well as screen sharing.\n * Available only in secure contexts.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaDevices)\n */\ninterface MediaDevices extends EventTarget {\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaDevices/devicechange_event) */\n ondevicechange: ((this: MediaDevices, ev: Event) => any) | null;\n /**\n * The **`enumerateDevices()`** method of the MediaDevices interface requests a list of the currently available media input and output devices, such as microphones, cameras, headsets, and so forth.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaDevices/enumerateDevices)\n */\n enumerateDevices(): Promise<MediaDeviceInfo[]>;\n /**\n * The **`getDisplayMedia()`** method of the MediaDevices interface prompts the user to select and grant permission to capture the contents of a display or portion thereof (such as a window) as a MediaStream.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaDevices/getDisplayMedia)\n */\n getDisplayMedia(options?: DisplayMediaStreamOptions): Promise<MediaStream>;\n /**\n * The **`getSupportedConstraints()`** method of the MediaDevices interface returns an object based on the MediaTrackSupportedConstraints dictionary, whose member fields each specify one of the constrainable properties the user agent understands.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaDevices/getSupportedConstraints)\n */\n getSupportedConstraints(): MediaTrackSupportedConstraints;\n /**\n * The **`getUserMedia()`** method of the MediaDevices interface prompts the user for permission to use a media input which produces a MediaStream with tracks containing the requested types of media.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaDevices/getUserMedia)\n */\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/**\n * The `MediaElementAudioSourceNode` interface represents an audio source consisting of an HTML audio or video element.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaElementAudioSourceNode)\n */\ninterface MediaElementAudioSourceNode extends AudioNode {\n /**\n * The MediaElementAudioSourceNode interface\'s read-only **`mediaElement`** property indicates the receiving audio.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaElementAudioSourceNode/mediaElement)\n */\n readonly mediaElement: HTMLMediaElement;\n}\n\ndeclare var MediaElementAudioSourceNode: {\n prototype: MediaElementAudioSourceNode;\n new(context: AudioContext, options: MediaElementAudioSourceOptions): MediaElementAudioSourceNode;\n};\n\n/**\n * The **`MediaEncryptedEvent`** interface of the Encrypted Media Extensions API contains the information associated with an HTMLMediaElement/encrypted_event event sent to a HTMLMediaElement when some initialization data is encountered in the media.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaEncryptedEvent)\n */\ninterface MediaEncryptedEvent extends Event {\n /**\n * The read-only **`initData`** property of the MediaKeyMessageEvent returns the initialization data contained in this event, if any.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaEncryptedEvent/initData)\n */\n readonly initData: ArrayBuffer | null;\n /**\n * The read-only **`initDataType`** property of the MediaKeyMessageEvent returns a case-sensitive string describing the type of the initialization data associated with this event.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaEncryptedEvent/initDataType)\n */\n readonly initDataType: string;\n}\n\ndeclare var MediaEncryptedEvent: {\n prototype: MediaEncryptedEvent;\n new(type: string, eventInitDict?: MediaEncryptedEventInit): MediaEncryptedEvent;\n};\n\n/**\n * The **`MediaError`** interface represents an error which occurred while handling media in an HTML media element based on HTMLMediaElement, such as audio or video.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaError)\n */\ninterface MediaError {\n /**\n * The read-only property **`MediaError.code`** returns a numeric value which represents the kind of error that occurred on a media element.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaError/code)\n */\n readonly code: number;\n /**\n * The read-only property **`MediaError.message`** returns a human-readable string offering specific diagnostic details related to the error described by the `MediaError` object, or an empty string (`\'\'`) if no diagnostic information can be determined or provided.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaError/message)\n */\n readonly message: string;\n readonly MEDIA_ERR_ABORTED: 1;\n readonly MEDIA_ERR_NETWORK: 2;\n readonly MEDIA_ERR_DECODE: 3;\n readonly MEDIA_ERR_SRC_NOT_SUPPORTED: 4;\n}\n\ndeclare var MediaError: {\n prototype: MediaError;\n new(): MediaError;\n readonly MEDIA_ERR_ABORTED: 1;\n readonly MEDIA_ERR_NETWORK: 2;\n readonly MEDIA_ERR_DECODE: 3;\n readonly MEDIA_ERR_SRC_NOT_SUPPORTED: 4;\n};\n\n/**\n * The **`MediaKeyMessageEvent`** interface of the Encrypted Media Extensions API contains the content and related data when the content decryption module generates a message for the session.\n * Available only in secure contexts.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaKeyMessageEvent)\n */\ninterface MediaKeyMessageEvent extends Event {\n /**\n * The **`MediaKeyMessageEvent.message`** read-only property returns an ArrayBuffer with a message from the content decryption module.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaKeyMessageEvent/message)\n */\n readonly message: ArrayBuffer;\n /**\n * The **`MediaKeyMessageEvent.messageType`** read-only property indicates the type of message.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaKeyMessageEvent/messageType)\n */\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": MediaKeyMessageEvent;\n}\n\n/**\n * The **`MediaKeySession`** interface of the Encrypted Media Extensions API represents a context for message exchange with a content decryption module (CDM).\n * Available only in secure contexts.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaKeySession)\n */\ninterface MediaKeySession extends EventTarget {\n /**\n * The **`closed`** read-only property of the MediaKeySession interface returns a Promise signaling when a MediaKeySession closes.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaKeySession/closed)\n */\n readonly closed: Promise<MediaKeySessionClosedReason>;\n /**\n * The **`expiration`** read-only property of the MediaKeySession interface returns the time after which the keys in the current session can no longer be used to decrypt media data, or NaN if no such time exists.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaKeySession/expiration)\n */\n readonly expiration: number;\n /**\n * The **`keyStatuses`** read-only property of the MediaKeySession interface returns a reference to a read-only MediaKeyStatusMap of the current session\'s keys and their statuses.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaKeySession/keyStatuses)\n */\n readonly keyStatuses: MediaKeyStatusMap;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaKeySession/keystatuseschange_event) */\n onkeystatuseschange: ((this: MediaKeySession, ev: Event) => any) | null;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaKeySession/message_event) */\n onmessage: ((this: MediaKeySession, ev: MediaKeyMessageEvent) => any) | null;\n /**\n * The **`sessionId`** read-only property of the MediaKeySession interface contains a unique string generated by the content decryption module (CDM) for the current media object and its associated keys or licenses.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaKeySession/sessionId)\n */\n readonly sessionId: string;\n /**\n * The `close()` method of the MediaKeySession interface notifies that the current media session is no longer needed, and that the content decryption module should release any resources associated with this object and close it.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaKeySession/close)\n */\n close(): Promise<void>;\n /**\n * The `generateRequest()` method of the MediaKeySession interface returns a Promise after generating a license request based on initialization data.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaKeySession/generateRequest)\n */\n generateRequest(initDataType: string, initData: BufferSource): Promise<void>;\n /**\n * The `load()` method of the MediaKeySession interface returns a Promise that resolves to a boolean value after loading data for a specified session object.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaKeySession/load)\n */\n load(sessionId: string): Promise<boolean>;\n /**\n * The `remove()` method of the MediaKeySession interface returns a Promise after removing any session data associated with the current object.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaKeySession/remove)\n */\n remove(): Promise<void>;\n /**\n * The `update()` method of the MediaKeySession interface loads messages and licenses to the CDM, and then returns a Promise.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaKeySession/update)\n */\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/**\n * The **`MediaKeyStatusMap`** interface of the Encrypted Media Extensions API is a read-only map of media key statuses by key IDs.\n * Available only in secure contexts.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaKeyStatusMap)\n */\ninterface MediaKeyStatusMap {\n /**\n * The **`size`** read-only property of the MediaKeyStatusMap interface returns the number of key/value paIrs in the status map.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaKeyStatusMap/size)\n */\n readonly size: number;\n /**\n * The **`get()`** method of the MediaKeyStatusMap interface returns the status value associated with the given key, or `undefined` if there is none.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaKeyStatusMap/get)\n */\n get(keyId: BufferSource): MediaKeyStatus | undefined;\n /**\n * The **`has()`** method of the whether a value has been associated with the given key.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaKeyStatusMap/has)\n */\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/**\n * The **`MediaKeySystemAccess`** interface of the Encrypted Media Extensions API provides access to a Key System for decryption and/or a content protection provider.\n * Available only in secure contexts.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaKeySystemAccess)\n */\ninterface MediaKeySystemAccess {\n /**\n * The **`keySystem`** read-only property of the MediaKeySystemAccess interface returns a string identifying the key system being used.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaKeySystemAccess/keySystem)\n */\n readonly keySystem: string;\n /**\n * The `MediaKeySystemAccess.createMediaKeys()` method returns a ```js-nolint createMediaKeys() ``` None.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaKeySystemAccess/createMediaKeys)\n */\n createMediaKeys(): Promise<MediaKeys>;\n /**\n * The **`getConfiguration()`** method of the MediaKeySystemAccess interface returns an object with the supported combination of the following configuration options: - `initDataTypes` [MISSING: ReadOnlyInline] - : Returns a list of supported initialization data type names.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaKeySystemAccess/getConfiguration)\n */\n getConfiguration(): MediaKeySystemConfiguration;\n}\n\ndeclare var MediaKeySystemAccess: {\n prototype: MediaKeySystemAccess;\n new(): MediaKeySystemAccess;\n};\n\n/**\n * The **`MediaKeys`** interface of Encrypted Media Extensions API represents a set of keys that an associated HTMLMediaElement can use for decryption of media data during playback.\n * Available only in secure contexts.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaKeys)\n */\ninterface MediaKeys {\n /**\n * The `createSession()` method of the MediaKeys interface returns a new MediaKeySession object, which represents a context for message exchange with a content decryption module (CDM).\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaKeys/createSession)\n */\n createSession(sessionType?: MediaKeySessionType): MediaKeySession;\n /**\n * The `getStatusForPolicy()` method of the MediaKeys interface is used to check whether the Content Decryption Module (CDM) would allow the presentation of encrypted media data using the keys, based on the specified policy requirements.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaKeys/getStatusForPolicy)\n */\n getStatusForPolicy(policy?: MediaKeysPolicy): Promise<MediaKeyStatus>;\n /**\n * The **`setServerCertificate()`** method of the MediaKeys interface provides a server certificate to be used to encrypt messages to the license server.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaKeys/setServerCertificate)\n */\n setServerCertificate(serverCertificate: BufferSource): Promise<boolean>;\n}\n\ndeclare var MediaKeys: {\n prototype: MediaKeys;\n new(): MediaKeys;\n};\n\n/**\n * The **`MediaList`** interface represents the media queries of a stylesheet, e.g., those set using a link element\'s `media` attribute.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaList)\n */\ninterface MediaList {\n /**\n * The read-only **`length`** property of the MediaList interface returns the number of media queries in the list.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaList/length)\n */\n readonly length: number;\n /**\n * The **`mediaText`** property of the MediaList interface is a stringifier that returns a string representing the `MediaList` as text, and also allows you to set a new `MediaList`.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaList/mediaText)\n */\n mediaText: string;\n toString(): string;\n /**\n * The `appendMedium()` method of the MediaList interface adds a media query to the list.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaList/appendMedium)\n */\n appendMedium(medium: string): void;\n /**\n * The `deleteMedium()` method of the MediaList interface removes from this `MediaList` the given media query.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaList/deleteMedium)\n */\n deleteMedium(medium: string): void;\n /**\n * The **`item()`** method of the MediaList interface returns the media query at the specified `index`, or `null` if the specified `index` doesn\'t exist.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaList/item)\n */\n item(index: number): string | null;\n [index: number]: string;\n}\n\ndeclare var MediaList: {\n prototype: MediaList;\n new(): MediaList;\n};\n\n/**\n * The **`MediaMetadata`** interface of the Media Session API allows a web page to provide rich media metadata for display in a platform UI.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaMetadata)\n */\ninterface MediaMetadata {\n /**\n * The **`album`** property of the collection containing the media to be played.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaMetadata/album)\n */\n album: string;\n /**\n * The **`artist`** property of the creator, etc., of the media to be played.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaMetadata/artist)\n */\n artist: string;\n /**\n * The **`artwork`** property of the objects representing images associated with playing media.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaMetadata/artwork)\n */\n artwork: ReadonlyArray<MediaImage>;\n /**\n * The **`title`** property of the played.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaMetadata/title)\n */\n title: string;\n}\n\ndeclare var MediaMetadata: {\n prototype: MediaMetadata;\n new(init?: MediaMetadataInit): MediaMetadata;\n};\n\ninterface MediaQueryListEventMap {\n "change": MediaQueryListEvent;\n}\n\n/**\n * A **`MediaQueryList`** object stores information on a media query applied to a document, with support for both immediate and event-driven matching against the state of the document.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaQueryList)\n */\ninterface MediaQueryList extends EventTarget {\n /**\n * The **`matches`** read-only property of the `true` if the document currently matches the media query list, or `false` if not.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaQueryList/matches)\n */\n readonly matches: boolean;\n /**\n * The **`media`** read-only property of the serialized media query.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaQueryList/media)\n */\n readonly media: string;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaQueryList/change_event) */\n onchange: ((this: MediaQueryList, ev: MediaQueryListEvent) => any) | null;\n /**\n * The deprecated **`addListener()`** method of the `MediaQueryListener` that will run a custom callback function in response to the media query status changing.\n * @deprecated\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaQueryList/addListener)\n */\n addListener(callback: ((this: MediaQueryList, ev: MediaQueryListEvent) => any) | null): void;\n /**\n * The **`removeListener()`** method of the `MediaQueryListener`.\n * @deprecated\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaQueryList/removeListener)\n */\n removeListener(callback: ((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\n/**\n * The `MediaQueryListEvent` object stores information on the changes that have happened to a MediaQueryList object — instances are available as the event object on a function referenced by a MediaQueryList.change_event event.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaQueryListEvent)\n */\ninterface MediaQueryListEvent extends Event {\n /**\n * The **`matches`** read-only property of the `true` if the document currently matches the media query list, or `false` if not.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaQueryListEvent/matches)\n */\n readonly matches: boolean;\n /**\n * The **`media`** read-only property of the a serialized media query.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaQueryListEvent/media)\n */\n readonly media: string;\n}\n\ndeclare var MediaQueryListEvent: {\n prototype: MediaQueryListEvent;\n new(type: string, eventInitDict?: MediaQueryListEventInit): MediaQueryListEvent;\n};\n\ninterface MediaRecorderEventMap {\n "dataavailable": BlobEvent;\n "error": ErrorEvent;\n "pause": Event;\n "resume": Event;\n "start": Event;\n "stop": Event;\n}\n\n/**\n * The **`MediaRecorder`** interface of the MediaStream Recording API provides functionality to easily record media.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaRecorder)\n */\ninterface MediaRecorder extends EventTarget {\n /**\n * The **`audioBitsPerSecond`** read-only property of the MediaRecorder interface returns the audio encoding bit rate in use.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaRecorder/audioBitsPerSecond)\n */\n readonly audioBitsPerSecond: number;\n /**\n * The **`mimeType`** read-only property of the MediaRecorder interface returns the MIME media type that was specified when creating the MediaRecorder object, or, if none was specified, which was chosen by the browser.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaRecorder/mimeType)\n */\n readonly mimeType: string;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaRecorder/dataavailable_event) */\n ondataavailable: ((this: MediaRecorder, ev: BlobEvent) => any) | null;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaRecorder/error_event) */\n onerror: ((this: MediaRecorder, ev: ErrorEvent) => any) | null;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaRecorder/pause_event) */\n onpause: ((this: MediaRecorder, ev: Event) => any) | null;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaRecorder/resume_event) */\n onresume: ((this: MediaRecorder, ev: Event) => any) | null;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaRecorder/start_event) */\n onstart: ((this: MediaRecorder, ev: Event) => any) | null;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaRecorder/stop_event) */\n onstop: ((this: MediaRecorder, ev: Event) => any) | null;\n /**\n * The **`state`** read-only property of the MediaRecorder interface returns the current state of the current `MediaRecorder` object.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaRecorder/state)\n */\n readonly state: RecordingState;\n /**\n * The **`stream`** read-only property of the MediaRecorder interface returns the stream that was passed into the MediaRecorder.MediaRecorder constructor when the `MediaRecorder` was created.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaRecorder/stream)\n */\n readonly stream: MediaStream;\n /**\n * The **`videoBitsPerSecond`** read-only property of the MediaRecorder interface returns the video encoding bit rate in use.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaRecorder/videoBitsPerSecond)\n */\n readonly videoBitsPerSecond: number;\n /**\n * The **`pause()`** method of the MediaRecorder interface is used to pause recording of media streams.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaRecorder/pause)\n */\n pause(): void;\n /**\n * The **`requestData()`** method of the MediaRecorder interface is used to raise a MediaRecorder.dataavailable_event event containing a called.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaRecorder/requestData)\n */\n requestData(): void;\n /**\n * The **`resume()`** method of the MediaRecorder interface is used to resume media recording when it has been previously paused.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaRecorder/resume)\n */\n resume(): void;\n /**\n * The **`start()`** method of the MediaRecorder interface begins recording media into one or more Blob objects.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaRecorder/start)\n */\n start(timeslice?: number): void;\n /**\n * The **`stop()`** method of the MediaRecorder interface is used to stop media capture.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaRecorder/stop)\n */\n stop(): void;\n addEventListener<K extends keyof MediaRecorderEventMap>(type: K, listener: (this: MediaRecorder, ev: MediaRecorderEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n removeEventListener<K extends keyof MediaRecorderEventMap>(type: K, listener: (this: MediaRecorder, ev: MediaRecorderEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\ndeclare var MediaRecorder: {\n prototype: MediaRecorder;\n new(stream: MediaStream, options?: MediaRecorderOptions): MediaRecorder;\n /**\n * The **`isTypeSupported()`** static method of the MediaRecorder interface returns a Boolean which is `true` if the MIME media type specified is one the user agent should be able to successfully record.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaRecorder/isTypeSupported_static)\n */\n isTypeSupported(type: string): boolean;\n};\n\n/**\n * The **`MediaSession`** interface of the Media Session API allows a web page to provide custom behaviors for standard media playback interactions, and to report metadata that can be sent by the user agent to the device or operating system for presentation in standardized user interface elements.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaSession)\n */\ninterface MediaSession {\n /**\n * The **`metadata`** property of the MediaSession interface contains a MediaMetadata object providing descriptive information about the currently playing media, or `null` if the metadata has not been set.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaSession/metadata)\n */\n metadata: MediaMetadata | null;\n /**\n * The **`playbackState`** property of the playing or paused.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaSession/playbackState)\n */\n playbackState: MediaSessionPlaybackState;\n /**\n * The **`setActionHandler()`** method of the MediaSession interface sets a handler for a media session action.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaSession/setActionHandler)\n */\n setActionHandler(action: MediaSessionAction, handler: MediaSessionActionHandler | null): void;\n /**\n * The **`setCameraActive()`** method of the MediaSession interface is used to indicate to the user agent whether the user\'s camera is considered to be active.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaSession/setCameraActive)\n */\n setCameraActive(active: boolean): Promise<void>;\n /**\n * The **`setMicrophoneActive()`** method of the MediaSession interface is used to indicate to the user agent whether the user\'s microphone is considered to be currently muted.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaSession/setMicrophoneActive)\n */\n setMicrophoneActive(active: boolean): Promise<void>;\n /**\n * The **`setPositionState()`** method of the document\'s media playback position and speed for presentation by user\'s device in any kind of interface that provides details about ongoing media.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaSession/setPositionState)\n */\n setPositionState(state?: MediaPositionState): void;\n}\n\ndeclare var MediaSession: {\n prototype: MediaSession;\n new(): MediaSession;\n};\n\ninterface MediaSourceEventMap {\n "sourceclose": Event;\n "sourceended": Event;\n "sourceopen": Event;\n}\n\n/**\n * The **`MediaSource`** interface of the Media Source Extensions API represents a source of media data for an HTMLMediaElement object.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaSource)\n */\ninterface MediaSource extends EventTarget {\n /**\n * The **`activeSourceBuffers`** read-only property of the containing a subset of the SourceBuffer objects contained within providing the selected video track, enabled audio tracks, and shown/hidden text tracks.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaSource/activeSourceBuffers)\n */\n readonly activeSourceBuffers: SourceBufferList;\n /**\n * The **`duration`** property of the MediaSource interface gets and sets the duration of the current media being presented.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaSource/duration)\n */\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 /**\n * The **`readyState`** read-only property of the current `MediaSource`.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaSource/readyState)\n */\n readonly readyState: ReadyState;\n /**\n * The **`sourceBuffers`** read-only property of the containing the list of SourceBuffer objects associated with this `MediaSource`.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaSource/sourceBuffers)\n */\n readonly sourceBuffers: SourceBufferList;\n /**\n * The **`addSourceBuffer()`** method of the given MIME type and adds it to the `MediaSource`\'s `SourceBuffer` is also returned.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaSource/addSourceBuffer)\n */\n addSourceBuffer(type: string): SourceBuffer;\n /**\n * The **`clearLiveSeekableRange()`** method of the to MediaSource.setLiveSeekableRange().\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaSource/clearLiveSeekableRange)\n */\n clearLiveSeekableRange(): void;\n /**\n * The **`endOfStream()`** method of the ```js-nolint endOfStream() endOfStream(endOfStreamError) ``` - `endOfStreamError` MISSING: optional_inline] - : A string representing an error to throw when the end of the stream is reached.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaSource/endOfStream)\n */\n endOfStream(error?: EndOfStreamError): void;\n /**\n * The **`removeSourceBuffer()`** method of the MediaSource interface removes the given SourceBuffer from the SourceBufferList associated with this `MediaSource` object.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaSource/removeSourceBuffer)\n */\n removeSourceBuffer(sourceBuffer: SourceBuffer): void;\n /**\n * The **`setLiveSeekableRange()`** method of the media element.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaSource/setLiveSeekableRange)\n */\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 /**\n * The **`canConstructInDedicatedWorker`** static property of the MediaSource interface returns `true` if `MediaSource` worker support is implemented, providing a low-latency feature detection mechanism.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaSource/canConstructInDedicatedWorker_static)\n */\n readonly canConstructInDedicatedWorker: boolean;\n /**\n * The **`MediaSource.isTypeSupported()`** static method returns a boolean value which is `true` if the given MIME type and (optional) codec are _likely_ to be supported by the current user agent.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaSource/isTypeSupported_static)\n */\n isTypeSupported(type: string): boolean;\n};\n\n/**\n * The **`MediaSourceHandle`** interface of the Media Source Extensions API is a proxy for a MediaSource that can be transferred from a dedicated worker back to the main thread and attached to a media element via its HTMLMediaElement.srcObject property.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaSourceHandle)\n */\ninterface MediaSourceHandle {\n}\n\ndeclare var MediaSourceHandle: {\n prototype: MediaSourceHandle;\n new(): MediaSourceHandle;\n};\n\ninterface MediaStreamEventMap {\n "addtrack": MediaStreamTrackEvent;\n "removetrack": MediaStreamTrackEvent;\n}\n\n/**\n * The **`MediaStream`** interface of the Media Capture and Streams API represents a stream of media content.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaStream)\n */\ninterface MediaStream extends EventTarget {\n /**\n * The **`active`** read-only property of the `true` if the stream is currently active; otherwise, it returns `false`.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaStream/active)\n */\n readonly active: boolean;\n /**\n * The **`id`** read-only property of the MediaStream interface is a string containing 36 characters denoting a unique identifier (GUID) for the object.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaStream/id)\n */\n readonly id: string;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaStream/addtrack_event) */\n onaddtrack: ((this: MediaStream, ev: MediaStreamTrackEvent) => any) | null;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaStream/removetrack_event) */\n onremovetrack: ((this: MediaStream, ev: MediaStreamTrackEvent) => any) | null;\n /**\n * The **`addTrack()`** method of the MediaStream interface adds a new track to the stream.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaStream/addTrack)\n */\n addTrack(track: MediaStreamTrack): void;\n /**\n * The **`clone()`** method of the MediaStream interface creates a duplicate of the `MediaStream`.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaStream/clone)\n */\n clone(): MediaStream;\n /**\n * The **`getAudioTracks()`** method of the stream\'s track set where MediaStreamTrack.kind is `audio`.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaStream/getAudioTracks)\n */\n getAudioTracks(): MediaStreamTrack[];\n /**\n * The **`getTrackById()`** method of the MediaStream interface returns a MediaStreamTrack object representing the track with the specified ID string.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaStream/getTrackById)\n */\n getTrackById(trackId: string): MediaStreamTrack | null;\n /**\n * The **`getTracks()`** method of the stream\'s track set, regardless of MediaStreamTrack.kind.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaStream/getTracks)\n */\n getTracks(): MediaStreamTrack[];\n /**\n * The **`getVideoTracks()`** method of the ```js-nolint getVideoTracks() ``` None.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaStream/getVideoTracks)\n */\n getVideoTracks(): MediaStreamTrack[];\n /**\n * The **`removeTrack()`** method of the MediaStream interface removes a ```js-nolint removeTrack(track) ``` - `track` - : A MediaStreamTrack that will be removed from the stream.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaStream/removeTrack)\n */\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\n/**\n * The `MediaStreamAudioDestinationNode` interface represents an audio destination consisting of a WebRTC MediaStream with a single `AudioMediaStreamTrack`, which can be used in a similar way to a `MediaStream` obtained from MediaDevices.getUserMedia.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaStreamAudioDestinationNode)\n */\ninterface MediaStreamAudioDestinationNode extends AudioNode {\n /**\n * The `stream` property of the AudioContext interface represents a MediaStream containing a single audio MediaStreamTrack with the same number of channels as the node itself.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaStreamAudioDestinationNode/stream)\n */\n readonly stream: MediaStream;\n}\n\ndeclare var MediaStreamAudioDestinationNode: {\n prototype: MediaStreamAudioDestinationNode;\n new(context: AudioContext, options?: AudioNodeOptions): MediaStreamAudioDestinationNode;\n};\n\n/**\n * The **`MediaStreamAudioSourceNode`** interface is 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.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaStreamAudioSourceNode)\n */\ninterface MediaStreamAudioSourceNode extends AudioNode {\n /**\n * The MediaStreamAudioSourceNode interface\'s read-only **`mediaStream`** property indicates the receiving audio.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaStreamAudioSourceNode/mediaStream)\n */\n readonly mediaStream: MediaStream;\n}\n\ndeclare var MediaStreamAudioSourceNode: {\n prototype: MediaStreamAudioSourceNode;\n new(context: AudioContext, options: MediaStreamAudioSourceOptions): MediaStreamAudioSourceNode;\n};\n\ninterface MediaStreamTrackEventMap {\n "ended": Event;\n "mute": Event;\n "unmute": Event;\n}\n\n/**\n * The **`MediaStreamTrack`** interface of the Media Capture and Streams API represents a single media track within a stream; typically, these are audio or video tracks, but other track types may exist as well.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaStreamTrack)\n */\ninterface MediaStreamTrack extends EventTarget {\n /**\n * The **`contentHint`** property of the MediaStreamTrack interface is a string that hints at the type of content the track contains.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaStreamTrack/contentHint)\n */\n contentHint: string;\n /**\n * The **`enabled`** property of the `true` if the track is allowed to render the source stream or `false` if it is not.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaStreamTrack/enabled)\n */\n enabled: boolean;\n /**\n * The **`id`** read-only property of the MediaStreamTrack interface returns a string containing a unique identifier (GUID) for the track, which is generated by the user agent.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaStreamTrack/id)\n */\n readonly id: string;\n /**\n * The **`kind`** read-only property of the MediaStreamTrack interface returns a string set to `\'audio\'` if the track is an audio track and to `\'video\'` if it is a video track.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaStreamTrack/kind)\n */\n readonly kind: string;\n /**\n * The **`label`** read-only property of the MediaStreamTrack interface returns a string containing a user agent-assigned label that identifies the track source, as in `\'internal microphone\'`.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaStreamTrack/label)\n */\n readonly label: string;\n /**\n * The **`muted`** read-only property of the indicating whether or not the track is currently unable to provide media output.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaStreamTrack/muted)\n */\n readonly muted: boolean;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaStreamTrack/ended_event) */\n onended: ((this: MediaStreamTrack, ev: Event) => any) | null;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaStreamTrack/mute_event) */\n onmute: ((this: MediaStreamTrack, ev: Event) => any) | null;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaStreamTrack/unmute_event) */\n onunmute: ((this: MediaStreamTrack, ev: Event) => any) | null;\n /**\n * The **`readyState`** read-only property of the MediaStreamTrack interface returns an enumerated value giving the status of the track.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaStreamTrack/readyState)\n */\n readonly readyState: MediaStreamTrackState;\n /**\n * The **`applyConstraints()`** method of the MediaStreamTrack interface applies a set of constraints to the track; these constraints let the website or app establish ideal values and acceptable ranges of values for the constrainable properties of the track, such as frame rate, dimensions, echo cancellation, and so forth.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaStreamTrack/applyConstraints)\n */\n applyConstraints(constraints?: MediaTrackConstraints): Promise<void>;\n /**\n * The **`clone()`** method of the MediaStreamTrack interface creates a duplicate of the `MediaStreamTrack`.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaStreamTrack/clone)\n */\n clone(): MediaStreamTrack;\n /**\n * The **`getCapabilities()`** method of the MediaStreamTrack interface returns an object detailing the accepted values or value range for each constrainable property of the associated `MediaStreamTrack`, based upon the platform and user agent.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaStreamTrack/getCapabilities)\n */\n getCapabilities(): MediaTrackCapabilities;\n /**\n * The **`getConstraints()`** method of the MediaStreamTrack interface returns a recently established for the track using a prior call to constraints indicate values and ranges of values that the website or application has specified are required or acceptable for the included constrainable properties.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaStreamTrack/getConstraints)\n */\n getConstraints(): MediaTrackConstraints;\n /**\n * The **`getSettings()`** method of the object containing the current values of each of the constrainable properties for the current `MediaStreamTrack`.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaStreamTrack/getSettings)\n */\n getSettings(): MediaTrackSettings;\n /**\n * The **`stop()`** method of the MediaStreamTrack interface stops the track.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaStreamTrack/stop)\n */\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\n/**\n * The **`MediaStreamTrackEvent`** interface of the Media Capture and Streams API represents events which indicate that a MediaStream has had tracks added to or removed from the stream through calls to Media Capture and Streams API methods.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaStreamTrackEvent)\n */\ninterface MediaStreamTrackEvent extends Event {\n /**\n * The **`track`** read-only property of the MediaStreamTrackEvent interface returns the MediaStreamTrack associated with this event.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaStreamTrackEvent/track)\n */\n readonly track: MediaStreamTrack;\n}\n\ndeclare var MediaStreamTrackEvent: {\n prototype: MediaStreamTrackEvent;\n new(type: string, eventInitDict: MediaStreamTrackEventInit): MediaStreamTrackEvent;\n};\n\n/**\n * The **`MessageChannel`** interface of the Channel Messaging API allows us to create a new message channel and send data through it via its two MessagePort properties.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/MessageChannel)\n */\ninterface MessageChannel {\n /**\n * The **`port1`** read-only property of the the port attached to the context that originated the channel.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/MessageChannel/port1)\n */\n readonly port1: MessagePort;\n /**\n * The **`port2`** read-only property of the the port attached to the context at the other end of the channel, which the message is initially sent to.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/MessageChannel/port2)\n */\n readonly port2: MessagePort;\n}\n\ndeclare var MessageChannel: {\n prototype: MessageChannel;\n new(): MessageChannel;\n};\n\n/**\n * The **`MessageEvent`** interface represents a message received by a target object.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/MessageEvent)\n */\ninterface MessageEvent<T = any> extends Event {\n /**\n * The **`data`** read-only property of the The data sent by the message emitter; this can be any data type, depending on what originated this event.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/MessageEvent/data)\n */\n readonly data: T;\n /**\n * The **`lastEventId`** read-only property of the unique ID for the event.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/MessageEvent/lastEventId)\n */\n readonly lastEventId: string;\n /**\n * The **`origin`** read-only property of the origin of the message emitter.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/MessageEvent/origin)\n */\n readonly origin: string;\n /**\n * The **`ports`** read-only property of the containing all MessagePort objects sent with the message, in order.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/MessageEvent/ports)\n */\n readonly ports: ReadonlyArray<MessagePort>;\n /**\n * The **`source`** read-only property of the a WindowProxy, MessagePort, or a `MessageEventSource` (which can be a WindowProxy, message emitter.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/MessageEvent/source)\n */\n readonly source: MessageEventSource | null;\n /** @deprecated */\n initMessageEvent(type: string, bubbles?: boolean, cancelable?: boolean, data?: any, origin?: string, lastEventId?: string, source?: MessageEventSource | null, ports?: MessagePort[]): void;\n}\n\ndeclare var MessageEvent: {\n prototype: MessageEvent;\n new<T>(type: string, eventInitDict?: MessageEventInit<T>): MessageEvent<T>;\n};\n\ninterface MessageEventTargetEventMap {\n "message": MessageEvent;\n "messageerror": MessageEvent;\n}\n\ninterface MessageEventTarget<T> {\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DedicatedWorkerGlobalScope/message_event) */\n onmessage: ((this: T, ev: MessageEvent) => any) | null;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DedicatedWorkerGlobalScope/messageerror_event) */\n onmessageerror: ((this: T, ev: MessageEvent) => any) | null;\n addEventListener<K extends keyof MessageEventTargetEventMap>(type: K, listener: (this: T, ev: MessageEventTargetEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n removeEventListener<K extends keyof MessageEventTargetEventMap>(type: K, listener: (this: T, ev: MessageEventTargetEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\ninterface MessagePortEventMap extends MessageEventTargetEventMap {\n "message": MessageEvent;\n "messageerror": MessageEvent;\n}\n\n/**\n * The **`MessagePort`** interface of the Channel Messaging API 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.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/MessagePort)\n */\ninterface MessagePort extends EventTarget, MessageEventTarget<MessagePort> {\n /**\n * The **`close()`** method of the MessagePort interface disconnects the port, so it is no longer active.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/MessagePort/close)\n */\n close(): void;\n /**\n * The **`postMessage()`** method of the transfers ownership of objects to other browsing contexts.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/MessagePort/postMessage)\n */\n postMessage(message: any, transfer: Transferable[]): void;\n postMessage(message: any, options?: StructuredSerializeOptions): void;\n /**\n * The **`start()`** method of the MessagePort interface starts the sending of messages queued on the port.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/MessagePort/start)\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/**\n * The **`MimeType`** interface provides contains information about a MIME type associated with a particular plugin.\n * @deprecated\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/MimeType)\n */\ninterface MimeType {\n /**\n * Returns the MIME type\'s description.\n * @deprecated\n */\n readonly description: string;\n /**\n * Returns the Plugin object that implements this MIME type.\n * @deprecated\n */\n readonly enabledPlugin: Plugin;\n /**\n * Returns the MIME type\'s typical file extensions, in a comma-separated list.\n * @deprecated\n */\n readonly suffixes: string;\n /**\n * Returns the MIME type.\n * @deprecated\n */\n readonly type: string;\n}\n\n/** @deprecated */\ndeclare var MimeType: {\n prototype: MimeType;\n new(): MimeType;\n};\n\n/**\n * The **`MimeTypeArray`** interface returns an array of MimeType instances, each of which contains information about a supported browser plugins.\n * @deprecated\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/MimeTypeArray)\n */\ninterface MimeTypeArray {\n /** @deprecated */\n readonly length: number;\n /** @deprecated */\n item(index: number): MimeType | null;\n /** @deprecated */\n namedItem(name: string): MimeType | null;\n [index: number]: MimeType;\n}\n\n/** @deprecated */\ndeclare var MimeTypeArray: {\n prototype: MimeTypeArray;\n new(): MimeTypeArray;\n};\n\n/**\n * The **`MouseEvent`** interface represents events that occur due to the user interacting with a pointing device (such as a mouse).\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/MouseEvent)\n */\ninterface MouseEvent extends UIEvent {\n /**\n * The **`MouseEvent.altKey`** read-only property is a boolean value that indicates whether the <kbd>alt</kbd> key was pressed or not when a given mouse event occurs.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/MouseEvent/altKey)\n */\n readonly altKey: boolean;\n /**\n * The **`MouseEvent.button`** read-only property indicates which button was pressed or released on the mouse to trigger the event.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/MouseEvent/button)\n */\n readonly button: number;\n /**\n * The **`MouseEvent.buttons`** read-only property indicates which buttons are pressed on the mouse (or other input device) when a mouse event is triggered.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/MouseEvent/buttons)\n */\n readonly buttons: number;\n /**\n * The **`clientX`** read-only property of the MouseEvent interface provides the horizontal coordinate within the application\'s viewport at which the event occurred (as opposed to the coordinate within the page).\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/MouseEvent/clientX)\n */\n readonly clientX: number;\n /**\n * The **`clientY`** read-only property of the MouseEvent interface provides the vertical coordinate within the application\'s viewport at which the event occurred (as opposed to the coordinate within the page).\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/MouseEvent/clientY)\n */\n readonly clientY: number;\n /**\n * The **`MouseEvent.ctrlKey`** read-only property is a boolean value that indicates whether the <kbd>ctrl</kbd> key was pressed or not when a given mouse event occurs.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/MouseEvent/ctrlKey)\n */\n readonly ctrlKey: boolean;\n /**\n * The **`MouseEvent.layerX`** read-only property returns the horizontal coordinate of the event relative to the current layer.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/MouseEvent/layerX)\n */\n readonly layerX: number;\n /**\n * The **`MouseEvent.layerY`** read-only property returns the vertical coordinate of the event relative to the current layer.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/MouseEvent/layerY)\n */\n readonly layerY: number;\n /**\n * The **`MouseEvent.metaKey`** read-only property is a boolean value that indicates whether the <kbd>meta</kbd> key was pressed or not when a given mouse event occurs.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/MouseEvent/metaKey)\n */\n readonly metaKey: boolean;\n /**\n * The **`movementX`** read-only property of the MouseEvent interface provides the difference in the X coordinate of the mouse pointer between the given event and the previous Element/mousemove_event event.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/MouseEvent/movementX)\n */\n readonly movementX: number;\n /**\n * The **`movementY`** read-only property of the MouseEvent interface provides the difference in the Y coordinate of the mouse pointer between the given event and the previous Element/mousemove_event event.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/MouseEvent/movementY)\n */\n readonly movementY: number;\n /**\n * The **`offsetX`** read-only property of the MouseEvent interface provides the offset in the X coordinate of the mouse pointer between that event and the padding edge of the target node.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/MouseEvent/offsetX)\n */\n readonly offsetX: number;\n /**\n * The **`offsetY`** read-only property of the MouseEvent interface provides the offset in the Y coordinate of the mouse pointer between that event and the padding edge of the target node.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/MouseEvent/offsetY)\n */\n readonly offsetY: number;\n /**\n * The **`pageX`** read-only property of the MouseEvent interface returns the X (horizontal) coordinate (in pixels) at which the mouse was clicked, relative to the left edge of the entire document.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/MouseEvent/pageX)\n */\n readonly pageX: number;\n /**\n * The **`pageY`** read-only property of the MouseEvent interface returns the Y (vertical) coordinate (in pixels) at which the mouse was clicked, relative to the top edge of the entire document.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/MouseEvent/pageY)\n */\n readonly pageY: number;\n /**\n * The **`MouseEvent.relatedTarget`** read-only property is the secondary target for the mouse event, if there is one.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/MouseEvent/relatedTarget)\n */\n readonly relatedTarget: EventTarget | null;\n /**\n * The **`screenX`** read-only property of the MouseEvent interface provides the horizontal coordinate (offset) of the mouse pointer in screen coordinates.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/MouseEvent/screenX)\n */\n readonly screenX: number;\n /**\n * The **`screenY`** read-only property of the MouseEvent interface provides the vertical coordinate (offset) of the mouse pointer in screen coordinates.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/MouseEvent/screenY)\n */\n readonly screenY: number;\n /**\n * The **`MouseEvent.shiftKey`** read-only property is a boolean value that indicates whether the <kbd>shift</kbd> key was pressed or not when a given mouse event occurs.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/MouseEvent/shiftKey)\n */\n readonly shiftKey: boolean;\n /**\n * The **`MouseEvent.x`** property is an alias for the MouseEvent.clientX property.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/MouseEvent/x)\n */\n readonly x: number;\n /**\n * The **`MouseEvent.y`** property is an alias for the MouseEvent.clientY property.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/MouseEvent/y)\n */\n readonly y: number;\n /**\n * The **`MouseEvent.getModifierState()`** method returns the current state of the specified modifier key: `true` if the modifier is active (i.e., the modifier key is pressed or locked), otherwise, `false`.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/MouseEvent/getModifierState)\n */\n getModifierState(keyArg: string): boolean;\n /**\n * The **`MouseEvent.initMouseEvent()`** method initializes the value of a mouse event once it\'s been created (normally using the Document.createEvent() method).\n * @deprecated\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/MouseEvent/initMouseEvent)\n */\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/**\n * The **`MutationObserver`** interface provides the ability to watch for changes being made to the DOM tree.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/MutationObserver)\n */\ninterface MutationObserver {\n /**\n * The MutationObserver method **`disconnect()`** tells the observer to stop watching for mutations.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/MutationObserver/disconnect)\n */\n disconnect(): void;\n /**\n * The MutationObserver method **`observe()`** configures the `MutationObserver` callback to begin receiving notifications of changes to the DOM that match the given options.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/MutationObserver/observe)\n */\n observe(target: Node, options?: MutationObserverInit): void;\n /**\n * The MutationObserver method **`takeRecords()`** returns a list of all matching DOM changes that have been detected but not yet processed by the observer\'s callback function, leaving the mutation queue empty.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/MutationObserver/takeRecords)\n */\n takeRecords(): MutationRecord[];\n}\n\ndeclare var MutationObserver: {\n prototype: MutationObserver;\n new(callback: MutationCallback): MutationObserver;\n};\n\n/**\n * The **`MutationRecord`** is a read-only interface that represents an individual DOM mutation observed by a MutationObserver.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/MutationRecord)\n */\ninterface MutationRecord {\n /**\n * The MutationRecord read-only property **`addedNodes`** is a NodeList of nodes added to a target node by a mutation observed with a MutationObserver.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/MutationRecord/addedNodes)\n */\n readonly addedNodes: NodeList;\n /**\n * The MutationRecord read-only property **`attributeName`** contains the name of a changed attribute belonging to a node that is observed by a MutationObserver.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/MutationRecord/attributeName)\n */\n readonly attributeName: string | null;\n /**\n * The MutationRecord read-only property **`attributeNamespace`** is the namespace of the mutated attribute in the MutationRecord observed by a MutationObserver.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/MutationRecord/attributeNamespace)\n */\n readonly attributeNamespace: string | null;\n /**\n * The MutationRecord read-only property **`nextSibling`** is the next sibling of an added or removed child node of the `target` of a MutationObserver.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/MutationRecord/nextSibling)\n */\n readonly nextSibling: Node | null;\n /**\n * The MutationRecord read-only property **`oldValue`** contains the character data or attribute value of an observed node before it was changed.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/MutationRecord/oldValue)\n */\n readonly oldValue: string | null;\n /**\n * The MutationRecord read-only property **`previousSibling`** is the previous sibling of an added or removed child node of the `target` of a MutationObserver.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/MutationRecord/previousSibling)\n */\n readonly previousSibling: Node | null;\n /**\n * The MutationRecord read-only property **`removedNodes`** is a NodeList of nodes removed from a target node by a mutation observed with a MutationObserver.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/MutationRecord/removedNodes)\n */\n readonly removedNodes: NodeList;\n /**\n * The MutationRecord read-only property **`target`** is the target (i.e., the mutated/changed node) of a mutation observed with a MutationObserver.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/MutationRecord/target)\n */\n readonly target: Node;\n /**\n * The MutationRecord read-only property **`type`** is the type of the MutationRecord observed by a MutationObserver.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/MutationRecord/type)\n */\n readonly type: MutationRecordType;\n}\n\ndeclare var MutationRecord: {\n prototype: MutationRecord;\n new(): MutationRecord;\n};\n\n/**\n * The **`NamedNodeMap`** interface represents a collection of Attr objects.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/NamedNodeMap)\n */\ninterface NamedNodeMap {\n /**\n * The read-only **`length`** property of the NamedNodeMap interface is the number of objects stored in the map.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/NamedNodeMap/length)\n */\n readonly length: number;\n /**\n * The **`getNamedItem()`** method of the NamedNodeMap interface returns the Attr corresponding to the given name, or `null` if there is no corresponding attribute.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/NamedNodeMap/getNamedItem)\n */\n getNamedItem(qualifiedName: string): Attr | null;\n /**\n * The **`getNamedItemNS()`** method of the NamedNodeMap interface returns the Attr corresponding to the given local name in the given namespace, or `null` if there is no corresponding attribute.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/NamedNodeMap/getNamedItemNS)\n */\n getNamedItemNS(namespace: string | null, localName: string): Attr | null;\n /**\n * The **`item()`** method of the NamedNodeMap interface returns the item in the map matching the index.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/NamedNodeMap/item)\n */\n item(index: number): Attr | null;\n /**\n * The **`removeNamedItem()`** method of the NamedNodeMap interface removes the Attr corresponding to the given name from the map.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/NamedNodeMap/removeNamedItem)\n */\n removeNamedItem(qualifiedName: string): Attr;\n /**\n * The **`removeNamedItemNS()`** method of the NamedNodeMap interface removes the Attr corresponding to the given namespace and local name from the map.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/NamedNodeMap/removeNamedItemNS)\n */\n removeNamedItemNS(namespace: string | null, localName: string): Attr;\n /**\n * The **`setNamedItem()`** method of the NamedNodeMap interface puts the Attr identified by its name in the map.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/NamedNodeMap/setNamedItem)\n */\n setNamedItem(attr: Attr): Attr | null;\n /**\n * The **`setNamedItemNS()`** method of the NamedNodeMap interface puts the Attr identified by its name in the map.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/NamedNodeMap/setNamedItemNS)\n */\n setNamedItemNS(attr: Attr): Attr | null;\n [index: number]: Attr;\n}\n\ndeclare var NamedNodeMap: {\n prototype: NamedNodeMap;\n new(): NamedNodeMap;\n};\n\n/**\n * The **`NavigationActivation`** interface of the Navigation API represents a recent cross-document navigation.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/NavigationActivation)\n */\ninterface NavigationActivation {\n /**\n * The **`entry`** read-only property of the NavigationActivation interface contains a NavigationHistoryEntry object representing the history entry for the inbound (\'to\') document in the navigation.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/NavigationActivation/entry)\n */\n readonly entry: NavigationHistoryEntry;\n /**\n * The **`from`** read-only property of the NavigationActivation interface contains a NavigationHistoryEntry object representing the history entry for the outgoing (\'from\') document in the navigation.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/NavigationActivation/from)\n */\n readonly from: NavigationHistoryEntry | null;\n /**\n * The **`navigationType`** read-only property of the NavigationActivation interface contains a string indicating the type of navigation.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/NavigationActivation/navigationType)\n */\n readonly navigationType: NavigationType;\n}\n\ndeclare var NavigationActivation: {\n prototype: NavigationActivation;\n new(): NavigationActivation;\n};\n\ninterface NavigationHistoryEntryEventMap {\n "dispose": Event;\n}\n\n/**\n * The **`NavigationHistoryEntry`** interface of the Navigation API represents a single navigation history entry.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/NavigationHistoryEntry)\n */\ninterface NavigationHistoryEntry extends EventTarget {\n /**\n * The **`id`** read-only property of the NavigationHistoryEntry interface returns the `id` of the history entry, or an empty string if current document is not fully active.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/NavigationHistoryEntry/id)\n */\n readonly id: string;\n /**\n * The **`index`** read-only property of the NavigationHistoryEntry interface returns the index of the history entry in the history entries list (that is, the list returned by Navigation.entries()), or `-1` if the entry does not appear in the list or if current document is not fully active.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/NavigationHistoryEntry/index)\n */\n readonly index: number;\n /**\n * The **`key`** read-only property of the NavigationHistoryEntry interface returns the `key` of the history entry, or an empty string if current document is not fully active.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/NavigationHistoryEntry/key)\n */\n readonly key: string;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/NavigationHistoryEntry/dispose_event) */\n ondispose: ((this: NavigationHistoryEntry, ev: Event) => any) | null;\n /**\n * The **`sameDocument`** read-only property of the NavigationHistoryEntry interface returns `true` if this history entry is for the same `document` as the current Document value and current document is fully active, or `false` otherwise.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/NavigationHistoryEntry/sameDocument)\n */\n readonly sameDocument: boolean;\n /**\n * The **`url`** read-only property of the NavigationHistoryEntry interface returns the absolute URL of this history entry.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/NavigationHistoryEntry/url)\n */\n readonly url: string | null;\n /**\n * The **`getState()`** method of the NavigationHistoryEntry interface returns a clone of the developer-supplied state associated with this history entry.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/NavigationHistoryEntry/getState)\n */\n getState(): any;\n addEventListener<K extends keyof NavigationHistoryEntryEventMap>(type: K, listener: (this: NavigationHistoryEntry, ev: NavigationHistoryEntryEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n removeEventListener<K extends keyof NavigationHistoryEntryEventMap>(type: K, listener: (this: NavigationHistoryEntry, ev: NavigationHistoryEntryEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\ndeclare var NavigationHistoryEntry: {\n prototype: NavigationHistoryEntry;\n new(): NavigationHistoryEntry;\n};\n\n/**\n * The **`NavigationPreloadManager`** interface of the Service Worker API provides methods for managing the preloading of resources in parallel with service worker bootup.\n * Available only in secure contexts.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/NavigationPreloadManager)\n */\ninterface NavigationPreloadManager {\n /**\n * The **`disable()`** method of the NavigationPreloadManager interface halts the automatic preloading of service-worker-managed resources previously started using NavigationPreloadManager.enable() It returns a promise that resolves with `undefined`.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/NavigationPreloadManager/disable)\n */\n disable(): Promise<void>;\n /**\n * The **`enable()`** method of the NavigationPreloadManager interface is used to enable preloading of resources managed by the service worker.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/NavigationPreloadManager/enable)\n */\n enable(): Promise<void>;\n /**\n * The **`getState()`** method of the NavigationPreloadManager interface returns a Promise that resolves to an object with properties that indicate whether preload is enabled and what value will be sent in the Service-Worker-Navigation-Preload HTTP header.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/NavigationPreloadManager/getState)\n */\n getState(): Promise<NavigationPreloadState>;\n /**\n * The **`setHeaderValue()`** method of the NavigationPreloadManager interface sets the value of the Service-Worker-Navigation-Preload header that will be sent with requests resulting from a Window/fetch operation made during service worker navigation preloading.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/NavigationPreloadManager/setHeaderValue)\n */\n setHeaderValue(value: string): Promise<void>;\n}\n\ndeclare var NavigationPreloadManager: {\n prototype: NavigationPreloadManager;\n new(): NavigationPreloadManager;\n};\n\n/**\n * The **`Navigator`** interface represents the state and the identity of the user agent.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Navigator)\n */\ninterface Navigator extends NavigatorAutomationInformation, NavigatorBadge, NavigatorConcurrentHardware, NavigatorContentUtils, NavigatorCookies, NavigatorID, NavigatorLanguage, NavigatorLocks, NavigatorOnLine, NavigatorPlugins, NavigatorStorage {\n /**\n * The **`clipboard`** read-only property of the Navigator interface returns a Clipboard object used to read and write the clipboard\'s contents.\n * Available only in secure contexts.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Navigator/clipboard)\n */\n readonly clipboard: Clipboard;\n /**\n * The **`credentials`** read-only property of the Navigator interface returns the CredentialsContainer object associated with the current document, which exposes methods to request credentials.\n * Available only in secure contexts.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Navigator/credentials)\n */\n readonly credentials: CredentialsContainer;\n readonly doNotTrack: string | null;\n /**\n * The **`Navigator.geolocation`** read-only property returns a device.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Navigator/geolocation)\n */\n readonly geolocation: Geolocation;\n /**\n * The **`login`** read-only property of the Navigator interface provides access to the browser\'s NavigatorLogin object, which a federated identity provider (IdP) can use to set its login status when a user signs into or out of the IdP.\n * Available only in secure contexts.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Navigator/login)\n */\n readonly login: NavigatorLogin;\n /**\n * The **`maxTouchPoints`** read-only property of the contact points that are supported by the current device.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Navigator/maxTouchPoints)\n */\n readonly maxTouchPoints: number;\n /**\n * The **`mediaCapabilities`** read-only property of the Navigator interface references a MediaCapabilities object that can expose information about the decoding and encoding capabilities for a given media format and output capabilities.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Navigator/mediaCapabilities)\n */\n readonly mediaCapabilities: MediaCapabilities;\n /**\n * The **`mediaDevices`** read-only property of the Navigator interface returns a MediaDevices object, which provides access to connected media input devices like cameras and microphones, as well as screen sharing.\n * Available only in secure contexts.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Navigator/mediaDevices)\n */\n readonly mediaDevices: MediaDevices;\n /**\n * The **`mediaSession`** read-only property of the Navigator interface returns a MediaSession object that can be used to share with the browser metadata and other information about the current playback state of media being handled by a document.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Navigator/mediaSession)\n */\n readonly mediaSession: MediaSession;\n /**\n * The **`permissions`** read-only property of the Navigator interface returns a status of APIs covered by the Permissions API.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Navigator/permissions)\n */\n readonly permissions: Permissions;\n /**\n * The **`serviceWorker`** read-only property of the Navigator interface returns the ServiceWorkerContainer object for the associated document, which provides access to registration, removal, upgrade, and communication with the ServiceWorker.\n * Available only in secure contexts.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Navigator/serviceWorker)\n */\n readonly serviceWorker: ServiceWorkerContainer;\n /**\n * The read-only **`userActivation`** property of the Navigator interface returns a UserActivation object which contains information about the current window\'s user activation state.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Navigator/userActivation)\n */\n readonly userActivation: UserActivation;\n /**\n * The **`wakeLock`** read-only property of the Navigator interface returns a WakeLock interface that allows a document to acquire a screen wake lock.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Navigator/wakeLock)\n */\n readonly wakeLock: WakeLock;\n /**\n * The **`canShare()`** method of the Navigator interface returns `true` if the equivalent call to navigator.share() would succeed.\n * Available only in secure contexts.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Navigator/canShare)\n */\n canShare(data?: ShareData): boolean;\n /**\n * The **`Navigator.getGamepads()`** method returns an array of Elements in the array may be `null` if a gamepad disconnects during a session, so that the remaining gamepads retain the same index.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Navigator/getGamepads)\n */\n getGamepads(): (Gamepad | null)[];\n /**\n * The **`requestMIDIAccess()`** method of the Navigator interface returns a Promise representing a request for access to MIDI devices on a user\'s system.\n * Available only in secure contexts.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Navigator/requestMIDIAccess)\n */\n requestMIDIAccess(options?: MIDIOptions): Promise<MIDIAccess>;\n /**\n * The **`requestMediaKeySystemAccess()`** method of the Navigator interface returns a Promise which delivers a MediaKeySystemAccess object that can be used to access a particular media key system, which can in turn be used to create keys for decrypting a media stream.\n * Available only in secure contexts.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Navigator/requestMediaKeySystemAccess)\n */\n requestMediaKeySystemAccess(keySystem: string, supportedConfigurations: MediaKeySystemConfiguration[]): Promise<MediaKeySystemAccess>;\n /**\n * The **`navigator.sendBeacon()`** method Asynchronous sends an HTTP POST request containing a small amount of data to a web server.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Navigator/sendBeacon)\n */\n sendBeacon(url: string | URL, data?: BodyInit | null): boolean;\n /**\n * The **`share()`** method of the Navigator interface invokes the native sharing mechanism of the device to share data such as text, URLs, or files.\n * Available only in secure contexts.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Navigator/share)\n */\n share(data?: ShareData): Promise<void>;\n /**\n * The **`vibrate()`** method of the Navigator interface pulses the vibration hardware on the device, if such hardware exists.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Navigator/vibrate)\n */\n vibrate(pattern: VibratePattern): boolean;\n}\n\ndeclare var Navigator: {\n prototype: Navigator;\n new(): Navigator;\n};\n\ninterface NavigatorAutomationInformation {\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Navigator/webdriver) */\n readonly webdriver: boolean;\n}\n\n/** Available only in secure contexts. */\ninterface NavigatorBadge {\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Navigator/clearAppBadge) */\n clearAppBadge(): Promise<void>;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Navigator/setAppBadge) */\n setAppBadge(contents?: number): Promise<void>;\n}\n\ninterface NavigatorConcurrentHardware {\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Navigator/hardwareConcurrency) */\n readonly hardwareConcurrency: number;\n}\n\ninterface NavigatorContentUtils {\n /**\n * Available only in secure contexts.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Navigator/registerProtocolHandler)\n */\n registerProtocolHandler(scheme: string, url: string | URL): void;\n}\n\ninterface NavigatorCookies {\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Navigator/cookieEnabled) */\n readonly cookieEnabled: boolean;\n}\n\ninterface NavigatorID {\n /**\n * @deprecated\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Navigator/appCodeName)\n */\n readonly appCodeName: string;\n /**\n * @deprecated\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Navigator/appName)\n */\n readonly appName: string;\n /**\n * @deprecated\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Navigator/appVersion)\n */\n readonly appVersion: string;\n /**\n * @deprecated\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Navigator/platform)\n */\n readonly platform: string;\n /**\n * @deprecated\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Navigator/product)\n */\n readonly product: string;\n /**\n * @deprecated\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Navigator/productSub)\n */\n readonly productSub: string;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Navigator/userAgent) */\n readonly userAgent: string;\n /**\n * @deprecated\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Navigator/vendor)\n */\n readonly vendor: string;\n /**\n * @deprecated\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Navigator/vendorSub)\n */\n readonly vendorSub: string;\n}\n\ninterface NavigatorLanguage {\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Navigator/language) */\n readonly language: string;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Navigator/languages) */\n readonly languages: ReadonlyArray<string>;\n}\n\n/** Available only in secure contexts. */\ninterface NavigatorLocks {\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Navigator/locks) */\n readonly locks: LockManager;\n}\n\n/**\n * The **`NavigatorLogin`** interface of the Federated Credential Management (FedCM) API defines login functionality for federated identity providers (IdPs).\n * Available only in secure contexts.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/NavigatorLogin)\n */\ninterface NavigatorLogin {\n /**\n * The **`setStatus()`** method of the NavigatorLogin interface sets the login status of a federated identity provider (IdP), when called from the IdP\'s origin.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/NavigatorLogin/setStatus)\n */\n setStatus(status: LoginStatus): Promise<void>;\n}\n\ndeclare var NavigatorLogin: {\n prototype: NavigatorLogin;\n new(): NavigatorLogin;\n};\n\ninterface NavigatorOnLine {\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Navigator/onLine) */\n readonly onLine: boolean;\n}\n\ninterface NavigatorPlugins {\n /**\n * @deprecated\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Navigator/mimeTypes)\n */\n readonly mimeTypes: MimeTypeArray;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Navigator/pdfViewerEnabled) */\n readonly pdfViewerEnabled: boolean;\n /**\n * @deprecated\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Navigator/plugins)\n */\n readonly plugins: PluginArray;\n /**\n * @deprecated\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Navigator/javaEnabled)\n */\n javaEnabled(): boolean;\n}\n\n/** Available only in secure contexts. */\ninterface NavigatorStorage {\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Navigator/storage) */\n readonly storage: StorageManager;\n}\n\n/**\n * The DOM **`Node`** interface is an abstract base class upon which many other DOM API objects are based, thus letting those object types to be used similarly and often interchangeably.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Node)\n */\ninterface Node extends EventTarget {\n /**\n * The read-only **`baseURI`** property of the Node interface returns the absolute base URL of the document containing the node.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Node/baseURI)\n */\n readonly baseURI: string;\n /**\n * The read-only **`childNodes`** property of the Node interface returns a live the first child node is assigned index `0`.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Node/childNodes)\n */\n readonly childNodes: NodeListOf<ChildNode>;\n /**\n * The read-only **`firstChild`** property of the Node interface returns the node\'s first child in the tree, or `null` if the node has no children.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Node/firstChild)\n */\n readonly firstChild: ChildNode | null;\n /**\n * The read-only **`isConnected`** property of the Node interface returns a boolean indicating whether the node is connected (directly or indirectly) to a Document object.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Node/isConnected)\n */\n readonly isConnected: boolean;\n /**\n * The read-only **`lastChild`** property of the Node interface returns the last child of the node, or `null` if there are no child nodes.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Node/lastChild)\n */\n readonly lastChild: ChildNode | null;\n /**\n * The read-only **`nextSibling`** property of the Node interface returns the node immediately following the specified one in their parent\'s Node.childNodes, or returns `null` if the specified node is the last child in the parent element.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Node/nextSibling)\n */\n readonly nextSibling: ChildNode | null;\n /**\n * The read-only **`nodeName`** property of Node returns the name of the current node as a string.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Node/nodeName)\n */\n readonly nodeName: string;\n /**\n * The read-only **`nodeType`** property of a Node interface is an integer that identifies what the node is.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Node/nodeType)\n */\n readonly nodeType: number;\n /**\n * The **`nodeValue`** property of the Node interface returns or sets the value of the current node.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Node/nodeValue)\n */\n nodeValue: string | null;\n /**\n * The read-only **`ownerDocument`** property of the Node interface returns the top-level document object of the node.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Node/ownerDocument)\n */\n readonly ownerDocument: Document | null;\n /**\n * The read-only **`parentElement`** property of Node interface returns the DOM node\'s parent Element, or `null` if the node either has no parent, or its parent isn\'t a DOM Element.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Node/parentElement)\n */\n readonly parentElement: HTMLElement | null;\n /**\n * The read-only **`parentNode`** property of the Node interface returns the parent of the specified node in the DOM tree.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Node/parentNode)\n */\n readonly parentNode: ParentNode | null;\n /**\n * The read-only **`previousSibling`** property of the Node interface returns the node immediately preceding the specified one in its parent\'s or `null` if the specified node is the first in that list.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Node/previousSibling)\n */\n readonly previousSibling: ChildNode | null;\n /**\n * The **`textContent`** property of the Node interface represents the text content of the node and its descendants.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Node/textContent)\n */\n textContent: string | null;\n /**\n * The **`appendChild()`** method of the Node interface adds a node to the end of the list of children of a specified parent node.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Node/appendChild)\n */\n appendChild<T extends Node>(node: T): T;\n /**\n * The **`cloneNode()`** method of the Node interface returns a duplicate of the node on which this method was called.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Node/cloneNode)\n */\n cloneNode(subtree?: boolean): Node;\n /**\n * The **`compareDocumentPosition()`** method of the Node interface reports the position of its argument node relative to the node on which it is called.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Node/compareDocumentPosition)\n */\n compareDocumentPosition(other: Node): number;\n /**\n * The **`contains()`** method of the Node interface returns a boolean value indicating whether a node is a descendant of a given node, that is the node itself, one of its direct children (Node.childNodes), one of the children\'s direct children, and so on.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Node/contains)\n */\n contains(other: Node | null): boolean;\n /**\n * The **`getRootNode()`** method of the Node interface returns the context object\'s root, which optionally includes the shadow root if it is available.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Node/getRootNode)\n */\n getRootNode(options?: GetRootNodeOptions): Node;\n /**\n * The **`hasChildNodes()`** method of the Node interface returns a boolean value indicating whether the given Node has child nodes or not.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Node/hasChildNodes)\n */\n hasChildNodes(): boolean;\n /**\n * The **`insertBefore()`** method of the Node interface inserts a node before a _reference node_ as a child of a specified _parent node_.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Node/insertBefore)\n */\n insertBefore<T extends Node>(node: T, child: Node | null): T;\n /**\n * The **`isDefaultNamespace()`** method of the Node interface accepts a namespace URI as an argument.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Node/isDefaultNamespace)\n */\n isDefaultNamespace(namespace: string | null): boolean;\n /**\n * The **`isEqualNode()`** method of the Node interface tests whether two nodes are equal.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Node/isEqualNode)\n */\n isEqualNode(otherNode: Node | null): boolean;\n /**\n * The **`isSameNode()`** method of the Node interface is a legacy alias the for the `===` strict equality operator.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Node/isSameNode)\n */\n isSameNode(otherNode: Node | null): boolean;\n /**\n * The **`lookupNamespaceURI()`** method of the Node interface takes a prefix as parameter and returns the namespace URI associated with it on the given node if found (and `null` if not).\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Node/lookupNamespaceURI)\n */\n lookupNamespaceURI(prefix: string | null): string | null;\n /**\n * The **`lookupPrefix()`** method of the Node interface returns a string containing the prefix for a given namespace URI, if present, and `null` if not.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Node/lookupPrefix)\n */\n lookupPrefix(namespace: string | null): string | null;\n /**\n * The **`normalize()`** method of the Node interface puts the specified node and all of its sub-tree into a _normalized_ form.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Node/normalize)\n */\n normalize(): void;\n /**\n * The **`removeChild()`** method of the Node interface removes a child node from the DOM and returns the removed node.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Node/removeChild)\n */\n removeChild<T extends Node>(child: T): T;\n /**\n * The **`replaceChild()`** method of the Node interface replaces a child node within the given (parent) node.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Node/replaceChild)\n */\n replaceChild<T extends Node>(node: Node, child: T): T;\n /** node is an element. */\n readonly ELEMENT_NODE: 1;\n readonly ATTRIBUTE_NODE: 2;\n /** node is a Text node. */\n readonly TEXT_NODE: 3;\n /** node is a CDATASection node. */\n readonly CDATA_SECTION_NODE: 4;\n readonly ENTITY_REFERENCE_NODE: 5;\n readonly ENTITY_NODE: 6;\n /** node is a ProcessingInstruction node. */\n readonly PROCESSING_INSTRUCTION_NODE: 7;\n /** node is a Comment node. */\n readonly COMMENT_NODE: 8;\n /** node is a document. */\n readonly DOCUMENT_NODE: 9;\n /** node is a doctype. */\n readonly DOCUMENT_TYPE_NODE: 10;\n /** node is a DocumentFragment node. */\n readonly DOCUMENT_FRAGMENT_NODE: 11;\n readonly NOTATION_NODE: 12;\n /** Set when node and other are not in the same tree. */\n readonly DOCUMENT_POSITION_DISCONNECTED: 0x01;\n /** Set when other is preceding node. */\n readonly DOCUMENT_POSITION_PRECEDING: 0x02;\n /** Set when other is following node. */\n readonly DOCUMENT_POSITION_FOLLOWING: 0x04;\n /** Set when other is an ancestor of node. */\n readonly DOCUMENT_POSITION_CONTAINS: 0x08;\n /** Set when other is a descendant of node. */\n readonly DOCUMENT_POSITION_CONTAINED_BY: 0x10;\n readonly DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC: 0x20;\n}\n\ndeclare var Node: {\n prototype: Node;\n new(): Node;\n /** node is an element. */\n readonly ELEMENT_NODE: 1;\n readonly ATTRIBUTE_NODE: 2;\n /** node is a Text node. */\n readonly TEXT_NODE: 3;\n /** node is a CDATASection node. */\n readonly CDATA_SECTION_NODE: 4;\n readonly ENTITY_REFERENCE_NODE: 5;\n readonly ENTITY_NODE: 6;\n /** node is a ProcessingInstruction node. */\n readonly PROCESSING_INSTRUCTION_NODE: 7;\n /** node is a Comment node. */\n readonly COMMENT_NODE: 8;\n /** node is a document. */\n readonly DOCUMENT_NODE: 9;\n /** node is a doctype. */\n readonly DOCUMENT_TYPE_NODE: 10;\n /** node is a DocumentFragment node. */\n readonly DOCUMENT_FRAGMENT_NODE: 11;\n readonly NOTATION_NODE: 12;\n /** Set when node and other are not in the same tree. */\n readonly DOCUMENT_POSITION_DISCONNECTED: 0x01;\n /** Set when other is preceding node. */\n readonly DOCUMENT_POSITION_PRECEDING: 0x02;\n /** Set when other is following node. */\n readonly DOCUMENT_POSITION_FOLLOWING: 0x04;\n /** Set when other is an ancestor of node. */\n readonly DOCUMENT_POSITION_CONTAINS: 0x08;\n /** Set when other is a descendant of node. */\n readonly DOCUMENT_POSITION_CONTAINED_BY: 0x10;\n readonly DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC: 0x20;\n};\n\n/**\n * The **`NodeIterator`** interface represents an iterator to traverse nodes of a DOM subtree in document order.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/NodeIterator)\n */\ninterface NodeIterator {\n /**\n * The **`NodeIterator.filter`** read-only property returns a `NodeFilter` object, that is an object which implements an `acceptNode(node)` method, used to screen nodes.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/NodeIterator/filter)\n */\n readonly filter: NodeFilter | null;\n /**\n * The **`NodeIterator.pointerBeforeReferenceNode`** read-only property returns a boolean flag that indicates whether the `NodeFilter` is anchored before (if this value is `true`) or after (if this value is `false`) the anchor node indicated by the A boolean.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/NodeIterator/pointerBeforeReferenceNode)\n */\n readonly pointerBeforeReferenceNode: boolean;\n /**\n * The **`NodeIterator.referenceNode`** read-only property returns the iterator remains anchored to the reference node as specified by this property.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/NodeIterator/referenceNode)\n */\n readonly referenceNode: Node;\n /**\n * The **`NodeIterator.root`** read-only property represents the traverses.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/NodeIterator/root)\n */\n readonly root: Node;\n /**\n * The **`NodeIterator.whatToShow`** read-only property represents an `unsigned integer` representing a bitmask signifying what types of nodes should be returned by the NodeIterator.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/NodeIterator/whatToShow)\n */\n readonly whatToShow: number;\n /**\n * The **`NodeIterator.detach()`** method is a no-op, kept for backward compatibility only.\n * @deprecated\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/NodeIterator/detach)\n */\n detach(): void;\n /**\n * The **`NodeIterator.nextNode()`** method returns the next node in the set represented by the NodeIterator and advances the position of the iterator within the set.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/NodeIterator/nextNode)\n */\n nextNode(): Node | null;\n /**\n * The **`NodeIterator.previousNode()`** method returns the previous node in the set represented by the NodeIterator and moves the position of the iterator backwards within the set.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/NodeIterator/previousNode)\n */\n previousNode(): Node | null;\n}\n\ndeclare var NodeIterator: {\n prototype: NodeIterator;\n new(): NodeIterator;\n};\n\n/**\n * **`NodeList`** objects are collections of nodes, usually returned by properties such as Node.childNodes and methods such as document.querySelectorAll().\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/NodeList)\n */\ninterface NodeList {\n /**\n * The **`NodeList.length`** property returns the number of items in a NodeList.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/NodeList/length)\n */\n readonly length: number;\n /**\n * Returns a node from a `NodeList` by index.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/NodeList/item)\n */\n item(index: number): Node | null;\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 item(index: number): TNode;\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 * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CharacterData/nextElementSibling)\n */\n readonly nextElementSibling: Element | null;\n /**\n * Returns the first preceding sibling that is an element, and null otherwise.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CharacterData/previousElementSibling)\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 * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/getElementById)\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/**\n * The **`Notification`** interface of the Notifications API is used to configure and display desktop notifications to the user.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Notification)\n */\ninterface Notification extends EventTarget {\n /**\n * The **`badge`** read-only property of the Notification interface returns a string containing the URL of an image to represent the notification when there is not enough space to display the notification itself such as for example, the Android Notification Bar.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Notification/badge)\n */\n readonly badge: string;\n /**\n * The **`body`** read-only property of the specified in the `body` option of the A string.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Notification/body)\n */\n readonly body: string;\n /**\n * The **`data`** read-only property of the data, as specified in the `data` option of the The notification\'s data can be any arbitrary data that you want associated with the notification.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Notification/data)\n */\n readonly data: any;\n /**\n * The **`dir`** read-only property of the Notification interface indicates the text direction of the notification, as specified in the `dir` option of the Notification.Notification constructor.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Notification/dir)\n */\n readonly dir: NotificationDirection;\n /**\n * The **`icon`** read-only property of the part of the notification, as specified in the `icon` option of the A string.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Notification/icon)\n */\n readonly icon: string;\n /**\n * The **`lang`** read-only property of the as specified in the `lang` option of the The language itself is specified using a string representing a language tag according to MISSING: RFC(5646, \'Tags for Identifying Languages (also known as BCP 47)\')].\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Notification/lang)\n */\n readonly lang: string;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Notification/click_event) */\n onclick: ((this: Notification, ev: Event) => any) | null;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Notification/close_event) */\n onclose: ((this: Notification, ev: Event) => any) | null;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Notification/error_event) */\n onerror: ((this: Notification, ev: Event) => any) | null;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Notification/show_event) */\n onshow: ((this: Notification, ev: Event) => any) | null;\n /**\n * The **`requireInteraction`** read-only property of the Notification interface returns a boolean value indicating that a notification should remain active until the user clicks or dismisses it, rather than closing automatically.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Notification/requireInteraction)\n */\n readonly requireInteraction: boolean;\n /**\n * The **`silent`** read-only property of the silent, i.e., no sounds or vibrations should be issued regardless of the device settings.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Notification/silent)\n */\n readonly silent: boolean | null;\n /**\n * The **`tag`** read-only property of the as specified in the `tag` option of the The idea of notification tags is that more than one notification can share the same tag, linking them together.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Notification/tag)\n */\n readonly tag: string;\n /**\n * The **`title`** read-only property of the specified in the `title` parameter of the A string.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Notification/title)\n */\n readonly title: string;\n /**\n * The **`close()`** method of the Notification interface is used to close/remove a previously displayed notification.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Notification/close)\n */\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 /**\n * The **`permission`** read-only static property of the Notification interface indicates the current permission granted by the user for the current origin to display web notifications.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Notification/permission_static)\n */\n readonly permission: NotificationPermission;\n /**\n * The **`requestPermission()`** static method of the Notification interface requests permission from the user for the current origin to display notifications.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Notification/requestPermission_static)\n */\n requestPermission(deprecatedCallback?: NotificationPermissionCallback): Promise<NotificationPermission>;\n};\n\n/**\n * The **`OES_draw_buffers_indexed`** extension is part of the WebGL API and enables the use of different blend options when writing to multiple color buffers simultaneously.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/OES_draw_buffers_indexed)\n */\ninterface OES_draw_buffers_indexed {\n /**\n * The `blendEquationSeparateiOES()` method of the OES_draw_buffers_indexed WebGL extension sets the RGB and alpha blend equations separately for a particular draw buffer.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/OES_draw_buffers_indexed/blendEquationSeparateiOES)\n */\n blendEquationSeparateiOES(buf: GLuint, modeRGB: GLenum, modeAlpha: GLenum): void;\n /**\n * The `blendEquationiOES()` method of the `OES_draw_buffers_indexed` WebGL extension sets both the RGB blend and alpha blend equations for a particular draw buffer.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/OES_draw_buffers_indexed/blendEquationiOES)\n */\n blendEquationiOES(buf: GLuint, mode: GLenum): void;\n /**\n * The `blendFuncSeparateiOES()` method of the OES_draw_buffers_indexed WebGL extension defines which function is used when blending pixels for RGB and alpha components separately for a particular draw buffer.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/OES_draw_buffers_indexed/blendFuncSeparateiOES)\n */\n blendFuncSeparateiOES(buf: GLuint, srcRGB: GLenum, dstRGB: GLenum, srcAlpha: GLenum, dstAlpha: GLenum): void;\n /**\n * The `blendFunciOES()` method of the OES_draw_buffers_indexed WebGL extension defines which function is used when blending pixels for a particular draw buffer.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/OES_draw_buffers_indexed/blendFunciOES)\n */\n blendFunciOES(buf: GLuint, src: GLenum, dst: GLenum): void;\n /**\n * The `colorMaskiOES()` method of the OES_draw_buffers_indexed WebGL extension sets which color components to enable or to disable when drawing or rendering for a particular draw buffer.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/OES_draw_buffers_indexed/colorMaskiOES)\n */\n colorMaskiOES(buf: GLuint, r: GLboolean, g: GLboolean, b: GLboolean, a: GLboolean): void;\n /**\n * The `disableiOES()` method of the OES_draw_buffers_indexed WebGL extension enables blending for a particular draw buffer.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/OES_draw_buffers_indexed/disableiOES)\n */\n disableiOES(target: GLenum, index: GLuint): void;\n /**\n * The `enableiOES()` method of the OES_draw_buffers_indexed WebGL extension enables blending for a particular draw buffer.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/OES_draw_buffers_indexed/enableiOES)\n */\n enableiOES(target: GLenum, index: GLuint): void;\n}\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().\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/OES_element_index_uint)\n */\ninterface OES_element_index_uint {\n}\n\n/**\n * The `OES_fbo_render_mipmap` extension is part of the WebGL API and makes it possible to attach any level of a texture to a framebuffer object.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/OES_fbo_render_mipmap)\n */\ninterface OES_fbo_render_mipmap {\n}\n\n/**\n * The **`OES_standard_derivatives`** extension is part of the WebGL API and adds the GLSL derivative functions `dFdx`, `dFdy`, and `fwidth`.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/OES_standard_derivatives)\n */\ninterface OES_standard_derivatives {\n readonly FRAGMENT_SHADER_DERIVATIVE_HINT_OES: 0x8B8B;\n}\n\n/**\n * The **`OES_texture_float`** extension is part of the WebGL API and exposes floating-point pixel types for textures.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/OES_texture_float)\n */\ninterface OES_texture_float {\n}\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.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/OES_texture_float_linear)\n */\ninterface OES_texture_float_linear {\n}\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.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/OES_texture_half_float)\n */\ninterface OES_texture_half_float {\n readonly HALF_FLOAT_OES: 0x8D61;\n}\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.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/OES_texture_half_float_linear)\n */\ninterface OES_texture_half_float_linear {\n}\n\n/**\n * The **OES_vertex_array_object** extension is part of the WebGL API and provides vertex array objects (VAOs) which encapsulate vertex array states.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/OES_vertex_array_object)\n */\ninterface OES_vertex_array_object {\n /**\n * The **`OES_vertex_array_object.bindVertexArrayOES()`** method of the WebGL API binds a passed WebGLVertexArrayObject object to the buffer.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/OES_vertex_array_object/bindVertexArrayOES)\n */\n bindVertexArrayOES(arrayObject: WebGLVertexArrayObjectOES | null): void;\n /**\n * The **`OES_vertex_array_object.createVertexArrayOES()`** method of the WebGL API creates and initializes a pointing to vertex array data and which provides names for different sets of vertex data.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/OES_vertex_array_object/createVertexArrayOES)\n */\n createVertexArrayOES(): WebGLVertexArrayObjectOES;\n /**\n * The **`OES_vertex_array_object.deleteVertexArrayOES()`** method of the WebGL API deletes a given ```js-nolint deleteVertexArrayOES(arrayObject) ``` - `arrayObject` - : A WebGLVertexArrayObject (VAO) object to delete.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/OES_vertex_array_object/deleteVertexArrayOES)\n */\n deleteVertexArrayOES(arrayObject: WebGLVertexArrayObjectOES | null): void;\n /**\n * The **`OES_vertex_array_object.isVertexArrayOES()`** method of the WebGL API returns `true` if the passed object is a WebGLVertexArrayObject object.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/OES_vertex_array_object/isVertexArrayOES)\n */\n isVertexArrayOES(arrayObject: WebGLVertexArrayObjectOES | null): GLboolean;\n readonly VERTEX_ARRAY_BINDING_OES: 0x85B5;\n}\n\n/**\n * The `OVR_multiview2` extension is part of the WebGL API and adds support for rendering into multiple views simultaneously.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/OVR_multiview2)\n */\ninterface OVR_multiview2 {\n /**\n * The **`OVR_multiview2.framebufferTextureMultiviewOVR()`** method of the WebGL API attaches a multiview texture to a WebGLFramebuffer.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/OVR_multiview2/framebufferTextureMultiviewOVR)\n */\n framebufferTextureMultiviewOVR(target: GLenum, attachment: GLenum, texture: WebGLTexture | null, level: GLint, baseViewIndex: GLint, numViews: GLsizei): void;\n readonly FRAMEBUFFER_ATTACHMENT_TEXTURE_NUM_VIEWS_OVR: 0x9630;\n readonly FRAMEBUFFER_ATTACHMENT_TEXTURE_BASE_VIEW_INDEX_OVR: 0x9632;\n readonly MAX_VIEWS_OVR: 0x9631;\n readonly FRAMEBUFFER_INCOMPLETE_VIEW_TARGETS_OVR: 0x9633;\n}\n\n/**\n * The Web Audio API `OfflineAudioCompletionEvent` interface represents events that occur when the processing of an OfflineAudioContext is terminated.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/OfflineAudioCompletionEvent)\n */\ninterface OfflineAudioCompletionEvent extends Event {\n /**\n * The **`renderedBuffer`** read-only property of the containing the result of processing an OfflineAudioContext.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/OfflineAudioCompletionEvent/renderedBuffer)\n */\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/**\n * The `OfflineAudioContext` interface is an AudioContext interface representing an audio-processing graph built from linked together AudioNodes.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/OfflineAudioContext)\n */\ninterface OfflineAudioContext extends BaseAudioContext {\n /**\n * The **`length`** property of the the buffer in sample-frames.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/OfflineAudioContext/length)\n */\n readonly length: number;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/OfflineAudioContext/complete_event) */\n oncomplete: ((this: OfflineAudioContext, ev: OfflineAudioCompletionEvent) => any) | null;\n /**\n * The **`resume()`** method of the context that has been suspended.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/OfflineAudioContext/resume)\n */\n resume(): Promise<void>;\n /**\n * The `startRendering()` method of the OfflineAudioContext Interface starts rendering the audio graph, taking into account the current connections and the current scheduled changes.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/OfflineAudioContext/startRendering)\n */\n startRendering(): Promise<AudioBuffer>;\n /**\n * The **`suspend()`** method of the OfflineAudioContext interface schedules a suspension of the time progression in the audio context at the specified time and returns a promise.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/OfflineAudioContext/suspend)\n */\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 OffscreenCanvasEventMap {\n "contextlost": Event;\n "contextrestored": Event;\n}\n\n/**\n * When using the canvas element or the Canvas API, rendering, animation, and user interaction usually happen on the main execution thread of a web application.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/OffscreenCanvas)\n */\ninterface OffscreenCanvas extends EventTarget {\n /**\n * The **`height`** property returns and sets the height of an OffscreenCanvas object.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/OffscreenCanvas/height)\n */\n height: number;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/OffscreenCanvas/contextlost_event) */\n oncontextlost: ((this: OffscreenCanvas, ev: Event) => any) | null;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/OffscreenCanvas/contextrestored_event) */\n oncontextrestored: ((this: OffscreenCanvas, ev: Event) => any) | null;\n /**\n * The **`width`** property returns and sets the width of an OffscreenCanvas object.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/OffscreenCanvas/width)\n */\n width: number;\n /**\n * The **`OffscreenCanvas.convertToBlob()`** method creates a Blob object representing the image contained in the canvas.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/OffscreenCanvas/convertToBlob)\n */\n convertToBlob(options?: ImageEncodeOptions): Promise<Blob>;\n /**\n * The **`OffscreenCanvas.getContext()`** method returns a drawing context for an offscreen canvas, or `null` if the context identifier is not supported, or the offscreen canvas has already been set to a different context mode.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/OffscreenCanvas/getContext)\n */\n getContext(contextId: "2d", options?: any): OffscreenCanvasRenderingContext2D | null;\n getContext(contextId: "bitmaprenderer", options?: any): ImageBitmapRenderingContext | null;\n getContext(contextId: "webgl", options?: any): WebGLRenderingContext | null;\n getContext(contextId: "webgl2", options?: any): WebGL2RenderingContext | null;\n getContext(contextId: OffscreenRenderingContextId, options?: any): OffscreenRenderingContext | null;\n /**\n * The **`OffscreenCanvas.transferToImageBitmap()`** method creates an ImageBitmap object from the most recently rendered image of the `OffscreenCanvas`.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/OffscreenCanvas/transferToImageBitmap)\n */\n transferToImageBitmap(): ImageBitmap;\n addEventListener<K extends keyof OffscreenCanvasEventMap>(type: K, listener: (this: OffscreenCanvas, ev: OffscreenCanvasEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n removeEventListener<K extends keyof OffscreenCanvasEventMap>(type: K, listener: (this: OffscreenCanvas, ev: OffscreenCanvasEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\ndeclare var OffscreenCanvas: {\n prototype: OffscreenCanvas;\n new(width: number, height: number): OffscreenCanvas;\n};\n\n/**\n * The **`OffscreenCanvasRenderingContext2D`** interface is a CanvasRenderingContext2D rendering context for drawing to the bitmap of an `OffscreenCanvas` object.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/OffscreenCanvasRenderingContext2D)\n */\ninterface OffscreenCanvasRenderingContext2D extends CanvasCompositing, CanvasDrawImage, CanvasDrawPath, CanvasFillStrokeStyles, CanvasFilters, CanvasImageData, CanvasImageSmoothing, CanvasPath, CanvasPathDrawingStyles, CanvasRect, CanvasShadowStyles, CanvasState, CanvasText, CanvasTextDrawingStyles, CanvasTransform {\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/canvas) */\n readonly canvas: OffscreenCanvas;\n}\n\ndeclare var OffscreenCanvasRenderingContext2D: {\n prototype: OffscreenCanvasRenderingContext2D;\n new(): OffscreenCanvasRenderingContext2D;\n};\n\n/**\n * The **`OscillatorNode`** interface represents a periodic waveform, such as a sine wave.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/OscillatorNode)\n */\ninterface OscillatorNode extends AudioScheduledSourceNode {\n /**\n * The `detune` property of the OscillatorNode interface is an a-rate AudioParam representing detuning of oscillation in cents.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/OscillatorNode/detune)\n */\n readonly detune: AudioParam;\n /**\n * The **`frequency`** property of the OscillatorNode interface is an a-rate AudioParam representing the frequency of oscillation in hertz.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/OscillatorNode/frequency)\n */\n readonly frequency: AudioParam;\n /**\n * The **`type`** property of the OscillatorNode interface specifies what shape of waveform the oscillator will output.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/OscillatorNode/type)\n */\n type: OscillatorType;\n /**\n * The **`setPeriodicWave()`** method of the OscillatorNode interface is used to point to a PeriodicWave defining a periodic waveform that can be used to shape the oscillator\'s output, when ```js-nolint setPeriodicWave(wave) ``` - `wave` - : A PeriodicWave object representing the waveform to use as the shape of the oscillator\'s output.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/OscillatorNode/setPeriodicWave)\n */\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\n/**\n * The **`OverconstrainedError`** interface of the Media Capture and Streams API indicates that the set of desired capabilities for the current MediaStreamTrack cannot currently be met.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/OverconstrainedError)\n */\ninterface OverconstrainedError extends DOMException {\n /**\n * The **`constraint`** read-only property of the in the constructor, meaning the constraint that was not satisfied.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/OverconstrainedError/constraint)\n */\n readonly constraint: string;\n}\n\ndeclare var OverconstrainedError: {\n prototype: OverconstrainedError;\n new(constraint: string, message?: string): OverconstrainedError;\n};\n\n/**\n * The **`PageRevealEvent`** event object is made available inside handler functions for the Window.pagereveal_event event.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/PageRevealEvent)\n */\ninterface PageRevealEvent extends Event {\n /**\n * The **`viewTransition`** read-only property of the PageRevealEvent interface contains a ViewTransition object representing the active view transition for the cross-document navigation.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/PageRevealEvent/viewTransition)\n */\n readonly viewTransition: ViewTransition | null;\n}\n\ndeclare var PageRevealEvent: {\n prototype: PageRevealEvent;\n new(type: string, eventInitDict?: PageRevealEventInit): PageRevealEvent;\n};\n\n/**\n * The **`PageSwapEvent`** event object is made available inside handler functions for the Window.pageswap_event event.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/PageSwapEvent)\n */\ninterface PageSwapEvent extends Event {\n /**\n * The **`activation`** read-only property of the PageSwapEvent interface contains a NavigationActivation object containing the navigation type and current and destination document history entries for a same-origin navigation.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/PageSwapEvent/activation)\n */\n readonly activation: NavigationActivation | null;\n /**\n * The **`viewTransition`** read-only property of the PageRevealEvent interface contains a ViewTransition object representing the active view transition for the cross-document navigation.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/PageSwapEvent/viewTransition)\n */\n readonly viewTransition: ViewTransition | null;\n}\n\ndeclare var PageSwapEvent: {\n prototype: PageSwapEvent;\n new(type: string, eventInitDict?: PageSwapEventInit): PageSwapEvent;\n};\n\n/**\n * The **`PageTransitionEvent`** event object is available inside handler functions for the `pageshow` and `pagehide` events, fired when a document is being loaded or unloaded.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/PageTransitionEvent)\n */\ninterface PageTransitionEvent extends Event {\n /**\n * The **`persisted`** read-only property indicates if a webpage is loading from a cache.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/PageTransitionEvent/persisted)\n */\n readonly persisted: boolean;\n}\n\ndeclare var PageTransitionEvent: {\n prototype: PageTransitionEvent;\n new(type: string, eventInitDict?: PageTransitionEventInit): PageTransitionEvent;\n};\n\n/**\n * The `PannerNode` interface defines an audio-processing object that represents the location, direction, and behavior of an audio source signal in a simulated physical space.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/PannerNode)\n */\ninterface PannerNode extends AudioNode {\n /**\n * The `coneInnerAngle` property of the PannerNode interface is a double value describing the angle, in degrees, of a cone inside of which there will be no volume reduction.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/PannerNode/coneInnerAngle)\n */\n coneInnerAngle: number;\n /**\n * The `coneOuterAngle` property of the PannerNode interface is a double value describing the angle, in degrees, of a cone outside of which the volume will be reduced by a constant value, defined by the PannerNode.coneOuterGain property.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/PannerNode/coneOuterAngle)\n */\n coneOuterAngle: number;\n /**\n * The `coneOuterGain` property of the PannerNode interface is a double value, describing the amount of volume reduction outside the cone, defined by the PannerNode.coneOuterAngle attribute.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/PannerNode/coneOuterGain)\n */\n coneOuterGain: number;\n /**\n * The `distanceModel` property of the PannerNode interface is an enumerated value determining which algorithm to use to reduce the volume of the audio source as it moves away from the listener.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/PannerNode/distanceModel)\n */\n distanceModel: DistanceModelType;\n /**\n * The `maxDistance` property of the PannerNode interface is a double value representing the maximum distance between the audio source and the listener, after which the volume is not reduced any further.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/PannerNode/maxDistance)\n */\n maxDistance: number;\n /**\n * The **`orientationX`** property of the PannerNode interface indicates the X (horizontal) component of the direction in which the audio source is facing, in a 3D Cartesian coordinate space.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/PannerNode/orientationX)\n */\n readonly orientationX: AudioParam;\n /**\n * The **`orientationY`** property of the PannerNode interface indicates the Y (vertical) component of the direction the audio source is facing, in 3D Cartesian coordinate space.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/PannerNode/orientationY)\n */\n readonly orientationY: AudioParam;\n /**\n * The **`orientationZ`** property of the PannerNode interface indicates the Z (depth) component of the direction the audio source is facing, in 3D Cartesian coordinate space.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/PannerNode/orientationZ)\n */\n readonly orientationZ: AudioParam;\n /**\n * The `panningModel` property of the PannerNode interface is an enumerated value determining which spatialization algorithm to use to position the audio in 3D space.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/PannerNode/panningModel)\n */\n panningModel: PanningModelType;\n /**\n * The **`positionX`** property of the PannerNode interface specifies the X coordinate of the audio source\'s position in 3D Cartesian coordinates, corresponding to the _horizontal_ axis (left-right).\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/PannerNode/positionX)\n */\n readonly positionX: AudioParam;\n /**\n * The **`positionY`** property of the PannerNode interface specifies the Y coordinate of the audio source\'s position in 3D Cartesian coordinates, corresponding to the _vertical_ axis (top-bottom).\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/PannerNode/positionY)\n */\n readonly positionY: AudioParam;\n /**\n * The **`positionZ`** property of the PannerNode interface specifies the Z coordinate of the audio source\'s position in 3D Cartesian coordinates, corresponding to the _depth_ axis (behind-in front of the listener).\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/PannerNode/positionZ)\n */\n readonly positionZ: AudioParam;\n /**\n * The `refDistance` property of the PannerNode interface is a double value representing the reference distance for reducing volume as the audio source moves further from the listener – i.e., the distance at which the volume reduction starts taking effect.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/PannerNode/refDistance)\n */\n refDistance: number;\n /**\n * The `rolloffFactor` property of the PannerNode interface is a double value describing how quickly the volume is reduced as the source moves away from the listener.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/PannerNode/rolloffFactor)\n */\n rolloffFactor: number;\n /**\n * The `setOrientation()` method of the PannerNode Interface defines the direction the audio source is playing in.\n * @deprecated\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/PannerNode/setOrientation)\n */\n setOrientation(x: number, y: number, z: number): void;\n /**\n * The `setPosition()` method of the PannerNode Interface defines the position of the audio source relative to the listener (represented by an AudioListener object stored in the BaseAudioContext.listener attribute.) The three parameters `x`, `y` and `z` are unitless and describe the source\'s position in 3D space using the right-hand Cartesian coordinate system.\n * @deprecated\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/PannerNode/setPosition)\n */\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 extends Node {\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/childElementCount) */\n readonly childElementCount: number;\n /**\n * Returns the child elements.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/children)\n */\n readonly children: HTMLCollection;\n /**\n * Returns the first child that is an element, and null otherwise.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/firstElementChild)\n */\n readonly firstElementChild: Element | null;\n /**\n * Returns the last child that is an element, and null otherwise.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/lastElementChild)\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 * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/append)\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 * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/prepend)\n */\n prepend(...nodes: (Node | string)[]): void;\n /**\n * Returns the first element that is a descendant of node that matches selectors.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/querySelector)\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<K extends keyof MathMLElementTagNameMap>(selectors: K): MathMLElementTagNameMap[K] | null;\n /** @deprecated */\n querySelector<K extends keyof HTMLElementDeprecatedTagNameMap>(selectors: K): HTMLElementDeprecatedTagNameMap[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 * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/querySelectorAll)\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<K extends keyof MathMLElementTagNameMap>(selectors: K): NodeListOf<MathMLElementTagNameMap[K]>;\n /** @deprecated */\n querySelectorAll<K extends keyof HTMLElementDeprecatedTagNameMap>(selectors: K): NodeListOf<HTMLElementDeprecatedTagNameMap[K]>;\n querySelectorAll<E extends Element = Element>(selectors: string): NodeListOf<E>;\n /**\n * Replace all children of 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 * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/replaceChildren)\n */\n replaceChildren(...nodes: (Node | string)[]): void;\n}\n\n/**\n * The **`Path2D`** interface of the Canvas 2D API is used to declare a path that can then be used on a CanvasRenderingContext2D object.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Path2D)\n */\ninterface Path2D extends CanvasPath {\n /**\n * The **`Path2D.addPath()`** method of the Canvas 2D API adds one Path2D object to another `Path2D` object.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Path2D/addPath)\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/**\n * The **`ContactAddress`** interface of the Contact Picker API represents a physical address.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ContactAddress)\n */\ninterface PaymentAddress {\n /**\n * The **`addressLine`** read-only property of the ContactAddress interface is an array of strings, each specifying a line of the address that is not covered by one of the other properties of `ContactAddress`.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ContactAddress/addressLine)\n */\n readonly addressLine: ReadonlyArray<string>;\n /**\n * The **`city`** read-only property of the ContactAddress interface returns a string containing the city or town portion of the address.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ContactAddress/city)\n */\n readonly city: string;\n /**\n * The **`country`** read-only property of the ContactAddress interface is a string identifying the address\'s country using the ISO 3166-1 alpha-2 standard.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ContactAddress/country)\n */\n readonly country: string;\n /**\n * The read-only **`dependentLocality`** property of the ContactAddress interface is a string containing a locality or sublocality designation within a city, such as a neighborhood, borough, district, or, in the United Kingdom, a dependent locality.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ContactAddress/dependentLocality)\n */\n readonly dependentLocality: string;\n /**\n * The **`organization`** read-only property of the ContactAddress interface returns a string containing the name of the organization, firm, company, or institution at the address.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ContactAddress/organization)\n */\n readonly organization: string;\n /**\n * The read-only **`phone`** property of the ContactAddress interface returns a string containing the telephone number of the recipient or contact person at the address.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ContactAddress/phone)\n */\n readonly phone: string;\n /**\n * The **`postalCode`** read-only property of the ContactAddress interface returns a string containing a code used by a jurisdiction for mail routing, for example, the ZIP Code in the United States or the Postal Index Number (PIN code) in India.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ContactAddress/postalCode)\n */\n readonly postalCode: string;\n /**\n * The read-only **`recipient`** property of the ContactAddress interface returns a string containing the name of the recipient, purchaser, or contact person at the address.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ContactAddress/recipient)\n */\n readonly recipient: string;\n /**\n * The read-only **`region`** property of the ContactAddress interface returns a string containing the top-level administrative subdivision of the country in which the address is located.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ContactAddress/region)\n */\n readonly region: string;\n /**\n * The **`sortingCode`** read-only property of the ContactAddress interface returns a string containing a postal sorting code such as is used in France.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ContactAddress/sortingCode)\n */\n readonly sortingCode: string;\n /**\n * The **`toJSON()`** method of the ContactAddress interface is a standard serializer that returns a JSON representation of the `ContactAddress` object\'s properties.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ContactAddress/toJSON)\n */\n toJSON(): any;\n}\n\ndeclare var PaymentAddress: {\n prototype: PaymentAddress;\n new(): PaymentAddress;\n};\n\n/**\n * The **`PaymentMethodChangeEvent`** interface of the Payment Request API describes the PaymentRequest/paymentmethodchange_event event which is fired by some payment handlers when the user switches payment instruments (e.g., a user selects a \'store\' card to make a purchase while using Apple Pay).\n * Available only in secure contexts.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/PaymentMethodChangeEvent)\n */\ninterface PaymentMethodChangeEvent extends PaymentRequestUpdateEvent {\n /**\n * The read-only **`methodDetails`** property of the PaymentMethodChangeEvent interface is an object containing any data the payment handler may provide to describe the change the user has made to their payment method.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/PaymentMethodChangeEvent/methodDetails)\n */\n readonly methodDetails: any;\n /**\n * The read-only **`methodName`** property of the PaymentMethodChangeEvent interface is a string which uniquely identifies the payment handler currently selected by the user.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/PaymentMethodChangeEvent/methodName)\n */\n readonly methodName: string;\n}\n\ndeclare var PaymentMethodChangeEvent: {\n prototype: PaymentMethodChangeEvent;\n new(type: string, eventInitDict?: PaymentMethodChangeEventInit): PaymentMethodChangeEvent;\n};\n\ninterface PaymentRequestEventMap {\n "paymentmethodchange": PaymentMethodChangeEvent;\n "shippingaddresschange": PaymentRequestUpdateEvent;\n "shippingoptionchange": PaymentRequestUpdateEvent;\n}\n\n/**\n * The Payment Request API\'s **`PaymentRequest`** interface is the primary access point into the API, and lets web content and apps accept payments from the end user on behalf of the operator of the site or the publisher of the app.\n * Available only in secure contexts.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/PaymentRequest)\n */\ninterface PaymentRequest extends EventTarget {\n /**\n * The **`id`** read-only attribute of the When constructing an instance of the PaymentRequest, you are able to supply an custom id.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/PaymentRequest/id)\n */\n readonly id: string;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PaymentRequest/paymentmethodchange_event) */\n onpaymentmethodchange: ((this: PaymentRequest, ev: PaymentMethodChangeEvent) => any) | null;\n /**\n * @deprecated\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/PaymentRequest/shippingaddresschange_event)\n */\n onshippingaddresschange: ((this: PaymentRequest, ev: PaymentRequestUpdateEvent) => any) | null;\n /**\n * @deprecated\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/PaymentRequest/shippingoptionchange_event)\n */\n onshippingoptionchange: ((this: PaymentRequest, ev: PaymentRequestUpdateEvent) => any) | null;\n /**\n * The **`shippingAddress`** read-only property of the PaymentRequest interface returns the shipping address provided by the user.\n * @deprecated\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/PaymentRequest/shippingAddress)\n */\n readonly shippingAddress: PaymentAddress | null;\n /**\n * The **`shippingOption`** read-only attribute of the PaymentRequest interface returns either the id of a selected shipping option, null (if no shipping option was set to be selected) or a shipping option selected by the user.\n * @deprecated\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/PaymentRequest/shippingOption)\n */\n readonly shippingOption: string | null;\n /**\n * The **`shippingType`** read-only property of the `\'delivery\'`, `\'pickup\'`, or `null` if one was not provided by the constructor.\n * @deprecated\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/PaymentRequest/shippingType)\n */\n readonly shippingType: PaymentShippingType | null;\n /**\n * The `PaymentRequest.abort()` method of the PaymentRequest interface causes the user agent to end the payment request and to remove any user interface that might be shown.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/PaymentRequest/abort)\n */\n abort(): Promise<void>;\n /**\n * The PaymentRequest method **`canMakePayment()`** determines whether or not the request is configured in a way that is compatible with at least one payment method supported by the user agent.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/PaymentRequest/canMakePayment)\n */\n canMakePayment(): Promise<boolean>;\n /**\n * The **PaymentRequest** interface\'s **`show()`** method instructs the user agent to begin the process of showing and handling the user interface for the payment request to the user.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/PaymentRequest/show)\n */\n show(detailsPromise?: PaymentDetailsUpdate | PromiseLike<PaymentDetailsUpdate>): 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/**\n * The **`PaymentRequestUpdateEvent`** interface is used for events sent to a PaymentRequest instance when changes are made to shipping-related information for a pending PaymentRequest.\n * Available only in secure contexts.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/PaymentRequestUpdateEvent)\n */\ninterface PaymentRequestUpdateEvent extends Event {\n /**\n * The **`updateWith()`** method of the ```js-nolint updateWith(details) ``` - `details` - : Either an object or a Promise that resolves to an object, specifying the changes applied to the payment request: - `displayItems` MISSING: optional_inline] - : An array of objects, each describing one line item for the payment request.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/PaymentRequestUpdateEvent/updateWith)\n */\n updateWith(detailsPromise: PaymentDetailsUpdate | PromiseLike<PaymentDetailsUpdate>): void;\n}\n\ndeclare var PaymentRequestUpdateEvent: {\n prototype: PaymentRequestUpdateEvent;\n new(type: string, eventInitDict?: PaymentRequestUpdateEventInit): PaymentRequestUpdateEvent;\n};\n\ninterface PaymentResponseEventMap {\n "payerdetailchange": PaymentRequestUpdateEvent;\n}\n\n/**\n * The **`PaymentResponse`** interface of the Payment Request API is returned after a user selects a payment method and approves a payment request.\n * Available only in secure contexts.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/PaymentResponse)\n */\ninterface PaymentResponse extends EventTarget {\n /**\n * The **`details`** read-only property of the provides a payment method specific message used by the merchant to process the transaction and determine a successful funds transfer.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/PaymentResponse/details)\n */\n readonly details: any;\n /**\n * The **`methodName`** read-only property of the PaymentResponse interface returns a string uniquely identifying the payment handler selected by the user.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/PaymentResponse/methodName)\n */\n readonly methodName: string;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PaymentResponse/payerdetailchange_event) */\n onpayerdetailchange: ((this: PaymentResponse, ev: PaymentRequestUpdateEvent) => any) | null;\n /**\n * The `payerEmail` read-only property of the PaymentResponse interface returns the email address supplied by the user.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/PaymentResponse/payerEmail)\n */\n readonly payerEmail: string | null;\n /**\n * The **`payerName`** read-only property of the option is only present when the `requestPayerName` option is set to `true` in the options parameter of the A string containing the payer name.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/PaymentResponse/payerName)\n */\n readonly payerName: string | null;\n /**\n * The `payerPhone` read-only property of the PaymentResponse interface returns the phone number supplied by the user.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/PaymentResponse/payerPhone)\n */\n readonly payerPhone: string | null;\n /**\n * The **`requestId`** read-only property of the the `PaymentResponse()` constructor by details.id.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/PaymentResponse/requestId)\n */\n readonly requestId: string;\n /**\n * The **`shippingAddress`** read-only property of the `PaymentRequest` interface returns a PaymentAddress object containing the shipping address provided by the user.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/PaymentResponse/shippingAddress)\n */\n readonly shippingAddress: PaymentAddress | null;\n /**\n * The **`shippingOption`** read-only property of the `PaymentRequest` interface returns the ID attribute of the shipping option selected by the user.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/PaymentResponse/shippingOption)\n */\n readonly shippingOption: string | null;\n /**\n * The PaymentRequest method **`complete()`** of the Payment Request API notifies the user interface to be closed.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/PaymentResponse/complete)\n */\n complete(result?: PaymentComplete): Promise<void>;\n /**\n * The PaymentResponse interface\'s **`retry()`** method makes it possible to ask the user to retry a payment after an error occurs during processing.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/PaymentResponse/retry)\n */\n retry(errorFields?: PaymentValidationErrors): Promise<void>;\n /**\n * The **`toJSON()`** method of the PaymentResponse interface is a Serialization; it returns a JSON representation of the PaymentResponse object.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/PaymentResponse/toJSON)\n */\n toJSON(): any;\n addEventListener<K extends keyof PaymentResponseEventMap>(type: K, listener: (this: PaymentResponse, ev: PaymentResponseEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n removeEventListener<K extends keyof PaymentResponseEventMap>(type: K, listener: (this: PaymentResponse, ev: PaymentResponseEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\ndeclare var PaymentResponse: {\n prototype: PaymentResponse;\n new(): PaymentResponse;\n};\n\ninterface PerformanceEventMap {\n "resourcetimingbufferfull": Event;\n}\n\n/**\n * The **`Performance`** interface provides access to performance-related information for the current page.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Performance)\n */\ninterface Performance extends EventTarget {\n /**\n * The read-only `performance.eventCounts` property is an EventCounts map containing the number of events which have been dispatched per event type.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Performance/eventCounts)\n */\n readonly eventCounts: EventCounts;\n /**\n * The legacy **`Performance.navigation`** read-only property returns a PerformanceNavigation object representing the type of navigation that occurs in the given browsing context, such as the number of redirections needed to fetch the resource.\n * @deprecated\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Performance/navigation)\n */\n readonly navigation: PerformanceNavigation;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Performance/resourcetimingbufferfull_event) */\n onresourcetimingbufferfull: ((this: Performance, ev: Event) => any) | null;\n /**\n * The **`timeOrigin`** read-only property of the Performance interface returns the high resolution timestamp that is used as the baseline for performance-related timestamps.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Performance/timeOrigin)\n */\n readonly timeOrigin: DOMHighResTimeStamp;\n /**\n * The legacy **`Performance.timing`** read-only property returns a PerformanceTiming object containing latency-related performance information.\n * @deprecated\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Performance/timing)\n */\n readonly timing: PerformanceTiming;\n /**\n * The **`clearMarks()`** method removes all or specific PerformanceMark objects from the browser\'s performance timeline.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Performance/clearMarks)\n */\n clearMarks(markName?: string): void;\n /**\n * The **`clearMeasures()`** method removes all or specific PerformanceMeasure objects from the browser\'s performance timeline.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Performance/clearMeasures)\n */\n clearMeasures(measureName?: string): void;\n /**\n * The **`clearResourceTimings()`** method removes all performance entries with an PerformanceEntry.entryType of `\'resource\'` from the browser\'s performance timeline and sets the size of the performance resource data buffer to zero.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Performance/clearResourceTimings)\n */\n clearResourceTimings(): void;\n /**\n * The **`getEntries()`** method returns an array of all PerformanceEntry objects currently present in the performance timeline.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Performance/getEntries)\n */\n getEntries(): PerformanceEntryList;\n /**\n * The **`getEntriesByName()`** method returns an array of PerformanceEntry objects currently present in the performance timeline with the given _name_ and _type_.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Performance/getEntriesByName)\n */\n getEntriesByName(name: string, type?: string): PerformanceEntryList;\n /**\n * The **`getEntriesByType()`** method returns an array of PerformanceEntry objects currently present in the performance timeline for a given _type_.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Performance/getEntriesByType)\n */\n getEntriesByType(type: string): PerformanceEntryList;\n /**\n * The **`mark()`** method creates a named PerformanceMark object representing a high resolution timestamp marker in the browser\'s performance timeline.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Performance/mark)\n */\n mark(markName: string, markOptions?: PerformanceMarkOptions): PerformanceMark;\n /**\n * The **`measure()`** method creates a named PerformanceMeasure object representing a time measurement between two marks in the browser\'s performance timeline.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Performance/measure)\n */\n measure(measureName: string, startOrMeasureOptions?: string | PerformanceMeasureOptions, endMark?: string): PerformanceMeasure;\n /**\n * The **`performance.now()`** method returns a high resolution timestamp in milliseconds.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Performance/now)\n */\n now(): DOMHighResTimeStamp;\n /**\n * The **`setResourceTimingBufferSize()`** method sets the desired size of the browser\'s resource timing buffer which stores the `\'resource\'` performance entries.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Performance/setResourceTimingBufferSize)\n */\n setResourceTimingBufferSize(maxSize: number): void;\n /**\n * The **`toJSON()`** method of the Performance interface is a Serialization; it returns a JSON representation of the Performance object.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Performance/toJSON)\n */\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/**\n * The **`PerformanceEntry`** object encapsulates a single performance metric that is part of the browser\'s performance timeline.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceEntry)\n */\ninterface PerformanceEntry {\n /**\n * The read-only **`duration`** property returns a DOMHighResTimeStamp that is the duration of the PerformanceEntry.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceEntry/duration)\n */\n readonly duration: DOMHighResTimeStamp;\n /**\n * The read-only **`entryType`** property returns a string representing the type of performance metric that this entry represents.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceEntry/entryType)\n */\n readonly entryType: string;\n /**\n * The read-only **`name`** property of the PerformanceEntry interface is a string representing the name for a performance entry.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceEntry/name)\n */\n readonly name: string;\n /**\n * The read-only **`startTime`** property returns the first DOMHighResTimeStamp recorded for this PerformanceEntry.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceEntry/startTime)\n */\n readonly startTime: DOMHighResTimeStamp;\n /**\n * The **`toJSON()`** method is a Serialization; it returns a JSON representation of the PerformanceEntry object.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceEntry/toJSON)\n */\n toJSON(): any;\n}\n\ndeclare var PerformanceEntry: {\n prototype: PerformanceEntry;\n new(): PerformanceEntry;\n};\n\n/**\n * The `PerformanceEventTiming` interface of the Event Timing API provides insights into the latency of certain event types triggered by user interaction.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceEventTiming)\n */\ninterface PerformanceEventTiming extends PerformanceEntry {\n /**\n * The read-only **`cancelable`** property returns the associated event\'s `cancelable` property, indicating whether the event can be canceled.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceEventTiming/cancelable)\n */\n readonly cancelable: boolean;\n /**\n * The read-only **`processingEnd`** property returns the time the last event handler finished executing.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceEventTiming/processingEnd)\n */\n readonly processingEnd: DOMHighResTimeStamp;\n /**\n * The read-only **`processingStart`** property returns the time at which event dispatch started.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceEventTiming/processingStart)\n */\n readonly processingStart: DOMHighResTimeStamp;\n /**\n * The read-only **`target`** property returns the associated event\'s last `target` which is the node onto which the event was last dispatched.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceEventTiming/target)\n */\n readonly target: Node | null;\n /**\n * The **`toJSON()`** method of the PerformanceEventTiming interface is a Serialization; it returns a JSON representation of the PerformanceEventTiming object.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceEventTiming/toJSON)\n */\n toJSON(): any;\n}\n\ndeclare var PerformanceEventTiming: {\n prototype: PerformanceEventTiming;\n new(): PerformanceEventTiming;\n};\n\n/**\n * **`PerformanceMark`** is an interface for PerformanceEntry objects with an PerformanceEntry.entryType of `\'mark\'`.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceMark)\n */\ninterface PerformanceMark extends PerformanceEntry {\n /**\n * The read-only **`detail`** property returns arbitrary metadata that was included in the mark upon construction (either when using Performance.mark or the PerformanceMark.PerformanceMark constructor).\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceMark/detail)\n */\n readonly detail: any;\n}\n\ndeclare var PerformanceMark: {\n prototype: PerformanceMark;\n new(markName: string, markOptions?: PerformanceMarkOptions): PerformanceMark;\n};\n\n/**\n * **`PerformanceMeasure`** is an _abstract_ interface for PerformanceEntry objects with an PerformanceEntry.entryType of `\'measure\'`.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceMeasure)\n */\ninterface PerformanceMeasure extends PerformanceEntry {\n /**\n * The read-only **`detail`** property returns arbitrary metadata that was included in the mark upon construction (when using Performance.measure.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceMeasure/detail)\n */\n readonly detail: any;\n}\n\ndeclare var PerformanceMeasure: {\n prototype: PerformanceMeasure;\n new(): PerformanceMeasure;\n};\n\n/**\n * The legacy **`PerformanceNavigation`** interface represents information about how the navigation to the current document was done.\n * @deprecated This interface is deprecated in the Navigation Timing Level 2 specification. Please use the PerformanceNavigationTiming interface instead.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceNavigation)\n */\ninterface PerformanceNavigation {\n /**\n * The legacy **`PerformanceNavigation.redirectCount`** read-only property returns an `unsigned short` representing the number of REDIRECTs done before reaching the page.\n * @deprecated\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceNavigation/redirectCount)\n */\n readonly redirectCount: number;\n /**\n * The legacy **`PerformanceNavigation.type`** read-only property returns an `unsigned short` containing a constant describing how the navigation to this page was done.\n * @deprecated\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceNavigation/type)\n */\n readonly type: number;\n /**\n * The **`toJSON()`** method of the PerformanceNavigation interface is a Serialization; it returns a JSON representation of the PerformanceNavigation object.\n * @deprecated\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceNavigation/toJSON)\n */\n toJSON(): any;\n readonly TYPE_NAVIGATE: 0;\n readonly TYPE_RELOAD: 1;\n readonly TYPE_BACK_FORWARD: 2;\n readonly TYPE_RESERVED: 255;\n}\n\n/** @deprecated */\ndeclare var PerformanceNavigation: {\n prototype: PerformanceNavigation;\n new(): PerformanceNavigation;\n readonly TYPE_NAVIGATE: 0;\n readonly TYPE_RELOAD: 1;\n readonly TYPE_BACK_FORWARD: 2;\n readonly TYPE_RESERVED: 255;\n};\n\n/**\n * The **`PerformanceNavigationTiming`** interface provides methods and properties to store and retrieve metrics regarding the browser\'s document navigation events.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceNavigationTiming)\n */\ninterface PerformanceNavigationTiming extends PerformanceResourceTiming {\n /**\n * The **`domComplete`** read-only property returns a DOMHighResTimeStamp representing the time immediately before the user agent sets the document\'s `readyState` to `\'complete\'`.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceNavigationTiming/domComplete)\n */\n readonly domComplete: DOMHighResTimeStamp;\n /**\n * The **`domContentLoadedEventEnd`** read-only property returns a DOMHighResTimeStamp representing the time immediately after the current document\'s `DOMContentLoaded` event handler completes.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceNavigationTiming/domContentLoadedEventEnd)\n */\n readonly domContentLoadedEventEnd: DOMHighResTimeStamp;\n /**\n * The **`domContentLoadedEventStart`** read-only property returns a DOMHighResTimeStamp representing the time immediately before the current document\'s `DOMContentLoaded` event handler starts.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceNavigationTiming/domContentLoadedEventStart)\n */\n readonly domContentLoadedEventStart: DOMHighResTimeStamp;\n /**\n * The **`domInteractive`** read-only property returns a DOMHighResTimeStamp representing the time immediately before the user agent sets the document\'s `readyState` to `\'interactive\'`.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceNavigationTiming/domInteractive)\n */\n readonly domInteractive: DOMHighResTimeStamp;\n /**\n * The **`loadEventEnd`** read-only property returns a DOMHighResTimeStamp representing the time immediately after the current document\'s `load` event handler completes.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceNavigationTiming/loadEventEnd)\n */\n readonly loadEventEnd: DOMHighResTimeStamp;\n /**\n * The **`loadEventStart`** read-only property returns a DOMHighResTimeStamp representing the time immediately before the current document\'s `load` event handler starts.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceNavigationTiming/loadEventStart)\n */\n readonly loadEventStart: DOMHighResTimeStamp;\n /**\n * The **`redirectCount`** read-only property returns a number representing the number of redirects since the last non-redirect navigation in the current browsing context.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceNavigationTiming/redirectCount)\n */\n readonly redirectCount: number;\n /**\n * The **`type`** read-only property returns the type of navigation.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceNavigationTiming/type)\n */\n readonly type: NavigationTimingType;\n /**\n * The **`unloadEventEnd`** read-only property returns a DOMHighResTimeStamp representing the time immediately after the current document\'s `unload` event handler completes.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceNavigationTiming/unloadEventEnd)\n */\n readonly unloadEventEnd: DOMHighResTimeStamp;\n /**\n * The **`unloadEventStart`** read-only property returns a DOMHighResTimeStamp representing the time immediately before the current document\'s `unload` event handler starts.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceNavigationTiming/unloadEventStart)\n */\n readonly unloadEventStart: DOMHighResTimeStamp;\n /**\n * The **`toJSON()`** method of the PerformanceNavigationTiming interface is a Serialization; it returns a JSON representation of the PerformanceNavigationTiming object.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceNavigationTiming/toJSON)\n */\n toJSON(): any;\n}\n\ndeclare var PerformanceNavigationTiming: {\n prototype: PerformanceNavigationTiming;\n new(): PerformanceNavigationTiming;\n};\n\n/**\n * The **`PerformanceObserver`** interface is used to observe performance measurement events and be notified of new PerformanceEntry as they are recorded in the browser\'s _performance timeline_.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceObserver)\n */\ninterface PerformanceObserver {\n /**\n * The **`disconnect()`** method of the PerformanceObserver interface is used to stop the performance observer from receiving any PerformanceEntry events.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceObserver/disconnect)\n */\n disconnect(): void;\n /**\n * The **`observe()`** method of the **PerformanceObserver** interface is used to specify the set of performance entry types to observe.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceObserver/observe)\n */\n observe(options?: PerformanceObserverInit): void;\n /**\n * The **`takeRecords()`** method of the PerformanceObserver interface returns the current list of PerformanceEntry objects stored in the performance observer, emptying it out.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceObserver/takeRecords)\n */\n takeRecords(): PerformanceEntryList;\n}\n\ndeclare var PerformanceObserver: {\n prototype: PerformanceObserver;\n new(callback: PerformanceObserverCallback): PerformanceObserver;\n /**\n * The static **`supportedEntryTypes`** read-only property of the PerformanceObserver interface returns an array of the PerformanceEntry.entryType values supported by the user agent.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceObserver/supportedEntryTypes_static)\n */\n readonly supportedEntryTypes: ReadonlyArray<string>;\n};\n\n/**\n * The **`PerformanceObserverEntryList`** interface is a list of PerformanceEntry that were explicitly observed via the PerformanceObserver.observe method.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceObserverEntryList)\n */\ninterface PerformanceObserverEntryList {\n /**\n * The **`getEntries()`** method of the PerformanceObserverEntryList interface returns a list of explicitly observed PerformanceEntry objects.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceObserverEntryList/getEntries)\n */\n getEntries(): PerformanceEntryList;\n /**\n * The **`getEntriesByName()`** method of the PerformanceObserverEntryList interface returns a list of explicitly observed PerformanceEntry objects for a given PerformanceEntry.name and PerformanceEntry.entryType.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceObserverEntryList/getEntriesByName)\n */\n getEntriesByName(name: string, type?: string): PerformanceEntryList;\n /**\n * The **`getEntriesByType()`** method of the PerformanceObserverEntryList returns a list of explicitly _observed_ PerformanceEntry objects for a given PerformanceEntry.entryType.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceObserverEntryList/getEntriesByType)\n */\n getEntriesByType(type: string): PerformanceEntryList;\n}\n\ndeclare var PerformanceObserverEntryList: {\n prototype: PerformanceObserverEntryList;\n new(): PerformanceObserverEntryList;\n};\n\n/**\n * The **`PerformancePaintTiming`** interface provides timing information about \'paint\' (also called \'render\') operations during web page construction.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformancePaintTiming)\n */\ninterface PerformancePaintTiming extends PerformanceEntry {\n}\n\ndeclare var PerformancePaintTiming: {\n prototype: PerformancePaintTiming;\n new(): PerformancePaintTiming;\n};\n\n/**\n * The **`PerformanceResourceTiming`** interface enables retrieval and analysis of detailed network timing data regarding the loading of an application\'s resources.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceResourceTiming)\n */\ninterface PerformanceResourceTiming extends PerformanceEntry {\n /**\n * The **`connectEnd`** read-only property returns the DOMHighResTimeStamp immediately after the browser finishes establishing the connection to the server to retrieve the resource.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceResourceTiming/connectEnd)\n */\n readonly connectEnd: DOMHighResTimeStamp;\n /**\n * The **`connectStart`** read-only property returns the DOMHighResTimeStamp immediately before the user agent starts establishing the connection to the server to retrieve the resource.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceResourceTiming/connectStart)\n */\n readonly connectStart: DOMHighResTimeStamp;\n /**\n * The **`decodedBodySize`** read-only property returns the size (in octets) received from the fetch (HTTP or cache) of the message body after removing any applied content encoding (like gzip or Brotli).\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceResourceTiming/decodedBodySize)\n */\n readonly decodedBodySize: number;\n /**\n * The **`domainLookupEnd`** read-only property returns the DOMHighResTimeStamp immediately after the browser finishes the domain-name lookup for the resource.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceResourceTiming/domainLookupEnd)\n */\n readonly domainLookupEnd: DOMHighResTimeStamp;\n /**\n * The **`domainLookupStart`** read-only property returns the DOMHighResTimeStamp immediately before the browser starts the domain name lookup for the resource.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceResourceTiming/domainLookupStart)\n */\n readonly domainLookupStart: DOMHighResTimeStamp;\n /**\n * The **`encodedBodySize`** read-only property represents the size (in octets) received from the fetch (HTTP or cache) of the payload body before removing any applied content encodings (like gzip or Brotli).\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceResourceTiming/encodedBodySize)\n */\n readonly encodedBodySize: number;\n /**\n * The **`fetchStart`** read-only property represents a DOMHighResTimeStamp immediately before the browser starts to fetch the resource.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceResourceTiming/fetchStart)\n */\n readonly fetchStart: DOMHighResTimeStamp;\n /**\n * The **`initiatorType`** read-only property is a string representing web platform feature that initiated the resource load.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceResourceTiming/initiatorType)\n */\n readonly initiatorType: string;\n /**\n * The **`nextHopProtocol`** read-only property is a string representing the network protocol used to fetch the resource, as identified by the ALPN Protocol ID (RFC7301).\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceResourceTiming/nextHopProtocol)\n */\n readonly nextHopProtocol: string;\n /**\n * The **`redirectEnd`** read-only property returns a DOMHighResTimeStamp immediately after receiving the last byte of the response of the last redirect.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceResourceTiming/redirectEnd)\n */\n readonly redirectEnd: DOMHighResTimeStamp;\n /**\n * The **`redirectStart`** read-only property returns a DOMHighResTimeStamp representing the start time of the fetch which that initiates the redirect.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceResourceTiming/redirectStart)\n */\n readonly redirectStart: DOMHighResTimeStamp;\n /**\n * The **`requestStart`** read-only property returns a DOMHighResTimeStamp of the time immediately before the browser starts requesting the resource from the server, cache, or local resource.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceResourceTiming/requestStart)\n */\n readonly requestStart: DOMHighResTimeStamp;\n /**\n * The **`responseEnd`** read-only property returns a DOMHighResTimeStamp immediately after the browser receives the last byte of the resource or immediately before the transport connection is closed, whichever comes first.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceResourceTiming/responseEnd)\n */\n readonly responseEnd: DOMHighResTimeStamp;\n /**\n * The **`responseStart`** read-only property returns a DOMHighResTimeStamp immediately after the browser receives the first byte of the response from the server, cache, or local resource.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceResourceTiming/responseStart)\n */\n readonly responseStart: DOMHighResTimeStamp;\n /**\n * The **`responseStatus`** read-only property represents the HTTP response status code returned when fetching the resource.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceResourceTiming/responseStatus)\n */\n readonly responseStatus: number;\n /**\n * The **`secureConnectionStart`** read-only property returns a DOMHighResTimeStamp immediately before the browser starts the handshake process to secure the current connection.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceResourceTiming/secureConnectionStart)\n */\n readonly secureConnectionStart: DOMHighResTimeStamp;\n /**\n * The **`serverTiming`** read-only property returns an array of PerformanceServerTiming entries containing server timing metrics.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceResourceTiming/serverTiming)\n */\n readonly serverTiming: ReadonlyArray<PerformanceServerTiming>;\n /**\n * The **`transferSize`** read-only property represents the size (in octets) of the fetched resource.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceResourceTiming/transferSize)\n */\n readonly transferSize: number;\n /**\n * The **`workerStart`** read-only property of the PerformanceResourceTiming interface returns a The `workerStart` property can have the following values: - A DOMHighResTimeStamp.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceResourceTiming/workerStart)\n */\n readonly workerStart: DOMHighResTimeStamp;\n /**\n * The **`toJSON()`** method of the PerformanceResourceTiming interface is a Serialization; it returns a JSON representation of the PerformanceResourceTiming object.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceResourceTiming/toJSON)\n */\n toJSON(): any;\n}\n\ndeclare var PerformanceResourceTiming: {\n prototype: PerformanceResourceTiming;\n new(): PerformanceResourceTiming;\n};\n\n/**\n * The **`PerformanceServerTiming`** interface surfaces server metrics that are sent with the response in the Server-Timing HTTP header.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceServerTiming)\n */\ninterface PerformanceServerTiming {\n /**\n * The **`description`** read-only property returns a string value of the server-specified metric description, or an empty string.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceServerTiming/description)\n */\n readonly description: string;\n /**\n * The **`duration`** read-only property returns a double that contains the server-specified metric duration, or the value `0.0`.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceServerTiming/duration)\n */\n readonly duration: DOMHighResTimeStamp;\n /**\n * The **`name`** read-only property returns a string value of the server-specified metric name.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceServerTiming/name)\n */\n readonly name: string;\n /**\n * The **`toJSON()`** method of the PerformanceServerTiming interface is a Serialization; it returns a JSON representation of the PerformanceServerTiming object.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceServerTiming/toJSON)\n */\n toJSON(): any;\n}\n\ndeclare var PerformanceServerTiming: {\n prototype: PerformanceServerTiming;\n new(): PerformanceServerTiming;\n};\n\n/**\n * The **`PerformanceTiming`** interface is 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.\n * @deprecated This interface is deprecated in the Navigation Timing Level 2 specification. Please use the PerformanceNavigationTiming interface instead.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceTiming)\n */\ninterface PerformanceTiming {\n /**\n * The legacy **`PerformanceTiming.connectEnd`** read-only property returns an `unsigned long long` representing the moment, in milliseconds since the UNIX epoch, where the connection is opened network.\n * @deprecated\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceTiming/connectEnd)\n */\n readonly connectEnd: number;\n /**\n * The legacy **`PerformanceTiming.connectStart`** read-only property returns an `unsigned long long` representing the moment, in milliseconds since the UNIX epoch, where the request to open a connection is sent to the network.\n * @deprecated\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceTiming/connectStart)\n */\n readonly connectStart: number;\n /**\n * The legacy **`PerformanceTiming.domComplete`** read-only property returns an `unsigned long long` representing the moment, in milliseconds since the UNIX epoch, when the parser finished its work on the main document, that is when its Document.readyState changes to `\'complete\'` and the corresponding Document/readystatechange_event event is thrown.\n * @deprecated\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceTiming/domComplete)\n */\n readonly domComplete: number;\n /**\n * The legacy **`PerformanceTiming.domContentLoadedEventEnd`** read-only property returns an `unsigned long long` representing the moment, in milliseconds since the UNIX epoch, right after all the scripts that need to be executed as soon as possible, in order or not, has been executed.\n * @deprecated\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceTiming/domContentLoadedEventEnd)\n */\n readonly domContentLoadedEventEnd: number;\n /**\n * The legacy **`PerformanceTiming.domContentLoadedEventStart`** read-only property returns an `unsigned long long` representing the moment, in milliseconds since the UNIX epoch, right before the parser sent the executed right after parsing has been executed.\n * @deprecated\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceTiming/domContentLoadedEventStart)\n */\n readonly domContentLoadedEventStart: number;\n /**\n * The legacy **`PerformanceTiming.domInteractive`** read-only property returns an `unsigned long long` representing the moment, in milliseconds since the UNIX epoch, when the parser finished its work on the main document, that is when its Document.readyState changes to `\'interactive\'` and the corresponding Document/readystatechange_event event is thrown.\n * @deprecated\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceTiming/domInteractive)\n */\n readonly domInteractive: number;\n /**\n * The legacy **`PerformanceTiming.domLoading`** read-only property returns an `unsigned long long` representing the moment, in milliseconds since the UNIX epoch, when the parser started its work, that is when its corresponding Document/readystatechange_event event is thrown.\n * @deprecated\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceTiming/domLoading)\n */\n readonly domLoading: number;\n /**\n * The legacy **`PerformanceTiming.domainLookupEnd`** read-only property returns an `unsigned long long` representing the moment, in milliseconds since the UNIX epoch, where the domain lookup is finished.\n * @deprecated\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceTiming/domainLookupEnd)\n */\n readonly domainLookupEnd: number;\n /**\n * The legacy **`PerformanceTiming.domainLookupStart`** read-only property returns an `unsigned long long` representing the moment, in milliseconds since the UNIX epoch, where the domain lookup starts.\n * @deprecated\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceTiming/domainLookupStart)\n */\n readonly domainLookupStart: number;\n /**\n * The legacy **`PerformanceTiming.fetchStart`** read-only property returns an `unsigned long long` representing the moment, in milliseconds since the UNIX epoch, the browser is ready to fetch the document using an HTTP request.\n * @deprecated\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceTiming/fetchStart)\n */\n readonly fetchStart: number;\n /**\n * The legacy **`PerformanceTiming.loadEventEnd`** read-only property returns an `unsigned long long` representing the moment, in milliseconds since the UNIX epoch, when the Window/load_event event handler terminated, that is when the load event is completed.\n * @deprecated\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceTiming/loadEventEnd)\n */\n readonly loadEventEnd: number;\n /**\n * The legacy **`PerformanceTiming.loadEventStart`** read-only property returns an `unsigned long long` representing the moment, in milliseconds since the UNIX epoch, when the Window/load_event event was sent for the current document.\n * @deprecated\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceTiming/loadEventStart)\n */\n readonly loadEventStart: number;\n /**\n * The legacy **`PerformanceTiming.navigationStart`** read-only property returns an `unsigned long long` representing the moment, in milliseconds since the UNIX epoch, right after the prompt for unload terminates on the previous document in the same browsing context.\n * @deprecated\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceTiming/navigationStart)\n */\n readonly navigationStart: number;\n /**\n * The legacy **`PerformanceTiming.redirectEnd`** read-only property returns an `unsigned long long` representing the moment, in milliseconds since the UNIX epoch, the last HTTP redirect is completed, that is when the last byte of the HTTP response has been received.\n * @deprecated\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceTiming/redirectEnd)\n */\n readonly redirectEnd: number;\n /**\n * The legacy **`PerformanceTiming.redirectStart`** read-only property returns an `unsigned long long` representing the moment, in milliseconds since the UNIX epoch, the first HTTP redirect starts.\n * @deprecated\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceTiming/redirectStart)\n */\n readonly redirectStart: number;\n /**\n * The legacy **`PerformanceTiming.requestStart`** read-only property returns an `unsigned long long` representing the moment, in milliseconds since the UNIX epoch, when the browser sent the request to obtain the actual document, from the server or from a cache.\n * @deprecated\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceTiming/requestStart)\n */\n readonly requestStart: number;\n /**\n * The legacy **`PerformanceTiming.responseEnd`** read-only property returns an `unsigned long long` representing the moment, in milliseconds since the UNIX epoch, when the browser received the last byte of the response, or when the connection is closed if this happened first, from the server from a cache or from a local resource.\n * @deprecated\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceTiming/responseEnd)\n */\n readonly responseEnd: number;\n /**\n * The legacy **`PerformanceTiming.responseStart`** read-only property returns an `unsigned long long` representing the moment in time (in milliseconds since the UNIX epoch) when the browser received the first byte of the response from the server, cache, or local resource.\n * @deprecated\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceTiming/responseStart)\n */\n readonly responseStart: number;\n /**\n * The legacy **`PerformanceTiming.secureConnectionStart`** read-only property returns an `unsigned long long` representing the moment, in milliseconds since the UNIX epoch, where the secure connection handshake starts.\n * @deprecated\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceTiming/secureConnectionStart)\n */\n readonly secureConnectionStart: number;\n /**\n * The legacy **`PerformanceTiming.unloadEventEnd`** read-only property returns an `unsigned long long` representing the moment, in milliseconds since the UNIX epoch, the Window/unload_event event handler finishes.\n * @deprecated\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceTiming/unloadEventEnd)\n */\n readonly unloadEventEnd: number;\n /**\n * The legacy **`PerformanceTiming.unloadEventStart`** read-only property returns an `unsigned long long` representing the moment, in milliseconds since the UNIX epoch, the Window/unload_event event has been thrown.\n * @deprecated\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceTiming/unloadEventStart)\n */\n readonly unloadEventStart: number;\n /**\n * The legacy **`toJSON()`** method of the PerformanceTiming interface is a Serialization; it returns a JSON representation of the PerformanceTiming object.\n * @deprecated\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceTiming/toJSON)\n */\n toJSON(): any;\n}\n\n/** @deprecated */\ndeclare var PerformanceTiming: {\n prototype: PerformanceTiming;\n new(): PerformanceTiming;\n};\n\n/**\n * The **`PeriodicWave`** interface defines a periodic waveform that can be used to shape the output of an OscillatorNode.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/PeriodicWave)\n */\ninterface PeriodicWave {\n}\n\ndeclare var PeriodicWave: {\n prototype: PeriodicWave;\n new(context: BaseAudioContext, options?: PeriodicWaveOptions): PeriodicWave;\n};\n\ninterface PermissionStatusEventMap {\n "change": Event;\n}\n\n/**\n * The **`PermissionStatus`** interface of the Permissions API provides the state of an object and an event handler for monitoring changes to said state.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/PermissionStatus)\n */\ninterface PermissionStatus extends EventTarget {\n /**\n * The **`name`** read-only property of the PermissionStatus interface returns the name of a requested permission.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/PermissionStatus/name)\n */\n readonly name: string;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PermissionStatus/change_event) */\n onchange: ((this: PermissionStatus, ev: Event) => any) | null;\n /**\n * The **`state`** read-only property of the This property returns one of `\'granted\'`, `\'denied\'`, or `\'prompt\'`.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/PermissionStatus/state)\n */\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\n/**\n * The **`Permissions`** interface of the Permissions API provides the core Permission API functionality, such as methods for querying and revoking permissions - Permissions.query - : Returns the user permission status for a given API.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Permissions)\n */\ninterface Permissions {\n /**\n * The **`query()`** method of the Permissions interface returns the state of a user permission on the global scope.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Permissions/query)\n */\n query(permissionDesc: PermissionDescriptor): Promise<PermissionStatus>;\n}\n\ndeclare var Permissions: {\n prototype: Permissions;\n new(): Permissions;\n};\n\n/**\n * The **`PictureInPictureEvent`** interface represents picture-in-picture-related events, including HTMLVideoElement/enterpictureinpicture_event, HTMLVideoElement/leavepictureinpicture_event and PictureInPictureWindow/resize_event.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/PictureInPictureEvent)\n */\ninterface PictureInPictureEvent extends Event {\n /**\n * The read-only **`pictureInPictureWindow`** property of the PictureInPictureEvent interface returns the PictureInPictureWindow the event relates to.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/PictureInPictureEvent/pictureInPictureWindow)\n */\n readonly pictureInPictureWindow: PictureInPictureWindow;\n}\n\ndeclare var PictureInPictureEvent: {\n prototype: PictureInPictureEvent;\n new(type: string, eventInitDict: PictureInPictureEventInit): PictureInPictureEvent;\n};\n\ninterface PictureInPictureWindowEventMap {\n "resize": Event;\n}\n\n/**\n * The **`PictureInPictureWindow`** interface represents an object able to programmatically obtain the **`width`** and **`height`** and **`resize event`** of the floating video window.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/PictureInPictureWindow)\n */\ninterface PictureInPictureWindow extends EventTarget {\n /**\n * The read-only **`height`** property of the PictureInPictureWindow interface returns the height of the floating video window in pixels.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/PictureInPictureWindow/height)\n */\n readonly height: number;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PictureInPictureWindow/resize_event) */\n onresize: ((this: PictureInPictureWindow, ev: Event) => any) | null;\n /**\n * The read-only **`width`** property of the PictureInPictureWindow interface returns the width of the floating video window in pixels.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/PictureInPictureWindow/width)\n */\n readonly width: number;\n addEventListener<K extends keyof PictureInPictureWindowEventMap>(type: K, listener: (this: PictureInPictureWindow, ev: PictureInPictureWindowEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n removeEventListener<K extends keyof PictureInPictureWindowEventMap>(type: K, listener: (this: PictureInPictureWindow, ev: PictureInPictureWindowEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\ndeclare var PictureInPictureWindow: {\n prototype: PictureInPictureWindow;\n new(): PictureInPictureWindow;\n};\n\n/**\n * The `Plugin` interface provides information about a browser plugin.\n * @deprecated\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Plugin)\n */\ninterface Plugin {\n /**\n * Returns the plugin\'s description.\n * @deprecated\n */\n readonly description: string;\n /**\n * Returns the plugin library\'s filename, if applicable on the current platform.\n * @deprecated\n */\n readonly filename: string;\n /**\n * Returns the number of MIME types, represented by MimeType objects, supported by the plugin.\n * @deprecated\n */\n readonly length: number;\n /**\n * Returns the plugin\'s name.\n * @deprecated\n */\n readonly name: string;\n /**\n * Returns the specified MimeType object.\n * @deprecated\n */\n item(index: number): MimeType | null;\n /** @deprecated */\n namedItem(name: string): MimeType | null;\n [index: number]: MimeType;\n}\n\n/** @deprecated */\ndeclare var Plugin: {\n prototype: Plugin;\n new(): Plugin;\n};\n\n/**\n * The `PluginArray` interface is used to store a list of Plugin objects; it\'s returned by the Navigator.plugins property.\n * @deprecated\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/PluginArray)\n */\ninterface PluginArray {\n /** @deprecated */\n readonly length: number;\n /** @deprecated */\n item(index: number): Plugin | null;\n /** @deprecated */\n namedItem(name: string): Plugin | null;\n /** @deprecated */\n refresh(): void;\n [index: number]: Plugin;\n}\n\n/** @deprecated */\ndeclare var PluginArray: {\n prototype: PluginArray;\n new(): PluginArray;\n};\n\n/**\n * The **`PointerEvent`** interface represents 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.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/PointerEvent)\n */\ninterface PointerEvent extends MouseEvent {\n /**\n * The **`altitudeAngle`** read-only property of the PointerEvent interface represents the angle between a transducer (a pointer or stylus) axis and the X-Y plane of a device screen.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/PointerEvent/altitudeAngle)\n */\n readonly altitudeAngle: number;\n /**\n * The **`azimuthAngle`** read-only property of the PointerEvent interface represents the angle between the Y-Z plane and the plane containing both the transducer (pointer or stylus) axis and the Y axis.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/PointerEvent/azimuthAngle)\n */\n readonly azimuthAngle: number;\n /**\n * The **`height`** read-only property of the geometry, along the y-axis (in CSS pixels).\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/PointerEvent/height)\n */\n readonly height: number;\n /**\n * The **`isPrimary`** read-only property of the created the event is the _primary_ pointer.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/PointerEvent/isPrimary)\n */\n readonly isPrimary: boolean;\n /**\n * The **`pointerId`** read-only property of the event.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/PointerEvent/pointerId)\n */\n readonly pointerId: number;\n /**\n * The **`pointerType`** read-only property of the that caused a given pointer event.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/PointerEvent/pointerType)\n */\n readonly pointerType: string;\n /**\n * The **`pressure`** read-only property of the input.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/PointerEvent/pressure)\n */\n readonly pressure: number;\n /**\n * The **`tangentialPressure`** read-only property of the the pointer input (also known as barrel pressure or cylinder stress).\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/PointerEvent/tangentialPressure)\n */\n readonly tangentialPressure: number;\n /**\n * The **`tiltX`** read-only property of the PointerEvent interface is the angle (in degrees) between the _Y-Z plane_ of the pointer and the screen.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/PointerEvent/tiltX)\n */\n readonly tiltX: number;\n /**\n * The **`tiltY`** read-only property of the PointerEvent interface is the angle (in degrees) between the _X-Z plane_ of the pointer and the screen.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/PointerEvent/tiltY)\n */\n readonly tiltY: number;\n /**\n * The **`twist`** read-only property of the (e.g., pen stylus) around its major axis, in degrees.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/PointerEvent/twist)\n */\n readonly twist: number;\n /**\n * The **`width`** read-only property of the geometry along the x-axis, measured in CSS pixels.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/PointerEvent/width)\n */\n readonly width: number;\n /**\n * The **`getCoalescedEvents()`** method of the PointerEvent interface returns a sequence of `PointerEvent` instances that were coalesced (merged) into a single Element/pointermove_event or Element/pointerrawupdate_event event.\n * Available only in secure contexts.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/PointerEvent/getCoalescedEvents)\n */\n getCoalescedEvents(): PointerEvent[];\n /**\n * The **`getPredictedEvents()`** method of the PointerEvent interface returns a sequence of `PointerEvent` instances that are estimated future pointer positions.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/PointerEvent/getPredictedEvents)\n */\n getPredictedEvents(): PointerEvent[];\n}\n\ndeclare var PointerEvent: {\n prototype: PointerEvent;\n new(type: string, eventInitDict?: PointerEventInit): PointerEvent;\n};\n\n/**\n * **`PopStateEvent`** is an interface for the Window/popstate_event event.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/PopStateEvent)\n */\ninterface PopStateEvent extends Event {\n /**\n * The **`hasUAVisualTransition`** read-only property of the PopStateEvent interface returns `true` if the user agent performed a visual transition for this navigation before dispatching this event, or `false` otherwise.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/PopStateEvent/hasUAVisualTransition)\n */\n readonly hasUAVisualTransition: boolean;\n /**\n * The **`state`** read-only property of the PopStateEvent interface represents the state stored when the event was created.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/PopStateEvent/state)\n */\n readonly state: any;\n}\n\ndeclare var PopStateEvent: {\n prototype: PopStateEvent;\n new(type: string, eventInitDict?: PopStateEventInit): PopStateEvent;\n};\n\ninterface PopoverInvokerElement {\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLButtonElement/popoverTargetAction) */\n popoverTargetAction: string;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLButtonElement/popoverTargetElement) */\n popoverTargetElement: Element | null;\n}\n\n/**\n * The **`ProcessingInstruction`** interface represents a processing instruction; that is, a Node which embeds an instruction targeting a specific application but that can be ignored by any other applications which don\'t recognize the instruction.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ProcessingInstruction)\n */\ninterface ProcessingInstruction extends CharacterData, LinkStyle {\n readonly ownerDocument: Document;\n /**\n * The read-only **`target`** property of the ProcessingInstruction interface represent the application to which the `ProcessingInstruction` is targeted.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ProcessingInstruction/target)\n */\n readonly target: string;\n}\n\ndeclare var ProcessingInstruction: {\n prototype: ProcessingInstruction;\n new(): ProcessingInstruction;\n};\n\n/**\n * The **`ProgressEvent`** interface represents events that measure the progress of an underlying process, like an HTTP request (e.g., an `XMLHttpRequest`, or the loading of the underlying resource of an img, audio, video, style or link).\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ProgressEvent)\n */\ninterface ProgressEvent<T extends EventTarget = EventTarget> extends Event {\n /**\n * The **`ProgressEvent.lengthComputable`** read-only property is a boolean flag indicating if the resource concerned by the A boolean.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ProgressEvent/lengthComputable)\n */\n readonly lengthComputable: boolean;\n /**\n * The **`ProgressEvent.loaded`** read-only property is a number indicating the size of the data already transmitted or processed.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ProgressEvent/loaded)\n */\n readonly loaded: number;\n readonly target: T | null;\n /**\n * The **`ProgressEvent.total`** read-only property is a number indicating the total size of the data being transmitted or processed.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ProgressEvent/total)\n */\n readonly total: number;\n}\n\ndeclare var ProgressEvent: {\n prototype: ProgressEvent;\n new(type: string, eventInitDict?: ProgressEventInit): ProgressEvent;\n};\n\n/**\n * The **`PromiseRejectionEvent`** interface represents events which are sent to the global script context when JavaScript Promises are rejected.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/PromiseRejectionEvent)\n */\ninterface PromiseRejectionEvent extends Event {\n /**\n * The PromiseRejectionEvent interface\'s **`promise`** read-only property indicates the JavaScript rejected.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/PromiseRejectionEvent/promise)\n */\n readonly promise: Promise<any>;\n /**\n * The PromiseRejectionEvent **`reason`** read-only property is any JavaScript value or Object which provides the reason passed into Promise.reject().\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/PromiseRejectionEvent/reason)\n */\n readonly reason: any;\n}\n\ndeclare var PromiseRejectionEvent: {\n prototype: PromiseRejectionEvent;\n new(type: string, eventInitDict: PromiseRejectionEventInit): PromiseRejectionEvent;\n};\n\n/**\n * The **`PublicKeyCredential`** interface provides information about a public key / private key pair, which is a credential for logging in to a service using an un-phishable and data-breach resistant asymmetric key pair instead of a password.\n * Available only in secure contexts.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/PublicKeyCredential)\n */\ninterface PublicKeyCredential extends Credential {\n /**\n * The **`authenticatorAttachment`** read-only property of the PublicKeyCredential interface is a string that indicates the general category of authenticator used during the associated CredentialsContainer.create() or CredentialsContainer.get() call.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/PublicKeyCredential/authenticatorAttachment)\n */\n readonly authenticatorAttachment: string | null;\n /**\n * The **`rawId`** read-only property of the containing the identifier of the credentials.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/PublicKeyCredential/rawId)\n */\n readonly rawId: ArrayBuffer;\n /**\n * The **`response`** read-only property of the object which is sent from the authenticator to the user agent for the creation/fetching of credentials.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/PublicKeyCredential/response)\n */\n readonly response: AuthenticatorResponse;\n /**\n * The **`getClientExtensionResults()`** method of the PublicKeyCredential interface returns a map between the identifiers of extensions requested during credential creation or authentication, and their results after processing by the user agent.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/PublicKeyCredential/getClientExtensionResults)\n */\n getClientExtensionResults(): AuthenticationExtensionsClientOutputs;\n /**\n * The **`toJSON()`** method of the PublicKeyCredential interface returns a JSON type representation of a PublicKeyCredential.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/PublicKeyCredential/toJSON)\n */\n toJSON(): PublicKeyCredentialJSON;\n}\n\ndeclare var PublicKeyCredential: {\n prototype: PublicKeyCredential;\n new(): PublicKeyCredential;\n /**\n * The **`getClientCapabilities()`** static method of the PublicKeyCredential interface returns a Promise that resolves with an object that can be used to check whether or not particular WebAuthn client capabilities and extensions are supported.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/PublicKeyCredential/getClientCapabilities_static)\n */\n getClientCapabilities(): Promise<PublicKeyCredentialClientCapabilities>;\n /**\n * The **`isConditionalMediationAvailable()`** static method of the PublicKeyCredential interface returns a Promise which resolves to `true` if conditional mediation is available.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/PublicKeyCredential/isConditionalMediationAvailable_static)\n */\n isConditionalMediationAvailable(): Promise<boolean>;\n /**\n * The **`isUserVerifyingPlatformAuthenticatorAvailable()`** static method of the PublicKeyCredential interface returns a Promise which resolves to `true` if a user-verifying platform authenticator is present.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/PublicKeyCredential/isUserVerifyingPlatformAuthenticatorAvailable_static)\n */\n isUserVerifyingPlatformAuthenticatorAvailable(): Promise<boolean>;\n /**\n * The **`parseCreationOptionsFromJSON()`** static method of the PublicKeyCredential interface creates a PublicKeyCredentialCreationOptions object from a JSON representation of its properties.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/PublicKeyCredential/parseCreationOptionsFromJSON_static)\n */\n parseCreationOptionsFromJSON(options: PublicKeyCredentialCreationOptionsJSON): PublicKeyCredentialCreationOptions;\n /**\n * The **`parseRequestOptionsFromJSON()`** static method of the PublicKeyCredential interface converts a JSON type representation into a PublicKeyCredentialRequestOptions instance.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/PublicKeyCredential/parseRequestOptionsFromJSON_static)\n */\n parseRequestOptionsFromJSON(options: PublicKeyCredentialRequestOptionsJSON): PublicKeyCredentialRequestOptions;\n};\n\n/**\n * The **`PushManager`** interface of the Push API provides a way to receive notifications from third-party servers as well as request URLs for push notifications.\n * Available only in secure contexts.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/PushManager)\n */\ninterface PushManager {\n /**\n * The **`PushManager.getSubscription()`** method of the PushManager interface retrieves an existing push subscription.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/PushManager/getSubscription)\n */\n getSubscription(): Promise<PushSubscription | null>;\n /**\n * The **`permissionState()`** method of the string indicating the permission state of the push manager.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/PushManager/permissionState)\n */\n permissionState(options?: PushSubscriptionOptionsInit): Promise<PermissionState>;\n /**\n * The **`subscribe()`** method of the PushManager interface subscribes to a push service.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/PushManager/subscribe)\n */\n subscribe(options?: PushSubscriptionOptionsInit): Promise<PushSubscription>;\n}\n\ndeclare var PushManager: {\n prototype: PushManager;\n new(): PushManager;\n /**\n * The **`supportedContentEncodings`** read-only static property of the PushManager interface returns an array of supported content codings that can be used to encrypt the payload of a push message.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/PushManager/supportedContentEncodings_static)\n */\n readonly supportedContentEncodings: ReadonlyArray<string>;\n};\n\n/**\n * The `PushSubscription` interface of the Push API provides a subscription\'s URL endpoint along with the public key and secrets that should be used for encrypting push messages to this subscription.\n * Available only in secure contexts.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/PushSubscription)\n */\ninterface PushSubscription {\n /**\n * The **`endpoint`** read-only property of the the endpoint associated with the push subscription.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/PushSubscription/endpoint)\n */\n readonly endpoint: string;\n /**\n * The **`expirationTime`** read-only property of the of the subscription expiration time associated with the push subscription, if there is one, or `null` otherwise.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/PushSubscription/expirationTime)\n */\n readonly expirationTime: EpochTimeStamp | null;\n /**\n * The **`options`** read-only property of the PushSubscription interface is an object containing the options used to create the subscription.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/PushSubscription/options)\n */\n readonly options: PushSubscriptionOptions;\n /**\n * The `getKey()` method of the PushSubscription interface returns an ArrayBuffer representing a client public key, which can then be sent to a server and used in encrypting push message data.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/PushSubscription/getKey)\n */\n getKey(name: PushEncryptionKeyName): ArrayBuffer | null;\n /**\n * The `toJSON()` method of the PushSubscription interface is a standard serializer: it returns a JSON representation of the subscription properties, providing a useful shortcut.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/PushSubscription/toJSON)\n */\n toJSON(): PushSubscriptionJSON;\n /**\n * The `unsubscribe()` method of the PushSubscription interface returns a Promise that resolves to a boolean value when the current subscription is successfully unsubscribed.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/PushSubscription/unsubscribe)\n */\n unsubscribe(): Promise<boolean>;\n}\n\ndeclare var PushSubscription: {\n prototype: PushSubscription;\n new(): PushSubscription;\n};\n\n/**\n * The **`PushSubscriptionOptions`** interface of the Push API represents the options associated with a push subscription.\n * Available only in secure contexts.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/PushSubscriptionOptions)\n */\ninterface PushSubscriptionOptions {\n /**\n * The **`applicationServerKey`** read-only property of the PushSubscriptionOptions interface contains the public key used by the push server.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/PushSubscriptionOptions/applicationServerKey)\n */\n readonly applicationServerKey: ArrayBuffer | null;\n /**\n * The **`userVisibleOnly`** read-only property of the PushSubscriptionOptions interface indicates if the returned push subscription will only be used for messages whose effect is made visible to the user.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/PushSubscriptionOptions/userVisibleOnly)\n */\n readonly userVisibleOnly: boolean;\n}\n\ndeclare var PushSubscriptionOptions: {\n prototype: PushSubscriptionOptions;\n new(): PushSubscriptionOptions;\n};\n\n/**\n * The **`RTCCertificate`** interface of the WebRTC API provides an object representing a certificate that an RTCPeerConnection uses to authenticate.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCCertificate)\n */\ninterface RTCCertificate {\n /**\n * The read-only **`expires`** property of the RTCCertificate interface returns the expiration date of the certificate.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCCertificate/expires)\n */\n readonly expires: EpochTimeStamp;\n /**\n * The **`getFingerprints()`** method of the **RTCCertificate** interface is used to get an array of certificate fingerprints.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCCertificate/getFingerprints)\n */\n getFingerprints(): RTCDtlsFingerprint[];\n}\n\ndeclare var RTCCertificate: {\n prototype: RTCCertificate;\n new(): RTCCertificate;\n};\n\ninterface RTCDTMFSenderEventMap {\n "tonechange": RTCDTMFToneChangeEvent;\n}\n\n/**\n * The **`RTCDTMFSender`** interface provides a mechanism for transmitting DTMF codes on a WebRTC RTCPeerConnection.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCDTMFSender)\n */\ninterface RTCDTMFSender extends EventTarget {\n /**\n * The **`canInsertDTMF`** read-only property of the RTCDTMFSender interface returns a boolean value which indicates whether the `RTCDTMFSender` is capable of sending DTMF tones over the RTCPeerConnection.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCDTMFSender/canInsertDTMF)\n */\n readonly canInsertDTMF: boolean;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCDTMFSender/tonechange_event) */\n ontonechange: ((this: RTCDTMFSender, ev: RTCDTMFToneChangeEvent) => any) | null;\n /**\n * The RTCDTMFSender interface\'s toneBuffer property returns a string containing a list of the DTMF tones currently queued for sending to the remote peer over the RTCPeerConnection.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCDTMFSender/toneBuffer)\n */\n readonly toneBuffer: string;\n /**\n * The **`insertDTMF()`** method of the RTCDTMFSender interface sends DTMF tones to the remote peer over the RTCPeerConnection.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCDTMFSender/insertDTMF)\n */\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/**\n * The **`RTCDTMFToneChangeEvent`** interface represents events sent to indicate that DTMF tones have started or finished playing.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCDTMFToneChangeEvent)\n */\ninterface RTCDTMFToneChangeEvent extends Event {\n /**\n * The read-only property **`RTCDTMFToneChangeEvent.tone`** returns the DTMF character which has just begun to play, or an empty string (`\'\'`).\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCDTMFToneChangeEvent/tone)\n */\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 "closing": Event;\n "error": RTCErrorEvent;\n "message": MessageEvent;\n "open": Event;\n}\n\n/**\n * The **`RTCDataChannel`** interface represents a network channel which can be used for bidirectional peer-to-peer transfers of arbitrary data.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCDataChannel)\n */\ninterface RTCDataChannel extends EventTarget {\n /**\n * The property **`binaryType`** on the the type of object which should be used to represent binary data received on the RTCDataChannel.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCDataChannel/binaryType)\n */\n binaryType: BinaryType;\n /**\n * The read-only `RTCDataChannel` property **`bufferedAmount`** returns the number of bytes of data currently queued to be sent over the data channel.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCDataChannel/bufferedAmount)\n */\n readonly bufferedAmount: number;\n /**\n * The `RTCDataChannel` property **`bufferedAmountLowThreshold`** is used to specify the number of bytes of buffered outgoing data that is considered \'low.\' The default value is 0\\.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCDataChannel/bufferedAmountLowThreshold)\n */\n bufferedAmountLowThreshold: number;\n /**\n * The read-only `RTCDataChannel` property **`id`** returns an ID number (between 0 and 65,534) which uniquely identifies the RTCDataChannel.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCDataChannel/id)\n */\n readonly id: number | null;\n /**\n * The read-only `RTCDataChannel` property **`label`** returns a string containing a name describing the data channel.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCDataChannel/label)\n */\n readonly label: string;\n /**\n * The read-only `RTCDataChannel` property **`maxPacketLifeTime`** returns the amount of time, in milliseconds, the browser is allowed to take to attempt to transmit a message, as set when the data channel was created, or `null`.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCDataChannel/maxPacketLifeTime)\n */\n readonly maxPacketLifeTime: number | null;\n /**\n * The read-only `RTCDataChannel` property **`maxRetransmits`** returns the maximum number of times the browser should try to retransmit a message before giving up, as set when the data channel was created, or `null`, which indicates that there is no maximum.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCDataChannel/maxRetransmits)\n */\n readonly maxRetransmits: number | null;\n /**\n * The read-only `RTCDataChannel` property **`negotiated`** indicates whether the (`true`) or by the WebRTC layer (`false`).\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCDataChannel/negotiated)\n */\n readonly negotiated: boolean;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCDataChannel/bufferedamountlow_event) */\n onbufferedamountlow: ((this: RTCDataChannel, ev: Event) => any) | null;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCDataChannel/close_event) */\n onclose: ((this: RTCDataChannel, ev: Event) => any) | null;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCDataChannel/closing_event) */\n onclosing: ((this: RTCDataChannel, ev: Event) => any) | null;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCDataChannel/error_event) */\n onerror: ((this: RTCDataChannel, ev: RTCErrorEvent) => any) | null;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCDataChannel/message_event) */\n onmessage: ((this: RTCDataChannel, ev: MessageEvent) => any) | null;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCDataChannel/open_event) */\n onopen: ((this: RTCDataChannel, ev: Event) => any) | null;\n /**\n * The read-only `RTCDataChannel` property **`ordered`** indicates whether or not the data channel guarantees in-order delivery of messages; the default is `true`, which indicates that the data channel is indeed ordered.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCDataChannel/ordered)\n */\n readonly ordered: boolean;\n /**\n * The read-only `RTCDataChannel` property **`protocol`** returns a string containing the name of the subprotocol in use.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCDataChannel/protocol)\n */\n readonly protocol: string;\n /**\n * The read-only `RTCDataChannel` property **`readyState`** returns a string which indicates the state of the data channel\'s underlying data connection.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCDataChannel/readyState)\n */\n readonly readyState: RTCDataChannelState;\n /**\n * The **`RTCDataChannel.close()`** method closes the closure of the channel.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCDataChannel/close)\n */\n close(): void;\n /**\n * The **`send()`** method of the remote peer.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCDataChannel/send)\n */\n send(data: string): void;\n send(data: Blob): void;\n send(data: ArrayBuffer): void;\n send(data: ArrayBufferView<ArrayBuffer>): 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\n/**\n * The **`RTCDataChannelEvent`** interface represents an event related to a specific RTCDataChannel.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCDataChannelEvent)\n */\ninterface RTCDataChannelEvent extends Event {\n /**\n * The read-only property **`RTCDataChannelEvent.channel`** returns the RTCDataChannel associated with the event.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCDataChannelEvent/channel)\n */\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\n/**\n * The **`RTCDtlsTransport`** interface provides access to information about the Datagram Transport Layer Security (**DTLS**) transport over which a RTCPeerConnection\'s RTP and RTCP packets are sent and received by its RTCRtpSender and RTCRtpReceiver objects.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCDtlsTransport)\n */\ninterface RTCDtlsTransport extends EventTarget {\n /**\n * The **`iceTransport`** read-only property of the **RTCDtlsTransport** interface contains a reference to the underlying RTCIceTransport.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCDtlsTransport/iceTransport)\n */\n readonly iceTransport: RTCIceTransport;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCDtlsTransport/error_event) */\n onerror: ((this: RTCDtlsTransport, ev: RTCErrorEvent) => any) | null;\n onstatechange: ((this: RTCDtlsTransport, ev: Event) => any) | null;\n /**\n * The **`state`** read-only property of the Datagram Transport Layer Security (**DTLS**) transport state.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCDtlsTransport/state)\n */\n readonly state: RTCDtlsTransportState;\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\n/**\n * The **`RTCEncodedAudioFrame`** of the WebRTC API represents an encoded audio frame in the WebRTC receiver or sender pipeline, which may be modified using a WebRTC Encoded Transform.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCEncodedAudioFrame)\n */\ninterface RTCEncodedAudioFrame {\n /**\n * The **`data`** property of the RTCEncodedAudioFrame interface returns a buffer containing the data for an encoded frame.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCEncodedAudioFrame/data)\n */\n data: ArrayBuffer;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCEncodedAudioFrame/timestamp) */\n readonly timestamp: number;\n /**\n * The **`getMetadata()`** method of the RTCEncodedAudioFrame interface returns an object containing the metadata associated with the frame.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCEncodedAudioFrame/getMetadata)\n */\n getMetadata(): RTCEncodedAudioFrameMetadata;\n}\n\ndeclare var RTCEncodedAudioFrame: {\n prototype: RTCEncodedAudioFrame;\n new(): RTCEncodedAudioFrame;\n};\n\n/**\n * The **`RTCEncodedVideoFrame`** of the WebRTC API represents an encoded video frame in the WebRTC receiver or sender pipeline, which may be modified using a WebRTC Encoded Transform.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCEncodedVideoFrame)\n */\ninterface RTCEncodedVideoFrame {\n /**\n * The **`data`** property of the RTCEncodedVideoFrame interface returns a buffer containing the frame data.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCEncodedVideoFrame/data)\n */\n data: ArrayBuffer;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCEncodedVideoFrame/timestamp) */\n readonly timestamp: number;\n /**\n * The **`type`** read-only property of the RTCEncodedVideoFrame interface indicates whether this frame is a key frame, delta frame, or empty frame.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCEncodedVideoFrame/type)\n */\n readonly type: RTCEncodedVideoFrameType;\n /**\n * The **`getMetadata()`** method of the RTCEncodedVideoFrame interface returns an object containing the metadata associated with the frame.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCEncodedVideoFrame/getMetadata)\n */\n getMetadata(): RTCEncodedVideoFrameMetadata;\n}\n\ndeclare var RTCEncodedVideoFrame: {\n prototype: RTCEncodedVideoFrame;\n new(): RTCEncodedVideoFrame;\n};\n\n/**\n * The **`RTCError`** interface describes an error which has occurred while handling WebRTC operations.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCError)\n */\ninterface RTCError extends DOMException {\n /**\n * The RTCError interface\'s read-only **`errorDetail`** property is a string indicating the WebRTC-specific error code that occurred.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCError/errorDetail)\n */\n readonly errorDetail: RTCErrorDetailType;\n /**\n * The RTCError read-only property **`receivedAlert`** specifies the fatal DTLS error which resulted in an alert being received from the remote peer.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCError/receivedAlert)\n */\n readonly receivedAlert: number | null;\n /**\n * The read-only **`sctpCauseCode`** property in an why the SCTP negotiation failed, if the `RTCError` represents an SCTP error.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCError/sctpCauseCode)\n */\n readonly sctpCauseCode: number | null;\n /**\n * The RTCError interface\'s read-only property **`sdpLineNumber`** specifies the line number within the An unsigned integer value indicating the line within the SDP at which the syntax error described by the `RTCError` object occurred.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCError/sdpLineNumber)\n */\n readonly sdpLineNumber: number | null;\n /**\n * The read-only **`sentAlert`** property in an while sending data to the remote peer, if the error represents an outbound DTLS error.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCError/sentAlert)\n */\n readonly sentAlert: number | null;\n}\n\ndeclare var RTCError: {\n prototype: RTCError;\n new(init: RTCErrorInit, message?: string): RTCError;\n};\n\n/**\n * The WebRTC API\'s **`RTCErrorEvent`** interface represents an error sent to a WebRTC object.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCErrorEvent)\n */\ninterface RTCErrorEvent extends Event {\n /**\n * The read-only RTCErrorEvent property **`error`** contains an RTCError object describing the details of the error which the event is announcing.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCErrorEvent/error)\n */\n readonly error: RTCError;\n}\n\ndeclare var RTCErrorEvent: {\n prototype: RTCErrorEvent;\n new(type: string, eventInitDict: RTCErrorEventInit): RTCErrorEvent;\n};\n\n/**\n * The **`RTCIceCandidate`** interface—part of the WebRTC API—represents a candidate Interactive Connectivity Establishment (ICE) configuration which may be used to establish an RTCPeerConnection.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCIceCandidate)\n */\ninterface RTCIceCandidate {\n /**\n * The **RTCIceCandidate** interface\'s read-only **`address`** property is a string providing the IP address of the device which is the source of the candidate.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCIceCandidate/address)\n */\n readonly address: string | null;\n /**\n * The read-only property **`candidate`** on the RTCIceCandidate interface returns a string describing the candidate in detail.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCIceCandidate/candidate)\n */\n readonly candidate: string;\n /**\n * The read-only **`component`** property on the RTCIceCandidate interface is a string which indicates whether the candidate is an RTP or an RTCP candidate.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCIceCandidate/component)\n */\n readonly component: RTCIceComponent | null;\n /**\n * The **`foundation`** read-only property of the RTCIceCandidate interface is a string that allows correlation of candidates from a common network path on multiple RTCIceTransport objects.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCIceCandidate/foundation)\n */\n readonly foundation: string | null;\n /**\n * The **RTCIceCandidate** interface\'s read-only **`port`** property contains the port number on the device at the address given by RTCIceCandidate.address at which the candidate\'s peer can be reached.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCIceCandidate/port)\n */\n readonly port: number | null;\n /**\n * The **RTCIceCandidate** interface\'s read-only **`priority`** property specifies the candidate\'s priority according to the remote peer; the higher this value is, the better the remote peer considers the candidate to be.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCIceCandidate/priority)\n */\n readonly priority: number | null;\n /**\n * The **RTCIceCandidate** interface\'s read-only **`protocol`** property is a string which indicates whether the candidate uses UDP or TCP as its transport protocol.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCIceCandidate/protocol)\n */\n readonly protocol: RTCIceProtocol | null;\n /**\n * The **RTCIceCandidate** interface\'s read-only **`relatedAddress`** property is a string indicating the **related address** of a relay or reflexive candidate.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCIceCandidate/relatedAddress)\n */\n readonly relatedAddress: string | null;\n /**\n * The **RTCIceCandidate** interface\'s read-only **`relatedPort`** property indicates the port number of reflexive or relay candidates.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCIceCandidate/relatedPort)\n */\n readonly relatedPort: number | null;\n /**\n * The read-only **`sdpMLineIndex`** property on the RTCIceCandidate interface is a zero-based index of the m-line describing the media associated with the candidate.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCIceCandidate/sdpMLineIndex)\n */\n readonly sdpMLineIndex: number | null;\n /**\n * The read-only property **`sdpMid`** on the RTCIceCandidate interface returns a string specifying the media stream identification tag of the media component with which the candidate is associated.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCIceCandidate/sdpMid)\n */\n readonly sdpMid: string | null;\n /**\n * The **RTCIceCandidate** interface\'s read-only **`tcpType`** property is included on TCP candidates to provide additional details about the candidate type.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCIceCandidate/tcpType)\n */\n readonly tcpType: RTCIceTcpCandidateType | null;\n /**\n * The **RTCIceCandidate** interface\'s read-only **`type`** specifies the type of candidate the object represents.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCIceCandidate/type)\n */\n readonly type: RTCIceCandidateType | null;\n /**\n * The read-only **`usernameFragment`** property on the RTCIceCandidate interface is a string indicating the username fragment (\'ufrag\') that uniquely identifies a single ICE interaction session.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCIceCandidate/usernameFragment)\n */\n readonly usernameFragment: string | null;\n /**\n * The RTCIceCandidate method **`toJSON()`** converts the `RTCIceCandidate` on which it\'s called into JSON.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCIceCandidate/toJSON)\n */\n toJSON(): RTCIceCandidateInit;\n}\n\ndeclare var RTCIceCandidate: {\n prototype: RTCIceCandidate;\n new(candidateInitDict?: RTCLocalIceCandidateInit): RTCIceCandidate;\n};\n\n/** The **`RTCIceCandidatePair`** dictionary describes a pair of ICE candidates which together comprise a description of a viable connection between two WebRTC endpoints. */\ninterface RTCIceCandidatePair {\n /** The **`local`** property of the **RTCIceCandidatePair** dictionary specifies the RTCIceCandidate which describes the configuration of the local end of a viable WebRTC connection. */\n local: RTCIceCandidate;\n /** The **`remote`** property of the **RTCIceCandidatePair** dictionary specifies the viable WebRTC connection. */\n remote: RTCIceCandidate;\n}\n\ninterface RTCIceTransportEventMap {\n "gatheringstatechange": Event;\n "selectedcandidatepairchange": Event;\n "statechange": Event;\n}\n\n/**\n * The **`RTCIceTransport`** interface provides access to information about the ICE transport layer over which the data is being sent and received.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCIceTransport)\n */\ninterface RTCIceTransport extends EventTarget {\n /**\n * The **`gatheringState`** read-only property of the RTCIceTransport interface returns a string that indicates the current gathering state of the ICE agent for this transport: `\'new\'`, `\'gathering\'`, or `\'complete\'`.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCIceTransport/gatheringState)\n */\n readonly gatheringState: RTCIceGathererState;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCIceTransport/gatheringstatechange_event) */\n ongatheringstatechange: ((this: RTCIceTransport, ev: Event) => any) | null;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCIceTransport/selectedcandidatepairchange_event) */\n onselectedcandidatepairchange: ((this: RTCIceTransport, ev: Event) => any) | null;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCIceTransport/statechange_event) */\n onstatechange: ((this: RTCIceTransport, ev: Event) => any) | null;\n /**\n * The **`state`** read-only property of the RTCIceTransport interface returns the current state of the ICE transport, so you can determine the state of ICE gathering in which the ICE agent currently is operating.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCIceTransport/state)\n */\n readonly state: RTCIceTransportState;\n /**\n * The **`getSelectedCandidatePair()`** method of the RTCIceTransport interface returns an RTCIceCandidatePair object containing the current best-choice pair of ICE candidates describing the configuration of the endpoints of the transport.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCIceTransport/getSelectedCandidatePair)\n */\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 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 "track": RTCTrackEvent;\n}\n\n/**\n * The **`RTCPeerConnection`** interface represents a WebRTC connection between the local computer and a remote peer.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCPeerConnection)\n */\ninterface RTCPeerConnection extends EventTarget {\n /**\n * The **`canTrickleIceCandidates`** read-only property of the RTCPeerConnection interface returns a boolean value which indicates whether or not the remote peer can accept trickled ICE candidates.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCPeerConnection/canTrickleIceCandidates)\n */\n readonly canTrickleIceCandidates: boolean | null;\n /**\n * The **`connectionState`** read-only property of the RTCPeerConnection interface indicates the current state of the peer connection by returning one of the following string values: `new`, `connecting`, `connected`, `disconnected`, `failed`, or `closed`.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCPeerConnection/connectionState)\n */\n readonly connectionState: RTCPeerConnectionState;\n /**\n * The **`currentLocalDescription`** read-only property of the RTCPeerConnection interface returns an RTCSessionDescription object describing the local end of the connection as it was most recently successfully negotiated since the last time the RTCPeerConnection finished negotiating and connecting to a remote peer.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCPeerConnection/currentLocalDescription)\n */\n readonly currentLocalDescription: RTCSessionDescription | null;\n /**\n * The **`currentRemoteDescription`** read-only property of the RTCPeerConnection interface returns an Also included is a list of any ICE candidates that may already have been generated by the ICE agent since the offer or answer represented by the description was first instantiated.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCPeerConnection/currentRemoteDescription)\n */\n readonly currentRemoteDescription: RTCSessionDescription | null;\n /**\n * The **`iceConnectionState`** read-only property of the RTCPeerConnection interface returns a string which state of the ICE agent associated with the RTCPeerConnection: `new`, `checking`, `connected`, `completed`, `failed`, `disconnected`, and `closed`.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCPeerConnection/iceConnectionState)\n */\n readonly iceConnectionState: RTCIceConnectionState;\n /**\n * The **`iceGatheringState`** read-only property of the RTCPeerConnection interface returns a string that describes the overall ICE gathering state for this connection.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCPeerConnection/iceGatheringState)\n */\n readonly iceGatheringState: RTCIceGatheringState;\n /**\n * The **`localDescription`** read-only property of the RTCPeerConnection interface returns an RTCSessionDescription describing the session for the local end of the connection.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCPeerConnection/localDescription)\n */\n readonly localDescription: RTCSessionDescription | null;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCPeerConnection/connectionstatechange_event) */\n onconnectionstatechange: ((this: RTCPeerConnection, ev: Event) => any) | null;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCPeerConnection/datachannel_event) */\n ondatachannel: ((this: RTCPeerConnection, ev: RTCDataChannelEvent) => any) | null;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCPeerConnection/icecandidate_event) */\n onicecandidate: ((this: RTCPeerConnection, ev: RTCPeerConnectionIceEvent) => any) | null;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCPeerConnection/icecandidateerror_event) */\n onicecandidateerror: ((this: RTCPeerConnection, ev: RTCPeerConnectionIceErrorEvent) => any) | null;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCPeerConnection/iceconnectionstatechange_event) */\n oniceconnectionstatechange: ((this: RTCPeerConnection, ev: Event) => any) | null;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCPeerConnection/icegatheringstatechange_event) */\n onicegatheringstatechange: ((this: RTCPeerConnection, ev: Event) => any) | null;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCPeerConnection/negotiationneeded_event) */\n onnegotiationneeded: ((this: RTCPeerConnection, ev: Event) => any) | null;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCPeerConnection/signalingstatechange_event) */\n onsignalingstatechange: ((this: RTCPeerConnection, ev: Event) => any) | null;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCPeerConnection/track_event) */\n ontrack: ((this: RTCPeerConnection, ev: RTCTrackEvent) => any) | null;\n /**\n * The **`pendingLocalDescription`** read-only property of the RTCPeerConnection interface returns an RTCSessionDescription object describing a pending configuration change for the local end of the connection.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCPeerConnection/pendingLocalDescription)\n */\n readonly pendingLocalDescription: RTCSessionDescription | null;\n /**\n * The **`pendingRemoteDescription`** read-only property of the RTCPeerConnection interface returns an RTCSessionDescription object describing a pending configuration change for the remote end of the connection.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCPeerConnection/pendingRemoteDescription)\n */\n readonly pendingRemoteDescription: RTCSessionDescription | null;\n /**\n * The **`remoteDescription`** read-only property of the RTCPeerConnection interface returns a RTCSessionDescription describing the session (which includes configuration and media information) for the remote end of the connection.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCPeerConnection/remoteDescription)\n */\n readonly remoteDescription: RTCSessionDescription | null;\n /**\n * The **`sctp`** read-only property of the RTCPeerConnection interface returns an RTCSctpTransport describing the SCTP transport over which SCTP data is being sent and received.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCPeerConnection/sctp)\n */\n readonly sctp: RTCSctpTransport | null;\n /**\n * The **`signalingState`** read-only property of the RTCPeerConnection interface returns a string value describing the state of the signaling process on the local end of the connection while connecting or reconnecting to another peer.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCPeerConnection/signalingState)\n */\n readonly signalingState: RTCSignalingState;\n /**\n * The **`addIceCandidate()`** method of the RTCPeerConnection interface adds a new remote candidate to the connection\'s remote description, which describes the state of the remote end of the connection.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCPeerConnection/addIceCandidate)\n */\n addIceCandidate(candidate?: RTCIceCandidateInit | null): Promise<void>;\n /** @deprecated */\n addIceCandidate(candidate: RTCIceCandidateInit | null, successCallback: VoidFunction, failureCallback: RTCPeerConnectionErrorCallback): Promise<void>;\n /**\n * The **`addTrack()`** method of the RTCPeerConnection interface adds a new media track to the set of tracks which will be transmitted to the other peer.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCPeerConnection/addTrack)\n */\n addTrack(track: MediaStreamTrack, ...streams: MediaStream[]): RTCRtpSender;\n /**\n * The **`addTransceiver()`** method of the RTCPeerConnection interface creates a new RTCRtpTransceiver and adds it to the set of transceivers associated with the `RTCPeerConnection`.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCPeerConnection/addTransceiver)\n */\n addTransceiver(trackOrKind: MediaStreamTrack | string, init?: RTCRtpTransceiverInit): RTCRtpTransceiver;\n /**\n * The **`close()`** method of the RTCPeerConnection interface closes the current peer connection.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCPeerConnection/close)\n */\n close(): void;\n /**\n * The **`createAnswer()`** method of the RTCPeerConnection interface creates an SDP answer to an offer received from a remote peer during the offer/answer negotiation of a WebRTC connection.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCPeerConnection/createAnswer)\n */\n createAnswer(options?: RTCAnswerOptions): Promise<RTCSessionDescriptionInit>;\n /** @deprecated */\n createAnswer(successCallback: RTCSessionDescriptionCallback, failureCallback: RTCPeerConnectionErrorCallback): Promise<void>;\n /**\n * The **`createDataChannel()`** method of the RTCPeerConnection interface creates a new channel linked with the remote peer, over which any kind of data may be transmitted.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCPeerConnection/createDataChannel)\n */\n createDataChannel(label: string, dataChannelDict?: RTCDataChannelInit): RTCDataChannel;\n /**\n * The **`createOffer()`** method of the RTCPeerConnection interface initiates the creation of an SDP offer for the purpose of starting a new WebRTC connection to a remote peer.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCPeerConnection/createOffer)\n */\n createOffer(options?: RTCOfferOptions): Promise<RTCSessionDescriptionInit>;\n /** @deprecated */\n createOffer(successCallback: RTCSessionDescriptionCallback, failureCallback: RTCPeerConnectionErrorCallback, options?: RTCOfferOptions): Promise<void>;\n /**\n * The **`getConfiguration()`** method of the RTCPeerConnection interface returns an object which indicates the current configuration of the RTCPeerConnection on which the method is called.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCPeerConnection/getConfiguration)\n */\n getConfiguration(): RTCConfiguration;\n /**\n * The **`getReceivers()`** method of the RTCPeerConnection interface returns an array of RTCRtpReceiver objects, each of which represents one RTP receiver.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCPeerConnection/getReceivers)\n */\n getReceivers(): RTCRtpReceiver[];\n /**\n * The **`getSenders()`** method of the RTCPeerConnection interface returns an array of RTCRtpSender objects, each of which represents the RTP sender responsible for transmitting one track\'s data.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCPeerConnection/getSenders)\n */\n getSenders(): RTCRtpSender[];\n /**\n * The **`getStats()`** method of the RTCPeerConnection interface returns a promise which resolves with data providing statistics about either the overall connection or about the specified MediaStreamTrack.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCPeerConnection/getStats)\n */\n getStats(selector?: MediaStreamTrack | null): Promise<RTCStatsReport>;\n /**\n * The **`getTransceivers()`** method of the RTCPeerConnection interface returns a list of the RTCRtpTransceiver objects being used to send and receive data on the connection.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCPeerConnection/getTransceivers)\n */\n getTransceivers(): RTCRtpTransceiver[];\n /**\n * The **`removeTrack()`** method of the RTCPeerConnection interface tells the local end of the connection to stop sending media from the specified track, without actually removing the corresponding RTCRtpSender from the list of senders as reported by RTCPeerConnection.getSenders().\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCPeerConnection/removeTrack)\n */\n removeTrack(sender: RTCRtpSender): void;\n /**\n * The **`restartIce()`** method of the RTCPeerConnection interface allows a web application to request that ICE candidate gathering be redone on both ends of the connection.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCPeerConnection/restartIce)\n */\n restartIce(): void;\n /**\n * The **`setConfiguration()`** method of the RTCPeerConnection interface sets the current configuration of the connection based on the values included in the specified object.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCPeerConnection/setConfiguration)\n */\n setConfiguration(configuration?: RTCConfiguration): void;\n /**\n * The **`setLocalDescription()`** method of the RTCPeerConnection interface changes the local description associated with the connection.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCPeerConnection/setLocalDescription)\n */\n setLocalDescription(description?: RTCLocalSessionDescriptionInit): Promise<void>;\n /** @deprecated */\n setLocalDescription(description: RTCLocalSessionDescriptionInit, successCallback: VoidFunction, failureCallback: RTCPeerConnectionErrorCallback): Promise<void>;\n /**\n * The **`setRemoteDescription()`** method of the RTCPeerConnection interface sets the specified session description as the remote peer\'s current offer or answer.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCPeerConnection/setRemoteDescription)\n */\n setRemoteDescription(description: RTCSessionDescriptionInit): Promise<void>;\n /** @deprecated */\n setRemoteDescription(description: RTCSessionDescriptionInit, successCallback: VoidFunction, failureCallback: RTCPeerConnectionErrorCallback): 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 /**\n * The **`generateCertificate()`** static function of the RTCPeerConnection interface creates an X.509 certificate and corresponding private key, returning a promise that resolves with the new RTCCertificate once it\'s generated.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCPeerConnection/generateCertificate_static)\n */\n generateCertificate(keygenAlgorithm: AlgorithmIdentifier): Promise<RTCCertificate>;\n};\n\n/**\n * The **`RTCPeerConnectionIceErrorEvent`** interface—based upon the Event interface—provides details pertaining to an ICE error announced by sending an RTCPeerConnection.icecandidateerror_event event to the RTCPeerConnection object.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCPeerConnectionIceErrorEvent)\n */\ninterface RTCPeerConnectionIceErrorEvent extends Event {\n /**\n * The RTCPeerConnectionIceErrorEvent property **`address`** is a string which indicates the local IP address being used to communicate with the STUN or TURN server during negotiations.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCPeerConnectionIceErrorEvent/address)\n */\n readonly address: string | null;\n readonly errorCode: number;\n readonly errorText: string;\n readonly port: number | null;\n readonly url: string;\n}\n\ndeclare var RTCPeerConnectionIceErrorEvent: {\n prototype: RTCPeerConnectionIceErrorEvent;\n new(type: string, eventInitDict: RTCPeerConnectionIceErrorEventInit): RTCPeerConnectionIceErrorEvent;\n};\n\n/**\n * The **`RTCPeerConnectionIceEvent`** interface represents events that occur in relation to ICE candidates with the target, usually an RTCPeerConnection.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCPeerConnectionIceEvent)\n */\ninterface RTCPeerConnectionIceEvent extends Event {\n /**\n * The read-only **`candidate`** property of the RTCPeerConnectionIceEvent interface returns the An RTCIceCandidate object representing the ICE candidate that has been received, or `null` to indicate that there are no further candidates for this negotiation session.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCPeerConnectionIceEvent/candidate)\n */\n readonly candidate: RTCIceCandidate | null;\n}\n\ndeclare var RTCPeerConnectionIceEvent: {\n prototype: RTCPeerConnectionIceEvent;\n new(type: string, eventInitDict?: RTCPeerConnectionIceEventInit): RTCPeerConnectionIceEvent;\n};\n\n/**\n * The **`RTCRtpReceiver`** interface of the WebRTC API manages the reception and decoding of data for a MediaStreamTrack on an RTCPeerConnection.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCRtpReceiver)\n */\ninterface RTCRtpReceiver {\n /**\n * The **`jitterBufferTarget`** property of the RTCRtpReceiver interface is a DOMHighResTimeStamp that indicates the application\'s preferred duration, in milliseconds, for which the jitter buffer should hold media before playing it out.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCRtpReceiver/jitterBufferTarget)\n */\n jitterBufferTarget: DOMHighResTimeStamp | null;\n /**\n * The **`track`** read-only property of the associated with the current RTCRtpReceiver instance.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCRtpReceiver/track)\n */\n readonly track: MediaStreamTrack;\n /**\n * The **`transform`** property of the RTCRtpReceiver object is used to insert a transform stream (TransformStream) running in a worker thread into the receiver pipeline.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCRtpReceiver/transform)\n */\n transform: RTCRtpTransform | null;\n /**\n * The read-only **`transport`** property of an used to interact with the underlying transport over which the receiver is exchanging Real-time Transport Control Protocol (RTCP) packets.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCRtpReceiver/transport)\n */\n readonly transport: RTCDtlsTransport | null;\n /**\n * The **`getContributingSources()`** method of the RTCRtpReceiver interface returns an array of objects, each corresponding to one CSRC (contributing source) identifier received by the current `RTCRtpReceiver` in the last ten seconds.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCRtpReceiver/getContributingSources)\n */\n getContributingSources(): RTCRtpContributingSource[];\n /**\n * The **`getParameters()`** method of the RTCRtpReceiver interface returns an object describing the current configuration for how the receiver\'s RTCRtpReceiver.track is decoded.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCRtpReceiver/getParameters)\n */\n getParameters(): RTCRtpReceiveParameters;\n /**\n * The RTCRtpReceiver method **`getStats()`** asynchronously requests an RTCStatsReport object which provides statistics about incoming traffic on the owning RTCPeerConnection, returning a Promise whose fulfillment handler will be called once the results are available.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCRtpReceiver/getStats)\n */\n getStats(): Promise<RTCStatsReport>;\n /**\n * The **`getSynchronizationSources()`** method of the RTCRtpReceiver interface returns an array of objects, each corresponding to one SSRC (synchronization source) identifier received by the current `RTCRtpReceiver` in the last ten seconds.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCRtpReceiver/getSynchronizationSources)\n */\n getSynchronizationSources(): RTCRtpSynchronizationSource[];\n}\n\ndeclare var RTCRtpReceiver: {\n prototype: RTCRtpReceiver;\n new(): RTCRtpReceiver;\n /**\n * The _static method_ **`RTCRtpReceiver.getCapabilities()`** returns an object describing the codec and header extension capabilities supported by RTCRtpReceiver objects on the current device.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCRtpReceiver/getCapabilities_static)\n */\n getCapabilities(kind: string): RTCRtpCapabilities | null;\n};\n\n/**\n * The **`RTCRtpScriptTransform`** interface of the WebRTC API is used to insert a WebRTC Encoded Transform (a TransformStream running in a worker thread) into the WebRTC sender and receiver pipelines.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCRtpScriptTransform)\n */\ninterface RTCRtpScriptTransform {\n}\n\ndeclare var RTCRtpScriptTransform: {\n prototype: RTCRtpScriptTransform;\n new(worker: Worker, options?: any, transfer?: any[]): RTCRtpScriptTransform;\n};\n\n/**\n * The **`RTCRtpSender`** interface provides the ability to control and obtain details about how a particular MediaStreamTrack is encoded and sent to a remote peer.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCRtpSender)\n */\ninterface RTCRtpSender {\n /**\n * The read-only **`dtmf`** property on the **RTCRtpSender** interface returns a over the RTCPeerConnection.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCRtpSender/dtmf)\n */\n readonly dtmf: RTCDTMFSender | null;\n /**\n * The **`track`** read-only property of the RTCRtpSender interface returns the MediaStreamTrack which is being handled by the `RTCRtpSender`.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCRtpSender/track)\n */\n readonly track: MediaStreamTrack | null;\n /**\n * The **`transform`** property of the RTCRtpSender object is used to insert a transform stream (TransformStream) running in a worker thread into the sender pipeline.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCRtpSender/transform)\n */\n transform: RTCRtpTransform | null;\n /**\n * The read-only **`transport`** property of an used to interact with the underlying transport over which the sender is exchanging Real-time Transport Control Protocol (RTCP) packets.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCRtpSender/transport)\n */\n readonly transport: RTCDtlsTransport | null;\n /**\n * The **`getParameters()`** method of the RTCRtpSender interface returns an object describing the current configuration for how the sender\'s RTCRtpSender.track will be encoded and transmitted to a remote RTCRtpReceiver.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCRtpSender/getParameters)\n */\n getParameters(): RTCRtpSendParameters;\n /**\n * The RTCRtpSender method **`getStats()`** asynchronously requests an RTCStatsReport object which provides statistics about outgoing traffic on the RTCPeerConnection which owns the sender, returning a Promise which is fulfilled when the results are available.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCRtpSender/getStats)\n */\n getStats(): Promise<RTCStatsReport>;\n /**\n * The RTCRtpSender method **`replaceTrack()`** replaces the track currently being used as the sender\'s source with a new MediaStreamTrack.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCRtpSender/replaceTrack)\n */\n replaceTrack(withTrack: MediaStreamTrack | null): Promise<void>;\n /**\n * The **`setParameters()`** method of the RTCRtpSender interface applies changes the configuration of sender\'s RTCRtpSender.track, which is the MediaStreamTrack for which the `RTCRtpSender` is responsible.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCRtpSender/setParameters)\n */\n setParameters(parameters: RTCRtpSendParameters, setParameterOptions?: RTCSetParameterOptions): Promise<void>;\n /**\n * The RTCRtpSender method **`setStreams()`** associates the sender\'s RTCRtpSender.track with the specified MediaStream objects.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCRtpSender/setStreams)\n */\n setStreams(...streams: MediaStream[]): void;\n}\n\ndeclare var RTCRtpSender: {\n prototype: RTCRtpSender;\n new(): RTCRtpSender;\n /**\n * The _static method_ **`RTCRtpSender.getCapabilities()`** returns an object describing the codec and header extension capabilities supported by the RTCRtpSender.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCRtpSender/getCapabilities_static)\n */\n getCapabilities(kind: string): RTCRtpCapabilities | null;\n};\n\n/**\n * The WebRTC interface **`RTCRtpTransceiver`** describes a permanent pairing of an RTCRtpSender and an RTCRtpReceiver, along with some shared state.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCRtpTransceiver)\n */\ninterface RTCRtpTransceiver {\n /**\n * The read-only RTCRtpTransceiver property **`currentDirection`** is a string which indicates the current negotiated directionality of the transceiver.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCRtpTransceiver/currentDirection)\n */\n readonly currentDirection: RTCRtpTransceiverDirection | null;\n /**\n * The RTCRtpTransceiver property **`direction`** is a string that indicates the transceiver\'s _preferred_ directionality.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCRtpTransceiver/direction)\n */\n direction: RTCRtpTransceiverDirection;\n /**\n * The read-only RTCRtpTransceiver interface\'s **`mid`** property specifies the negotiated media ID (`mid`) which the local and remote peers have agreed upon to uniquely identify the stream\'s pairing of sender and receiver.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCRtpTransceiver/mid)\n */\n readonly mid: string | null;\n /**\n * The read-only **`receiver`** property of WebRTC\'s RTCRtpTransceiver interface indicates the data for the transceiver\'s stream.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCRtpTransceiver/receiver)\n */\n readonly receiver: RTCRtpReceiver;\n /**\n * The read-only **`sender`** property of WebRTC\'s RTCRtpTransceiver interface indicates the for the transceiver\'s stream.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCRtpTransceiver/sender)\n */\n readonly sender: RTCRtpSender;\n /**\n * The **`setCodecPreferences()`** method of the RTCRtpTransceiver interface is used to set the codecs that the transceiver allows for decoding _received_ data, in order of decreasing preference.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCRtpTransceiver/setCodecPreferences)\n */\n setCodecPreferences(codecs: RTCRtpCodec[]): void;\n /**\n * The **`stop()`** method in the RTCRtpTransceiver interface permanently stops the transceiver by stopping both the associated RTCRtpSender and ```js-nolint stop() ``` None.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCRtpTransceiver/stop)\n */\n stop(): void;\n}\n\ndeclare var RTCRtpTransceiver: {\n prototype: RTCRtpTransceiver;\n new(): RTCRtpTransceiver;\n};\n\ninterface RTCSctpTransportEventMap {\n "statechange": Event;\n}\n\n/**\n * The **`RTCSctpTransport`** interface provides information which describes a Stream Control Transmission Protocol (**SCTP**) transport.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCSctpTransport)\n */\ninterface RTCSctpTransport extends EventTarget {\n /**\n * The **`maxChannels`** read-only property of the RTCSctpTransport interface indicates the maximum number of RTCDataChannel objects that can be opened simultaneously.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCSctpTransport/maxChannels)\n */\n readonly maxChannels: number | null;\n /**\n * The **`maxMessageSize`** read-only property of the RTCSctpTransport interface indicates the maximum size of a message that can be sent using the RTCDataChannel.send() method.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCSctpTransport/maxMessageSize)\n */\n readonly maxMessageSize: number;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCSctpTransport/statechange_event) */\n onstatechange: ((this: RTCSctpTransport, ev: Event) => any) | null;\n /**\n * The **`state`** read-only property of the RTCSctpTransport interface provides information which describes a Stream Control Transmission Protocol (SCTP) transport state.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCSctpTransport/state)\n */\n readonly state: RTCSctpTransportState;\n /**\n * The **`transport`** read-only property of the RTCSctpTransport interface returns a RTCDtlsTransport object representing the DTLS transport used for the transmission and receipt of data packets.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCSctpTransport/transport)\n */\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/**\n * The **`RTCSessionDescription`** interface describes one end of a connection—or potential connection—and how it\'s configured.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCSessionDescription)\n */\ninterface RTCSessionDescription {\n /**\n * The property **`RTCSessionDescription.sdp`** is a read-only string containing the SDP which describes the session.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCSessionDescription/sdp)\n */\n readonly sdp: string;\n /**\n * The property **`RTCSessionDescription.type`** is a read-only string value which describes the description\'s type.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCSessionDescription/type)\n */\n readonly type: RTCSdpType;\n /**\n * The **`RTCSessionDescription.toJSON()`** method generates a ```js-nolint toJSON() ``` None.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCSessionDescription/toJSON)\n */\n toJSON(): RTCSessionDescriptionInit;\n}\n\ndeclare var RTCSessionDescription: {\n prototype: RTCSessionDescription;\n new(descriptionInitDict: RTCSessionDescriptionInit): RTCSessionDescription;\n};\n\n/**\n * The **`RTCStatsReport`** interface of the WebRTC API provides a statistics report for a RTCPeerConnection, RTCRtpSender, or RTCRtpReceiver.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCStatsReport)\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\n/**\n * The WebRTC API interface **`RTCTrackEvent`** represents the RTCPeerConnection.track_event event, which is sent when a new MediaStreamTrack is added to an RTCRtpReceiver which is part of the RTCPeerConnection.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCTrackEvent)\n */\ninterface RTCTrackEvent extends Event {\n /**\n * The read-only **`receiver`** property of the RTCTrackEvent interface indicates the The RTCRtpReceiver which pairs the `receiver` with a sender and other properties which establish a single bidirectional RTP stream for use by the RTCTrackEvent.track associated with the `RTCTrackEvent`.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCTrackEvent/receiver)\n */\n readonly receiver: RTCRtpReceiver;\n /**\n * The WebRTC API interface RTCTrackEvent\'s read-only **`streams`** property specifies an array of track being added to the RTCPeerConnection.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCTrackEvent/streams)\n */\n readonly streams: ReadonlyArray<MediaStream>;\n /**\n * The\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCTrackEvent/track)\n */\n readonly track: MediaStreamTrack;\n /**\n * The WebRTC API interface RTCTrackEvent\'s read-only **`transceiver`** property indicates the The transceiver pairs the track\'s The RTCRtpTransceiver which pairs the `receiver` with a sender and other properties which establish a single bidirectional RTP stream for use by the RTCTrackEvent.track associated with the `RTCTrackEvent`.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCTrackEvent/transceiver)\n */\n readonly transceiver: RTCRtpTransceiver;\n}\n\ndeclare var RTCTrackEvent: {\n prototype: RTCTrackEvent;\n new(type: string, eventInitDict: RTCTrackEventInit): RTCTrackEvent;\n};\n\n/**\n * The **`RadioNodeList`** interface represents a collection of elements in a form returned by a call to HTMLFormControlsCollection.namedItem().\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/RadioNodeList)\n */\ninterface RadioNodeList extends NodeListOf<HTMLInputElement> {\n /**\n * If the underlying element collection contains radio buttons, the **`RadioNodeList.value`** property represents the checked radio button.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/RadioNodeList/value)\n */\n value: string;\n}\n\ndeclare var RadioNodeList: {\n prototype: RadioNodeList;\n new(): RadioNodeList;\n};\n\n/**\n * The **`Range`** interface represents a fragment of a document that can contain nodes and parts of text nodes.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Range)\n */\ninterface Range extends AbstractRange {\n /**\n * The **`Range.commonAncestorContainer`** read-only property returns the deepest — or furthest down the document tree — Node that contains both boundary points of the Range.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Range/commonAncestorContainer)\n */\n readonly commonAncestorContainer: Node;\n /**\n * The **`cloneContents()`** method of the Range interface copies the selected Node children of the range\'s Range/commonAncestorContainer and puts them in a new DocumentFragment object.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Range/cloneContents)\n */\n cloneContents(): DocumentFragment;\n /**\n * The **`Range.cloneRange()`** method returns a The returned clone is copied by value, not reference, so a change in either ```js-nolint cloneRange() ``` None.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Range/cloneRange)\n */\n cloneRange(): Range;\n /**\n * The **`collapse()`** method of the Range interface collapses the A collapsed Range is empty, containing no content, specifying a single-point in a DOM tree.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Range/collapse)\n */\n collapse(toStart?: boolean): void;\n /**\n * The **`compareBoundaryPoints()`** method of the Range interface compares the boundary points of the Range with those of another range.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Range/compareBoundaryPoints)\n */\n compareBoundaryPoints(how: number, sourceRange: Range): number;\n /**\n * The **`comparePoint()`** method of the Range interface determines whether a specified point is before, within, or after the Range.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Range/comparePoint)\n */\n comparePoint(node: Node, offset: number): number;\n /**\n * The **`Range.createContextualFragment()`** method returns a XML fragment parsing algorithm with the start of the range (the _parent_ of the selected node) as the context node.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Range/createContextualFragment)\n */\n createContextualFragment(string: string): DocumentFragment;\n /**\n * The **`Range.deleteContents()`** method removes all completely-selected Node within this range from the document.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Range/deleteContents)\n */\n deleteContents(): void;\n /**\n * The **`Range.detach()`** method does nothing.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Range/detach)\n */\n detach(): void;\n /**\n * The **`extractContents()`** method of the Range interface is similar to a combination of Range.cloneContents() and Range.deleteContents().\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Range/extractContents)\n */\n extractContents(): DocumentFragment;\n /**\n * The **`Range.getBoundingClientRect()`** method returns a DOMRect object that bounds the contents of the range; this is a rectangle enclosing the union of the bounding rectangles for all the elements in the range.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Range/getBoundingClientRect)\n */\n getBoundingClientRect(): DOMRect;\n /**\n * The **`Range.getClientRects()`** method returns a list of DOMRect objects representing the area of the screen occupied by the range.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Range/getClientRects)\n */\n getClientRects(): DOMRectList;\n /**\n * The **`Range.insertNode()`** method inserts a node at the start of the Range.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Range/insertNode)\n */\n insertNode(node: Node): void;\n /**\n * The **`Range.intersectsNode()`** method returns a boolean indicating whether the given Node intersects the Range.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Range/intersectsNode)\n */\n intersectsNode(node: Node): boolean;\n /**\n * The **`isPointInRange()`** method of the Range interface determines whether a specified point is within the Range.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Range/isPointInRange)\n */\n isPointInRange(node: Node, offset: number): boolean;\n /**\n * The **`Range.selectNode()`** method sets the the parent of the _referenceNode_.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Range/selectNode)\n */\n selectNode(node: Node): void;\n /**\n * The **`Range.selectNodeContents()`** method sets the Range to contain the contents of a Node.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Range/selectNodeContents)\n */\n selectNodeContents(node: Node): void;\n /**\n * The **`Range.setEnd()`** method sets the end position of a Range to be located at the given offset into the specified node.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Range/setEnd)\n */\n setEnd(node: Node, offset: number): void;\n /**\n * The **`Range.setEndAfter()`** method sets the end position of a `Node` of end of the `Range` will be the same as that for the `referenceNode`.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Range/setEndAfter)\n */\n setEndAfter(node: Node): void;\n /**\n * The **`Range.setEndBefore()`** method sets the end position of a `Range` relative to another Node.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Range/setEndBefore)\n */\n setEndBefore(node: Node): void;\n /**\n * The **`Range.setStart()`** method sets the start position of a If the `startNode` is a Node of type Text, the number of characters from the start of `startNode`.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Range/setStart)\n */\n setStart(node: Node, offset: number): void;\n /**\n * The **`Range.setStartAfter()`** method sets the start position of a Range relative to a Node.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Range/setStartAfter)\n */\n setStartAfter(node: Node): void;\n /**\n * The **`Range.setStartBefore()`** method sets the start position of a Range relative to another Node.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Range/setStartBefore)\n */\n setStartBefore(node: Node): void;\n /**\n * The **`surroundContents()`** method of the Range interface surrounds the selected content by a provided node.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Range/surroundContents)\n */\n surroundContents(newParent: Node): void;\n toString(): string;\n readonly START_TO_START: 0;\n readonly START_TO_END: 1;\n readonly END_TO_END: 2;\n readonly END_TO_START: 3;\n}\n\ndeclare var Range: {\n prototype: Range;\n new(): Range;\n readonly START_TO_START: 0;\n readonly START_TO_END: 1;\n readonly END_TO_END: 2;\n readonly END_TO_START: 3;\n};\n\n/**\n * The **`ReadableByteStreamController`** interface of the Streams API represents a controller for a readable byte stream.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ReadableByteStreamController)\n */\ninterface ReadableByteStreamController {\n /**\n * The **`byobRequest`** read-only property of the ReadableByteStreamController interface returns the current BYOB request, or `null` if there are no pending requests.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ReadableByteStreamController/byobRequest)\n */\n readonly byobRequest: ReadableStreamBYOBRequest | null;\n /**\n * The **`desiredSize`** read-only property of the ReadableByteStreamController interface returns the number of bytes required to fill the stream\'s internal queue to its \'desired size\'.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ReadableByteStreamController/desiredSize)\n */\n readonly desiredSize: number | null;\n /**\n * The **`close()`** method of the ReadableByteStreamController interface closes the associated stream.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ReadableByteStreamController/close)\n */\n close(): void;\n /**\n * The **`enqueue()`** method of the ReadableByteStreamController interface enqueues a given chunk on the associated readable byte stream (the chunk is copied into the stream\'s internal queues).\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ReadableByteStreamController/enqueue)\n */\n enqueue(chunk: ArrayBufferView<ArrayBuffer>): void;\n /**\n * The **`error()`** method of the ReadableByteStreamController interface causes any future interactions with the associated stream to error with the specified reason.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ReadableByteStreamController/error)\n */\n error(e?: any): void;\n}\n\ndeclare var ReadableByteStreamController: {\n prototype: ReadableByteStreamController;\n new(): ReadableByteStreamController;\n};\n\n/**\n * The `ReadableStream` interface of the Streams API represents a readable stream of byte data.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ReadableStream)\n */\ninterface ReadableStream<R = any> {\n /**\n * The **`locked`** read-only property of the ReadableStream interface returns whether or not the readable stream is locked to a reader.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ReadableStream/locked)\n */\n readonly locked: boolean;\n /**\n * The **`cancel()`** method of the ReadableStream interface returns a Promise that resolves when the stream is canceled.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ReadableStream/cancel)\n */\n cancel(reason?: any): Promise<void>;\n /**\n * The **`getReader()`** method of the ReadableStream interface creates a reader and locks the stream to it.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ReadableStream/getReader)\n */\n getReader(options: { mode: "byob" }): ReadableStreamBYOBReader;\n getReader(): ReadableStreamDefaultReader<R>;\n getReader(options?: ReadableStreamGetReaderOptions): ReadableStreamReader<R>;\n /**\n * The **`pipeThrough()`** method of the ReadableStream interface provides a chainable way of piping the current stream through a transform stream or any other writable/readable pair.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ReadableStream/pipeThrough)\n */\n pipeThrough<T>(transform: ReadableWritablePair<T, R>, options?: StreamPipeOptions): ReadableStream<T>;\n /**\n * The **`pipeTo()`** method of the ReadableStream interface pipes the current `ReadableStream` to a given WritableStream and returns a Promise that fulfills when the piping process completes successfully, or rejects if any errors were encountered.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ReadableStream/pipeTo)\n */\n pipeTo(destination: WritableStream<R>, options?: StreamPipeOptions): Promise<void>;\n /**\n * The **`tee()`** method of the two-element array containing the two resulting branches as new ReadableStream instances.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ReadableStream/tee)\n */\n tee(): [ReadableStream<R>, ReadableStream<R>];\n}\n\ndeclare var ReadableStream: {\n prototype: ReadableStream;\n new(underlyingSource: UnderlyingByteSource, strategy?: { highWaterMark?: number }): ReadableStream<Uint8Array<ArrayBuffer>>;\n new<R = any>(underlyingSource: UnderlyingDefaultSource<R>, strategy?: QueuingStrategy<R>): ReadableStream<R>;\n new<R = any>(underlyingSource?: UnderlyingSource<R>, strategy?: QueuingStrategy<R>): ReadableStream<R>;\n};\n\n/**\n * The `ReadableStreamBYOBReader` interface of the Streams API defines a reader for a ReadableStream that supports zero-copy reading from an underlying byte source.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ReadableStreamBYOBReader)\n */\ninterface ReadableStreamBYOBReader extends ReadableStreamGenericReader {\n /**\n * The **`read()`** method of the ReadableStreamBYOBReader interface is used to read data into a view on a user-supplied buffer from an associated readable byte stream.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ReadableStreamBYOBReader/read)\n */\n read<T extends ArrayBufferView>(view: T): Promise<ReadableStreamReadResult<T>>;\n /**\n * The **`releaseLock()`** method of the ReadableStreamBYOBReader interface releases the reader\'s lock on the stream.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ReadableStreamBYOBReader/releaseLock)\n */\n releaseLock(): void;\n}\n\ndeclare var ReadableStreamBYOBReader: {\n prototype: ReadableStreamBYOBReader;\n new(stream: ReadableStream<Uint8Array<ArrayBuffer>>): ReadableStreamBYOBReader;\n};\n\n/**\n * The **`ReadableStreamBYOBRequest`** interface of the Streams API represents a \'pull request\' for data from an underlying source that will made as a zero-copy transfer to a consumer (bypassing the stream\'s internal queues).\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ReadableStreamBYOBRequest)\n */\ninterface ReadableStreamBYOBRequest {\n /**\n * The **`view`** getter property of the ReadableStreamBYOBRequest interface returns the current view.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ReadableStreamBYOBRequest/view)\n */\n readonly view: ArrayBufferView<ArrayBuffer> | null;\n /**\n * The **`respond()`** method of the ReadableStreamBYOBRequest interface is used to signal to the associated readable byte stream that the specified number of bytes were written into the ReadableStreamBYOBRequest.view.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ReadableStreamBYOBRequest/respond)\n */\n respond(bytesWritten: number): void;\n /**\n * The **`respondWithNewView()`** method of the ReadableStreamBYOBRequest interface specifies a new view that the consumer of the associated readable byte stream should write to instead of ReadableStreamBYOBRequest.view.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ReadableStreamBYOBRequest/respondWithNewView)\n */\n respondWithNewView(view: ArrayBufferView<ArrayBuffer>): void;\n}\n\ndeclare var ReadableStreamBYOBRequest: {\n prototype: ReadableStreamBYOBRequest;\n new(): ReadableStreamBYOBRequest;\n};\n\n/**\n * The **`ReadableStreamDefaultController`** interface of the Streams API represents a controller allowing control of a ReadableStream\'s state and internal queue.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ReadableStreamDefaultController)\n */\ninterface ReadableStreamDefaultController<R = any> {\n /**\n * The **`desiredSize`** read-only property of the required to fill the stream\'s internal queue.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ReadableStreamDefaultController/desiredSize)\n */\n readonly desiredSize: number | null;\n /**\n * The **`close()`** method of the ReadableStreamDefaultController interface closes the associated stream.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ReadableStreamDefaultController/close)\n */\n close(): void;\n /**\n * The **`enqueue()`** method of the ```js-nolint enqueue(chunk) ``` - `chunk` - : The chunk to enqueue.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ReadableStreamDefaultController/enqueue)\n */\n enqueue(chunk?: R): void;\n /**\n * The **`error()`** method of the with the associated stream to error.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ReadableStreamDefaultController/error)\n */\n error(e?: any): void;\n}\n\ndeclare var ReadableStreamDefaultController: {\n prototype: ReadableStreamDefaultController;\n new(): ReadableStreamDefaultController;\n};\n\n/**\n * The **`ReadableStreamDefaultReader`** interface of the Streams API represents a default reader that can be used to read stream data supplied from a network (such as a fetch request).\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ReadableStreamDefaultReader)\n */\ninterface ReadableStreamDefaultReader<R = any> extends ReadableStreamGenericReader {\n /**\n * The **`read()`** method of the ReadableStreamDefaultReader interface returns a Promise providing access to the next chunk in the stream\'s internal queue.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ReadableStreamDefaultReader/read)\n */\n read(): Promise<ReadableStreamReadResult<R>>;\n /**\n * The **`releaseLock()`** method of the ReadableStreamDefaultReader interface releases the reader\'s lock on the stream.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ReadableStreamDefaultReader/releaseLock)\n */\n releaseLock(): void;\n}\n\ndeclare var ReadableStreamDefaultReader: {\n prototype: ReadableStreamDefaultReader;\n new<R = any>(stream: ReadableStream<R>): ReadableStreamDefaultReader<R>;\n};\n\ninterface ReadableStreamGenericReader {\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ReadableStreamBYOBReader/closed) */\n readonly closed: Promise<void>;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ReadableStreamBYOBReader/cancel) */\n cancel(reason?: any): Promise<void>;\n}\n\ninterface RemotePlaybackEventMap {\n "connect": Event;\n "connecting": Event;\n "disconnect": Event;\n}\n\n/**\n * The **`RemotePlayback`** interface of the Remote Playback API allows the page to detect availability of remote playback devices, then connect to and control playing on these devices.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/RemotePlayback)\n */\ninterface RemotePlayback extends EventTarget {\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RemotePlayback/connect_event) */\n onconnect: ((this: RemotePlayback, ev: Event) => any) | null;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RemotePlayback/connecting_event) */\n onconnecting: ((this: RemotePlayback, ev: Event) => any) | null;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RemotePlayback/disconnect_event) */\n ondisconnect: ((this: RemotePlayback, ev: Event) => any) | null;\n /**\n * The **`state`** read-only property of the RemotePlayback interface returns the current state of the `RemotePlayback` connection.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/RemotePlayback/state)\n */\n readonly state: RemotePlaybackState;\n /**\n * The **`cancelWatchAvailability()`** method of the RemotePlayback interface cancels the request to watch for one or all available devices.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/RemotePlayback/cancelWatchAvailability)\n */\n cancelWatchAvailability(id?: number): Promise<void>;\n /**\n * The **`prompt()`** method of the RemotePlayback interface prompts the user to select an available remote playback device and give permission for the current media to be played using that device.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/RemotePlayback/prompt)\n */\n prompt(): Promise<void>;\n /**\n * The **`watchAvailability()`** method of the RemotePlayback interface watches the list of available remote playback devices and returns a Promise that resolves with the `callbackId` of a remote playback device.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/RemotePlayback/watchAvailability)\n */\n watchAvailability(callback: RemotePlaybackAvailabilityCallback): Promise<number>;\n addEventListener<K extends keyof RemotePlaybackEventMap>(type: K, listener: (this: RemotePlayback, ev: RemotePlaybackEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n removeEventListener<K extends keyof RemotePlaybackEventMap>(type: K, listener: (this: RemotePlayback, ev: RemotePlaybackEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\ndeclare var RemotePlayback: {\n prototype: RemotePlayback;\n new(): RemotePlayback;\n};\n\n/**\n * The `Report` interface of the Reporting API represents a single report.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Report)\n */\ninterface Report {\n /**\n * The **`body`** read-only property of the Report interface returns the body of the report, which is a `ReportBody` object containing the detailed report information.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Report/body)\n */\n readonly body: ReportBody | null;\n /**\n * The **`type`** read-only property of the Report interface returns the type of report generated, e.g., `deprecation` or `intervention`.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Report/type)\n */\n readonly type: string;\n /**\n * The **`url`** read-only property of the Report interface returns the URL of the document that generated the report.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Report/url)\n */\n readonly url: string;\n toJSON(): any;\n}\n\ndeclare var Report: {\n prototype: Report;\n new(): Report;\n};\n\n/**\n * The **`ReportBody`** interface of the Reporting API represents the body of a report.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ReportBody)\n */\ninterface ReportBody {\n /**\n * The **`toJSON()`** method of the ReportBody interface is a _serializer_, and returns a JSON representation of the `ReportBody` object.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ReportBody/toJSON)\n */\n toJSON(): any;\n}\n\ndeclare var ReportBody: {\n prototype: ReportBody;\n new(): ReportBody;\n};\n\n/**\n * The `ReportingObserver` interface of the Reporting API allows you to collect and access reports.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ReportingObserver)\n */\ninterface ReportingObserver {\n /**\n * The **`disconnect()`** method of the previously started observing from collecting reports.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ReportingObserver/disconnect)\n */\n disconnect(): void;\n /**\n * The **`observe()`** method of the collecting reports in its report queue.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ReportingObserver/observe)\n */\n observe(): void;\n /**\n * The **`takeRecords()`** method of the in the observer\'s report queue, and empties the queue.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ReportingObserver/takeRecords)\n */\n takeRecords(): ReportList;\n}\n\ndeclare var ReportingObserver: {\n prototype: ReportingObserver;\n new(callback: ReportingObserverCallback, options?: ReportingObserverOptions): ReportingObserver;\n};\n\n/**\n * The **`Request`** interface of the Fetch API represents a resource request.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Request)\n */\ninterface Request extends Body {\n /**\n * The **`cache`** read-only property of the Request interface contains the cache mode of the request.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Request/cache)\n */\n readonly cache: RequestCache;\n /**\n * The **`credentials`** read-only property of the Request interface reflects the value given to the Request.Request() constructor in the `credentials` option.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Request/credentials)\n */\n readonly credentials: RequestCredentials;\n /**\n * The **`destination`** read-only property of the **Request** interface returns a string describing the type of content being requested.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Request/destination)\n */\n readonly destination: RequestDestination;\n /**\n * The **`headers`** read-only property of the with the request.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Request/headers)\n */\n readonly headers: Headers;\n /**\n * The **`integrity`** read-only property of the Request interface contains the subresource integrity value of the request.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Request/integrity)\n */\n readonly integrity: string;\n /**\n * The **`keepalive`** read-only property of the Request interface contains the request\'s `keepalive` setting (`true` or `false`), which indicates whether the browser will keep the associated request alive if the page that initiated it is unloaded before the request is complete.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Request/keepalive)\n */\n readonly keepalive: boolean;\n /**\n * The **`method`** read-only property of the `POST`, etc.) A String indicating the method of the request.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Request/method)\n */\n readonly method: string;\n /**\n * The **`mode`** read-only property of the Request interface contains the mode of the request (e.g., `cors`, `no-cors`, `same-origin`, or `navigate`.) This is used to determine if cross-origin requests lead to valid responses, and which properties of the response are readable.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Request/mode)\n */\n readonly mode: RequestMode;\n /**\n * The **`redirect`** read-only property of the Request interface contains the mode for how redirects are handled.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Request/redirect)\n */\n readonly redirect: RequestRedirect;\n /**\n * The **`referrer`** read-only property of the Request.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Request/referrer)\n */\n readonly referrer: string;\n /**\n * The **`referrerPolicy`** read-only property of the referrer information, sent in the Referer header, should be included with the request.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Request/referrerPolicy)\n */\n readonly referrerPolicy: ReferrerPolicy;\n /**\n * The read-only **`signal`** property of the Request interface returns the AbortSignal associated with the request.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Request/signal)\n */\n readonly signal: AbortSignal;\n /**\n * The **`url`** read-only property of the Request interface contains the URL of the request.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Request/url)\n */\n readonly url: string;\n /**\n * The **`clone()`** method of the Request interface creates a copy of the current `Request` object.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Request/clone)\n */\n clone(): Request;\n}\n\ndeclare var Request: {\n prototype: Request;\n new(input: RequestInfo | URL, init?: RequestInit): Request;\n};\n\n/**\n * The **`ResizeObserver`** interface reports changes to the dimensions of an Element\'s content or border box, or the bounding box of an SVGElement.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ResizeObserver)\n */\ninterface ResizeObserver {\n /**\n * The **`disconnect()`** method of the or SVGElement targets.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ResizeObserver/disconnect)\n */\n disconnect(): void;\n /**\n * The **`observe()`** method of the ```js-nolint observe(target) observe(target, options) ``` - `target` - : A reference to an Element or SVGElement to be observed.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ResizeObserver/observe)\n */\n observe(target: Element, options?: ResizeObserverOptions): void;\n /**\n * The **`unobserve()`** method of the ```js-nolint unobserve(target) ``` - `target` - : A reference to an Element or SVGElement to be unobserved.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ResizeObserver/unobserve)\n */\n unobserve(target: Element): void;\n}\n\ndeclare var ResizeObserver: {\n prototype: ResizeObserver;\n new(callback: ResizeObserverCallback): ResizeObserver;\n};\n\n/**\n * The **`ResizeObserverEntry`** interface represents the object passed to the ResizeObserver.ResizeObserver constructor\'s callback function, which allows you to access the new dimensions of the Element or SVGElement being observed.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ResizeObserverEntry)\n */\ninterface ResizeObserverEntry {\n /**\n * The **`borderBoxSize`** read-only property of the ResizeObserverEntry interface returns an array containing the new border box size of the observed element when the callback is run.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ResizeObserverEntry/borderBoxSize)\n */\n readonly borderBoxSize: ReadonlyArray<ResizeObserverSize>;\n /**\n * The **`contentBoxSize`** read-only property of the ResizeObserverEntry interface returns an array containing the new content box size of the observed element when the callback is run.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ResizeObserverEntry/contentBoxSize)\n */\n readonly contentBoxSize: ReadonlyArray<ResizeObserverSize>;\n /**\n * The `contentRect` read-only property of the object containing the new size of the observed element when the callback is run.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ResizeObserverEntry/contentRect)\n */\n readonly contentRect: DOMRectReadOnly;\n /**\n * The **`devicePixelContentBoxSize`** read-only property of the ResizeObserverEntry interface returns an array containing the size in device pixels of the observed element when the callback is run.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ResizeObserverEntry/devicePixelContentBoxSize)\n */\n readonly devicePixelContentBoxSize: ReadonlyArray<ResizeObserverSize>;\n /**\n * The **`target`** read-only property of the An Element or SVGElement representing the element being observed.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ResizeObserverEntry/target)\n */\n readonly target: Element;\n}\n\ndeclare var ResizeObserverEntry: {\n prototype: ResizeObserverEntry;\n new(): ResizeObserverEntry;\n};\n\n/**\n * The **`ResizeObserverSize`** interface of the Resize Observer API is used by the ResizeObserverEntry interface to access the box sizing properties of the element being observed.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ResizeObserverSize)\n */\ninterface ResizeObserverSize {\n /**\n * The **`blockSize`** read-only property of the ResizeObserverSize interface returns the length of the observed element\'s border box in the block dimension.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ResizeObserverSize/blockSize)\n */\n readonly blockSize: number;\n /**\n * The **`inlineSize`** read-only property of the ResizeObserverSize interface returns the length of the observed element\'s border box in the inline dimension.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ResizeObserverSize/inlineSize)\n */\n readonly inlineSize: number;\n}\n\ndeclare var ResizeObserverSize: {\n prototype: ResizeObserverSize;\n new(): ResizeObserverSize;\n};\n\n/**\n * The **`Response`** interface of the Fetch API represents the response to a request.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Response)\n */\ninterface Response extends Body {\n /**\n * The **`headers`** read-only property of the with the response.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Response/headers)\n */\n readonly headers: Headers;\n /**\n * The **`ok`** read-only property of the Response interface contains a Boolean stating whether the response was successful (status in the range 200-299) or not.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Response/ok)\n */\n readonly ok: boolean;\n /**\n * The **`redirected`** read-only property of the Response interface indicates whether or not the response is the result of a request you made which was redirected.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Response/redirected)\n */\n readonly redirected: boolean;\n /**\n * The **`status`** read-only property of the Response interface contains the HTTP status codes of the response.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Response/status)\n */\n readonly status: number;\n /**\n * The **`statusText`** read-only property of the Response interface contains the status message corresponding to the HTTP status code in Response.status.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Response/statusText)\n */\n readonly statusText: string;\n /**\n * The **`type`** read-only property of the Response interface contains the type of the response.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Response/type)\n */\n readonly type: ResponseType;\n /**\n * The **`url`** read-only property of the Response interface contains the URL of the response.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Response/url)\n */\n readonly url: string;\n /**\n * The **`clone()`** method of the Response interface creates a clone of a response object, identical in every way, but stored in a different variable.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Response/clone)\n */\n clone(): Response;\n}\n\ndeclare var Response: {\n prototype: Response;\n new(body?: BodyInit | null, init?: ResponseInit): Response;\n /**\n * The **`error()`** static method of the Response interface returns a new `Response` object associated with a network error.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Response/error_static)\n */\n error(): Response;\n /**\n * The **`json()`** static method of the Response interface returns a `Response` that contains the provided JSON data as body, and a Content-Type header which is set to `application/json`.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Response/json_static)\n */\n json(data: any, init?: ResponseInit): Response;\n /**\n * The **`redirect()`** static method of the Response interface returns a `Response` resulting in a redirect to the specified URL.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Response/redirect_static)\n */\n redirect(url: string | URL, status?: number): Response;\n};\n\n/**\n * The **`SVGAElement`** interface provides access to the properties of an a element, as well as methods to manipulate them.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGAElement)\n */\ninterface SVGAElement extends SVGGraphicsElement, SVGURIReference {\n rel: string;\n get relList(): DOMTokenList;\n set relList(value: string);\n /**\n * The **`SVGAElement.target`** read-only property of SVGAElement returns an SVGAnimatedString object that specifies the portion of a target window, frame, pane into which a document is to be opened when a link is activated.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGAElement/target)\n */\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/**\n * The `SVGAngle` interface is used to represent a value that can be an <angle> or <number> value.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGAngle)\n */\ninterface SVGAngle {\n /**\n * The **`unitType`** property of the SVGAngle interface is one of the unit type constants and represents the units in which this angle\'s value is expressed.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGAngle/unitType)\n */\n readonly unitType: number;\n /**\n * The `value` property of the SVGAngle interface represents the floating point value of the `<angle>` in degrees.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGAngle/value)\n */\n value: number;\n /**\n * The `valueAsString` property of the SVGAngle interface represents the angle\'s value as a string, in the units expressed by SVGAngle.unitType.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGAngle/valueAsString)\n */\n valueAsString: string;\n /**\n * The `valueInSpecifiedUnits` property of the SVGAngle interface represents the value of this angle as a number, in the units expressed by the angle\'s SVGAngle.unitType.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGAngle/valueInSpecifiedUnits)\n */\n valueInSpecifiedUnits: number;\n /**\n * The `convertToSpecifiedUnits()` method of the SVGAngle interface allows you to convert the angle\'s value to the specified unit type.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGAngle/convertToSpecifiedUnits)\n */\n convertToSpecifiedUnits(unitType: number): void;\n /**\n * The `newValueSpecifiedUnits()` method of the SVGAngle interface sets the value to a number with an associated SVGAngle.unitType, thereby replacing the values for all of the attributes on the object.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGAngle/newValueSpecifiedUnits)\n */\n newValueSpecifiedUnits(unitType: number, valueInSpecifiedUnits: number): void;\n readonly SVG_ANGLETYPE_UNKNOWN: 0;\n readonly SVG_ANGLETYPE_UNSPECIFIED: 1;\n readonly SVG_ANGLETYPE_DEG: 2;\n readonly SVG_ANGLETYPE_RAD: 3;\n readonly SVG_ANGLETYPE_GRAD: 4;\n}\n\ndeclare var SVGAngle: {\n prototype: SVGAngle;\n new(): SVGAngle;\n readonly SVG_ANGLETYPE_UNKNOWN: 0;\n readonly SVG_ANGLETYPE_UNSPECIFIED: 1;\n readonly SVG_ANGLETYPE_DEG: 2;\n readonly SVG_ANGLETYPE_RAD: 3;\n readonly SVG_ANGLETYPE_GRAD: 4;\n};\n\n/**\n * The **`SVGAnimateElement`** interface corresponds to the animate element.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGAnimateElement)\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\n/**\n * The **`SVGAnimateMotionElement`** interface corresponds to the animateMotion element.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGAnimateMotionElement)\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\n/**\n * The `SVGAnimateTransformElement` interface corresponds to the animateTransform element.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGAnimateTransformElement)\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/**\n * The **`SVGAnimatedAngle`** interface is used for attributes of basic type \\<angle> which can be animated.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGAnimatedAngle)\n */\ninterface SVGAnimatedAngle {\n /**\n * The **`animVal`** read-only property of the SVGAnimatedAngle interface represents the current animated value of the associated `<angle>` on an SVG element.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGAnimatedAngle/animVal)\n */\n readonly animVal: SVGAngle;\n /**\n * The **`baseVal`** read-only property of the SVGAnimatedAngle interface represents the base (non-animated) value of the associated `<angle>` on an SVG element.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGAnimatedAngle/baseVal)\n */\n readonly baseVal: SVGAngle;\n}\n\ndeclare var SVGAnimatedAngle: {\n prototype: SVGAnimatedAngle;\n new(): SVGAnimatedAngle;\n};\n\n/**\n * The **`SVGAnimatedBoolean`** interface is used for attributes of type boolean which can be animated.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGAnimatedBoolean)\n */\ninterface SVGAnimatedBoolean {\n /**\n * The **`animVal`** read-only property of the SVGAnimatedBoolean interface represents the current animated value of the associated animatable boolean SVG attribute.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGAnimatedBoolean/animVal)\n */\n readonly animVal: boolean;\n /**\n * The **`baseVal`** property of the SVGAnimatedBoolean interface is the value of the associated animatable boolean SVG attribute in its base (none-animated) state.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGAnimatedBoolean/baseVal)\n */\n baseVal: boolean;\n}\n\ndeclare var SVGAnimatedBoolean: {\n prototype: SVGAnimatedBoolean;\n new(): SVGAnimatedBoolean;\n};\n\n/**\n * The **`SVGAnimatedEnumeration`** interface describes attribute values which are constants from a particular enumeration and which can be animated.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGAnimatedEnumeration)\n */\ninterface SVGAnimatedEnumeration {\n /**\n * The **`animVal`** property of the SVGAnimatedEnumeration interface contains the current value of an SVG enumeration.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGAnimatedEnumeration/animVal)\n */\n readonly animVal: number;\n /**\n * The **`baseVal`** property of the SVGAnimatedEnumeration interface contains the initial value of an SVG enumeration.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGAnimatedEnumeration/baseVal)\n */\n baseVal: number;\n}\n\ndeclare var SVGAnimatedEnumeration: {\n prototype: SVGAnimatedEnumeration;\n new(): SVGAnimatedEnumeration;\n};\n\n/**\n * The **`SVGAnimatedInteger`** interface is used for attributes of basic type \\<integer> which can be animated.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGAnimatedInteger)\n */\ninterface SVGAnimatedInteger {\n /**\n * The **`animVal`** property of the SVGAnimatedInteger interface represents the animated value of an `<integer>`.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGAnimatedInteger/animVal)\n */\n readonly animVal: number;\n /**\n * The **`baseVal`** property of the SVGAnimatedInteger interface represents the base (non-animated) value of an animatable `<integer>`.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGAnimatedInteger/baseVal)\n */\n baseVal: number;\n}\n\ndeclare var SVGAnimatedInteger: {\n prototype: SVGAnimatedInteger;\n new(): SVGAnimatedInteger;\n};\n\n/**\n * The **`SVGAnimatedLength`** interface represents attributes of type \\<length> which can be animated.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGAnimatedLength)\n */\ninterface SVGAnimatedLength {\n /**\n * The **`animVal`** property of the SVGAnimatedLength interface contains the current value of an SVG enumeration.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGAnimatedLength/animVal)\n */\n readonly animVal: SVGLength;\n /**\n * The **`baseVal`** property of the SVGAnimatedLength interface contains the initial value of an SVG enumeration.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGAnimatedLength/baseVal)\n */\n readonly baseVal: SVGLength;\n}\n\ndeclare var SVGAnimatedLength: {\n prototype: SVGAnimatedLength;\n new(): SVGAnimatedLength;\n};\n\n/**\n * The **`SVGAnimatedLengthList`** interface is used for attributes of type SVGLengthList which can be animated.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGAnimatedLengthList)\n */\ninterface SVGAnimatedLengthList {\n /**\n * The **`animVal`** read-only property of the SVGAnimatedLengthList interface represents the animated value of an attribute that accepts a list of `<length>`, `<percentage>`, or `<number>` values.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGAnimatedLengthList/animVal)\n */\n readonly animVal: SVGLengthList;\n /**\n * The **`baseVal`** read-only property of the SVGAnimatedLengthList interface represents the base (non-animated) value of an animatable attribute that accepts a list of `<length>`, `<percentage>`, or `<number>` values.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGAnimatedLengthList/baseVal)\n */\n readonly baseVal: SVGLengthList;\n}\n\ndeclare var SVGAnimatedLengthList: {\n prototype: SVGAnimatedLengthList;\n new(): SVGAnimatedLengthList;\n};\n\n/**\n * The **`SVGAnimatedNumber`** interface represents attributes of type \\<number> which can be animated.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGAnimatedNumber)\n */\ninterface SVGAnimatedNumber {\n /**\n * The **`animVal`** read-only property of the SVGAnimatedNumber interface represents the animated value of an SVG element\'s numeric attribute.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGAnimatedNumber/animVal)\n */\n readonly animVal: number;\n /**\n * The **`baseVal`** property of the SVGAnimatedNumber interface represents the base (non-animated) value of an animatable numeric attribute.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGAnimatedNumber/baseVal)\n */\n baseVal: number;\n}\n\ndeclare var SVGAnimatedNumber: {\n prototype: SVGAnimatedNumber;\n new(): SVGAnimatedNumber;\n};\n\n/**\n * The **`SVGAnimatedNumberList`** interface represents a list of attributes of type \\<number> which can be animated.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGAnimatedNumberList)\n */\ninterface SVGAnimatedNumberList {\n /**\n * The **`animVal`** read-only property of the SVGAnimatedNumberList interface represents the current animated value of an animatable attribute that accepts a list of `<number>` values.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGAnimatedNumberList/animVal)\n */\n readonly animVal: SVGNumberList;\n /**\n * The **`baseVal`** read-only property of the SVGAnimatedNumberList interface represents the base (non-animated) value of an animatable attribute that accepts a list of `<number>` values.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGAnimatedNumberList/baseVal)\n */\n readonly baseVal: SVGNumberList;\n}\n\ndeclare var SVGAnimatedNumberList: {\n prototype: SVGAnimatedNumberList;\n new(): SVGAnimatedNumberList;\n};\n\ninterface SVGAnimatedPoints {\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGPolygonElement/animatedPoints) */\n readonly animatedPoints: SVGPointList;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGPolygonElement/points) */\n readonly points: SVGPointList;\n}\n\n/**\n * The **`SVGAnimatedPreserveAspectRatio`** interface represents attributes of type SVGPreserveAspectRatio which can be animated.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGAnimatedPreserveAspectRatio)\n */\ninterface SVGAnimatedPreserveAspectRatio {\n /**\n * The **`animVal`** read-only property of the SVGAnimatedPreserveAspectRatio interface represents the value of the preserveAspectRatio attribute of an SVG element after any animations or transformations are applied.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGAnimatedPreserveAspectRatio/animVal)\n */\n readonly animVal: SVGPreserveAspectRatio;\n /**\n * The **`baseVal`** read-only property of the SVGAnimatedPreserveAspectRatio interface represents the base (non-animated) value of the preserveAspectRatio attribute of an SVG element.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGAnimatedPreserveAspectRatio/baseVal)\n */\n readonly baseVal: SVGPreserveAspectRatio;\n}\n\ndeclare var SVGAnimatedPreserveAspectRatio: {\n prototype: SVGAnimatedPreserveAspectRatio;\n new(): SVGAnimatedPreserveAspectRatio;\n};\n\n/**\n * The **`SVGAnimatedRect`** interface represents an SVGRect attribute that can be animated.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGAnimatedRect)\n */\ninterface SVGAnimatedRect {\n /**\n * The **`animVal`** read-only property of the SVGAnimatedRect interface represents the current animated value of the `viewBox` attribute of an SVG element as a read-only DOMRectReadOnly object.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGAnimatedRect/animVal)\n */\n readonly animVal: DOMRectReadOnly;\n /**\n * The **`baseVal`** read-only property of the SVGAnimatedRect interface represents the current non-animated value of the `viewBox` attribute of an SVG element.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGAnimatedRect/baseVal)\n */\n readonly baseVal: DOMRect;\n}\n\ndeclare var SVGAnimatedRect: {\n prototype: SVGAnimatedRect;\n new(): SVGAnimatedRect;\n};\n\n/**\n * The **`SVGAnimatedString`** interface represents string attributes which can be animated from each SVG declaration.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGAnimatedString)\n */\ninterface SVGAnimatedString {\n /**\n * The `animVal` read-only property of the SVGAnimatedString interface contains the same value as the SVGAnimatedString.baseVal property.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGAnimatedString/animVal)\n */\n readonly animVal: string;\n /**\n * BaseVal gets or sets the base value of the given attribute before any animations are applied.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGAnimatedString/baseVal)\n */\n baseVal: string;\n}\n\ndeclare var SVGAnimatedString: {\n prototype: SVGAnimatedString;\n new(): SVGAnimatedString;\n};\n\n/**\n * The **`SVGAnimatedTransformList`** interface represents attributes which take a list of numbers and which can be animated.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGAnimatedTransformList)\n */\ninterface SVGAnimatedTransformList {\n /**\n * The **`animVal`** read-only property of the SVGAnimatedTransformList interface represents the animated value of the `transform` attribute of an SVG element.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGAnimatedTransformList/animVal)\n */\n readonly animVal: SVGTransformList;\n /**\n * The **`baseVal`** read-only property of the SVGAnimatedTransformList interface represents the non-animated value of the `transform` attribute of an SVG element.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGAnimatedTransformList/baseVal)\n */\n readonly baseVal: SVGTransformList;\n}\n\ndeclare var SVGAnimatedTransformList: {\n prototype: SVGAnimatedTransformList;\n new(): SVGAnimatedTransformList;\n};\n\n/**\n * The **`SVGAnimationElement`** interface is the base interface for all of the animation element interfaces: SVGAnimateElement, SVGSetElement, SVGAnimateColorElement, SVGAnimateMotionElement and SVGAnimateTransformElement.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGAnimationElement)\n */\ninterface SVGAnimationElement extends SVGElement, SVGTests {\n /**\n * The **`targetElement`** read-only property of the SVGAnimationElement interface refers to the element which is being animated.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGAnimationElement/targetElement)\n */\n readonly targetElement: SVGElement | null;\n /**\n * The SVGAnimationElement method `beginElement()` creates a begin instance time for the current time.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGAnimationElement/beginElement)\n */\n beginElement(): void;\n /**\n * The SVGAnimationElement method `beginElementAt()` creates a begin instance time for the current time plus the specified offset.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGAnimationElement/beginElementAt)\n */\n beginElementAt(offset: number): void;\n /**\n * The SVGAnimationElement method `endElement()` creates an end instance time for the current time.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGAnimationElement/endElement)\n */\n endElement(): void;\n /**\n * The SVGAnimationElement method `endElementAt()` creates an end instance time for the current time plus the specified offset.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGAnimationElement/endElementAt)\n */\n endElementAt(offset: number): void;\n /**\n * The SVGAnimationElement method `getCurrentTime()` returns a float representing the current time in seconds relative to time zero for the given time container.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGAnimationElement/getCurrentTime)\n */\n getCurrentTime(): number;\n /**\n * The SVGAnimationElement method `getSimpleDuration()` returns a float representing the number of seconds for the simple duration for this animation.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGAnimationElement/getSimpleDuration)\n */\n getSimpleDuration(): number;\n /**\n * The SVGAnimationElement method `getStartTime()` returns a float representing the start time, in seconds, for this animation element\'s current interval, if it exists, regardless of whether the interval has begun yet.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGAnimationElement/getStartTime)\n */\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/**\n * The **`SVGCircleElement`** interface is an interface for the circle element.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGCircleElement)\n */\ninterface SVGCircleElement extends SVGGeometryElement {\n /**\n * The **`cx`** read-only property of the SVGCircleElement interface reflects the cx attribute of a circle element and by that defines the x-coordinate of the circle\'s center.< If unspecified, the effect is as if the value is set to `0`.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGCircleElement/cx)\n */\n readonly cx: SVGAnimatedLength;\n /**\n * The **`cy`** read-only property of the SVGCircleElement interface reflects the cy attribute of a circle element and by that defines the y-coordinate of the circle\'s center.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGCircleElement/cy)\n */\n readonly cy: SVGAnimatedLength;\n /**\n * The **`r`** read-only property of the SVGCircleElement interface reflects the r attribute of a circle element and by that defines the radius of the circle.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGCircleElement/r)\n */\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/**\n * The **`SVGClipPathElement`** interface provides access to the properties of clipPath elements, as well as methods to manipulate them.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGClipPathElement)\n */\ninterface SVGClipPathElement extends SVGElement {\n /**\n * The read-only **`clipPathUnits`** property of the SVGClipPathElement interface reflects the clipPathUnits attribute of a clipPath element which defines the coordinate system to use for the content of the element.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGClipPathElement/clipPathUnits)\n */\n readonly clipPathUnits: SVGAnimatedEnumeration;\n /**\n * The read-only **`transform`** property of the SVGClipPathElement interface reflects the transform attribute of a clipPath element, that is a list of transformations applied to the element.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGClipPathElement/transform)\n */\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/**\n * The **`SVGComponentTransferFunctionElement`** interface represents a base interface used by the component transfer function interfaces.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGComponentTransferFunctionElement)\n */\ninterface SVGComponentTransferFunctionElement extends SVGElement {\n /**\n * The **`amplitude`** read-only property of the SVGComponentTransferFunctionElement interface reflects the amplitude attribute of the given element.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGComponentTransferFunctionElement/amplitude)\n */\n readonly amplitude: SVGAnimatedNumber;\n /**\n * The **`exponent`** read-only property of the SVGComponentTransferFunctionElement interface reflects the exponent attribute of the given element.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGComponentTransferFunctionElement/exponent)\n */\n readonly exponent: SVGAnimatedNumber;\n /**\n * The **`intercept`** read-only property of the SVGComponentTransferFunctionElement interface reflects the intercept attribute of the given element.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGComponentTransferFunctionElement/intercept)\n */\n readonly intercept: SVGAnimatedNumber;\n /**\n * The **`offset`** read-only property of the SVGComponentTransferFunctionElement interface reflects the offset attribute of the given element.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGComponentTransferFunctionElement/offset)\n */\n readonly offset: SVGAnimatedNumber;\n /**\n * The **`slope`** read-only property of the SVGComponentTransferFunctionElement interface reflects the slope attribute of the given element.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGComponentTransferFunctionElement/slope)\n */\n readonly slope: SVGAnimatedNumber;\n /**\n * The **`tableValues`** read-only property of the SVGComponentTransferFunctionElement interface reflects the tableValues attribute of the given element.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGComponentTransferFunctionElement/tableValues)\n */\n readonly tableValues: SVGAnimatedNumberList;\n /**\n * The **`type`** read-only property of the SVGComponentTransferFunctionElement interface reflects the type attribute of the given element.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGComponentTransferFunctionElement/type)\n */\n readonly type: SVGAnimatedEnumeration;\n readonly SVG_FECOMPONENTTRANSFER_TYPE_UNKNOWN: 0;\n readonly SVG_FECOMPONENTTRANSFER_TYPE_IDENTITY: 1;\n readonly SVG_FECOMPONENTTRANSFER_TYPE_TABLE: 2;\n readonly SVG_FECOMPONENTTRANSFER_TYPE_DISCRETE: 3;\n readonly SVG_FECOMPONENTTRANSFER_TYPE_LINEAR: 4;\n readonly SVG_FECOMPONENTTRANSFER_TYPE_GAMMA: 5;\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_UNKNOWN: 0;\n readonly SVG_FECOMPONENTTRANSFER_TYPE_IDENTITY: 1;\n readonly SVG_FECOMPONENTTRANSFER_TYPE_TABLE: 2;\n readonly SVG_FECOMPONENTTRANSFER_TYPE_DISCRETE: 3;\n readonly SVG_FECOMPONENTTRANSFER_TYPE_LINEAR: 4;\n readonly SVG_FECOMPONENTTRANSFER_TYPE_GAMMA: 5;\n};\n\n/**\n * The **`SVGDefsElement`** interface corresponds to the defs element.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGDefsElement)\n */\ninterface SVGDefsElement extends SVGGraphicsElement {\n addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGDefsElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n removeEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGDefsElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\ndeclare var SVGDefsElement: {\n prototype: SVGDefsElement;\n new(): SVGDefsElement;\n};\n\n/**\n * The **`SVGDescElement`** interface corresponds to the desc element.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGDescElement)\n */\ninterface SVGDescElement extends SVGElement {\n addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGDescElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n removeEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGDescElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\ndeclare var SVGDescElement: {\n prototype: SVGDescElement;\n new(): SVGDescElement;\n};\n\ninterface SVGElementEventMap extends ElementEventMap, GlobalEventHandlersEventMap {\n}\n\n/**\n * All of the SVG DOM interfaces that correspond directly to elements in the SVG language derive from the `SVGElement` interface.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGElement)\n */\ninterface SVGElement extends Element, ElementCSSInlineStyle, GlobalEventHandlers, HTMLOrSVGElement {\n /** @deprecated */\n readonly className: any;\n /**\n * The **`ownerSVGElement`** property of the SVGElement interface reflects the nearest ancestor svg element.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGElement/ownerSVGElement)\n */\n readonly ownerSVGElement: SVGSVGElement | null;\n /**\n * The **`viewportElement`** property of the SVGElement interface represents the `SVGElement` which established the current viewport.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGElement/viewportElement)\n */\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\n/**\n * The **`SVGEllipseElement`** interface provides access to the properties of ellipse elements.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGEllipseElement)\n */\ninterface SVGEllipseElement extends SVGGeometryElement {\n /**\n * The **`cx`** read-only property of the SVGEllipseElement interface describes the x-axis coordinate of the center of the ellipse as an SVGAnimatedLength.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGEllipseElement/cx)\n */\n readonly cx: SVGAnimatedLength;\n /**\n * The **`cy`** read-only property of the SVGEllipseElement interface describes the y-axis coordinate of the center of the ellipse as an SVGAnimatedLength.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGEllipseElement/cy)\n */\n readonly cy: SVGAnimatedLength;\n /**\n * The **`rx`** read-only property of the SVGEllipseElement interface describes the x-axis radius of the ellipse as an SVGAnimatedLength.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGEllipseElement/rx)\n */\n readonly rx: SVGAnimatedLength;\n /**\n * The **`ry`** read-only property of the SVGEllipseElement interface describes the y-axis radius of the ellipse as an SVGAnimatedLength.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGEllipseElement/ry)\n */\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/**\n * The **`SVGFEBlendElement`** interface corresponds to the feBlend element.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGFEBlendElement)\n */\ninterface SVGFEBlendElement extends SVGElement, SVGFilterPrimitiveStandardAttributes {\n /**\n * The **`in1`** read-only property of the SVGFEBlendElement interface reflects the in attribute of the given element.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGFEBlendElement/in1)\n */\n readonly in1: SVGAnimatedString;\n /**\n * The **`in2`** read-only property of the SVGFEBlendElement interface reflects the in2 attribute of the given element.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGFEBlendElement/in2)\n */\n readonly in2: SVGAnimatedString;\n /**\n * The **`mode`** read-only property of the SVGFEBlendElement interface reflects the mode attribute of the given element.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGFEBlendElement/mode)\n */\n readonly mode: SVGAnimatedEnumeration;\n readonly SVG_FEBLEND_MODE_UNKNOWN: 0;\n readonly SVG_FEBLEND_MODE_NORMAL: 1;\n readonly SVG_FEBLEND_MODE_MULTIPLY: 2;\n readonly SVG_FEBLEND_MODE_SCREEN: 3;\n readonly SVG_FEBLEND_MODE_DARKEN: 4;\n readonly SVG_FEBLEND_MODE_LIGHTEN: 5;\n readonly SVG_FEBLEND_MODE_OVERLAY: 6;\n readonly SVG_FEBLEND_MODE_COLOR_DODGE: 7;\n readonly SVG_FEBLEND_MODE_COLOR_BURN: 8;\n readonly SVG_FEBLEND_MODE_HARD_LIGHT: 9;\n readonly SVG_FEBLEND_MODE_SOFT_LIGHT: 10;\n readonly SVG_FEBLEND_MODE_DIFFERENCE: 11;\n readonly SVG_FEBLEND_MODE_EXCLUSION: 12;\n readonly SVG_FEBLEND_MODE_HUE: 13;\n readonly SVG_FEBLEND_MODE_SATURATION: 14;\n readonly SVG_FEBLEND_MODE_COLOR: 15;\n readonly SVG_FEBLEND_MODE_LUMINOSITY: 16;\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_UNKNOWN: 0;\n readonly SVG_FEBLEND_MODE_NORMAL: 1;\n readonly SVG_FEBLEND_MODE_MULTIPLY: 2;\n readonly SVG_FEBLEND_MODE_SCREEN: 3;\n readonly SVG_FEBLEND_MODE_DARKEN: 4;\n readonly SVG_FEBLEND_MODE_LIGHTEN: 5;\n readonly SVG_FEBLEND_MODE_OVERLAY: 6;\n readonly SVG_FEBLEND_MODE_COLOR_DODGE: 7;\n readonly SVG_FEBLEND_MODE_COLOR_BURN: 8;\n readonly SVG_FEBLEND_MODE_HARD_LIGHT: 9;\n readonly SVG_FEBLEND_MODE_SOFT_LIGHT: 10;\n readonly SVG_FEBLEND_MODE_DIFFERENCE: 11;\n readonly SVG_FEBLEND_MODE_EXCLUSION: 12;\n readonly SVG_FEBLEND_MODE_HUE: 13;\n readonly SVG_FEBLEND_MODE_SATURATION: 14;\n readonly SVG_FEBLEND_MODE_COLOR: 15;\n readonly SVG_FEBLEND_MODE_LUMINOSITY: 16;\n};\n\n/**\n * The **`SVGFEColorMatrixElement`** interface corresponds to the feColorMatrix element.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGFEColorMatrixElement)\n */\ninterface SVGFEColorMatrixElement extends SVGElement, SVGFilterPrimitiveStandardAttributes {\n /**\n * The **`in1`** read-only property of the SVGFEColorMatrixElement interface reflects the in attribute of the given element.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGFEColorMatrixElement/in1)\n */\n readonly in1: SVGAnimatedString;\n /**\n * The **`type`** read-only property of the SVGFEColorMatrixElement interface reflects the type attribute of the given element.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGFEColorMatrixElement/type)\n */\n readonly type: SVGAnimatedEnumeration;\n /**\n * The **`values`** read-only property of the SVGFEColorMatrixElement interface reflects the values attribute of the given element.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGFEColorMatrixElement/values)\n */\n readonly values: SVGAnimatedNumberList;\n readonly SVG_FECOLORMATRIX_TYPE_UNKNOWN: 0;\n readonly SVG_FECOLORMATRIX_TYPE_MATRIX: 1;\n readonly SVG_FECOLORMATRIX_TYPE_SATURATE: 2;\n readonly SVG_FECOLORMATRIX_TYPE_HUEROTATE: 3;\n readonly SVG_FECOLORMATRIX_TYPE_LUMINANCETOALPHA: 4;\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_UNKNOWN: 0;\n readonly SVG_FECOLORMATRIX_TYPE_MATRIX: 1;\n readonly SVG_FECOLORMATRIX_TYPE_SATURATE: 2;\n readonly SVG_FECOLORMATRIX_TYPE_HUEROTATE: 3;\n readonly SVG_FECOLORMATRIX_TYPE_LUMINANCETOALPHA: 4;\n};\n\n/**\n * The **`SVGFEComponentTransferElement`** interface corresponds to the feComponentTransfer element.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGFEComponentTransferElement)\n */\ninterface SVGFEComponentTransferElement extends SVGElement, SVGFilterPrimitiveStandardAttributes {\n /**\n * The **`in1`** read-only property of the SVGFEComponentTransferElement interface reflects the in attribute of the given feComponentTransfer element.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGFEComponentTransferElement/in1)\n */\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/**\n * The **`SVGFECompositeElement`** interface corresponds to the feComposite element.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGFECompositeElement)\n */\ninterface SVGFECompositeElement extends SVGElement, SVGFilterPrimitiveStandardAttributes {\n /**\n * The **`in1`** read-only property of the SVGFECompositeElement interface reflects the in attribute of the given feComposite element.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGFECompositeElement/in1)\n */\n readonly in1: SVGAnimatedString;\n /**\n * The **`in2`** read-only property of the SVGFECompositeElement interface reflects the in2 attribute of the given feComposite element.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGFECompositeElement/in2)\n */\n readonly in2: SVGAnimatedString;\n /**\n * The **`k1`** read-only property of the SVGFECompositeElement interface reflects the k1 attribute of the given feComposite element.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGFECompositeElement/k1)\n */\n readonly k1: SVGAnimatedNumber;\n /**\n * The **`k2`** read-only property of the SVGFECompositeElement interface reflects the k2 attribute of the given feComposite element.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGFECompositeElement/k2)\n */\n readonly k2: SVGAnimatedNumber;\n /**\n * The **`k3`** read-only property of the SVGFECompositeElement interface reflects the k3 attribute of the given feComposite element.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGFECompositeElement/k3)\n */\n readonly k3: SVGAnimatedNumber;\n /**\n * The **`k4`** read-only property of the SVGFECompositeElement interface reflects the k4 attribute of the given feComposite element.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGFECompositeElement/k4)\n */\n readonly k4: SVGAnimatedNumber;\n /**\n * The **`operator`** read-only property of the SVGFECompositeElement interface reflects the operator attribute of the given feComposite element.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGFECompositeElement/operator)\n */\n readonly operator: SVGAnimatedEnumeration;\n readonly SVG_FECOMPOSITE_OPERATOR_UNKNOWN: 0;\n readonly SVG_FECOMPOSITE_OPERATOR_OVER: 1;\n readonly SVG_FECOMPOSITE_OPERATOR_IN: 2;\n readonly SVG_FECOMPOSITE_OPERATOR_OUT: 3;\n readonly SVG_FECOMPOSITE_OPERATOR_ATOP: 4;\n readonly SVG_FECOMPOSITE_OPERATOR_XOR: 5;\n readonly SVG_FECOMPOSITE_OPERATOR_ARITHMETIC: 6;\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_UNKNOWN: 0;\n readonly SVG_FECOMPOSITE_OPERATOR_OVER: 1;\n readonly SVG_FECOMPOSITE_OPERATOR_IN: 2;\n readonly SVG_FECOMPOSITE_OPERATOR_OUT: 3;\n readonly SVG_FECOMPOSITE_OPERATOR_ATOP: 4;\n readonly SVG_FECOMPOSITE_OPERATOR_XOR: 5;\n readonly SVG_FECOMPOSITE_OPERATOR_ARITHMETIC: 6;\n};\n\n/**\n * The **`SVGFEConvolveMatrixElement`** interface corresponds to the feConvolveMatrix element.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGFEConvolveMatrixElement)\n */\ninterface SVGFEConvolveMatrixElement extends SVGElement, SVGFilterPrimitiveStandardAttributes {\n /**\n * The **`bias`** read-only property of the SVGFEConvolveMatrixElement interface reflects the bias attribute of the given feConvolveMatrix element.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGFEConvolveMatrixElement/bias)\n */\n readonly bias: SVGAnimatedNumber;\n /**\n * The **`divisor`** read-only property of the SVGFEConvolveMatrixElement interface reflects the divisor attribute of the given feConvolveMatrix element.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGFEConvolveMatrixElement/divisor)\n */\n readonly divisor: SVGAnimatedNumber;\n /**\n * The **`edgeMode`** read-only property of the SVGFEConvolveMatrixElement interface reflects the edgeMode attribute of the given feConvolveMatrix element.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGFEConvolveMatrixElement/edgeMode)\n */\n readonly edgeMode: SVGAnimatedEnumeration;\n /**\n * The **`in1`** read-only property of the SVGFEConvolveMatrixElement interface reflects the in attribute of the given feConvolveMatrix element.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGFEConvolveMatrixElement/in1)\n */\n readonly in1: SVGAnimatedString;\n /**\n * The **`kernelMatrix`** read-only property of the SVGFEConvolveMatrixElement interface reflects the kernelMatrix attribute of the given feConvolveMatrix element.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGFEConvolveMatrixElement/kernelMatrix)\n */\n readonly kernelMatrix: SVGAnimatedNumberList;\n /**\n * The **`kernelUnitLengthX`** read-only property of the SVGFEConvolveMatrixElement interface reflects the kernelUnitLength attribute of the given feConvolveMatrix element.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGFEConvolveMatrixElement/kernelUnitLengthX)\n */\n readonly kernelUnitLengthX: SVGAnimatedNumber;\n /**\n * The **`kernelUnitLengthY`** read-only property of the SVGFEConvolveMatrixElement interface reflects the kernelUnitLength attribute of the given feConvolveMatrix element.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGFEConvolveMatrixElement/kernelUnitLengthY)\n */\n readonly kernelUnitLengthY: SVGAnimatedNumber;\n /**\n * The **`orderX`** read-only property of the SVGFEConvolveMatrixElement interface reflects the order attribute of the given feConvolveMatrix element.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGFEConvolveMatrixElement/orderX)\n */\n readonly orderX: SVGAnimatedInteger;\n /**\n * The **`orderY`** read-only property of the SVGFEConvolveMatrixElement interface reflects the order attribute of the given feConvolveMatrix element.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGFEConvolveMatrixElement/orderY)\n */\n readonly orderY: SVGAnimatedInteger;\n /**\n * The **`preserveAlpha`** read-only property of the SVGFEConvolveMatrixElement interface reflects the preserveAlpha attribute of the given feConvolveMatrix element.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGFEConvolveMatrixElement/preserveAlpha)\n */\n readonly preserveAlpha: SVGAnimatedBoolean;\n /**\n * The **`targetX`** read-only property of the SVGFEConvolveMatrixElement interface reflects the targetX attribute of the given feConvolveMatrix element.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGFEConvolveMatrixElement/targetX)\n */\n readonly targetX: SVGAnimatedInteger;\n /**\n * The **`targetY`** read-only property of the SVGFEConvolveMatrixElement interface reflects the targetY attribute of the given feConvolveMatrix element.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGFEConvolveMatrixElement/targetY)\n */\n readonly targetY: SVGAnimatedInteger;\n readonly SVG_EDGEMODE_UNKNOWN: 0;\n readonly SVG_EDGEMODE_DUPLICATE: 1;\n readonly SVG_EDGEMODE_WRAP: 2;\n readonly SVG_EDGEMODE_NONE: 3;\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_UNKNOWN: 0;\n readonly SVG_EDGEMODE_DUPLICATE: 1;\n readonly SVG_EDGEMODE_WRAP: 2;\n readonly SVG_EDGEMODE_NONE: 3;\n};\n\n/**\n * The **`SVGFEDiffuseLightingElement`** interface corresponds to the feDiffuseLighting element.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGFEDiffuseLightingElement)\n */\ninterface SVGFEDiffuseLightingElement extends SVGElement, SVGFilterPrimitiveStandardAttributes {\n /**\n * The **`diffuseConstant`** read-only property of the SVGFEDiffuseLightingElement interface reflects the diffuseConstant attribute of the given feDiffuseLighting element.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGFEDiffuseLightingElement/diffuseConstant)\n */\n readonly diffuseConstant: SVGAnimatedNumber;\n /**\n * The **`in1`** read-only property of the SVGFEDiffuseLightingElement interface reflects the in attribute of the given feDiffuseLighting element.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGFEDiffuseLightingElement/in1)\n */\n readonly in1: SVGAnimatedString;\n /**\n * The **`kernelUnitLengthX`** read-only property of the SVGFEDiffuseLightingElement interface reflects the X component of the kernelUnitLength attribute of the given feDiffuseLighting element.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGFEDiffuseLightingElement/kernelUnitLengthX)\n */\n readonly kernelUnitLengthX: SVGAnimatedNumber;\n /**\n * The **`kernelUnitLengthY`** read-only property of the SVGFEDiffuseLightingElement interface reflects the Y component of the kernelUnitLength attribute of the given feDiffuseLighting element.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGFEDiffuseLightingElement/kernelUnitLengthY)\n */\n readonly kernelUnitLengthY: SVGAnimatedNumber;\n /**\n * The **`surfaceScale`** read-only property of the SVGFEDiffuseLightingElement interface reflects the surfaceScale attribute of the given feDiffuseLighting element.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGFEDiffuseLightingElement/surfaceScale)\n */\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/**\n * The **`SVGFEDisplacementMapElement`** interface corresponds to the feDisplacementMap element.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGFEDisplacementMapElement)\n */\ninterface SVGFEDisplacementMapElement extends SVGElement, SVGFilterPrimitiveStandardAttributes {\n /**\n * The **`in1`** read-only property of the SVGFEDisplacementMapElement interface reflects the in attribute of the given feDisplacementMap element.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGFEDisplacementMapElement/in1)\n */\n readonly in1: SVGAnimatedString;\n /**\n * The **`in2`** read-only property of the SVGFEDisplacementMapElement interface reflects the in2 attribute of the given feDisplacementMap element.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGFEDisplacementMapElement/in2)\n */\n readonly in2: SVGAnimatedString;\n /**\n * The **`scale`** read-only property of the SVGFEDisplacementMapElement interface reflects the scale attribute of the given feDisplacementMap element.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGFEDisplacementMapElement/scale)\n */\n readonly scale: SVGAnimatedNumber;\n /**\n * The **`xChannelSelector`** read-only property of the SVGFEDisplacementMapElement interface reflects the xChannelSelector attribute of the given feDisplacementMap element.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGFEDisplacementMapElement/xChannelSelector)\n */\n readonly xChannelSelector: SVGAnimatedEnumeration;\n /**\n * The **`yChannelSelector`** read-only property of the SVGFEDisplacementMapElement interface reflects the yChannelSelector attribute of the given feDisplacementMap element.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGFEDisplacementMapElement/yChannelSelector)\n */\n readonly yChannelSelector: SVGAnimatedEnumeration;\n readonly SVG_CHANNEL_UNKNOWN: 0;\n readonly SVG_CHANNEL_R: 1;\n readonly SVG_CHANNEL_G: 2;\n readonly SVG_CHANNEL_B: 3;\n readonly SVG_CHANNEL_A: 4;\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_UNKNOWN: 0;\n readonly SVG_CHANNEL_R: 1;\n readonly SVG_CHANNEL_G: 2;\n readonly SVG_CHANNEL_B: 3;\n readonly SVG_CHANNEL_A: 4;\n};\n\n/**\n * The **`SVGFEDistantLightElement`** interface corresponds to the feDistantLight element.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGFEDistantLightElement)\n */\ninterface SVGFEDistantLightElement extends SVGElement {\n /**\n * The **`azimuth`** read-only property of the SVGFEDistantLightElement interface reflects the azimuth attribute of the given feDistantLight element.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGFEDistantLightElement/azimuth)\n */\n readonly azimuth: SVGAnimatedNumber;\n /**\n * The **`elevation`** read-only property of the SVGFEDistantLightElement interface reflects the elevation attribute of the given feDistantLight element.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGFEDistantLightElement/elevation)\n */\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\n/**\n * The **`SVGFEDropShadowElement`** interface corresponds to the feDropShadow element.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGFEDropShadowElement)\n */\ninterface SVGFEDropShadowElement extends SVGElement, SVGFilterPrimitiveStandardAttributes {\n /**\n * The **`dx`** read-only property of the SVGFEDropShadowElement interface reflects the dx attribute of the given feDropShadow element.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGFEDropShadowElement/dx)\n */\n readonly dx: SVGAnimatedNumber;\n /**\n * The **`dy`** read-only property of the SVGFEDropShadowElement interface reflects the dy attribute of the given feDropShadow element.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGFEDropShadowElement/dy)\n */\n readonly dy: SVGAnimatedNumber;\n /**\n * The **`in1`** read-only property of the SVGFEDropShadowElement interface reflects the in attribute of the given feDropShadow element.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGFEDropShadowElement/in1)\n */\n readonly in1: SVGAnimatedString;\n /**\n * The **`stdDeviationX`** read-only property of the SVGFEDropShadowElement interface reflects the (possibly automatically computed) X component of the stdDeviation attribute of the given feDropShadow element.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGFEDropShadowElement/stdDeviationX)\n */\n readonly stdDeviationX: SVGAnimatedNumber;\n /**\n * The **`stdDeviationY`** read-only property of the SVGFEDropShadowElement interface reflects the (possibly automatically computed) Y component of the stdDeviation attribute of the given feDropShadow element.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGFEDropShadowElement/stdDeviationY)\n */\n readonly stdDeviationY: SVGAnimatedNumber;\n /**\n * The `setStdDeviation()` method of the SVGFEDropShadowElement interface sets the values for the stdDeviation attribute.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGFEDropShadowElement/setStdDeviation)\n */\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/**\n * The **`SVGFEFloodElement`** interface corresponds to the feFlood element.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGFEFloodElement)\n */\ninterface SVGFEFloodElement extends SVGElement, SVGFilterPrimitiveStandardAttributes {\n addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGFEFloodElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n removeEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGFEFloodElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\ndeclare var SVGFEFloodElement: {\n prototype: SVGFEFloodElement;\n new(): SVGFEFloodElement;\n};\n\n/**\n * The **`SVGFEFuncAElement`** interface corresponds to the feFuncA element.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGFEFuncAElement)\n */\ninterface SVGFEFuncAElement extends SVGComponentTransferFunctionElement {\n addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGFEFuncAElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n removeEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGFEFuncAElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\ndeclare var SVGFEFuncAElement: {\n prototype: SVGFEFuncAElement;\n new(): SVGFEFuncAElement;\n};\n\n/**\n * The **`SVGFEFuncBElement`** interface corresponds to the feFuncB element.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGFEFuncBElement)\n */\ninterface SVGFEFuncBElement extends SVGComponentTransferFunctionElement {\n addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGFEFuncBElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n removeEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGFEFuncBElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\ndeclare var SVGFEFuncBElement: {\n prototype: SVGFEFuncBElement;\n new(): SVGFEFuncBElement;\n};\n\n/**\n * The **`SVGFEFuncGElement`** interface corresponds to the feFuncG element.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGFEFuncGElement)\n */\ninterface SVGFEFuncGElement extends SVGComponentTransferFunctionElement {\n addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGFEFuncGElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n removeEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGFEFuncGElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\ndeclare var SVGFEFuncGElement: {\n prototype: SVGFEFuncGElement;\n new(): SVGFEFuncGElement;\n};\n\n/**\n * The **`SVGFEFuncRElement`** interface corresponds to the feFuncR element.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGFEFuncRElement)\n */\ninterface SVGFEFuncRElement extends SVGComponentTransferFunctionElement {\n addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGFEFuncRElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n removeEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGFEFuncRElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\ndeclare var SVGFEFuncRElement: {\n prototype: SVGFEFuncRElement;\n new(): SVGFEFuncRElement;\n};\n\n/**\n * The **`SVGFEGaussianBlurElement`** interface corresponds to the feGaussianBlur element.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGFEGaussianBlurElement)\n */\ninterface SVGFEGaussianBlurElement extends SVGElement, SVGFilterPrimitiveStandardAttributes {\n /**\n * The **`in1`** read-only property of the SVGFEGaussianBlurElement interface reflects the in attribute of the given feGaussianBlur element.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGFEGaussianBlurElement/in1)\n */\n readonly in1: SVGAnimatedString;\n /**\n * The **`stdDeviationX`** read-only property of the SVGFEGaussianBlurElement interface reflects the (possibly automatically computed) X component of the stdDeviation attribute of the given feGaussianBlur element.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGFEGaussianBlurElement/stdDeviationX)\n */\n readonly stdDeviationX: SVGAnimatedNumber;\n /**\n * The **`stdDeviationY`** read-only property of the SVGFEGaussianBlurElement interface reflects the (possibly automatically computed) Y component of the stdDeviation attribute of the given feGaussianBlur element.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGFEGaussianBlurElement/stdDeviationY)\n */\n readonly stdDeviationY: SVGAnimatedNumber;\n /**\n * The `setStdDeviation()` method of the SVGFEGaussianBlurElement interface sets the values for the stdDeviation attribute.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGFEGaussianBlurElement/setStdDeviation)\n */\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/**\n * The **`SVGFEImageElement`** interface corresponds to the feImage element.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGFEImageElement)\n */\ninterface SVGFEImageElement extends SVGElement, SVGFilterPrimitiveStandardAttributes, SVGURIReference {\n /**\n * The **`preserveAspectRatio`** read-only property of the SVGFEImageElement interface reflects the preserveAspectRatio attribute of the given feImage element.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGFEImageElement/preserveAspectRatio)\n */\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/**\n * The **`SVGFEMergeElement`** interface corresponds to the feMerge element.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGFEMergeElement)\n */\ninterface SVGFEMergeElement extends SVGElement, SVGFilterPrimitiveStandardAttributes {\n addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGFEMergeElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n removeEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGFEMergeElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\ndeclare var SVGFEMergeElement: {\n prototype: SVGFEMergeElement;\n new(): SVGFEMergeElement;\n};\n\n/**\n * The **`SVGFEMergeNodeElement`** interface corresponds to the feMergeNode element.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGFEMergeNodeElement)\n */\ninterface SVGFEMergeNodeElement extends SVGElement {\n /**\n * The **`in1`** read-only property of the SVGFEMergeNodeElement interface reflects the in attribute of the given feMergeNode element.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGFEMergeNodeElement/in1)\n */\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/**\n * The **`SVGFEMorphologyElement`** interface corresponds to the feMorphology element.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGFEMorphologyElement)\n */\ninterface SVGFEMorphologyElement extends SVGElement, SVGFilterPrimitiveStandardAttributes {\n /**\n * The **`in1`** read-only property of the SVGFEMorphologyElement interface reflects the in attribute of the given feMorphology element.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGFEMorphologyElement/in1)\n */\n readonly in1: SVGAnimatedString;\n /**\n * The **`operator`** read-only property of the SVGFEMorphologyElement interface reflects the operator attribute of the given feMorphology element.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGFEMorphologyElement/operator)\n */\n readonly operator: SVGAnimatedEnumeration;\n /**\n * The **`radiusX`** read-only property of the SVGFEMorphologyElement interface reflects the X component of the radius attribute of the given feMorphology element.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGFEMorphologyElement/radiusX)\n */\n readonly radiusX: SVGAnimatedNumber;\n /**\n * The **`radiusY`** read-only property of the SVGFEMorphologyElement interface reflects the Y component of the radius attribute of the given feMorphology element.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGFEMorphologyElement/radiusY)\n */\n readonly radiusY: SVGAnimatedNumber;\n readonly SVG_MORPHOLOGY_OPERATOR_UNKNOWN: 0;\n readonly SVG_MORPHOLOGY_OPERATOR_ERODE: 1;\n readonly SVG_MORPHOLOGY_OPERATOR_DILATE: 2;\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_UNKNOWN: 0;\n readonly SVG_MORPHOLOGY_OPERATOR_ERODE: 1;\n readonly SVG_MORPHOLOGY_OPERATOR_DILATE: 2;\n};\n\n/**\n * The **`SVGFEOffsetElement`** interface corresponds to the feOffset element.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGFEOffsetElement)\n */\ninterface SVGFEOffsetElement extends SVGElement, SVGFilterPrimitiveStandardAttributes {\n /**\n * The **`dx`** read-only property of the SVGFEOffsetElement interface reflects the dx attribute of the given feOffset element.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGFEOffsetElement/dx)\n */\n readonly dx: SVGAnimatedNumber;\n /**\n * The **`dy`** read-only property of the SVGFEOffsetElement interface reflects the dy attribute of the given feOffset element.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGFEOffsetElement/dy)\n */\n readonly dy: SVGAnimatedNumber;\n /**\n * The **`in1`** read-only property of the SVGFEOffsetElement interface reflects the in attribute of the given feOffset element.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGFEOffsetElement/in1)\n */\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/**\n * The **`SVGFEPointLightElement`** interface corresponds to the fePointLight element.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGFEPointLightElement)\n */\ninterface SVGFEPointLightElement extends SVGElement {\n /**\n * The **`x`** read-only property of the SVGFEPointLightElement interface describes the horizontal coordinate of the position of an SVG filter primitive as a SVGAnimatedNumber.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGFEPointLightElement/x)\n */\n readonly x: SVGAnimatedNumber;\n /**\n * The **`y`** read-only property of the SVGFEPointLightElement interface describes the vertical coordinate of the position of an SVG filter primitive as a SVGAnimatedNumber.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGFEPointLightElement/y)\n */\n readonly y: SVGAnimatedNumber;\n /**\n * The **`z`** read-only property of the SVGFEPointLightElement interface describes the z-axis value of the position of an SVG filter primitive as a SVGAnimatedNumber.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGFEPointLightElement/z)\n */\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/**\n * The **`SVGFESpecularLightingElement`** interface corresponds to the feSpecularLighting element.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGFESpecularLightingElement)\n */\ninterface SVGFESpecularLightingElement extends SVGElement, SVGFilterPrimitiveStandardAttributes {\n /**\n * The **`in1`** read-only property of the SVGFESpecularLightingElement interface reflects the in attribute of the given feSpecularLighting element.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGFESpecularLightingElement/in1)\n */\n readonly in1: SVGAnimatedString;\n /**\n * The **`kernelUnitLengthX`** read-only property of the SVGFESpecularLightingElement interface reflects the x value of the kernelUnitLength attribute of the given feSpecularLighting element.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGFESpecularLightingElement/kernelUnitLengthX)\n */\n readonly kernelUnitLengthX: SVGAnimatedNumber;\n /**\n * The **`kernelUnitLengthY`** read-only property of the SVGFESpecularLightingElement interface reflects the y value of the kernelUnitLength attribute of the given feSpecularLighting element.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGFESpecularLightingElement/kernelUnitLengthY)\n */\n readonly kernelUnitLengthY: SVGAnimatedNumber;\n /**\n * The **`specularConstant`** read-only property of the SVGFESpecularLightingElement interface reflects the specularConstant attribute of the given feSpecularLighting element.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGFESpecularLightingElement/specularConstant)\n */\n readonly specularConstant: SVGAnimatedNumber;\n /**\n * The **`specularExponent`** read-only property of the SVGFESpecularLightingElement interface reflects the specularExponent attribute of the given feSpecularLighting element.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGFESpecularLightingElement/specularExponent)\n */\n readonly specularExponent: SVGAnimatedNumber;\n /**\n * The **`surfaceScale`** read-only property of the SVGFESpecularLightingElement interface reflects the surfaceScale attribute of the given feSpecularLighting element.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGFESpecularLightingElement/surfaceScale)\n */\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/**\n * The **`SVGFESpotLightElement`** interface corresponds to the feSpotLight element.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGFESpotLightElement)\n */\ninterface SVGFESpotLightElement extends SVGElement {\n /**\n * The **`limitingConeAngle`** read-only property of the SVGFESpotLightElement interface reflects the limitingConeAngle attribute of the given feSpotLight element.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGFESpotLightElement/limitingConeAngle)\n */\n readonly limitingConeAngle: SVGAnimatedNumber;\n /**\n * The **`pointsAtX`** read-only property of the SVGFESpotLightElement interface reflects the pointsAtX attribute of the given feSpotLight element.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGFESpotLightElement/pointsAtX)\n */\n readonly pointsAtX: SVGAnimatedNumber;\n /**\n * The **`pointsAtY`** read-only property of the SVGFESpotLightElement interface reflects the pointsAtY attribute of the given feSpotLight element.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGFESpotLightElement/pointsAtY)\n */\n readonly pointsAtY: SVGAnimatedNumber;\n /**\n * The **`pointsAtZ`** read-only property of the SVGFESpotLightElement interface reflects the pointsAtZ attribute of the given feSpotLight element.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGFESpotLightElement/pointsAtZ)\n */\n readonly pointsAtZ: SVGAnimatedNumber;\n /**\n * The **`specularExponent`** read-only property of the SVGFESpotLightElement interface reflects the specularExponent attribute of the given feSpotLight element.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGFESpotLightElement/specularExponent)\n */\n readonly specularExponent: SVGAnimatedNumber;\n /**\n * The **`x`** read-only property of the SVGFESpotLightElement interface describes the horizontal coordinate of the position of an SVG filter primitive as a SVGAnimatedNumber.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGFESpotLightElement/x)\n */\n readonly x: SVGAnimatedNumber;\n /**\n * The **`y`** read-only property of the SVGFESpotLightElement interface describes the vertical coordinate of the position of an SVG filter primitive as a SVGAnimatedNumber.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGFESpotLightElement/y)\n */\n readonly y: SVGAnimatedNumber;\n /**\n * The **`z`** read-only property of the SVGFESpotLightElement interface describes the z-axis value of the position of an SVG filter primitive as a SVGAnimatedNumber.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGFESpotLightElement/z)\n */\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/**\n * The **`SVGFETileElement`** interface corresponds to the feTile element.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGFETileElement)\n */\ninterface SVGFETileElement extends SVGElement, SVGFilterPrimitiveStandardAttributes {\n /**\n * The **`in1`** read-only property of the SVGFETileElement interface reflects the in attribute of the given feTile element.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGFETileElement/in1)\n */\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/**\n * The **`SVGFETurbulenceElement`** interface corresponds to the feTurbulence element.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGFETurbulenceElement)\n */\ninterface SVGFETurbulenceElement extends SVGElement, SVGFilterPrimitiveStandardAttributes {\n /**\n * The **`baseFrequencyX`** read-only property of the SVGFETurbulenceElement interface reflects the X component of the baseFrequency attribute of the given feTurbulence element.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGFETurbulenceElement/baseFrequencyX)\n */\n readonly baseFrequencyX: SVGAnimatedNumber;\n /**\n * The **`baseFrequencyY`** read-only property of the SVGFETurbulenceElement interface reflects the Y component of the baseFrequency attribute of the given feTurbulence element.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGFETurbulenceElement/baseFrequencyY)\n */\n readonly baseFrequencyY: SVGAnimatedNumber;\n /**\n * The **`numOctaves`** read-only property of the SVGFETurbulenceElement interface reflects the numOctaves attribute of the given feTurbulence element.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGFETurbulenceElement/numOctaves)\n */\n readonly numOctaves: SVGAnimatedInteger;\n /**\n * The **`seed`** read-only property of the SVGFETurbulenceElement interface reflects the seed attribute of the given feTurbulence element.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGFETurbulenceElement/seed)\n */\n readonly seed: SVGAnimatedNumber;\n /**\n * The **`stitchTiles`** read-only property of the SVGFETurbulenceElement interface reflects the stitchTiles attribute of the given feTurbulence element.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGFETurbulenceElement/stitchTiles)\n */\n readonly stitchTiles: SVGAnimatedEnumeration;\n /**\n * The **`type`** read-only property of the SVGFETurbulenceElement interface reflects the type attribute of the given feTurbulence element.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGFETurbulenceElement/type)\n */\n readonly type: SVGAnimatedEnumeration;\n readonly SVG_TURBULENCE_TYPE_UNKNOWN: 0;\n readonly SVG_TURBULENCE_TYPE_FRACTALNOISE: 1;\n readonly SVG_TURBULENCE_TYPE_TURBULENCE: 2;\n readonly SVG_STITCHTYPE_UNKNOWN: 0;\n readonly SVG_STITCHTYPE_STITCH: 1;\n readonly SVG_STITCHTYPE_NOSTITCH: 2;\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_TURBULENCE_TYPE_UNKNOWN: 0;\n readonly SVG_TURBULENCE_TYPE_FRACTALNOISE: 1;\n readonly SVG_TURBULENCE_TYPE_TURBULENCE: 2;\n readonly SVG_STITCHTYPE_UNKNOWN: 0;\n readonly SVG_STITCHTYPE_STITCH: 1;\n readonly SVG_STITCHTYPE_NOSTITCH: 2;\n};\n\n/**\n * The **`SVGFilterElement`** interface provides access to the properties of filter elements, as well as methods to manipulate them.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGFilterElement)\n */\ninterface SVGFilterElement extends SVGElement, SVGURIReference {\n /**\n * The **`filterUnits`** read-only property of the SVGFilterElement interface reflects the filterUnits attribute of the given filter element.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGFilterElement/filterUnits)\n */\n readonly filterUnits: SVGAnimatedEnumeration;\n /**\n * The **`height`** read-only property of the SVGFilterElement interface describes the vertical size of an SVG filter primitive as a SVGAnimatedLength.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGFilterElement/height)\n */\n readonly height: SVGAnimatedLength;\n /**\n * The **`primitiveUnits`** read-only property of the SVGFilterElement interface reflects the primitiveUnits attribute of the given filter element.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGFilterElement/primitiveUnits)\n */\n readonly primitiveUnits: SVGAnimatedEnumeration;\n /**\n * The **`width`** read-only property of the SVGFilterElement interface describes the horizontal size of an SVG filter primitive as a SVGAnimatedLength.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGFilterElement/width)\n */\n readonly width: SVGAnimatedLength;\n /**\n * The **`x`** read-only property of the SVGFilterElement interface describes the horizontal coordinate of the position of an SVG filter primitive as a SVGAnimatedLength.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGFilterElement/x)\n */\n readonly x: SVGAnimatedLength;\n /**\n * The **`y`** read-only property of the SVGFilterElement interface describes the vertical coordinate of the position of an SVG filter primitive as a SVGAnimatedLength.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGFilterElement/y)\n */\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 /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGFEBlendElement/height) */\n readonly height: SVGAnimatedLength;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGFEBlendElement/result) */\n readonly result: SVGAnimatedString;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGFEBlendElement/width) */\n readonly width: SVGAnimatedLength;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGFEBlendElement/x) */\n readonly x: SVGAnimatedLength;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGFEBlendElement/y) */\n readonly y: SVGAnimatedLength;\n}\n\ninterface SVGFitToViewBox {\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGMarkerElement/preserveAspectRatio) */\n readonly preserveAspectRatio: SVGAnimatedPreserveAspectRatio;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGMarkerElement/viewBox) */\n readonly viewBox: SVGAnimatedRect;\n}\n\n/**\n * The **`SVGForeignObjectElement`** interface provides access to the properties of foreignObject elements, as well as methods to manipulate them.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGForeignObjectElement)\n */\ninterface SVGForeignObjectElement extends SVGGraphicsElement {\n /**\n * The **`height`** read-only property of the SVGForeignObjectElement interface describes the height of the `<foreignObject>` element.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGForeignObjectElement/height)\n */\n readonly height: SVGAnimatedLength;\n /**\n * The **`width`** read-only property of the SVGForeignObjectElement interface describes the width of the `<foreignObject>` element.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGForeignObjectElement/width)\n */\n readonly width: SVGAnimatedLength;\n /**\n * The **`x`** read-only property of the SVGForeignObjectElement interface describes the x-axis coordinate of the `<foreignObject>` element.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGForeignObjectElement/x)\n */\n readonly x: SVGAnimatedLength;\n /**\n * The **`y`** read-only property of the SVGForeignObjectElement interface describes the y-axis coordinate of the `<foreignObject>` element.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGForeignObjectElement/y)\n */\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/**\n * The **`SVGGElement`** interface corresponds to the g element.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGGElement)\n */\ninterface SVGGElement extends SVGGraphicsElement {\n addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGGElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n removeEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGGElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\ndeclare var SVGGElement: {\n prototype: SVGGElement;\n new(): SVGGElement;\n};\n\n/**\n * The `SVGGeometryElement` interface represents SVG elements whose rendering is defined by geometry with an equivalent path, and which can be filled and stroked.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGGeometryElement)\n */\ninterface SVGGeometryElement extends SVGGraphicsElement {\n /**\n * The **`SVGGeometryElement.pathLength`** property reflects the A number.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGGeometryElement/pathLength)\n */\n readonly pathLength: SVGAnimatedNumber;\n /**\n * The **`SVGGeometryElement.getPointAtLength()`** method returns the point at a given distance along the path.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGGeometryElement/getPointAtLength)\n */\n getPointAtLength(distance: number): DOMPoint;\n /**\n * The **`SVGGeometryElement.getTotalLength()`** method returns the user agent\'s computed value for the total length of the path in user units.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGGeometryElement/getTotalLength)\n */\n getTotalLength(): number;\n /**\n * The **`isPointInFill()`** method of the SVGGeometryElement interface determines whether a given point is within the fill shape of an element.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGGeometryElement/isPointInFill)\n */\n isPointInFill(point?: DOMPointInit): boolean;\n /**\n * The **`isPointInStroke()`** method of the SVGGeometryElement interface determines whether a given point is within the stroke shape of an element.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGGeometryElement/isPointInStroke)\n */\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/**\n * The **`SVGGradient`** interface is a base interface used by SVGLinearGradientElement and SVGRadialGradientElement.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGGradientElement)\n */\ninterface SVGGradientElement extends SVGElement, SVGURIReference {\n /**\n * The **`gradientTransform`** read-only property of the SVGGradientElement interface reflects the gradientTransform attribute of the given element.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGGradientElement/gradientTransform)\n */\n readonly gradientTransform: SVGAnimatedTransformList;\n /**\n * The **`gradientUnits`** read-only property of the SVGGradientElement interface reflects the gradientUnits attribute of the given element.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGGradientElement/gradientUnits)\n */\n readonly gradientUnits: SVGAnimatedEnumeration;\n /**\n * The **`spreadMethod`** read-only property of the SVGGradientElement interface reflects the spreadMethod attribute of the given element.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGGradientElement/spreadMethod)\n */\n readonly spreadMethod: SVGAnimatedEnumeration;\n readonly SVG_SPREADMETHOD_UNKNOWN: 0;\n readonly SVG_SPREADMETHOD_PAD: 1;\n readonly SVG_SPREADMETHOD_REFLECT: 2;\n readonly SVG_SPREADMETHOD_REPEAT: 3;\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_UNKNOWN: 0;\n readonly SVG_SPREADMETHOD_PAD: 1;\n readonly SVG_SPREADMETHOD_REFLECT: 2;\n readonly SVG_SPREADMETHOD_REPEAT: 3;\n};\n\n/**\n * The **`SVGGraphicsElement`** interface represents SVG elements whose primary purpose is to directly render graphics into a group.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGGraphicsElement)\n */\ninterface SVGGraphicsElement extends SVGElement, SVGTests {\n /**\n * The **`transform`** read-only property of the SVGGraphicsElement interface reflects the computed value of the transform property and its corresponding transform attribute of the given element.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGGraphicsElement/transform)\n */\n readonly transform: SVGAnimatedTransformList;\n /**\n * The **`SVGGraphicsElement.getBBox()`** method allows us to determine the coordinates of the smallest rectangle in which the object fits.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGGraphicsElement/getBBox)\n */\n getBBox(options?: SVGBoundingBoxOptions): DOMRect;\n /**\n * The `getCTM()` method of the SVGGraphicsElement interface represents the matrix that transforms the current element\'s coordinate system to its SVG viewport\'s coordinate system.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGGraphicsElement/getCTM)\n */\n getCTM(): DOMMatrix | null;\n /**\n * The `getScreenCTM()` method of the SVGGraphicsElement interface represents the matrix that transforms the current element\'s coordinate system to the coordinate system of the SVG viewport for the SVG document fragment.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGGraphicsElement/getScreenCTM)\n */\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/**\n * The **`SVGImageElement`** interface corresponds to the image element.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGImageElement)\n */\ninterface SVGImageElement extends SVGGraphicsElement, SVGURIReference {\n /**\n * The **`crossOrigin`** property of the SVGImageElement interface is a string which specifies the Cross-Origin Resource Sharing (CORS) setting to use when retrieving the image.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGImageElement/crossOrigin)\n */\n crossOrigin: string | null;\n /**\n * The **`height`** read-only property of the corresponding to the height attribute of the given An SVGAnimatedLength.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGImageElement/height)\n */\n readonly height: SVGAnimatedLength;\n /**\n * The **`preserveAspectRatio`** read-only property of the SVGImageElement interface returns an element.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGImageElement/preserveAspectRatio)\n */\n readonly preserveAspectRatio: SVGAnimatedPreserveAspectRatio;\n /**\n * The **`width`** read-only property of the corresponding to the width attribute of the given image element.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGImageElement/width)\n */\n readonly width: SVGAnimatedLength;\n /**\n * The **`x`** read-only property of the corresponding to the x attribute of the given image element.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGImageElement/x)\n */\n readonly x: SVGAnimatedLength;\n /**\n * The **`y`** read-only property of the corresponding to the y attribute of the given image element.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGImageElement/y)\n */\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/**\n * The **`SVGLength`** interface correspond to the \\<length> basic data type.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGLength)\n */\ninterface SVGLength {\n /**\n * The **`unitType`** property of the SVGLength interface that represents type of the value as specified by one of the `SVG_LENGTHTYPE_*` constants defined on this interface.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGLength/unitType)\n */\n readonly unitType: number;\n /**\n * The `value` property of the SVGLength interface represents the floating point value of the \\<length> in user units.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGLength/value)\n */\n value: number;\n /**\n * The `valueAsString` property of the SVGLength interface represents the \\<length>\'s value as a string, in the units expressed by SVGLength.unitType.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGLength/valueAsString)\n */\n valueAsString: string;\n /**\n * The `valueInSpecifiedUnits` property of the SVGLength interface represents floating point value, in the units expressed by SVGLength.unitType.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGLength/valueInSpecifiedUnits)\n */\n valueInSpecifiedUnits: number;\n /**\n * The `convertToSpecifiedUnits()` method of the SVGLength interface allows you to convert the length\'s value to the specified unit type.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGLength/convertToSpecifiedUnits)\n */\n convertToSpecifiedUnits(unitType: number): void;\n /**\n * The `newValueSpecifiedUnits()` method of the SVGLength interface resets the value as a number with an associated SVGLength.unitType, thereby replacing the values for all of the attributes on the object.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGLength/newValueSpecifiedUnits)\n */\n newValueSpecifiedUnits(unitType: number, valueInSpecifiedUnits: number): void;\n readonly SVG_LENGTHTYPE_UNKNOWN: 0;\n readonly SVG_LENGTHTYPE_NUMBER: 1;\n readonly SVG_LENGTHTYPE_PERCENTAGE: 2;\n readonly SVG_LENGTHTYPE_EMS: 3;\n readonly SVG_LENGTHTYPE_EXS: 4;\n readonly SVG_LENGTHTYPE_PX: 5;\n readonly SVG_LENGTHTYPE_CM: 6;\n readonly SVG_LENGTHTYPE_MM: 7;\n readonly SVG_LENGTHTYPE_IN: 8;\n readonly SVG_LENGTHTYPE_PT: 9;\n readonly SVG_LENGTHTYPE_PC: 10;\n}\n\ndeclare var SVGLength: {\n prototype: SVGLength;\n new(): SVGLength;\n readonly SVG_LENGTHTYPE_UNKNOWN: 0;\n readonly SVG_LENGTHTYPE_NUMBER: 1;\n readonly SVG_LENGTHTYPE_PERCENTAGE: 2;\n readonly SVG_LENGTHTYPE_EMS: 3;\n readonly SVG_LENGTHTYPE_EXS: 4;\n readonly SVG_LENGTHTYPE_PX: 5;\n readonly SVG_LENGTHTYPE_CM: 6;\n readonly SVG_LENGTHTYPE_MM: 7;\n readonly SVG_LENGTHTYPE_IN: 8;\n readonly SVG_LENGTHTYPE_PT: 9;\n readonly SVG_LENGTHTYPE_PC: 10;\n};\n\n/**\n * The **`SVGLengthList`** interface defines a list of SVGLength objects.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGLengthList)\n */\ninterface SVGLengthList {\n /**\n * The **`length`** property of the SVGLengthList interface returns the number of items in the list.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGLengthList/length)\n */\n readonly length: number;\n /**\n * The **`numberOfItems`** property of the SVGLengthList interface returns the number of items in the list.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGLengthList/numberOfItems)\n */\n readonly numberOfItems: number;\n /**\n * The **`appendItem()`** method of the SVGLengthList interface inserts a new item at the end of the list.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGLengthList/appendItem)\n */\n appendItem(newItem: SVGLength): SVGLength;\n /**\n * The **`clear()`** method of the SVGLengthList interface clears all existing items from the list, with the result being an empty list.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGLengthList/clear)\n */\n clear(): void;\n /**\n * The **`getItem()`** method of the SVGLengthList interface returns the specified item from the list.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGLengthList/getItem)\n */\n getItem(index: number): SVGLength;\n /**\n * The **`initialize()`** method of the SVGLengthList interface clears all existing items from the list and re-initializes the list to hold the single item specified by the parameter.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGLengthList/initialize)\n */\n initialize(newItem: SVGLength): SVGLength;\n /**\n * The **`insertItemBefore()`** method of the SVGLengthList interface inserts a new item into the list at the specified position.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGLengthList/insertItemBefore)\n */\n insertItemBefore(newItem: SVGLength, index: number): SVGLength;\n /**\n * The **`removeItem()`** method of the SVGLengthList interface removes an existing item at the given index from the list.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGLengthList/removeItem)\n */\n removeItem(index: number): SVGLength;\n /**\n * The **`replaceItem()`** method of the SVGLengthList interface replaces an existing item in the list with a new item.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGLengthList/replaceItem)\n */\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/**\n * The **`SVGLineElement`** interface provides access to the properties of line elements, as well as methods to manipulate them.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGLineElement)\n */\ninterface SVGLineElement extends SVGGeometryElement {\n /**\n * The **`x1`** read-only property of the SVGLineElement interface describes the start of the SVG line along the x-axis as an SVGAnimatedLength.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGLineElement/x1)\n */\n readonly x1: SVGAnimatedLength;\n /**\n * The **`x2`** read-only property of the SVGLineElement interface describes the x-axis coordinate value of the end of a line as an SVGAnimatedLength.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGLineElement/x2)\n */\n readonly x2: SVGAnimatedLength;\n /**\n * The **`y1`** read-only property of the SVGLineElement interface describes the start of the SVG line along the y-axis as an SVGAnimatedLength.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGLineElement/y1)\n */\n readonly y1: SVGAnimatedLength;\n /**\n * The **`y2`** read-only property of the SVGLineElement interface describes the v-axis coordinate value of the end of a line as an SVGAnimatedLength.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGLineElement/y2)\n */\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/**\n * The **`SVGLinearGradientElement`** interface corresponds to the linearGradient element.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGLinearGradientElement)\n */\ninterface SVGLinearGradientElement extends SVGGradientElement {\n /**\n * The **`x1`** read-only property of the SVGLinearGradientElement interface describes the x-axis coordinate of the start point of the gradient as an SVGAnimatedLength.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGLinearGradientElement/x1)\n */\n readonly x1: SVGAnimatedLength;\n /**\n * The **`x2`** read-only property of the SVGLinearGradientElement interface describes the x-axis coordinate of the start point of the gradient as an SVGAnimatedLength.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGLinearGradientElement/x2)\n */\n readonly x2: SVGAnimatedLength;\n /**\n * The **`y1`** read-only property of the SVGLinearGradientElement interface describes the y-axis coordinate of the start point of the gradient as an SVGAnimatedLength.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGLinearGradientElement/y1)\n */\n readonly y1: SVGAnimatedLength;\n /**\n * The **`y2`** read-only property of the SVGLinearGradientElement interface describes the y-axis coordinate of the start point of the gradient as an SVGAnimatedLength.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGLinearGradientElement/y2)\n */\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\n/**\n * The **`SVGMPathElement`** interface corresponds to the mpath element.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGMPathElement)\n */\ninterface SVGMPathElement extends SVGElement, SVGURIReference {\n addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGMPathElement, 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: SVGMPathElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\ndeclare var SVGMPathElement: {\n prototype: SVGMPathElement;\n new(): SVGMPathElement;\n};\n\n/**\n * The **`SVGMarkerElement`** interface provides access to the properties of marker elements, as well as methods to manipulate them.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGMarkerElement)\n */\ninterface SVGMarkerElement extends SVGElement, SVGFitToViewBox {\n /**\n * The **`markerHeight`** read-only property of the SVGMarkerElement interface returns an SVGAnimatedLength object containing the height of the marker viewport as defined by the markerHeight attribute.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGMarkerElement/markerHeight)\n */\n readonly markerHeight: SVGAnimatedLength;\n /**\n * The **`markerUnits`** read-only property of the SVGMarkerElement interface returns an SVGAnimatedEnumeration object.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGMarkerElement/markerUnits)\n */\n readonly markerUnits: SVGAnimatedEnumeration;\n /**\n * The **`markerWidth`** read-only property of the SVGMarkerElement interface returns an SVGAnimatedLength object containing the width of the marker viewport as defined by the markerWidth attribute.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGMarkerElement/markerWidth)\n */\n readonly markerWidth: SVGAnimatedLength;\n /**\n * The **`orientAngle`** read-only property of the SVGMarkerElement interface returns an SVGAnimatedAngle object containing the angle of the orient attribute.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGMarkerElement/orientAngle)\n */\n readonly orientAngle: SVGAnimatedAngle;\n /**\n * The **`orientType`** read-only property of the SVGMarkerElement interface returns an SVGAnimatedEnumeration object indicating whether the orient attribute is `auto`, an angle value, or something else.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGMarkerElement/orientType)\n */\n readonly orientType: SVGAnimatedEnumeration;\n /**\n * The **`refX`** read-only property of the SVGMarkerElement interface returns an SVGAnimatedLength object containing the value of the refX attribute of the marker.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGMarkerElement/refX)\n */\n readonly refX: SVGAnimatedLength;\n /**\n * The **`refY`** read-only property of the SVGMarkerElement interface returns an SVGAnimatedLength object containing the value of the refY attribute of the marker.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGMarkerElement/refY)\n */\n readonly refY: SVGAnimatedLength;\n /**\n * The **`setOrientToAngle()`** method of the SVGMarkerElement interface sets the value of the `orient` attribute to the value in the SVGAngle passed in.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGMarkerElement/setOrientToAngle)\n */\n setOrientToAngle(angle: SVGAngle): void;\n /**\n * The **`setOrientToAuto()`** method of the SVGMarkerElement interface sets the value of the `orient` attribute to `auto`.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGMarkerElement/setOrientToAuto)\n */\n setOrientToAuto(): void;\n readonly SVG_MARKERUNITS_UNKNOWN: 0;\n readonly SVG_MARKERUNITS_USERSPACEONUSE: 1;\n readonly SVG_MARKERUNITS_STROKEWIDTH: 2;\n readonly SVG_MARKER_ORIENT_UNKNOWN: 0;\n readonly SVG_MARKER_ORIENT_AUTO: 1;\n readonly SVG_MARKER_ORIENT_ANGLE: 2;\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_UNKNOWN: 0;\n readonly SVG_MARKERUNITS_USERSPACEONUSE: 1;\n readonly SVG_MARKERUNITS_STROKEWIDTH: 2;\n readonly SVG_MARKER_ORIENT_UNKNOWN: 0;\n readonly SVG_MARKER_ORIENT_AUTO: 1;\n readonly SVG_MARKER_ORIENT_ANGLE: 2;\n};\n\n/**\n * The **`SVGMaskElement`** interface provides access to the properties of mask elements, as well as methods to manipulate them.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGMaskElement)\n */\ninterface SVGMaskElement extends SVGElement {\n /**\n * The read-only **`height`** property of the SVGMaskElement interface returns an SVGAnimatedLength object containing the value of the height attribute of the marker.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGMaskElement/height)\n */\n readonly height: SVGAnimatedLength;\n /**\n * The read-only **`maskContentUnits`** property of the SVGMaskElement interface reflects the maskContentUnits attribute.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGMaskElement/maskContentUnits)\n */\n readonly maskContentUnits: SVGAnimatedEnumeration;\n /**\n * The read-only **`maskUnits`** property of the SVGMaskElement interface reflects the maskUnits attribute of a mask element which defines the coordinate system to use for the mask of the element.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGMaskElement/maskUnits)\n */\n readonly maskUnits: SVGAnimatedEnumeration;\n /**\n * The read-only **`width`** property of the SVGMaskElement interface returns an SVGAnimatedLength object containing the value of the width attribute of the marker.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGMaskElement/width)\n */\n readonly width: SVGAnimatedLength;\n /**\n * The read-only **`x`** property of the SVGMaskElement interface returns an SVGAnimatedLength object containing the value of the x attribute of the mask.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGMaskElement/x)\n */\n readonly x: SVGAnimatedLength;\n /**\n * The read-only **`y`** property of the SVGMaskElement interface returns an SVGAnimatedLength object containing the value of the y attribute of the marker.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGMaskElement/y)\n */\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/**\n * The **`SVGMetadataElement`** interface corresponds to the metadata element.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGMetadataElement)\n */\ninterface SVGMetadataElement extends SVGElement {\n addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGMetadataElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n removeEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGMetadataElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\ndeclare var SVGMetadataElement: {\n prototype: SVGMetadataElement;\n new(): SVGMetadataElement;\n};\n\n/**\n * The **`SVGNumber`** interface corresponds to the <number> basic data type.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGNumber)\n */\ninterface SVGNumber {\n /**\n * The **`value`** read-only property of the SVGNumber interface represents the number.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGNumber/value)\n */\n value: number;\n}\n\ndeclare var SVGNumber: {\n prototype: SVGNumber;\n new(): SVGNumber;\n};\n\n/**\n * The **`SVGNumberList`** interface defines a list of numbers.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGNumberList)\n */\ninterface SVGNumberList {\n /**\n * The **`length`** property of the SVGNumberList interface returns the number of items in the list.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGNumberList/length)\n */\n readonly length: number;\n /**\n * The **`numberOfItems`** property of the SVGNumberList interface returns the number of items in the list.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGNumberList/numberOfItems)\n */\n readonly numberOfItems: number;\n /**\n * The **`appendItem()`** method of the SVGNumberList interface inserts a new item at the end of the list.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGNumberList/appendItem)\n */\n appendItem(newItem: SVGNumber): SVGNumber;\n /**\n * The **`clear()`** method of the SVGNumberList interface clears all existing items from the list, with the result being an empty list.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGNumberList/clear)\n */\n clear(): void;\n /**\n * The **`getItem()`** method of the SVGNumberList interface returns the specified item from the list.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGNumberList/getItem)\n */\n getItem(index: number): SVGNumber;\n /**\n * The **`initialize()`** method of the SVGNumberList interface clears all existing items from the list and re-initializes the list to hold the single item specified by the parameter.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGNumberList/initialize)\n */\n initialize(newItem: SVGNumber): SVGNumber;\n /**\n * The **`insertItemBefore()`** method of the SVGNumberList interface inserts a new item into the list at the specified position.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGNumberList/insertItemBefore)\n */\n insertItemBefore(newItem: SVGNumber, index: number): SVGNumber;\n /**\n * The **`removeItem()`** method of the SVGNumberList interface removes an existing item at the given index from the list.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGNumberList/removeItem)\n */\n removeItem(index: number): SVGNumber;\n /**\n * The **`replaceItem()`** method of the SVGNumberList interface replaces an existing item in the list with a new item.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGNumberList/replaceItem)\n */\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/**\n * The **`SVGPathElement`** interface corresponds to the path element.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGPathElement)\n */\ninterface SVGPathElement extends SVGGeometryElement {\n /**\n * The **`pathLength`** read-only property of the SVGPathElement interface reflects the pathLength attribute of the given path element.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGPathElement/pathLength)\n */\n readonly pathLength: SVGAnimatedNumber;\n /**\n * The **`getPointAtLength()`** method of the SVGPathElement interface returns the point at a given distance along the path.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGPathElement/getPointAtLength)\n */\n getPointAtLength(distance: number): DOMPoint;\n /**\n * The **`getTotalLength()`** method of the SVGPathElement interface returns the user agent\'s computed value for the total length of the path in user units.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGPathElement/getTotalLength)\n */\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\n/**\n * The **`SVGPatternElement`** interface corresponds to the pattern element.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGPatternElement)\n */\ninterface SVGPatternElement extends SVGElement, SVGFitToViewBox, SVGURIReference {\n /**\n * The **`height`** read-only property of the SVGPatternElement interface describes the height of the pattern as an SVGAnimatedLength.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGPatternElement/height)\n */\n readonly height: SVGAnimatedLength;\n /**\n * The **`patternContentUnits`** read-only property of the SVGPatternElement interface reflects the patternContentUnits attribute of the given pattern element.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGPatternElement/patternContentUnits)\n */\n readonly patternContentUnits: SVGAnimatedEnumeration;\n /**\n * The **`patternTransform`** read-only property of the SVGPatternElement interface reflects the patternTransform attribute of the given pattern element.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGPatternElement/patternTransform)\n */\n readonly patternTransform: SVGAnimatedTransformList;\n /**\n * The **`patternUnits`** read-only property of the SVGPatternElement interface reflects the patternUnits attribute of the given pattern element.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGPatternElement/patternUnits)\n */\n readonly patternUnits: SVGAnimatedEnumeration;\n /**\n * The **`width`** read-only property of the SVGPatternElement interface describes the width of the pattern as an SVGAnimatedLength.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGPatternElement/width)\n */\n readonly width: SVGAnimatedLength;\n /**\n * The **`x`** read-only property of the SVGPatternElement interface describes the x-axis coordinate of the start point of the pattern as an SVGAnimatedLength.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGPatternElement/x)\n */\n readonly x: SVGAnimatedLength;\n /**\n * The **`y`** read-only property of the SVGPatternElement interface describes the y-axis coordinate of the start point of the pattern as an SVGAnimatedLength.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGPatternElement/y)\n */\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\n/**\n * The **`SVGPointList`** interface represents a list of DOMPoint objects.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGPointList)\n */\ninterface SVGPointList {\n /**\n * The **`length`** read-only property of the SVGPointList interface returns the number of items in the list.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGPointList/length)\n */\n readonly length: number;\n /**\n * The **`numberOfItems`** read-only property of the SVGPointList interface returns the number of items in the list.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGPointList/numberOfItems)\n */\n readonly numberOfItems: number;\n /**\n * The **`appendItem()`** method of the SVGPointList interface adds a DOMPoint to the end of the list.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGPointList/appendItem)\n */\n appendItem(newItem: DOMPoint): DOMPoint;\n /**\n * The **`clear()`** method of the SVGPointList interface removes all items from the list.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGPointList/clear)\n */\n clear(): void;\n /**\n * The **`getItem()`** method of the SVGPointList interface gets one item from the list at the specified index.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGPointList/getItem)\n */\n getItem(index: number): DOMPoint;\n /**\n * The **`initialize()`** method of the SVGPointList interface clears the list then adds a single new DOMPoint object to the list.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGPointList/initialize)\n */\n initialize(newItem: DOMPoint): DOMPoint;\n /**\n * The **`insertItemBefore()`** method of the SVGPointList interface inserts a DOMPoint before another item in the list.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGPointList/insertItemBefore)\n */\n insertItemBefore(newItem: DOMPoint, index: number): DOMPoint;\n /**\n * The **`removeItem()`** method of the SVGPointList interface removes a DOMPoint from the list.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGPointList/removeItem)\n */\n removeItem(index: number): DOMPoint;\n /**\n * The **`replaceItem()`** method of the SVGPointList interface replaces a DOMPoint in the list.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGPointList/replaceItem)\n */\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/**\n * The **`SVGPolygonElement`** interface provides access to the properties of polygon elements, as well as methods to manipulate them.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGPolygonElement)\n */\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/**\n * The **`SVGPolylineElement`** interface provides access to the properties of polyline elements, as well as methods to manipulate them.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGPolylineElement)\n */\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/**\n * The **`SVGPreserveAspectRatio`** interface corresponds to the preserveAspectRatio attribute.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGPreserveAspectRatio)\n */\ninterface SVGPreserveAspectRatio {\n /**\n * The **`align`** read-only property of the SVGPreserveAspectRatio interface reflects the type of the alignment value as specified by one of the `SVG_PRESERVEASPECTRATIO_*` constants defined on this interface.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGPreserveAspectRatio/align)\n */\n align: number;\n /**\n * The **`meetOrSlice`** read-only property of the SVGPreserveAspectRatio interface reflects the type of the meet-or-slice value as specified by one of the `SVG_MEETORSLICE_*` constants defined on this interface.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGPreserveAspectRatio/meetOrSlice)\n */\n meetOrSlice: number;\n readonly SVG_PRESERVEASPECTRATIO_UNKNOWN: 0;\n readonly SVG_PRESERVEASPECTRATIO_NONE: 1;\n readonly SVG_PRESERVEASPECTRATIO_XMINYMIN: 2;\n readonly SVG_PRESERVEASPECTRATIO_XMIDYMIN: 3;\n readonly SVG_PRESERVEASPECTRATIO_XMAXYMIN: 4;\n readonly SVG_PRESERVEASPECTRATIO_XMINYMID: 5;\n readonly SVG_PRESERVEASPECTRATIO_XMIDYMID: 6;\n readonly SVG_PRESERVEASPECTRATIO_XMAXYMID: 7;\n readonly SVG_PRESERVEASPECTRATIO_XMINYMAX: 8;\n readonly SVG_PRESERVEASPECTRATIO_XMIDYMAX: 9;\n readonly SVG_PRESERVEASPECTRATIO_XMAXYMAX: 10;\n readonly SVG_MEETORSLICE_UNKNOWN: 0;\n readonly SVG_MEETORSLICE_MEET: 1;\n readonly SVG_MEETORSLICE_SLICE: 2;\n}\n\ndeclare var SVGPreserveAspectRatio: {\n prototype: SVGPreserveAspectRatio;\n new(): SVGPreserveAspectRatio;\n readonly SVG_PRESERVEASPECTRATIO_UNKNOWN: 0;\n readonly SVG_PRESERVEASPECTRATIO_NONE: 1;\n readonly SVG_PRESERVEASPECTRATIO_XMINYMIN: 2;\n readonly SVG_PRESERVEASPECTRATIO_XMIDYMIN: 3;\n readonly SVG_PRESERVEASPECTRATIO_XMAXYMIN: 4;\n readonly SVG_PRESERVEASPECTRATIO_XMINYMID: 5;\n readonly SVG_PRESERVEASPECTRATIO_XMIDYMID: 6;\n readonly SVG_PRESERVEASPECTRATIO_XMAXYMID: 7;\n readonly SVG_PRESERVEASPECTRATIO_XMINYMAX: 8;\n readonly SVG_PRESERVEASPECTRATIO_XMIDYMAX: 9;\n readonly SVG_PRESERVEASPECTRATIO_XMAXYMAX: 10;\n readonly SVG_MEETORSLICE_UNKNOWN: 0;\n readonly SVG_MEETORSLICE_MEET: 1;\n readonly SVG_MEETORSLICE_SLICE: 2;\n};\n\n/**\n * The **`SVGRadialGradientElement`** interface corresponds to the RadialGradient element.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGRadialGradientElement)\n */\ninterface SVGRadialGradientElement extends SVGGradientElement {\n /**\n * The **`cx`** read-only property of the SVGRadialGradientElement interface describes the x-axis coordinate of the center of the radial gradient as an SVGAnimatedLength.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGRadialGradientElement/cx)\n */\n readonly cx: SVGAnimatedLength;\n /**\n * The **`cy`** read-only property of the SVGRadialGradientElement interface describes the y-axis coordinate of the center of the radial gradient as an SVGAnimatedLength.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGRadialGradientElement/cy)\n */\n readonly cy: SVGAnimatedLength;\n /**\n * The **`fr`** read-only property of the SVGRadialGradientElement interface describes the radius of the focal circle of the radial gradient as an SVGAnimatedLength.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGRadialGradientElement/fr)\n */\n readonly fr: SVGAnimatedLength;\n /**\n * The **`fx`** read-only property of the SVGRadialGradientElement interface describes the x-axis coordinate of the focal point of the radial gradient as an SVGAnimatedLength.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGRadialGradientElement/fx)\n */\n readonly fx: SVGAnimatedLength;\n /**\n * The **`fy`** read-only property of the SVGRadialGradientElement interface describes the y-axis coordinate of the focal point of the radial gradient as an SVGAnimatedLength.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGRadialGradientElement/fy)\n */\n readonly fy: SVGAnimatedLength;\n /**\n * The **`r`** read-only property of the SVGRadialGradientElement interface describes the radius of the radial gradient as an SVGAnimatedLength.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGRadialGradientElement/r)\n */\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/**\n * The `SVGRectElement` interface provides access to the properties of rect elements, as well as methods to manipulate them.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGRectElement)\n */\ninterface SVGRectElement extends SVGGeometryElement {\n /**\n * The **`height`** read-only property of the SVGRectElement interface describes the vertical size of an SVG rectangle as a SVGAnimatedLength.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGRectElement/height)\n */\n readonly height: SVGAnimatedLength;\n /**\n * The **`rx`** read-only property of the SVGRectElement interface describes the horizontal curve of the corners of an SVG rectangle as a SVGAnimatedLength.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGRectElement/rx)\n */\n readonly rx: SVGAnimatedLength;\n /**\n * The **`ry`** read-only property of the SVGRectElement interface describes the vertical curve of the corners of an SVG rectangle as a SVGAnimatedLength.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGRectElement/ry)\n */\n readonly ry: SVGAnimatedLength;\n /**\n * The **`width`** read-only property of the SVGRectElement interface describes the horizontal size of an SVG rectangle as a SVGAnimatedLength.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGRectElement/width)\n */\n readonly width: SVGAnimatedLength;\n /**\n * The **`x`** read-only property of the SVGRectElement interface describes the horizontal coordinate of the position of an SVG rectangle as a SVGAnimatedLength.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGRectElement/x)\n */\n readonly x: SVGAnimatedLength;\n /**\n * The **`y`** read-only property of the SVGRectElement interface describes the vertical coordinate of the position of an SVG rectangle as a SVGAnimatedLength.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGRectElement/y)\n */\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, WindowEventHandlersEventMap {\n}\n\n/**\n * The **`SVGSVGElement`** interface provides access to the properties of svg elements, as well as methods to manipulate them.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGSVGElement)\n */\ninterface SVGSVGElement extends SVGGraphicsElement, SVGFitToViewBox, WindowEventHandlers {\n /**\n * The **`currentScale`** property of the SVGSVGElement interface reflects the current scale factor relative to the initial view to take into account user magnification and panning operations on the outermost svg element.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGSVGElement/currentScale)\n */\n currentScale: number;\n /**\n * The **`currentTranslate`** read-only property of the SVGSVGElement interface reflects the translation factor that takes into account user \'magnification\' corresponding to an outermost svg element.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGSVGElement/currentTranslate)\n */\n readonly currentTranslate: DOMPointReadOnly;\n /**\n * The **`height`** read-only property of the SVGSVGElement interface describes the vertical size of element as an SVGAnimatedLength.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGSVGElement/height)\n */\n readonly height: SVGAnimatedLength;\n /**\n * The **`width`** read-only property of the SVGSVGElement interface describes the horizontal size of element as an SVGAnimatedLength.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGSVGElement/width)\n */\n readonly width: SVGAnimatedLength;\n /**\n * The **`x`** read-only property of the SVGSVGElement interface describes the horizontal coordinate of the position of that SVG as an SVGAnimatedLength.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGSVGElement/x)\n */\n readonly x: SVGAnimatedLength;\n /**\n * The **`y`** read-only property of the SVGSVGElement interface describes the vertical coordinate of the position of that SVG as an SVGAnimatedLength.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGSVGElement/y)\n */\n readonly y: SVGAnimatedLength;\n /**\n * The `animationsPaused()` method of the SVGSVGElement interface checks whether the animations in the SVG document fragment are currently paused.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGSVGElement/animationsPaused)\n */\n animationsPaused(): boolean;\n /**\n * The `checkEnclosure()` method of the SVGSVGElement interface checks if the rendered content of the given element is entirely contained within the supplied rectangle.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGSVGElement/checkEnclosure)\n */\n checkEnclosure(element: SVGElement, rect: DOMRectReadOnly): boolean;\n /**\n * The `checkIntersection()` method of the SVGSVGElement interface checks if the rendered content of the given element intersects the supplied rectangle.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGSVGElement/checkIntersection)\n */\n checkIntersection(element: SVGElement, rect: DOMRectReadOnly): boolean;\n /**\n * The `createSVGAngle()` method of the SVGSVGElement interface creates an SVGAngle object outside of any document trees.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGSVGElement/createSVGAngle)\n */\n createSVGAngle(): SVGAngle;\n /**\n * The `createSVGLength()` method of the SVGSVGElement interface creates an SVGLength object outside of any document trees.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGSVGElement/createSVGLength)\n */\n createSVGLength(): SVGLength;\n /**\n * The `createSVGMatrix()` method of the SVGSVGElement interface creates a DOMMatrix object outside of any document trees.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGSVGElement/createSVGMatrix)\n */\n createSVGMatrix(): DOMMatrix;\n /**\n * The `createSVGNumber()` method of the SVGSVGElement interface creates an SVGNumber object outside of any document trees.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGSVGElement/createSVGNumber)\n */\n createSVGNumber(): SVGNumber;\n /**\n * The `createSVGPoint()` method of the SVGSVGElement interface creates a DOMPoint object outside of any document trees.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGSVGElement/createSVGPoint)\n */\n createSVGPoint(): DOMPoint;\n /**\n * The `createSVGRect()` method of the SVGSVGElement interface creates an DOMRect object outside of any document trees.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGSVGElement/createSVGRect)\n */\n createSVGRect(): DOMRect;\n /**\n * The `createSVGTransform()` method of the SVGSVGElement interface creates an SVGTransform object outside of any document trees.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGSVGElement/createSVGTransform)\n */\n createSVGTransform(): SVGTransform;\n /**\n * The `createSVGTransformFromMatrix()` method of the SVGSVGElement interface creates an SVGTransform object outside of any document trees, based on the given DOMMatrix object.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGSVGElement/createSVGTransformFromMatrix)\n */\n createSVGTransformFromMatrix(matrix?: DOMMatrix2DInit): SVGTransform;\n /**\n * The `deselectAll()` method of the SVGSVGElement interface unselects any selected objects, including any selections of text strings and type-in bars.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGSVGElement/deselectAll)\n */\n deselectAll(): void;\n /** @deprecated */\n forceRedraw(): void;\n /**\n * The `getCurrentTime()` method of the SVGSVGElement interface returns the current time in seconds relative to the start time for the current SVG document fragment.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGSVGElement/getCurrentTime)\n */\n getCurrentTime(): number;\n /**\n * The `getElementById()` method of the SVGSVGElement interface searches the SVG document fragment (i.e., the search is restricted to a subset of the document tree) for an Element whose `id` property matches the specified string.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGSVGElement/getElementById)\n */\n getElementById(elementId: string): Element;\n getEnclosureList(rect: DOMRectReadOnly, referenceElement: SVGElement | null): NodeListOf<SVGCircleElement | SVGEllipseElement | SVGImageElement | SVGLineElement | SVGPathElement | SVGPolygonElement | SVGPolylineElement | SVGRectElement | SVGTextElement | SVGUseElement>;\n getIntersectionList(rect: DOMRectReadOnly, referenceElement: SVGElement | null): NodeListOf<SVGCircleElement | SVGEllipseElement | SVGImageElement | SVGLineElement | SVGPathElement | SVGPolygonElement | SVGPolylineElement | SVGRectElement | SVGTextElement | SVGUseElement>;\n /**\n * The `pauseAnimations()` method of the SVGSVGElement interface suspends (i.e., pauses) all currently running animations that are defined within the SVG document fragment corresponding to this svg element, causing the animation clock corresponding to this document fragment to stand still until it is unpaused.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGSVGElement/pauseAnimations)\n */\n pauseAnimations(): void;\n /**\n * The `setCurrentTime()` method of the SVGSVGElement interface adjusts the clock for this SVG document fragment, establishing a new current time.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGSVGElement/setCurrentTime)\n */\n setCurrentTime(seconds: number): void;\n /** @deprecated */\n suspendRedraw(maxWaitMilliseconds: number): number;\n /**\n * The `unpauseAnimations()` method of the SVGSVGElement interface resumes (i.e., unpauses) currently running animations that are defined within the SVG document fragment, causing the animation clock to continue from the time at which it was suspended.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGSVGElement/unpauseAnimations)\n */\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};\n\n/**\n * The **`SVGScriptElement`** interface corresponds to the SVG script element.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGScriptElement)\n */\ninterface SVGScriptElement extends SVGElement, SVGURIReference {\n /**\n * The **`type`** read-only property of the SVGScriptElement interface reflects the type attribute of the given script element.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGScriptElement/type)\n */\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/**\n * The **`SVGSetElement`** interface corresponds to the set element.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGSetElement)\n */\ninterface SVGSetElement extends SVGAnimationElement {\n addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGSetElement, 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: SVGSetElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\ndeclare var SVGSetElement: {\n prototype: SVGSetElement;\n new(): SVGSetElement;\n};\n\n/**\n * The **`SVGStopElement`** interface corresponds to the stop element.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGStopElement)\n */\ninterface SVGStopElement extends SVGElement {\n /**\n * The **`offset`** read-only property of the SVGStopElement interface reflects the offset attribute of the given stop element.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGStopElement/offset)\n */\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/**\n * The **`SVGStringList`** interface defines a list of strings.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGStringList)\n */\ninterface SVGStringList {\n /**\n * The **`length`** property of the SVGStringList interface returns the number of items in the list.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGStringList/length)\n */\n readonly length: number;\n /**\n * The **`numberOfItems`** property of the SVGStringList interface returns the number of items in the list.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGStringList/numberOfItems)\n */\n readonly numberOfItems: number;\n /**\n * The **`appendItem()`** method of the SVGStringList interface inserts a new item at the end of the list.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGStringList/appendItem)\n */\n appendItem(newItem: string): string;\n /**\n * The **`clear()`** method of the SVGStringList interface clears all existing items from the list, with the result being an empty list.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGStringList/clear)\n */\n clear(): void;\n /**\n * The **`getItem()`** method of the SVGStringList interface returns the specified item from the list.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGStringList/getItem)\n */\n getItem(index: number): string;\n /**\n * The **`initialize()`** method of the SVGStringList interface clears all existing items from the list and re-initializes the list to hold the single item specified by the parameter.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGStringList/initialize)\n */\n initialize(newItem: string): string;\n /**\n * The **`insertItemBefore()`** method of the SVGStringList interface inserts a new item into the list at the specified position.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGStringList/insertItemBefore)\n */\n insertItemBefore(newItem: string, index: number): string;\n /**\n * The **`removeItem()`** method of the SVGStringList interface removes an existing item at the given index from the list.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGStringList/removeItem)\n */\n removeItem(index: number): string;\n /**\n * The **`replaceItem()`** method of the SVGStringList interface replaces an existing item in the list with a new item.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGStringList/replaceItem)\n */\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/**\n * The **`SVGStyleElement`** interface corresponds to the SVG style element.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGStyleElement)\n */\ninterface SVGStyleElement extends SVGElement, LinkStyle {\n disabled: boolean;\n /**\n * The **`SVGStyleElement.media`** property is a media query string corresponding to the `media` attribute of the given SVG style element.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGStyleElement/media)\n */\n media: string;\n /**\n * The **`SVGStyleElement.title`** property is a string corresponding to the `title` attribute of the given SVG style element.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGStyleElement/title)\n */\n title: string;\n /**\n * The **`SVGStyleElement.type`** property returns the type of the current style.\n * @deprecated\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGStyleElement/type)\n */\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/**\n * The **`SVGSwitchElement`** interface corresponds to the switch element.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGSwitchElement)\n */\ninterface SVGSwitchElement extends SVGGraphicsElement {\n addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGSwitchElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n removeEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGSwitchElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\ndeclare var SVGSwitchElement: {\n prototype: SVGSwitchElement;\n new(): SVGSwitchElement;\n};\n\n/**\n * The **`SVGSymbolElement`** interface corresponds to the symbol element.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGSymbolElement)\n */\ninterface SVGSymbolElement extends SVGElement, SVGFitToViewBox {\n addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGSymbolElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n removeEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGSymbolElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\ndeclare var SVGSymbolElement: {\n prototype: SVGSymbolElement;\n new(): SVGSymbolElement;\n};\n\n/**\n * The **`SVGTSpanElement`** interface represents a tspan element.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGTSpanElement)\n */\ninterface SVGTSpanElement extends SVGTextPositioningElement {\n addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGTSpanElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n removeEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGTSpanElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\ndeclare var SVGTSpanElement: {\n prototype: SVGTSpanElement;\n new(): SVGTSpanElement;\n};\n\ninterface SVGTests {\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGAnimationElement/requiredExtensions) */\n readonly requiredExtensions: SVGStringList;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGAnimationElement/systemLanguage) */\n readonly systemLanguage: SVGStringList;\n}\n\n/**\n * The **`SVGTextContentElement`** interface is implemented by elements that support rendering child text content.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGTextContentElement)\n */\ninterface SVGTextContentElement extends SVGGraphicsElement {\n /**\n * The **`lengthAdjust`** read-only property of the SVGTextContentElement interface reflects the lengthAdjust attribute of the given element.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGTextContentElement/lengthAdjust)\n */\n readonly lengthAdjust: SVGAnimatedEnumeration;\n /**\n * The **`textLength`** read-only property of the SVGTextContentElement interface reflects the textLength attribute of the given element.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGTextContentElement/textLength)\n */\n readonly textLength: SVGAnimatedLength;\n /**\n * The `getCharNumAtPosition()` method of the SVGTextContentElement interface represents the character which caused a text glyph to be rendered at a given position in the coordinate system.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGTextContentElement/getCharNumAtPosition)\n */\n getCharNumAtPosition(point?: DOMPointInit): number;\n /**\n * The `getComputedTextLength()` method of the SVGTextContentElement interface represents the computed length for the text within the element.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGTextContentElement/getComputedTextLength)\n */\n getComputedTextLength(): number;\n /**\n * The `getEndPositionOfChar()` method of the SVGTextContentElement interface returns the trailing position of a typographic character after text layout has been performed.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGTextContentElement/getEndPositionOfChar)\n */\n getEndPositionOfChar(charnum: number): DOMPoint;\n /**\n * The `getExtentOfChar()` method of the SVGTextContentElement interface the represents computed tight bounding box of the glyph cell that corresponds to a given typographic character.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGTextContentElement/getExtentOfChar)\n */\n getExtentOfChar(charnum: number): DOMRect;\n /**\n * The `getNumberOfChars()` method of the SVGTextContentElement interface represents the total number of addressable characters available for rendering within the current element, regardless of whether they will be rendered.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGTextContentElement/getNumberOfChars)\n */\n getNumberOfChars(): number;\n /**\n * The `getRotationOfChar()` method of the SVGTextContentElement interface the represents the rotation of a typographic character.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGTextContentElement/getRotationOfChar)\n */\n getRotationOfChar(charnum: number): number;\n /**\n * The `getStartPositionOfChar()` method of the SVGTextContentElement interface returns the position of a typographic character after text layout has been performed.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGTextContentElement/getStartPositionOfChar)\n */\n getStartPositionOfChar(charnum: number): DOMPoint;\n /**\n * The `getSubStringLength()` method of the SVGTextContentElement interface represents the computed length of the formatted text advance distance for a substring of text within the element.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGTextContentElement/getSubStringLength)\n */\n getSubStringLength(charnum: number, nchars: number): number;\n /** @deprecated */\n selectSubString(charnum: number, nchars: number): void;\n readonly LENGTHADJUST_UNKNOWN: 0;\n readonly LENGTHADJUST_SPACING: 1;\n readonly LENGTHADJUST_SPACINGANDGLYPHS: 2;\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_UNKNOWN: 0;\n readonly LENGTHADJUST_SPACING: 1;\n readonly LENGTHADJUST_SPACINGANDGLYPHS: 2;\n};\n\n/**\n * The **`SVGTextElement`** interface corresponds to the text elements.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGTextElement)\n */\ninterface SVGTextElement extends SVGTextPositioningElement {\n addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGTextElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n removeEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGTextElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\ndeclare var SVGTextElement: {\n prototype: SVGTextElement;\n new(): SVGTextElement;\n};\n\n/**\n * The **`SVGTextPathElement`** interface corresponds to the textPath element.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGTextPathElement)\n */\ninterface SVGTextPathElement extends SVGTextContentElement, SVGURIReference {\n /**\n * The **`method`** read-only property of the SVGTextPathElement interface reflects the method attribute of the given textPath element.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGTextPathElement/method)\n */\n readonly method: SVGAnimatedEnumeration;\n /**\n * The **`spacing`** read-only property of the SVGTextPathElement interface reflects the spacing attribute of the given textPath element.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGTextPathElement/spacing)\n */\n readonly spacing: SVGAnimatedEnumeration;\n /**\n * The **`startOffset`** read-only property of the SVGTextPathElement interface reflects the X component of the startOffset attribute of the given textPath, which defines an offset from the start of the path for the initial current text position along the path after converting the path to the `<textPath>` element\'s coordinate system.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGTextPathElement/startOffset)\n */\n readonly startOffset: SVGAnimatedLength;\n readonly TEXTPATH_METHODTYPE_UNKNOWN: 0;\n readonly TEXTPATH_METHODTYPE_ALIGN: 1;\n readonly TEXTPATH_METHODTYPE_STRETCH: 2;\n readonly TEXTPATH_SPACINGTYPE_UNKNOWN: 0;\n readonly TEXTPATH_SPACINGTYPE_AUTO: 1;\n readonly TEXTPATH_SPACINGTYPE_EXACT: 2;\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_UNKNOWN: 0;\n readonly TEXTPATH_METHODTYPE_ALIGN: 1;\n readonly TEXTPATH_METHODTYPE_STRETCH: 2;\n readonly TEXTPATH_SPACINGTYPE_UNKNOWN: 0;\n readonly TEXTPATH_SPACINGTYPE_AUTO: 1;\n readonly TEXTPATH_SPACINGTYPE_EXACT: 2;\n};\n\n/**\n * The **`SVGTextPositioningElement`** interface is implemented by elements that support attributes that position individual text glyphs.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGTextPositioningElement)\n */\ninterface SVGTextPositioningElement extends SVGTextContentElement {\n /**\n * The **`dx`** read-only property of the SVGTextPositioningElement interface describes the x-axis coordinate of the SVGTextElement or SVGTSpanElement as an SVGAnimatedLengthList.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGTextPositioningElement/dx)\n */\n readonly dx: SVGAnimatedLengthList;\n /**\n * The **`dy`** read-only property of the SVGTextPositioningElement interface describes the y-axis coordinate of the SVGTextElement or SVGTSpanElement as an SVGAnimatedLengthList.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGTextPositioningElement/dy)\n */\n readonly dy: SVGAnimatedLengthList;\n /**\n * The **`rotate`** read-only property of the SVGTextPositioningElement interface reflects the rotation of individual text glyphs, as specified by the rotate attribute of the given element.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGTextPositioningElement/rotate)\n */\n readonly rotate: SVGAnimatedNumberList;\n /**\n * The **`x`** read-only property of the SVGTextPositioningElement interface describes the x-axis coordinate of the SVGTextElement or SVGTSpanElement as an SVGAnimatedLengthList.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGTextPositioningElement/x)\n */\n readonly x: SVGAnimatedLengthList;\n /**\n * The **`y`** read-only property of the SVGTextPositioningElement interface describes the y-axis coordinate of the SVGTextElement or SVGTSpanElement as an SVGAnimatedLengthList.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGTextPositioningElement/y)\n */\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/**\n * The **`SVGTitleElement`** interface corresponds to the title element.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGTitleElement)\n */\ninterface SVGTitleElement extends SVGElement {\n addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGTitleElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n removeEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGTitleElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\ndeclare var SVGTitleElement: {\n prototype: SVGTitleElement;\n new(): SVGTitleElement;\n};\n\n/**\n * The **`SVGTransform`** interface reflects 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.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGTransform)\n */\ninterface SVGTransform {\n /**\n * The **`angle`** read-only property of the SVGTransform interface represents the angle of the transformation in degrees.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGTransform/angle)\n */\n readonly angle: number;\n /**\n * The **`matrix`** read-only property of the SVGTransform interface represents the transformation matrix that corresponds to the transformation `type`.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGTransform/matrix)\n */\n readonly matrix: DOMMatrix;\n /**\n * The **`type`** read-only property of the SVGTransform interface represents the `type` of transformation applied, specified by one of the `SVG_TRANSFORM_*` constants defined on this interface.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGTransform/type)\n */\n readonly type: number;\n /**\n * The `setMatrix()` method of the SVGTransform interface sets the transform type to `SVG_TRANSFORM_MATRIX`, with parameter `matrix` defining the new transformation.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGTransform/setMatrix)\n */\n setMatrix(matrix?: DOMMatrix2DInit): void;\n /**\n * The `setRotate()` method of the SVGTransform interface sets the transform type to `SVG_TRANSFORM_ROTATE`, with parameter `angle` defining the rotation angle and parameters `cx` and `cy` defining the optional center of rotation.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGTransform/setRotate)\n */\n setRotate(angle: number, cx: number, cy: number): void;\n /**\n * The `setScale()` method of the SVGTransform interface sets the transform type to `SVG_TRANSFORM_SCALE`, with parameters `sx` and `sy` defining the scale amounts.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGTransform/setScale)\n */\n setScale(sx: number, sy: number): void;\n /**\n * The `setSkewX()` method of the SVGTransform interface sets the transform type to `SVG_TRANSFORM_SKEWX`, with parameter `angle` defining the amount of skew along the X-axis.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGTransform/setSkewX)\n */\n setSkewX(angle: number): void;\n /**\n * The `setSkewY()` method of the SVGTransform interface sets the transform type to `SVG_TRANSFORM_SKEWY`, with parameter `angle` defining the amount of skew along the Y-axis.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGTransform/setSkewY)\n */\n setSkewY(angle: number): void;\n /**\n * The `setTranslate()` method of the SVGTransform interface sets the transform type to `SVG_TRANSFORM_TRANSLATE`, with parameters `tx` and `ty` defining the translation amounts.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGTransform/setTranslate)\n */\n setTranslate(tx: number, ty: number): void;\n readonly SVG_TRANSFORM_UNKNOWN: 0;\n readonly SVG_TRANSFORM_MATRIX: 1;\n readonly SVG_TRANSFORM_TRANSLATE: 2;\n readonly SVG_TRANSFORM_SCALE: 3;\n readonly SVG_TRANSFORM_ROTATE: 4;\n readonly SVG_TRANSFORM_SKEWX: 5;\n readonly SVG_TRANSFORM_SKEWY: 6;\n}\n\ndeclare var SVGTransform: {\n prototype: SVGTransform;\n new(): SVGTransform;\n readonly SVG_TRANSFORM_UNKNOWN: 0;\n readonly SVG_TRANSFORM_MATRIX: 1;\n readonly SVG_TRANSFORM_TRANSLATE: 2;\n readonly SVG_TRANSFORM_SCALE: 3;\n readonly SVG_TRANSFORM_ROTATE: 4;\n readonly SVG_TRANSFORM_SKEWX: 5;\n readonly SVG_TRANSFORM_SKEWY: 6;\n};\n\n/**\n * The **`SVGTransformList`** interface defines a list of SVGTransform objects.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGTransformList)\n */\ninterface SVGTransformList {\n /**\n * The **`length`** read-only property of the SVGTransformList interface represents the number of items in the list.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGTransformList/length)\n */\n readonly length: number;\n /**\n * The **`numberOfItems`** read-only property of the SVGTransformList interface represents the number of items in the list.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGTransformList/numberOfItems)\n */\n readonly numberOfItems: number;\n /**\n * The `appendItem()` method of the SVGTransformList interface inserts a new item at the end of the list.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGTransformList/appendItem)\n */\n appendItem(newItem: SVGTransform): SVGTransform;\n /**\n * The `clear()` method of the SVGTransformList interface clears all existing current items from the list, with the result being an empty list.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGTransformList/clear)\n */\n clear(): void;\n /**\n * The `consolidate()` method of the SVGTransformList interface consolidates the list of separate SVGTransform objects by multiplying the equivalent transformation matrices together to result in a list consisting of a single `SVGTransform` object of type `SVG_TRANSFORM_MATRIX`.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGTransformList/consolidate)\n */\n consolidate(): SVGTransform | null;\n /**\n * The `createSVGTransformFromMatrix()` method of the SVGTransformList interface creates an SVGTransform object which is initialized to a transform of type `SVG_TRANSFORM_MATRIX` and whose values are the given matrix.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGTransformList/createSVGTransformFromMatrix)\n */\n createSVGTransformFromMatrix(matrix?: DOMMatrix2DInit): SVGTransform;\n /**\n * The `getItem()` method of the SVGTransformList interface returns the specified item from the list.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGTransformList/getItem)\n */\n getItem(index: number): SVGTransform;\n /**\n * The `initialize()` method of the SVGTransformList interface clears all existing current items from the list and re-initializes the list to hold the single item specified by the parameter.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGTransformList/initialize)\n */\n initialize(newItem: SVGTransform): SVGTransform;\n /**\n * The `insertItemBefore()` method of the SVGTransformList interface inserts a new item into the list at the specified position.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGTransformList/insertItemBefore)\n */\n insertItemBefore(newItem: SVGTransform, index: number): SVGTransform;\n /**\n * The `removeItem()` method of the SVGTransformList interface removes an existing item from the list.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGTransformList/removeItem)\n */\n removeItem(index: number): SVGTransform;\n /**\n * The `replaceItem()` method of the SVGTransformList interface replaces an existing item in the list with a new item.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGTransformList/replaceItem)\n */\n replaceItem(newItem: SVGTransform, index: number): SVGTransform;\n [index: number]: SVGTransform;\n}\n\ndeclare var SVGTransformList: {\n prototype: SVGTransformList;\n new(): SVGTransformList;\n};\n\ninterface SVGURIReference {\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGAElement/href) */\n readonly href: SVGAnimatedString;\n}\n\n/**\n * The **`SVGUnitTypes`** interface defines a commonly used set of constants used for reflecting gradientUnits, patternContentUnits and other similar attributes.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGUnitTypes)\n */\ninterface SVGUnitTypes {\n readonly SVG_UNIT_TYPE_UNKNOWN: 0;\n readonly SVG_UNIT_TYPE_USERSPACEONUSE: 1;\n readonly SVG_UNIT_TYPE_OBJECTBOUNDINGBOX: 2;\n}\n\ndeclare var SVGUnitTypes: {\n prototype: SVGUnitTypes;\n new(): SVGUnitTypes;\n readonly SVG_UNIT_TYPE_UNKNOWN: 0;\n readonly SVG_UNIT_TYPE_USERSPACEONUSE: 1;\n readonly SVG_UNIT_TYPE_OBJECTBOUNDINGBOX: 2;\n};\n\n/**\n * The **`SVGUseElement`** interface corresponds to the use element.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGUseElement)\n */\ninterface SVGUseElement extends SVGGraphicsElement, SVGURIReference {\n /**\n * The **`height`** read-only property of the SVGUseElement interface describes the height of the referenced element as an SVGAnimatedLength.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGUseElement/height)\n */\n readonly height: SVGAnimatedLength;\n /**\n * The **`width`** read-only property of the SVGUseElement interface describes the width of the referenced element as an SVGAnimatedLength.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGUseElement/width)\n */\n readonly width: SVGAnimatedLength;\n /**\n * The **`x`** read-only property of the SVGUseElement interface describes the x-axis coordinate of the start point of the referenced element as an SVGAnimatedLength.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGUseElement/x)\n */\n readonly x: SVGAnimatedLength;\n /**\n * The **`y`** read-only property of the SVGUseElement interface describes the y-axis coordinate of the start point of the referenced element as an SVGAnimatedLength.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGUseElement/y)\n */\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/**\n * The **`SVGViewElement`** interface provides access to the properties of view elements, as well as methods to manipulate them.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGViewElement)\n */\ninterface SVGViewElement extends SVGElement, SVGFitToViewBox {\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};\n\n/**\n * The `Screen` interface represents a screen, usually the one on which the current window is being rendered, and is obtained using window.screen.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Screen)\n */\ninterface Screen {\n /**\n * The read-only Screen interface\'s **`availHeight`** property returns the height, in CSS pixels, of the space available for Web content on the screen.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Screen/availHeight)\n */\n readonly availHeight: number;\n /**\n * The **`Screen.availWidth`** property returns the amount of horizontal space (in CSS pixels) available to the window.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Screen/availWidth)\n */\n readonly availWidth: number;\n /**\n * The **`Screen.colorDepth`** read-only property returns the color depth of the screen.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Screen/colorDepth)\n */\n readonly colorDepth: number;\n /**\n * The **`Screen.height`** read-only property returns the height of the screen in CSS pixels.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Screen/height)\n */\n readonly height: number;\n /**\n * The **`orientation`** read-only property of the An instance of ScreenOrientation representing the orientation of the screen.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Screen/orientation)\n */\n readonly orientation: ScreenOrientation;\n /**\n * Returns the bit depth of the screen.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Screen/pixelDepth)\n */\n readonly pixelDepth: number;\n /**\n * The **`Screen.width`** read-only property returns the width of the screen in CSS pixels.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Screen/width)\n */\n readonly width: number;\n}\n\ndeclare var Screen: {\n prototype: Screen;\n new(): Screen;\n};\n\ninterface ScreenOrientationEventMap {\n "change": Event;\n}\n\n/**\n * The **`ScreenOrientation`** interface of the Screen Orientation API provides information about the current orientation of the document.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ScreenOrientation)\n */\ninterface ScreenOrientation extends EventTarget {\n /**\n * The **`angle`** read-only property of the angle.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ScreenOrientation/angle)\n */\n readonly angle: number;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ScreenOrientation/change_event) */\n onchange: ((this: ScreenOrientation, ev: Event) => any) | null;\n /**\n * The **`type`** read-only property of the type, one of `portrait-primary`, `portrait-secondary`, `landscape-primary`, or `landscape-secondary`.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ScreenOrientation/type)\n */\n readonly type: OrientationType;\n /**\n * The **`unlock()`** method of the document from its default orientation.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ScreenOrientation/unlock)\n */\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/**\n * The `ScriptProcessorNode` interface allows the generation, processing, or analyzing of audio using JavaScript.\n * @deprecated As of the August 29 2014 Web Audio API spec publication, this feature has been marked as deprecated, and was replaced by AudioWorklet (see AudioWorkletNode).\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ScriptProcessorNode)\n */\ninterface ScriptProcessorNode extends AudioNode {\n /**\n * The `bufferSize` property of the ScriptProcessorNode interface returns an integer representing both the input and output buffer size, in sample-frames.\n * @deprecated\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ScriptProcessorNode/bufferSize)\n */\n readonly bufferSize: number;\n /**\n * @deprecated\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ScriptProcessorNode/audioprocess_event)\n */\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\n/** @deprecated */\ndeclare var ScriptProcessorNode: {\n prototype: ScriptProcessorNode;\n new(): ScriptProcessorNode;\n};\n\n/**\n * The **`SecurityPolicyViolationEvent`** interface inherits from Event, and represents the event object of a `securitypolicyviolation` event sent on an Element/securitypolicyviolation_event, Document/securitypolicyviolation_event, or WorkerGlobalScope/securitypolicyviolation_event when its Content Security Policy (CSP) is violated.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SecurityPolicyViolationEvent)\n */\ninterface SecurityPolicyViolationEvent extends Event {\n /**\n * The **`blockedURI`** read-only property of the SecurityPolicyViolationEvent interface is a string representing the URI of the resource that was blocked because it violates a Content Security Policy (CSP).\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SecurityPolicyViolationEvent/blockedURI)\n */\n readonly blockedURI: string;\n /**\n * The **`columnNumber`** read-only property of the SecurityPolicyViolationEvent interface is the column number in the document or worker script at which the Content Security Policy (CSP) violation occurred.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SecurityPolicyViolationEvent/columnNumber)\n */\n readonly columnNumber: number;\n /**\n * The **`disposition`** read-only property of the SecurityPolicyViolationEvent interface indicates how the violated Content Security Policy (CSP) is configured to be treated by the user agent.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SecurityPolicyViolationEvent/disposition)\n */\n readonly disposition: SecurityPolicyViolationEventDisposition;\n /**\n * The **`documentURI`** read-only property of the SecurityPolicyViolationEvent interface is a string representing the URI of the document or worker in which the Content Security Policy (CSP) violation occurred.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SecurityPolicyViolationEvent/documentURI)\n */\n readonly documentURI: string;\n /**\n * The **`effectiveDirective`** read-only property of the SecurityPolicyViolationEvent interface is a string representing the Content Security Policy (CSP) directive that was violated.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SecurityPolicyViolationEvent/effectiveDirective)\n */\n readonly effectiveDirective: string;\n /**\n * The **`lineNumber`** read-only property of the SecurityPolicyViolationEvent interface is the line number in the document or worker script at which the Content Security Policy (CSP) violation occurred.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SecurityPolicyViolationEvent/lineNumber)\n */\n readonly lineNumber: number;\n /**\n * The **`originalPolicy`** read-only property of the SecurityPolicyViolationEvent interface is a string containing the Content Security Policy (CSP) whose enforcement uncovered the violation.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SecurityPolicyViolationEvent/originalPolicy)\n */\n readonly originalPolicy: string;\n /**\n * The **`referrer`** read-only property of the SecurityPolicyViolationEvent interface is a string representing the referrer for the resources whose Content Security Policy (CSP) was violated.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SecurityPolicyViolationEvent/referrer)\n */\n readonly referrer: string;\n /**\n * The **`sample`** read-only property of the SecurityPolicyViolationEvent interface is a string representing a sample of the resource that caused the Content Security Policy (CSP) violation.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SecurityPolicyViolationEvent/sample)\n */\n readonly sample: string;\n /**\n * The **`sourceFile`** read-only property of the SecurityPolicyViolationEvent interface is a string representing the URL of the script in which the Content Security Policy (CSP) violation occurred.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SecurityPolicyViolationEvent/sourceFile)\n */\n readonly sourceFile: string;\n /**\n * The **`statusCode`** read-only property of the SecurityPolicyViolationEvent interface is a number representing the HTTP status code of the window or worker in which the Content Security Policy (CSP) violation occurred.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SecurityPolicyViolationEvent/statusCode)\n */\n readonly statusCode: number;\n /**\n * The **`violatedDirective`** read-only property of the SecurityPolicyViolationEvent interface is a string representing the Content Security Policy (CSP) directive that was violated.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SecurityPolicyViolationEvent/violatedDirective)\n */\n readonly violatedDirective: string;\n}\n\ndeclare var SecurityPolicyViolationEvent: {\n prototype: SecurityPolicyViolationEvent;\n new(type: string, eventInitDict?: SecurityPolicyViolationEventInit): SecurityPolicyViolationEvent;\n};\n\n/**\n * A **`Selection`** object represents the range of text selected by the user or the current position of the caret.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Selection)\n */\ninterface Selection {\n /**\n * The **`Selection.anchorNode`** read-only property returns the Node in which the selection begins.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Selection/anchorNode)\n */\n readonly anchorNode: Node | null;\n /**\n * The **`Selection.anchorOffset`** read-only property returns the number of characters that the selection\'s anchor is offset within the In the case of Selection.anchorNode being another type of node, **`Selection.anchorOffset`** returns the number of Node.childNodes the selection\'s anchor is offset within the Selection.anchorNode.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Selection/anchorOffset)\n */\n readonly anchorOffset: number;\n /**\n * The **`direction`** read-only property of the Selection interface is a string that provides the direction of the current selection.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Selection/direction)\n */\n readonly direction: string;\n /**\n * The **`Selection.focusNode`** read-only property returns the Node in which the selection ends.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Selection/focusNode)\n */\n readonly focusNode: Node | null;\n /**\n * The **`Selection.focusOffset`** read-only property returns the number of characters that the selection\'s focus is offset within the In the case of Selection.focusNode being another type of node, **`Selection.focusOffset`** returns the number of Node.childNodes the selection\'s focus is offset within the Selection.focusNode.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Selection/focusOffset)\n */\n readonly focusOffset: number;\n /**\n * The **`Selection.isCollapsed`** read-only property returns a boolean value which indicates whether or not there is currently any text selected.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Selection/isCollapsed)\n */\n readonly isCollapsed: boolean;\n /**\n * The **`Selection.rangeCount`** read-only property returns the number of ranges in the selection.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Selection/rangeCount)\n */\n readonly rangeCount: number;\n /**\n * The **`type`** read-only property of the type of the current selection.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Selection/type)\n */\n readonly type: string;\n /**\n * The **`Selection.addRange()`** method adds a ```js-nolint addRange(range) ``` - `range` - : A Range object that will be added to the Selection.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Selection/addRange)\n */\n addRange(range: Range): void;\n /**\n * The **`Selection.collapse()`** method collapses the current selection to a single point.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Selection/collapse)\n */\n collapse(node: Node | null, offset?: number): void;\n /**\n * The **`Selection.collapseToEnd()`** method collapses the selection to the end of the last range in the selection.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Selection/collapseToEnd)\n */\n collapseToEnd(): void;\n /**\n * The **`Selection.collapseToStart()`** method collapses the selection to the start of the first range in the selection.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Selection/collapseToStart)\n */\n collapseToStart(): void;\n /**\n * The **`Selection.containsNode()`** method indicates whether a specified node is part of the selection.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Selection/containsNode)\n */\n containsNode(node: Node, allowPartialContainment?: boolean): boolean;\n /**\n * The **`deleteFromDocument()`** method of the ```js-nolint deleteFromDocument() ``` None.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Selection/deleteFromDocument)\n */\n deleteFromDocument(): void;\n /**\n * The **`Selection.empty()`** method removes all ranges from the selection, leaving the Selection.anchorNode and Selection.focusNode properties equal to `null` and nothing selected.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Selection/empty)\n */\n empty(): void;\n /**\n * The **`Selection.extend()`** method moves the focus of the selection to a specified point.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Selection/extend)\n */\n extend(node: Node, offset?: number): void;\n /**\n * The **`Selection.getComposedRanges()`** method returns an array of StaticRange objects representing the current selection ranges, and can return ranges that potentially cross shadow boundaries.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Selection/getComposedRanges)\n */\n getComposedRanges(options?: GetComposedRangesOptions): StaticRange[];\n /**\n * The **`getRangeAt()`** method of the Selection interface returns a range object representing a currently selected range.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Selection/getRangeAt)\n */\n getRangeAt(index: number): Range;\n /**\n * The **`Selection.modify()`** method applies a change to the current selection or cursor position, using simple textual commands.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Selection/modify)\n */\n modify(alter?: string, direction?: string, granularity?: string): void;\n /**\n * The **`Selection.removeAllRanges()`** method removes all ranges from the selection, leaving the Selection.anchorNode and Selection.focusNode properties equal to `null` and nothing selected.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Selection/removeAllRanges)\n */\n removeAllRanges(): void;\n /**\n * The **`Selection.removeRange()`** method removes a range from a selection.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Selection/removeRange)\n */\n removeRange(range: Range): void;\n /**\n * The **`Selection.selectAllChildren()`** method adds all the children of the specified node to the selection.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Selection/selectAllChildren)\n */\n selectAllChildren(node: Node): void;\n /**\n * The **`setBaseAndExtent()`** method of the Selection interface sets the selection to be a range including all or parts of two specified DOM nodes, and any content located between them.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Selection/setBaseAndExtent)\n */\n setBaseAndExtent(anchorNode: Node, anchorOffset: number, focusNode: Node, focusOffset: number): void;\n /**\n * The **`Selection.setPosition()`** method collapses the current selection to a single point.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Selection/setPosition)\n */\n setPosition(node: Node | null, offset?: number): void;\n toString(): string;\n}\n\ndeclare var Selection: {\n prototype: Selection;\n new(): Selection;\n};\n\ninterface ServiceWorkerEventMap extends AbstractWorkerEventMap {\n "statechange": Event;\n}\n\n/**\n * The **`ServiceWorker`** interface of the Service Worker API provides a reference to a service worker.\n * Available only in secure contexts.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ServiceWorker)\n */\ninterface ServiceWorker extends EventTarget, AbstractWorker {\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ServiceWorker/statechange_event) */\n onstatechange: ((this: ServiceWorker, ev: Event) => any) | null;\n /**\n * Returns the `ServiceWorker` serialized script URL defined as part of `ServiceWorkerRegistration`.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ServiceWorker/scriptURL)\n */\n readonly scriptURL: string;\n /**\n * The **`state`** read-only property of the of the service worker.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ServiceWorker/state)\n */\n readonly state: ServiceWorkerState;\n /**\n * The **`postMessage()`** method of the ServiceWorker interface sends a message to the worker.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ServiceWorker/postMessage)\n */\n postMessage(message: any, transfer: Transferable[]): void;\n postMessage(message: any, options?: StructuredSerializeOptions): 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/**\n * The **`ServiceWorkerContainer`** interface of the Service Worker 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.\n * Available only in secure contexts.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ServiceWorkerContainer)\n */\ninterface ServiceWorkerContainer extends EventTarget {\n /**\n * The **`controller`** read-only property of the ServiceWorkerContainer interface returns a `activated` (the same object returned by `null` if the request is a force refresh (_Shift_ + refresh) or if there is no active worker.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ServiceWorkerContainer/controller)\n */\n readonly controller: ServiceWorker | null;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ServiceWorkerContainer/controllerchange_event) */\n oncontrollerchange: ((this: ServiceWorkerContainer, ev: Event) => any) | null;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ServiceWorkerContainer/message_event) */\n onmessage: ((this: ServiceWorkerContainer, ev: MessageEvent) => any) | null;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ServiceWorkerContainer/messageerror_event) */\n onmessageerror: ((this: ServiceWorkerContainer, ev: MessageEvent) => any) | null;\n /**\n * The **`ready`** read-only property of the ServiceWorkerContainer interface provides a way of delaying code execution until a service worker is active.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ServiceWorkerContainer/ready)\n */\n readonly ready: Promise<ServiceWorkerRegistration>;\n /**\n * The **`getRegistration()`** method of the client URL.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ServiceWorkerContainer/getRegistration)\n */\n getRegistration(clientURL?: string | URL): Promise<ServiceWorkerRegistration | undefined>;\n /**\n * The **`getRegistrations()`** method of the `ServiceWorkerContainer`, in an array.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ServiceWorkerContainer/getRegistrations)\n */\n getRegistrations(): Promise<ReadonlyArray<ServiceWorkerRegistration>>;\n /**\n * The **`register()`** method of the ServiceWorkerContainer interface creates or updates a ServiceWorkerRegistration for the given scope.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ServiceWorkerContainer/register)\n */\n register(scriptURL: string | URL, options?: RegistrationOptions): Promise<ServiceWorkerRegistration>;\n /**\n * The **`startMessages()`** method of the ServiceWorkerContainer interface explicitly starts the flow of messages being dispatched from a service worker to pages under its control (e.g., sent via Client.postMessage()).\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ServiceWorkerContainer/startMessages)\n */\n startMessages(): void;\n addEventListener<K extends keyof ServiceWorkerContainerEventMap>(type: K, listener: (this: ServiceWorkerContainer, ev: ServiceWorkerContainerEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n removeEventListener<K extends keyof ServiceWorkerContainerEventMap>(type: K, listener: (this: ServiceWorkerContainer, ev: ServiceWorkerContainerEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\ndeclare var ServiceWorkerContainer: {\n prototype: ServiceWorkerContainer;\n new(): ServiceWorkerContainer;\n};\n\ninterface ServiceWorkerRegistrationEventMap {\n "updatefound": Event;\n}\n\n/**\n * The **`ServiceWorkerRegistration`** interface of the Service Worker API represents the service worker registration.\n * Available only in secure contexts.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ServiceWorkerRegistration)\n */\ninterface ServiceWorkerRegistration extends EventTarget {\n /**\n * The **`active`** read-only property of the This property is initially set to `null`.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ServiceWorkerRegistration/active)\n */\n readonly active: ServiceWorker | null;\n /**\n * The **`cookies`** read-only property of the ServiceWorkerRegistration interface returns a reference to the CookieStoreManager interface, which enables a web app to subscribe to and unsubscribe from cookie change events in a service worker.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ServiceWorkerRegistration/cookies)\n */\n readonly cookies: CookieStoreManager;\n /**\n * The **`installing`** read-only property of the initially set to `null`.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ServiceWorkerRegistration/installing)\n */\n readonly installing: ServiceWorker | null;\n /**\n * The **`navigationPreload`** read-only property of the ServiceWorkerRegistration interface returns the NavigationPreloadManager associated with the current service worker registration.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ServiceWorkerRegistration/navigationPreload)\n */\n readonly navigationPreload: NavigationPreloadManager;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ServiceWorkerRegistration/updatefound_event) */\n onupdatefound: ((this: ServiceWorkerRegistration, ev: Event) => any) | null;\n /**\n * The **`pushManager`** read-only property of the support for subscribing, getting an active subscription, and accessing push permission status.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ServiceWorkerRegistration/pushManager)\n */\n readonly pushManager: PushManager;\n /**\n * The **`scope`** read-only property of the ServiceWorkerRegistration interface returns a string representing a URL that defines a service worker\'s registration scope; that is, the range of URLs a service worker can control.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ServiceWorkerRegistration/scope)\n */\n readonly scope: string;\n /**\n * The **`updateViaCache`** read-only property of the ServiceWorkerRegistration interface returns the value of the setting used to determine the circumstances in which the browser will consult the HTTP cache when it tries to update the service worker or any scripts that are imported via WorkerGlobalScope.importScripts.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ServiceWorkerRegistration/updateViaCache)\n */\n readonly updateViaCache: ServiceWorkerUpdateViaCache;\n /**\n * The **`waiting`** read-only property of the set to `null`.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ServiceWorkerRegistration/waiting)\n */\n readonly waiting: ServiceWorker | null;\n /**\n * The **`getNotifications()`** method of the ServiceWorkerRegistration interface returns a list of the notifications in the order that they were created from the current origin via the current service worker registration.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ServiceWorkerRegistration/getNotifications)\n */\n getNotifications(filter?: GetNotificationOptions): Promise<Notification[]>;\n /**\n * The **`showNotification()`** method of the service worker.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ServiceWorkerRegistration/showNotification)\n */\n showNotification(title: string, options?: NotificationOptions): Promise<void>;\n /**\n * The **`unregister()`** method of the registration and returns a Promise.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ServiceWorkerRegistration/unregister)\n */\n unregister(): Promise<boolean>;\n /**\n * The **`update()`** method of the worker.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ServiceWorkerRegistration/update)\n */\n update(): Promise<ServiceWorkerRegistration>;\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 ShadowRootEventMap {\n "slotchange": Event;\n}\n\n/**\n * The **`ShadowRoot`** interface of the Shadow DOM API is the root node of a DOM subtree that is rendered separately from a document\'s main DOM tree.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ShadowRoot)\n */\ninterface ShadowRoot extends DocumentFragment, DocumentOrShadowRoot {\n /**\n * The **`clonable`** read-only property of the ShadowRoot interface returns `true` if the shadow root is clonable, and `false` otherwise.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ShadowRoot/clonable)\n */\n readonly clonable: boolean;\n /**\n * The **`delegatesFocus`** read-only property of the ShadowRoot interface returns `true` if the shadow root delegates focus, and `false` otherwise.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ShadowRoot/delegatesFocus)\n */\n readonly delegatesFocus: boolean;\n /**\n * The **`host`** read-only property of the ShadowRoot returns a reference to the DOM element the `ShadowRoot` is attached to.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ShadowRoot/host)\n */\n readonly host: Element;\n /**\n * The **`innerHTML`** property of the ShadowRoot interface sets gets or sets the HTML markup to the DOM tree inside the `ShadowRoot`.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ShadowRoot/innerHTML)\n */\n innerHTML: string;\n /**\n * The **`mode`** read-only property of the ShadowRoot specifies its mode — either `open` or `closed`.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ShadowRoot/mode)\n */\n readonly mode: ShadowRootMode;\n onslotchange: ((this: ShadowRoot, ev: Event) => any) | null;\n /**\n * The **`serializable`** read-only property of the ShadowRoot interface returns `true` if the shadow root is serializable.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ShadowRoot/serializable)\n */\n readonly serializable: boolean;\n /**\n * The read-only **`slotAssignment`** property of the ShadowRoot interface returns the _slot assignment mode_ for the shadow DOM tree.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ShadowRoot/slotAssignment)\n */\n readonly slotAssignment: SlotAssignmentMode;\n /**\n * The **`getHTML()`** method of the ShadowRoot interface is used to serialize a shadow root\'s DOM to an HTML string.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ShadowRoot/getHTML)\n */\n getHTML(options?: GetHTMLOptions): string;\n /**\n * The **`setHTMLUnsafe()`** method of the ShadowRoot interface can be used to parse a string of HTML into a DocumentFragment, optionally filtering out unwanted elements and attributes, and then use it to replace the existing tree in the Shadow DOM.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ShadowRoot/setHTMLUnsafe)\n */\n setHTMLUnsafe(html: string): void;\n addEventListener<K extends keyof ShadowRootEventMap>(type: K, listener: (this: ShadowRoot, ev: ShadowRootEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n removeEventListener<K extends keyof ShadowRootEventMap>(type: K, listener: (this: ShadowRoot, ev: ShadowRootEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\ndeclare var ShadowRoot: {\n prototype: ShadowRoot;\n new(): ShadowRoot;\n};\n\n/**\n * The **`SharedWorker`** interface represents a specific kind of worker that can be _accessed_ from several browsing contexts, such as several windows, iframes or even workers.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SharedWorker)\n */\ninterface SharedWorker extends EventTarget, AbstractWorker {\n /**\n * The **`port`** property of the SharedWorker interface returns a MessagePort object used to communicate and control the shared worker.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SharedWorker/port)\n */\n readonly port: MessagePort;\n addEventListener<K extends keyof AbstractWorkerEventMap>(type: K, listener: (this: SharedWorker, 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: SharedWorker, ev: AbstractWorkerEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\ndeclare var SharedWorker: {\n prototype: SharedWorker;\n new(scriptURL: string | URL, options?: string | WorkerOptions): SharedWorker;\n};\n\ninterface Slottable {\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/assignedSlot) */\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/**\n * The **`SourceBuffer`** interface represents a chunk of media to be passed into an HTMLMediaElement and played, via a MediaSource object.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SourceBuffer)\n */\ninterface SourceBuffer extends EventTarget {\n /**\n * The **`appendWindowEnd`** property of the timestamp range that can be used to filter what media data is appended to the `SourceBuffer`.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SourceBuffer/appendWindowEnd)\n */\n appendWindowEnd: number;\n /**\n * The **`appendWindowStart`** property of the timestamp range that can be used to filter what media data is appended to the `SourceBuffer`.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SourceBuffer/appendWindowStart)\n */\n appendWindowStart: number;\n /**\n * The **`buffered`** read-only property of the buffered in the `SourceBuffer` as a normalized TimeRanges object.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SourceBuffer/buffered)\n */\n readonly buffered: TimeRanges;\n /**\n * The **`mode`** property of the SourceBuffer interface controls whether media segments can be appended to the `SourceBuffer` in any order, or in a strict sequence.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SourceBuffer/mode)\n */\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 /**\n * The **`timestampOffset`** property of the media segments that are appended to the `SourceBuffer`.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SourceBuffer/timestampOffset)\n */\n timestampOffset: number;\n /**\n * The **`updating`** read-only property of the currently being updated — i.e., whether an SourceBuffer.appendBuffer() or SourceBuffer.remove() operation is currently in progress.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SourceBuffer/updating)\n */\n readonly updating: boolean;\n /**\n * The **`abort()`** method of the SourceBuffer interface aborts the current segment and resets the segment parser.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SourceBuffer/abort)\n */\n abort(): void;\n /**\n * The **`appendBuffer()`** method of the to the `SourceBuffer`.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SourceBuffer/appendBuffer)\n */\n appendBuffer(data: BufferSource): void;\n /**\n * The **`changeType()`** method of the data to conform to.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SourceBuffer/changeType)\n */\n changeType(type: string): void;\n /**\n * The **`remove()`** method of the SourceBuffer interface removes media segments within a specific time range from the `SourceBuffer`.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SourceBuffer/remove)\n */\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/**\n * The **`SourceBufferList`** interface represents a simple container list for multiple SourceBuffer objects.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SourceBufferList)\n */\ninterface SourceBufferList extends EventTarget {\n /**\n * The **`length`** read-only property of the An unsigned long number.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SourceBufferList/length)\n */\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\n/**\n * The **`SpeechRecognitionAlternative`** interface of the Web Speech API represents a single word that has been recognized by the speech recognition service.\n * Available only in secure contexts.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SpeechRecognitionAlternative)\n */\ninterface SpeechRecognitionAlternative {\n /**\n * The **`confidence`** read-only property of the confident the speech recognition system is that the recognition is correct.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SpeechRecognitionAlternative/confidence)\n */\n readonly confidence: number;\n /**\n * The **`transcript`** read-only property of the transcript of the recognized word(s).\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SpeechRecognitionAlternative/transcript)\n */\n readonly transcript: string;\n}\n\ndeclare var SpeechRecognitionAlternative: {\n prototype: SpeechRecognitionAlternative;\n new(): SpeechRecognitionAlternative;\n};\n\n/**\n * The **`SpeechRecognitionResult`** interface of the Web Speech API represents a single recognition match, which may contain multiple SpeechRecognitionAlternative objects.\n * Available only in secure contexts.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SpeechRecognitionResult)\n */\ninterface SpeechRecognitionResult {\n /**\n * The **`isFinal`** read-only property of the whether this result is final (`true`) or not (`false`) — if so, then this is the final time this result will be returned; if not, then this result is an interim result, and may be updated later on.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SpeechRecognitionResult/isFinal)\n */\n readonly isFinal: boolean;\n /**\n * The **`length`** read-only property of the — the number of SpeechRecognitionAlternative objects contained in the result (also referred to as \'n-best alternatives\'.) The number of alternatives contained in the result depends on what the recognition was first initiated.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SpeechRecognitionResult/length)\n */\n readonly length: number;\n /**\n * The **`item`** getter of the array syntax.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SpeechRecognitionResult/item)\n */\n item(index: number): SpeechRecognitionAlternative;\n [index: number]: SpeechRecognitionAlternative;\n}\n\ndeclare var SpeechRecognitionResult: {\n prototype: SpeechRecognitionResult;\n new(): SpeechRecognitionResult;\n};\n\n/**\n * The **`SpeechRecognitionResultList`** interface of the Web Speech API represents a list of SpeechRecognitionResult objects, or a single one if results are being captured in SpeechRecognition.continuous mode.\n * Available only in secure contexts.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SpeechRecognitionResultList)\n */\ninterface SpeechRecognitionResultList {\n /**\n * The **`length`** read-only property of the \'array\' — the number of SpeechRecognitionResult objects in the list.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SpeechRecognitionResultList/length)\n */\n readonly length: number;\n /**\n * The **`item`** getter of the syntax.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SpeechRecognitionResultList/item)\n */\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/**\n * The **`SpeechSynthesis`** interface of the Web Speech API 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.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SpeechSynthesis)\n */\ninterface SpeechSynthesis extends EventTarget {\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SpeechSynthesis/voiceschanged_event) */\n onvoiceschanged: ((this: SpeechSynthesis, ev: Event) => any) | null;\n /**\n * The **`paused`** read-only property of the `true` if the `SpeechSynthesis` object is in a paused state, or `false` if not.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SpeechSynthesis/paused)\n */\n readonly paused: boolean;\n /**\n * The **`pending`** read-only property of the `true` if the utterance queue contains as-yet-unspoken utterances.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SpeechSynthesis/pending)\n */\n readonly pending: boolean;\n /**\n * The **`speaking`** read-only property of the `true` if an utterance is currently in the process of being spoken — even if `SpeechSynthesis` is in a A boolean value.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SpeechSynthesis/speaking)\n */\n readonly speaking: boolean;\n /**\n * The **`cancel()`** method of the SpeechSynthesis interface removes all utterances from the utterance queue.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SpeechSynthesis/cancel)\n */\n cancel(): void;\n /**\n * The **`getVoices()`** method of the current device.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SpeechSynthesis/getVoices)\n */\n getVoices(): SpeechSynthesisVoice[];\n /**\n * The **`pause()`** method of the SpeechSynthesis interface puts the `SpeechSynthesis` object into a paused state.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SpeechSynthesis/pause)\n */\n pause(): void;\n /**\n * The **`resume()`** method of the SpeechSynthesis interface puts the `SpeechSynthesis` object into a non-paused state: resumes it if it was already paused.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SpeechSynthesis/resume)\n */\n resume(): void;\n /**\n * The **`speak()`** method of the SpeechSynthesis interface adds an SpeechSynthesisUtterance to the utterance queue; it will be spoken when any other utterances queued before it have been spoken.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SpeechSynthesis/speak)\n */\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\n/**\n * The **`SpeechSynthesisErrorEvent`** interface of the Web Speech API contains information about any errors that occur while processing SpeechSynthesisUtterance objects in the speech service.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SpeechSynthesisErrorEvent)\n */\ninterface SpeechSynthesisErrorEvent extends SpeechSynthesisEvent {\n /**\n * The **`error`** property of the A string containing the error reason.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SpeechSynthesisErrorEvent/error)\n */\n readonly error: SpeechSynthesisErrorCode;\n}\n\ndeclare var SpeechSynthesisErrorEvent: {\n prototype: SpeechSynthesisErrorEvent;\n new(type: string, eventInitDict: SpeechSynthesisErrorEventInit): SpeechSynthesisErrorEvent;\n};\n\n/**\n * The **`SpeechSynthesisEvent`** interface of the Web Speech API contains information about the current state of SpeechSynthesisUtterance objects that have been processed in the speech service.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SpeechSynthesisEvent)\n */\ninterface SpeechSynthesisEvent extends Event {\n /**\n * The **`charIndex`** read-only property of the SpeechSynthesisUtterance interface returns the index position of the character in SpeechSynthesisUtterance.text that was being spoken when the event was triggered.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SpeechSynthesisEvent/charIndex)\n */\n readonly charIndex: number;\n /**\n * The read-only **`charLength`** property of the SpeechSynthesisEvent interface returns the number of characters left to be spoken after the character at the SpeechSynthesisEvent.charIndex position.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SpeechSynthesisEvent/charLength)\n */\n readonly charLength: number;\n /**\n * The **`elapsedTime`** read-only property of the SpeechSynthesisEvent returns the elapsed time in seconds, after the SpeechSynthesisUtterance.text started being spoken, at which the event was triggered.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SpeechSynthesisEvent/elapsedTime)\n */\n readonly elapsedTime: number;\n /**\n * The **`name`** read-only property of the SpeechSynthesisUtterance interface returns the name associated with certain types of events occurring as the SpeechSynthesisUtterance.text is being spoken: the name of the SSML marker reached in the case of a SpeechSynthesisUtterance.mark_event event, or the type of boundary reached in the case of a SpeechSynthesisUtterance.boundary_event event.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SpeechSynthesisEvent/name)\n */\n readonly name: string;\n /**\n * The **`utterance`** read-only property of the SpeechSynthesisUtterance interface returns the SpeechSynthesisUtterance instance that the event was triggered on.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SpeechSynthesisEvent/utterance)\n */\n readonly utterance: SpeechSynthesisUtterance;\n}\n\ndeclare var SpeechSynthesisEvent: {\n prototype: SpeechSynthesisEvent;\n new(type: string, eventInitDict: SpeechSynthesisEventInit): 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/**\n * The **`SpeechSynthesisUtterance`** interface of the Web Speech API represents a speech request.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SpeechSynthesisUtterance)\n */\ninterface SpeechSynthesisUtterance extends EventTarget {\n /**\n * The **`lang`** property of the SpeechSynthesisUtterance interface gets and sets the language of the utterance.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SpeechSynthesisUtterance/lang)\n */\n lang: string;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SpeechSynthesisUtterance/boundary_event) */\n onboundary: ((this: SpeechSynthesisUtterance, ev: SpeechSynthesisEvent) => any) | null;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SpeechSynthesisUtterance/end_event) */\n onend: ((this: SpeechSynthesisUtterance, ev: SpeechSynthesisEvent) => any) | null;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SpeechSynthesisUtterance/error_event) */\n onerror: ((this: SpeechSynthesisUtterance, ev: SpeechSynthesisErrorEvent) => any) | null;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SpeechSynthesisUtterance/mark_event) */\n onmark: ((this: SpeechSynthesisUtterance, ev: SpeechSynthesisEvent) => any) | null;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SpeechSynthesisUtterance/pause_event) */\n onpause: ((this: SpeechSynthesisUtterance, ev: SpeechSynthesisEvent) => any) | null;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SpeechSynthesisUtterance/resume_event) */\n onresume: ((this: SpeechSynthesisUtterance, ev: SpeechSynthesisEvent) => any) | null;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SpeechSynthesisUtterance/start_event) */\n onstart: ((this: SpeechSynthesisUtterance, ev: SpeechSynthesisEvent) => any) | null;\n /**\n * The **`pitch`** property of the SpeechSynthesisUtterance interface gets and sets the pitch at which the utterance will be spoken at.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SpeechSynthesisUtterance/pitch)\n */\n pitch: number;\n /**\n * The **`rate`** property of the SpeechSynthesisUtterance interface gets and sets the speed at which the utterance will be spoken at.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SpeechSynthesisUtterance/rate)\n */\n rate: number;\n /**\n * The **`text`** property of the The text may be provided as plain text, or a well-formed SSML document.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SpeechSynthesisUtterance/text)\n */\n text: string;\n /**\n * The **`voice`** property of the SpeechSynthesisUtterance interface gets and sets the voice that will be used to speak the utterance.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SpeechSynthesisUtterance/voice)\n */\n voice: SpeechSynthesisVoice | null;\n /**\n * The **`volume`** property of the SpeechSynthesisUtterance interface gets and sets the volume that the utterance will be spoken at.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SpeechSynthesisUtterance/volume)\n */\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(text?: string): SpeechSynthesisUtterance;\n};\n\n/**\n * The **`SpeechSynthesisVoice`** interface of the Web Speech API represents a voice that the system supports.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SpeechSynthesisVoice)\n */\ninterface SpeechSynthesisVoice {\n /**\n * The **`default`** read-only property of the indicating whether the voice is the default voice for the current app (`true`), or not (`false`.) A boolean value.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SpeechSynthesisVoice/default)\n */\n readonly default: boolean;\n /**\n * The **`lang`** read-only property of the SpeechSynthesisVoice interface returns a BCP 47 language tag indicating the language of the voice.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SpeechSynthesisVoice/lang)\n */\n readonly lang: string;\n /**\n * The **`localService`** read-only property of the indicating whether the voice is supplied by a local speech synthesizer service (`true`), or a remote speech synthesizer service (`false`.) This property is provided to allow differentiation in the case that some voice options are provided by a remote service; it is possible that remote voices might have extra latency, bandwidth or cost associated with them, so such distinction may be useful.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SpeechSynthesisVoice/localService)\n */\n readonly localService: boolean;\n /**\n * The **`name`** read-only property of the represents the voice.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SpeechSynthesisVoice/name)\n */\n readonly name: string;\n /**\n * The **`voiceURI`** read-only property of the the speech synthesis service for this voice.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SpeechSynthesisVoice/voiceURI)\n */\n readonly voiceURI: string;\n}\n\ndeclare var SpeechSynthesisVoice: {\n prototype: SpeechSynthesisVoice;\n new(): SpeechSynthesisVoice;\n};\n\n/**\n * The DOM **`StaticRange`** interface extends AbstractRange to provide a method to specify a range of content in the DOM whose contents don\'t update to reflect changes which occur within the DOM tree.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/StaticRange)\n */\ninterface StaticRange extends AbstractRange {\n}\n\ndeclare var StaticRange: {\n prototype: StaticRange;\n new(init: StaticRangeInit): StaticRange;\n};\n\n/**\n * The `StereoPannerNode` interface of the Web Audio API represents a simple stereo panner node that can be used to pan an audio stream left or right.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/StereoPannerNode)\n */\ninterface StereoPannerNode extends AudioNode {\n /**\n * The `pan` property of the StereoPannerNode interface is an a-rate AudioParam representing the amount of panning to apply.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/StereoPannerNode/pan)\n */\n readonly pan: AudioParam;\n}\n\ndeclare var StereoPannerNode: {\n prototype: StereoPannerNode;\n new(context: BaseAudioContext, options?: StereoPannerOptions): StereoPannerNode;\n};\n\n/**\n * The **`Storage`** interface of the Web Storage API provides access to a particular domain\'s session or local storage.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Storage)\n */\ninterface Storage {\n /**\n * The **`length`** read-only property of the `Storage` object.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Storage/length)\n */\n readonly length: number;\n /**\n * The **`clear()`** method of the Storage interface clears all keys stored in a given `Storage` object.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Storage/clear)\n */\n clear(): void;\n /**\n * The **`getItem()`** method of the Storage interface, when passed a key name, will return that key\'s value, or `null` if the key does not exist, in the given `Storage` object.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Storage/getItem)\n */\n getItem(key: string): string | null;\n /**\n * The **`key()`** method of the Storage interface, when passed a number n, returns the name of the nth key in a given `Storage` object.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Storage/key)\n */\n key(index: number): string | null;\n /**\n * The **`removeItem()`** method of the Storage interface, when passed a key name, will remove that key from the given `Storage` object if it exists.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Storage/removeItem)\n */\n removeItem(key: string): void;\n /**\n * The **`setItem()`** method of the Storage interface, when passed a key name and value, will add that key to the given `Storage` object, or update that key\'s value if it already exists.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Storage/setItem)\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/**\n * The **`StorageEvent`** interface is implemented by the Window/storage_event event, which is sent to a window when a storage area the window has access to is changed within the context of another document.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/StorageEvent)\n */\ninterface StorageEvent extends Event {\n /**\n * The **`key`** property of the StorageEvent interface returns the key for the storage item that was changed.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/StorageEvent/key)\n */\n readonly key: string | null;\n /**\n * The **`newValue`** property of the StorageEvent interface returns the new value of the storage item whose value was changed.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/StorageEvent/newValue)\n */\n readonly newValue: string | null;\n /**\n * The **`oldValue`** property of the StorageEvent interface returns the original value of the storage item whose value changed.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/StorageEvent/oldValue)\n */\n readonly oldValue: string | null;\n /**\n * The **`storageArea`** property of the StorageEvent interface returns the storage object that was affected.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/StorageEvent/storageArea)\n */\n readonly storageArea: Storage | null;\n /**\n * The **`url`** property of the StorageEvent interface returns the URL of the document whose storage changed.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/StorageEvent/url)\n */\n readonly url: string;\n /**\n * The **`StorageEvent.initStorageEvent()`** method is used to initialize the value of a StorageEvent.\n * @deprecated\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/StorageEvent/initStorageEvent)\n */\n initStorageEvent(type: string, bubbles?: boolean, cancelable?: boolean, key?: string | null, oldValue?: string | null, newValue?: string | null, url?: string | URL, storageArea?: Storage | null): void;\n}\n\ndeclare var StorageEvent: {\n prototype: StorageEvent;\n new(type: string, eventInitDict?: StorageEventInit): StorageEvent;\n};\n\n/**\n * The **`StorageManager`** interface of the Storage API provides an interface for managing persistence permissions and estimating available storage.\n * Available only in secure contexts.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/StorageManager)\n */\ninterface StorageManager {\n /**\n * The **`estimate()`** method of the StorageManager interface asks the Storage Manager for how much storage the current origin takes up (`usage`), and how much space is available (`quota`).\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/StorageManager/estimate)\n */\n estimate(): Promise<StorageEstimate>;\n /**\n * The **`getDirectory()`** method of the StorageManager interface is used to obtain a reference to a FileSystemDirectoryHandle object allowing access to a directory and its contents, stored in the origin private file system (OPFS).\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/StorageManager/getDirectory)\n */\n getDirectory(): Promise<FileSystemDirectoryHandle>;\n /**\n * The **`persist()`** method of the StorageManager interface requests permission to use persistent storage, and returns a Promise that resolves to `true` if permission is granted and bucket mode is persistent, and `false` otherwise.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/StorageManager/persist)\n */\n persist(): Promise<boolean>;\n /**\n * The **`persisted()`** method of the StorageManager interface returns a Promise that resolves to `true` if your site\'s storage bucket is persistent.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/StorageManager/persisted)\n */\n persisted(): Promise<boolean>;\n}\n\ndeclare var StorageManager: {\n prototype: StorageManager;\n new(): StorageManager;\n};\n\n/** @deprecated */\ninterface StyleMedia {\n type: string;\n matchMedium(mediaquery: string): boolean;\n}\n\n/**\n * The **`StylePropertyMap`** interface of the CSS Typed Object Model API provides a representation of a CSS declaration block that is an alternative to CSSStyleDeclaration.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/StylePropertyMap)\n */\ninterface StylePropertyMap extends StylePropertyMapReadOnly {\n /**\n * The **`append()`** method of the `StylePropertyMap` with the given property.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/StylePropertyMap/append)\n */\n append(property: string, ...values: (CSSStyleValue | string)[]): void;\n /**\n * The **`clear()`** method of the StylePropertyMap interface removes all declarations in the `StylePropertyMap`.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/StylePropertyMap/clear)\n */\n clear(): void;\n /**\n * The **`delete()`** method of the property.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/StylePropertyMap/delete)\n */\n delete(property: string): void;\n /**\n * The **`set()`** method of the StylePropertyMap interface changes the CSS declaration with the given property.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/StylePropertyMap/set)\n */\n set(property: string, ...values: (CSSStyleValue | string)[]): void;\n}\n\ndeclare var StylePropertyMap: {\n prototype: StylePropertyMap;\n new(): StylePropertyMap;\n};\n\n/**\n * The **`StylePropertyMapReadOnly`** interface of the CSS Typed Object Model API provides a read-only representation of a CSS declaration block that is an alternative to CSSStyleDeclaration.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/StylePropertyMapReadOnly)\n */\ninterface StylePropertyMapReadOnly {\n /**\n * The **`size`** read-only property of the containing the size of the `StylePropertyMapReadOnly` object.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/StylePropertyMapReadOnly/size)\n */\n readonly size: number;\n /**\n * The **`get()`** method of the object for the first value of the specified property.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/StylePropertyMapReadOnly/get)\n */\n get(property: string): undefined | CSSStyleValue;\n /**\n * The **`getAll()`** method of the ```js-nolint getAll(property) ``` - `property` - : The name of the property to retrieve all values of.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/StylePropertyMapReadOnly/getAll)\n */\n getAll(property: string): CSSStyleValue[];\n /**\n * The **`has()`** method of the property is in the `StylePropertyMapReadOnly` object.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/StylePropertyMapReadOnly/has)\n */\n has(property: string): boolean;\n forEach(callbackfn: (value: CSSStyleValue[], key: string, parent: StylePropertyMapReadOnly) => void, thisArg?: any): void;\n}\n\ndeclare var StylePropertyMapReadOnly: {\n prototype: StylePropertyMapReadOnly;\n new(): StylePropertyMapReadOnly;\n};\n\n/**\n * An object implementing the `StyleSheet` interface represents a single style sheet.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/StyleSheet)\n */\ninterface StyleSheet {\n /**\n * The **`disabled`** property of the applying to the document.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/StyleSheet/disabled)\n */\n disabled: boolean;\n /**\n * The **`href`** property of the StyleSheet interface returns the location of the style sheet.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/StyleSheet/href)\n */\n readonly href: string | null;\n /**\n * The **`media`** property of the StyleSheet interface specifies the intended destination media for style information.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/StyleSheet/media)\n */\n get media(): MediaList;\n set media(mediaText: string);\n /**\n * The **`ownerNode`** property of the with the document.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/StyleSheet/ownerNode)\n */\n readonly ownerNode: Element | ProcessingInstruction | null;\n /**\n * The **`parentStyleSheet`** property of the the given style sheet.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/StyleSheet/parentStyleSheet)\n */\n readonly parentStyleSheet: CSSStyleSheet | null;\n /**\n * The **`title`** property of the StyleSheet interface returns the advisory title of the current style sheet.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/StyleSheet/title)\n */\n readonly title: string | null;\n /**\n * The **`type`** property of the StyleSheet interface specifies the style sheet language for the given style sheet.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/StyleSheet/type)\n */\n readonly type: string;\n}\n\ndeclare var StyleSheet: {\n prototype: StyleSheet;\n new(): StyleSheet;\n};\n\n/**\n * The `StyleSheetList` interface represents a list of CSSStyleSheet objects.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/StyleSheetList)\n */\ninterface StyleSheetList {\n /**\n * The **`length`** read-only property of the StyleSheetList interface returns the number of CSSStyleSheet objects in the collection.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/StyleSheetList/length)\n */\n readonly length: number;\n /**\n * The **`item()`** method of the StyleSheetList interface returns a single CSSStyleSheet object.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/StyleSheetList/item)\n */\n item(index: number): CSSStyleSheet | null;\n [index: number]: CSSStyleSheet;\n}\n\ndeclare var StyleSheetList: {\n prototype: StyleSheetList;\n new(): StyleSheetList;\n};\n\n/**\n * The **`SubmitEvent`** interface defines the object used to represent an HTML form\'s HTMLFormElement.submit_event event.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SubmitEvent)\n */\ninterface SubmitEvent extends Event {\n /**\n * The read-only **`submitter`** property found on the SubmitEvent interface specifies the submit button or other element that was invoked to cause the form to be submitted.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SubmitEvent/submitter)\n */\n readonly submitter: HTMLElement | null;\n}\n\ndeclare var SubmitEvent: {\n prototype: SubmitEvent;\n new(type: string, eventInitDict?: SubmitEventInit): SubmitEvent;\n};\n\n/**\n * The **`SubtleCrypto`** interface of the Web Crypto API provides a number of low-level cryptographic functions.\n * Available only in secure contexts.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SubtleCrypto)\n */\ninterface SubtleCrypto {\n /**\n * The **`decrypt()`** method of the SubtleCrypto interface decrypts some encrypted data.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SubtleCrypto/decrypt)\n */\n decrypt(algorithm: AlgorithmIdentifier | RsaOaepParams | AesCtrParams | AesCbcParams | AesGcmParams, key: CryptoKey, data: BufferSource): Promise<ArrayBuffer>;\n /**\n * The **`deriveBits()`** method of the key.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SubtleCrypto/deriveBits)\n */\n deriveBits(algorithm: AlgorithmIdentifier | EcdhKeyDeriveParams | HkdfParams | Pbkdf2Params, baseKey: CryptoKey, length?: number | null): Promise<ArrayBuffer>;\n /**\n * The **`deriveKey()`** method of the SubtleCrypto interface can be used to derive a secret key from a master key.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SubtleCrypto/deriveKey)\n */\n deriveKey(algorithm: AlgorithmIdentifier | EcdhKeyDeriveParams | HkdfParams | Pbkdf2Params, baseKey: CryptoKey, derivedKeyType: AlgorithmIdentifier | AesDerivedKeyParams | HmacImportParams | HkdfParams | Pbkdf2Params, extractable: boolean, keyUsages: KeyUsage[]): Promise<CryptoKey>;\n /**\n * The **`digest()`** method of the SubtleCrypto interface generates a _digest_ of the given data, using the specified hash function.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SubtleCrypto/digest)\n */\n digest(algorithm: AlgorithmIdentifier, data: BufferSource): Promise<ArrayBuffer>;\n /**\n * The **`encrypt()`** method of the SubtleCrypto interface encrypts data.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SubtleCrypto/encrypt)\n */\n encrypt(algorithm: AlgorithmIdentifier | RsaOaepParams | AesCtrParams | AesCbcParams | AesGcmParams, key: CryptoKey, data: BufferSource): Promise<ArrayBuffer>;\n /**\n * The **`exportKey()`** method of the SubtleCrypto interface exports a key: that is, it takes as input a CryptoKey object and gives you the key in an external, portable format.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SubtleCrypto/exportKey)\n */\n exportKey(format: "jwk", key: CryptoKey): Promise<JsonWebKey>;\n exportKey(format: Exclude<KeyFormat, "jwk">, key: CryptoKey): Promise<ArrayBuffer>;\n exportKey(format: KeyFormat, key: CryptoKey): Promise<ArrayBuffer | JsonWebKey>;\n /**\n * The **`generateKey()`** method of the SubtleCrypto interface is used to generate a new key (for symmetric algorithms) or key pair (for public-key algorithms).\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SubtleCrypto/generateKey)\n */\n generateKey(algorithm: "Ed25519" | { name: "Ed25519" }, extractable: boolean, keyUsages: ReadonlyArray<"sign" | "verify">): Promise<CryptoKeyPair>;\n generateKey(algorithm: RsaHashedKeyGenParams | EcKeyGenParams, extractable: boolean, keyUsages: ReadonlyArray<KeyUsage>): Promise<CryptoKeyPair>;\n generateKey(algorithm: AesKeyGenParams | HmacKeyGenParams | Pbkdf2Params, extractable: boolean, keyUsages: ReadonlyArray<KeyUsage>): Promise<CryptoKey>;\n generateKey(algorithm: AlgorithmIdentifier, extractable: boolean, keyUsages: KeyUsage[]): Promise<CryptoKeyPair | CryptoKey>;\n /**\n * The **`importKey()`** method of the SubtleCrypto interface imports a key: that is, it takes as input a key in an external, portable format and gives you a CryptoKey object that you can use in the Web Crypto API.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SubtleCrypto/importKey)\n */\n importKey(format: "jwk", keyData: JsonWebKey, algorithm: AlgorithmIdentifier | RsaHashedImportParams | EcKeyImportParams | HmacImportParams | AesKeyAlgorithm, extractable: boolean, keyUsages: ReadonlyArray<KeyUsage>): Promise<CryptoKey>;\n importKey(format: Exclude<KeyFormat, "jwk">, keyData: BufferSource, algorithm: AlgorithmIdentifier | RsaHashedImportParams | EcKeyImportParams | HmacImportParams | AesKeyAlgorithm, extractable: boolean, keyUsages: KeyUsage[]): Promise<CryptoKey>;\n /**\n * The **`sign()`** method of the SubtleCrypto interface generates a digital signature.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SubtleCrypto/sign)\n */\n sign(algorithm: AlgorithmIdentifier | RsaPssParams | EcdsaParams, key: CryptoKey, data: BufferSource): Promise<ArrayBuffer>;\n /**\n * The **`unwrapKey()`** method of the SubtleCrypto interface \'unwraps\' a key.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SubtleCrypto/unwrapKey)\n */\n unwrapKey(format: KeyFormat, wrappedKey: BufferSource, unwrappingKey: CryptoKey, unwrapAlgorithm: AlgorithmIdentifier | RsaOaepParams | AesCtrParams | AesCbcParams | AesGcmParams, unwrappedKeyAlgorithm: AlgorithmIdentifier | RsaHashedImportParams | EcKeyImportParams | HmacImportParams | AesKeyAlgorithm, extractable: boolean, keyUsages: KeyUsage[]): Promise<CryptoKey>;\n /**\n * The **`verify()`** method of the SubtleCrypto interface verifies a digital signature.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SubtleCrypto/verify)\n */\n verify(algorithm: AlgorithmIdentifier | RsaPssParams | EcdsaParams, key: CryptoKey, signature: BufferSource, data: BufferSource): Promise<boolean>;\n /**\n * The **`wrapKey()`** method of the SubtleCrypto interface \'wraps\' a key.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SubtleCrypto/wrapKey)\n */\n wrapKey(format: KeyFormat, key: CryptoKey, wrappingKey: CryptoKey, wrapAlgorithm: AlgorithmIdentifier | RsaOaepParams | AesCtrParams | AesCbcParams | AesGcmParams): Promise<ArrayBuffer>;\n}\n\ndeclare var SubtleCrypto: {\n prototype: SubtleCrypto;\n new(): SubtleCrypto;\n};\n\n/**\n * The **`Text`** interface represents a text Node in a DOM tree.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Text)\n */\ninterface Text extends CharacterData, Slottable {\n /**\n * The read-only **`wholeText`** property of the Text interface returns the full text of all Text nodes logically adjacent to the node.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Text/wholeText)\n */\n readonly wholeText: string;\n /**\n * The **`splitText()`** method of the Text interface breaks the Text node into two nodes at the specified offset, keeping both nodes in the tree as siblings.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Text/splitText)\n */\n splitText(offset: number): Text;\n}\n\ndeclare var Text: {\n prototype: Text;\n new(data?: string): Text;\n};\n\n/**\n * The **`TextDecoder`** interface represents a decoder for a specific text encoding, such as `UTF-8`, `ISO-8859-2`, `KOI8-R`, `GBK`, etc.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/TextDecoder)\n */\ninterface TextDecoder extends TextDecoderCommon {\n /**\n * The **`TextDecoder.decode()`** method returns a string containing text decoded from the buffer passed as a parameter.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/TextDecoder/decode)\n */\n decode(input?: AllowSharedBufferSource, 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 * [MDN Reference](https://developer.mozilla.org/docs/Web/API/TextDecoder/encoding)\n */\n readonly encoding: string;\n /**\n * Returns true if error mode is "fatal", otherwise false.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/TextDecoder/fatal)\n */\n readonly fatal: boolean;\n /**\n * Returns the value of ignore BOM.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/TextDecoder/ignoreBOM)\n */\n readonly ignoreBOM: boolean;\n}\n\n/**\n * The **`TextDecoderStream`** interface of the Encoding API converts a stream of text in a binary encoding, such as UTF-8 etc., to a stream of strings.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/TextDecoderStream)\n */\ninterface TextDecoderStream extends GenericTransformStream, TextDecoderCommon {\n readonly readable: ReadableStream<string>;\n readonly writable: WritableStream<BufferSource>;\n}\n\ndeclare var TextDecoderStream: {\n prototype: TextDecoderStream;\n new(label?: string, options?: TextDecoderOptions): TextDecoderStream;\n};\n\n/**\n * The **`TextEncoder`** interface takes a stream of code points as input and emits a stream of UTF-8 bytes.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/TextEncoder)\n */\ninterface TextEncoder extends TextEncoderCommon {\n /**\n * The **`TextEncoder.encode()`** method takes a string as input, and returns a Global_Objects/Uint8Array containing the text given in parameters encoded with the specific method for that TextEncoder object.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/TextEncoder/encode)\n */\n encode(input?: string): Uint8Array<ArrayBuffer>;\n /**\n * The **`TextEncoder.encodeInto()`** method takes a string to encode and a destination Uint8Array to put resulting UTF-8 encoded text into, and returns a dictionary object indicating the progress of the encoding.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/TextEncoder/encodeInto)\n */\n encodeInto(source: string, destination: Uint8Array<ArrayBufferLike>): TextEncoderEncodeIntoResult;\n}\n\ndeclare var TextEncoder: {\n prototype: TextEncoder;\n new(): TextEncoder;\n};\n\ninterface TextEncoderCommon {\n /**\n * Returns "utf-8".\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/TextEncoder/encoding)\n */\n readonly encoding: string;\n}\n\n/**\n * The **`TextEncoderStream`** interface of the Encoding API converts a stream of strings into bytes in the UTF-8 encoding.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/TextEncoderStream)\n */\ninterface TextEncoderStream extends GenericTransformStream, TextEncoderCommon {\n readonly readable: ReadableStream<Uint8Array<ArrayBuffer>>;\n readonly writable: WritableStream<string>;\n}\n\ndeclare var TextEncoderStream: {\n prototype: TextEncoderStream;\n new(): TextEncoderStream;\n};\n\n/**\n * The **`TextEvent`** interface is a legacy UI event interface for reporting changes to text UI elements.\n * @deprecated\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/TextEvent)\n */\ninterface TextEvent extends UIEvent {\n /**\n * The **`data`** read-only property of the TextEvent interface returns the last character added to the input element.\n * @deprecated\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/TextEvent/data)\n */\n readonly data: string;\n /**\n * The **`initTextEventEvent()`** method of the TextEvent interface initializes the value of a `TextEvent` after it has been created.\n * @deprecated\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/TextEvent/initTextEvent)\n */\n initTextEvent(type: string, bubbles?: boolean, cancelable?: boolean, view?: Window | null, data?: string): void;\n}\n\n/** @deprecated */\ndeclare var TextEvent: {\n prototype: TextEvent;\n new(): TextEvent;\n};\n\n/**\n * The **`TextMetrics`** interface represents the dimensions of a piece of text in the canvas; a `TextMetrics` instance can be retrieved using the CanvasRenderingContext2D.measureText() method.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/TextMetrics)\n */\ninterface TextMetrics {\n /**\n * The read-only **`actualBoundingBoxAscent`** property of the TextMetrics interface is a `double` giving the distance from the horizontal line indicated by the CanvasRenderingContext2D.textBaseline attribute to the top of the bounding rectangle used to render the text, in CSS pixels.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/TextMetrics/actualBoundingBoxAscent)\n */\n readonly actualBoundingBoxAscent: number;\n /**\n * The read-only `actualBoundingBoxDescent` property of the TextMetrics interface is a `double` giving the distance from the horizontal line indicated by the CanvasRenderingContext2D.textBaseline attribute to the bottom of the bounding rectangle used to render the text, in CSS pixels.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/TextMetrics/actualBoundingBoxDescent)\n */\n readonly actualBoundingBoxDescent: number;\n /**\n * The read-only `actualBoundingBoxLeft` property of the TextMetrics interface is a `double` giving the distance parallel to the baseline from the alignment point given by the CanvasRenderingContext2D.textAlign property to the left side of the bounding rectangle of the given text, in CSS pixels; positive numbers indicating a distance going left from the given alignment point.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/TextMetrics/actualBoundingBoxLeft)\n */\n readonly actualBoundingBoxLeft: number;\n /**\n * The read-only `actualBoundingBoxRight` property of the TextMetrics interface is a `double` giving the distance parallel to the baseline from the alignment point given by the CanvasRenderingContext2D.textAlign property to the right side of the bounding rectangle of the given text, in CSS pixels.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/TextMetrics/actualBoundingBoxRight)\n */\n readonly actualBoundingBoxRight: number;\n /**\n * The read-only `alphabeticBaseline` property of the TextMetrics interface is a `double` giving the distance from the horizontal line indicated by the CanvasRenderingContext2D.textBaseline property to the alphabetic baseline of the line box, in CSS pixels.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/TextMetrics/alphabeticBaseline)\n */\n readonly alphabeticBaseline: number;\n /**\n * The read-only `emHeightAscent` property of the TextMetrics interface returns the distance from the horizontal line indicated by the CanvasRenderingContext2D.textBaseline property to the top of the _em_ square in the line box, in CSS pixels.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/TextMetrics/emHeightAscent)\n */\n readonly emHeightAscent: number;\n /**\n * The read-only `emHeightDescent` property of the TextMetrics interface returns the distance from the horizontal line indicated by the CanvasRenderingContext2D.textBaseline property to the bottom of the _em_ square in the line box, in CSS pixels.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/TextMetrics/emHeightDescent)\n */\n readonly emHeightDescent: number;\n /**\n * The read-only `fontBoundingBoxAscent` property of the TextMetrics interface returns the distance from the horizontal line indicated by the CanvasRenderingContext2D.textBaseline attribute, to the top of the highest bounding rectangle of all the fonts used to render the text, in CSS pixels.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/TextMetrics/fontBoundingBoxAscent)\n */\n readonly fontBoundingBoxAscent: number;\n /**\n * The read-only `fontBoundingBoxDescent` property of the TextMetrics interface returns the distance from the horizontal line indicated by the CanvasRenderingContext2D.textBaseline attribute to the bottom of the bounding rectangle of all the fonts used to render the text, in CSS pixels.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/TextMetrics/fontBoundingBoxDescent)\n */\n readonly fontBoundingBoxDescent: number;\n /**\n * The read-only `hangingBaseline` property of the TextMetrics interface is a `double` giving the distance from the horizontal line indicated by the CanvasRenderingContext2D.textBaseline property to the hanging baseline of the line box, in CSS pixels.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/TextMetrics/hangingBaseline)\n */\n readonly hangingBaseline: number;\n /**\n * The read-only `ideographicBaseline` property of the TextMetrics interface is a `double` giving the distance from the horizontal line indicated by the CanvasRenderingContext2D.textBaseline property to the ideographic baseline of the line box, in CSS pixels.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/TextMetrics/ideographicBaseline)\n */\n readonly ideographicBaseline: number;\n /**\n * The read-only **`width`** property of the TextMetrics interface contains the text\'s advance width (the width of that inline box) in CSS pixels.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/TextMetrics/width)\n */\n readonly width: number;\n}\n\ndeclare var TextMetrics: {\n prototype: TextMetrics;\n new(): TextMetrics;\n};\n\ninterface TextTrackEventMap {\n "cuechange": Event;\n}\n\n/**\n * The **`TextTrack`** interface of the WebVTT API represents a text track associated with a media element.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/TextTrack)\n */\ninterface TextTrack extends EventTarget {\n /**\n * The **`activeCues`** read-only property of the TextTrack interface returns a TextTrackCueList object listing the currently active cues.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/TextTrack/activeCues)\n */\n readonly activeCues: TextTrackCueList | null;\n /**\n * The **`cues`** read-only property of the TextTrack interface returns a TextTrackCueList object containing all of the track\'s cues.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/TextTrack/cues)\n */\n readonly cues: TextTrackCueList | null;\n /**\n * The **`id`** read-only property of the TextTrack interface returns the ID of the track if it has one.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/TextTrack/id)\n */\n readonly id: string;\n /**\n * The **`inBandMetadataTrackDispatchType`** read-only property of the TextTrack interface returns the text track\'s in-band metadata dispatch type of the text track represented by the TextTrack object.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/TextTrack/inBandMetadataTrackDispatchType)\n */\n readonly inBandMetadataTrackDispatchType: string;\n /**\n * The **`kind`** read-only property of the TextTrack interface returns the kind of text track this object represents.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/TextTrack/kind)\n */\n readonly kind: TextTrackKind;\n /**\n * The **`label`** read-only property of the TextTrack interface returns a human-readable label for the text track, if it is available.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/TextTrack/label)\n */\n readonly label: string;\n /**\n * The **`language`** read-only property of the TextTrack interface returns the language of the text track.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/TextTrack/language)\n */\n readonly language: string;\n /**\n * The TextTrack interface\'s **`mode`** property is a string specifying and controlling the text track\'s mode: `disabled`, `hidden`, or `showing`.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/TextTrack/mode)\n */\n mode: TextTrackMode;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/TextTrack/cuechange_event) */\n oncuechange: ((this: TextTrack, ev: Event) => any) | null;\n /**\n * The **`addCue()`** method of the TextTrack interface adds a new cue to the list of cues.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/TextTrack/addCue)\n */\n addCue(cue: TextTrackCue): void;\n /**\n * The **`removeCue()`** method of the TextTrack interface removes a cue from the list of cues.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/TextTrack/removeCue)\n */\n removeCue(cue: TextTrackCue): void;\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};\n\ninterface TextTrackCueEventMap {\n "enter": Event;\n "exit": Event;\n}\n\n/**\n * The **`TextTrackCue`** interface of the WebVTT API is the abstract base class for the various derived cue types, such as VTTCue; you will work with these derived types rather than the base class.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/TextTrackCue)\n */\ninterface TextTrackCue extends EventTarget {\n /**\n * The **`endTime`** property of the TextTrackCue interface returns and sets the end time of the cue.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/TextTrackCue/endTime)\n */\n endTime: number;\n /**\n * The **`id`** property of the TextTrackCue interface returns and sets the identifier for this cue.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/TextTrackCue/id)\n */\n id: string;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/TextTrackCue/enter_event) */\n onenter: ((this: TextTrackCue, ev: Event) => any) | null;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/TextTrackCue/exit_event) */\n onexit: ((this: TextTrackCue, ev: Event) => any) | null;\n /**\n * The **`pauseOnExit`** property of the TextTrackCue interface returns or sets the flag indicating whether playback of the media should pause when the end of the range to which this cue applies is reached.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/TextTrackCue/pauseOnExit)\n */\n pauseOnExit: boolean;\n /**\n * The **`startTime`** property of the TextTrackCue interface returns and sets the start time of the cue.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/TextTrackCue/startTime)\n */\n startTime: number;\n /**\n * The **`track`** read-only property of the TextTrackCue interface returns the TextTrack object that this cue belongs to.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/TextTrackCue/track)\n */\n readonly track: TextTrack | null;\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(): TextTrackCue;\n};\n\n/**\n * The **`TextTrackCueList`** interface of the WebVTT API is an array-like object that represents a dynamically updating list of TextTrackCue objects.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/TextTrackCueList)\n */\ninterface TextTrackCueList {\n /**\n * The **`length`** read-only property of the TextTrackCueList interface returns the number of cues in the list.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/TextTrackCueList/length)\n */\n readonly length: number;\n /**\n * The **`getCueById()`** method of the TextTrackCueList interface returns the first VTTCue in the list represented by the `TextTrackCueList` object whose identifier matches the value of `id`.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/TextTrackCueList/getCueById)\n */\n getCueById(id: string): TextTrackCue | null;\n [index: number]: TextTrackCue;\n}\n\ndeclare var TextTrackCueList: {\n prototype: TextTrackCueList;\n new(): TextTrackCueList;\n};\n\ninterface TextTrackListEventMap {\n "addtrack": TrackEvent;\n "change": Event;\n "removetrack": TrackEvent;\n}\n\n/**\n * The **`TextTrackList`** interface is used to represent a list of the text tracks defined for the associated video or audio element, with each track represented by a separate textTrack object in the list.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/TextTrackList)\n */\ninterface TextTrackList extends EventTarget {\n /**\n * The read-only **TextTrackList** property **`length`** returns the number of entries in the `TextTrackList`, each of which is a TextTrack representing one track in the media element.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/TextTrackList/length)\n */\n readonly length: number;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/TextTrackList/addtrack_event) */\n onaddtrack: ((this: TextTrackList, ev: TrackEvent) => any) | null;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/TextTrackList/change_event) */\n onchange: ((this: TextTrackList, ev: Event) => any) | null;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/TextTrackList/removetrack_event) */\n onremovetrack: ((this: TextTrackList, ev: TrackEvent) => any) | null;\n /**\n * The **TextTrackList** method **`getTrackById()`** returns the first `id` matches the specified string.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/TextTrackList/getTrackById)\n */\n getTrackById(id: string): TextTrack | null;\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/**\n * When loading a media resource for use by an audio or video element, the **`TimeRanges`** interface is used for representing the time ranges of the media resource that have been buffered, the time ranges that have been played, and the time ranges that are seekable.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/TimeRanges)\n */\ninterface TimeRanges {\n /**\n * The **`TimeRanges.length`** read-only property returns the number of ranges in the object.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/TimeRanges/length)\n */\n readonly length: number;\n /**\n * The **`end()`** method of the TimeRanges interface returns the time offset (in seconds) at which a specified time range ends.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/TimeRanges/end)\n */\n end(index: number): number;\n /**\n * The **`start()`** method of the TimeRanges interface returns the time offset (in seconds) at which a specified time range begins.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/TimeRanges/start)\n */\n start(index: number): number;\n}\n\ndeclare var TimeRanges: {\n prototype: TimeRanges;\n new(): TimeRanges;\n};\n\n/**\n * The **`ToggleEvent`** interface represents an event notifying the user an Element\'s state has changed.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ToggleEvent)\n */\ninterface ToggleEvent extends Event {\n /**\n * The **`newState`** read-only property of the ToggleEvent interface is a string representing the state the element is transitioning to.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ToggleEvent/newState)\n */\n readonly newState: string;\n /**\n * The **`oldState`** read-only property of the ToggleEvent interface is a string representing the state the element is transitioning from.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ToggleEvent/oldState)\n */\n readonly oldState: string;\n}\n\ndeclare var ToggleEvent: {\n prototype: ToggleEvent;\n new(type: string, eventInitDict?: ToggleEventInit): ToggleEvent;\n};\n\n/**\n * The **`Touch`** interface represents a single contact point on a touch-sensitive device.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Touch)\n */\ninterface Touch {\n /**\n * The `Touch.clientX` read-only property returns the X coordinate of the touch point relative to the viewport, not including any scroll offset.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Touch/clientX)\n */\n readonly clientX: number;\n /**\n * The **`Touch.clientY`** read-only property returns the Y coordinate of the touch point relative to the browser\'s viewport, not including any scroll offset.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Touch/clientY)\n */\n readonly clientY: number;\n /**\n * The **`Touch.force`** read-only property returns the amount of pressure the user is applying to the touch surface for a Touch point.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Touch/force)\n */\n readonly force: number;\n /**\n * The **`Touch.identifier`** returns a value uniquely identifying this point of contact with the touch surface.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Touch/identifier)\n */\n readonly identifier: number;\n /**\n * The **`Touch.pageX`** read-only property returns the X coordinate of the touch point relative to the viewport, including any scroll offset.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Touch/pageX)\n */\n readonly pageX: number;\n /**\n * The **`Touch.pageY`** read-only property returns the Y coordinate of the touch point relative to the viewport, including any scroll offset.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Touch/pageY)\n */\n readonly pageY: number;\n /**\n * The **`radiusX`** read-only property of the Touch interface returns the X radius of the ellipse that most closely circumscribes the area of contact with the touch surface.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Touch/radiusX)\n */\n readonly radiusX: number;\n /**\n * The **`radiusY`** read-only property of the Touch interface returns the Y radius of the ellipse that most closely circumscribes the area of contact with the touch surface.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Touch/radiusY)\n */\n readonly radiusY: number;\n /**\n * The **`rotationAngle`** read-only property of the Touch interface returns the rotation angle, in degrees, of the contact area ellipse defined by Touch.radiusX and Touch.radiusY.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Touch/rotationAngle)\n */\n readonly rotationAngle: number;\n /**\n * Returns the X coordinate of the touch point relative to the screen, not including any scroll offset.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Touch/screenX)\n */\n readonly screenX: number;\n /**\n * Returns the Y coordinate of the touch point relative to the screen, not including any scroll offset.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Touch/screenY)\n */\n readonly screenY: number;\n /**\n * The read-only **`target`** property of the `Touch` interface returns the (EventTarget) on which the touch contact started when it was first placed on the surface, even if the touch point has since moved outside the interactive area of that element or even been removed from the document.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Touch/target)\n */\n readonly target: EventTarget;\n}\n\ndeclare var Touch: {\n prototype: Touch;\n new(touchInitDict: TouchInit): Touch;\n};\n\n/**\n * The **`TouchEvent`** interface represents an UIEvent which is sent when the state of contacts with a touch-sensitive surface changes.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/TouchEvent)\n */\ninterface TouchEvent extends UIEvent {\n /**\n * The read-only **`altKey`** property of the TouchEvent interface returns a boolean value indicating whether or not the <kbd>alt</kbd> (Alternate) key is enabled when the touch event is created.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/TouchEvent/altKey)\n */\n readonly altKey: boolean;\n /**\n * The **`changedTouches`** read-only property is a TouchList whose touch points (Touch objects) varies depending on the event type, as follows: - For the Element/touchstart_event event, it is a list of the touch points that became active with the current event.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/TouchEvent/changedTouches)\n */\n readonly changedTouches: TouchList;\n /**\n * The read-only **`ctrlKey`** property of the TouchEvent interface returns a boolean value indicating whether the <kbd>control</kbd> (Control) key is enabled when the touch event is created.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/TouchEvent/ctrlKey)\n */\n readonly ctrlKey: boolean;\n /**\n * The read-only **`metaKey`** property of the TouchEvent interface returns a boolean value indicating whether or not the <kbd>Meta</kbd> key is enabled when the touch event is created.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/TouchEvent/metaKey)\n */\n readonly metaKey: boolean;\n /**\n * The read-only **`shiftKey`** property of the `TouchEvent` interface returns a boolean value indicating whether or not the <kbd>shift</kbd> key is enabled when the touch event is created.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/TouchEvent/shiftKey)\n */\n readonly shiftKey: boolean;\n /**\n * The **`targetTouches`** read-only property is a TouchList listing all the Touch objects for touch points that are still in contact with the touch surface **and** whose Element/touchstart_event event occurred inside the same target element as the current target element.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/TouchEvent/targetTouches)\n */\n readonly targetTouches: TouchList;\n /**\n * **`touches`** is a read-only TouchList listing all the Touch objects for touch points that are currently in contact with the touch surface, regardless of whether or not they\'ve changed or what their target element was at Element/touchstart_event time.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/TouchEvent/touches)\n */\n readonly touches: TouchList;\n}\n\ndeclare var TouchEvent: {\n prototype: TouchEvent;\n new(type: string, eventInitDict?: TouchEventInit): TouchEvent;\n};\n\n/**\n * The **`TouchList`** interface represents a list of contact points on a touch surface.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/TouchList)\n */\ninterface TouchList {\n /**\n * The **`length`** read-only property indicates the number of items (touch points) in a given TouchList.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/TouchList/length)\n */\n readonly length: number;\n /**\n * The **`item()`** method returns the Touch object at the specified index in the TouchList.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/TouchList/item)\n */\n item(index: number): Touch | null;\n [index: number]: Touch;\n}\n\ndeclare var TouchList: {\n prototype: TouchList;\n new(): TouchList;\n};\n\n/**\n * The **`TrackEvent`** interface of the HTML DOM API is used for events which represent changes to a set of available tracks on an HTML media element; these events are `addtrack` and `removetrack`.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/TrackEvent)\n */\ninterface TrackEvent extends Event {\n /**\n * The read-only **`track`** property of the TrackEvent interface specifies the media track object to which the event applies.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/TrackEvent/track)\n */\n readonly track: TextTrack | null;\n}\n\ndeclare var TrackEvent: {\n prototype: TrackEvent;\n new(type: string, eventInitDict?: TrackEventInit): TrackEvent;\n};\n\n/**\n * The **`TransformStream`** interface of the Streams API represents a concrete implementation of the pipe chain _transform stream_ concept.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/TransformStream)\n */\ninterface TransformStream<I = any, O = any> {\n /**\n * The **`readable`** read-only property of the TransformStream interface returns the ReadableStream instance controlled by this `TransformStream`.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/TransformStream/readable)\n */\n readonly readable: ReadableStream<O>;\n /**\n * The **`writable`** read-only property of the TransformStream interface returns the WritableStream instance controlled by this `TransformStream`.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/TransformStream/writable)\n */\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\n/**\n * The **`TransformStreamDefaultController`** interface of the Streams API provides methods to manipulate the associated ReadableStream and WritableStream.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/TransformStreamDefaultController)\n */\ninterface TransformStreamDefaultController<O = any> {\n /**\n * The **`desiredSize`** read-only property of the TransformStreamDefaultController interface returns the desired size to fill the queue of the associated ReadableStream.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/TransformStreamDefaultController/desiredSize)\n */\n readonly desiredSize: number | null;\n /**\n * The **`enqueue()`** method of the TransformStreamDefaultController interface enqueues the given chunk in the readable side of the stream.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/TransformStreamDefaultController/enqueue)\n */\n enqueue(chunk?: O): void;\n /**\n * The **`error()`** method of the TransformStreamDefaultController interface errors both sides of the stream.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/TransformStreamDefaultController/error)\n */\n error(reason?: any): void;\n /**\n * The **`terminate()`** method of the TransformStreamDefaultController interface closes the readable side and errors the writable side of the stream.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/TransformStreamDefaultController/terminate)\n */\n terminate(): void;\n}\n\ndeclare var TransformStreamDefaultController: {\n prototype: TransformStreamDefaultController;\n new(): TransformStreamDefaultController;\n};\n\n/**\n * The **`TransitionEvent`** interface represents events providing information related to transitions.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/TransitionEvent)\n */\ninterface TransitionEvent extends Event {\n /**\n * The **`TransitionEvent.elapsedTime`** read-only property is a `float` giving the amount of time the animation has been running, in seconds, when this event fired.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/TransitionEvent/elapsedTime)\n */\n readonly elapsedTime: number;\n /**\n * The **`propertyName`** read-only property of TransitionEvent objects is a string containing the name of the CSS property associated with the transition.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/TransitionEvent/propertyName)\n */\n readonly propertyName: string;\n /**\n * The **`TransitionEvent.pseudoElement`** read-only property is a string, starting with `\'::\'`, containing the name of the pseudo-element the animation runs on.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/TransitionEvent/pseudoElement)\n */\n readonly pseudoElement: string;\n}\n\ndeclare var TransitionEvent: {\n prototype: TransitionEvent;\n new(type: string, transitionEventInitDict?: TransitionEventInit): TransitionEvent;\n};\n\n/**\n * The **`TreeWalker`** object represents the nodes of a document subtree and a position within them.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/TreeWalker)\n */\ninterface TreeWalker {\n /**\n * The **`TreeWalker.currentNode`** property represents the A Node.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/TreeWalker/currentNode)\n */\n currentNode: Node;\n /**\n * The **`TreeWalker.filter`** read-only property returns the `NodeFilter` associated with the TreeWalker.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/TreeWalker/filter)\n */\n readonly filter: NodeFilter | null;\n /**\n * The **`TreeWalker.root`** read-only property returns the root Node that the TreeWalker traverses.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/TreeWalker/root)\n */\n readonly root: Node;\n /**\n * The **`TreeWalker.whatToShow`** read-only property returns a bitmask that indicates the types of nodes to show.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/TreeWalker/whatToShow)\n */\n readonly whatToShow: number;\n /**\n * The **`TreeWalker.firstChild()`** method moves the current the found child.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/TreeWalker/firstChild)\n */\n firstChild(): Node | null;\n /**\n * The **`TreeWalker.lastChild()`** method moves the current the found child.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/TreeWalker/lastChild)\n */\n lastChild(): Node | null;\n /**\n * The **`TreeWalker.nextNode()`** method moves the current the found node.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/TreeWalker/nextNode)\n */\n nextNode(): Node | null;\n /**\n * The **`TreeWalker.nextSibling()`** method moves the current is no such node, it returns `null` and the current node is not changed.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/TreeWalker/nextSibling)\n */\n nextSibling(): Node | null;\n /**\n * The **`TreeWalker.parentNode()`** method moves the current and returns the found node.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/TreeWalker/parentNode)\n */\n parentNode(): Node | null;\n /**\n * The **`TreeWalker.previousNode()`** method moves the current returns the found node.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/TreeWalker/previousNode)\n */\n previousNode(): Node | null;\n /**\n * The **`TreeWalker.previousSibling()`** method moves the current there is no such node, it returns `null` and the current node is not changed.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/TreeWalker/previousSibling)\n */\n previousSibling(): Node | null;\n}\n\ndeclare var TreeWalker: {\n prototype: TreeWalker;\n new(): TreeWalker;\n};\n\n/**\n * The **`UIEvent`** interface represents simple user interface events.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/UIEvent)\n */\ninterface UIEvent extends Event {\n /**\n * The **`UIEvent.detail`** read-only property, when non-zero, provides the current (or next, depending on the event) click count.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/UIEvent/detail)\n */\n readonly detail: number;\n /**\n * The **`UIEvent.view`** read-only property returns the is the Window object the event happened in.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/UIEvent/view)\n */\n readonly view: Window | null;\n /**\n * The **`UIEvent.which`** read-only property of the UIEvent interface returns a number that indicates which button was pressed on the mouse, or the numeric `keyCode` or the character code (`charCode`) of the key pressed on the keyboard.\n * @deprecated\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/UIEvent/which)\n */\n readonly which: number;\n /**\n * The **`UIEvent.initUIEvent()`** method initializes a UI event once it\'s been created.\n * @deprecated\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/UIEvent/initUIEvent)\n */\n initUIEvent(typeArg: string, bubblesArg?: boolean, cancelableArg?: boolean, viewArg?: Window | null, detailArg?: number): void;\n}\n\ndeclare var UIEvent: {\n prototype: UIEvent;\n new(type: string, eventInitDict?: UIEventInit): UIEvent;\n};\n\n/**\n * The **`URL`** interface is used to parse, construct, normalize, and encode URL.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/URL)\n */\ninterface URL {\n /**\n * The **`hash`** property of the URL interface is a string containing a `\'#\'` followed by the fragment identifier of the URL.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/URL/hash)\n */\n hash: string;\n /**\n * The **`host`** property of the URL interface is a string containing the host, which is the URL.hostname, and then, if the port of the URL is nonempty, a `\':\'`, followed by the URL.port of the URL.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/URL/host)\n */\n host: string;\n /**\n * The **`hostname`** property of the URL interface is a string containing either the domain name or IP address of the URL.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/URL/hostname)\n */\n hostname: string;\n /**\n * The **`href`** property of the URL interface is a string containing the whole URL.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/URL/href)\n */\n href: string;\n toString(): string;\n /**\n * The **`origin`** read-only property of the URL interface returns a string containing the Unicode serialization of the origin of the represented URL.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/URL/origin)\n */\n readonly origin: string;\n /**\n * The **`password`** property of the URL interface is a string containing the password component of the URL.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/URL/password)\n */\n password: string;\n /**\n * The **`pathname`** property of the URL interface represents a location in a hierarchical structure.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/URL/pathname)\n */\n pathname: string;\n /**\n * The **`port`** property of the URL interface is a string containing the port number of the URL.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/URL/port)\n */\n port: string;\n /**\n * The **`protocol`** property of the URL interface is a string containing the protocol or scheme of the URL, including the final `\':\'`.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/URL/protocol)\n */\n protocol: string;\n /**\n * The **`search`** property of the URL interface is a search string, also called a _query string_, that is a string containing a `\'?\'` followed by the parameters of the URL.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/URL/search)\n */\n search: string;\n /**\n * The **`searchParams`** read-only property of the access to the [MISSING: httpmethod(\'GET\')] decoded query arguments contained in the URL.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/URL/searchParams)\n */\n readonly searchParams: URLSearchParams;\n /**\n * The **`username`** property of the URL interface is a string containing the username component of the URL.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/URL/username)\n */\n username: string;\n /**\n * The **`toJSON()`** method of the URL interface returns a string containing a serialized version of the URL, although in practice it seems to have the same effect as ```js-nolint toJSON() ``` None.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/URL/toJSON)\n */\n toJSON(): string;\n}\n\ndeclare var URL: {\n prototype: URL;\n new(url: string | URL, base?: string | URL): URL;\n /**\n * The **`URL.canParse()`** static method of the URL interface returns a boolean indicating whether or not an absolute URL, or a relative URL combined with a base URL, are parsable and valid.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/URL/canParse_static)\n */\n canParse(url: string | URL, base?: string | URL): boolean;\n /**\n * The **`createObjectURL()`** static method of the URL interface creates a string containing a URL representing the object given in the parameter.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/URL/createObjectURL_static)\n */\n createObjectURL(obj: Blob | MediaSource): string;\n /**\n * The **`URL.parse()`** static method of the URL interface returns a newly created URL object representing the URL defined by the parameters.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/URL/parse_static)\n */\n parse(url: string | URL, base?: string | URL): URL | null;\n /**\n * The **`revokeObjectURL()`** static method of the URL interface releases an existing object URL which was previously created by calling Call this method when you\'ve finished using an object URL to let the browser know not to keep the reference to the file any longer.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/URL/revokeObjectURL_static)\n */\n revokeObjectURL(url: string): void;\n};\n\ntype webkitURL = URL;\ndeclare var webkitURL: typeof URL;\n\n/**\n * The **`URLSearchParams`** interface defines utility methods to work with the query string of a URL.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/URLSearchParams)\n */\ninterface URLSearchParams {\n /**\n * The **`size`** read-only property of the URLSearchParams interface indicates the total number of search parameter entries.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/URLSearchParams/size)\n */\n readonly size: number;\n /**\n * The **`append()`** method of the URLSearchParams interface appends a specified key/value pair as a new search parameter.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/URLSearchParams/append)\n */\n append(name: string, value: string): void;\n /**\n * The **`delete()`** method of the URLSearchParams interface deletes specified parameters and their associated value(s) from the list of all search parameters.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/URLSearchParams/delete)\n */\n delete(name: string, value?: string): void;\n /**\n * The **`get()`** method of the URLSearchParams interface returns the first value associated to the given search parameter.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/URLSearchParams/get)\n */\n get(name: string): string | null;\n /**\n * The **`getAll()`** method of the URLSearchParams interface returns all the values associated with a given search parameter as an array.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/URLSearchParams/getAll)\n */\n getAll(name: string): string[];\n /**\n * The **`has()`** method of the URLSearchParams interface returns a boolean value that indicates whether the specified parameter is in the search parameters.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/URLSearchParams/has)\n */\n has(name: string, value?: string): boolean;\n /**\n * The **`set()`** method of the URLSearchParams interface sets the value associated with a given search parameter to the given value.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/URLSearchParams/set)\n */\n set(name: string, value: string): void;\n /**\n * The **`URLSearchParams.sort()`** method sorts all key/value pairs contained in this object in place and returns `undefined`.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/URLSearchParams/sort)\n */\n sort(): void;\n toString(): string;\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/**\n * The **`UserActivation`** interface provides information about whether a user is currently interacting with the page, or has completed an interaction since page load.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/UserActivation)\n */\ninterface UserActivation {\n /**\n * The read-only **`hasBeenActive`** property of the UserActivation interface indicates whether the current window has sticky activation.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/UserActivation/hasBeenActive)\n */\n readonly hasBeenActive: boolean;\n /**\n * The read-only **`isActive`** property of the UserActivation interface indicates whether the current window has transient activation.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/UserActivation/isActive)\n */\n readonly isActive: boolean;\n}\n\ndeclare var UserActivation: {\n prototype: UserActivation;\n new(): UserActivation;\n};\n\n/**\n * The `VTTCue` interface of the WebVTT API represents a cue that can be added to the text track associated with a particular video (or other media).\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/VTTCue)\n */\ninterface VTTCue extends TextTrackCue {\n /**\n * The **`align`** property of the VTTCue interface represents the alignment of all of the lines of text in the text box.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/VTTCue/align)\n */\n align: AlignSetting;\n /**\n * The **`line`** property of the VTTCue interface represents the cue line of this WebVTT cue.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/VTTCue/line)\n */\n line: LineAndPositionSetting;\n /**\n * The **`lineAlign`** property of the VTTCue interface represents the alignment of this VTT cue.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/VTTCue/lineAlign)\n */\n lineAlign: LineAlignSetting;\n /**\n * The **`position`** property of the VTTCue interface represents the indentation of the cue within the line.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/VTTCue/position)\n */\n position: LineAndPositionSetting;\n /**\n * The **`positionAlign`** property of the VTTCue interface is used to determine what VTTCue.position is anchored to.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/VTTCue/positionAlign)\n */\n positionAlign: PositionAlignSetting;\n /**\n * The **`region`** property of the VTTCue interface returns and sets the VTTRegion that this cue belongs to.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/VTTCue/region)\n */\n region: VTTRegion | null;\n /**\n * The **`size`** property of the VTTCue interface represents the size of the cue as a percentage of the video size.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/VTTCue/size)\n */\n size: number;\n /**\n * The **`snapToLines`** property of the VTTCue interface is a Boolean indicating if the VTTCue.line property is an integer number of lines, or a percentage of the video size.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/VTTCue/snapToLines)\n */\n snapToLines: boolean;\n /**\n * The **`text`** property of the VTTCue interface represents the text contents of the cue.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/VTTCue/text)\n */\n text: string;\n /**\n * The **`vertical`** property of the VTTCue interface is a string representing the cue\'s writing direction.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/VTTCue/vertical)\n */\n vertical: DirectionSetting;\n /**\n * The **`getCueAsHTML()`** method of the VTTCue interface returns a DocumentFragment containing the cue content.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/VTTCue/getCueAsHTML)\n */\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\n/**\n * The `VTTRegion` interface of the WebVTT API describes a portion of the video to render a VTTCue onto.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/VTTRegion)\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/**\n * The **`ValidityState`** interface represents the _validity states_ that an element can be in, with respect to constraint validation.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ValidityState)\n */\ninterface ValidityState {\n /**\n * The read-only **`badInput`** property of the ValidityState interface indicates if the user has provided input that the browser is unable to convert.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ValidityState/badInput)\n */\n readonly badInput: boolean;\n /**\n * The read-only **`customError`** property of the `ValidityState` interface returns `true` if an element doesn\'t meet the validation required in the custom validity set by the element\'s HTMLInputElement.setCustomValidity method.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ValidityState/customError)\n */\n readonly customError: boolean;\n /**\n * The read-only **`patternMismatch`** property of the `ValidityState` interface indicates if the value of an input, after having been edited by the user, does not conform to the constraints set by the element\'s `pattern` attribute.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ValidityState/patternMismatch)\n */\n readonly patternMismatch: boolean;\n /**\n * The read-only **`rangeOverflow`** property of the `ValidityState` interface indicates if the value of an input, after having been edited by the user, does not conform to the constraints set by the element\'s `max` attribute.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ValidityState/rangeOverflow)\n */\n readonly rangeOverflow: boolean;\n /**\n * The read-only **`rangeUnderflow`** property of the `ValidityState` interface indicates if the value of an input, after having been edited by the user, does not conform to the constraints set by the element\'s `min` attribute.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ValidityState/rangeUnderflow)\n */\n readonly rangeUnderflow: boolean;\n /**\n * The read-only **`stepMismatch`** property of the `ValidityState` interface indicates if the value of an input, after having been edited by the user, does not conform to the constraints set by the element\'s `step` attribute.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ValidityState/stepMismatch)\n */\n readonly stepMismatch: boolean;\n /**\n * The read-only **`tooLong`** property of the `ValidityState` interface indicates if the value of an input or textarea, after having been edited by the user, exceeds the maximum code-unit length established by the element\'s `maxlength` attribute.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ValidityState/tooLong)\n */\n readonly tooLong: boolean;\n /**\n * The read-only **`tooShort`** property of the `ValidityState` interface indicates if the value of an input, button, select, output, fieldset or textarea, after having been edited by the user, is less than the minimum code-unit length established by the element\'s `minlength` attribute.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ValidityState/tooShort)\n */\n readonly tooShort: boolean;\n /**\n * The read-only **`typeMismatch`** property of the `ValidityState` interface indicates if the value of an input, after having been edited by the user, does not conform to the constraints set by the element\'s `type` attribute.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ValidityState/typeMismatch)\n */\n readonly typeMismatch: boolean;\n /**\n * The read-only **`valid`** property of the `ValidityState` interface indicates if the value of an input element meets all its validation constraints, and is therefore considered to be valid.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ValidityState/valid)\n */\n readonly valid: boolean;\n /**\n * The read-only **`valueMissing`** property of the `ValidityState` interface indicates if a `required` control, such as an input, select, or textarea, has an empty value.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ValidityState/valueMissing)\n */\n readonly valueMissing: boolean;\n}\n\ndeclare var ValidityState: {\n prototype: ValidityState;\n new(): ValidityState;\n};\n\n/**\n * The **`VideoColorSpace`** interface of the WebCodecs API represents the color space of a video.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/VideoColorSpace)\n */\ninterface VideoColorSpace {\n /**\n * The **`fullRange`** read-only property of the VideoColorSpace interface returns `true` if full-range color values are used.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/VideoColorSpace/fullRange)\n */\n readonly fullRange: boolean | null;\n /**\n * The **`matrix`** read-only property of the VideoColorSpace interface returns the matrix coefficient of the video.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/VideoColorSpace/matrix)\n */\n readonly matrix: VideoMatrixCoefficients | null;\n /**\n * The **`primaries`** read-only property of the VideoColorSpace interface returns the color gamut of the video.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/VideoColorSpace/primaries)\n */\n readonly primaries: VideoColorPrimaries | null;\n /**\n * The **`transfer`** read-only property of the VideoColorSpace interface returns the opto-electronic transfer characteristics of the video.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/VideoColorSpace/transfer)\n */\n readonly transfer: VideoTransferCharacteristics | null;\n /**\n * The **`toJSON()`** method of the VideoColorSpace interface is a _serializer_ that returns a JSON representation of the `VideoColorSpace` object.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/VideoColorSpace/toJSON)\n */\n toJSON(): VideoColorSpaceInit;\n}\n\ndeclare var VideoColorSpace: {\n prototype: VideoColorSpace;\n new(init?: VideoColorSpaceInit): VideoColorSpace;\n};\n\ninterface VideoDecoderEventMap {\n "dequeue": Event;\n}\n\n/**\n * The **`VideoDecoder`** interface of the WebCodecs API decodes chunks of video.\n * Available only in secure contexts.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/VideoDecoder)\n */\ninterface VideoDecoder extends EventTarget {\n /**\n * The **`decodeQueueSize`** read-only property of the VideoDecoder interface returns the number of pending decode requests in the queue.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/VideoDecoder/decodeQueueSize)\n */\n readonly decodeQueueSize: number;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/VideoDecoder/dequeue_event) */\n ondequeue: ((this: VideoDecoder, ev: Event) => any) | null;\n /**\n * The **`state`** property of the VideoDecoder interface returns the current state of the underlying codec.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/VideoDecoder/state)\n */\n readonly state: CodecState;\n /**\n * The **`close()`** method of the VideoDecoder interface ends all pending work and releases system resources.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/VideoDecoder/close)\n */\n close(): void;\n /**\n * The **`configure()`** method of the VideoDecoder interface enqueues a control message to configure the video decoder for decoding chunks.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/VideoDecoder/configure)\n */\n configure(config: VideoDecoderConfig): void;\n /**\n * The **`decode()`** method of the VideoDecoder interface enqueues a control message to decode a given chunk of video.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/VideoDecoder/decode)\n */\n decode(chunk: EncodedVideoChunk): void;\n /**\n * The **`flush()`** method of the VideoDecoder interface returns a Promise that resolves once all pending messages in the queue have been completed.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/VideoDecoder/flush)\n */\n flush(): Promise<void>;\n /**\n * The **`reset()`** method of the VideoDecoder interface resets all states including configuration, control messages in the control message queue, and all pending callbacks.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/VideoDecoder/reset)\n */\n reset(): void;\n addEventListener<K extends keyof VideoDecoderEventMap>(type: K, listener: (this: VideoDecoder, ev: VideoDecoderEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n removeEventListener<K extends keyof VideoDecoderEventMap>(type: K, listener: (this: VideoDecoder, ev: VideoDecoderEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\ndeclare var VideoDecoder: {\n prototype: VideoDecoder;\n new(init: VideoDecoderInit): VideoDecoder;\n /**\n * The **`isConfigSupported()`** static method of the VideoDecoder interface checks if the given config is supported (that is, if VideoDecoder objects can be successfully configured with the given config).\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/VideoDecoder/isConfigSupported_static)\n */\n isConfigSupported(config: VideoDecoderConfig): Promise<VideoDecoderSupport>;\n};\n\ninterface VideoEncoderEventMap {\n "dequeue": Event;\n}\n\n/**\n * The **`VideoEncoder`** interface of the WebCodecs API encodes VideoFrame objects into EncodedVideoChunks.\n * Available only in secure contexts.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/VideoEncoder)\n */\ninterface VideoEncoder extends EventTarget {\n /**\n * The **`encodeQueueSize`** read-only property of the VideoEncoder interface returns the number of pending encode requests in the queue.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/VideoEncoder/encodeQueueSize)\n */\n readonly encodeQueueSize: number;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/VideoEncoder/dequeue_event) */\n ondequeue: ((this: VideoEncoder, ev: Event) => any) | null;\n /**\n * The **`state`** read-only property of the VideoEncoder interface returns the current state of the underlying codec.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/VideoEncoder/state)\n */\n readonly state: CodecState;\n /**\n * The **`close()`** method of the VideoEncoder interface ends all pending work and releases system resources.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/VideoEncoder/close)\n */\n close(): void;\n /**\n * The **`configure()`** method of the VideoEncoder interface changes the VideoEncoder.state of the encoder to \'configured\' and asynchronously prepares the encoder to accept VideoEncoders for encoding with the specified parameters.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/VideoEncoder/configure)\n */\n configure(config: VideoEncoderConfig): void;\n /**\n * The **`encode()`** method of the VideoEncoder interface asynchronously encodes a VideoFrame.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/VideoEncoder/encode)\n */\n encode(frame: VideoFrame, options?: VideoEncoderEncodeOptions): void;\n /**\n * The **`flush()`** method of the VideoEncoder interface forces all pending encodes to complete.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/VideoEncoder/flush)\n */\n flush(): Promise<void>;\n /**\n * The **`reset()`** method of the VideoEncoder interface synchronously cancels all pending encodes and callbacks, frees all underlying resources and sets the VideoEncoder.state to \'unconfigured\'.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/VideoEncoder/reset)\n */\n reset(): void;\n addEventListener<K extends keyof VideoEncoderEventMap>(type: K, listener: (this: VideoEncoder, ev: VideoEncoderEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n removeEventListener<K extends keyof VideoEncoderEventMap>(type: K, listener: (this: VideoEncoder, ev: VideoEncoderEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\ndeclare var VideoEncoder: {\n prototype: VideoEncoder;\n new(init: VideoEncoderInit): VideoEncoder;\n /**\n * The **`isConfigSupported()`** static method of the VideoEncoder interface checks if VideoEncoder can be successfully configured with the given config.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/VideoEncoder/isConfigSupported_static)\n */\n isConfigSupported(config: VideoEncoderConfig): Promise<VideoEncoderSupport>;\n};\n\n/**\n * The **`VideoFrame`** interface of the Web Codecs API represents a frame of a video.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/VideoFrame)\n */\ninterface VideoFrame {\n /**\n * The **`codedHeight`** property of the VideoFrame interface returns the height of the VideoFrame in pixels, potentially including non-visible padding, and prior to considering potential ratio adjustments.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/VideoFrame/codedHeight)\n */\n readonly codedHeight: number;\n /**\n * The **`codedRect`** property of the VideoFrame interface returns a DOMRectReadOnly with the width and height matching VideoFrame.codedWidth and VideoFrame.codedHeight.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/VideoFrame/codedRect)\n */\n readonly codedRect: DOMRectReadOnly | null;\n /**\n * The **`codedWidth`** property of the VideoFrame interface returns the width of the `VideoFrame` in pixels, potentially including non-visible padding, and prior to considering potential ratio adjustments.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/VideoFrame/codedWidth)\n */\n readonly codedWidth: number;\n /**\n * The **`colorSpace`** property of the VideoFrame interface returns a VideoColorSpace object representing the color space of the video.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/VideoFrame/colorSpace)\n */\n readonly colorSpace: VideoColorSpace;\n /**\n * The **`displayHeight`** property of the VideoFrame interface returns the height of the `VideoFrame` after applying aspect ratio adjustments.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/VideoFrame/displayHeight)\n */\n readonly displayHeight: number;\n /**\n * The **`displayWidth`** property of the VideoFrame interface returns the width of the `VideoFrame` after applying aspect ratio adjustments.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/VideoFrame/displayWidth)\n */\n readonly displayWidth: number;\n /**\n * The **`duration`** property of the VideoFrame interface returns an integer indicating the duration of the video in microseconds.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/VideoFrame/duration)\n */\n readonly duration: number | null;\n /**\n * The **`format`** property of the VideoFrame interface returns the pixel format of the `VideoFrame`.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/VideoFrame/format)\n */\n readonly format: VideoPixelFormat | null;\n /**\n * The **`timestamp`** property of the VideoFrame interface returns an integer indicating the timestamp of the video in microseconds.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/VideoFrame/timestamp)\n */\n readonly timestamp: number;\n /**\n * The **`visibleRect`** property of the VideoFrame interface returns a DOMRectReadOnly describing the visible rectangle of pixels for this `VideoFrame`.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/VideoFrame/visibleRect)\n */\n readonly visibleRect: DOMRectReadOnly | null;\n /**\n * The **`allocationSize()`** method of the VideoFrame interface returns the number of bytes required to hold the video as filtered by options passed into the method.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/VideoFrame/allocationSize)\n */\n allocationSize(options?: VideoFrameCopyToOptions): number;\n /**\n * The **`clone()`** method of the VideoFrame interface creates a new `VideoFrame` object referencing the same media resource as the original.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/VideoFrame/clone)\n */\n clone(): VideoFrame;\n /**\n * The **`close()`** method of the VideoFrame interface clears all states and releases the reference to the media resource.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/VideoFrame/close)\n */\n close(): void;\n /**\n * The **`copyTo()`** method of the VideoFrame interface copies the contents of the `VideoFrame` to an `ArrayBuffer`.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/VideoFrame/copyTo)\n */\n copyTo(destination: AllowSharedBufferSource, options?: VideoFrameCopyToOptions): Promise<PlaneLayout[]>;\n}\n\ndeclare var VideoFrame: {\n prototype: VideoFrame;\n new(image: CanvasImageSource, init?: VideoFrameInit): VideoFrame;\n new(data: AllowSharedBufferSource, init: VideoFrameBufferInit): VideoFrame;\n};\n\n/**\n * A **`VideoPlaybackQuality`** object is returned by the HTMLVideoElement.getVideoPlaybackQuality() method and contains metrics that can be used to determine the playback quality of a video.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/VideoPlaybackQuality)\n */\ninterface VideoPlaybackQuality {\n /**\n * The VideoPlaybackQuality interface\'s read-only **`corruptedVideoFrames`** property the number of corrupted video frames that have been received since the video element was last loaded or reloaded.\n * @deprecated\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/VideoPlaybackQuality/corruptedVideoFrames)\n */\n readonly corruptedVideoFrames: number;\n /**\n * The read-only **`creationTime`** property on the the browsing context was created this quality sample was recorded.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/VideoPlaybackQuality/creationTime)\n */\n readonly creationTime: DOMHighResTimeStamp;\n /**\n * The read-only **`droppedVideoFrames`** property of the VideoPlaybackQuality interface returns the number of video frames which have been dropped rather than being displayed since the last time the media was loaded into the HTMLVideoElement.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/VideoPlaybackQuality/droppedVideoFrames)\n */\n readonly droppedVideoFrames: number;\n /**\n * The VideoPlaybackQuality interface\'s **`totalVideoFrames`** read-only property returns the total number of video frames that have been displayed or dropped since the media was loaded.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/VideoPlaybackQuality/totalVideoFrames)\n */\n readonly totalVideoFrames: number;\n}\n\ndeclare var VideoPlaybackQuality: {\n prototype: VideoPlaybackQuality;\n new(): VideoPlaybackQuality;\n};\n\n/**\n * The **`ViewTransition`** interface of the View Transition API represents an active view transition, and provides functionality to react to the transition reaching different states (e.g., ready to run the animation, or animation finished) or skip the transition altogether.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ViewTransition)\n */\ninterface ViewTransition {\n /**\n * The **`finished`** read-only property of the `finished` will only reject in the case of a same-document (SPA) transition, if the callback passed to Document.startViewTransition() throws or returns a promise that rejects.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ViewTransition/finished)\n */\n readonly finished: Promise<void>;\n /**\n * The **`ready`** read-only property of the `ready` will reject if the transition cannot begin.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ViewTransition/ready)\n */\n readonly ready: Promise<void>;\n types: ViewTransitionTypeSet;\n /**\n * The **`updateCallbackDone`** read-only property of the `updateCallbackDone` is useful when you don\'t care about the success/failure of a same-document (SPA) view transition animation, and just want to know if and when the DOM is updated.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ViewTransition/updateCallbackDone)\n */\n readonly updateCallbackDone: Promise<void>;\n /**\n * The **`skipTransition()`** method of the ```js-nolint skipTransition() ``` None.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ViewTransition/skipTransition)\n */\n skipTransition(): void;\n}\n\ndeclare var ViewTransition: {\n prototype: ViewTransition;\n new(): ViewTransition;\n};\n\ninterface ViewTransitionTypeSet {\n forEach(callbackfn: (value: string, key: string, parent: ViewTransitionTypeSet) => void, thisArg?: any): void;\n}\n\ndeclare var ViewTransitionTypeSet: {\n prototype: ViewTransitionTypeSet;\n new(): ViewTransitionTypeSet;\n};\n\ninterface VisualViewportEventMap {\n "resize": Event;\n "scroll": Event;\n}\n\n/**\n * The **`VisualViewport`** interface of the Visual Viewport API represents the visual viewport for a given window.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/VisualViewport)\n */\ninterface VisualViewport extends EventTarget {\n /**\n * The **`height`** read-only property of the VisualViewport interface returns the height of the visual viewport, in CSS pixels, or `0` if current document is not fully active.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/VisualViewport/height)\n */\n readonly height: number;\n /**\n * The **`offsetLeft`** read-only property of the VisualViewport interface returns the offset of the left edge of the visual viewport from the left edge of the layout viewport in CSS pixels, or `0` if current document is not fully active.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/VisualViewport/offsetLeft)\n */\n readonly offsetLeft: number;\n /**\n * The **`offsetTop`** read-only property of the VisualViewport interface returns the offset of the top edge of the visual viewport from the top edge of the layout viewport in CSS pixels, or `0` if current document is not fully active.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/VisualViewport/offsetTop)\n */\n readonly offsetTop: number;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/VisualViewport/resize_event) */\n onresize: ((this: VisualViewport, ev: Event) => any) | null;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/VisualViewport/scroll_event) */\n onscroll: ((this: VisualViewport, ev: Event) => any) | null;\n /**\n * The **`pageLeft`** read-only property of the VisualViewport interface returns the x coordinate of the left edge of the visual viewport relative to the initial containing block origin, in CSS pixels, or `0` if current document is not fully active.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/VisualViewport/pageLeft)\n */\n readonly pageLeft: number;\n /**\n * The **`pageTop`** read-only property of the VisualViewport interface returns the y coordinate of the top edge of the visual viewport relative to the initial containing block origin, in CSS pixels, or `0` if current document is not fully active.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/VisualViewport/pageTop)\n */\n readonly pageTop: number;\n /**\n * The **`scale`** read-only property of the VisualViewport interface returns the pinch-zoom scaling factor applied to the visual viewport, or `0` if current document is not fully active, or `1` if there is no output device.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/VisualViewport/scale)\n */\n readonly scale: number;\n /**\n * The **`width`** read-only property of the VisualViewport interface returns the width of the visual viewport, in CSS pixels, or `0` if current document is not fully active.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/VisualViewport/width)\n */\n readonly width: number;\n addEventListener<K extends keyof VisualViewportEventMap>(type: K, listener: (this: VisualViewport, ev: VisualViewportEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n removeEventListener<K extends keyof VisualViewportEventMap>(type: K, listener: (this: VisualViewport, ev: VisualViewportEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\ndeclare var VisualViewport: {\n prototype: VisualViewport;\n new(): VisualViewport;\n};\n\n/**\n * The **`WEBGL_color_buffer_float`** extension is part of the WebGL API and adds the ability to render to 32-bit floating-point color buffers.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WEBGL_color_buffer_float)\n */\ninterface WEBGL_color_buffer_float {\n readonly RGBA32F_EXT: 0x8814;\n readonly FRAMEBUFFER_ATTACHMENT_COMPONENT_TYPE_EXT: 0x8211;\n readonly UNSIGNED_NORMALIZED_EXT: 0x8C17;\n}\n\n/**\n * The **`WEBGL_compressed_texture_astc`** extension is part of the WebGL API and exposes Adaptive Scalable Texture Compression (ASTC) compressed texture formats to WebGL.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WEBGL_compressed_texture_astc)\n */\ninterface WEBGL_compressed_texture_astc {\n /**\n * The **`WEBGL_compressed_texture_astc.getSupportedProfiles()`** method returns an array of strings containing the names of the ASTC profiles supported by the implementation.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WEBGL_compressed_texture_astc/getSupportedProfiles)\n */\n getSupportedProfiles(): string[];\n readonly COMPRESSED_RGBA_ASTC_4x4_KHR: 0x93B0;\n readonly COMPRESSED_RGBA_ASTC_5x4_KHR: 0x93B1;\n readonly COMPRESSED_RGBA_ASTC_5x5_KHR: 0x93B2;\n readonly COMPRESSED_RGBA_ASTC_6x5_KHR: 0x93B3;\n readonly COMPRESSED_RGBA_ASTC_6x6_KHR: 0x93B4;\n readonly COMPRESSED_RGBA_ASTC_8x5_KHR: 0x93B5;\n readonly COMPRESSED_RGBA_ASTC_8x6_KHR: 0x93B6;\n readonly COMPRESSED_RGBA_ASTC_8x8_KHR: 0x93B7;\n readonly COMPRESSED_RGBA_ASTC_10x5_KHR: 0x93B8;\n readonly COMPRESSED_RGBA_ASTC_10x6_KHR: 0x93B9;\n readonly COMPRESSED_RGBA_ASTC_10x8_KHR: 0x93BA;\n readonly COMPRESSED_RGBA_ASTC_10x10_KHR: 0x93BB;\n readonly COMPRESSED_RGBA_ASTC_12x10_KHR: 0x93BC;\n readonly COMPRESSED_RGBA_ASTC_12x12_KHR: 0x93BD;\n readonly COMPRESSED_SRGB8_ALPHA8_ASTC_4x4_KHR: 0x93D0;\n readonly COMPRESSED_SRGB8_ALPHA8_ASTC_5x4_KHR: 0x93D1;\n readonly COMPRESSED_SRGB8_ALPHA8_ASTC_5x5_KHR: 0x93D2;\n readonly COMPRESSED_SRGB8_ALPHA8_ASTC_6x5_KHR: 0x93D3;\n readonly COMPRESSED_SRGB8_ALPHA8_ASTC_6x6_KHR: 0x93D4;\n readonly COMPRESSED_SRGB8_ALPHA8_ASTC_8x5_KHR: 0x93D5;\n readonly COMPRESSED_SRGB8_ALPHA8_ASTC_8x6_KHR: 0x93D6;\n readonly COMPRESSED_SRGB8_ALPHA8_ASTC_8x8_KHR: 0x93D7;\n readonly COMPRESSED_SRGB8_ALPHA8_ASTC_10x5_KHR: 0x93D8;\n readonly COMPRESSED_SRGB8_ALPHA8_ASTC_10x6_KHR: 0x93D9;\n readonly COMPRESSED_SRGB8_ALPHA8_ASTC_10x8_KHR: 0x93DA;\n readonly COMPRESSED_SRGB8_ALPHA8_ASTC_10x10_KHR: 0x93DB;\n readonly COMPRESSED_SRGB8_ALPHA8_ASTC_12x10_KHR: 0x93DC;\n readonly COMPRESSED_SRGB8_ALPHA8_ASTC_12x12_KHR: 0x93DD;\n}\n\n/**\n * The **`WEBGL_compressed_texture_etc`** extension is part of the WebGL API and exposes 10 ETC/EAC compressed texture formats.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WEBGL_compressed_texture_etc)\n */\ninterface WEBGL_compressed_texture_etc {\n readonly COMPRESSED_R11_EAC: 0x9270;\n readonly COMPRESSED_SIGNED_R11_EAC: 0x9271;\n readonly COMPRESSED_RG11_EAC: 0x9272;\n readonly COMPRESSED_SIGNED_RG11_EAC: 0x9273;\n readonly COMPRESSED_RGB8_ETC2: 0x9274;\n readonly COMPRESSED_SRGB8_ETC2: 0x9275;\n readonly COMPRESSED_RGB8_PUNCHTHROUGH_ALPHA1_ETC2: 0x9276;\n readonly COMPRESSED_SRGB8_PUNCHTHROUGH_ALPHA1_ETC2: 0x9277;\n readonly COMPRESSED_RGBA8_ETC2_EAC: 0x9278;\n readonly COMPRESSED_SRGB8_ALPHA8_ETC2_EAC: 0x9279;\n}\n\n/**\n * The **`WEBGL_compressed_texture_etc1`** extension is part of the WebGL API and exposes the ETC1 compressed texture format.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WEBGL_compressed_texture_etc1)\n */\ninterface WEBGL_compressed_texture_etc1 {\n readonly COMPRESSED_RGB_ETC1_WEBGL: 0x8D64;\n}\n\n/**\n * The **`WEBGL_compressed_texture_pvrtc`** extension is part of the WebGL API and exposes four PVRTC compressed texture formats.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WEBGL_compressed_texture_pvrtc)\n */\ninterface WEBGL_compressed_texture_pvrtc {\n readonly COMPRESSED_RGB_PVRTC_4BPPV1_IMG: 0x8C00;\n readonly COMPRESSED_RGB_PVRTC_2BPPV1_IMG: 0x8C01;\n readonly COMPRESSED_RGBA_PVRTC_4BPPV1_IMG: 0x8C02;\n readonly COMPRESSED_RGBA_PVRTC_2BPPV1_IMG: 0x8C03;\n}\n\n/**\n * The **`WEBGL_compressed_texture_s3tc`** extension is part of the WebGL API and exposes four S3TC compressed texture formats.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WEBGL_compressed_texture_s3tc)\n */\ninterface WEBGL_compressed_texture_s3tc {\n readonly COMPRESSED_RGB_S3TC_DXT1_EXT: 0x83F0;\n readonly COMPRESSED_RGBA_S3TC_DXT1_EXT: 0x83F1;\n readonly COMPRESSED_RGBA_S3TC_DXT3_EXT: 0x83F2;\n readonly COMPRESSED_RGBA_S3TC_DXT5_EXT: 0x83F3;\n}\n\n/**\n * The **`WEBGL_compressed_texture_s3tc_srgb`** extension is part of the WebGL API and exposes four S3TC compressed texture formats for the sRGB colorspace.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WEBGL_compressed_texture_s3tc_srgb)\n */\ninterface WEBGL_compressed_texture_s3tc_srgb {\n readonly COMPRESSED_SRGB_S3TC_DXT1_EXT: 0x8C4C;\n readonly COMPRESSED_SRGB_ALPHA_S3TC_DXT1_EXT: 0x8C4D;\n readonly COMPRESSED_SRGB_ALPHA_S3TC_DXT3_EXT: 0x8C4E;\n readonly COMPRESSED_SRGB_ALPHA_S3TC_DXT5_EXT: 0x8C4F;\n}\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.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WEBGL_debug_renderer_info)\n */\ninterface WEBGL_debug_renderer_info {\n readonly UNMASKED_VENDOR_WEBGL: 0x9245;\n readonly UNMASKED_RENDERER_WEBGL: 0x9246;\n}\n\n/**\n * The **`WEBGL_debug_shaders`** extension is part of the WebGL API and exposes a method to debug shaders from privileged contexts.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WEBGL_debug_shaders)\n */\ninterface WEBGL_debug_shaders {\n /**\n * The **`WEBGL_debug_shaders.getTranslatedShaderSource()`** method is part of the WebGL API and allows you to debug a translated shader.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WEBGL_debug_shaders/getTranslatedShaderSource)\n */\n getTranslatedShaderSource(shader: WebGLShader): string;\n}\n\n/**\n * The **`WEBGL_depth_texture`** extension is part of the WebGL API and defines 2D depth and depth-stencil textures.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WEBGL_depth_texture)\n */\ninterface WEBGL_depth_texture {\n readonly UNSIGNED_INT_24_8_WEBGL: 0x84FA;\n}\n\n/**\n * The **`WEBGL_draw_buffers`** extension is part of the WebGL API and enables a fragment shader to write to several textures, which is useful for deferred shading, for example.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WEBGL_draw_buffers)\n */\ninterface WEBGL_draw_buffers {\n /**\n * The **`WEBGL_draw_buffers.drawBuffersWEBGL()`** method is part of the WebGL API and allows you to define the draw buffers to which all fragment colors are written.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WEBGL_draw_buffers/drawBuffersWEBGL)\n */\n drawBuffersWEBGL(buffers: GLenum[]): void;\n readonly COLOR_ATTACHMENT0_WEBGL: 0x8CE0;\n readonly COLOR_ATTACHMENT1_WEBGL: 0x8CE1;\n readonly COLOR_ATTACHMENT2_WEBGL: 0x8CE2;\n readonly COLOR_ATTACHMENT3_WEBGL: 0x8CE3;\n readonly COLOR_ATTACHMENT4_WEBGL: 0x8CE4;\n readonly COLOR_ATTACHMENT5_WEBGL: 0x8CE5;\n readonly COLOR_ATTACHMENT6_WEBGL: 0x8CE6;\n readonly COLOR_ATTACHMENT7_WEBGL: 0x8CE7;\n readonly COLOR_ATTACHMENT8_WEBGL: 0x8CE8;\n readonly COLOR_ATTACHMENT9_WEBGL: 0x8CE9;\n readonly COLOR_ATTACHMENT10_WEBGL: 0x8CEA;\n readonly COLOR_ATTACHMENT11_WEBGL: 0x8CEB;\n readonly COLOR_ATTACHMENT12_WEBGL: 0x8CEC;\n readonly COLOR_ATTACHMENT13_WEBGL: 0x8CED;\n readonly COLOR_ATTACHMENT14_WEBGL: 0x8CEE;\n readonly COLOR_ATTACHMENT15_WEBGL: 0x8CEF;\n readonly DRAW_BUFFER0_WEBGL: 0x8825;\n readonly DRAW_BUFFER1_WEBGL: 0x8826;\n readonly DRAW_BUFFER2_WEBGL: 0x8827;\n readonly DRAW_BUFFER3_WEBGL: 0x8828;\n readonly DRAW_BUFFER4_WEBGL: 0x8829;\n readonly DRAW_BUFFER5_WEBGL: 0x882A;\n readonly DRAW_BUFFER6_WEBGL: 0x882B;\n readonly DRAW_BUFFER7_WEBGL: 0x882C;\n readonly DRAW_BUFFER8_WEBGL: 0x882D;\n readonly DRAW_BUFFER9_WEBGL: 0x882E;\n readonly DRAW_BUFFER10_WEBGL: 0x882F;\n readonly DRAW_BUFFER11_WEBGL: 0x8830;\n readonly DRAW_BUFFER12_WEBGL: 0x8831;\n readonly DRAW_BUFFER13_WEBGL: 0x8832;\n readonly DRAW_BUFFER14_WEBGL: 0x8833;\n readonly DRAW_BUFFER15_WEBGL: 0x8834;\n readonly MAX_COLOR_ATTACHMENTS_WEBGL: 0x8CDF;\n readonly MAX_DRAW_BUFFERS_WEBGL: 0x8824;\n}\n\n/**\n * The **WEBGL_lose_context** extension is part of the WebGL API and exposes functions to simulate losing and restoring a WebGLRenderingContext.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WEBGL_lose_context)\n */\ninterface WEBGL_lose_context {\n /**\n * The **WEBGL_lose_context.loseContext()** method is part of the WebGL API and allows you to simulate losing the context of a WebGLRenderingContext context.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WEBGL_lose_context/loseContext)\n */\n loseContext(): void;\n /**\n * The **WEBGL_lose_context.restoreContext()** method is part of the WebGL API and allows you to simulate restoring the context of a WebGLRenderingContext object.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WEBGL_lose_context/restoreContext)\n */\n restoreContext(): void;\n}\n\n/**\n * The **`WEBGL_multi_draw`** extension is part of the WebGL API and allows to render more than one primitive with a single function call.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WEBGL_multi_draw)\n */\ninterface WEBGL_multi_draw {\n /**\n * The **`WEBGL_multi_draw.multiDrawArraysInstancedWEBGL()`** method of the WebGL API renders multiple primitives from array data.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WEBGL_multi_draw/multiDrawArraysInstancedWEBGL)\n */\n multiDrawArraysInstancedWEBGL(mode: GLenum, firstsList: Int32Array<ArrayBufferLike> | GLint[], firstsOffset: number, countsList: Int32Array<ArrayBufferLike> | GLsizei[], countsOffset: number, instanceCountsList: Int32Array<ArrayBufferLike> | GLsizei[], instanceCountsOffset: number, drawcount: GLsizei): void;\n /**\n * The **`WEBGL_multi_draw.multiDrawArraysWEBGL()`** method of the WebGL API renders multiple primitives from array data.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WEBGL_multi_draw/multiDrawArraysWEBGL)\n */\n multiDrawArraysWEBGL(mode: GLenum, firstsList: Int32Array<ArrayBufferLike> | GLint[], firstsOffset: number, countsList: Int32Array<ArrayBufferLike> | GLsizei[], countsOffset: number, drawcount: GLsizei): void;\n /**\n * The **`WEBGL_multi_draw.multiDrawElementsInstancedWEBGL()`** method of the WebGL API renders multiple primitives from array data.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WEBGL_multi_draw/multiDrawElementsInstancedWEBGL)\n */\n multiDrawElementsInstancedWEBGL(mode: GLenum, countsList: Int32Array<ArrayBufferLike> | GLsizei[], countsOffset: number, type: GLenum, offsetsList: Int32Array<ArrayBufferLike> | GLsizei[], offsetsOffset: number, instanceCountsList: Int32Array<ArrayBufferLike> | GLsizei[], instanceCountsOffset: number, drawcount: GLsizei): void;\n /**\n * The **`WEBGL_multi_draw.multiDrawElementsWEBGL()`** method of the WebGL API renders multiple primitives from array data.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WEBGL_multi_draw/multiDrawElementsWEBGL)\n */\n multiDrawElementsWEBGL(mode: GLenum, countsList: Int32Array<ArrayBufferLike> | GLsizei[], countsOffset: number, type: GLenum, offsetsList: Int32Array<ArrayBufferLike> | GLsizei[], offsetsOffset: number, drawcount: GLsizei): void;\n}\n\n/**\n * The **`WakeLock`** interface of the Screen Wake Lock API can be used to request a lock that prevents device screens from dimming or locking when an application needs to keep running.\n * Available only in secure contexts.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WakeLock)\n */\ninterface WakeLock {\n /**\n * The **`request()`** method of the WakeLock interface returns a Promise that fulfills with a WakeLockSentinel object if the system screen wake lock is granted.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WakeLock/request)\n */\n request(type?: WakeLockType): Promise<WakeLockSentinel>;\n}\n\ndeclare var WakeLock: {\n prototype: WakeLock;\n new(): WakeLock;\n};\n\ninterface WakeLockSentinelEventMap {\n "release": Event;\n}\n\n/**\n * The **`WakeLockSentinel`** interface of the Screen Wake Lock API can be used to monitor the status of the platform screen wake lock, and manually release the lock when needed.\n * Available only in secure contexts.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WakeLockSentinel)\n */\ninterface WakeLockSentinel extends EventTarget {\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WakeLockSentinel/release_event) */\n onrelease: ((this: WakeLockSentinel, ev: Event) => any) | null;\n /**\n * The **`released`** read-only property of the WakeLockSentinel interface returns a boolean that indicates whether a WakeLockSentinel has been released.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WakeLockSentinel/released)\n */\n readonly released: boolean;\n /**\n * The **`type`** read-only property of the WakeLockSentinel interface returns a string representation of the currently acquired WakeLockSentinel type.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WakeLockSentinel/type)\n */\n readonly type: WakeLockType;\n /**\n * The **`release()`** method of the WakeLockSentinel interface releases the WakeLockSentinel, returning a Promise that is resolved once the sentinel has been successfully released.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WakeLockSentinel/release)\n */\n release(): Promise<void>;\n addEventListener<K extends keyof WakeLockSentinelEventMap>(type: K, listener: (this: WakeLockSentinel, ev: WakeLockSentinelEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n removeEventListener<K extends keyof WakeLockSentinelEventMap>(type: K, listener: (this: WakeLockSentinel, ev: WakeLockSentinelEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\ndeclare var WakeLockSentinel: {\n prototype: WakeLockSentinel;\n new(): WakeLockSentinel;\n};\n\n/**\n * The **`WaveShaperNode`** interface represents a non-linear distorter.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WaveShaperNode)\n */\ninterface WaveShaperNode extends AudioNode {\n /**\n * The `curve` property of the WaveShaperNode interface is a Float32Array of numbers describing the distortion to apply.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WaveShaperNode/curve)\n */\n curve: Float32Array<ArrayBuffer> | null;\n /**\n * The `oversample` property of the WaveShaperNode interface is an enumerated value indicating if oversampling must be used.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WaveShaperNode/oversample)\n */\n oversample: OverSampleType;\n}\n\ndeclare var WaveShaperNode: {\n prototype: WaveShaperNode;\n new(context: BaseAudioContext, options?: WaveShaperOptions): WaveShaperNode;\n};\n\n/**\n * The **WebGL2RenderingContext** interface provides the OpenGL ES 3.0 rendering context for the drawing surface of an HTML canvas element.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext)\n */\ninterface WebGL2RenderingContext extends WebGL2RenderingContextBase, WebGL2RenderingContextOverloads, WebGLRenderingContextBase {\n}\n\ndeclare var WebGL2RenderingContext: {\n prototype: WebGL2RenderingContext;\n new(): WebGL2RenderingContext;\n readonly READ_BUFFER: 0x0C02;\n readonly UNPACK_ROW_LENGTH: 0x0CF2;\n readonly UNPACK_SKIP_ROWS: 0x0CF3;\n readonly UNPACK_SKIP_PIXELS: 0x0CF4;\n readonly PACK_ROW_LENGTH: 0x0D02;\n readonly PACK_SKIP_ROWS: 0x0D03;\n readonly PACK_SKIP_PIXELS: 0x0D04;\n readonly COLOR: 0x1800;\n readonly DEPTH: 0x1801;\n readonly STENCIL: 0x1802;\n readonly RED: 0x1903;\n readonly RGB8: 0x8051;\n readonly RGB10_A2: 0x8059;\n readonly TEXTURE_BINDING_3D: 0x806A;\n readonly UNPACK_SKIP_IMAGES: 0x806D;\n readonly UNPACK_IMAGE_HEIGHT: 0x806E;\n readonly TEXTURE_3D: 0x806F;\n readonly TEXTURE_WRAP_R: 0x8072;\n readonly MAX_3D_TEXTURE_SIZE: 0x8073;\n readonly UNSIGNED_INT_2_10_10_10_REV: 0x8368;\n readonly MAX_ELEMENTS_VERTICES: 0x80E8;\n readonly MAX_ELEMENTS_INDICES: 0x80E9;\n readonly TEXTURE_MIN_LOD: 0x813A;\n readonly TEXTURE_MAX_LOD: 0x813B;\n readonly TEXTURE_BASE_LEVEL: 0x813C;\n readonly TEXTURE_MAX_LEVEL: 0x813D;\n readonly MIN: 0x8007;\n readonly MAX: 0x8008;\n readonly DEPTH_COMPONENT24: 0x81A6;\n readonly MAX_TEXTURE_LOD_BIAS: 0x84FD;\n readonly TEXTURE_COMPARE_MODE: 0x884C;\n readonly TEXTURE_COMPARE_FUNC: 0x884D;\n readonly CURRENT_QUERY: 0x8865;\n readonly QUERY_RESULT: 0x8866;\n readonly QUERY_RESULT_AVAILABLE: 0x8867;\n readonly STREAM_READ: 0x88E1;\n readonly STREAM_COPY: 0x88E2;\n readonly STATIC_READ: 0x88E5;\n readonly STATIC_COPY: 0x88E6;\n readonly DYNAMIC_READ: 0x88E9;\n readonly DYNAMIC_COPY: 0x88EA;\n readonly MAX_DRAW_BUFFERS: 0x8824;\n readonly DRAW_BUFFER0: 0x8825;\n readonly DRAW_BUFFER1: 0x8826;\n readonly DRAW_BUFFER2: 0x8827;\n readonly DRAW_BUFFER3: 0x8828;\n readonly DRAW_BUFFER4: 0x8829;\n readonly DRAW_BUFFER5: 0x882A;\n readonly DRAW_BUFFER6: 0x882B;\n readonly DRAW_BUFFER7: 0x882C;\n readonly DRAW_BUFFER8: 0x882D;\n readonly DRAW_BUFFER9: 0x882E;\n readonly DRAW_BUFFER10: 0x882F;\n readonly DRAW_BUFFER11: 0x8830;\n readonly DRAW_BUFFER12: 0x8831;\n readonly DRAW_BUFFER13: 0x8832;\n readonly DRAW_BUFFER14: 0x8833;\n readonly DRAW_BUFFER15: 0x8834;\n readonly MAX_FRAGMENT_UNIFORM_COMPONENTS: 0x8B49;\n readonly MAX_VERTEX_UNIFORM_COMPONENTS: 0x8B4A;\n readonly SAMPLER_3D: 0x8B5F;\n readonly SAMPLER_2D_SHADOW: 0x8B62;\n readonly FRAGMENT_SHADER_DERIVATIVE_HINT: 0x8B8B;\n readonly PIXEL_PACK_BUFFER: 0x88EB;\n readonly PIXEL_UNPACK_BUFFER: 0x88EC;\n readonly PIXEL_PACK_BUFFER_BINDING: 0x88ED;\n readonly PIXEL_UNPACK_BUFFER_BINDING: 0x88EF;\n readonly FLOAT_MAT2x3: 0x8B65;\n readonly FLOAT_MAT2x4: 0x8B66;\n readonly FLOAT_MAT3x2: 0x8B67;\n readonly FLOAT_MAT3x4: 0x8B68;\n readonly FLOAT_MAT4x2: 0x8B69;\n readonly FLOAT_MAT4x3: 0x8B6A;\n readonly SRGB: 0x8C40;\n readonly SRGB8: 0x8C41;\n readonly SRGB8_ALPHA8: 0x8C43;\n readonly COMPARE_REF_TO_TEXTURE: 0x884E;\n readonly RGBA32F: 0x8814;\n readonly RGB32F: 0x8815;\n readonly RGBA16F: 0x881A;\n readonly RGB16F: 0x881B;\n readonly VERTEX_ATTRIB_ARRAY_INTEGER: 0x88FD;\n readonly MAX_ARRAY_TEXTURE_LAYERS: 0x88FF;\n readonly MIN_PROGRAM_TEXEL_OFFSET: 0x8904;\n readonly MAX_PROGRAM_TEXEL_OFFSET: 0x8905;\n readonly MAX_VARYING_COMPONENTS: 0x8B4B;\n readonly TEXTURE_2D_ARRAY: 0x8C1A;\n readonly TEXTURE_BINDING_2D_ARRAY: 0x8C1D;\n readonly R11F_G11F_B10F: 0x8C3A;\n readonly UNSIGNED_INT_10F_11F_11F_REV: 0x8C3B;\n readonly RGB9_E5: 0x8C3D;\n readonly UNSIGNED_INT_5_9_9_9_REV: 0x8C3E;\n readonly TRANSFORM_FEEDBACK_BUFFER_MODE: 0x8C7F;\n readonly MAX_TRANSFORM_FEEDBACK_SEPARATE_COMPONENTS: 0x8C80;\n readonly TRANSFORM_FEEDBACK_VARYINGS: 0x8C83;\n readonly TRANSFORM_FEEDBACK_BUFFER_START: 0x8C84;\n readonly TRANSFORM_FEEDBACK_BUFFER_SIZE: 0x8C85;\n readonly TRANSFORM_FEEDBACK_PRIMITIVES_WRITTEN: 0x8C88;\n readonly RASTERIZER_DISCARD: 0x8C89;\n readonly MAX_TRANSFORM_FEEDBACK_INTERLEAVED_COMPONENTS: 0x8C8A;\n readonly MAX_TRANSFORM_FEEDBACK_SEPARATE_ATTRIBS: 0x8C8B;\n readonly INTERLEAVED_ATTRIBS: 0x8C8C;\n readonly SEPARATE_ATTRIBS: 0x8C8D;\n readonly TRANSFORM_FEEDBACK_BUFFER: 0x8C8E;\n readonly TRANSFORM_FEEDBACK_BUFFER_BINDING: 0x8C8F;\n readonly RGBA32UI: 0x8D70;\n readonly RGB32UI: 0x8D71;\n readonly RGBA16UI: 0x8D76;\n readonly RGB16UI: 0x8D77;\n readonly RGBA8UI: 0x8D7C;\n readonly RGB8UI: 0x8D7D;\n readonly RGBA32I: 0x8D82;\n readonly RGB32I: 0x8D83;\n readonly RGBA16I: 0x8D88;\n readonly RGB16I: 0x8D89;\n readonly RGBA8I: 0x8D8E;\n readonly RGB8I: 0x8D8F;\n readonly RED_INTEGER: 0x8D94;\n readonly RGB_INTEGER: 0x8D98;\n readonly RGBA_INTEGER: 0x8D99;\n readonly SAMPLER_2D_ARRAY: 0x8DC1;\n readonly SAMPLER_2D_ARRAY_SHADOW: 0x8DC4;\n readonly SAMPLER_CUBE_SHADOW: 0x8DC5;\n readonly UNSIGNED_INT_VEC2: 0x8DC6;\n readonly UNSIGNED_INT_VEC3: 0x8DC7;\n readonly UNSIGNED_INT_VEC4: 0x8DC8;\n readonly INT_SAMPLER_2D: 0x8DCA;\n readonly INT_SAMPLER_3D: 0x8DCB;\n readonly INT_SAMPLER_CUBE: 0x8DCC;\n readonly INT_SAMPLER_2D_ARRAY: 0x8DCF;\n readonly UNSIGNED_INT_SAMPLER_2D: 0x8DD2;\n readonly UNSIGNED_INT_SAMPLER_3D: 0x8DD3;\n readonly UNSIGNED_INT_SAMPLER_CUBE: 0x8DD4;\n readonly UNSIGNED_INT_SAMPLER_2D_ARRAY: 0x8DD7;\n readonly DEPTH_COMPONENT32F: 0x8CAC;\n readonly DEPTH32F_STENCIL8: 0x8CAD;\n readonly FLOAT_32_UNSIGNED_INT_24_8_REV: 0x8DAD;\n readonly FRAMEBUFFER_ATTACHMENT_COLOR_ENCODING: 0x8210;\n readonly FRAMEBUFFER_ATTACHMENT_COMPONENT_TYPE: 0x8211;\n readonly FRAMEBUFFER_ATTACHMENT_RED_SIZE: 0x8212;\n readonly FRAMEBUFFER_ATTACHMENT_GREEN_SIZE: 0x8213;\n readonly FRAMEBUFFER_ATTACHMENT_BLUE_SIZE: 0x8214;\n readonly FRAMEBUFFER_ATTACHMENT_ALPHA_SIZE: 0x8215;\n readonly FRAMEBUFFER_ATTACHMENT_DEPTH_SIZE: 0x8216;\n readonly FRAMEBUFFER_ATTACHMENT_STENCIL_SIZE: 0x8217;\n readonly FRAMEBUFFER_DEFAULT: 0x8218;\n readonly UNSIGNED_INT_24_8: 0x84FA;\n readonly DEPTH24_STENCIL8: 0x88F0;\n readonly UNSIGNED_NORMALIZED: 0x8C17;\n readonly DRAW_FRAMEBUFFER_BINDING: 0x8CA6;\n readonly READ_FRAMEBUFFER: 0x8CA8;\n readonly DRAW_FRAMEBUFFER: 0x8CA9;\n readonly READ_FRAMEBUFFER_BINDING: 0x8CAA;\n readonly RENDERBUFFER_SAMPLES: 0x8CAB;\n readonly FRAMEBUFFER_ATTACHMENT_TEXTURE_LAYER: 0x8CD4;\n readonly MAX_COLOR_ATTACHMENTS: 0x8CDF;\n readonly COLOR_ATTACHMENT1: 0x8CE1;\n readonly COLOR_ATTACHMENT2: 0x8CE2;\n readonly COLOR_ATTACHMENT3: 0x8CE3;\n readonly COLOR_ATTACHMENT4: 0x8CE4;\n readonly COLOR_ATTACHMENT5: 0x8CE5;\n readonly COLOR_ATTACHMENT6: 0x8CE6;\n readonly COLOR_ATTACHMENT7: 0x8CE7;\n readonly COLOR_ATTACHMENT8: 0x8CE8;\n readonly COLOR_ATTACHMENT9: 0x8CE9;\n readonly COLOR_ATTACHMENT10: 0x8CEA;\n readonly COLOR_ATTACHMENT11: 0x8CEB;\n readonly COLOR_ATTACHMENT12: 0x8CEC;\n readonly COLOR_ATTACHMENT13: 0x8CED;\n readonly COLOR_ATTACHMENT14: 0x8CEE;\n readonly COLOR_ATTACHMENT15: 0x8CEF;\n readonly FRAMEBUFFER_INCOMPLETE_MULTISAMPLE: 0x8D56;\n readonly MAX_SAMPLES: 0x8D57;\n readonly HALF_FLOAT: 0x140B;\n readonly RG: 0x8227;\n readonly RG_INTEGER: 0x8228;\n readonly R8: 0x8229;\n readonly RG8: 0x822B;\n readonly R16F: 0x822D;\n readonly R32F: 0x822E;\n readonly RG16F: 0x822F;\n readonly RG32F: 0x8230;\n readonly R8I: 0x8231;\n readonly R8UI: 0x8232;\n readonly R16I: 0x8233;\n readonly R16UI: 0x8234;\n readonly R32I: 0x8235;\n readonly R32UI: 0x8236;\n readonly RG8I: 0x8237;\n readonly RG8UI: 0x8238;\n readonly RG16I: 0x8239;\n readonly RG16UI: 0x823A;\n readonly RG32I: 0x823B;\n readonly RG32UI: 0x823C;\n readonly VERTEX_ARRAY_BINDING: 0x85B5;\n readonly R8_SNORM: 0x8F94;\n readonly RG8_SNORM: 0x8F95;\n readonly RGB8_SNORM: 0x8F96;\n readonly RGBA8_SNORM: 0x8F97;\n readonly SIGNED_NORMALIZED: 0x8F9C;\n readonly COPY_READ_BUFFER: 0x8F36;\n readonly COPY_WRITE_BUFFER: 0x8F37;\n readonly COPY_READ_BUFFER_BINDING: 0x8F36;\n readonly COPY_WRITE_BUFFER_BINDING: 0x8F37;\n readonly UNIFORM_BUFFER: 0x8A11;\n readonly UNIFORM_BUFFER_BINDING: 0x8A28;\n readonly UNIFORM_BUFFER_START: 0x8A29;\n readonly UNIFORM_BUFFER_SIZE: 0x8A2A;\n readonly MAX_VERTEX_UNIFORM_BLOCKS: 0x8A2B;\n readonly MAX_FRAGMENT_UNIFORM_BLOCKS: 0x8A2D;\n readonly MAX_COMBINED_UNIFORM_BLOCKS: 0x8A2E;\n readonly MAX_UNIFORM_BUFFER_BINDINGS: 0x8A2F;\n readonly MAX_UNIFORM_BLOCK_SIZE: 0x8A30;\n readonly MAX_COMBINED_VERTEX_UNIFORM_COMPONENTS: 0x8A31;\n readonly MAX_COMBINED_FRAGMENT_UNIFORM_COMPONENTS: 0x8A33;\n readonly UNIFORM_BUFFER_OFFSET_ALIGNMENT: 0x8A34;\n readonly ACTIVE_UNIFORM_BLOCKS: 0x8A36;\n readonly UNIFORM_TYPE: 0x8A37;\n readonly UNIFORM_SIZE: 0x8A38;\n readonly UNIFORM_BLOCK_INDEX: 0x8A3A;\n readonly UNIFORM_OFFSET: 0x8A3B;\n readonly UNIFORM_ARRAY_STRIDE: 0x8A3C;\n readonly UNIFORM_MATRIX_STRIDE: 0x8A3D;\n readonly UNIFORM_IS_ROW_MAJOR: 0x8A3E;\n readonly UNIFORM_BLOCK_BINDING: 0x8A3F;\n readonly UNIFORM_BLOCK_DATA_SIZE: 0x8A40;\n readonly UNIFORM_BLOCK_ACTIVE_UNIFORMS: 0x8A42;\n readonly UNIFORM_BLOCK_ACTIVE_UNIFORM_INDICES: 0x8A43;\n readonly UNIFORM_BLOCK_REFERENCED_BY_VERTEX_SHADER: 0x8A44;\n readonly UNIFORM_BLOCK_REFERENCED_BY_FRAGMENT_SHADER: 0x8A46;\n readonly INVALID_INDEX: 0xFFFFFFFF;\n readonly MAX_VERTEX_OUTPUT_COMPONENTS: 0x9122;\n readonly MAX_FRAGMENT_INPUT_COMPONENTS: 0x9125;\n readonly MAX_SERVER_WAIT_TIMEOUT: 0x9111;\n readonly OBJECT_TYPE: 0x9112;\n readonly SYNC_CONDITION: 0x9113;\n readonly SYNC_STATUS: 0x9114;\n readonly SYNC_FLAGS: 0x9115;\n readonly SYNC_FENCE: 0x9116;\n readonly SYNC_GPU_COMMANDS_COMPLETE: 0x9117;\n readonly UNSIGNALED: 0x9118;\n readonly SIGNALED: 0x9119;\n readonly ALREADY_SIGNALED: 0x911A;\n readonly TIMEOUT_EXPIRED: 0x911B;\n readonly CONDITION_SATISFIED: 0x911C;\n readonly WAIT_FAILED: 0x911D;\n readonly SYNC_FLUSH_COMMANDS_BIT: 0x00000001;\n readonly VERTEX_ATTRIB_ARRAY_DIVISOR: 0x88FE;\n readonly ANY_SAMPLES_PASSED: 0x8C2F;\n readonly ANY_SAMPLES_PASSED_CONSERVATIVE: 0x8D6A;\n readonly SAMPLER_BINDING: 0x8919;\n readonly RGB10_A2UI: 0x906F;\n readonly INT_2_10_10_10_REV: 0x8D9F;\n readonly TRANSFORM_FEEDBACK: 0x8E22;\n readonly TRANSFORM_FEEDBACK_PAUSED: 0x8E23;\n readonly TRANSFORM_FEEDBACK_ACTIVE: 0x8E24;\n readonly TRANSFORM_FEEDBACK_BINDING: 0x8E25;\n readonly TEXTURE_IMMUTABLE_FORMAT: 0x912F;\n readonly MAX_ELEMENT_INDEX: 0x8D6B;\n readonly TEXTURE_IMMUTABLE_LEVELS: 0x82DF;\n readonly TIMEOUT_IGNORED: -1;\n readonly MAX_CLIENT_WAIT_TIMEOUT_WEBGL: 0x9247;\n readonly DEPTH_BUFFER_BIT: 0x00000100;\n readonly STENCIL_BUFFER_BIT: 0x00000400;\n readonly COLOR_BUFFER_BIT: 0x00004000;\n readonly POINTS: 0x0000;\n readonly LINES: 0x0001;\n readonly LINE_LOOP: 0x0002;\n readonly LINE_STRIP: 0x0003;\n readonly TRIANGLES: 0x0004;\n readonly TRIANGLE_STRIP: 0x0005;\n readonly TRIANGLE_FAN: 0x0006;\n readonly ZERO: 0;\n readonly ONE: 1;\n readonly SRC_COLOR: 0x0300;\n readonly ONE_MINUS_SRC_COLOR: 0x0301;\n readonly SRC_ALPHA: 0x0302;\n readonly ONE_MINUS_SRC_ALPHA: 0x0303;\n readonly DST_ALPHA: 0x0304;\n readonly ONE_MINUS_DST_ALPHA: 0x0305;\n readonly DST_COLOR: 0x0306;\n readonly ONE_MINUS_DST_COLOR: 0x0307;\n readonly SRC_ALPHA_SATURATE: 0x0308;\n readonly FUNC_ADD: 0x8006;\n readonly BLEND_EQUATION: 0x8009;\n readonly BLEND_EQUATION_RGB: 0x8009;\n readonly BLEND_EQUATION_ALPHA: 0x883D;\n readonly FUNC_SUBTRACT: 0x800A;\n readonly FUNC_REVERSE_SUBTRACT: 0x800B;\n readonly BLEND_DST_RGB: 0x80C8;\n readonly BLEND_SRC_RGB: 0x80C9;\n readonly BLEND_DST_ALPHA: 0x80CA;\n readonly BLEND_SRC_ALPHA: 0x80CB;\n readonly CONSTANT_COLOR: 0x8001;\n readonly ONE_MINUS_CONSTANT_COLOR: 0x8002;\n readonly CONSTANT_ALPHA: 0x8003;\n readonly ONE_MINUS_CONSTANT_ALPHA: 0x8004;\n readonly BLEND_COLOR: 0x8005;\n readonly ARRAY_BUFFER: 0x8892;\n readonly ELEMENT_ARRAY_BUFFER: 0x8893;\n readonly ARRAY_BUFFER_BINDING: 0x8894;\n readonly ELEMENT_ARRAY_BUFFER_BINDING: 0x8895;\n readonly STREAM_DRAW: 0x88E0;\n readonly STATIC_DRAW: 0x88E4;\n readonly DYNAMIC_DRAW: 0x88E8;\n readonly BUFFER_SIZE: 0x8764;\n readonly BUFFER_USAGE: 0x8765;\n readonly CURRENT_VERTEX_ATTRIB: 0x8626;\n readonly FRONT: 0x0404;\n readonly BACK: 0x0405;\n readonly FRONT_AND_BACK: 0x0408;\n readonly CULL_FACE: 0x0B44;\n readonly BLEND: 0x0BE2;\n readonly DITHER: 0x0BD0;\n readonly STENCIL_TEST: 0x0B90;\n readonly DEPTH_TEST: 0x0B71;\n readonly SCISSOR_TEST: 0x0C11;\n readonly POLYGON_OFFSET_FILL: 0x8037;\n readonly SAMPLE_ALPHA_TO_COVERAGE: 0x809E;\n readonly SAMPLE_COVERAGE: 0x80A0;\n readonly NO_ERROR: 0;\n readonly INVALID_ENUM: 0x0500;\n readonly INVALID_VALUE: 0x0501;\n readonly INVALID_OPERATION: 0x0502;\n readonly OUT_OF_MEMORY: 0x0505;\n readonly CW: 0x0900;\n readonly CCW: 0x0901;\n readonly LINE_WIDTH: 0x0B21;\n readonly ALIASED_POINT_SIZE_RANGE: 0x846D;\n readonly ALIASED_LINE_WIDTH_RANGE: 0x846E;\n readonly CULL_FACE_MODE: 0x0B45;\n readonly FRONT_FACE: 0x0B46;\n readonly DEPTH_RANGE: 0x0B70;\n readonly DEPTH_WRITEMASK: 0x0B72;\n readonly DEPTH_CLEAR_VALUE: 0x0B73;\n readonly DEPTH_FUNC: 0x0B74;\n readonly STENCIL_CLEAR_VALUE: 0x0B91;\n readonly STENCIL_FUNC: 0x0B92;\n readonly STENCIL_FAIL: 0x0B94;\n readonly STENCIL_PASS_DEPTH_FAIL: 0x0B95;\n readonly STENCIL_PASS_DEPTH_PASS: 0x0B96;\n readonly STENCIL_REF: 0x0B97;\n readonly STENCIL_VALUE_MASK: 0x0B93;\n readonly STENCIL_WRITEMASK: 0x0B98;\n readonly STENCIL_BACK_FUNC: 0x8800;\n readonly STENCIL_BACK_FAIL: 0x8801;\n readonly STENCIL_BACK_PASS_DEPTH_FAIL: 0x8802;\n readonly STENCIL_BACK_PASS_DEPTH_PASS: 0x8803;\n readonly STENCIL_BACK_REF: 0x8CA3;\n readonly STENCIL_BACK_VALUE_MASK: 0x8CA4;\n readonly STENCIL_BACK_WRITEMASK: 0x8CA5;\n readonly VIEWPORT: 0x0BA2;\n readonly SCISSOR_BOX: 0x0C10;\n readonly COLOR_CLEAR_VALUE: 0x0C22;\n readonly COLOR_WRITEMASK: 0x0C23;\n readonly UNPACK_ALIGNMENT: 0x0CF5;\n readonly PACK_ALIGNMENT: 0x0D05;\n readonly MAX_TEXTURE_SIZE: 0x0D33;\n readonly MAX_VIEWPORT_DIMS: 0x0D3A;\n readonly SUBPIXEL_BITS: 0x0D50;\n readonly RED_BITS: 0x0D52;\n readonly GREEN_BITS: 0x0D53;\n readonly BLUE_BITS: 0x0D54;\n readonly ALPHA_BITS: 0x0D55;\n readonly DEPTH_BITS: 0x0D56;\n readonly STENCIL_BITS: 0x0D57;\n readonly POLYGON_OFFSET_UNITS: 0x2A00;\n readonly POLYGON_OFFSET_FACTOR: 0x8038;\n readonly TEXTURE_BINDING_2D: 0x8069;\n readonly SAMPLE_BUFFERS: 0x80A8;\n readonly SAMPLES: 0x80A9;\n readonly SAMPLE_COVERAGE_VALUE: 0x80AA;\n readonly SAMPLE_COVERAGE_INVERT: 0x80AB;\n readonly COMPRESSED_TEXTURE_FORMATS: 0x86A3;\n readonly DONT_CARE: 0x1100;\n readonly FASTEST: 0x1101;\n readonly NICEST: 0x1102;\n readonly GENERATE_MIPMAP_HINT: 0x8192;\n readonly BYTE: 0x1400;\n readonly UNSIGNED_BYTE: 0x1401;\n readonly SHORT: 0x1402;\n readonly UNSIGNED_SHORT: 0x1403;\n readonly INT: 0x1404;\n readonly UNSIGNED_INT: 0x1405;\n readonly FLOAT: 0x1406;\n readonly DEPTH_COMPONENT: 0x1902;\n readonly ALPHA: 0x1906;\n readonly RGB: 0x1907;\n readonly RGBA: 0x1908;\n readonly LUMINANCE: 0x1909;\n readonly LUMINANCE_ALPHA: 0x190A;\n readonly UNSIGNED_SHORT_4_4_4_4: 0x8033;\n readonly UNSIGNED_SHORT_5_5_5_1: 0x8034;\n readonly UNSIGNED_SHORT_5_6_5: 0x8363;\n readonly FRAGMENT_SHADER: 0x8B30;\n readonly VERTEX_SHADER: 0x8B31;\n readonly MAX_VERTEX_ATTRIBS: 0x8869;\n readonly MAX_VERTEX_UNIFORM_VECTORS: 0x8DFB;\n readonly MAX_VARYING_VECTORS: 0x8DFC;\n readonly MAX_COMBINED_TEXTURE_IMAGE_UNITS: 0x8B4D;\n readonly MAX_VERTEX_TEXTURE_IMAGE_UNITS: 0x8B4C;\n readonly MAX_TEXTURE_IMAGE_UNITS: 0x8872;\n readonly MAX_FRAGMENT_UNIFORM_VECTORS: 0x8DFD;\n readonly SHADER_TYPE: 0x8B4F;\n readonly DELETE_STATUS: 0x8B80;\n readonly LINK_STATUS: 0x8B82;\n readonly VALIDATE_STATUS: 0x8B83;\n readonly ATTACHED_SHADERS: 0x8B85;\n readonly ACTIVE_UNIFORMS: 0x8B86;\n readonly ACTIVE_ATTRIBUTES: 0x8B89;\n readonly SHADING_LANGUAGE_VERSION: 0x8B8C;\n readonly CURRENT_PROGRAM: 0x8B8D;\n readonly NEVER: 0x0200;\n readonly LESS: 0x0201;\n readonly EQUAL: 0x0202;\n readonly LEQUAL: 0x0203;\n readonly GREATER: 0x0204;\n readonly NOTEQUAL: 0x0205;\n readonly GEQUAL: 0x0206;\n readonly ALWAYS: 0x0207;\n readonly KEEP: 0x1E00;\n readonly REPLACE: 0x1E01;\n readonly INCR: 0x1E02;\n readonly DECR: 0x1E03;\n readonly INVERT: 0x150A;\n readonly INCR_WRAP: 0x8507;\n readonly DECR_WRAP: 0x8508;\n readonly VENDOR: 0x1F00;\n readonly RENDERER: 0x1F01;\n readonly VERSION: 0x1F02;\n readonly NEAREST: 0x2600;\n readonly LINEAR: 0x2601;\n readonly NEAREST_MIPMAP_NEAREST: 0x2700;\n readonly LINEAR_MIPMAP_NEAREST: 0x2701;\n readonly NEAREST_MIPMAP_LINEAR: 0x2702;\n readonly LINEAR_MIPMAP_LINEAR: 0x2703;\n readonly TEXTURE_MAG_FILTER: 0x2800;\n readonly TEXTURE_MIN_FILTER: 0x2801;\n readonly TEXTURE_WRAP_S: 0x2802;\n readonly TEXTURE_WRAP_T: 0x2803;\n readonly TEXTURE_2D: 0x0DE1;\n readonly TEXTURE: 0x1702;\n readonly TEXTURE_CUBE_MAP: 0x8513;\n readonly TEXTURE_BINDING_CUBE_MAP: 0x8514;\n readonly TEXTURE_CUBE_MAP_POSITIVE_X: 0x8515;\n readonly TEXTURE_CUBE_MAP_NEGATIVE_X: 0x8516;\n readonly TEXTURE_CUBE_MAP_POSITIVE_Y: 0x8517;\n readonly TEXTURE_CUBE_MAP_NEGATIVE_Y: 0x8518;\n readonly TEXTURE_CUBE_MAP_POSITIVE_Z: 0x8519;\n readonly TEXTURE_CUBE_MAP_NEGATIVE_Z: 0x851A;\n readonly MAX_CUBE_MAP_TEXTURE_SIZE: 0x851C;\n readonly TEXTURE0: 0x84C0;\n readonly TEXTURE1: 0x84C1;\n readonly TEXTURE2: 0x84C2;\n readonly TEXTURE3: 0x84C3;\n readonly TEXTURE4: 0x84C4;\n readonly TEXTURE5: 0x84C5;\n readonly TEXTURE6: 0x84C6;\n readonly TEXTURE7: 0x84C7;\n readonly TEXTURE8: 0x84C8;\n readonly TEXTURE9: 0x84C9;\n readonly TEXTURE10: 0x84CA;\n readonly TEXTURE11: 0x84CB;\n readonly TEXTURE12: 0x84CC;\n readonly TEXTURE13: 0x84CD;\n readonly TEXTURE14: 0x84CE;\n readonly TEXTURE15: 0x84CF;\n readonly TEXTURE16: 0x84D0;\n readonly TEXTURE17: 0x84D1;\n readonly TEXTURE18: 0x84D2;\n readonly TEXTURE19: 0x84D3;\n readonly TEXTURE20: 0x84D4;\n readonly TEXTURE21: 0x84D5;\n readonly TEXTURE22: 0x84D6;\n readonly TEXTURE23: 0x84D7;\n readonly TEXTURE24: 0x84D8;\n readonly TEXTURE25: 0x84D9;\n readonly TEXTURE26: 0x84DA;\n readonly TEXTURE27: 0x84DB;\n readonly TEXTURE28: 0x84DC;\n readonly TEXTURE29: 0x84DD;\n readonly TEXTURE30: 0x84DE;\n readonly TEXTURE31: 0x84DF;\n readonly ACTIVE_TEXTURE: 0x84E0;\n readonly REPEAT: 0x2901;\n readonly CLAMP_TO_EDGE: 0x812F;\n readonly MIRRORED_REPEAT: 0x8370;\n readonly FLOAT_VEC2: 0x8B50;\n readonly FLOAT_VEC3: 0x8B51;\n readonly FLOAT_VEC4: 0x8B52;\n readonly INT_VEC2: 0x8B53;\n readonly INT_VEC3: 0x8B54;\n readonly INT_VEC4: 0x8B55;\n readonly BOOL: 0x8B56;\n readonly BOOL_VEC2: 0x8B57;\n readonly BOOL_VEC3: 0x8B58;\n readonly BOOL_VEC4: 0x8B59;\n readonly FLOAT_MAT2: 0x8B5A;\n readonly FLOAT_MAT3: 0x8B5B;\n readonly FLOAT_MAT4: 0x8B5C;\n readonly SAMPLER_2D: 0x8B5E;\n readonly SAMPLER_CUBE: 0x8B60;\n readonly VERTEX_ATTRIB_ARRAY_ENABLED: 0x8622;\n readonly VERTEX_ATTRIB_ARRAY_SIZE: 0x8623;\n readonly VERTEX_ATTRIB_ARRAY_STRIDE: 0x8624;\n readonly VERTEX_ATTRIB_ARRAY_TYPE: 0x8625;\n readonly VERTEX_ATTRIB_ARRAY_NORMALIZED: 0x886A;\n readonly VERTEX_ATTRIB_ARRAY_POINTER: 0x8645;\n readonly VERTEX_ATTRIB_ARRAY_BUFFER_BINDING: 0x889F;\n readonly IMPLEMENTATION_COLOR_READ_TYPE: 0x8B9A;\n readonly IMPLEMENTATION_COLOR_READ_FORMAT: 0x8B9B;\n readonly COMPILE_STATUS: 0x8B81;\n readonly LOW_FLOAT: 0x8DF0;\n readonly MEDIUM_FLOAT: 0x8DF1;\n readonly HIGH_FLOAT: 0x8DF2;\n readonly LOW_INT: 0x8DF3;\n readonly MEDIUM_INT: 0x8DF4;\n readonly HIGH_INT: 0x8DF5;\n readonly FRAMEBUFFER: 0x8D40;\n readonly RENDERBUFFER: 0x8D41;\n readonly RGBA4: 0x8056;\n readonly RGB5_A1: 0x8057;\n readonly RGBA8: 0x8058;\n readonly RGB565: 0x8D62;\n readonly DEPTH_COMPONENT16: 0x81A5;\n readonly STENCIL_INDEX8: 0x8D48;\n readonly DEPTH_STENCIL: 0x84F9;\n readonly RENDERBUFFER_WIDTH: 0x8D42;\n readonly RENDERBUFFER_HEIGHT: 0x8D43;\n readonly RENDERBUFFER_INTERNAL_FORMAT: 0x8D44;\n readonly RENDERBUFFER_RED_SIZE: 0x8D50;\n readonly RENDERBUFFER_GREEN_SIZE: 0x8D51;\n readonly RENDERBUFFER_BLUE_SIZE: 0x8D52;\n readonly RENDERBUFFER_ALPHA_SIZE: 0x8D53;\n readonly RENDERBUFFER_DEPTH_SIZE: 0x8D54;\n readonly RENDERBUFFER_STENCIL_SIZE: 0x8D55;\n readonly FRAMEBUFFER_ATTACHMENT_OBJECT_TYPE: 0x8CD0;\n readonly FRAMEBUFFER_ATTACHMENT_OBJECT_NAME: 0x8CD1;\n readonly FRAMEBUFFER_ATTACHMENT_TEXTURE_LEVEL: 0x8CD2;\n readonly FRAMEBUFFER_ATTACHMENT_TEXTURE_CUBE_MAP_FACE: 0x8CD3;\n readonly COLOR_ATTACHMENT0: 0x8CE0;\n readonly DEPTH_ATTACHMENT: 0x8D00;\n readonly STENCIL_ATTACHMENT: 0x8D20;\n readonly DEPTH_STENCIL_ATTACHMENT: 0x821A;\n readonly NONE: 0;\n readonly FRAMEBUFFER_COMPLETE: 0x8CD5;\n readonly FRAMEBUFFER_INCOMPLETE_ATTACHMENT: 0x8CD6;\n readonly FRAMEBUFFER_INCOMPLETE_MISSING_ATTACHMENT: 0x8CD7;\n readonly FRAMEBUFFER_INCOMPLETE_DIMENSIONS: 0x8CD9;\n readonly FRAMEBUFFER_UNSUPPORTED: 0x8CDD;\n readonly FRAMEBUFFER_BINDING: 0x8CA6;\n readonly RENDERBUFFER_BINDING: 0x8CA7;\n readonly MAX_RENDERBUFFER_SIZE: 0x84E8;\n readonly INVALID_FRAMEBUFFER_OPERATION: 0x0506;\n readonly UNPACK_FLIP_Y_WEBGL: 0x9240;\n readonly UNPACK_PREMULTIPLY_ALPHA_WEBGL: 0x9241;\n readonly CONTEXT_LOST_WEBGL: 0x9242;\n readonly UNPACK_COLORSPACE_CONVERSION_WEBGL: 0x9243;\n readonly BROWSER_DEFAULT_WEBGL: 0x9244;\n};\n\ninterface WebGL2RenderingContextBase {\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/beginQuery) */\n beginQuery(target: GLenum, query: WebGLQuery): void;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/beginTransformFeedback) */\n beginTransformFeedback(primitiveMode: GLenum): void;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/bindBufferBase) */\n bindBufferBase(target: GLenum, index: GLuint, buffer: WebGLBuffer | null): void;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/bindBufferRange) */\n bindBufferRange(target: GLenum, index: GLuint, buffer: WebGLBuffer | null, offset: GLintptr, size: GLsizeiptr): void;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/bindSampler) */\n bindSampler(unit: GLuint, sampler: WebGLSampler | null): void;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/bindTransformFeedback) */\n bindTransformFeedback(target: GLenum, tf: WebGLTransformFeedback | null): void;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/bindVertexArray) */\n bindVertexArray(array: WebGLVertexArrayObject | null): void;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/blitFramebuffer) */\n blitFramebuffer(srcX0: GLint, srcY0: GLint, srcX1: GLint, srcY1: GLint, dstX0: GLint, dstY0: GLint, dstX1: GLint, dstY1: GLint, mask: GLbitfield, filter: GLenum): void;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/clearBuffer) */\n clearBufferfi(buffer: GLenum, drawbuffer: GLint, depth: GLfloat, stencil: GLint): void;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/clearBuffer) */\n clearBufferfv(buffer: GLenum, drawbuffer: GLint, values: Float32List, srcOffset?: number): void;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/clearBuffer) */\n clearBufferiv(buffer: GLenum, drawbuffer: GLint, values: Int32List, srcOffset?: number): void;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/clearBuffer) */\n clearBufferuiv(buffer: GLenum, drawbuffer: GLint, values: Uint32List, srcOffset?: number): void;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/clientWaitSync) */\n clientWaitSync(sync: WebGLSync, flags: GLbitfield, timeout: GLuint64): GLenum;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/compressedTexImage3D) */\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<ArrayBufferLike>, srcOffset?: number, srcLengthOverride?: GLuint): void;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/compressedTexSubImage3D) */\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<ArrayBufferLike>, srcOffset?: number, srcLengthOverride?: GLuint): void;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/copyBufferSubData) */\n copyBufferSubData(readTarget: GLenum, writeTarget: GLenum, readOffset: GLintptr, writeOffset: GLintptr, size: GLsizeiptr): void;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/copyTexSubImage3D) */\n copyTexSubImage3D(target: GLenum, level: GLint, xoffset: GLint, yoffset: GLint, zoffset: GLint, x: GLint, y: GLint, width: GLsizei, height: GLsizei): void;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/createQuery) */\n createQuery(): WebGLQuery;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/createSampler) */\n createSampler(): WebGLSampler;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/createTransformFeedback) */\n createTransformFeedback(): WebGLTransformFeedback;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/createVertexArray) */\n createVertexArray(): WebGLVertexArrayObject;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/deleteQuery) */\n deleteQuery(query: WebGLQuery | null): void;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/deleteSampler) */\n deleteSampler(sampler: WebGLSampler | null): void;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/deleteSync) */\n deleteSync(sync: WebGLSync | null): void;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/deleteTransformFeedback) */\n deleteTransformFeedback(tf: WebGLTransformFeedback | null): void;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/deleteVertexArray) */\n deleteVertexArray(vertexArray: WebGLVertexArrayObject | null): void;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/drawArraysInstanced) */\n drawArraysInstanced(mode: GLenum, first: GLint, count: GLsizei, instanceCount: GLsizei): void;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/drawBuffers) */\n drawBuffers(buffers: GLenum[]): void;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/drawElementsInstanced) */\n drawElementsInstanced(mode: GLenum, count: GLsizei, type: GLenum, offset: GLintptr, instanceCount: GLsizei): void;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/drawRangeElements) */\n drawRangeElements(mode: GLenum, start: GLuint, end: GLuint, count: GLsizei, type: GLenum, offset: GLintptr): void;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/endQuery) */\n endQuery(target: GLenum): void;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/endTransformFeedback) */\n endTransformFeedback(): void;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/fenceSync) */\n fenceSync(condition: GLenum, flags: GLbitfield): WebGLSync | null;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/framebufferTextureLayer) */\n framebufferTextureLayer(target: GLenum, attachment: GLenum, texture: WebGLTexture | null, level: GLint, layer: GLint): void;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/getActiveUniformBlockName) */\n getActiveUniformBlockName(program: WebGLProgram, uniformBlockIndex: GLuint): string | null;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/getActiveUniformBlockParameter) */\n getActiveUniformBlockParameter(program: WebGLProgram, uniformBlockIndex: GLuint, pname: GLenum): any;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/getActiveUniforms) */\n getActiveUniforms(program: WebGLProgram, uniformIndices: GLuint[], pname: GLenum): any;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/getBufferSubData) */\n getBufferSubData(target: GLenum, srcByteOffset: GLintptr, dstBuffer: ArrayBufferView<ArrayBufferLike>, dstOffset?: number, length?: GLuint): void;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/getFragDataLocation) */\n getFragDataLocation(program: WebGLProgram, name: string): GLint;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/getIndexedParameter) */\n getIndexedParameter(target: GLenum, index: GLuint): any;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/getInternalformatParameter) */\n getInternalformatParameter(target: GLenum, internalformat: GLenum, pname: GLenum): any;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/getQuery) */\n getQuery(target: GLenum, pname: GLenum): WebGLQuery | null;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/getQueryParameter) */\n getQueryParameter(query: WebGLQuery, pname: GLenum): any;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/getSamplerParameter) */\n getSamplerParameter(sampler: WebGLSampler, pname: GLenum): any;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/getSyncParameter) */\n getSyncParameter(sync: WebGLSync, pname: GLenum): any;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/getTransformFeedbackVarying) */\n getTransformFeedbackVarying(program: WebGLProgram, index: GLuint): WebGLActiveInfo | null;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/getUniformBlockIndex) */\n getUniformBlockIndex(program: WebGLProgram, uniformBlockName: string): GLuint;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/getUniformIndices) */\n getUniformIndices(program: WebGLProgram, uniformNames: string[]): GLuint[] | null;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/invalidateFramebuffer) */\n invalidateFramebuffer(target: GLenum, attachments: GLenum[]): void;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/invalidateSubFramebuffer) */\n invalidateSubFramebuffer(target: GLenum, attachments: GLenum[], x: GLint, y: GLint, width: GLsizei, height: GLsizei): void;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/isQuery) */\n isQuery(query: WebGLQuery | null): GLboolean;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/isSampler) */\n isSampler(sampler: WebGLSampler | null): GLboolean;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/isSync) */\n isSync(sync: WebGLSync | null): GLboolean;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/isTransformFeedback) */\n isTransformFeedback(tf: WebGLTransformFeedback | null): GLboolean;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/isVertexArray) */\n isVertexArray(vertexArray: WebGLVertexArrayObject | null): GLboolean;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/pauseTransformFeedback) */\n pauseTransformFeedback(): void;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/readBuffer) */\n readBuffer(src: GLenum): void;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/renderbufferStorageMultisample) */\n renderbufferStorageMultisample(target: GLenum, samples: GLsizei, internalformat: GLenum, width: GLsizei, height: GLsizei): void;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/resumeTransformFeedback) */\n resumeTransformFeedback(): void;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/samplerParameter) */\n samplerParameterf(sampler: WebGLSampler, pname: GLenum, param: GLfloat): void;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/samplerParameter) */\n samplerParameteri(sampler: WebGLSampler, pname: GLenum, param: GLint): void;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/texImage3D) */\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<ArrayBufferLike> | null): void;\n texImage3D(target: GLenum, level: GLint, internalformat: GLint, width: GLsizei, height: GLsizei, depth: GLsizei, border: GLint, format: GLenum, type: GLenum, srcData: ArrayBufferView<ArrayBufferLike>, srcOffset: number): void;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/texStorage2D) */\n texStorage2D(target: GLenum, levels: GLsizei, internalformat: GLenum, width: GLsizei, height: GLsizei): void;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/texStorage3D) */\n texStorage3D(target: GLenum, levels: GLsizei, internalformat: GLenum, width: GLsizei, height: GLsizei, depth: GLsizei): void;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/texSubImage3D) */\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<ArrayBufferLike> | null, srcOffset?: number): void;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/transformFeedbackVaryings) */\n transformFeedbackVaryings(program: WebGLProgram, varyings: string[], bufferMode: GLenum): void;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/uniform) */\n uniform1ui(location: WebGLUniformLocation | null, v0: GLuint): void;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/uniform) */\n uniform1uiv(location: WebGLUniformLocation | null, data: Uint32List, srcOffset?: number, srcLength?: GLuint): void;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/uniform) */\n uniform2ui(location: WebGLUniformLocation | null, v0: GLuint, v1: GLuint): void;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/uniform) */\n uniform2uiv(location: WebGLUniformLocation | null, data: Uint32List, srcOffset?: number, srcLength?: GLuint): void;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/uniform) */\n uniform3ui(location: WebGLUniformLocation | null, v0: GLuint, v1: GLuint, v2: GLuint): void;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/uniform) */\n uniform3uiv(location: WebGLUniformLocation | null, data: Uint32List, srcOffset?: number, srcLength?: GLuint): void;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/uniform) */\n uniform4ui(location: WebGLUniformLocation | null, v0: GLuint, v1: GLuint, v2: GLuint, v3: GLuint): void;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/uniform) */\n uniform4uiv(location: WebGLUniformLocation | null, data: Uint32List, srcOffset?: number, srcLength?: GLuint): void;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/uniformBlockBinding) */\n uniformBlockBinding(program: WebGLProgram, uniformBlockIndex: GLuint, uniformBlockBinding: GLuint): void;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/uniformMatrix) */\n uniformMatrix2x3fv(location: WebGLUniformLocation | null, transpose: GLboolean, data: Float32List, srcOffset?: number, srcLength?: GLuint): void;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/uniformMatrix) */\n uniformMatrix2x4fv(location: WebGLUniformLocation | null, transpose: GLboolean, data: Float32List, srcOffset?: number, srcLength?: GLuint): void;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/uniformMatrix) */\n uniformMatrix3x2fv(location: WebGLUniformLocation | null, transpose: GLboolean, data: Float32List, srcOffset?: number, srcLength?: GLuint): void;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/uniformMatrix) */\n uniformMatrix3x4fv(location: WebGLUniformLocation | null, transpose: GLboolean, data: Float32List, srcOffset?: number, srcLength?: GLuint): void;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/uniformMatrix) */\n uniformMatrix4x2fv(location: WebGLUniformLocation | null, transpose: GLboolean, data: Float32List, srcOffset?: number, srcLength?: GLuint): void;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/uniformMatrix) */\n uniformMatrix4x3fv(location: WebGLUniformLocation | null, transpose: GLboolean, data: Float32List, srcOffset?: number, srcLength?: GLuint): void;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/vertexAttribDivisor) */\n vertexAttribDivisor(index: GLuint, divisor: GLuint): void;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/vertexAttribI) */\n vertexAttribI4i(index: GLuint, x: GLint, y: GLint, z: GLint, w: GLint): void;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/vertexAttribI) */\n vertexAttribI4iv(index: GLuint, values: Int32List): void;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/vertexAttribI) */\n vertexAttribI4ui(index: GLuint, x: GLuint, y: GLuint, z: GLuint, w: GLuint): void;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/vertexAttribI) */\n vertexAttribI4uiv(index: GLuint, values: Uint32List): void;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/vertexAttribIPointer) */\n vertexAttribIPointer(index: GLuint, size: GLint, type: GLenum, stride: GLsizei, offset: GLintptr): void;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/waitSync) */\n waitSync(sync: WebGLSync, flags: GLbitfield, timeout: GLint64): void;\n readonly READ_BUFFER: 0x0C02;\n readonly UNPACK_ROW_LENGTH: 0x0CF2;\n readonly UNPACK_SKIP_ROWS: 0x0CF3;\n readonly UNPACK_SKIP_PIXELS: 0x0CF4;\n readonly PACK_ROW_LENGTH: 0x0D02;\n readonly PACK_SKIP_ROWS: 0x0D03;\n readonly PACK_SKIP_PIXELS: 0x0D04;\n readonly COLOR: 0x1800;\n readonly DEPTH: 0x1801;\n readonly STENCIL: 0x1802;\n readonly RED: 0x1903;\n readonly RGB8: 0x8051;\n readonly RGB10_A2: 0x8059;\n readonly TEXTURE_BINDING_3D: 0x806A;\n readonly UNPACK_SKIP_IMAGES: 0x806D;\n readonly UNPACK_IMAGE_HEIGHT: 0x806E;\n readonly TEXTURE_3D: 0x806F;\n readonly TEXTURE_WRAP_R: 0x8072;\n readonly MAX_3D_TEXTURE_SIZE: 0x8073;\n readonly UNSIGNED_INT_2_10_10_10_REV: 0x8368;\n readonly MAX_ELEMENTS_VERTICES: 0x80E8;\n readonly MAX_ELEMENTS_INDICES: 0x80E9;\n readonly TEXTURE_MIN_LOD: 0x813A;\n readonly TEXTURE_MAX_LOD: 0x813B;\n readonly TEXTURE_BASE_LEVEL: 0x813C;\n readonly TEXTURE_MAX_LEVEL: 0x813D;\n readonly MIN: 0x8007;\n readonly MAX: 0x8008;\n readonly DEPTH_COMPONENT24: 0x81A6;\n readonly MAX_TEXTURE_LOD_BIAS: 0x84FD;\n readonly TEXTURE_COMPARE_MODE: 0x884C;\n readonly TEXTURE_COMPARE_FUNC: 0x884D;\n readonly CURRENT_QUERY: 0x8865;\n readonly QUERY_RESULT: 0x8866;\n readonly QUERY_RESULT_AVAILABLE: 0x8867;\n readonly STREAM_READ: 0x88E1;\n readonly STREAM_COPY: 0x88E2;\n readonly STATIC_READ: 0x88E5;\n readonly STATIC_COPY: 0x88E6;\n readonly DYNAMIC_READ: 0x88E9;\n readonly DYNAMIC_COPY: 0x88EA;\n readonly MAX_DRAW_BUFFERS: 0x8824;\n readonly DRAW_BUFFER0: 0x8825;\n readonly DRAW_BUFFER1: 0x8826;\n readonly DRAW_BUFFER2: 0x8827;\n readonly DRAW_BUFFER3: 0x8828;\n readonly DRAW_BUFFER4: 0x8829;\n readonly DRAW_BUFFER5: 0x882A;\n readonly DRAW_BUFFER6: 0x882B;\n readonly DRAW_BUFFER7: 0x882C;\n readonly DRAW_BUFFER8: 0x882D;\n readonly DRAW_BUFFER9: 0x882E;\n readonly DRAW_BUFFER10: 0x882F;\n readonly DRAW_BUFFER11: 0x8830;\n readonly DRAW_BUFFER12: 0x8831;\n readonly DRAW_BUFFER13: 0x8832;\n readonly DRAW_BUFFER14: 0x8833;\n readonly DRAW_BUFFER15: 0x8834;\n readonly MAX_FRAGMENT_UNIFORM_COMPONENTS: 0x8B49;\n readonly MAX_VERTEX_UNIFORM_COMPONENTS: 0x8B4A;\n readonly SAMPLER_3D: 0x8B5F;\n readonly SAMPLER_2D_SHADOW: 0x8B62;\n readonly FRAGMENT_SHADER_DERIVATIVE_HINT: 0x8B8B;\n readonly PIXEL_PACK_BUFFER: 0x88EB;\n readonly PIXEL_UNPACK_BUFFER: 0x88EC;\n readonly PIXEL_PACK_BUFFER_BINDING: 0x88ED;\n readonly PIXEL_UNPACK_BUFFER_BINDING: 0x88EF;\n readonly FLOAT_MAT2x3: 0x8B65;\n readonly FLOAT_MAT2x4: 0x8B66;\n readonly FLOAT_MAT3x2: 0x8B67;\n readonly FLOAT_MAT3x4: 0x8B68;\n readonly FLOAT_MAT4x2: 0x8B69;\n readonly FLOAT_MAT4x3: 0x8B6A;\n readonly SRGB: 0x8C40;\n readonly SRGB8: 0x8C41;\n readonly SRGB8_ALPHA8: 0x8C43;\n readonly COMPARE_REF_TO_TEXTURE: 0x884E;\n readonly RGBA32F: 0x8814;\n readonly RGB32F: 0x8815;\n readonly RGBA16F: 0x881A;\n readonly RGB16F: 0x881B;\n readonly VERTEX_ATTRIB_ARRAY_INTEGER: 0x88FD;\n readonly MAX_ARRAY_TEXTURE_LAYERS: 0x88FF;\n readonly MIN_PROGRAM_TEXEL_OFFSET: 0x8904;\n readonly MAX_PROGRAM_TEXEL_OFFSET: 0x8905;\n readonly MAX_VARYING_COMPONENTS: 0x8B4B;\n readonly TEXTURE_2D_ARRAY: 0x8C1A;\n readonly TEXTURE_BINDING_2D_ARRAY: 0x8C1D;\n readonly R11F_G11F_B10F: 0x8C3A;\n readonly UNSIGNED_INT_10F_11F_11F_REV: 0x8C3B;\n readonly RGB9_E5: 0x8C3D;\n readonly UNSIGNED_INT_5_9_9_9_REV: 0x8C3E;\n readonly TRANSFORM_FEEDBACK_BUFFER_MODE: 0x8C7F;\n readonly MAX_TRANSFORM_FEEDBACK_SEPARATE_COMPONENTS: 0x8C80;\n readonly TRANSFORM_FEEDBACK_VARYINGS: 0x8C83;\n readonly TRANSFORM_FEEDBACK_BUFFER_START: 0x8C84;\n readonly TRANSFORM_FEEDBACK_BUFFER_SIZE: 0x8C85;\n readonly TRANSFORM_FEEDBACK_PRIMITIVES_WRITTEN: 0x8C88;\n readonly RASTERIZER_DISCARD: 0x8C89;\n readonly MAX_TRANSFORM_FEEDBACK_INTERLEAVED_COMPONENTS: 0x8C8A;\n readonly MAX_TRANSFORM_FEEDBACK_SEPARATE_ATTRIBS: 0x8C8B;\n readonly INTERLEAVED_ATTRIBS: 0x8C8C;\n readonly SEPARATE_ATTRIBS: 0x8C8D;\n readonly TRANSFORM_FEEDBACK_BUFFER: 0x8C8E;\n readonly TRANSFORM_FEEDBACK_BUFFER_BINDING: 0x8C8F;\n readonly RGBA32UI: 0x8D70;\n readonly RGB32UI: 0x8D71;\n readonly RGBA16UI: 0x8D76;\n readonly RGB16UI: 0x8D77;\n readonly RGBA8UI: 0x8D7C;\n readonly RGB8UI: 0x8D7D;\n readonly RGBA32I: 0x8D82;\n readonly RGB32I: 0x8D83;\n readonly RGBA16I: 0x8D88;\n readonly RGB16I: 0x8D89;\n readonly RGBA8I: 0x8D8E;\n readonly RGB8I: 0x8D8F;\n readonly RED_INTEGER: 0x8D94;\n readonly RGB_INTEGER: 0x8D98;\n readonly RGBA_INTEGER: 0x8D99;\n readonly SAMPLER_2D_ARRAY: 0x8DC1;\n readonly SAMPLER_2D_ARRAY_SHADOW: 0x8DC4;\n readonly SAMPLER_CUBE_SHADOW: 0x8DC5;\n readonly UNSIGNED_INT_VEC2: 0x8DC6;\n readonly UNSIGNED_INT_VEC3: 0x8DC7;\n readonly UNSIGNED_INT_VEC4: 0x8DC8;\n readonly INT_SAMPLER_2D: 0x8DCA;\n readonly INT_SAMPLER_3D: 0x8DCB;\n readonly INT_SAMPLER_CUBE: 0x8DCC;\n readonly INT_SAMPLER_2D_ARRAY: 0x8DCF;\n readonly UNSIGNED_INT_SAMPLER_2D: 0x8DD2;\n readonly UNSIGNED_INT_SAMPLER_3D: 0x8DD3;\n readonly UNSIGNED_INT_SAMPLER_CUBE: 0x8DD4;\n readonly UNSIGNED_INT_SAMPLER_2D_ARRAY: 0x8DD7;\n readonly DEPTH_COMPONENT32F: 0x8CAC;\n readonly DEPTH32F_STENCIL8: 0x8CAD;\n readonly FLOAT_32_UNSIGNED_INT_24_8_REV: 0x8DAD;\n readonly FRAMEBUFFER_ATTACHMENT_COLOR_ENCODING: 0x8210;\n readonly FRAMEBUFFER_ATTACHMENT_COMPONENT_TYPE: 0x8211;\n readonly FRAMEBUFFER_ATTACHMENT_RED_SIZE: 0x8212;\n readonly FRAMEBUFFER_ATTACHMENT_GREEN_SIZE: 0x8213;\n readonly FRAMEBUFFER_ATTACHMENT_BLUE_SIZE: 0x8214;\n readonly FRAMEBUFFER_ATTACHMENT_ALPHA_SIZE: 0x8215;\n readonly FRAMEBUFFER_ATTACHMENT_DEPTH_SIZE: 0x8216;\n readonly FRAMEBUFFER_ATTACHMENT_STENCIL_SIZE: 0x8217;\n readonly FRAMEBUFFER_DEFAULT: 0x8218;\n readonly UNSIGNED_INT_24_8: 0x84FA;\n readonly DEPTH24_STENCIL8: 0x88F0;\n readonly UNSIGNED_NORMALIZED: 0x8C17;\n readonly DRAW_FRAMEBUFFER_BINDING: 0x8CA6;\n readonly READ_FRAMEBUFFER: 0x8CA8;\n readonly DRAW_FRAMEBUFFER: 0x8CA9;\n readonly READ_FRAMEBUFFER_BINDING: 0x8CAA;\n readonly RENDERBUFFER_SAMPLES: 0x8CAB;\n readonly FRAMEBUFFER_ATTACHMENT_TEXTURE_LAYER: 0x8CD4;\n readonly MAX_COLOR_ATTACHMENTS: 0x8CDF;\n readonly COLOR_ATTACHMENT1: 0x8CE1;\n readonly COLOR_ATTACHMENT2: 0x8CE2;\n readonly COLOR_ATTACHMENT3: 0x8CE3;\n readonly COLOR_ATTACHMENT4: 0x8CE4;\n readonly COLOR_ATTACHMENT5: 0x8CE5;\n readonly COLOR_ATTACHMENT6: 0x8CE6;\n readonly COLOR_ATTACHMENT7: 0x8CE7;\n readonly COLOR_ATTACHMENT8: 0x8CE8;\n readonly COLOR_ATTACHMENT9: 0x8CE9;\n readonly COLOR_ATTACHMENT10: 0x8CEA;\n readonly COLOR_ATTACHMENT11: 0x8CEB;\n readonly COLOR_ATTACHMENT12: 0x8CEC;\n readonly COLOR_ATTACHMENT13: 0x8CED;\n readonly COLOR_ATTACHMENT14: 0x8CEE;\n readonly COLOR_ATTACHMENT15: 0x8CEF;\n readonly FRAMEBUFFER_INCOMPLETE_MULTISAMPLE: 0x8D56;\n readonly MAX_SAMPLES: 0x8D57;\n readonly HALF_FLOAT: 0x140B;\n readonly RG: 0x8227;\n readonly RG_INTEGER: 0x8228;\n readonly R8: 0x8229;\n readonly RG8: 0x822B;\n readonly R16F: 0x822D;\n readonly R32F: 0x822E;\n readonly RG16F: 0x822F;\n readonly RG32F: 0x8230;\n readonly R8I: 0x8231;\n readonly R8UI: 0x8232;\n readonly R16I: 0x8233;\n readonly R16UI: 0x8234;\n readonly R32I: 0x8235;\n readonly R32UI: 0x8236;\n readonly RG8I: 0x8237;\n readonly RG8UI: 0x8238;\n readonly RG16I: 0x8239;\n readonly RG16UI: 0x823A;\n readonly RG32I: 0x823B;\n readonly RG32UI: 0x823C;\n readonly VERTEX_ARRAY_BINDING: 0x85B5;\n readonly R8_SNORM: 0x8F94;\n readonly RG8_SNORM: 0x8F95;\n readonly RGB8_SNORM: 0x8F96;\n readonly RGBA8_SNORM: 0x8F97;\n readonly SIGNED_NORMALIZED: 0x8F9C;\n readonly COPY_READ_BUFFER: 0x8F36;\n readonly COPY_WRITE_BUFFER: 0x8F37;\n readonly COPY_READ_BUFFER_BINDING: 0x8F36;\n readonly COPY_WRITE_BUFFER_BINDING: 0x8F37;\n readonly UNIFORM_BUFFER: 0x8A11;\n readonly UNIFORM_BUFFER_BINDING: 0x8A28;\n readonly UNIFORM_BUFFER_START: 0x8A29;\n readonly UNIFORM_BUFFER_SIZE: 0x8A2A;\n readonly MAX_VERTEX_UNIFORM_BLOCKS: 0x8A2B;\n readonly MAX_FRAGMENT_UNIFORM_BLOCKS: 0x8A2D;\n readonly MAX_COMBINED_UNIFORM_BLOCKS: 0x8A2E;\n readonly MAX_UNIFORM_BUFFER_BINDINGS: 0x8A2F;\n readonly MAX_UNIFORM_BLOCK_SIZE: 0x8A30;\n readonly MAX_COMBINED_VERTEX_UNIFORM_COMPONENTS: 0x8A31;\n readonly MAX_COMBINED_FRAGMENT_UNIFORM_COMPONENTS: 0x8A33;\n readonly UNIFORM_BUFFER_OFFSET_ALIGNMENT: 0x8A34;\n readonly ACTIVE_UNIFORM_BLOCKS: 0x8A36;\n readonly UNIFORM_TYPE: 0x8A37;\n readonly UNIFORM_SIZE: 0x8A38;\n readonly UNIFORM_BLOCK_INDEX: 0x8A3A;\n readonly UNIFORM_OFFSET: 0x8A3B;\n readonly UNIFORM_ARRAY_STRIDE: 0x8A3C;\n readonly UNIFORM_MATRIX_STRIDE: 0x8A3D;\n readonly UNIFORM_IS_ROW_MAJOR: 0x8A3E;\n readonly UNIFORM_BLOCK_BINDING: 0x8A3F;\n readonly UNIFORM_BLOCK_DATA_SIZE: 0x8A40;\n readonly UNIFORM_BLOCK_ACTIVE_UNIFORMS: 0x8A42;\n readonly UNIFORM_BLOCK_ACTIVE_UNIFORM_INDICES: 0x8A43;\n readonly UNIFORM_BLOCK_REFERENCED_BY_VERTEX_SHADER: 0x8A44;\n readonly UNIFORM_BLOCK_REFERENCED_BY_FRAGMENT_SHADER: 0x8A46;\n readonly INVALID_INDEX: 0xFFFFFFFF;\n readonly MAX_VERTEX_OUTPUT_COMPONENTS: 0x9122;\n readonly MAX_FRAGMENT_INPUT_COMPONENTS: 0x9125;\n readonly MAX_SERVER_WAIT_TIMEOUT: 0x9111;\n readonly OBJECT_TYPE: 0x9112;\n readonly SYNC_CONDITION: 0x9113;\n readonly SYNC_STATUS: 0x9114;\n readonly SYNC_FLAGS: 0x9115;\n readonly SYNC_FENCE: 0x9116;\n readonly SYNC_GPU_COMMANDS_COMPLETE: 0x9117;\n readonly UNSIGNALED: 0x9118;\n readonly SIGNALED: 0x9119;\n readonly ALREADY_SIGNALED: 0x911A;\n readonly TIMEOUT_EXPIRED: 0x911B;\n readonly CONDITION_SATISFIED: 0x911C;\n readonly WAIT_FAILED: 0x911D;\n readonly SYNC_FLUSH_COMMANDS_BIT: 0x00000001;\n readonly VERTEX_ATTRIB_ARRAY_DIVISOR: 0x88FE;\n readonly ANY_SAMPLES_PASSED: 0x8C2F;\n readonly ANY_SAMPLES_PASSED_CONSERVATIVE: 0x8D6A;\n readonly SAMPLER_BINDING: 0x8919;\n readonly RGB10_A2UI: 0x906F;\n readonly INT_2_10_10_10_REV: 0x8D9F;\n readonly TRANSFORM_FEEDBACK: 0x8E22;\n readonly TRANSFORM_FEEDBACK_PAUSED: 0x8E23;\n readonly TRANSFORM_FEEDBACK_ACTIVE: 0x8E24;\n readonly TRANSFORM_FEEDBACK_BINDING: 0x8E25;\n readonly TEXTURE_IMMUTABLE_FORMAT: 0x912F;\n readonly MAX_ELEMENT_INDEX: 0x8D6B;\n readonly TEXTURE_IMMUTABLE_LEVELS: 0x82DF;\n readonly TIMEOUT_IGNORED: -1;\n readonly MAX_CLIENT_WAIT_TIMEOUT_WEBGL: 0x9247;\n}\n\ninterface WebGL2RenderingContextOverloads {\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/bufferData) */\n bufferData(target: GLenum, size: GLsizeiptr, usage: GLenum): void;\n bufferData(target: GLenum, srcData: AllowSharedBufferSource | null, usage: GLenum): void;\n bufferData(target: GLenum, srcData: ArrayBufferView<ArrayBufferLike>, usage: GLenum, srcOffset: number, length?: GLuint): void;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/bufferSubData) */\n bufferSubData(target: GLenum, dstByteOffset: GLintptr, srcData: AllowSharedBufferSource): void;\n bufferSubData(target: GLenum, dstByteOffset: GLintptr, srcData: ArrayBufferView<ArrayBufferLike>, srcOffset: number, length?: GLuint): void;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/compressedTexImage2D) */\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<ArrayBufferLike>, srcOffset?: number, srcLengthOverride?: GLuint): void;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/compressedTexSubImage2D) */\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<ArrayBufferLike>, srcOffset?: number, srcLengthOverride?: GLuint): void;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/readPixels) */\n readPixels(x: GLint, y: GLint, width: GLsizei, height: GLsizei, format: GLenum, type: GLenum, dstData: ArrayBufferView<ArrayBufferLike> | 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<ArrayBufferLike>, dstOffset: number): void;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/texImage2D) */\n texImage2D(target: GLenum, level: GLint, internalformat: GLint, width: GLsizei, height: GLsizei, border: GLint, format: GLenum, type: GLenum, pixels: ArrayBufferView<ArrayBufferLike> | 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<ArrayBufferLike>, srcOffset: number): void;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/texSubImage2D) */\n texSubImage2D(target: GLenum, level: GLint, xoffset: GLint, yoffset: GLint, width: GLsizei, height: GLsizei, format: GLenum, type: GLenum, pixels: ArrayBufferView<ArrayBufferLike> | 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<ArrayBufferLike>, srcOffset: number): void;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/uniform) */\n uniform1fv(location: WebGLUniformLocation | null, data: Float32List, srcOffset?: number, srcLength?: GLuint): void;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/uniform) */\n uniform1iv(location: WebGLUniformLocation | null, data: Int32List, srcOffset?: number, srcLength?: GLuint): void;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/uniform) */\n uniform2fv(location: WebGLUniformLocation | null, data: Float32List, srcOffset?: number, srcLength?: GLuint): void;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/uniform) */\n uniform2iv(location: WebGLUniformLocation | null, data: Int32List, srcOffset?: number, srcLength?: GLuint): void;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/uniform) */\n uniform3fv(location: WebGLUniformLocation | null, data: Float32List, srcOffset?: number, srcLength?: GLuint): void;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/uniform) */\n uniform3iv(location: WebGLUniformLocation | null, data: Int32List, srcOffset?: number, srcLength?: GLuint): void;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/uniform) */\n uniform4fv(location: WebGLUniformLocation | null, data: Float32List, srcOffset?: number, srcLength?: GLuint): void;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/uniform) */\n uniform4iv(location: WebGLUniformLocation | null, data: Int32List, srcOffset?: number, srcLength?: GLuint): void;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/uniformMatrix) */\n uniformMatrix2fv(location: WebGLUniformLocation | null, transpose: GLboolean, data: Float32List, srcOffset?: number, srcLength?: GLuint): void;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/uniformMatrix) */\n uniformMatrix3fv(location: WebGLUniformLocation | null, transpose: GLboolean, data: Float32List, srcOffset?: number, srcLength?: GLuint): void;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/uniformMatrix) */\n uniformMatrix4fv(location: WebGLUniformLocation | null, transpose: GLboolean, data: Float32List, srcOffset?: number, srcLength?: GLuint): void;\n}\n\n/**\n * The **WebGLActiveInfo** interface is part of the WebGL API and represents the information returned by calling the WebGLRenderingContext.getActiveAttrib() and WebGLRenderingContext.getActiveUniform() methods.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLActiveInfo)\n */\ninterface WebGLActiveInfo {\n /**\n * The read-only **`WebGLActiveInfo.name`** property represents the name of the requested data returned by calling the WebGLRenderingContext.getActiveAttrib() or WebGLRenderingContext.getActiveUniform() methods.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLActiveInfo/name)\n */\n readonly name: string;\n /**\n * The read-only **`WebGLActiveInfo.size`** property is a Number representing the size of the requested data returned by calling the WebGLRenderingContext.getActiveAttrib() or WebGLRenderingContext.getActiveUniform() methods.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLActiveInfo/size)\n */\n readonly size: GLint;\n /**\n * The read-only **`WebGLActiveInfo.type`** property represents the type of the requested data returned by calling the WebGLRenderingContext.getActiveAttrib() or WebGLRenderingContext.getActiveUniform() methods.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLActiveInfo/type)\n */\n readonly type: GLenum;\n}\n\ndeclare var WebGLActiveInfo: {\n prototype: WebGLActiveInfo;\n new(): WebGLActiveInfo;\n};\n\n/**\n * The **WebGLBuffer** interface is part of the WebGL API and represents an opaque buffer object storing data such as vertices or colors.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLBuffer)\n */\ninterface WebGLBuffer {\n}\n\ndeclare var WebGLBuffer: {\n prototype: WebGLBuffer;\n new(): WebGLBuffer;\n};\n\n/**\n * The **WebGLContextEvent** 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.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLContextEvent)\n */\ninterface WebGLContextEvent extends Event {\n /**\n * The read-only **`WebGLContextEvent.statusMessage`** property contains additional event status information, or is an empty string if no additional information is available.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLContextEvent/statusMessage)\n */\n readonly statusMessage: string;\n}\n\ndeclare var WebGLContextEvent: {\n prototype: WebGLContextEvent;\n new(type: string, eventInit?: WebGLContextEventInit): WebGLContextEvent;\n};\n\n/**\n * The **WebGLFramebuffer** interface is part of the WebGL API and represents a collection of buffers that serve as a rendering destination.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLFramebuffer)\n */\ninterface WebGLFramebuffer {\n}\n\ndeclare var WebGLFramebuffer: {\n prototype: WebGLFramebuffer;\n new(): WebGLFramebuffer;\n};\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).\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLProgram)\n */\ninterface WebGLProgram {\n}\n\ndeclare var WebGLProgram: {\n prototype: WebGLProgram;\n new(): WebGLProgram;\n};\n\n/**\n * The **`WebGLQuery`** interface is part of the WebGL 2 API and provides ways to asynchronously query for information.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLQuery)\n */\ninterface WebGLQuery {\n}\n\ndeclare var WebGLQuery: {\n prototype: WebGLQuery;\n new(): WebGLQuery;\n};\n\n/**\n * The **WebGLRenderbuffer** interface is part of the WebGL API and represents a buffer that can contain an image, or that can be a source or target of a rendering operation.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderbuffer)\n */\ninterface WebGLRenderbuffer {\n}\n\ndeclare var WebGLRenderbuffer: {\n prototype: WebGLRenderbuffer;\n new(): WebGLRenderbuffer;\n};\n\n/**\n * The **`WebGLRenderingContext`** interface provides an interface to the OpenGL ES 2.0 graphics rendering context for the drawing surface of an HTML canvas element.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext)\n */\ninterface WebGLRenderingContext extends WebGLRenderingContextBase, WebGLRenderingContextOverloads {\n}\n\ndeclare var WebGLRenderingContext: {\n prototype: WebGLRenderingContext;\n new(): WebGLRenderingContext;\n readonly DEPTH_BUFFER_BIT: 0x00000100;\n readonly STENCIL_BUFFER_BIT: 0x00000400;\n readonly COLOR_BUFFER_BIT: 0x00004000;\n readonly POINTS: 0x0000;\n readonly LINES: 0x0001;\n readonly LINE_LOOP: 0x0002;\n readonly LINE_STRIP: 0x0003;\n readonly TRIANGLES: 0x0004;\n readonly TRIANGLE_STRIP: 0x0005;\n readonly TRIANGLE_FAN: 0x0006;\n readonly ZERO: 0;\n readonly ONE: 1;\n readonly SRC_COLOR: 0x0300;\n readonly ONE_MINUS_SRC_COLOR: 0x0301;\n readonly SRC_ALPHA: 0x0302;\n readonly ONE_MINUS_SRC_ALPHA: 0x0303;\n readonly DST_ALPHA: 0x0304;\n readonly ONE_MINUS_DST_ALPHA: 0x0305;\n readonly DST_COLOR: 0x0306;\n readonly ONE_MINUS_DST_COLOR: 0x0307;\n readonly SRC_ALPHA_SATURATE: 0x0308;\n readonly FUNC_ADD: 0x8006;\n readonly BLEND_EQUATION: 0x8009;\n readonly BLEND_EQUATION_RGB: 0x8009;\n readonly BLEND_EQUATION_ALPHA: 0x883D;\n readonly FUNC_SUBTRACT: 0x800A;\n readonly FUNC_REVERSE_SUBTRACT: 0x800B;\n readonly BLEND_DST_RGB: 0x80C8;\n readonly BLEND_SRC_RGB: 0x80C9;\n readonly BLEND_DST_ALPHA: 0x80CA;\n readonly BLEND_SRC_ALPHA: 0x80CB;\n readonly CONSTANT_COLOR: 0x8001;\n readonly ONE_MINUS_CONSTANT_COLOR: 0x8002;\n readonly CONSTANT_ALPHA: 0x8003;\n readonly ONE_MINUS_CONSTANT_ALPHA: 0x8004;\n readonly BLEND_COLOR: 0x8005;\n readonly ARRAY_BUFFER: 0x8892;\n readonly ELEMENT_ARRAY_BUFFER: 0x8893;\n readonly ARRAY_BUFFER_BINDING: 0x8894;\n readonly ELEMENT_ARRAY_BUFFER_BINDING: 0x8895;\n readonly STREAM_DRAW: 0x88E0;\n readonly STATIC_DRAW: 0x88E4;\n readonly DYNAMIC_DRAW: 0x88E8;\n readonly BUFFER_SIZE: 0x8764;\n readonly BUFFER_USAGE: 0x8765;\n readonly CURRENT_VERTEX_ATTRIB: 0x8626;\n readonly FRONT: 0x0404;\n readonly BACK: 0x0405;\n readonly FRONT_AND_BACK: 0x0408;\n readonly CULL_FACE: 0x0B44;\n readonly BLEND: 0x0BE2;\n readonly DITHER: 0x0BD0;\n readonly STENCIL_TEST: 0x0B90;\n readonly DEPTH_TEST: 0x0B71;\n readonly SCISSOR_TEST: 0x0C11;\n readonly POLYGON_OFFSET_FILL: 0x8037;\n readonly SAMPLE_ALPHA_TO_COVERAGE: 0x809E;\n readonly SAMPLE_COVERAGE: 0x80A0;\n readonly NO_ERROR: 0;\n readonly INVALID_ENUM: 0x0500;\n readonly INVALID_VALUE: 0x0501;\n readonly INVALID_OPERATION: 0x0502;\n readonly OUT_OF_MEMORY: 0x0505;\n readonly CW: 0x0900;\n readonly CCW: 0x0901;\n readonly LINE_WIDTH: 0x0B21;\n readonly ALIASED_POINT_SIZE_RANGE: 0x846D;\n readonly ALIASED_LINE_WIDTH_RANGE: 0x846E;\n readonly CULL_FACE_MODE: 0x0B45;\n readonly FRONT_FACE: 0x0B46;\n readonly DEPTH_RANGE: 0x0B70;\n readonly DEPTH_WRITEMASK: 0x0B72;\n readonly DEPTH_CLEAR_VALUE: 0x0B73;\n readonly DEPTH_FUNC: 0x0B74;\n readonly STENCIL_CLEAR_VALUE: 0x0B91;\n readonly STENCIL_FUNC: 0x0B92;\n readonly STENCIL_FAIL: 0x0B94;\n readonly STENCIL_PASS_DEPTH_FAIL: 0x0B95;\n readonly STENCIL_PASS_DEPTH_PASS: 0x0B96;\n readonly STENCIL_REF: 0x0B97;\n readonly STENCIL_VALUE_MASK: 0x0B93;\n readonly STENCIL_WRITEMASK: 0x0B98;\n readonly STENCIL_BACK_FUNC: 0x8800;\n readonly STENCIL_BACK_FAIL: 0x8801;\n readonly STENCIL_BACK_PASS_DEPTH_FAIL: 0x8802;\n readonly STENCIL_BACK_PASS_DEPTH_PASS: 0x8803;\n readonly STENCIL_BACK_REF: 0x8CA3;\n readonly STENCIL_BACK_VALUE_MASK: 0x8CA4;\n readonly STENCIL_BACK_WRITEMASK: 0x8CA5;\n readonly VIEWPORT: 0x0BA2;\n readonly SCISSOR_BOX: 0x0C10;\n readonly COLOR_CLEAR_VALUE: 0x0C22;\n readonly COLOR_WRITEMASK: 0x0C23;\n readonly UNPACK_ALIGNMENT: 0x0CF5;\n readonly PACK_ALIGNMENT: 0x0D05;\n readonly MAX_TEXTURE_SIZE: 0x0D33;\n readonly MAX_VIEWPORT_DIMS: 0x0D3A;\n readonly SUBPIXEL_BITS: 0x0D50;\n readonly RED_BITS: 0x0D52;\n readonly GREEN_BITS: 0x0D53;\n readonly BLUE_BITS: 0x0D54;\n readonly ALPHA_BITS: 0x0D55;\n readonly DEPTH_BITS: 0x0D56;\n readonly STENCIL_BITS: 0x0D57;\n readonly POLYGON_OFFSET_UNITS: 0x2A00;\n readonly POLYGON_OFFSET_FACTOR: 0x8038;\n readonly TEXTURE_BINDING_2D: 0x8069;\n readonly SAMPLE_BUFFERS: 0x80A8;\n readonly SAMPLES: 0x80A9;\n readonly SAMPLE_COVERAGE_VALUE: 0x80AA;\n readonly SAMPLE_COVERAGE_INVERT: 0x80AB;\n readonly COMPRESSED_TEXTURE_FORMATS: 0x86A3;\n readonly DONT_CARE: 0x1100;\n readonly FASTEST: 0x1101;\n readonly NICEST: 0x1102;\n readonly GENERATE_MIPMAP_HINT: 0x8192;\n readonly BYTE: 0x1400;\n readonly UNSIGNED_BYTE: 0x1401;\n readonly SHORT: 0x1402;\n readonly UNSIGNED_SHORT: 0x1403;\n readonly INT: 0x1404;\n readonly UNSIGNED_INT: 0x1405;\n readonly FLOAT: 0x1406;\n readonly DEPTH_COMPONENT: 0x1902;\n readonly ALPHA: 0x1906;\n readonly RGB: 0x1907;\n readonly RGBA: 0x1908;\n readonly LUMINANCE: 0x1909;\n readonly LUMINANCE_ALPHA: 0x190A;\n readonly UNSIGNED_SHORT_4_4_4_4: 0x8033;\n readonly UNSIGNED_SHORT_5_5_5_1: 0x8034;\n readonly UNSIGNED_SHORT_5_6_5: 0x8363;\n readonly FRAGMENT_SHADER: 0x8B30;\n readonly VERTEX_SHADER: 0x8B31;\n readonly MAX_VERTEX_ATTRIBS: 0x8869;\n readonly MAX_VERTEX_UNIFORM_VECTORS: 0x8DFB;\n readonly MAX_VARYING_VECTORS: 0x8DFC;\n readonly MAX_COMBINED_TEXTURE_IMAGE_UNITS: 0x8B4D;\n readonly MAX_VERTEX_TEXTURE_IMAGE_UNITS: 0x8B4C;\n readonly MAX_TEXTURE_IMAGE_UNITS: 0x8872;\n readonly MAX_FRAGMENT_UNIFORM_VECTORS: 0x8DFD;\n readonly SHADER_TYPE: 0x8B4F;\n readonly DELETE_STATUS: 0x8B80;\n readonly LINK_STATUS: 0x8B82;\n readonly VALIDATE_STATUS: 0x8B83;\n readonly ATTACHED_SHADERS: 0x8B85;\n readonly ACTIVE_UNIFORMS: 0x8B86;\n readonly ACTIVE_ATTRIBUTES: 0x8B89;\n readonly SHADING_LANGUAGE_VERSION: 0x8B8C;\n readonly CURRENT_PROGRAM: 0x8B8D;\n readonly NEVER: 0x0200;\n readonly LESS: 0x0201;\n readonly EQUAL: 0x0202;\n readonly LEQUAL: 0x0203;\n readonly GREATER: 0x0204;\n readonly NOTEQUAL: 0x0205;\n readonly GEQUAL: 0x0206;\n readonly ALWAYS: 0x0207;\n readonly KEEP: 0x1E00;\n readonly REPLACE: 0x1E01;\n readonly INCR: 0x1E02;\n readonly DECR: 0x1E03;\n readonly INVERT: 0x150A;\n readonly INCR_WRAP: 0x8507;\n readonly DECR_WRAP: 0x8508;\n readonly VENDOR: 0x1F00;\n readonly RENDERER: 0x1F01;\n readonly VERSION: 0x1F02;\n readonly NEAREST: 0x2600;\n readonly LINEAR: 0x2601;\n readonly NEAREST_MIPMAP_NEAREST: 0x2700;\n readonly LINEAR_MIPMAP_NEAREST: 0x2701;\n readonly NEAREST_MIPMAP_LINEAR: 0x2702;\n readonly LINEAR_MIPMAP_LINEAR: 0x2703;\n readonly TEXTURE_MAG_FILTER: 0x2800;\n readonly TEXTURE_MIN_FILTER: 0x2801;\n readonly TEXTURE_WRAP_S: 0x2802;\n readonly TEXTURE_WRAP_T: 0x2803;\n readonly TEXTURE_2D: 0x0DE1;\n readonly TEXTURE: 0x1702;\n readonly TEXTURE_CUBE_MAP: 0x8513;\n readonly TEXTURE_BINDING_CUBE_MAP: 0x8514;\n readonly TEXTURE_CUBE_MAP_POSITIVE_X: 0x8515;\n readonly TEXTURE_CUBE_MAP_NEGATIVE_X: 0x8516;\n readonly TEXTURE_CUBE_MAP_POSITIVE_Y: 0x8517;\n readonly TEXTURE_CUBE_MAP_NEGATIVE_Y: 0x8518;\n readonly TEXTURE_CUBE_MAP_POSITIVE_Z: 0x8519;\n readonly TEXTURE_CUBE_MAP_NEGATIVE_Z: 0x851A;\n readonly MAX_CUBE_MAP_TEXTURE_SIZE: 0x851C;\n readonly TEXTURE0: 0x84C0;\n readonly TEXTURE1: 0x84C1;\n readonly TEXTURE2: 0x84C2;\n readonly TEXTURE3: 0x84C3;\n readonly TEXTURE4: 0x84C4;\n readonly TEXTURE5: 0x84C5;\n readonly TEXTURE6: 0x84C6;\n readonly TEXTURE7: 0x84C7;\n readonly TEXTURE8: 0x84C8;\n readonly TEXTURE9: 0x84C9;\n readonly TEXTURE10: 0x84CA;\n readonly TEXTURE11: 0x84CB;\n readonly TEXTURE12: 0x84CC;\n readonly TEXTURE13: 0x84CD;\n readonly TEXTURE14: 0x84CE;\n readonly TEXTURE15: 0x84CF;\n readonly TEXTURE16: 0x84D0;\n readonly TEXTURE17: 0x84D1;\n readonly TEXTURE18: 0x84D2;\n readonly TEXTURE19: 0x84D3;\n readonly TEXTURE20: 0x84D4;\n readonly TEXTURE21: 0x84D5;\n readonly TEXTURE22: 0x84D6;\n readonly TEXTURE23: 0x84D7;\n readonly TEXTURE24: 0x84D8;\n readonly TEXTURE25: 0x84D9;\n readonly TEXTURE26: 0x84DA;\n readonly TEXTURE27: 0x84DB;\n readonly TEXTURE28: 0x84DC;\n readonly TEXTURE29: 0x84DD;\n readonly TEXTURE30: 0x84DE;\n readonly TEXTURE31: 0x84DF;\n readonly ACTIVE_TEXTURE: 0x84E0;\n readonly REPEAT: 0x2901;\n readonly CLAMP_TO_EDGE: 0x812F;\n readonly MIRRORED_REPEAT: 0x8370;\n readonly FLOAT_VEC2: 0x8B50;\n readonly FLOAT_VEC3: 0x8B51;\n readonly FLOAT_VEC4: 0x8B52;\n readonly INT_VEC2: 0x8B53;\n readonly INT_VEC3: 0x8B54;\n readonly INT_VEC4: 0x8B55;\n readonly BOOL: 0x8B56;\n readonly BOOL_VEC2: 0x8B57;\n readonly BOOL_VEC3: 0x8B58;\n readonly BOOL_VEC4: 0x8B59;\n readonly FLOAT_MAT2: 0x8B5A;\n readonly FLOAT_MAT3: 0x8B5B;\n readonly FLOAT_MAT4: 0x8B5C;\n readonly SAMPLER_2D: 0x8B5E;\n readonly SAMPLER_CUBE: 0x8B60;\n readonly VERTEX_ATTRIB_ARRAY_ENABLED: 0x8622;\n readonly VERTEX_ATTRIB_ARRAY_SIZE: 0x8623;\n readonly VERTEX_ATTRIB_ARRAY_STRIDE: 0x8624;\n readonly VERTEX_ATTRIB_ARRAY_TYPE: 0x8625;\n readonly VERTEX_ATTRIB_ARRAY_NORMALIZED: 0x886A;\n readonly VERTEX_ATTRIB_ARRAY_POINTER: 0x8645;\n readonly VERTEX_ATTRIB_ARRAY_BUFFER_BINDING: 0x889F;\n readonly IMPLEMENTATION_COLOR_READ_TYPE: 0x8B9A;\n readonly IMPLEMENTATION_COLOR_READ_FORMAT: 0x8B9B;\n readonly COMPILE_STATUS: 0x8B81;\n readonly LOW_FLOAT: 0x8DF0;\n readonly MEDIUM_FLOAT: 0x8DF1;\n readonly HIGH_FLOAT: 0x8DF2;\n readonly LOW_INT: 0x8DF3;\n readonly MEDIUM_INT: 0x8DF4;\n readonly HIGH_INT: 0x8DF5;\n readonly FRAMEBUFFER: 0x8D40;\n readonly RENDERBUFFER: 0x8D41;\n readonly RGBA4: 0x8056;\n readonly RGB5_A1: 0x8057;\n readonly RGBA8: 0x8058;\n readonly RGB565: 0x8D62;\n readonly DEPTH_COMPONENT16: 0x81A5;\n readonly STENCIL_INDEX8: 0x8D48;\n readonly DEPTH_STENCIL: 0x84F9;\n readonly RENDERBUFFER_WIDTH: 0x8D42;\n readonly RENDERBUFFER_HEIGHT: 0x8D43;\n readonly RENDERBUFFER_INTERNAL_FORMAT: 0x8D44;\n readonly RENDERBUFFER_RED_SIZE: 0x8D50;\n readonly RENDERBUFFER_GREEN_SIZE: 0x8D51;\n readonly RENDERBUFFER_BLUE_SIZE: 0x8D52;\n readonly RENDERBUFFER_ALPHA_SIZE: 0x8D53;\n readonly RENDERBUFFER_DEPTH_SIZE: 0x8D54;\n readonly RENDERBUFFER_STENCIL_SIZE: 0x8D55;\n readonly FRAMEBUFFER_ATTACHMENT_OBJECT_TYPE: 0x8CD0;\n readonly FRAMEBUFFER_ATTACHMENT_OBJECT_NAME: 0x8CD1;\n readonly FRAMEBUFFER_ATTACHMENT_TEXTURE_LEVEL: 0x8CD2;\n readonly FRAMEBUFFER_ATTACHMENT_TEXTURE_CUBE_MAP_FACE: 0x8CD3;\n readonly COLOR_ATTACHMENT0: 0x8CE0;\n readonly DEPTH_ATTACHMENT: 0x8D00;\n readonly STENCIL_ATTACHMENT: 0x8D20;\n readonly DEPTH_STENCIL_ATTACHMENT: 0x821A;\n readonly NONE: 0;\n readonly FRAMEBUFFER_COMPLETE: 0x8CD5;\n readonly FRAMEBUFFER_INCOMPLETE_ATTACHMENT: 0x8CD6;\n readonly FRAMEBUFFER_INCOMPLETE_MISSING_ATTACHMENT: 0x8CD7;\n readonly FRAMEBUFFER_INCOMPLETE_DIMENSIONS: 0x8CD9;\n readonly FRAMEBUFFER_UNSUPPORTED: 0x8CDD;\n readonly FRAMEBUFFER_BINDING: 0x8CA6;\n readonly RENDERBUFFER_BINDING: 0x8CA7;\n readonly MAX_RENDERBUFFER_SIZE: 0x84E8;\n readonly INVALID_FRAMEBUFFER_OPERATION: 0x0506;\n readonly UNPACK_FLIP_Y_WEBGL: 0x9240;\n readonly UNPACK_PREMULTIPLY_ALPHA_WEBGL: 0x9241;\n readonly CONTEXT_LOST_WEBGL: 0x9242;\n readonly UNPACK_COLORSPACE_CONVERSION_WEBGL: 0x9243;\n readonly BROWSER_DEFAULT_WEBGL: 0x9244;\n};\n\ninterface WebGLRenderingContextBase {\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/canvas) */\n readonly canvas: HTMLCanvasElement | OffscreenCanvas;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/drawingBufferColorSpace) */\n drawingBufferColorSpace: PredefinedColorSpace;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/drawingBufferHeight) */\n readonly drawingBufferHeight: GLsizei;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/drawingBufferWidth) */\n readonly drawingBufferWidth: GLsizei;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/unpackColorSpace) */\n unpackColorSpace: PredefinedColorSpace;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/activeTexture) */\n activeTexture(texture: GLenum): void;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/attachShader) */\n attachShader(program: WebGLProgram, shader: WebGLShader): void;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/bindAttribLocation) */\n bindAttribLocation(program: WebGLProgram, index: GLuint, name: string): void;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/bindBuffer) */\n bindBuffer(target: GLenum, buffer: WebGLBuffer | null): void;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/bindFramebuffer) */\n bindFramebuffer(target: GLenum, framebuffer: WebGLFramebuffer | null): void;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/bindRenderbuffer) */\n bindRenderbuffer(target: GLenum, renderbuffer: WebGLRenderbuffer | null): void;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/bindTexture) */\n bindTexture(target: GLenum, texture: WebGLTexture | null): void;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/blendColor) */\n blendColor(red: GLclampf, green: GLclampf, blue: GLclampf, alpha: GLclampf): void;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/blendEquation) */\n blendEquation(mode: GLenum): void;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/blendEquationSeparate) */\n blendEquationSeparate(modeRGB: GLenum, modeAlpha: GLenum): void;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/blendFunc) */\n blendFunc(sfactor: GLenum, dfactor: GLenum): void;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/blendFuncSeparate) */\n blendFuncSeparate(srcRGB: GLenum, dstRGB: GLenum, srcAlpha: GLenum, dstAlpha: GLenum): void;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/checkFramebufferStatus) */\n checkFramebufferStatus(target: GLenum): GLenum;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/clear) */\n clear(mask: GLbitfield): void;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/clearColor) */\n clearColor(red: GLclampf, green: GLclampf, blue: GLclampf, alpha: GLclampf): void;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/clearDepth) */\n clearDepth(depth: GLclampf): void;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/clearStencil) */\n clearStencil(s: GLint): void;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/colorMask) */\n colorMask(red: GLboolean, green: GLboolean, blue: GLboolean, alpha: GLboolean): void;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/compileShader) */\n compileShader(shader: WebGLShader): void;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/copyTexImage2D) */\n copyTexImage2D(target: GLenum, level: GLint, internalformat: GLenum, x: GLint, y: GLint, width: GLsizei, height: GLsizei, border: GLint): void;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/copyTexSubImage2D) */\n copyTexSubImage2D(target: GLenum, level: GLint, xoffset: GLint, yoffset: GLint, x: GLint, y: GLint, width: GLsizei, height: GLsizei): void;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/createBuffer) */\n createBuffer(): WebGLBuffer;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/createFramebuffer) */\n createFramebuffer(): WebGLFramebuffer;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/createProgram) */\n createProgram(): WebGLProgram;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/createRenderbuffer) */\n createRenderbuffer(): WebGLRenderbuffer;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/createShader) */\n createShader(type: GLenum): WebGLShader | null;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/createTexture) */\n createTexture(): WebGLTexture;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/cullFace) */\n cullFace(mode: GLenum): void;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/deleteBuffer) */\n deleteBuffer(buffer: WebGLBuffer | null): void;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/deleteFramebuffer) */\n deleteFramebuffer(framebuffer: WebGLFramebuffer | null): void;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/deleteProgram) */\n deleteProgram(program: WebGLProgram | null): void;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/deleteRenderbuffer) */\n deleteRenderbuffer(renderbuffer: WebGLRenderbuffer | null): void;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/deleteShader) */\n deleteShader(shader: WebGLShader | null): void;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/deleteTexture) */\n deleteTexture(texture: WebGLTexture | null): void;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/depthFunc) */\n depthFunc(func: GLenum): void;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/depthMask) */\n depthMask(flag: GLboolean): void;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/depthRange) */\n depthRange(zNear: GLclampf, zFar: GLclampf): void;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/detachShader) */\n detachShader(program: WebGLProgram, shader: WebGLShader): void;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/disable) */\n disable(cap: GLenum): void;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/disableVertexAttribArray) */\n disableVertexAttribArray(index: GLuint): void;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/drawArrays) */\n drawArrays(mode: GLenum, first: GLint, count: GLsizei): void;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/drawElements) */\n drawElements(mode: GLenum, count: GLsizei, type: GLenum, offset: GLintptr): void;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/enable) */\n enable(cap: GLenum): void;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/enableVertexAttribArray) */\n enableVertexAttribArray(index: GLuint): void;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/finish) */\n finish(): void;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/flush) */\n flush(): void;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/framebufferRenderbuffer) */\n framebufferRenderbuffer(target: GLenum, attachment: GLenum, renderbuffertarget: GLenum, renderbuffer: WebGLRenderbuffer | null): void;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/framebufferTexture2D) */\n framebufferTexture2D(target: GLenum, attachment: GLenum, textarget: GLenum, texture: WebGLTexture | null, level: GLint): void;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/frontFace) */\n frontFace(mode: GLenum): void;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/generateMipmap) */\n generateMipmap(target: GLenum): void;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/getActiveAttrib) */\n getActiveAttrib(program: WebGLProgram, index: GLuint): WebGLActiveInfo | null;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/getActiveUniform) */\n getActiveUniform(program: WebGLProgram, index: GLuint): WebGLActiveInfo | null;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/getAttachedShaders) */\n getAttachedShaders(program: WebGLProgram): WebGLShader[] | null;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/getAttribLocation) */\n getAttribLocation(program: WebGLProgram, name: string): GLint;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/getBufferParameter) */\n getBufferParameter(target: GLenum, pname: GLenum): any;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/getContextAttributes) */\n getContextAttributes(): WebGLContextAttributes | null;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/getError) */\n getError(): GLenum;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/getExtension) */\n getExtension(extensionName: "ANGLE_instanced_arrays"): ANGLE_instanced_arrays | null;\n getExtension(extensionName: "EXT_blend_minmax"): EXT_blend_minmax | null;\n getExtension(extensionName: "EXT_color_buffer_float"): EXT_color_buffer_float | null;\n getExtension(extensionName: "EXT_color_buffer_half_float"): EXT_color_buffer_half_float | null;\n getExtension(extensionName: "EXT_float_blend"): EXT_float_blend | null;\n getExtension(extensionName: "EXT_frag_depth"): EXT_frag_depth | null;\n getExtension(extensionName: "EXT_sRGB"): EXT_sRGB | null;\n getExtension(extensionName: "EXT_shader_texture_lod"): EXT_shader_texture_lod | null;\n getExtension(extensionName: "EXT_texture_compression_bptc"): EXT_texture_compression_bptc | null;\n getExtension(extensionName: "EXT_texture_compression_rgtc"): EXT_texture_compression_rgtc | null;\n getExtension(extensionName: "EXT_texture_filter_anisotropic"): EXT_texture_filter_anisotropic | null;\n getExtension(extensionName: "KHR_parallel_shader_compile"): KHR_parallel_shader_compile | null;\n getExtension(extensionName: "OES_element_index_uint"): OES_element_index_uint | null;\n getExtension(extensionName: "OES_fbo_render_mipmap"): OES_fbo_render_mipmap | null;\n getExtension(extensionName: "OES_standard_derivatives"): OES_standard_derivatives | null;\n getExtension(extensionName: "OES_texture_float"): OES_texture_float | null;\n getExtension(extensionName: "OES_texture_float_linear"): OES_texture_float_linear | null;\n getExtension(extensionName: "OES_texture_half_float"): OES_texture_half_float | null;\n getExtension(extensionName: "OES_texture_half_float_linear"): OES_texture_half_float_linear | null;\n getExtension(extensionName: "OES_vertex_array_object"): OES_vertex_array_object | null;\n getExtension(extensionName: "OVR_multiview2"): OVR_multiview2 | 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_etc"): WEBGL_compressed_texture_etc | null;\n getExtension(extensionName: "WEBGL_compressed_texture_etc1"): WEBGL_compressed_texture_etc1 | null;\n getExtension(extensionName: "WEBGL_compressed_texture_pvrtc"): WEBGL_compressed_texture_pvrtc | null;\n getExtension(extensionName: "WEBGL_compressed_texture_s3tc"): WEBGL_compressed_texture_s3tc | null;\n getExtension(extensionName: "WEBGL_compressed_texture_s3tc_srgb"): WEBGL_compressed_texture_s3tc_srgb | null;\n getExtension(extensionName: "WEBGL_debug_renderer_info"): WEBGL_debug_renderer_info | null;\n getExtension(extensionName: "WEBGL_debug_shaders"): WEBGL_debug_shaders | null;\n getExtension(extensionName: "WEBGL_depth_texture"): WEBGL_depth_texture | 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_multi_draw"): WEBGL_multi_draw | null;\n getExtension(name: string): any;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/getFramebufferAttachmentParameter) */\n getFramebufferAttachmentParameter(target: GLenum, attachment: GLenum, pname: GLenum): any;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/getParameter) */\n getParameter(pname: GLenum): any;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/getProgramInfoLog) */\n getProgramInfoLog(program: WebGLProgram): string | null;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/getProgramParameter) */\n getProgramParameter(program: WebGLProgram, pname: GLenum): any;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/getRenderbufferParameter) */\n getRenderbufferParameter(target: GLenum, pname: GLenum): any;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/getShaderInfoLog) */\n getShaderInfoLog(shader: WebGLShader): string | null;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/getShaderParameter) */\n getShaderParameter(shader: WebGLShader, pname: GLenum): any;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/getShaderPrecisionFormat) */\n getShaderPrecisionFormat(shadertype: GLenum, precisiontype: GLenum): WebGLShaderPrecisionFormat | null;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/getShaderSource) */\n getShaderSource(shader: WebGLShader): string | null;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/getSupportedExtensions) */\n getSupportedExtensions(): string[] | null;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/getTexParameter) */\n getTexParameter(target: GLenum, pname: GLenum): any;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/getUniform) */\n getUniform(program: WebGLProgram, location: WebGLUniformLocation): any;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/getUniformLocation) */\n getUniformLocation(program: WebGLProgram, name: string): WebGLUniformLocation | null;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/getVertexAttrib) */\n getVertexAttrib(index: GLuint, pname: GLenum): any;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/getVertexAttribOffset) */\n getVertexAttribOffset(index: GLuint, pname: GLenum): GLintptr;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/hint) */\n hint(target: GLenum, mode: GLenum): void;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/isBuffer) */\n isBuffer(buffer: WebGLBuffer | null): GLboolean;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/isContextLost) */\n isContextLost(): boolean;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/isEnabled) */\n isEnabled(cap: GLenum): GLboolean;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/isFramebuffer) */\n isFramebuffer(framebuffer: WebGLFramebuffer | null): GLboolean;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/isProgram) */\n isProgram(program: WebGLProgram | null): GLboolean;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/isRenderbuffer) */\n isRenderbuffer(renderbuffer: WebGLRenderbuffer | null): GLboolean;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/isShader) */\n isShader(shader: WebGLShader | null): GLboolean;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/isTexture) */\n isTexture(texture: WebGLTexture | null): GLboolean;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/lineWidth) */\n lineWidth(width: GLfloat): void;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/linkProgram) */\n linkProgram(program: WebGLProgram): void;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/pixelStorei) */\n pixelStorei(pname: GLenum, param: GLint | GLboolean): void;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/polygonOffset) */\n polygonOffset(factor: GLfloat, units: GLfloat): void;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/renderbufferStorage) */\n renderbufferStorage(target: GLenum, internalformat: GLenum, width: GLsizei, height: GLsizei): void;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/sampleCoverage) */\n sampleCoverage(value: GLclampf, invert: GLboolean): void;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/scissor) */\n scissor(x: GLint, y: GLint, width: GLsizei, height: GLsizei): void;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/shaderSource) */\n shaderSource(shader: WebGLShader, source: string): void;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/stencilFunc) */\n stencilFunc(func: GLenum, ref: GLint, mask: GLuint): void;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/stencilFuncSeparate) */\n stencilFuncSeparate(face: GLenum, func: GLenum, ref: GLint, mask: GLuint): void;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/stencilMask) */\n stencilMask(mask: GLuint): void;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/stencilMaskSeparate) */\n stencilMaskSeparate(face: GLenum, mask: GLuint): void;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/stencilOp) */\n stencilOp(fail: GLenum, zfail: GLenum, zpass: GLenum): void;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/stencilOpSeparate) */\n stencilOpSeparate(face: GLenum, fail: GLenum, zfail: GLenum, zpass: GLenum): void;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/texParameter) */\n texParameterf(target: GLenum, pname: GLenum, param: GLfloat): void;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/texParameter) */\n texParameteri(target: GLenum, pname: GLenum, param: GLint): void;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/uniform) */\n uniform1f(location: WebGLUniformLocation | null, x: GLfloat): void;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/uniform) */\n uniform1i(location: WebGLUniformLocation | null, x: GLint): void;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/uniform) */\n uniform2f(location: WebGLUniformLocation | null, x: GLfloat, y: GLfloat): void;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/uniform) */\n uniform2i(location: WebGLUniformLocation | null, x: GLint, y: GLint): void;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/uniform) */\n uniform3f(location: WebGLUniformLocation | null, x: GLfloat, y: GLfloat, z: GLfloat): void;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/uniform) */\n uniform3i(location: WebGLUniformLocation | null, x: GLint, y: GLint, z: GLint): void;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/uniform) */\n uniform4f(location: WebGLUniformLocation | null, x: GLfloat, y: GLfloat, z: GLfloat, w: GLfloat): void;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/uniform) */\n uniform4i(location: WebGLUniformLocation | null, x: GLint, y: GLint, z: GLint, w: GLint): void;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/useProgram) */\n useProgram(program: WebGLProgram | null): void;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/validateProgram) */\n validateProgram(program: WebGLProgram): void;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/vertexAttrib) */\n vertexAttrib1f(index: GLuint, x: GLfloat): void;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/vertexAttrib) */\n vertexAttrib1fv(index: GLuint, values: Float32List): void;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/vertexAttrib) */\n vertexAttrib2f(index: GLuint, x: GLfloat, y: GLfloat): void;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/vertexAttrib) */\n vertexAttrib2fv(index: GLuint, values: Float32List): void;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/vertexAttrib) */\n vertexAttrib3f(index: GLuint, x: GLfloat, y: GLfloat, z: GLfloat): void;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/vertexAttrib) */\n vertexAttrib3fv(index: GLuint, values: Float32List): void;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/vertexAttrib) */\n vertexAttrib4f(index: GLuint, x: GLfloat, y: GLfloat, z: GLfloat, w: GLfloat): void;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/vertexAttrib) */\n vertexAttrib4fv(index: GLuint, values: Float32List): void;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/vertexAttribPointer) */\n vertexAttribPointer(index: GLuint, size: GLint, type: GLenum, normalized: GLboolean, stride: GLsizei, offset: GLintptr): void;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/viewport) */\n viewport(x: GLint, y: GLint, width: GLsizei, height: GLsizei): void;\n readonly DEPTH_BUFFER_BIT: 0x00000100;\n readonly STENCIL_BUFFER_BIT: 0x00000400;\n readonly COLOR_BUFFER_BIT: 0x00004000;\n readonly POINTS: 0x0000;\n readonly LINES: 0x0001;\n readonly LINE_LOOP: 0x0002;\n readonly LINE_STRIP: 0x0003;\n readonly TRIANGLES: 0x0004;\n readonly TRIANGLE_STRIP: 0x0005;\n readonly TRIANGLE_FAN: 0x0006;\n readonly ZERO: 0;\n readonly ONE: 1;\n readonly SRC_COLOR: 0x0300;\n readonly ONE_MINUS_SRC_COLOR: 0x0301;\n readonly SRC_ALPHA: 0x0302;\n readonly ONE_MINUS_SRC_ALPHA: 0x0303;\n readonly DST_ALPHA: 0x0304;\n readonly ONE_MINUS_DST_ALPHA: 0x0305;\n readonly DST_COLOR: 0x0306;\n readonly ONE_MINUS_DST_COLOR: 0x0307;\n readonly SRC_ALPHA_SATURATE: 0x0308;\n readonly FUNC_ADD: 0x8006;\n readonly BLEND_EQUATION: 0x8009;\n readonly BLEND_EQUATION_RGB: 0x8009;\n readonly BLEND_EQUATION_ALPHA: 0x883D;\n readonly FUNC_SUBTRACT: 0x800A;\n readonly FUNC_REVERSE_SUBTRACT: 0x800B;\n readonly BLEND_DST_RGB: 0x80C8;\n readonly BLEND_SRC_RGB: 0x80C9;\n readonly BLEND_DST_ALPHA: 0x80CA;\n readonly BLEND_SRC_ALPHA: 0x80CB;\n readonly CONSTANT_COLOR: 0x8001;\n readonly ONE_MINUS_CONSTANT_COLOR: 0x8002;\n readonly CONSTANT_ALPHA: 0x8003;\n readonly ONE_MINUS_CONSTANT_ALPHA: 0x8004;\n readonly BLEND_COLOR: 0x8005;\n readonly ARRAY_BUFFER: 0x8892;\n readonly ELEMENT_ARRAY_BUFFER: 0x8893;\n readonly ARRAY_BUFFER_BINDING: 0x8894;\n readonly ELEMENT_ARRAY_BUFFER_BINDING: 0x8895;\n readonly STREAM_DRAW: 0x88E0;\n readonly STATIC_DRAW: 0x88E4;\n readonly DYNAMIC_DRAW: 0x88E8;\n readonly BUFFER_SIZE: 0x8764;\n readonly BUFFER_USAGE: 0x8765;\n readonly CURRENT_VERTEX_ATTRIB: 0x8626;\n readonly FRONT: 0x0404;\n readonly BACK: 0x0405;\n readonly FRONT_AND_BACK: 0x0408;\n readonly CULL_FACE: 0x0B44;\n readonly BLEND: 0x0BE2;\n readonly DITHER: 0x0BD0;\n readonly STENCIL_TEST: 0x0B90;\n readonly DEPTH_TEST: 0x0B71;\n readonly SCISSOR_TEST: 0x0C11;\n readonly POLYGON_OFFSET_FILL: 0x8037;\n readonly SAMPLE_ALPHA_TO_COVERAGE: 0x809E;\n readonly SAMPLE_COVERAGE: 0x80A0;\n readonly NO_ERROR: 0;\n readonly INVALID_ENUM: 0x0500;\n readonly INVALID_VALUE: 0x0501;\n readonly INVALID_OPERATION: 0x0502;\n readonly OUT_OF_MEMORY: 0x0505;\n readonly CW: 0x0900;\n readonly CCW: 0x0901;\n readonly LINE_WIDTH: 0x0B21;\n readonly ALIASED_POINT_SIZE_RANGE: 0x846D;\n readonly ALIASED_LINE_WIDTH_RANGE: 0x846E;\n readonly CULL_FACE_MODE: 0x0B45;\n readonly FRONT_FACE: 0x0B46;\n readonly DEPTH_RANGE: 0x0B70;\n readonly DEPTH_WRITEMASK: 0x0B72;\n readonly DEPTH_CLEAR_VALUE: 0x0B73;\n readonly DEPTH_FUNC: 0x0B74;\n readonly STENCIL_CLEAR_VALUE: 0x0B91;\n readonly STENCIL_FUNC: 0x0B92;\n readonly STENCIL_FAIL: 0x0B94;\n readonly STENCIL_PASS_DEPTH_FAIL: 0x0B95;\n readonly STENCIL_PASS_DEPTH_PASS: 0x0B96;\n readonly STENCIL_REF: 0x0B97;\n readonly STENCIL_VALUE_MASK: 0x0B93;\n readonly STENCIL_WRITEMASK: 0x0B98;\n readonly STENCIL_BACK_FUNC: 0x8800;\n readonly STENCIL_BACK_FAIL: 0x8801;\n readonly STENCIL_BACK_PASS_DEPTH_FAIL: 0x8802;\n readonly STENCIL_BACK_PASS_DEPTH_PASS: 0x8803;\n readonly STENCIL_BACK_REF: 0x8CA3;\n readonly STENCIL_BACK_VALUE_MASK: 0x8CA4;\n readonly STENCIL_BACK_WRITEMASK: 0x8CA5;\n readonly VIEWPORT: 0x0BA2;\n readonly SCISSOR_BOX: 0x0C10;\n readonly COLOR_CLEAR_VALUE: 0x0C22;\n readonly COLOR_WRITEMASK: 0x0C23;\n readonly UNPACK_ALIGNMENT: 0x0CF5;\n readonly PACK_ALIGNMENT: 0x0D05;\n readonly MAX_TEXTURE_SIZE: 0x0D33;\n readonly MAX_VIEWPORT_DIMS: 0x0D3A;\n readonly SUBPIXEL_BITS: 0x0D50;\n readonly RED_BITS: 0x0D52;\n readonly GREEN_BITS: 0x0D53;\n readonly BLUE_BITS: 0x0D54;\n readonly ALPHA_BITS: 0x0D55;\n readonly DEPTH_BITS: 0x0D56;\n readonly STENCIL_BITS: 0x0D57;\n readonly POLYGON_OFFSET_UNITS: 0x2A00;\n readonly POLYGON_OFFSET_FACTOR: 0x8038;\n readonly TEXTURE_BINDING_2D: 0x8069;\n readonly SAMPLE_BUFFERS: 0x80A8;\n readonly SAMPLES: 0x80A9;\n readonly SAMPLE_COVERAGE_VALUE: 0x80AA;\n readonly SAMPLE_COVERAGE_INVERT: 0x80AB;\n readonly COMPRESSED_TEXTURE_FORMATS: 0x86A3;\n readonly DONT_CARE: 0x1100;\n readonly FASTEST: 0x1101;\n readonly NICEST: 0x1102;\n readonly GENERATE_MIPMAP_HINT: 0x8192;\n readonly BYTE: 0x1400;\n readonly UNSIGNED_BYTE: 0x1401;\n readonly SHORT: 0x1402;\n readonly UNSIGNED_SHORT: 0x1403;\n readonly INT: 0x1404;\n readonly UNSIGNED_INT: 0x1405;\n readonly FLOAT: 0x1406;\n readonly DEPTH_COMPONENT: 0x1902;\n readonly ALPHA: 0x1906;\n readonly RGB: 0x1907;\n readonly RGBA: 0x1908;\n readonly LUMINANCE: 0x1909;\n readonly LUMINANCE_ALPHA: 0x190A;\n readonly UNSIGNED_SHORT_4_4_4_4: 0x8033;\n readonly UNSIGNED_SHORT_5_5_5_1: 0x8034;\n readonly UNSIGNED_SHORT_5_6_5: 0x8363;\n readonly FRAGMENT_SHADER: 0x8B30;\n readonly VERTEX_SHADER: 0x8B31;\n readonly MAX_VERTEX_ATTRIBS: 0x8869;\n readonly MAX_VERTEX_UNIFORM_VECTORS: 0x8DFB;\n readonly MAX_VARYING_VECTORS: 0x8DFC;\n readonly MAX_COMBINED_TEXTURE_IMAGE_UNITS: 0x8B4D;\n readonly MAX_VERTEX_TEXTURE_IMAGE_UNITS: 0x8B4C;\n readonly MAX_TEXTURE_IMAGE_UNITS: 0x8872;\n readonly MAX_FRAGMENT_UNIFORM_VECTORS: 0x8DFD;\n readonly SHADER_TYPE: 0x8B4F;\n readonly DELETE_STATUS: 0x8B80;\n readonly LINK_STATUS: 0x8B82;\n readonly VALIDATE_STATUS: 0x8B83;\n readonly ATTACHED_SHADERS: 0x8B85;\n readonly ACTIVE_UNIFORMS: 0x8B86;\n readonly ACTIVE_ATTRIBUTES: 0x8B89;\n readonly SHADING_LANGUAGE_VERSION: 0x8B8C;\n readonly CURRENT_PROGRAM: 0x8B8D;\n readonly NEVER: 0x0200;\n readonly LESS: 0x0201;\n readonly EQUAL: 0x0202;\n readonly LEQUAL: 0x0203;\n readonly GREATER: 0x0204;\n readonly NOTEQUAL: 0x0205;\n readonly GEQUAL: 0x0206;\n readonly ALWAYS: 0x0207;\n readonly KEEP: 0x1E00;\n readonly REPLACE: 0x1E01;\n readonly INCR: 0x1E02;\n readonly DECR: 0x1E03;\n readonly INVERT: 0x150A;\n readonly INCR_WRAP: 0x8507;\n readonly DECR_WRAP: 0x8508;\n readonly VENDOR: 0x1F00;\n readonly RENDERER: 0x1F01;\n readonly VERSION: 0x1F02;\n readonly NEAREST: 0x2600;\n readonly LINEAR: 0x2601;\n readonly NEAREST_MIPMAP_NEAREST: 0x2700;\n readonly LINEAR_MIPMAP_NEAREST: 0x2701;\n readonly NEAREST_MIPMAP_LINEAR: 0x2702;\n readonly LINEAR_MIPMAP_LINEAR: 0x2703;\n readonly TEXTURE_MAG_FILTER: 0x2800;\n readonly TEXTURE_MIN_FILTER: 0x2801;\n readonly TEXTURE_WRAP_S: 0x2802;\n readonly TEXTURE_WRAP_T: 0x2803;\n readonly TEXTURE_2D: 0x0DE1;\n readonly TEXTURE: 0x1702;\n readonly TEXTURE_CUBE_MAP: 0x8513;\n readonly TEXTURE_BINDING_CUBE_MAP: 0x8514;\n readonly TEXTURE_CUBE_MAP_POSITIVE_X: 0x8515;\n readonly TEXTURE_CUBE_MAP_NEGATIVE_X: 0x8516;\n readonly TEXTURE_CUBE_MAP_POSITIVE_Y: 0x8517;\n readonly TEXTURE_CUBE_MAP_NEGATIVE_Y: 0x8518;\n readonly TEXTURE_CUBE_MAP_POSITIVE_Z: 0x8519;\n readonly TEXTURE_CUBE_MAP_NEGATIVE_Z: 0x851A;\n readonly MAX_CUBE_MAP_TEXTURE_SIZE: 0x851C;\n readonly TEXTURE0: 0x84C0;\n readonly TEXTURE1: 0x84C1;\n readonly TEXTURE2: 0x84C2;\n readonly TEXTURE3: 0x84C3;\n readonly TEXTURE4: 0x84C4;\n readonly TEXTURE5: 0x84C5;\n readonly TEXTURE6: 0x84C6;\n readonly TEXTURE7: 0x84C7;\n readonly TEXTURE8: 0x84C8;\n readonly TEXTURE9: 0x84C9;\n readonly TEXTURE10: 0x84CA;\n readonly TEXTURE11: 0x84CB;\n readonly TEXTURE12: 0x84CC;\n readonly TEXTURE13: 0x84CD;\n readonly TEXTURE14: 0x84CE;\n readonly TEXTURE15: 0x84CF;\n readonly TEXTURE16: 0x84D0;\n readonly TEXTURE17: 0x84D1;\n readonly TEXTURE18: 0x84D2;\n readonly TEXTURE19: 0x84D3;\n readonly TEXTURE20: 0x84D4;\n readonly TEXTURE21: 0x84D5;\n readonly TEXTURE22: 0x84D6;\n readonly TEXTURE23: 0x84D7;\n readonly TEXTURE24: 0x84D8;\n readonly TEXTURE25: 0x84D9;\n readonly TEXTURE26: 0x84DA;\n readonly TEXTURE27: 0x84DB;\n readonly TEXTURE28: 0x84DC;\n readonly TEXTURE29: 0x84DD;\n readonly TEXTURE30: 0x84DE;\n readonly TEXTURE31: 0x84DF;\n readonly ACTIVE_TEXTURE: 0x84E0;\n readonly REPEAT: 0x2901;\n readonly CLAMP_TO_EDGE: 0x812F;\n readonly MIRRORED_REPEAT: 0x8370;\n readonly FLOAT_VEC2: 0x8B50;\n readonly FLOAT_VEC3: 0x8B51;\n readonly FLOAT_VEC4: 0x8B52;\n readonly INT_VEC2: 0x8B53;\n readonly INT_VEC3: 0x8B54;\n readonly INT_VEC4: 0x8B55;\n readonly BOOL: 0x8B56;\n readonly BOOL_VEC2: 0x8B57;\n readonly BOOL_VEC3: 0x8B58;\n readonly BOOL_VEC4: 0x8B59;\n readonly FLOAT_MAT2: 0x8B5A;\n readonly FLOAT_MAT3: 0x8B5B;\n readonly FLOAT_MAT4: 0x8B5C;\n readonly SAMPLER_2D: 0x8B5E;\n readonly SAMPLER_CUBE: 0x8B60;\n readonly VERTEX_ATTRIB_ARRAY_ENABLED: 0x8622;\n readonly VERTEX_ATTRIB_ARRAY_SIZE: 0x8623;\n readonly VERTEX_ATTRIB_ARRAY_STRIDE: 0x8624;\n readonly VERTEX_ATTRIB_ARRAY_TYPE: 0x8625;\n readonly VERTEX_ATTRIB_ARRAY_NORMALIZED: 0x886A;\n readonly VERTEX_ATTRIB_ARRAY_POINTER: 0x8645;\n readonly VERTEX_ATTRIB_ARRAY_BUFFER_BINDING: 0x889F;\n readonly IMPLEMENTATION_COLOR_READ_TYPE: 0x8B9A;\n readonly IMPLEMENTATION_COLOR_READ_FORMAT: 0x8B9B;\n readonly COMPILE_STATUS: 0x8B81;\n readonly LOW_FLOAT: 0x8DF0;\n readonly MEDIUM_FLOAT: 0x8DF1;\n readonly HIGH_FLOAT: 0x8DF2;\n readonly LOW_INT: 0x8DF3;\n readonly MEDIUM_INT: 0x8DF4;\n readonly HIGH_INT: 0x8DF5;\n readonly FRAMEBUFFER: 0x8D40;\n readonly RENDERBUFFER: 0x8D41;\n readonly RGBA4: 0x8056;\n readonly RGB5_A1: 0x8057;\n readonly RGBA8: 0x8058;\n readonly RGB565: 0x8D62;\n readonly DEPTH_COMPONENT16: 0x81A5;\n readonly STENCIL_INDEX8: 0x8D48;\n readonly DEPTH_STENCIL: 0x84F9;\n readonly RENDERBUFFER_WIDTH: 0x8D42;\n readonly RENDERBUFFER_HEIGHT: 0x8D43;\n readonly RENDERBUFFER_INTERNAL_FORMAT: 0x8D44;\n readonly RENDERBUFFER_RED_SIZE: 0x8D50;\n readonly RENDERBUFFER_GREEN_SIZE: 0x8D51;\n readonly RENDERBUFFER_BLUE_SIZE: 0x8D52;\n readonly RENDERBUFFER_ALPHA_SIZE: 0x8D53;\n readonly RENDERBUFFER_DEPTH_SIZE: 0x8D54;\n readonly RENDERBUFFER_STENCIL_SIZE: 0x8D55;\n readonly FRAMEBUFFER_ATTACHMENT_OBJECT_TYPE: 0x8CD0;\n readonly FRAMEBUFFER_ATTACHMENT_OBJECT_NAME: 0x8CD1;\n readonly FRAMEBUFFER_ATTACHMENT_TEXTURE_LEVEL: 0x8CD2;\n readonly FRAMEBUFFER_ATTACHMENT_TEXTURE_CUBE_MAP_FACE: 0x8CD3;\n readonly COLOR_ATTACHMENT0: 0x8CE0;\n readonly DEPTH_ATTACHMENT: 0x8D00;\n readonly STENCIL_ATTACHMENT: 0x8D20;\n readonly DEPTH_STENCIL_ATTACHMENT: 0x821A;\n readonly NONE: 0;\n readonly FRAMEBUFFER_COMPLETE: 0x8CD5;\n readonly FRAMEBUFFER_INCOMPLETE_ATTACHMENT: 0x8CD6;\n readonly FRAMEBUFFER_INCOMPLETE_MISSING_ATTACHMENT: 0x8CD7;\n readonly FRAMEBUFFER_INCOMPLETE_DIMENSIONS: 0x8CD9;\n readonly FRAMEBUFFER_UNSUPPORTED: 0x8CDD;\n readonly FRAMEBUFFER_BINDING: 0x8CA6;\n readonly RENDERBUFFER_BINDING: 0x8CA7;\n readonly MAX_RENDERBUFFER_SIZE: 0x84E8;\n readonly INVALID_FRAMEBUFFER_OPERATION: 0x0506;\n readonly UNPACK_FLIP_Y_WEBGL: 0x9240;\n readonly UNPACK_PREMULTIPLY_ALPHA_WEBGL: 0x9241;\n readonly CONTEXT_LOST_WEBGL: 0x9242;\n readonly UNPACK_COLORSPACE_CONVERSION_WEBGL: 0x9243;\n readonly BROWSER_DEFAULT_WEBGL: 0x9244;\n}\n\ninterface WebGLRenderingContextOverloads {\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/bufferData) */\n bufferData(target: GLenum, size: GLsizeiptr, usage: GLenum): void;\n bufferData(target: GLenum, data: AllowSharedBufferSource | null, usage: GLenum): void;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/bufferSubData) */\n bufferSubData(target: GLenum, offset: GLintptr, data: AllowSharedBufferSource): void;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/compressedTexImage2D) */\n compressedTexImage2D(target: GLenum, level: GLint, internalformat: GLenum, width: GLsizei, height: GLsizei, border: GLint, data: ArrayBufferView<ArrayBufferLike>): void;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/compressedTexSubImage2D) */\n compressedTexSubImage2D(target: GLenum, level: GLint, xoffset: GLint, yoffset: GLint, width: GLsizei, height: GLsizei, format: GLenum, data: ArrayBufferView<ArrayBufferLike>): void;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/readPixels) */\n readPixels(x: GLint, y: GLint, width: GLsizei, height: GLsizei, format: GLenum, type: GLenum, pixels: ArrayBufferView<ArrayBufferLike> | null): void;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/texImage2D) */\n texImage2D(target: GLenum, level: GLint, internalformat: GLint, width: GLsizei, height: GLsizei, border: GLint, format: GLenum, type: GLenum, pixels: ArrayBufferView<ArrayBufferLike> | null): void;\n texImage2D(target: GLenum, level: GLint, internalformat: GLint, format: GLenum, type: GLenum, source: TexImageSource): void;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/texSubImage2D) */\n texSubImage2D(target: GLenum, level: GLint, xoffset: GLint, yoffset: GLint, width: GLsizei, height: GLsizei, format: GLenum, type: GLenum, pixels: ArrayBufferView<ArrayBufferLike> | null): void;\n texSubImage2D(target: GLenum, level: GLint, xoffset: GLint, yoffset: GLint, format: GLenum, type: GLenum, source: TexImageSource): void;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/uniform) */\n uniform1fv(location: WebGLUniformLocation | null, v: Float32List): void;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/uniform) */\n uniform1iv(location: WebGLUniformLocation | null, v: Int32List): void;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/uniform) */\n uniform2fv(location: WebGLUniformLocation | null, v: Float32List): void;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/uniform) */\n uniform2iv(location: WebGLUniformLocation | null, v: Int32List): void;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/uniform) */\n uniform3fv(location: WebGLUniformLocation | null, v: Float32List): void;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/uniform) */\n uniform3iv(location: WebGLUniformLocation | null, v: Int32List): void;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/uniform) */\n uniform4fv(location: WebGLUniformLocation | null, v: Float32List): void;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/uniform) */\n uniform4iv(location: WebGLUniformLocation | null, v: Int32List): void;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/uniformMatrix) */\n uniformMatrix2fv(location: WebGLUniformLocation | null, transpose: GLboolean, value: Float32List): void;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/uniformMatrix) */\n uniformMatrix3fv(location: WebGLUniformLocation | null, transpose: GLboolean, value: Float32List): void;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/uniformMatrix) */\n uniformMatrix4fv(location: WebGLUniformLocation | null, transpose: GLboolean, value: Float32List): void;\n}\n\n/**\n * The **`WebGLSampler`** interface is part of the WebGL 2 API and stores sampling parameters for WebGLTexture access inside of a shader.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLSampler)\n */\ninterface WebGLSampler {\n}\n\ndeclare var WebGLSampler: {\n prototype: WebGLSampler;\n new(): WebGLSampler;\n};\n\n/**\n * The **WebGLShader** is part of the WebGL API and can either be a vertex or a fragment shader.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLShader)\n */\ninterface WebGLShader {\n}\n\ndeclare var WebGLShader: {\n prototype: WebGLShader;\n new(): WebGLShader;\n};\n\n/**\n * The **WebGLShaderPrecisionFormat** interface is part of the WebGL API and represents the information returned by calling the WebGLRenderingContext.getShaderPrecisionFormat() method.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLShaderPrecisionFormat)\n */\ninterface WebGLShaderPrecisionFormat {\n /**\n * The read-only **`WebGLShaderPrecisionFormat.precision`** property returns the number of bits of precision that can be represented.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLShaderPrecisionFormat/precision)\n */\n readonly precision: GLint;\n /**\n * The read-only **`WebGLShaderPrecisionFormat.rangeMax`** property returns the base 2 log of the absolute value of the maximum value that can be represented.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLShaderPrecisionFormat/rangeMax)\n */\n readonly rangeMax: GLint;\n /**\n * The read-only **`WebGLShaderPrecisionFormat.rangeMin`** property returns the base 2 log of the absolute value of the minimum value that can be represented.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLShaderPrecisionFormat/rangeMin)\n */\n readonly rangeMin: GLint;\n}\n\ndeclare var WebGLShaderPrecisionFormat: {\n prototype: WebGLShaderPrecisionFormat;\n new(): WebGLShaderPrecisionFormat;\n};\n\n/**\n * The **`WebGLSync`** interface is part of the WebGL 2 API and is used to synchronize activities between the GPU and the application.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLSync)\n */\ninterface WebGLSync {\n}\n\ndeclare var WebGLSync: {\n prototype: WebGLSync;\n new(): WebGLSync;\n};\n\n/**\n * The **WebGLTexture** interface is part of the WebGL API and represents an opaque texture object providing storage and state for texturing operations.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLTexture)\n */\ninterface WebGLTexture {\n}\n\ndeclare var WebGLTexture: {\n prototype: WebGLTexture;\n new(): WebGLTexture;\n};\n\n/**\n * The **`WebGLTransformFeedback`** interface is part of the WebGL 2 API and enables transform feedback, which is the process of capturing primitives generated by vertex processing.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLTransformFeedback)\n */\ninterface WebGLTransformFeedback {\n}\n\ndeclare var WebGLTransformFeedback: {\n prototype: WebGLTransformFeedback;\n new(): WebGLTransformFeedback;\n};\n\n/**\n * The **WebGLUniformLocation** interface is part of the WebGL API and represents the location of a uniform variable in a shader program.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLUniformLocation)\n */\ninterface WebGLUniformLocation {\n}\n\ndeclare var WebGLUniformLocation: {\n prototype: WebGLUniformLocation;\n new(): WebGLUniformLocation;\n};\n\n/**\n * The **`WebGLVertexArrayObject`** interface is part of the WebGL 2 API, represents vertex array objects (VAOs) pointing to vertex array data, and provides names for different sets of vertex data.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLVertexArrayObject)\n */\ninterface WebGLVertexArrayObject {\n}\n\ndeclare var WebGLVertexArrayObject: {\n prototype: WebGLVertexArrayObject;\n new(): WebGLVertexArrayObject;\n};\n\n/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLVertexArrayObject) */\ninterface WebGLVertexArrayObjectOES {\n}\n\ninterface WebSocketEventMap {\n "close": CloseEvent;\n "error": Event;\n "message": MessageEvent;\n "open": Event;\n}\n\n/**\n * The `WebSocket` object provides the API for creating and managing a WebSocket connection to a server, as well as for sending and receiving data on the connection.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebSocket)\n */\ninterface WebSocket extends EventTarget {\n /**\n * The **`WebSocket.binaryType`** property controls the type of binary data being received over the WebSocket connection.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebSocket/binaryType)\n */\n binaryType: BinaryType;\n /**\n * The **`WebSocket.bufferedAmount`** read-only property returns the number of bytes of data that have been queued using calls to `send()` but not yet transmitted to the network.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebSocket/bufferedAmount)\n */\n readonly bufferedAmount: number;\n /**\n * The **`WebSocket.extensions`** read-only property returns the extensions selected by the server.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebSocket/extensions)\n */\n readonly extensions: string;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebSocket/close_event) */\n onclose: ((this: WebSocket, ev: CloseEvent) => any) | null;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebSocket/error_event) */\n onerror: ((this: WebSocket, ev: Event) => any) | null;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebSocket/message_event) */\n onmessage: ((this: WebSocket, ev: MessageEvent) => any) | null;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebSocket/open_event) */\n onopen: ((this: WebSocket, ev: Event) => any) | null;\n /**\n * The **`WebSocket.protocol`** read-only property returns the name of the sub-protocol the server selected; this will be one of the strings specified in the `protocols` parameter when creating the WebSocket object, or the empty string if no connection is established.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebSocket/protocol)\n */\n readonly protocol: string;\n /**\n * The **`WebSocket.readyState`** read-only property returns the current state of the WebSocket connection.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebSocket/readyState)\n */\n readonly readyState: number;\n /**\n * The **`WebSocket.url`** read-only property returns the absolute URL of the WebSocket as resolved by the constructor.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebSocket/url)\n */\n readonly url: string;\n /**\n * The **`WebSocket.close()`** method closes the already `CLOSED`, this method does nothing.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebSocket/close)\n */\n close(code?: number, reason?: string): void;\n /**\n * The **`WebSocket.send()`** method enqueues the specified data to be transmitted to the server over the WebSocket connection, increasing the value of `bufferedAmount` by the number of bytes needed to contain the data.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebSocket/send)\n */\n send(data: string | ArrayBufferLike | Blob | ArrayBufferView): void;\n readonly CONNECTING: 0;\n readonly OPEN: 1;\n readonly CLOSING: 2;\n readonly CLOSED: 3;\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 | URL, protocols?: string | string[]): WebSocket;\n readonly CONNECTING: 0;\n readonly OPEN: 1;\n readonly CLOSING: 2;\n readonly CLOSED: 3;\n};\n\n/**\n * The **`WebTransport`** interface of the WebTransport API provides functionality to enable a user agent to connect to an HTTP/3 server, initiate reliable and unreliable transport in either or both directions, and close the connection once it is no longer needed.\n * Available only in secure contexts.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransport)\n */\ninterface WebTransport {\n /**\n * The **`closed`** read-only property of the WebTransport interface returns a promise that resolves when the transport is closed.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransport/closed)\n */\n readonly closed: Promise<WebTransportCloseInfo>;\n /**\n * The **`datagrams`** read-only property of the WebTransport interface returns a WebTransportDatagramDuplexStream instance that can be used to send and receive datagrams — unreliable data transmission.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransport/datagrams)\n */\n readonly datagrams: WebTransportDatagramDuplexStream;\n /**\n * The **`incomingBidirectionalStreams`** read-only property of the WebTransport interface represents one or more bidirectional streams opened by the server.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransport/incomingBidirectionalStreams)\n */\n readonly incomingBidirectionalStreams: ReadableStream;\n /**\n * The **`incomingUnidirectionalStreams`** read-only property of the WebTransport interface represents one or more unidirectional streams opened by the server.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransport/incomingUnidirectionalStreams)\n */\n readonly incomingUnidirectionalStreams: ReadableStream;\n /**\n * The **`ready`** read-only property of the WebTransport interface returns a promise that resolves when the transport is ready to use.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransport/ready)\n */\n readonly ready: Promise<void>;\n /**\n * The **`close()`** method of the WebTransport interface closes an ongoing WebTransport session.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransport/close)\n */\n close(closeInfo?: WebTransportCloseInfo): void;\n /**\n * The **`createBidirectionalStream()`** method of the WebTransport interface asynchronously opens and returns a bidirectional stream.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransport/createBidirectionalStream)\n */\n createBidirectionalStream(options?: WebTransportSendStreamOptions): Promise<WebTransportBidirectionalStream>;\n /**\n * The **`createUnidirectionalStream()`** method of the WebTransport interface asynchronously opens a unidirectional stream.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransport/createUnidirectionalStream)\n */\n createUnidirectionalStream(options?: WebTransportSendStreamOptions): Promise<WritableStream>;\n}\n\ndeclare var WebTransport: {\n prototype: WebTransport;\n new(url: string | URL, options?: WebTransportOptions): WebTransport;\n};\n\n/**\n * The **`WebTransportBidirectionalStream`** interface of the WebTransport API represents a bidirectional stream created by a server or a client that can be used for reliable transport.\n * Available only in secure contexts.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransportBidirectionalStream)\n */\ninterface WebTransportBidirectionalStream {\n /**\n * The **`readable`** read-only property of the WebTransportBidirectionalStream interface returns a WebTransportReceiveStream instance that can be used to reliably read incoming data.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransportBidirectionalStream/readable)\n */\n readonly readable: ReadableStream;\n /**\n * The **`writable`** read-only property of the WebTransportBidirectionalStream interface returns a WebTransportSendStream instance that can be used to write outgoing data.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransportBidirectionalStream/writable)\n */\n readonly writable: WritableStream;\n}\n\ndeclare var WebTransportBidirectionalStream: {\n prototype: WebTransportBidirectionalStream;\n new(): WebTransportBidirectionalStream;\n};\n\n/**\n * The **`WebTransportDatagramDuplexStream`** interface of the WebTransport API represents a duplex stream that can be used for unreliable transport of datagrams between client and server.\n * Available only in secure contexts.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransportDatagramDuplexStream)\n */\ninterface WebTransportDatagramDuplexStream {\n /**\n * The **`incomingHighWaterMark`** property of the WebTransportDatagramDuplexStream interface gets or sets the high water mark for incoming chunks of data — this is the maximum size, in chunks, that the incoming ReadableStream\'s internal queue can reach before it is considered full.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransportDatagramDuplexStream/incomingHighWaterMark)\n */\n incomingHighWaterMark: number;\n /**\n * The **`incomingMaxAge`** property of the WebTransportDatagramDuplexStream interface gets or sets the maximum age for incoming datagrams, in milliseconds.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransportDatagramDuplexStream/incomingMaxAge)\n */\n incomingMaxAge: number | null;\n /**\n * The **`maxDatagramSize`** read-only property of the WebTransportDatagramDuplexStream interface returns the maximum allowable size of outgoing datagrams, in bytes, that can be written to WebTransportDatagramDuplexStream.writable.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransportDatagramDuplexStream/maxDatagramSize)\n */\n readonly maxDatagramSize: number;\n /**\n * The **`outgoingHighWaterMark`** property of the WebTransportDatagramDuplexStream interface gets or sets the high water mark for outgoing chunks of data — this is the maximum size, in chunks, that the outgoing WritableStream\'s internal queue can reach before it is considered full.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransportDatagramDuplexStream/outgoingHighWaterMark)\n */\n outgoingHighWaterMark: number;\n /**\n * The **`outgoingMaxAge`** property of the WebTransportDatagramDuplexStream interface gets or sets the maximum age for outgoing datagrams, in milliseconds.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransportDatagramDuplexStream/outgoingMaxAge)\n */\n outgoingMaxAge: number | null;\n /**\n * The **`readable`** read-only property of the WebTransportDatagramDuplexStream interface returns a ReadableStream instance that can be used to unreliably read incoming datagrams from the stream.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransportDatagramDuplexStream/readable)\n */\n readonly readable: ReadableStream;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransportDatagramDuplexStream/writable) */\n readonly writable: WritableStream;\n}\n\ndeclare var WebTransportDatagramDuplexStream: {\n prototype: WebTransportDatagramDuplexStream;\n new(): WebTransportDatagramDuplexStream;\n};\n\n/**\n * The **`WebTransportError`** interface of the WebTransport API represents an error related to the API, which can arise from server errors, network connection problems, or client-initiated abort operations (for example, arising from a WritableStream.abort() call).\n * Available only in secure contexts.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransportError)\n */\ninterface WebTransportError extends DOMException {\n /**\n * The **`source`** read-only property of the WebTransportError interface returns an enumerated value indicating the source of the error.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransportError/source)\n */\n readonly source: WebTransportErrorSource;\n /**\n * The **`streamErrorCode`** read-only property of the WebTransportError interface returns a number in the range 0-255 indicating the application protocol error code for this error, or `null` if one is not available.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransportError/streamErrorCode)\n */\n readonly streamErrorCode: number | null;\n}\n\ndeclare var WebTransportError: {\n prototype: WebTransportError;\n new(message?: string, options?: WebTransportErrorOptions): WebTransportError;\n};\n\n/**\n * The **`WheelEvent`** interface represents events that occur due to the user moving a mouse wheel or similar input device.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WheelEvent)\n */\ninterface WheelEvent extends MouseEvent {\n /**\n * The **`WheelEvent.deltaMode`** read-only property returns an `unsigned long` representing the unit of the delta values scroll amount.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WheelEvent/deltaMode)\n */\n readonly deltaMode: number;\n /**\n * The **`WheelEvent.deltaX`** read-only property is a `double` representing the horizontal scroll amount in the You must check the `deltaMode` property to determine the unit of the `deltaX` value.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WheelEvent/deltaX)\n */\n readonly deltaX: number;\n /**\n * The **`WheelEvent.deltaY`** read-only property is a `double` representing the vertical scroll amount in the You must check the `deltaMode` property to determine the unit of the `deltaY` value.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WheelEvent/deltaY)\n */\n readonly deltaY: number;\n /**\n * The **`WheelEvent.deltaZ`** read-only property is a `double` representing the scroll amount along the z-axis, in the You must check the `deltaMode` property to determine the unit of the `deltaZ` value.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WheelEvent/deltaZ)\n */\n readonly deltaZ: number;\n readonly DOM_DELTA_PIXEL: 0x00;\n readonly DOM_DELTA_LINE: 0x01;\n readonly DOM_DELTA_PAGE: 0x02;\n}\n\ndeclare var WheelEvent: {\n prototype: WheelEvent;\n new(type: string, eventInitDict?: WheelEventInit): WheelEvent;\n readonly DOM_DELTA_PIXEL: 0x00;\n readonly DOM_DELTA_LINE: 0x01;\n readonly DOM_DELTA_PAGE: 0x02;\n};\n\ninterface WindowEventMap extends GlobalEventHandlersEventMap, WindowEventHandlersEventMap {\n "DOMContentLoaded": Event;\n "devicemotion": DeviceMotionEvent;\n "deviceorientation": DeviceOrientationEvent;\n "deviceorientationabsolute": DeviceOrientationEvent;\n "gamepadconnected": GamepadEvent;\n "gamepaddisconnected": GamepadEvent;\n "orientationchange": Event;\n}\n\n/**\n * The **`Window`** interface represents a window containing a DOM document; the `document` property points to the DOM document loaded in that window.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window)\n */\ninterface Window extends EventTarget, AnimationFrameProvider, GlobalEventHandlers, WindowEventHandlers, WindowLocalStorage, WindowOrWorkerGlobalScope, WindowSessionStorage {\n /**\n * @deprecated This is a legacy alias of `navigator`.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/navigator)\n */\n readonly clientInformation: Navigator;\n /**\n * The **`Window.closed`** read-only property indicates whether the referenced window is closed or not.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/closed)\n */\n readonly closed: boolean;\n /**\n * The **`cookieStore`** read-only property of the Window interface returns a reference to the CookieStore object for the current document context.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/cookieStore)\n */\n readonly cookieStore: CookieStore;\n /**\n * The **`customElements`** read-only property of the Window interface returns a reference to the CustomElementRegistry object, which can be used to register new custom elements and get information about previously registered custom elements.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/customElements)\n */\n readonly customElements: CustomElementRegistry;\n /**\n * The **`devicePixelRatio`** of Window interface returns the ratio of the resolution in _physical pixels_ to the resolution in _CSS pixels_ for the current display device.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/devicePixelRatio)\n */\n readonly devicePixelRatio: number;\n /**\n * **`window.document`** returns a reference to the document contained in the window.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/document)\n */\n readonly document: Document;\n /**\n * The read-only Window property **`event`** returns the Event which is currently being handled by the site\'s code.\n * @deprecated\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/event)\n */\n readonly event: Event | undefined;\n /**\n * The `external` property of the Window API returns an instance of the `External` interface, which was intended to contain functions related to adding external search providers to the browser.\n * @deprecated\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/external)\n */\n readonly external: External;\n /**\n * The **`Window.frameElement`** property returns the element (such as iframe or object) in which the window is embedded.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/frameElement)\n */\n readonly frameElement: Element | null;\n /**\n * Returns the window itself, which is an array-like object, listing the direct sub-frames of the current window.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/frames)\n */\n readonly frames: WindowProxy;\n /**\n * The `Window.history` read-only property returns a reference to the History object, which provides an interface for manipulating the browser _session history_ (pages visited in the tab or frame that the current page is loaded in).\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/history)\n */\n readonly history: History;\n /**\n * The read-only **`innerHeight`** property of the including the height of the horizontal scroll bar, if present.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/innerHeight)\n */\n readonly innerHeight: number;\n /**\n * The read-only Window property **`innerWidth`** returns the interior width of the window in pixels (that is, the width of the window\'s layout viewport).\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/innerWidth)\n */\n readonly innerWidth: number;\n /**\n * Returns the number of frames (either frame or A number.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/length)\n */\n readonly length: number;\n /**\n * The **`Window.location`** read-only property returns a Location object with information about the current location of the document.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/location)\n */\n get location(): Location;\n set location(href: string);\n /**\n * Returns the `locationbar` object.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/locationbar)\n */\n readonly locationbar: BarProp;\n /**\n * Returns the `menubar` object.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/menubar)\n */\n readonly menubar: BarProp;\n /**\n * The `Window.name` property gets/sets the name of the window\'s browsing context.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/name)\n */\n name: string;\n /**\n * The **`Window.navigator`** read-only property returns a reference to the Navigator object, which has methods and properties about the application running the script.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/navigator)\n */\n readonly navigator: Navigator;\n /**\n * Available only in secure contexts.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/devicemotion_event)\n */\n ondevicemotion: ((this: Window, ev: DeviceMotionEvent) => any) | null;\n /**\n * Available only in secure contexts.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/deviceorientation_event)\n */\n ondeviceorientation: ((this: Window, ev: DeviceOrientationEvent) => any) | null;\n /**\n * Available only in secure contexts.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/deviceorientationabsolute_event)\n */\n ondeviceorientationabsolute: ((this: Window, ev: DeviceOrientationEvent) => any) | null;\n /**\n * @deprecated\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/orientationchange_event)\n */\n onorientationchange: ((this: Window, ev: Event) => any) | null;\n /**\n * The Window interface\'s **`opener`** property returns a reference to the window that opened the window, either with Window.open, or by navigating a link with a `target` attribute.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/opener)\n */\n opener: any;\n /**\n * Returns the orientation in degrees (in 90-degree increments) of the viewport relative to the device\'s natural orientation.\n * @deprecated\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/orientation)\n */\n readonly orientation: number;\n /**\n * The **`originAgentCluster`** read-only property of the Window interface returns `true` if this window belongs to an _origin-keyed agent cluster_: this means that the operating system has provided dedicated resources (for example an operating system process) to this window\'s origin that are not shared with windows from other origins.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/originAgentCluster)\n */\n readonly originAgentCluster: boolean;\n /**\n * The **`Window.outerHeight`** read-only property returns the height in pixels of the whole browser window, including any sidebar, window chrome, and window-resizing borders/handles.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/outerHeight)\n */\n readonly outerHeight: number;\n /**\n * **`Window.outerWidth`** read-only property returns the width of the outside of the browser window.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/outerWidth)\n */\n readonly outerWidth: number;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/scrollX) */\n readonly pageXOffset: number;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/scrollY) */\n readonly pageYOffset: number;\n /**\n * The **`Window.parent`** property is a reference to the parent of the current window or subframe.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/parent)\n */\n readonly parent: WindowProxy;\n /**\n * Returns the `personalbar` object.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/personalbar)\n */\n readonly personalbar: BarProp;\n /**\n * The Window property **`screen`** returns a reference to the screen object associated with the window.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/screen)\n */\n readonly screen: Screen;\n /**\n * The **`Window.screenLeft`** read-only property returns the horizontal distance, in CSS pixels, from the left border of the user\'s browser viewport to the left side of the screen.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/screenLeft)\n */\n readonly screenLeft: number;\n /**\n * The **`Window.screenTop`** read-only property returns the vertical distance, in CSS pixels, from the top border of the user\'s browser viewport to the top side of the screen.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/screenTop)\n */\n readonly screenTop: number;\n /**\n * The **`Window.screenX`** read-only property returns the horizontal distance, in CSS pixels, of the left border of the user\'s browser viewport to the left side of the screen.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/screenX)\n */\n readonly screenX: number;\n /**\n * The **`Window.screenY`** read-only property returns the vertical distance, in CSS pixels, of the top border of the user\'s browser viewport to the top edge of the screen.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/screenY)\n */\n readonly screenY: number;\n /**\n * The read-only **`scrollX`** property of the Window interface returns the number of pixels by which the document is currently scrolled horizontally.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/scrollX)\n */\n readonly scrollX: number;\n /**\n * The read-only **`scrollY`** property of the Window interface returns the number of pixels by which the document is currently scrolled vertically.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/scrollY)\n */\n readonly scrollY: number;\n /**\n * Returns the `scrollbars` object.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/scrollbars)\n */\n readonly scrollbars: BarProp;\n /**\n * The **`Window.self`** read-only property returns the window itself, as a WindowProxy.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/self)\n */\n readonly self: Window & typeof globalThis;\n /**\n * The `speechSynthesis` read-only property of the Window object returns a SpeechSynthesis object, which is the entry point into using Web Speech API speech synthesis functionality.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/speechSynthesis)\n */\n readonly speechSynthesis: SpeechSynthesis;\n /**\n * The **`status`** property of the bar at the bottom of the browser window.\n * @deprecated\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/status)\n */\n status: string;\n /**\n * Returns the `statusbar` object.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/statusbar)\n */\n readonly statusbar: BarProp;\n /**\n * Returns the `toolbar` object.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/toolbar)\n */\n readonly toolbar: BarProp;\n /**\n * Returns a reference to the topmost window in the window hierarchy.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/top)\n */\n readonly top: WindowProxy | null;\n /**\n * The **`visualViewport`** read-only property of the Window interface returns a VisualViewport object representing the visual viewport for a given window, or `null` if current document is not fully active.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/visualViewport)\n */\n readonly visualViewport: VisualViewport | null;\n /**\n * The **`window`** property of a Window object points to the window object itself.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/window)\n */\n readonly window: Window & typeof globalThis;\n /**\n * `window.alert()` instructs the browser to display a dialog with an optional message, and to wait until the user dismisses the dialog.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/alert)\n */\n alert(message?: any): void;\n /**\n * The **`Window.blur()`** method does nothing.\n * @deprecated\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/blur)\n */\n blur(): void;\n /**\n * The **`window.cancelIdleCallback()`** method cancels a callback previously scheduled with window.requestIdleCallback().\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/cancelIdleCallback)\n */\n cancelIdleCallback(handle: number): void;\n /**\n * The **`Window.captureEvents()`** method does nothing.\n * @deprecated\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/captureEvents)\n */\n captureEvents(): void;\n /**\n * The **`Window.close()`** method closes the current window, or the window on which it was called.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/close)\n */\n close(): void;\n /**\n * `window.confirm()` instructs the browser to display a dialog with an optional message, and to wait until the user either confirms or cancels the dialog.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/confirm)\n */\n confirm(message?: string): boolean;\n /**\n * Makes a request to bring the window to the front.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/focus)\n */\n focus(): void;\n /**\n * The **`Window.getComputedStyle()`** method returns an object containing the values of all CSS properties of an element, after applying active stylesheets and resolving any basic computation those values may contain.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/getComputedStyle)\n */\n getComputedStyle(elt: Element, pseudoElt?: string | null): CSSStyleDeclaration;\n /**\n * The **`getSelection()`** method of the Window interface returns the Selection object associated with the window\'s document, representing the range of text selected by the user or the current position of the caret.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/getSelection)\n */\n getSelection(): Selection | null;\n /**\n * The Window interface\'s **`matchMedia()`** method returns a new MediaQueryList object that can then be used to determine if the document matches the media query string, as well as to monitor the document to detect when it matches (or stops matching) that media query.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/matchMedia)\n */\n matchMedia(query: string): MediaQueryList;\n /**\n * The **`moveBy()`** method of the Window interface moves the current window by a specified amount.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/moveBy)\n */\n moveBy(x: number, y: number): void;\n /**\n * The **`moveTo()`** method of the Window interface moves the current window to the specified coordinates.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/moveTo)\n */\n moveTo(x: number, y: number): void;\n /**\n * The **`open()`** method of the `Window` interface loads a specified resource into a new or existing browsing context (that is, a tab, a window, or an iframe) under a specified name.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/open)\n */\n open(url?: string | URL, target?: string, features?: string): WindowProxy | null;\n /**\n * The **`window.postMessage()`** method safely enables cross-origin communication between Window objects; _e.g.,_ between a page and a pop-up that it spawned, or between a page and an iframe embedded within it.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/postMessage)\n */\n postMessage(message: any, targetOrigin: string, transfer?: Transferable[]): void;\n postMessage(message: any, options?: WindowPostMessageOptions): void;\n /**\n * Opens the print dialog to print the current document.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/print)\n */\n print(): void;\n /**\n * `window.prompt()` instructs the browser to display a dialog with an optional message prompting the user to input some text, and to wait until the user either submits the text or cancels the dialog.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/prompt)\n */\n prompt(message?: string, _default?: string): string | null;\n /**\n * Releases the window from trapping events of a specific type.\n * @deprecated\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/releaseEvents)\n */\n releaseEvents(): void;\n /**\n * The **`window.requestIdleCallback()`** method queues a function to be called during a browser\'s idle periods.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/requestIdleCallback)\n */\n requestIdleCallback(callback: IdleRequestCallback, options?: IdleRequestOptions): number;\n /**\n * The **`Window.resizeBy()`** method resizes the current window by a specified amount.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/resizeBy)\n */\n resizeBy(x: number, y: number): void;\n /**\n * The **`Window.resizeTo()`** method dynamically resizes the window.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/resizeTo)\n */\n resizeTo(width: number, height: number): void;\n /**\n * The **`Window.scroll()`** method scrolls the window to a particular place in the document.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/scroll)\n */\n scroll(options?: ScrollToOptions): void;\n scroll(x: number, y: number): void;\n /**\n * The **`Window.scrollBy()`** method scrolls the document in the window by the given amount.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/scrollBy)\n */\n scrollBy(options?: ScrollToOptions): void;\n scrollBy(x: number, y: number): void;\n /**\n * **`Window.scrollTo()`** scrolls to a particular set of coordinates in the document.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/scrollTo)\n */\n scrollTo(options?: ScrollToOptions): void;\n scrollTo(x: number, y: number): void;\n /**\n * The **`window.stop()`** stops further resource loading in the current browsing context, equivalent to the stop button in the browser.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/stop)\n */\n stop(): void;\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 WindowEventHandlersEventMap {\n "afterprint": Event;\n "beforeprint": Event;\n "beforeunload": BeforeUnloadEvent;\n "gamepadconnected": GamepadEvent;\n "gamepaddisconnected": GamepadEvent;\n "hashchange": HashChangeEvent;\n "languagechange": Event;\n "message": MessageEvent;\n "messageerror": MessageEvent;\n "offline": Event;\n "online": Event;\n "pagehide": PageTransitionEvent;\n "pagereveal": PageRevealEvent;\n "pageshow": PageTransitionEvent;\n "pageswap": PageSwapEvent;\n "popstate": PopStateEvent;\n "rejectionhandled": PromiseRejectionEvent;\n "storage": StorageEvent;\n "unhandledrejection": PromiseRejectionEvent;\n "unload": Event;\n}\n\ninterface WindowEventHandlers {\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/afterprint_event) */\n onafterprint: ((this: WindowEventHandlers, ev: Event) => any) | null;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/beforeprint_event) */\n onbeforeprint: ((this: WindowEventHandlers, ev: Event) => any) | null;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/beforeunload_event) */\n onbeforeunload: ((this: WindowEventHandlers, ev: BeforeUnloadEvent) => any) | null;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/gamepadconnected_event) */\n ongamepadconnected: ((this: WindowEventHandlers, ev: GamepadEvent) => any) | null;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/gamepaddisconnected_event) */\n ongamepaddisconnected: ((this: WindowEventHandlers, ev: GamepadEvent) => any) | null;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/hashchange_event) */\n onhashchange: ((this: WindowEventHandlers, ev: HashChangeEvent) => any) | null;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/languagechange_event) */\n onlanguagechange: ((this: WindowEventHandlers, ev: Event) => any) | null;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/message_event) */\n onmessage: ((this: WindowEventHandlers, ev: MessageEvent) => any) | null;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/messageerror_event) */\n onmessageerror: ((this: WindowEventHandlers, ev: MessageEvent) => any) | null;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/offline_event) */\n onoffline: ((this: WindowEventHandlers, ev: Event) => any) | null;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/online_event) */\n ononline: ((this: WindowEventHandlers, ev: Event) => any) | null;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/pagehide_event) */\n onpagehide: ((this: WindowEventHandlers, ev: PageTransitionEvent) => any) | null;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/pagereveal_event) */\n onpagereveal: ((this: WindowEventHandlers, ev: PageRevealEvent) => any) | null;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/pageshow_event) */\n onpageshow: ((this: WindowEventHandlers, ev: PageTransitionEvent) => any) | null;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/pageswap_event) */\n onpageswap: ((this: WindowEventHandlers, ev: PageSwapEvent) => any) | null;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/popstate_event) */\n onpopstate: ((this: WindowEventHandlers, ev: PopStateEvent) => any) | null;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/rejectionhandled_event) */\n onrejectionhandled: ((this: WindowEventHandlers, ev: PromiseRejectionEvent) => any) | null;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/storage_event) */\n onstorage: ((this: WindowEventHandlers, ev: StorageEvent) => any) | null;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/unhandledrejection_event) */\n onunhandledrejection: ((this: WindowEventHandlers, ev: PromiseRejectionEvent) => any) | null;\n /**\n * @deprecated\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/unload_event)\n */\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 /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/localStorage) */\n readonly localStorage: Storage;\n}\n\ninterface WindowOrWorkerGlobalScope {\n /**\n * Available only in secure contexts.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/caches)\n */\n readonly caches: CacheStorage;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/crossOriginIsolated) */\n readonly crossOriginIsolated: boolean;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/crypto) */\n readonly crypto: Crypto;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/indexedDB) */\n readonly indexedDB: IDBFactory;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/isSecureContext) */\n readonly isSecureContext: boolean;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/origin) */\n readonly origin: string;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/performance) */\n readonly performance: Performance;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/atob) */\n atob(data: string): string;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/btoa) */\n btoa(data: string): string;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/clearInterval) */\n clearInterval(id: number | undefined): void;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/clearTimeout) */\n clearTimeout(id: number | undefined): void;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/createImageBitmap) */\n createImageBitmap(image: ImageBitmapSource, options?: ImageBitmapOptions): Promise<ImageBitmap>;\n createImageBitmap(image: ImageBitmapSource, sx: number, sy: number, sw: number, sh: number, options?: ImageBitmapOptions): Promise<ImageBitmap>;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/fetch) */\n fetch(input: RequestInfo | URL, init?: RequestInit): Promise<Response>;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/queueMicrotask) */\n queueMicrotask(callback: VoidFunction): void;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/reportError) */\n reportError(e: any): void;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/setInterval) */\n setInterval(handler: TimerHandler, timeout?: number, ...arguments: any[]): number;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/setTimeout) */\n setTimeout(handler: TimerHandler, timeout?: number, ...arguments: any[]): number;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/structuredClone) */\n structuredClone<T = any>(value: T, options?: StructuredSerializeOptions): T;\n}\n\ninterface WindowSessionStorage {\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/sessionStorage) */\n readonly sessionStorage: Storage;\n}\n\ninterface WorkerEventMap extends AbstractWorkerEventMap, MessageEventTargetEventMap {\n}\n\n/**\n * The **`Worker`** interface of the Web Workers API represents a background task that can be created via script, which can send messages back to its creator.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Worker)\n */\ninterface Worker extends EventTarget, AbstractWorker, MessageEventTarget<Worker> {\n /**\n * The **`postMessage()`** method of the Worker interface sends a message to the worker.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Worker/postMessage)\n */\n postMessage(message: any, transfer: Transferable[]): void;\n postMessage(message: any, options?: StructuredSerializeOptions): void;\n /**\n * The **`terminate()`** method of the Worker interface immediately terminates the Worker.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Worker/terminate)\n */\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(scriptURL: string | URL, options?: WorkerOptions): Worker;\n};\n\n/**\n * The **`Worklet`** interface is a lightweight version of Web Workers and gives developers access to low-level parts of the rendering pipeline.\n * Available only in secure contexts.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Worklet)\n */\ninterface Worklet {\n /**\n * The **`addModule()`** method of the adds it to the current `Worklet`.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Worklet/addModule)\n */\n addModule(moduleURL: string | URL, options?: WorkletOptions): Promise<void>;\n}\n\ndeclare var Worklet: {\n prototype: Worklet;\n new(): Worklet;\n};\n\n/**\n * The **`WritableStream`** interface of the Streams API provides a standard abstraction for writing streaming data to a destination, known as a sink.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WritableStream)\n */\ninterface WritableStream<W = any> {\n /**\n * The **`locked`** read-only property of the WritableStream interface returns a boolean indicating whether the `WritableStream` is locked to a writer.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WritableStream/locked)\n */\n readonly locked: boolean;\n /**\n * The **`abort()`** method of the WritableStream interface aborts the stream, signaling that the producer can no longer successfully write to the stream and it is to be immediately moved to an error state, with any queued writes discarded.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WritableStream/abort)\n */\n abort(reason?: any): Promise<void>;\n /**\n * The **`close()`** method of the WritableStream interface closes the associated stream.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WritableStream/close)\n */\n close(): Promise<void>;\n /**\n * The **`getWriter()`** method of the WritableStream interface returns a new instance of WritableStreamDefaultWriter and locks the stream to that instance.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WritableStream/getWriter)\n */\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/**\n * The **`WritableStreamDefaultController`** interface of the Streams API represents a controller allowing control of a WritableStream\'s state.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WritableStreamDefaultController)\n */\ninterface WritableStreamDefaultController {\n /**\n * The read-only **`signal`** property of the WritableStreamDefaultController interface returns the AbortSignal associated with the controller.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WritableStreamDefaultController/signal)\n */\n readonly signal: AbortSignal;\n /**\n * The **`error()`** method of the with the associated stream to error.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WritableStreamDefaultController/error)\n */\n error(e?: any): void;\n}\n\ndeclare var WritableStreamDefaultController: {\n prototype: WritableStreamDefaultController;\n new(): WritableStreamDefaultController;\n};\n\n/**\n * The **`WritableStreamDefaultWriter`** interface of the Streams API 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.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WritableStreamDefaultWriter)\n */\ninterface WritableStreamDefaultWriter<W = any> {\n /**\n * The **`closed`** read-only property of the the stream errors or the writer\'s lock is released.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WritableStreamDefaultWriter/closed)\n */\n readonly closed: Promise<void>;\n /**\n * The **`desiredSize`** read-only property of the to fill the stream\'s internal queue.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WritableStreamDefaultWriter/desiredSize)\n */\n readonly desiredSize: number | null;\n /**\n * The **`ready`** read-only property of the that resolves when the desired size of the stream\'s internal queue transitions from non-positive to positive, signaling that it is no longer applying backpressure.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WritableStreamDefaultWriter/ready)\n */\n readonly ready: Promise<void>;\n /**\n * The **`abort()`** method of the the producer can no longer successfully write to the stream and it is to be immediately moved to an error state, with any queued writes discarded.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WritableStreamDefaultWriter/abort)\n */\n abort(reason?: any): Promise<void>;\n /**\n * The **`close()`** method of the stream.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WritableStreamDefaultWriter/close)\n */\n close(): Promise<void>;\n /**\n * The **`releaseLock()`** method of the corresponding stream.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WritableStreamDefaultWriter/releaseLock)\n */\n releaseLock(): void;\n /**\n * The **`write()`** method of the operation.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WritableStreamDefaultWriter/write)\n */\n write(chunk?: W): Promise<void>;\n}\n\ndeclare var WritableStreamDefaultWriter: {\n prototype: WritableStreamDefaultWriter;\n new<W = any>(stream: WritableStream<W>): WritableStreamDefaultWriter<W>;\n};\n\n/**\n * The **XMLDocument** interface represents an XML document.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/XMLDocument)\n */\ninterface XMLDocument extends Document {\n addEventListener<K extends keyof DocumentEventMap>(type: K, listener: (this: XMLDocument, ev: DocumentEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n removeEventListener<K extends keyof DocumentEventMap>(type: K, listener: (this: XMLDocument, ev: DocumentEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\ndeclare var XMLDocument: {\n prototype: XMLDocument;\n new(): XMLDocument;\n};\n\ninterface XMLHttpRequestEventMap extends XMLHttpRequestEventTargetEventMap {\n "readystatechange": Event;\n}\n\n/**\n * `XMLHttpRequest` (XHR) objects are used to interact with servers.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/XMLHttpRequest)\n */\ninterface XMLHttpRequest extends XMLHttpRequestEventTarget {\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/XMLHttpRequest/readystatechange_event) */\n onreadystatechange: ((this: XMLHttpRequest, ev: Event) => any) | null;\n /**\n * The **XMLHttpRequest.readyState** property returns the state an XMLHttpRequest client is in.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/XMLHttpRequest/readyState)\n */\n readonly readyState: number;\n /**\n * The XMLHttpRequest **`response`** property returns the response\'s body content as an ArrayBuffer, a Blob, a Document, a JavaScript Object, or a string, depending on the value of the request\'s XMLHttpRequest.responseType property.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/XMLHttpRequest/response)\n */\n readonly response: any;\n /**\n * The read-only XMLHttpRequest property **`responseText`** returns the text received from a server following a request being sent.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/XMLHttpRequest/responseText)\n */\n readonly responseText: string;\n /**\n * The XMLHttpRequest property **`responseType`** is an enumerated string value specifying the type of data contained in the response.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/XMLHttpRequest/responseType)\n */\n responseType: XMLHttpRequestResponseType;\n /**\n * The read-only **`XMLHttpRequest.responseURL`** property returns the serialized URL of the response or the empty string if the URL is `null`.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/XMLHttpRequest/responseURL)\n */\n readonly responseURL: string;\n /**\n * The **`XMLHttpRequest.responseXML`** read-only property returns a Document containing the HTML or XML retrieved by the request; or `null` if the request was unsuccessful, has not yet been sent, or if the data can\'t be parsed as XML or HTML.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/XMLHttpRequest/responseXML)\n */\n readonly responseXML: Document | null;\n /**\n * The read-only **`XMLHttpRequest.status`** property returns the numerical HTTP status code of the `XMLHttpRequest`\'s response.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/XMLHttpRequest/status)\n */\n readonly status: number;\n /**\n * The read-only **`XMLHttpRequest.statusText`** property returns a string containing the response\'s status message as returned by the HTTP server.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/XMLHttpRequest/statusText)\n */\n readonly statusText: string;\n /**\n * The **`XMLHttpRequest.timeout`** property is an `unsigned long` representing the number of milliseconds a request can take before automatically being terminated.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/XMLHttpRequest/timeout)\n */\n timeout: number;\n /**\n * The XMLHttpRequest `upload` property returns an XMLHttpRequestUpload object that can be observed to monitor an upload\'s progress.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/XMLHttpRequest/upload)\n */\n readonly upload: XMLHttpRequestUpload;\n /**\n * The **`XMLHttpRequest.withCredentials`** property is a boolean value that indicates whether or not cross-site `Access-Control` requests should be made using credentials such as cookies, authentication headers or TLS client certificates.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/XMLHttpRequest/withCredentials)\n */\n withCredentials: boolean;\n /**\n * The **`XMLHttpRequest.abort()`** method aborts the request if it has already been sent.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/XMLHttpRequest/abort)\n */\n abort(): void;\n /**\n * The XMLHttpRequest method **`getAllResponseHeaders()`** returns all the response headers, separated by CRLF, as a string, or returns `null` if no response has been received.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/XMLHttpRequest/getAllResponseHeaders)\n */\n getAllResponseHeaders(): string;\n /**\n * The XMLHttpRequest method **`getResponseHeader()`** returns the string containing the text of a particular header\'s value.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/XMLHttpRequest/getResponseHeader)\n */\n getResponseHeader(name: string): string | null;\n /**\n * The XMLHttpRequest method **`open()`** initializes a newly-created request, or re-initializes an existing one.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/XMLHttpRequest/open)\n */\n open(method: string, url: string | URL): void;\n open(method: string, url: string | URL, async: boolean, username?: string | null, password?: string | null): void;\n /**\n * The XMLHttpRequest method **`overrideMimeType()`** specifies a MIME type other than the one provided by the server to be used instead when interpreting the data being transferred in a request.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/XMLHttpRequest/overrideMimeType)\n */\n overrideMimeType(mime: string): void;\n /**\n * The XMLHttpRequest method **`send()`** sends the request to the server.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/XMLHttpRequest/send)\n */\n send(body?: Document | XMLHttpRequestBodyInit | null): void;\n /**\n * The XMLHttpRequest method **`setRequestHeader()`** sets the value of an HTTP request header.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/XMLHttpRequest/setRequestHeader)\n */\n setRequestHeader(name: string, value: string): void;\n readonly UNSENT: 0;\n readonly OPENED: 1;\n readonly HEADERS_RECEIVED: 2;\n readonly LOADING: 3;\n readonly DONE: 4;\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 UNSENT: 0;\n readonly OPENED: 1;\n readonly HEADERS_RECEIVED: 2;\n readonly LOADING: 3;\n readonly DONE: 4;\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\n/**\n * `XMLHttpRequestEventTarget` is the interface that describes the event handlers shared on XMLHttpRequest and XMLHttpRequestUpload.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/XMLHttpRequestEventTarget)\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\n/**\n * The **`XMLHttpRequestUpload`** interface represents the upload process for a specific XMLHttpRequest.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/XMLHttpRequestUpload)\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/**\n * The `XMLSerializer` interface provides the XMLSerializer.serializeToString method to construct an XML string representing a DOM tree.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/XMLSerializer)\n */\ninterface XMLSerializer {\n /**\n * The XMLSerializer method **`serializeToString()`** constructs a string representing the specified DOM tree in XML form.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/XMLSerializer/serializeToString)\n */\n serializeToString(root: Node): string;\n}\n\ndeclare var XMLSerializer: {\n prototype: XMLSerializer;\n new(): XMLSerializer;\n};\n\n/**\n * The `XPathEvaluator` interface allows to compile and evaluate XPath expressions.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/XPathEvaluator)\n */\ninterface XPathEvaluator extends XPathEvaluatorBase {\n}\n\ndeclare var XPathEvaluator: {\n prototype: XPathEvaluator;\n new(): XPathEvaluator;\n};\n\ninterface XPathEvaluatorBase {\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/createExpression) */\n createExpression(expression: string, resolver?: XPathNSResolver | null): XPathExpression;\n /**\n * @deprecated\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/createNSResolver)\n */\n createNSResolver(nodeResolver: Node): Node;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/evaluate) */\n evaluate(expression: string, contextNode: Node, resolver?: XPathNSResolver | null, type?: number, result?: XPathResult | null): XPathResult;\n}\n\n/**\n * This interface is a compiled XPath expression that can be evaluated on a document or specific node to return information from its DOM tree.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/XPathExpression)\n */\ninterface XPathExpression {\n /**\n * The **`evaluate()`** method of the returns an XPathResult.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/XPathExpression/evaluate)\n */\n evaluate(contextNode: Node, type?: number, result?: XPathResult | null): XPathResult;\n}\n\ndeclare var XPathExpression: {\n prototype: XPathExpression;\n new(): XPathExpression;\n};\n\n/**\n * The **`XPathResult`** interface represents the results generated by evaluating an XPath expression within the context of a given node.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/XPathResult)\n */\ninterface XPathResult {\n /**\n * The read-only **`booleanValue`** property of the The return value is the boolean value of the `XPathResult` returned by In case XPathResult.resultType is not `BOOLEAN_TYPE`, a The following example shows the use of the `booleanValue` property.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/XPathResult/booleanValue)\n */\n readonly booleanValue: boolean;\n /**\n * The read-only **`invalidIteratorState`** property of the is `true` if XPathResult.resultType is `UNORDERED_NODE_ITERATOR_TYPE` or `ORDERED_NODE_ITERATOR_TYPE` and the document has been modified since this result was returned.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/XPathResult/invalidIteratorState)\n */\n readonly invalidIteratorState: boolean;\n /**\n * The read-only **`numberValue`** property of the The return value is the numeric value of the `XPathResult` returned by In case XPathResult.resultType is not `NUMBER_TYPE`, a The following example shows the use of the `numberValue` property.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/XPathResult/numberValue)\n */\n readonly numberValue: number;\n /**\n * The read-only **`resultType`** property of the the type constants.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/XPathResult/resultType)\n */\n readonly resultType: number;\n /**\n * The read-only **`singleNodeValue`** property of the `null` in case no node was matched of a result with `FIRST_ORDERED_NODE_TYPE`.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/XPathResult/singleNodeValue)\n */\n readonly singleNodeValue: Node | null;\n /**\n * The read-only **`snapshotLength`** property of the snapshot.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/XPathResult/snapshotLength)\n */\n readonly snapshotLength: number;\n /**\n * The read-only **`stringValue`** property of the The return value is the string value of the `XPathResult` returned by In case XPathResult.resultType is not `STRING_TYPE`, a The following example shows the use of the `stringValue` property.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/XPathResult/stringValue)\n */\n readonly stringValue: string;\n /**\n * The **`iterateNext()`** method of the next node from it or `null` if there are no more nodes.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/XPathResult/iterateNext)\n */\n iterateNext(): Node | null;\n /**\n * The **`snapshotItem()`** method of the `null` in case the index is not within the range of nodes.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/XPathResult/snapshotItem)\n */\n snapshotItem(index: number): Node | null;\n readonly ANY_TYPE: 0;\n readonly NUMBER_TYPE: 1;\n readonly STRING_TYPE: 2;\n readonly BOOLEAN_TYPE: 3;\n readonly UNORDERED_NODE_ITERATOR_TYPE: 4;\n readonly ORDERED_NODE_ITERATOR_TYPE: 5;\n readonly UNORDERED_NODE_SNAPSHOT_TYPE: 6;\n readonly ORDERED_NODE_SNAPSHOT_TYPE: 7;\n readonly ANY_UNORDERED_NODE_TYPE: 8;\n readonly FIRST_ORDERED_NODE_TYPE: 9;\n}\n\ndeclare var XPathResult: {\n prototype: XPathResult;\n new(): XPathResult;\n readonly ANY_TYPE: 0;\n readonly NUMBER_TYPE: 1;\n readonly STRING_TYPE: 2;\n readonly BOOLEAN_TYPE: 3;\n readonly UNORDERED_NODE_ITERATOR_TYPE: 4;\n readonly ORDERED_NODE_ITERATOR_TYPE: 5;\n readonly UNORDERED_NODE_SNAPSHOT_TYPE: 6;\n readonly ORDERED_NODE_SNAPSHOT_TYPE: 7;\n readonly ANY_UNORDERED_NODE_TYPE: 8;\n readonly FIRST_ORDERED_NODE_TYPE: 9;\n};\n\n/**\n * An **`XSLTProcessor`** applies an XSLT stylesheet transformation to an XML document to produce a new XML document as output.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/XSLTProcessor)\n */\ninterface XSLTProcessor {\n /**\n * The `clearParameters()` method of the XSLTProcessor interface removes all parameters (`<xsl:param>`) and their values from the stylesheet imported in the processor.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/XSLTProcessor/clearParameters)\n */\n clearParameters(): void;\n /**\n * The `getParameter()` method of the XSLTProcessor interface returns the value of a parameter (`<xsl:param>`) from the stylesheet imported in the processor.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/XSLTProcessor/getParameter)\n */\n getParameter(namespaceURI: string | null, localName: string): any;\n /**\n * The `importStylesheet()` method of the XSLTProcessor interface imports an XSLT stylesheet for the processor.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/XSLTProcessor/importStylesheet)\n */\n importStylesheet(style: Node): void;\n /**\n * The `removeParameter()` method of the XSLTProcessor interface removes the parameter (`<xsl:param>`) and its value from the stylesheet imported in the processor.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/XSLTProcessor/removeParameter)\n */\n removeParameter(namespaceURI: string | null, localName: string): void;\n /**\n * The `reset()` method of the XSLTProcessor interface removes all parameters (`<xsl:param>`) and the XSLT stylesheet from the processor.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/XSLTProcessor/reset)\n */\n reset(): void;\n /**\n * The `setParameter()` method of the XSLTProcessor interface sets the value of a parameter (`<xsl:param>`) in the stylesheet imported in the processor.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/XSLTProcessor/setParameter)\n */\n setParameter(namespaceURI: string | null, localName: string, value: any): void;\n /**\n * The `transformToDocument()` method of the XSLTProcessor interface transforms the provided Node source to a Document using the XSLT stylesheet associated with `XSLTProcessor`.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/XSLTProcessor/transformToDocument)\n */\n transformToDocument(source: Node): Document;\n /**\n * The `transformToFragment()` method of the XSLTProcessor interface transforms a provided Node source to a DocumentFragment using the XSLT stylesheet associated with the `XSLTProcessor`.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/XSLTProcessor/transformToFragment)\n */\n transformToFragment(source: Node, output: Document): DocumentFragment;\n}\n\ndeclare var XSLTProcessor: {\n prototype: XSLTProcessor;\n new(): XSLTProcessor;\n};\n\n/** The **`CSS`** interface holds useful CSS-related methods. */\ndeclare namespace CSS {\n /**\n * The static, read-only **`highlights`** property of the CSS interface provides access to the `HighlightRegistry` used to style arbitrary text ranges using the css_custom_highlight_api.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSS/highlights_static)\n */\n var highlights: HighlightRegistry;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSS/factory_functions_static) */\n function Hz(value: number): CSSUnitValue;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSS/factory_functions_static) */\n function Q(value: number): CSSUnitValue;\n function cap(value: number): CSSUnitValue;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSS/factory_functions_static) */\n function ch(value: number): CSSUnitValue;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSS/factory_functions_static) */\n function cm(value: number): CSSUnitValue;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSS/factory_functions_static) */\n function cqb(value: number): CSSUnitValue;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSS/factory_functions_static) */\n function cqh(value: number): CSSUnitValue;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSS/factory_functions_static) */\n function cqi(value: number): CSSUnitValue;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSS/factory_functions_static) */\n function cqmax(value: number): CSSUnitValue;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSS/factory_functions_static) */\n function cqmin(value: number): CSSUnitValue;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSS/factory_functions_static) */\n function cqw(value: number): CSSUnitValue;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSS/factory_functions_static) */\n function deg(value: number): CSSUnitValue;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSS/factory_functions_static) */\n function dpcm(value: number): CSSUnitValue;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSS/factory_functions_static) */\n function dpi(value: number): CSSUnitValue;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSS/factory_functions_static) */\n function dppx(value: number): CSSUnitValue;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSS/factory_functions_static) */\n function dvb(value: number): CSSUnitValue;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSS/factory_functions_static) */\n function dvh(value: number): CSSUnitValue;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSS/factory_functions_static) */\n function dvi(value: number): CSSUnitValue;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSS/factory_functions_static) */\n function dvmax(value: number): CSSUnitValue;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSS/factory_functions_static) */\n function dvmin(value: number): CSSUnitValue;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSS/factory_functions_static) */\n function dvw(value: number): CSSUnitValue;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSS/factory_functions_static) */\n function em(value: number): CSSUnitValue;\n /**\n * The **`CSS.escape()`** static method returns a string containing the escaped string passed as parameter, mostly for use as part of a CSS selector.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSS/escape_static)\n */\n function escape(ident: string): string;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSS/factory_functions_static) */\n function ex(value: number): CSSUnitValue;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSS/factory_functions_static) */\n function fr(value: number): CSSUnitValue;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSS/factory_functions_static) */\n function grad(value: number): CSSUnitValue;\n function ic(value: number): CSSUnitValue;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSS/factory_functions_static) */\n function kHz(value: number): CSSUnitValue;\n function lh(value: number): CSSUnitValue;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSS/factory_functions_static) */\n function lvb(value: number): CSSUnitValue;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSS/factory_functions_static) */\n function lvh(value: number): CSSUnitValue;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSS/factory_functions_static) */\n function lvi(value: number): CSSUnitValue;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSS/factory_functions_static) */\n function lvmax(value: number): CSSUnitValue;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSS/factory_functions_static) */\n function lvmin(value: number): CSSUnitValue;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSS/factory_functions_static) */\n function lvw(value: number): CSSUnitValue;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSS/factory_functions_static) */\n function mm(value: number): CSSUnitValue;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSS/factory_functions_static) */\n function ms(value: number): CSSUnitValue;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSS/factory_functions_static) */\n function number(value: number): CSSUnitValue;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSS/factory_functions_static) */\n function pc(value: number): CSSUnitValue;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSS/factory_functions_static) */\n function percent(value: number): CSSUnitValue;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSS/factory_functions_static) */\n function pt(value: number): CSSUnitValue;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSS/factory_functions_static) */\n function px(value: number): CSSUnitValue;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSS/factory_functions_static) */\n function rad(value: number): CSSUnitValue;\n function rcap(value: number): CSSUnitValue;\n function rch(value: number): CSSUnitValue;\n /**\n * The **`CSS.registerProperty()`** static method registers custom properties, allowing for property type checking, default values, and properties that do or do not inherit their value.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSS/registerProperty_static)\n */\n function registerProperty(definition: PropertyDefinition): void;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSS/factory_functions_static) */\n function rem(value: number): CSSUnitValue;\n function rex(value: number): CSSUnitValue;\n function ric(value: number): CSSUnitValue;\n function rlh(value: number): CSSUnitValue;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSS/factory_functions_static) */\n function s(value: number): CSSUnitValue;\n /**\n * The **`CSS.supports()`** static method returns a boolean value indicating if the browser supports a given CSS feature, or not.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSS/supports_static)\n */\n function supports(property: string, value: string): boolean;\n function supports(conditionText: string): boolean;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSS/factory_functions_static) */\n function svb(value: number): CSSUnitValue;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSS/factory_functions_static) */\n function svh(value: number): CSSUnitValue;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSS/factory_functions_static) */\n function svi(value: number): CSSUnitValue;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSS/factory_functions_static) */\n function svmax(value: number): CSSUnitValue;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSS/factory_functions_static) */\n function svmin(value: number): CSSUnitValue;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSS/factory_functions_static) */\n function svw(value: number): CSSUnitValue;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSS/factory_functions_static) */\n function turn(value: number): CSSUnitValue;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSS/factory_functions_static) */\n function vb(value: number): CSSUnitValue;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSS/factory_functions_static) */\n function vh(value: number): CSSUnitValue;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSS/factory_functions_static) */\n function vi(value: number): CSSUnitValue;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSS/factory_functions_static) */\n function vmax(value: number): CSSUnitValue;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSS/factory_functions_static) */\n function vmin(value: number): CSSUnitValue;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSS/factory_functions_static) */\n function vw(value: number): CSSUnitValue;\n}\n\ndeclare namespace WebAssembly {\n interface CompileError extends Error {\n }\n\n var CompileError: {\n prototype: CompileError;\n new(message?: string): CompileError;\n (message?: string): CompileError;\n };\n\n /** [MDN Reference](https://developer.mozilla.org/docs/WebAssembly/Reference/JavaScript_interface/Global) */\n interface Global<T extends ValueType = ValueType> {\n value: ValueTypeMap[T];\n valueOf(): ValueTypeMap[T];\n }\n\n var Global: {\n prototype: Global;\n new<T extends ValueType = ValueType>(descriptor: GlobalDescriptor<T>, v?: ValueTypeMap[T]): Global<T>;\n };\n\n /** [MDN Reference](https://developer.mozilla.org/docs/WebAssembly/Reference/JavaScript_interface/Instance) */\n interface Instance {\n /** [MDN Reference](https://developer.mozilla.org/docs/WebAssembly/Reference/JavaScript_interface/Instance/exports) */\n readonly exports: Exports;\n }\n\n var Instance: {\n prototype: Instance;\n new(module: Module, importObject?: Imports): Instance;\n };\n\n interface LinkError extends Error {\n }\n\n var LinkError: {\n prototype: LinkError;\n new(message?: string): LinkError;\n (message?: string): LinkError;\n };\n\n /** [MDN Reference](https://developer.mozilla.org/docs/WebAssembly/Reference/JavaScript_interface/Memory) */\n interface Memory {\n /** [MDN Reference](https://developer.mozilla.org/docs/WebAssembly/Reference/JavaScript_interface/Memory/buffer) */\n readonly buffer: ArrayBuffer;\n /** [MDN Reference](https://developer.mozilla.org/docs/WebAssembly/Reference/JavaScript_interface/Memory/grow) */\n grow(delta: number): number;\n }\n\n var Memory: {\n prototype: Memory;\n new(descriptor: MemoryDescriptor): Memory;\n };\n\n /** [MDN Reference](https://developer.mozilla.org/docs/WebAssembly/Reference/JavaScript_interface/Module) */\n interface Module {\n }\n\n var Module: {\n prototype: Module;\n new(bytes: BufferSource): Module;\n /** [MDN Reference](https://developer.mozilla.org/docs/WebAssembly/Reference/JavaScript_interface/Module/customSections_static) */\n customSections(moduleObject: Module, sectionName: string): ArrayBuffer[];\n /** [MDN Reference](https://developer.mozilla.org/docs/WebAssembly/Reference/JavaScript_interface/Module/exports_static) */\n exports(moduleObject: Module): ModuleExportDescriptor[];\n /** [MDN Reference](https://developer.mozilla.org/docs/WebAssembly/Reference/JavaScript_interface/Module/imports_static) */\n imports(moduleObject: Module): ModuleImportDescriptor[];\n };\n\n interface RuntimeError extends Error {\n }\n\n var RuntimeError: {\n prototype: RuntimeError;\n new(message?: string): RuntimeError;\n (message?: string): RuntimeError;\n };\n\n /** [MDN Reference](https://developer.mozilla.org/docs/WebAssembly/Reference/JavaScript_interface/Table) */\n interface Table {\n /** [MDN Reference](https://developer.mozilla.org/docs/WebAssembly/Reference/JavaScript_interface/Table/length) */\n readonly length: number;\n /** [MDN Reference](https://developer.mozilla.org/docs/WebAssembly/Reference/JavaScript_interface/Table/get) */\n get(index: number): any;\n /** [MDN Reference](https://developer.mozilla.org/docs/WebAssembly/Reference/JavaScript_interface/Table/grow) */\n grow(delta: number, value?: any): number;\n /** [MDN Reference](https://developer.mozilla.org/docs/WebAssembly/Reference/JavaScript_interface/Table/set) */\n set(index: number, value?: any): void;\n }\n\n var Table: {\n prototype: Table;\n new(descriptor: TableDescriptor, value?: any): Table;\n };\n\n interface GlobalDescriptor<T extends ValueType = ValueType> {\n mutable?: boolean;\n value: T;\n }\n\n interface MemoryDescriptor {\n initial: number;\n maximum?: number;\n shared?: boolean;\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 ValueTypeMap {\n anyfunc: Function;\n externref: any;\n f32: number;\n f64: number;\n i32: number;\n i64: bigint;\n v128: never;\n }\n\n interface WebAssemblyInstantiatedSource {\n instance: Instance;\n module: Module;\n }\n\n type ImportExportKind = "function" | "global" | "memory" | "table";\n type TableKind = "anyfunc" | "externref";\n type ExportValue = Function | Global | Memory | Table;\n type Exports = Record<string, ExportValue>;\n type ImportValue = ExportValue | number;\n type Imports = Record<string, ModuleImports>;\n type ModuleImports = Record<string, ImportValue>;\n type ValueType = keyof ValueTypeMap;\n /** [MDN Reference](https://developer.mozilla.org/docs/WebAssembly/Reference/JavaScript_interface/compile_static) */\n function compile(bytes: BufferSource): Promise<Module>;\n /** [MDN Reference](https://developer.mozilla.org/docs/WebAssembly/Reference/JavaScript_interface/compileStreaming_static) */\n function compileStreaming(source: Response | PromiseLike<Response>): Promise<Module>;\n /** [MDN Reference](https://developer.mozilla.org/docs/WebAssembly/Reference/JavaScript_interface/instantiate_static) */\n function instantiate(bytes: BufferSource, importObject?: Imports): Promise<WebAssemblyInstantiatedSource>;\n function instantiate(moduleObject: Module, importObject?: Imports): Promise<Instance>;\n /** [MDN Reference](https://developer.mozilla.org/docs/WebAssembly/Reference/JavaScript_interface/instantiateStreaming_static) */\n function instantiateStreaming(source: Response | PromiseLike<Response>, importObject?: Imports): Promise<WebAssemblyInstantiatedSource>;\n /** [MDN Reference](https://developer.mozilla.org/docs/WebAssembly/Reference/JavaScript_interface/validate_static) */\n function validate(bytes: BufferSource): boolean;\n}\n\n/** The **`console`** object provides access to the debugging console (e.g., the Web console in Firefox). */\n/**\n * The **`console`** object provides access to the debugging console (e.g., the Web console in Firefox).\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/console)\n */\ninterface Console {\n /**\n * The **`console.assert()`** static method writes an error message to the console if the assertion is false.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/console/assert_static)\n */\n assert(condition?: boolean, ...data: any[]): void;\n /**\n * The **`console.clear()`** static method clears the console if possible.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/console/clear_static)\n */\n clear(): void;\n /**\n * The **`console.count()`** static method logs the number of times that this particular call to `count()` has been called.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/console/count_static)\n */\n count(label?: string): void;\n /**\n * The **`console.countReset()`** static method resets counter used with console/count_static.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/console/countReset_static)\n */\n countReset(label?: string): void;\n /**\n * The **`console.debug()`** static method outputs a message to the console at the \'debug\' log level.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/console/debug_static)\n */\n debug(...data: any[]): void;\n /**\n * The **`console.dir()`** static method displays a list of the properties of the specified JavaScript object.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/console/dir_static)\n */\n dir(item?: any, options?: any): void;\n /**\n * The **`console.dirxml()`** static method displays an interactive tree of the descendant elements of the specified XML/HTML element.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/console/dirxml_static)\n */\n dirxml(...data: any[]): void;\n /**\n * The **`console.error()`** static method outputs a message to the console at the \'error\' log level.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/console/error_static)\n */\n error(...data: any[]): void;\n /**\n * The **`console.group()`** static method creates a new inline group in the Web console log, causing any subsequent console messages to be indented by an additional level, until console/groupEnd_static is called.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/console/group_static)\n */\n group(...data: any[]): void;\n /**\n * The **`console.groupCollapsed()`** static method creates a new inline group in the console.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/console/groupCollapsed_static)\n */\n groupCollapsed(...data: any[]): void;\n /**\n * The **`console.groupEnd()`** static method exits the current inline group in the console.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/console/groupEnd_static)\n */\n groupEnd(): void;\n /**\n * The **`console.info()`** static method outputs a message to the console at the \'info\' log level.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/console/info_static)\n */\n info(...data: any[]): void;\n /**\n * The **`console.log()`** static method outputs a message to the console.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/console/log_static)\n */\n log(...data: any[]): void;\n /**\n * The **`console.table()`** static method displays tabular data as a table.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/console/table_static)\n */\n table(tabularData?: any, properties?: string[]): void;\n /**\n * The **`console.time()`** static method starts a timer you can use to track how long an operation takes.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/console/time_static)\n */\n time(label?: string): void;\n /**\n * The **`console.timeEnd()`** static method stops a timer that was previously started by calling console/time_static.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/console/timeEnd_static)\n */\n timeEnd(label?: string): void;\n /**\n * The **`console.timeLog()`** static method logs the current value of a timer that was previously started by calling console/time_static.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/console/timeLog_static)\n */\n timeLog(label?: string, ...data: any[]): void;\n timeStamp(label?: string): void;\n /**\n * The **`console.trace()`** static method outputs a stack trace to the console.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/console/trace_static)\n */\n trace(...data: any[]): void;\n /**\n * The **`console.warn()`** static method outputs a warning message to the console at the \'warning\' log level.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/console/warn_static)\n */\n warn(...data: any[]): void;\n}\n\ndeclare var console: Console;\n\ninterface AudioDataOutputCallback {\n (output: AudioData): void;\n}\n\ninterface BlobCallback {\n (blob: Blob | null): void;\n}\n\ninterface CustomElementConstructor {\n new (...params: any[]): HTMLElement;\n}\n\ninterface DecodeErrorCallback {\n (error: DOMException): void;\n}\n\ninterface DecodeSuccessCallback {\n (decodedData: AudioBuffer): void;\n}\n\ninterface EncodedAudioChunkOutputCallback {\n (output: EncodedAudioChunk, metadata?: EncodedAudioChunkMetadata): void;\n}\n\ninterface EncodedVideoChunkOutputCallback {\n (chunk: EncodedVideoChunk, metadata?: EncodedVideoChunkMetadata): void;\n}\n\ninterface ErrorCallback {\n (err: DOMException): void;\n}\n\ninterface FileCallback {\n (file: File): void;\n}\n\ninterface FileSystemEntriesCallback {\n (entries: FileSystemEntry[]): void;\n}\n\ninterface FileSystemEntryCallback {\n (entry: FileSystemEntry): void;\n}\n\ninterface FrameRequestCallback {\n (time: DOMHighResTimeStamp): void;\n}\n\ninterface FunctionStringCallback {\n (data: string): void;\n}\n\ninterface IdleRequestCallback {\n (deadline: IdleDeadline): void;\n}\n\ninterface IntersectionObserverCallback {\n (entries: IntersectionObserverEntry[], observer: IntersectionObserver): void;\n}\n\ninterface LockGrantedCallback<T> {\n (lock: Lock | null): T;\n}\n\ninterface MediaSessionActionHandler {\n (details: MediaSessionActionDetails): void;\n}\n\ninterface MutationCallback {\n (mutations: MutationRecord[], observer: MutationObserver): 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: GeolocationPosition): void;\n}\n\ninterface PositionErrorCallback {\n (positionError: GeolocationPositionError): void;\n}\n\ninterface QueuingStrategySize<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 RemotePlaybackAvailabilityCallback {\n (available: boolean): void;\n}\n\ninterface ReportingObserverCallback {\n (reports: Report[], observer: ReportingObserver): void;\n}\n\ninterface ResizeObserverCallback {\n (entries: ResizeObserverEntry[], observer: ResizeObserver): void;\n}\n\ninterface TransformerFlushCallback<O> {\n (controller: TransformStreamDefaultController<O>): void | PromiseLike<void>;\n}\n\ninterface TransformerStartCallback<O> {\n (controller: TransformStreamDefaultController<O>): any;\n}\n\ninterface TransformerTransformCallback<I, O> {\n (chunk: I, controller: TransformStreamDefaultController<O>): void | PromiseLike<void>;\n}\n\ninterface UnderlyingSinkAbortCallback {\n (reason?: any): void | PromiseLike<void>;\n}\n\ninterface UnderlyingSinkCloseCallback {\n (): void | PromiseLike<void>;\n}\n\ninterface UnderlyingSinkStartCallback {\n (controller: WritableStreamDefaultController): any;\n}\n\ninterface UnderlyingSinkWriteCallback<W> {\n (chunk: W, controller: WritableStreamDefaultController): void | PromiseLike<void>;\n}\n\ninterface UnderlyingSourceCancelCallback {\n (reason?: any): void | PromiseLike<void>;\n}\n\ninterface UnderlyingSourcePullCallback<R> {\n (controller: ReadableStreamController<R>): void | PromiseLike<void>;\n}\n\ninterface UnderlyingSourceStartCallback<R> {\n (controller: ReadableStreamController<R>): any;\n}\n\ninterface VideoFrameOutputCallback {\n (output: VideoFrame): void;\n}\n\ninterface VideoFrameRequestCallback {\n (now: DOMHighResTimeStamp, metadata: VideoFrameCallbackMetadata): void;\n}\n\ninterface ViewTransitionUpdateCallback {\n (): any;\n}\n\ninterface VoidFunction {\n (): void;\n}\n\ninterface WebCodecsErrorCallback {\n (error: DOMException): void;\n}\n\ninterface HTMLElementTagNameMap {\n "a": HTMLAnchorElement;\n "abbr": HTMLElement;\n "address": HTMLElement;\n "area": HTMLAreaElement;\n "article": HTMLElement;\n "aside": HTMLElement;\n "audio": HTMLAudioElement;\n "b": HTMLElement;\n "base": HTMLBaseElement;\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 "div": HTMLDivElement;\n "dl": HTMLDListElement;\n "dt": HTMLElement;\n "em": HTMLElement;\n "embed": HTMLEmbedElement;\n "fieldset": HTMLFieldSetElement;\n "figcaption": HTMLElement;\n "figure": HTMLElement;\n "footer": HTMLElement;\n "form": HTMLFormElement;\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 "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 "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 "search": HTMLElement;\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": HTMLTableCellElement;\n "template": HTMLTemplateElement;\n "textarea": HTMLTextAreaElement;\n "tfoot": HTMLTableSectionElement;\n "th": HTMLTableCellElement;\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 "acronym": HTMLElement;\n "applet": HTMLUnknownElement;\n "basefont": HTMLElement;\n "bgsound": HTMLUnknownElement;\n "big": HTMLElement;\n "blink": HTMLUnknownElement;\n "center": HTMLElement;\n "dir": HTMLDirectoryElement;\n "font": HTMLFontElement;\n "frame": HTMLFrameElement;\n "frameset": HTMLFrameSetElement;\n "isindex": HTMLUnknownElement;\n "keygen": HTMLUnknownElement;\n "listing": HTMLPreElement;\n "marquee": HTMLMarqueeElement;\n "menuitem": HTMLElement;\n "multicol": HTMLUnknownElement;\n "nextid": HTMLUnknownElement;\n "nobr": HTMLElement;\n "noembed": HTMLElement;\n "noframes": HTMLElement;\n "param": HTMLParamElement;\n "plaintext": HTMLElement;\n "rb": HTMLElement;\n "rtc": HTMLElement;\n "spacer": HTMLUnknownElement;\n "strike": HTMLElement;\n "tt": HTMLElement;\n "xmp": HTMLPreElement;\n}\n\ninterface SVGElementTagNameMap {\n "a": SVGAElement;\n "animate": SVGAnimateElement;\n "animateMotion": SVGAnimateMotionElement;\n "animateTransform": SVGAnimateTransformElement;\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 "feDropShadow": SVGFEDropShadowElement;\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 "mpath": SVGMPathElement;\n "path": SVGPathElement;\n "pattern": SVGPatternElement;\n "polygon": SVGPolygonElement;\n "polyline": SVGPolylineElement;\n "radialGradient": SVGRadialGradientElement;\n "rect": SVGRectElement;\n "script": SVGScriptElement;\n "set": SVGSetElement;\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\ninterface MathMLElementTagNameMap {\n "annotation": MathMLElement;\n "annotation-xml": MathMLElement;\n "maction": MathMLElement;\n "math": MathMLElement;\n "merror": MathMLElement;\n "mfrac": MathMLElement;\n "mi": MathMLElement;\n "mmultiscripts": MathMLElement;\n "mn": MathMLElement;\n "mo": MathMLElement;\n "mover": MathMLElement;\n "mpadded": MathMLElement;\n "mphantom": MathMLElement;\n "mprescripts": MathMLElement;\n "mroot": MathMLElement;\n "mrow": MathMLElement;\n "ms": MathMLElement;\n "mspace": MathMLElement;\n "msqrt": MathMLElement;\n "mstyle": MathMLElement;\n "msub": MathMLElement;\n "msubsup": MathMLElement;\n "msup": MathMLElement;\n "mtable": MathMLElement;\n "mtd": MathMLElement;\n "mtext": MathMLElement;\n "mtr": MathMLElement;\n "munder": MathMLElement;\n "munderover": MathMLElement;\n "semantics": MathMLElement;\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};\n/**\n * @deprecated This is a legacy alias of `navigator`.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/navigator)\n */\ndeclare var clientInformation: Navigator;\n/**\n * The **`Window.closed`** read-only property indicates whether the referenced window is closed or not.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/closed)\n */\ndeclare var closed: boolean;\n/**\n * The **`cookieStore`** read-only property of the Window interface returns a reference to the CookieStore object for the current document context.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/cookieStore)\n */\ndeclare var cookieStore: CookieStore;\n/**\n * The **`customElements`** read-only property of the Window interface returns a reference to the CustomElementRegistry object, which can be used to register new custom elements and get information about previously registered custom elements.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/customElements)\n */\ndeclare var customElements: CustomElementRegistry;\n/**\n * The **`devicePixelRatio`** of Window interface returns the ratio of the resolution in _physical pixels_ to the resolution in _CSS pixels_ for the current display device.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/devicePixelRatio)\n */\ndeclare var devicePixelRatio: number;\n/**\n * **`window.document`** returns a reference to the document contained in the window.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/document)\n */\ndeclare var document: Document;\n/**\n * The read-only Window property **`event`** returns the Event which is currently being handled by the site\'s code.\n * @deprecated\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/event)\n */\ndeclare var event: Event | undefined;\n/**\n * The `external` property of the Window API returns an instance of the `External` interface, which was intended to contain functions related to adding external search providers to the browser.\n * @deprecated\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/external)\n */\ndeclare var external: External;\n/**\n * The **`Window.frameElement`** property returns the element (such as iframe or object) in which the window is embedded.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/frameElement)\n */\ndeclare var frameElement: Element | null;\n/**\n * Returns the window itself, which is an array-like object, listing the direct sub-frames of the current window.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/frames)\n */\ndeclare var frames: WindowProxy;\n/**\n * The `Window.history` read-only property returns a reference to the History object, which provides an interface for manipulating the browser _session history_ (pages visited in the tab or frame that the current page is loaded in).\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/history)\n */\ndeclare var history: History;\n/**\n * The read-only **`innerHeight`** property of the including the height of the horizontal scroll bar, if present.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/innerHeight)\n */\ndeclare var innerHeight: number;\n/**\n * The read-only Window property **`innerWidth`** returns the interior width of the window in pixels (that is, the width of the window\'s layout viewport).\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/innerWidth)\n */\ndeclare var innerWidth: number;\n/**\n * Returns the number of frames (either frame or A number.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/length)\n */\ndeclare var length: number;\n/**\n * The **`Window.location`** read-only property returns a Location object with information about the current location of the document.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/location)\n */\ndeclare var location: Location;\n/**\n * Returns the `locationbar` object.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/locationbar)\n */\ndeclare var locationbar: BarProp;\n/**\n * Returns the `menubar` object.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/menubar)\n */\ndeclare var menubar: BarProp;\n/**\n * The `Window.name` property gets/sets the name of the window\'s browsing context.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/name)\n */\n/** @deprecated */\ndeclare const name: void;\n/**\n * The **`Window.navigator`** read-only property returns a reference to the Navigator object, which has methods and properties about the application running the script.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/navigator)\n */\ndeclare var navigator: Navigator;\n/**\n * Available only in secure contexts.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/devicemotion_event)\n */\ndeclare var ondevicemotion: ((this: Window, ev: DeviceMotionEvent) => any) | null;\n/**\n * Available only in secure contexts.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/deviceorientation_event)\n */\ndeclare var ondeviceorientation: ((this: Window, ev: DeviceOrientationEvent) => any) | null;\n/**\n * Available only in secure contexts.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/deviceorientationabsolute_event)\n */\ndeclare var ondeviceorientationabsolute: ((this: Window, ev: DeviceOrientationEvent) => any) | null;\n/**\n * @deprecated\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/orientationchange_event)\n */\ndeclare var onorientationchange: ((this: Window, ev: Event) => any) | null;\n/**\n * The Window interface\'s **`opener`** property returns a reference to the window that opened the window, either with Window.open, or by navigating a link with a `target` attribute.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/opener)\n */\ndeclare var opener: any;\n/**\n * Returns the orientation in degrees (in 90-degree increments) of the viewport relative to the device\'s natural orientation.\n * @deprecated\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/orientation)\n */\ndeclare var orientation: number;\n/**\n * The **`originAgentCluster`** read-only property of the Window interface returns `true` if this window belongs to an _origin-keyed agent cluster_: this means that the operating system has provided dedicated resources (for example an operating system process) to this window\'s origin that are not shared with windows from other origins.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/originAgentCluster)\n */\ndeclare var originAgentCluster: boolean;\n/**\n * The **`Window.outerHeight`** read-only property returns the height in pixels of the whole browser window, including any sidebar, window chrome, and window-resizing borders/handles.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/outerHeight)\n */\ndeclare var outerHeight: number;\n/**\n * **`Window.outerWidth`** read-only property returns the width of the outside of the browser window.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/outerWidth)\n */\ndeclare var outerWidth: number;\n/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/scrollX) */\ndeclare var pageXOffset: number;\n/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/scrollY) */\ndeclare var pageYOffset: number;\n/**\n * The **`Window.parent`** property is a reference to the parent of the current window or subframe.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/parent)\n */\ndeclare var parent: WindowProxy;\n/**\n * Returns the `personalbar` object.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/personalbar)\n */\ndeclare var personalbar: BarProp;\n/**\n * The Window property **`screen`** returns a reference to the screen object associated with the window.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/screen)\n */\ndeclare var screen: Screen;\n/**\n * The **`Window.screenLeft`** read-only property returns the horizontal distance, in CSS pixels, from the left border of the user\'s browser viewport to the left side of the screen.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/screenLeft)\n */\ndeclare var screenLeft: number;\n/**\n * The **`Window.screenTop`** read-only property returns the vertical distance, in CSS pixels, from the top border of the user\'s browser viewport to the top side of the screen.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/screenTop)\n */\ndeclare var screenTop: number;\n/**\n * The **`Window.screenX`** read-only property returns the horizontal distance, in CSS pixels, of the left border of the user\'s browser viewport to the left side of the screen.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/screenX)\n */\ndeclare var screenX: number;\n/**\n * The **`Window.screenY`** read-only property returns the vertical distance, in CSS pixels, of the top border of the user\'s browser viewport to the top edge of the screen.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/screenY)\n */\ndeclare var screenY: number;\n/**\n * The read-only **`scrollX`** property of the Window interface returns the number of pixels by which the document is currently scrolled horizontally.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/scrollX)\n */\ndeclare var scrollX: number;\n/**\n * The read-only **`scrollY`** property of the Window interface returns the number of pixels by which the document is currently scrolled vertically.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/scrollY)\n */\ndeclare var scrollY: number;\n/**\n * Returns the `scrollbars` object.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/scrollbars)\n */\ndeclare var scrollbars: BarProp;\n/**\n * The **`Window.self`** read-only property returns the window itself, as a WindowProxy.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/self)\n */\ndeclare var self: Window & typeof globalThis;\n/**\n * The `speechSynthesis` read-only property of the Window object returns a SpeechSynthesis object, which is the entry point into using Web Speech API speech synthesis functionality.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/speechSynthesis)\n */\ndeclare var speechSynthesis: SpeechSynthesis;\n/**\n * The **`status`** property of the bar at the bottom of the browser window.\n * @deprecated\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/status)\n */\ndeclare var status: string;\n/**\n * Returns the `statusbar` object.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/statusbar)\n */\ndeclare var statusbar: BarProp;\n/**\n * Returns the `toolbar` object.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/toolbar)\n */\ndeclare var toolbar: BarProp;\n/**\n * Returns a reference to the topmost window in the window hierarchy.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/top)\n */\ndeclare var top: WindowProxy | null;\n/**\n * The **`visualViewport`** read-only property of the Window interface returns a VisualViewport object representing the visual viewport for a given window, or `null` if current document is not fully active.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/visualViewport)\n */\ndeclare var visualViewport: VisualViewport | null;\n/**\n * The **`window`** property of a Window object points to the window object itself.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/window)\n */\ndeclare var window: Window & typeof globalThis;\n/**\n * `window.alert()` instructs the browser to display a dialog with an optional message, and to wait until the user dismisses the dialog.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/alert)\n */\ndeclare function alert(message?: any): void;\n/**\n * The **`Window.blur()`** method does nothing.\n * @deprecated\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/blur)\n */\ndeclare function blur(): void;\n/**\n * The **`window.cancelIdleCallback()`** method cancels a callback previously scheduled with window.requestIdleCallback().\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/cancelIdleCallback)\n */\ndeclare function cancelIdleCallback(handle: number): void;\n/**\n * The **`Window.captureEvents()`** method does nothing.\n * @deprecated\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/captureEvents)\n */\ndeclare function captureEvents(): void;\n/**\n * The **`Window.close()`** method closes the current window, or the window on which it was called.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/close)\n */\ndeclare function close(): void;\n/**\n * `window.confirm()` instructs the browser to display a dialog with an optional message, and to wait until the user either confirms or cancels the dialog.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/confirm)\n */\ndeclare function confirm(message?: string): boolean;\n/**\n * Makes a request to bring the window to the front.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/focus)\n */\ndeclare function focus(): void;\n/**\n * The **`Window.getComputedStyle()`** method returns an object containing the values of all CSS properties of an element, after applying active stylesheets and resolving any basic computation those values may contain.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/getComputedStyle)\n */\ndeclare function getComputedStyle(elt: Element, pseudoElt?: string | null): CSSStyleDeclaration;\n/**\n * The **`getSelection()`** method of the Window interface returns the Selection object associated with the window\'s document, representing the range of text selected by the user or the current position of the caret.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/getSelection)\n */\ndeclare function getSelection(): Selection | null;\n/**\n * The Window interface\'s **`matchMedia()`** method returns a new MediaQueryList object that can then be used to determine if the document matches the media query string, as well as to monitor the document to detect when it matches (or stops matching) that media query.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/matchMedia)\n */\ndeclare function matchMedia(query: string): MediaQueryList;\n/**\n * The **`moveBy()`** method of the Window interface moves the current window by a specified amount.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/moveBy)\n */\ndeclare function moveBy(x: number, y: number): void;\n/**\n * The **`moveTo()`** method of the Window interface moves the current window to the specified coordinates.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/moveTo)\n */\ndeclare function moveTo(x: number, y: number): void;\n/**\n * The **`open()`** method of the `Window` interface loads a specified resource into a new or existing browsing context (that is, a tab, a window, or an iframe) under a specified name.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/open)\n */\ndeclare function open(url?: string | URL, target?: string, features?: string): WindowProxy | null;\n/**\n * The **`window.postMessage()`** method safely enables cross-origin communication between Window objects; _e.g.,_ between a page and a pop-up that it spawned, or between a page and an iframe embedded within it.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/postMessage)\n */\ndeclare function postMessage(message: any, targetOrigin: string, transfer?: Transferable[]): void;\ndeclare function postMessage(message: any, options?: WindowPostMessageOptions): void;\n/**\n * Opens the print dialog to print the current document.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/print)\n */\ndeclare function print(): void;\n/**\n * `window.prompt()` instructs the browser to display a dialog with an optional message prompting the user to input some text, and to wait until the user either submits the text or cancels the dialog.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/prompt)\n */\ndeclare function prompt(message?: string, _default?: string): string | null;\n/**\n * Releases the window from trapping events of a specific type.\n * @deprecated\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/releaseEvents)\n */\ndeclare function releaseEvents(): void;\n/**\n * The **`window.requestIdleCallback()`** method queues a function to be called during a browser\'s idle periods.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/requestIdleCallback)\n */\ndeclare function requestIdleCallback(callback: IdleRequestCallback, options?: IdleRequestOptions): number;\n/**\n * The **`Window.resizeBy()`** method resizes the current window by a specified amount.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/resizeBy)\n */\ndeclare function resizeBy(x: number, y: number): void;\n/**\n * The **`Window.resizeTo()`** method dynamically resizes the window.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/resizeTo)\n */\ndeclare function resizeTo(width: number, height: number): void;\n/**\n * The **`Window.scroll()`** method scrolls the window to a particular place in the document.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/scroll)\n */\ndeclare function scroll(options?: ScrollToOptions): void;\ndeclare function scroll(x: number, y: number): void;\n/**\n * The **`Window.scrollBy()`** method scrolls the document in the window by the given amount.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/scrollBy)\n */\ndeclare function scrollBy(options?: ScrollToOptions): void;\ndeclare function scrollBy(x: number, y: number): void;\n/**\n * **`Window.scrollTo()`** scrolls to a particular set of coordinates in the document.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/scrollTo)\n */\ndeclare function scrollTo(options?: ScrollToOptions): void;\ndeclare function scrollTo(x: number, y: number): void;\n/**\n * The **`window.stop()`** stops further resource loading in the current browsing context, equivalent to the stop button in the browser.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/stop)\n */\ndeclare function stop(): void;\ndeclare function toString(): string;\n/**\n * The **`dispatchEvent()`** method of the EventTarget sends an Event to the object, (synchronously) invoking the affected event listeners in the appropriate order.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/EventTarget/dispatchEvent)\n */\ndeclare function dispatchEvent(event: Event): boolean;\n/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DedicatedWorkerGlobalScope/cancelAnimationFrame) */\ndeclare function cancelAnimationFrame(handle: number): void;\n/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DedicatedWorkerGlobalScope/requestAnimationFrame) */\ndeclare function requestAnimationFrame(callback: FrameRequestCallback): number;\n/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLMediaElement/abort_event) */\ndeclare var onabort: ((this: Window, ev: UIEvent) => any) | null;\n/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/animationcancel_event) */\ndeclare var onanimationcancel: ((this: Window, ev: AnimationEvent) => any) | null;\n/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/animationend_event) */\ndeclare var onanimationend: ((this: Window, ev: AnimationEvent) => any) | null;\n/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/animationiteration_event) */\ndeclare var onanimationiteration: ((this: Window, ev: AnimationEvent) => any) | null;\n/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/animationstart_event) */\ndeclare var onanimationstart: ((this: Window, ev: AnimationEvent) => any) | null;\n/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/auxclick_event) */\ndeclare var onauxclick: ((this: Window, ev: PointerEvent) => any) | null;\n/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/beforeinput_event) */\ndeclare var onbeforeinput: ((this: Window, ev: InputEvent) => any) | null;\n/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/beforematch_event) */\ndeclare var onbeforematch: ((this: Window, ev: Event) => any) | null;\n/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLElement/beforetoggle_event) */\ndeclare var onbeforetoggle: ((this: Window, ev: ToggleEvent) => any) | null;\n/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/blur_event) */\ndeclare var onblur: ((this: Window, ev: FocusEvent) => any) | null;\n/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLDialogElement/cancel_event) */\ndeclare var oncancel: ((this: Window, ev: Event) => any) | null;\n/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLMediaElement/canplay_event) */\ndeclare var oncanplay: ((this: Window, ev: Event) => any) | null;\n/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLMediaElement/canplaythrough_event) */\ndeclare var oncanplaythrough: ((this: Window, ev: Event) => any) | null;\n/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLElement/change_event) */\ndeclare var onchange: ((this: Window, ev: Event) => any) | null;\n/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/click_event) */\ndeclare var onclick: ((this: Window, ev: PointerEvent) => any) | null;\n/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLDialogElement/close_event) */\ndeclare var onclose: ((this: Window, ev: Event) => any) | null;\n/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLCanvasElement/contextlost_event) */\ndeclare var oncontextlost: ((this: Window, ev: Event) => any) | null;\n/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/contextmenu_event) */\ndeclare var oncontextmenu: ((this: Window, ev: PointerEvent) => any) | null;\n/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLCanvasElement/contextrestored_event) */\ndeclare var oncontextrestored: ((this: Window, ev: Event) => any) | null;\n/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/copy_event) */\ndeclare var oncopy: ((this: Window, ev: ClipboardEvent) => any) | null;\n/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLTrackElement/cuechange_event) */\ndeclare var oncuechange: ((this: Window, ev: Event) => any) | null;\n/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/cut_event) */\ndeclare var oncut: ((this: Window, ev: ClipboardEvent) => any) | null;\n/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/dblclick_event) */\ndeclare var ondblclick: ((this: Window, ev: MouseEvent) => any) | null;\n/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLElement/drag_event) */\ndeclare var ondrag: ((this: Window, ev: DragEvent) => any) | null;\n/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLElement/dragend_event) */\ndeclare var ondragend: ((this: Window, ev: DragEvent) => any) | null;\n/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLElement/dragenter_event) */\ndeclare var ondragenter: ((this: Window, ev: DragEvent) => any) | null;\n/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLElement/dragleave_event) */\ndeclare var ondragleave: ((this: Window, ev: DragEvent) => any) | null;\n/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLElement/dragover_event) */\ndeclare var ondragover: ((this: Window, ev: DragEvent) => any) | null;\n/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLElement/dragstart_event) */\ndeclare var ondragstart: ((this: Window, ev: DragEvent) => any) | null;\n/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLElement/drop_event) */\ndeclare var ondrop: ((this: Window, ev: DragEvent) => any) | null;\n/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLMediaElement/durationchange_event) */\ndeclare var ondurationchange: ((this: Window, ev: Event) => any) | null;\n/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLMediaElement/emptied_event) */\ndeclare var onemptied: ((this: Window, ev: Event) => any) | null;\n/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLMediaElement/ended_event) */\ndeclare var onended: ((this: Window, ev: Event) => any) | null;\n/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLElement/error_event) */\ndeclare var onerror: OnErrorEventHandler;\n/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/focus_event) */\ndeclare var onfocus: ((this: Window, ev: FocusEvent) => any) | null;\n/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLFormElement/formdata_event) */\ndeclare var onformdata: ((this: Window, ev: FormDataEvent) => any) | null;\n/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/gotpointercapture_event) */\ndeclare var ongotpointercapture: ((this: Window, ev: PointerEvent) => any) | null;\n/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/input_event) */\ndeclare var oninput: ((this: Window, ev: Event) => any) | null;\n/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLInputElement/invalid_event) */\ndeclare var oninvalid: ((this: Window, ev: Event) => any) | null;\n/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/keydown_event) */\ndeclare var onkeydown: ((this: Window, ev: KeyboardEvent) => any) | null;\n/**\n * @deprecated\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/keypress_event)\n */\ndeclare var onkeypress: ((this: Window, ev: KeyboardEvent) => any) | null;\n/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/keyup_event) */\ndeclare var onkeyup: ((this: Window, ev: KeyboardEvent) => any) | null;\n/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLElement/load_event) */\ndeclare var onload: ((this: Window, ev: Event) => any) | null;\n/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLMediaElement/loadeddata_event) */\ndeclare var onloadeddata: ((this: Window, ev: Event) => any) | null;\n/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLMediaElement/loadedmetadata_event) */\ndeclare var onloadedmetadata: ((this: Window, ev: Event) => any) | null;\n/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLMediaElement/loadstart_event) */\ndeclare var onloadstart: ((this: Window, ev: Event) => any) | null;\n/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/lostpointercapture_event) */\ndeclare var onlostpointercapture: ((this: Window, ev: PointerEvent) => any) | null;\n/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/mousedown_event) */\ndeclare var onmousedown: ((this: Window, ev: MouseEvent) => any) | null;\n/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/mouseenter_event) */\ndeclare var onmouseenter: ((this: Window, ev: MouseEvent) => any) | null;\n/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/mouseleave_event) */\ndeclare var onmouseleave: ((this: Window, ev: MouseEvent) => any) | null;\n/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/mousemove_event) */\ndeclare var onmousemove: ((this: Window, ev: MouseEvent) => any) | null;\n/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/mouseout_event) */\ndeclare var onmouseout: ((this: Window, ev: MouseEvent) => any) | null;\n/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/mouseover_event) */\ndeclare var onmouseover: ((this: Window, ev: MouseEvent) => any) | null;\n/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/mouseup_event) */\ndeclare var onmouseup: ((this: Window, ev: MouseEvent) => any) | null;\n/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/paste_event) */\ndeclare var onpaste: ((this: Window, ev: ClipboardEvent) => any) | null;\n/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLMediaElement/pause_event) */\ndeclare var onpause: ((this: Window, ev: Event) => any) | null;\n/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLMediaElement/play_event) */\ndeclare var onplay: ((this: Window, ev: Event) => any) | null;\n/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLMediaElement/playing_event) */\ndeclare var onplaying: ((this: Window, ev: Event) => any) | null;\n/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/pointercancel_event) */\ndeclare var onpointercancel: ((this: Window, ev: PointerEvent) => any) | null;\n/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/pointerdown_event) */\ndeclare var onpointerdown: ((this: Window, ev: PointerEvent) => any) | null;\n/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/pointerenter_event) */\ndeclare var onpointerenter: ((this: Window, ev: PointerEvent) => any) | null;\n/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/pointerleave_event) */\ndeclare var onpointerleave: ((this: Window, ev: PointerEvent) => any) | null;\n/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/pointermove_event) */\ndeclare var onpointermove: ((this: Window, ev: PointerEvent) => any) | null;\n/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/pointerout_event) */\ndeclare var onpointerout: ((this: Window, ev: PointerEvent) => any) | null;\n/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/pointerover_event) */\ndeclare var onpointerover: ((this: Window, ev: PointerEvent) => any) | null;\n/**\n * Available only in secure contexts.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/pointerrawupdate_event)\n */\ndeclare var onpointerrawupdate: ((this: Window, ev: Event) => any) | null;\n/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/pointerup_event) */\ndeclare var onpointerup: ((this: Window, ev: PointerEvent) => any) | null;\n/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLMediaElement/progress_event) */\ndeclare var onprogress: ((this: Window, ev: ProgressEvent) => any) | null;\n/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLMediaElement/ratechange_event) */\ndeclare var onratechange: ((this: Window, ev: Event) => any) | null;\n/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLFormElement/reset_event) */\ndeclare var onreset: ((this: Window, ev: Event) => any) | null;\n/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLVideoElement/resize_event) */\ndeclare var onresize: ((this: Window, ev: UIEvent) => any) | null;\n/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/scroll_event) */\ndeclare var onscroll: ((this: Window, ev: Event) => any) | null;\n/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/scrollend_event) */\ndeclare var onscrollend: ((this: Window, ev: Event) => any) | null;\n/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/securitypolicyviolation_event) */\ndeclare var onsecuritypolicyviolation: ((this: Window, ev: SecurityPolicyViolationEvent) => any) | null;\n/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLMediaElement/seeked_event) */\ndeclare var onseeked: ((this: Window, ev: Event) => any) | null;\n/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLMediaElement/seeking_event) */\ndeclare var onseeking: ((this: Window, ev: Event) => any) | null;\n/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLInputElement/select_event) */\ndeclare var onselect: ((this: Window, ev: Event) => any) | null;\n/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/selectionchange_event) */\ndeclare var onselectionchange: ((this: Window, ev: Event) => any) | null;\n/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Node/selectstart_event) */\ndeclare var onselectstart: ((this: Window, ev: Event) => any) | null;\n/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLSlotElement/slotchange_event) */\ndeclare var onslotchange: ((this: Window, ev: Event) => any) | null;\n/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLMediaElement/stalled_event) */\ndeclare var onstalled: ((this: Window, ev: Event) => any) | null;\n/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLFormElement/submit_event) */\ndeclare var onsubmit: ((this: Window, ev: SubmitEvent) => any) | null;\n/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLMediaElement/suspend_event) */\ndeclare var onsuspend: ((this: Window, ev: Event) => any) | null;\n/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLMediaElement/timeupdate_event) */\ndeclare var ontimeupdate: ((this: Window, ev: Event) => any) | null;\n/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLElement/toggle_event) */\ndeclare var ontoggle: ((this: Window, ev: ToggleEvent) => any) | null;\n/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/touchcancel_event) */\ndeclare var ontouchcancel: ((this: Window, ev: TouchEvent) => any) | null | undefined;\n/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/touchend_event) */\ndeclare var ontouchend: ((this: Window, ev: TouchEvent) => any) | null | undefined;\n/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/touchmove_event) */\ndeclare var ontouchmove: ((this: Window, ev: TouchEvent) => any) | null | undefined;\n/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/touchstart_event) */\ndeclare var ontouchstart: ((this: Window, ev: TouchEvent) => any) | null | undefined;\n/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/transitioncancel_event) */\ndeclare var ontransitioncancel: ((this: Window, ev: TransitionEvent) => any) | null;\n/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/transitionend_event) */\ndeclare var ontransitionend: ((this: Window, ev: TransitionEvent) => any) | null;\n/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/transitionrun_event) */\ndeclare var ontransitionrun: ((this: Window, ev: TransitionEvent) => any) | null;\n/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/transitionstart_event) */\ndeclare var ontransitionstart: ((this: Window, ev: TransitionEvent) => any) | null;\n/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLMediaElement/volumechange_event) */\ndeclare var onvolumechange: ((this: Window, ev: Event) => any) | null;\n/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLMediaElement/waiting_event) */\ndeclare var onwaiting: ((this: Window, ev: Event) => any) | null;\n/**\n * @deprecated This is a legacy alias of `onanimationend`.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/animationend_event)\n */\ndeclare var onwebkitanimationend: ((this: Window, ev: Event) => any) | null;\n/**\n * @deprecated This is a legacy alias of `onanimationiteration`.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/animationiteration_event)\n */\ndeclare var onwebkitanimationiteration: ((this: Window, ev: Event) => any) | null;\n/**\n * @deprecated This is a legacy alias of `onanimationstart`.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/animationstart_event)\n */\ndeclare var onwebkitanimationstart: ((this: Window, ev: Event) => any) | null;\n/**\n * @deprecated This is a legacy alias of `ontransitionend`.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/transitionend_event)\n */\ndeclare var onwebkittransitionend: ((this: Window, ev: Event) => any) | null;\n/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/wheel_event) */\ndeclare var onwheel: ((this: Window, ev: WheelEvent) => any) | null;\n/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/afterprint_event) */\ndeclare var onafterprint: ((this: Window, ev: Event) => any) | null;\n/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/beforeprint_event) */\ndeclare var onbeforeprint: ((this: Window, ev: Event) => any) | null;\n/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/beforeunload_event) */\ndeclare var onbeforeunload: ((this: Window, ev: BeforeUnloadEvent) => any) | null;\n/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/gamepadconnected_event) */\ndeclare var ongamepadconnected: ((this: Window, ev: GamepadEvent) => any) | null;\n/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/gamepaddisconnected_event) */\ndeclare var ongamepaddisconnected: ((this: Window, ev: GamepadEvent) => any) | null;\n/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/hashchange_event) */\ndeclare var onhashchange: ((this: Window, ev: HashChangeEvent) => any) | null;\n/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/languagechange_event) */\ndeclare var onlanguagechange: ((this: Window, ev: Event) => any) | null;\n/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/message_event) */\ndeclare var onmessage: ((this: Window, ev: MessageEvent) => any) | null;\n/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/messageerror_event) */\ndeclare var onmessageerror: ((this: Window, ev: MessageEvent) => any) | null;\n/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/offline_event) */\ndeclare var onoffline: ((this: Window, ev: Event) => any) | null;\n/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/online_event) */\ndeclare var ononline: ((this: Window, ev: Event) => any) | null;\n/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/pagehide_event) */\ndeclare var onpagehide: ((this: Window, ev: PageTransitionEvent) => any) | null;\n/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/pagereveal_event) */\ndeclare var onpagereveal: ((this: Window, ev: PageRevealEvent) => any) | null;\n/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/pageshow_event) */\ndeclare var onpageshow: ((this: Window, ev: PageTransitionEvent) => any) | null;\n/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/pageswap_event) */\ndeclare var onpageswap: ((this: Window, ev: PageSwapEvent) => any) | null;\n/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/popstate_event) */\ndeclare var onpopstate: ((this: Window, ev: PopStateEvent) => any) | null;\n/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/rejectionhandled_event) */\ndeclare var onrejectionhandled: ((this: Window, ev: PromiseRejectionEvent) => any) | null;\n/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/storage_event) */\ndeclare var onstorage: ((this: Window, ev: StorageEvent) => any) | null;\n/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/unhandledrejection_event) */\ndeclare var onunhandledrejection: ((this: Window, ev: PromiseRejectionEvent) => any) | null;\n/**\n * @deprecated\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/unload_event)\n */\ndeclare var onunload: ((this: Window, ev: Event) => any) | null;\n/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/localStorage) */\ndeclare var localStorage: Storage;\n/**\n * Available only in secure contexts.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/caches)\n */\ndeclare var caches: CacheStorage;\n/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/crossOriginIsolated) */\ndeclare var crossOriginIsolated: boolean;\n/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/crypto) */\ndeclare var crypto: Crypto;\n/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/indexedDB) */\ndeclare var indexedDB: IDBFactory;\n/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/isSecureContext) */\ndeclare var isSecureContext: boolean;\n/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/origin) */\ndeclare var origin: string;\n/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/performance) */\ndeclare var performance: Performance;\n/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/atob) */\ndeclare function atob(data: string): string;\n/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/btoa) */\ndeclare function btoa(data: string): string;\n/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/clearInterval) */\ndeclare function clearInterval(id: number | undefined): void;\n/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/clearTimeout) */\ndeclare function clearTimeout(id: number | undefined): void;\n/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/createImageBitmap) */\ndeclare function createImageBitmap(image: ImageBitmapSource, options?: ImageBitmapOptions): Promise<ImageBitmap>;\ndeclare function createImageBitmap(image: ImageBitmapSource, sx: number, sy: number, sw: number, sh: number, options?: ImageBitmapOptions): Promise<ImageBitmap>;\n/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/fetch) */\ndeclare function fetch(input: RequestInfo | URL, init?: RequestInit): Promise<Response>;\n/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/queueMicrotask) */\ndeclare function queueMicrotask(callback: VoidFunction): void;\n/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/reportError) */\ndeclare function reportError(e: any): void;\n/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/setInterval) */\ndeclare function setInterval(handler: TimerHandler, timeout?: number, ...arguments: any[]): number;\n/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/setTimeout) */\ndeclare function setTimeout(handler: TimerHandler, timeout?: number, ...arguments: any[]): number;\n/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/structuredClone) */\ndeclare function structuredClone<T = any>(value: T, options?: StructuredSerializeOptions): T;\n/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/sessionStorage) */\ndeclare var sessionStorage: Storage;\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 AlgorithmIdentifier = Algorithm | string;\ntype AllowSharedBufferSource = ArrayBufferLike | ArrayBufferView<ArrayBufferLike>;\ntype AutoFill = AutoFillBase | `${OptionalPrefixToken<AutoFillSection>}${OptionalPrefixToken<AutoFillAddressKind>}${AutoFillField}${OptionalPostfixToken<AutoFillCredentialField>}`;\ntype AutoFillField = AutoFillNormalField | `${OptionalPrefixToken<AutoFillContactKind>}${AutoFillContactField}`;\ntype AutoFillSection = `section-${string}`;\ntype Base64URLString = string;\ntype BigInteger = Uint8Array<ArrayBuffer>;\ntype BlobPart = BufferSource | Blob | string;\ntype BodyInit = ReadableStream | XMLHttpRequestBodyInit;\ntype BufferSource = ArrayBufferView<ArrayBuffer> | ArrayBuffer;\ntype COSEAlgorithmIdentifier = number;\ntype CSSKeywordish = string | CSSKeywordValue;\ntype CSSNumberish = number | CSSNumericValue;\ntype CSSPerspectiveValue = CSSNumericValue | CSSKeywordish;\ntype CSSUnparsedSegment = string | CSSVariableReferenceValue;\ntype CanvasImageSource = HTMLOrSVGImageElement | HTMLVideoElement | HTMLCanvasElement | ImageBitmap | OffscreenCanvas | VideoFrame;\ntype ClipboardItemData = Promise<string | Blob>;\ntype ClipboardItems = ClipboardItem[];\ntype ConstrainBoolean = boolean | ConstrainBooleanParameters;\ntype ConstrainDOMString = string | string[] | ConstrainDOMStringParameters;\ntype ConstrainDouble = number | ConstrainDoubleRange;\ntype ConstrainULong = number | ConstrainULongRange;\ntype CookieList = CookieListItem[];\ntype DOMHighResTimeStamp = number;\ntype EpochTimeStamp = number;\ntype EventListenerOrEventListenerObject = EventListener | EventListenerObject;\ntype FileSystemWriteChunkType = BufferSource | Blob | string | WriteParams;\ntype Float32List = Float32Array<ArrayBufferLike> | GLfloat[];\ntype FormDataEntryValue = File | string;\ntype GLbitfield = number;\ntype GLboolean = boolean;\ntype GLclampf = number;\ntype GLenum = number;\ntype GLfloat = number;\ntype GLint = number;\ntype GLint64 = number;\ntype GLintptr = number;\ntype GLsizei = number;\ntype GLsizeiptr = number;\ntype GLuint = number;\ntype GLuint64 = number;\ntype HTMLOrSVGImageElement = HTMLImageElement | SVGImageElement;\ntype HTMLOrSVGScriptElement = HTMLScriptElement | SVGScriptElement;\ntype HashAlgorithmIdentifier = AlgorithmIdentifier;\ntype HeadersInit = [string, string][] | Record<string, string> | Headers;\ntype IDBValidKey = number | string | Date | BufferSource | IDBValidKey[];\ntype ImageBitmapSource = CanvasImageSource | Blob | ImageData;\ntype ImageBufferSource = AllowSharedBufferSource | ReadableStream;\ntype ImageDataArray = Uint8ClampedArray<ArrayBuffer>;\ntype Int32List = Int32Array<ArrayBufferLike> | GLint[];\ntype LineAndPositionSetting = number | AutoKeyword;\ntype MediaProvider = MediaStream | MediaSource | Blob;\ntype MessageEventSource = WindowProxy | MessagePort | ServiceWorker;\ntype MutationRecordType = "attributes" | "characterData" | "childList";\ntype NamedCurve = string;\ntype OffscreenRenderingContext = OffscreenCanvasRenderingContext2D | ImageBitmapRenderingContext | WebGLRenderingContext | WebGL2RenderingContext;\ntype OnBeforeUnloadEventHandler = OnBeforeUnloadEventHandlerNonNull | null;\ntype OnErrorEventHandler = OnErrorEventHandlerNonNull | null;\ntype OptionalPostfixToken<T extends string> = ` ${T}` | "";\ntype OptionalPrefixToken<T extends string> = `${T} ` | "";\ntype PerformanceEntryList = PerformanceEntry[];\ntype PublicKeyCredentialClientCapabilities = Record<string, boolean>;\ntype PublicKeyCredentialJSON = any;\ntype RTCRtpTransform = RTCRtpScriptTransform;\ntype ReadableStreamController<T> = ReadableStreamDefaultController<T> | ReadableByteStreamController;\ntype ReadableStreamReadResult<T> = ReadableStreamReadValueResult<T> | ReadableStreamReadDoneResult<T>;\ntype ReadableStreamReader<T> = ReadableStreamDefaultReader<T> | ReadableStreamBYOBReader;\ntype RenderingContext = CanvasRenderingContext2D | ImageBitmapRenderingContext | WebGLRenderingContext | WebGL2RenderingContext;\ntype ReportList = Report[];\ntype RequestInfo = Request | string;\ntype TexImageSource = ImageBitmap | ImageData | HTMLImageElement | HTMLCanvasElement | HTMLVideoElement | OffscreenCanvas | VideoFrame;\ntype TimerHandler = string | Function;\ntype Transferable = OffscreenCanvas | ImageBitmap | MessagePort | MediaSourceHandle | ReadableStream | WritableStream | TransformStream | AudioData | VideoFrame | RTCDataChannel | ArrayBuffer;\ntype Uint32List = Uint32Array<ArrayBufferLike> | GLuint[];\ntype VibratePattern = number | number[];\ntype WindowProxy = Window;\ntype XMLHttpRequestBodyInit = Blob | BufferSource | FormData | URLSearchParams | string;\ntype AlignSetting = "center" | "end" | "left" | "right" | "start";\ntype AlphaOption = "discard" | "keep";\ntype AnimationPlayState = "finished" | "idle" | "paused" | "running";\ntype AnimationReplaceState = "active" | "persisted" | "removed";\ntype AppendMode = "segments" | "sequence";\ntype AttestationConveyancePreference = "direct" | "enterprise" | "indirect" | "none";\ntype AudioContextLatencyCategory = "balanced" | "interactive" | "playback";\ntype AudioContextState = "closed" | "interrupted" | "running" | "suspended";\ntype AudioSampleFormat = "f32" | "f32-planar" | "s16" | "s16-planar" | "s32" | "s32-planar" | "u8" | "u8-planar";\ntype AuthenticatorAttachment = "cross-platform" | "platform";\ntype AuthenticatorTransport = "ble" | "hybrid" | "internal" | "nfc" | "usb";\ntype AutoFillAddressKind = "billing" | "shipping";\ntype AutoFillBase = "" | "off" | "on";\ntype AutoFillContactField = "email" | "tel" | "tel-area-code" | "tel-country-code" | "tel-extension" | "tel-local" | "tel-local-prefix" | "tel-local-suffix" | "tel-national";\ntype AutoFillContactKind = "home" | "mobile" | "work";\ntype AutoFillCredentialField = "webauthn";\ntype AutoFillNormalField = "additional-name" | "address-level1" | "address-level2" | "address-level3" | "address-level4" | "address-line1" | "address-line2" | "address-line3" | "bday-day" | "bday-month" | "bday-year" | "cc-csc" | "cc-exp" | "cc-exp-month" | "cc-exp-year" | "cc-family-name" | "cc-given-name" | "cc-name" | "cc-number" | "cc-type" | "country" | "country-name" | "current-password" | "family-name" | "given-name" | "honorific-prefix" | "honorific-suffix" | "name" | "new-password" | "one-time-code" | "organization" | "postal-code" | "street-address" | "transaction-amount" | "transaction-currency" | "username";\ntype AutoKeyword = "auto";\ntype AutomationRate = "a-rate" | "k-rate";\ntype AvcBitstreamFormat = "annexb" | "avc";\ntype BinaryType = "arraybuffer" | "blob";\ntype BiquadFilterType = "allpass" | "bandpass" | "highpass" | "highshelf" | "lowpass" | "lowshelf" | "notch" | "peaking";\ntype BitrateMode = "constant" | "variable";\ntype CSSMathOperator = "clamp" | "invert" | "max" | "min" | "negate" | "product" | "sum";\ntype CSSNumericBaseType = "angle" | "flex" | "frequency" | "length" | "percent" | "resolution" | "time";\ntype CanPlayTypeResult = "" | "maybe" | "probably";\ntype CanvasDirection = "inherit" | "ltr" | "rtl";\ntype CanvasFillRule = "evenodd" | "nonzero";\ntype CanvasFontKerning = "auto" | "none" | "normal";\ntype CanvasFontStretch = "condensed" | "expanded" | "extra-condensed" | "extra-expanded" | "normal" | "semi-condensed" | "semi-expanded" | "ultra-condensed" | "ultra-expanded";\ntype CanvasFontVariantCaps = "all-petite-caps" | "all-small-caps" | "normal" | "petite-caps" | "small-caps" | "titling-caps" | "unicase";\ntype CanvasLineCap = "butt" | "round" | "square";\ntype CanvasLineJoin = "bevel" | "miter" | "round";\ntype CanvasTextAlign = "center" | "end" | "left" | "right" | "start";\ntype CanvasTextBaseline = "alphabetic" | "bottom" | "hanging" | "ideographic" | "middle" | "top";\ntype CanvasTextRendering = "auto" | "geometricPrecision" | "optimizeLegibility" | "optimizeSpeed";\ntype ChannelCountMode = "clamped-max" | "explicit" | "max";\ntype ChannelInterpretation = "discrete" | "speakers";\ntype ClientTypes = "all" | "sharedworker" | "window" | "worker";\ntype CodecState = "closed" | "configured" | "unconfigured";\ntype ColorGamut = "p3" | "rec2020" | "srgb";\ntype ColorSpaceConversion = "default" | "none";\ntype CompositeOperation = "accumulate" | "add" | "replace";\ntype CompositeOperationOrAuto = "accumulate" | "add" | "auto" | "replace";\ntype CompressionFormat = "deflate" | "deflate-raw" | "gzip";\ntype CookieSameSite = "lax" | "none" | "strict";\ntype CredentialMediationRequirement = "conditional" | "optional" | "required" | "silent";\ntype DOMParserSupportedType = "application/xhtml+xml" | "application/xml" | "image/svg+xml" | "text/html" | "text/xml";\ntype DirectionSetting = "" | "lr" | "rl";\ntype DisplayCaptureSurfaceType = "browser" | "monitor" | "window";\ntype DistanceModelType = "exponential" | "inverse" | "linear";\ntype DocumentReadyState = "complete" | "interactive" | "loading";\ntype DocumentVisibilityState = "hidden" | "visible";\ntype EncodedAudioChunkType = "delta" | "key";\ntype EncodedVideoChunkType = "delta" | "key";\ntype EndOfStreamError = "decode" | "network";\ntype EndingType = "native" | "transparent";\ntype FileSystemHandleKind = "directory" | "file";\ntype FillLightMode = "auto" | "flash" | "off";\ntype FillMode = "auto" | "backwards" | "both" | "forwards" | "none";\ntype FontDisplay = "auto" | "block" | "fallback" | "optional" | "swap";\ntype FontFaceLoadStatus = "error" | "loaded" | "loading" | "unloaded";\ntype FontFaceSetLoadStatus = "loaded" | "loading";\ntype FullscreenNavigationUI = "auto" | "hide" | "show";\ntype GamepadHapticEffectType = "dual-rumble" | "trigger-rumble";\ntype GamepadHapticsResult = "complete" | "preempted";\ntype GamepadMappingType = "" | "standard" | "xr-standard";\ntype GlobalCompositeOperation = "color" | "color-burn" | "color-dodge" | "copy" | "darken" | "destination-atop" | "destination-in" | "destination-out" | "destination-over" | "difference" | "exclusion" | "hard-light" | "hue" | "lighten" | "lighter" | "luminosity" | "multiply" | "overlay" | "saturation" | "screen" | "soft-light" | "source-atop" | "source-in" | "source-out" | "source-over" | "xor";\ntype HardwareAcceleration = "no-preference" | "prefer-hardware" | "prefer-software";\ntype HdrMetadataType = "smpteSt2086" | "smpteSt2094-10" | "smpteSt2094-40";\ntype HighlightType = "grammar-error" | "highlight" | "spelling-error";\ntype IDBCursorDirection = "next" | "nextunique" | "prev" | "prevunique";\ntype IDBRequestReadyState = "done" | "pending";\ntype IDBTransactionDurability = "default" | "relaxed" | "strict";\ntype IDBTransactionMode = "readonly" | "readwrite" | "versionchange";\ntype ImageOrientation = "flipY" | "from-image" | "none";\ntype ImageSmoothingQuality = "high" | "low" | "medium";\ntype InsertPosition = "afterbegin" | "afterend" | "beforebegin" | "beforeend";\ntype IterationCompositeOperation = "accumulate" | "replace";\ntype KeyFormat = "jwk" | "pkcs8" | "raw" | "spki";\ntype KeyType = "private" | "public" | "secret";\ntype KeyUsage = "decrypt" | "deriveBits" | "deriveKey" | "encrypt" | "sign" | "unwrapKey" | "verify" | "wrapKey";\ntype LatencyMode = "quality" | "realtime";\ntype LineAlignSetting = "center" | "end" | "start";\ntype LockMode = "exclusive" | "shared";\ntype LoginStatus = "logged-in" | "logged-out";\ntype MIDIPortConnectionState = "closed" | "open" | "pending";\ntype MIDIPortDeviceState = "connected" | "disconnected";\ntype MIDIPortType = "input" | "output";\ntype MediaDecodingType = "file" | "media-source" | "webrtc";\ntype MediaDeviceKind = "audioinput" | "audiooutput" | "videoinput";\ntype MediaEncodingType = "record" | "webrtc";\ntype MediaKeyMessageType = "individualization-request" | "license-release" | "license-renewal" | "license-request";\ntype MediaKeySessionClosedReason = "closed-by-application" | "hardware-context-reset" | "internal-error" | "release-acknowledged" | "resource-evicted";\ntype MediaKeySessionType = "persistent-license" | "temporary";\ntype MediaKeyStatus = "expired" | "internal-error" | "output-downscaled" | "output-restricted" | "released" | "status-pending" | "usable" | "usable-in-future";\ntype MediaKeysRequirement = "not-allowed" | "optional" | "required";\ntype MediaSessionAction = "nexttrack" | "pause" | "play" | "previoustrack" | "seekbackward" | "seekforward" | "seekto" | "skipad" | "stop";\ntype MediaSessionPlaybackState = "none" | "paused" | "playing";\ntype MediaStreamTrackState = "ended" | "live";\ntype NavigationTimingType = "back_forward" | "navigate" | "prerender" | "reload";\ntype NavigationType = "push" | "reload" | "replace" | "traverse";\ntype NotificationDirection = "auto" | "ltr" | "rtl";\ntype NotificationPermission = "default" | "denied" | "granted";\ntype OffscreenRenderingContextId = "2d" | "bitmaprenderer" | "webgl" | "webgl2" | "webgpu";\ntype OpusBitstreamFormat = "ogg" | "opus";\ntype OrientationType = "landscape-primary" | "landscape-secondary" | "portrait-primary" | "portrait-secondary";\ntype OscillatorType = "custom" | "sawtooth" | "sine" | "square" | "triangle";\ntype OverSampleType = "2x" | "4x" | "none";\ntype PanningModelType = "HRTF" | "equalpower";\ntype PaymentComplete = "fail" | "success" | "unknown";\ntype PaymentShippingType = "delivery" | "pickup" | "shipping";\ntype PermissionName = "camera" | "geolocation" | "microphone" | "midi" | "notifications" | "persistent-storage" | "push" | "screen-wake-lock" | "storage-access";\ntype PermissionState = "denied" | "granted" | "prompt";\ntype PlaybackDirection = "alternate" | "alternate-reverse" | "normal" | "reverse";\ntype PositionAlignSetting = "auto" | "center" | "line-left" | "line-right";\ntype PredefinedColorSpace = "display-p3" | "srgb";\ntype PremultiplyAlpha = "default" | "none" | "premultiply";\ntype PresentationStyle = "attachment" | "inline" | "unspecified";\ntype PublicKeyCredentialType = "public-key";\ntype PushEncryptionKeyName = "auth" | "p256dh";\ntype RTCBundlePolicy = "balanced" | "max-bundle" | "max-compat";\ntype RTCDataChannelState = "closed" | "closing" | "connecting" | "open";\ntype RTCDegradationPreference = "balanced" | "maintain-framerate" | "maintain-resolution";\ntype RTCDtlsRole = "client" | "server" | "unknown";\ntype RTCDtlsTransportState = "closed" | "connected" | "connecting" | "failed" | "new";\ntype RTCEncodedVideoFrameType = "delta" | "empty" | "key";\ntype RTCErrorDetailType = "data-channel-failure" | "dtls-failure" | "fingerprint-failure" | "hardware-encoder-error" | "hardware-encoder-not-available" | "sctp-failure" | "sdp-syntax-error";\ntype RTCIceCandidateType = "host" | "prflx" | "relay" | "srflx";\ntype RTCIceComponent = "rtcp" | "rtp";\ntype RTCIceConnectionState = "checking" | "closed" | "completed" | "connected" | "disconnected" | "failed" | "new";\ntype RTCIceGathererState = "complete" | "gathering" | "new";\ntype RTCIceGatheringState = "complete" | "gathering" | "new";\ntype RTCIceProtocol = "tcp" | "udp";\ntype RTCIceRole = "controlled" | "controlling" | "unknown";\ntype RTCIceTcpCandidateType = "active" | "passive" | "so";\ntype RTCIceTransportPolicy = "all" | "relay";\ntype RTCIceTransportState = "checking" | "closed" | "completed" | "connected" | "disconnected" | "failed" | "new";\ntype RTCPeerConnectionState = "closed" | "connected" | "connecting" | "disconnected" | "failed" | "new";\ntype RTCPriorityType = "high" | "low" | "medium" | "very-low";\ntype RTCQualityLimitationReason = "bandwidth" | "cpu" | "none" | "other";\ntype RTCRtcpMuxPolicy = "require";\ntype RTCRtpTransceiverDirection = "inactive" | "recvonly" | "sendonly" | "sendrecv" | "stopped";\ntype RTCSctpTransportState = "closed" | "connected" | "connecting";\ntype RTCSdpType = "answer" | "offer" | "pranswer" | "rollback";\ntype RTCSignalingState = "closed" | "have-local-offer" | "have-local-pranswer" | "have-remote-offer" | "have-remote-pranswer" | "stable";\ntype RTCStatsIceCandidatePairState = "failed" | "frozen" | "in-progress" | "inprogress" | "succeeded" | "waiting";\ntype RTCStatsType = "candidate-pair" | "certificate" | "codec" | "data-channel" | "inbound-rtp" | "local-candidate" | "media-playout" | "media-source" | "outbound-rtp" | "peer-connection" | "remote-candidate" | "remote-inbound-rtp" | "remote-outbound-rtp" | "transport";\ntype ReadableStreamReaderMode = "byob";\ntype ReadableStreamType = "bytes";\ntype ReadyState = "closed" | "ended" | "open";\ntype RecordingState = "inactive" | "paused" | "recording";\ntype RedEyeReduction = "always" | "controllable" | "never";\ntype ReferrerPolicy = "" | "no-referrer" | "no-referrer-when-downgrade" | "origin" | "origin-when-cross-origin" | "same-origin" | "strict-origin" | "strict-origin-when-cross-origin" | "unsafe-url";\ntype RemotePlaybackState = "connected" | "connecting" | "disconnected";\ntype RequestCache = "default" | "force-cache" | "no-cache" | "no-store" | "only-if-cached" | "reload";\ntype RequestCredentials = "include" | "omit" | "same-origin";\ntype RequestDestination = "" | "audio" | "audioworklet" | "document" | "embed" | "font" | "frame" | "iframe" | "image" | "manifest" | "object" | "paintworklet" | "report" | "script" | "sharedworker" | "style" | "track" | "video" | "worker" | "xslt";\ntype RequestMode = "cors" | "navigate" | "no-cors" | "same-origin";\ntype RequestPriority = "auto" | "high" | "low";\ntype RequestRedirect = "error" | "follow" | "manual";\ntype ResidentKeyRequirement = "discouraged" | "preferred" | "required";\ntype ResizeObserverBoxOptions = "border-box" | "content-box" | "device-pixel-content-box";\ntype ResizeQuality = "high" | "low" | "medium" | "pixelated";\ntype ResponseType = "basic" | "cors" | "default" | "error" | "opaque" | "opaqueredirect";\ntype ScrollBehavior = "auto" | "instant" | "smooth";\ntype ScrollLogicalPosition = "center" | "end" | "nearest" | "start";\ntype ScrollRestoration = "auto" | "manual";\ntype ScrollSetting = "" | "up";\ntype SecurityPolicyViolationEventDisposition = "enforce" | "report";\ntype SelectionMode = "end" | "preserve" | "select" | "start";\ntype ServiceWorkerState = "activated" | "activating" | "installed" | "installing" | "parsed" | "redundant";\ntype ServiceWorkerUpdateViaCache = "all" | "imports" | "none";\ntype ShadowRootMode = "closed" | "open";\ntype SlotAssignmentMode = "manual" | "named";\ntype SpeechSynthesisErrorCode = "audio-busy" | "audio-hardware" | "canceled" | "interrupted" | "invalid-argument" | "language-unavailable" | "network" | "not-allowed" | "synthesis-failed" | "synthesis-unavailable" | "text-too-long" | "voice-unavailable";\ntype TextTrackKind = "captions" | "chapters" | "descriptions" | "metadata" | "subtitles";\ntype TextTrackMode = "disabled" | "hidden" | "showing";\ntype TouchType = "direct" | "stylus";\ntype TransferFunction = "hlg" | "pq" | "srgb";\ntype UserVerificationRequirement = "discouraged" | "preferred" | "required";\ntype VideoColorPrimaries = "bt470bg" | "bt709" | "smpte170m";\ntype VideoEncoderBitrateMode = "constant" | "quantizer" | "variable";\ntype VideoFacingModeEnum = "environment" | "left" | "right" | "user";\ntype VideoMatrixCoefficients = "bt470bg" | "bt709" | "rgb" | "smpte170m";\ntype VideoPixelFormat = "BGRA" | "BGRX" | "I420" | "I420A" | "I422" | "I444" | "NV12" | "RGBA" | "RGBX";\ntype VideoTransferCharacteristics = "bt709" | "iec61966-2-1" | "smpte170m";\ntype WakeLockType = "screen";\ntype WebGLPowerPreference = "default" | "high-performance" | "low-power";\ntype WebTransportCongestionControl = "default" | "low-latency" | "throughput";\ntype WebTransportErrorSource = "session" | "stream";\ntype WorkerType = "classic" | "module";\ntype WriteCommandType = "seek" | "truncate" | "write";\ntype XMLHttpRequestResponseType = "" | "arraybuffer" | "blob" | "document" | "json" | "text";\n',gi["lib.dom.iterable.d.ts"]='/*! *****************************************************************************\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/// <reference no-default-lib="true"/>\n\n/////////////////////////////\n/// Window Iterable APIs\n/////////////////////////////\n\ninterface AudioParam {\n /**\n * The **`setValueCurveAtTime()`** method of the following a curve defined by a list of values.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioParam/setValueCurveAtTime)\n */\n setValueCurveAtTime(values: Iterable<number>, startTime: number, duration: number): AudioParam;\n}\n\ninterface AudioParamMap extends ReadonlyMap<string, AudioParam> {\n}\n\ninterface BaseAudioContext {\n /**\n * The **`createIIRFilter()`** method of the BaseAudioContext interface creates an IIRFilterNode, which represents a general **infinite impulse response** (IIR) filter which can be configured to serve as various types of filter.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/BaseAudioContext/createIIRFilter)\n */\n createIIRFilter(feedforward: Iterable<number>, feedback: Iterable<number>): IIRFilterNode;\n /**\n * The `createPeriodicWave()` method of the BaseAudioContext interface is used to create a PeriodicWave.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/BaseAudioContext/createPeriodicWave)\n */\n createPeriodicWave(real: Iterable<number>, imag: Iterable<number>, constraints?: PeriodicWaveConstraints): PeriodicWave;\n}\n\ninterface CSSKeyframesRule {\n [Symbol.iterator](): ArrayIterator<CSSKeyframeRule>;\n}\n\ninterface CSSNumericArray {\n [Symbol.iterator](): ArrayIterator<CSSNumericValue>;\n entries(): ArrayIterator<[number, CSSNumericValue]>;\n keys(): ArrayIterator<number>;\n values(): ArrayIterator<CSSNumericValue>;\n}\n\ninterface CSSRuleList {\n [Symbol.iterator](): ArrayIterator<CSSRule>;\n}\n\ninterface CSSStyleDeclaration {\n [Symbol.iterator](): ArrayIterator<string>;\n}\n\ninterface CSSTransformValue {\n [Symbol.iterator](): ArrayIterator<CSSTransformComponent>;\n entries(): ArrayIterator<[number, CSSTransformComponent]>;\n keys(): ArrayIterator<number>;\n values(): ArrayIterator<CSSTransformComponent>;\n}\n\ninterface CSSUnparsedValue {\n [Symbol.iterator](): ArrayIterator<CSSUnparsedSegment>;\n entries(): ArrayIterator<[number, CSSUnparsedSegment]>;\n keys(): ArrayIterator<number>;\n values(): ArrayIterator<CSSUnparsedSegment>;\n}\n\ninterface Cache {\n /**\n * The **`addAll()`** method of the Cache interface takes an array of URLs, retrieves them, and adds the resulting response objects to the given cache.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Cache/addAll)\n */\n addAll(requests: Iterable<RequestInfo>): Promise<void>;\n}\n\ninterface CanvasPath {\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/roundRect) */\n roundRect(x: number, y: number, w: number, h: number, radii?: number | DOMPointInit | Iterable<number | DOMPointInit>): void;\n}\n\ninterface CanvasPathDrawingStyles {\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/setLineDash) */\n setLineDash(segments: Iterable<number>): void;\n}\n\ninterface CookieStoreManager {\n /**\n * The **`subscribe()`** method of the CookieStoreManager interface subscribes a ServiceWorkerRegistration to cookie change events.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CookieStoreManager/subscribe)\n */\n subscribe(subscriptions: Iterable<CookieStoreGetOptions>): Promise<void>;\n /**\n * The **`unsubscribe()`** method of the CookieStoreManager interface stops the ServiceWorkerRegistration from receiving previously subscribed events.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CookieStoreManager/unsubscribe)\n */\n unsubscribe(subscriptions: Iterable<CookieStoreGetOptions>): Promise<void>;\n}\n\ninterface CustomStateSet extends Set<string> {\n}\n\ninterface DOMRectList {\n [Symbol.iterator](): ArrayIterator<DOMRect>;\n}\n\ninterface DOMStringList {\n [Symbol.iterator](): ArrayIterator<string>;\n}\n\ninterface DOMTokenList {\n [Symbol.iterator](): ArrayIterator<string>;\n entries(): ArrayIterator<[number, string]>;\n keys(): ArrayIterator<number>;\n values(): ArrayIterator<string>;\n}\n\ninterface DataTransferItemList {\n [Symbol.iterator](): ArrayIterator<DataTransferItem>;\n}\n\ninterface EventCounts extends ReadonlyMap<string, number> {\n}\n\ninterface FileList {\n [Symbol.iterator](): ArrayIterator<File>;\n}\n\ninterface FontFaceSet extends Set<FontFace> {\n}\n\ninterface FormDataIterator<T> extends IteratorObject<T, BuiltinIteratorReturn, unknown> {\n [Symbol.iterator](): FormDataIterator<T>;\n}\n\ninterface FormData {\n [Symbol.iterator](): FormDataIterator<[string, FormDataEntryValue]>;\n /** Returns an array of key, value pairs for every entry in the list. */\n entries(): FormDataIterator<[string, FormDataEntryValue]>;\n /** Returns a list of keys in the list. */\n keys(): FormDataIterator<string>;\n /** Returns a list of values in the list. */\n values(): FormDataIterator<FormDataEntryValue>;\n}\n\ninterface HTMLAllCollection {\n [Symbol.iterator](): ArrayIterator<Element>;\n}\n\ninterface HTMLCollectionBase {\n [Symbol.iterator](): ArrayIterator<Element>;\n}\n\ninterface HTMLCollectionOf<T extends Element> {\n [Symbol.iterator](): ArrayIterator<T>;\n}\n\ninterface HTMLFormElement {\n [Symbol.iterator](): ArrayIterator<Element>;\n}\n\ninterface HTMLSelectElement {\n [Symbol.iterator](): ArrayIterator<HTMLOptionElement>;\n}\n\ninterface HeadersIterator<T> extends IteratorObject<T, BuiltinIteratorReturn, unknown> {\n [Symbol.iterator](): HeadersIterator<T>;\n}\n\ninterface Headers {\n [Symbol.iterator](): HeadersIterator<[string, string]>;\n /** Returns an iterator allowing to go through all key/value pairs contained in this object. */\n entries(): HeadersIterator<[string, string]>;\n /** Returns an iterator allowing to go through all keys of the key/value pairs contained in this object. */\n keys(): HeadersIterator<string>;\n /** Returns an iterator allowing to go through all values of the key/value pairs contained in this object. */\n values(): HeadersIterator<string>;\n}\n\ninterface Highlight extends Set<AbstractRange> {\n}\n\ninterface HighlightRegistry extends Map<string, Highlight> {\n}\n\ninterface IDBDatabase {\n /**\n * The **`transaction`** method of the IDBDatabase interface immediately returns a transaction object (IDBTransaction) containing the IDBTransaction.objectStore method, which you can use to access your object store.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBDatabase/transaction)\n */\n transaction(storeNames: string | Iterable<string>, mode?: IDBTransactionMode, options?: IDBTransactionOptions): IDBTransaction;\n}\n\ninterface IDBObjectStore {\n /**\n * The **`createIndex()`** method of the field/column defining a new data point for each database record to contain.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBObjectStore/createIndex)\n */\n createIndex(name: string, keyPath: string | Iterable<string>, options?: IDBIndexParameters): IDBIndex;\n}\n\ninterface ImageTrackList {\n [Symbol.iterator](): ArrayIterator<ImageTrack>;\n}\n\ninterface MIDIInputMap extends ReadonlyMap<string, MIDIInput> {\n}\n\ninterface MIDIOutput {\n /**\n * The **`send()`** method of the MIDIOutput interface queues messages for the corresponding MIDI port.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/MIDIOutput/send)\n */\n send(data: Iterable<number>, timestamp?: DOMHighResTimeStamp): void;\n}\n\ninterface MIDIOutputMap extends ReadonlyMap<string, MIDIOutput> {\n}\n\ninterface MediaKeyStatusMapIterator<T> extends IteratorObject<T, BuiltinIteratorReturn, unknown> {\n [Symbol.iterator](): MediaKeyStatusMapIterator<T>;\n}\n\ninterface MediaKeyStatusMap {\n [Symbol.iterator](): MediaKeyStatusMapIterator<[BufferSource, MediaKeyStatus]>;\n entries(): MediaKeyStatusMapIterator<[BufferSource, MediaKeyStatus]>;\n keys(): MediaKeyStatusMapIterator<BufferSource>;\n values(): MediaKeyStatusMapIterator<MediaKeyStatus>;\n}\n\ninterface MediaList {\n [Symbol.iterator](): ArrayIterator<string>;\n}\n\ninterface MessageEvent<T = any> {\n /** @deprecated */\n initMessageEvent(type: string, bubbles?: boolean, cancelable?: boolean, data?: any, origin?: string, lastEventId?: string, source?: MessageEventSource | null, ports?: Iterable<MessagePort>): void;\n}\n\ninterface MimeTypeArray {\n [Symbol.iterator](): ArrayIterator<MimeType>;\n}\n\ninterface NamedNodeMap {\n [Symbol.iterator](): ArrayIterator<Attr>;\n}\n\ninterface Navigator {\n /**\n * The **`requestMediaKeySystemAccess()`** method of the Navigator interface returns a Promise which delivers a MediaKeySystemAccess object that can be used to access a particular media key system, which can in turn be used to create keys for decrypting a media stream.\n * Available only in secure contexts.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Navigator/requestMediaKeySystemAccess)\n */\n requestMediaKeySystemAccess(keySystem: string, supportedConfigurations: Iterable<MediaKeySystemConfiguration>): Promise<MediaKeySystemAccess>;\n /**\n * The **`vibrate()`** method of the Navigator interface pulses the vibration hardware on the device, if such hardware exists.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Navigator/vibrate)\n */\n vibrate(pattern: Iterable<number>): boolean;\n}\n\ninterface NodeList {\n [Symbol.iterator](): ArrayIterator<Node>;\n /** Returns an array of key, value pairs for every entry in the list. */\n entries(): ArrayIterator<[number, Node]>;\n /** Returns an list of keys in the list. */\n keys(): ArrayIterator<number>;\n /** Returns an list of values in the list. */\n values(): ArrayIterator<Node>;\n}\n\ninterface NodeListOf<TNode extends Node> {\n [Symbol.iterator](): ArrayIterator<TNode>;\n /** Returns an array of key, value pairs for every entry in the list. */\n entries(): ArrayIterator<[number, TNode]>;\n /** Returns an list of keys in the list. */\n keys(): ArrayIterator<number>;\n /** Returns an list of values in the list. */\n values(): ArrayIterator<TNode>;\n}\n\ninterface Plugin {\n [Symbol.iterator](): ArrayIterator<MimeType>;\n}\n\ninterface PluginArray {\n [Symbol.iterator](): ArrayIterator<Plugin>;\n}\n\ninterface RTCRtpTransceiver {\n /**\n * The **`setCodecPreferences()`** method of the RTCRtpTransceiver interface is used to set the codecs that the transceiver allows for decoding _received_ data, in order of decreasing preference.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCRtpTransceiver/setCodecPreferences)\n */\n setCodecPreferences(codecs: Iterable<RTCRtpCodec>): void;\n}\n\ninterface RTCStatsReport extends ReadonlyMap<string, any> {\n}\n\ninterface SVGLengthList {\n [Symbol.iterator](): ArrayIterator<SVGLength>;\n}\n\ninterface SVGNumberList {\n [Symbol.iterator](): ArrayIterator<SVGNumber>;\n}\n\ninterface SVGPointList {\n [Symbol.iterator](): ArrayIterator<DOMPoint>;\n}\n\ninterface SVGStringList {\n [Symbol.iterator](): ArrayIterator<string>;\n}\n\ninterface SVGTransformList {\n [Symbol.iterator](): ArrayIterator<SVGTransform>;\n}\n\ninterface SourceBufferList {\n [Symbol.iterator](): ArrayIterator<SourceBuffer>;\n}\n\ninterface SpeechRecognitionResult {\n [Symbol.iterator](): ArrayIterator<SpeechRecognitionAlternative>;\n}\n\ninterface SpeechRecognitionResultList {\n [Symbol.iterator](): ArrayIterator<SpeechRecognitionResult>;\n}\n\ninterface StylePropertyMapReadOnlyIterator<T> extends IteratorObject<T, BuiltinIteratorReturn, unknown> {\n [Symbol.iterator](): StylePropertyMapReadOnlyIterator<T>;\n}\n\ninterface StylePropertyMapReadOnly {\n [Symbol.iterator](): StylePropertyMapReadOnlyIterator<[string, Iterable<CSSStyleValue>]>;\n entries(): StylePropertyMapReadOnlyIterator<[string, Iterable<CSSStyleValue>]>;\n keys(): StylePropertyMapReadOnlyIterator<string>;\n values(): StylePropertyMapReadOnlyIterator<Iterable<CSSStyleValue>>;\n}\n\ninterface StyleSheetList {\n [Symbol.iterator](): ArrayIterator<CSSStyleSheet>;\n}\n\ninterface SubtleCrypto {\n /**\n * The **`deriveKey()`** method of the SubtleCrypto interface can be used to derive a secret key from a master key.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SubtleCrypto/deriveKey)\n */\n deriveKey(algorithm: AlgorithmIdentifier | EcdhKeyDeriveParams | HkdfParams | Pbkdf2Params, baseKey: CryptoKey, derivedKeyType: AlgorithmIdentifier | AesDerivedKeyParams | HmacImportParams | HkdfParams | Pbkdf2Params, extractable: boolean, keyUsages: Iterable<KeyUsage>): Promise<CryptoKey>;\n /**\n * The **`generateKey()`** method of the SubtleCrypto interface is used to generate a new key (for symmetric algorithms) or key pair (for public-key algorithms).\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SubtleCrypto/generateKey)\n */\n generateKey(algorithm: "Ed25519" | { name: "Ed25519" }, extractable: boolean, keyUsages: ReadonlyArray<"sign" | "verify">): Promise<CryptoKeyPair>;\n generateKey(algorithm: RsaHashedKeyGenParams | EcKeyGenParams, extractable: boolean, keyUsages: ReadonlyArray<KeyUsage>): Promise<CryptoKeyPair>;\n generateKey(algorithm: AesKeyGenParams | HmacKeyGenParams | Pbkdf2Params, extractable: boolean, keyUsages: ReadonlyArray<KeyUsage>): Promise<CryptoKey>;\n generateKey(algorithm: AlgorithmIdentifier, extractable: boolean, keyUsages: Iterable<KeyUsage>): Promise<CryptoKeyPair | CryptoKey>;\n /**\n * The **`importKey()`** method of the SubtleCrypto interface imports a key: that is, it takes as input a key in an external, portable format and gives you a CryptoKey object that you can use in the Web Crypto API.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SubtleCrypto/importKey)\n */\n importKey(format: "jwk", keyData: JsonWebKey, algorithm: AlgorithmIdentifier | RsaHashedImportParams | EcKeyImportParams | HmacImportParams | AesKeyAlgorithm, extractable: boolean, keyUsages: ReadonlyArray<KeyUsage>): Promise<CryptoKey>;\n importKey(format: Exclude<KeyFormat, "jwk">, keyData: BufferSource, algorithm: AlgorithmIdentifier | RsaHashedImportParams | EcKeyImportParams | HmacImportParams | AesKeyAlgorithm, extractable: boolean, keyUsages: Iterable<KeyUsage>): Promise<CryptoKey>;\n /**\n * The **`unwrapKey()`** method of the SubtleCrypto interface \'unwraps\' a key.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SubtleCrypto/unwrapKey)\n */\n unwrapKey(format: KeyFormat, wrappedKey: BufferSource, unwrappingKey: CryptoKey, unwrapAlgorithm: AlgorithmIdentifier | RsaOaepParams | AesCtrParams | AesCbcParams | AesGcmParams, unwrappedKeyAlgorithm: AlgorithmIdentifier | RsaHashedImportParams | EcKeyImportParams | HmacImportParams | AesKeyAlgorithm, extractable: boolean, keyUsages: Iterable<KeyUsage>): Promise<CryptoKey>;\n}\n\ninterface TextTrackCueList {\n [Symbol.iterator](): ArrayIterator<TextTrackCue>;\n}\n\ninterface TextTrackList {\n [Symbol.iterator](): ArrayIterator<TextTrack>;\n}\n\ninterface TouchList {\n [Symbol.iterator](): ArrayIterator<Touch>;\n}\n\ninterface URLSearchParamsIterator<T> extends IteratorObject<T, BuiltinIteratorReturn, unknown> {\n [Symbol.iterator](): URLSearchParamsIterator<T>;\n}\n\ninterface URLSearchParams {\n [Symbol.iterator](): URLSearchParamsIterator<[string, string]>;\n /** Returns an array of key, value pairs for every entry in the search params. */\n entries(): URLSearchParamsIterator<[string, string]>;\n /** Returns a list of keys in the search params. */\n keys(): URLSearchParamsIterator<string>;\n /** Returns a list of values in the search params. */\n values(): URLSearchParamsIterator<string>;\n}\n\ninterface ViewTransitionTypeSet extends Set<string> {\n}\n\ninterface WEBGL_draw_buffers {\n /**\n * The **`WEBGL_draw_buffers.drawBuffersWEBGL()`** method is part of the WebGL API and allows you to define the draw buffers to which all fragment colors are written.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WEBGL_draw_buffers/drawBuffersWEBGL)\n */\n drawBuffersWEBGL(buffers: Iterable<GLenum>): void;\n}\n\ninterface WEBGL_multi_draw {\n /**\n * The **`WEBGL_multi_draw.multiDrawArraysInstancedWEBGL()`** method of the WebGL API renders multiple primitives from array data.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WEBGL_multi_draw/multiDrawArraysInstancedWEBGL)\n */\n multiDrawArraysInstancedWEBGL(mode: GLenum, firstsList: Int32Array<ArrayBufferLike> | Iterable<GLint>, firstsOffset: number, countsList: Int32Array<ArrayBufferLike> | Iterable<GLsizei>, countsOffset: number, instanceCountsList: Int32Array<ArrayBufferLike> | Iterable<GLsizei>, instanceCountsOffset: number, drawcount: GLsizei): void;\n /**\n * The **`WEBGL_multi_draw.multiDrawArraysWEBGL()`** method of the WebGL API renders multiple primitives from array data.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WEBGL_multi_draw/multiDrawArraysWEBGL)\n */\n multiDrawArraysWEBGL(mode: GLenum, firstsList: Int32Array<ArrayBufferLike> | Iterable<GLint>, firstsOffset: number, countsList: Int32Array<ArrayBufferLike> | Iterable<GLsizei>, countsOffset: number, drawcount: GLsizei): void;\n /**\n * The **`WEBGL_multi_draw.multiDrawElementsInstancedWEBGL()`** method of the WebGL API renders multiple primitives from array data.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WEBGL_multi_draw/multiDrawElementsInstancedWEBGL)\n */\n multiDrawElementsInstancedWEBGL(mode: GLenum, countsList: Int32Array<ArrayBufferLike> | Iterable<GLsizei>, countsOffset: number, type: GLenum, offsetsList: Int32Array<ArrayBufferLike> | Iterable<GLsizei>, offsetsOffset: number, instanceCountsList: Int32Array<ArrayBufferLike> | Iterable<GLsizei>, instanceCountsOffset: number, drawcount: GLsizei): void;\n /**\n * The **`WEBGL_multi_draw.multiDrawElementsWEBGL()`** method of the WebGL API renders multiple primitives from array data.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WEBGL_multi_draw/multiDrawElementsWEBGL)\n */\n multiDrawElementsWEBGL(mode: GLenum, countsList: Int32Array<ArrayBufferLike> | Iterable<GLsizei>, countsOffset: number, type: GLenum, offsetsList: Int32Array<ArrayBufferLike> | Iterable<GLsizei>, offsetsOffset: number, drawcount: GLsizei): void;\n}\n\ninterface WebGL2RenderingContextBase {\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/clearBuffer) */\n clearBufferfv(buffer: GLenum, drawbuffer: GLint, values: Iterable<GLfloat>, srcOffset?: number): void;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/clearBuffer) */\n clearBufferiv(buffer: GLenum, drawbuffer: GLint, values: Iterable<GLint>, srcOffset?: number): void;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/clearBuffer) */\n clearBufferuiv(buffer: GLenum, drawbuffer: GLint, values: Iterable<GLuint>, srcOffset?: number): void;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/drawBuffers) */\n drawBuffers(buffers: Iterable<GLenum>): void;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/getActiveUniforms) */\n getActiveUniforms(program: WebGLProgram, uniformIndices: Iterable<GLuint>, pname: GLenum): any;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/getUniformIndices) */\n getUniformIndices(program: WebGLProgram, uniformNames: Iterable<string>): GLuint[] | null;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/invalidateFramebuffer) */\n invalidateFramebuffer(target: GLenum, attachments: Iterable<GLenum>): void;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/invalidateSubFramebuffer) */\n invalidateSubFramebuffer(target: GLenum, attachments: Iterable<GLenum>, x: GLint, y: GLint, width: GLsizei, height: GLsizei): void;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/transformFeedbackVaryings) */\n transformFeedbackVaryings(program: WebGLProgram, varyings: Iterable<string>, bufferMode: GLenum): void;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/uniform) */\n uniform1uiv(location: WebGLUniformLocation | null, data: Iterable<GLuint>, srcOffset?: number, srcLength?: GLuint): void;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/uniform) */\n uniform2uiv(location: WebGLUniformLocation | null, data: Iterable<GLuint>, srcOffset?: number, srcLength?: GLuint): void;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/uniform) */\n uniform3uiv(location: WebGLUniformLocation | null, data: Iterable<GLuint>, srcOffset?: number, srcLength?: GLuint): void;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/uniform) */\n uniform4uiv(location: WebGLUniformLocation | null, data: Iterable<GLuint>, srcOffset?: number, srcLength?: GLuint): void;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/uniformMatrix) */\n uniformMatrix2x3fv(location: WebGLUniformLocation | null, transpose: GLboolean, data: Iterable<GLfloat>, srcOffset?: number, srcLength?: GLuint): void;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/uniformMatrix) */\n uniformMatrix2x4fv(location: WebGLUniformLocation | null, transpose: GLboolean, data: Iterable<GLfloat>, srcOffset?: number, srcLength?: GLuint): void;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/uniformMatrix) */\n uniformMatrix3x2fv(location: WebGLUniformLocation | null, transpose: GLboolean, data: Iterable<GLfloat>, srcOffset?: number, srcLength?: GLuint): void;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/uniformMatrix) */\n uniformMatrix3x4fv(location: WebGLUniformLocation | null, transpose: GLboolean, data: Iterable<GLfloat>, srcOffset?: number, srcLength?: GLuint): void;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/uniformMatrix) */\n uniformMatrix4x2fv(location: WebGLUniformLocation | null, transpose: GLboolean, data: Iterable<GLfloat>, srcOffset?: number, srcLength?: GLuint): void;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/uniformMatrix) */\n uniformMatrix4x3fv(location: WebGLUniformLocation | null, transpose: GLboolean, data: Iterable<GLfloat>, srcOffset?: number, srcLength?: GLuint): void;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/vertexAttribI) */\n vertexAttribI4iv(index: GLuint, values: Iterable<GLint>): void;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/vertexAttribI) */\n vertexAttribI4uiv(index: GLuint, values: Iterable<GLuint>): void;\n}\n\ninterface WebGL2RenderingContextOverloads {\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/uniform) */\n uniform1fv(location: WebGLUniformLocation | null, data: Iterable<GLfloat>, srcOffset?: number, srcLength?: GLuint): void;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/uniform) */\n uniform1iv(location: WebGLUniformLocation | null, data: Iterable<GLint>, srcOffset?: number, srcLength?: GLuint): void;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/uniform) */\n uniform2fv(location: WebGLUniformLocation | null, data: Iterable<GLfloat>, srcOffset?: number, srcLength?: GLuint): void;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/uniform) */\n uniform2iv(location: WebGLUniformLocation | null, data: Iterable<GLint>, srcOffset?: number, srcLength?: GLuint): void;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/uniform) */\n uniform3fv(location: WebGLUniformLocation | null, data: Iterable<GLfloat>, srcOffset?: number, srcLength?: GLuint): void;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/uniform) */\n uniform3iv(location: WebGLUniformLocation | null, data: Iterable<GLint>, srcOffset?: number, srcLength?: GLuint): void;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/uniform) */\n uniform4fv(location: WebGLUniformLocation | null, data: Iterable<GLfloat>, srcOffset?: number, srcLength?: GLuint): void;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/uniform) */\n uniform4iv(location: WebGLUniformLocation | null, data: Iterable<GLint>, srcOffset?: number, srcLength?: GLuint): void;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/uniformMatrix) */\n uniformMatrix2fv(location: WebGLUniformLocation | null, transpose: GLboolean, data: Iterable<GLfloat>, srcOffset?: number, srcLength?: GLuint): void;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/uniformMatrix) */\n uniformMatrix3fv(location: WebGLUniformLocation | null, transpose: GLboolean, data: Iterable<GLfloat>, srcOffset?: number, srcLength?: GLuint): void;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/uniformMatrix) */\n uniformMatrix4fv(location: WebGLUniformLocation | null, transpose: GLboolean, data: Iterable<GLfloat>, srcOffset?: number, srcLength?: GLuint): void;\n}\n\ninterface WebGLRenderingContextBase {\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/vertexAttrib) */\n vertexAttrib1fv(index: GLuint, values: Iterable<GLfloat>): void;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/vertexAttrib) */\n vertexAttrib2fv(index: GLuint, values: Iterable<GLfloat>): void;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/vertexAttrib) */\n vertexAttrib3fv(index: GLuint, values: Iterable<GLfloat>): void;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/vertexAttrib) */\n vertexAttrib4fv(index: GLuint, values: Iterable<GLfloat>): void;\n}\n\ninterface WebGLRenderingContextOverloads {\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/uniform) */\n uniform1fv(location: WebGLUniformLocation | null, v: Iterable<GLfloat>): void;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/uniform) */\n uniform1iv(location: WebGLUniformLocation | null, v: Iterable<GLint>): void;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/uniform) */\n uniform2fv(location: WebGLUniformLocation | null, v: Iterable<GLfloat>): void;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/uniform) */\n uniform2iv(location: WebGLUniformLocation | null, v: Iterable<GLint>): void;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/uniform) */\n uniform3fv(location: WebGLUniformLocation | null, v: Iterable<GLfloat>): void;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/uniform) */\n uniform3iv(location: WebGLUniformLocation | null, v: Iterable<GLint>): void;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/uniform) */\n uniform4fv(location: WebGLUniformLocation | null, v: Iterable<GLfloat>): void;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/uniform) */\n uniform4iv(location: WebGLUniformLocation | null, v: Iterable<GLint>): void;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/uniformMatrix) */\n uniformMatrix2fv(location: WebGLUniformLocation | null, transpose: GLboolean, value: Iterable<GLfloat>): void;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/uniformMatrix) */\n uniformMatrix3fv(location: WebGLUniformLocation | null, transpose: GLboolean, value: Iterable<GLfloat>): void;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/uniformMatrix) */\n uniformMatrix4fv(location: WebGLUniformLocation | null, transpose: GLboolean, value: Iterable<GLfloat>): void;\n}\n',gi["lib.es2015.collection.d.ts"]='/*! *****************************************************************************\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/// <reference no-default-lib="true"/>\n\ninterface Map<K, V> {\n clear(): void;\n /**\n * @returns true if an element in the Map existed and has been removed, or false if the element does not exist.\n */\n delete(key: K): boolean;\n /**\n * Executes a provided function once per each key/value pair in the Map, in insertion order.\n */\n forEach(callbackfn: (value: V, key: K, map: Map<K, V>) => void, thisArg?: any): void;\n /**\n * Returns a specified element from the Map object. If the value that is associated to the provided key is an object, then you will get a reference to that object and any change made to that object will effectively modify it inside the Map.\n * @returns Returns the element associated with the specified key. If no element is associated with the specified key, undefined is returned.\n */\n get(key: K): V | undefined;\n /**\n * @returns boolean indicating whether an element with the specified key exists or not.\n */\n has(key: K): boolean;\n /**\n * Adds a new element with a specified key and value to the Map. If an element with the same key already exists, the element will be updated.\n */\n set(key: K, value: V): this;\n /**\n * @returns the number of elements in the Map.\n */\n readonly size: number;\n}\n\ninterface MapConstructor {\n new (): Map<any, any>;\n new <K, V>(entries?: readonly (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 WeakKey, V> {\n /**\n * Removes the specified element from the WeakMap.\n * @returns true if the element was successfully removed, or false if it was not present.\n */\n delete(key: K): boolean;\n /**\n * @returns a specified element.\n */\n get(key: K): V | undefined;\n /**\n * @returns a boolean indicating whether an element with the specified key exists or not.\n */\n has(key: K): boolean;\n /**\n * Adds a new element with a specified key and value.\n * @param key Must be an object or symbol.\n */\n set(key: K, value: V): this;\n}\n\ninterface WeakMapConstructor {\n new <K extends WeakKey = WeakKey, V = any>(entries?: readonly (readonly [K, V])[] | null): WeakMap<K, V>;\n readonly prototype: WeakMap<WeakKey, any>;\n}\ndeclare var WeakMap: WeakMapConstructor;\n\ninterface Set<T> {\n /**\n * Appends a new element with a specified value to the end of the Set.\n */\n add(value: T): this;\n\n clear(): void;\n /**\n * Removes a specified value from the Set.\n * @returns Returns true if an element in the Set existed and has been removed, or false if the element does not exist.\n */\n delete(value: T): boolean;\n /**\n * Executes a provided function once per each value in the Set object, in insertion order.\n */\n forEach(callbackfn: (value: T, value2: T, set: Set<T>) => void, thisArg?: any): void;\n /**\n * @returns a boolean indicating whether an element with the specified value exists in the Set or not.\n */\n has(value: T): boolean;\n /**\n * @returns the number of (unique) elements in Set.\n */\n readonly size: number;\n}\n\ninterface SetConstructor {\n new <T = any>(values?: readonly 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 WeakKey> {\n /**\n * Appends a new value to the end of the WeakSet.\n */\n add(value: T): this;\n /**\n * Removes the specified element from the WeakSet.\n * @returns Returns true if the element existed and has been removed, or false if the element does not exist.\n */\n delete(value: T): boolean;\n /**\n * @returns a boolean indicating whether a value exists in the WeakSet or not.\n */\n has(value: T): boolean;\n}\n\ninterface WeakSetConstructor {\n new <T extends WeakKey = WeakKey>(values?: readonly T[] | null): WeakSet<T>;\n readonly prototype: WeakSet<WeakKey>;\n}\ndeclare var WeakSet: WeakSetConstructor;\n',gi["lib.es2015.core.d.ts"]='/*! *****************************************************************************\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/// <reference no-default-lib="true"/>\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: (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 * Changes all array elements from `start` to `end` index to a static `value` and returns the modified array\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 toLocaleString(locales: string | string[], options?: Intl.NumberFormatOptions & Intl.DateTimeFormatOptions): string;\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: unknown): 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: unknown): 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: unknown): boolean;\n\n /**\n * Returns true if the value passed is a safe integer.\n * @param number A numeric value.\n */\n isSafeInteger(number: unknown): 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 string A string to convert into a number.\n * @param radix A value between 2 and 36 that specifies the base of the number in `string`.\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 extends {}, 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 extends {}, 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 extends {}, 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: (value: T, index: number, obj: readonly T[]) => value is S, thisArg?: any): S | undefined;\n find(predicate: (value: T, index: number, obj: readonly 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: readonly T[]) => unknown, thisArg?: any): number;\n\n toLocaleString(locales: string | string[], options?: Intl.NumberFormatOptions & Intl.DateTimeFormatOptions): string;\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 * @deprecated A legacy feature for browser compatibility\n * @param name\n */\n anchor(name: string): string;\n\n /**\n * Returns a `<big>` HTML element\n * @deprecated A legacy feature for browser compatibility\n */\n big(): string;\n\n /**\n * Returns a `<blink>` HTML element\n * @deprecated A legacy feature for browser compatibility\n */\n blink(): string;\n\n /**\n * Returns a `<b>` HTML element\n * @deprecated A legacy feature for browser compatibility\n */\n bold(): string;\n\n /**\n * Returns a `<tt>` HTML element\n * @deprecated A legacy feature for browser compatibility\n */\n fixed(): string;\n\n /**\n * Returns a `<font>` HTML element and sets the color attribute value\n * @deprecated A legacy feature for browser compatibility\n */\n fontcolor(color: string): string;\n\n /**\n * Returns a `<font>` HTML element and sets the size attribute value\n * @deprecated A legacy feature for browser compatibility\n */\n fontsize(size: number): string;\n\n /**\n * Returns a `<font>` HTML element and sets the size attribute value\n * @deprecated A legacy feature for browser compatibility\n */\n fontsize(size: string): string;\n\n /**\n * Returns an `<i>` HTML element\n * @deprecated A legacy feature for browser compatibility\n */\n italics(): string;\n\n /**\n * Returns an `<a>` HTML element and sets the href attribute value\n * @deprecated A legacy feature for browser compatibility\n */\n link(url: string): string;\n\n /**\n * Returns a `<small>` HTML element\n * @deprecated A legacy feature for browser compatibility\n */\n small(): string;\n\n /**\n * Returns a `<strike>` HTML element\n * @deprecated A legacy feature for browser compatibility\n */\n strike(): string;\n\n /**\n * Returns a `<sub>` HTML element\n * @deprecated A legacy feature for browser compatibility\n */\n sub(): string;\n\n /**\n * Returns a `<sup>` HTML element\n * @deprecated A legacy feature for browser compatibility\n */\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 usually used as a tag function of a Tagged Template String. When called as\n * such, the first argument will be a well formed template call site object and the rest\n * parameter will contain the substitution values. It can also be called directly, for example,\n * to interleave strings and values from your own tag function, and in this case the only thing\n * it needs from the first argument is the raw property.\n * @param template A well-formed template string call site representation.\n * @param substitutions A set of substitution values.\n */\n raw(template: { raw: readonly string[] | ArrayLike<string>; }, ...substitutions: any[]): string;\n}\n\ninterface Int8Array<TArrayBuffer extends ArrayBufferLike> {\n toLocaleString(locales: string | string[], options?: Intl.NumberFormatOptions): string;\n}\n\ninterface Uint8Array<TArrayBuffer extends ArrayBufferLike> {\n toLocaleString(locales: string | string[], options?: Intl.NumberFormatOptions): string;\n}\n\ninterface Uint8ClampedArray<TArrayBuffer extends ArrayBufferLike> {\n toLocaleString(locales: string | string[], options?: Intl.NumberFormatOptions): string;\n}\n\ninterface Int16Array<TArrayBuffer extends ArrayBufferLike> {\n toLocaleString(locales: string | string[], options?: Intl.NumberFormatOptions): string;\n}\n\ninterface Uint16Array<TArrayBuffer extends ArrayBufferLike> {\n toLocaleString(locales: string | string[], options?: Intl.NumberFormatOptions): string;\n}\n\ninterface Int32Array<TArrayBuffer extends ArrayBufferLike> {\n toLocaleString(locales: string | string[], options?: Intl.NumberFormatOptions): string;\n}\n\ninterface Uint32Array<TArrayBuffer extends ArrayBufferLike> {\n toLocaleString(locales: string | string[], options?: Intl.NumberFormatOptions): string;\n}\n\ninterface Float32Array<TArrayBuffer extends ArrayBufferLike> {\n toLocaleString(locales: string | string[], options?: Intl.NumberFormatOptions): string;\n}\n\ninterface Float64Array<TArrayBuffer extends ArrayBufferLike> {\n toLocaleString(locales: string | string[], options?: Intl.NumberFormatOptions): string;\n}\n',gi["lib.es2015.d.ts"]='/*! *****************************************************************************\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/// <reference no-default-lib="true"/>\n\n/// <reference lib="es5" />\n/// <reference lib="es2015.core" />\n/// <reference lib="es2015.collection" />\n/// <reference lib="es2015.iterable" />\n/// <reference lib="es2015.generator" />\n/// <reference lib="es2015.promise" />\n/// <reference lib="es2015.proxy" />\n/// <reference lib="es2015.reflect" />\n/// <reference lib="es2015.symbol" />\n/// <reference lib="es2015.symbol.wellknown" />\n',gi["lib.es2015.generator.d.ts"]='/*! *****************************************************************************\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/// <reference no-default-lib="true"/>\n\n/// <reference lib="es2015.iterable" />\n\ninterface Generator<T = unknown, TReturn = any, TNext = any> extends IteratorObject<T, TReturn, TNext> {\n // NOTE: \'next\' is defined using a tuple to ensure we report the correct assignability errors in all places.\n next(...[value]: [] | [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',gi["lib.es2015.iterable.d.ts"]="/*! *****************************************************************************\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/// <reference no-default-lib=\"true\"/>\n\n/// <reference lib=\"es2015.symbol\" />\n\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: unique 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 = any> {\n // NOTE: 'next' is defined using a tuple to ensure we report the correct assignability errors in all places.\n next(...[value]: [] | [TNext]): IteratorResult<T, TReturn>;\n return?(value?: TReturn): IteratorResult<T, TReturn>;\n throw?(e?: any): IteratorResult<T, TReturn>;\n}\n\ninterface Iterable<T, TReturn = any, TNext = any> {\n [Symbol.iterator](): Iterator<T, TReturn, TNext>;\n}\n\n/**\n * Describes a user-defined {@link Iterator} that is also iterable.\n */\ninterface IterableIterator<T, TReturn = any, TNext = any> extends Iterator<T, TReturn, TNext> {\n [Symbol.iterator](): IterableIterator<T, TReturn, TNext>;\n}\n\n/**\n * Describes an {@link Iterator} produced by the runtime that inherits from the intrinsic `Iterator.prototype`.\n */\ninterface IteratorObject<T, TReturn = unknown, TNext = unknown> extends Iterator<T, TReturn, TNext> {\n [Symbol.iterator](): IteratorObject<T, TReturn, TNext>;\n}\n\n/**\n * Defines the `TReturn` type used for built-in iterators produced by `Array`, `Map`, `Set`, and others.\n * This is `undefined` when `strictBuiltInIteratorReturn` is `true`; otherwise, this is `any`.\n */\ntype BuiltinIteratorReturn = intrinsic;\n\ninterface ArrayIterator<T> extends IteratorObject<T, BuiltinIteratorReturn, unknown> {\n [Symbol.iterator](): ArrayIterator<T>;\n}\n\ninterface Array<T> {\n /** Iterator */\n [Symbol.iterator](): ArrayIterator<T>;\n\n /**\n * Returns an iterable of key, value pairs for every entry in the array\n */\n entries(): ArrayIterator<[number, T]>;\n\n /**\n * Returns an iterable of keys in the array\n */\n keys(): ArrayIterator<number>;\n\n /**\n * Returns an iterable of values in the array\n */\n values(): ArrayIterator<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](): ArrayIterator<T>;\n\n /**\n * Returns an iterable of key, value pairs for every entry in the array\n */\n entries(): ArrayIterator<[number, T]>;\n\n /**\n * Returns an iterable of keys in the array\n */\n keys(): ArrayIterator<number>;\n\n /**\n * Returns an iterable of values in the array\n */\n values(): ArrayIterator<T>;\n}\n\ninterface IArguments {\n /** Iterator */\n [Symbol.iterator](): ArrayIterator<any>;\n}\n\ninterface MapIterator<T> extends IteratorObject<T, BuiltinIteratorReturn, unknown> {\n [Symbol.iterator](): MapIterator<T>;\n}\n\ninterface Map<K, V> {\n /** Returns an iterable of entries in the map. */\n [Symbol.iterator](): MapIterator<[K, V]>;\n\n /**\n * Returns an iterable of key, value pairs for every entry in the map.\n */\n entries(): MapIterator<[K, V]>;\n\n /**\n * Returns an iterable of keys in the map\n */\n keys(): MapIterator<K>;\n\n /**\n * Returns an iterable of values in the map\n */\n values(): MapIterator<V>;\n}\n\ninterface ReadonlyMap<K, V> {\n /** Returns an iterable of entries in the map. */\n [Symbol.iterator](): MapIterator<[K, V]>;\n\n /**\n * Returns an iterable of key, value pairs for every entry in the map.\n */\n entries(): MapIterator<[K, V]>;\n\n /**\n * Returns an iterable of keys in the map\n */\n keys(): MapIterator<K>;\n\n /**\n * Returns an iterable of values in the map\n */\n values(): MapIterator<V>;\n}\n\ninterface MapConstructor {\n new (): Map<any, any>;\n new <K, V>(iterable?: Iterable<readonly [K, V]> | null): Map<K, V>;\n}\n\ninterface WeakMap<K extends WeakKey, V> {}\n\ninterface WeakMapConstructor {\n new <K extends WeakKey, V>(iterable: Iterable<readonly [K, V]>): WeakMap<K, V>;\n}\n\ninterface SetIterator<T> extends IteratorObject<T, BuiltinIteratorReturn, unknown> {\n [Symbol.iterator](): SetIterator<T>;\n}\n\ninterface Set<T> {\n /** Iterates over values in the set. */\n [Symbol.iterator](): SetIterator<T>;\n\n /**\n * Returns an iterable of [v,v] pairs for every value `v` in the set.\n */\n entries(): SetIterator<[T, T]>;\n\n /**\n * Despite its name, returns an iterable of the values in the set.\n */\n keys(): SetIterator<T>;\n\n /**\n * Returns an iterable of values in the set.\n */\n values(): SetIterator<T>;\n}\n\ninterface ReadonlySet<T> {\n /** Iterates over values in the set. */\n [Symbol.iterator](): SetIterator<T>;\n\n /**\n * Returns an iterable of [v,v] pairs for every value `v` in the set.\n */\n entries(): SetIterator<[T, T]>;\n\n /**\n * Despite its name, returns an iterable of the values in the set.\n */\n keys(): SetIterator<T>;\n\n /**\n * Returns an iterable of values in the set.\n */\n values(): SetIterator<T>;\n}\n\ninterface SetConstructor {\n new <T>(iterable?: Iterable<T> | null): Set<T>;\n}\n\ninterface WeakSet<T extends WeakKey> {}\n\ninterface WeakSetConstructor {\n new <T extends WeakKey = WeakKey>(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 iterable of Promises.\n * @returns A new Promise.\n */\n all<T>(values: Iterable<T | PromiseLike<T>>): Promise<Awaited<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 | PromiseLike<T>>): Promise<Awaited<T>>;\n}\n\ninterface StringIterator<T> extends IteratorObject<T, BuiltinIteratorReturn, unknown> {\n [Symbol.iterator](): StringIterator<T>;\n}\n\ninterface String {\n /** Iterator */\n [Symbol.iterator](): StringIterator<string>;\n}\n\ninterface Int8Array<TArrayBuffer extends ArrayBufferLike> {\n [Symbol.iterator](): ArrayIterator<number>;\n\n /**\n * Returns an array of key, value pairs for every entry in the array\n */\n entries(): ArrayIterator<[number, number]>;\n\n /**\n * Returns an list of keys in the array\n */\n keys(): ArrayIterator<number>;\n\n /**\n * Returns an list of values in the array\n */\n values(): ArrayIterator<number>;\n}\n\ninterface Int8ArrayConstructor {\n new (elements: Iterable<number>): Int8Array<ArrayBuffer>;\n\n /**\n * Creates an array from an array-like or iterable object.\n * @param elements An iterable object to convert to an array.\n */\n from(elements: Iterable<number>): Int8Array<ArrayBuffer>;\n\n /**\n * Creates an array from an array-like or iterable object.\n * @param elements 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>(elements: Iterable<T>, mapfn?: (v: T, k: number) => number, thisArg?: any): Int8Array<ArrayBuffer>;\n}\n\ninterface Uint8Array<TArrayBuffer extends ArrayBufferLike> {\n [Symbol.iterator](): ArrayIterator<number>;\n\n /**\n * Returns an array of key, value pairs for every entry in the array\n */\n entries(): ArrayIterator<[number, number]>;\n\n /**\n * Returns an list of keys in the array\n */\n keys(): ArrayIterator<number>;\n\n /**\n * Returns an list of values in the array\n */\n values(): ArrayIterator<number>;\n}\n\ninterface Uint8ArrayConstructor {\n new (elements: Iterable<number>): Uint8Array<ArrayBuffer>;\n\n /**\n * Creates an array from an array-like or iterable object.\n * @param elements An iterable object to convert to an array.\n */\n from(elements: Iterable<number>): Uint8Array<ArrayBuffer>;\n\n /**\n * Creates an array from an array-like or iterable object.\n * @param elements 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>(elements: Iterable<T>, mapfn?: (v: T, k: number) => number, thisArg?: any): Uint8Array<ArrayBuffer>;\n}\n\ninterface Uint8ClampedArray<TArrayBuffer extends ArrayBufferLike> {\n [Symbol.iterator](): ArrayIterator<number>;\n\n /**\n * Returns an array of key, value pairs for every entry in the array\n */\n entries(): ArrayIterator<[number, number]>;\n\n /**\n * Returns an list of keys in the array\n */\n keys(): ArrayIterator<number>;\n\n /**\n * Returns an list of values in the array\n */\n values(): ArrayIterator<number>;\n}\n\ninterface Uint8ClampedArrayConstructor {\n new (elements: Iterable<number>): Uint8ClampedArray<ArrayBuffer>;\n\n /**\n * Creates an array from an array-like or iterable object.\n * @param elements An iterable object to convert to an array.\n */\n from(elements: Iterable<number>): Uint8ClampedArray<ArrayBuffer>;\n\n /**\n * Creates an array from an array-like or iterable object.\n * @param elements 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>(elements: Iterable<T>, mapfn?: (v: T, k: number) => number, thisArg?: any): Uint8ClampedArray<ArrayBuffer>;\n}\n\ninterface Int16Array<TArrayBuffer extends ArrayBufferLike> {\n [Symbol.iterator](): ArrayIterator<number>;\n /**\n * Returns an array of key, value pairs for every entry in the array\n */\n entries(): ArrayIterator<[number, number]>;\n\n /**\n * Returns an list of keys in the array\n */\n keys(): ArrayIterator<number>;\n\n /**\n * Returns an list of values in the array\n */\n values(): ArrayIterator<number>;\n}\n\ninterface Int16ArrayConstructor {\n new (elements: Iterable<number>): Int16Array<ArrayBuffer>;\n\n /**\n * Creates an array from an array-like or iterable object.\n * @param elements An iterable object to convert to an array.\n */\n from(elements: Iterable<number>): Int16Array<ArrayBuffer>;\n\n /**\n * Creates an array from an array-like or iterable object.\n * @param elements 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>(elements: Iterable<T>, mapfn?: (v: T, k: number) => number, thisArg?: any): Int16Array<ArrayBuffer>;\n}\n\ninterface Uint16Array<TArrayBuffer extends ArrayBufferLike> {\n [Symbol.iterator](): ArrayIterator<number>;\n\n /**\n * Returns an array of key, value pairs for every entry in the array\n */\n entries(): ArrayIterator<[number, number]>;\n\n /**\n * Returns an list of keys in the array\n */\n keys(): ArrayIterator<number>;\n\n /**\n * Returns an list of values in the array\n */\n values(): ArrayIterator<number>;\n}\n\ninterface Uint16ArrayConstructor {\n new (elements: Iterable<number>): Uint16Array<ArrayBuffer>;\n\n /**\n * Creates an array from an array-like or iterable object.\n * @param elements An iterable object to convert to an array.\n */\n from(elements: Iterable<number>): Uint16Array<ArrayBuffer>;\n\n /**\n * Creates an array from an array-like or iterable object.\n * @param elements 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>(elements: Iterable<T>, mapfn?: (v: T, k: number) => number, thisArg?: any): Uint16Array<ArrayBuffer>;\n}\n\ninterface Int32Array<TArrayBuffer extends ArrayBufferLike> {\n [Symbol.iterator](): ArrayIterator<number>;\n\n /**\n * Returns an array of key, value pairs for every entry in the array\n */\n entries(): ArrayIterator<[number, number]>;\n\n /**\n * Returns an list of keys in the array\n */\n keys(): ArrayIterator<number>;\n\n /**\n * Returns an list of values in the array\n */\n values(): ArrayIterator<number>;\n}\n\ninterface Int32ArrayConstructor {\n new (elements: Iterable<number>): Int32Array<ArrayBuffer>;\n\n /**\n * Creates an array from an array-like or iterable object.\n * @param elements An iterable object to convert to an array.\n */\n from(elements: Iterable<number>): Int32Array<ArrayBuffer>;\n\n /**\n * Creates an array from an array-like or iterable object.\n * @param elements 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>(elements: Iterable<T>, mapfn?: (v: T, k: number) => number, thisArg?: any): Int32Array<ArrayBuffer>;\n}\n\ninterface Uint32Array<TArrayBuffer extends ArrayBufferLike> {\n [Symbol.iterator](): ArrayIterator<number>;\n\n /**\n * Returns an array of key, value pairs for every entry in the array\n */\n entries(): ArrayIterator<[number, number]>;\n\n /**\n * Returns an list of keys in the array\n */\n keys(): ArrayIterator<number>;\n\n /**\n * Returns an list of values in the array\n */\n values(): ArrayIterator<number>;\n}\n\ninterface Uint32ArrayConstructor {\n new (elements: Iterable<number>): Uint32Array<ArrayBuffer>;\n\n /**\n * Creates an array from an array-like or iterable object.\n * @param elements An iterable object to convert to an array.\n */\n from(elements: Iterable<number>): Uint32Array<ArrayBuffer>;\n\n /**\n * Creates an array from an array-like or iterable object.\n * @param elements 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>(elements: Iterable<T>, mapfn?: (v: T, k: number) => number, thisArg?: any): Uint32Array<ArrayBuffer>;\n}\n\ninterface Float32Array<TArrayBuffer extends ArrayBufferLike> {\n [Symbol.iterator](): ArrayIterator<number>;\n\n /**\n * Returns an array of key, value pairs for every entry in the array\n */\n entries(): ArrayIterator<[number, number]>;\n\n /**\n * Returns an list of keys in the array\n */\n keys(): ArrayIterator<number>;\n\n /**\n * Returns an list of values in the array\n */\n values(): ArrayIterator<number>;\n}\n\ninterface Float32ArrayConstructor {\n new (elements: Iterable<number>): Float32Array<ArrayBuffer>;\n\n /**\n * Creates an array from an array-like or iterable object.\n * @param elements An iterable object to convert to an array.\n */\n from(elements: Iterable<number>): Float32Array<ArrayBuffer>;\n\n /**\n * Creates an array from an array-like or iterable object.\n * @param elements 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>(elements: Iterable<T>, mapfn?: (v: T, k: number) => number, thisArg?: any): Float32Array<ArrayBuffer>;\n}\n\ninterface Float64Array<TArrayBuffer extends ArrayBufferLike> {\n [Symbol.iterator](): ArrayIterator<number>;\n\n /**\n * Returns an array of key, value pairs for every entry in the array\n */\n entries(): ArrayIterator<[number, number]>;\n\n /**\n * Returns an list of keys in the array\n */\n keys(): ArrayIterator<number>;\n\n /**\n * Returns an list of values in the array\n */\n values(): ArrayIterator<number>;\n}\n\ninterface Float64ArrayConstructor {\n new (elements: Iterable<number>): Float64Array<ArrayBuffer>;\n\n /**\n * Creates an array from an array-like or iterable object.\n * @param elements An iterable object to convert to an array.\n */\n from(elements: Iterable<number>): Float64Array<ArrayBuffer>;\n\n /**\n * Creates an array from an array-like or iterable object.\n * @param elements 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>(elements: Iterable<T>, mapfn?: (v: T, k: number) => number, thisArg?: any): Float64Array<ArrayBuffer>;\n}\n",gi["lib.es2015.promise.d.ts"]='/*! *****************************************************************************\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/// <reference no-default-lib="true"/>\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<T extends readonly unknown[] | []>(values: T): Promise<{ -readonly [P in keyof T]: Awaited<T[P]>; }>;\n\n // see: lib.es2015.iterable.d.ts\n // all<T>(values: Iterable<T | PromiseLike<T>>): Promise<Awaited<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 extends readonly unknown[] | []>(values: T): Promise<Awaited<T[number]>>;\n\n // see: lib.es2015.iterable.d.ts\n // race<T>(values: Iterable<T | PromiseLike<T>>): Promise<Awaited<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.\n * @returns A resolved promise.\n */\n resolve(): Promise<void>;\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): Promise<Awaited<T>>;\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<Awaited<T>>;\n}\n\ndeclare var Promise: PromiseConstructor;\n',gi["lib.es2015.proxy.d.ts"]='/*! *****************************************************************************\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/// <reference no-default-lib="true"/>\n\ninterface ProxyHandler<T extends object> {\n /**\n * A trap method for a function call.\n * @param target The original callable object which is being proxied.\n */\n apply?(target: T, thisArg: any, argArray: any[]): any;\n\n /**\n * A trap for the `new` operator.\n * @param target The original object which is being proxied.\n * @param newTarget The constructor that was originally called.\n */\n construct?(target: T, argArray: any[], newTarget: Function): object;\n\n /**\n * A trap for `Object.defineProperty()`.\n * @param target The original object which is being proxied.\n * @returns A `Boolean` indicating whether or not the property has been defined.\n */\n defineProperty?(target: T, property: string | symbol, attributes: PropertyDescriptor): boolean;\n\n /**\n * A trap for the `delete` operator.\n * @param target The original object which is being proxied.\n * @param p The name or `Symbol` of the property to delete.\n * @returns A `Boolean` indicating whether or not the property was deleted.\n */\n deleteProperty?(target: T, p: string | symbol): boolean;\n\n /**\n * A trap for getting a property value.\n * @param target The original object which is being proxied.\n * @param p The name or `Symbol` of the property to get.\n * @param receiver The proxy or an object that inherits from the proxy.\n */\n get?(target: T, p: string | symbol, receiver: any): any;\n\n /**\n * A trap for `Object.getOwnPropertyDescriptor()`.\n * @param target The original object which is being proxied.\n * @param p The name of the property whose description should be retrieved.\n */\n getOwnPropertyDescriptor?(target: T, p: string | symbol): PropertyDescriptor | undefined;\n\n /**\n * A trap for the `[[GetPrototypeOf]]` internal method.\n * @param target The original object which is being proxied.\n */\n getPrototypeOf?(target: T): object | null;\n\n /**\n * A trap for the `in` operator.\n * @param target The original object which is being proxied.\n * @param p The name or `Symbol` of the property to check for existence.\n */\n has?(target: T, p: string | symbol): boolean;\n\n /**\n * A trap for `Object.isExtensible()`.\n * @param target The original object which is being proxied.\n */\n isExtensible?(target: T): boolean;\n\n /**\n * A trap for `Reflect.ownKeys()`.\n * @param target The original object which is being proxied.\n */\n ownKeys?(target: T): ArrayLike<string | symbol>;\n\n /**\n * A trap for `Object.preventExtensions()`.\n * @param target The original object which is being proxied.\n */\n preventExtensions?(target: T): boolean;\n\n /**\n * A trap for setting a property value.\n * @param target The original object which is being proxied.\n * @param p The name or `Symbol` of the property to set.\n * @param receiver The object to which the assignment was originally directed.\n * @returns A `Boolean` indicating whether or not the property was set.\n */\n set?(target: T, p: string | symbol, newValue: any, receiver: any): boolean;\n\n /**\n * A trap for `Object.setPrototypeOf()`.\n * @param target The original object which is being proxied.\n * @param newPrototype The object\'s new prototype or `null`.\n */\n setPrototypeOf?(target: T, v: object | null): boolean;\n}\n\ninterface ProxyConstructor {\n /**\n * Creates a revocable Proxy object.\n * @param target A target object to wrap with Proxy.\n * @param handler An object whose properties define the behavior of Proxy when an operation is attempted on it.\n */\n revocable<T extends object>(target: T, handler: ProxyHandler<T>): { proxy: T; revoke: () => void; };\n\n /**\n * Creates a Proxy object. The Proxy object allows you to create an object that can be used in place of the\n * original object, but which may redefine fundamental Object operations like getting, setting, and defining\n * properties. Proxy objects are commonly used to log property accesses, validate, format, or sanitize inputs.\n * @param target A target object to wrap with Proxy.\n * @param handler An object whose properties define the behavior of Proxy when an operation is attempted on it.\n */\n new <T extends object>(target: T, handler: ProxyHandler<T>): T;\n}\ndeclare var Proxy: ProxyConstructor;\n',gi["lib.es2015.reflect.d.ts"]='/*! *****************************************************************************\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/// <reference no-default-lib="true"/>\n\ndeclare namespace Reflect {\n /**\n * Calls the function with the specified object as the this value\n * and the elements of specified array as the arguments.\n * @param target The function to call.\n * @param thisArgument The object to be used as the this object.\n * @param argumentsList An array of argument values to be passed to the function.\n */\n function apply<T, A extends readonly any[], R>(\n target: (this: T, ...args: A) => R,\n thisArgument: T,\n argumentsList: Readonly<A>,\n ): R;\n function apply(target: Function, thisArgument: any, argumentsList: ArrayLike<any>): any;\n\n /**\n * Constructs the target with the elements of specified array as the arguments\n * and the specified constructor as the `new.target` value.\n * @param target The constructor to invoke.\n * @param argumentsList An array of argument values to be passed to the constructor.\n * @param newTarget The constructor to be used as the `new.target` object.\n */\n function construct<A extends readonly any[], R>(\n target: new (...args: A) => R,\n argumentsList: Readonly<A>,\n newTarget?: new (...args: any) => any,\n ): R;\n function construct(target: Function, argumentsList: ArrayLike<any>, newTarget?: Function): any;\n\n /**\n * Adds a property to an object, or modifies attributes of an existing property.\n * @param target Object on which to add or modify the property. This can be a native JavaScript object\n * (that is, a user-defined object or a built in object) or a DOM object.\n * @param propertyKey The property name.\n * @param attributes Descriptor for the property. It can be for a data property or an accessor property.\n */\n function defineProperty(target: object, propertyKey: PropertyKey, attributes: PropertyDescriptor & ThisType<any>): boolean;\n\n /**\n * Removes a property from an object, equivalent to `delete target[propertyKey]`,\n * except it won\'t throw if `target[propertyKey]` is non-configurable.\n * @param target Object from which to remove the own property.\n * @param propertyKey The property name.\n */\n function deleteProperty(target: object, propertyKey: PropertyKey): boolean;\n\n /**\n * Gets the property of target, equivalent to `target[propertyKey]` when `receiver === target`.\n * @param target Object that contains the property on itself or in its prototype chain.\n * @param propertyKey The property name.\n * @param receiver The reference to use as the `this` value in the getter function,\n * if `target[propertyKey]` is an accessor property.\n */\n function get<T extends object, P extends PropertyKey>(\n target: T,\n propertyKey: P,\n receiver?: unknown,\n ): P extends keyof T ? T[P] : 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 target Object that contains the property.\n * @param propertyKey The property name.\n */\n function getOwnPropertyDescriptor<T extends object, P extends PropertyKey>(\n target: T,\n propertyKey: P,\n ): TypedPropertyDescriptor<P extends keyof T ? T[P] : any> | undefined;\n\n /**\n * Returns the prototype of an object.\n * @param target The object that references the prototype.\n */\n function getPrototypeOf(target: object): object | null;\n\n /**\n * Equivalent to `propertyKey in target`.\n * @param target Object that contains the property on itself or in its prototype chain.\n * @param propertyKey Name of the property.\n */\n function has(target: object, propertyKey: PropertyKey): boolean;\n\n /**\n * Returns a value that indicates whether new properties can be added to an object.\n * @param target Object to test.\n */\n function isExtensible(target: object): boolean;\n\n /**\n * Returns the string and symbol keys of the own properties of an object. The own properties of an object\n * are those that are defined directly on that object, and are not inherited from the object\'s prototype.\n * @param target Object that contains the own properties.\n */\n function ownKeys(target: object): (string | symbol)[];\n\n /**\n * Prevents the addition of new properties to an object.\n * @param target Object to make non-extensible.\n * @return Whether the object has been made non-extensible.\n */\n function preventExtensions(target: object): boolean;\n\n /**\n * Sets the property of target, equivalent to `target[propertyKey] = value` when `receiver === target`.\n * @param target Object that contains the property on itself or in its prototype chain.\n * @param propertyKey Name of the property.\n * @param receiver The reference to use as the `this` value in the setter function,\n * if `target[propertyKey]` is an accessor property.\n */\n function set<T extends object, P extends PropertyKey>(\n target: T,\n propertyKey: P,\n value: P extends keyof T ? T[P] : any,\n receiver?: any,\n ): boolean;\n function set(target: object, propertyKey: PropertyKey, value: any, receiver?: any): boolean;\n\n /**\n * Sets the prototype of a specified object o to object proto or null.\n * @param target The object to change its prototype.\n * @param proto The value of the new prototype or null.\n * @return Whether setting the prototype was successful.\n */\n function setPrototypeOf(target: object, proto: object | null): boolean;\n}\n',gi["lib.es2015.symbol.d.ts"]='/*! *****************************************************************************\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/// <reference no-default-lib="true"/>\n\ninterface SymbolConstructor {\n /**\n * A reference to the prototype.\n */\n readonly prototype: Symbol;\n\n /**\n * Returns a new unique Symbol value.\n * @param description Description of the new Symbol object.\n */\n (description?: string | number): symbol;\n\n /**\n * Returns a Symbol object from the global symbol registry matching the given key if found.\n * Otherwise, returns a new symbol with this key.\n * @param key key to search for.\n */\n for(key: string): symbol;\n\n /**\n * Returns a key from the global symbol registry matching the given Symbol if found.\n * Otherwise, returns a undefined.\n * @param sym Symbol to find the key for.\n */\n keyFor(sym: symbol): string | undefined;\n}\n\ndeclare var Symbol: SymbolConstructor;\n',gi["lib.es2015.symbol.wellknown.d.ts"]='/*! *****************************************************************************\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/// <reference no-default-lib="true"/>\n\n/// <reference lib="es2015.symbol" />\n\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: unique 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: unique 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: unique 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: unique 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: unique 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: unique 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: unique 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: unique 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: unique symbol;\n\n /**\n * An Object whose truthy properties are properties that are excluded from the \'with\'\n * environment bindings of the associated objects.\n */\n readonly unscopables: unique symbol;\n}\n\ninterface Symbol {\n /**\n * Converts a Symbol object to a symbol.\n */\n [Symbol.toPrimitive](hint: string): symbol;\n\n readonly [Symbol.toStringTag]: string;\n}\n\ninterface Array<T> {\n /**\n * Is an object whose properties have the value \'true\'\n * when they will be absent when used in a \'with\' statement.\n */\n readonly [Symbol.unscopables]: {\n [K in keyof any[]]?: boolean;\n };\n}\n\ninterface ReadonlyArray<T> {\n /**\n * Is an object whose properties have the value \'true\'\n * when they will be absent when used in a \'with\' statement.\n */\n readonly [Symbol.unscopables]: {\n [K in keyof readonly any[]]?: 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 WeakKey, V> {\n readonly [Symbol.toStringTag]: string;\n}\n\ninterface Set<T> {\n readonly [Symbol.toStringTag]: string;\n}\n\ninterface WeakSet<T extends WeakKey> {\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 or an object that supports being matched against, and returns an array\n * containing the results of that search, or null if no matches are found.\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 * Passes a string and {@linkcode replaceValue} to the `[Symbol.replace]` method on {@linkcode searchValue}. This method is expected to implement its own replacement algorithm.\n * @param searchValue An object that supports searching for and replacing matches within a string.\n * @param replaceValue The replacement text.\n */\n replace(searchValue: { [Symbol.replace](string: string, replaceValue: string): string; }, replaceValue: string): string;\n\n /**\n * Replaces text in a string, using an object that supports replacement within a string.\n * @param searchValue A object can search for and replace matches within a string.\n * @param replacer A function that returns the replacement text.\n */\n replace(searchValue: { [Symbol.replace](string: string, replacer: (substring: string, ...args: any[]) => string): string; }, replacer: (substring: string, ...args: any[]) => string): string;\n\n /**\n * Finds the first substring match in a regular expression search.\n * @param searcher An object which supports searching within a string.\n */\n search(searcher: { [Symbol.search](string: string): number; }): number;\n\n /**\n * Split a string into substrings using the specified separator and return them as an array.\n * @param splitter An object that can split a string.\n * @param limit A value used to limit the number of elements returned in the array.\n */\n split(splitter: { [Symbol.split](string: string, limit?: number): string[]; }, limit?: number): string[];\n}\n\ninterface ArrayBuffer {\n readonly [Symbol.toStringTag]: "ArrayBuffer";\n}\n\ninterface DataView<TArrayBuffer extends ArrayBufferLike> {\n readonly [Symbol.toStringTag]: string;\n}\n\ninterface Int8Array<TArrayBuffer extends ArrayBufferLike> {\n readonly [Symbol.toStringTag]: "Int8Array";\n}\n\ninterface Uint8Array<TArrayBuffer extends ArrayBufferLike> {\n readonly [Symbol.toStringTag]: "Uint8Array";\n}\n\ninterface Uint8ClampedArray<TArrayBuffer extends ArrayBufferLike> {\n readonly [Symbol.toStringTag]: "Uint8ClampedArray";\n}\n\ninterface Int16Array<TArrayBuffer extends ArrayBufferLike> {\n readonly [Symbol.toStringTag]: "Int16Array";\n}\n\ninterface Uint16Array<TArrayBuffer extends ArrayBufferLike> {\n readonly [Symbol.toStringTag]: "Uint16Array";\n}\n\ninterface Int32Array<TArrayBuffer extends ArrayBufferLike> {\n readonly [Symbol.toStringTag]: "Int32Array";\n}\n\ninterface Uint32Array<TArrayBuffer extends ArrayBufferLike> {\n readonly [Symbol.toStringTag]: "Uint32Array";\n}\n\ninterface Float32Array<TArrayBuffer extends ArrayBufferLike> {\n readonly [Symbol.toStringTag]: "Float32Array";\n}\n\ninterface Float64Array<TArrayBuffer extends ArrayBufferLike> {\n readonly [Symbol.toStringTag]: "Float64Array";\n}\n\ninterface ArrayConstructor {\n readonly [Symbol.species]: ArrayConstructor;\n}\ninterface MapConstructor {\n readonly [Symbol.species]: MapConstructor;\n}\ninterface SetConstructor {\n readonly [Symbol.species]: SetConstructor;\n}\ninterface ArrayBufferConstructor {\n readonly [Symbol.species]: ArrayBufferConstructor;\n}\n',gi["lib.es2016.array.include.d.ts"]='/*! *****************************************************************************\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/// <reference no-default-lib="true"/>\n\ninterface Array<T> {\n /**\n * Determines whether an array includes a certain element, returning true or false as appropriate.\n * @param searchElement The element to search for.\n * @param fromIndex The position in this array at which to begin searching for searchElement.\n */\n includes(searchElement: T, fromIndex?: number): boolean;\n}\n\ninterface ReadonlyArray<T> {\n /**\n * Determines whether an array includes a certain element, returning true or false as appropriate.\n * @param searchElement The element to search for.\n * @param fromIndex The position in this array at which to begin searching for searchElement.\n */\n includes(searchElement: T, fromIndex?: number): boolean;\n}\n\ninterface Int8Array<TArrayBuffer extends ArrayBufferLike> {\n /**\n * Determines whether an array includes a certain element, returning true or false as appropriate.\n * @param searchElement The element to search for.\n * @param fromIndex The position in this array at which to begin searching for searchElement.\n */\n includes(searchElement: number, fromIndex?: number): boolean;\n}\n\ninterface Uint8Array<TArrayBuffer extends ArrayBufferLike> {\n /**\n * Determines whether an array includes a certain element, returning true or false as appropriate.\n * @param searchElement The element to search for.\n * @param fromIndex The position in this array at which to begin searching for searchElement.\n */\n includes(searchElement: number, fromIndex?: number): boolean;\n}\n\ninterface Uint8ClampedArray<TArrayBuffer extends ArrayBufferLike> {\n /**\n * Determines whether an array includes a certain element, returning true or false as appropriate.\n * @param searchElement The element to search for.\n * @param fromIndex The position in this array at which to begin searching for searchElement.\n */\n includes(searchElement: number, fromIndex?: number): boolean;\n}\n\ninterface Int16Array<TArrayBuffer extends ArrayBufferLike> {\n /**\n * Determines whether an array includes a certain element, returning true or false as appropriate.\n * @param searchElement The element to search for.\n * @param fromIndex The position in this array at which to begin searching for searchElement.\n */\n includes(searchElement: number, fromIndex?: number): boolean;\n}\n\ninterface Uint16Array<TArrayBuffer extends ArrayBufferLike> {\n /**\n * Determines whether an array includes a certain element, returning true or false as appropriate.\n * @param searchElement The element to search for.\n * @param fromIndex The position in this array at which to begin searching for searchElement.\n */\n includes(searchElement: number, fromIndex?: number): boolean;\n}\n\ninterface Int32Array<TArrayBuffer extends ArrayBufferLike> {\n /**\n * Determines whether an array includes a certain element, returning true or false as appropriate.\n * @param searchElement The element to search for.\n * @param fromIndex The position in this array at which to begin searching for searchElement.\n */\n includes(searchElement: number, fromIndex?: number): boolean;\n}\n\ninterface Uint32Array<TArrayBuffer extends ArrayBufferLike> {\n /**\n * Determines whether an array includes a certain element, returning true or false as appropriate.\n * @param searchElement The element to search for.\n * @param fromIndex The position in this array at which to begin searching for searchElement.\n */\n includes(searchElement: number, fromIndex?: number): boolean;\n}\n\ninterface Float32Array<TArrayBuffer extends ArrayBufferLike> {\n /**\n * Determines whether an array includes a certain element, returning true or false as appropriate.\n * @param searchElement The element to search for.\n * @param fromIndex The position in this array at which to begin searching for searchElement.\n */\n includes(searchElement: number, fromIndex?: number): boolean;\n}\n\ninterface Float64Array<TArrayBuffer extends ArrayBufferLike> {\n /**\n * Determines whether an array includes a certain element, returning true or false as appropriate.\n * @param searchElement The element to search for.\n * @param fromIndex The position in this array at which to begin searching for searchElement.\n */\n includes(searchElement: number, fromIndex?: number): boolean;\n}\n',gi["lib.es2016.d.ts"]='/*! *****************************************************************************\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/// <reference no-default-lib="true"/>\n\n/// <reference lib="es2015" />\n/// <reference lib="es2016.array.include" />\n/// <reference lib="es2016.intl" />\n',gi["lib.es2016.full.d.ts"]='/*! *****************************************************************************\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/// <reference no-default-lib="true"/>\n\n/// <reference lib="es2016" />\n/// <reference lib="dom" />\n/// <reference lib="webworker.importscripts" />\n/// <reference lib="scripthost" />\n/// <reference lib="dom.iterable" />\n',gi["lib.es2016.intl.d.ts"]='/*! *****************************************************************************\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/// <reference no-default-lib="true"/>\n\ndeclare namespace Intl {\n /**\n * The `Intl.getCanonicalLocales()` method returns an array containing\n * the canonical locale names. Duplicates will be omitted and elements\n * will be validated as structurally valid language tags.\n *\n * [MDN](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Intl/getCanonicalLocales)\n *\n * @param locale A list of String values for which to get the canonical locale names\n * @returns An array containing the canonical and validated locale names.\n */\n function getCanonicalLocales(locale?: string | readonly string[]): string[];\n}\n',gi["lib.es2017.arraybuffer.d.ts"]='/*! *****************************************************************************\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/// <reference no-default-lib="true"/>\n\ninterface ArrayBufferConstructor {\n new (): ArrayBuffer;\n}\n',gi["lib.es2017.d.ts"]='/*! *****************************************************************************\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/// <reference no-default-lib="true"/>\n\n/// <reference lib="es2016" />\n/// <reference lib="es2017.arraybuffer" />\n/// <reference lib="es2017.date" />\n/// <reference lib="es2017.intl" />\n/// <reference lib="es2017.object" />\n/// <reference lib="es2017.sharedmemory" />\n/// <reference lib="es2017.string" />\n/// <reference lib="es2017.typedarrays" />\n',gi["lib.es2017.date.d.ts"]='/*! *****************************************************************************\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/// <reference no-default-lib="true"/>\n\ninterface DateConstructor {\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 monthIndex The month as a number between 0 and 11 (January to December).\n * @param date The date as a number between 1 and 31.\n * @param hours Must be supplied if minutes is supplied. A number from 0 to 23 (midnight to 11pm) that specifies the hour.\n * @param minutes Must be supplied if seconds is supplied. A number from 0 to 59 that specifies the minutes.\n * @param seconds Must be supplied if milliseconds is supplied. A number from 0 to 59 that specifies the seconds.\n * @param ms A number from 0 to 999 that specifies the milliseconds.\n */\n UTC(year: number, monthIndex?: number, date?: number, hours?: number, minutes?: number, seconds?: number, ms?: number): number;\n}\n',gi["lib.es2017.full.d.ts"]='/*! *****************************************************************************\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/// <reference no-default-lib="true"/>\n\n/// <reference lib="es2017" />\n/// <reference lib="dom" />\n/// <reference lib="webworker.importscripts" />\n/// <reference lib="scripthost" />\n/// <reference lib="dom.iterable" />\n',gi["lib.es2017.intl.d.ts"]='/*! *****************************************************************************\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/// <reference no-default-lib="true"/>\n\ndeclare namespace Intl {\n interface DateTimeFormatPartTypesRegistry {\n day: any;\n dayPeriod: any;\n era: any;\n hour: any;\n literal: any;\n minute: any;\n month: any;\n second: any;\n timeZoneName: any;\n weekday: any;\n year: any;\n }\n\n type DateTimeFormatPartTypes = keyof DateTimeFormatPartTypesRegistry;\n\n interface DateTimeFormatPart {\n type: DateTimeFormatPartTypes;\n value: string;\n }\n\n interface DateTimeFormat {\n formatToParts(date?: Date | number): DateTimeFormatPart[];\n }\n}\n',gi["lib.es2017.object.d.ts"]='/*! *****************************************************************************\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/// <reference no-default-lib="true"/>\n\ninterface ObjectConstructor {\n /**\n * Returns an array of values of the enumerable own properties 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 values<T>(o: { [s: string]: T; } | ArrayLike<T>): T[];\n\n /**\n * Returns an array of values of the enumerable own properties 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 values(o: {}): any[];\n\n /**\n * Returns an array of key/values of the enumerable own properties 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 entries<T>(o: { [s: string]: T; } | ArrayLike<T>): [string, T][];\n\n /**\n * Returns an array of key/values of the enumerable own properties 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 entries(o: {}): [string, any][];\n\n /**\n * Returns an object containing all own property descriptors 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 getOwnPropertyDescriptors<T>(o: T): { [P in keyof T]: TypedPropertyDescriptor<T[P]>; } & { [x: string]: PropertyDescriptor; };\n}\n',gi["lib.es2017.sharedmemory.d.ts"]='/*! *****************************************************************************\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/// <reference no-default-lib="true"/>\n\n/// <reference lib="es2015.symbol" />\n/// <reference lib="es2015.symbol.wellknown" />\n\ninterface SharedArrayBuffer {\n /**\n * Read-only. The length of the ArrayBuffer (in bytes).\n */\n readonly byteLength: number;\n\n /**\n * Returns a section of an SharedArrayBuffer.\n */\n slice(begin?: number, end?: number): SharedArrayBuffer;\n readonly [Symbol.toStringTag]: "SharedArrayBuffer";\n}\n\ninterface SharedArrayBufferConstructor {\n readonly prototype: SharedArrayBuffer;\n new (byteLength?: number): SharedArrayBuffer;\n readonly [Symbol.species]: SharedArrayBufferConstructor;\n}\ndeclare var SharedArrayBuffer: SharedArrayBufferConstructor;\n\ninterface ArrayBufferTypes {\n SharedArrayBuffer: SharedArrayBuffer;\n}\n\ninterface Atomics {\n /**\n * Adds a value to the value at the given position in the array, returning the original value.\n * Until this atomic operation completes, any other read or write operation against the array\n * will block.\n */\n add(typedArray: Int8Array<ArrayBufferLike> | Uint8Array<ArrayBufferLike> | Int16Array<ArrayBufferLike> | Uint16Array<ArrayBufferLike> | Int32Array<ArrayBufferLike> | Uint32Array<ArrayBufferLike>, index: number, value: number): number;\n\n /**\n * Stores the bitwise AND of a value with the value at the given position in the array,\n * returning the original value. Until this atomic operation completes, any other read or\n * write operation against the array will block.\n */\n and(typedArray: Int8Array<ArrayBufferLike> | Uint8Array<ArrayBufferLike> | Int16Array<ArrayBufferLike> | Uint16Array<ArrayBufferLike> | Int32Array<ArrayBufferLike> | Uint32Array<ArrayBufferLike>, index: number, value: number): number;\n\n /**\n * Replaces the value at the given position in the array if the original value equals the given\n * expected value, returning the original value. Until this atomic operation completes, any\n * other read or write operation against the array will block.\n */\n compareExchange(typedArray: Int8Array<ArrayBufferLike> | Uint8Array<ArrayBufferLike> | Int16Array<ArrayBufferLike> | Uint16Array<ArrayBufferLike> | Int32Array<ArrayBufferLike> | Uint32Array<ArrayBufferLike>, index: number, expectedValue: number, replacementValue: number): number;\n\n /**\n * Replaces the value at the given position in the array, returning the original value. Until\n * this atomic operation completes, any other read or write operation against the array will\n * block.\n */\n exchange(typedArray: Int8Array<ArrayBufferLike> | Uint8Array<ArrayBufferLike> | Int16Array<ArrayBufferLike> | Uint16Array<ArrayBufferLike> | Int32Array<ArrayBufferLike> | Uint32Array<ArrayBufferLike>, index: number, value: number): number;\n\n /**\n * Returns a value indicating whether high-performance algorithms can use atomic operations\n * (`true`) or must use locks (`false`) for the given number of bytes-per-element of a typed\n * array.\n */\n isLockFree(size: number): boolean;\n\n /**\n * Returns the value at the given position in the array. Until this atomic operation completes,\n * any other read or write operation against the array will block.\n */\n load(typedArray: Int8Array<ArrayBufferLike> | Uint8Array<ArrayBufferLike> | Int16Array<ArrayBufferLike> | Uint16Array<ArrayBufferLike> | Int32Array<ArrayBufferLike> | Uint32Array<ArrayBufferLike>, index: number): number;\n\n /**\n * Stores the bitwise OR of a value with the value at the given position in the array,\n * returning the original value. Until this atomic operation completes, any other read or write\n * operation against the array will block.\n */\n or(typedArray: Int8Array<ArrayBufferLike> | Uint8Array<ArrayBufferLike> | Int16Array<ArrayBufferLike> | Uint16Array<ArrayBufferLike> | Int32Array<ArrayBufferLike> | Uint32Array<ArrayBufferLike>, index: number, value: number): number;\n\n /**\n * Stores a value at the given position in the array, returning the new value. Until this\n * atomic operation completes, any other read or write operation against the array will block.\n */\n store(typedArray: Int8Array<ArrayBufferLike> | Uint8Array<ArrayBufferLike> | Int16Array<ArrayBufferLike> | Uint16Array<ArrayBufferLike> | Int32Array<ArrayBufferLike> | Uint32Array<ArrayBufferLike>, index: number, value: number): number;\n\n /**\n * Subtracts a value from the value at the given position in the array, returning the original\n * value. Until this atomic operation completes, any other read or write operation against the\n * array will block.\n */\n sub(typedArray: Int8Array<ArrayBufferLike> | Uint8Array<ArrayBufferLike> | Int16Array<ArrayBufferLike> | Uint16Array<ArrayBufferLike> | Int32Array<ArrayBufferLike> | Uint32Array<ArrayBufferLike>, index: number, value: number): number;\n\n /**\n * If the value at the given position in the array is equal to the provided value, the current\n * agent is put to sleep causing execution to suspend until the timeout expires (returning\n * `"timed-out"`) or until the agent is awoken (returning `"ok"`); otherwise, returns\n * `"not-equal"`.\n */\n wait(typedArray: Int32Array<ArrayBufferLike>, index: number, value: number, timeout?: number): "ok" | "not-equal" | "timed-out";\n\n /**\n * Wakes up sleeping agents that are waiting on the given index of the array, returning the\n * number of agents that were awoken.\n * @param typedArray A shared Int32Array<ArrayBufferLike>.\n * @param index The position in the typedArray to wake up on.\n * @param count The number of sleeping agents to notify. Defaults to +Infinity.\n */\n notify(typedArray: Int32Array<ArrayBufferLike>, index: number, count?: number): number;\n\n /**\n * Stores the bitwise XOR of a value with the value at the given position in the array,\n * returning the original value. Until this atomic operation completes, any other read or write\n * operation against the array will block.\n */\n xor(typedArray: Int8Array<ArrayBufferLike> | Uint8Array<ArrayBufferLike> | Int16Array<ArrayBufferLike> | Uint16Array<ArrayBufferLike> | Int32Array<ArrayBufferLike> | Uint32Array<ArrayBufferLike>, index: number, value: number): number;\n\n readonly [Symbol.toStringTag]: "Atomics";\n}\n\ndeclare var Atomics: Atomics;\n',gi["lib.es2017.string.d.ts"]='/*! *****************************************************************************\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/// <reference no-default-lib="true"/>\n\ninterface String {\n /**\n * Pads the current string with a given string (possibly repeated) so that the resulting string reaches a given length.\n * The padding is applied from the start (left) of the current string.\n *\n * @param maxLength The length of the resulting string once the current string has been padded.\n * If this parameter is smaller than the current string\'s length, the current string will be returned as it is.\n *\n * @param fillString The string to pad the current string with.\n * If this string is too long, it will be truncated and the left-most part will be applied.\n * The default value for this parameter is " " (U+0020).\n */\n padStart(maxLength: number, fillString?: string): string;\n\n /**\n * Pads the current string with a given string (possibly repeated) so that the resulting string reaches a given length.\n * The padding is applied from the end (right) of the current string.\n *\n * @param maxLength The length of the resulting string once the current string has been padded.\n * If this parameter is smaller than the current string\'s length, the current string will be returned as it is.\n *\n * @param fillString The string to pad the current string with.\n * If this string is too long, it will be truncated and the left-most part will be applied.\n * The default value for this parameter is " " (U+0020).\n */\n padEnd(maxLength: number, fillString?: string): string;\n}\n',gi["lib.es2017.typedarrays.d.ts"]='/*! *****************************************************************************\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/// <reference no-default-lib="true"/>\n\ninterface Int8ArrayConstructor {\n new (): Int8Array<ArrayBuffer>;\n}\n\ninterface Uint8ArrayConstructor {\n new (): Uint8Array<ArrayBuffer>;\n}\n\ninterface Uint8ClampedArrayConstructor {\n new (): Uint8ClampedArray<ArrayBuffer>;\n}\n\ninterface Int16ArrayConstructor {\n new (): Int16Array<ArrayBuffer>;\n}\n\ninterface Uint16ArrayConstructor {\n new (): Uint16Array<ArrayBuffer>;\n}\n\ninterface Int32ArrayConstructor {\n new (): Int32Array<ArrayBuffer>;\n}\n\ninterface Uint32ArrayConstructor {\n new (): Uint32Array<ArrayBuffer>;\n}\n\ninterface Float32ArrayConstructor {\n new (): Float32Array<ArrayBuffer>;\n}\n\ninterface Float64ArrayConstructor {\n new (): Float64Array<ArrayBuffer>;\n}\n',gi["lib.es2018.asyncgenerator.d.ts"]='/*! *****************************************************************************\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/// <reference no-default-lib="true"/>\n\n/// <reference lib="es2018.asynciterable" />\n\ninterface AsyncGenerator<T = unknown, TReturn = any, TNext = any> extends AsyncIteratorObject<T, TReturn, TNext> {\n // NOTE: \'next\' is defined using a tuple to ensure we report the correct assignability errors in all places.\n next(...[value]: [] | [TNext]): Promise<IteratorResult<T, TReturn>>;\n return(value: TReturn | PromiseLike<TReturn>): Promise<IteratorResult<T, TReturn>>;\n throw(e: any): Promise<IteratorResult<T, TReturn>>;\n [Symbol.asyncIterator](): AsyncGenerator<T, TReturn, TNext>;\n}\n\ninterface AsyncGeneratorFunction {\n /**\n * Creates a new AsyncGenerator object.\n * @param args A list of arguments the function accepts.\n */\n new (...args: any[]): AsyncGenerator;\n /**\n * Creates a new AsyncGenerator object.\n * @param args A list of arguments the function accepts.\n */\n (...args: any[]): AsyncGenerator;\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: AsyncGenerator;\n}\n\ninterface AsyncGeneratorFunctionConstructor {\n /**\n * Creates a new AsyncGenerator function.\n * @param args A list of arguments the function accepts.\n */\n new (...args: string[]): AsyncGeneratorFunction;\n /**\n * Creates a new AsyncGenerator function.\n * @param args A list of arguments the function accepts.\n */\n (...args: string[]): AsyncGeneratorFunction;\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: AsyncGeneratorFunction;\n}\n',gi["lib.es2018.asynciterable.d.ts"]='/*! *****************************************************************************\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/// <reference no-default-lib="true"/>\n\n/// <reference lib="es2015.symbol" />\n/// <reference lib="es2015.iterable" />\n\ninterface SymbolConstructor {\n /**\n * A method that returns the default async iterator for an object. Called by the semantics of\n * the for-await-of statement.\n */\n readonly asyncIterator: unique symbol;\n}\n\ninterface AsyncIterator<T, TReturn = any, TNext = any> {\n // NOTE: \'next\' is defined using a tuple to ensure we report the correct assignability errors in all places.\n next(...[value]: [] | [TNext]): Promise<IteratorResult<T, TReturn>>;\n return?(value?: TReturn | PromiseLike<TReturn>): Promise<IteratorResult<T, TReturn>>;\n throw?(e?: any): Promise<IteratorResult<T, TReturn>>;\n}\n\ninterface AsyncIterable<T, TReturn = any, TNext = any> {\n [Symbol.asyncIterator](): AsyncIterator<T, TReturn, TNext>;\n}\n\n/**\n * Describes a user-defined {@link AsyncIterator} that is also async iterable.\n */\ninterface AsyncIterableIterator<T, TReturn = any, TNext = any> extends AsyncIterator<T, TReturn, TNext> {\n [Symbol.asyncIterator](): AsyncIterableIterator<T, TReturn, TNext>;\n}\n\n/**\n * Describes an {@link AsyncIterator} produced by the runtime that inherits from the intrinsic `AsyncIterator.prototype`.\n */\ninterface AsyncIteratorObject<T, TReturn = unknown, TNext = unknown> extends AsyncIterator<T, TReturn, TNext> {\n [Symbol.asyncIterator](): AsyncIteratorObject<T, TReturn, TNext>;\n}\n',gi["lib.es2018.d.ts"]='/*! *****************************************************************************\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/// <reference no-default-lib="true"/>\n\n/// <reference lib="es2017" />\n/// <reference lib="es2018.asynciterable" />\n/// <reference lib="es2018.asyncgenerator" />\n/// <reference lib="es2018.promise" />\n/// <reference lib="es2018.regexp" />\n/// <reference lib="es2018.intl" />\n',gi["lib.es2018.full.d.ts"]='/*! *****************************************************************************\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/// <reference no-default-lib="true"/>\n\n/// <reference lib="es2018" />\n/// <reference lib="dom" />\n/// <reference lib="webworker.importscripts" />\n/// <reference lib="scripthost" />\n/// <reference lib="dom.iterable" />\n/// <reference lib="dom.asynciterable" />\n',gi["lib.es2018.intl.d.ts"]='/*! *****************************************************************************\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/// <reference no-default-lib="true"/>\n\ndeclare namespace Intl {\n // http://cldr.unicode.org/index/cldr-spec/plural-rules#TOC-Determining-Plural-Categories\n type LDMLPluralRule = "zero" | "one" | "two" | "few" | "many" | "other";\n type PluralRuleType = "cardinal" | "ordinal";\n\n interface PluralRulesOptions {\n localeMatcher?: "lookup" | "best fit" | undefined;\n type?: PluralRuleType | undefined;\n minimumIntegerDigits?: number | undefined;\n minimumFractionDigits?: number | undefined;\n maximumFractionDigits?: number | undefined;\n minimumSignificantDigits?: number | undefined;\n maximumSignificantDigits?: number | undefined;\n }\n\n interface ResolvedPluralRulesOptions {\n locale: string;\n pluralCategories: LDMLPluralRule[];\n type: PluralRuleType;\n minimumIntegerDigits: number;\n minimumFractionDigits: number;\n maximumFractionDigits: number;\n minimumSignificantDigits?: number;\n maximumSignificantDigits?: number;\n }\n\n interface PluralRules {\n resolvedOptions(): ResolvedPluralRulesOptions;\n select(n: number): LDMLPluralRule;\n }\n\n interface PluralRulesConstructor {\n new (locales?: string | readonly string[], options?: PluralRulesOptions): PluralRules;\n (locales?: string | readonly string[], options?: PluralRulesOptions): PluralRules;\n supportedLocalesOf(locales: string | readonly string[], options?: { localeMatcher?: "lookup" | "best fit"; }): string[];\n }\n\n const PluralRules: PluralRulesConstructor;\n\n interface NumberFormatPartTypeRegistry {\n literal: never;\n nan: never;\n infinity: never;\n percent: never;\n integer: never;\n group: never;\n decimal: never;\n fraction: never;\n plusSign: never;\n minusSign: never;\n percentSign: never;\n currency: never;\n }\n\n type NumberFormatPartTypes = keyof NumberFormatPartTypeRegistry;\n\n interface NumberFormatPart {\n type: NumberFormatPartTypes;\n value: string;\n }\n\n interface NumberFormat {\n formatToParts(number?: number | bigint): NumberFormatPart[];\n }\n}\n',gi["lib.es2018.promise.d.ts"]='/*! *****************************************************************************\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/// <reference no-default-lib="true"/>\n\n/**\n * Represents the completion of an asynchronous operation\n */\ninterface Promise<T> {\n /**\n * Attaches a callback that is invoked when the Promise is settled (fulfilled or rejected). The\n * resolved value cannot be modified from the callback.\n * @param onfinally The callback to execute when the Promise is settled (fulfilled or rejected).\n * @returns A Promise for the completion of the callback.\n */\n finally(onfinally?: (() => void) | undefined | null): Promise<T>;\n}\n',gi["lib.es2018.regexp.d.ts"]='/*! *****************************************************************************\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/// <reference no-default-lib="true"/>\n\ninterface RegExpMatchArray {\n groups?: {\n [key: string]: string;\n };\n}\n\ninterface RegExpExecArray {\n groups?: {\n [key: string]: string;\n };\n}\n\ninterface RegExp {\n /**\n * Returns a Boolean value indicating the state of the dotAll flag (s) used with a regular expression.\n * Default is false. Read-only.\n */\n readonly dotAll: boolean;\n}\n',gi["lib.es2019.array.d.ts"]='/*! *****************************************************************************\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/// <reference no-default-lib="true"/>\n\ntype FlatArray<Arr, Depth extends number> = {\n done: Arr;\n recur: Arr extends ReadonlyArray<infer InnerArr> ? FlatArray<InnerArr, [-1, 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20][Depth]>\n : Arr;\n}[Depth extends -1 ? "done" : "recur"];\n\ninterface ReadonlyArray<T> {\n /**\n * Calls a defined callback function on each element of an array. Then, flattens the result into\n * a new array.\n * This is identical to a map followed by flat with depth 1.\n *\n * @param callback A function that accepts up to three arguments. The flatMap method calls the\n * callback function one time for each element in the array.\n * @param thisArg An object to which the this keyword can refer in the callback function. If\n * thisArg is omitted, undefined is used as the this value.\n */\n flatMap<U, This = undefined>(\n callback: (this: This, value: T, index: number, array: T[]) => U | ReadonlyArray<U>,\n thisArg?: This,\n ): U[];\n\n /**\n * Returns a new array with all sub-array elements concatenated into it recursively up to the\n * specified depth.\n *\n * @param depth The maximum recursion depth\n */\n flat<A, D extends number = 1>(\n this: A,\n depth?: D,\n ): FlatArray<A, D>[];\n}\n\ninterface Array<T> {\n /**\n * Calls a defined callback function on each element of an array. Then, flattens the result into\n * a new array.\n * This is identical to a map followed by flat with depth 1.\n *\n * @param callback A function that accepts up to three arguments. The flatMap method calls the\n * callback function one time for each element in the array.\n * @param thisArg An object to which the this keyword can refer in the callback function. If\n * thisArg is omitted, undefined is used as the this value.\n */\n flatMap<U, This = undefined>(\n callback: (this: This, value: T, index: number, array: T[]) => U | ReadonlyArray<U>,\n thisArg?: This,\n ): U[];\n\n /**\n * Returns a new array with all sub-array elements concatenated into it recursively up to the\n * specified depth.\n *\n * @param depth The maximum recursion depth\n */\n flat<A, D extends number = 1>(\n this: A,\n depth?: D,\n ): FlatArray<A, D>[];\n}\n',gi["lib.es2019.d.ts"]='/*! *****************************************************************************\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/// <reference no-default-lib="true"/>\n\n/// <reference lib="es2018" />\n/// <reference lib="es2019.array" />\n/// <reference lib="es2019.object" />\n/// <reference lib="es2019.string" />\n/// <reference lib="es2019.symbol" />\n/// <reference lib="es2019.intl" />\n',gi["lib.es2019.full.d.ts"]='/*! *****************************************************************************\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/// <reference no-default-lib="true"/>\n\n/// <reference lib="es2019" />\n/// <reference lib="dom" />\n/// <reference lib="webworker.importscripts" />\n/// <reference lib="scripthost" />\n/// <reference lib="dom.iterable" />\n/// <reference lib="dom.asynciterable" />\n',gi["lib.es2019.intl.d.ts"]='/*! *****************************************************************************\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/// <reference no-default-lib="true"/>\n\ndeclare namespace Intl {\n interface DateTimeFormatPartTypesRegistry {\n unknown: never;\n }\n}\n',gi["lib.es2019.object.d.ts"]='/*! *****************************************************************************\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/// <reference no-default-lib="true"/>\n\n/// <reference lib="es2015.iterable" />\n\ninterface ObjectConstructor {\n /**\n * Returns an object created by key-value entries for properties and methods\n * @param entries An iterable object that contains key-value entries for properties and methods.\n */\n fromEntries<T = any>(entries: Iterable<readonly [PropertyKey, T]>): { [k: string]: T; };\n\n /**\n * Returns an object created by key-value entries for properties and methods\n * @param entries An iterable object that contains key-value entries for properties and methods.\n */\n fromEntries(entries: Iterable<readonly any[]>): any;\n}\n',gi["lib.es2019.string.d.ts"]='/*! *****************************************************************************\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/// <reference no-default-lib="true"/>\n\ninterface String {\n /** Removes the trailing white space and line terminator characters from a string. */\n trimEnd(): string;\n\n /** Removes the leading white space and line terminator characters from a string. */\n trimStart(): string;\n\n /**\n * Removes the leading white space and line terminator characters from a string.\n * @deprecated A legacy feature for browser compatibility. Use `trimStart` instead\n */\n trimLeft(): string;\n\n /**\n * Removes the trailing white space and line terminator characters from a string.\n * @deprecated A legacy feature for browser compatibility. Use `trimEnd` instead\n */\n trimRight(): string;\n}\n',gi["lib.es2019.symbol.d.ts"]='/*! *****************************************************************************\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/// <reference no-default-lib="true"/>\n\ninterface Symbol {\n /**\n * Expose the [[Description]] internal slot of a symbol directly.\n */\n readonly description: string | undefined;\n}\n',gi["lib.es2020.bigint.d.ts"]='/*! *****************************************************************************\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/// <reference no-default-lib="true"/>\n\n/// <reference lib="es2020.intl" />\n\ninterface BigIntToLocaleStringOptions {\n /**\n * The locale matching algorithm to use.The default is "best fit". For information about this option, see the {@link https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Intl#Locale_negotiation Intl page}.\n */\n localeMatcher?: string;\n /**\n * The formatting style to use , the default is "decimal".\n */\n style?: string;\n\n numberingSystem?: string;\n /**\n * The unit to use in unit formatting, Possible values are core unit identifiers, defined in UTS #35, Part 2, Section 6. A subset of units from the full list was selected for use in ECMAScript. Pairs of simple units can be concatenated with "-per-" to make a compound unit. There is no default value; if the style is "unit", the unit property must be provided.\n */\n unit?: string;\n\n /**\n * The unit formatting style to use in unit formatting, the defaults is "short".\n */\n unitDisplay?: string;\n\n /**\n * The currency to use in currency formatting. Possible values are the ISO 4217 currency codes, such as "USD" for the US dollar, "EUR" for the euro, or "CNY" for the Chinese RMB — see the Current currency & funds code list. There is no default value; if the style is "currency", the currency property must be provided. It is only used when [[Style]] has the value "currency".\n */\n currency?: string;\n\n /**\n * How to display the currency in currency formatting. It is only used when [[Style]] has the value "currency". The default is "symbol".\n *\n * "symbol" to use a localized currency symbol such as €,\n *\n * "code" to use the ISO currency code,\n *\n * "name" to use a localized currency name such as "dollar"\n */\n currencyDisplay?: string;\n\n /**\n * Whether to use grouping separators, such as thousands separators or thousand/lakh/crore separators. The default is true.\n */\n useGrouping?: boolean;\n\n /**\n * The minimum number of integer digits to use. Possible values are from 1 to 21; the default is 1.\n */\n minimumIntegerDigits?: 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21;\n\n /**\n * The minimum number of fraction digits to use. Possible values are from 0 to 20; the default for plain number and percent formatting is 0; the default for currency formatting is the number of minor unit digits provided by the {@link http://www.currency-iso.org/en/home/tables/table-a1.html ISO 4217 currency codes list} (2 if the list doesn\'t provide that information).\n */\n minimumFractionDigits?: 0 | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20;\n\n /**\n * The maximum number of fraction digits to use. Possible values are from 0 to 20; the default for plain number formatting is the larger of minimumFractionDigits and 3; the default for currency formatting is the larger of minimumFractionDigits and the number of minor unit digits provided by the {@link http://www.currency-iso.org/en/home/tables/table-a1.html ISO 4217 currency codes list} (2 if the list doesn\'t provide that information); the default for percent formatting is the larger of minimumFractionDigits and 0.\n */\n maximumFractionDigits?: 0 | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20;\n\n /**\n * The minimum number of significant digits to use. Possible values are from 1 to 21; the default is 1.\n */\n minimumSignificantDigits?: 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21;\n\n /**\n * The maximum number of significant digits to use. Possible values are from 1 to 21; the default is 21.\n */\n maximumSignificantDigits?: 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21;\n\n /**\n * The formatting that should be displayed for the number, the defaults is "standard"\n *\n * "standard" plain number formatting\n *\n * "scientific" return the order-of-magnitude for formatted number.\n *\n * "engineering" return the exponent of ten when divisible by three\n *\n * "compact" string representing exponent, defaults is using the "short" form\n */\n notation?: string;\n\n /**\n * used only when notation is "compact"\n */\n compactDisplay?: string;\n}\n\ninterface BigInt {\n /**\n * Returns a string representation of an object.\n * @param radix Specifies a radix for converting numeric values to strings.\n */\n toString(radix?: number): string;\n\n /** Returns a string representation appropriate to the host environment\'s current locale. */\n toLocaleString(locales?: Intl.LocalesArgument, options?: BigIntToLocaleStringOptions): string;\n\n /** Returns the primitive value of the specified object. */\n valueOf(): bigint;\n\n readonly [Symbol.toStringTag]: "BigInt";\n}\n\ninterface BigIntConstructor {\n (value: bigint | boolean | number | string): bigint;\n readonly prototype: BigInt;\n\n /**\n * Interprets the low bits of a BigInt as a 2\'s-complement signed integer.\n * All higher bits are discarded.\n * @param bits The number of low bits to use\n * @param int The BigInt whose bits to extract\n */\n asIntN(bits: number, int: bigint): bigint;\n /**\n * Interprets the low bits of a BigInt as an unsigned integer.\n * All higher bits are discarded.\n * @param bits The number of low bits to use\n * @param int The BigInt whose bits to extract\n */\n asUintN(bits: number, int: bigint): bigint;\n}\n\ndeclare var BigInt: BigIntConstructor;\n\n/**\n * A typed array of 64-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 BigInt64Array<TArrayBuffer extends ArrayBufferLike = ArrayBufferLike> {\n /** The size in bytes of each element in the array. */\n readonly BYTES_PER_ELEMENT: number;\n\n /** The ArrayBuffer instance referenced by the array. */\n readonly buffer: TArrayBuffer;\n\n /** The length in bytes of the array. */\n readonly byteLength: number;\n\n /** The offset in bytes of the array. */\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 /** Yields index, value pairs for every entry in the array. */\n entries(): ArrayIterator<[number, bigint]>;\n\n /**\n * Determines whether all the members of an array satisfy the specified test.\n * @param predicate A function that accepts up to three arguments. The every method calls\n * the predicate function for each element in the array until the predicate returns false,\n * or until the end of the array.\n * @param thisArg An object to which the this keyword can refer in the predicate function.\n * If thisArg is omitted, undefined is used as the this value.\n */\n every(predicate: (value: bigint, index: number, array: BigInt64Array<TArrayBuffer>) => boolean, thisArg?: any): boolean;\n\n /**\n * Changes all array elements from `start` to `end` index to a static `value` and returns the modified array\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: bigint, 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 predicate A function that accepts up to three arguments. The filter method calls\n * the predicate function one time for each element in the array.\n * @param thisArg An object to which the this keyword can refer in the predicate function.\n * If thisArg is omitted, undefined is used as the this value.\n */\n filter(predicate: (value: bigint, index: number, array: BigInt64Array<TArrayBuffer>) => any, thisArg?: any): BigInt64Array<ArrayBuffer>;\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: bigint, index: number, array: BigInt64Array<TArrayBuffer>) => boolean, thisArg?: any): bigint | 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: bigint, index: number, array: BigInt64Array<TArrayBuffer>) => 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: bigint, index: number, array: BigInt64Array<TArrayBuffer>) => void, thisArg?: any): void;\n\n /**\n * Determines whether an array includes a certain element, returning true or false as appropriate.\n * @param searchElement The element to search for.\n * @param fromIndex The position in this array at which to begin searching for searchElement.\n */\n includes(searchElement: bigint, fromIndex?: number): boolean;\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: bigint, 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 /** Yields each index in the array. */\n keys(): ArrayIterator<number>;\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: bigint, fromIndex?: number): number;\n\n /** The length of the array. */\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: bigint, index: number, array: BigInt64Array<TArrayBuffer>) => bigint, thisArg?: any): BigInt64Array<ArrayBuffer>;\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: bigint, currentValue: bigint, currentIndex: number, array: BigInt64Array<TArrayBuffer>) => bigint): bigint;\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: bigint, currentIndex: number, array: BigInt64Array<TArrayBuffer>) => 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: bigint, currentValue: bigint, currentIndex: number, array: BigInt64Array<TArrayBuffer>) => bigint): bigint;\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: bigint, currentIndex: number, array: BigInt64Array<TArrayBuffer>) => U, initialValue: U): U;\n\n /** Reverses the elements in the array. */\n reverse(): this;\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<bigint>, 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): BigInt64Array<ArrayBuffer>;\n\n /**\n * Determines whether the specified callback function returns true for any element of an array.\n * @param predicate A function that accepts up to three arguments. The some method calls the\n * predicate function for each element in the array until the predicate returns true, or until\n * the end of the array.\n * @param thisArg An object to which the this keyword can refer in the predicate function.\n * If thisArg is omitted, undefined is used as the this value.\n */\n some(predicate: (value: bigint, index: number, array: BigInt64Array<TArrayBuffer>) => boolean, thisArg?: any): boolean;\n\n /**\n * Sorts the array.\n * @param compareFn The function used to determine the order of the elements. If omitted, the elements are sorted in ascending order.\n */\n sort(compareFn?: (a: bigint, b: bigint) => number | bigint): this;\n\n /**\n * Gets a new BigInt64Array 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): BigInt64Array<TArrayBuffer>;\n\n /** Converts the array to a string by using the current locale. */\n toLocaleString(locales?: string | string[], options?: Intl.NumberFormatOptions): string;\n\n /** Returns a string representation of the array. */\n toString(): string;\n\n /** Returns the primitive value of the specified object. */\n valueOf(): BigInt64Array<TArrayBuffer>;\n\n /** Yields each value in the array. */\n values(): ArrayIterator<bigint>;\n\n [Symbol.iterator](): ArrayIterator<bigint>;\n\n readonly [Symbol.toStringTag]: "BigInt64Array";\n\n [index: number]: bigint;\n}\ninterface BigInt64ArrayConstructor {\n readonly prototype: BigInt64Array<ArrayBufferLike>;\n new (length?: number): BigInt64Array<ArrayBuffer>;\n new (array: ArrayLike<bigint> | Iterable<bigint>): BigInt64Array<ArrayBuffer>;\n new <TArrayBuffer extends ArrayBufferLike = ArrayBuffer>(buffer: TArrayBuffer, byteOffset?: number, length?: number): BigInt64Array<TArrayBuffer>;\n new (buffer: ArrayBuffer, byteOffset?: number, length?: number): BigInt64Array<ArrayBuffer>;\n new (array: ArrayLike<bigint> | ArrayBuffer): BigInt64Array<ArrayBuffer>;\n\n /** The size in bytes of each element in the array. */\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: bigint[]): BigInt64Array<ArrayBuffer>;\n\n /**\n * Creates an array from an array-like or iterable object.\n * @param arrayLike An array-like object to convert to an array.\n */\n from(arrayLike: ArrayLike<bigint>): BigInt64Array<ArrayBuffer>;\n\n /**\n * Creates an array from an array-like or 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<U>(arrayLike: ArrayLike<U>, mapfn: (v: U, k: number) => bigint, thisArg?: any): BigInt64Array<ArrayBuffer>;\n\n /**\n * Creates an array from an array-like or iterable object.\n * @param elements An iterable object to convert to an array.\n */\n from(elements: Iterable<bigint>): BigInt64Array<ArrayBuffer>;\n\n /**\n * Creates an array from an array-like or iterable object.\n * @param elements 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>(elements: Iterable<T>, mapfn?: (v: T, k: number) => bigint, thisArg?: any): BigInt64Array<ArrayBuffer>;\n}\ndeclare var BigInt64Array: BigInt64ArrayConstructor;\n\n/**\n * A typed array of 64-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 BigUint64Array<TArrayBuffer extends ArrayBufferLike = ArrayBufferLike> {\n /** The size in bytes of each element in the array. */\n readonly BYTES_PER_ELEMENT: number;\n\n /** The ArrayBuffer instance referenced by the array. */\n readonly buffer: TArrayBuffer;\n\n /** The length in bytes of the array. */\n readonly byteLength: number;\n\n /** The offset in bytes of the array. */\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 /** Yields index, value pairs for every entry in the array. */\n entries(): ArrayIterator<[number, bigint]>;\n\n /**\n * Determines whether all the members of an array satisfy the specified test.\n * @param predicate A function that accepts up to three arguments. The every method calls\n * the predicate function for each element in the array until the predicate returns false,\n * or until the end of the array.\n * @param thisArg An object to which the this keyword can refer in the predicate function.\n * If thisArg is omitted, undefined is used as the this value.\n */\n every(predicate: (value: bigint, index: number, array: BigUint64Array<TArrayBuffer>) => boolean, thisArg?: any): boolean;\n\n /**\n * Changes all array elements from `start` to `end` index to a static `value` and returns the modified array\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: bigint, 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 predicate A function that accepts up to three arguments. The filter method calls\n * the predicate function one time for each element in the array.\n * @param thisArg An object to which the this keyword can refer in the predicate function.\n * If thisArg is omitted, undefined is used as the this value.\n */\n filter(predicate: (value: bigint, index: number, array: BigUint64Array<TArrayBuffer>) => any, thisArg?: any): BigUint64Array<ArrayBuffer>;\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: bigint, index: number, array: BigUint64Array<TArrayBuffer>) => boolean, thisArg?: any): bigint | 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: bigint, index: number, array: BigUint64Array<TArrayBuffer>) => 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: bigint, index: number, array: BigUint64Array<TArrayBuffer>) => void, thisArg?: any): void;\n\n /**\n * Determines whether an array includes a certain element, returning true or false as appropriate.\n * @param searchElement The element to search for.\n * @param fromIndex The position in this array at which to begin searching for searchElement.\n */\n includes(searchElement: bigint, fromIndex?: number): boolean;\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: bigint, 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 /** Yields each index in the array. */\n keys(): ArrayIterator<number>;\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: bigint, fromIndex?: number): number;\n\n /** The length of the array. */\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: bigint, index: number, array: BigUint64Array<TArrayBuffer>) => bigint, thisArg?: any): BigUint64Array<ArrayBuffer>;\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: bigint, currentValue: bigint, currentIndex: number, array: BigUint64Array<TArrayBuffer>) => bigint): bigint;\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: bigint, currentIndex: number, array: BigUint64Array<TArrayBuffer>) => 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: bigint, currentValue: bigint, currentIndex: number, array: BigUint64Array<TArrayBuffer>) => bigint): bigint;\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: bigint, currentIndex: number, array: BigUint64Array<TArrayBuffer>) => U, initialValue: U): U;\n\n /** Reverses the elements in the array. */\n reverse(): this;\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<bigint>, 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): BigUint64Array<ArrayBuffer>;\n\n /**\n * Determines whether the specified callback function returns true for any element of an array.\n * @param predicate A function that accepts up to three arguments. The some method calls the\n * predicate function for each element in the array until the predicate returns true, or until\n * the end of the array.\n * @param thisArg An object to which the this keyword can refer in the predicate function.\n * If thisArg is omitted, undefined is used as the this value.\n */\n some(predicate: (value: bigint, index: number, array: BigUint64Array<TArrayBuffer>) => boolean, thisArg?: any): boolean;\n\n /**\n * Sorts the array.\n * @param compareFn The function used to determine the order of the elements. If omitted, the elements are sorted in ascending order.\n */\n sort(compareFn?: (a: bigint, b: bigint) => number | bigint): this;\n\n /**\n * Gets a new BigUint64Array 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): BigUint64Array<TArrayBuffer>;\n\n /** Converts the array to a string by using the current locale. */\n toLocaleString(locales?: string | string[], options?: Intl.NumberFormatOptions): string;\n\n /** Returns a string representation of the array. */\n toString(): string;\n\n /** Returns the primitive value of the specified object. */\n valueOf(): BigUint64Array<TArrayBuffer>;\n\n /** Yields each value in the array. */\n values(): ArrayIterator<bigint>;\n\n [Symbol.iterator](): ArrayIterator<bigint>;\n\n readonly [Symbol.toStringTag]: "BigUint64Array";\n\n [index: number]: bigint;\n}\ninterface BigUint64ArrayConstructor {\n readonly prototype: BigUint64Array<ArrayBufferLike>;\n new (length?: number): BigUint64Array<ArrayBuffer>;\n new (array: ArrayLike<bigint> | Iterable<bigint>): BigUint64Array<ArrayBuffer>;\n new <TArrayBuffer extends ArrayBufferLike = ArrayBuffer>(buffer: TArrayBuffer, byteOffset?: number, length?: number): BigUint64Array<TArrayBuffer>;\n new (buffer: ArrayBuffer, byteOffset?: number, length?: number): BigUint64Array<ArrayBuffer>;\n new (array: ArrayLike<bigint> | ArrayBuffer): BigUint64Array<ArrayBuffer>;\n\n /** The size in bytes of each element in the array. */\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: bigint[]): BigUint64Array<ArrayBuffer>;\n\n /**\n * Creates an array from an array-like or iterable object.\n * @param arrayLike An array-like object to convert to an array.\n */\n from(arrayLike: ArrayLike<bigint>): BigUint64Array<ArrayBuffer>;\n\n /**\n * Creates an array from an array-like or 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<U>(arrayLike: ArrayLike<U>, mapfn: (v: U, k: number) => bigint, thisArg?: any): BigUint64Array<ArrayBuffer>;\n\n /**\n * Creates an array from an array-like or iterable object.\n * @param elements An iterable object to convert to an array.\n */\n from(elements: Iterable<bigint>): BigUint64Array<ArrayBuffer>;\n\n /**\n * Creates an array from an array-like or iterable object.\n * @param elements 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>(elements: Iterable<T>, mapfn?: (v: T, k: number) => bigint, thisArg?: any): BigUint64Array<ArrayBuffer>;\n}\ndeclare var BigUint64Array: BigUint64ArrayConstructor;\n\ninterface DataView<TArrayBuffer extends ArrayBufferLike> {\n /**\n * Gets the BigInt64 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 * @param littleEndian If false or undefined, a big-endian value should be read.\n */\n getBigInt64(byteOffset: number, littleEndian?: boolean): bigint;\n\n /**\n * Gets the BigUint64 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 * @param littleEndian If false or undefined, a big-endian value should be read.\n */\n getBigUint64(byteOffset: number, littleEndian?: boolean): bigint;\n\n /**\n * Stores a BigInt64 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 */\n setBigInt64(byteOffset: number, value: bigint, littleEndian?: boolean): void;\n\n /**\n * Stores a BigUint64 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 */\n setBigUint64(byteOffset: number, value: bigint, littleEndian?: boolean): void;\n}\n\ndeclare namespace Intl {\n interface NumberFormat {\n format(value: number | bigint): string;\n }\n}\n',gi["lib.es2020.d.ts"]='/*! *****************************************************************************\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/// <reference no-default-lib="true"/>\n\n/// <reference lib="es2019" />\n/// <reference lib="es2020.bigint" />\n/// <reference lib="es2020.date" />\n/// <reference lib="es2020.number" />\n/// <reference lib="es2020.promise" />\n/// <reference lib="es2020.sharedmemory" />\n/// <reference lib="es2020.string" />\n/// <reference lib="es2020.symbol.wellknown" />\n/// <reference lib="es2020.intl" />\n',gi["lib.es2020.date.d.ts"]='/*! *****************************************************************************\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/// <reference no-default-lib="true"/>\n\n/// <reference lib="es2020.intl" />\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, array of locale strings, Intl.Locale object, or array of Intl.Locale objects 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?: Intl.LocalesArgument, options?: Intl.DateTimeFormatOptions): string;\n\n /**\n * Converts a date to a string by using the current or specified locale.\n * @param locales A locale string, array of locale strings, Intl.Locale object, or array of Intl.Locale objects 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?: Intl.LocalesArgument, 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, array of locale strings, Intl.Locale object, or array of Intl.Locale objects 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?: Intl.LocalesArgument, options?: Intl.DateTimeFormatOptions): string;\n}\n',gi["lib.es2020.full.d.ts"]='/*! *****************************************************************************\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/// <reference no-default-lib="true"/>\n\n/// <reference lib="es2020" />\n/// <reference lib="dom" />\n/// <reference lib="webworker.importscripts" />\n/// <reference lib="scripthost" />\n/// <reference lib="dom.iterable" />\n/// <reference lib="dom.asynciterable" />\n',gi["lib.es2020.intl.d.ts"]='/*! *****************************************************************************\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/// <reference no-default-lib="true"/>\n\n/// <reference lib="es2018.intl" />\ndeclare namespace Intl {\n /**\n * A string that is a valid [Unicode BCP 47 Locale Identifier](https://unicode.org/reports/tr35/#Unicode_locale_identifier).\n *\n * For example: "fa", "es-MX", "zh-Hant-TW".\n *\n * See [MDN - Intl - locales argument](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Intl#locales_argument).\n */\n type UnicodeBCP47LocaleIdentifier = string;\n\n /**\n * Unit to use in the relative time internationalized message.\n *\n * [MDN](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Intl/RelativeTimeFormat/format#Parameters).\n */\n type RelativeTimeFormatUnit =\n | "year"\n | "years"\n | "quarter"\n | "quarters"\n | "month"\n | "months"\n | "week"\n | "weeks"\n | "day"\n | "days"\n | "hour"\n | "hours"\n | "minute"\n | "minutes"\n | "second"\n | "seconds";\n\n /**\n * Value of the `unit` property in objects returned by\n * `Intl.RelativeTimeFormat.prototype.formatToParts()`. `formatToParts` and\n * `format` methods accept either singular or plural unit names as input,\n * but `formatToParts` only outputs singular (e.g. "day") not plural (e.g.\n * "days").\n *\n * [MDN](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Intl/RelativeTimeFormat/formatToParts#Using_formatToParts).\n */\n type RelativeTimeFormatUnitSingular =\n | "year"\n | "quarter"\n | "month"\n | "week"\n | "day"\n | "hour"\n | "minute"\n | "second";\n\n /**\n * The locale matching algorithm to use.\n *\n * [MDN](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Intl#Locale_negotiation).\n */\n type RelativeTimeFormatLocaleMatcher = "lookup" | "best fit";\n\n /**\n * The format of output message.\n *\n * [MDN](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Intl/RelativeTimeFormat/RelativeTimeFormat#Parameters).\n */\n type RelativeTimeFormatNumeric = "always" | "auto";\n\n /**\n * The length of the internationalized message.\n *\n * [MDN](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Intl/RelativeTimeFormat/RelativeTimeFormat#Parameters).\n */\n type RelativeTimeFormatStyle = "long" | "short" | "narrow";\n\n /**\n * The locale or locales to use\n *\n * See [MDN - Intl - locales argument](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Intl#locales_argument).\n */\n type LocalesArgument = UnicodeBCP47LocaleIdentifier | Locale | readonly (UnicodeBCP47LocaleIdentifier | Locale)[] | undefined;\n\n /**\n * An object with some or all of properties of `options` parameter\n * of `Intl.RelativeTimeFormat` constructor.\n *\n * [MDN](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Intl/RelativeTimeFormat/RelativeTimeFormat#Parameters).\n */\n interface RelativeTimeFormatOptions {\n /** The locale matching algorithm to use. For information about this option, see [Intl page](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Intl#Locale_negotiation). */\n localeMatcher?: RelativeTimeFormatLocaleMatcher;\n /** The format of output message. */\n numeric?: RelativeTimeFormatNumeric;\n /** The length of the internationalized message. */\n style?: RelativeTimeFormatStyle;\n }\n\n /**\n * An object with properties reflecting the locale\n * and formatting options computed during initialization\n * of the `Intl.RelativeTimeFormat` object\n *\n * [MDN](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Intl/RelativeTimeFormat/resolvedOptions#Description).\n */\n interface ResolvedRelativeTimeFormatOptions {\n locale: UnicodeBCP47LocaleIdentifier;\n style: RelativeTimeFormatStyle;\n numeric: RelativeTimeFormatNumeric;\n numberingSystem: string;\n }\n\n /**\n * An object representing the relative time format in parts\n * that can be used for custom locale-aware formatting.\n *\n * [MDN](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Intl/RelativeTimeFormat/formatToParts#Using_formatToParts).\n */\n type RelativeTimeFormatPart =\n | {\n type: "literal";\n value: string;\n }\n | {\n type: Exclude<NumberFormatPartTypes, "literal">;\n value: string;\n unit: RelativeTimeFormatUnitSingular;\n };\n\n interface RelativeTimeFormat {\n /**\n * Formats a value and a unit according to the locale\n * and formatting options of the given\n * [`Intl.RelativeTimeFormat`](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/RelativeTimeFormat)\n * object.\n *\n * While this method automatically provides the correct plural forms,\n * the grammatical form is otherwise as neutral as possible.\n *\n * It is the caller\'s responsibility to handle cut-off logic\n * such as deciding between displaying "in 7 days" or "in 1 week".\n * This API does not support relative dates involving compound units.\n * e.g "in 5 days and 4 hours".\n *\n * @param value - Numeric value to use in the internationalized relative time message\n *\n * @param unit - [Unit](https://tc39.es/ecma402/#sec-singularrelativetimeunit) to use in the relative time internationalized message.\n *\n * @throws `RangeError` if `unit` was given something other than `unit` possible values\n *\n * @returns {string} Internationalized relative time message as string\n *\n * [MDN](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Intl/RelativeTimeFormat/format).\n */\n format(value: number, unit: RelativeTimeFormatUnit): string;\n\n /**\n * Returns an array of objects representing the relative time format in parts that can be used for custom locale-aware formatting.\n *\n * @param value - Numeric value to use in the internationalized relative time message\n *\n * @param unit - [Unit](https://tc39.es/ecma402/#sec-singularrelativetimeunit) to use in the relative time internationalized message.\n *\n * @throws `RangeError` if `unit` was given something other than `unit` possible values\n *\n * [MDN](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Intl/RelativeTimeFormat/formatToParts).\n */\n formatToParts(value: number, unit: RelativeTimeFormatUnit): RelativeTimeFormatPart[];\n\n /**\n * Provides access to the locale and options computed during initialization of this `Intl.RelativeTimeFormat` object.\n *\n * [MDN](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Intl/RelativeTimeFormat/resolvedOptions).\n */\n resolvedOptions(): ResolvedRelativeTimeFormatOptions;\n }\n\n /**\n * The [`Intl.RelativeTimeFormat`](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/RelativeTimeFormat)\n * object is a constructor for objects that enable language-sensitive relative time formatting.\n *\n * [Compatibility](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Intl/RelativeTimeFormat#Browser_compatibility).\n */\n const RelativeTimeFormat: {\n /**\n * Creates [Intl.RelativeTimeFormat](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/RelativeTimeFormat) objects\n *\n * @param locales - A string with a [BCP 47 language tag](http://tools.ietf.org/html/rfc5646), or an array of such strings.\n * For the general form and interpretation of the locales argument,\n * see the [`Intl` page](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Intl#Locale_identification_and_negotiation).\n *\n * @param options - An [object](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Intl/RelativeTimeFormat/RelativeTimeFormat#Parameters)\n * with some or all of options of `RelativeTimeFormatOptions`.\n *\n * @returns [Intl.RelativeTimeFormat](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/RelativeTimeFormat) object.\n *\n * [MDN](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Intl/RelativeTimeFormat/RelativeTimeFormat).\n */\n new (\n locales?: LocalesArgument,\n options?: RelativeTimeFormatOptions,\n ): RelativeTimeFormat;\n\n /**\n * Returns an array containing those of the provided locales\n * that are supported in date and time formatting\n * without having to fall back to the runtime\'s default locale.\n *\n * @param locales - A string with a [BCP 47 language tag](http://tools.ietf.org/html/rfc5646), or an array of such strings.\n * For the general form and interpretation of the locales argument,\n * see the [`Intl` page](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Intl#Locale_identification_and_negotiation).\n *\n * @param options - An [object](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Intl/RelativeTimeFormat/RelativeTimeFormat#Parameters)\n * with some or all of options of the formatting.\n *\n * @returns An array containing those of the provided locales\n * that are supported in date and time formatting\n * without having to fall back to the runtime\'s default locale.\n *\n * [MDN](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Intl/RelativeTimeFormat/supportedLocalesOf).\n */\n supportedLocalesOf(\n locales?: LocalesArgument,\n options?: RelativeTimeFormatOptions,\n ): UnicodeBCP47LocaleIdentifier[];\n };\n\n interface NumberFormatOptionsStyleRegistry {\n unit: never;\n }\n\n interface NumberFormatOptionsCurrencyDisplayRegistry {\n narrowSymbol: never;\n }\n\n interface NumberFormatOptionsSignDisplayRegistry {\n auto: never;\n never: never;\n always: never;\n exceptZero: never;\n }\n\n type NumberFormatOptionsSignDisplay = keyof NumberFormatOptionsSignDisplayRegistry;\n\n interface NumberFormatOptions {\n numberingSystem?: string | undefined;\n compactDisplay?: "short" | "long" | undefined;\n notation?: "standard" | "scientific" | "engineering" | "compact" | undefined;\n signDisplay?: NumberFormatOptionsSignDisplay | undefined;\n unit?: string | undefined;\n unitDisplay?: "short" | "long" | "narrow" | undefined;\n currencySign?: "standard" | "accounting" | undefined;\n }\n\n interface ResolvedNumberFormatOptions {\n compactDisplay?: "short" | "long";\n notation: "standard" | "scientific" | "engineering" | "compact";\n signDisplay: NumberFormatOptionsSignDisplay;\n unit?: string;\n unitDisplay?: "short" | "long" | "narrow";\n currencySign?: "standard" | "accounting";\n }\n\n interface NumberFormatPartTypeRegistry {\n compact: never;\n exponentInteger: never;\n exponentMinusSign: never;\n exponentSeparator: never;\n unit: never;\n unknown: never;\n }\n\n interface DateTimeFormatOptions {\n calendar?: string | undefined;\n dayPeriod?: "narrow" | "short" | "long" | undefined;\n numberingSystem?: string | undefined;\n\n dateStyle?: "full" | "long" | "medium" | "short" | undefined;\n timeStyle?: "full" | "long" | "medium" | "short" | undefined;\n hourCycle?: "h11" | "h12" | "h23" | "h24" | undefined;\n }\n\n type LocaleHourCycleKey = "h12" | "h23" | "h11" | "h24";\n type LocaleCollationCaseFirst = "upper" | "lower" | "false";\n\n interface LocaleOptions {\n /** A string containing the language, and the script and region if available. */\n baseName?: string;\n /** The part of the Locale that indicates the locale\'s calendar era. */\n calendar?: string;\n /** Flag that defines whether case is taken into account for the locale\'s collation rules. */\n caseFirst?: LocaleCollationCaseFirst;\n /** The collation type used for sorting */\n collation?: string;\n /** The time keeping format convention used by the locale. */\n hourCycle?: LocaleHourCycleKey;\n /** The primary language subtag associated with the locale. */\n language?: string;\n /** The numeral system used by the locale. */\n numberingSystem?: string;\n /** Flag that defines whether the locale has special collation handling for numeric characters. */\n numeric?: boolean;\n /** The region of the world (usually a country) associated with the locale. Possible values are region codes as defined by ISO 3166-1. */\n region?: string;\n /** The script used for writing the particular language used in the locale. Possible values are script codes as defined by ISO 15924. */\n script?: string;\n }\n\n interface Locale extends LocaleOptions {\n /** A string containing the language, and the script and region if available. */\n baseName: string;\n /** The primary language subtag associated with the locale. */\n language: string;\n /** Gets the most likely values for the language, script, and region of the locale based on existing values. */\n maximize(): Locale;\n /** Attempts to remove information about the locale that would be added by calling `Locale.maximize()`. */\n minimize(): Locale;\n /** Returns the locale\'s full locale identifier string. */\n toString(): UnicodeBCP47LocaleIdentifier;\n }\n\n /**\n * Constructor creates [Intl.Locale](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Intl/Locale)\n * objects\n *\n * @param tag - A string with a [BCP 47 language tag](http://tools.ietf.org/html/rfc5646).\n * For the general form and interpretation of the locales argument,\n * see the [`Intl` page](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Intl#Locale_identification_and_negotiation).\n *\n * @param options - An [object](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Intl/Locale/Locale#Parameters) with some or all of options of the locale.\n *\n * @returns [Intl.Locale](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Intl/Locale) object.\n *\n * [MDN](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Intl/Locale).\n */\n const Locale: {\n new (tag: UnicodeBCP47LocaleIdentifier | Locale, options?: LocaleOptions): Locale;\n };\n\n type DisplayNamesFallback =\n | "code"\n | "none";\n\n type DisplayNamesType =\n | "language"\n | "region"\n | "script"\n | "calendar"\n | "dateTimeField"\n | "currency";\n\n type DisplayNamesLanguageDisplay =\n | "dialect"\n | "standard";\n\n interface DisplayNamesOptions {\n localeMatcher?: RelativeTimeFormatLocaleMatcher;\n style?: RelativeTimeFormatStyle;\n type: DisplayNamesType;\n languageDisplay?: DisplayNamesLanguageDisplay;\n fallback?: DisplayNamesFallback;\n }\n\n interface ResolvedDisplayNamesOptions {\n locale: UnicodeBCP47LocaleIdentifier;\n style: RelativeTimeFormatStyle;\n type: DisplayNamesType;\n fallback: DisplayNamesFallback;\n languageDisplay?: DisplayNamesLanguageDisplay;\n }\n\n interface DisplayNames {\n /**\n * Receives a code and returns a string based on the locale and options provided when instantiating\n * [`Intl.DisplayNames()`](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Intl/DisplayNames)\n *\n * @param code The `code` to provide depends on the `type` passed to display name during creation:\n * - If the type is `"region"`, code should be either an [ISO-3166 two letters region code](https://www.iso.org/iso-3166-country-codes.html),\n * or a [three digits UN M49 Geographic Regions](https://unstats.un.org/unsd/methodology/m49/).\n * - If the type is `"script"`, code should be an [ISO-15924 four letters script code](https://unicode.org/iso15924/iso15924-codes.html).\n * - If the type is `"language"`, code should be a `languageCode` ["-" `scriptCode`] ["-" `regionCode` ] *("-" `variant` )\n * subsequence of the unicode_language_id grammar in [UTS 35\'s Unicode Language and Locale Identifiers grammar](https://unicode.org/reports/tr35/#Unicode_language_identifier).\n * `languageCode` is either a two letters ISO 639-1 language code or a three letters ISO 639-2 language code.\n * - If the type is `"currency"`, code should be a [3-letter ISO 4217 currency code](https://www.iso.org/iso-4217-currency-codes.html).\n *\n * [MDN](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Intl/DisplayNames/of).\n */\n of(code: string): string | undefined;\n /**\n * Returns a new object with properties reflecting the locale and style formatting options computed during the construction of the current\n * [`Intl/DisplayNames`](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Intl/DisplayNames) object.\n *\n * [MDN](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Intl/DisplayNames/resolvedOptions).\n */\n resolvedOptions(): ResolvedDisplayNamesOptions;\n }\n\n /**\n * The [`Intl.DisplayNames()`](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Intl/DisplayNames)\n * object enables the consistent translation of language, region and script display names.\n *\n * [Compatibility](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Intl/DisplayNames#browser_compatibility).\n */\n const DisplayNames: {\n prototype: DisplayNames;\n\n /**\n * @param locales A string with a BCP 47 language tag, or an array of such strings.\n * For the general form and interpretation of the `locales` argument, see the [Intl](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Intl#locale_identification_and_negotiation)\n * page.\n *\n * @param options An object for setting up a display name.\n *\n * [MDN](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Intl/DisplayNames/DisplayNames).\n */\n new (locales: LocalesArgument, options: DisplayNamesOptions): DisplayNames;\n\n /**\n * Returns an array containing those of the provided locales that are supported in display names without having to fall back to the runtime\'s default locale.\n *\n * @param locales A string with a BCP 47 language tag, or an array of such strings.\n * For the general form and interpretation of the `locales` argument, see the [Intl](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Intl#locale_identification_and_negotiation)\n * page.\n *\n * @param options An object with a locale matcher.\n *\n * @returns An array of strings representing a subset of the given locale tags that are supported in display names without having to fall back to the runtime\'s default locale.\n *\n * [MDN](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Intl/DisplayNames/supportedLocalesOf).\n */\n supportedLocalesOf(locales?: LocalesArgument, options?: { localeMatcher?: RelativeTimeFormatLocaleMatcher; }): UnicodeBCP47LocaleIdentifier[];\n };\n\n interface CollatorConstructor {\n new (locales?: LocalesArgument, options?: CollatorOptions): Collator;\n (locales?: LocalesArgument, options?: CollatorOptions): Collator;\n supportedLocalesOf(locales: LocalesArgument, options?: CollatorOptions): string[];\n }\n\n interface DateTimeFormatConstructor {\n new (locales?: LocalesArgument, options?: DateTimeFormatOptions): DateTimeFormat;\n (locales?: LocalesArgument, options?: DateTimeFormatOptions): DateTimeFormat;\n supportedLocalesOf(locales: LocalesArgument, options?: DateTimeFormatOptions): string[];\n }\n\n interface NumberFormatConstructor {\n new (locales?: LocalesArgument, options?: NumberFormatOptions): NumberFormat;\n (locales?: LocalesArgument, options?: NumberFormatOptions): NumberFormat;\n supportedLocalesOf(locales: LocalesArgument, options?: NumberFormatOptions): string[];\n }\n\n interface PluralRulesConstructor {\n new (locales?: LocalesArgument, options?: PluralRulesOptions): PluralRules;\n (locales?: LocalesArgument, options?: PluralRulesOptions): PluralRules;\n\n supportedLocalesOf(locales: LocalesArgument, options?: { localeMatcher?: "lookup" | "best fit"; }): string[];\n }\n}\n',gi["lib.es2020.number.d.ts"]='/*! *****************************************************************************\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/// <reference no-default-lib="true"/>\n\n/// <reference lib="es2020.intl" />\n\ninterface Number {\n /**\n * Converts a number to a string by using the current or specified locale.\n * @param locales A locale string, array of locale strings, Intl.Locale object, or array of Intl.Locale objects 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?: Intl.LocalesArgument, options?: Intl.NumberFormatOptions): string;\n}\n',gi["lib.es2020.promise.d.ts"]='/*! *****************************************************************************\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/// <reference no-default-lib="true"/>\n\ninterface PromiseFulfilledResult<T> {\n status: "fulfilled";\n value: T;\n}\n\ninterface PromiseRejectedResult {\n status: "rejected";\n reason: any;\n}\n\ntype PromiseSettledResult<T> = PromiseFulfilledResult<T> | PromiseRejectedResult;\n\ninterface PromiseConstructor {\n /**\n * Creates a Promise that is resolved with an array of results when all\n * of the provided Promises resolve or reject.\n * @param values An array of Promises.\n * @returns A new Promise.\n */\n allSettled<T extends readonly unknown[] | []>(values: T): Promise<{ -readonly [P in keyof T]: PromiseSettledResult<Awaited<T[P]>>; }>;\n\n /**\n * Creates a Promise that is resolved with an array of results when all\n * of the provided Promises resolve or reject.\n * @param values An array of Promises.\n * @returns A new Promise.\n */\n allSettled<T>(values: Iterable<T | PromiseLike<T>>): Promise<PromiseSettledResult<Awaited<T>>[]>;\n}\n',gi["lib.es2020.sharedmemory.d.ts"]='/*! *****************************************************************************\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/// <reference no-default-lib="true"/>\n\n/// <reference lib="es2020.bigint" />\n\ninterface Atomics {\n /**\n * Adds a value to the value at the given position in the array, returning the original value.\n * Until this atomic operation completes, any other read or write operation against the array\n * will block.\n */\n add(typedArray: BigInt64Array<ArrayBufferLike> | BigUint64Array<ArrayBufferLike>, index: number, value: bigint): bigint;\n\n /**\n * Stores the bitwise AND of a value with the value at the given position in the array,\n * returning the original value. Until this atomic operation completes, any other read or\n * write operation against the array will block.\n */\n and(typedArray: BigInt64Array<ArrayBufferLike> | BigUint64Array<ArrayBufferLike>, index: number, value: bigint): bigint;\n\n /**\n * Replaces the value at the given position in the array if the original value equals the given\n * expected value, returning the original value. Until this atomic operation completes, any\n * other read or write operation against the array will block.\n */\n compareExchange(typedArray: BigInt64Array<ArrayBufferLike> | BigUint64Array<ArrayBufferLike>, index: number, expectedValue: bigint, replacementValue: bigint): bigint;\n\n /**\n * Replaces the value at the given position in the array, returning the original value. Until\n * this atomic operation completes, any other read or write operation against the array will\n * block.\n */\n exchange(typedArray: BigInt64Array<ArrayBufferLike> | BigUint64Array<ArrayBufferLike>, index: number, value: bigint): bigint;\n\n /**\n * Returns the value at the given position in the array. Until this atomic operation completes,\n * any other read or write operation against the array will block.\n */\n load(typedArray: BigInt64Array<ArrayBufferLike> | BigUint64Array<ArrayBufferLike>, index: number): bigint;\n\n /**\n * Stores the bitwise OR of a value with the value at the given position in the array,\n * returning the original value. Until this atomic operation completes, any other read or write\n * operation against the array will block.\n */\n or(typedArray: BigInt64Array<ArrayBufferLike> | BigUint64Array<ArrayBufferLike>, index: number, value: bigint): bigint;\n\n /**\n * Stores a value at the given position in the array, returning the new value. Until this\n * atomic operation completes, any other read or write operation against the array will block.\n */\n store(typedArray: BigInt64Array<ArrayBufferLike> | BigUint64Array<ArrayBufferLike>, index: number, value: bigint): bigint;\n\n /**\n * Subtracts a value from the value at the given position in the array, returning the original\n * value. Until this atomic operation completes, any other read or write operation against the\n * array will block.\n */\n sub(typedArray: BigInt64Array<ArrayBufferLike> | BigUint64Array<ArrayBufferLike>, index: number, value: bigint): bigint;\n\n /**\n * If the value at the given position in the array is equal to the provided value, the current\n * agent is put to sleep causing execution to suspend until the timeout expires (returning\n * `"timed-out"`) or until the agent is awoken (returning `"ok"`); otherwise, returns\n * `"not-equal"`.\n */\n wait(typedArray: BigInt64Array<ArrayBufferLike>, index: number, value: bigint, timeout?: number): "ok" | "not-equal" | "timed-out";\n\n /**\n * Wakes up sleeping agents that are waiting on the given index of the array, returning the\n * number of agents that were awoken.\n * @param typedArray A shared BigInt64Array.\n * @param index The position in the typedArray to wake up on.\n * @param count The number of sleeping agents to notify. Defaults to +Infinity.\n */\n notify(typedArray: BigInt64Array<ArrayBufferLike>, index: number, count?: number): number;\n\n /**\n * Stores the bitwise XOR of a value with the value at the given position in the array,\n * returning the original value. Until this atomic operation completes, any other read or write\n * operation against the array will block.\n */\n xor(typedArray: BigInt64Array<ArrayBufferLike> | BigUint64Array<ArrayBufferLike>, index: number, value: bigint): bigint;\n}\n',gi["lib.es2020.string.d.ts"]='/*! *****************************************************************************\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/// <reference no-default-lib="true"/>\n\n/// <reference lib="es2015.iterable" />\n/// <reference lib="es2020.intl" />\n/// <reference lib="es2020.symbol.wellknown" />\n\ninterface String {\n /**\n * Matches a string with a regular expression, and returns an iterable of matches\n * containing the results of that search.\n * @param regexp A variable name or string literal containing the regular expression pattern and flags.\n */\n matchAll(regexp: RegExp): RegExpStringIterator<RegExpExecArray>;\n\n /** Converts all alphabetic characters to lowercase, taking into account the host environment\'s current locale. */\n toLocaleLowerCase(locales?: Intl.LocalesArgument): 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(locales?: Intl.LocalesArgument): string;\n\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?: Intl.LocalesArgument, options?: Intl.CollatorOptions): number;\n}\n',gi["lib.es2020.symbol.wellknown.d.ts"]='/*! *****************************************************************************\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/// <reference no-default-lib="true"/>\n\n/// <reference lib="es2015.iterable" />\n/// <reference lib="es2015.symbol" />\n\ninterface SymbolConstructor {\n /**\n * A regular expression method that matches the regular expression against a string. Called\n * by the String.prototype.matchAll method.\n */\n readonly matchAll: unique symbol;\n}\n\ninterface RegExpStringIterator<T> extends IteratorObject<T, BuiltinIteratorReturn, unknown> {\n [Symbol.iterator](): RegExpStringIterator<T>;\n}\n\ninterface RegExp {\n /**\n * Matches a string with this regular expression, and returns an iterable of matches\n * containing the results of that search.\n * @param string A string to search within.\n */\n [Symbol.matchAll](str: string): RegExpStringIterator<RegExpMatchArray>;\n}\n',gi["lib.es2021.d.ts"]='/*! *****************************************************************************\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/// <reference no-default-lib="true"/>\n\n/// <reference lib="es2020" />\n/// <reference lib="es2021.promise" />\n/// <reference lib="es2021.string" />\n/// <reference lib="es2021.weakref" />\n/// <reference lib="es2021.intl" />\n',gi["lib.es2021.full.d.ts"]='/*! *****************************************************************************\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/// <reference no-default-lib="true"/>\n\n/// <reference lib="es2021" />\n/// <reference lib="dom" />\n/// <reference lib="webworker.importscripts" />\n/// <reference lib="scripthost" />\n/// <reference lib="dom.iterable" />\n/// <reference lib="dom.asynciterable" />\n',gi["lib.es2021.intl.d.ts"]='/*! *****************************************************************************\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/// <reference no-default-lib="true"/>\n\ndeclare namespace Intl {\n interface DateTimeFormatPartTypesRegistry {\n fractionalSecond: any;\n }\n\n interface DateTimeFormatOptions {\n formatMatcher?: "basic" | "best fit" | "best fit" | undefined;\n dateStyle?: "full" | "long" | "medium" | "short" | undefined;\n timeStyle?: "full" | "long" | "medium" | "short" | undefined;\n dayPeriod?: "narrow" | "short" | "long" | undefined;\n fractionalSecondDigits?: 1 | 2 | 3 | undefined;\n }\n\n interface DateTimeRangeFormatPart extends DateTimeFormatPart {\n source: "startRange" | "endRange" | "shared";\n }\n\n interface DateTimeFormat {\n formatRange(startDate: Date | number | bigint, endDate: Date | number | bigint): string;\n formatRangeToParts(startDate: Date | number | bigint, endDate: Date | number | bigint): DateTimeRangeFormatPart[];\n }\n\n interface ResolvedDateTimeFormatOptions {\n formatMatcher?: "basic" | "best fit" | "best fit";\n dateStyle?: "full" | "long" | "medium" | "short";\n timeStyle?: "full" | "long" | "medium" | "short";\n hourCycle?: "h11" | "h12" | "h23" | "h24";\n dayPeriod?: "narrow" | "short" | "long";\n fractionalSecondDigits?: 1 | 2 | 3;\n }\n\n /**\n * The locale matching algorithm to use.\n *\n * [MDN](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Intl/ListFormat/ListFormat#parameters).\n */\n type ListFormatLocaleMatcher = "lookup" | "best fit";\n\n /**\n * The format of output message.\n *\n * [MDN](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Intl/ListFormat/ListFormat#parameters).\n */\n type ListFormatType = "conjunction" | "disjunction" | "unit";\n\n /**\n * The length of the formatted message.\n *\n * [MDN](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Intl/ListFormat/ListFormat#parameters).\n */\n type ListFormatStyle = "long" | "short" | "narrow";\n\n /**\n * An object with some or all properties of the `Intl.ListFormat` constructor `options` parameter.\n *\n * [MDN](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Intl/ListFormat/ListFormat#parameters).\n */\n interface ListFormatOptions {\n /** The locale matching algorithm to use. For information about this option, see [Intl page](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Intl#Locale_negotiation). */\n localeMatcher?: ListFormatLocaleMatcher | undefined;\n /** The format of output message. */\n type?: ListFormatType | undefined;\n /** The length of the internationalized message. */\n style?: ListFormatStyle | undefined;\n }\n\n interface ResolvedListFormatOptions {\n locale: string;\n style: ListFormatStyle;\n type: ListFormatType;\n }\n\n interface ListFormat {\n /**\n * Returns a string with a language-specific representation of the list.\n *\n * @param list - An iterable object, such as an [Array](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Array).\n *\n * @throws `TypeError` if `list` includes something other than the possible values.\n *\n * @returns {string} A language-specific formatted string representing the elements of the list.\n *\n * [MDN](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Intl/ListFormat/format).\n */\n format(list: Iterable<string>): string;\n\n /**\n * Returns an Array of objects representing the different components that can be used to format a list of values in a locale-aware fashion.\n *\n * @param list - An iterable object, such as an [Array](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Array), to be formatted according to a locale.\n *\n * @throws `TypeError` if `list` includes something other than the possible values.\n *\n * @returns {{ type: "element" | "literal", value: string; }[]} An Array of components which contains the formatted parts from the list.\n *\n * [MDN](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Intl/ListFormat/formatToParts).\n */\n formatToParts(list: Iterable<string>): { type: "element" | "literal"; value: string; }[];\n\n /**\n * Returns a new object with properties reflecting the locale and style\n * formatting options computed during the construction of the current\n * `Intl.ListFormat` object.\n *\n * [MDN](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Intl/ListFormat/resolvedOptions).\n */\n resolvedOptions(): ResolvedListFormatOptions;\n }\n\n const ListFormat: {\n prototype: ListFormat;\n\n /**\n * Creates [Intl.ListFormat](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Intl/ListFormat) objects that\n * enable language-sensitive list formatting.\n *\n * @param locales - A string with a [BCP 47 language tag](http://tools.ietf.org/html/rfc5646), or an array of such strings.\n * For the general form and interpretation of the `locales` argument,\n * see the [`Intl` page](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Intl#Locale_identification_and_negotiation).\n *\n * @param options - An [object](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Intl/ListFormat/ListFormat#parameters)\n * with some or all options of `ListFormatOptions`.\n *\n * @returns [Intl.ListFormatOptions](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Intl/ListFormat) object.\n *\n * [MDN](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Intl/ListFormat).\n */\n new (locales?: LocalesArgument, options?: ListFormatOptions): ListFormat;\n\n /**\n * Returns an array containing those of the provided locales that are\n * supported in list formatting without having to fall back to the runtime\'s default locale.\n *\n * @param locales - A string with a [BCP 47 language tag](http://tools.ietf.org/html/rfc5646), or an array of such strings.\n * For the general form and interpretation of the `locales` argument,\n * see the [`Intl` page](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Intl#Locale_identification_and_negotiation).\n *\n * @param options - An [object](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Intl/ListFormat/supportedLocalesOf#parameters).\n * with some or all possible options.\n *\n * @returns An array of strings representing a subset of the given locale tags that are supported in list\n * formatting without having to fall back to the runtime\'s default locale.\n *\n * [MDN](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Intl/ListFormat/supportedLocalesOf).\n */\n supportedLocalesOf(locales: LocalesArgument, options?: Pick<ListFormatOptions, "localeMatcher">): UnicodeBCP47LocaleIdentifier[];\n };\n}\n',gi["lib.es2021.promise.d.ts"]='/*! *****************************************************************************\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/// <reference no-default-lib="true"/>\n\ninterface AggregateError extends Error {\n errors: any[];\n}\n\ninterface AggregateErrorConstructor {\n new (errors: Iterable<any>, message?: string): AggregateError;\n (errors: Iterable<any>, message?: string): AggregateError;\n readonly prototype: AggregateError;\n}\n\ndeclare var AggregateError: AggregateErrorConstructor;\n\n/**\n * Represents the completion of an asynchronous operation\n */\ninterface PromiseConstructor {\n /**\n * The any function returns a promise that is fulfilled by the first given promise to be fulfilled, or rejected with an AggregateError containing an array of rejection reasons if all of the given promises are rejected. It resolves all elements of the passed iterable to promises as it runs this algorithm.\n * @param values An array or iterable of Promises.\n * @returns A new Promise.\n */\n any<T extends readonly unknown[] | []>(values: T): Promise<Awaited<T[number]>>;\n\n /**\n * The any function returns a promise that is fulfilled by the first given promise to be fulfilled, or rejected with an AggregateError containing an array of rejection reasons if all of the given promises are rejected. It resolves all elements of the passed iterable to promises as it runs this algorithm.\n * @param values An array or iterable of Promises.\n * @returns A new Promise.\n */\n any<T>(values: Iterable<T | PromiseLike<T>>): Promise<Awaited<T>>;\n}\n',gi["lib.es2021.string.d.ts"]='/*! *****************************************************************************\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/// <reference no-default-lib="true"/>\n\ninterface String {\n /**\n * Replace all instances of a substring 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 replaceAll(searchValue: string | RegExp, replaceValue: string): string;\n\n /**\n * Replace all instances of a substring 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 replaceAll(searchValue: string | RegExp, replacer: (substring: string, ...args: any[]) => string): string;\n}\n',gi["lib.es2021.weakref.d.ts"]='/*! *****************************************************************************\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/// <reference no-default-lib="true"/>\n\n/// <reference lib="es2015.symbol.wellknown" />\n\ninterface WeakRef<T extends WeakKey> {\n readonly [Symbol.toStringTag]: "WeakRef";\n\n /**\n * Returns the WeakRef instance\'s target value, or undefined if the target value has been\n * reclaimed.\n * In es2023 the value can be either a symbol or an object, in previous versions only object is permissible.\n */\n deref(): T | undefined;\n}\n\ninterface WeakRefConstructor {\n readonly prototype: WeakRef<any>;\n\n /**\n * Creates a WeakRef instance for the given target value.\n * In es2023 the value can be either a symbol or an object, in previous versions only object is permissible.\n * @param target The target value for the WeakRef instance.\n */\n new <T extends WeakKey>(target: T): WeakRef<T>;\n}\n\ndeclare var WeakRef: WeakRefConstructor;\n\ninterface FinalizationRegistry<T> {\n readonly [Symbol.toStringTag]: "FinalizationRegistry";\n\n /**\n * Registers a value with the registry.\n * In es2023 the value can be either a symbol or an object, in previous versions only object is permissible.\n * @param target The target value to register.\n * @param heldValue The value to pass to the finalizer for this value. This cannot be the\n * target value.\n * @param unregisterToken The token to pass to the unregister method to unregister the target\n * value. If not provided, the target cannot be unregistered.\n */\n register(target: WeakKey, heldValue: T, unregisterToken?: WeakKey): void;\n\n /**\n * Unregisters a value from the registry.\n * In es2023 the value can be either a symbol or an object, in previous versions only object is permissible.\n * @param unregisterToken The token that was used as the unregisterToken argument when calling\n * register to register the target value.\n */\n unregister(unregisterToken: WeakKey): boolean;\n}\n\ninterface FinalizationRegistryConstructor {\n readonly prototype: FinalizationRegistry<any>;\n\n /**\n * Creates a finalization registry with an associated cleanup callback\n * @param cleanupCallback The callback to call after a value in the registry has been reclaimed.\n */\n new <T>(cleanupCallback: (heldValue: T) => void): FinalizationRegistry<T>;\n}\n\ndeclare var FinalizationRegistry: FinalizationRegistryConstructor;\n',gi["lib.es2022.array.d.ts"]='/*! *****************************************************************************\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/// <reference no-default-lib="true"/>\n\ninterface Array<T> {\n /**\n * Returns the item located at the specified index.\n * @param index The zero-based index of the desired code unit. A negative index will count back from the last item.\n */\n at(index: number): T | undefined;\n}\n\ninterface ReadonlyArray<T> {\n /**\n * Returns the item located at the specified index.\n * @param index The zero-based index of the desired code unit. A negative index will count back from the last item.\n */\n at(index: number): T | undefined;\n}\n\ninterface Int8Array<TArrayBuffer extends ArrayBufferLike> {\n /**\n * Returns the item located at the specified index.\n * @param index The zero-based index of the desired code unit. A negative index will count back from the last item.\n */\n at(index: number): number | undefined;\n}\n\ninterface Uint8Array<TArrayBuffer extends ArrayBufferLike> {\n /**\n * Returns the item located at the specified index.\n * @param index The zero-based index of the desired code unit. A negative index will count back from the last item.\n */\n at(index: number): number | undefined;\n}\n\ninterface Uint8ClampedArray<TArrayBuffer extends ArrayBufferLike> {\n /**\n * Returns the item located at the specified index.\n * @param index The zero-based index of the desired code unit. A negative index will count back from the last item.\n */\n at(index: number): number | undefined;\n}\n\ninterface Int16Array<TArrayBuffer extends ArrayBufferLike> {\n /**\n * Returns the item located at the specified index.\n * @param index The zero-based index of the desired code unit. A negative index will count back from the last item.\n */\n at(index: number): number | undefined;\n}\n\ninterface Uint16Array<TArrayBuffer extends ArrayBufferLike> {\n /**\n * Returns the item located at the specified index.\n * @param index The zero-based index of the desired code unit. A negative index will count back from the last item.\n */\n at(index: number): number | undefined;\n}\n\ninterface Int32Array<TArrayBuffer extends ArrayBufferLike> {\n /**\n * Returns the item located at the specified index.\n * @param index The zero-based index of the desired code unit. A negative index will count back from the last item.\n */\n at(index: number): number | undefined;\n}\n\ninterface Uint32Array<TArrayBuffer extends ArrayBufferLike> {\n /**\n * Returns the item located at the specified index.\n * @param index The zero-based index of the desired code unit. A negative index will count back from the last item.\n */\n at(index: number): number | undefined;\n}\n\ninterface Float32Array<TArrayBuffer extends ArrayBufferLike> {\n /**\n * Returns the item located at the specified index.\n * @param index The zero-based index of the desired code unit. A negative index will count back from the last item.\n */\n at(index: number): number | undefined;\n}\n\ninterface Float64Array<TArrayBuffer extends ArrayBufferLike> {\n /**\n * Returns the item located at the specified index.\n * @param index The zero-based index of the desired code unit. A negative index will count back from the last item.\n */\n at(index: number): number | undefined;\n}\n\ninterface BigInt64Array<TArrayBuffer extends ArrayBufferLike> {\n /**\n * Returns the item located at the specified index.\n * @param index The zero-based index of the desired code unit. A negative index will count back from the last item.\n */\n at(index: number): bigint | undefined;\n}\n\ninterface BigUint64Array<TArrayBuffer extends ArrayBufferLike> {\n /**\n * Returns the item located at the specified index.\n * @param index The zero-based index of the desired code unit. A negative index will count back from the last item.\n */\n at(index: number): bigint | undefined;\n}\n',gi["lib.es2022.d.ts"]='/*! *****************************************************************************\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/// <reference no-default-lib="true"/>\n\n/// <reference lib="es2021" />\n/// <reference lib="es2022.array" />\n/// <reference lib="es2022.error" />\n/// <reference lib="es2022.intl" />\n/// <reference lib="es2022.object" />\n/// <reference lib="es2022.regexp" />\n/// <reference lib="es2022.string" />\n',gi["lib.es2022.error.d.ts"]='/*! *****************************************************************************\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/// <reference no-default-lib="true"/>\n\n/// <reference lib="es2021.promise" />\n\ninterface ErrorOptions {\n cause?: unknown;\n}\n\ninterface Error {\n cause?: unknown;\n}\n\ninterface ErrorConstructor {\n new (message?: string, options?: ErrorOptions): Error;\n (message?: string, options?: ErrorOptions): Error;\n}\n\ninterface EvalErrorConstructor {\n new (message?: string, options?: ErrorOptions): EvalError;\n (message?: string, options?: ErrorOptions): EvalError;\n}\n\ninterface RangeErrorConstructor {\n new (message?: string, options?: ErrorOptions): RangeError;\n (message?: string, options?: ErrorOptions): RangeError;\n}\n\ninterface ReferenceErrorConstructor {\n new (message?: string, options?: ErrorOptions): ReferenceError;\n (message?: string, options?: ErrorOptions): ReferenceError;\n}\n\ninterface SyntaxErrorConstructor {\n new (message?: string, options?: ErrorOptions): SyntaxError;\n (message?: string, options?: ErrorOptions): SyntaxError;\n}\n\ninterface TypeErrorConstructor {\n new (message?: string, options?: ErrorOptions): TypeError;\n (message?: string, options?: ErrorOptions): TypeError;\n}\n\ninterface URIErrorConstructor {\n new (message?: string, options?: ErrorOptions): URIError;\n (message?: string, options?: ErrorOptions): URIError;\n}\n\ninterface AggregateErrorConstructor {\n new (\n errors: Iterable<any>,\n message?: string,\n options?: ErrorOptions,\n ): AggregateError;\n (\n errors: Iterable<any>,\n message?: string,\n options?: ErrorOptions,\n ): AggregateError;\n}\n',gi["lib.es2022.full.d.ts"]='/*! *****************************************************************************\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/// <reference no-default-lib="true"/>\n\n/// <reference lib="es2022" />\n/// <reference lib="dom" />\n/// <reference lib="webworker.importscripts" />\n/// <reference lib="scripthost" />\n/// <reference lib="dom.iterable" />\n/// <reference lib="dom.asynciterable" />\n',gi["lib.es2022.intl.d.ts"]='/*! *****************************************************************************\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/// <reference no-default-lib="true"/>\n\ndeclare namespace Intl {\n /**\n * An object with some or all properties of the `Intl.Segmenter` constructor `options` parameter.\n *\n * [MDN](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Intl/Segmenter/Segmenter#parameters)\n */\n interface SegmenterOptions {\n /** The locale matching algorithm to use. For information about this option, see [Intl page](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Intl#Locale_negotiation). */\n localeMatcher?: "best fit" | "lookup" | undefined;\n /** The type of input to be split */\n granularity?: "grapheme" | "word" | "sentence" | undefined;\n }\n\n /**\n * The `Intl.Segmenter` object enables locale-sensitive text segmentation, enabling you to get meaningful items (graphemes, words or sentences) from a string.\n *\n * [MDN](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Intl/Segmenter)\n */\n interface Segmenter {\n /**\n * Returns `Segments` object containing the segments of the input string, using the segmenter\'s locale and granularity.\n *\n * [MDN](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Intl/Segmenter/segment)\n *\n * @param input - The text to be segmented as a `string`.\n *\n * @returns A new iterable Segments object containing the segments of the input string, using the segmenter\'s locale and granularity.\n */\n segment(input: string): Segments;\n /**\n * The `resolvedOptions()` method of `Intl.Segmenter` instances returns a new object with properties reflecting the options computed during initialization of this `Segmenter` object.\n *\n * [MDN](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Intl/Segmenter/resolvedOptions)\n */\n resolvedOptions(): ResolvedSegmenterOptions;\n }\n\n interface ResolvedSegmenterOptions {\n locale: string;\n granularity: "grapheme" | "word" | "sentence";\n }\n\n interface SegmentIterator<T> extends IteratorObject<T, BuiltinIteratorReturn, unknown> {\n [Symbol.iterator](): SegmentIterator<T>;\n }\n\n /**\n * A `Segments` object is an iterable collection of the segments of a text string. It is returned by a call to the `segment()` method of an `Intl.Segmenter` object.\n *\n * [MDN](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Intl/Segmenter/segment/Segments)\n */\n interface Segments {\n /**\n * Returns an object describing the segment in the original string that includes the code unit at a specified index.\n *\n * [MDN](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Intl/Segmenter/segment/Segments/containing)\n *\n * @param codeUnitIndex - A number specifying the index of the code unit in the original input string. If the value is omitted, it defaults to `0`.\n */\n containing(codeUnitIndex?: number): SegmentData | undefined;\n\n /** Returns an iterator to iterate over the segments. */\n [Symbol.iterator](): SegmentIterator<SegmentData>;\n }\n\n interface SegmentData {\n /** A string containing the segment extracted from the original input string. */\n segment: string;\n /** The code unit index in the original input string at which the segment begins. */\n index: number;\n /** The complete input string that was segmented. */\n input: string;\n /**\n * A boolean value only if granularity is "word"; otherwise, undefined.\n * If granularity is "word", then isWordLike is true when the segment is word-like (i.e., consists of letters/numbers/ideographs/etc.); otherwise, false.\n */\n isWordLike?: boolean;\n }\n\n /**\n * The `Intl.Segmenter` object enables locale-sensitive text segmentation, enabling you to get meaningful items (graphemes, words or sentences) from a string.\n *\n * [MDN](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Intl/Segmenter)\n */\n const Segmenter: {\n prototype: Segmenter;\n\n /**\n * Creates a new `Intl.Segmenter` object.\n *\n * @param locales - A string with a [BCP 47 language tag](http://tools.ietf.org/html/rfc5646), or an array of such strings.\n * For the general form and interpretation of the `locales` argument,\n * see the [`Intl` page](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Intl#Locale_identification_and_negotiation).\n *\n * @param options - An [object](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Intl/Segmenter/Segmenter#parameters)\n * with some or all options of `SegmenterOptions`.\n *\n * @returns [Intl.Segmenter](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Intl/Segments) object.\n *\n * [MDN](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Intl/Segmenter).\n */\n new (locales?: LocalesArgument, options?: SegmenterOptions): Segmenter;\n\n /**\n * Returns an array containing those of the provided locales that are supported without having to fall back to the runtime\'s default locale.\n *\n * @param locales - A string with a [BCP 47 language tag](http://tools.ietf.org/html/rfc5646), or an array of such strings.\n * For the general form and interpretation of the `locales` argument,\n * see the [`Intl` page](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Intl#Locale_identification_and_negotiation).\n *\n * @param options An [object](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Intl/Segmenter/supportedLocalesOf#parameters).\n * with some or all possible options.\n *\n * [MDN](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Intl/Segmenter/supportedLocalesOf)\n */\n supportedLocalesOf(locales: LocalesArgument, options?: Pick<SegmenterOptions, "localeMatcher">): UnicodeBCP47LocaleIdentifier[];\n };\n\n /**\n * Returns a sorted array of the supported collation, calendar, currency, numbering system, timezones, and units by the implementation.\n * [MDN](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Intl/supportedValuesOf)\n *\n * @param key A string indicating the category of values to return.\n * @returns A sorted array of the supported values.\n */\n function supportedValuesOf(key: "calendar" | "collation" | "currency" | "numberingSystem" | "timeZone" | "unit"): string[];\n}\n',gi["lib.es2022.object.d.ts"]='/*! *****************************************************************************\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/// <reference no-default-lib="true"/>\n\ninterface ObjectConstructor {\n /**\n * Determines whether an object has a property with the specified name.\n * @param o An object.\n * @param v A property name.\n */\n hasOwn(o: object, v: PropertyKey): boolean;\n}\n',gi["lib.es2022.regexp.d.ts"]='/*! *****************************************************************************\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/// <reference no-default-lib="true"/>\n\ninterface RegExpMatchArray {\n indices?: RegExpIndicesArray;\n}\n\ninterface RegExpExecArray {\n indices?: RegExpIndicesArray;\n}\n\ninterface RegExpIndicesArray extends Array<[number, number]> {\n groups?: {\n [key: string]: [number, number];\n };\n}\n\ninterface RegExp {\n /**\n * Returns a Boolean value indicating the state of the hasIndices flag (d) used with a regular expression.\n * Default is false. Read-only.\n */\n readonly hasIndices: boolean;\n}\n',gi["lib.es2022.string.d.ts"]='/*! *****************************************************************************\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/// <reference no-default-lib="true"/>\n\ninterface String {\n /**\n * Returns a new String consisting of the single UTF-16 code unit located at the specified index.\n * @param index The zero-based index of the desired code unit. A negative index will count back from the last item.\n */\n at(index: number): string | undefined;\n}\n',gi["lib.es2023.array.d.ts"]="/*! *****************************************************************************\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/// <reference no-default-lib=\"true\"/>\n\ninterface Array<T> {\n /**\n * Returns the value of the last element in the array where predicate is true, and undefined\n * otherwise.\n * @param predicate findLast calls predicate once for each element of the array, in descending\n * order, until it finds one where predicate returns true. If such an element is found, findLast\n * immediately returns that element value. Otherwise, findLast 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 findLast<S extends T>(predicate: (value: T, index: number, array: T[]) => value is S, thisArg?: any): S | undefined;\n findLast(predicate: (value: T, index: number, array: T[]) => unknown, thisArg?: any): T | undefined;\n\n /**\n * Returns the index of the last element in the array where predicate is true, and -1\n * otherwise.\n * @param predicate findLastIndex calls predicate once for each element of the array, in descending\n * order, until it finds one where predicate returns true. If such an element is found,\n * findLastIndex immediately returns that element index. Otherwise, findLastIndex 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 findLastIndex(predicate: (value: T, index: number, array: T[]) => unknown, thisArg?: any): number;\n\n /**\n * Returns a copy of an array with its elements reversed.\n */\n toReversed(): T[];\n\n /**\n * Returns a copy of an array with its elements sorted.\n * @param compareFn Function used to determine the order of the elements. It is expected to return\n * a negative value if the first argument is less than the second argument, zero if they're equal, and a positive\n * value otherwise. If omitted, the elements are sorted in ascending, UTF-16 code unit order.\n * ```ts\n * [11, 2, 22, 1].toSorted((a, b) => a - b) // [1, 2, 11, 22]\n * ```\n */\n toSorted(compareFn?: (a: T, b: T) => number): T[];\n\n /**\n * Copies an array and removes elements and, if necessary, inserts new elements in their place. Returns the copied array.\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 copied array in place of the deleted elements.\n * @returns The copied array.\n */\n toSpliced(start: number, deleteCount: number, ...items: T[]): T[];\n\n /**\n * Copies an array and removes elements while returning the remaining 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 * @returns A copy of the original array with the remaining elements.\n */\n toSpliced(start: number, deleteCount?: number): T[];\n\n /**\n * Copies an array, then overwrites the value at the provided index with the\n * given value. If the index is negative, then it replaces from the end\n * of the array.\n * @param index The index of the value to overwrite. If the index is\n * negative, then it replaces from the end of the array.\n * @param value The value to write into the copied array.\n * @returns The copied array with the updated value.\n */\n with(index: number, value: T): T[];\n}\n\ninterface ReadonlyArray<T> {\n /**\n * Returns the value of the last element in the array where predicate is true, and undefined\n * otherwise.\n * @param predicate findLast calls predicate once for each element of the array, in descending\n * order, until it finds one where predicate returns true. If such an element is found, findLast\n * immediately returns that element value. Otherwise, findLast 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 findLast<S extends T>(\n predicate: (value: T, index: number, array: readonly T[]) => value is S,\n thisArg?: any,\n ): S | undefined;\n findLast(\n predicate: (value: T, index: number, array: readonly T[]) => unknown,\n thisArg?: any,\n ): T | undefined;\n\n /**\n * Returns the index of the last element in the array where predicate is true, and -1\n * otherwise.\n * @param predicate findLastIndex calls predicate once for each element of the array, in descending\n * order, until it finds one where predicate returns true. If such an element is found,\n * findLastIndex immediately returns that element index. Otherwise, findLastIndex 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 findLastIndex(\n predicate: (value: T, index: number, array: readonly T[]) => unknown,\n thisArg?: any,\n ): number;\n\n /**\n * Copies the array and returns the copied array with all of its elements reversed.\n */\n toReversed(): T[];\n\n /**\n * Copies and sorts the array.\n * @param compareFn Function used to determine the order of the elements. It is expected to return\n * a negative value if the first argument is less than the second argument, zero if they're equal, and a positive\n * value otherwise. If omitted, the elements are sorted in ascending, UTF-16 code unit order.\n * ```ts\n * [11, 2, 22, 1].toSorted((a, b) => a - b) // [1, 2, 11, 22]\n * ```\n */\n toSorted(compareFn?: (a: T, b: T) => number): T[];\n\n /**\n * Copies an array and removes elements while, if necessary, inserting new elements in their place, returning the remaining 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 copied array in place of the deleted elements.\n * @returns A copy of the original array with the remaining elements.\n */\n toSpliced(start: number, deleteCount: number, ...items: T[]): T[];\n\n /**\n * Copies an array and removes elements while returning the remaining 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 * @returns A copy of the original array with the remaining elements.\n */\n toSpliced(start: number, deleteCount?: number): T[];\n\n /**\n * Copies an array, then overwrites the value at the provided index with the\n * given value. If the index is negative, then it replaces from the end\n * of the array\n * @param index The index of the value to overwrite. If the index is\n * negative, then it replaces from the end of the array.\n * @param value The value to insert into the copied array.\n * @returns A copy of the original array with the inserted value.\n */\n with(index: number, value: T): T[];\n}\n\ninterface Int8Array<TArrayBuffer extends ArrayBufferLike> {\n /**\n * Returns the value of the last element in the array where predicate is true, and undefined\n * otherwise.\n * @param predicate findLast calls predicate once for each element of the array, in descending\n * order, until it finds one where predicate returns true. If such an element is found, findLast\n * immediately returns that element value. Otherwise, findLast 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 findLast<S extends number>(\n predicate: (\n value: number,\n index: number,\n array: this,\n ) => value is S,\n thisArg?: any,\n ): S | undefined;\n findLast(\n predicate: (value: number, index: number, array: this) => unknown,\n thisArg?: any,\n ): number | undefined;\n\n /**\n * Returns the index of the last element in the array where predicate is true, and -1\n * otherwise.\n * @param predicate findLastIndex calls predicate once for each element of the array, in descending\n * order, until it finds one where predicate returns true. If such an element is found,\n * findLastIndex immediately returns that element index. Otherwise, findLastIndex 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 findLastIndex(\n predicate: (value: number, index: number, array: this) => unknown,\n thisArg?: any,\n ): number;\n\n /**\n * Copies the array and returns the copy with the elements in reverse order.\n */\n toReversed(): Int8Array<ArrayBuffer>;\n\n /**\n * Copies and sorts the array.\n * @param compareFn Function used to determine the order of the elements. It is expected to return\n * a negative value if the first argument is less than the second argument, zero if they're equal, and a positive\n * value otherwise. If omitted, the elements are sorted in ascending order.\n * ```ts\n * const myNums = Int8Array.from([11, 2, 22, 1]);\n * myNums.toSorted((a, b) => a - b) // Int8Array(4) [1, 2, 11, 22]\n * ```\n */\n toSorted(compareFn?: (a: number, b: number) => number): Int8Array<ArrayBuffer>;\n\n /**\n * Copies the array and inserts the given number at the provided index.\n * @param index The index of the value to overwrite. If the index is\n * negative, then it replaces from the end of the array.\n * @param value The value to insert into the copied array.\n * @returns A copy of the original array with the inserted value.\n */\n with(index: number, value: number): Int8Array<ArrayBuffer>;\n}\n\ninterface Uint8Array<TArrayBuffer extends ArrayBufferLike> {\n /**\n * Returns the value of the last element in the array where predicate is true, and undefined\n * otherwise.\n * @param predicate findLast calls predicate once for each element of the array, in descending\n * order, until it finds one where predicate returns true. If such an element is found, findLast\n * immediately returns that element value. Otherwise, findLast 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 findLast<S extends number>(\n predicate: (\n value: number,\n index: number,\n array: this,\n ) => value is S,\n thisArg?: any,\n ): S | undefined;\n findLast(\n predicate: (value: number, index: number, array: this) => unknown,\n thisArg?: any,\n ): number | undefined;\n\n /**\n * Returns the index of the last element in the array where predicate is true, and -1\n * otherwise.\n * @param predicate findLastIndex calls predicate once for each element of the array, in descending\n * order, until it finds one where predicate returns true. If such an element is found,\n * findLastIndex immediately returns that element index. Otherwise, findLastIndex 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 findLastIndex(\n predicate: (value: number, index: number, array: this) => unknown,\n thisArg?: any,\n ): number;\n\n /**\n * Copies the array and returns the copy with the elements in reverse order.\n */\n toReversed(): Uint8Array<ArrayBuffer>;\n\n /**\n * Copies and sorts the array.\n * @param compareFn Function used to determine the order of the elements. It is expected to return\n * a negative value if the first argument is less than the second argument, zero if they're equal, and a positive\n * value otherwise. If omitted, the elements are sorted in ascending order.\n * ```ts\n * const myNums = Uint8Array.from([11, 2, 22, 1]);\n * myNums.toSorted((a, b) => a - b) // Uint8Array(4) [1, 2, 11, 22]\n * ```\n */\n toSorted(compareFn?: (a: number, b: number) => number): Uint8Array<ArrayBuffer>;\n\n /**\n * Copies the array and inserts the given number at the provided index.\n * @param index The index of the value to overwrite. If the index is\n * negative, then it replaces from the end of the array.\n * @param value The value to insert into the copied array.\n * @returns A copy of the original array with the inserted value.\n */\n with(index: number, value: number): Uint8Array<ArrayBuffer>;\n}\n\ninterface Uint8ClampedArray<TArrayBuffer extends ArrayBufferLike> {\n /**\n * Returns the value of the last element in the array where predicate is true, and undefined\n * otherwise.\n * @param predicate findLast calls predicate once for each element of the array, in descending\n * order, until it finds one where predicate returns true. If such an element is found, findLast\n * immediately returns that element value. Otherwise, findLast 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 findLast<S extends number>(\n predicate: (\n value: number,\n index: number,\n array: this,\n ) => value is S,\n thisArg?: any,\n ): S | undefined;\n findLast(\n predicate: (\n value: number,\n index: number,\n array: this,\n ) => unknown,\n thisArg?: any,\n ): number | undefined;\n\n /**\n * Returns the index of the last element in the array where predicate is true, and -1\n * otherwise.\n * @param predicate findLastIndex calls predicate once for each element of the array, in descending\n * order, until it finds one where predicate returns true. If such an element is found,\n * findLastIndex immediately returns that element index. Otherwise, findLastIndex 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 findLastIndex(\n predicate: (\n value: number,\n index: number,\n array: this,\n ) => unknown,\n thisArg?: any,\n ): number;\n\n /**\n * Copies the array and returns the copy with the elements in reverse order.\n */\n toReversed(): Uint8ClampedArray<ArrayBuffer>;\n\n /**\n * Copies and sorts the array.\n * @param compareFn Function used to determine the order of the elements. It is expected to return\n * a negative value if the first argument is less than the second argument, zero if they're equal, and a positive\n * value otherwise. If omitted, the elements are sorted in ascending order.\n * ```ts\n * const myNums = Uint8ClampedArray.from([11, 2, 22, 1]);\n * myNums.toSorted((a, b) => a - b) // Uint8ClampedArray(4) [1, 2, 11, 22]\n * ```\n */\n toSorted(compareFn?: (a: number, b: number) => number): Uint8ClampedArray<ArrayBuffer>;\n\n /**\n * Copies the array and inserts the given number at the provided index.\n * @param index The index of the value to overwrite. If the index is\n * negative, then it replaces from the end of the array.\n * @param value The value to insert into the copied array.\n * @returns A copy of the original array with the inserted value.\n */\n with(index: number, value: number): Uint8ClampedArray<ArrayBuffer>;\n}\n\ninterface Int16Array<TArrayBuffer extends ArrayBufferLike> {\n /**\n * Returns the value of the last element in the array where predicate is true, and undefined\n * otherwise.\n * @param predicate findLast calls predicate once for each element of the array, in descending\n * order, until it finds one where predicate returns true. If such an element is found, findLast\n * immediately returns that element value. Otherwise, findLast 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 findLast<S extends number>(\n predicate: (\n value: number,\n index: number,\n array: this,\n ) => value is S,\n thisArg?: any,\n ): S | undefined;\n findLast(\n predicate: (value: number, index: number, array: this) => unknown,\n thisArg?: any,\n ): number | undefined;\n\n /**\n * Returns the index of the last element in the array where predicate is true, and -1\n * otherwise.\n * @param predicate findLastIndex calls predicate once for each element of the array, in descending\n * order, until it finds one where predicate returns true. If such an element is found,\n * findLastIndex immediately returns that element index. Otherwise, findLastIndex 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 findLastIndex(\n predicate: (value: number, index: number, array: this) => unknown,\n thisArg?: any,\n ): number;\n\n /**\n * Copies the array and returns the copy with the elements in reverse order.\n */\n toReversed(): Int16Array<ArrayBuffer>;\n\n /**\n * Copies and sorts the array.\n * @param compareFn Function used to determine the order of the elements. It is expected to return\n * a negative value if the first argument is less than the second argument, zero if they're equal, and a positive\n * value otherwise. If omitted, the elements are sorted in ascending order.\n * ```ts\n * const myNums = Int16Array.from([11, 2, -22, 1]);\n * myNums.toSorted((a, b) => a - b) // Int16Array(4) [-22, 1, 2, 11]\n * ```\n */\n toSorted(compareFn?: (a: number, b: number) => number): Int16Array<ArrayBuffer>;\n\n /**\n * Copies the array and inserts the given number at the provided index.\n * @param index The index of the value to overwrite. If the index is\n * negative, then it replaces from the end of the array.\n * @param value The value to insert into the copied array.\n * @returns A copy of the original array with the inserted value.\n */\n with(index: number, value: number): Int16Array<ArrayBuffer>;\n}\n\ninterface Uint16Array<TArrayBuffer extends ArrayBufferLike> {\n /**\n * Returns the value of the last element in the array where predicate is true, and undefined\n * otherwise.\n * @param predicate findLast calls predicate once for each element of the array, in descending\n * order, until it finds one where predicate returns true. If such an element is found, findLast\n * immediately returns that element value. Otherwise, findLast 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 findLast<S extends number>(\n predicate: (\n value: number,\n index: number,\n array: this,\n ) => value is S,\n thisArg?: any,\n ): S | undefined;\n findLast(\n predicate: (\n value: number,\n index: number,\n array: this,\n ) => unknown,\n thisArg?: any,\n ): number | undefined;\n\n /**\n * Returns the index of the last element in the array where predicate is true, and -1\n * otherwise.\n * @param predicate findLastIndex calls predicate once for each element of the array, in descending\n * order, until it finds one where predicate returns true. If such an element is found,\n * findLastIndex immediately returns that element index. Otherwise, findLastIndex 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 findLastIndex(\n predicate: (\n value: number,\n index: number,\n array: this,\n ) => unknown,\n thisArg?: any,\n ): number;\n\n /**\n * Copies the array and returns the copy with the elements in reverse order.\n */\n toReversed(): Uint16Array<ArrayBuffer>;\n\n /**\n * Copies and sorts the array.\n * @param compareFn Function used to determine the order of the elements. It is expected to return\n * a negative value if the first argument is less than the second argument, zero if they're equal, and a positive\n * value otherwise. If omitted, the elements are sorted in ascending order.\n * ```ts\n * const myNums = Uint16Array.from([11, 2, 22, 1]);\n * myNums.toSorted((a, b) => a - b) // Uint16Array(4) [1, 2, 11, 22]\n * ```\n */\n toSorted(compareFn?: (a: number, b: number) => number): Uint16Array<ArrayBuffer>;\n\n /**\n * Copies the array and inserts the given number at the provided index.\n * @param index The index of the value to overwrite. If the index is\n * negative, then it replaces from the end of the array.\n * @param value The value to insert into the copied array.\n * @returns A copy of the original array with the inserted value.\n */\n with(index: number, value: number): Uint16Array<ArrayBuffer>;\n}\n\ninterface Int32Array<TArrayBuffer extends ArrayBufferLike> {\n /**\n * Returns the value of the last element in the array where predicate is true, and undefined\n * otherwise.\n * @param predicate findLast calls predicate once for each element of the array, in descending\n * order, until it finds one where predicate returns true. If such an element is found, findLast\n * immediately returns that element value. Otherwise, findLast 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 findLast<S extends number>(\n predicate: (\n value: number,\n index: number,\n array: this,\n ) => value is S,\n thisArg?: any,\n ): S | undefined;\n findLast(\n predicate: (value: number, index: number, array: this) => unknown,\n thisArg?: any,\n ): number | undefined;\n\n /**\n * Returns the index of the last element in the array where predicate is true, and -1\n * otherwise.\n * @param predicate findLastIndex calls predicate once for each element of the array, in descending\n * order, until it finds one where predicate returns true. If such an element is found,\n * findLastIndex immediately returns that element index. Otherwise, findLastIndex 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 findLastIndex(\n predicate: (value: number, index: number, array: this) => unknown,\n thisArg?: any,\n ): number;\n\n /**\n * Copies the array and returns the copy with the elements in reverse order.\n */\n toReversed(): Int32Array<ArrayBuffer>;\n\n /**\n * Copies and sorts the array.\n * @param compareFn Function used to determine the order of the elements. It is expected to return\n * a negative value if the first argument is less than the second argument, zero if they're equal, and a positive\n * value otherwise. If omitted, the elements are sorted in ascending order.\n * ```ts\n * const myNums = Int32Array.from([11, 2, -22, 1]);\n * myNums.toSorted((a, b) => a - b) // Int32Array(4) [-22, 1, 2, 11]\n * ```\n */\n toSorted(compareFn?: (a: number, b: number) => number): Int32Array<ArrayBuffer>;\n\n /**\n * Copies the array and inserts the given number at the provided index.\n * @param index The index of the value to overwrite. If the index is\n * negative, then it replaces from the end of the array.\n * @param value The value to insert into the copied array.\n * @returns A copy of the original array with the inserted value.\n */\n with(index: number, value: number): Int32Array<ArrayBuffer>;\n}\n\ninterface Uint32Array<TArrayBuffer extends ArrayBufferLike> {\n /**\n * Returns the value of the last element in the array where predicate is true, and undefined\n * otherwise.\n * @param predicate findLast calls predicate once for each element of the array, in descending\n * order, until it finds one where predicate returns true. If such an element is found, findLast\n * immediately returns that element value. Otherwise, findLast 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 findLast<S extends number>(\n predicate: (\n value: number,\n index: number,\n array: this,\n ) => value is S,\n thisArg?: any,\n ): S | undefined;\n findLast(\n predicate: (\n value: number,\n index: number,\n array: this,\n ) => unknown,\n thisArg?: any,\n ): number | undefined;\n\n /**\n * Returns the index of the last element in the array where predicate is true, and -1\n * otherwise.\n * @param predicate findLastIndex calls predicate once for each element of the array, in descending\n * order, until it finds one where predicate returns true. If such an element is found,\n * findLastIndex immediately returns that element index. Otherwise, findLastIndex 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 findLastIndex(\n predicate: (\n value: number,\n index: number,\n array: this,\n ) => unknown,\n thisArg?: any,\n ): number;\n\n /**\n * Copies the array and returns the copy with the elements in reverse order.\n */\n toReversed(): Uint32Array<ArrayBuffer>;\n\n /**\n * Copies and sorts the array.\n * @param compareFn Function used to determine the order of the elements. It is expected to return\n * a negative value if the first argument is less than the second argument, zero if they're equal, and a positive\n * value otherwise. If omitted, the elements are sorted in ascending order.\n * ```ts\n * const myNums = Uint32Array.from([11, 2, 22, 1]);\n * myNums.toSorted((a, b) => a - b) // Uint32Array(4) [1, 2, 11, 22]\n * ```\n */\n toSorted(compareFn?: (a: number, b: number) => number): Uint32Array<ArrayBuffer>;\n\n /**\n * Copies the array and inserts the given number at the provided index.\n * @param index The index of the value to overwrite. If the index is\n * negative, then it replaces from the end of the array.\n * @param value The value to insert into the copied array.\n * @returns A copy of the original array with the inserted value.\n */\n with(index: number, value: number): Uint32Array<ArrayBuffer>;\n}\n\ninterface Float32Array<TArrayBuffer extends ArrayBufferLike> {\n /**\n * Returns the value of the last element in the array where predicate is true, and undefined\n * otherwise.\n * @param predicate findLast calls predicate once for each element of the array, in descending\n * order, until it finds one where predicate returns true. If such an element is found, findLast\n * immediately returns that element value. Otherwise, findLast 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 findLast<S extends number>(\n predicate: (\n value: number,\n index: number,\n array: this,\n ) => value is S,\n thisArg?: any,\n ): S | undefined;\n findLast(\n predicate: (\n value: number,\n index: number,\n array: this,\n ) => unknown,\n thisArg?: any,\n ): number | undefined;\n\n /**\n * Returns the index of the last element in the array where predicate is true, and -1\n * otherwise.\n * @param predicate findLastIndex calls predicate once for each element of the array, in descending\n * order, until it finds one where predicate returns true. If such an element is found,\n * findLastIndex immediately returns that element index. Otherwise, findLastIndex 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 findLastIndex(\n predicate: (\n value: number,\n index: number,\n array: this,\n ) => unknown,\n thisArg?: any,\n ): number;\n\n /**\n * Copies the array and returns the copy with the elements in reverse order.\n */\n toReversed(): Float32Array<ArrayBuffer>;\n\n /**\n * Copies and sorts the array.\n * @param compareFn Function used to determine the order of the elements. It is expected to return\n * a negative value if the first argument is less than the second argument, zero if they're equal, and a positive\n * value otherwise. If omitted, the elements are sorted in ascending order.\n * ```ts\n * const myNums = Float32Array.from([11.25, 2, -22.5, 1]);\n * myNums.toSorted((a, b) => a - b) // Float32Array(4) [-22.5, 1, 2, 11.5]\n * ```\n */\n toSorted(compareFn?: (a: number, b: number) => number): Float32Array<ArrayBuffer>;\n\n /**\n * Copies the array and inserts the given number at the provided index.\n * @param index The index of the value to overwrite. If the index is\n * negative, then it replaces from the end of the array.\n * @param value The value to insert into the copied array.\n * @returns A copy of the original array with the inserted value.\n */\n with(index: number, value: number): Float32Array<ArrayBuffer>;\n}\n\ninterface Float64Array<TArrayBuffer extends ArrayBufferLike> {\n /**\n * Returns the value of the last element in the array where predicate is true, and undefined\n * otherwise.\n * @param predicate findLast calls predicate once for each element of the array, in descending\n * order, until it finds one where predicate returns true. If such an element is found, findLast\n * immediately returns that element value. Otherwise, findLast 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 findLast<S extends number>(\n predicate: (\n value: number,\n index: number,\n array: this,\n ) => value is S,\n thisArg?: any,\n ): S | undefined;\n findLast(\n predicate: (\n value: number,\n index: number,\n array: this,\n ) => unknown,\n thisArg?: any,\n ): number | undefined;\n\n /**\n * Returns the index of the last element in the array where predicate is true, and -1\n * otherwise.\n * @param predicate findLastIndex calls predicate once for each element of the array, in descending\n * order, until it finds one where predicate returns true. If such an element is found,\n * findLastIndex immediately returns that element index. Otherwise, findLastIndex 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 findLastIndex(\n predicate: (\n value: number,\n index: number,\n array: this,\n ) => unknown,\n thisArg?: any,\n ): number;\n\n /**\n * Copies the array and returns the copy with the elements in reverse order.\n */\n toReversed(): Float64Array<ArrayBuffer>;\n\n /**\n * Copies and sorts the array.\n * @param compareFn Function used to determine the order of the elements. It is expected to return\n * a negative value if the first argument is less than the second argument, zero if they're equal, and a positive\n * value otherwise. If omitted, the elements are sorted in ascending order.\n * ```ts\n * const myNums = Float64Array.from([11.25, 2, -22.5, 1]);\n * myNums.toSorted((a, b) => a - b) // Float64Array(4) [-22.5, 1, 2, 11.5]\n * ```\n */\n toSorted(compareFn?: (a: number, b: number) => number): Float64Array<ArrayBuffer>;\n\n /**\n * Copies the array and inserts the given number at the provided index.\n * @param index The index of the value to overwrite. If the index is\n * negative, then it replaces from the end of the array.\n * @param value The value to insert into the copied array.\n * @returns A copy of the original array with the inserted value.\n */\n with(index: number, value: number): Float64Array<ArrayBuffer>;\n}\n\ninterface BigInt64Array<TArrayBuffer extends ArrayBufferLike> {\n /**\n * Returns the value of the last element in the array where predicate is true, and undefined\n * otherwise.\n * @param predicate findLast calls predicate once for each element of the array, in descending\n * order, until it finds one where predicate returns true. If such an element is found, findLast\n * immediately returns that element value. Otherwise, findLast 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 findLast<S extends bigint>(\n predicate: (\n value: bigint,\n index: number,\n array: this,\n ) => value is S,\n thisArg?: any,\n ): S | undefined;\n findLast(\n predicate: (\n value: bigint,\n index: number,\n array: this,\n ) => unknown,\n thisArg?: any,\n ): bigint | undefined;\n\n /**\n * Returns the index of the last element in the array where predicate is true, and -1\n * otherwise.\n * @param predicate findLastIndex calls predicate once for each element of the array, in descending\n * order, until it finds one where predicate returns true. If such an element is found,\n * findLastIndex immediately returns that element index. Otherwise, findLastIndex 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 findLastIndex(\n predicate: (\n value: bigint,\n index: number,\n array: this,\n ) => unknown,\n thisArg?: any,\n ): number;\n\n /**\n * Copies the array and returns the copy with the elements in reverse order.\n */\n toReversed(): BigInt64Array<ArrayBuffer>;\n\n /**\n * Copies and sorts the array.\n * @param compareFn Function used to determine the order of the elements. It is expected to return\n * a negative value if the first argument is less than the second argument, zero if they're equal, and a positive\n * value otherwise. If omitted, the elements are sorted in ascending order.\n * ```ts\n * const myNums = BigInt64Array.from([11n, 2n, -22n, 1n]);\n * myNums.toSorted((a, b) => Number(a - b)) // BigInt64Array(4) [-22n, 1n, 2n, 11n]\n * ```\n */\n toSorted(compareFn?: (a: bigint, b: bigint) => number): BigInt64Array<ArrayBuffer>;\n\n /**\n * Copies the array and inserts the given bigint at the provided index.\n * @param index The index of the value to overwrite. If the index is\n * negative, then it replaces from the end of the array.\n * @param value The value to insert into the copied array.\n * @returns A copy of the original array with the inserted value.\n */\n with(index: number, value: bigint): BigInt64Array<ArrayBuffer>;\n}\n\ninterface BigUint64Array<TArrayBuffer extends ArrayBufferLike> {\n /**\n * Returns the value of the last element in the array where predicate is true, and undefined\n * otherwise.\n * @param predicate findLast calls predicate once for each element of the array, in descending\n * order, until it finds one where predicate returns true. If such an element is found, findLast\n * immediately returns that element value. Otherwise, findLast 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 findLast<S extends bigint>(\n predicate: (\n value: bigint,\n index: number,\n array: this,\n ) => value is S,\n thisArg?: any,\n ): S | undefined;\n findLast(\n predicate: (\n value: bigint,\n index: number,\n array: this,\n ) => unknown,\n thisArg?: any,\n ): bigint | undefined;\n\n /**\n * Returns the index of the last element in the array where predicate is true, and -1\n * otherwise.\n * @param predicate findLastIndex calls predicate once for each element of the array, in descending\n * order, until it finds one where predicate returns true. If such an element is found,\n * findLastIndex immediately returns that element index. Otherwise, findLastIndex 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 findLastIndex(\n predicate: (\n value: bigint,\n index: number,\n array: this,\n ) => unknown,\n thisArg?: any,\n ): number;\n\n /**\n * Copies the array and returns the copy with the elements in reverse order.\n */\n toReversed(): BigUint64Array<ArrayBuffer>;\n\n /**\n * Copies and sorts the array.\n * @param compareFn Function used to determine the order of the elements. It is expected to return\n * a negative value if the first argument is less than the second argument, zero if they're equal, and a positive\n * value otherwise. If omitted, the elements are sorted in ascending order.\n * ```ts\n * const myNums = BigUint64Array.from([11n, 2n, 22n, 1n]);\n * myNums.toSorted((a, b) => Number(a - b)) // BigUint64Array(4) [1n, 2n, 11n, 22n]\n * ```\n */\n toSorted(compareFn?: (a: bigint, b: bigint) => number): BigUint64Array<ArrayBuffer>;\n\n /**\n * Copies the array and inserts the given bigint at the provided index.\n * @param index The index of the value to overwrite. If the index is\n * negative, then it replaces from the end of the array.\n * @param value The value to insert into the copied array.\n * @returns A copy of the original array with the inserted value.\n */\n with(index: number, value: bigint): BigUint64Array<ArrayBuffer>;\n}\n",gi["lib.es2023.collection.d.ts"]='/*! *****************************************************************************\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/// <reference no-default-lib="true"/>\n\ninterface WeakKeyTypes {\n symbol: symbol;\n}\n',gi["lib.es2023.d.ts"]='/*! *****************************************************************************\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/// <reference no-default-lib="true"/>\n\n/// <reference lib="es2022" />\n/// <reference lib="es2023.array" />\n/// <reference lib="es2023.collection" />\n/// <reference lib="es2023.intl" />\n',gi["lib.es2023.full.d.ts"]='/*! *****************************************************************************\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/// <reference no-default-lib="true"/>\n\n/// <reference lib="es2023" />\n/// <reference lib="dom" />\n/// <reference lib="webworker.importscripts" />\n/// <reference lib="scripthost" />\n/// <reference lib="dom.iterable" />\n/// <reference lib="dom.asynciterable" />\n',gi["lib.es2023.intl.d.ts"]='/*! *****************************************************************************\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/// <reference no-default-lib="true"/>\n\ndeclare namespace Intl {\n interface NumberFormatOptionsUseGroupingRegistry {\n min2: never;\n auto: never;\n always: never;\n }\n\n interface NumberFormatOptionsSignDisplayRegistry {\n negative: never;\n }\n\n interface NumberFormatOptions {\n roundingPriority?: "auto" | "morePrecision" | "lessPrecision" | undefined;\n roundingIncrement?: 1 | 2 | 5 | 10 | 20 | 25 | 50 | 100 | 200 | 250 | 500 | 1000 | 2000 | 2500 | 5000 | undefined;\n roundingMode?: "ceil" | "floor" | "expand" | "trunc" | "halfCeil" | "halfFloor" | "halfExpand" | "halfTrunc" | "halfEven" | undefined;\n trailingZeroDisplay?: "auto" | "stripIfInteger" | undefined;\n }\n\n interface ResolvedNumberFormatOptions {\n roundingPriority: "auto" | "morePrecision" | "lessPrecision";\n roundingMode: "ceil" | "floor" | "expand" | "trunc" | "halfCeil" | "halfFloor" | "halfExpand" | "halfTrunc" | "halfEven";\n roundingIncrement: 1 | 2 | 5 | 10 | 20 | 25 | 50 | 100 | 200 | 250 | 500 | 1000 | 2000 | 2500 | 5000;\n trailingZeroDisplay: "auto" | "stripIfInteger";\n }\n\n interface NumberRangeFormatPart extends NumberFormatPart {\n source: "startRange" | "endRange" | "shared";\n }\n\n type StringNumericLiteral = `${number}` | "Infinity" | "-Infinity" | "+Infinity";\n\n interface NumberFormat {\n format(value: number | bigint | StringNumericLiteral): string;\n formatToParts(value: number | bigint | StringNumericLiteral): NumberFormatPart[];\n formatRange(start: number | bigint | StringNumericLiteral, end: number | bigint | StringNumericLiteral): string;\n formatRangeToParts(start: number | bigint | StringNumericLiteral, end: number | bigint | StringNumericLiteral): NumberRangeFormatPart[];\n }\n}\n',gi["lib.es2024.arraybuffer.d.ts"]='/*! *****************************************************************************\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/// <reference no-default-lib="true"/>\n\ninterface ArrayBuffer {\n /**\n * If this ArrayBuffer is resizable, returns the maximum byte length given during construction; returns the byte length if not.\n *\n * [MDN](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/ArrayBuffer/maxByteLength)\n */\n get maxByteLength(): number;\n\n /**\n * Returns true if this ArrayBuffer can be resized.\n *\n * [MDN](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/ArrayBuffer/resizable)\n */\n get resizable(): boolean;\n\n /**\n * Resizes the ArrayBuffer to the specified size (in bytes).\n *\n * [MDN](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/ArrayBuffer/resize)\n */\n resize(newByteLength?: number): void;\n\n /**\n * Returns a boolean indicating whether or not this buffer has been detached (transferred).\n *\n * [MDN](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/ArrayBuffer/detached)\n */\n get detached(): boolean;\n\n /**\n * Creates a new ArrayBuffer with the same byte content as this buffer, then detaches this buffer.\n *\n * [MDN](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/ArrayBuffer/transfer)\n */\n transfer(newByteLength?: number): ArrayBuffer;\n\n /**\n * Creates a new non-resizable ArrayBuffer with the same byte content as this buffer, then detaches this buffer.\n *\n * [MDN](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/ArrayBuffer/transferToFixedLength)\n */\n transferToFixedLength(newByteLength?: number): ArrayBuffer;\n}\n\ninterface ArrayBufferConstructor {\n new (byteLength: number, options?: { maxByteLength?: number; }): ArrayBuffer;\n}\n',gi["lib.es2024.collection.d.ts"]='/*! *****************************************************************************\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/// <reference no-default-lib="true"/>\n\ninterface MapConstructor {\n /**\n * Groups members of an iterable according to the return value of the passed callback.\n * @param items An iterable.\n * @param keySelector A callback which will be invoked for each item in items.\n */\n groupBy<K, T>(\n items: Iterable<T>,\n keySelector: (item: T, index: number) => K,\n ): Map<K, T[]>;\n}\n',gi["lib.es2024.d.ts"]='/*! *****************************************************************************\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/// <reference no-default-lib="true"/>\n\n/// <reference lib="es2023" />\n/// <reference lib="es2024.arraybuffer" />\n/// <reference lib="es2024.collection" />\n/// <reference lib="es2024.object" />\n/// <reference lib="es2024.promise" />\n/// <reference lib="es2024.regexp" />\n/// <reference lib="es2024.sharedmemory" />\n/// <reference lib="es2024.string" />\n',gi["lib.es2024.full.d.ts"]='/*! *****************************************************************************\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/// <reference no-default-lib="true"/>\n\n/// <reference lib="es2024" />\n/// <reference lib="dom" />\n/// <reference lib="webworker.importscripts" />\n/// <reference lib="scripthost" />\n/// <reference lib="dom.iterable" />\n/// <reference lib="dom.asynciterable" />\n',gi["lib.es2024.object.d.ts"]='/*! *****************************************************************************\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/// <reference no-default-lib="true"/>\n\ninterface ObjectConstructor {\n /**\n * Groups members of an iterable according to the return value of the passed callback.\n * @param items An iterable.\n * @param keySelector A callback which will be invoked for each item in items.\n */\n groupBy<K extends PropertyKey, T>(\n items: Iterable<T>,\n keySelector: (item: T, index: number) => K,\n ): Partial<Record<K, T[]>>;\n}\n',gi["lib.es2024.promise.d.ts"]='/*! *****************************************************************************\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/// <reference no-default-lib="true"/>\n\ninterface PromiseWithResolvers<T> {\n promise: Promise<T>;\n resolve: (value: T | PromiseLike<T>) => void;\n reject: (reason?: any) => void;\n}\n\ninterface PromiseConstructor {\n /**\n * Creates a new Promise and returns it in an object, along with its resolve and reject functions.\n * @returns An object with the properties `promise`, `resolve`, and `reject`.\n *\n * ```ts\n * const { promise, resolve, reject } = Promise.withResolvers<T>();\n * ```\n */\n withResolvers<T>(): PromiseWithResolvers<T>;\n}\n',gi["lib.es2024.regexp.d.ts"]='/*! *****************************************************************************\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/// <reference no-default-lib="true"/>\n\ninterface RegExp {\n /**\n * Returns a Boolean value indicating the state of the unicodeSets flag (v) used with a regular expression.\n * Default is false. Read-only.\n */\n readonly unicodeSets: boolean;\n}\n',gi["lib.es2024.sharedmemory.d.ts"]='/*! *****************************************************************************\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/// <reference no-default-lib="true"/>\n\n/// <reference lib="es2020.bigint" />\n\ninterface Atomics {\n /**\n * A non-blocking, asynchronous version of wait which is usable on the main thread.\n * Waits asynchronously on a shared memory location and returns a Promise\n * @param typedArray A shared Int32Array or BigInt64Array.\n * @param index The position in the typedArray to wait on.\n * @param value The expected value to test.\n * @param [timeout] The expected value to test.\n */\n waitAsync(typedArray: Int32Array, index: number, value: number, timeout?: number): { async: false; value: "not-equal" | "timed-out"; } | { async: true; value: Promise<"ok" | "timed-out">; };\n\n /**\n * A non-blocking, asynchronous version of wait which is usable on the main thread.\n * Waits asynchronously on a shared memory location and returns a Promise\n * @param typedArray A shared Int32Array or BigInt64Array.\n * @param index The position in the typedArray to wait on.\n * @param value The expected value to test.\n * @param [timeout] The expected value to test.\n */\n waitAsync(typedArray: BigInt64Array, index: number, value: bigint, timeout?: number): { async: false; value: "not-equal" | "timed-out"; } | { async: true; value: Promise<"ok" | "timed-out">; };\n}\n\ninterface SharedArrayBuffer {\n /**\n * Returns true if this SharedArrayBuffer can be grown.\n *\n * [MDN](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/SharedArrayBuffer/growable)\n */\n get growable(): boolean;\n\n /**\n * If this SharedArrayBuffer is growable, returns the maximum byte length given during construction; returns the byte length if not.\n *\n * [MDN](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/SharedArrayBuffer/maxByteLength)\n */\n get maxByteLength(): number;\n\n /**\n * Grows the SharedArrayBuffer to the specified size (in bytes).\n *\n * [MDN](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/SharedArrayBuffer/grow)\n */\n grow(newByteLength?: number): void;\n}\n\ninterface SharedArrayBufferConstructor {\n new (byteLength: number, options?: { maxByteLength?: number; }): SharedArrayBuffer;\n}\n',gi["lib.es2024.string.d.ts"]='/*! *****************************************************************************\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/// <reference no-default-lib="true"/>\n\ninterface String {\n /**\n * Returns true if all leading surrogates and trailing surrogates appear paired and in order.\n */\n isWellFormed(): boolean;\n\n /**\n * Returns a string where all lone or out-of-order surrogates have been replaced by the Unicode replacement character (U+FFFD).\n */\n toWellFormed(): string;\n}\n',gi["lib.es5.d.ts"]='/*! *****************************************************************************\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/// <reference no-default-lib="true"/>\n\n/// <reference lib="decorators" />\n/// <reference lib="decorators.legacy" />\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 string A string to convert into a number.\n * @param radix A value between 2 and 36 that specifies the base of the number in `string`.\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(string: 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 unencoded 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 unencoded 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 * @deprecated A legacy feature for browser compatibility\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 * @deprecated A legacy feature for browser compatibility\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 [key: PropertyKey]: 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<T>(o: T, p: PropertyKey, attributes: PropertyDescriptor & ThisType<any>): T;\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<T>(o: T, properties: PropertyDescriptorMap & ThisType<any>): T;\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 f 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 extends { [idx: string]: U | null | undefined | object; }, U extends string | bigint | number | boolean | symbol>(o: T): Readonly<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: infer U, ...args: never) => 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 */\n apply<T, R>(this: (this: T) => R, thisArg: T): R;\n\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, 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 */\n bind<T>(this: T, thisArg: ThisParameterType<T>): OmitThisParameter<T>;\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, A extends any[], B extends any[], R>(this: (this: T, ...args: [...A, ...B]) => R, thisArg: T, ...args: A): (...args: B) => 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 */\n apply<T>(this: new () => T, thisArg: T): void;\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, 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 */\n bind<T>(this: T, thisArg: any): T;\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<A extends any[], B extends any[], R>(this: new (...args: [...A, ...B]) => R, thisArg: any, ...args: A): new (...args: B) => 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 or regular expression to search for.\n * @param replaceValue A string containing the text to replace. When the {@linkcode searchValue} is a `RegExp`, all matches are replaced if the `g` flag is set (or only those matches at the beginning, if the `y` flag is also present). Otherwise, only the first match of {@linkcode searchValue} is replaced.\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(locales?: string | string[]): 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(locales?: string | string[]): 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 * @deprecated A legacy feature for browser compatibility\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: readonly 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\n/**\n * The type for the optional second argument to `import()`.\n *\n * If your host environment supports additional options, this type may be\n * augmented via interface merging.\n */\ninterface ImportCallOptions {\n /** @deprecated*/ assert?: ImportAssertions;\n with?: ImportAttributes;\n}\n\n/**\n * The type for the `assert` property of the optional second argument to `import()`.\n * @deprecated\n */\ninterface ImportAssertions {\n [key: string]: string;\n}\n\n/**\n * The type for the `with` property of the optional second argument to `import()`.\n */\ninterface ImportAttributes {\n [key: string]: string;\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) between the X axis and the line going through both the origin and the given 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 integer.\n * @param x The value to be rounded to the nearest integer.\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 /** Returns the stored time value in milliseconds since midnight, January 1, 1970 UTC. */\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 Universal Coordinated Time (UTC) and the time on the local computer. */\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 /**\n * Creates a new 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 monthIndex The month as a number between 0 and 11 (January to December).\n * @param date The date as a number between 1 and 31.\n * @param hours Must be supplied if minutes is supplied. A number from 0 to 23 (midnight to 11pm) that specifies the hour.\n * @param minutes Must be supplied if seconds is supplied. A number from 0 to 59 that specifies the minutes.\n * @param seconds Must be supplied if milliseconds is supplied. A number from 0 to 59 that specifies the seconds.\n * @param ms A number from 0 to 999 that specifies the milliseconds.\n */\n new (year: number, monthIndex: 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 monthIndex The month as a number between 0 and 11 (January to December).\n * @param date The date as a number between 1 and 31.\n * @param hours Must be supplied if minutes is supplied. A number from 0 to 23 (midnight to 11pm) that specifies the hour.\n * @param minutes Must be supplied if seconds is supplied. A number from 0 to 59 that specifies the minutes.\n * @param seconds Must be supplied if milliseconds is supplied. A number from 0 to 59 that specifies the seconds.\n * @param ms A number from 0 to 999 that specifies the milliseconds.\n */\n UTC(year: number, monthIndex: number, date?: number, hours?: number, minutes?: number, seconds?: number, ms?: number): number;\n /** Returns the number of milliseconds elapsed since midnight, January 1, 1970 Universal Coordinated Time (UTC). */\n now(): number;\n}\n\ndeclare var Date: DateConstructor;\n\ninterface RegExpMatchArray extends Array<string> {\n /**\n * The index of the search at which the result was found.\n */\n index?: number;\n /**\n * A copy of the search string.\n */\n input?: string;\n /**\n * The first match. This will always be present because `null` will be returned if there are no matches.\n */\n 0: string;\n}\n\ninterface RegExpExecArray extends Array<string> {\n /**\n * The index of the search at which the result was found.\n */\n index: number;\n /**\n * A copy of the search string.\n */\n input: string;\n /**\n * The first match. This will always be present because `null` will be returned if there are no matches.\n */\n 0: 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 /** @deprecated A legacy feature for browser compatibility */\n compile(pattern: string, flags?: string): 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 /** @deprecated A legacy feature for browser compatibility */\n "$1": string;\n /** @deprecated A legacy feature for browser compatibility */\n "$2": string;\n /** @deprecated A legacy feature for browser compatibility */\n "$3": string;\n /** @deprecated A legacy feature for browser compatibility */\n "$4": string;\n /** @deprecated A legacy feature for browser compatibility */\n "$5": string;\n /** @deprecated A legacy feature for browser compatibility */\n "$6": string;\n /** @deprecated A legacy feature for browser compatibility */\n "$7": string;\n /** @deprecated A legacy feature for browser compatibility */\n "$8": string;\n /** @deprecated A legacy feature for browser compatibility */\n "$9": string;\n /** @deprecated A legacy feature for browser compatibility */\n "input": string;\n /** @deprecated A legacy feature for browser compatibility */\n "$_": string;\n /** @deprecated A legacy feature for browser compatibility */\n "lastMatch": string;\n /** @deprecated A legacy feature for browser compatibility */\n "$&": string;\n /** @deprecated A legacy feature for browser compatibility */\n "lastParen": string;\n /** @deprecated A legacy feature for browser compatibility */\n "$+": string;\n /** @deprecated A legacy feature for browser compatibility */\n "leftContext": string;\n /** @deprecated A legacy feature for browser compatibility */\n "$`": string;\n /** @deprecated A legacy feature for browser compatibility */\n "rightContext": string;\n /** @deprecated A legacy feature for browser compatibility */\n "$\'": 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 extends ErrorConstructor {\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 extends ErrorConstructor {\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 extends ErrorConstructor {\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 extends ErrorConstructor {\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 extends ErrorConstructor {\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 extends ErrorConstructor {\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 * @throws {SyntaxError} If `text` is not valid JSON.\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 * @throws {TypeError} If a circular reference or a BigInt value is found.\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 an 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 * @throws {TypeError} If a circular reference or a BigInt value is found.\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/// 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 toLocaleString 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. This is exclusive of the element at the index \'end\'.\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 predicate A function that accepts up to three arguments. The every method calls\n * the predicate function for each element in the array until the predicate returns a value\n * which is coercible to the Boolean value false, or until the end of the array.\n * @param thisArg An object to which the this keyword can refer in the predicate function.\n * If thisArg is omitted, undefined is used as the this value.\n */\n every<S extends T>(predicate: (value: T, index: number, array: readonly T[]) => value is S, thisArg?: any): this is readonly S[];\n /**\n * Determines whether all the members of an array satisfy the specified test.\n * @param predicate A function that accepts up to three arguments. The every method calls\n * the predicate function for each element in the array until the predicate returns a value\n * which is coercible to the Boolean value false, or until the end of the array.\n * @param thisArg An object to which the this keyword can refer in the predicate function.\n * If thisArg is omitted, undefined is used as the this value.\n */\n every(predicate: (value: T, index: number, array: readonly T[]) => unknown, thisArg?: any): boolean;\n /**\n * Determines whether the specified callback function returns true for any element of an array.\n * @param predicate A function that accepts up to three arguments. The some method calls\n * the predicate function for each element in the array until the predicate returns a value\n * which is coercible to the Boolean value true, or until the end of the array.\n * @param thisArg An object to which the this keyword can refer in the predicate function.\n * If thisArg is omitted, undefined is used as the this value.\n */\n some(predicate: (value: T, index: number, array: readonly 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: readonly 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: readonly T[]) => U, thisArg?: any): U[];\n /**\n * Returns the elements of an array that meet the condition specified in a callback function.\n * @param predicate A function that accepts up to three arguments. The filter method calls the predicate function one time for each element in the array.\n * @param thisArg An object to which the this keyword can refer in the predicate function. If thisArg is omitted, undefined is used as the this value.\n */\n filter<S extends T>(predicate: (value: T, index: number, array: readonly 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 predicate A function that accepts up to three arguments. The filter method calls the predicate function one time for each element in the array.\n * @param thisArg An object to which the this keyword can refer in the predicate function. If thisArg is omitted, undefined is used as the this value.\n */\n filter(predicate: (value: T, index: number, array: readonly 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: readonly T[]) => T): T;\n reduce(callbackfn: (previousValue: T, currentValue: T, currentIndex: number, array: readonly 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: readonly 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: readonly T[]) => T): T;\n reduceRight(callbackfn: (previousValue: T, currentValue: T, currentIndex: number, array: readonly 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: readonly 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 index in the 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 toLocaleString methods.\n */\n toLocaleString(): string;\n /**\n * Removes the last element from an array and returns it.\n * If the array is empty, undefined is returned and the array is not modified.\n */\n pop(): T | undefined;\n /**\n * Appends new elements to the end of an array, and returns the new length of the array.\n * @param items New elements to add to the array.\n */\n push(...items: T[]): number;\n /**\n * Combines two or more arrays.\n * This method returns a new array without modifying any existing arrays.\n * @param items Additional arrays and/or items to add to the end of the array.\n */\n concat(...items: ConcatArray<T>[]): T[];\n /**\n * Combines two or more arrays.\n * This method returns a new array without modifying any existing arrays.\n * @param items Additional arrays and/or items to add to the end of the array.\n */\n concat(...items: (T | ConcatArray<T>)[]): T[];\n /**\n * Adds all the elements of an array into a string, separated by the specified separator string.\n * @param separator A string used to separate one element of the 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 in place.\n * This method mutates the array and returns a reference to the same array.\n */\n reverse(): T[];\n /**\n * Removes the first element from an array and returns it.\n * If the array is empty, undefined is returned and the array is not modified.\n */\n shift(): T | undefined;\n /**\n * Returns a copy of a section of an array.\n * For both start and end, a negative index can be used to indicate an offset from the end of the array.\n * For example, -2 refers to the second to last element of the array.\n * @param start The beginning index of the specified portion of the array.\n * If start is undefined, then the slice begins at index 0.\n * @param end The end index of the specified portion of the array. This is exclusive of the element at the index \'end\'.\n * If end is undefined, then the slice extends to the end of the array.\n */\n slice(start?: number, end?: number): T[];\n /**\n * Sorts an array in place.\n * This method mutates the array and returns a reference to the same array.\n * @param compareFn Function used to determine the order of the elements. It is expected to return\n * a negative value if the first argument is less than the second argument, zero if they\'re equal, and a positive\n * value otherwise. If omitted, the elements are sorted in ascending, UTF-16 code unit order.\n * ```ts\n * [11,2,22,1].sort((a, b) => a - b)\n * ```\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. Omitting this argument will remove all elements from the start\n * paramater location to end of the array. If value of this argument is either a negative number, zero, undefined, or a type\n * that cannot be converted to an integer, the function will evaluate the argument as zero and not remove any elements.\n * @returns An array containing the elements that were deleted.\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. If value of this argument is either a negative number, zero,\n * undefined, or a type that cannot be converted to an integer, the function will evaluate the argument as zero and\n * not remove any elements.\n * @param items Elements to insert into the array in place of the deleted elements.\n * @returns An array containing the elements that were deleted.\n */\n splice(start: number, deleteCount: number, ...items: T[]): T[];\n /**\n * Inserts new elements at the start of an array, and returns the new length of the 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, or -1 if it is not present.\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, or -1 if it is not present.\n * @param searchElement The value to locate in the array.\n * @param fromIndex The array index at which to begin searching backward. 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 predicate A function that accepts up to three arguments. The every method calls\n * the predicate function for each element in the array until the predicate returns a value\n * which is coercible to the Boolean value false, or until the end of the array.\n * @param thisArg An object to which the this keyword can refer in the predicate function.\n * If thisArg is omitted, undefined is used as the this value.\n */\n every<S extends T>(predicate: (value: T, index: number, array: T[]) => value is S, thisArg?: any): this is S[];\n /**\n * Determines whether all the members of an array satisfy the specified test.\n * @param predicate A function that accepts up to three arguments. The every method calls\n * the predicate function for each element in the array until the predicate returns a value\n * which is coercible to the Boolean value false, or until the end of the array.\n * @param thisArg An object to which the this keyword can refer in the predicate function.\n * If thisArg is omitted, undefined is used as the this value.\n */\n every(predicate: (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 predicate A function that accepts up to three arguments. The some method calls\n * the predicate function for each element in the array until the predicate returns a value\n * which is coercible to the Boolean value true, or until the end of the array.\n * @param thisArg An object to which the this keyword can refer in the predicate function.\n * If thisArg is omitted, undefined is used as the this value.\n */\n some(predicate: (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 predicate A function that accepts up to three arguments. The filter method calls the predicate function one time for each element in the array.\n * @param thisArg An object to which the this keyword can refer in the predicate function. If thisArg is omitted, undefined is used as the this value.\n */\n filter<S extends T>(predicate: (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 predicate A function that accepts up to three arguments. The filter method calls the predicate function one time for each element in the array.\n * @param thisArg An object to which the this keyword can refer in the predicate function. If thisArg is omitted, undefined is used as the this value.\n */\n filter(predicate: (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 any[];\n readonly prototype: 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 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\n/**\n * Recursively unwraps the "awaited type" of a type. Non-promise "thenables" should resolve to `never`. This emulates the behavior of `await`.\n */\ntype Awaited<T> = T extends null | undefined ? T : // special case for `null | undefined` when not in `--strictNullChecks` mode\n T extends object & { then(onfulfilled: infer F, ...args: infer _): any; } ? // `await` only unwraps object types with a callable `then`. Non-object types are not unwrapped\n F extends ((value: infer V, ...args: infer _) => any) ? // if the argument to `then` is callable, extracts the first argument\n Awaited<V> : // recursively unwrap the value\n never : // the argument to `then` was not callable\n T; // non-object or non-thenable\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 & {};\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 abstract new (...args: any) => any> = T extends abstract 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 abstract new (...args: any) => any> = T extends abstract new (...args: any) => infer R ? R : any;\n\n/**\n * Convert string literal type to uppercase\n */\ntype Uppercase<S extends string> = intrinsic;\n\n/**\n * Convert string literal type to lowercase\n */\ntype Lowercase<S extends string> = intrinsic;\n\n/**\n * Convert first character of string literal type to uppercase\n */\ntype Capitalize<S extends string> = intrinsic;\n\n/**\n * Convert first character of string literal type to lowercase\n */\ntype Uncapitalize<S extends string> = intrinsic;\n\n/**\n * Marker for non-inference type position\n */\ntype NoInfer<T> = intrinsic;\n\n/**\n * Marker for contextual \'this\' type\n */\ninterface ThisType<T> {}\n\n/**\n * Stores types to be used with WeakSet, WeakMap, WeakRef, and FinalizationRegistry\n */\ninterface WeakKeyTypes {\n object: object;\n}\n\ntype WeakKey = WeakKeyTypes[keyof WeakKeyTypes];\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<TArrayBuffer extends ArrayBufferLike = ArrayBufferLike> {\n /**\n * The ArrayBuffer instance referenced by the array.\n */\n readonly buffer: TArrayBuffer;\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\ninterface DataView<TArrayBuffer extends ArrayBufferLike = ArrayBufferLike> {\n readonly buffer: TArrayBuffer;\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 * @param littleEndian If false or undefined, a big-endian value should be read.\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 * @param littleEndian If false or undefined, a big-endian value should be read.\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 * @param littleEndian If false or undefined, a big-endian value should be read.\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 * @param littleEndian If false or undefined, a big-endian value should be read.\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 * @param littleEndian If false or undefined, a big-endian value should be read.\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 * @param littleEndian If false or undefined, a big-endian value should be read.\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 */\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 */\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 */\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 */\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 */\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 */\n setUint32(byteOffset: number, value: number, littleEndian?: boolean): void;\n}\ninterface DataViewConstructor {\n readonly prototype: DataView<ArrayBufferLike>;\n new <TArrayBuffer extends ArrayBufferLike & { BYTES_PER_ELEMENT?: never; }>(buffer: TArrayBuffer, byteOffset?: number, byteLength?: number): DataView<TArrayBuffer>;\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<TArrayBuffer extends ArrayBufferLike = ArrayBufferLike> {\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: TArrayBuffer;\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 predicate A function that accepts up to three arguments. The every method calls\n * the predicate function for each element in the array until the predicate returns a value\n * which is coercible to the Boolean value false, or until the end of the array.\n * @param thisArg An object to which the this keyword can refer in the predicate function.\n * If thisArg is omitted, undefined is used as the this value.\n */\n every(predicate: (value: number, index: number, array: this) => unknown, thisArg?: any): boolean;\n\n /**\n * Changes all array elements from `start` to `end` index to a static `value` and returns the modified array\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 predicate A function that accepts up to three arguments. The filter method calls\n * the predicate function one time for each element in the array.\n * @param thisArg An object to which the this keyword can refer in the predicate function.\n * If thisArg is omitted, undefined is used as the this value.\n */\n filter(predicate: (value: number, index: number, array: this) => any, thisArg?: any): Int8Array<ArrayBuffer>;\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: this) => 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: this) => 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: this) => 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: this) => number, thisArg?: any): Int8Array<ArrayBuffer>;\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: this) => number): number;\n reduce(callbackfn: (previousValue: number, currentValue: number, currentIndex: number, array: this) => 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: this) => 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: this) => number): number;\n reduceRight(callbackfn: (previousValue: number, currentValue: number, currentIndex: number, array: this) => 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: this) => U, initialValue: U): U;\n\n /**\n * Reverses the elements in an Array.\n */\n reverse(): this;\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. This is exclusive of the element at the index \'end\'.\n */\n slice(start?: number, end?: number): Int8Array<ArrayBuffer>;\n\n /**\n * Determines whether the specified callback function returns true for any element of an array.\n * @param predicate A function that accepts up to three arguments. The some method calls\n * the predicate function for each element in the array until the predicate returns a value\n * which is coercible to the Boolean value true, or until the end of the array.\n * @param thisArg An object to which the this keyword can refer in the predicate function.\n * If thisArg is omitted, undefined is used as the this value.\n */\n some(predicate: (value: number, index: number, array: this) => unknown, thisArg?: any): boolean;\n\n /**\n * Sorts an array.\n * @param compareFn Function used to determine the order of the elements. It is expected to return\n * a negative value if first argument is less than second argument, zero if they\'re equal and a positive\n * value otherwise. If omitted, the elements are sorted in ascending order.\n * ```ts\n * [11,2,22,1].sort((a, b) => a - b)\n * ```\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<TArrayBuffer>;\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 /** Returns the primitive value of the specified object. */\n valueOf(): this;\n\n [index: number]: number;\n}\ninterface Int8ArrayConstructor {\n readonly prototype: Int8Array<ArrayBufferLike>;\n new (length: number): Int8Array<ArrayBuffer>;\n new (array: ArrayLike<number>): Int8Array<ArrayBuffer>;\n new <TArrayBuffer extends ArrayBufferLike = ArrayBuffer>(buffer: TArrayBuffer, byteOffset?: number, length?: number): Int8Array<TArrayBuffer>;\n new (buffer: ArrayBuffer, byteOffset?: number, length?: number): Int8Array<ArrayBuffer>;\n new (array: ArrayLike<number> | ArrayBuffer): Int8Array<ArrayBuffer>;\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<ArrayBuffer>;\n\n /**\n * Creates an array from an array-like or iterable object.\n * @param arrayLike An array-like object to convert to an array.\n */\n from(arrayLike: ArrayLike<number>): Int8Array<ArrayBuffer>;\n\n /**\n * Creates an array from an array-like or 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>(arrayLike: ArrayLike<T>, mapfn: (v: T, k: number) => number, thisArg?: any): Int8Array<ArrayBuffer>;\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<TArrayBuffer extends ArrayBufferLike = ArrayBufferLike> {\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: TArrayBuffer;\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 predicate A function that accepts up to three arguments. The every method calls\n * the predicate function for each element in the array until the predicate returns a value\n * which is coercible to the Boolean value false, or until the end of the array.\n * @param thisArg An object to which the this keyword can refer in the predicate function.\n * If thisArg is omitted, undefined is used as the this value.\n */\n every(predicate: (value: number, index: number, array: this) => unknown, thisArg?: any): boolean;\n\n /**\n * Changes all array elements from `start` to `end` index to a static `value` and returns the modified array\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 predicate A function that accepts up to three arguments. The filter method calls\n * the predicate function one time for each element in the array.\n * @param thisArg An object to which the this keyword can refer in the predicate function.\n * If thisArg is omitted, undefined is used as the this value.\n */\n filter(predicate: (value: number, index: number, array: this) => any, thisArg?: any): Uint8Array<ArrayBuffer>;\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: this) => 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: this) => 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: this) => 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: this) => number, thisArg?: any): Uint8Array<ArrayBuffer>;\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: this) => number): number;\n reduce(callbackfn: (previousValue: number, currentValue: number, currentIndex: number, array: this) => 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: this) => 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: this) => number): number;\n reduceRight(callbackfn: (previousValue: number, currentValue: number, currentIndex: number, array: this) => 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: this) => U, initialValue: U): U;\n\n /**\n * Reverses the elements in an Array.\n */\n reverse(): this;\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. This is exclusive of the element at the index \'end\'.\n */\n slice(start?: number, end?: number): Uint8Array<ArrayBuffer>;\n\n /**\n * Determines whether the specified callback function returns true for any element of an array.\n * @param predicate A function that accepts up to three arguments. The some method calls\n * the predicate function for each element in the array until the predicate returns a value\n * which is coercible to the Boolean value true, or until the end of the array.\n * @param thisArg An object to which the this keyword can refer in the predicate function.\n * If thisArg is omitted, undefined is used as the this value.\n */\n some(predicate: (value: number, index: number, array: this) => unknown, thisArg?: any): boolean;\n\n /**\n * Sorts an array.\n * @param compareFn Function used to determine the order of the elements. It is expected to return\n * a negative value if first argument is less than second argument, zero if they\'re equal and a positive\n * value otherwise. If omitted, the elements are sorted in ascending order.\n * ```ts\n * [11,2,22,1].sort((a, b) => a - b)\n * ```\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<TArrayBuffer>;\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 /** Returns the primitive value of the specified object. */\n valueOf(): this;\n\n [index: number]: number;\n}\ninterface Uint8ArrayConstructor {\n readonly prototype: Uint8Array<ArrayBufferLike>;\n new (length: number): Uint8Array<ArrayBuffer>;\n new (array: ArrayLike<number>): Uint8Array<ArrayBuffer>;\n new <TArrayBuffer extends ArrayBufferLike = ArrayBuffer>(buffer: TArrayBuffer, byteOffset?: number, length?: number): Uint8Array<TArrayBuffer>;\n new (buffer: ArrayBuffer, byteOffset?: number, length?: number): Uint8Array<ArrayBuffer>;\n new (array: ArrayLike<number> | ArrayBuffer): Uint8Array<ArrayBuffer>;\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<ArrayBuffer>;\n\n /**\n * Creates an array from an array-like or iterable object.\n * @param arrayLike An array-like object to convert to an array.\n */\n from(arrayLike: ArrayLike<number>): Uint8Array<ArrayBuffer>;\n\n /**\n * Creates an array from an array-like or 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>(arrayLike: ArrayLike<T>, mapfn: (v: T, k: number) => number, thisArg?: any): Uint8Array<ArrayBuffer>;\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<TArrayBuffer extends ArrayBufferLike = ArrayBufferLike> {\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: TArrayBuffer;\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 predicate A function that accepts up to three arguments. The every method calls\n * the predicate function for each element in the array until the predicate returns a value\n * which is coercible to the Boolean value false, or until the end of the array.\n * @param thisArg An object to which the this keyword can refer in the predicate function.\n * If thisArg is omitted, undefined is used as the this value.\n */\n every(predicate: (value: number, index: number, array: this) => unknown, thisArg?: any): boolean;\n\n /**\n * Changes all array elements from `start` to `end` index to a static `value` and returns the modified array\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 predicate A function that accepts up to three arguments. The filter method calls\n * the predicate function one time for each element in the array.\n * @param thisArg An object to which the this keyword can refer in the predicate function.\n * If thisArg is omitted, undefined is used as the this value.\n */\n filter(predicate: (value: number, index: number, array: this) => any, thisArg?: any): Uint8ClampedArray<ArrayBuffer>;\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: this) => 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: this) => 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: this) => 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: this) => number, thisArg?: any): Uint8ClampedArray<ArrayBuffer>;\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: this) => number): number;\n reduce(callbackfn: (previousValue: number, currentValue: number, currentIndex: number, array: this) => 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: this) => 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: this) => number): number;\n reduceRight(callbackfn: (previousValue: number, currentValue: number, currentIndex: number, array: this) => 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: this) => U, initialValue: U): U;\n\n /**\n * Reverses the elements in an Array.\n */\n reverse(): this;\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. This is exclusive of the element at the index \'end\'.\n */\n slice(start?: number, end?: number): Uint8ClampedArray<ArrayBuffer>;\n\n /**\n * Determines whether the specified callback function returns true for any element of an array.\n * @param predicate A function that accepts up to three arguments. The some method calls\n * the predicate function for each element in the array until the predicate returns a value\n * which is coercible to the Boolean value true, or until the end of the array.\n * @param thisArg An object to which the this keyword can refer in the predicate function.\n * If thisArg is omitted, undefined is used as the this value.\n */\n some(predicate: (value: number, index: number, array: this) => unknown, thisArg?: any): boolean;\n\n /**\n * Sorts an array.\n * @param compareFn Function used to determine the order of the elements. It is expected to return\n * a negative value if first argument is less than second argument, zero if they\'re equal and a positive\n * value otherwise. If omitted, the elements are sorted in ascending order.\n * ```ts\n * [11,2,22,1].sort((a, b) => a - b)\n * ```\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<TArrayBuffer>;\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 /** Returns the primitive value of the specified object. */\n valueOf(): this;\n\n [index: number]: number;\n}\ninterface Uint8ClampedArrayConstructor {\n readonly prototype: Uint8ClampedArray<ArrayBufferLike>;\n new (length: number): Uint8ClampedArray<ArrayBuffer>;\n new (array: ArrayLike<number>): Uint8ClampedArray<ArrayBuffer>;\n new <TArrayBuffer extends ArrayBufferLike = ArrayBuffer>(buffer: TArrayBuffer, byteOffset?: number, length?: number): Uint8ClampedArray<TArrayBuffer>;\n new (buffer: ArrayBuffer, byteOffset?: number, length?: number): Uint8ClampedArray<ArrayBuffer>;\n new (array: ArrayLike<number> | ArrayBuffer): Uint8ClampedArray<ArrayBuffer>;\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<ArrayBuffer>;\n\n /**\n * Creates an array from an array-like or iterable object.\n * @param arrayLike An array-like object to convert to an array.\n */\n from(arrayLike: ArrayLike<number>): Uint8ClampedArray<ArrayBuffer>;\n\n /**\n * Creates an array from an array-like or 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>(arrayLike: ArrayLike<T>, mapfn: (v: T, k: number) => number, thisArg?: any): Uint8ClampedArray<ArrayBuffer>;\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<TArrayBuffer extends ArrayBufferLike = ArrayBufferLike> {\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: TArrayBuffer;\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 predicate A function that accepts up to three arguments. The every method calls\n * the predicate function for each element in the array until the predicate returns a value\n * which is coercible to the Boolean value false, or until the end of the array.\n * @param thisArg An object to which the this keyword can refer in the predicate function.\n * If thisArg is omitted, undefined is used as the this value.\n */\n every(predicate: (value: number, index: number, array: this) => unknown, thisArg?: any): boolean;\n\n /**\n * Changes all array elements from `start` to `end` index to a static `value` and returns the modified array\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 predicate A function that accepts up to three arguments. The filter method calls\n * the predicate function one time for each element in the array.\n * @param thisArg An object to which the this keyword can refer in the predicate function.\n * If thisArg is omitted, undefined is used as the this value.\n */\n filter(predicate: (value: number, index: number, array: this) => any, thisArg?: any): Int16Array<ArrayBuffer>;\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: this) => 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: this) => 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: this) => 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: this) => number, thisArg?: any): Int16Array<ArrayBuffer>;\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: this) => number): number;\n reduce(callbackfn: (previousValue: number, currentValue: number, currentIndex: number, array: this) => 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: this) => 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: this) => number): number;\n reduceRight(callbackfn: (previousValue: number, currentValue: number, currentIndex: number, array: this) => 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: this) => U, initialValue: U): U;\n\n /**\n * Reverses the elements in an Array.\n */\n reverse(): this;\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. This is exclusive of the element at the index \'end\'.\n */\n slice(start?: number, end?: number): Int16Array<ArrayBuffer>;\n\n /**\n * Determines whether the specified callback function returns true for any element of an array.\n * @param predicate A function that accepts up to three arguments. The some method calls\n * the predicate function for each element in the array until the predicate returns a value\n * which is coercible to the Boolean value true, or until the end of the array.\n * @param thisArg An object to which the this keyword can refer in the predicate function.\n * If thisArg is omitted, undefined is used as the this value.\n */\n some(predicate: (value: number, index: number, array: this) => unknown, thisArg?: any): boolean;\n\n /**\n * Sorts an array.\n * @param compareFn Function used to determine the order of the elements. It is expected to return\n * a negative value if first argument is less than second argument, zero if they\'re equal and a positive\n * value otherwise. If omitted, the elements are sorted in ascending order.\n * ```ts\n * [11,2,22,1].sort((a, b) => a - b)\n * ```\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<TArrayBuffer>;\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 /** Returns the primitive value of the specified object. */\n valueOf(): this;\n\n [index: number]: number;\n}\ninterface Int16ArrayConstructor {\n readonly prototype: Int16Array<ArrayBufferLike>;\n new (length: number): Int16Array<ArrayBuffer>;\n new (array: ArrayLike<number>): Int16Array<ArrayBuffer>;\n new <TArrayBuffer extends ArrayBufferLike = ArrayBuffer>(buffer: TArrayBuffer, byteOffset?: number, length?: number): Int16Array<TArrayBuffer>;\n new (buffer: ArrayBuffer, byteOffset?: number, length?: number): Int16Array<ArrayBuffer>;\n new (array: ArrayLike<number> | ArrayBuffer): Int16Array<ArrayBuffer>;\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<ArrayBuffer>;\n\n /**\n * Creates an array from an array-like or iterable object.\n * @param arrayLike An array-like object to convert to an array.\n */\n from(arrayLike: ArrayLike<number>): Int16Array<ArrayBuffer>;\n\n /**\n * Creates an array from an array-like or 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>(arrayLike: ArrayLike<T>, mapfn: (v: T, k: number) => number, thisArg?: any): Int16Array<ArrayBuffer>;\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<TArrayBuffer extends ArrayBufferLike = ArrayBufferLike> {\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: TArrayBuffer;\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 predicate A function that accepts up to three arguments. The every method calls\n * the predicate function for each element in the array until the predicate returns a value\n * which is coercible to the Boolean value false, or until the end of the array.\n * @param thisArg An object to which the this keyword can refer in the predicate function.\n * If thisArg is omitted, undefined is used as the this value.\n */\n every(predicate: (value: number, index: number, array: this) => unknown, thisArg?: any): boolean;\n\n /**\n * Changes all array elements from `start` to `end` index to a static `value` and returns the modified array\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 predicate A function that accepts up to three arguments. The filter method calls\n * the predicate function one time for each element in the array.\n * @param thisArg An object to which the this keyword can refer in the predicate function.\n * If thisArg is omitted, undefined is used as the this value.\n */\n filter(predicate: (value: number, index: number, array: this) => any, thisArg?: any): Uint16Array<ArrayBuffer>;\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: this) => 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: this) => 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: this) => 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: this) => number, thisArg?: any): Uint16Array<ArrayBuffer>;\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: this) => number): number;\n reduce(callbackfn: (previousValue: number, currentValue: number, currentIndex: number, array: this) => 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: this) => 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: this) => number): number;\n reduceRight(callbackfn: (previousValue: number, currentValue: number, currentIndex: number, array: this) => 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: this) => U, initialValue: U): U;\n\n /**\n * Reverses the elements in an Array.\n */\n reverse(): this;\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. This is exclusive of the element at the index \'end\'.\n */\n slice(start?: number, end?: number): Uint16Array<ArrayBuffer>;\n\n /**\n * Determines whether the specified callback function returns true for any element of an array.\n * @param predicate A function that accepts up to three arguments. The some method calls\n * the predicate function for each element in the array until the predicate returns a value\n * which is coercible to the Boolean value true, or until the end of the array.\n * @param thisArg An object to which the this keyword can refer in the predicate function.\n * If thisArg is omitted, undefined is used as the this value.\n */\n some(predicate: (value: number, index: number, array: this) => unknown, thisArg?: any): boolean;\n\n /**\n * Sorts an array.\n * @param compareFn Function used to determine the order of the elements. It is expected to return\n * a negative value if first argument is less than second argument, zero if they\'re equal and a positive\n * value otherwise. If omitted, the elements are sorted in ascending order.\n * ```ts\n * [11,2,22,1].sort((a, b) => a - b)\n * ```\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<TArrayBuffer>;\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 /** Returns the primitive value of the specified object. */\n valueOf(): this;\n\n [index: number]: number;\n}\ninterface Uint16ArrayConstructor {\n readonly prototype: Uint16Array<ArrayBufferLike>;\n new (length: number): Uint16Array<ArrayBuffer>;\n new (array: ArrayLike<number>): Uint16Array<ArrayBuffer>;\n new <TArrayBuffer extends ArrayBufferLike = ArrayBuffer>(buffer: TArrayBuffer, byteOffset?: number, length?: number): Uint16Array<TArrayBuffer>;\n new (buffer: ArrayBuffer, byteOffset?: number, length?: number): Uint16Array<ArrayBuffer>;\n new (array: ArrayLike<number> | ArrayBuffer): Uint16Array<ArrayBuffer>;\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<ArrayBuffer>;\n\n /**\n * Creates an array from an array-like or iterable object.\n * @param arrayLike An array-like object to convert to an array.\n */\n from(arrayLike: ArrayLike<number>): Uint16Array<ArrayBuffer>;\n\n /**\n * Creates an array from an array-like or 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>(arrayLike: ArrayLike<T>, mapfn: (v: T, k: number) => number, thisArg?: any): Uint16Array<ArrayBuffer>;\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<TArrayBuffer extends ArrayBufferLike = ArrayBufferLike> {\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: TArrayBuffer;\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 predicate A function that accepts up to three arguments. The every method calls\n * the predicate function for each element in the array until the predicate returns a value\n * which is coercible to the Boolean value false, or until the end of the array.\n * @param thisArg An object to which the this keyword can refer in the predicate function.\n * If thisArg is omitted, undefined is used as the this value.\n */\n every(predicate: (value: number, index: number, array: this) => unknown, thisArg?: any): boolean;\n\n /**\n * Changes all array elements from `start` to `end` index to a static `value` and returns the modified array\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 predicate A function that accepts up to three arguments. The filter method calls\n * the predicate function one time for each element in the array.\n * @param thisArg An object to which the this keyword can refer in the predicate function.\n * If thisArg is omitted, undefined is used as the this value.\n */\n filter(predicate: (value: number, index: number, array: this) => any, thisArg?: any): Int32Array<ArrayBuffer>;\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: this) => 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: this) => 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: this) => 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: this) => number, thisArg?: any): Int32Array<ArrayBuffer>;\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: this) => number): number;\n reduce(callbackfn: (previousValue: number, currentValue: number, currentIndex: number, array: this) => 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: this) => 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: this) => number): number;\n reduceRight(callbackfn: (previousValue: number, currentValue: number, currentIndex: number, array: this) => 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: this) => U, initialValue: U): U;\n\n /**\n * Reverses the elements in an Array.\n */\n reverse(): this;\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. This is exclusive of the element at the index \'end\'.\n */\n slice(start?: number, end?: number): Int32Array<ArrayBuffer>;\n\n /**\n * Determines whether the specified callback function returns true for any element of an array.\n * @param predicate A function that accepts up to three arguments. The some method calls\n * the predicate function for each element in the array until the predicate returns a value\n * which is coercible to the Boolean value true, or until the end of the array.\n * @param thisArg An object to which the this keyword can refer in the predicate function.\n * If thisArg is omitted, undefined is used as the this value.\n */\n some(predicate: (value: number, index: number, array: this) => unknown, thisArg?: any): boolean;\n\n /**\n * Sorts an array.\n * @param compareFn Function used to determine the order of the elements. It is expected to return\n * a negative value if first argument is less than second argument, zero if they\'re equal and a positive\n * value otherwise. If omitted, the elements are sorted in ascending order.\n * ```ts\n * [11,2,22,1].sort((a, b) => a - b)\n * ```\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<TArrayBuffer>;\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 /** Returns the primitive value of the specified object. */\n valueOf(): this;\n\n [index: number]: number;\n}\ninterface Int32ArrayConstructor {\n readonly prototype: Int32Array<ArrayBufferLike>;\n new (length: number): Int32Array<ArrayBuffer>;\n new (array: ArrayLike<number>): Int32Array<ArrayBuffer>;\n new <TArrayBuffer extends ArrayBufferLike = ArrayBuffer>(buffer: TArrayBuffer, byteOffset?: number, length?: number): Int32Array<TArrayBuffer>;\n new (buffer: ArrayBuffer, byteOffset?: number, length?: number): Int32Array<ArrayBuffer>;\n new (array: ArrayLike<number> | ArrayBuffer): Int32Array<ArrayBuffer>;\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<ArrayBuffer>;\n\n /**\n * Creates an array from an array-like or iterable object.\n * @param arrayLike An array-like object to convert to an array.\n */\n from(arrayLike: ArrayLike<number>): Int32Array<ArrayBuffer>;\n\n /**\n * Creates an array from an array-like or 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>(arrayLike: ArrayLike<T>, mapfn: (v: T, k: number) => number, thisArg?: any): Int32Array<ArrayBuffer>;\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<TArrayBuffer extends ArrayBufferLike = ArrayBufferLike> {\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: TArrayBuffer;\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 predicate A function that accepts up to three arguments. The every method calls\n * the predicate function for each element in the array until the predicate returns a value\n * which is coercible to the Boolean value false, or until the end of the array.\n * @param thisArg An object to which the this keyword can refer in the predicate function.\n * If thisArg is omitted, undefined is used as the this value.\n */\n every(predicate: (value: number, index: number, array: this) => unknown, thisArg?: any): boolean;\n\n /**\n * Changes all array elements from `start` to `end` index to a static `value` and returns the modified array\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 predicate A function that accepts up to three arguments. The filter method calls\n * the predicate function one time for each element in the array.\n * @param thisArg An object to which the this keyword can refer in the predicate function.\n * If thisArg is omitted, undefined is used as the this value.\n */\n filter(predicate: (value: number, index: number, array: this) => any, thisArg?: any): Uint32Array<ArrayBuffer>;\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: this) => 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: this) => 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: this) => 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: this) => number, thisArg?: any): Uint32Array<ArrayBuffer>;\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: this) => number): number;\n reduce(callbackfn: (previousValue: number, currentValue: number, currentIndex: number, array: this) => 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: this) => 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: this) => number): number;\n reduceRight(callbackfn: (previousValue: number, currentValue: number, currentIndex: number, array: this) => 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: this) => U, initialValue: U): U;\n\n /**\n * Reverses the elements in an Array.\n */\n reverse(): this;\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. This is exclusive of the element at the index \'end\'.\n */\n slice(start?: number, end?: number): Uint32Array<ArrayBuffer>;\n\n /**\n * Determines whether the specified callback function returns true for any element of an array.\n * @param predicate A function that accepts up to three arguments. The some method calls\n * the predicate function for each element in the array until the predicate returns a value\n * which is coercible to the Boolean value true, or until the end of the array.\n * @param thisArg An object to which the this keyword can refer in the predicate function.\n * If thisArg is omitted, undefined is used as the this value.\n */\n some(predicate: (value: number, index: number, array: this) => unknown, thisArg?: any): boolean;\n\n /**\n * Sorts an array.\n * @param compareFn Function used to determine the order of the elements. It is expected to return\n * a negative value if first argument is less than second argument, zero if they\'re equal and a positive\n * value otherwise. If omitted, the elements are sorted in ascending order.\n * ```ts\n * [11,2,22,1].sort((a, b) => a - b)\n * ```\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<TArrayBuffer>;\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 /** Returns the primitive value of the specified object. */\n valueOf(): this;\n\n [index: number]: number;\n}\ninterface Uint32ArrayConstructor {\n readonly prototype: Uint32Array<ArrayBufferLike>;\n new (length: number): Uint32Array<ArrayBuffer>;\n new (array: ArrayLike<number>): Uint32Array<ArrayBuffer>;\n new <TArrayBuffer extends ArrayBufferLike = ArrayBuffer>(buffer: TArrayBuffer, byteOffset?: number, length?: number): Uint32Array<TArrayBuffer>;\n new (buffer: ArrayBuffer, byteOffset?: number, length?: number): Uint32Array<ArrayBuffer>;\n new (array: ArrayLike<number> | ArrayBuffer): Uint32Array<ArrayBuffer>;\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<ArrayBuffer>;\n\n /**\n * Creates an array from an array-like or iterable object.\n * @param arrayLike An array-like object to convert to an array.\n */\n from(arrayLike: ArrayLike<number>): Uint32Array<ArrayBuffer>;\n\n /**\n * Creates an array from an array-like or 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>(arrayLike: ArrayLike<T>, mapfn: (v: T, k: number) => number, thisArg?: any): Uint32Array<ArrayBuffer>;\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<TArrayBuffer extends ArrayBufferLike = ArrayBufferLike> {\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: TArrayBuffer;\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 predicate A function that accepts up to three arguments. The every method calls\n * the predicate function for each element in the array until the predicate returns a value\n * which is coercible to the Boolean value false, or until the end of the array.\n * @param thisArg An object to which the this keyword can refer in the predicate function.\n * If thisArg is omitted, undefined is used as the this value.\n */\n every(predicate: (value: number, index: number, array: this) => unknown, thisArg?: any): boolean;\n\n /**\n * Changes all array elements from `start` to `end` index to a static `value` and returns the modified array\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 predicate A function that accepts up to three arguments. The filter method calls\n * the predicate function one time for each element in the array.\n * @param thisArg An object to which the this keyword can refer in the predicate function.\n * If thisArg is omitted, undefined is used as the this value.\n */\n filter(predicate: (value: number, index: number, array: this) => any, thisArg?: any): Float32Array<ArrayBuffer>;\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: this) => 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: this) => 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: this) => 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: this) => number, thisArg?: any): Float32Array<ArrayBuffer>;\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: this) => number): number;\n reduce(callbackfn: (previousValue: number, currentValue: number, currentIndex: number, array: this) => 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: this) => 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: this) => number): number;\n reduceRight(callbackfn: (previousValue: number, currentValue: number, currentIndex: number, array: this) => 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: this) => U, initialValue: U): U;\n\n /**\n * Reverses the elements in an Array.\n */\n reverse(): this;\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. This is exclusive of the element at the index \'end\'.\n */\n slice(start?: number, end?: number): Float32Array<ArrayBuffer>;\n\n /**\n * Determines whether the specified callback function returns true for any element of an array.\n * @param predicate A function that accepts up to three arguments. The some method calls\n * the predicate function for each element in the array until the predicate returns a value\n * which is coercible to the Boolean value true, or until the end of the array.\n * @param thisArg An object to which the this keyword can refer in the predicate function.\n * If thisArg is omitted, undefined is used as the this value.\n */\n some(predicate: (value: number, index: number, array: this) => unknown, thisArg?: any): boolean;\n\n /**\n * Sorts an array.\n * @param compareFn Function used to determine the order of the elements. It is expected to return\n * a negative value if first argument is less than second argument, zero if they\'re equal and a positive\n * value otherwise. If omitted, the elements are sorted in ascending order.\n * ```ts\n * [11,2,22,1].sort((a, b) => a - b)\n * ```\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<TArrayBuffer>;\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 /** Returns the primitive value of the specified object. */\n valueOf(): this;\n\n [index: number]: number;\n}\ninterface Float32ArrayConstructor {\n readonly prototype: Float32Array<ArrayBufferLike>;\n new (length: number): Float32Array<ArrayBuffer>;\n new (array: ArrayLike<number>): Float32Array<ArrayBuffer>;\n new <TArrayBuffer extends ArrayBufferLike = ArrayBuffer>(buffer: TArrayBuffer, byteOffset?: number, length?: number): Float32Array<TArrayBuffer>;\n new (buffer: ArrayBuffer, byteOffset?: number, length?: number): Float32Array<ArrayBuffer>;\n new (array: ArrayLike<number> | ArrayBuffer): Float32Array<ArrayBuffer>;\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<ArrayBuffer>;\n\n /**\n * Creates an array from an array-like or iterable object.\n * @param arrayLike An array-like object to convert to an array.\n */\n from(arrayLike: ArrayLike<number>): Float32Array<ArrayBuffer>;\n\n /**\n * Creates an array from an array-like or 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>(arrayLike: ArrayLike<T>, mapfn: (v: T, k: number) => number, thisArg?: any): Float32Array<ArrayBuffer>;\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<TArrayBuffer extends ArrayBufferLike = ArrayBufferLike> {\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: TArrayBuffer;\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 predicate A function that accepts up to three arguments. The every method calls\n * the predicate function for each element in the array until the predicate returns a value\n * which is coercible to the Boolean value false, or until the end of the array.\n * @param thisArg An object to which the this keyword can refer in the predicate function.\n * If thisArg is omitted, undefined is used as the this value.\n */\n every(predicate: (value: number, index: number, array: this) => unknown, thisArg?: any): boolean;\n\n /**\n * Changes all array elements from `start` to `end` index to a static `value` and returns the modified array\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 predicate A function that accepts up to three arguments. The filter method calls\n * the predicate function one time for each element in the array.\n * @param thisArg An object to which the this keyword can refer in the predicate function.\n * If thisArg is omitted, undefined is used as the this value.\n */\n filter(predicate: (value: number, index: number, array: this) => any, thisArg?: any): Float64Array<ArrayBuffer>;\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: this) => 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: this) => 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: this) => 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: this) => number, thisArg?: any): Float64Array<ArrayBuffer>;\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: this) => number): number;\n reduce(callbackfn: (previousValue: number, currentValue: number, currentIndex: number, array: this) => 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: this) => 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: this) => number): number;\n reduceRight(callbackfn: (previousValue: number, currentValue: number, currentIndex: number, array: this) => 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: this) => U, initialValue: U): U;\n\n /**\n * Reverses the elements in an Array.\n */\n reverse(): this;\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. This is exclusive of the element at the index \'end\'.\n */\n slice(start?: number, end?: number): Float64Array<ArrayBuffer>;\n\n /**\n * Determines whether the specified callback function returns true for any element of an array.\n * @param predicate A function that accepts up to three arguments. The some method calls\n * the predicate function for each element in the array until the predicate returns a value\n * which is coercible to the Boolean value true, or until the end of the array.\n * @param thisArg An object to which the this keyword can refer in the predicate function.\n * If thisArg is omitted, undefined is used as the this value.\n */\n some(predicate: (value: number, index: number, array: this) => unknown, thisArg?: any): boolean;\n\n /**\n * Sorts an array.\n * @param compareFn Function used to determine the order of the elements. It is expected to return\n * a negative value if first argument is less than second argument, zero if they\'re equal and a positive\n * value otherwise. If omitted, the elements are sorted in ascending order.\n * ```ts\n * [11,2,22,1].sort((a, b) => a - b)\n * ```\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<TArrayBuffer>;\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 /** Returns the primitive value of the specified object. */\n valueOf(): this;\n\n [index: number]: number;\n}\ninterface Float64ArrayConstructor {\n readonly prototype: Float64Array<ArrayBufferLike>;\n new (length: number): Float64Array<ArrayBuffer>;\n new (array: ArrayLike<number>): Float64Array<ArrayBuffer>;\n new <TArrayBuffer extends ArrayBufferLike = ArrayBuffer>(buffer: TArrayBuffer, byteOffset?: number, length?: number): Float64Array<TArrayBuffer>;\n new (buffer: ArrayBuffer, byteOffset?: number, length?: number): Float64Array<ArrayBuffer>;\n new (array: ArrayLike<number> | ArrayBuffer): Float64Array<ArrayBuffer>;\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<ArrayBuffer>;\n\n /**\n * Creates an array from an array-like or iterable object.\n * @param arrayLike An array-like object to convert to an array.\n */\n from(arrayLike: ArrayLike<number>): Float64Array<ArrayBuffer>;\n\n /**\n * Creates an array from an array-like or 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>(arrayLike: ArrayLike<T>, mapfn: (v: T, k: number) => number, thisArg?: any): Float64Array<ArrayBuffer>;\n}\ndeclare var Float64Array: Float64ArrayConstructor;\n\n/////////////////////////////\n/// ECMAScript Internationalization API\n/////////////////////////////\n\ndeclare namespace Intl {\n interface CollatorOptions {\n usage?: "sort" | "search" | undefined;\n localeMatcher?: "lookup" | "best fit" | undefined;\n numeric?: boolean | undefined;\n caseFirst?: "upper" | "lower" | "false" | undefined;\n sensitivity?: "base" | "accent" | "case" | "variant" | undefined;\n collation?: "big5han" | "compat" | "dict" | "direct" | "ducet" | "emoji" | "eor" | "gb2312" | "phonebk" | "phonetic" | "pinyin" | "reformed" | "searchjl" | "stroke" | "trad" | "unihan" | "zhuyin" | undefined;\n ignorePunctuation?: boolean | undefined;\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\n interface CollatorConstructor {\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 var Collator: CollatorConstructor;\n\n interface NumberFormatOptionsStyleRegistry {\n decimal: never;\n percent: never;\n currency: never;\n }\n\n type NumberFormatOptionsStyle = keyof NumberFormatOptionsStyleRegistry;\n\n interface NumberFormatOptionsCurrencyDisplayRegistry {\n code: never;\n symbol: never;\n name: never;\n }\n\n type NumberFormatOptionsCurrencyDisplay = keyof NumberFormatOptionsCurrencyDisplayRegistry;\n\n interface NumberFormatOptionsUseGroupingRegistry {}\n\n type NumberFormatOptionsUseGrouping = {} extends NumberFormatOptionsUseGroupingRegistry ? boolean : keyof NumberFormatOptionsUseGroupingRegistry | "true" | "false" | boolean;\n type ResolvedNumberFormatOptionsUseGrouping = {} extends NumberFormatOptionsUseGroupingRegistry ? boolean : keyof NumberFormatOptionsUseGroupingRegistry | false;\n\n interface NumberFormatOptions {\n localeMatcher?: "lookup" | "best fit" | undefined;\n style?: NumberFormatOptionsStyle | undefined;\n currency?: string | undefined;\n currencyDisplay?: NumberFormatOptionsCurrencyDisplay | undefined;\n useGrouping?: NumberFormatOptionsUseGrouping | undefined;\n minimumIntegerDigits?: number | undefined;\n minimumFractionDigits?: number | undefined;\n maximumFractionDigits?: number | undefined;\n minimumSignificantDigits?: number | undefined;\n maximumSignificantDigits?: number | undefined;\n }\n\n interface ResolvedNumberFormatOptions {\n locale: string;\n numberingSystem: string;\n style: NumberFormatOptionsStyle;\n currency?: string;\n currencyDisplay?: NumberFormatOptionsCurrencyDisplay;\n minimumIntegerDigits: number;\n minimumFractionDigits?: number;\n maximumFractionDigits?: number;\n minimumSignificantDigits?: number;\n maximumSignificantDigits?: number;\n useGrouping: ResolvedNumberFormatOptionsUseGrouping;\n }\n\n interface NumberFormat {\n format(value: number): string;\n resolvedOptions(): ResolvedNumberFormatOptions;\n }\n\n interface NumberFormatConstructor {\n new (locales?: string | string[], options?: NumberFormatOptions): NumberFormat;\n (locales?: string | string[], options?: NumberFormatOptions): NumberFormat;\n supportedLocalesOf(locales: string | string[], options?: NumberFormatOptions): string[];\n readonly prototype: NumberFormat;\n }\n\n var NumberFormat: NumberFormatConstructor;\n\n interface DateTimeFormatOptions {\n localeMatcher?: "best fit" | "lookup" | undefined;\n weekday?: "long" | "short" | "narrow" | undefined;\n era?: "long" | "short" | "narrow" | undefined;\n year?: "numeric" | "2-digit" | undefined;\n month?: "numeric" | "2-digit" | "long" | "short" | "narrow" | undefined;\n day?: "numeric" | "2-digit" | undefined;\n hour?: "numeric" | "2-digit" | undefined;\n minute?: "numeric" | "2-digit" | undefined;\n second?: "numeric" | "2-digit" | undefined;\n timeZoneName?: "short" | "long" | "shortOffset" | "longOffset" | "shortGeneric" | "longGeneric" | undefined;\n formatMatcher?: "best fit" | "basic" | undefined;\n hour12?: boolean | undefined;\n timeZone?: string | undefined;\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\n interface DateTimeFormatConstructor {\n new (locales?: string | string[], options?: DateTimeFormatOptions): DateTimeFormat;\n (locales?: string | string[], options?: DateTimeFormatOptions): DateTimeFormat;\n supportedLocalesOf(locales: string | string[], options?: DateTimeFormatOptions): string[];\n readonly prototype: DateTimeFormat;\n }\n\n var DateTimeFormat: DateTimeFormatConstructor;\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',gi["lib.es6.d.ts"]='/*! *****************************************************************************\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/// <reference no-default-lib="true"/>\n\n/// <reference lib="es2015" />\n/// <reference lib="dom" />\n/// <reference lib="dom.iterable" />\n/// <reference lib="webworker.importscripts" />\n/// <reference lib="scripthost" />\n',gi["lib.esnext.array.d.ts"]='/*! *****************************************************************************\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/// <reference no-default-lib="true"/>\n\ninterface ArrayConstructor {\n /**\n * Creates an array from an async iterator or iterable object.\n * @param iterableOrArrayLike An async iterator or array-like object to convert to an array.\n */\n fromAsync<T>(iterableOrArrayLike: AsyncIterable<T> | Iterable<T | PromiseLike<T>> | ArrayLike<T | PromiseLike<T>>): Promise<T[]>;\n\n /**\n * Creates an array from an async iterator or iterable object.\n *\n * @param iterableOrArrayLike An async iterator or array-like object to convert to an array.\n * @param mapfn A mapping function to call on every element of itarableOrArrayLike.\n * Each return value is awaited before being added to result array.\n * @param thisArg Value of \'this\' used when executing mapfn.\n */\n fromAsync<T, U>(iterableOrArrayLike: AsyncIterable<T> | Iterable<T> | ArrayLike<T>, mapFn: (value: Awaited<T>, index: number) => U, thisArg?: any): Promise<Awaited<U>[]>;\n}\n',gi["lib.esnext.collection.d.ts"]='/*! *****************************************************************************\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/// <reference no-default-lib="true"/>\n\n/// <reference lib="es2024.collection" />\n\ninterface ReadonlySetLike<T> {\n /**\n * Despite its name, returns an iterator of the values in the set-like.\n */\n keys(): Iterator<T>;\n /**\n * @returns a boolean indicating whether an element with the specified value exists in the set-like or not.\n */\n has(value: T): boolean;\n /**\n * @returns the number of (unique) elements in the set-like.\n */\n readonly size: number;\n}\n\ninterface Set<T> {\n /**\n * @returns a new Set containing all the elements in this Set and also all the elements in the argument.\n */\n union<U>(other: ReadonlySetLike<U>): Set<T | U>;\n /**\n * @returns a new Set containing all the elements which are both in this Set and in the argument.\n */\n intersection<U>(other: ReadonlySetLike<U>): Set<T & U>;\n /**\n * @returns a new Set containing all the elements in this Set which are not also in the argument.\n */\n difference<U>(other: ReadonlySetLike<U>): Set<T>;\n /**\n * @returns a new Set containing all the elements which are in either this Set or in the argument, but not in both.\n */\n symmetricDifference<U>(other: ReadonlySetLike<U>): Set<T | U>;\n /**\n * @returns a boolean indicating whether all the elements in this Set are also in the argument.\n */\n isSubsetOf(other: ReadonlySetLike<unknown>): boolean;\n /**\n * @returns a boolean indicating whether all the elements in the argument are also in this Set.\n */\n isSupersetOf(other: ReadonlySetLike<unknown>): boolean;\n /**\n * @returns a boolean indicating whether this Set has no elements in common with the argument.\n */\n isDisjointFrom(other: ReadonlySetLike<unknown>): boolean;\n}\n\ninterface ReadonlySet<T> {\n /**\n * @returns a new Set containing all the elements in this Set and also all the elements in the argument.\n */\n union<U>(other: ReadonlySetLike<U>): Set<T | U>;\n /**\n * @returns a new Set containing all the elements which are both in this Set and in the argument.\n */\n intersection<U>(other: ReadonlySetLike<U>): Set<T & U>;\n /**\n * @returns a new Set containing all the elements in this Set which are not also in the argument.\n */\n difference<U>(other: ReadonlySetLike<U>): Set<T>;\n /**\n * @returns a new Set containing all the elements which are in either this Set or in the argument, but not in both.\n */\n symmetricDifference<U>(other: ReadonlySetLike<U>): Set<T | U>;\n /**\n * @returns a boolean indicating whether all the elements in this Set are also in the argument.\n */\n isSubsetOf(other: ReadonlySetLike<unknown>): boolean;\n /**\n * @returns a boolean indicating whether all the elements in the argument are also in this Set.\n */\n isSupersetOf(other: ReadonlySetLike<unknown>): boolean;\n /**\n * @returns a boolean indicating whether this Set has no elements in common with the argument.\n */\n isDisjointFrom(other: ReadonlySetLike<unknown>): boolean;\n}\n',gi["lib.esnext.d.ts"]='/*! *****************************************************************************\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/// <reference no-default-lib="true"/>\n\n/// <reference lib="es2024" />\n/// <reference lib="esnext.intl" />\n/// <reference lib="esnext.decorators" />\n/// <reference lib="esnext.disposable" />\n/// <reference lib="esnext.collection" />\n/// <reference lib="esnext.array" />\n/// <reference lib="esnext.iterator" />\n/// <reference lib="esnext.promise" />\n/// <reference lib="esnext.float16" />\n/// <reference lib="esnext.error" />\n/// <reference lib="esnext.sharedmemory" />\n',gi["lib.esnext.decorators.d.ts"]='/*! *****************************************************************************\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/// <reference no-default-lib="true"/>\n\n/// <reference lib="es2015.symbol" />\n/// <reference lib="decorators" />\n\ninterface SymbolConstructor {\n readonly metadata: unique symbol;\n}\n\ninterface Function {\n [Symbol.metadata]: DecoratorMetadata | null;\n}\n',gi["lib.esnext.disposable.d.ts"]='/*! *****************************************************************************\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/// <reference no-default-lib="true"/>\n\n/// <reference lib="es2015.symbol" />\n/// <reference lib="es2015.iterable" />\n/// <reference lib="es2018.asynciterable" />\n\ninterface SymbolConstructor {\n /**\n * A method that is used to release resources held by an object. Called by the semantics of the `using` statement.\n */\n readonly dispose: unique symbol;\n\n /**\n * A method that is used to asynchronously release resources held by an object. Called by the semantics of the `await using` statement.\n */\n readonly asyncDispose: unique symbol;\n}\n\ninterface Disposable {\n [Symbol.dispose](): void;\n}\n\ninterface AsyncDisposable {\n [Symbol.asyncDispose](): PromiseLike<void>;\n}\n\ninterface SuppressedError extends Error {\n error: any;\n suppressed: any;\n}\n\ninterface SuppressedErrorConstructor {\n new (error: any, suppressed: any, message?: string): SuppressedError;\n (error: any, suppressed: any, message?: string): SuppressedError;\n readonly prototype: SuppressedError;\n}\ndeclare var SuppressedError: SuppressedErrorConstructor;\n\ninterface DisposableStack {\n /**\n * Returns a value indicating whether this stack has been disposed.\n */\n readonly disposed: boolean;\n /**\n * Disposes each resource in the stack in the reverse order that they were added.\n */\n dispose(): void;\n /**\n * Adds a disposable resource to the stack, returning the resource.\n * @param value The resource to add. `null` and `undefined` will not be added, but will be returned.\n * @returns The provided {@link value}.\n */\n use<T extends Disposable | null | undefined>(value: T): T;\n /**\n * Adds a value and associated disposal callback as a resource to the stack.\n * @param value The value to add.\n * @param onDispose The callback to use in place of a `[Symbol.dispose]()` method. Will be invoked with `value`\n * as the first parameter.\n * @returns The provided {@link value}.\n */\n adopt<T>(value: T, onDispose: (value: T) => void): T;\n /**\n * Adds a callback to be invoked when the stack is disposed.\n */\n defer(onDispose: () => void): void;\n /**\n * Move all resources out of this stack and into a new `DisposableStack`, and marks this stack as disposed.\n * @example\n * ```ts\n * class C {\n * #res1: Disposable;\n * #res2: Disposable;\n * #disposables: DisposableStack;\n * constructor() {\n * // stack will be disposed when exiting constructor for any reason\n * using stack = new DisposableStack();\n *\n * // get first resource\n * this.#res1 = stack.use(getResource1());\n *\n * // get second resource. If this fails, both `stack` and `#res1` will be disposed.\n * this.#res2 = stack.use(getResource2());\n *\n * // all operations succeeded, move resources out of `stack` so that they aren\'t disposed\n * // when constructor exits\n * this.#disposables = stack.move();\n * }\n *\n * [Symbol.dispose]() {\n * this.#disposables.dispose();\n * }\n * }\n * ```\n */\n move(): DisposableStack;\n [Symbol.dispose](): void;\n readonly [Symbol.toStringTag]: string;\n}\n\ninterface DisposableStackConstructor {\n new (): DisposableStack;\n readonly prototype: DisposableStack;\n}\ndeclare var DisposableStack: DisposableStackConstructor;\n\ninterface AsyncDisposableStack {\n /**\n * Returns a value indicating whether this stack has been disposed.\n */\n readonly disposed: boolean;\n /**\n * Disposes each resource in the stack in the reverse order that they were added.\n */\n disposeAsync(): Promise<void>;\n /**\n * Adds a disposable resource to the stack, returning the resource.\n * @param value The resource to add. `null` and `undefined` will not be added, but will be returned.\n * @returns The provided {@link value}.\n */\n use<T extends AsyncDisposable | Disposable | null | undefined>(value: T): T;\n /**\n * Adds a value and associated disposal callback as a resource to the stack.\n * @param value The value to add.\n * @param onDisposeAsync The callback to use in place of a `[Symbol.asyncDispose]()` method. Will be invoked with `value`\n * as the first parameter.\n * @returns The provided {@link value}.\n */\n adopt<T>(value: T, onDisposeAsync: (value: T) => PromiseLike<void> | void): T;\n /**\n * Adds a callback to be invoked when the stack is disposed.\n */\n defer(onDisposeAsync: () => PromiseLike<void> | void): void;\n /**\n * Move all resources out of this stack and into a new `DisposableStack`, and marks this stack as disposed.\n * @example\n * ```ts\n * class C {\n * #res1: Disposable;\n * #res2: Disposable;\n * #disposables: DisposableStack;\n * constructor() {\n * // stack will be disposed when exiting constructor for any reason\n * using stack = new DisposableStack();\n *\n * // get first resource\n * this.#res1 = stack.use(getResource1());\n *\n * // get second resource. If this fails, both `stack` and `#res1` will be disposed.\n * this.#res2 = stack.use(getResource2());\n *\n * // all operations succeeded, move resources out of `stack` so that they aren\'t disposed\n * // when constructor exits\n * this.#disposables = stack.move();\n * }\n *\n * [Symbol.dispose]() {\n * this.#disposables.dispose();\n * }\n * }\n * ```\n */\n move(): AsyncDisposableStack;\n [Symbol.asyncDispose](): Promise<void>;\n readonly [Symbol.toStringTag]: string;\n}\n\ninterface AsyncDisposableStackConstructor {\n new (): AsyncDisposableStack;\n readonly prototype: AsyncDisposableStack;\n}\ndeclare var AsyncDisposableStack: AsyncDisposableStackConstructor;\n\ninterface IteratorObject<T, TReturn, TNext> extends Disposable {\n}\n\ninterface AsyncIteratorObject<T, TReturn, TNext> extends AsyncDisposable {\n}\n',gi["lib.esnext.error.d.ts"]='/*! *****************************************************************************\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/// <reference no-default-lib="true"/>\n\ninterface ErrorConstructor {\n /**\n * Indicates whether the argument provided is a built-in Error instance or not.\n */\n isError(error: unknown): error is Error;\n}\n',gi["lib.esnext.float16.d.ts"]='/*! *****************************************************************************\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/// <reference no-default-lib="true"/>\n\n/// <reference lib="es2015.symbol" />\n/// <reference lib="es2015.iterable" />\n\n/**\n * A typed array of 16-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 Float16Array<TArrayBuffer extends ArrayBufferLike = ArrayBufferLike> {\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: TArrayBuffer;\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 item located at the specified index.\n * @param index The zero-based index of the desired code unit. A negative index will count back from the last item.\n */\n at(index: number): number | undefined;\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 predicate A function that accepts up to three arguments. The every method calls\n * the predicate function for each element in the array until the predicate returns a value\n * which is coercible to the Boolean value false, or until the end of the array.\n * @param thisArg An object to which the this keyword can refer in the predicate function.\n * If thisArg is omitted, undefined is used as the this value.\n */\n every(predicate: (value: number, index: number, array: this) => unknown, thisArg?: any): boolean;\n\n /**\n * Changes all array elements from `start` to `end` index to a static `value` and returns the modified array\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 predicate A function that accepts up to three arguments. The filter method calls\n * the predicate function one time for each element in the array.\n * @param thisArg An object to which the this keyword can refer in the predicate function.\n * If thisArg is omitted, undefined is used as the this value.\n */\n filter(predicate: (value: number, index: number, array: this) => any, thisArg?: any): Float16Array<ArrayBuffer>;\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: this) => 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: this) => boolean, thisArg?: any): number;\n\n /**\n * Returns the value of the last element in the array where predicate is true, and undefined\n * otherwise.\n * @param predicate findLast calls predicate once for each element of the array, in descending\n * order, until it finds one where predicate returns true. If such an element is found, findLast\n * immediately returns that element value. Otherwise, findLast 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 findLast<S extends number>(\n predicate: (\n value: number,\n index: number,\n array: this,\n ) => value is S,\n thisArg?: any,\n ): S | undefined;\n findLast(\n predicate: (\n value: number,\n index: number,\n array: this,\n ) => unknown,\n thisArg?: any,\n ): number | undefined;\n\n /**\n * Returns the index of the last element in the array where predicate is true, and -1\n * otherwise.\n * @param predicate findLastIndex calls predicate once for each element of the array, in descending\n * order, until it finds one where predicate returns true. If such an element is found,\n * findLastIndex immediately returns that element index. Otherwise, findLastIndex 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 findLastIndex(\n predicate: (\n value: number,\n index: number,\n array: this,\n ) => unknown,\n thisArg?: any,\n ): 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: this) => void, thisArg?: any): void;\n\n /**\n * Determines whether an array includes a certain element, returning true or false as appropriate.\n * @param searchElement The element to search for.\n * @param fromIndex The position in this array at which to begin searching for searchElement.\n */\n includes(searchElement: number, fromIndex?: number): boolean;\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: this) => number, thisArg?: any): Float16Array<ArrayBuffer>;\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: this) => number): number;\n reduce(callbackfn: (previousValue: number, currentValue: number, currentIndex: number, array: this) => 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: this) => 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: this) => number): number;\n reduceRight(callbackfn: (previousValue: number, currentValue: number, currentIndex: number, array: this) => 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: this) => U, initialValue: U): U;\n\n /**\n * Reverses the elements in an Array.\n */\n reverse(): this;\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. This is exclusive of the element at the index \'end\'.\n */\n slice(start?: number, end?: number): Float16Array<ArrayBuffer>;\n\n /**\n * Determines whether the specified callback function returns true for any element of an array.\n * @param predicate A function that accepts up to three arguments. The some method calls\n * the predicate function for each element in the array until the predicate returns a value\n * which is coercible to the Boolean value true, or until the end of the array.\n * @param thisArg An object to which the this keyword can refer in the predicate function.\n * If thisArg is omitted, undefined is used as the this value.\n */\n some(predicate: (value: number, index: number, array: this) => unknown, thisArg?: any): boolean;\n\n /**\n * Sorts an array.\n * @param compareFn Function used to determine the order of the elements. It is expected to return\n * a negative value if first argument is less than second argument, zero if they\'re equal and a positive\n * value otherwise. If omitted, the elements are sorted in ascending order.\n * ```ts\n * [11,2,22,1].sort((a, b) => a - b)\n * ```\n */\n sort(compareFn?: (a: number, b: number) => number): this;\n\n /**\n * Gets a new Float16Array 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): Float16Array<TArrayBuffer>;\n\n /**\n * Converts a number to a string by using the current locale.\n */\n toLocaleString(locales?: string | string[], options?: Intl.NumberFormatOptions): string;\n\n /**\n * Copies the array and returns the copy with the elements in reverse order.\n */\n toReversed(): Float16Array<ArrayBuffer>;\n\n /**\n * Copies and sorts the array.\n * @param compareFn Function used to determine the order of the elements. It is expected to return\n * a negative value if the first argument is less than the second argument, zero if they\'re equal, and a positive\n * value otherwise. If omitted, the elements are sorted in ascending order.\n * ```ts\n * const myNums = Float16Array.from([11.25, 2, -22.5, 1]);\n * myNums.toSorted((a, b) => a - b) // Float16Array(4) [-22.5, 1, 2, 11.5]\n * ```\n */\n toSorted(compareFn?: (a: number, b: number) => number): Float16Array<ArrayBuffer>;\n\n /**\n * Returns a string representation of an array.\n */\n toString(): string;\n\n /** Returns the primitive value of the specified object. */\n valueOf(): this;\n\n /**\n * Copies the array and inserts the given number at the provided index.\n * @param index The index of the value to overwrite. If the index is\n * negative, then it replaces from the end of the array.\n * @param value The value to insert into the copied array.\n * @returns A copy of the original array with the inserted value.\n */\n with(index: number, value: number): Float16Array<ArrayBuffer>;\n\n [index: number]: number;\n\n [Symbol.iterator](): ArrayIterator<number>;\n\n /**\n * Returns an array of key, value pairs for every entry in the array\n */\n entries(): ArrayIterator<[number, number]>;\n\n /**\n * Returns an list of keys in the array\n */\n keys(): ArrayIterator<number>;\n\n /**\n * Returns an list of values in the array\n */\n values(): ArrayIterator<number>;\n\n readonly [Symbol.toStringTag]: "Float16Array";\n}\n\ninterface Float16ArrayConstructor {\n readonly prototype: Float16Array<ArrayBufferLike>;\n new (length?: number): Float16Array<ArrayBuffer>;\n new (array: ArrayLike<number> | Iterable<number>): Float16Array<ArrayBuffer>;\n new <TArrayBuffer extends ArrayBufferLike = ArrayBuffer>(buffer: TArrayBuffer, byteOffset?: number, length?: number): Float16Array<TArrayBuffer>;\n new (buffer: ArrayBuffer, byteOffset?: number, length?: number): Float16Array<ArrayBuffer>;\n new (array: ArrayLike<number> | ArrayBuffer): Float16Array<ArrayBuffer>;\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[]): Float16Array<ArrayBuffer>;\n\n /**\n * Creates an array from an array-like or iterable object.\n * @param arrayLike An array-like object to convert to an array.\n */\n from(arrayLike: ArrayLike<number>): Float16Array<ArrayBuffer>;\n\n /**\n * Creates an array from an array-like or 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>(arrayLike: ArrayLike<T>, mapfn: (v: T, k: number) => number, thisArg?: any): Float16Array<ArrayBuffer>;\n\n /**\n * Creates an array from an array-like or iterable object.\n * @param elements An iterable object to convert to an array.\n */\n from(elements: Iterable<number>): Float16Array<ArrayBuffer>;\n\n /**\n * Creates an array from an array-like or iterable object.\n * @param elements 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>(elements: Iterable<T>, mapfn?: (v: T, k: number) => number, thisArg?: any): Float16Array<ArrayBuffer>;\n}\ndeclare var Float16Array: Float16ArrayConstructor;\n\ninterface Math {\n /**\n * Returns the nearest half precision float representation of a number.\n * @param x A numeric expression.\n */\n f16round(x: number): number;\n}\n\ninterface DataView<TArrayBuffer extends ArrayBufferLike> {\n /**\n * Gets the Float16 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 * @param littleEndian If false or undefined, a big-endian value should be read.\n */\n getFloat16(byteOffset: number, littleEndian?: boolean): number;\n\n /**\n * Stores an Float16 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 */\n setFloat16(byteOffset: number, value: number, littleEndian?: boolean): void;\n}\n',gi["lib.esnext.full.d.ts"]='/*! *****************************************************************************\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/// <reference no-default-lib="true"/>\n\n/// <reference lib="esnext" />\n/// <reference lib="dom" />\n/// <reference lib="webworker.importscripts" />\n/// <reference lib="scripthost" />\n/// <reference lib="dom.iterable" />\n/// <reference lib="dom.asynciterable" />\n',gi["lib.esnext.intl.d.ts"]='/*! *****************************************************************************\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/// <reference no-default-lib="true"/>\n\ndeclare namespace Intl {\n // Empty\n}\n',gi["lib.esnext.iterator.d.ts"]='/*! *****************************************************************************\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/// <reference no-default-lib="true"/>\n\n/// <reference lib="es2015.iterable" />\n\n// NOTE: This is specified as what is essentially an unreachable module. All actual global declarations can be found\n// in the `declare global` section, below. This is necessary as there is currently no way to declare an `abstract`\n// member without declaring a `class`, but declaring `class Iterator<T>` globally would conflict with TypeScript\'s\n// general purpose `Iterator<T>` interface.\nexport {};\n\n// Abstract type that allows us to mark `next` as `abstract`\ndeclare abstract class Iterator<T, TResult = undefined, TNext = unknown> { // eslint-disable-line @typescript-eslint/no-unsafe-declaration-merging\n abstract next(value?: TNext): IteratorResult<T, TResult>;\n}\n\n// Merge all members of `IteratorObject<T>` into `Iterator<T>`\ninterface Iterator<T, TResult, TNext> extends globalThis.IteratorObject<T, TResult, TNext> {}\n\n// Capture the `Iterator` constructor in a type we can use in the `extends` clause of `IteratorConstructor`.\ntype IteratorObjectConstructor = typeof Iterator;\n\ndeclare global {\n // Global `IteratorObject<T, TReturn, TNext>` interface that can be augmented by polyfills\n interface IteratorObject<T, TReturn, TNext> {\n /**\n * Returns this iterator.\n */\n [Symbol.iterator](): IteratorObject<T, TReturn, TNext>;\n\n /**\n * Creates an iterator whose values are the result of applying the callback to the values from this iterator.\n * @param callbackfn A function that accepts up to two arguments to be used to transform values from the underlying iterator.\n */\n map<U>(callbackfn: (value: T, index: number) => U): IteratorObject<U, undefined, unknown>;\n\n /**\n * Creates an iterator whose values are those from this iterator for which the provided predicate returns true.\n * @param predicate A function that accepts up to two arguments to be used to test values from the underlying iterator.\n */\n filter<S extends T>(predicate: (value: T, index: number) => value is S): IteratorObject<S, undefined, unknown>;\n\n /**\n * Creates an iterator whose values are those from this iterator for which the provided predicate returns true.\n * @param predicate A function that accepts up to two arguments to be used to test values from the underlying iterator.\n */\n filter(predicate: (value: T, index: number) => unknown): IteratorObject<T, undefined, unknown>;\n\n /**\n * Creates an iterator whose values are the values from this iterator, stopping once the provided limit is reached.\n * @param limit The maximum number of values to yield.\n */\n take(limit: number): IteratorObject<T, undefined, unknown>;\n\n /**\n * Creates an iterator whose values are the values from this iterator after skipping the provided count.\n * @param count The number of values to drop.\n */\n drop(count: number): IteratorObject<T, undefined, unknown>;\n\n /**\n * Creates an iterator whose values are the result of applying the callback to the values from this iterator and then flattening the resulting iterators or iterables.\n * @param callback A function that accepts up to two arguments to be used to transform values from the underlying iterator into new iterators or iterables to be flattened into the result.\n */\n flatMap<U>(callback: (value: T, index: number) => Iterator<U, unknown, undefined> | Iterable<U, unknown, undefined>): IteratorObject<U, undefined, unknown>;\n\n /**\n * Calls the specified callback function for all the elements in this iterator. 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 three arguments. The reduce method calls the callbackfn function one time for each element in the iterator.\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 a value from the iterator.\n */\n reduce(callbackfn: (previousValue: T, currentValue: T, currentIndex: number) => T): T;\n reduce(callbackfn: (previousValue: T, currentValue: T, currentIndex: number) => T, initialValue: T): T;\n\n /**\n * Calls the specified callback function for all the elements in this iterator. 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 three arguments. The reduce method calls the callbackfn function one time for each element in the iterator.\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 a value from the iterator.\n */\n reduce<U>(callbackfn: (previousValue: U, currentValue: T, currentIndex: number) => U, initialValue: U): U;\n\n /**\n * Creates a new array from the values yielded by this iterator.\n */\n toArray(): T[];\n\n /**\n * Performs the specified action for each element in the iterator.\n * @param callbackfn A function that accepts up to two arguments. forEach calls the callbackfn function one time for each element in the iterator.\n */\n forEach(callbackfn: (value: T, index: number) => void): void;\n\n /**\n * Determines whether the specified callback function returns true for any element of this iterator.\n * @param predicate A function that accepts up to two arguments. The some method calls\n * the predicate function for each element in this iterator until the predicate returns a value\n * true, or until the end of the iterator.\n */\n some(predicate: (value: T, index: number) => unknown): boolean;\n\n /**\n * Determines whether all the members of this iterator satisfy the specified test.\n * @param predicate A function that accepts up to two arguments. The every method calls\n * the predicate function for each element in this iterator until the predicate returns\n * false, or until the end of this iterator.\n */\n every(predicate: (value: T, index: number) => unknown): boolean;\n\n /**\n * Returns the value of the first element in this iterator where predicate is true, and undefined\n * otherwise.\n * @param predicate find calls predicate once for each element of this iterator, in\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 */\n find<S extends T>(predicate: (value: T, index: number) => value is S): S | undefined;\n find(predicate: (value: T, index: number) => unknown): T | undefined;\n\n readonly [Symbol.toStringTag]: string;\n }\n\n // Global `IteratorConstructor` interface that can be augmented by polyfills\n interface IteratorConstructor extends IteratorObjectConstructor {\n /**\n * Creates a native iterator from an iterator or iterable object.\n * Returns its input if the input already inherits from the built-in Iterator class.\n * @param value An iterator or iterable object to convert a native iterator.\n */\n from<T>(value: Iterator<T, unknown, undefined> | Iterable<T, unknown, undefined>): IteratorObject<T, undefined, unknown>;\n }\n\n var Iterator: IteratorConstructor;\n}\n',gi["lib.esnext.promise.d.ts"]='/*! *****************************************************************************\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/// <reference no-default-lib="true"/>\n\ninterface PromiseConstructor {\n /**\n * Takes a callback of any kind (returns or throws, synchronously or asynchronously) and wraps its result\n * in a Promise.\n *\n * @param callbackFn A function that is called synchronously. It can do anything: either return\n * a value, throw an error, or return a promise.\n * @param args Additional arguments, that will be passed to the callback.\n *\n * @returns A Promise that is:\n * - Already fulfilled, if the callback synchronously returns a value.\n * - Already rejected, if the callback synchronously throws an error.\n * - Asynchronously fulfilled or rejected, if the callback returns a promise.\n */\n try<T, U extends unknown[]>(callbackFn: (...args: U) => T | PromiseLike<T>, ...args: U): Promise<Awaited<T>>;\n}\n',gi["lib.esnext.sharedmemory.d.ts"]='/*! *****************************************************************************\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/// <reference no-default-lib="true"/>\n\ninterface Atomics {\n /**\n * Performs a finite-time microwait by signaling to the operating system or\n * CPU that the current executing code is in a spin-wait loop.\n */\n pause(n?: number): void;\n}\n',gi["lib.scripthost.d.ts"]='/*! *****************************************************************************\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/// <reference no-default-lib="true"/>\n\n/////////////////////////////\n/// Windows Script Host APIS\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',gi["lib.webworker.asynciterable.d.ts"]='/*! *****************************************************************************\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/// <reference no-default-lib="true"/>\n\n/////////////////////////////\n/// Worker Async Iterable APIs\n/////////////////////////////\n\ninterface FileSystemDirectoryHandleAsyncIterator<T> extends AsyncIteratorObject<T, BuiltinIteratorReturn, unknown> {\n [Symbol.asyncIterator](): FileSystemDirectoryHandleAsyncIterator<T>;\n}\n\ninterface FileSystemDirectoryHandle {\n [Symbol.asyncIterator](): FileSystemDirectoryHandleAsyncIterator<[string, FileSystemHandle]>;\n entries(): FileSystemDirectoryHandleAsyncIterator<[string, FileSystemHandle]>;\n keys(): FileSystemDirectoryHandleAsyncIterator<string>;\n values(): FileSystemDirectoryHandleAsyncIterator<FileSystemHandle>;\n}\n\ninterface ReadableStreamAsyncIterator<T> extends AsyncIteratorObject<T, BuiltinIteratorReturn, unknown> {\n [Symbol.asyncIterator](): ReadableStreamAsyncIterator<T>;\n}\n\ninterface ReadableStream<R = any> {\n [Symbol.asyncIterator](options?: ReadableStreamIteratorOptions): ReadableStreamAsyncIterator<R>;\n values(options?: ReadableStreamIteratorOptions): ReadableStreamAsyncIterator<R>;\n}\n',gi["lib.webworker.d.ts"]='/*! *****************************************************************************\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/// <reference no-default-lib="true"/>\n\n/////////////////////////////\n/// Worker APIs\n/////////////////////////////\n\ninterface AddEventListenerOptions extends EventListenerOptions {\n once?: boolean;\n passive?: boolean;\n signal?: AbortSignal;\n}\n\ninterface AesCbcParams extends Algorithm {\n iv: BufferSource;\n}\n\ninterface AesCtrParams extends Algorithm {\n counter: BufferSource;\n length: number;\n}\n\ninterface AesDerivedKeyParams extends Algorithm {\n length: number;\n}\n\ninterface AesGcmParams extends Algorithm {\n additionalData?: BufferSource;\n iv: BufferSource;\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 AudioConfiguration {\n bitrate?: number;\n channels?: string;\n contentType: string;\n samplerate?: number;\n spatialRendering?: boolean;\n}\n\ninterface AudioDataCopyToOptions {\n format?: AudioSampleFormat;\n frameCount?: number;\n frameOffset?: number;\n planeIndex: number;\n}\n\ninterface AudioDataInit {\n data: BufferSource;\n format: AudioSampleFormat;\n numberOfChannels: number;\n numberOfFrames: number;\n sampleRate: number;\n timestamp: number;\n transfer?: ArrayBuffer[];\n}\n\ninterface AudioDecoderConfig {\n codec: string;\n description?: AllowSharedBufferSource;\n numberOfChannels: number;\n sampleRate: number;\n}\n\ninterface AudioDecoderInit {\n error: WebCodecsErrorCallback;\n output: AudioDataOutputCallback;\n}\n\ninterface AudioDecoderSupport {\n config?: AudioDecoderConfig;\n supported?: boolean;\n}\n\ninterface AudioEncoderConfig {\n bitrate?: number;\n bitrateMode?: BitrateMode;\n codec: string;\n numberOfChannels: number;\n opus?: OpusEncoderConfig;\n sampleRate: number;\n}\n\ninterface AudioEncoderInit {\n error: WebCodecsErrorCallback;\n output: EncodedAudioChunkOutputCallback;\n}\n\ninterface AudioEncoderSupport {\n config?: AudioEncoderConfig;\n supported?: boolean;\n}\n\ninterface AvcEncoderConfig {\n format?: AvcBitstreamFormat;\n}\n\ninterface BlobPropertyBag {\n endings?: EndingType;\n type?: string;\n}\n\ninterface CSSMatrixComponentOptions {\n is2D?: boolean;\n}\n\ninterface CSSNumericType {\n angle?: number;\n flex?: number;\n frequency?: number;\n length?: number;\n percent?: number;\n percentHint?: CSSNumericBaseType;\n resolution?: number;\n time?: number;\n}\n\ninterface CacheQueryOptions {\n ignoreMethod?: boolean;\n ignoreSearch?: boolean;\n ignoreVary?: boolean;\n}\n\ninterface ClientQueryOptions {\n includeUncontrolled?: boolean;\n type?: ClientTypes;\n}\n\ninterface CloseEventInit extends EventInit {\n code?: number;\n reason?: string;\n wasClean?: boolean;\n}\n\ninterface CookieInit {\n domain?: string | null;\n expires?: DOMHighResTimeStamp | null;\n name: string;\n partitioned?: boolean;\n path?: string;\n sameSite?: CookieSameSite;\n value: string;\n}\n\ninterface CookieListItem {\n name?: string;\n value?: string;\n}\n\ninterface CookieStoreDeleteOptions {\n domain?: string | null;\n name: string;\n partitioned?: boolean;\n path?: string;\n}\n\ninterface CookieStoreGetOptions {\n name?: string;\n url?: string;\n}\n\ninterface CryptoKeyPair {\n privateKey: CryptoKey;\n publicKey: CryptoKey;\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 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 EncodedAudioChunkInit {\n data: AllowSharedBufferSource;\n duration?: number;\n timestamp: number;\n transfer?: ArrayBuffer[];\n type: EncodedAudioChunkType;\n}\n\ninterface EncodedAudioChunkMetadata {\n decoderConfig?: AudioDecoderConfig;\n}\n\ninterface EncodedVideoChunkInit {\n data: AllowSharedBufferSource;\n duration?: number;\n timestamp: number;\n type: EncodedVideoChunkType;\n}\n\ninterface EncodedVideoChunkMetadata {\n decoderConfig?: VideoDecoderConfig;\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 EventSourceInit {\n withCredentials?: boolean;\n}\n\ninterface ExtendableCookieChangeEventInit extends ExtendableEventInit {\n changed?: CookieList;\n deleted?: CookieList;\n}\n\ninterface ExtendableEventInit extends EventInit {\n}\n\ninterface ExtendableMessageEventInit extends ExtendableEventInit {\n data?: any;\n lastEventId?: string;\n origin?: string;\n ports?: MessagePort[];\n source?: Client | ServiceWorker | MessagePort | null;\n}\n\ninterface FetchEventInit extends ExtendableEventInit {\n clientId?: string;\n handled?: Promise<void>;\n preloadResponse?: Promise<any>;\n request: Request;\n resultingClientId?: string;\n}\n\ninterface FilePropertyBag extends BlobPropertyBag {\n lastModified?: number;\n}\n\ninterface FileSystemCreateWritableOptions {\n keepExistingData?: boolean;\n}\n\ninterface FileSystemGetDirectoryOptions {\n create?: boolean;\n}\n\ninterface FileSystemGetFileOptions {\n create?: boolean;\n}\n\ninterface FileSystemReadWriteOptions {\n at?: number;\n}\n\ninterface FileSystemRemoveOptions {\n recursive?: boolean;\n}\n\ninterface FontFaceDescriptors {\n ascentOverride?: string;\n descentOverride?: string;\n display?: FontDisplay;\n featureSettings?: string;\n lineGapOverride?: string;\n stretch?: string;\n style?: string;\n unicodeRange?: string;\n weight?: string;\n}\n\ninterface FontFaceSetLoadEventInit extends EventInit {\n fontfaces?: FontFace[];\n}\n\ninterface GetNotificationOptions {\n tag?: string;\n}\n\ninterface HkdfParams extends Algorithm {\n hash: HashAlgorithmIdentifier;\n info: BufferSource;\n salt: BufferSource;\n}\n\ninterface HmacImportParams extends Algorithm {\n hash: HashAlgorithmIdentifier;\n length?: number;\n}\n\ninterface HmacKeyGenParams extends Algorithm {\n hash: HashAlgorithmIdentifier;\n length?: number;\n}\n\ninterface IDBDatabaseInfo {\n name?: string;\n version?: 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 IDBTransactionOptions {\n durability?: IDBTransactionDurability;\n}\n\ninterface IDBVersionChangeEventInit extends EventInit {\n newVersion?: number | null;\n oldVersion?: number;\n}\n\ninterface ImageBitmapOptions {\n colorSpaceConversion?: ColorSpaceConversion;\n imageOrientation?: ImageOrientation;\n premultiplyAlpha?: PremultiplyAlpha;\n resizeHeight?: number;\n resizeQuality?: ResizeQuality;\n resizeWidth?: number;\n}\n\ninterface ImageBitmapRenderingContextSettings {\n alpha?: boolean;\n}\n\ninterface ImageDataSettings {\n colorSpace?: PredefinedColorSpace;\n}\n\ninterface ImageDecodeOptions {\n completeFramesOnly?: boolean;\n frameIndex?: number;\n}\n\ninterface ImageDecodeResult {\n complete: boolean;\n image: VideoFrame;\n}\n\ninterface ImageDecoderInit {\n colorSpaceConversion?: ColorSpaceConversion;\n data: ImageBufferSource;\n desiredHeight?: number;\n desiredWidth?: number;\n preferAnimation?: boolean;\n transfer?: ArrayBuffer[];\n type: string;\n}\n\ninterface ImageEncodeOptions {\n quality?: number;\n type?: string;\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 KeySystemTrackConfiguration {\n robustness?: string;\n}\n\ninterface LockInfo {\n clientId?: string;\n mode?: LockMode;\n name?: string;\n}\n\ninterface LockManagerSnapshot {\n held?: LockInfo[];\n pending?: LockInfo[];\n}\n\ninterface LockOptions {\n ifAvailable?: boolean;\n mode?: LockMode;\n signal?: AbortSignal;\n steal?: boolean;\n}\n\ninterface MediaCapabilitiesDecodingInfo extends MediaCapabilitiesInfo {\n}\n\ninterface MediaCapabilitiesEncodingInfo extends MediaCapabilitiesInfo {\n}\n\ninterface MediaCapabilitiesInfo {\n powerEfficient: boolean;\n smooth: boolean;\n supported: boolean;\n}\n\ninterface MediaCapabilitiesKeySystemConfiguration {\n audio?: KeySystemTrackConfiguration;\n distinctiveIdentifier?: MediaKeysRequirement;\n initDataType?: string;\n keySystem: string;\n persistentState?: MediaKeysRequirement;\n sessionTypes?: string[];\n video?: KeySystemTrackConfiguration;\n}\n\ninterface MediaConfiguration {\n audio?: AudioConfiguration;\n video?: VideoConfiguration;\n}\n\ninterface MediaDecodingConfiguration extends MediaConfiguration {\n keySystemConfiguration?: MediaCapabilitiesKeySystemConfiguration;\n type: MediaDecodingType;\n}\n\ninterface MediaEncodingConfiguration extends MediaConfiguration {\n type: MediaEncodingType;\n}\n\ninterface MediaStreamTrackProcessorInit {\n maxBufferSize?: number;\n}\n\ninterface MessageEventInit<T = any> extends EventInit {\n data?: T;\n lastEventId?: string;\n origin?: string;\n ports?: MessagePort[];\n source?: MessageEventSource | null;\n}\n\ninterface MultiCacheQueryOptions extends CacheQueryOptions {\n cacheName?: string;\n}\n\ninterface NavigationPreloadState {\n enabled?: boolean;\n headerValue?: string;\n}\n\ninterface NotificationEventInit extends ExtendableEventInit {\n action?: string;\n notification: Notification;\n}\n\ninterface NotificationOptions {\n badge?: string;\n body?: string;\n data?: any;\n dir?: NotificationDirection;\n icon?: string;\n lang?: string;\n requireInteraction?: boolean;\n silent?: boolean | null;\n tag?: string;\n}\n\ninterface OpusEncoderConfig {\n complexity?: number;\n format?: OpusBitstreamFormat;\n frameDuration?: number;\n packetlossperc?: number;\n usedtx?: boolean;\n useinbandfec?: boolean;\n}\n\ninterface Pbkdf2Params extends Algorithm {\n hash: HashAlgorithmIdentifier;\n iterations: number;\n salt: BufferSource;\n}\n\ninterface PerformanceMarkOptions {\n detail?: any;\n startTime?: DOMHighResTimeStamp;\n}\n\ninterface PerformanceMeasureOptions {\n detail?: any;\n duration?: DOMHighResTimeStamp;\n end?: string | DOMHighResTimeStamp;\n start?: string | DOMHighResTimeStamp;\n}\n\ninterface PerformanceObserverInit {\n buffered?: boolean;\n entryTypes?: string[];\n type?: string;\n}\n\ninterface PermissionDescriptor {\n name: PermissionName;\n}\n\ninterface PlaneLayout {\n offset: number;\n stride: number;\n}\n\ninterface ProgressEventInit extends EventInit {\n lengthComputable?: boolean;\n loaded?: number;\n total?: number;\n}\n\ninterface PromiseRejectionEventInit extends EventInit {\n promise: Promise<any>;\n reason?: any;\n}\n\ninterface PushEventInit extends ExtendableEventInit {\n data?: PushMessageDataInit;\n}\n\ninterface PushSubscriptionChangeEventInit extends ExtendableEventInit {\n newSubscription?: PushSubscription;\n oldSubscription?: PushSubscription;\n}\n\ninterface PushSubscriptionJSON {\n endpoint?: string;\n expirationTime?: EpochTimeStamp | 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?: QueuingStrategySize<T>;\n}\n\ninterface QueuingStrategyInit {\n /**\n * Creates a new ByteLengthQueuingStrategy with the provided high water mark.\n *\n * Note that the provided high water mark will not be validated ahead of time. Instead, if it is negative, NaN, or not a number, the resulting ByteLengthQueuingStrategy will cause the corresponding stream constructor to throw.\n */\n highWaterMark: number;\n}\n\ninterface RTCEncodedAudioFrameMetadata extends RTCEncodedFrameMetadata {\n sequenceNumber?: number;\n}\n\ninterface RTCEncodedFrameMetadata {\n contributingSources?: number[];\n mimeType?: string;\n payloadType?: number;\n rtpTimestamp?: number;\n synchronizationSource?: number;\n}\n\ninterface RTCEncodedVideoFrameMetadata extends RTCEncodedFrameMetadata {\n dependencies?: number[];\n frameId?: number;\n height?: number;\n spatialIndex?: number;\n temporalIndex?: number;\n timestamp?: number;\n width?: number;\n}\n\ninterface ReadableStreamGetReaderOptions {\n /**\n * Creates a ReadableStreamBYOBReader and locks the stream to the new reader.\n *\n * This call behaves the same way as the no-argument variant, except that it only works on readable byte streams, i.e. streams which were constructed specifically with the ability to handle "bring your own buffer" reading. The returned BYOB reader provides the ability to directly read individual chunks from the stream via its read() method, into developer-supplied buffers, allowing more precise control over allocation.\n */\n mode?: ReadableStreamReaderMode;\n}\n\ninterface ReadableStreamIteratorOptions {\n /**\n * Asynchronously iterates over the chunks in the stream\'s internal queue.\n *\n * Asynchronously iterating over the stream will lock it, preventing any other consumer from acquiring a reader. The lock will be released if the async iterator\'s return() method is called, e.g. by breaking out of the loop.\n *\n * By default, calling the async iterator\'s return() method will also cancel the stream. To prevent this, use the stream\'s values() method, passing true for the preventCancel option.\n */\n preventCancel?: boolean;\n}\n\ninterface ReadableStreamReadDoneResult<T> {\n done: true;\n value: T | undefined;\n}\n\ninterface ReadableStreamReadValueResult<T> {\n done: false;\n value: T;\n}\n\ninterface ReadableWritablePair<R = any, W = any> {\n readable: ReadableStream<R>;\n /**\n * Provides a convenient, chainable way of piping this readable stream through a transform stream (or any other { writable, readable } pair). It simply pipes the stream into the writable side of the supplied pair, and returns the readable side for further use.\n *\n * Piping a stream will lock it for the duration of the pipe, preventing any other consumer from acquiring a reader.\n */\n writable: WritableStream<W>;\n}\n\ninterface RegistrationOptions {\n scope?: string;\n type?: WorkerType;\n updateViaCache?: ServiceWorkerUpdateViaCache;\n}\n\ninterface ReportingObserverOptions {\n buffered?: boolean;\n types?: string[];\n}\n\ninterface RequestInit {\n /** A BodyInit object or null to set request\'s body. */\n body?: BodyInit | null;\n /** A string indicating how the request will interact with the browser\'s cache to set request\'s cache. */\n cache?: RequestCache;\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 credentials?: RequestCredentials;\n /** A Headers object, an object literal, or an array of two-item arrays to set request\'s headers. */\n headers?: HeadersInit;\n /** A cryptographic hash of the resource to be fetched by request. Sets request\'s integrity. */\n integrity?: string;\n /** A boolean to set request\'s keepalive. */\n keepalive?: boolean;\n /** A string to set request\'s method. */\n method?: string;\n /** A string to indicate whether the request will use CORS, or will be restricted to same-origin URLs. Sets request\'s mode. */\n mode?: RequestMode;\n priority?: RequestPriority;\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 redirect?: RequestRedirect;\n /** A string whose value is a same-origin URL, "about:client", or the empty string, to set request\'s referrer. */\n referrer?: string;\n /** A referrer policy to set request\'s referrerPolicy. */\n referrerPolicy?: ReferrerPolicy;\n /** An AbortSignal to set request\'s signal. */\n signal?: AbortSignal | null;\n /** Can only be null. Used to disassociate request from any Window. */\n window?: null;\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 RsaHashedKeyGenParams extends RsaKeyGenParams {\n hash: HashAlgorithmIdentifier;\n}\n\ninterface RsaKeyGenParams extends Algorithm {\n modulusLength: number;\n publicExponent: BigInteger;\n}\n\ninterface RsaOaepParams extends Algorithm {\n label?: BufferSource;\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 SecurityPolicyViolationEventInit extends EventInit {\n blockedURI?: string;\n columnNumber?: number;\n disposition?: SecurityPolicyViolationEventDisposition;\n documentURI?: string;\n effectiveDirective?: string;\n lineNumber?: number;\n originalPolicy?: string;\n referrer?: string;\n sample?: string;\n sourceFile?: string;\n statusCode?: number;\n violatedDirective?: string;\n}\n\ninterface StorageEstimate {\n quota?: number;\n usage?: number;\n}\n\ninterface StreamPipeOptions {\n preventAbort?: boolean;\n preventCancel?: boolean;\n /**\n * Pipes this readable stream to a given writable stream destination. The way in which the piping process behaves under various error conditions can be customized with a number of passed options. It returns a promise that fulfills when the piping process completes successfully, or rejects if any errors were encountered.\n *\n * Piping a stream will lock it for the duration of the pipe, preventing any other consumer from acquiring a reader.\n *\n * Errors and closures of the source and destination streams propagate as follows:\n *\n * An error in this source readable stream will abort destination, unless preventAbort is truthy. The returned promise will be rejected with the source\'s error, or with any error that occurs during aborting the destination.\n *\n * An error in destination will cancel this source readable stream, unless preventCancel is truthy. The returned promise will be rejected with the destination\'s error, or with any error that occurs during canceling the source.\n *\n * When this source readable stream closes, destination will be closed, unless preventClose is truthy. The returned promise will be fulfilled once this process completes, unless an error is encountered while closing the destination, in which case it will be rejected with that error.\n *\n * If destination starts out closed or closing, this source readable stream will be canceled, unless preventCancel is true. The returned promise will be rejected with an error indicating piping to a closed stream failed, or with any error that occurs during canceling the source.\n *\n * The signal option can be set to an AbortSignal to allow aborting an ongoing pipe operation via the corresponding AbortController. In this case, this source readable stream will be canceled, and destination aborted, unless the respective options preventCancel or preventAbort are set.\n */\n preventClose?: boolean;\n signal?: AbortSignal;\n}\n\ninterface StructuredSerializeOptions {\n transfer?: Transferable[];\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 Transformer<I = any, O = any> {\n flush?: TransformerFlushCallback<O>;\n readableType?: undefined;\n start?: TransformerStartCallback<O>;\n transform?: TransformerTransformCallback<I, O>;\n writableType?: undefined;\n}\n\ninterface UnderlyingByteSource {\n autoAllocateChunkSize?: number;\n cancel?: UnderlyingSourceCancelCallback;\n pull?: (controller: ReadableByteStreamController) => void | PromiseLike<void>;\n start?: (controller: ReadableByteStreamController) => any;\n type: "bytes";\n}\n\ninterface UnderlyingDefaultSource<R = any> {\n cancel?: UnderlyingSourceCancelCallback;\n pull?: (controller: ReadableStreamDefaultController<R>) => void | PromiseLike<void>;\n start?: (controller: ReadableStreamDefaultController<R>) => any;\n type?: undefined;\n}\n\ninterface UnderlyingSink<W = any> {\n abort?: UnderlyingSinkAbortCallback;\n close?: UnderlyingSinkCloseCallback;\n start?: UnderlyingSinkStartCallback;\n type?: undefined;\n write?: UnderlyingSinkWriteCallback<W>;\n}\n\ninterface UnderlyingSource<R = any> {\n autoAllocateChunkSize?: number;\n cancel?: UnderlyingSourceCancelCallback;\n pull?: UnderlyingSourcePullCallback<R>;\n start?: UnderlyingSourceStartCallback<R>;\n type?: ReadableStreamType;\n}\n\ninterface VideoColorSpaceInit {\n fullRange?: boolean | null;\n matrix?: VideoMatrixCoefficients | null;\n primaries?: VideoColorPrimaries | null;\n transfer?: VideoTransferCharacteristics | null;\n}\n\ninterface VideoConfiguration {\n bitrate: number;\n colorGamut?: ColorGamut;\n contentType: string;\n framerate: number;\n hasAlphaChannel?: boolean;\n hdrMetadataType?: HdrMetadataType;\n height: number;\n scalabilityMode?: string;\n transferFunction?: TransferFunction;\n width: number;\n}\n\ninterface VideoDecoderConfig {\n codec: string;\n codedHeight?: number;\n codedWidth?: number;\n colorSpace?: VideoColorSpaceInit;\n description?: AllowSharedBufferSource;\n displayAspectHeight?: number;\n displayAspectWidth?: number;\n hardwareAcceleration?: HardwareAcceleration;\n optimizeForLatency?: boolean;\n}\n\ninterface VideoDecoderInit {\n error: WebCodecsErrorCallback;\n output: VideoFrameOutputCallback;\n}\n\ninterface VideoDecoderSupport {\n config?: VideoDecoderConfig;\n supported?: boolean;\n}\n\ninterface VideoEncoderConfig {\n alpha?: AlphaOption;\n avc?: AvcEncoderConfig;\n bitrate?: number;\n bitrateMode?: VideoEncoderBitrateMode;\n codec: string;\n contentHint?: string;\n displayHeight?: number;\n displayWidth?: number;\n framerate?: number;\n hardwareAcceleration?: HardwareAcceleration;\n height: number;\n latencyMode?: LatencyMode;\n scalabilityMode?: string;\n width: number;\n}\n\ninterface VideoEncoderEncodeOptions {\n avc?: VideoEncoderEncodeOptionsForAvc;\n keyFrame?: boolean;\n}\n\ninterface VideoEncoderEncodeOptionsForAvc {\n quantizer?: number | null;\n}\n\ninterface VideoEncoderInit {\n error: WebCodecsErrorCallback;\n output: EncodedVideoChunkOutputCallback;\n}\n\ninterface VideoEncoderSupport {\n config?: VideoEncoderConfig;\n supported?: boolean;\n}\n\ninterface VideoFrameBufferInit {\n codedHeight: number;\n codedWidth: number;\n colorSpace?: VideoColorSpaceInit;\n displayHeight?: number;\n displayWidth?: number;\n duration?: number;\n format: VideoPixelFormat;\n layout?: PlaneLayout[];\n timestamp: number;\n visibleRect?: DOMRectInit;\n}\n\ninterface VideoFrameCopyToOptions {\n colorSpace?: PredefinedColorSpace;\n format?: VideoPixelFormat;\n layout?: PlaneLayout[];\n rect?: DOMRectInit;\n}\n\ninterface VideoFrameInit {\n alpha?: AlphaOption;\n displayHeight?: number;\n displayWidth?: number;\n duration?: number;\n timestamp?: number;\n visibleRect?: DOMRectInit;\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 WebTransportCloseInfo {\n closeCode?: number;\n reason?: string;\n}\n\ninterface WebTransportErrorOptions {\n source?: WebTransportErrorSource;\n streamErrorCode?: number | null;\n}\n\ninterface WebTransportHash {\n algorithm?: string;\n value?: BufferSource;\n}\n\ninterface WebTransportOptions {\n allowPooling?: boolean;\n congestionControl?: WebTransportCongestionControl;\n requireUnreliable?: boolean;\n serverCertificateHashes?: WebTransportHash[];\n}\n\ninterface WebTransportSendOptions {\n sendOrder?: number;\n}\n\ninterface WebTransportSendStreamOptions extends WebTransportSendOptions {\n}\n\ninterface WorkerOptions {\n credentials?: RequestCredentials;\n name?: string;\n type?: WorkerType;\n}\n\ninterface WriteParams {\n data?: BufferSource | Blob | string | null;\n position?: number | null;\n size?: number | null;\n type: WriteCommandType;\n}\n\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.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ANGLE_instanced_arrays)\n */\ninterface ANGLE_instanced_arrays {\n /**\n * The **`ANGLE_instanced_arrays.drawArraysInstancedANGLE()`** method of the WebGL API renders primitives from array data like the WebGLRenderingContext.drawArrays() method.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ANGLE_instanced_arrays/drawArraysInstancedANGLE)\n */\n drawArraysInstancedANGLE(mode: GLenum, first: GLint, count: GLsizei, primcount: GLsizei): void;\n /**\n * The **`ANGLE_instanced_arrays.drawElementsInstancedANGLE()`** method of the WebGL API renders primitives from array data like the WebGLRenderingContext.drawElements() method.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ANGLE_instanced_arrays/drawElementsInstancedANGLE)\n */\n drawElementsInstancedANGLE(mode: GLenum, count: GLsizei, type: GLenum, offset: GLintptr, primcount: GLsizei): void;\n /**\n * The **ANGLE_instanced_arrays.vertexAttribDivisorANGLE()** method of the WebGL API modifies the rate at which generic vertex attributes advance when rendering multiple instances of primitives with ANGLE_instanced_arrays.drawArraysInstancedANGLE() and ANGLE_instanced_arrays.drawElementsInstancedANGLE().\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ANGLE_instanced_arrays/vertexAttribDivisorANGLE)\n */\n vertexAttribDivisorANGLE(index: GLuint, divisor: GLuint): void;\n readonly VERTEX_ATTRIB_ARRAY_DIVISOR_ANGLE: 0x88FE;\n}\n\n/**\n * The **`AbortController`** interface represents a controller object that allows you to abort one or more Web requests as and when desired.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/AbortController)\n */\ninterface AbortController {\n /**\n * The **`signal`** read-only property of the AbortController interface returns an AbortSignal object instance, which can be used to communicate with/abort an asynchronous operation as desired.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/AbortController/signal)\n */\n readonly signal: AbortSignal;\n /**\n * The **`abort()`** method of the AbortController interface aborts an asynchronous operation before it has completed.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/AbortController/abort)\n */\n abort(reason?: any): void;\n}\n\ndeclare var AbortController: {\n prototype: AbortController;\n new(): AbortController;\n};\n\ninterface AbortSignalEventMap {\n "abort": Event;\n}\n\n/**\n * The **`AbortSignal`** interface represents a signal object that allows you to communicate with an asynchronous operation (such as a fetch request) and abort it if required via an AbortController object.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/AbortSignal)\n */\ninterface AbortSignal extends EventTarget {\n /**\n * The **`aborted`** read-only property returns a value that indicates whether the asynchronous operations the signal is communicating with are aborted (`true`) or not (`false`).\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/AbortSignal/aborted)\n */\n readonly aborted: boolean;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AbortSignal/abort_event) */\n onabort: ((this: AbortSignal, ev: Event) => any) | null;\n /**\n * The **`reason`** read-only property returns a JavaScript value that indicates the abort reason.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/AbortSignal/reason)\n */\n readonly reason: any;\n /**\n * The **`throwIfAborted()`** method throws the signal\'s abort AbortSignal.reason if the signal has been aborted; otherwise it does nothing.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/AbortSignal/throwIfAborted)\n */\n throwIfAborted(): void;\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 * The **`AbortSignal.abort()`** static method returns an AbortSignal that is already set as aborted (and which does not trigger an AbortSignal/abort_event event).\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/AbortSignal/abort_static)\n */\n abort(reason?: any): AbortSignal;\n /**\n * The **`AbortSignal.any()`** static method takes an iterable of abort signals and returns an AbortSignal.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/AbortSignal/any_static)\n */\n any(signals: AbortSignal[]): AbortSignal;\n /**\n * The **`AbortSignal.timeout()`** static method returns an AbortSignal that will automatically abort after a specified time.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/AbortSignal/timeout_static)\n */\n timeout(milliseconds: number): AbortSignal;\n};\n\ninterface AbstractWorkerEventMap {\n "error": ErrorEvent;\n}\n\ninterface AbstractWorker {\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ServiceWorker/error_event) */\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 AnimationFrameProvider {\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DedicatedWorkerGlobalScope/cancelAnimationFrame) */\n cancelAnimationFrame(handle: number): void;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DedicatedWorkerGlobalScope/requestAnimationFrame) */\n requestAnimationFrame(callback: FrameRequestCallback): number;\n}\n\n/**\n * The **`AudioData`** interface of the WebCodecs API represents an audio sample.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioData)\n */\ninterface AudioData {\n /**\n * The **`duration`** read-only property of the AudioData interface returns the duration in microseconds of this `AudioData` object.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioData/duration)\n */\n readonly duration: number;\n /**\n * The **`format`** read-only property of the AudioData interface returns the sample format of the `AudioData` object.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioData/format)\n */\n readonly format: AudioSampleFormat | null;\n /**\n * The **`numberOfChannels`** read-only property of the AudioData interface returns the number of channels in the `AudioData` object.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioData/numberOfChannels)\n */\n readonly numberOfChannels: number;\n /**\n * The **`numberOfFrames`** read-only property of the AudioData interface returns the number of frames in the `AudioData` object.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioData/numberOfFrames)\n */\n readonly numberOfFrames: number;\n /**\n * The **`sampleRate`** read-only property of the AudioData interface returns the sample rate in Hz.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioData/sampleRate)\n */\n readonly sampleRate: number;\n /**\n * The **`timestamp`** read-only property of the AudioData interface returns the timestamp of this `AudioData` object.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioData/timestamp)\n */\n readonly timestamp: number;\n /**\n * The **`allocationSize()`** method of the AudioData interface returns the size in bytes required to hold the current sample as filtered by options passed into the method.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioData/allocationSize)\n */\n allocationSize(options: AudioDataCopyToOptions): number;\n /**\n * The **`clone()`** method of the AudioData interface creates a new `AudioData` object with reference to the same media resource as the original.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioData/clone)\n */\n clone(): AudioData;\n /**\n * The **`close()`** method of the AudioData interface clears all states and releases the reference to the media resource.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioData/close)\n */\n close(): void;\n /**\n * The **`copyTo()`** method of the AudioData interface copies a plane of an `AudioData` object to a destination buffer.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioData/copyTo)\n */\n copyTo(destination: AllowSharedBufferSource, options: AudioDataCopyToOptions): void;\n}\n\ndeclare var AudioData: {\n prototype: AudioData;\n new(init: AudioDataInit): AudioData;\n};\n\ninterface AudioDecoderEventMap {\n "dequeue": Event;\n}\n\n/**\n * The **`AudioDecoder`** interface of the WebCodecs API decodes chunks of audio.\n * Available only in secure contexts.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioDecoder)\n */\ninterface AudioDecoder extends EventTarget {\n /**\n * The **`decodeQueueSize`** read-only property of the AudioDecoder interface returns the number of pending decode requests in the queue.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioDecoder/decodeQueueSize)\n */\n readonly decodeQueueSize: number;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioDecoder/dequeue_event) */\n ondequeue: ((this: AudioDecoder, ev: Event) => any) | null;\n /**\n * The **`state`** read-only property of the AudioDecoder interface returns the current state of the underlying codec.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioDecoder/state)\n */\n readonly state: CodecState;\n /**\n * The **`close()`** method of the AudioDecoder interface ends all pending work and releases system resources.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioDecoder/close)\n */\n close(): void;\n /**\n * The **`configure()`** method of the AudioDecoder interface enqueues a control message to configure the audio decoder for decoding chunks.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioDecoder/configure)\n */\n configure(config: AudioDecoderConfig): void;\n /**\n * The **`decode()`** method of the AudioDecoder interface enqueues a control message to decode a given chunk of audio.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioDecoder/decode)\n */\n decode(chunk: EncodedAudioChunk): void;\n /**\n * The **`flush()`** method of the AudioDecoder interface returns a Promise that resolves once all pending messages in the queue have been completed.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioDecoder/flush)\n */\n flush(): Promise<void>;\n /**\n * The **`reset()`** method of the AudioDecoder interface resets all states including configuration, control messages in the control message queue, and all pending callbacks.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioDecoder/reset)\n */\n reset(): void;\n addEventListener<K extends keyof AudioDecoderEventMap>(type: K, listener: (this: AudioDecoder, ev: AudioDecoderEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n removeEventListener<K extends keyof AudioDecoderEventMap>(type: K, listener: (this: AudioDecoder, ev: AudioDecoderEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\ndeclare var AudioDecoder: {\n prototype: AudioDecoder;\n new(init: AudioDecoderInit): AudioDecoder;\n /**\n * The **`isConfigSupported()`** static method of the AudioDecoder interface checks if the given config is supported (that is, if AudioDecoder objects can be successfully configured with the given config).\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioDecoder/isConfigSupported_static)\n */\n isConfigSupported(config: AudioDecoderConfig): Promise<AudioDecoderSupport>;\n};\n\ninterface AudioEncoderEventMap {\n "dequeue": Event;\n}\n\n/**\n * The **`AudioEncoder`** interface of the WebCodecs API encodes AudioData objects.\n * Available only in secure contexts.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioEncoder)\n */\ninterface AudioEncoder extends EventTarget {\n /**\n * The **`encodeQueueSize`** read-only property of the AudioEncoder interface returns the number of pending encode requests in the queue.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioEncoder/encodeQueueSize)\n */\n readonly encodeQueueSize: number;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioEncoder/dequeue_event) */\n ondequeue: ((this: AudioEncoder, ev: Event) => any) | null;\n /**\n * The **`state`** read-only property of the AudioEncoder interface returns the current state of the underlying codec.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioEncoder/state)\n */\n readonly state: CodecState;\n /**\n * The **`close()`** method of the AudioEncoder interface ends all pending work and releases system resources.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioEncoder/close)\n */\n close(): void;\n /**\n * The **`configure()`** method of the AudioEncoder interface enqueues a control message to configure the audio encoder for encoding chunks.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioEncoder/configure)\n */\n configure(config: AudioEncoderConfig): void;\n /**\n * The **`encode()`** method of the AudioEncoder interface enqueues a control message to encode a given AudioData object.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioEncoder/encode)\n */\n encode(data: AudioData): void;\n /**\n * The **`flush()`** method of the AudioEncoder interface returns a Promise that resolves once all pending messages in the queue have been completed.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioEncoder/flush)\n */\n flush(): Promise<void>;\n /**\n * The **`reset()`** method of the AudioEncoder interface resets all states including configuration, control messages in the control message queue, and all pending callbacks.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioEncoder/reset)\n */\n reset(): void;\n addEventListener<K extends keyof AudioEncoderEventMap>(type: K, listener: (this: AudioEncoder, ev: AudioEncoderEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n removeEventListener<K extends keyof AudioEncoderEventMap>(type: K, listener: (this: AudioEncoder, ev: AudioEncoderEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\ndeclare var AudioEncoder: {\n prototype: AudioEncoder;\n new(init: AudioEncoderInit): AudioEncoder;\n /**\n * The **`isConfigSupported()`** static method of the AudioEncoder interface checks if the given config is supported (that is, if AudioEncoder objects can be successfully configured with the given config).\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioEncoder/isConfigSupported_static)\n */\n isConfigSupported(config: AudioEncoderConfig): Promise<AudioEncoderSupport>;\n};\n\n/**\n * The **`Blob`** interface represents a blob, which is a file-like object of immutable, raw data; they can be read as text or binary data, or converted into a ReadableStream so its methods can be used for processing the data.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Blob)\n */\ninterface Blob {\n /**\n * The **`size`** read-only property of the Blob interface returns the size of the Blob or File in bytes.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Blob/size)\n */\n readonly size: number;\n /**\n * The **`type`** read-only property of the Blob interface returns the MIME type of the file.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Blob/type)\n */\n readonly type: string;\n /**\n * The **`arrayBuffer()`** method of the Blob interface returns a Promise that resolves with the contents of the blob as binary data contained in an ArrayBuffer.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Blob/arrayBuffer)\n */\n arrayBuffer(): Promise<ArrayBuffer>;\n /**\n * The **`bytes()`** method of the Blob interface returns a Promise that resolves with a Uint8Array containing the contents of the blob as an array of bytes.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Blob/bytes)\n */\n bytes(): Promise<Uint8Array<ArrayBuffer>>;\n /**\n * The **`slice()`** method of the Blob interface creates and returns a new `Blob` object which contains data from a subset of the blob on which it\'s called.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Blob/slice)\n */\n slice(start?: number, end?: number, contentType?: string): Blob;\n /**\n * The **`stream()`** method of the Blob interface returns a ReadableStream which upon reading returns the data contained within the `Blob`.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Blob/stream)\n */\n stream(): ReadableStream<Uint8Array<ArrayBuffer>>;\n /**\n * The **`text()`** method of the string containing the contents of the blob, interpreted as UTF-8.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Blob/text)\n */\n text(): Promise<string>;\n}\n\ndeclare var Blob: {\n prototype: Blob;\n new(blobParts?: BlobPart[], options?: BlobPropertyBag): Blob;\n};\n\ninterface Body {\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Request/body) */\n readonly body: ReadableStream<Uint8Array<ArrayBuffer>> | null;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Request/bodyUsed) */\n readonly bodyUsed: boolean;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Request/arrayBuffer) */\n arrayBuffer(): Promise<ArrayBuffer>;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Request/blob) */\n blob(): Promise<Blob>;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Request/bytes) */\n bytes(): Promise<Uint8Array<ArrayBuffer>>;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Request/formData) */\n formData(): Promise<FormData>;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Request/json) */\n json(): Promise<any>;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Request/text) */\n text(): Promise<string>;\n}\n\ninterface BroadcastChannelEventMap {\n "message": MessageEvent;\n "messageerror": MessageEvent;\n}\n\n/**\n * The **`BroadcastChannel`** interface represents a named channel that any browsing context of a given origin can subscribe to.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/BroadcastChannel)\n */\ninterface BroadcastChannel extends EventTarget {\n /**\n * The **`name`** read-only property of the BroadcastChannel interface returns a string, which uniquely identifies the given channel with its name.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/BroadcastChannel/name)\n */\n readonly name: string;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/BroadcastChannel/message_event) */\n onmessage: ((this: BroadcastChannel, ev: MessageEvent) => any) | null;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/BroadcastChannel/messageerror_event) */\n onmessageerror: ((this: BroadcastChannel, ev: MessageEvent) => any) | null;\n /**\n * The **`close()`** method of the BroadcastChannel interface terminates the connection to the underlying channel, allowing the object to be garbage collected.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/BroadcastChannel/close)\n */\n close(): void;\n /**\n * The **`postMessage()`** method of the BroadcastChannel interface sends a message, which can be of any kind of Object, to each listener in any browsing context with the same origin.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/BroadcastChannel/postMessage)\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/**\n * The **`ByteLengthQueuingStrategy`** interface of the Streams API provides a built-in byte length queuing strategy that can be used when constructing streams.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ByteLengthQueuingStrategy)\n */\ninterface ByteLengthQueuingStrategy extends QueuingStrategy<ArrayBufferView> {\n /**\n * The read-only **`ByteLengthQueuingStrategy.highWaterMark`** property returns the total number of bytes that can be contained in the internal queue before backpressure is applied.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ByteLengthQueuingStrategy/highWaterMark)\n */\n readonly highWaterMark: number;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ByteLengthQueuingStrategy/size) */\n readonly size: QueuingStrategySize<ArrayBufferView>;\n}\n\ndeclare var ByteLengthQueuingStrategy: {\n prototype: ByteLengthQueuingStrategy;\n new(init: QueuingStrategyInit): ByteLengthQueuingStrategy;\n};\n\n/**\n * The **`CSSImageValue`** interface of the CSS Typed Object Model API represents values for properties that take an image, for example background-image, list-style-image, or border-image-source.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSImageValue)\n */\ninterface CSSImageValue extends CSSStyleValue {\n}\n\ndeclare var CSSImageValue: {\n prototype: CSSImageValue;\n new(): CSSImageValue;\n};\n\n/**\n * The **`CSSKeywordValue`** interface of the CSS Typed Object Model API creates an object to represent CSS keywords and other identifiers.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSKeywordValue)\n */\ninterface CSSKeywordValue extends CSSStyleValue {\n /**\n * The **`value`** property of the `CSSKeywordValue`.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSKeywordValue/value)\n */\n value: string;\n}\n\ndeclare var CSSKeywordValue: {\n prototype: CSSKeywordValue;\n new(value: string): CSSKeywordValue;\n};\n\ninterface CSSMathClamp extends CSSMathValue {\n readonly lower: CSSNumericValue;\n readonly upper: CSSNumericValue;\n readonly value: CSSNumericValue;\n}\n\ndeclare var CSSMathClamp: {\n prototype: CSSMathClamp;\n new(lower: CSSNumberish, value: CSSNumberish, upper: CSSNumberish): CSSMathClamp;\n};\n\n/**\n * The **`CSSMathInvert`** interface of the CSS Typed Object Model API represents a CSS calc used as `calc(1 / <value>)`.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSMathInvert)\n */\ninterface CSSMathInvert extends CSSMathValue {\n /**\n * The CSSMathInvert.value read-only property of the A CSSNumericValue.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSMathInvert/value)\n */\n readonly value: CSSNumericValue;\n}\n\ndeclare var CSSMathInvert: {\n prototype: CSSMathInvert;\n new(arg: CSSNumberish): CSSMathInvert;\n};\n\n/**\n * The **`CSSMathMax`** interface of the CSS Typed Object Model API represents the CSS max function.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSMathMax)\n */\ninterface CSSMathMax extends CSSMathValue {\n /**\n * The CSSMathMax.values read-only property of the which contains one or more CSSNumericValue objects.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSMathMax/values)\n */\n readonly values: CSSNumericArray;\n}\n\ndeclare var CSSMathMax: {\n prototype: CSSMathMax;\n new(...args: CSSNumberish[]): CSSMathMax;\n};\n\n/**\n * The **`CSSMathMin`** interface of the CSS Typed Object Model API represents the CSS min function.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSMathMin)\n */\ninterface CSSMathMin extends CSSMathValue {\n /**\n * The CSSMathMin.values read-only property of the which contains one or more CSSNumericValue objects.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSMathMin/values)\n */\n readonly values: CSSNumericArray;\n}\n\ndeclare var CSSMathMin: {\n prototype: CSSMathMin;\n new(...args: CSSNumberish[]): CSSMathMin;\n};\n\n/**\n * The **`CSSMathNegate`** interface of the CSS Typed Object Model API negates the value passed into it.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSMathNegate)\n */\ninterface CSSMathNegate extends CSSMathValue {\n /**\n * The CSSMathNegate.value read-only property of the A CSSNumericValue.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSMathNegate/value)\n */\n readonly value: CSSNumericValue;\n}\n\ndeclare var CSSMathNegate: {\n prototype: CSSMathNegate;\n new(arg: CSSNumberish): CSSMathNegate;\n};\n\n/**\n * The **`CSSMathProduct`** interface of the CSS Typed Object Model API represents the result obtained by calling CSSNumericValue.add, CSSNumericValue.sub, or CSSNumericValue.toSum on CSSNumericValue.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSMathProduct)\n */\ninterface CSSMathProduct extends CSSMathValue {\n /**\n * The **`CSSMathProduct.values`** read-only property of the CSSMathProduct interface returns a A CSSNumericArray.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSMathProduct/values)\n */\n readonly values: CSSNumericArray;\n}\n\ndeclare var CSSMathProduct: {\n prototype: CSSMathProduct;\n new(...args: CSSNumberish[]): CSSMathProduct;\n};\n\n/**\n * The **`CSSMathSum`** interface of the CSS Typed Object Model API represents the result obtained by calling CSSNumericValue.add, CSSNumericValue.sub, or CSSNumericValue.toSum on CSSNumericValue.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSMathSum)\n */\ninterface CSSMathSum extends CSSMathValue {\n /**\n * The **`CSSMathSum.values`** read-only property of the CSSMathSum interface returns a CSSNumericArray object which contains one or more CSSNumericValue objects.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSMathSum/values)\n */\n readonly values: CSSNumericArray;\n}\n\ndeclare var CSSMathSum: {\n prototype: CSSMathSum;\n new(...args: CSSNumberish[]): CSSMathSum;\n};\n\n/**\n * The **`CSSMathValue`** interface of the CSS Typed Object Model API a base class for classes representing complex numeric values.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSMathValue)\n */\ninterface CSSMathValue extends CSSNumericValue {\n /**\n * The **`CSSMathValue.operator`** read-only property of the CSSMathValue interface indicates the operator that the current subtype represents.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSMathValue/operator)\n */\n readonly operator: CSSMathOperator;\n}\n\ndeclare var CSSMathValue: {\n prototype: CSSMathValue;\n new(): CSSMathValue;\n};\n\n/**\n * The **`CSSMatrixComponent`** interface of the CSS Typed Object Model API represents the matrix() and matrix3d() values of the individual transform property in CSS.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSMatrixComponent)\n */\ninterface CSSMatrixComponent extends CSSTransformComponent {\n /**\n * The **`matrix`** property of the See the matrix() and matrix3d() pages for examples.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSMatrixComponent/matrix)\n */\n matrix: DOMMatrix;\n}\n\ndeclare var CSSMatrixComponent: {\n prototype: CSSMatrixComponent;\n new(matrix: DOMMatrixReadOnly, options?: CSSMatrixComponentOptions): CSSMatrixComponent;\n};\n\n/**\n * The **`CSSNumericArray`** interface of the CSS Typed Object Model API contains a list of CSSNumericValue objects.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSNumericArray)\n */\ninterface CSSNumericArray {\n /**\n * The read-only **`length`** property of the An integer representing the number of CSSNumericValue objects in the list.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSNumericArray/length)\n */\n readonly length: number;\n forEach(callbackfn: (value: CSSNumericValue, key: number, parent: CSSNumericArray) => void, thisArg?: any): void;\n [index: number]: CSSNumericValue;\n}\n\ndeclare var CSSNumericArray: {\n prototype: CSSNumericArray;\n new(): CSSNumericArray;\n};\n\n/**\n * The **`CSSNumericValue`** interface of the CSS Typed Object Model API represents operations that all numeric values can perform.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSNumericValue)\n */\ninterface CSSNumericValue extends CSSStyleValue {\n /**\n * The **`add()`** method of the `CSSNumericValue`.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSNumericValue/add)\n */\n add(...values: CSSNumberish[]): CSSNumericValue;\n /**\n * The **`div()`** method of the supplied value.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSNumericValue/div)\n */\n div(...values: CSSNumberish[]): CSSNumericValue;\n /**\n * The **`equals()`** method of the value are strictly equal.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSNumericValue/equals)\n */\n equals(...value: CSSNumberish[]): boolean;\n /**\n * The **`max()`** method of the passed.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSNumericValue/max)\n */\n max(...values: CSSNumberish[]): CSSNumericValue;\n /**\n * The **`min()`** method of the values passed.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSNumericValue/min)\n */\n min(...values: CSSNumberish[]): CSSNumericValue;\n /**\n * The **`mul()`** method of the the supplied value.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSNumericValue/mul)\n */\n mul(...values: CSSNumberish[]): CSSNumericValue;\n /**\n * The **`sub()`** method of the `CSSNumericValue`.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSNumericValue/sub)\n */\n sub(...values: CSSNumberish[]): CSSNumericValue;\n /**\n * The **`to()`** method of the another.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSNumericValue/to)\n */\n to(unit: string): CSSUnitValue;\n /**\n * The **`toSum()`** method of the ```js-nolint toSum(units) ``` - `units` - : The units to convert to.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSNumericValue/toSum)\n */\n toSum(...units: string[]): CSSMathSum;\n /**\n * The **`type()`** method of the `CSSNumericValue`, one of `angle`, `flex`, `frequency`, `length`, `resolution`, `percent`, `percentHint`, or `time`.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSNumericValue/type)\n */\n type(): CSSNumericType;\n}\n\ndeclare var CSSNumericValue: {\n prototype: CSSNumericValue;\n new(): CSSNumericValue;\n};\n\n/**\n * The **`CSSPerspective`** interface of the CSS Typed Object Model API represents the perspective() value of the individual transform property in CSS.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSPerspective)\n */\ninterface CSSPerspective extends CSSTransformComponent {\n /**\n * The **`length`** property of the It is used to apply a perspective transform to the element and its content.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSPerspective/length)\n */\n length: CSSPerspectiveValue;\n}\n\ndeclare var CSSPerspective: {\n prototype: CSSPerspective;\n new(length: CSSPerspectiveValue): CSSPerspective;\n};\n\n/**\n * The **`CSSRotate`** interface of the CSS Typed Object Model API represents the rotate value of the individual transform property in CSS.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSRotate)\n */\ninterface CSSRotate extends CSSTransformComponent {\n /**\n * The **`angle`** property of the denotes a clockwise rotation, a negative angle a counter-clockwise one.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSRotate/angle)\n */\n angle: CSSNumericValue;\n /**\n * The **`x`** property of the translating vector.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSRotate/x)\n */\n x: CSSNumberish;\n /**\n * The **`y`** property of the translating vector.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSRotate/y)\n */\n y: CSSNumberish;\n /**\n * The **`z`** property of the vector.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSRotate/z)\n */\n z: CSSNumberish;\n}\n\ndeclare var CSSRotate: {\n prototype: CSSRotate;\n new(angle: CSSNumericValue): CSSRotate;\n new(x: CSSNumberish, y: CSSNumberish, z: CSSNumberish, angle: CSSNumericValue): CSSRotate;\n};\n\n/**\n * The **`CSSScale`** interface of the CSS Typed Object Model API represents the scale() and scale3d() values of the individual transform property in CSS.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSScale)\n */\ninterface CSSScale extends CSSTransformComponent {\n /**\n * The **`x`** property of the translating vector.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSScale/x)\n */\n x: CSSNumberish;\n /**\n * The **`y`** property of the translating vector.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSScale/y)\n */\n y: CSSNumberish;\n /**\n * The **`z`** property of the vector.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSScale/z)\n */\n z: CSSNumberish;\n}\n\ndeclare var CSSScale: {\n prototype: CSSScale;\n new(x: CSSNumberish, y: CSSNumberish, z?: CSSNumberish): CSSScale;\n};\n\n/**\n * The **`CSSSkew`** interface of the CSS Typed Object Model API is part of the CSSTransformValue interface.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSSkew)\n */\ninterface CSSSkew extends CSSTransformComponent {\n /**\n * The **`ax`** property of the along the x-axis (or abscissa).\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSSkew/ax)\n */\n ax: CSSNumericValue;\n /**\n * The **`ay`** property of the along the y-axis (or ordinate).\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSSkew/ay)\n */\n ay: CSSNumericValue;\n}\n\ndeclare var CSSSkew: {\n prototype: CSSSkew;\n new(ax: CSSNumericValue, ay: CSSNumericValue): CSSSkew;\n};\n\n/**\n * The **`CSSSkewX`** interface of the CSS Typed Object Model API represents the `skewX()` value of the individual transform property in CSS.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSSkewX)\n */\ninterface CSSSkewX extends CSSTransformComponent {\n /**\n * The **`ax`** property of the along the x-axis (or abscissa).\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSSkewX/ax)\n */\n ax: CSSNumericValue;\n}\n\ndeclare var CSSSkewX: {\n prototype: CSSSkewX;\n new(ax: CSSNumericValue): CSSSkewX;\n};\n\n/**\n * The **`CSSSkewY`** interface of the CSS Typed Object Model API represents the `skewY()` value of the individual transform property in CSS.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSSkewY)\n */\ninterface CSSSkewY extends CSSTransformComponent {\n /**\n * The **`ay`** property of the along the y-axis (or ordinate).\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSSkewY/ay)\n */\n ay: CSSNumericValue;\n}\n\ndeclare var CSSSkewY: {\n prototype: CSSSkewY;\n new(ay: CSSNumericValue): CSSSkewY;\n};\n\n/**\n * The **`CSSStyleValue`** interface of the CSS Typed Object Model API is the base class of all CSS values accessible through the Typed OM API.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSStyleValue)\n */\ninterface CSSStyleValue {\n toString(): string;\n}\n\ndeclare var CSSStyleValue: {\n prototype: CSSStyleValue;\n new(): CSSStyleValue;\n};\n\n/**\n * The **`CSSTransformComponent`** interface of the CSS Typed Object Model API is part of the CSSTransformValue interface.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSTransformComponent)\n */\ninterface CSSTransformComponent {\n /**\n * The **`is2D`** read-only property of the CSSTransformComponent interface indicates where the transform is 2D or 3D.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSTransformComponent/is2D)\n */\n is2D: boolean;\n /**\n * The **`toMatrix()`** method of the object.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSTransformComponent/toMatrix)\n */\n toMatrix(): DOMMatrix;\n toString(): string;\n}\n\ndeclare var CSSTransformComponent: {\n prototype: CSSTransformComponent;\n new(): CSSTransformComponent;\n};\n\n/**\n * The **`CSSTransformValue`** interface of the CSS Typed Object Model API represents `transform-list` values as used by the CSS transform property.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSTransformValue)\n */\ninterface CSSTransformValue extends CSSStyleValue {\n /**\n * The read-only **`is2D`** property of the In the case of the `CSSTransformValue` this property returns true unless any of the individual functions return false for `Is2D`, in which case it returns false.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSTransformValue/is2D)\n */\n readonly is2D: boolean;\n /**\n * The read-only **`length`** property of the the list.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSTransformValue/length)\n */\n readonly length: number;\n /**\n * The **`toMatrix()`** method of the ```js-nolint toMatrix() ``` None.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSTransformValue/toMatrix)\n */\n toMatrix(): DOMMatrix;\n forEach(callbackfn: (value: CSSTransformComponent, key: number, parent: CSSTransformValue) => void, thisArg?: any): void;\n [index: number]: CSSTransformComponent;\n}\n\ndeclare var CSSTransformValue: {\n prototype: CSSTransformValue;\n new(transforms: CSSTransformComponent[]): CSSTransformValue;\n};\n\n/**\n * The **`CSSTranslate`** interface of the CSS Typed Object Model API represents the translate() value of the individual transform property in CSS.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSTranslate)\n */\ninterface CSSTranslate extends CSSTransformComponent {\n /**\n * The **`x`** property of the translating vector.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSTranslate/x)\n */\n x: CSSNumericValue;\n /**\n * The **`y`** property of the translating vector.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSTranslate/y)\n */\n y: CSSNumericValue;\n /**\n * The **`z`** property of the vector.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSTranslate/z)\n */\n z: CSSNumericValue;\n}\n\ndeclare var CSSTranslate: {\n prototype: CSSTranslate;\n new(x: CSSNumericValue, y: CSSNumericValue, z?: CSSNumericValue): CSSTranslate;\n};\n\n/**\n * The **`CSSUnitValue`** interface of the CSS Typed Object Model API represents values that contain a single unit type.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSUnitValue)\n */\ninterface CSSUnitValue extends CSSNumericValue {\n /**\n * The **`CSSUnitValue.unit`** read-only property of the CSSUnitValue interface returns a string indicating the type of unit.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSUnitValue/unit)\n */\n readonly unit: string;\n /**\n * The **`CSSUnitValue.value`** property of the A double.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSUnitValue/value)\n */\n value: number;\n}\n\ndeclare var CSSUnitValue: {\n prototype: CSSUnitValue;\n new(value: number, unit: string): CSSUnitValue;\n};\n\n/**\n * The **`CSSUnparsedValue`** interface of the CSS Typed Object Model API represents property values that reference custom properties.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSUnparsedValue)\n */\ninterface CSSUnparsedValue extends CSSStyleValue {\n /**\n * The **`length`** read-only property of the An integer.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSUnparsedValue/length)\n */\n readonly length: number;\n forEach(callbackfn: (value: CSSUnparsedSegment, key: number, parent: CSSUnparsedValue) => void, thisArg?: any): void;\n [index: number]: CSSUnparsedSegment;\n}\n\ndeclare var CSSUnparsedValue: {\n prototype: CSSUnparsedValue;\n new(members: CSSUnparsedSegment[]): CSSUnparsedValue;\n};\n\n/**\n * The **`CSSVariableReferenceValue`** interface of the CSS Typed Object Model API allows you to create a custom name for a built-in CSS value.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSVariableReferenceValue)\n */\ninterface CSSVariableReferenceValue {\n /**\n * The **`fallback`** read-only property of the A CSSUnparsedValue.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSVariableReferenceValue/fallback)\n */\n readonly fallback: CSSUnparsedValue | null;\n /**\n * The **`variable`** property of the A string beginning with `--` (that is, a custom property name).\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSVariableReferenceValue/variable)\n */\n variable: string;\n}\n\ndeclare var CSSVariableReferenceValue: {\n prototype: CSSVariableReferenceValue;\n new(variable: string, fallback?: CSSUnparsedValue | null): CSSVariableReferenceValue;\n};\n\n/**\n * The **`Cache`** interface provides a persistent storage mechanism for Request / Response object pairs that are cached in long lived memory.\n * Available only in secure contexts.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Cache)\n */\ninterface Cache {\n /**\n * The **`add()`** method of the Cache interface takes a URL, retrieves it, and adds the resulting response object to the given cache.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Cache/add)\n */\n add(request: RequestInfo | URL): Promise<void>;\n /**\n * The **`addAll()`** method of the Cache interface takes an array of URLs, retrieves them, and adds the resulting response objects to the given cache.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Cache/addAll)\n */\n addAll(requests: RequestInfo[]): Promise<void>;\n /**\n * The **`delete()`** method of the Cache interface finds the Cache entry whose key is the request, and if found, deletes the Cache entry and returns a Promise that resolves to `true`.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Cache/delete)\n */\n delete(request: RequestInfo | URL, options?: CacheQueryOptions): Promise<boolean>;\n /**\n * The **`keys()`** method of the Cache interface returns a representing the keys of the Cache.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Cache/keys)\n */\n keys(request?: RequestInfo | URL, options?: CacheQueryOptions): Promise<ReadonlyArray<Request>>;\n /**\n * The **`match()`** method of the Cache interface returns a Promise that resolves to the Response associated with the first matching request in the Cache object.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Cache/match)\n */\n match(request: RequestInfo | URL, options?: CacheQueryOptions): Promise<Response | undefined>;\n /**\n * The **`matchAll()`** method of the Cache interface returns a Promise that resolves to an array of all matching responses in the Cache object.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Cache/matchAll)\n */\n matchAll(request?: RequestInfo | URL, options?: CacheQueryOptions): Promise<ReadonlyArray<Response>>;\n /**\n * The **`put()`** method of the Often, you will just want to Window/fetch one or more requests, then add the result straight to your cache.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Cache/put)\n */\n put(request: RequestInfo | URL, response: Response): Promise<void>;\n}\n\ndeclare var Cache: {\n prototype: Cache;\n new(): Cache;\n};\n\n/**\n * The **`CacheStorage`** interface represents the storage for Cache objects.\n * Available only in secure contexts.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CacheStorage)\n */\ninterface CacheStorage {\n /**\n * The **`delete()`** method of the CacheStorage interface finds the Cache object matching the `cacheName`, and if found, deletes the Cache object and returns a Promise that resolves to `true`.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CacheStorage/delete)\n */\n delete(cacheName: string): Promise<boolean>;\n /**\n * The **`has()`** method of the CacheStorage interface returns a Promise that resolves to `true` if a You can access `CacheStorage` through the Window.caches property in windows or through the WorkerGlobalScope.caches property in workers.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CacheStorage/has)\n */\n has(cacheName: string): Promise<boolean>;\n /**\n * The **`keys()`** method of the CacheStorage interface returns a Promise that will resolve with an array containing strings corresponding to all of the named Cache objects tracked by the CacheStorage object in the order they were created.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CacheStorage/keys)\n */\n keys(): Promise<string[]>;\n /**\n * The **`match()`** method of the CacheStorage interface checks if a given Request or URL string is a key for a stored Response.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CacheStorage/match)\n */\n match(request: RequestInfo | URL, options?: MultiCacheQueryOptions): Promise<Response | undefined>;\n /**\n * The **`open()`** method of the the Cache object matching the `cacheName`.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CacheStorage/open)\n */\n open(cacheName: string): Promise<Cache>;\n}\n\ndeclare var CacheStorage: {\n prototype: CacheStorage;\n new(): CacheStorage;\n};\n\ninterface CanvasCompositing {\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/globalAlpha) */\n globalAlpha: number;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/globalCompositeOperation) */\n globalCompositeOperation: GlobalCompositeOperation;\n}\n\ninterface CanvasDrawImage {\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/drawImage) */\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 /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/beginPath) */\n beginPath(): void;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/clip) */\n clip(fillRule?: CanvasFillRule): void;\n clip(path: Path2D, fillRule?: CanvasFillRule): void;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/fill) */\n fill(fillRule?: CanvasFillRule): void;\n fill(path: Path2D, fillRule?: CanvasFillRule): void;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/isPointInPath) */\n isPointInPath(x: number, y: number, fillRule?: CanvasFillRule): boolean;\n isPointInPath(path: Path2D, x: number, y: number, fillRule?: CanvasFillRule): boolean;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/isPointInStroke) */\n isPointInStroke(x: number, y: number): boolean;\n isPointInStroke(path: Path2D, x: number, y: number): boolean;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/stroke) */\n stroke(): void;\n stroke(path: Path2D): void;\n}\n\ninterface CanvasFillStrokeStyles {\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/fillStyle) */\n fillStyle: string | CanvasGradient | CanvasPattern;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/strokeStyle) */\n strokeStyle: string | CanvasGradient | CanvasPattern;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/createConicGradient) */\n createConicGradient(startAngle: number, x: number, y: number): CanvasGradient;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/createLinearGradient) */\n createLinearGradient(x0: number, y0: number, x1: number, y1: number): CanvasGradient;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/createPattern) */\n createPattern(image: CanvasImageSource, repetition: string | null): CanvasPattern | null;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/createRadialGradient) */\n createRadialGradient(x0: number, y0: number, r0: number, x1: number, y1: number, r1: number): CanvasGradient;\n}\n\ninterface CanvasFilters {\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/filter) */\n filter: string;\n}\n\n/**\n * The **`CanvasGradient`** interface represents an opaque object describing a gradient.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasGradient)\n */\ninterface CanvasGradient {\n /**\n * The **`CanvasGradient.addColorStop()`** method adds a new color stop, defined by an `offset` and a `color`, to a given canvas gradient.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasGradient/addColorStop)\n */\n addColorStop(offset: number, color: string): void;\n}\n\ndeclare var CanvasGradient: {\n prototype: CanvasGradient;\n new(): CanvasGradient;\n};\n\ninterface CanvasImageData {\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/createImageData) */\n createImageData(sw: number, sh: number, settings?: ImageDataSettings): ImageData;\n createImageData(imageData: ImageData): ImageData;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/getImageData) */\n getImageData(sx: number, sy: number, sw: number, sh: number, settings?: ImageDataSettings): ImageData;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/putImageData) */\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 /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/imageSmoothingEnabled) */\n imageSmoothingEnabled: boolean;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/imageSmoothingQuality) */\n imageSmoothingQuality: ImageSmoothingQuality;\n}\n\ninterface CanvasPath {\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/arc) */\n arc(x: number, y: number, radius: number, startAngle: number, endAngle: number, counterclockwise?: boolean): void;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/arcTo) */\n arcTo(x1: number, y1: number, x2: number, y2: number, radius: number): void;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/bezierCurveTo) */\n bezierCurveTo(cp1x: number, cp1y: number, cp2x: number, cp2y: number, x: number, y: number): void;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/closePath) */\n closePath(): void;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/ellipse) */\n ellipse(x: number, y: number, radiusX: number, radiusY: number, rotation: number, startAngle: number, endAngle: number, counterclockwise?: boolean): void;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/lineTo) */\n lineTo(x: number, y: number): void;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/moveTo) */\n moveTo(x: number, y: number): void;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/quadraticCurveTo) */\n quadraticCurveTo(cpx: number, cpy: number, x: number, y: number): void;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/rect) */\n rect(x: number, y: number, w: number, h: number): void;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/roundRect) */\n roundRect(x: number, y: number, w: number, h: number, radii?: number | DOMPointInit | (number | DOMPointInit)[]): void;\n}\n\ninterface CanvasPathDrawingStyles {\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/lineCap) */\n lineCap: CanvasLineCap;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/lineDashOffset) */\n lineDashOffset: number;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/lineJoin) */\n lineJoin: CanvasLineJoin;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/lineWidth) */\n lineWidth: number;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/miterLimit) */\n miterLimit: number;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/getLineDash) */\n getLineDash(): number[];\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/setLineDash) */\n setLineDash(segments: number[]): void;\n}\n\n/**\n * The **`CanvasPattern`** interface represents an opaque object describing a pattern, based on an image, a canvas, or a video, created by the CanvasRenderingContext2D.createPattern() method.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasPattern)\n */\ninterface CanvasPattern {\n /**\n * The **`CanvasPattern.setTransform()`** method uses a DOMMatrix object as the pattern\'s transformation matrix and invokes it on the pattern.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasPattern/setTransform)\n */\n setTransform(transform?: DOMMatrix2DInit): void;\n}\n\ndeclare var CanvasPattern: {\n prototype: CanvasPattern;\n new(): CanvasPattern;\n};\n\ninterface CanvasRect {\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/clearRect) */\n clearRect(x: number, y: number, w: number, h: number): void;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/fillRect) */\n fillRect(x: number, y: number, w: number, h: number): void;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/strokeRect) */\n strokeRect(x: number, y: number, w: number, h: number): void;\n}\n\ninterface CanvasShadowStyles {\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/shadowBlur) */\n shadowBlur: number;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/shadowColor) */\n shadowColor: string;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/shadowOffsetX) */\n shadowOffsetX: number;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/shadowOffsetY) */\n shadowOffsetY: number;\n}\n\ninterface CanvasState {\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/isContextLost) */\n isContextLost(): boolean;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/reset) */\n reset(): void;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/restore) */\n restore(): void;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/save) */\n save(): void;\n}\n\ninterface CanvasText {\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/fillText) */\n fillText(text: string, x: number, y: number, maxWidth?: number): void;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/measureText) */\n measureText(text: string): TextMetrics;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/strokeText) */\n strokeText(text: string, x: number, y: number, maxWidth?: number): void;\n}\n\ninterface CanvasTextDrawingStyles {\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/direction) */\n direction: CanvasDirection;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/font) */\n font: string;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/fontKerning) */\n fontKerning: CanvasFontKerning;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/fontStretch) */\n fontStretch: CanvasFontStretch;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/fontVariantCaps) */\n fontVariantCaps: CanvasFontVariantCaps;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/letterSpacing) */\n letterSpacing: string;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/textAlign) */\n textAlign: CanvasTextAlign;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/textBaseline) */\n textBaseline: CanvasTextBaseline;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/textRendering) */\n textRendering: CanvasTextRendering;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/wordSpacing) */\n wordSpacing: string;\n}\n\ninterface CanvasTransform {\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/getTransform) */\n getTransform(): DOMMatrix;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/resetTransform) */\n resetTransform(): void;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/rotate) */\n rotate(angle: number): void;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/scale) */\n scale(x: number, y: number): void;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/setTransform) */\n setTransform(a: number, b: number, c: number, d: number, e: number, f: number): void;\n setTransform(transform?: DOMMatrix2DInit): void;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/transform) */\n transform(a: number, b: number, c: number, d: number, e: number, f: number): void;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/translate) */\n translate(x: number, y: number): void;\n}\n\n/**\n * The `Client` interface represents an executable context such as a Worker, or a SharedWorker.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Client)\n */\ninterface Client {\n /**\n * The **`frameType`** read-only property of the Client interface indicates the type of browsing context of the current Client.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Client/frameType)\n */\n readonly frameType: FrameType;\n /**\n * The **`id`** read-only property of the Client interface returns the universally unique identifier of the Client object.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Client/id)\n */\n readonly id: string;\n /**\n * The **`type`** read-only property of the Client interface indicates the type of client the service worker is controlling.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Client/type)\n */\n readonly type: ClientTypes;\n /**\n * The **`url`** read-only property of the Client interface returns the URL of the current service worker client.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Client/url)\n */\n readonly url: string;\n /**\n * The **`postMessage()`** method of the (a Window, Worker, or SharedWorker).\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Client/postMessage)\n */\n postMessage(message: any, transfer: Transferable[]): void;\n postMessage(message: any, options?: StructuredSerializeOptions): void;\n}\n\ndeclare var Client: {\n prototype: Client;\n new(): Client;\n};\n\n/**\n * The `Clients` interface provides access to Client objects.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Clients)\n */\ninterface Clients {\n /**\n * The **`claim()`** method of the Clients interface allows an active service worker to set itself as the ServiceWorkerContainer.controller for all clients within its ServiceWorkerRegistration.scope.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Clients/claim)\n */\n claim(): Promise<void>;\n /**\n * The **`get()`** method of the `id` and returns it in a Promise.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Clients/get)\n */\n get(id: string): Promise<Client | undefined>;\n /**\n * The **`matchAll()`** method of the Clients interface returns a Promise for a list of service worker clients whose origin is the same as the associated service worker\'s origin.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Clients/matchAll)\n */\n matchAll<T extends ClientQueryOptions>(options?: T): Promise<ReadonlyArray<T["type"] extends "window" ? WindowClient : Client>>;\n /**\n * The **`openWindow()`** method of the Clients interface creates a new top level browsing context and loads a given URL.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Clients/openWindow)\n */\n openWindow(url: string | URL): Promise<WindowClient | null>;\n}\n\ndeclare var Clients: {\n prototype: Clients;\n new(): Clients;\n};\n\n/**\n * A `CloseEvent` is sent to clients using WebSockets when the connection is closed.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CloseEvent)\n */\ninterface CloseEvent extends Event {\n /**\n * The **`code`** read-only property of the CloseEvent interface returns a WebSocket connection close code indicating the reason the connection was closed.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CloseEvent/code)\n */\n readonly code: number;\n /**\n * The **`reason`** read-only property of the CloseEvent interface returns the WebSocket connection close reason the server gave for closing the connection; that is, a concise human-readable prose explanation for the closure.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CloseEvent/reason)\n */\n readonly reason: string;\n /**\n * The **`wasClean`** read-only property of the CloseEvent interface returns `true` if the connection closed cleanly.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CloseEvent/wasClean)\n */\n readonly wasClean: boolean;\n}\n\ndeclare var CloseEvent: {\n prototype: CloseEvent;\n new(type: string, eventInitDict?: CloseEventInit): CloseEvent;\n};\n\n/**\n * The **`CompressionStream`** interface of the Compression Streams API is an API for compressing a stream of data.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CompressionStream)\n */\ninterface CompressionStream extends GenericTransformStream {\n readonly readable: ReadableStream<Uint8Array<ArrayBuffer>>;\n readonly writable: WritableStream<BufferSource>;\n}\n\ndeclare var CompressionStream: {\n prototype: CompressionStream;\n new(format: CompressionFormat): CompressionStream;\n};\n\n/**\n * The **`CookieStore`** interface of the Cookie Store API provides methods for getting and setting cookies asynchronously from either a page or a service worker.\n * Available only in secure contexts.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CookieStore)\n */\ninterface CookieStore extends EventTarget {\n /**\n * The **`delete()`** method of the CookieStore interface deletes a cookie that matches the given `name` or `options` object.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CookieStore/delete)\n */\n delete(name: string): Promise<void>;\n delete(options: CookieStoreDeleteOptions): Promise<void>;\n /**\n * The **`get()`** method of the CookieStore interface returns a Promise that resolves to a single cookie matching the given `name` or `options` object.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CookieStore/get)\n */\n get(name: string): Promise<CookieListItem | null>;\n get(options?: CookieStoreGetOptions): Promise<CookieListItem | null>;\n /**\n * The **`getAll()`** method of the CookieStore interface returns a Promise that resolves as an array of cookies that match the `name` or `options` passed to it.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CookieStore/getAll)\n */\n getAll(name: string): Promise<CookieList>;\n getAll(options?: CookieStoreGetOptions): Promise<CookieList>;\n /**\n * The **`set()`** method of the CookieStore interface sets a cookie with the given `name` and `value` or `options` object.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CookieStore/set)\n */\n set(name: string, value: string): Promise<void>;\n set(options: CookieInit): Promise<void>;\n}\n\ndeclare var CookieStore: {\n prototype: CookieStore;\n new(): CookieStore;\n};\n\n/**\n * The **`CookieStoreManager`** interface of the Cookie Store API allows service workers to subscribe to cookie change events.\n * Available only in secure contexts.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CookieStoreManager)\n */\ninterface CookieStoreManager {\n /**\n * The **`getSubscriptions()`** method of the CookieStoreManager interface returns a list of all the cookie change subscriptions for this ServiceWorkerRegistration.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CookieStoreManager/getSubscriptions)\n */\n getSubscriptions(): Promise<CookieStoreGetOptions[]>;\n /**\n * The **`subscribe()`** method of the CookieStoreManager interface subscribes a ServiceWorkerRegistration to cookie change events.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CookieStoreManager/subscribe)\n */\n subscribe(subscriptions: CookieStoreGetOptions[]): Promise<void>;\n /**\n * The **`unsubscribe()`** method of the CookieStoreManager interface stops the ServiceWorkerRegistration from receiving previously subscribed events.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CookieStoreManager/unsubscribe)\n */\n unsubscribe(subscriptions: CookieStoreGetOptions[]): Promise<void>;\n}\n\ndeclare var CookieStoreManager: {\n prototype: CookieStoreManager;\n new(): CookieStoreManager;\n};\n\n/**\n * The **`CountQueuingStrategy`** interface of the Streams API provides a built-in chunk counting queuing strategy that can be used when constructing streams.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CountQueuingStrategy)\n */\ninterface CountQueuingStrategy extends QueuingStrategy {\n /**\n * The read-only **`CountQueuingStrategy.highWaterMark`** property returns the total number of chunks that can be contained in the internal queue before backpressure is applied.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CountQueuingStrategy/highWaterMark)\n */\n readonly highWaterMark: number;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CountQueuingStrategy/size) */\n readonly size: QueuingStrategySize;\n}\n\ndeclare var CountQueuingStrategy: {\n prototype: CountQueuingStrategy;\n new(init: QueuingStrategyInit): CountQueuingStrategy;\n};\n\n/**\n * The **`Crypto`** interface represents basic cryptography features available in the current context.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Crypto)\n */\ninterface Crypto {\n /**\n * The **`Crypto.subtle`** read-only property returns a cryptographic operations.\n * Available only in secure contexts.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Crypto/subtle)\n */\n readonly subtle: SubtleCrypto;\n /**\n * The **`Crypto.getRandomValues()`** method lets you get cryptographically strong random values.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Crypto/getRandomValues)\n */\n getRandomValues<T extends ArrayBufferView>(array: T): T;\n /**\n * The **`randomUUID()`** method of the Crypto interface is used to generate a v4 UUID using a cryptographically secure random number generator.\n * Available only in secure contexts.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Crypto/randomUUID)\n */\n randomUUID(): `${string}-${string}-${string}-${string}-${string}`;\n}\n\ndeclare var Crypto: {\n prototype: Crypto;\n new(): Crypto;\n};\n\n/**\n * The **`CryptoKey`** interface of the Web Crypto API represents a cryptographic key obtained from one of the SubtleCrypto methods SubtleCrypto.generateKey, SubtleCrypto.deriveKey, SubtleCrypto.importKey, or SubtleCrypto.unwrapKey.\n * Available only in secure contexts.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CryptoKey)\n */\ninterface CryptoKey {\n /**\n * The read-only **`algorithm`** property of the CryptoKey interface returns an object describing the algorithm for which this key can be used, and any associated extra parameters.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CryptoKey/algorithm)\n */\n readonly algorithm: KeyAlgorithm;\n /**\n * The read-only **`extractable`** property of the CryptoKey interface indicates whether or not the key may be extracted using `SubtleCrypto.exportKey()` or `SubtleCrypto.wrapKey()`.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CryptoKey/extractable)\n */\n readonly extractable: boolean;\n /**\n * The read-only **`type`** property of the CryptoKey interface indicates which kind of key is represented by the object.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CryptoKey/type)\n */\n readonly type: KeyType;\n /**\n * The read-only **`usages`** property of the CryptoKey interface indicates what can be done with the key.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CryptoKey/usages)\n */\n readonly usages: KeyUsage[];\n}\n\ndeclare var CryptoKey: {\n prototype: CryptoKey;\n new(): CryptoKey;\n};\n\n/**\n * The **`CustomEvent`** interface represents events initialized by an application for any purpose.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CustomEvent)\n */\ninterface CustomEvent<T = any> extends Event {\n /**\n * The read-only **`detail`** property of the CustomEvent interface returns any data passed when initializing the event.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CustomEvent/detail)\n */\n readonly detail: T;\n /**\n * The **`CustomEvent.initCustomEvent()`** method initializes a CustomEvent object.\n * @deprecated\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CustomEvent/initCustomEvent)\n */\n initCustomEvent(type: string, bubbles?: boolean, cancelable?: boolean, detail?: T): void;\n}\n\ndeclare var CustomEvent: {\n prototype: CustomEvent;\n new<T>(type: string, eventInitDict?: CustomEventInit<T>): CustomEvent<T>;\n};\n\n/**\n * The **`DOMException`** interface represents an abnormal event (called an **exception**) that occurs as a result of calling a method or accessing a property of a web API.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMException)\n */\ninterface DOMException extends Error {\n /**\n * The **`code`** read-only property of the DOMException interface returns one of the legacy error code constants, or `0` if none match.\n * @deprecated\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMException/code)\n */\n readonly code: number;\n /**\n * The **`message`** read-only property of the a message or description associated with the given error name.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMException/message)\n */\n readonly message: string;\n /**\n * The **`name`** read-only property of the one of the strings associated with an error name.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMException/name)\n */\n readonly name: string;\n readonly INDEX_SIZE_ERR: 1;\n readonly DOMSTRING_SIZE_ERR: 2;\n readonly HIERARCHY_REQUEST_ERR: 3;\n readonly WRONG_DOCUMENT_ERR: 4;\n readonly INVALID_CHARACTER_ERR: 5;\n readonly NO_DATA_ALLOWED_ERR: 6;\n readonly NO_MODIFICATION_ALLOWED_ERR: 7;\n readonly NOT_FOUND_ERR: 8;\n readonly NOT_SUPPORTED_ERR: 9;\n readonly INUSE_ATTRIBUTE_ERR: 10;\n readonly INVALID_STATE_ERR: 11;\n readonly SYNTAX_ERR: 12;\n readonly INVALID_MODIFICATION_ERR: 13;\n readonly NAMESPACE_ERR: 14;\n readonly INVALID_ACCESS_ERR: 15;\n readonly VALIDATION_ERR: 16;\n readonly TYPE_MISMATCH_ERR: 17;\n readonly SECURITY_ERR: 18;\n readonly NETWORK_ERR: 19;\n readonly ABORT_ERR: 20;\n readonly URL_MISMATCH_ERR: 21;\n readonly QUOTA_EXCEEDED_ERR: 22;\n readonly TIMEOUT_ERR: 23;\n readonly INVALID_NODE_TYPE_ERR: 24;\n readonly DATA_CLONE_ERR: 25;\n}\n\ndeclare var DOMException: {\n prototype: DOMException;\n new(message?: string, name?: string): DOMException;\n readonly INDEX_SIZE_ERR: 1;\n readonly DOMSTRING_SIZE_ERR: 2;\n readonly HIERARCHY_REQUEST_ERR: 3;\n readonly WRONG_DOCUMENT_ERR: 4;\n readonly INVALID_CHARACTER_ERR: 5;\n readonly NO_DATA_ALLOWED_ERR: 6;\n readonly NO_MODIFICATION_ALLOWED_ERR: 7;\n readonly NOT_FOUND_ERR: 8;\n readonly NOT_SUPPORTED_ERR: 9;\n readonly INUSE_ATTRIBUTE_ERR: 10;\n readonly INVALID_STATE_ERR: 11;\n readonly SYNTAX_ERR: 12;\n readonly INVALID_MODIFICATION_ERR: 13;\n readonly NAMESPACE_ERR: 14;\n readonly INVALID_ACCESS_ERR: 15;\n readonly VALIDATION_ERR: 16;\n readonly TYPE_MISMATCH_ERR: 17;\n readonly SECURITY_ERR: 18;\n readonly NETWORK_ERR: 19;\n readonly ABORT_ERR: 20;\n readonly URL_MISMATCH_ERR: 21;\n readonly QUOTA_EXCEEDED_ERR: 22;\n readonly TIMEOUT_ERR: 23;\n readonly INVALID_NODE_TYPE_ERR: 24;\n readonly DATA_CLONE_ERR: 25;\n};\n\n/**\n * The **`DOMMatrix`** interface represents 4×4 matrices, suitable for 2D and 3D operations including rotation and translation.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrix)\n */\ninterface DOMMatrix extends DOMMatrixReadOnly {\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrix#instance_properties) */\n a: number;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrix#instance_properties) */\n b: number;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrix#instance_properties) */\n c: number;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrix#instance_properties) */\n d: number;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrix#instance_properties) */\n e: number;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrix#instance_properties) */\n f: number;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrix#instance_properties) */\n m11: number;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrix#instance_properties) */\n m12: number;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrix#instance_properties) */\n m13: number;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrix#instance_properties) */\n m14: number;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrix#instance_properties) */\n m21: number;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrix#instance_properties) */\n m22: number;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrix#instance_properties) */\n m23: number;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrix#instance_properties) */\n m24: number;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrix#instance_properties) */\n m31: number;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrix#instance_properties) */\n m32: number;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrix#instance_properties) */\n m33: number;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrix#instance_properties) */\n m34: number;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrix#instance_properties) */\n m41: number;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrix#instance_properties) */\n m42: number;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrix#instance_properties) */\n m43: number;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrix#instance_properties) */\n m44: number;\n /**\n * The **`invertSelf()`** method of the DOMMatrix interface inverts the original matrix.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrix/invertSelf)\n */\n invertSelf(): DOMMatrix;\n /**\n * The **`multiplySelf()`** method of the DOMMatrix interface multiplies a matrix by the `otherMatrix` parameter, computing the dot product of the original matrix and the specified matrix: `A⋅B`.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrix/multiplySelf)\n */\n multiplySelf(other?: DOMMatrixInit): DOMMatrix;\n /**\n * The **`preMultiplySelf()`** method of the DOMMatrix interface modifies the matrix by pre-multiplying it with the specified `DOMMatrix`.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrix/preMultiplySelf)\n */\n preMultiplySelf(other?: DOMMatrixInit): DOMMatrix;\n /**\n * The `rotateAxisAngleSelf()` method of the DOMMatrix interface is a transformation method that rotates the source matrix by the given vector and angle, returning the altered matrix.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrix/rotateAxisAngleSelf)\n */\n rotateAxisAngleSelf(x?: number, y?: number, z?: number, angle?: number): DOMMatrix;\n /**\n * The `rotateFromVectorSelf()` method of the DOMMatrix interface is a mutable transformation method that modifies a matrix by rotating the matrix by the angle between the specified vector and `(1, 0)`.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrix/rotateFromVectorSelf)\n */\n rotateFromVectorSelf(x?: number, y?: number): DOMMatrix;\n /**\n * The `rotateSelf()` method of the DOMMatrix interface is a mutable transformation method that modifies a matrix.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrix/rotateSelf)\n */\n rotateSelf(rotX?: number, rotY?: number, rotZ?: number): DOMMatrix;\n /**\n * The **`scale3dSelf()`** method of the DOMMatrix interface is a mutable transformation method that modifies a matrix by applying a specified scaling factor to all three axes, centered on the given origin, with a default origin of `(0, 0, 0)`, returning the 3D-scaled matrix.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrix/scale3dSelf)\n */\n scale3dSelf(scale?: number, originX?: number, originY?: number, originZ?: number): DOMMatrix;\n /**\n * The **`scaleSelf()`** method of the DOMMatrix interface is a mutable transformation method that modifies a matrix by applying a specified scaling factor, centered on the given origin, with a default origin of `(0, 0)`, returning the scaled matrix.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrix/scaleSelf)\n */\n scaleSelf(scaleX?: number, scaleY?: number, scaleZ?: number, originX?: number, originY?: number, originZ?: number): DOMMatrix;\n /**\n * The `skewXSelf()` method of the DOMMatrix interface is a mutable transformation method that modifies a matrix.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrix/skewXSelf)\n */\n skewXSelf(sx?: number): DOMMatrix;\n /**\n * The `skewYSelf()` method of the DOMMatrix interface is a mutable transformation method that modifies a matrix.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrix/skewYSelf)\n */\n skewYSelf(sy?: number): DOMMatrix;\n /**\n * The `translateSelf()` method of the DOMMatrix interface is a mutable transformation method that modifies a matrix.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrix/translateSelf)\n */\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<ArrayBuffer>): DOMMatrix;\n fromFloat64Array(array64: Float64Array<ArrayBuffer>): DOMMatrix;\n fromMatrix(other?: DOMMatrixInit): DOMMatrix;\n};\n\n/**\n * The **`DOMMatrixReadOnly`** interface represents a read-only 4×4 matrix, suitable for 2D and 3D operations.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrixReadOnly)\n */\ninterface DOMMatrixReadOnly {\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrixReadOnly#instance_properties) */\n readonly a: number;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrixReadOnly#instance_properties) */\n readonly b: number;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrixReadOnly#instance_properties) */\n readonly c: number;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrixReadOnly#instance_properties) */\n readonly d: number;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrixReadOnly#instance_properties) */\n readonly e: number;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrixReadOnly#instance_properties) */\n readonly f: number;\n /**\n * The readonly **`is2D`** property of the DOMMatrixReadOnly interface is a Boolean flag that is `true` when the matrix is 2D.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrixReadOnly/is2D)\n */\n readonly is2D: boolean;\n /**\n * The readonly **`isIdentity`** property of the DOMMatrixReadOnly interface is a Boolean whose value is `true` if the matrix is the identity matrix.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrixReadOnly/isIdentity)\n */\n readonly isIdentity: boolean;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrixReadOnly#instance_properties) */\n readonly m11: number;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrixReadOnly#instance_properties) */\n readonly m12: number;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrixReadOnly#instance_properties) */\n readonly m13: number;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrixReadOnly#instance_properties) */\n readonly m14: number;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrixReadOnly#instance_properties) */\n readonly m21: number;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrixReadOnly#instance_properties) */\n readonly m22: number;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrixReadOnly#instance_properties) */\n readonly m23: number;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrixReadOnly#instance_properties) */\n readonly m24: number;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrixReadOnly#instance_properties) */\n readonly m31: number;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrixReadOnly#instance_properties) */\n readonly m32: number;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrixReadOnly#instance_properties) */\n readonly m33: number;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrixReadOnly#instance_properties) */\n readonly m34: number;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrixReadOnly#instance_properties) */\n readonly m41: number;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrixReadOnly#instance_properties) */\n readonly m42: number;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrixReadOnly#instance_properties) */\n readonly m43: number;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrixReadOnly#instance_properties) */\n readonly m44: number;\n /**\n * The **`flipX()`** method of the DOMMatrixReadOnly interface creates a new matrix being the result of the original matrix flipped about the x-axis.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrixReadOnly/flipX)\n */\n flipX(): DOMMatrix;\n /**\n * The **`flipY()`** method of the DOMMatrixReadOnly interface creates a new matrix being the result of the original matrix flipped about the y-axis.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrixReadOnly/flipY)\n */\n flipY(): DOMMatrix;\n /**\n * The **`inverse()`** method of the DOMMatrixReadOnly interface creates a new matrix which is the inverse of the original matrix.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrixReadOnly/inverse)\n */\n inverse(): DOMMatrix;\n /**\n * The **`multiply()`** method of the DOMMatrixReadOnly interface creates and returns a new matrix which is the dot product of the matrix and the `otherMatrix` parameter.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrixReadOnly/multiply)\n */\n multiply(other?: DOMMatrixInit): DOMMatrix;\n /**\n * The `rotate()` method of the DOMMatrixReadOnly interface returns a new DOMMatrix created by rotating the source matrix around each of its axes by the specified number of degrees.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrixReadOnly/rotate)\n */\n rotate(rotX?: number, rotY?: number, rotZ?: number): DOMMatrix;\n /**\n * The `rotateAxisAngle()` method of the DOMMatrixReadOnly interface returns a new DOMMatrix created by rotating the source matrix by the given vector and angle.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrixReadOnly/rotateAxisAngle)\n */\n rotateAxisAngle(x?: number, y?: number, z?: number, angle?: number): DOMMatrix;\n /**\n * The `rotateFromVector()` method of the DOMMatrixReadOnly interface is returns a new DOMMatrix created by rotating the source matrix by the angle between the specified vector and `(1, 0)`.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrixReadOnly/rotateFromVector)\n */\n rotateFromVector(x?: number, y?: number): DOMMatrix;\n /**\n * The **`scale()`** method of the original matrix with a scale transform applied.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrixReadOnly/scale)\n */\n scale(scaleX?: number, scaleY?: number, scaleZ?: number, originX?: number, originY?: number, originZ?: number): DOMMatrix;\n /**\n * The **`scale3d()`** method of the DOMMatrixReadOnly interface creates a new matrix which is the result of a 3D scale transform being applied to the matrix.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrixReadOnly/scale3d)\n */\n scale3d(scale?: number, originX?: number, originY?: number, originZ?: number): DOMMatrix;\n /** @deprecated */\n scaleNonUniform(scaleX?: number, scaleY?: number): DOMMatrix;\n /**\n * The `skewX()` method of the DOMMatrixReadOnly interface returns a new DOMMatrix created by applying the specified skew transformation to the source matrix along its x-axis.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrixReadOnly/skewX)\n */\n skewX(sx?: number): DOMMatrix;\n /**\n * The `skewY()` method of the DOMMatrixReadOnly interface returns a new DOMMatrix created by applying the specified skew transformation to the source matrix along its y-axis.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrixReadOnly/skewY)\n */\n skewY(sy?: number): DOMMatrix;\n /**\n * The **`toFloat32Array()`** method of the DOMMatrixReadOnly interface returns a new Float32Array containing all 16 elements (`m11`, `m12`, `m13`, `m14`, `m21`, `m22`, `m23`, `m24`, `m31`, `m32`, `m33`, `m34`, `m41`, `m42`, `m43`, `m44`) which comprise the matrix.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrixReadOnly/toFloat32Array)\n */\n toFloat32Array(): Float32Array<ArrayBuffer>;\n /**\n * The **`toFloat64Array()`** method of the DOMMatrixReadOnly interface returns a new Float64Array containing all 16 elements (`m11`, `m12`, `m13`, `m14`, `m21`, `m22`, `m23`, `m24`, `m31`, `m32`, `m33`, `m34`, `m41`, `m42`, `m43`, `m44`) which comprise the matrix.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrixReadOnly/toFloat64Array)\n */\n toFloat64Array(): Float64Array<ArrayBuffer>;\n /**\n * The **`toJSON()`** method of the DOMMatrixReadOnly interface creates and returns a JSON object.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrixReadOnly/toJSON)\n */\n toJSON(): any;\n /**\n * The **`transformPoint`** method of the You can also create a new `DOMPoint` by applying a matrix to a point with the DOMPointReadOnly.matrixTransform() method.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrixReadOnly/transformPoint)\n */\n transformPoint(point?: DOMPointInit): DOMPoint;\n /**\n * The `translate()` method of the DOMMatrixReadOnly interface creates a new matrix being the result of the original matrix with a translation applied.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrixReadOnly/translate)\n */\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<ArrayBuffer>): DOMMatrixReadOnly;\n fromFloat64Array(array64: Float64Array<ArrayBuffer>): DOMMatrixReadOnly;\n fromMatrix(other?: DOMMatrixInit): DOMMatrixReadOnly;\n};\n\n/**\n * A **`DOMPoint`** object represents a 2D or 3D point in a coordinate system; it includes values for the coordinates in up to three dimensions, as well as an optional perspective value.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMPoint)\n */\ninterface DOMPoint extends DOMPointReadOnly {\n /**\n * The **`DOMPoint`** interface\'s **`w`** property holds the point\'s perspective value, w, for a point in space.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMPoint/w)\n */\n w: number;\n /**\n * The **`DOMPoint`** interface\'s **`x`** property holds the horizontal coordinate, x, for a point in space.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMPoint/x)\n */\n x: number;\n /**\n * The **`DOMPoint`** interface\'s **`y`** property holds the vertical coordinate, _y_, for a point in space.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMPoint/y)\n */\n y: number;\n /**\n * The **`DOMPoint`** interface\'s **`z`** property specifies the depth coordinate of a point in space.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMPoint/z)\n */\n z: number;\n}\n\ndeclare var DOMPoint: {\n prototype: DOMPoint;\n new(x?: number, y?: number, z?: number, w?: number): DOMPoint;\n /**\n * The **`fromPoint()`** static method of the DOMPoint interface creates and returns a new mutable `DOMPoint` object given a source point.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMPoint/fromPoint_static)\n */\n fromPoint(other?: DOMPointInit): DOMPoint;\n};\n\n/**\n * The **`DOMPointReadOnly`** interface specifies the coordinate and perspective fields used by DOMPoint to define a 2D or 3D point in a coordinate system.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMPointReadOnly)\n */\ninterface DOMPointReadOnly {\n /**\n * The **`DOMPointReadOnly`** interface\'s **`w`** property holds the point\'s perspective value, `w`, for a read-only point in space.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMPointReadOnly/w)\n */\n readonly w: number;\n /**\n * The **`DOMPointReadOnly`** interface\'s **`x`** property holds the horizontal coordinate, x, for a read-only point in space.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMPointReadOnly/x)\n */\n readonly x: number;\n /**\n * The **`DOMPointReadOnly`** interface\'s **`y`** property holds the vertical coordinate, y, for a read-only point in space.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMPointReadOnly/y)\n */\n readonly y: number;\n /**\n * The **`DOMPointReadOnly`** interface\'s **`z`** property holds the depth coordinate, z, for a read-only point in space.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMPointReadOnly/z)\n */\n readonly z: number;\n /**\n * The **`matrixTransform()`** method of the DOMPointReadOnly interface applies a matrix transform specified as an object to the DOMPointReadOnly object, creating and returning a new `DOMPointReadOnly` object.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMPointReadOnly/matrixTransform)\n */\n matrixTransform(matrix?: DOMMatrixInit): DOMPoint;\n /**\n * The DOMPointReadOnly method `toJSON()` returns an object giving the ```js-nolint toJSON() ``` None.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMPointReadOnly/toJSON)\n */\n toJSON(): any;\n}\n\ndeclare var DOMPointReadOnly: {\n prototype: DOMPointReadOnly;\n new(x?: number, y?: number, z?: number, w?: number): DOMPointReadOnly;\n /**\n * The static **DOMPointReadOnly** method `fromPoint()` creates and returns a new `DOMPointReadOnly` object given a source point.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMPointReadOnly/fromPoint_static)\n */\n fromPoint(other?: DOMPointInit): DOMPointReadOnly;\n};\n\n/**\n * A `DOMQuad` is a collection of four `DOMPoint`s defining the corners of an arbitrary quadrilateral.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMQuad)\n */\ninterface DOMQuad {\n /**\n * The **`DOMQuad`** interface\'s **`p1`** property holds the DOMPoint object that represents one of the four corners of the `DOMQuad`.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMQuad/p1)\n */\n readonly p1: DOMPoint;\n /**\n * The **`DOMQuad`** interface\'s **`p2`** property holds the DOMPoint object that represents one of the four corners of the `DOMQuad`.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMQuad/p2)\n */\n readonly p2: DOMPoint;\n /**\n * The **`DOMQuad`** interface\'s **`p3`** property holds the DOMPoint object that represents one of the four corners of the `DOMQuad`.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMQuad/p3)\n */\n readonly p3: DOMPoint;\n /**\n * The **`DOMQuad`** interface\'s **`p4`** property holds the DOMPoint object that represents one of the four corners of the `DOMQuad`.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMQuad/p4)\n */\n readonly p4: DOMPoint;\n /**\n * The DOMQuad method `getBounds()` returns a DOMRect object representing the smallest rectangle that fully contains the `DOMQuad` object.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMQuad/getBounds)\n */\n getBounds(): DOMRect;\n /**\n * The DOMQuad method `toJSON()` returns a ```js-nolint toJSON() ``` None.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMQuad/toJSON)\n */\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\n/**\n * A **`DOMRect`** describes the size and position of a rectangle.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMRect)\n */\ninterface DOMRect extends DOMRectReadOnly {\n /**\n * The **`height`** property of the DOMRect interface represents the height of the rectangle.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMRect/height)\n */\n height: number;\n /**\n * The **`width`** property of the DOMRect interface represents the width of the rectangle.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMRect/width)\n */\n width: number;\n /**\n * The **`x`** property of the DOMRect interface represents the x-coordinate of the rectangle, which is the horizontal distance between the viewport\'s left edge and the rectangle\'s origin.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMRect/x)\n */\n x: number;\n /**\n * The **`y`** property of the DOMRect interface represents the y-coordinate of the rectangle, which is the vertical distance between the viewport\'s top edge and the rectangle\'s origin.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMRect/y)\n */\n y: number;\n}\n\ndeclare var DOMRect: {\n prototype: DOMRect;\n new(x?: number, y?: number, width?: number, height?: number): DOMRect;\n /**\n * The **`fromRect()`** static method of the object with a given location and dimensions.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMRect/fromRect_static)\n */\n fromRect(other?: DOMRectInit): DOMRect;\n};\n\n/**\n * The **`DOMRectReadOnly`** interface specifies the standard properties (also used by DOMRect) to define a rectangle whose properties are immutable.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMRectReadOnly)\n */\ninterface DOMRectReadOnly {\n /**\n * The **`bottom`** read-only property of the **`DOMRectReadOnly`** interface returns the bottom coordinate value of the `DOMRect`.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMRectReadOnly/bottom)\n */\n readonly bottom: number;\n /**\n * The **`height`** read-only property of the **`DOMRectReadOnly`** interface represents the height of the `DOMRect`.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMRectReadOnly/height)\n */\n readonly height: number;\n /**\n * The **`left`** read-only property of the **`DOMRectReadOnly`** interface returns the left coordinate value of the `DOMRect`.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMRectReadOnly/left)\n */\n readonly left: number;\n /**\n * The **`right`** read-only property of the **`DOMRectReadOnly`** interface returns the right coordinate value of the `DOMRect`.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMRectReadOnly/right)\n */\n readonly right: number;\n /**\n * The **`top`** read-only property of the **`DOMRectReadOnly`** interface returns the top coordinate value of the `DOMRect`.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMRectReadOnly/top)\n */\n readonly top: number;\n /**\n * The **`width`** read-only property of the **`DOMRectReadOnly`** interface represents the width of the `DOMRect`.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMRectReadOnly/width)\n */\n readonly width: number;\n /**\n * The **`x`** read-only property of the **`DOMRectReadOnly`** interface represents the x coordinate of the `DOMRect`\'s origin.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMRectReadOnly/x)\n */\n readonly x: number;\n /**\n * The **`y`** read-only property of the **`DOMRectReadOnly`** interface represents the y coordinate of the `DOMRect`\'s origin.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMRectReadOnly/y)\n */\n readonly y: number;\n /**\n * The DOMRectReadOnly method `toJSON()` returns a JSON representation of the `DOMRectReadOnly` object.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMRectReadOnly/toJSON)\n */\n toJSON(): any;\n}\n\ndeclare var DOMRectReadOnly: {\n prototype: DOMRectReadOnly;\n new(x?: number, y?: number, width?: number, height?: number): DOMRectReadOnly;\n /**\n * The **`fromRect()`** static method of the object with a given location and dimensions.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMRectReadOnly/fromRect_static)\n */\n fromRect(other?: DOMRectInit): DOMRectReadOnly;\n};\n\n/**\n * The **`DOMStringList`** interface is a legacy type returned by some APIs and represents a non-modifiable list of strings (`DOMString`).\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMStringList)\n */\ninterface DOMStringList {\n /**\n * The read-only **`length`** property indicates the number of strings in the DOMStringList.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMStringList/length)\n */\n readonly length: number;\n /**\n * The **`contains()`** method returns a boolean indicating whether the given string is in the list.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMStringList/contains)\n */\n contains(string: string): boolean;\n /**\n * The **`item()`** method returns a string from a `DOMStringList` by index.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMStringList/item)\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/**\n * The **`DecompressionStream`** interface of the Compression Streams API is an API for decompressing a stream of data.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DecompressionStream)\n */\ninterface DecompressionStream extends GenericTransformStream {\n readonly readable: ReadableStream<Uint8Array<ArrayBuffer>>;\n readonly writable: WritableStream<BufferSource>;\n}\n\ndeclare var DecompressionStream: {\n prototype: DecompressionStream;\n new(format: CompressionFormat): DecompressionStream;\n};\n\ninterface DedicatedWorkerGlobalScopeEventMap extends WorkerGlobalScopeEventMap, MessageEventTargetEventMap {\n "message": MessageEvent;\n "messageerror": MessageEvent;\n "rtctransform": RTCTransformEvent;\n}\n\n/**\n * The **`DedicatedWorkerGlobalScope`** object (the Worker global scope) is accessible through the WorkerGlobalScope.self keyword.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DedicatedWorkerGlobalScope)\n */\ninterface DedicatedWorkerGlobalScope extends WorkerGlobalScope, AnimationFrameProvider, MessageEventTarget<DedicatedWorkerGlobalScope> {\n /**\n * The **`name`** read-only property of the the Worker.Worker constructor can pass to get a reference to the DedicatedWorkerGlobalScope.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DedicatedWorkerGlobalScope/name)\n */\n readonly name: string;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DedicatedWorkerGlobalScope/rtctransform_event) */\n onrtctransform: ((this: DedicatedWorkerGlobalScope, ev: RTCTransformEvent) => any) | null;\n /**\n * The **`close()`** method of the DedicatedWorkerGlobalScope interface discards any tasks queued in the `DedicatedWorkerGlobalScope`\'s event loop, effectively closing this particular scope.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DedicatedWorkerGlobalScope/close)\n */\n close(): void;\n /**\n * The **`postMessage()`** method of the DedicatedWorkerGlobalScope interface sends a message to the main thread that spawned it.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DedicatedWorkerGlobalScope/postMessage)\n */\n postMessage(message: any, transfer: Transferable[]): void;\n postMessage(message: any, options?: StructuredSerializeOptions): void;\n addEventListener<K extends keyof DedicatedWorkerGlobalScopeEventMap>(type: K, listener: (this: DedicatedWorkerGlobalScope, ev: DedicatedWorkerGlobalScopeEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n removeEventListener<K extends keyof DedicatedWorkerGlobalScopeEventMap>(type: K, listener: (this: DedicatedWorkerGlobalScope, ev: DedicatedWorkerGlobalScopeEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\ndeclare var DedicatedWorkerGlobalScope: {\n prototype: DedicatedWorkerGlobalScope;\n new(): DedicatedWorkerGlobalScope;\n};\n\n/**\n * The **`EXT_blend_minmax`** extension is part of the WebGL API and extends blending capabilities by adding two new blend equations: the minimum or maximum color components of the source and destination colors.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/EXT_blend_minmax)\n */\ninterface EXT_blend_minmax {\n readonly MIN_EXT: 0x8007;\n readonly MAX_EXT: 0x8008;\n}\n\n/**\n * The **`EXT_color_buffer_float`** extension is part of WebGL and adds the ability to render a variety of floating point formats.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/EXT_color_buffer_float)\n */\ninterface EXT_color_buffer_float {\n}\n\n/**\n * The **`EXT_color_buffer_half_float`** extension is part of the WebGL API and adds the ability to render to 16-bit floating-point color buffers.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/EXT_color_buffer_half_float)\n */\ninterface EXT_color_buffer_half_float {\n readonly RGBA16F_EXT: 0x881A;\n readonly RGB16F_EXT: 0x881B;\n readonly FRAMEBUFFER_ATTACHMENT_COMPONENT_TYPE_EXT: 0x8211;\n readonly UNSIGNED_NORMALIZED_EXT: 0x8C17;\n}\n\n/**\n * The WebGL API\'s `EXT_float_blend` extension allows blending and draw buffers with 32-bit floating-point components.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/EXT_float_blend)\n */\ninterface EXT_float_blend {\n}\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.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/EXT_frag_depth)\n */\ninterface EXT_frag_depth {\n}\n\n/**\n * The **`EXT_sRGB`** extension is part of the WebGL API and adds sRGB support to textures and framebuffer objects.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/EXT_sRGB)\n */\ninterface EXT_sRGB {\n readonly SRGB_EXT: 0x8C40;\n readonly SRGB_ALPHA_EXT: 0x8C42;\n readonly SRGB8_ALPHA8_EXT: 0x8C43;\n readonly FRAMEBUFFER_ATTACHMENT_COLOR_ENCODING_EXT: 0x8210;\n}\n\n/**\n * The **`EXT_shader_texture_lod`** extension is part of the WebGL API and adds additional texture functions to the OpenGL ES Shading Language which provide the shader writer with explicit control of LOD (Level of detail).\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/EXT_shader_texture_lod)\n */\ninterface EXT_shader_texture_lod {\n}\n\n/**\n * The `EXT_texture_compression_bptc` extension is part of the WebGL API and exposes 4 BPTC compressed texture formats.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/EXT_texture_compression_bptc)\n */\ninterface EXT_texture_compression_bptc {\n readonly COMPRESSED_RGBA_BPTC_UNORM_EXT: 0x8E8C;\n readonly COMPRESSED_SRGB_ALPHA_BPTC_UNORM_EXT: 0x8E8D;\n readonly COMPRESSED_RGB_BPTC_SIGNED_FLOAT_EXT: 0x8E8E;\n readonly COMPRESSED_RGB_BPTC_UNSIGNED_FLOAT_EXT: 0x8E8F;\n}\n\n/**\n * The `EXT_texture_compression_rgtc` extension is part of the WebGL API and exposes 4 RGTC compressed texture formats.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/EXT_texture_compression_rgtc)\n */\ninterface EXT_texture_compression_rgtc {\n readonly COMPRESSED_RED_RGTC1_EXT: 0x8DBB;\n readonly COMPRESSED_SIGNED_RED_RGTC1_EXT: 0x8DBC;\n readonly COMPRESSED_RED_GREEN_RGTC2_EXT: 0x8DBD;\n readonly COMPRESSED_SIGNED_RED_GREEN_RGTC2_EXT: 0x8DBE;\n}\n\n/**\n * The **`EXT_texture_filter_anisotropic`** extension is part of the WebGL API and exposes two constants for anisotropic filtering (AF).\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/EXT_texture_filter_anisotropic)\n */\ninterface EXT_texture_filter_anisotropic {\n readonly TEXTURE_MAX_ANISOTROPY_EXT: 0x84FE;\n readonly MAX_TEXTURE_MAX_ANISOTROPY_EXT: 0x84FF;\n}\n\n/**\n * The **`EXT_texture_norm16`** extension is part of the WebGL API and provides a set of new 16-bit signed normalized and unsigned normalized formats (fixed-point texture, renderbuffer and texture buffer).\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/EXT_texture_norm16)\n */\ninterface EXT_texture_norm16 {\n readonly R16_EXT: 0x822A;\n readonly RG16_EXT: 0x822C;\n readonly RGB16_EXT: 0x8054;\n readonly RGBA16_EXT: 0x805B;\n readonly R16_SNORM_EXT: 0x8F98;\n readonly RG16_SNORM_EXT: 0x8F99;\n readonly RGB16_SNORM_EXT: 0x8F9A;\n readonly RGBA16_SNORM_EXT: 0x8F9B;\n}\n\n/**\n * The **`EncodedAudioChunk`** interface of the WebCodecs API represents a chunk of encoded audio data.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/EncodedAudioChunk)\n */\ninterface EncodedAudioChunk {\n /**\n * The **`byteLength`** read-only property of the EncodedAudioChunk interface returns the length in bytes of the encoded audio data.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/EncodedAudioChunk/byteLength)\n */\n readonly byteLength: number;\n /**\n * The **`duration`** read-only property of the EncodedAudioChunk interface returns an integer indicating the duration of the audio in microseconds.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/EncodedAudioChunk/duration)\n */\n readonly duration: number | null;\n /**\n * The **`timestamp`** read-only property of the EncodedAudioChunk interface returns an integer indicating the timestamp of the audio in microseconds.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/EncodedAudioChunk/timestamp)\n */\n readonly timestamp: number;\n /**\n * The **`type`** read-only property of the EncodedAudioChunk interface returns a value indicating whether the audio chunk is a key chunk, which does not relying on other frames for decoding.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/EncodedAudioChunk/type)\n */\n readonly type: EncodedAudioChunkType;\n /**\n * The **`copyTo()`** method of the EncodedAudioChunk interface copies the encoded chunk of audio data.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/EncodedAudioChunk/copyTo)\n */\n copyTo(destination: AllowSharedBufferSource): void;\n}\n\ndeclare var EncodedAudioChunk: {\n prototype: EncodedAudioChunk;\n new(init: EncodedAudioChunkInit): EncodedAudioChunk;\n};\n\n/**\n * The **`EncodedVideoChunk`** interface of the WebCodecs API represents a chunk of encoded video data.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/EncodedVideoChunk)\n */\ninterface EncodedVideoChunk {\n /**\n * The **`byteLength`** read-only property of the EncodedVideoChunk interface returns the length in bytes of the encoded video data.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/EncodedVideoChunk/byteLength)\n */\n readonly byteLength: number;\n /**\n * The **`duration`** read-only property of the EncodedVideoChunk interface returns an integer indicating the duration of the video in microseconds.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/EncodedVideoChunk/duration)\n */\n readonly duration: number | null;\n /**\n * The **`timestamp`** read-only property of the EncodedVideoChunk interface returns an integer indicating the timestamp of the video in microseconds.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/EncodedVideoChunk/timestamp)\n */\n readonly timestamp: number;\n /**\n * The **`type`** read-only property of the EncodedVideoChunk interface returns a value indicating whether the video chunk is a key chunk, which does not rely on other frames for decoding.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/EncodedVideoChunk/type)\n */\n readonly type: EncodedVideoChunkType;\n /**\n * The **`copyTo()`** method of the EncodedVideoChunk interface copies the encoded chunk of video data.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/EncodedVideoChunk/copyTo)\n */\n copyTo(destination: AllowSharedBufferSource): void;\n}\n\ndeclare var EncodedVideoChunk: {\n prototype: EncodedVideoChunk;\n new(init: EncodedVideoChunkInit): EncodedVideoChunk;\n};\n\n/**\n * The **`ErrorEvent`** interface represents events providing information related to errors in scripts or in files.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ErrorEvent)\n */\ninterface ErrorEvent extends Event {\n /**\n * The **`colno`** read-only property of the ErrorEvent interface returns an integer containing the column number of the script file on which the error occurred.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ErrorEvent/colno)\n */\n readonly colno: number;\n /**\n * The **`error`** read-only property of the ErrorEvent interface returns a JavaScript value, such as an Error or DOMException, representing the error associated with this event.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ErrorEvent/error)\n */\n readonly error: any;\n /**\n * The **`filename`** read-only property of the ErrorEvent interface returns a string containing the name of the script file in which the error occurred.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ErrorEvent/filename)\n */\n readonly filename: string;\n /**\n * The **`lineno`** read-only property of the ErrorEvent interface returns an integer containing the line number of the script file on which the error occurred.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ErrorEvent/lineno)\n */\n readonly lineno: number;\n /**\n * The **`message`** read-only property of the ErrorEvent interface returns a string containing a human-readable error message describing the problem.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ErrorEvent/message)\n */\n readonly message: string;\n}\n\ndeclare var ErrorEvent: {\n prototype: ErrorEvent;\n new(type: string, eventInitDict?: ErrorEventInit): ErrorEvent;\n};\n\n/**\n * The **`Event`** interface represents an event which takes place on an `EventTarget`.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Event)\n */\ninterface Event {\n /**\n * The **`bubbles`** read-only property of the Event interface indicates whether the event bubbles up through the DOM tree or not.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Event/bubbles)\n */\n readonly bubbles: boolean;\n /**\n * The **`cancelBubble`** property of the Event interface is deprecated.\n * @deprecated\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Event/cancelBubble)\n */\n cancelBubble: boolean;\n /**\n * The **`cancelable`** read-only property of the Event interface indicates whether the event can be canceled, and therefore prevented as if the event never happened.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Event/cancelable)\n */\n readonly cancelable: boolean;\n /**\n * The read-only **`composed`** property of the or not the event will propagate across the shadow DOM boundary into the standard DOM.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Event/composed)\n */\n readonly composed: boolean;\n /**\n * The **`currentTarget`** read-only property of the Event interface identifies the element to which the event handler has been attached.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Event/currentTarget)\n */\n readonly currentTarget: EventTarget | null;\n /**\n * The **`defaultPrevented`** read-only property of the Event interface returns a boolean value indicating whether or not the call to Event.preventDefault() canceled the event.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Event/defaultPrevented)\n */\n readonly defaultPrevented: boolean;\n /**\n * The **`eventPhase`** read-only property of the being evaluated.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Event/eventPhase)\n */\n readonly eventPhase: number;\n /**\n * The **`isTrusted`** read-only property of the when the event was generated by the user agent (including via user actions and programmatic methods such as HTMLElement.focus()), and `false` when the event was dispatched via The only exception is the `click` event, which initializes the `isTrusted` property to `false` in user agents.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Event/isTrusted)\n */\n readonly isTrusted: boolean;\n /**\n * The Event property **`returnValue`** indicates whether the default action for this event has been prevented or not.\n * @deprecated\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Event/returnValue)\n */\n returnValue: boolean;\n /**\n * The deprecated **`Event.srcElement`** is an alias for the Event.target property.\n * @deprecated\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Event/srcElement)\n */\n readonly srcElement: EventTarget | null;\n /**\n * The read-only **`target`** property of the dispatched.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Event/target)\n */\n readonly target: EventTarget | null;\n /**\n * The **`timeStamp`** read-only property of the Event interface returns the time (in milliseconds) at which the event was created.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Event/timeStamp)\n */\n readonly timeStamp: DOMHighResTimeStamp;\n /**\n * The **`type`** read-only property of the Event interface returns a string containing the event\'s type.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Event/type)\n */\n readonly type: string;\n /**\n * The **`composedPath()`** method of the Event interface returns the event\'s path which is an array of the objects on which listeners will be invoked.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Event/composedPath)\n */\n composedPath(): EventTarget[];\n /**\n * The **`Event.initEvent()`** method is used to initialize the value of an event created using Document.createEvent().\n * @deprecated\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Event/initEvent)\n */\n initEvent(type: string, bubbles?: boolean, cancelable?: boolean): void;\n /**\n * The **`preventDefault()`** method of the Event interface tells the user agent that if the event does not get explicitly handled, its default action should not be taken as it normally would be.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Event/preventDefault)\n */\n preventDefault(): void;\n /**\n * The **`stopImmediatePropagation()`** method of the If several listeners are attached to the same element for the same event type, they are called in the order in which they were added.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Event/stopImmediatePropagation)\n */\n stopImmediatePropagation(): void;\n /**\n * The **`stopPropagation()`** method of the Event interface prevents further propagation of the current event in the capturing and bubbling phases.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Event/stopPropagation)\n */\n stopPropagation(): void;\n readonly NONE: 0;\n readonly CAPTURING_PHASE: 1;\n readonly AT_TARGET: 2;\n readonly BUBBLING_PHASE: 3;\n}\n\ndeclare var Event: {\n prototype: Event;\n new(type: string, eventInitDict?: EventInit): Event;\n readonly NONE: 0;\n readonly CAPTURING_PHASE: 1;\n readonly AT_TARGET: 2;\n readonly BUBBLING_PHASE: 3;\n};\n\ninterface EventListener {\n (evt: Event): void;\n}\n\ninterface EventListenerObject {\n handleEvent(object: Event): void;\n}\n\ninterface EventSourceEventMap {\n "error": Event;\n "message": MessageEvent;\n "open": Event;\n}\n\n/**\n * The **`EventSource`** interface is web content\'s interface to server-sent events.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/EventSource)\n */\ninterface EventSource extends EventTarget {\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/EventSource/error_event) */\n onerror: ((this: EventSource, ev: Event) => any) | null;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/EventSource/message_event) */\n onmessage: ((this: EventSource, ev: MessageEvent) => any) | null;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/EventSource/open_event) */\n onopen: ((this: EventSource, ev: Event) => any) | null;\n /**\n * The **`readyState`** read-only property of the connection.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/EventSource/readyState)\n */\n readonly readyState: number;\n /**\n * The **`url`** read-only property of the URL of the source.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/EventSource/url)\n */\n readonly url: string;\n /**\n * The **`withCredentials`** read-only property of the the `EventSource` object was instantiated with CORS credentials set.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/EventSource/withCredentials)\n */\n readonly withCredentials: boolean;\n /**\n * The **`close()`** method of the EventSource interface closes the connection, if one is made, and sets the ```js-nolint close() ``` None.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/EventSource/close)\n */\n close(): void;\n readonly CONNECTING: 0;\n readonly OPEN: 1;\n readonly CLOSED: 2;\n addEventListener<K extends keyof EventSourceEventMap>(type: K, listener: (this: EventSource, ev: EventSourceEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n addEventListener(type: string, listener: (this: EventSource, event: MessageEvent) => 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: (this: EventSource, event: MessageEvent) => 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 | URL, eventSourceInitDict?: EventSourceInit): EventSource;\n readonly CONNECTING: 0;\n readonly OPEN: 1;\n readonly CLOSED: 2;\n};\n\n/**\n * The **`EventTarget`** interface is implemented by objects that can receive events and may have listeners for them.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/EventTarget)\n */\ninterface EventTarget {\n /**\n * The **`addEventListener()`** method of the EventTarget interface sets up a function that will be called whenever the specified event is delivered to the target.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/EventTarget/addEventListener)\n */\n addEventListener(type: string, callback: EventListenerOrEventListenerObject | null, options?: AddEventListenerOptions | boolean): void;\n /**\n * The **`dispatchEvent()`** method of the EventTarget sends an Event to the object, (synchronously) invoking the affected event listeners in the appropriate order.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/EventTarget/dispatchEvent)\n */\n dispatchEvent(event: Event): boolean;\n /**\n * The **`removeEventListener()`** method of the EventTarget interface removes an event listener previously registered with EventTarget.addEventListener() from the target.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/EventTarget/removeEventListener)\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\n/**\n * The **`ExtendableCookieChangeEvent`** interface of the Cookie Store API is the event type passed to ServiceWorkerGlobalScope/cookiechange_event event fired at the ServiceWorkerGlobalScope when any cookie changes occur which match the service worker\'s cookie change subscription list.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ExtendableCookieChangeEvent)\n */\ninterface ExtendableCookieChangeEvent extends ExtendableEvent {\n /**\n * The **`changed`** read-only property of the ExtendableCookieChangeEvent interface returns any cookies that have been changed by the given `ExtendableCookieChangeEvent` instance.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ExtendableCookieChangeEvent/changed)\n */\n readonly changed: ReadonlyArray<CookieListItem>;\n /**\n * The **`deleted`** read-only property of the ExtendableCookieChangeEvent interface returns any cookies that have been deleted by the given `ExtendableCookieChangeEvent` instance.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ExtendableCookieChangeEvent/deleted)\n */\n readonly deleted: ReadonlyArray<CookieListItem>;\n}\n\ndeclare var ExtendableCookieChangeEvent: {\n prototype: ExtendableCookieChangeEvent;\n new(type: string, eventInitDict?: ExtendableCookieChangeEventInit): ExtendableCookieChangeEvent;\n};\n\n/**\n * The **`ExtendableEvent`** interface extends the lifetime of the `install` and `activate` events dispatched on the global scope as part of the service worker lifecycle.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ExtendableEvent)\n */\ninterface ExtendableEvent extends Event {\n /**\n * The **`ExtendableEvent.waitUntil()`** method tells the event dispatcher that work is ongoing.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ExtendableEvent/waitUntil)\n */\n waitUntil(f: Promise<any>): void;\n}\n\ndeclare var ExtendableEvent: {\n prototype: ExtendableEvent;\n new(type: string, eventInitDict?: ExtendableEventInit): ExtendableEvent;\n};\n\n/**\n * The **`ExtendableMessageEvent`** interface of the Service Worker API represents the event object of a ServiceWorkerGlobalScope/message_event event fired on a service worker (when a message is received on the ServiceWorkerGlobalScope from another context) — extends the lifetime of such events.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ExtendableMessageEvent)\n */\ninterface ExtendableMessageEvent extends ExtendableEvent {\n /**\n * The **`data`** read-only property of the data type.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ExtendableMessageEvent/data)\n */\n readonly data: any;\n /**\n * The **`lastEventID`** read-only property of the A string.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ExtendableMessageEvent/lastEventId)\n */\n readonly lastEventId: string;\n /**\n * The **`origin`** read-only property of the A string.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ExtendableMessageEvent/origin)\n */\n readonly origin: string;\n /**\n * The **`ports`** read-only property of the channel (the channel the message is being sent through.) An array of MessagePort objects.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ExtendableMessageEvent/ports)\n */\n readonly ports: ReadonlyArray<MessagePort>;\n /**\n * The **`source`** read-only property of the A Client, ServiceWorker or MessagePort object.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ExtendableMessageEvent/source)\n */\n readonly source: Client | ServiceWorker | MessagePort | null;\n}\n\ndeclare var ExtendableMessageEvent: {\n prototype: ExtendableMessageEvent;\n new(type: string, eventInitDict?: ExtendableMessageEventInit): ExtendableMessageEvent;\n};\n\n/**\n * This is the event type for `fetch` events dispatched on the ServiceWorkerGlobalScope.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/FetchEvent)\n */\ninterface FetchEvent extends ExtendableEvent {\n /**\n * The **`clientId`** read-only property of the current service worker is controlling.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/FetchEvent/clientId)\n */\n readonly clientId: string;\n /**\n * The **`handled`** property of the FetchEvent interface returns a promise indicating if the event has been handled by the fetch algorithm or not.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/FetchEvent/handled)\n */\n readonly handled: Promise<void>;\n /**\n * The **`preloadResponse`** read-only property of the FetchEvent interface returns a Promise that resolves to the navigation preload Response if navigation preload was triggered, or `undefined` otherwise.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/FetchEvent/preloadResponse)\n */\n readonly preloadResponse: Promise<any>;\n /**\n * The **`request`** read-only property of the the event handler.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/FetchEvent/request)\n */\n readonly request: Request;\n /**\n * The **`resultingClientId`** read-only property of the navigation.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/FetchEvent/resultingClientId)\n */\n readonly resultingClientId: string;\n /**\n * The **`respondWith()`** method of allows you to provide a promise for a Response yourself.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/FetchEvent/respondWith)\n */\n respondWith(r: Response | PromiseLike<Response>): void;\n}\n\ndeclare var FetchEvent: {\n prototype: FetchEvent;\n new(type: string, eventInitDict: FetchEventInit): FetchEvent;\n};\n\n/**\n * The **`File`** interface provides information about files and allows JavaScript in a web page to access their content.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/File)\n */\ninterface File extends Blob {\n /**\n * The **`lastModified`** read-only property of the File interface provides the last modified date of the file as the number of milliseconds since the Unix epoch (January 1, 1970 at midnight).\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/File/lastModified)\n */\n readonly lastModified: number;\n /**\n * The **`name`** read-only property of the File interface returns the name of the file represented by a File object.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/File/name)\n */\n readonly name: string;\n /**\n * The **`webkitRelativePath`** read-only property of the File interface contains a string which specifies the file\'s path relative to the directory selected by the user in an input element with its `webkitdirectory` attribute set.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/File/webkitRelativePath)\n */\n readonly webkitRelativePath: string;\n}\n\ndeclare var File: {\n prototype: File;\n new(fileBits: BlobPart[], fileName: string, options?: FilePropertyBag): File;\n};\n\n/**\n * The **`FileList`** interface represents an object of this type 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.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/FileList)\n */\ninterface FileList {\n /**\n * The **`length`** read-only property of the FileList interface returns the number of files in the `FileList`.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/FileList/length)\n */\n readonly length: number;\n /**\n * The **`item()`** method of the FileList interface returns a File object representing the file at the specified index in the file list.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/FileList/item)\n */\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/**\n * The **`FileReader`** interface 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.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/FileReader)\n */\ninterface FileReader extends EventTarget {\n /**\n * The **`error`** read-only property of the FileReader interface returns the error that occurred while reading the file.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/FileReader/error)\n */\n readonly error: DOMException | null;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FileReader/abort_event) */\n onabort: ((this: FileReader, ev: ProgressEvent<FileReader>) => any) | null;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FileReader/error_event) */\n onerror: ((this: FileReader, ev: ProgressEvent<FileReader>) => any) | null;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FileReader/load_event) */\n onload: ((this: FileReader, ev: ProgressEvent<FileReader>) => any) | null;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FileReader/loadend_event) */\n onloadend: ((this: FileReader, ev: ProgressEvent<FileReader>) => any) | null;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FileReader/loadstart_event) */\n onloadstart: ((this: FileReader, ev: ProgressEvent<FileReader>) => any) | null;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FileReader/progress_event) */\n onprogress: ((this: FileReader, ev: ProgressEvent<FileReader>) => any) | null;\n /**\n * The **`readyState`** read-only property of the FileReader interface provides the current state of the reading operation.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/FileReader/readyState)\n */\n readonly readyState: typeof FileReader.EMPTY | typeof FileReader.LOADING | typeof FileReader.DONE;\n /**\n * The **`result`** read-only property of the FileReader interface returns the file\'s contents.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/FileReader/result)\n */\n readonly result: string | ArrayBuffer | null;\n /**\n * The **`abort()`** method of the FileReader interface aborts the read operation.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/FileReader/abort)\n */\n abort(): void;\n /**\n * The **`readAsArrayBuffer()`** method of the FileReader interface is used to start reading the contents of a specified Blob or File.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/FileReader/readAsArrayBuffer)\n */\n readAsArrayBuffer(blob: Blob): void;\n /**\n * The **`readAsBinaryString()`** method of the FileReader interface is used to start reading the contents of the specified Blob or File.\n * @deprecated\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/FileReader/readAsBinaryString)\n */\n readAsBinaryString(blob: Blob): void;\n /**\n * The **`readAsDataURL()`** method of the FileReader interface is used to read the contents of the specified file\'s data as a base64 encoded string.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/FileReader/readAsDataURL)\n */\n readAsDataURL(blob: Blob): void;\n /**\n * The **`readAsText()`** method of the FileReader interface is used to read the contents of the specified Blob or File.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/FileReader/readAsText)\n */\n readAsText(blob: Blob, encoding?: string): void;\n readonly EMPTY: 0;\n readonly LOADING: 1;\n readonly DONE: 2;\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 EMPTY: 0;\n readonly LOADING: 1;\n readonly DONE: 2;\n};\n\n/**\n * The **`FileReaderSync`** interface allows to read File or Blob objects synchronously.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/FileReaderSync)\n */\ninterface FileReaderSync {\n /**\n * The **`readAsArrayBuffer()`** method of the FileReaderSync interface allows to read File or Blob objects in a synchronous way into an ArrayBuffer.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/FileReaderSync/readAsArrayBuffer)\n */\n readAsArrayBuffer(blob: Blob): ArrayBuffer;\n /**\n * The **`readAsBinaryString()`** method of the FileReaderSync interface allows to read File or Blob objects in a synchronous way into a string.\n * @deprecated\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/FileReaderSync/readAsBinaryString)\n */\n readAsBinaryString(blob: Blob): string;\n /**\n * The **`readAsDataURL()`** method of the FileReaderSync interface allows to read File or Blob objects in a synchronous way into a string representing a data URL.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/FileReaderSync/readAsDataURL)\n */\n readAsDataURL(blob: Blob): string;\n /**\n * The **`readAsText()`** method of the FileReaderSync interface allows to read File or Blob objects in a synchronous way into a string.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/FileReaderSync/readAsText)\n */\n readAsText(blob: Blob, encoding?: string): string;\n}\n\ndeclare var FileReaderSync: {\n prototype: FileReaderSync;\n new(): FileReaderSync;\n};\n\n/**\n * The **`FileSystemDirectoryHandle`** interface of the File System API provides a handle to a file system directory.\n * Available only in secure contexts.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/FileSystemDirectoryHandle)\n */\ninterface FileSystemDirectoryHandle extends FileSystemHandle {\n readonly kind: "directory";\n /**\n * The **`getDirectoryHandle()`** method of the within the directory handle on which the method is called.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/FileSystemDirectoryHandle/getDirectoryHandle)\n */\n getDirectoryHandle(name: string, options?: FileSystemGetDirectoryOptions): Promise<FileSystemDirectoryHandle>;\n /**\n * The **`getFileHandle()`** method of the directory the method is called.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/FileSystemDirectoryHandle/getFileHandle)\n */\n getFileHandle(name: string, options?: FileSystemGetFileOptions): Promise<FileSystemFileHandle>;\n /**\n * The **`removeEntry()`** method of the directory handle contains a file or directory called the name specified.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/FileSystemDirectoryHandle/removeEntry)\n */\n removeEntry(name: string, options?: FileSystemRemoveOptions): Promise<void>;\n /**\n * The **`resolve()`** method of the directory names from the parent handle to the specified child entry, with the name of the child entry as the last array item.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/FileSystemDirectoryHandle/resolve)\n */\n resolve(possibleDescendant: FileSystemHandle): Promise<string[] | null>;\n}\n\ndeclare var FileSystemDirectoryHandle: {\n prototype: FileSystemDirectoryHandle;\n new(): FileSystemDirectoryHandle;\n};\n\n/**\n * The **`FileSystemFileHandle`** interface of the File System API represents a handle to a file system entry.\n * Available only in secure contexts.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/FileSystemFileHandle)\n */\ninterface FileSystemFileHandle extends FileSystemHandle {\n readonly kind: "file";\n /**\n * The **`createSyncAccessHandle()`** method of the that can be used to synchronously read from and write to a file.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/FileSystemFileHandle/createSyncAccessHandle)\n */\n createSyncAccessHandle(): Promise<FileSystemSyncAccessHandle>;\n /**\n * The **`createWritable()`** method of the FileSystemFileHandle interface creates a FileSystemWritableFileStream that can be used to write to a file.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/FileSystemFileHandle/createWritable)\n */\n createWritable(options?: FileSystemCreateWritableOptions): Promise<FileSystemWritableFileStream>;\n /**\n * The **`getFile()`** method of the If the file on disk changes or is removed after this method is called, the returned ```js-nolint getFile() ``` None.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/FileSystemFileHandle/getFile)\n */\n getFile(): Promise<File>;\n}\n\ndeclare var FileSystemFileHandle: {\n prototype: FileSystemFileHandle;\n new(): FileSystemFileHandle;\n};\n\n/**\n * The **`FileSystemHandle`** interface of the File System API is an object which represents a file or directory entry.\n * Available only in secure contexts.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/FileSystemHandle)\n */\ninterface FileSystemHandle {\n /**\n * The **`kind`** read-only property of the `\'file\'` if the associated entry is a file or `\'directory\'`.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/FileSystemHandle/kind)\n */\n readonly kind: FileSystemHandleKind;\n /**\n * The **`name`** read-only property of the handle.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/FileSystemHandle/name)\n */\n readonly name: string;\n /**\n * The **`isSameEntry()`** method of the ```js-nolint isSameEntry(fileSystemHandle) ``` - FileSystemHandle - : The `FileSystemHandle` to match against the handle on which the method is invoked.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/FileSystemHandle/isSameEntry)\n */\n isSameEntry(other: FileSystemHandle): Promise<boolean>;\n}\n\ndeclare var FileSystemHandle: {\n prototype: FileSystemHandle;\n new(): FileSystemHandle;\n};\n\n/**\n * The **`FileSystemSyncAccessHandle`** interface of the File System API represents a synchronous handle to a file system entry.\n * Available only in secure contexts.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/FileSystemSyncAccessHandle)\n */\ninterface FileSystemSyncAccessHandle {\n /**\n * The **`close()`** method of the ```js-nolint close() ``` None.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/FileSystemSyncAccessHandle/close)\n */\n close(): void;\n /**\n * The **`flush()`** method of the Bear in mind that you only need to call this method if you need the changes committed to disk at a specific time, otherwise you can leave the underlying operating system to handle this when it sees fit, which should be OK in most cases.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/FileSystemSyncAccessHandle/flush)\n */\n flush(): void;\n /**\n * The **`getSize()`** method of the ```js-nolint getSize() ``` None.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/FileSystemSyncAccessHandle/getSize)\n */\n getSize(): number;\n /**\n * The **`read()`** method of the ```js-nolint read(buffer, options) ``` - `buffer` - : An ArrayBuffer or `ArrayBufferView` (such as a DataView) representing the buffer that the file content should be read into.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/FileSystemSyncAccessHandle/read)\n */\n read(buffer: AllowSharedBufferSource, options?: FileSystemReadWriteOptions): number;\n /**\n * The **`truncate()`** method of the ```js-nolint truncate(newSize) ``` - `newSize` - : The number of bytes to resize the file to.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/FileSystemSyncAccessHandle/truncate)\n */\n truncate(newSize: number): void;\n /**\n * The **`write()`** method of the Files within the origin private file system are not visible to end-users, therefore are not subject to the same security checks as methods running on files within the user-visible file system.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/FileSystemSyncAccessHandle/write)\n */\n write(buffer: AllowSharedBufferSource, options?: FileSystemReadWriteOptions): number;\n}\n\ndeclare var FileSystemSyncAccessHandle: {\n prototype: FileSystemSyncAccessHandle;\n new(): FileSystemSyncAccessHandle;\n};\n\n/**\n * The **`FileSystemWritableFileStream`** interface of the File System API is a WritableStream object with additional convenience methods, which operates on a single file on disk.\n * Available only in secure contexts.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/FileSystemWritableFileStream)\n */\ninterface FileSystemWritableFileStream extends WritableStream {\n /**\n * The **`seek()`** method of the FileSystemWritableFileStream interface updates the current file cursor offset to the position (in bytes) specified when calling the method.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/FileSystemWritableFileStream/seek)\n */\n seek(position: number): Promise<void>;\n /**\n * The **`truncate()`** method of the FileSystemWritableFileStream interface resizes the file associated with the stream to the specified size in bytes.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/FileSystemWritableFileStream/truncate)\n */\n truncate(size: number): Promise<void>;\n /**\n * The **`write()`** method of the FileSystemWritableFileStream interface writes content into the file the method is called on, at the current file cursor offset.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/FileSystemWritableFileStream/write)\n */\n write(data: FileSystemWriteChunkType): Promise<void>;\n}\n\ndeclare var FileSystemWritableFileStream: {\n prototype: FileSystemWritableFileStream;\n new(): FileSystemWritableFileStream;\n};\n\n/**\n * The **`FontFace`** interface of the CSS Font Loading API represents a single usable font face.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/FontFace)\n */\ninterface FontFace {\n /**\n * The **`ascentOverride`** property of the FontFace interface returns and sets the ascent metric for the font, the height above the baseline that CSS uses to lay out line boxes in an inline formatting context.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/FontFace/ascentOverride)\n */\n ascentOverride: string;\n /**\n * The **`descentOverride`** property of the FontFace interface returns and sets the value of the @font-face/descent-override descriptor.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/FontFace/descentOverride)\n */\n descentOverride: string;\n /**\n * The **`display`** property of the FontFace interface determines how a font face is displayed based on whether and when it is downloaded and ready to use.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/FontFace/display)\n */\n display: FontDisplay;\n /**\n * The **`FontFace.family`** property allows the author to get or set the font family of a FontFace object.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/FontFace/family)\n */\n family: string;\n /**\n * The **`featureSettings`** property of the FontFace interface retrieves or sets infrequently used font features that are not available from a font\'s variant properties.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/FontFace/featureSettings)\n */\n featureSettings: string;\n /**\n * The **`lineGapOverride`** property of the FontFace interface returns and sets the value of the @font-face/line-gap-override descriptor.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/FontFace/lineGapOverride)\n */\n lineGapOverride: string;\n /**\n * The **`loaded`** read-only property of the FontFace interface returns a Promise that resolves with the current `FontFace` object when the font specified in the object\'s constructor is done loading or rejects with a `SyntaxError`.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/FontFace/loaded)\n */\n readonly loaded: Promise<FontFace>;\n /**\n * The **`status`** read-only property of the FontFace interface returns an enumerated value indicating the status of the font, one of `\'unloaded\'`, `\'loading\'`, `\'loaded\'`, or `\'error\'`.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/FontFace/status)\n */\n readonly status: FontFaceLoadStatus;\n /**\n * The **`stretch`** property of the FontFace interface retrieves or sets how the font stretches.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/FontFace/stretch)\n */\n stretch: string;\n /**\n * The **`style`** property of the FontFace interface retrieves or sets the font\'s style.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/FontFace/style)\n */\n style: string;\n /**\n * The **`unicodeRange`** property of the FontFace interface retrieves or sets the range of unicode code points encompassing the font.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/FontFace/unicodeRange)\n */\n unicodeRange: string;\n /**\n * The **`weight`** property of the FontFace interface retrieves or sets the weight of the font.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/FontFace/weight)\n */\n weight: string;\n /**\n * The **`load()`** method of the FontFace interface requests and loads a font whose `source` was specified as a URL.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/FontFace/load)\n */\n load(): Promise<FontFace>;\n}\n\ndeclare var FontFace: {\n prototype: FontFace;\n new(family: string, source: string | BufferSource, descriptors?: FontFaceDescriptors): FontFace;\n};\n\ninterface FontFaceSetEventMap {\n "loading": FontFaceSetLoadEvent;\n "loadingdone": FontFaceSetLoadEvent;\n "loadingerror": FontFaceSetLoadEvent;\n}\n\n/**\n * The **`FontFaceSet`** interface of the CSS Font Loading API manages the loading of font-faces and querying of their download status.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/FontFaceSet)\n */\ninterface FontFaceSet extends EventTarget {\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FontFaceSet/loading_event) */\n onloading: ((this: FontFaceSet, ev: FontFaceSetLoadEvent) => any) | null;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FontFaceSet/loadingdone_event) */\n onloadingdone: ((this: FontFaceSet, ev: FontFaceSetLoadEvent) => any) | null;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FontFaceSet/loadingerror_event) */\n onloadingerror: ((this: FontFaceSet, ev: FontFaceSetLoadEvent) => any) | null;\n /**\n * The `ready` read-only property of the FontFaceSet interface returns a Promise that resolves to the given FontFaceSet.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/FontFaceSet/ready)\n */\n readonly ready: Promise<FontFaceSet>;\n /**\n * The **`status`** read-only property of the FontFaceSet interface returns the loading state of the fonts in the set.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/FontFaceSet/status)\n */\n readonly status: FontFaceSetLoadStatus;\n /**\n * The `check()` method of the FontFaceSet returns `true` if you can render some text using the given font specification without attempting to use any fonts in this `FontFaceSet` that are not yet fully loaded.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/FontFaceSet/check)\n */\n check(font: string, text?: string): boolean;\n /**\n * The `load()` method of the FontFaceSet forces all the fonts given in parameters to be loaded.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/FontFaceSet/load)\n */\n load(font: string, text?: string): Promise<FontFace[]>;\n forEach(callbackfn: (value: FontFace, key: FontFace, parent: FontFaceSet) => void, thisArg?: any): void;\n addEventListener<K extends keyof FontFaceSetEventMap>(type: K, listener: (this: FontFaceSet, ev: FontFaceSetEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n removeEventListener<K extends keyof FontFaceSetEventMap>(type: K, listener: (this: FontFaceSet, ev: FontFaceSetEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\ndeclare var FontFaceSet: {\n prototype: FontFaceSet;\n new(): FontFaceSet;\n};\n\n/**\n * The **`FontFaceSetLoadEvent`** interface of the CSS Font Loading API represents events fired at a FontFaceSet after it starts loading font faces.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/FontFaceSetLoadEvent)\n */\ninterface FontFaceSetLoadEvent extends Event {\n /**\n * The **`fontfaces`** read-only property of the An array of FontFace instance.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/FontFaceSetLoadEvent/fontfaces)\n */\n readonly fontfaces: ReadonlyArray<FontFace>;\n}\n\ndeclare var FontFaceSetLoadEvent: {\n prototype: FontFaceSetLoadEvent;\n new(type: string, eventInitDict?: FontFaceSetLoadEventInit): FontFaceSetLoadEvent;\n};\n\ninterface FontFaceSource {\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/fonts) */\n readonly fonts: FontFaceSet;\n}\n\n/**\n * The **`FormData`** interface provides a way to construct a set of key/value pairs representing form fields and their values, which can be sent using the Window/fetch, XMLHttpRequest.send() or navigator.sendBeacon() methods.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/FormData)\n */\ninterface FormData {\n /**\n * The **`append()`** method of the FormData interface appends a new value onto an existing key inside a `FormData` object, or adds the key if it does not already exist.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/FormData/append)\n */\n append(name: string, value: string | Blob): void;\n append(name: string, value: string): void;\n append(name: string, blobValue: Blob, filename?: string): void;\n /**\n * The **`delete()`** method of the FormData interface deletes a key and its value(s) from a `FormData` object.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/FormData/delete)\n */\n delete(name: string): void;\n /**\n * The **`get()`** method of the FormData interface returns the first value associated with a given key from within a `FormData` object.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/FormData/get)\n */\n get(name: string): FormDataEntryValue | null;\n /**\n * The **`getAll()`** method of the FormData interface returns all the values associated with a given key from within a `FormData` object.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/FormData/getAll)\n */\n getAll(name: string): FormDataEntryValue[];\n /**\n * The **`has()`** method of the FormData interface returns whether a `FormData` object contains a certain key.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/FormData/has)\n */\n has(name: string): boolean;\n /**\n * The **`set()`** method of the FormData interface sets a new value for an existing key inside a `FormData` object, or adds the key/value if it does not already exist.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/FormData/set)\n */\n set(name: string, value: string | Blob): void;\n set(name: string, value: string): void;\n set(name: string, blobValue: 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(): FormData;\n};\n\n/**\n * The **`GPUError`** interface of the WebGPU API is the base interface for errors surfaced by GPUDevice.popErrorScope and the GPUDevice.uncapturederror_event event.\n * Available only in secure contexts.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUError)\n */\ninterface GPUError {\n /**\n * The **`message`** read-only property of the A string.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUError/message)\n */\n readonly message: string;\n}\n\ninterface GenericTransformStream {\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CompressionStream/readable) */\n readonly readable: ReadableStream;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CompressionStream/writable) */\n readonly writable: WritableStream;\n}\n\n/**\n * The **`Headers`** interface of the Fetch API allows you to perform various actions on HTTP request and response headers.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Headers)\n */\ninterface Headers {\n /**\n * The **`append()`** method of the Headers interface appends a new value onto an existing header inside a `Headers` object, or adds the header if it does not already exist.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Headers/append)\n */\n append(name: string, value: string): void;\n /**\n * The **`delete()`** method of the Headers interface deletes a header from the current `Headers` object.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Headers/delete)\n */\n delete(name: string): void;\n /**\n * The **`get()`** method of the Headers interface returns a byte string of all the values of a header within a `Headers` object with a given name.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Headers/get)\n */\n get(name: string): string | null;\n /**\n * The **`getSetCookie()`** method of the Headers interface returns an array containing the values of all Set-Cookie headers associated with a response.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Headers/getSetCookie)\n */\n getSetCookie(): string[];\n /**\n * The **`has()`** method of the Headers interface returns a boolean stating whether a `Headers` object contains a certain header.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Headers/has)\n */\n has(name: string): boolean;\n /**\n * The **`set()`** method of the Headers interface sets a new value for an existing header inside a `Headers` object, or adds the header if it does not already exist.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Headers/set)\n */\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/**\n * The **`IDBCursor`** interface of the IndexedDB API represents a cursor for traversing or iterating over multiple records in a database.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBCursor)\n */\ninterface IDBCursor {\n /**\n * The **`direction`** read-only property of the direction of traversal of the cursor (set using section below for possible values.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBCursor/direction)\n */\n readonly direction: IDBCursorDirection;\n /**\n * The **`key`** read-only property of the position.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBCursor/key)\n */\n readonly key: IDBValidKey;\n /**\n * The **`primaryKey`** read-only property of the cursor is currently being iterated or has iterated outside its range, this is set to undefined.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBCursor/primaryKey)\n */\n readonly primaryKey: IDBValidKey;\n /**\n * The **`request`** read-only property of the IDBCursor interface returns the IDBRequest used to obtain the cursor.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBCursor/request)\n */\n readonly request: IDBRequest;\n /**\n * The **`source`** read-only property of the null or throws an exception, even if the cursor is currently being iterated, has iterated past its end, or its transaction is not active.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBCursor/source)\n */\n readonly source: IDBObjectStore | IDBIndex;\n /**\n * The **`advance()`** method of the IDBCursor interface sets the number of times a cursor should move its position forward.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBCursor/advance)\n */\n advance(count: number): void;\n /**\n * The **`continue()`** method of the IDBCursor interface advances the cursor to the next position along its direction, to the item whose key matches the optional key parameter.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBCursor/continue)\n */\n continue(key?: IDBValidKey): void;\n /**\n * The **`continuePrimaryKey()`** method of the matches the key parameter as well as whose primary key matches the primary key parameter.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBCursor/continuePrimaryKey)\n */\n continuePrimaryKey(key: IDBValidKey, primaryKey: IDBValidKey): void;\n /**\n * The **`delete()`** method of the IDBCursor interface returns an IDBRequest object, and, in a separate thread, deletes the record at the cursor\'s position, without changing the cursor\'s position.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBCursor/delete)\n */\n delete(): IDBRequest<undefined>;\n /**\n * The **`update()`** method of the IDBCursor interface returns an IDBRequest object, and, in a separate thread, updates the value at the current position of the cursor in the object store.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBCursor/update)\n */\n update(value: any): IDBRequest<IDBValidKey>;\n}\n\ndeclare var IDBCursor: {\n prototype: IDBCursor;\n new(): IDBCursor;\n};\n\n/**\n * The **`IDBCursorWithValue`** interface of the IndexedDB API represents a cursor for traversing or iterating over multiple records in a database.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBCursorWithValue)\n */\ninterface IDBCursorWithValue extends IDBCursor {\n /**\n * The **`value`** read-only property of the whatever that is.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBCursorWithValue/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/**\n * The **`IDBDatabase`** interface of the IndexedDB API 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.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBDatabase)\n */\ninterface IDBDatabase extends EventTarget {\n /**\n * The **`name`** read-only property of the `IDBDatabase` interface is a string that contains the name of the connected database.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBDatabase/name)\n */\n readonly name: string;\n /**\n * The **`objectStoreNames`** read-only property of the list of the names of the object stores currently in the connected database.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBDatabase/objectStoreNames)\n */\n readonly objectStoreNames: DOMStringList;\n onabort: ((this: IDBDatabase, ev: Event) => any) | null;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBDatabase/close_event) */\n onclose: ((this: IDBDatabase, ev: Event) => any) | null;\n onerror: ((this: IDBDatabase, ev: Event) => any) | null;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBDatabase/versionchange_event) */\n onversionchange: ((this: IDBDatabase, ev: IDBVersionChangeEvent) => any) | null;\n /**\n * The **`version`** property of the IDBDatabase interface is a 64-bit integer that contains the version of the connected database.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBDatabase/version)\n */\n readonly version: number;\n /**\n * The **`close()`** method of the IDBDatabase interface returns immediately and closes the connection in a separate thread.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBDatabase/close)\n */\n close(): void;\n /**\n * The **`createObjectStore()`** method of the The method takes the name of the store as well as a parameter object that lets you define important optional properties.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBDatabase/createObjectStore)\n */\n createObjectStore(name: string, options?: IDBObjectStoreParameters): IDBObjectStore;\n /**\n * The **`deleteObjectStore()`** method of the the connected database, along with any indexes that reference it.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBDatabase/deleteObjectStore)\n */\n deleteObjectStore(name: string): void;\n /**\n * The **`transaction`** method of the IDBDatabase interface immediately returns a transaction object (IDBTransaction) containing the IDBTransaction.objectStore method, which you can use to access your object store.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBDatabase/transaction)\n */\n transaction(storeNames: string | string[], mode?: IDBTransactionMode, options?: IDBTransactionOptions): 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\n/**\n * The **`IDBFactory`** interface of the IndexedDB API lets applications asynchronously access the indexed databases.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBFactory)\n */\ninterface IDBFactory {\n /**\n * The **`cmp()`** method of the IDBFactory interface compares two values as keys to determine equality and ordering for IndexedDB operations, such as storing and iterating.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBFactory/cmp)\n */\n cmp(first: any, second: any): number;\n /**\n * The **`databases`** method of the IDBFactory interface returns a Promise that fulfills with an array of objects containing the name and version of all the available databases.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBFactory/databases)\n */\n databases(): Promise<IDBDatabaseInfo[]>;\n /**\n * The **`deleteDatabase()`** method of the returns an IDBOpenDBRequest object immediately, and performs the deletion operation asynchronously.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBFactory/deleteDatabase)\n */\n deleteDatabase(name: string): IDBOpenDBRequest;\n /**\n * The **`open()`** method of the IDBFactory interface requests opening a connection to a database.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBFactory/open)\n */\n open(name: string, version?: number): IDBOpenDBRequest;\n}\n\ndeclare var IDBFactory: {\n prototype: IDBFactory;\n new(): IDBFactory;\n};\n\n/**\n * `IDBIndex` interface of the IndexedDB API provides asynchronous access to an index in a database.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBIndex)\n */\ninterface IDBIndex {\n /**\n * The **`keyPath`** property of the IDBIndex interface returns the key path of the current index.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBIndex/keyPath)\n */\n readonly keyPath: string | string[];\n /**\n * The **`multiEntry`** read-only property of the behaves when the result of evaluating the index\'s key path yields an array.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBIndex/multiEntry)\n */\n readonly multiEntry: boolean;\n /**\n * The **`name`** property of the IDBIndex interface contains a string which names the index.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBIndex/name)\n */\n name: string;\n /**\n * The **`objectStore`** property of the IDBIndex interface returns the object store referenced by the current index.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBIndex/objectStore)\n */\n readonly objectStore: IDBObjectStore;\n /**\n * The **`unique`** read-only property returns a boolean that states whether the index allows duplicate keys.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBIndex/unique)\n */\n readonly unique: boolean;\n /**\n * The **`count()`** method of the IDBIndex interface returns an IDBRequest object, and in a separate thread, returns the number of records within a key range.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBIndex/count)\n */\n count(query?: IDBValidKey | IDBKeyRange): IDBRequest<number>;\n /**\n * The **`get()`** method of the IDBIndex interface returns an IDBRequest object, and, in a separate thread, finds either the value in the referenced object store that corresponds to the given key or the first corresponding value, if `key` is set to an If a value is found, then a structured clone of it is created and set as the `result` of the request object: this returns the record the key is associated with.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBIndex/get)\n */\n get(query: IDBValidKey | IDBKeyRange): IDBRequest<any>;\n /**\n * The **`getAll()`** method of the IDBIndex interface retrieves all objects that are inside the index.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBIndex/getAll)\n */\n getAll(query?: IDBValidKey | IDBKeyRange | null, count?: number): IDBRequest<any[]>;\n /**\n * The **`getAllKeys()`** method of the IDBIndex interface asynchronously retrieves the primary keys of all objects inside the index, setting them as the `result` of the request object.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBIndex/getAllKeys)\n */\n getAllKeys(query?: IDBValidKey | IDBKeyRange | null, count?: number): IDBRequest<IDBValidKey[]>;\n /**\n * The **`getKey()`** method of the IDBIndex interface returns an IDBRequest object, and, in a separate thread, finds either the primary key that corresponds to the given key in this index or the first corresponding primary key, if `key` is set to an If a primary key is found, it is set as the `result` of the request object.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBIndex/getKey)\n */\n getKey(query: IDBValidKey | IDBKeyRange): IDBRequest<IDBValidKey | undefined>;\n /**\n * The **`openCursor()`** method of the IDBIndex interface returns an IDBRequest object, and, in a separate thread, creates a cursor over the specified key range.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBIndex/openCursor)\n */\n openCursor(query?: IDBValidKey | IDBKeyRange | null, direction?: IDBCursorDirection): IDBRequest<IDBCursorWithValue | null>;\n /**\n * The **`openKeyCursor()`** method of the a separate thread, creates a cursor over the specified key range, as arranged by this index.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBIndex/openKeyCursor)\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/**\n * The **`IDBKeyRange`** interface of the IndexedDB API represents a continuous interval over some data type that is used for keys.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBKeyRange)\n */\ninterface IDBKeyRange {\n /**\n * The **`lower`** read-only property of the The lower bound of the key range (can be any type.) The following example illustrates how you\'d use a key range.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBKeyRange/lower)\n */\n readonly lower: any;\n /**\n * The **`lowerOpen`** read-only property of the lower-bound value is included in the key range.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBKeyRange/lowerOpen)\n */\n readonly lowerOpen: boolean;\n /**\n * The **`upper`** read-only property of the The upper bound of the key range (can be any type.) The following example illustrates how you\'d use a key range.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBKeyRange/upper)\n */\n readonly upper: any;\n /**\n * The **`upperOpen`** read-only property of the upper-bound value is included in the key range.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBKeyRange/upperOpen)\n */\n readonly upperOpen: boolean;\n /**\n * The `includes()` method of the IDBKeyRange interface returns a boolean indicating whether a specified key is inside the key range.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBKeyRange/includes)\n */\n includes(key: any): boolean;\n}\n\ndeclare var IDBKeyRange: {\n prototype: IDBKeyRange;\n new(): IDBKeyRange;\n /**\n * The **`bound()`** static method of the IDBKeyRange interface creates a new key range with the specified upper and lower bounds.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBKeyRange/bound_static)\n */\n bound(lower: any, upper: any, lowerOpen?: boolean, upperOpen?: boolean): IDBKeyRange;\n /**\n * The **`lowerBound()`** static method of the By default, it includes the lower endpoint value and is closed.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBKeyRange/lowerBound_static)\n */\n lowerBound(lower: any, open?: boolean): IDBKeyRange;\n /**\n * The **`only()`** static method of the IDBKeyRange interface creates a new key range containing a single value.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBKeyRange/only_static)\n */\n only(value: any): IDBKeyRange;\n /**\n * The **`upperBound()`** static method of the it includes the upper endpoint value and is closed.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBKeyRange/upperBound_static)\n */\n upperBound(upper: any, open?: boolean): IDBKeyRange;\n};\n\n/**\n * The **`IDBObjectStore`** interface of the IndexedDB API represents an object store in a database.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBObjectStore)\n */\ninterface IDBObjectStore {\n /**\n * The **`autoIncrement`** read-only property of the for this object store.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBObjectStore/autoIncrement)\n */\n readonly autoIncrement: boolean;\n /**\n * The **`indexNames`** read-only property of the in this object store.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBObjectStore/indexNames)\n */\n readonly indexNames: DOMStringList;\n /**\n * The **`keyPath`** read-only property of the If this property is null, the application must provide a key for each modification operation.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBObjectStore/keyPath)\n */\n readonly keyPath: string | string[] | null;\n /**\n * The **`name`** property of the IDBObjectStore interface indicates the name of this object store.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBObjectStore/name)\n */\n name: string;\n /**\n * The **`transaction`** read-only property of the object store belongs.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBObjectStore/transaction)\n */\n readonly transaction: IDBTransaction;\n /**\n * The **`add()`** method of the IDBObjectStore interface returns an IDBRequest object, and, in a separate thread, creates a structured clone of the value, and stores the cloned value in the object store.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBObjectStore/add)\n */\n add(value: any, key?: IDBValidKey): IDBRequest<IDBValidKey>;\n /**\n * The **`clear()`** method of the IDBObjectStore interface creates and immediately returns an IDBRequest object, and clears this object store in a separate thread.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBObjectStore/clear)\n */\n clear(): IDBRequest<undefined>;\n /**\n * The **`count()`** method of the IDBObjectStore interface returns an IDBRequest object, and, in a separate thread, returns the total number of records that match the provided key or of records in the store.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBObjectStore/count)\n */\n count(query?: IDBValidKey | IDBKeyRange): IDBRequest<number>;\n /**\n * The **`createIndex()`** method of the field/column defining a new data point for each database record to contain.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBObjectStore/createIndex)\n */\n createIndex(name: string, keyPath: string | string[], options?: IDBIndexParameters): IDBIndex;\n /**\n * The **`delete()`** method of the and, in a separate thread, deletes the specified record or records.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBObjectStore/delete)\n */\n delete(query: IDBValidKey | IDBKeyRange): IDBRequest<undefined>;\n /**\n * The **`deleteIndex()`** method of the the connected database, used during a version upgrade.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBObjectStore/deleteIndex)\n */\n deleteIndex(name: string): void;\n /**\n * The **`get()`** method of the IDBObjectStore interface returns an IDBRequest object, and, in a separate thread, returns the object selected by the specified key.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBObjectStore/get)\n */\n get(query: IDBValidKey | IDBKeyRange): IDBRequest<any>;\n /**\n * The **`getAll()`** method of the containing all objects in the object store matching the specified parameter or all objects in the store if no parameters are given.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBObjectStore/getAll)\n */\n getAll(query?: IDBValidKey | IDBKeyRange | null, count?: number): IDBRequest<any[]>;\n /**\n * The `getAllKeys()` method of the IDBObjectStore interface returns an IDBRequest object retrieves record keys for all objects in the object store matching the specified parameter or all objects in the store if no parameters are given.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBObjectStore/getAllKeys)\n */\n getAllKeys(query?: IDBValidKey | IDBKeyRange | null, count?: number): IDBRequest<IDBValidKey[]>;\n /**\n * The **`getKey()`** method of the and, in a separate thread, returns the key selected by the specified query.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBObjectStore/getKey)\n */\n getKey(query: IDBValidKey | IDBKeyRange): IDBRequest<IDBValidKey | undefined>;\n /**\n * The **`index()`** method of the IDBObjectStore interface opens a named index in the current object store, after which it can be used to, for example, return a series of records sorted by that index using a cursor.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBObjectStore/index)\n */\n index(name: string): IDBIndex;\n /**\n * The **`openCursor()`** method of the and, in a separate thread, returns a new IDBCursorWithValue object.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBObjectStore/openCursor)\n */\n openCursor(query?: IDBValidKey | IDBKeyRange | null, direction?: IDBCursorDirection): IDBRequest<IDBCursorWithValue | null>;\n /**\n * The **`openKeyCursor()`** method of the whose result will be set to an IDBCursor that can be used to iterate through matching results.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBObjectStore/openKeyCursor)\n */\n openKeyCursor(query?: IDBValidKey | IDBKeyRange | null, direction?: IDBCursorDirection): IDBRequest<IDBCursor | null>;\n /**\n * The **`put()`** method of the IDBObjectStore interface updates a given record in a database, or inserts a new record if the given item does not already exist.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBObjectStore/put)\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": IDBVersionChangeEvent;\n "upgradeneeded": IDBVersionChangeEvent;\n}\n\n/**\n * The **`IDBOpenDBRequest`** interface of the IndexedDB API provides access to the results of requests to open or delete databases (performed using IDBFactory.open and IDBFactory.deleteDatabase), using specific event handler attributes.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBOpenDBRequest)\n */\ninterface IDBOpenDBRequest extends IDBRequest<IDBDatabase> {\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBOpenDBRequest/blocked_event) */\n onblocked: ((this: IDBOpenDBRequest, ev: IDBVersionChangeEvent) => any) | null;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBOpenDBRequest/upgradeneeded_event) */\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/**\n * The **`IDBRequest`** interface of the IndexedDB API provides access to results of asynchronous requests to databases and database objects using event handler attributes.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBRequest)\n */\ninterface IDBRequest<T = any> extends EventTarget {\n /**\n * The **`error`** read-only property of the request.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBRequest/error)\n */\n readonly error: DOMException | null;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBRequest/error_event) */\n onerror: ((this: IDBRequest<T>, ev: Event) => any) | null;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBRequest/success_event) */\n onsuccess: ((this: IDBRequest<T>, ev: Event) => any) | null;\n /**\n * The **`readyState`** read-only property of the Every request starts in the `pending` state.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBRequest/readyState)\n */\n readonly readyState: IDBRequestReadyState;\n /**\n * The **`result`** read-only property of the any - `InvalidStateError` DOMException - : Thrown when attempting to access the property if the request is not completed, and therefore the result is not available.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBRequest/result)\n */\n readonly result: T;\n /**\n * The **`source`** read-only property of the Index or an object store.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBRequest/source)\n */\n readonly source: IDBObjectStore | IDBIndex | IDBCursor;\n /**\n * The **`transaction`** read-only property of the IDBRequest interface returns the transaction for the request, that is, the transaction the request is being made inside.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBRequest/transaction)\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\n/**\n * The **`IDBTransaction`** interface of the IndexedDB API provides a static, asynchronous transaction on a database using event handler attributes.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBTransaction)\n */\ninterface IDBTransaction extends EventTarget {\n /**\n * The **`db`** read-only property of the IDBTransaction interface returns the database connection with which this transaction is associated.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBTransaction/db)\n */\n readonly db: IDBDatabase;\n /**\n * The **`durability`** read-only property of the IDBTransaction interface returns the durability hint the transaction was created with.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBTransaction/durability)\n */\n readonly durability: IDBTransactionDurability;\n /**\n * The **`IDBTransaction.error`** property of the IDBTransaction interface returns the type of error when there is an unsuccessful transaction.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBTransaction/error)\n */\n readonly error: DOMException | null;\n /**\n * The **`mode`** read-only property of the data in the object stores in the scope of the transaction (i.e., is the mode to be read-only, or do you want to write to the object stores?) The default value is `readonly`.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBTransaction/mode)\n */\n readonly mode: IDBTransactionMode;\n /**\n * The **`objectStoreNames`** read-only property of the of IDBObjectStore objects.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBTransaction/objectStoreNames)\n */\n readonly objectStoreNames: DOMStringList;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBTransaction/abort_event) */\n onabort: ((this: IDBTransaction, ev: Event) => any) | null;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBTransaction/complete_event) */\n oncomplete: ((this: IDBTransaction, ev: Event) => any) | null;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBTransaction/error_event) */\n onerror: ((this: IDBTransaction, ev: Event) => any) | null;\n /**\n * The **`abort()`** method of the IDBTransaction interface rolls back all the changes to objects in the database associated with this transaction.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBTransaction/abort)\n */\n abort(): void;\n /**\n * The **`commit()`** method of the IDBTransaction interface commits the transaction if it is called on an active transaction.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBTransaction/commit)\n */\n commit(): void;\n /**\n * The **`objectStore()`** method of the added to the scope of this transaction.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBTransaction/objectStore)\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/**\n * The **`IDBVersionChangeEvent`** interface of the IndexedDB API indicates that the version of the database has changed, as the result of an IDBOpenDBRequest.upgradeneeded_event event handler function.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBVersionChangeEvent)\n */\ninterface IDBVersionChangeEvent extends Event {\n /**\n * The **`newVersion`** read-only property of the database.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBVersionChangeEvent/newVersion)\n */\n readonly newVersion: number | null;\n /**\n * The **`oldVersion`** read-only property of the database.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBVersionChangeEvent/oldVersion)\n */\n readonly oldVersion: number;\n}\n\ndeclare var IDBVersionChangeEvent: {\n prototype: IDBVersionChangeEvent;\n new(type: string, eventInitDict?: IDBVersionChangeEventInit): IDBVersionChangeEvent;\n};\n\n/**\n * The **`ImageBitmap`** interface represents a bitmap image which can be drawn to a canvas without undue latency.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ImageBitmap)\n */\ninterface ImageBitmap {\n /**\n * The **`ImageBitmap.height`** read-only property returns the ImageBitmap object\'s height in CSS pixels.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ImageBitmap/height)\n */\n readonly height: number;\n /**\n * The **`ImageBitmap.width`** read-only property returns the ImageBitmap object\'s width in CSS pixels.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ImageBitmap/width)\n */\n readonly width: number;\n /**\n * The **`ImageBitmap.close()`** method disposes of all graphical resources associated with an `ImageBitmap`.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ImageBitmap/close)\n */\n close(): void;\n}\n\ndeclare var ImageBitmap: {\n prototype: ImageBitmap;\n new(): ImageBitmap;\n};\n\n/**\n * The **`ImageBitmapRenderingContext`** interface is a canvas rendering context that provides the functionality to replace the canvas\'s contents with the given ImageBitmap.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ImageBitmapRenderingContext)\n */\ninterface ImageBitmapRenderingContext {\n /**\n * The **`ImageBitmapRenderingContext.transferFromImageBitmap()`** method displays the given ImageBitmap in the canvas associated with this rendering context.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ImageBitmapRenderingContext/transferFromImageBitmap)\n */\n transferFromImageBitmap(bitmap: ImageBitmap | null): void;\n}\n\ndeclare var ImageBitmapRenderingContext: {\n prototype: ImageBitmapRenderingContext;\n new(): ImageBitmapRenderingContext;\n};\n\n/**\n * The **`ImageData`** interface represents the underlying pixel data of an area of a canvas element.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ImageData)\n */\ninterface ImageData {\n /**\n * The read-only **`ImageData.colorSpace`** property is a string indicating the color space of the image data.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ImageData/colorSpace)\n */\n readonly colorSpace: PredefinedColorSpace;\n /**\n * The readonly **`ImageData.data`** property returns a pixel data.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ImageData/data)\n */\n readonly data: ImageDataArray;\n /**\n * The readonly **`ImageData.height`** property returns the number of rows in the ImageData object.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ImageData/height)\n */\n readonly height: number;\n /**\n * The readonly **`ImageData.width`** property returns the number of pixels per row in the ImageData object.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ImageData/width)\n */\n readonly width: number;\n}\n\ndeclare var ImageData: {\n prototype: ImageData;\n new(sw: number, sh: number, settings?: ImageDataSettings): ImageData;\n new(data: ImageDataArray, sw: number, sh?: number, settings?: ImageDataSettings): ImageData;\n};\n\n/**\n * The **`ImageDecoder`** interface of the WebCodecs API provides a way to unpack and decode encoded image data.\n * Available only in secure contexts.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ImageDecoder)\n */\ninterface ImageDecoder {\n /**\n * The **`complete`** read-only property of the ImageDecoder interface returns true if encoded data has completed buffering.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ImageDecoder/complete)\n */\n readonly complete: boolean;\n /**\n * The **`completed`** read-only property of the ImageDecoder interface returns a promise that resolves once encoded data has finished buffering.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ImageDecoder/completed)\n */\n readonly completed: Promise<void>;\n /**\n * The **`tracks`** read-only property of the ImageDecoder interface returns a list of the tracks in the encoded image data.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ImageDecoder/tracks)\n */\n readonly tracks: ImageTrackList;\n /**\n * The **`type`** read-only property of the ImageDecoder interface reflects the MIME type configured during construction.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ImageDecoder/type)\n */\n readonly type: string;\n /**\n * The **`close()`** method of the ImageDecoder interface ends all pending work and releases system resources.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ImageDecoder/close)\n */\n close(): void;\n /**\n * The **`decode()`** method of the ImageDecoder interface enqueues a control message to decode the frame of an image.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ImageDecoder/decode)\n */\n decode(options?: ImageDecodeOptions): Promise<ImageDecodeResult>;\n /**\n * The **`reset()`** method of the ImageDecoder interface aborts all pending `decode()` operations; rejecting all pending promises.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ImageDecoder/reset)\n */\n reset(): void;\n}\n\ndeclare var ImageDecoder: {\n prototype: ImageDecoder;\n new(init: ImageDecoderInit): ImageDecoder;\n /**\n * The **`ImageDecoder.isTypeSupported()`** static method checks if a given MIME type can be decoded by the user agent.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ImageDecoder/isTypeSupported_static)\n */\n isTypeSupported(type: string): Promise<boolean>;\n};\n\n/**\n * The **`ImageTrack`** interface of the WebCodecs API represents an individual image track.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ImageTrack)\n */\ninterface ImageTrack {\n /**\n * The **`animated`** property of the ImageTrack interface returns `true` if the track is animated and therefore has multiple frames.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ImageTrack/animated)\n */\n readonly animated: boolean;\n /**\n * The **`frameCount`** property of the ImageTrack interface returns the number of frames in the track.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ImageTrack/frameCount)\n */\n readonly frameCount: number;\n /**\n * The **`repetitionCount`** property of the ImageTrack interface returns the number of repetitions of this track.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ImageTrack/repetitionCount)\n */\n readonly repetitionCount: number;\n /**\n * The **`selected`** property of the ImageTrack interface returns `true` if the track is selected for decoding.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ImageTrack/selected)\n */\n selected: boolean;\n}\n\ndeclare var ImageTrack: {\n prototype: ImageTrack;\n new(): ImageTrack;\n};\n\n/**\n * The **`ImageTrackList`** interface of the WebCodecs API represents a list of image tracks.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ImageTrackList)\n */\ninterface ImageTrackList {\n /**\n * The **`length`** property of the ImageTrackList interface returns the length of the `ImageTrackList`.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ImageTrackList/length)\n */\n readonly length: number;\n /**\n * The **`ready`** property of the ImageTrackList interface returns a Promise that resolves when the `ImageTrackList` is populated with ImageTrack.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ImageTrackList/ready)\n */\n readonly ready: Promise<void>;\n /**\n * The **`selectedIndex`** property of the ImageTrackList interface returns the `index` of the selected track.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ImageTrackList/selectedIndex)\n */\n readonly selectedIndex: number;\n /**\n * The **`selectedTrack`** property of the ImageTrackList interface returns an ImageTrack object representing the currently selected track.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ImageTrackList/selectedTrack)\n */\n readonly selectedTrack: ImageTrack | null;\n [index: number]: ImageTrack;\n}\n\ndeclare var ImageTrackList: {\n prototype: ImageTrackList;\n new(): ImageTrackList;\n};\n\ninterface ImportMeta {\n url: string;\n resolve(specifier: string): string;\n}\n\n/**\n * The **`KHR_parallel_shader_compile`** extension is part of the WebGL API and enables a non-blocking poll operation, so that compile/link status availability (`COMPLETION_STATUS_KHR`) can be queried without potentially incurring stalls.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/KHR_parallel_shader_compile)\n */\ninterface KHR_parallel_shader_compile {\n readonly COMPLETION_STATUS_KHR: 0x91B1;\n}\n\n/**\n * The **`Lock`** interface of the Web Locks API provides the name and mode of a lock.\n * Available only in secure contexts.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Lock)\n */\ninterface Lock {\n /**\n * The **`mode`** read-only property of the Lock interface returns the access mode passed to LockManager.request() when the lock was requested.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Lock/mode)\n */\n readonly mode: LockMode;\n /**\n * The **`name`** read-only property of the Lock interface returns the _name_ passed to The name of a lock is passed by script when the lock is requested.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Lock/name)\n */\n readonly name: string;\n}\n\ndeclare var Lock: {\n prototype: Lock;\n new(): Lock;\n};\n\n/**\n * The **`LockManager`** interface of the Web Locks API provides methods for requesting a new Lock object and querying for an existing `Lock` object.\n * Available only in secure contexts.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/LockManager)\n */\ninterface LockManager {\n /**\n * The **`query()`** method of the LockManager interface returns a Promise that resolves with an object containing information about held and pending locks.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/LockManager/query)\n */\n query(): Promise<LockManagerSnapshot>;\n /**\n * The **`request()`** method of the LockManager interface requests a Lock object with parameters specifying its name and characteristics.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/LockManager/request)\n */\n request<T>(name: string, callback: LockGrantedCallback<T>): Promise<T>;\n request<T>(name: string, options: LockOptions, callback: LockGrantedCallback<T>): Promise<T>;\n}\n\ndeclare var LockManager: {\n prototype: LockManager;\n new(): LockManager;\n};\n\n/**\n * The **`MediaCapabilities`** interface of the Media Capabilities API provides information about the decoding abilities of the device, system and browser.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaCapabilities)\n */\ninterface MediaCapabilities {\n /**\n * The **`decodingInfo()`** method of the MediaCapabilities interface returns a promise that fulfils with information about how well the user agent can decode/display media with a given configuration.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaCapabilities/decodingInfo)\n */\n decodingInfo(configuration: MediaDecodingConfiguration): Promise<MediaCapabilitiesDecodingInfo>;\n /**\n * The **`encodingInfo()`** method of the MediaCapabilities interface returns a promise that fulfills with the tested media configuration\'s capabilities for encoding media.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaCapabilities/encodingInfo)\n */\n encodingInfo(configuration: MediaEncodingConfiguration): Promise<MediaCapabilitiesEncodingInfo>;\n}\n\ndeclare var MediaCapabilities: {\n prototype: MediaCapabilities;\n new(): MediaCapabilities;\n};\n\n/**\n * The **`MediaSourceHandle`** interface of the Media Source Extensions API is a proxy for a MediaSource that can be transferred from a dedicated worker back to the main thread and attached to a media element via its HTMLMediaElement.srcObject property.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaSourceHandle)\n */\ninterface MediaSourceHandle {\n}\n\ndeclare var MediaSourceHandle: {\n prototype: MediaSourceHandle;\n new(): MediaSourceHandle;\n};\n\n/**\n * The **`MediaStreamTrackProcessor`** interface of the Insertable Streams for MediaStreamTrack API consumes a video MediaStreamTrack object\'s source and generates a stream of VideoFrame objects.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaStreamTrackProcessor)\n */\ninterface MediaStreamTrackProcessor {\n /**\n * The **`readable`** property of the MediaStreamTrackProcessor interface returns a ReadableStream of VideoFrames.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaStreamTrackProcessor/readable)\n */\n readonly readable: ReadableStream;\n}\n\ndeclare var MediaStreamTrackProcessor: {\n prototype: MediaStreamTrackProcessor;\n new(init: MediaStreamTrackProcessorInit): MediaStreamTrackProcessor;\n};\n\n/**\n * The **`MessageChannel`** interface of the Channel Messaging API allows us to create a new message channel and send data through it via its two MessagePort properties.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/MessageChannel)\n */\ninterface MessageChannel {\n /**\n * The **`port1`** read-only property of the the port attached to the context that originated the channel.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/MessageChannel/port1)\n */\n readonly port1: MessagePort;\n /**\n * The **`port2`** read-only property of the the port attached to the context at the other end of the channel, which the message is initially sent to.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/MessageChannel/port2)\n */\n readonly port2: MessagePort;\n}\n\ndeclare var MessageChannel: {\n prototype: MessageChannel;\n new(): MessageChannel;\n};\n\n/**\n * The **`MessageEvent`** interface represents a message received by a target object.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/MessageEvent)\n */\ninterface MessageEvent<T = any> extends Event {\n /**\n * The **`data`** read-only property of the The data sent by the message emitter; this can be any data type, depending on what originated this event.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/MessageEvent/data)\n */\n readonly data: T;\n /**\n * The **`lastEventId`** read-only property of the unique ID for the event.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/MessageEvent/lastEventId)\n */\n readonly lastEventId: string;\n /**\n * The **`origin`** read-only property of the origin of the message emitter.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/MessageEvent/origin)\n */\n readonly origin: string;\n /**\n * The **`ports`** read-only property of the containing all MessagePort objects sent with the message, in order.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/MessageEvent/ports)\n */\n readonly ports: ReadonlyArray<MessagePort>;\n /**\n * The **`source`** read-only property of the a WindowProxy, MessagePort, or a `MessageEventSource` (which can be a WindowProxy, message emitter.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/MessageEvent/source)\n */\n readonly source: MessageEventSource | null;\n /** @deprecated */\n initMessageEvent(type: string, bubbles?: boolean, cancelable?: boolean, data?: any, origin?: string, lastEventId?: string, source?: MessageEventSource | null, ports?: MessagePort[]): void;\n}\n\ndeclare var MessageEvent: {\n prototype: MessageEvent;\n new<T>(type: string, eventInitDict?: MessageEventInit<T>): MessageEvent<T>;\n};\n\ninterface MessageEventTargetEventMap {\n "message": MessageEvent;\n "messageerror": MessageEvent;\n}\n\ninterface MessageEventTarget<T> {\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DedicatedWorkerGlobalScope/message_event) */\n onmessage: ((this: T, ev: MessageEvent) => any) | null;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DedicatedWorkerGlobalScope/messageerror_event) */\n onmessageerror: ((this: T, ev: MessageEvent) => any) | null;\n addEventListener<K extends keyof MessageEventTargetEventMap>(type: K, listener: (this: T, ev: MessageEventTargetEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n removeEventListener<K extends keyof MessageEventTargetEventMap>(type: K, listener: (this: T, ev: MessageEventTargetEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\ninterface MessagePortEventMap extends MessageEventTargetEventMap {\n "message": MessageEvent;\n "messageerror": MessageEvent;\n}\n\n/**\n * The **`MessagePort`** interface of the Channel Messaging API 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.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/MessagePort)\n */\ninterface MessagePort extends EventTarget, MessageEventTarget<MessagePort> {\n /**\n * The **`close()`** method of the MessagePort interface disconnects the port, so it is no longer active.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/MessagePort/close)\n */\n close(): void;\n /**\n * The **`postMessage()`** method of the transfers ownership of objects to other browsing contexts.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/MessagePort/postMessage)\n */\n postMessage(message: any, transfer: Transferable[]): void;\n postMessage(message: any, options?: StructuredSerializeOptions): void;\n /**\n * The **`start()`** method of the MessagePort interface starts the sending of messages queued on the port.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/MessagePort/start)\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/**\n * The **`NavigationPreloadManager`** interface of the Service Worker API provides methods for managing the preloading of resources in parallel with service worker bootup.\n * Available only in secure contexts.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/NavigationPreloadManager)\n */\ninterface NavigationPreloadManager {\n /**\n * The **`disable()`** method of the NavigationPreloadManager interface halts the automatic preloading of service-worker-managed resources previously started using NavigationPreloadManager.enable() It returns a promise that resolves with `undefined`.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/NavigationPreloadManager/disable)\n */\n disable(): Promise<void>;\n /**\n * The **`enable()`** method of the NavigationPreloadManager interface is used to enable preloading of resources managed by the service worker.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/NavigationPreloadManager/enable)\n */\n enable(): Promise<void>;\n /**\n * The **`getState()`** method of the NavigationPreloadManager interface returns a Promise that resolves to an object with properties that indicate whether preload is enabled and what value will be sent in the Service-Worker-Navigation-Preload HTTP header.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/NavigationPreloadManager/getState)\n */\n getState(): Promise<NavigationPreloadState>;\n /**\n * The **`setHeaderValue()`** method of the NavigationPreloadManager interface sets the value of the Service-Worker-Navigation-Preload header that will be sent with requests resulting from a Window/fetch operation made during service worker navigation preloading.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/NavigationPreloadManager/setHeaderValue)\n */\n setHeaderValue(value: string): Promise<void>;\n}\n\ndeclare var NavigationPreloadManager: {\n prototype: NavigationPreloadManager;\n new(): NavigationPreloadManager;\n};\n\n/** Available only in secure contexts. */\ninterface NavigatorBadge {\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Navigator/clearAppBadge) */\n clearAppBadge(): Promise<void>;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Navigator/setAppBadge) */\n setAppBadge(contents?: number): Promise<void>;\n}\n\ninterface NavigatorConcurrentHardware {\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Navigator/hardwareConcurrency) */\n readonly hardwareConcurrency: number;\n}\n\ninterface NavigatorID {\n /**\n * @deprecated\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Navigator/appCodeName)\n */\n readonly appCodeName: string;\n /**\n * @deprecated\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Navigator/appName)\n */\n readonly appName: string;\n /**\n * @deprecated\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Navigator/appVersion)\n */\n readonly appVersion: string;\n /**\n * @deprecated\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Navigator/platform)\n */\n readonly platform: string;\n /**\n * @deprecated\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Navigator/product)\n */\n readonly product: string;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Navigator/userAgent) */\n readonly userAgent: string;\n}\n\ninterface NavigatorLanguage {\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Navigator/language) */\n readonly language: string;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Navigator/languages) */\n readonly languages: ReadonlyArray<string>;\n}\n\n/** Available only in secure contexts. */\ninterface NavigatorLocks {\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Navigator/locks) */\n readonly locks: LockManager;\n}\n\ninterface NavigatorOnLine {\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Navigator/onLine) */\n readonly onLine: boolean;\n}\n\n/** Available only in secure contexts. */\ninterface NavigatorStorage {\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Navigator/storage) */\n readonly storage: StorageManager;\n}\n\ninterface NotificationEventMap {\n "click": Event;\n "close": Event;\n "error": Event;\n "show": Event;\n}\n\n/**\n * The **`Notification`** interface of the Notifications API is used to configure and display desktop notifications to the user.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Notification)\n */\ninterface Notification extends EventTarget {\n /**\n * The **`badge`** read-only property of the Notification interface returns a string containing the URL of an image to represent the notification when there is not enough space to display the notification itself such as for example, the Android Notification Bar.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Notification/badge)\n */\n readonly badge: string;\n /**\n * The **`body`** read-only property of the specified in the `body` option of the A string.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Notification/body)\n */\n readonly body: string;\n /**\n * The **`data`** read-only property of the data, as specified in the `data` option of the The notification\'s data can be any arbitrary data that you want associated with the notification.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Notification/data)\n */\n readonly data: any;\n /**\n * The **`dir`** read-only property of the Notification interface indicates the text direction of the notification, as specified in the `dir` option of the Notification.Notification constructor.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Notification/dir)\n */\n readonly dir: NotificationDirection;\n /**\n * The **`icon`** read-only property of the part of the notification, as specified in the `icon` option of the A string.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Notification/icon)\n */\n readonly icon: string;\n /**\n * The **`lang`** read-only property of the as specified in the `lang` option of the The language itself is specified using a string representing a language tag according to MISSING: RFC(5646, \'Tags for Identifying Languages (also known as BCP 47)\')].\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Notification/lang)\n */\n readonly lang: string;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Notification/click_event) */\n onclick: ((this: Notification, ev: Event) => any) | null;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Notification/close_event) */\n onclose: ((this: Notification, ev: Event) => any) | null;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Notification/error_event) */\n onerror: ((this: Notification, ev: Event) => any) | null;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Notification/show_event) */\n onshow: ((this: Notification, ev: Event) => any) | null;\n /**\n * The **`requireInteraction`** read-only property of the Notification interface returns a boolean value indicating that a notification should remain active until the user clicks or dismisses it, rather than closing automatically.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Notification/requireInteraction)\n */\n readonly requireInteraction: boolean;\n /**\n * The **`silent`** read-only property of the silent, i.e., no sounds or vibrations should be issued regardless of the device settings.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Notification/silent)\n */\n readonly silent: boolean | null;\n /**\n * The **`tag`** read-only property of the as specified in the `tag` option of the The idea of notification tags is that more than one notification can share the same tag, linking them together.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Notification/tag)\n */\n readonly tag: string;\n /**\n * The **`title`** read-only property of the specified in the `title` parameter of the A string.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Notification/title)\n */\n readonly title: string;\n /**\n * The **`close()`** method of the Notification interface is used to close/remove a previously displayed notification.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Notification/close)\n */\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 /**\n * The **`permission`** read-only static property of the Notification interface indicates the current permission granted by the user for the current origin to display web notifications.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Notification/permission_static)\n */\n readonly permission: NotificationPermission;\n};\n\n/**\n * The **`NotificationEvent`** interface of the Notifications API represents a notification event dispatched on the ServiceWorkerGlobalScope of a ServiceWorker.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/NotificationEvent)\n */\ninterface NotificationEvent extends ExtendableEvent {\n /**\n * The **`action`** read-only property of the NotificationEvent interface returns the string ID of the notification button the user clicked.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/NotificationEvent/action)\n */\n readonly action: string;\n /**\n * The **`notification`** read-only property of the NotificationEvent interface returns the instance of the Notification that was clicked to fire the event.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/NotificationEvent/notification)\n */\n readonly notification: Notification;\n}\n\ndeclare var NotificationEvent: {\n prototype: NotificationEvent;\n new(type: string, eventInitDict: NotificationEventInit): NotificationEvent;\n};\n\n/**\n * The **`OES_draw_buffers_indexed`** extension is part of the WebGL API and enables the use of different blend options when writing to multiple color buffers simultaneously.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/OES_draw_buffers_indexed)\n */\ninterface OES_draw_buffers_indexed {\n /**\n * The `blendEquationSeparateiOES()` method of the OES_draw_buffers_indexed WebGL extension sets the RGB and alpha blend equations separately for a particular draw buffer.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/OES_draw_buffers_indexed/blendEquationSeparateiOES)\n */\n blendEquationSeparateiOES(buf: GLuint, modeRGB: GLenum, modeAlpha: GLenum): void;\n /**\n * The `blendEquationiOES()` method of the `OES_draw_buffers_indexed` WebGL extension sets both the RGB blend and alpha blend equations for a particular draw buffer.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/OES_draw_buffers_indexed/blendEquationiOES)\n */\n blendEquationiOES(buf: GLuint, mode: GLenum): void;\n /**\n * The `blendFuncSeparateiOES()` method of the OES_draw_buffers_indexed WebGL extension defines which function is used when blending pixels for RGB and alpha components separately for a particular draw buffer.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/OES_draw_buffers_indexed/blendFuncSeparateiOES)\n */\n blendFuncSeparateiOES(buf: GLuint, srcRGB: GLenum, dstRGB: GLenum, srcAlpha: GLenum, dstAlpha: GLenum): void;\n /**\n * The `blendFunciOES()` method of the OES_draw_buffers_indexed WebGL extension defines which function is used when blending pixels for a particular draw buffer.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/OES_draw_buffers_indexed/blendFunciOES)\n */\n blendFunciOES(buf: GLuint, src: GLenum, dst: GLenum): void;\n /**\n * The `colorMaskiOES()` method of the OES_draw_buffers_indexed WebGL extension sets which color components to enable or to disable when drawing or rendering for a particular draw buffer.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/OES_draw_buffers_indexed/colorMaskiOES)\n */\n colorMaskiOES(buf: GLuint, r: GLboolean, g: GLboolean, b: GLboolean, a: GLboolean): void;\n /**\n * The `disableiOES()` method of the OES_draw_buffers_indexed WebGL extension enables blending for a particular draw buffer.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/OES_draw_buffers_indexed/disableiOES)\n */\n disableiOES(target: GLenum, index: GLuint): void;\n /**\n * The `enableiOES()` method of the OES_draw_buffers_indexed WebGL extension enables blending for a particular draw buffer.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/OES_draw_buffers_indexed/enableiOES)\n */\n enableiOES(target: GLenum, index: GLuint): void;\n}\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().\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/OES_element_index_uint)\n */\ninterface OES_element_index_uint {\n}\n\n/**\n * The `OES_fbo_render_mipmap` extension is part of the WebGL API and makes it possible to attach any level of a texture to a framebuffer object.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/OES_fbo_render_mipmap)\n */\ninterface OES_fbo_render_mipmap {\n}\n\n/**\n * The **`OES_standard_derivatives`** extension is part of the WebGL API and adds the GLSL derivative functions `dFdx`, `dFdy`, and `fwidth`.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/OES_standard_derivatives)\n */\ninterface OES_standard_derivatives {\n readonly FRAGMENT_SHADER_DERIVATIVE_HINT_OES: 0x8B8B;\n}\n\n/**\n * The **`OES_texture_float`** extension is part of the WebGL API and exposes floating-point pixel types for textures.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/OES_texture_float)\n */\ninterface OES_texture_float {\n}\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.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/OES_texture_float_linear)\n */\ninterface OES_texture_float_linear {\n}\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.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/OES_texture_half_float)\n */\ninterface OES_texture_half_float {\n readonly HALF_FLOAT_OES: 0x8D61;\n}\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.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/OES_texture_half_float_linear)\n */\ninterface OES_texture_half_float_linear {\n}\n\n/**\n * The **OES_vertex_array_object** extension is part of the WebGL API and provides vertex array objects (VAOs) which encapsulate vertex array states.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/OES_vertex_array_object)\n */\ninterface OES_vertex_array_object {\n /**\n * The **`OES_vertex_array_object.bindVertexArrayOES()`** method of the WebGL API binds a passed WebGLVertexArrayObject object to the buffer.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/OES_vertex_array_object/bindVertexArrayOES)\n */\n bindVertexArrayOES(arrayObject: WebGLVertexArrayObjectOES | null): void;\n /**\n * The **`OES_vertex_array_object.createVertexArrayOES()`** method of the WebGL API creates and initializes a pointing to vertex array data and which provides names for different sets of vertex data.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/OES_vertex_array_object/createVertexArrayOES)\n */\n createVertexArrayOES(): WebGLVertexArrayObjectOES;\n /**\n * The **`OES_vertex_array_object.deleteVertexArrayOES()`** method of the WebGL API deletes a given ```js-nolint deleteVertexArrayOES(arrayObject) ``` - `arrayObject` - : A WebGLVertexArrayObject (VAO) object to delete.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/OES_vertex_array_object/deleteVertexArrayOES)\n */\n deleteVertexArrayOES(arrayObject: WebGLVertexArrayObjectOES | null): void;\n /**\n * The **`OES_vertex_array_object.isVertexArrayOES()`** method of the WebGL API returns `true` if the passed object is a WebGLVertexArrayObject object.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/OES_vertex_array_object/isVertexArrayOES)\n */\n isVertexArrayOES(arrayObject: WebGLVertexArrayObjectOES | null): GLboolean;\n readonly VERTEX_ARRAY_BINDING_OES: 0x85B5;\n}\n\n/**\n * The `OVR_multiview2` extension is part of the WebGL API and adds support for rendering into multiple views simultaneously.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/OVR_multiview2)\n */\ninterface OVR_multiview2 {\n /**\n * The **`OVR_multiview2.framebufferTextureMultiviewOVR()`** method of the WebGL API attaches a multiview texture to a WebGLFramebuffer.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/OVR_multiview2/framebufferTextureMultiviewOVR)\n */\n framebufferTextureMultiviewOVR(target: GLenum, attachment: GLenum, texture: WebGLTexture | null, level: GLint, baseViewIndex: GLint, numViews: GLsizei): void;\n readonly FRAMEBUFFER_ATTACHMENT_TEXTURE_NUM_VIEWS_OVR: 0x9630;\n readonly FRAMEBUFFER_ATTACHMENT_TEXTURE_BASE_VIEW_INDEX_OVR: 0x9632;\n readonly MAX_VIEWS_OVR: 0x9631;\n readonly FRAMEBUFFER_INCOMPLETE_VIEW_TARGETS_OVR: 0x9633;\n}\n\ninterface OffscreenCanvasEventMap {\n "contextlost": Event;\n "contextrestored": Event;\n}\n\n/**\n * When using the canvas element or the Canvas API, rendering, animation, and user interaction usually happen on the main execution thread of a web application.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/OffscreenCanvas)\n */\ninterface OffscreenCanvas extends EventTarget {\n /**\n * The **`height`** property returns and sets the height of an OffscreenCanvas object.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/OffscreenCanvas/height)\n */\n height: number;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/OffscreenCanvas/contextlost_event) */\n oncontextlost: ((this: OffscreenCanvas, ev: Event) => any) | null;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/OffscreenCanvas/contextrestored_event) */\n oncontextrestored: ((this: OffscreenCanvas, ev: Event) => any) | null;\n /**\n * The **`width`** property returns and sets the width of an OffscreenCanvas object.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/OffscreenCanvas/width)\n */\n width: number;\n /**\n * The **`OffscreenCanvas.convertToBlob()`** method creates a Blob object representing the image contained in the canvas.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/OffscreenCanvas/convertToBlob)\n */\n convertToBlob(options?: ImageEncodeOptions): Promise<Blob>;\n /**\n * The **`OffscreenCanvas.getContext()`** method returns a drawing context for an offscreen canvas, or `null` if the context identifier is not supported, or the offscreen canvas has already been set to a different context mode.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/OffscreenCanvas/getContext)\n */\n getContext(contextId: "2d", options?: any): OffscreenCanvasRenderingContext2D | null;\n getContext(contextId: "bitmaprenderer", options?: any): ImageBitmapRenderingContext | null;\n getContext(contextId: "webgl", options?: any): WebGLRenderingContext | null;\n getContext(contextId: "webgl2", options?: any): WebGL2RenderingContext | null;\n getContext(contextId: OffscreenRenderingContextId, options?: any): OffscreenRenderingContext | null;\n /**\n * The **`OffscreenCanvas.transferToImageBitmap()`** method creates an ImageBitmap object from the most recently rendered image of the `OffscreenCanvas`.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/OffscreenCanvas/transferToImageBitmap)\n */\n transferToImageBitmap(): ImageBitmap;\n addEventListener<K extends keyof OffscreenCanvasEventMap>(type: K, listener: (this: OffscreenCanvas, ev: OffscreenCanvasEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n removeEventListener<K extends keyof OffscreenCanvasEventMap>(type: K, listener: (this: OffscreenCanvas, ev: OffscreenCanvasEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\ndeclare var OffscreenCanvas: {\n prototype: OffscreenCanvas;\n new(width: number, height: number): OffscreenCanvas;\n};\n\n/**\n * The **`OffscreenCanvasRenderingContext2D`** interface is a CanvasRenderingContext2D rendering context for drawing to the bitmap of an `OffscreenCanvas` object.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/OffscreenCanvasRenderingContext2D)\n */\ninterface OffscreenCanvasRenderingContext2D extends CanvasCompositing, CanvasDrawImage, CanvasDrawPath, CanvasFillStrokeStyles, CanvasFilters, CanvasImageData, CanvasImageSmoothing, CanvasPath, CanvasPathDrawingStyles, CanvasRect, CanvasShadowStyles, CanvasState, CanvasText, CanvasTextDrawingStyles, CanvasTransform {\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/canvas) */\n readonly canvas: OffscreenCanvas;\n}\n\ndeclare var OffscreenCanvasRenderingContext2D: {\n prototype: OffscreenCanvasRenderingContext2D;\n new(): OffscreenCanvasRenderingContext2D;\n};\n\n/**\n * The **`Path2D`** interface of the Canvas 2D API is used to declare a path that can then be used on a CanvasRenderingContext2D object.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Path2D)\n */\ninterface Path2D extends CanvasPath {\n /**\n * The **`Path2D.addPath()`** method of the Canvas 2D API adds one Path2D object to another `Path2D` object.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Path2D/addPath)\n */\n addPath(path: Path2D, transform?: DOMMatrix2DInit): void;\n}\n\ndeclare var Path2D: {\n prototype: Path2D;\n new(path?: Path2D | string): Path2D;\n};\n\ninterface PerformanceEventMap {\n "resourcetimingbufferfull": Event;\n}\n\n/**\n * The **`Performance`** interface provides access to performance-related information for the current page.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Performance)\n */\ninterface Performance extends EventTarget {\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Performance/resourcetimingbufferfull_event) */\n onresourcetimingbufferfull: ((this: Performance, ev: Event) => any) | null;\n /**\n * The **`timeOrigin`** read-only property of the Performance interface returns the high resolution timestamp that is used as the baseline for performance-related timestamps.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Performance/timeOrigin)\n */\n readonly timeOrigin: DOMHighResTimeStamp;\n /**\n * The **`clearMarks()`** method removes all or specific PerformanceMark objects from the browser\'s performance timeline.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Performance/clearMarks)\n */\n clearMarks(markName?: string): void;\n /**\n * The **`clearMeasures()`** method removes all or specific PerformanceMeasure objects from the browser\'s performance timeline.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Performance/clearMeasures)\n */\n clearMeasures(measureName?: string): void;\n /**\n * The **`clearResourceTimings()`** method removes all performance entries with an PerformanceEntry.entryType of `\'resource\'` from the browser\'s performance timeline and sets the size of the performance resource data buffer to zero.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Performance/clearResourceTimings)\n */\n clearResourceTimings(): void;\n /**\n * The **`getEntries()`** method returns an array of all PerformanceEntry objects currently present in the performance timeline.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Performance/getEntries)\n */\n getEntries(): PerformanceEntryList;\n /**\n * The **`getEntriesByName()`** method returns an array of PerformanceEntry objects currently present in the performance timeline with the given _name_ and _type_.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Performance/getEntriesByName)\n */\n getEntriesByName(name: string, type?: string): PerformanceEntryList;\n /**\n * The **`getEntriesByType()`** method returns an array of PerformanceEntry objects currently present in the performance timeline for a given _type_.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Performance/getEntriesByType)\n */\n getEntriesByType(type: string): PerformanceEntryList;\n /**\n * The **`mark()`** method creates a named PerformanceMark object representing a high resolution timestamp marker in the browser\'s performance timeline.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Performance/mark)\n */\n mark(markName: string, markOptions?: PerformanceMarkOptions): PerformanceMark;\n /**\n * The **`measure()`** method creates a named PerformanceMeasure object representing a time measurement between two marks in the browser\'s performance timeline.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Performance/measure)\n */\n measure(measureName: string, startOrMeasureOptions?: string | PerformanceMeasureOptions, endMark?: string): PerformanceMeasure;\n /**\n * The **`performance.now()`** method returns a high resolution timestamp in milliseconds.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Performance/now)\n */\n now(): DOMHighResTimeStamp;\n /**\n * The **`setResourceTimingBufferSize()`** method sets the desired size of the browser\'s resource timing buffer which stores the `\'resource\'` performance entries.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Performance/setResourceTimingBufferSize)\n */\n setResourceTimingBufferSize(maxSize: number): void;\n /**\n * The **`toJSON()`** method of the Performance interface is a Serialization; it returns a JSON representation of the Performance object.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Performance/toJSON)\n */\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/**\n * The **`PerformanceEntry`** object encapsulates a single performance metric that is part of the browser\'s performance timeline.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceEntry)\n */\ninterface PerformanceEntry {\n /**\n * The read-only **`duration`** property returns a DOMHighResTimeStamp that is the duration of the PerformanceEntry.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceEntry/duration)\n */\n readonly duration: DOMHighResTimeStamp;\n /**\n * The read-only **`entryType`** property returns a string representing the type of performance metric that this entry represents.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceEntry/entryType)\n */\n readonly entryType: string;\n /**\n * The read-only **`name`** property of the PerformanceEntry interface is a string representing the name for a performance entry.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceEntry/name)\n */\n readonly name: string;\n /**\n * The read-only **`startTime`** property returns the first DOMHighResTimeStamp recorded for this PerformanceEntry.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceEntry/startTime)\n */\n readonly startTime: DOMHighResTimeStamp;\n /**\n * The **`toJSON()`** method is a Serialization; it returns a JSON representation of the PerformanceEntry object.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceEntry/toJSON)\n */\n toJSON(): any;\n}\n\ndeclare var PerformanceEntry: {\n prototype: PerformanceEntry;\n new(): PerformanceEntry;\n};\n\n/**\n * **`PerformanceMark`** is an interface for PerformanceEntry objects with an PerformanceEntry.entryType of `\'mark\'`.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceMark)\n */\ninterface PerformanceMark extends PerformanceEntry {\n /**\n * The read-only **`detail`** property returns arbitrary metadata that was included in the mark upon construction (either when using Performance.mark or the PerformanceMark.PerformanceMark constructor).\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceMark/detail)\n */\n readonly detail: any;\n}\n\ndeclare var PerformanceMark: {\n prototype: PerformanceMark;\n new(markName: string, markOptions?: PerformanceMarkOptions): PerformanceMark;\n};\n\n/**\n * **`PerformanceMeasure`** is an _abstract_ interface for PerformanceEntry objects with an PerformanceEntry.entryType of `\'measure\'`.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceMeasure)\n */\ninterface PerformanceMeasure extends PerformanceEntry {\n /**\n * The read-only **`detail`** property returns arbitrary metadata that was included in the mark upon construction (when using Performance.measure.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceMeasure/detail)\n */\n readonly detail: any;\n}\n\ndeclare var PerformanceMeasure: {\n prototype: PerformanceMeasure;\n new(): PerformanceMeasure;\n};\n\n/**\n * The **`PerformanceObserver`** interface is used to observe performance measurement events and be notified of new PerformanceEntry as they are recorded in the browser\'s _performance timeline_.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceObserver)\n */\ninterface PerformanceObserver {\n /**\n * The **`disconnect()`** method of the PerformanceObserver interface is used to stop the performance observer from receiving any PerformanceEntry events.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceObserver/disconnect)\n */\n disconnect(): void;\n /**\n * The **`observe()`** method of the **PerformanceObserver** interface is used to specify the set of performance entry types to observe.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceObserver/observe)\n */\n observe(options?: PerformanceObserverInit): void;\n /**\n * The **`takeRecords()`** method of the PerformanceObserver interface returns the current list of PerformanceEntry objects stored in the performance observer, emptying it out.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceObserver/takeRecords)\n */\n takeRecords(): PerformanceEntryList;\n}\n\ndeclare var PerformanceObserver: {\n prototype: PerformanceObserver;\n new(callback: PerformanceObserverCallback): PerformanceObserver;\n /**\n * The static **`supportedEntryTypes`** read-only property of the PerformanceObserver interface returns an array of the PerformanceEntry.entryType values supported by the user agent.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceObserver/supportedEntryTypes_static)\n */\n readonly supportedEntryTypes: ReadonlyArray<string>;\n};\n\n/**\n * The **`PerformanceObserverEntryList`** interface is a list of PerformanceEntry that were explicitly observed via the PerformanceObserver.observe method.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceObserverEntryList)\n */\ninterface PerformanceObserverEntryList {\n /**\n * The **`getEntries()`** method of the PerformanceObserverEntryList interface returns a list of explicitly observed PerformanceEntry objects.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceObserverEntryList/getEntries)\n */\n getEntries(): PerformanceEntryList;\n /**\n * The **`getEntriesByName()`** method of the PerformanceObserverEntryList interface returns a list of explicitly observed PerformanceEntry objects for a given PerformanceEntry.name and PerformanceEntry.entryType.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceObserverEntryList/getEntriesByName)\n */\n getEntriesByName(name: string, type?: string): PerformanceEntryList;\n /**\n * The **`getEntriesByType()`** method of the PerformanceObserverEntryList returns a list of explicitly _observed_ PerformanceEntry objects for a given PerformanceEntry.entryType.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceObserverEntryList/getEntriesByType)\n */\n getEntriesByType(type: string): PerformanceEntryList;\n}\n\ndeclare var PerformanceObserverEntryList: {\n prototype: PerformanceObserverEntryList;\n new(): PerformanceObserverEntryList;\n};\n\n/**\n * The **`PerformanceResourceTiming`** interface enables retrieval and analysis of detailed network timing data regarding the loading of an application\'s resources.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceResourceTiming)\n */\ninterface PerformanceResourceTiming extends PerformanceEntry {\n /**\n * The **`connectEnd`** read-only property returns the DOMHighResTimeStamp immediately after the browser finishes establishing the connection to the server to retrieve the resource.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceResourceTiming/connectEnd)\n */\n readonly connectEnd: DOMHighResTimeStamp;\n /**\n * The **`connectStart`** read-only property returns the DOMHighResTimeStamp immediately before the user agent starts establishing the connection to the server to retrieve the resource.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceResourceTiming/connectStart)\n */\n readonly connectStart: DOMHighResTimeStamp;\n /**\n * The **`decodedBodySize`** read-only property returns the size (in octets) received from the fetch (HTTP or cache) of the message body after removing any applied content encoding (like gzip or Brotli).\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceResourceTiming/decodedBodySize)\n */\n readonly decodedBodySize: number;\n /**\n * The **`domainLookupEnd`** read-only property returns the DOMHighResTimeStamp immediately after the browser finishes the domain-name lookup for the resource.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceResourceTiming/domainLookupEnd)\n */\n readonly domainLookupEnd: DOMHighResTimeStamp;\n /**\n * The **`domainLookupStart`** read-only property returns the DOMHighResTimeStamp immediately before the browser starts the domain name lookup for the resource.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceResourceTiming/domainLookupStart)\n */\n readonly domainLookupStart: DOMHighResTimeStamp;\n /**\n * The **`encodedBodySize`** read-only property represents the size (in octets) received from the fetch (HTTP or cache) of the payload body before removing any applied content encodings (like gzip or Brotli).\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceResourceTiming/encodedBodySize)\n */\n readonly encodedBodySize: number;\n /**\n * The **`fetchStart`** read-only property represents a DOMHighResTimeStamp immediately before the browser starts to fetch the resource.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceResourceTiming/fetchStart)\n */\n readonly fetchStart: DOMHighResTimeStamp;\n /**\n * The **`initiatorType`** read-only property is a string representing web platform feature that initiated the resource load.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceResourceTiming/initiatorType)\n */\n readonly initiatorType: string;\n /**\n * The **`nextHopProtocol`** read-only property is a string representing the network protocol used to fetch the resource, as identified by the ALPN Protocol ID (RFC7301).\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceResourceTiming/nextHopProtocol)\n */\n readonly nextHopProtocol: string;\n /**\n * The **`redirectEnd`** read-only property returns a DOMHighResTimeStamp immediately after receiving the last byte of the response of the last redirect.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceResourceTiming/redirectEnd)\n */\n readonly redirectEnd: DOMHighResTimeStamp;\n /**\n * The **`redirectStart`** read-only property returns a DOMHighResTimeStamp representing the start time of the fetch which that initiates the redirect.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceResourceTiming/redirectStart)\n */\n readonly redirectStart: DOMHighResTimeStamp;\n /**\n * The **`requestStart`** read-only property returns a DOMHighResTimeStamp of the time immediately before the browser starts requesting the resource from the server, cache, or local resource.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceResourceTiming/requestStart)\n */\n readonly requestStart: DOMHighResTimeStamp;\n /**\n * The **`responseEnd`** read-only property returns a DOMHighResTimeStamp immediately after the browser receives the last byte of the resource or immediately before the transport connection is closed, whichever comes first.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceResourceTiming/responseEnd)\n */\n readonly responseEnd: DOMHighResTimeStamp;\n /**\n * The **`responseStart`** read-only property returns a DOMHighResTimeStamp immediately after the browser receives the first byte of the response from the server, cache, or local resource.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceResourceTiming/responseStart)\n */\n readonly responseStart: DOMHighResTimeStamp;\n /**\n * The **`responseStatus`** read-only property represents the HTTP response status code returned when fetching the resource.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceResourceTiming/responseStatus)\n */\n readonly responseStatus: number;\n /**\n * The **`secureConnectionStart`** read-only property returns a DOMHighResTimeStamp immediately before the browser starts the handshake process to secure the current connection.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceResourceTiming/secureConnectionStart)\n */\n readonly secureConnectionStart: DOMHighResTimeStamp;\n /**\n * The **`serverTiming`** read-only property returns an array of PerformanceServerTiming entries containing server timing metrics.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceResourceTiming/serverTiming)\n */\n readonly serverTiming: ReadonlyArray<PerformanceServerTiming>;\n /**\n * The **`transferSize`** read-only property represents the size (in octets) of the fetched resource.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceResourceTiming/transferSize)\n */\n readonly transferSize: number;\n /**\n * The **`workerStart`** read-only property of the PerformanceResourceTiming interface returns a The `workerStart` property can have the following values: - A DOMHighResTimeStamp.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceResourceTiming/workerStart)\n */\n readonly workerStart: DOMHighResTimeStamp;\n /**\n * The **`toJSON()`** method of the PerformanceResourceTiming interface is a Serialization; it returns a JSON representation of the PerformanceResourceTiming object.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceResourceTiming/toJSON)\n */\n toJSON(): any;\n}\n\ndeclare var PerformanceResourceTiming: {\n prototype: PerformanceResourceTiming;\n new(): PerformanceResourceTiming;\n};\n\n/**\n * The **`PerformanceServerTiming`** interface surfaces server metrics that are sent with the response in the Server-Timing HTTP header.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceServerTiming)\n */\ninterface PerformanceServerTiming {\n /**\n * The **`description`** read-only property returns a string value of the server-specified metric description, or an empty string.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceServerTiming/description)\n */\n readonly description: string;\n /**\n * The **`duration`** read-only property returns a double that contains the server-specified metric duration, or the value `0.0`.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceServerTiming/duration)\n */\n readonly duration: DOMHighResTimeStamp;\n /**\n * The **`name`** read-only property returns a string value of the server-specified metric name.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceServerTiming/name)\n */\n readonly name: string;\n /**\n * The **`toJSON()`** method of the PerformanceServerTiming interface is a Serialization; it returns a JSON representation of the PerformanceServerTiming object.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceServerTiming/toJSON)\n */\n toJSON(): any;\n}\n\ndeclare var PerformanceServerTiming: {\n prototype: PerformanceServerTiming;\n new(): PerformanceServerTiming;\n};\n\ninterface PermissionStatusEventMap {\n "change": Event;\n}\n\n/**\n * The **`PermissionStatus`** interface of the Permissions API provides the state of an object and an event handler for monitoring changes to said state.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/PermissionStatus)\n */\ninterface PermissionStatus extends EventTarget {\n /**\n * The **`name`** read-only property of the PermissionStatus interface returns the name of a requested permission.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/PermissionStatus/name)\n */\n readonly name: string;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PermissionStatus/change_event) */\n onchange: ((this: PermissionStatus, ev: Event) => any) | null;\n /**\n * The **`state`** read-only property of the This property returns one of `\'granted\'`, `\'denied\'`, or `\'prompt\'`.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/PermissionStatus/state)\n */\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\n/**\n * The **`Permissions`** interface of the Permissions API provides the core Permission API functionality, such as methods for querying and revoking permissions - Permissions.query - : Returns the user permission status for a given API.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Permissions)\n */\ninterface Permissions {\n /**\n * The **`query()`** method of the Permissions interface returns the state of a user permission on the global scope.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Permissions/query)\n */\n query(permissionDesc: PermissionDescriptor): Promise<PermissionStatus>;\n}\n\ndeclare var Permissions: {\n prototype: Permissions;\n new(): Permissions;\n};\n\n/**\n * The **`ProgressEvent`** interface represents events that measure the progress of an underlying process, like an HTTP request (e.g., an `XMLHttpRequest`, or the loading of the underlying resource of an img, audio, video, style or link).\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ProgressEvent)\n */\ninterface ProgressEvent<T extends EventTarget = EventTarget> extends Event {\n /**\n * The **`ProgressEvent.lengthComputable`** read-only property is a boolean flag indicating if the resource concerned by the A boolean.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ProgressEvent/lengthComputable)\n */\n readonly lengthComputable: boolean;\n /**\n * The **`ProgressEvent.loaded`** read-only property is a number indicating the size of the data already transmitted or processed.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ProgressEvent/loaded)\n */\n readonly loaded: number;\n readonly target: T | null;\n /**\n * The **`ProgressEvent.total`** read-only property is a number indicating the total size of the data being transmitted or processed.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ProgressEvent/total)\n */\n readonly total: number;\n}\n\ndeclare var ProgressEvent: {\n prototype: ProgressEvent;\n new(type: string, eventInitDict?: ProgressEventInit): ProgressEvent;\n};\n\n/**\n * The **`PromiseRejectionEvent`** interface represents events which are sent to the global script context when JavaScript Promises are rejected.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/PromiseRejectionEvent)\n */\ninterface PromiseRejectionEvent extends Event {\n /**\n * The PromiseRejectionEvent interface\'s **`promise`** read-only property indicates the JavaScript rejected.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/PromiseRejectionEvent/promise)\n */\n readonly promise: Promise<any>;\n /**\n * The PromiseRejectionEvent **`reason`** read-only property is any JavaScript value or Object which provides the reason passed into Promise.reject().\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/PromiseRejectionEvent/reason)\n */\n readonly reason: any;\n}\n\ndeclare var PromiseRejectionEvent: {\n prototype: PromiseRejectionEvent;\n new(type: string, eventInitDict: PromiseRejectionEventInit): PromiseRejectionEvent;\n};\n\n/**\n * The **`PushEvent`** interface of the Push API represents a push message that has been received.\n * Available only in secure contexts.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/PushEvent)\n */\ninterface PushEvent extends ExtendableEvent {\n /**\n * The `data` read-only property of the **`PushEvent`** interface returns a reference to a PushMessageData object containing data sent to the PushSubscription.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/PushEvent/data)\n */\n readonly data: PushMessageData | null;\n}\n\ndeclare var PushEvent: {\n prototype: PushEvent;\n new(type: string, eventInitDict?: PushEventInit): PushEvent;\n};\n\n/**\n * The **`PushManager`** interface of the Push API provides a way to receive notifications from third-party servers as well as request URLs for push notifications.\n * Available only in secure contexts.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/PushManager)\n */\ninterface PushManager {\n /**\n * The **`PushManager.getSubscription()`** method of the PushManager interface retrieves an existing push subscription.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/PushManager/getSubscription)\n */\n getSubscription(): Promise<PushSubscription | null>;\n /**\n * The **`permissionState()`** method of the string indicating the permission state of the push manager.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/PushManager/permissionState)\n */\n permissionState(options?: PushSubscriptionOptionsInit): Promise<PermissionState>;\n /**\n * The **`subscribe()`** method of the PushManager interface subscribes to a push service.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/PushManager/subscribe)\n */\n subscribe(options?: PushSubscriptionOptionsInit): Promise<PushSubscription>;\n}\n\ndeclare var PushManager: {\n prototype: PushManager;\n new(): PushManager;\n /**\n * The **`supportedContentEncodings`** read-only static property of the PushManager interface returns an array of supported content codings that can be used to encrypt the payload of a push message.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/PushManager/supportedContentEncodings_static)\n */\n readonly supportedContentEncodings: ReadonlyArray<string>;\n};\n\n/**\n * The **`PushMessageData`** interface of the Push API provides methods which let you retrieve the push data sent by a server in various formats.\n * Available only in secure contexts.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/PushMessageData)\n */\ninterface PushMessageData {\n /**\n * The **`arrayBuffer()`** method of the PushMessageData interface extracts push message data as an ArrayBuffer object.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/PushMessageData/arrayBuffer)\n */\n arrayBuffer(): ArrayBuffer;\n /**\n * The **`blob()`** method of the PushMessageData interface extracts push message data as a Blob object.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/PushMessageData/blob)\n */\n blob(): Blob;\n /**\n * The **`bytes()`** method of the PushMessageData interface extracts push message data as an Uint8Array object.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/PushMessageData/bytes)\n */\n bytes(): Uint8Array<ArrayBuffer>;\n /**\n * The **`json()`** method of the PushMessageData interface extracts push message data by parsing it as a JSON string and returning the result.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/PushMessageData/json)\n */\n json(): any;\n /**\n * The **`text()`** method of the PushMessageData interface extracts push message data as a plain text string.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/PushMessageData/text)\n */\n text(): string;\n}\n\ndeclare var PushMessageData: {\n prototype: PushMessageData;\n new(): PushMessageData;\n};\n\n/**\n * The `PushSubscription` interface of the Push API provides a subscription\'s URL endpoint along with the public key and secrets that should be used for encrypting push messages to this subscription.\n * Available only in secure contexts.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/PushSubscription)\n */\ninterface PushSubscription {\n /**\n * The **`endpoint`** read-only property of the the endpoint associated with the push subscription.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/PushSubscription/endpoint)\n */\n readonly endpoint: string;\n /**\n * The **`expirationTime`** read-only property of the of the subscription expiration time associated with the push subscription, if there is one, or `null` otherwise.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/PushSubscription/expirationTime)\n */\n readonly expirationTime: EpochTimeStamp | null;\n /**\n * The **`options`** read-only property of the PushSubscription interface is an object containing the options used to create the subscription.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/PushSubscription/options)\n */\n readonly options: PushSubscriptionOptions;\n /**\n * The `getKey()` method of the PushSubscription interface returns an ArrayBuffer representing a client public key, which can then be sent to a server and used in encrypting push message data.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/PushSubscription/getKey)\n */\n getKey(name: PushEncryptionKeyName): ArrayBuffer | null;\n /**\n * The `toJSON()` method of the PushSubscription interface is a standard serializer: it returns a JSON representation of the subscription properties, providing a useful shortcut.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/PushSubscription/toJSON)\n */\n toJSON(): PushSubscriptionJSON;\n /**\n * The `unsubscribe()` method of the PushSubscription interface returns a Promise that resolves to a boolean value when the current subscription is successfully unsubscribed.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/PushSubscription/unsubscribe)\n */\n unsubscribe(): Promise<boolean>;\n}\n\ndeclare var PushSubscription: {\n prototype: PushSubscription;\n new(): PushSubscription;\n};\n\n/** Available only in secure contexts. */\ninterface PushSubscriptionChangeEvent extends ExtendableEvent {\n readonly newSubscription: PushSubscription | null;\n readonly oldSubscription: PushSubscription | null;\n}\n\ndeclare var PushSubscriptionChangeEvent: {\n prototype: PushSubscriptionChangeEvent;\n new(type: string, eventInitDict?: PushSubscriptionChangeEventInit): PushSubscriptionChangeEvent;\n};\n\n/**\n * The **`PushSubscriptionOptions`** interface of the Push API represents the options associated with a push subscription.\n * Available only in secure contexts.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/PushSubscriptionOptions)\n */\ninterface PushSubscriptionOptions {\n /**\n * The **`applicationServerKey`** read-only property of the PushSubscriptionOptions interface contains the public key used by the push server.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/PushSubscriptionOptions/applicationServerKey)\n */\n readonly applicationServerKey: ArrayBuffer | null;\n /**\n * The **`userVisibleOnly`** read-only property of the PushSubscriptionOptions interface indicates if the returned push subscription will only be used for messages whose effect is made visible to the user.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/PushSubscriptionOptions/userVisibleOnly)\n */\n readonly userVisibleOnly: boolean;\n}\n\ndeclare var PushSubscriptionOptions: {\n prototype: PushSubscriptionOptions;\n new(): PushSubscriptionOptions;\n};\n\ninterface RTCDataChannelEventMap {\n "bufferedamountlow": Event;\n "close": Event;\n "closing": Event;\n "error": Event;\n "message": MessageEvent;\n "open": Event;\n}\n\n/**\n * The **`RTCDataChannel`** interface represents a network channel which can be used for bidirectional peer-to-peer transfers of arbitrary data.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCDataChannel)\n */\ninterface RTCDataChannel extends EventTarget {\n /**\n * The property **`binaryType`** on the the type of object which should be used to represent binary data received on the RTCDataChannel.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCDataChannel/binaryType)\n */\n binaryType: BinaryType;\n /**\n * The read-only `RTCDataChannel` property **`bufferedAmount`** returns the number of bytes of data currently queued to be sent over the data channel.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCDataChannel/bufferedAmount)\n */\n readonly bufferedAmount: number;\n /**\n * The `RTCDataChannel` property **`bufferedAmountLowThreshold`** is used to specify the number of bytes of buffered outgoing data that is considered \'low.\' The default value is 0\\.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCDataChannel/bufferedAmountLowThreshold)\n */\n bufferedAmountLowThreshold: number;\n /**\n * The read-only `RTCDataChannel` property **`id`** returns an ID number (between 0 and 65,534) which uniquely identifies the RTCDataChannel.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCDataChannel/id)\n */\n readonly id: number | null;\n /**\n * The read-only `RTCDataChannel` property **`label`** returns a string containing a name describing the data channel.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCDataChannel/label)\n */\n readonly label: string;\n /**\n * The read-only `RTCDataChannel` property **`maxPacketLifeTime`** returns the amount of time, in milliseconds, the browser is allowed to take to attempt to transmit a message, as set when the data channel was created, or `null`.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCDataChannel/maxPacketLifeTime)\n */\n readonly maxPacketLifeTime: number | null;\n /**\n * The read-only `RTCDataChannel` property **`maxRetransmits`** returns the maximum number of times the browser should try to retransmit a message before giving up, as set when the data channel was created, or `null`, which indicates that there is no maximum.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCDataChannel/maxRetransmits)\n */\n readonly maxRetransmits: number | null;\n /**\n * The read-only `RTCDataChannel` property **`negotiated`** indicates whether the (`true`) or by the WebRTC layer (`false`).\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCDataChannel/negotiated)\n */\n readonly negotiated: boolean;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCDataChannel/bufferedamountlow_event) */\n onbufferedamountlow: ((this: RTCDataChannel, ev: Event) => any) | null;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCDataChannel/close_event) */\n onclose: ((this: RTCDataChannel, ev: Event) => any) | null;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCDataChannel/closing_event) */\n onclosing: ((this: RTCDataChannel, ev: Event) => any) | null;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCDataChannel/error_event) */\n onerror: ((this: RTCDataChannel, ev: Event) => any) | null;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCDataChannel/message_event) */\n onmessage: ((this: RTCDataChannel, ev: MessageEvent) => any) | null;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCDataChannel/open_event) */\n onopen: ((this: RTCDataChannel, ev: Event) => any) | null;\n /**\n * The read-only `RTCDataChannel` property **`ordered`** indicates whether or not the data channel guarantees in-order delivery of messages; the default is `true`, which indicates that the data channel is indeed ordered.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCDataChannel/ordered)\n */\n readonly ordered: boolean;\n /**\n * The read-only `RTCDataChannel` property **`protocol`** returns a string containing the name of the subprotocol in use.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCDataChannel/protocol)\n */\n readonly protocol: string;\n /**\n * The read-only `RTCDataChannel` property **`readyState`** returns a string which indicates the state of the data channel\'s underlying data connection.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCDataChannel/readyState)\n */\n readonly readyState: RTCDataChannelState;\n /**\n * The **`RTCDataChannel.close()`** method closes the closure of the channel.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCDataChannel/close)\n */\n close(): void;\n /**\n * The **`send()`** method of the remote peer.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCDataChannel/send)\n */\n send(data: string): void;\n send(data: Blob): void;\n send(data: ArrayBuffer): void;\n send(data: ArrayBufferView<ArrayBuffer>): 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\n/**\n * The **`RTCEncodedAudioFrame`** of the WebRTC API represents an encoded audio frame in the WebRTC receiver or sender pipeline, which may be modified using a WebRTC Encoded Transform.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCEncodedAudioFrame)\n */\ninterface RTCEncodedAudioFrame {\n /**\n * The **`data`** property of the RTCEncodedAudioFrame interface returns a buffer containing the data for an encoded frame.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCEncodedAudioFrame/data)\n */\n data: ArrayBuffer;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCEncodedAudioFrame/timestamp) */\n readonly timestamp: number;\n /**\n * The **`getMetadata()`** method of the RTCEncodedAudioFrame interface returns an object containing the metadata associated with the frame.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCEncodedAudioFrame/getMetadata)\n */\n getMetadata(): RTCEncodedAudioFrameMetadata;\n}\n\ndeclare var RTCEncodedAudioFrame: {\n prototype: RTCEncodedAudioFrame;\n new(): RTCEncodedAudioFrame;\n};\n\n/**\n * The **`RTCEncodedVideoFrame`** of the WebRTC API represents an encoded video frame in the WebRTC receiver or sender pipeline, which may be modified using a WebRTC Encoded Transform.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCEncodedVideoFrame)\n */\ninterface RTCEncodedVideoFrame {\n /**\n * The **`data`** property of the RTCEncodedVideoFrame interface returns a buffer containing the frame data.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCEncodedVideoFrame/data)\n */\n data: ArrayBuffer;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCEncodedVideoFrame/timestamp) */\n readonly timestamp: number;\n /**\n * The **`type`** read-only property of the RTCEncodedVideoFrame interface indicates whether this frame is a key frame, delta frame, or empty frame.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCEncodedVideoFrame/type)\n */\n readonly type: RTCEncodedVideoFrameType;\n /**\n * The **`getMetadata()`** method of the RTCEncodedVideoFrame interface returns an object containing the metadata associated with the frame.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCEncodedVideoFrame/getMetadata)\n */\n getMetadata(): RTCEncodedVideoFrameMetadata;\n}\n\ndeclare var RTCEncodedVideoFrame: {\n prototype: RTCEncodedVideoFrame;\n new(): RTCEncodedVideoFrame;\n};\n\n/**\n * The **`RTCRtpScriptTransformer`** interface of the WebRTC API provides a worker-side Stream API interface that a WebRTC Encoded Transform can use to modify encoded media frames in the incoming and outgoing WebRTC pipelines.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCRtpScriptTransformer)\n */\ninterface RTCRtpScriptTransformer extends EventTarget {\n /**\n * The **`options`** read-only property of the RTCRtpScriptTransformer interface returns the object that was (optionally) passed as the second argument during construction of the corresponding RTCRtpScriptTransform.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCRtpScriptTransformer/options)\n */\n readonly options: any;\n /**\n * The **`readable`** read-only property of the RTCRtpScriptTransformer interface returns a ReadableStream instance is a source for encoded media frames.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCRtpScriptTransformer/readable)\n */\n readonly readable: ReadableStream;\n /**\n * The **`writable`** read-only property of the RTCRtpScriptTransformer interface returns a WritableStream instance that can be used as a sink for encoded media frames enqueued on the corresponding RTCRtpScriptTransformer.readable.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCRtpScriptTransformer/writable)\n */\n readonly writable: WritableStream;\n /**\n * The **`generateKeyFrame()`** method of the RTCRtpScriptTransformer interface causes a video encoder to generate a key frame.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCRtpScriptTransformer/generateKeyFrame)\n */\n generateKeyFrame(rid?: string): Promise<number>;\n /**\n * The **`sendKeyFrameRequest()`** method of the RTCRtpScriptTransformer interface may be called by a WebRTC Encoded Transform that is processing incoming encoded video frames, in order to request a key frame from the sender.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCRtpScriptTransformer/sendKeyFrameRequest)\n */\n sendKeyFrameRequest(): Promise<void>;\n}\n\ndeclare var RTCRtpScriptTransformer: {\n prototype: RTCRtpScriptTransformer;\n new(): RTCRtpScriptTransformer;\n};\n\n/**\n * The **`RTCTransformEvent`** of the WebRTC API represent an event that is fired in a dedicated worker when an encoded frame has been queued for processing by a WebRTC Encoded Transform.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCTransformEvent)\n */\ninterface RTCTransformEvent extends Event {\n /**\n * The read-only **`transformer`** property of the RTCTransformEvent interface returns the RTCRtpScriptTransformer associated with the event.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCTransformEvent/transformer)\n */\n readonly transformer: RTCRtpScriptTransformer;\n}\n\ndeclare var RTCTransformEvent: {\n prototype: RTCTransformEvent;\n new(): RTCTransformEvent;\n};\n\n/**\n * The **`ReadableByteStreamController`** interface of the Streams API represents a controller for a readable byte stream.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ReadableByteStreamController)\n */\ninterface ReadableByteStreamController {\n /**\n * The **`byobRequest`** read-only property of the ReadableByteStreamController interface returns the current BYOB request, or `null` if there are no pending requests.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ReadableByteStreamController/byobRequest)\n */\n readonly byobRequest: ReadableStreamBYOBRequest | null;\n /**\n * The **`desiredSize`** read-only property of the ReadableByteStreamController interface returns the number of bytes required to fill the stream\'s internal queue to its \'desired size\'.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ReadableByteStreamController/desiredSize)\n */\n readonly desiredSize: number | null;\n /**\n * The **`close()`** method of the ReadableByteStreamController interface closes the associated stream.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ReadableByteStreamController/close)\n */\n close(): void;\n /**\n * The **`enqueue()`** method of the ReadableByteStreamController interface enqueues a given chunk on the associated readable byte stream (the chunk is copied into the stream\'s internal queues).\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ReadableByteStreamController/enqueue)\n */\n enqueue(chunk: ArrayBufferView<ArrayBuffer>): void;\n /**\n * The **`error()`** method of the ReadableByteStreamController interface causes any future interactions with the associated stream to error with the specified reason.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ReadableByteStreamController/error)\n */\n error(e?: any): void;\n}\n\ndeclare var ReadableByteStreamController: {\n prototype: ReadableByteStreamController;\n new(): ReadableByteStreamController;\n};\n\n/**\n * The `ReadableStream` interface of the Streams API represents a readable stream of byte data.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ReadableStream)\n */\ninterface ReadableStream<R = any> {\n /**\n * The **`locked`** read-only property of the ReadableStream interface returns whether or not the readable stream is locked to a reader.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ReadableStream/locked)\n */\n readonly locked: boolean;\n /**\n * The **`cancel()`** method of the ReadableStream interface returns a Promise that resolves when the stream is canceled.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ReadableStream/cancel)\n */\n cancel(reason?: any): Promise<void>;\n /**\n * The **`getReader()`** method of the ReadableStream interface creates a reader and locks the stream to it.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ReadableStream/getReader)\n */\n getReader(options: { mode: "byob" }): ReadableStreamBYOBReader;\n getReader(): ReadableStreamDefaultReader<R>;\n getReader(options?: ReadableStreamGetReaderOptions): ReadableStreamReader<R>;\n /**\n * The **`pipeThrough()`** method of the ReadableStream interface provides a chainable way of piping the current stream through a transform stream or any other writable/readable pair.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ReadableStream/pipeThrough)\n */\n pipeThrough<T>(transform: ReadableWritablePair<T, R>, options?: StreamPipeOptions): ReadableStream<T>;\n /**\n * The **`pipeTo()`** method of the ReadableStream interface pipes the current `ReadableStream` to a given WritableStream and returns a Promise that fulfills when the piping process completes successfully, or rejects if any errors were encountered.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ReadableStream/pipeTo)\n */\n pipeTo(destination: WritableStream<R>, options?: StreamPipeOptions): Promise<void>;\n /**\n * The **`tee()`** method of the two-element array containing the two resulting branches as new ReadableStream instances.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ReadableStream/tee)\n */\n tee(): [ReadableStream<R>, ReadableStream<R>];\n}\n\ndeclare var ReadableStream: {\n prototype: ReadableStream;\n new(underlyingSource: UnderlyingByteSource, strategy?: { highWaterMark?: number }): ReadableStream<Uint8Array<ArrayBuffer>>;\n new<R = any>(underlyingSource: UnderlyingDefaultSource<R>, strategy?: QueuingStrategy<R>): ReadableStream<R>;\n new<R = any>(underlyingSource?: UnderlyingSource<R>, strategy?: QueuingStrategy<R>): ReadableStream<R>;\n};\n\n/**\n * The `ReadableStreamBYOBReader` interface of the Streams API defines a reader for a ReadableStream that supports zero-copy reading from an underlying byte source.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ReadableStreamBYOBReader)\n */\ninterface ReadableStreamBYOBReader extends ReadableStreamGenericReader {\n /**\n * The **`read()`** method of the ReadableStreamBYOBReader interface is used to read data into a view on a user-supplied buffer from an associated readable byte stream.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ReadableStreamBYOBReader/read)\n */\n read<T extends ArrayBufferView>(view: T): Promise<ReadableStreamReadResult<T>>;\n /**\n * The **`releaseLock()`** method of the ReadableStreamBYOBReader interface releases the reader\'s lock on the stream.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ReadableStreamBYOBReader/releaseLock)\n */\n releaseLock(): void;\n}\n\ndeclare var ReadableStreamBYOBReader: {\n prototype: ReadableStreamBYOBReader;\n new(stream: ReadableStream<Uint8Array<ArrayBuffer>>): ReadableStreamBYOBReader;\n};\n\n/**\n * The **`ReadableStreamBYOBRequest`** interface of the Streams API represents a \'pull request\' for data from an underlying source that will made as a zero-copy transfer to a consumer (bypassing the stream\'s internal queues).\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ReadableStreamBYOBRequest)\n */\ninterface ReadableStreamBYOBRequest {\n /**\n * The **`view`** getter property of the ReadableStreamBYOBRequest interface returns the current view.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ReadableStreamBYOBRequest/view)\n */\n readonly view: ArrayBufferView<ArrayBuffer> | null;\n /**\n * The **`respond()`** method of the ReadableStreamBYOBRequest interface is used to signal to the associated readable byte stream that the specified number of bytes were written into the ReadableStreamBYOBRequest.view.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ReadableStreamBYOBRequest/respond)\n */\n respond(bytesWritten: number): void;\n /**\n * The **`respondWithNewView()`** method of the ReadableStreamBYOBRequest interface specifies a new view that the consumer of the associated readable byte stream should write to instead of ReadableStreamBYOBRequest.view.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ReadableStreamBYOBRequest/respondWithNewView)\n */\n respondWithNewView(view: ArrayBufferView<ArrayBuffer>): void;\n}\n\ndeclare var ReadableStreamBYOBRequest: {\n prototype: ReadableStreamBYOBRequest;\n new(): ReadableStreamBYOBRequest;\n};\n\n/**\n * The **`ReadableStreamDefaultController`** interface of the Streams API represents a controller allowing control of a ReadableStream\'s state and internal queue.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ReadableStreamDefaultController)\n */\ninterface ReadableStreamDefaultController<R = any> {\n /**\n * The **`desiredSize`** read-only property of the required to fill the stream\'s internal queue.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ReadableStreamDefaultController/desiredSize)\n */\n readonly desiredSize: number | null;\n /**\n * The **`close()`** method of the ReadableStreamDefaultController interface closes the associated stream.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ReadableStreamDefaultController/close)\n */\n close(): void;\n /**\n * The **`enqueue()`** method of the ```js-nolint enqueue(chunk) ``` - `chunk` - : The chunk to enqueue.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ReadableStreamDefaultController/enqueue)\n */\n enqueue(chunk?: R): void;\n /**\n * The **`error()`** method of the with the associated stream to error.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ReadableStreamDefaultController/error)\n */\n error(e?: any): void;\n}\n\ndeclare var ReadableStreamDefaultController: {\n prototype: ReadableStreamDefaultController;\n new(): ReadableStreamDefaultController;\n};\n\n/**\n * The **`ReadableStreamDefaultReader`** interface of the Streams API represents a default reader that can be used to read stream data supplied from a network (such as a fetch request).\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ReadableStreamDefaultReader)\n */\ninterface ReadableStreamDefaultReader<R = any> extends ReadableStreamGenericReader {\n /**\n * The **`read()`** method of the ReadableStreamDefaultReader interface returns a Promise providing access to the next chunk in the stream\'s internal queue.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ReadableStreamDefaultReader/read)\n */\n read(): Promise<ReadableStreamReadResult<R>>;\n /**\n * The **`releaseLock()`** method of the ReadableStreamDefaultReader interface releases the reader\'s lock on the stream.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ReadableStreamDefaultReader/releaseLock)\n */\n releaseLock(): void;\n}\n\ndeclare var ReadableStreamDefaultReader: {\n prototype: ReadableStreamDefaultReader;\n new<R = any>(stream: ReadableStream<R>): ReadableStreamDefaultReader<R>;\n};\n\ninterface ReadableStreamGenericReader {\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ReadableStreamBYOBReader/closed) */\n readonly closed: Promise<void>;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ReadableStreamBYOBReader/cancel) */\n cancel(reason?: any): Promise<void>;\n}\n\n/**\n * The `Report` interface of the Reporting API represents a single report.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Report)\n */\ninterface Report {\n /**\n * The **`body`** read-only property of the Report interface returns the body of the report, which is a `ReportBody` object containing the detailed report information.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Report/body)\n */\n readonly body: ReportBody | null;\n /**\n * The **`type`** read-only property of the Report interface returns the type of report generated, e.g., `deprecation` or `intervention`.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Report/type)\n */\n readonly type: string;\n /**\n * The **`url`** read-only property of the Report interface returns the URL of the document that generated the report.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Report/url)\n */\n readonly url: string;\n toJSON(): any;\n}\n\ndeclare var Report: {\n prototype: Report;\n new(): Report;\n};\n\n/**\n * The **`ReportBody`** interface of the Reporting API represents the body of a report.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ReportBody)\n */\ninterface ReportBody {\n /**\n * The **`toJSON()`** method of the ReportBody interface is a _serializer_, and returns a JSON representation of the `ReportBody` object.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ReportBody/toJSON)\n */\n toJSON(): any;\n}\n\ndeclare var ReportBody: {\n prototype: ReportBody;\n new(): ReportBody;\n};\n\n/**\n * The `ReportingObserver` interface of the Reporting API allows you to collect and access reports.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ReportingObserver)\n */\ninterface ReportingObserver {\n /**\n * The **`disconnect()`** method of the previously started observing from collecting reports.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ReportingObserver/disconnect)\n */\n disconnect(): void;\n /**\n * The **`observe()`** method of the collecting reports in its report queue.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ReportingObserver/observe)\n */\n observe(): void;\n /**\n * The **`takeRecords()`** method of the in the observer\'s report queue, and empties the queue.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ReportingObserver/takeRecords)\n */\n takeRecords(): ReportList;\n}\n\ndeclare var ReportingObserver: {\n prototype: ReportingObserver;\n new(callback: ReportingObserverCallback, options?: ReportingObserverOptions): ReportingObserver;\n};\n\n/**\n * The **`Request`** interface of the Fetch API represents a resource request.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Request)\n */\ninterface Request extends Body {\n /**\n * The **`cache`** read-only property of the Request interface contains the cache mode of the request.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Request/cache)\n */\n readonly cache: RequestCache;\n /**\n * The **`credentials`** read-only property of the Request interface reflects the value given to the Request.Request() constructor in the `credentials` option.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Request/credentials)\n */\n readonly credentials: RequestCredentials;\n /**\n * The **`destination`** read-only property of the **Request** interface returns a string describing the type of content being requested.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Request/destination)\n */\n readonly destination: RequestDestination;\n /**\n * The **`headers`** read-only property of the with the request.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Request/headers)\n */\n readonly headers: Headers;\n /**\n * The **`integrity`** read-only property of the Request interface contains the subresource integrity value of the request.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Request/integrity)\n */\n readonly integrity: string;\n /**\n * The **`keepalive`** read-only property of the Request interface contains the request\'s `keepalive` setting (`true` or `false`), which indicates whether the browser will keep the associated request alive if the page that initiated it is unloaded before the request is complete.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Request/keepalive)\n */\n readonly keepalive: boolean;\n /**\n * The **`method`** read-only property of the `POST`, etc.) A String indicating the method of the request.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Request/method)\n */\n readonly method: string;\n /**\n * The **`mode`** read-only property of the Request interface contains the mode of the request (e.g., `cors`, `no-cors`, `same-origin`, or `navigate`.) This is used to determine if cross-origin requests lead to valid responses, and which properties of the response are readable.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Request/mode)\n */\n readonly mode: RequestMode;\n /**\n * The **`redirect`** read-only property of the Request interface contains the mode for how redirects are handled.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Request/redirect)\n */\n readonly redirect: RequestRedirect;\n /**\n * The **`referrer`** read-only property of the Request.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Request/referrer)\n */\n readonly referrer: string;\n /**\n * The **`referrerPolicy`** read-only property of the referrer information, sent in the Referer header, should be included with the request.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Request/referrerPolicy)\n */\n readonly referrerPolicy: ReferrerPolicy;\n /**\n * The read-only **`signal`** property of the Request interface returns the AbortSignal associated with the request.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Request/signal)\n */\n readonly signal: AbortSignal;\n /**\n * The **`url`** read-only property of the Request interface contains the URL of the request.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Request/url)\n */\n readonly url: string;\n /**\n * The **`clone()`** method of the Request interface creates a copy of the current `Request` object.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Request/clone)\n */\n clone(): Request;\n}\n\ndeclare var Request: {\n prototype: Request;\n new(input: RequestInfo | URL, init?: RequestInit): Request;\n};\n\n/**\n * The **`Response`** interface of the Fetch API represents the response to a request.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Response)\n */\ninterface Response extends Body {\n /**\n * The **`headers`** read-only property of the with the response.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Response/headers)\n */\n readonly headers: Headers;\n /**\n * The **`ok`** read-only property of the Response interface contains a Boolean stating whether the response was successful (status in the range 200-299) or not.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Response/ok)\n */\n readonly ok: boolean;\n /**\n * The **`redirected`** read-only property of the Response interface indicates whether or not the response is the result of a request you made which was redirected.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Response/redirected)\n */\n readonly redirected: boolean;\n /**\n * The **`status`** read-only property of the Response interface contains the HTTP status codes of the response.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Response/status)\n */\n readonly status: number;\n /**\n * The **`statusText`** read-only property of the Response interface contains the status message corresponding to the HTTP status code in Response.status.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Response/statusText)\n */\n readonly statusText: string;\n /**\n * The **`type`** read-only property of the Response interface contains the type of the response.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Response/type)\n */\n readonly type: ResponseType;\n /**\n * The **`url`** read-only property of the Response interface contains the URL of the response.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Response/url)\n */\n readonly url: string;\n /**\n * The **`clone()`** method of the Response interface creates a clone of a response object, identical in every way, but stored in a different variable.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Response/clone)\n */\n clone(): Response;\n}\n\ndeclare var Response: {\n prototype: Response;\n new(body?: BodyInit | null, init?: ResponseInit): Response;\n /**\n * The **`error()`** static method of the Response interface returns a new `Response` object associated with a network error.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Response/error_static)\n */\n error(): Response;\n /**\n * The **`json()`** static method of the Response interface returns a `Response` that contains the provided JSON data as body, and a Content-Type header which is set to `application/json`.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Response/json_static)\n */\n json(data: any, init?: ResponseInit): Response;\n /**\n * The **`redirect()`** static method of the Response interface returns a `Response` resulting in a redirect to the specified URL.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Response/redirect_static)\n */\n redirect(url: string | URL, status?: number): Response;\n};\n\n/**\n * The **`SecurityPolicyViolationEvent`** interface inherits from Event, and represents the event object of a `securitypolicyviolation` event sent on an Element/securitypolicyviolation_event, Document/securitypolicyviolation_event, or WorkerGlobalScope/securitypolicyviolation_event when its Content Security Policy (CSP) is violated.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SecurityPolicyViolationEvent)\n */\ninterface SecurityPolicyViolationEvent extends Event {\n /**\n * The **`blockedURI`** read-only property of the SecurityPolicyViolationEvent interface is a string representing the URI of the resource that was blocked because it violates a Content Security Policy (CSP).\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SecurityPolicyViolationEvent/blockedURI)\n */\n readonly blockedURI: string;\n /**\n * The **`columnNumber`** read-only property of the SecurityPolicyViolationEvent interface is the column number in the document or worker script at which the Content Security Policy (CSP) violation occurred.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SecurityPolicyViolationEvent/columnNumber)\n */\n readonly columnNumber: number;\n /**\n * The **`disposition`** read-only property of the SecurityPolicyViolationEvent interface indicates how the violated Content Security Policy (CSP) is configured to be treated by the user agent.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SecurityPolicyViolationEvent/disposition)\n */\n readonly disposition: SecurityPolicyViolationEventDisposition;\n /**\n * The **`documentURI`** read-only property of the SecurityPolicyViolationEvent interface is a string representing the URI of the document or worker in which the Content Security Policy (CSP) violation occurred.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SecurityPolicyViolationEvent/documentURI)\n */\n readonly documentURI: string;\n /**\n * The **`effectiveDirective`** read-only property of the SecurityPolicyViolationEvent interface is a string representing the Content Security Policy (CSP) directive that was violated.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SecurityPolicyViolationEvent/effectiveDirective)\n */\n readonly effectiveDirective: string;\n /**\n * The **`lineNumber`** read-only property of the SecurityPolicyViolationEvent interface is the line number in the document or worker script at which the Content Security Policy (CSP) violation occurred.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SecurityPolicyViolationEvent/lineNumber)\n */\n readonly lineNumber: number;\n /**\n * The **`originalPolicy`** read-only property of the SecurityPolicyViolationEvent interface is a string containing the Content Security Policy (CSP) whose enforcement uncovered the violation.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SecurityPolicyViolationEvent/originalPolicy)\n */\n readonly originalPolicy: string;\n /**\n * The **`referrer`** read-only property of the SecurityPolicyViolationEvent interface is a string representing the referrer for the resources whose Content Security Policy (CSP) was violated.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SecurityPolicyViolationEvent/referrer)\n */\n readonly referrer: string;\n /**\n * The **`sample`** read-only property of the SecurityPolicyViolationEvent interface is a string representing a sample of the resource that caused the Content Security Policy (CSP) violation.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SecurityPolicyViolationEvent/sample)\n */\n readonly sample: string;\n /**\n * The **`sourceFile`** read-only property of the SecurityPolicyViolationEvent interface is a string representing the URL of the script in which the Content Security Policy (CSP) violation occurred.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SecurityPolicyViolationEvent/sourceFile)\n */\n readonly sourceFile: string;\n /**\n * The **`statusCode`** read-only property of the SecurityPolicyViolationEvent interface is a number representing the HTTP status code of the window or worker in which the Content Security Policy (CSP) violation occurred.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SecurityPolicyViolationEvent/statusCode)\n */\n readonly statusCode: number;\n /**\n * The **`violatedDirective`** read-only property of the SecurityPolicyViolationEvent interface is a string representing the Content Security Policy (CSP) directive that was violated.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SecurityPolicyViolationEvent/violatedDirective)\n */\n readonly violatedDirective: string;\n}\n\ndeclare var SecurityPolicyViolationEvent: {\n prototype: SecurityPolicyViolationEvent;\n new(type: string, eventInitDict?: SecurityPolicyViolationEventInit): SecurityPolicyViolationEvent;\n};\n\ninterface ServiceWorkerEventMap extends AbstractWorkerEventMap {\n "statechange": Event;\n}\n\n/**\n * The **`ServiceWorker`** interface of the Service Worker API provides a reference to a service worker.\n * Available only in secure contexts.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ServiceWorker)\n */\ninterface ServiceWorker extends EventTarget, AbstractWorker {\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ServiceWorker/statechange_event) */\n onstatechange: ((this: ServiceWorker, ev: Event) => any) | null;\n /**\n * Returns the `ServiceWorker` serialized script URL defined as part of `ServiceWorkerRegistration`.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ServiceWorker/scriptURL)\n */\n readonly scriptURL: string;\n /**\n * The **`state`** read-only property of the of the service worker.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ServiceWorker/state)\n */\n readonly state: ServiceWorkerState;\n /**\n * The **`postMessage()`** method of the ServiceWorker interface sends a message to the worker.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ServiceWorker/postMessage)\n */\n postMessage(message: any, transfer: Transferable[]): void;\n postMessage(message: any, options?: StructuredSerializeOptions): 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/**\n * The **`ServiceWorkerContainer`** interface of the Service Worker 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.\n * Available only in secure contexts.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ServiceWorkerContainer)\n */\ninterface ServiceWorkerContainer extends EventTarget {\n /**\n * The **`controller`** read-only property of the ServiceWorkerContainer interface returns a `activated` (the same object returned by `null` if the request is a force refresh (_Shift_ + refresh) or if there is no active worker.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ServiceWorkerContainer/controller)\n */\n readonly controller: ServiceWorker | null;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ServiceWorkerContainer/controllerchange_event) */\n oncontrollerchange: ((this: ServiceWorkerContainer, ev: Event) => any) | null;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ServiceWorkerContainer/message_event) */\n onmessage: ((this: ServiceWorkerContainer, ev: MessageEvent) => any) | null;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ServiceWorkerContainer/messageerror_event) */\n onmessageerror: ((this: ServiceWorkerContainer, ev: MessageEvent) => any) | null;\n /**\n * The **`ready`** read-only property of the ServiceWorkerContainer interface provides a way of delaying code execution until a service worker is active.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ServiceWorkerContainer/ready)\n */\n readonly ready: Promise<ServiceWorkerRegistration>;\n /**\n * The **`getRegistration()`** method of the client URL.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ServiceWorkerContainer/getRegistration)\n */\n getRegistration(clientURL?: string | URL): Promise<ServiceWorkerRegistration | undefined>;\n /**\n * The **`getRegistrations()`** method of the `ServiceWorkerContainer`, in an array.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ServiceWorkerContainer/getRegistrations)\n */\n getRegistrations(): Promise<ReadonlyArray<ServiceWorkerRegistration>>;\n /**\n * The **`register()`** method of the ServiceWorkerContainer interface creates or updates a ServiceWorkerRegistration for the given scope.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ServiceWorkerContainer/register)\n */\n register(scriptURL: string | URL, options?: RegistrationOptions): Promise<ServiceWorkerRegistration>;\n /**\n * The **`startMessages()`** method of the ServiceWorkerContainer interface explicitly starts the flow of messages being dispatched from a service worker to pages under its control (e.g., sent via Client.postMessage()).\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ServiceWorkerContainer/startMessages)\n */\n startMessages(): void;\n addEventListener<K extends keyof ServiceWorkerContainerEventMap>(type: K, listener: (this: ServiceWorkerContainer, ev: ServiceWorkerContainerEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n removeEventListener<K extends keyof ServiceWorkerContainerEventMap>(type: K, listener: (this: ServiceWorkerContainer, ev: ServiceWorkerContainerEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\ndeclare var ServiceWorkerContainer: {\n prototype: ServiceWorkerContainer;\n new(): ServiceWorkerContainer;\n};\n\ninterface ServiceWorkerGlobalScopeEventMap extends WorkerGlobalScopeEventMap {\n "activate": ExtendableEvent;\n "cookiechange": ExtendableCookieChangeEvent;\n "fetch": FetchEvent;\n "install": ExtendableEvent;\n "message": ExtendableMessageEvent;\n "messageerror": MessageEvent;\n "notificationclick": NotificationEvent;\n "notificationclose": NotificationEvent;\n "push": PushEvent;\n "pushsubscriptionchange": PushSubscriptionChangeEvent;\n}\n\n/**\n * The **`ServiceWorkerGlobalScope`** interface of the Service Worker API represents the global execution context of a service worker.\n * Available only in secure contexts.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ServiceWorkerGlobalScope)\n */\ninterface ServiceWorkerGlobalScope extends WorkerGlobalScope {\n /**\n * The **`clients`** read-only property of the object associated with the service worker.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ServiceWorkerGlobalScope/clients)\n */\n readonly clients: Clients;\n /**\n * The **`cookieStore`** read-only property of the ServiceWorkerGlobalScope interface returns a reference to the CookieStore object associated with this service worker.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ServiceWorkerGlobalScope/cookieStore)\n */\n readonly cookieStore: CookieStore;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ServiceWorkerGlobalScope/activate_event) */\n onactivate: ((this: ServiceWorkerGlobalScope, ev: ExtendableEvent) => any) | null;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ServiceWorkerGlobalScope/cookiechange_event) */\n oncookiechange: ((this: ServiceWorkerGlobalScope, ev: ExtendableCookieChangeEvent) => any) | null;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ServiceWorkerGlobalScope/fetch_event) */\n onfetch: ((this: ServiceWorkerGlobalScope, ev: FetchEvent) => any) | null;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ServiceWorkerGlobalScope/install_event) */\n oninstall: ((this: ServiceWorkerGlobalScope, ev: ExtendableEvent) => any) | null;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ServiceWorkerGlobalScope/message_event) */\n onmessage: ((this: ServiceWorkerGlobalScope, ev: ExtendableMessageEvent) => any) | null;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ServiceWorkerGlobalScope/messageerror_event) */\n onmessageerror: ((this: ServiceWorkerGlobalScope, ev: MessageEvent) => any) | null;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ServiceWorkerGlobalScope/notificationclick_event) */\n onnotificationclick: ((this: ServiceWorkerGlobalScope, ev: NotificationEvent) => any) | null;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ServiceWorkerGlobalScope/notificationclose_event) */\n onnotificationclose: ((this: ServiceWorkerGlobalScope, ev: NotificationEvent) => any) | null;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ServiceWorkerGlobalScope/push_event) */\n onpush: ((this: ServiceWorkerGlobalScope, ev: PushEvent) => any) | null;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ServiceWorkerGlobalScope/pushsubscriptionchange_event) */\n onpushsubscriptionchange: ((this: ServiceWorkerGlobalScope, ev: PushSubscriptionChangeEvent) => any) | null;\n /**\n * The **`registration`** read-only property of the ServiceWorkerGlobalScope interface returns a reference to the ServiceWorkerRegistration object, which represents the service worker\'s registration.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ServiceWorkerGlobalScope/registration)\n */\n readonly registration: ServiceWorkerRegistration;\n /**\n * The **`serviceWorker`** read-only property of the ServiceWorkerGlobalScope interface returns a reference to the ServiceWorker object, which represents the service worker.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ServiceWorkerGlobalScope/serviceWorker)\n */\n readonly serviceWorker: ServiceWorker;\n /**\n * The **`skipWaiting()`** method of the ServiceWorkerGlobalScope interface forces the waiting service worker to become the active service worker.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ServiceWorkerGlobalScope/skipWaiting)\n */\n skipWaiting(): Promise<void>;\n addEventListener<K extends keyof ServiceWorkerGlobalScopeEventMap>(type: K, listener: (this: ServiceWorkerGlobalScope, ev: ServiceWorkerGlobalScopeEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n removeEventListener<K extends keyof ServiceWorkerGlobalScopeEventMap>(type: K, listener: (this: ServiceWorkerGlobalScope, ev: ServiceWorkerGlobalScopeEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\ndeclare var ServiceWorkerGlobalScope: {\n prototype: ServiceWorkerGlobalScope;\n new(): ServiceWorkerGlobalScope;\n};\n\ninterface ServiceWorkerRegistrationEventMap {\n "updatefound": Event;\n}\n\n/**\n * The **`ServiceWorkerRegistration`** interface of the Service Worker API represents the service worker registration.\n * Available only in secure contexts.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ServiceWorkerRegistration)\n */\ninterface ServiceWorkerRegistration extends EventTarget {\n /**\n * The **`active`** read-only property of the This property is initially set to `null`.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ServiceWorkerRegistration/active)\n */\n readonly active: ServiceWorker | null;\n /**\n * The **`cookies`** read-only property of the ServiceWorkerRegistration interface returns a reference to the CookieStoreManager interface, which enables a web app to subscribe to and unsubscribe from cookie change events in a service worker.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ServiceWorkerRegistration/cookies)\n */\n readonly cookies: CookieStoreManager;\n /**\n * The **`installing`** read-only property of the initially set to `null`.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ServiceWorkerRegistration/installing)\n */\n readonly installing: ServiceWorker | null;\n /**\n * The **`navigationPreload`** read-only property of the ServiceWorkerRegistration interface returns the NavigationPreloadManager associated with the current service worker registration.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ServiceWorkerRegistration/navigationPreload)\n */\n readonly navigationPreload: NavigationPreloadManager;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ServiceWorkerRegistration/updatefound_event) */\n onupdatefound: ((this: ServiceWorkerRegistration, ev: Event) => any) | null;\n /**\n * The **`pushManager`** read-only property of the support for subscribing, getting an active subscription, and accessing push permission status.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ServiceWorkerRegistration/pushManager)\n */\n readonly pushManager: PushManager;\n /**\n * The **`scope`** read-only property of the ServiceWorkerRegistration interface returns a string representing a URL that defines a service worker\'s registration scope; that is, the range of URLs a service worker can control.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ServiceWorkerRegistration/scope)\n */\n readonly scope: string;\n /**\n * The **`updateViaCache`** read-only property of the ServiceWorkerRegistration interface returns the value of the setting used to determine the circumstances in which the browser will consult the HTTP cache when it tries to update the service worker or any scripts that are imported via WorkerGlobalScope.importScripts.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ServiceWorkerRegistration/updateViaCache)\n */\n readonly updateViaCache: ServiceWorkerUpdateViaCache;\n /**\n * The **`waiting`** read-only property of the set to `null`.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ServiceWorkerRegistration/waiting)\n */\n readonly waiting: ServiceWorker | null;\n /**\n * The **`getNotifications()`** method of the ServiceWorkerRegistration interface returns a list of the notifications in the order that they were created from the current origin via the current service worker registration.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ServiceWorkerRegistration/getNotifications)\n */\n getNotifications(filter?: GetNotificationOptions): Promise<Notification[]>;\n /**\n * The **`showNotification()`** method of the service worker.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ServiceWorkerRegistration/showNotification)\n */\n showNotification(title: string, options?: NotificationOptions): Promise<void>;\n /**\n * The **`unregister()`** method of the registration and returns a Promise.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ServiceWorkerRegistration/unregister)\n */\n unregister(): Promise<boolean>;\n /**\n * The **`update()`** method of the worker.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ServiceWorkerRegistration/update)\n */\n update(): Promise<ServiceWorkerRegistration>;\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 SharedWorkerGlobalScopeEventMap extends WorkerGlobalScopeEventMap {\n "connect": MessageEvent;\n}\n\n/**\n * The **`SharedWorkerGlobalScope`** object (the SharedWorker global scope) is accessible through the window.self keyword.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SharedWorkerGlobalScope)\n */\ninterface SharedWorkerGlobalScope extends WorkerGlobalScope {\n /**\n * The **`name`** read-only property of the that the SharedWorker.SharedWorker constructor can pass to get a reference to the SharedWorkerGlobalScope.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SharedWorkerGlobalScope/name)\n */\n readonly name: string;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SharedWorkerGlobalScope/connect_event) */\n onconnect: ((this: SharedWorkerGlobalScope, ev: MessageEvent) => any) | null;\n /**\n * The **`close()`** method of the SharedWorkerGlobalScope interface discards any tasks queued in the `SharedWorkerGlobalScope`\'s event loop, effectively closing this particular scope.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SharedWorkerGlobalScope/close)\n */\n close(): void;\n addEventListener<K extends keyof SharedWorkerGlobalScopeEventMap>(type: K, listener: (this: SharedWorkerGlobalScope, ev: SharedWorkerGlobalScopeEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n removeEventListener<K extends keyof SharedWorkerGlobalScopeEventMap>(type: K, listener: (this: SharedWorkerGlobalScope, ev: SharedWorkerGlobalScopeEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\ndeclare var SharedWorkerGlobalScope: {\n prototype: SharedWorkerGlobalScope;\n new(): SharedWorkerGlobalScope;\n};\n\n/**\n * The **`StorageManager`** interface of the Storage API provides an interface for managing persistence permissions and estimating available storage.\n * Available only in secure contexts.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/StorageManager)\n */\ninterface StorageManager {\n /**\n * The **`estimate()`** method of the StorageManager interface asks the Storage Manager for how much storage the current origin takes up (`usage`), and how much space is available (`quota`).\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/StorageManager/estimate)\n */\n estimate(): Promise<StorageEstimate>;\n /**\n * The **`getDirectory()`** method of the StorageManager interface is used to obtain a reference to a FileSystemDirectoryHandle object allowing access to a directory and its contents, stored in the origin private file system (OPFS).\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/StorageManager/getDirectory)\n */\n getDirectory(): Promise<FileSystemDirectoryHandle>;\n /**\n * The **`persisted()`** method of the StorageManager interface returns a Promise that resolves to `true` if your site\'s storage bucket is persistent.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/StorageManager/persisted)\n */\n persisted(): Promise<boolean>;\n}\n\ndeclare var StorageManager: {\n prototype: StorageManager;\n new(): StorageManager;\n};\n\n/**\n * The **`StylePropertyMapReadOnly`** interface of the CSS Typed Object Model API provides a read-only representation of a CSS declaration block that is an alternative to CSSStyleDeclaration.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/StylePropertyMapReadOnly)\n */\ninterface StylePropertyMapReadOnly {\n /**\n * The **`size`** read-only property of the containing the size of the `StylePropertyMapReadOnly` object.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/StylePropertyMapReadOnly/size)\n */\n readonly size: number;\n /**\n * The **`get()`** method of the object for the first value of the specified property.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/StylePropertyMapReadOnly/get)\n */\n get(property: string): undefined | CSSStyleValue;\n /**\n * The **`getAll()`** method of the ```js-nolint getAll(property) ``` - `property` - : The name of the property to retrieve all values of.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/StylePropertyMapReadOnly/getAll)\n */\n getAll(property: string): CSSStyleValue[];\n /**\n * The **`has()`** method of the property is in the `StylePropertyMapReadOnly` object.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/StylePropertyMapReadOnly/has)\n */\n has(property: string): boolean;\n forEach(callbackfn: (value: CSSStyleValue[], key: string, parent: StylePropertyMapReadOnly) => void, thisArg?: any): void;\n}\n\ndeclare var StylePropertyMapReadOnly: {\n prototype: StylePropertyMapReadOnly;\n new(): StylePropertyMapReadOnly;\n};\n\n/**\n * The **`SubtleCrypto`** interface of the Web Crypto API provides a number of low-level cryptographic functions.\n * Available only in secure contexts.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SubtleCrypto)\n */\ninterface SubtleCrypto {\n /**\n * The **`decrypt()`** method of the SubtleCrypto interface decrypts some encrypted data.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SubtleCrypto/decrypt)\n */\n decrypt(algorithm: AlgorithmIdentifier | RsaOaepParams | AesCtrParams | AesCbcParams | AesGcmParams, key: CryptoKey, data: BufferSource): Promise<ArrayBuffer>;\n /**\n * The **`deriveBits()`** method of the key.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SubtleCrypto/deriveBits)\n */\n deriveBits(algorithm: AlgorithmIdentifier | EcdhKeyDeriveParams | HkdfParams | Pbkdf2Params, baseKey: CryptoKey, length?: number | null): Promise<ArrayBuffer>;\n /**\n * The **`deriveKey()`** method of the SubtleCrypto interface can be used to derive a secret key from a master key.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SubtleCrypto/deriveKey)\n */\n deriveKey(algorithm: AlgorithmIdentifier | EcdhKeyDeriveParams | HkdfParams | Pbkdf2Params, baseKey: CryptoKey, derivedKeyType: AlgorithmIdentifier | AesDerivedKeyParams | HmacImportParams | HkdfParams | Pbkdf2Params, extractable: boolean, keyUsages: KeyUsage[]): Promise<CryptoKey>;\n /**\n * The **`digest()`** method of the SubtleCrypto interface generates a _digest_ of the given data, using the specified hash function.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SubtleCrypto/digest)\n */\n digest(algorithm: AlgorithmIdentifier, data: BufferSource): Promise<ArrayBuffer>;\n /**\n * The **`encrypt()`** method of the SubtleCrypto interface encrypts data.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SubtleCrypto/encrypt)\n */\n encrypt(algorithm: AlgorithmIdentifier | RsaOaepParams | AesCtrParams | AesCbcParams | AesGcmParams, key: CryptoKey, data: BufferSource): Promise<ArrayBuffer>;\n /**\n * The **`exportKey()`** method of the SubtleCrypto interface exports a key: that is, it takes as input a CryptoKey object and gives you the key in an external, portable format.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SubtleCrypto/exportKey)\n */\n exportKey(format: "jwk", key: CryptoKey): Promise<JsonWebKey>;\n exportKey(format: Exclude<KeyFormat, "jwk">, key: CryptoKey): Promise<ArrayBuffer>;\n exportKey(format: KeyFormat, key: CryptoKey): Promise<ArrayBuffer | JsonWebKey>;\n /**\n * The **`generateKey()`** method of the SubtleCrypto interface is used to generate a new key (for symmetric algorithms) or key pair (for public-key algorithms).\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SubtleCrypto/generateKey)\n */\n generateKey(algorithm: "Ed25519" | { name: "Ed25519" }, extractable: boolean, keyUsages: ReadonlyArray<"sign" | "verify">): Promise<CryptoKeyPair>;\n generateKey(algorithm: RsaHashedKeyGenParams | EcKeyGenParams, extractable: boolean, keyUsages: ReadonlyArray<KeyUsage>): Promise<CryptoKeyPair>;\n generateKey(algorithm: AesKeyGenParams | HmacKeyGenParams | Pbkdf2Params, extractable: boolean, keyUsages: ReadonlyArray<KeyUsage>): Promise<CryptoKey>;\n generateKey(algorithm: AlgorithmIdentifier, extractable: boolean, keyUsages: KeyUsage[]): Promise<CryptoKeyPair | CryptoKey>;\n /**\n * The **`importKey()`** method of the SubtleCrypto interface imports a key: that is, it takes as input a key in an external, portable format and gives you a CryptoKey object that you can use in the Web Crypto API.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SubtleCrypto/importKey)\n */\n importKey(format: "jwk", keyData: JsonWebKey, algorithm: AlgorithmIdentifier | RsaHashedImportParams | EcKeyImportParams | HmacImportParams | AesKeyAlgorithm, extractable: boolean, keyUsages: ReadonlyArray<KeyUsage>): Promise<CryptoKey>;\n importKey(format: Exclude<KeyFormat, "jwk">, keyData: BufferSource, algorithm: AlgorithmIdentifier | RsaHashedImportParams | EcKeyImportParams | HmacImportParams | AesKeyAlgorithm, extractable: boolean, keyUsages: KeyUsage[]): Promise<CryptoKey>;\n /**\n * The **`sign()`** method of the SubtleCrypto interface generates a digital signature.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SubtleCrypto/sign)\n */\n sign(algorithm: AlgorithmIdentifier | RsaPssParams | EcdsaParams, key: CryptoKey, data: BufferSource): Promise<ArrayBuffer>;\n /**\n * The **`unwrapKey()`** method of the SubtleCrypto interface \'unwraps\' a key.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SubtleCrypto/unwrapKey)\n */\n unwrapKey(format: KeyFormat, wrappedKey: BufferSource, unwrappingKey: CryptoKey, unwrapAlgorithm: AlgorithmIdentifier | RsaOaepParams | AesCtrParams | AesCbcParams | AesGcmParams, unwrappedKeyAlgorithm: AlgorithmIdentifier | RsaHashedImportParams | EcKeyImportParams | HmacImportParams | AesKeyAlgorithm, extractable: boolean, keyUsages: KeyUsage[]): Promise<CryptoKey>;\n /**\n * The **`verify()`** method of the SubtleCrypto interface verifies a digital signature.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SubtleCrypto/verify)\n */\n verify(algorithm: AlgorithmIdentifier | RsaPssParams | EcdsaParams, key: CryptoKey, signature: BufferSource, data: BufferSource): Promise<boolean>;\n /**\n * The **`wrapKey()`** method of the SubtleCrypto interface \'wraps\' a key.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SubtleCrypto/wrapKey)\n */\n wrapKey(format: KeyFormat, key: CryptoKey, wrappingKey: CryptoKey, wrapAlgorithm: AlgorithmIdentifier | RsaOaepParams | AesCtrParams | AesCbcParams | AesGcmParams): Promise<ArrayBuffer>;\n}\n\ndeclare var SubtleCrypto: {\n prototype: SubtleCrypto;\n new(): SubtleCrypto;\n};\n\n/**\n * The **`TextDecoder`** interface represents a decoder for a specific text encoding, such as `UTF-8`, `ISO-8859-2`, `KOI8-R`, `GBK`, etc.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/TextDecoder)\n */\ninterface TextDecoder extends TextDecoderCommon {\n /**\n * The **`TextDecoder.decode()`** method returns a string containing text decoded from the buffer passed as a parameter.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/TextDecoder/decode)\n */\n decode(input?: AllowSharedBufferSource, 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 * [MDN Reference](https://developer.mozilla.org/docs/Web/API/TextDecoder/encoding)\n */\n readonly encoding: string;\n /**\n * Returns true if error mode is "fatal", otherwise false.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/TextDecoder/fatal)\n */\n readonly fatal: boolean;\n /**\n * Returns the value of ignore BOM.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/TextDecoder/ignoreBOM)\n */\n readonly ignoreBOM: boolean;\n}\n\n/**\n * The **`TextDecoderStream`** interface of the Encoding API converts a stream of text in a binary encoding, such as UTF-8 etc., to a stream of strings.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/TextDecoderStream)\n */\ninterface TextDecoderStream extends GenericTransformStream, TextDecoderCommon {\n readonly readable: ReadableStream<string>;\n readonly writable: WritableStream<BufferSource>;\n}\n\ndeclare var TextDecoderStream: {\n prototype: TextDecoderStream;\n new(label?: string, options?: TextDecoderOptions): TextDecoderStream;\n};\n\n/**\n * The **`TextEncoder`** interface takes a stream of code points as input and emits a stream of UTF-8 bytes.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/TextEncoder)\n */\ninterface TextEncoder extends TextEncoderCommon {\n /**\n * The **`TextEncoder.encode()`** method takes a string as input, and returns a Global_Objects/Uint8Array containing the text given in parameters encoded with the specific method for that TextEncoder object.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/TextEncoder/encode)\n */\n encode(input?: string): Uint8Array<ArrayBuffer>;\n /**\n * The **`TextEncoder.encodeInto()`** method takes a string to encode and a destination Uint8Array to put resulting UTF-8 encoded text into, and returns a dictionary object indicating the progress of the encoding.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/TextEncoder/encodeInto)\n */\n encodeInto(source: string, destination: Uint8Array<ArrayBufferLike>): TextEncoderEncodeIntoResult;\n}\n\ndeclare var TextEncoder: {\n prototype: TextEncoder;\n new(): TextEncoder;\n};\n\ninterface TextEncoderCommon {\n /**\n * Returns "utf-8".\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/TextEncoder/encoding)\n */\n readonly encoding: string;\n}\n\n/**\n * The **`TextEncoderStream`** interface of the Encoding API converts a stream of strings into bytes in the UTF-8 encoding.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/TextEncoderStream)\n */\ninterface TextEncoderStream extends GenericTransformStream, TextEncoderCommon {\n readonly readable: ReadableStream<Uint8Array<ArrayBuffer>>;\n readonly writable: WritableStream<string>;\n}\n\ndeclare var TextEncoderStream: {\n prototype: TextEncoderStream;\n new(): TextEncoderStream;\n};\n\n/**\n * The **`TextMetrics`** interface represents the dimensions of a piece of text in the canvas; a `TextMetrics` instance can be retrieved using the CanvasRenderingContext2D.measureText() method.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/TextMetrics)\n */\ninterface TextMetrics {\n /**\n * The read-only **`actualBoundingBoxAscent`** property of the TextMetrics interface is a `double` giving the distance from the horizontal line indicated by the CanvasRenderingContext2D.textBaseline attribute to the top of the bounding rectangle used to render the text, in CSS pixels.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/TextMetrics/actualBoundingBoxAscent)\n */\n readonly actualBoundingBoxAscent: number;\n /**\n * The read-only `actualBoundingBoxDescent` property of the TextMetrics interface is a `double` giving the distance from the horizontal line indicated by the CanvasRenderingContext2D.textBaseline attribute to the bottom of the bounding rectangle used to render the text, in CSS pixels.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/TextMetrics/actualBoundingBoxDescent)\n */\n readonly actualBoundingBoxDescent: number;\n /**\n * The read-only `actualBoundingBoxLeft` property of the TextMetrics interface is a `double` giving the distance parallel to the baseline from the alignment point given by the CanvasRenderingContext2D.textAlign property to the left side of the bounding rectangle of the given text, in CSS pixels; positive numbers indicating a distance going left from the given alignment point.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/TextMetrics/actualBoundingBoxLeft)\n */\n readonly actualBoundingBoxLeft: number;\n /**\n * The read-only `actualBoundingBoxRight` property of the TextMetrics interface is a `double` giving the distance parallel to the baseline from the alignment point given by the CanvasRenderingContext2D.textAlign property to the right side of the bounding rectangle of the given text, in CSS pixels.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/TextMetrics/actualBoundingBoxRight)\n */\n readonly actualBoundingBoxRight: number;\n /**\n * The read-only `alphabeticBaseline` property of the TextMetrics interface is a `double` giving the distance from the horizontal line indicated by the CanvasRenderingContext2D.textBaseline property to the alphabetic baseline of the line box, in CSS pixels.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/TextMetrics/alphabeticBaseline)\n */\n readonly alphabeticBaseline: number;\n /**\n * The read-only `emHeightAscent` property of the TextMetrics interface returns the distance from the horizontal line indicated by the CanvasRenderingContext2D.textBaseline property to the top of the _em_ square in the line box, in CSS pixels.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/TextMetrics/emHeightAscent)\n */\n readonly emHeightAscent: number;\n /**\n * The read-only `emHeightDescent` property of the TextMetrics interface returns the distance from the horizontal line indicated by the CanvasRenderingContext2D.textBaseline property to the bottom of the _em_ square in the line box, in CSS pixels.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/TextMetrics/emHeightDescent)\n */\n readonly emHeightDescent: number;\n /**\n * The read-only `fontBoundingBoxAscent` property of the TextMetrics interface returns the distance from the horizontal line indicated by the CanvasRenderingContext2D.textBaseline attribute, to the top of the highest bounding rectangle of all the fonts used to render the text, in CSS pixels.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/TextMetrics/fontBoundingBoxAscent)\n */\n readonly fontBoundingBoxAscent: number;\n /**\n * The read-only `fontBoundingBoxDescent` property of the TextMetrics interface returns the distance from the horizontal line indicated by the CanvasRenderingContext2D.textBaseline attribute to the bottom of the bounding rectangle of all the fonts used to render the text, in CSS pixels.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/TextMetrics/fontBoundingBoxDescent)\n */\n readonly fontBoundingBoxDescent: number;\n /**\n * The read-only `hangingBaseline` property of the TextMetrics interface is a `double` giving the distance from the horizontal line indicated by the CanvasRenderingContext2D.textBaseline property to the hanging baseline of the line box, in CSS pixels.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/TextMetrics/hangingBaseline)\n */\n readonly hangingBaseline: number;\n /**\n * The read-only `ideographicBaseline` property of the TextMetrics interface is a `double` giving the distance from the horizontal line indicated by the CanvasRenderingContext2D.textBaseline property to the ideographic baseline of the line box, in CSS pixels.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/TextMetrics/ideographicBaseline)\n */\n readonly ideographicBaseline: number;\n /**\n * The read-only **`width`** property of the TextMetrics interface contains the text\'s advance width (the width of that inline box) in CSS pixels.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/TextMetrics/width)\n */\n readonly width: number;\n}\n\ndeclare var TextMetrics: {\n prototype: TextMetrics;\n new(): TextMetrics;\n};\n\n/**\n * The **`TransformStream`** interface of the Streams API represents a concrete implementation of the pipe chain _transform stream_ concept.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/TransformStream)\n */\ninterface TransformStream<I = any, O = any> {\n /**\n * The **`readable`** read-only property of the TransformStream interface returns the ReadableStream instance controlled by this `TransformStream`.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/TransformStream/readable)\n */\n readonly readable: ReadableStream<O>;\n /**\n * The **`writable`** read-only property of the TransformStream interface returns the WritableStream instance controlled by this `TransformStream`.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/TransformStream/writable)\n */\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\n/**\n * The **`TransformStreamDefaultController`** interface of the Streams API provides methods to manipulate the associated ReadableStream and WritableStream.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/TransformStreamDefaultController)\n */\ninterface TransformStreamDefaultController<O = any> {\n /**\n * The **`desiredSize`** read-only property of the TransformStreamDefaultController interface returns the desired size to fill the queue of the associated ReadableStream.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/TransformStreamDefaultController/desiredSize)\n */\n readonly desiredSize: number | null;\n /**\n * The **`enqueue()`** method of the TransformStreamDefaultController interface enqueues the given chunk in the readable side of the stream.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/TransformStreamDefaultController/enqueue)\n */\n enqueue(chunk?: O): void;\n /**\n * The **`error()`** method of the TransformStreamDefaultController interface errors both sides of the stream.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/TransformStreamDefaultController/error)\n */\n error(reason?: any): void;\n /**\n * The **`terminate()`** method of the TransformStreamDefaultController interface closes the readable side and errors the writable side of the stream.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/TransformStreamDefaultController/terminate)\n */\n terminate(): void;\n}\n\ndeclare var TransformStreamDefaultController: {\n prototype: TransformStreamDefaultController;\n new(): TransformStreamDefaultController;\n};\n\n/**\n * The **`URL`** interface is used to parse, construct, normalize, and encode URL.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/URL)\n */\ninterface URL {\n /**\n * The **`hash`** property of the URL interface is a string containing a `\'#\'` followed by the fragment identifier of the URL.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/URL/hash)\n */\n hash: string;\n /**\n * The **`host`** property of the URL interface is a string containing the host, which is the URL.hostname, and then, if the port of the URL is nonempty, a `\':\'`, followed by the URL.port of the URL.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/URL/host)\n */\n host: string;\n /**\n * The **`hostname`** property of the URL interface is a string containing either the domain name or IP address of the URL.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/URL/hostname)\n */\n hostname: string;\n /**\n * The **`href`** property of the URL interface is a string containing the whole URL.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/URL/href)\n */\n href: string;\n toString(): string;\n /**\n * The **`origin`** read-only property of the URL interface returns a string containing the Unicode serialization of the origin of the represented URL.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/URL/origin)\n */\n readonly origin: string;\n /**\n * The **`password`** property of the URL interface is a string containing the password component of the URL.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/URL/password)\n */\n password: string;\n /**\n * The **`pathname`** property of the URL interface represents a location in a hierarchical structure.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/URL/pathname)\n */\n pathname: string;\n /**\n * The **`port`** property of the URL interface is a string containing the port number of the URL.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/URL/port)\n */\n port: string;\n /**\n * The **`protocol`** property of the URL interface is a string containing the protocol or scheme of the URL, including the final `\':\'`.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/URL/protocol)\n */\n protocol: string;\n /**\n * The **`search`** property of the URL interface is a search string, also called a _query string_, that is a string containing a `\'?\'` followed by the parameters of the URL.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/URL/search)\n */\n search: string;\n /**\n * The **`searchParams`** read-only property of the access to the [MISSING: httpmethod(\'GET\')] decoded query arguments contained in the URL.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/URL/searchParams)\n */\n readonly searchParams: URLSearchParams;\n /**\n * The **`username`** property of the URL interface is a string containing the username component of the URL.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/URL/username)\n */\n username: string;\n /**\n * The **`toJSON()`** method of the URL interface returns a string containing a serialized version of the URL, although in practice it seems to have the same effect as ```js-nolint toJSON() ``` None.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/URL/toJSON)\n */\n toJSON(): string;\n}\n\ndeclare var URL: {\n prototype: URL;\n new(url: string | URL, base?: string | URL): URL;\n /**\n * The **`URL.canParse()`** static method of the URL interface returns a boolean indicating whether or not an absolute URL, or a relative URL combined with a base URL, are parsable and valid.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/URL/canParse_static)\n */\n canParse(url: string | URL, base?: string | URL): boolean;\n /**\n * The **`createObjectURL()`** static method of the URL interface creates a string containing a URL representing the object given in the parameter.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/URL/createObjectURL_static)\n */\n createObjectURL(obj: Blob): string;\n /**\n * The **`URL.parse()`** static method of the URL interface returns a newly created URL object representing the URL defined by the parameters.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/URL/parse_static)\n */\n parse(url: string | URL, base?: string | URL): URL | null;\n /**\n * The **`revokeObjectURL()`** static method of the URL interface releases an existing object URL which was previously created by calling Call this method when you\'ve finished using an object URL to let the browser know not to keep the reference to the file any longer.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/URL/revokeObjectURL_static)\n */\n revokeObjectURL(url: string): void;\n};\n\n/**\n * The **`URLSearchParams`** interface defines utility methods to work with the query string of a URL.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/URLSearchParams)\n */\ninterface URLSearchParams {\n /**\n * The **`size`** read-only property of the URLSearchParams interface indicates the total number of search parameter entries.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/URLSearchParams/size)\n */\n readonly size: number;\n /**\n * The **`append()`** method of the URLSearchParams interface appends a specified key/value pair as a new search parameter.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/URLSearchParams/append)\n */\n append(name: string, value: string): void;\n /**\n * The **`delete()`** method of the URLSearchParams interface deletes specified parameters and their associated value(s) from the list of all search parameters.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/URLSearchParams/delete)\n */\n delete(name: string, value?: string): void;\n /**\n * The **`get()`** method of the URLSearchParams interface returns the first value associated to the given search parameter.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/URLSearchParams/get)\n */\n get(name: string): string | null;\n /**\n * The **`getAll()`** method of the URLSearchParams interface returns all the values associated with a given search parameter as an array.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/URLSearchParams/getAll)\n */\n getAll(name: string): string[];\n /**\n * The **`has()`** method of the URLSearchParams interface returns a boolean value that indicates whether the specified parameter is in the search parameters.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/URLSearchParams/has)\n */\n has(name: string, value?: string): boolean;\n /**\n * The **`set()`** method of the URLSearchParams interface sets the value associated with a given search parameter to the given value.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/URLSearchParams/set)\n */\n set(name: string, value: string): void;\n /**\n * The **`URLSearchParams.sort()`** method sorts all key/value pairs contained in this object in place and returns `undefined`.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/URLSearchParams/sort)\n */\n sort(): void;\n toString(): string;\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/**\n * The **`VideoColorSpace`** interface of the WebCodecs API represents the color space of a video.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/VideoColorSpace)\n */\ninterface VideoColorSpace {\n /**\n * The **`fullRange`** read-only property of the VideoColorSpace interface returns `true` if full-range color values are used.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/VideoColorSpace/fullRange)\n */\n readonly fullRange: boolean | null;\n /**\n * The **`matrix`** read-only property of the VideoColorSpace interface returns the matrix coefficient of the video.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/VideoColorSpace/matrix)\n */\n readonly matrix: VideoMatrixCoefficients | null;\n /**\n * The **`primaries`** read-only property of the VideoColorSpace interface returns the color gamut of the video.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/VideoColorSpace/primaries)\n */\n readonly primaries: VideoColorPrimaries | null;\n /**\n * The **`transfer`** read-only property of the VideoColorSpace interface returns the opto-electronic transfer characteristics of the video.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/VideoColorSpace/transfer)\n */\n readonly transfer: VideoTransferCharacteristics | null;\n /**\n * The **`toJSON()`** method of the VideoColorSpace interface is a _serializer_ that returns a JSON representation of the `VideoColorSpace` object.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/VideoColorSpace/toJSON)\n */\n toJSON(): VideoColorSpaceInit;\n}\n\ndeclare var VideoColorSpace: {\n prototype: VideoColorSpace;\n new(init?: VideoColorSpaceInit): VideoColorSpace;\n};\n\ninterface VideoDecoderEventMap {\n "dequeue": Event;\n}\n\n/**\n * The **`VideoDecoder`** interface of the WebCodecs API decodes chunks of video.\n * Available only in secure contexts.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/VideoDecoder)\n */\ninterface VideoDecoder extends EventTarget {\n /**\n * The **`decodeQueueSize`** read-only property of the VideoDecoder interface returns the number of pending decode requests in the queue.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/VideoDecoder/decodeQueueSize)\n */\n readonly decodeQueueSize: number;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/VideoDecoder/dequeue_event) */\n ondequeue: ((this: VideoDecoder, ev: Event) => any) | null;\n /**\n * The **`state`** property of the VideoDecoder interface returns the current state of the underlying codec.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/VideoDecoder/state)\n */\n readonly state: CodecState;\n /**\n * The **`close()`** method of the VideoDecoder interface ends all pending work and releases system resources.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/VideoDecoder/close)\n */\n close(): void;\n /**\n * The **`configure()`** method of the VideoDecoder interface enqueues a control message to configure the video decoder for decoding chunks.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/VideoDecoder/configure)\n */\n configure(config: VideoDecoderConfig): void;\n /**\n * The **`decode()`** method of the VideoDecoder interface enqueues a control message to decode a given chunk of video.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/VideoDecoder/decode)\n */\n decode(chunk: EncodedVideoChunk): void;\n /**\n * The **`flush()`** method of the VideoDecoder interface returns a Promise that resolves once all pending messages in the queue have been completed.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/VideoDecoder/flush)\n */\n flush(): Promise<void>;\n /**\n * The **`reset()`** method of the VideoDecoder interface resets all states including configuration, control messages in the control message queue, and all pending callbacks.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/VideoDecoder/reset)\n */\n reset(): void;\n addEventListener<K extends keyof VideoDecoderEventMap>(type: K, listener: (this: VideoDecoder, ev: VideoDecoderEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n removeEventListener<K extends keyof VideoDecoderEventMap>(type: K, listener: (this: VideoDecoder, ev: VideoDecoderEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\ndeclare var VideoDecoder: {\n prototype: VideoDecoder;\n new(init: VideoDecoderInit): VideoDecoder;\n /**\n * The **`isConfigSupported()`** static method of the VideoDecoder interface checks if the given config is supported (that is, if VideoDecoder objects can be successfully configured with the given config).\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/VideoDecoder/isConfigSupported_static)\n */\n isConfigSupported(config: VideoDecoderConfig): Promise<VideoDecoderSupport>;\n};\n\ninterface VideoEncoderEventMap {\n "dequeue": Event;\n}\n\n/**\n * The **`VideoEncoder`** interface of the WebCodecs API encodes VideoFrame objects into EncodedVideoChunks.\n * Available only in secure contexts.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/VideoEncoder)\n */\ninterface VideoEncoder extends EventTarget {\n /**\n * The **`encodeQueueSize`** read-only property of the VideoEncoder interface returns the number of pending encode requests in the queue.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/VideoEncoder/encodeQueueSize)\n */\n readonly encodeQueueSize: number;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/VideoEncoder/dequeue_event) */\n ondequeue: ((this: VideoEncoder, ev: Event) => any) | null;\n /**\n * The **`state`** read-only property of the VideoEncoder interface returns the current state of the underlying codec.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/VideoEncoder/state)\n */\n readonly state: CodecState;\n /**\n * The **`close()`** method of the VideoEncoder interface ends all pending work and releases system resources.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/VideoEncoder/close)\n */\n close(): void;\n /**\n * The **`configure()`** method of the VideoEncoder interface changes the VideoEncoder.state of the encoder to \'configured\' and asynchronously prepares the encoder to accept VideoEncoders for encoding with the specified parameters.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/VideoEncoder/configure)\n */\n configure(config: VideoEncoderConfig): void;\n /**\n * The **`encode()`** method of the VideoEncoder interface asynchronously encodes a VideoFrame.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/VideoEncoder/encode)\n */\n encode(frame: VideoFrame, options?: VideoEncoderEncodeOptions): void;\n /**\n * The **`flush()`** method of the VideoEncoder interface forces all pending encodes to complete.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/VideoEncoder/flush)\n */\n flush(): Promise<void>;\n /**\n * The **`reset()`** method of the VideoEncoder interface synchronously cancels all pending encodes and callbacks, frees all underlying resources and sets the VideoEncoder.state to \'unconfigured\'.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/VideoEncoder/reset)\n */\n reset(): void;\n addEventListener<K extends keyof VideoEncoderEventMap>(type: K, listener: (this: VideoEncoder, ev: VideoEncoderEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n removeEventListener<K extends keyof VideoEncoderEventMap>(type: K, listener: (this: VideoEncoder, ev: VideoEncoderEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\ndeclare var VideoEncoder: {\n prototype: VideoEncoder;\n new(init: VideoEncoderInit): VideoEncoder;\n /**\n * The **`isConfigSupported()`** static method of the VideoEncoder interface checks if VideoEncoder can be successfully configured with the given config.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/VideoEncoder/isConfigSupported_static)\n */\n isConfigSupported(config: VideoEncoderConfig): Promise<VideoEncoderSupport>;\n};\n\n/**\n * The **`VideoFrame`** interface of the Web Codecs API represents a frame of a video.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/VideoFrame)\n */\ninterface VideoFrame {\n /**\n * The **`codedHeight`** property of the VideoFrame interface returns the height of the VideoFrame in pixels, potentially including non-visible padding, and prior to considering potential ratio adjustments.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/VideoFrame/codedHeight)\n */\n readonly codedHeight: number;\n /**\n * The **`codedRect`** property of the VideoFrame interface returns a DOMRectReadOnly with the width and height matching VideoFrame.codedWidth and VideoFrame.codedHeight.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/VideoFrame/codedRect)\n */\n readonly codedRect: DOMRectReadOnly | null;\n /**\n * The **`codedWidth`** property of the VideoFrame interface returns the width of the `VideoFrame` in pixels, potentially including non-visible padding, and prior to considering potential ratio adjustments.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/VideoFrame/codedWidth)\n */\n readonly codedWidth: number;\n /**\n * The **`colorSpace`** property of the VideoFrame interface returns a VideoColorSpace object representing the color space of the video.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/VideoFrame/colorSpace)\n */\n readonly colorSpace: VideoColorSpace;\n /**\n * The **`displayHeight`** property of the VideoFrame interface returns the height of the `VideoFrame` after applying aspect ratio adjustments.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/VideoFrame/displayHeight)\n */\n readonly displayHeight: number;\n /**\n * The **`displayWidth`** property of the VideoFrame interface returns the width of the `VideoFrame` after applying aspect ratio adjustments.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/VideoFrame/displayWidth)\n */\n readonly displayWidth: number;\n /**\n * The **`duration`** property of the VideoFrame interface returns an integer indicating the duration of the video in microseconds.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/VideoFrame/duration)\n */\n readonly duration: number | null;\n /**\n * The **`format`** property of the VideoFrame interface returns the pixel format of the `VideoFrame`.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/VideoFrame/format)\n */\n readonly format: VideoPixelFormat | null;\n /**\n * The **`timestamp`** property of the VideoFrame interface returns an integer indicating the timestamp of the video in microseconds.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/VideoFrame/timestamp)\n */\n readonly timestamp: number;\n /**\n * The **`visibleRect`** property of the VideoFrame interface returns a DOMRectReadOnly describing the visible rectangle of pixels for this `VideoFrame`.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/VideoFrame/visibleRect)\n */\n readonly visibleRect: DOMRectReadOnly | null;\n /**\n * The **`allocationSize()`** method of the VideoFrame interface returns the number of bytes required to hold the video as filtered by options passed into the method.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/VideoFrame/allocationSize)\n */\n allocationSize(options?: VideoFrameCopyToOptions): number;\n /**\n * The **`clone()`** method of the VideoFrame interface creates a new `VideoFrame` object referencing the same media resource as the original.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/VideoFrame/clone)\n */\n clone(): VideoFrame;\n /**\n * The **`close()`** method of the VideoFrame interface clears all states and releases the reference to the media resource.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/VideoFrame/close)\n */\n close(): void;\n /**\n * The **`copyTo()`** method of the VideoFrame interface copies the contents of the `VideoFrame` to an `ArrayBuffer`.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/VideoFrame/copyTo)\n */\n copyTo(destination: AllowSharedBufferSource, options?: VideoFrameCopyToOptions): Promise<PlaneLayout[]>;\n}\n\ndeclare var VideoFrame: {\n prototype: VideoFrame;\n new(image: CanvasImageSource, init?: VideoFrameInit): VideoFrame;\n new(data: AllowSharedBufferSource, init: VideoFrameBufferInit): VideoFrame;\n};\n\n/**\n * The **`WEBGL_color_buffer_float`** extension is part of the WebGL API and adds the ability to render to 32-bit floating-point color buffers.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WEBGL_color_buffer_float)\n */\ninterface WEBGL_color_buffer_float {\n readonly RGBA32F_EXT: 0x8814;\n readonly FRAMEBUFFER_ATTACHMENT_COMPONENT_TYPE_EXT: 0x8211;\n readonly UNSIGNED_NORMALIZED_EXT: 0x8C17;\n}\n\n/**\n * The **`WEBGL_compressed_texture_astc`** extension is part of the WebGL API and exposes Adaptive Scalable Texture Compression (ASTC) compressed texture formats to WebGL.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WEBGL_compressed_texture_astc)\n */\ninterface WEBGL_compressed_texture_astc {\n /**\n * The **`WEBGL_compressed_texture_astc.getSupportedProfiles()`** method returns an array of strings containing the names of the ASTC profiles supported by the implementation.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WEBGL_compressed_texture_astc/getSupportedProfiles)\n */\n getSupportedProfiles(): string[];\n readonly COMPRESSED_RGBA_ASTC_4x4_KHR: 0x93B0;\n readonly COMPRESSED_RGBA_ASTC_5x4_KHR: 0x93B1;\n readonly COMPRESSED_RGBA_ASTC_5x5_KHR: 0x93B2;\n readonly COMPRESSED_RGBA_ASTC_6x5_KHR: 0x93B3;\n readonly COMPRESSED_RGBA_ASTC_6x6_KHR: 0x93B4;\n readonly COMPRESSED_RGBA_ASTC_8x5_KHR: 0x93B5;\n readonly COMPRESSED_RGBA_ASTC_8x6_KHR: 0x93B6;\n readonly COMPRESSED_RGBA_ASTC_8x8_KHR: 0x93B7;\n readonly COMPRESSED_RGBA_ASTC_10x5_KHR: 0x93B8;\n readonly COMPRESSED_RGBA_ASTC_10x6_KHR: 0x93B9;\n readonly COMPRESSED_RGBA_ASTC_10x8_KHR: 0x93BA;\n readonly COMPRESSED_RGBA_ASTC_10x10_KHR: 0x93BB;\n readonly COMPRESSED_RGBA_ASTC_12x10_KHR: 0x93BC;\n readonly COMPRESSED_RGBA_ASTC_12x12_KHR: 0x93BD;\n readonly COMPRESSED_SRGB8_ALPHA8_ASTC_4x4_KHR: 0x93D0;\n readonly COMPRESSED_SRGB8_ALPHA8_ASTC_5x4_KHR: 0x93D1;\n readonly COMPRESSED_SRGB8_ALPHA8_ASTC_5x5_KHR: 0x93D2;\n readonly COMPRESSED_SRGB8_ALPHA8_ASTC_6x5_KHR: 0x93D3;\n readonly COMPRESSED_SRGB8_ALPHA8_ASTC_6x6_KHR: 0x93D4;\n readonly COMPRESSED_SRGB8_ALPHA8_ASTC_8x5_KHR: 0x93D5;\n readonly COMPRESSED_SRGB8_ALPHA8_ASTC_8x6_KHR: 0x93D6;\n readonly COMPRESSED_SRGB8_ALPHA8_ASTC_8x8_KHR: 0x93D7;\n readonly COMPRESSED_SRGB8_ALPHA8_ASTC_10x5_KHR: 0x93D8;\n readonly COMPRESSED_SRGB8_ALPHA8_ASTC_10x6_KHR: 0x93D9;\n readonly COMPRESSED_SRGB8_ALPHA8_ASTC_10x8_KHR: 0x93DA;\n readonly COMPRESSED_SRGB8_ALPHA8_ASTC_10x10_KHR: 0x93DB;\n readonly COMPRESSED_SRGB8_ALPHA8_ASTC_12x10_KHR: 0x93DC;\n readonly COMPRESSED_SRGB8_ALPHA8_ASTC_12x12_KHR: 0x93DD;\n}\n\n/**\n * The **`WEBGL_compressed_texture_etc`** extension is part of the WebGL API and exposes 10 ETC/EAC compressed texture formats.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WEBGL_compressed_texture_etc)\n */\ninterface WEBGL_compressed_texture_etc {\n readonly COMPRESSED_R11_EAC: 0x9270;\n readonly COMPRESSED_SIGNED_R11_EAC: 0x9271;\n readonly COMPRESSED_RG11_EAC: 0x9272;\n readonly COMPRESSED_SIGNED_RG11_EAC: 0x9273;\n readonly COMPRESSED_RGB8_ETC2: 0x9274;\n readonly COMPRESSED_SRGB8_ETC2: 0x9275;\n readonly COMPRESSED_RGB8_PUNCHTHROUGH_ALPHA1_ETC2: 0x9276;\n readonly COMPRESSED_SRGB8_PUNCHTHROUGH_ALPHA1_ETC2: 0x9277;\n readonly COMPRESSED_RGBA8_ETC2_EAC: 0x9278;\n readonly COMPRESSED_SRGB8_ALPHA8_ETC2_EAC: 0x9279;\n}\n\n/**\n * The **`WEBGL_compressed_texture_etc1`** extension is part of the WebGL API and exposes the ETC1 compressed texture format.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WEBGL_compressed_texture_etc1)\n */\ninterface WEBGL_compressed_texture_etc1 {\n readonly COMPRESSED_RGB_ETC1_WEBGL: 0x8D64;\n}\n\n/**\n * The **`WEBGL_compressed_texture_pvrtc`** extension is part of the WebGL API and exposes four PVRTC compressed texture formats.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WEBGL_compressed_texture_pvrtc)\n */\ninterface WEBGL_compressed_texture_pvrtc {\n readonly COMPRESSED_RGB_PVRTC_4BPPV1_IMG: 0x8C00;\n readonly COMPRESSED_RGB_PVRTC_2BPPV1_IMG: 0x8C01;\n readonly COMPRESSED_RGBA_PVRTC_4BPPV1_IMG: 0x8C02;\n readonly COMPRESSED_RGBA_PVRTC_2BPPV1_IMG: 0x8C03;\n}\n\n/**\n * The **`WEBGL_compressed_texture_s3tc`** extension is part of the WebGL API and exposes four S3TC compressed texture formats.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WEBGL_compressed_texture_s3tc)\n */\ninterface WEBGL_compressed_texture_s3tc {\n readonly COMPRESSED_RGB_S3TC_DXT1_EXT: 0x83F0;\n readonly COMPRESSED_RGBA_S3TC_DXT1_EXT: 0x83F1;\n readonly COMPRESSED_RGBA_S3TC_DXT3_EXT: 0x83F2;\n readonly COMPRESSED_RGBA_S3TC_DXT5_EXT: 0x83F3;\n}\n\n/**\n * The **`WEBGL_compressed_texture_s3tc_srgb`** extension is part of the WebGL API and exposes four S3TC compressed texture formats for the sRGB colorspace.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WEBGL_compressed_texture_s3tc_srgb)\n */\ninterface WEBGL_compressed_texture_s3tc_srgb {\n readonly COMPRESSED_SRGB_S3TC_DXT1_EXT: 0x8C4C;\n readonly COMPRESSED_SRGB_ALPHA_S3TC_DXT1_EXT: 0x8C4D;\n readonly COMPRESSED_SRGB_ALPHA_S3TC_DXT3_EXT: 0x8C4E;\n readonly COMPRESSED_SRGB_ALPHA_S3TC_DXT5_EXT: 0x8C4F;\n}\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.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WEBGL_debug_renderer_info)\n */\ninterface WEBGL_debug_renderer_info {\n readonly UNMASKED_VENDOR_WEBGL: 0x9245;\n readonly UNMASKED_RENDERER_WEBGL: 0x9246;\n}\n\n/**\n * The **`WEBGL_debug_shaders`** extension is part of the WebGL API and exposes a method to debug shaders from privileged contexts.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WEBGL_debug_shaders)\n */\ninterface WEBGL_debug_shaders {\n /**\n * The **`WEBGL_debug_shaders.getTranslatedShaderSource()`** method is part of the WebGL API and allows you to debug a translated shader.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WEBGL_debug_shaders/getTranslatedShaderSource)\n */\n getTranslatedShaderSource(shader: WebGLShader): string;\n}\n\n/**\n * The **`WEBGL_depth_texture`** extension is part of the WebGL API and defines 2D depth and depth-stencil textures.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WEBGL_depth_texture)\n */\ninterface WEBGL_depth_texture {\n readonly UNSIGNED_INT_24_8_WEBGL: 0x84FA;\n}\n\n/**\n * The **`WEBGL_draw_buffers`** extension is part of the WebGL API and enables a fragment shader to write to several textures, which is useful for deferred shading, for example.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WEBGL_draw_buffers)\n */\ninterface WEBGL_draw_buffers {\n /**\n * The **`WEBGL_draw_buffers.drawBuffersWEBGL()`** method is part of the WebGL API and allows you to define the draw buffers to which all fragment colors are written.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WEBGL_draw_buffers/drawBuffersWEBGL)\n */\n drawBuffersWEBGL(buffers: GLenum[]): void;\n readonly COLOR_ATTACHMENT0_WEBGL: 0x8CE0;\n readonly COLOR_ATTACHMENT1_WEBGL: 0x8CE1;\n readonly COLOR_ATTACHMENT2_WEBGL: 0x8CE2;\n readonly COLOR_ATTACHMENT3_WEBGL: 0x8CE3;\n readonly COLOR_ATTACHMENT4_WEBGL: 0x8CE4;\n readonly COLOR_ATTACHMENT5_WEBGL: 0x8CE5;\n readonly COLOR_ATTACHMENT6_WEBGL: 0x8CE6;\n readonly COLOR_ATTACHMENT7_WEBGL: 0x8CE7;\n readonly COLOR_ATTACHMENT8_WEBGL: 0x8CE8;\n readonly COLOR_ATTACHMENT9_WEBGL: 0x8CE9;\n readonly COLOR_ATTACHMENT10_WEBGL: 0x8CEA;\n readonly COLOR_ATTACHMENT11_WEBGL: 0x8CEB;\n readonly COLOR_ATTACHMENT12_WEBGL: 0x8CEC;\n readonly COLOR_ATTACHMENT13_WEBGL: 0x8CED;\n readonly COLOR_ATTACHMENT14_WEBGL: 0x8CEE;\n readonly COLOR_ATTACHMENT15_WEBGL: 0x8CEF;\n readonly DRAW_BUFFER0_WEBGL: 0x8825;\n readonly DRAW_BUFFER1_WEBGL: 0x8826;\n readonly DRAW_BUFFER2_WEBGL: 0x8827;\n readonly DRAW_BUFFER3_WEBGL: 0x8828;\n readonly DRAW_BUFFER4_WEBGL: 0x8829;\n readonly DRAW_BUFFER5_WEBGL: 0x882A;\n readonly DRAW_BUFFER6_WEBGL: 0x882B;\n readonly DRAW_BUFFER7_WEBGL: 0x882C;\n readonly DRAW_BUFFER8_WEBGL: 0x882D;\n readonly DRAW_BUFFER9_WEBGL: 0x882E;\n readonly DRAW_BUFFER10_WEBGL: 0x882F;\n readonly DRAW_BUFFER11_WEBGL: 0x8830;\n readonly DRAW_BUFFER12_WEBGL: 0x8831;\n readonly DRAW_BUFFER13_WEBGL: 0x8832;\n readonly DRAW_BUFFER14_WEBGL: 0x8833;\n readonly DRAW_BUFFER15_WEBGL: 0x8834;\n readonly MAX_COLOR_ATTACHMENTS_WEBGL: 0x8CDF;\n readonly MAX_DRAW_BUFFERS_WEBGL: 0x8824;\n}\n\n/**\n * The **WEBGL_lose_context** extension is part of the WebGL API and exposes functions to simulate losing and restoring a WebGLRenderingContext.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WEBGL_lose_context)\n */\ninterface WEBGL_lose_context {\n /**\n * The **WEBGL_lose_context.loseContext()** method is part of the WebGL API and allows you to simulate losing the context of a WebGLRenderingContext context.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WEBGL_lose_context/loseContext)\n */\n loseContext(): void;\n /**\n * The **WEBGL_lose_context.restoreContext()** method is part of the WebGL API and allows you to simulate restoring the context of a WebGLRenderingContext object.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WEBGL_lose_context/restoreContext)\n */\n restoreContext(): void;\n}\n\n/**\n * The **`WEBGL_multi_draw`** extension is part of the WebGL API and allows to render more than one primitive with a single function call.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WEBGL_multi_draw)\n */\ninterface WEBGL_multi_draw {\n /**\n * The **`WEBGL_multi_draw.multiDrawArraysInstancedWEBGL()`** method of the WebGL API renders multiple primitives from array data.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WEBGL_multi_draw/multiDrawArraysInstancedWEBGL)\n */\n multiDrawArraysInstancedWEBGL(mode: GLenum, firstsList: Int32Array<ArrayBufferLike> | GLint[], firstsOffset: number, countsList: Int32Array<ArrayBufferLike> | GLsizei[], countsOffset: number, instanceCountsList: Int32Array<ArrayBufferLike> | GLsizei[], instanceCountsOffset: number, drawcount: GLsizei): void;\n /**\n * The **`WEBGL_multi_draw.multiDrawArraysWEBGL()`** method of the WebGL API renders multiple primitives from array data.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WEBGL_multi_draw/multiDrawArraysWEBGL)\n */\n multiDrawArraysWEBGL(mode: GLenum, firstsList: Int32Array<ArrayBufferLike> | GLint[], firstsOffset: number, countsList: Int32Array<ArrayBufferLike> | GLsizei[], countsOffset: number, drawcount: GLsizei): void;\n /**\n * The **`WEBGL_multi_draw.multiDrawElementsInstancedWEBGL()`** method of the WebGL API renders multiple primitives from array data.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WEBGL_multi_draw/multiDrawElementsInstancedWEBGL)\n */\n multiDrawElementsInstancedWEBGL(mode: GLenum, countsList: Int32Array<ArrayBufferLike> | GLsizei[], countsOffset: number, type: GLenum, offsetsList: Int32Array<ArrayBufferLike> | GLsizei[], offsetsOffset: number, instanceCountsList: Int32Array<ArrayBufferLike> | GLsizei[], instanceCountsOffset: number, drawcount: GLsizei): void;\n /**\n * The **`WEBGL_multi_draw.multiDrawElementsWEBGL()`** method of the WebGL API renders multiple primitives from array data.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WEBGL_multi_draw/multiDrawElementsWEBGL)\n */\n multiDrawElementsWEBGL(mode: GLenum, countsList: Int32Array<ArrayBufferLike> | GLsizei[], countsOffset: number, type: GLenum, offsetsList: Int32Array<ArrayBufferLike> | GLsizei[], offsetsOffset: number, drawcount: GLsizei): void;\n}\n\n/**\n * The **WebGL2RenderingContext** interface provides the OpenGL ES 3.0 rendering context for the drawing surface of an HTML canvas element.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext)\n */\ninterface WebGL2RenderingContext extends WebGL2RenderingContextBase, WebGL2RenderingContextOverloads, WebGLRenderingContextBase {\n}\n\ndeclare var WebGL2RenderingContext: {\n prototype: WebGL2RenderingContext;\n new(): WebGL2RenderingContext;\n readonly READ_BUFFER: 0x0C02;\n readonly UNPACK_ROW_LENGTH: 0x0CF2;\n readonly UNPACK_SKIP_ROWS: 0x0CF3;\n readonly UNPACK_SKIP_PIXELS: 0x0CF4;\n readonly PACK_ROW_LENGTH: 0x0D02;\n readonly PACK_SKIP_ROWS: 0x0D03;\n readonly PACK_SKIP_PIXELS: 0x0D04;\n readonly COLOR: 0x1800;\n readonly DEPTH: 0x1801;\n readonly STENCIL: 0x1802;\n readonly RED: 0x1903;\n readonly RGB8: 0x8051;\n readonly RGB10_A2: 0x8059;\n readonly TEXTURE_BINDING_3D: 0x806A;\n readonly UNPACK_SKIP_IMAGES: 0x806D;\n readonly UNPACK_IMAGE_HEIGHT: 0x806E;\n readonly TEXTURE_3D: 0x806F;\n readonly TEXTURE_WRAP_R: 0x8072;\n readonly MAX_3D_TEXTURE_SIZE: 0x8073;\n readonly UNSIGNED_INT_2_10_10_10_REV: 0x8368;\n readonly MAX_ELEMENTS_VERTICES: 0x80E8;\n readonly MAX_ELEMENTS_INDICES: 0x80E9;\n readonly TEXTURE_MIN_LOD: 0x813A;\n readonly TEXTURE_MAX_LOD: 0x813B;\n readonly TEXTURE_BASE_LEVEL: 0x813C;\n readonly TEXTURE_MAX_LEVEL: 0x813D;\n readonly MIN: 0x8007;\n readonly MAX: 0x8008;\n readonly DEPTH_COMPONENT24: 0x81A6;\n readonly MAX_TEXTURE_LOD_BIAS: 0x84FD;\n readonly TEXTURE_COMPARE_MODE: 0x884C;\n readonly TEXTURE_COMPARE_FUNC: 0x884D;\n readonly CURRENT_QUERY: 0x8865;\n readonly QUERY_RESULT: 0x8866;\n readonly QUERY_RESULT_AVAILABLE: 0x8867;\n readonly STREAM_READ: 0x88E1;\n readonly STREAM_COPY: 0x88E2;\n readonly STATIC_READ: 0x88E5;\n readonly STATIC_COPY: 0x88E6;\n readonly DYNAMIC_READ: 0x88E9;\n readonly DYNAMIC_COPY: 0x88EA;\n readonly MAX_DRAW_BUFFERS: 0x8824;\n readonly DRAW_BUFFER0: 0x8825;\n readonly DRAW_BUFFER1: 0x8826;\n readonly DRAW_BUFFER2: 0x8827;\n readonly DRAW_BUFFER3: 0x8828;\n readonly DRAW_BUFFER4: 0x8829;\n readonly DRAW_BUFFER5: 0x882A;\n readonly DRAW_BUFFER6: 0x882B;\n readonly DRAW_BUFFER7: 0x882C;\n readonly DRAW_BUFFER8: 0x882D;\n readonly DRAW_BUFFER9: 0x882E;\n readonly DRAW_BUFFER10: 0x882F;\n readonly DRAW_BUFFER11: 0x8830;\n readonly DRAW_BUFFER12: 0x8831;\n readonly DRAW_BUFFER13: 0x8832;\n readonly DRAW_BUFFER14: 0x8833;\n readonly DRAW_BUFFER15: 0x8834;\n readonly MAX_FRAGMENT_UNIFORM_COMPONENTS: 0x8B49;\n readonly MAX_VERTEX_UNIFORM_COMPONENTS: 0x8B4A;\n readonly SAMPLER_3D: 0x8B5F;\n readonly SAMPLER_2D_SHADOW: 0x8B62;\n readonly FRAGMENT_SHADER_DERIVATIVE_HINT: 0x8B8B;\n readonly PIXEL_PACK_BUFFER: 0x88EB;\n readonly PIXEL_UNPACK_BUFFER: 0x88EC;\n readonly PIXEL_PACK_BUFFER_BINDING: 0x88ED;\n readonly PIXEL_UNPACK_BUFFER_BINDING: 0x88EF;\n readonly FLOAT_MAT2x3: 0x8B65;\n readonly FLOAT_MAT2x4: 0x8B66;\n readonly FLOAT_MAT3x2: 0x8B67;\n readonly FLOAT_MAT3x4: 0x8B68;\n readonly FLOAT_MAT4x2: 0x8B69;\n readonly FLOAT_MAT4x3: 0x8B6A;\n readonly SRGB: 0x8C40;\n readonly SRGB8: 0x8C41;\n readonly SRGB8_ALPHA8: 0x8C43;\n readonly COMPARE_REF_TO_TEXTURE: 0x884E;\n readonly RGBA32F: 0x8814;\n readonly RGB32F: 0x8815;\n readonly RGBA16F: 0x881A;\n readonly RGB16F: 0x881B;\n readonly VERTEX_ATTRIB_ARRAY_INTEGER: 0x88FD;\n readonly MAX_ARRAY_TEXTURE_LAYERS: 0x88FF;\n readonly MIN_PROGRAM_TEXEL_OFFSET: 0x8904;\n readonly MAX_PROGRAM_TEXEL_OFFSET: 0x8905;\n readonly MAX_VARYING_COMPONENTS: 0x8B4B;\n readonly TEXTURE_2D_ARRAY: 0x8C1A;\n readonly TEXTURE_BINDING_2D_ARRAY: 0x8C1D;\n readonly R11F_G11F_B10F: 0x8C3A;\n readonly UNSIGNED_INT_10F_11F_11F_REV: 0x8C3B;\n readonly RGB9_E5: 0x8C3D;\n readonly UNSIGNED_INT_5_9_9_9_REV: 0x8C3E;\n readonly TRANSFORM_FEEDBACK_BUFFER_MODE: 0x8C7F;\n readonly MAX_TRANSFORM_FEEDBACK_SEPARATE_COMPONENTS: 0x8C80;\n readonly TRANSFORM_FEEDBACK_VARYINGS: 0x8C83;\n readonly TRANSFORM_FEEDBACK_BUFFER_START: 0x8C84;\n readonly TRANSFORM_FEEDBACK_BUFFER_SIZE: 0x8C85;\n readonly TRANSFORM_FEEDBACK_PRIMITIVES_WRITTEN: 0x8C88;\n readonly RASTERIZER_DISCARD: 0x8C89;\n readonly MAX_TRANSFORM_FEEDBACK_INTERLEAVED_COMPONENTS: 0x8C8A;\n readonly MAX_TRANSFORM_FEEDBACK_SEPARATE_ATTRIBS: 0x8C8B;\n readonly INTERLEAVED_ATTRIBS: 0x8C8C;\n readonly SEPARATE_ATTRIBS: 0x8C8D;\n readonly TRANSFORM_FEEDBACK_BUFFER: 0x8C8E;\n readonly TRANSFORM_FEEDBACK_BUFFER_BINDING: 0x8C8F;\n readonly RGBA32UI: 0x8D70;\n readonly RGB32UI: 0x8D71;\n readonly RGBA16UI: 0x8D76;\n readonly RGB16UI: 0x8D77;\n readonly RGBA8UI: 0x8D7C;\n readonly RGB8UI: 0x8D7D;\n readonly RGBA32I: 0x8D82;\n readonly RGB32I: 0x8D83;\n readonly RGBA16I: 0x8D88;\n readonly RGB16I: 0x8D89;\n readonly RGBA8I: 0x8D8E;\n readonly RGB8I: 0x8D8F;\n readonly RED_INTEGER: 0x8D94;\n readonly RGB_INTEGER: 0x8D98;\n readonly RGBA_INTEGER: 0x8D99;\n readonly SAMPLER_2D_ARRAY: 0x8DC1;\n readonly SAMPLER_2D_ARRAY_SHADOW: 0x8DC4;\n readonly SAMPLER_CUBE_SHADOW: 0x8DC5;\n readonly UNSIGNED_INT_VEC2: 0x8DC6;\n readonly UNSIGNED_INT_VEC3: 0x8DC7;\n readonly UNSIGNED_INT_VEC4: 0x8DC8;\n readonly INT_SAMPLER_2D: 0x8DCA;\n readonly INT_SAMPLER_3D: 0x8DCB;\n readonly INT_SAMPLER_CUBE: 0x8DCC;\n readonly INT_SAMPLER_2D_ARRAY: 0x8DCF;\n readonly UNSIGNED_INT_SAMPLER_2D: 0x8DD2;\n readonly UNSIGNED_INT_SAMPLER_3D: 0x8DD3;\n readonly UNSIGNED_INT_SAMPLER_CUBE: 0x8DD4;\n readonly UNSIGNED_INT_SAMPLER_2D_ARRAY: 0x8DD7;\n readonly DEPTH_COMPONENT32F: 0x8CAC;\n readonly DEPTH32F_STENCIL8: 0x8CAD;\n readonly FLOAT_32_UNSIGNED_INT_24_8_REV: 0x8DAD;\n readonly FRAMEBUFFER_ATTACHMENT_COLOR_ENCODING: 0x8210;\n readonly FRAMEBUFFER_ATTACHMENT_COMPONENT_TYPE: 0x8211;\n readonly FRAMEBUFFER_ATTACHMENT_RED_SIZE: 0x8212;\n readonly FRAMEBUFFER_ATTACHMENT_GREEN_SIZE: 0x8213;\n readonly FRAMEBUFFER_ATTACHMENT_BLUE_SIZE: 0x8214;\n readonly FRAMEBUFFER_ATTACHMENT_ALPHA_SIZE: 0x8215;\n readonly FRAMEBUFFER_ATTACHMENT_DEPTH_SIZE: 0x8216;\n readonly FRAMEBUFFER_ATTACHMENT_STENCIL_SIZE: 0x8217;\n readonly FRAMEBUFFER_DEFAULT: 0x8218;\n readonly UNSIGNED_INT_24_8: 0x84FA;\n readonly DEPTH24_STENCIL8: 0x88F0;\n readonly UNSIGNED_NORMALIZED: 0x8C17;\n readonly DRAW_FRAMEBUFFER_BINDING: 0x8CA6;\n readonly READ_FRAMEBUFFER: 0x8CA8;\n readonly DRAW_FRAMEBUFFER: 0x8CA9;\n readonly READ_FRAMEBUFFER_BINDING: 0x8CAA;\n readonly RENDERBUFFER_SAMPLES: 0x8CAB;\n readonly FRAMEBUFFER_ATTACHMENT_TEXTURE_LAYER: 0x8CD4;\n readonly MAX_COLOR_ATTACHMENTS: 0x8CDF;\n readonly COLOR_ATTACHMENT1: 0x8CE1;\n readonly COLOR_ATTACHMENT2: 0x8CE2;\n readonly COLOR_ATTACHMENT3: 0x8CE3;\n readonly COLOR_ATTACHMENT4: 0x8CE4;\n readonly COLOR_ATTACHMENT5: 0x8CE5;\n readonly COLOR_ATTACHMENT6: 0x8CE6;\n readonly COLOR_ATTACHMENT7: 0x8CE7;\n readonly COLOR_ATTACHMENT8: 0x8CE8;\n readonly COLOR_ATTACHMENT9: 0x8CE9;\n readonly COLOR_ATTACHMENT10: 0x8CEA;\n readonly COLOR_ATTACHMENT11: 0x8CEB;\n readonly COLOR_ATTACHMENT12: 0x8CEC;\n readonly COLOR_ATTACHMENT13: 0x8CED;\n readonly COLOR_ATTACHMENT14: 0x8CEE;\n readonly COLOR_ATTACHMENT15: 0x8CEF;\n readonly FRAMEBUFFER_INCOMPLETE_MULTISAMPLE: 0x8D56;\n readonly MAX_SAMPLES: 0x8D57;\n readonly HALF_FLOAT: 0x140B;\n readonly RG: 0x8227;\n readonly RG_INTEGER: 0x8228;\n readonly R8: 0x8229;\n readonly RG8: 0x822B;\n readonly R16F: 0x822D;\n readonly R32F: 0x822E;\n readonly RG16F: 0x822F;\n readonly RG32F: 0x8230;\n readonly R8I: 0x8231;\n readonly R8UI: 0x8232;\n readonly R16I: 0x8233;\n readonly R16UI: 0x8234;\n readonly R32I: 0x8235;\n readonly R32UI: 0x8236;\n readonly RG8I: 0x8237;\n readonly RG8UI: 0x8238;\n readonly RG16I: 0x8239;\n readonly RG16UI: 0x823A;\n readonly RG32I: 0x823B;\n readonly RG32UI: 0x823C;\n readonly VERTEX_ARRAY_BINDING: 0x85B5;\n readonly R8_SNORM: 0x8F94;\n readonly RG8_SNORM: 0x8F95;\n readonly RGB8_SNORM: 0x8F96;\n readonly RGBA8_SNORM: 0x8F97;\n readonly SIGNED_NORMALIZED: 0x8F9C;\n readonly COPY_READ_BUFFER: 0x8F36;\n readonly COPY_WRITE_BUFFER: 0x8F37;\n readonly COPY_READ_BUFFER_BINDING: 0x8F36;\n readonly COPY_WRITE_BUFFER_BINDING: 0x8F37;\n readonly UNIFORM_BUFFER: 0x8A11;\n readonly UNIFORM_BUFFER_BINDING: 0x8A28;\n readonly UNIFORM_BUFFER_START: 0x8A29;\n readonly UNIFORM_BUFFER_SIZE: 0x8A2A;\n readonly MAX_VERTEX_UNIFORM_BLOCKS: 0x8A2B;\n readonly MAX_FRAGMENT_UNIFORM_BLOCKS: 0x8A2D;\n readonly MAX_COMBINED_UNIFORM_BLOCKS: 0x8A2E;\n readonly MAX_UNIFORM_BUFFER_BINDINGS: 0x8A2F;\n readonly MAX_UNIFORM_BLOCK_SIZE: 0x8A30;\n readonly MAX_COMBINED_VERTEX_UNIFORM_COMPONENTS: 0x8A31;\n readonly MAX_COMBINED_FRAGMENT_UNIFORM_COMPONENTS: 0x8A33;\n readonly UNIFORM_BUFFER_OFFSET_ALIGNMENT: 0x8A34;\n readonly ACTIVE_UNIFORM_BLOCKS: 0x8A36;\n readonly UNIFORM_TYPE: 0x8A37;\n readonly UNIFORM_SIZE: 0x8A38;\n readonly UNIFORM_BLOCK_INDEX: 0x8A3A;\n readonly UNIFORM_OFFSET: 0x8A3B;\n readonly UNIFORM_ARRAY_STRIDE: 0x8A3C;\n readonly UNIFORM_MATRIX_STRIDE: 0x8A3D;\n readonly UNIFORM_IS_ROW_MAJOR: 0x8A3E;\n readonly UNIFORM_BLOCK_BINDING: 0x8A3F;\n readonly UNIFORM_BLOCK_DATA_SIZE: 0x8A40;\n readonly UNIFORM_BLOCK_ACTIVE_UNIFORMS: 0x8A42;\n readonly UNIFORM_BLOCK_ACTIVE_UNIFORM_INDICES: 0x8A43;\n readonly UNIFORM_BLOCK_REFERENCED_BY_VERTEX_SHADER: 0x8A44;\n readonly UNIFORM_BLOCK_REFERENCED_BY_FRAGMENT_SHADER: 0x8A46;\n readonly INVALID_INDEX: 0xFFFFFFFF;\n readonly MAX_VERTEX_OUTPUT_COMPONENTS: 0x9122;\n readonly MAX_FRAGMENT_INPUT_COMPONENTS: 0x9125;\n readonly MAX_SERVER_WAIT_TIMEOUT: 0x9111;\n readonly OBJECT_TYPE: 0x9112;\n readonly SYNC_CONDITION: 0x9113;\n readonly SYNC_STATUS: 0x9114;\n readonly SYNC_FLAGS: 0x9115;\n readonly SYNC_FENCE: 0x9116;\n readonly SYNC_GPU_COMMANDS_COMPLETE: 0x9117;\n readonly UNSIGNALED: 0x9118;\n readonly SIGNALED: 0x9119;\n readonly ALREADY_SIGNALED: 0x911A;\n readonly TIMEOUT_EXPIRED: 0x911B;\n readonly CONDITION_SATISFIED: 0x911C;\n readonly WAIT_FAILED: 0x911D;\n readonly SYNC_FLUSH_COMMANDS_BIT: 0x00000001;\n readonly VERTEX_ATTRIB_ARRAY_DIVISOR: 0x88FE;\n readonly ANY_SAMPLES_PASSED: 0x8C2F;\n readonly ANY_SAMPLES_PASSED_CONSERVATIVE: 0x8D6A;\n readonly SAMPLER_BINDING: 0x8919;\n readonly RGB10_A2UI: 0x906F;\n readonly INT_2_10_10_10_REV: 0x8D9F;\n readonly TRANSFORM_FEEDBACK: 0x8E22;\n readonly TRANSFORM_FEEDBACK_PAUSED: 0x8E23;\n readonly TRANSFORM_FEEDBACK_ACTIVE: 0x8E24;\n readonly TRANSFORM_FEEDBACK_BINDING: 0x8E25;\n readonly TEXTURE_IMMUTABLE_FORMAT: 0x912F;\n readonly MAX_ELEMENT_INDEX: 0x8D6B;\n readonly TEXTURE_IMMUTABLE_LEVELS: 0x82DF;\n readonly TIMEOUT_IGNORED: -1;\n readonly MAX_CLIENT_WAIT_TIMEOUT_WEBGL: 0x9247;\n readonly DEPTH_BUFFER_BIT: 0x00000100;\n readonly STENCIL_BUFFER_BIT: 0x00000400;\n readonly COLOR_BUFFER_BIT: 0x00004000;\n readonly POINTS: 0x0000;\n readonly LINES: 0x0001;\n readonly LINE_LOOP: 0x0002;\n readonly LINE_STRIP: 0x0003;\n readonly TRIANGLES: 0x0004;\n readonly TRIANGLE_STRIP: 0x0005;\n readonly TRIANGLE_FAN: 0x0006;\n readonly ZERO: 0;\n readonly ONE: 1;\n readonly SRC_COLOR: 0x0300;\n readonly ONE_MINUS_SRC_COLOR: 0x0301;\n readonly SRC_ALPHA: 0x0302;\n readonly ONE_MINUS_SRC_ALPHA: 0x0303;\n readonly DST_ALPHA: 0x0304;\n readonly ONE_MINUS_DST_ALPHA: 0x0305;\n readonly DST_COLOR: 0x0306;\n readonly ONE_MINUS_DST_COLOR: 0x0307;\n readonly SRC_ALPHA_SATURATE: 0x0308;\n readonly FUNC_ADD: 0x8006;\n readonly BLEND_EQUATION: 0x8009;\n readonly BLEND_EQUATION_RGB: 0x8009;\n readonly BLEND_EQUATION_ALPHA: 0x883D;\n readonly FUNC_SUBTRACT: 0x800A;\n readonly FUNC_REVERSE_SUBTRACT: 0x800B;\n readonly BLEND_DST_RGB: 0x80C8;\n readonly BLEND_SRC_RGB: 0x80C9;\n readonly BLEND_DST_ALPHA: 0x80CA;\n readonly BLEND_SRC_ALPHA: 0x80CB;\n readonly CONSTANT_COLOR: 0x8001;\n readonly ONE_MINUS_CONSTANT_COLOR: 0x8002;\n readonly CONSTANT_ALPHA: 0x8003;\n readonly ONE_MINUS_CONSTANT_ALPHA: 0x8004;\n readonly BLEND_COLOR: 0x8005;\n readonly ARRAY_BUFFER: 0x8892;\n readonly ELEMENT_ARRAY_BUFFER: 0x8893;\n readonly ARRAY_BUFFER_BINDING: 0x8894;\n readonly ELEMENT_ARRAY_BUFFER_BINDING: 0x8895;\n readonly STREAM_DRAW: 0x88E0;\n readonly STATIC_DRAW: 0x88E4;\n readonly DYNAMIC_DRAW: 0x88E8;\n readonly BUFFER_SIZE: 0x8764;\n readonly BUFFER_USAGE: 0x8765;\n readonly CURRENT_VERTEX_ATTRIB: 0x8626;\n readonly FRONT: 0x0404;\n readonly BACK: 0x0405;\n readonly FRONT_AND_BACK: 0x0408;\n readonly CULL_FACE: 0x0B44;\n readonly BLEND: 0x0BE2;\n readonly DITHER: 0x0BD0;\n readonly STENCIL_TEST: 0x0B90;\n readonly DEPTH_TEST: 0x0B71;\n readonly SCISSOR_TEST: 0x0C11;\n readonly POLYGON_OFFSET_FILL: 0x8037;\n readonly SAMPLE_ALPHA_TO_COVERAGE: 0x809E;\n readonly SAMPLE_COVERAGE: 0x80A0;\n readonly NO_ERROR: 0;\n readonly INVALID_ENUM: 0x0500;\n readonly INVALID_VALUE: 0x0501;\n readonly INVALID_OPERATION: 0x0502;\n readonly OUT_OF_MEMORY: 0x0505;\n readonly CW: 0x0900;\n readonly CCW: 0x0901;\n readonly LINE_WIDTH: 0x0B21;\n readonly ALIASED_POINT_SIZE_RANGE: 0x846D;\n readonly ALIASED_LINE_WIDTH_RANGE: 0x846E;\n readonly CULL_FACE_MODE: 0x0B45;\n readonly FRONT_FACE: 0x0B46;\n readonly DEPTH_RANGE: 0x0B70;\n readonly DEPTH_WRITEMASK: 0x0B72;\n readonly DEPTH_CLEAR_VALUE: 0x0B73;\n readonly DEPTH_FUNC: 0x0B74;\n readonly STENCIL_CLEAR_VALUE: 0x0B91;\n readonly STENCIL_FUNC: 0x0B92;\n readonly STENCIL_FAIL: 0x0B94;\n readonly STENCIL_PASS_DEPTH_FAIL: 0x0B95;\n readonly STENCIL_PASS_DEPTH_PASS: 0x0B96;\n readonly STENCIL_REF: 0x0B97;\n readonly STENCIL_VALUE_MASK: 0x0B93;\n readonly STENCIL_WRITEMASK: 0x0B98;\n readonly STENCIL_BACK_FUNC: 0x8800;\n readonly STENCIL_BACK_FAIL: 0x8801;\n readonly STENCIL_BACK_PASS_DEPTH_FAIL: 0x8802;\n readonly STENCIL_BACK_PASS_DEPTH_PASS: 0x8803;\n readonly STENCIL_BACK_REF: 0x8CA3;\n readonly STENCIL_BACK_VALUE_MASK: 0x8CA4;\n readonly STENCIL_BACK_WRITEMASK: 0x8CA5;\n readonly VIEWPORT: 0x0BA2;\n readonly SCISSOR_BOX: 0x0C10;\n readonly COLOR_CLEAR_VALUE: 0x0C22;\n readonly COLOR_WRITEMASK: 0x0C23;\n readonly UNPACK_ALIGNMENT: 0x0CF5;\n readonly PACK_ALIGNMENT: 0x0D05;\n readonly MAX_TEXTURE_SIZE: 0x0D33;\n readonly MAX_VIEWPORT_DIMS: 0x0D3A;\n readonly SUBPIXEL_BITS: 0x0D50;\n readonly RED_BITS: 0x0D52;\n readonly GREEN_BITS: 0x0D53;\n readonly BLUE_BITS: 0x0D54;\n readonly ALPHA_BITS: 0x0D55;\n readonly DEPTH_BITS: 0x0D56;\n readonly STENCIL_BITS: 0x0D57;\n readonly POLYGON_OFFSET_UNITS: 0x2A00;\n readonly POLYGON_OFFSET_FACTOR: 0x8038;\n readonly TEXTURE_BINDING_2D: 0x8069;\n readonly SAMPLE_BUFFERS: 0x80A8;\n readonly SAMPLES: 0x80A9;\n readonly SAMPLE_COVERAGE_VALUE: 0x80AA;\n readonly SAMPLE_COVERAGE_INVERT: 0x80AB;\n readonly COMPRESSED_TEXTURE_FORMATS: 0x86A3;\n readonly DONT_CARE: 0x1100;\n readonly FASTEST: 0x1101;\n readonly NICEST: 0x1102;\n readonly GENERATE_MIPMAP_HINT: 0x8192;\n readonly BYTE: 0x1400;\n readonly UNSIGNED_BYTE: 0x1401;\n readonly SHORT: 0x1402;\n readonly UNSIGNED_SHORT: 0x1403;\n readonly INT: 0x1404;\n readonly UNSIGNED_INT: 0x1405;\n readonly FLOAT: 0x1406;\n readonly DEPTH_COMPONENT: 0x1902;\n readonly ALPHA: 0x1906;\n readonly RGB: 0x1907;\n readonly RGBA: 0x1908;\n readonly LUMINANCE: 0x1909;\n readonly LUMINANCE_ALPHA: 0x190A;\n readonly UNSIGNED_SHORT_4_4_4_4: 0x8033;\n readonly UNSIGNED_SHORT_5_5_5_1: 0x8034;\n readonly UNSIGNED_SHORT_5_6_5: 0x8363;\n readonly FRAGMENT_SHADER: 0x8B30;\n readonly VERTEX_SHADER: 0x8B31;\n readonly MAX_VERTEX_ATTRIBS: 0x8869;\n readonly MAX_VERTEX_UNIFORM_VECTORS: 0x8DFB;\n readonly MAX_VARYING_VECTORS: 0x8DFC;\n readonly MAX_COMBINED_TEXTURE_IMAGE_UNITS: 0x8B4D;\n readonly MAX_VERTEX_TEXTURE_IMAGE_UNITS: 0x8B4C;\n readonly MAX_TEXTURE_IMAGE_UNITS: 0x8872;\n readonly MAX_FRAGMENT_UNIFORM_VECTORS: 0x8DFD;\n readonly SHADER_TYPE: 0x8B4F;\n readonly DELETE_STATUS: 0x8B80;\n readonly LINK_STATUS: 0x8B82;\n readonly VALIDATE_STATUS: 0x8B83;\n readonly ATTACHED_SHADERS: 0x8B85;\n readonly ACTIVE_UNIFORMS: 0x8B86;\n readonly ACTIVE_ATTRIBUTES: 0x8B89;\n readonly SHADING_LANGUAGE_VERSION: 0x8B8C;\n readonly CURRENT_PROGRAM: 0x8B8D;\n readonly NEVER: 0x0200;\n readonly LESS: 0x0201;\n readonly EQUAL: 0x0202;\n readonly LEQUAL: 0x0203;\n readonly GREATER: 0x0204;\n readonly NOTEQUAL: 0x0205;\n readonly GEQUAL: 0x0206;\n readonly ALWAYS: 0x0207;\n readonly KEEP: 0x1E00;\n readonly REPLACE: 0x1E01;\n readonly INCR: 0x1E02;\n readonly DECR: 0x1E03;\n readonly INVERT: 0x150A;\n readonly INCR_WRAP: 0x8507;\n readonly DECR_WRAP: 0x8508;\n readonly VENDOR: 0x1F00;\n readonly RENDERER: 0x1F01;\n readonly VERSION: 0x1F02;\n readonly NEAREST: 0x2600;\n readonly LINEAR: 0x2601;\n readonly NEAREST_MIPMAP_NEAREST: 0x2700;\n readonly LINEAR_MIPMAP_NEAREST: 0x2701;\n readonly NEAREST_MIPMAP_LINEAR: 0x2702;\n readonly LINEAR_MIPMAP_LINEAR: 0x2703;\n readonly TEXTURE_MAG_FILTER: 0x2800;\n readonly TEXTURE_MIN_FILTER: 0x2801;\n readonly TEXTURE_WRAP_S: 0x2802;\n readonly TEXTURE_WRAP_T: 0x2803;\n readonly TEXTURE_2D: 0x0DE1;\n readonly TEXTURE: 0x1702;\n readonly TEXTURE_CUBE_MAP: 0x8513;\n readonly TEXTURE_BINDING_CUBE_MAP: 0x8514;\n readonly TEXTURE_CUBE_MAP_POSITIVE_X: 0x8515;\n readonly TEXTURE_CUBE_MAP_NEGATIVE_X: 0x8516;\n readonly TEXTURE_CUBE_MAP_POSITIVE_Y: 0x8517;\n readonly TEXTURE_CUBE_MAP_NEGATIVE_Y: 0x8518;\n readonly TEXTURE_CUBE_MAP_POSITIVE_Z: 0x8519;\n readonly TEXTURE_CUBE_MAP_NEGATIVE_Z: 0x851A;\n readonly MAX_CUBE_MAP_TEXTURE_SIZE: 0x851C;\n readonly TEXTURE0: 0x84C0;\n readonly TEXTURE1: 0x84C1;\n readonly TEXTURE2: 0x84C2;\n readonly TEXTURE3: 0x84C3;\n readonly TEXTURE4: 0x84C4;\n readonly TEXTURE5: 0x84C5;\n readonly TEXTURE6: 0x84C6;\n readonly TEXTURE7: 0x84C7;\n readonly TEXTURE8: 0x84C8;\n readonly TEXTURE9: 0x84C9;\n readonly TEXTURE10: 0x84CA;\n readonly TEXTURE11: 0x84CB;\n readonly TEXTURE12: 0x84CC;\n readonly TEXTURE13: 0x84CD;\n readonly TEXTURE14: 0x84CE;\n readonly TEXTURE15: 0x84CF;\n readonly TEXTURE16: 0x84D0;\n readonly TEXTURE17: 0x84D1;\n readonly TEXTURE18: 0x84D2;\n readonly TEXTURE19: 0x84D3;\n readonly TEXTURE20: 0x84D4;\n readonly TEXTURE21: 0x84D5;\n readonly TEXTURE22: 0x84D6;\n readonly TEXTURE23: 0x84D7;\n readonly TEXTURE24: 0x84D8;\n readonly TEXTURE25: 0x84D9;\n readonly TEXTURE26: 0x84DA;\n readonly TEXTURE27: 0x84DB;\n readonly TEXTURE28: 0x84DC;\n readonly TEXTURE29: 0x84DD;\n readonly TEXTURE30: 0x84DE;\n readonly TEXTURE31: 0x84DF;\n readonly ACTIVE_TEXTURE: 0x84E0;\n readonly REPEAT: 0x2901;\n readonly CLAMP_TO_EDGE: 0x812F;\n readonly MIRRORED_REPEAT: 0x8370;\n readonly FLOAT_VEC2: 0x8B50;\n readonly FLOAT_VEC3: 0x8B51;\n readonly FLOAT_VEC4: 0x8B52;\n readonly INT_VEC2: 0x8B53;\n readonly INT_VEC3: 0x8B54;\n readonly INT_VEC4: 0x8B55;\n readonly BOOL: 0x8B56;\n readonly BOOL_VEC2: 0x8B57;\n readonly BOOL_VEC3: 0x8B58;\n readonly BOOL_VEC4: 0x8B59;\n readonly FLOAT_MAT2: 0x8B5A;\n readonly FLOAT_MAT3: 0x8B5B;\n readonly FLOAT_MAT4: 0x8B5C;\n readonly SAMPLER_2D: 0x8B5E;\n readonly SAMPLER_CUBE: 0x8B60;\n readonly VERTEX_ATTRIB_ARRAY_ENABLED: 0x8622;\n readonly VERTEX_ATTRIB_ARRAY_SIZE: 0x8623;\n readonly VERTEX_ATTRIB_ARRAY_STRIDE: 0x8624;\n readonly VERTEX_ATTRIB_ARRAY_TYPE: 0x8625;\n readonly VERTEX_ATTRIB_ARRAY_NORMALIZED: 0x886A;\n readonly VERTEX_ATTRIB_ARRAY_POINTER: 0x8645;\n readonly VERTEX_ATTRIB_ARRAY_BUFFER_BINDING: 0x889F;\n readonly IMPLEMENTATION_COLOR_READ_TYPE: 0x8B9A;\n readonly IMPLEMENTATION_COLOR_READ_FORMAT: 0x8B9B;\n readonly COMPILE_STATUS: 0x8B81;\n readonly LOW_FLOAT: 0x8DF0;\n readonly MEDIUM_FLOAT: 0x8DF1;\n readonly HIGH_FLOAT: 0x8DF2;\n readonly LOW_INT: 0x8DF3;\n readonly MEDIUM_INT: 0x8DF4;\n readonly HIGH_INT: 0x8DF5;\n readonly FRAMEBUFFER: 0x8D40;\n readonly RENDERBUFFER: 0x8D41;\n readonly RGBA4: 0x8056;\n readonly RGB5_A1: 0x8057;\n readonly RGBA8: 0x8058;\n readonly RGB565: 0x8D62;\n readonly DEPTH_COMPONENT16: 0x81A5;\n readonly STENCIL_INDEX8: 0x8D48;\n readonly DEPTH_STENCIL: 0x84F9;\n readonly RENDERBUFFER_WIDTH: 0x8D42;\n readonly RENDERBUFFER_HEIGHT: 0x8D43;\n readonly RENDERBUFFER_INTERNAL_FORMAT: 0x8D44;\n readonly RENDERBUFFER_RED_SIZE: 0x8D50;\n readonly RENDERBUFFER_GREEN_SIZE: 0x8D51;\n readonly RENDERBUFFER_BLUE_SIZE: 0x8D52;\n readonly RENDERBUFFER_ALPHA_SIZE: 0x8D53;\n readonly RENDERBUFFER_DEPTH_SIZE: 0x8D54;\n readonly RENDERBUFFER_STENCIL_SIZE: 0x8D55;\n readonly FRAMEBUFFER_ATTACHMENT_OBJECT_TYPE: 0x8CD0;\n readonly FRAMEBUFFER_ATTACHMENT_OBJECT_NAME: 0x8CD1;\n readonly FRAMEBUFFER_ATTACHMENT_TEXTURE_LEVEL: 0x8CD2;\n readonly FRAMEBUFFER_ATTACHMENT_TEXTURE_CUBE_MAP_FACE: 0x8CD3;\n readonly COLOR_ATTACHMENT0: 0x8CE0;\n readonly DEPTH_ATTACHMENT: 0x8D00;\n readonly STENCIL_ATTACHMENT: 0x8D20;\n readonly DEPTH_STENCIL_ATTACHMENT: 0x821A;\n readonly NONE: 0;\n readonly FRAMEBUFFER_COMPLETE: 0x8CD5;\n readonly FRAMEBUFFER_INCOMPLETE_ATTACHMENT: 0x8CD6;\n readonly FRAMEBUFFER_INCOMPLETE_MISSING_ATTACHMENT: 0x8CD7;\n readonly FRAMEBUFFER_INCOMPLETE_DIMENSIONS: 0x8CD9;\n readonly FRAMEBUFFER_UNSUPPORTED: 0x8CDD;\n readonly FRAMEBUFFER_BINDING: 0x8CA6;\n readonly RENDERBUFFER_BINDING: 0x8CA7;\n readonly MAX_RENDERBUFFER_SIZE: 0x84E8;\n readonly INVALID_FRAMEBUFFER_OPERATION: 0x0506;\n readonly UNPACK_FLIP_Y_WEBGL: 0x9240;\n readonly UNPACK_PREMULTIPLY_ALPHA_WEBGL: 0x9241;\n readonly CONTEXT_LOST_WEBGL: 0x9242;\n readonly UNPACK_COLORSPACE_CONVERSION_WEBGL: 0x9243;\n readonly BROWSER_DEFAULT_WEBGL: 0x9244;\n};\n\ninterface WebGL2RenderingContextBase {\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/beginQuery) */\n beginQuery(target: GLenum, query: WebGLQuery): void;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/beginTransformFeedback) */\n beginTransformFeedback(primitiveMode: GLenum): void;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/bindBufferBase) */\n bindBufferBase(target: GLenum, index: GLuint, buffer: WebGLBuffer | null): void;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/bindBufferRange) */\n bindBufferRange(target: GLenum, index: GLuint, buffer: WebGLBuffer | null, offset: GLintptr, size: GLsizeiptr): void;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/bindSampler) */\n bindSampler(unit: GLuint, sampler: WebGLSampler | null): void;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/bindTransformFeedback) */\n bindTransformFeedback(target: GLenum, tf: WebGLTransformFeedback | null): void;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/bindVertexArray) */\n bindVertexArray(array: WebGLVertexArrayObject | null): void;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/blitFramebuffer) */\n blitFramebuffer(srcX0: GLint, srcY0: GLint, srcX1: GLint, srcY1: GLint, dstX0: GLint, dstY0: GLint, dstX1: GLint, dstY1: GLint, mask: GLbitfield, filter: GLenum): void;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/clearBuffer) */\n clearBufferfi(buffer: GLenum, drawbuffer: GLint, depth: GLfloat, stencil: GLint): void;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/clearBuffer) */\n clearBufferfv(buffer: GLenum, drawbuffer: GLint, values: Float32List, srcOffset?: number): void;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/clearBuffer) */\n clearBufferiv(buffer: GLenum, drawbuffer: GLint, values: Int32List, srcOffset?: number): void;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/clearBuffer) */\n clearBufferuiv(buffer: GLenum, drawbuffer: GLint, values: Uint32List, srcOffset?: number): void;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/clientWaitSync) */\n clientWaitSync(sync: WebGLSync, flags: GLbitfield, timeout: GLuint64): GLenum;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/compressedTexImage3D) */\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<ArrayBufferLike>, srcOffset?: number, srcLengthOverride?: GLuint): void;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/compressedTexSubImage3D) */\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<ArrayBufferLike>, srcOffset?: number, srcLengthOverride?: GLuint): void;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/copyBufferSubData) */\n copyBufferSubData(readTarget: GLenum, writeTarget: GLenum, readOffset: GLintptr, writeOffset: GLintptr, size: GLsizeiptr): void;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/copyTexSubImage3D) */\n copyTexSubImage3D(target: GLenum, level: GLint, xoffset: GLint, yoffset: GLint, zoffset: GLint, x: GLint, y: GLint, width: GLsizei, height: GLsizei): void;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/createQuery) */\n createQuery(): WebGLQuery;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/createSampler) */\n createSampler(): WebGLSampler;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/createTransformFeedback) */\n createTransformFeedback(): WebGLTransformFeedback;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/createVertexArray) */\n createVertexArray(): WebGLVertexArrayObject;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/deleteQuery) */\n deleteQuery(query: WebGLQuery | null): void;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/deleteSampler) */\n deleteSampler(sampler: WebGLSampler | null): void;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/deleteSync) */\n deleteSync(sync: WebGLSync | null): void;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/deleteTransformFeedback) */\n deleteTransformFeedback(tf: WebGLTransformFeedback | null): void;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/deleteVertexArray) */\n deleteVertexArray(vertexArray: WebGLVertexArrayObject | null): void;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/drawArraysInstanced) */\n drawArraysInstanced(mode: GLenum, first: GLint, count: GLsizei, instanceCount: GLsizei): void;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/drawBuffers) */\n drawBuffers(buffers: GLenum[]): void;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/drawElementsInstanced) */\n drawElementsInstanced(mode: GLenum, count: GLsizei, type: GLenum, offset: GLintptr, instanceCount: GLsizei): void;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/drawRangeElements) */\n drawRangeElements(mode: GLenum, start: GLuint, end: GLuint, count: GLsizei, type: GLenum, offset: GLintptr): void;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/endQuery) */\n endQuery(target: GLenum): void;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/endTransformFeedback) */\n endTransformFeedback(): void;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/fenceSync) */\n fenceSync(condition: GLenum, flags: GLbitfield): WebGLSync | null;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/framebufferTextureLayer) */\n framebufferTextureLayer(target: GLenum, attachment: GLenum, texture: WebGLTexture | null, level: GLint, layer: GLint): void;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/getActiveUniformBlockName) */\n getActiveUniformBlockName(program: WebGLProgram, uniformBlockIndex: GLuint): string | null;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/getActiveUniformBlockParameter) */\n getActiveUniformBlockParameter(program: WebGLProgram, uniformBlockIndex: GLuint, pname: GLenum): any;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/getActiveUniforms) */\n getActiveUniforms(program: WebGLProgram, uniformIndices: GLuint[], pname: GLenum): any;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/getBufferSubData) */\n getBufferSubData(target: GLenum, srcByteOffset: GLintptr, dstBuffer: ArrayBufferView<ArrayBufferLike>, dstOffset?: number, length?: GLuint): void;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/getFragDataLocation) */\n getFragDataLocation(program: WebGLProgram, name: string): GLint;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/getIndexedParameter) */\n getIndexedParameter(target: GLenum, index: GLuint): any;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/getInternalformatParameter) */\n getInternalformatParameter(target: GLenum, internalformat: GLenum, pname: GLenum): any;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/getQuery) */\n getQuery(target: GLenum, pname: GLenum): WebGLQuery | null;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/getQueryParameter) */\n getQueryParameter(query: WebGLQuery, pname: GLenum): any;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/getSamplerParameter) */\n getSamplerParameter(sampler: WebGLSampler, pname: GLenum): any;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/getSyncParameter) */\n getSyncParameter(sync: WebGLSync, pname: GLenum): any;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/getTransformFeedbackVarying) */\n getTransformFeedbackVarying(program: WebGLProgram, index: GLuint): WebGLActiveInfo | null;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/getUniformBlockIndex) */\n getUniformBlockIndex(program: WebGLProgram, uniformBlockName: string): GLuint;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/getUniformIndices) */\n getUniformIndices(program: WebGLProgram, uniformNames: string[]): GLuint[] | null;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/invalidateFramebuffer) */\n invalidateFramebuffer(target: GLenum, attachments: GLenum[]): void;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/invalidateSubFramebuffer) */\n invalidateSubFramebuffer(target: GLenum, attachments: GLenum[], x: GLint, y: GLint, width: GLsizei, height: GLsizei): void;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/isQuery) */\n isQuery(query: WebGLQuery | null): GLboolean;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/isSampler) */\n isSampler(sampler: WebGLSampler | null): GLboolean;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/isSync) */\n isSync(sync: WebGLSync | null): GLboolean;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/isTransformFeedback) */\n isTransformFeedback(tf: WebGLTransformFeedback | null): GLboolean;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/isVertexArray) */\n isVertexArray(vertexArray: WebGLVertexArrayObject | null): GLboolean;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/pauseTransformFeedback) */\n pauseTransformFeedback(): void;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/readBuffer) */\n readBuffer(src: GLenum): void;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/renderbufferStorageMultisample) */\n renderbufferStorageMultisample(target: GLenum, samples: GLsizei, internalformat: GLenum, width: GLsizei, height: GLsizei): void;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/resumeTransformFeedback) */\n resumeTransformFeedback(): void;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/samplerParameter) */\n samplerParameterf(sampler: WebGLSampler, pname: GLenum, param: GLfloat): void;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/samplerParameter) */\n samplerParameteri(sampler: WebGLSampler, pname: GLenum, param: GLint): void;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/texImage3D) */\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<ArrayBufferLike> | null): void;\n texImage3D(target: GLenum, level: GLint, internalformat: GLint, width: GLsizei, height: GLsizei, depth: GLsizei, border: GLint, format: GLenum, type: GLenum, srcData: ArrayBufferView<ArrayBufferLike>, srcOffset: number): void;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/texStorage2D) */\n texStorage2D(target: GLenum, levels: GLsizei, internalformat: GLenum, width: GLsizei, height: GLsizei): void;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/texStorage3D) */\n texStorage3D(target: GLenum, levels: GLsizei, internalformat: GLenum, width: GLsizei, height: GLsizei, depth: GLsizei): void;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/texSubImage3D) */\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<ArrayBufferLike> | null, srcOffset?: number): void;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/transformFeedbackVaryings) */\n transformFeedbackVaryings(program: WebGLProgram, varyings: string[], bufferMode: GLenum): void;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/uniform) */\n uniform1ui(location: WebGLUniformLocation | null, v0: GLuint): void;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/uniform) */\n uniform1uiv(location: WebGLUniformLocation | null, data: Uint32List, srcOffset?: number, srcLength?: GLuint): void;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/uniform) */\n uniform2ui(location: WebGLUniformLocation | null, v0: GLuint, v1: GLuint): void;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/uniform) */\n uniform2uiv(location: WebGLUniformLocation | null, data: Uint32List, srcOffset?: number, srcLength?: GLuint): void;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/uniform) */\n uniform3ui(location: WebGLUniformLocation | null, v0: GLuint, v1: GLuint, v2: GLuint): void;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/uniform) */\n uniform3uiv(location: WebGLUniformLocation | null, data: Uint32List, srcOffset?: number, srcLength?: GLuint): void;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/uniform) */\n uniform4ui(location: WebGLUniformLocation | null, v0: GLuint, v1: GLuint, v2: GLuint, v3: GLuint): void;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/uniform) */\n uniform4uiv(location: WebGLUniformLocation | null, data: Uint32List, srcOffset?: number, srcLength?: GLuint): void;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/uniformBlockBinding) */\n uniformBlockBinding(program: WebGLProgram, uniformBlockIndex: GLuint, uniformBlockBinding: GLuint): void;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/uniformMatrix) */\n uniformMatrix2x3fv(location: WebGLUniformLocation | null, transpose: GLboolean, data: Float32List, srcOffset?: number, srcLength?: GLuint): void;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/uniformMatrix) */\n uniformMatrix2x4fv(location: WebGLUniformLocation | null, transpose: GLboolean, data: Float32List, srcOffset?: number, srcLength?: GLuint): void;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/uniformMatrix) */\n uniformMatrix3x2fv(location: WebGLUniformLocation | null, transpose: GLboolean, data: Float32List, srcOffset?: number, srcLength?: GLuint): void;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/uniformMatrix) */\n uniformMatrix3x4fv(location: WebGLUniformLocation | null, transpose: GLboolean, data: Float32List, srcOffset?: number, srcLength?: GLuint): void;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/uniformMatrix) */\n uniformMatrix4x2fv(location: WebGLUniformLocation | null, transpose: GLboolean, data: Float32List, srcOffset?: number, srcLength?: GLuint): void;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/uniformMatrix) */\n uniformMatrix4x3fv(location: WebGLUniformLocation | null, transpose: GLboolean, data: Float32List, srcOffset?: number, srcLength?: GLuint): void;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/vertexAttribDivisor) */\n vertexAttribDivisor(index: GLuint, divisor: GLuint): void;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/vertexAttribI) */\n vertexAttribI4i(index: GLuint, x: GLint, y: GLint, z: GLint, w: GLint): void;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/vertexAttribI) */\n vertexAttribI4iv(index: GLuint, values: Int32List): void;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/vertexAttribI) */\n vertexAttribI4ui(index: GLuint, x: GLuint, y: GLuint, z: GLuint, w: GLuint): void;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/vertexAttribI) */\n vertexAttribI4uiv(index: GLuint, values: Uint32List): void;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/vertexAttribIPointer) */\n vertexAttribIPointer(index: GLuint, size: GLint, type: GLenum, stride: GLsizei, offset: GLintptr): void;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/waitSync) */\n waitSync(sync: WebGLSync, flags: GLbitfield, timeout: GLint64): void;\n readonly READ_BUFFER: 0x0C02;\n readonly UNPACK_ROW_LENGTH: 0x0CF2;\n readonly UNPACK_SKIP_ROWS: 0x0CF3;\n readonly UNPACK_SKIP_PIXELS: 0x0CF4;\n readonly PACK_ROW_LENGTH: 0x0D02;\n readonly PACK_SKIP_ROWS: 0x0D03;\n readonly PACK_SKIP_PIXELS: 0x0D04;\n readonly COLOR: 0x1800;\n readonly DEPTH: 0x1801;\n readonly STENCIL: 0x1802;\n readonly RED: 0x1903;\n readonly RGB8: 0x8051;\n readonly RGB10_A2: 0x8059;\n readonly TEXTURE_BINDING_3D: 0x806A;\n readonly UNPACK_SKIP_IMAGES: 0x806D;\n readonly UNPACK_IMAGE_HEIGHT: 0x806E;\n readonly TEXTURE_3D: 0x806F;\n readonly TEXTURE_WRAP_R: 0x8072;\n readonly MAX_3D_TEXTURE_SIZE: 0x8073;\n readonly UNSIGNED_INT_2_10_10_10_REV: 0x8368;\n readonly MAX_ELEMENTS_VERTICES: 0x80E8;\n readonly MAX_ELEMENTS_INDICES: 0x80E9;\n readonly TEXTURE_MIN_LOD: 0x813A;\n readonly TEXTURE_MAX_LOD: 0x813B;\n readonly TEXTURE_BASE_LEVEL: 0x813C;\n readonly TEXTURE_MAX_LEVEL: 0x813D;\n readonly MIN: 0x8007;\n readonly MAX: 0x8008;\n readonly DEPTH_COMPONENT24: 0x81A6;\n readonly MAX_TEXTURE_LOD_BIAS: 0x84FD;\n readonly TEXTURE_COMPARE_MODE: 0x884C;\n readonly TEXTURE_COMPARE_FUNC: 0x884D;\n readonly CURRENT_QUERY: 0x8865;\n readonly QUERY_RESULT: 0x8866;\n readonly QUERY_RESULT_AVAILABLE: 0x8867;\n readonly STREAM_READ: 0x88E1;\n readonly STREAM_COPY: 0x88E2;\n readonly STATIC_READ: 0x88E5;\n readonly STATIC_COPY: 0x88E6;\n readonly DYNAMIC_READ: 0x88E9;\n readonly DYNAMIC_COPY: 0x88EA;\n readonly MAX_DRAW_BUFFERS: 0x8824;\n readonly DRAW_BUFFER0: 0x8825;\n readonly DRAW_BUFFER1: 0x8826;\n readonly DRAW_BUFFER2: 0x8827;\n readonly DRAW_BUFFER3: 0x8828;\n readonly DRAW_BUFFER4: 0x8829;\n readonly DRAW_BUFFER5: 0x882A;\n readonly DRAW_BUFFER6: 0x882B;\n readonly DRAW_BUFFER7: 0x882C;\n readonly DRAW_BUFFER8: 0x882D;\n readonly DRAW_BUFFER9: 0x882E;\n readonly DRAW_BUFFER10: 0x882F;\n readonly DRAW_BUFFER11: 0x8830;\n readonly DRAW_BUFFER12: 0x8831;\n readonly DRAW_BUFFER13: 0x8832;\n readonly DRAW_BUFFER14: 0x8833;\n readonly DRAW_BUFFER15: 0x8834;\n readonly MAX_FRAGMENT_UNIFORM_COMPONENTS: 0x8B49;\n readonly MAX_VERTEX_UNIFORM_COMPONENTS: 0x8B4A;\n readonly SAMPLER_3D: 0x8B5F;\n readonly SAMPLER_2D_SHADOW: 0x8B62;\n readonly FRAGMENT_SHADER_DERIVATIVE_HINT: 0x8B8B;\n readonly PIXEL_PACK_BUFFER: 0x88EB;\n readonly PIXEL_UNPACK_BUFFER: 0x88EC;\n readonly PIXEL_PACK_BUFFER_BINDING: 0x88ED;\n readonly PIXEL_UNPACK_BUFFER_BINDING: 0x88EF;\n readonly FLOAT_MAT2x3: 0x8B65;\n readonly FLOAT_MAT2x4: 0x8B66;\n readonly FLOAT_MAT3x2: 0x8B67;\n readonly FLOAT_MAT3x4: 0x8B68;\n readonly FLOAT_MAT4x2: 0x8B69;\n readonly FLOAT_MAT4x3: 0x8B6A;\n readonly SRGB: 0x8C40;\n readonly SRGB8: 0x8C41;\n readonly SRGB8_ALPHA8: 0x8C43;\n readonly COMPARE_REF_TO_TEXTURE: 0x884E;\n readonly RGBA32F: 0x8814;\n readonly RGB32F: 0x8815;\n readonly RGBA16F: 0x881A;\n readonly RGB16F: 0x881B;\n readonly VERTEX_ATTRIB_ARRAY_INTEGER: 0x88FD;\n readonly MAX_ARRAY_TEXTURE_LAYERS: 0x88FF;\n readonly MIN_PROGRAM_TEXEL_OFFSET: 0x8904;\n readonly MAX_PROGRAM_TEXEL_OFFSET: 0x8905;\n readonly MAX_VARYING_COMPONENTS: 0x8B4B;\n readonly TEXTURE_2D_ARRAY: 0x8C1A;\n readonly TEXTURE_BINDING_2D_ARRAY: 0x8C1D;\n readonly R11F_G11F_B10F: 0x8C3A;\n readonly UNSIGNED_INT_10F_11F_11F_REV: 0x8C3B;\n readonly RGB9_E5: 0x8C3D;\n readonly UNSIGNED_INT_5_9_9_9_REV: 0x8C3E;\n readonly TRANSFORM_FEEDBACK_BUFFER_MODE: 0x8C7F;\n readonly MAX_TRANSFORM_FEEDBACK_SEPARATE_COMPONENTS: 0x8C80;\n readonly TRANSFORM_FEEDBACK_VARYINGS: 0x8C83;\n readonly TRANSFORM_FEEDBACK_BUFFER_START: 0x8C84;\n readonly TRANSFORM_FEEDBACK_BUFFER_SIZE: 0x8C85;\n readonly TRANSFORM_FEEDBACK_PRIMITIVES_WRITTEN: 0x8C88;\n readonly RASTERIZER_DISCARD: 0x8C89;\n readonly MAX_TRANSFORM_FEEDBACK_INTERLEAVED_COMPONENTS: 0x8C8A;\n readonly MAX_TRANSFORM_FEEDBACK_SEPARATE_ATTRIBS: 0x8C8B;\n readonly INTERLEAVED_ATTRIBS: 0x8C8C;\n readonly SEPARATE_ATTRIBS: 0x8C8D;\n readonly TRANSFORM_FEEDBACK_BUFFER: 0x8C8E;\n readonly TRANSFORM_FEEDBACK_BUFFER_BINDING: 0x8C8F;\n readonly RGBA32UI: 0x8D70;\n readonly RGB32UI: 0x8D71;\n readonly RGBA16UI: 0x8D76;\n readonly RGB16UI: 0x8D77;\n readonly RGBA8UI: 0x8D7C;\n readonly RGB8UI: 0x8D7D;\n readonly RGBA32I: 0x8D82;\n readonly RGB32I: 0x8D83;\n readonly RGBA16I: 0x8D88;\n readonly RGB16I: 0x8D89;\n readonly RGBA8I: 0x8D8E;\n readonly RGB8I: 0x8D8F;\n readonly RED_INTEGER: 0x8D94;\n readonly RGB_INTEGER: 0x8D98;\n readonly RGBA_INTEGER: 0x8D99;\n readonly SAMPLER_2D_ARRAY: 0x8DC1;\n readonly SAMPLER_2D_ARRAY_SHADOW: 0x8DC4;\n readonly SAMPLER_CUBE_SHADOW: 0x8DC5;\n readonly UNSIGNED_INT_VEC2: 0x8DC6;\n readonly UNSIGNED_INT_VEC3: 0x8DC7;\n readonly UNSIGNED_INT_VEC4: 0x8DC8;\n readonly INT_SAMPLER_2D: 0x8DCA;\n readonly INT_SAMPLER_3D: 0x8DCB;\n readonly INT_SAMPLER_CUBE: 0x8DCC;\n readonly INT_SAMPLER_2D_ARRAY: 0x8DCF;\n readonly UNSIGNED_INT_SAMPLER_2D: 0x8DD2;\n readonly UNSIGNED_INT_SAMPLER_3D: 0x8DD3;\n readonly UNSIGNED_INT_SAMPLER_CUBE: 0x8DD4;\n readonly UNSIGNED_INT_SAMPLER_2D_ARRAY: 0x8DD7;\n readonly DEPTH_COMPONENT32F: 0x8CAC;\n readonly DEPTH32F_STENCIL8: 0x8CAD;\n readonly FLOAT_32_UNSIGNED_INT_24_8_REV: 0x8DAD;\n readonly FRAMEBUFFER_ATTACHMENT_COLOR_ENCODING: 0x8210;\n readonly FRAMEBUFFER_ATTACHMENT_COMPONENT_TYPE: 0x8211;\n readonly FRAMEBUFFER_ATTACHMENT_RED_SIZE: 0x8212;\n readonly FRAMEBUFFER_ATTACHMENT_GREEN_SIZE: 0x8213;\n readonly FRAMEBUFFER_ATTACHMENT_BLUE_SIZE: 0x8214;\n readonly FRAMEBUFFER_ATTACHMENT_ALPHA_SIZE: 0x8215;\n readonly FRAMEBUFFER_ATTACHMENT_DEPTH_SIZE: 0x8216;\n readonly FRAMEBUFFER_ATTACHMENT_STENCIL_SIZE: 0x8217;\n readonly FRAMEBUFFER_DEFAULT: 0x8218;\n readonly UNSIGNED_INT_24_8: 0x84FA;\n readonly DEPTH24_STENCIL8: 0x88F0;\n readonly UNSIGNED_NORMALIZED: 0x8C17;\n readonly DRAW_FRAMEBUFFER_BINDING: 0x8CA6;\n readonly READ_FRAMEBUFFER: 0x8CA8;\n readonly DRAW_FRAMEBUFFER: 0x8CA9;\n readonly READ_FRAMEBUFFER_BINDING: 0x8CAA;\n readonly RENDERBUFFER_SAMPLES: 0x8CAB;\n readonly FRAMEBUFFER_ATTACHMENT_TEXTURE_LAYER: 0x8CD4;\n readonly MAX_COLOR_ATTACHMENTS: 0x8CDF;\n readonly COLOR_ATTACHMENT1: 0x8CE1;\n readonly COLOR_ATTACHMENT2: 0x8CE2;\n readonly COLOR_ATTACHMENT3: 0x8CE3;\n readonly COLOR_ATTACHMENT4: 0x8CE4;\n readonly COLOR_ATTACHMENT5: 0x8CE5;\n readonly COLOR_ATTACHMENT6: 0x8CE6;\n readonly COLOR_ATTACHMENT7: 0x8CE7;\n readonly COLOR_ATTACHMENT8: 0x8CE8;\n readonly COLOR_ATTACHMENT9: 0x8CE9;\n readonly COLOR_ATTACHMENT10: 0x8CEA;\n readonly COLOR_ATTACHMENT11: 0x8CEB;\n readonly COLOR_ATTACHMENT12: 0x8CEC;\n readonly COLOR_ATTACHMENT13: 0x8CED;\n readonly COLOR_ATTACHMENT14: 0x8CEE;\n readonly COLOR_ATTACHMENT15: 0x8CEF;\n readonly FRAMEBUFFER_INCOMPLETE_MULTISAMPLE: 0x8D56;\n readonly MAX_SAMPLES: 0x8D57;\n readonly HALF_FLOAT: 0x140B;\n readonly RG: 0x8227;\n readonly RG_INTEGER: 0x8228;\n readonly R8: 0x8229;\n readonly RG8: 0x822B;\n readonly R16F: 0x822D;\n readonly R32F: 0x822E;\n readonly RG16F: 0x822F;\n readonly RG32F: 0x8230;\n readonly R8I: 0x8231;\n readonly R8UI: 0x8232;\n readonly R16I: 0x8233;\n readonly R16UI: 0x8234;\n readonly R32I: 0x8235;\n readonly R32UI: 0x8236;\n readonly RG8I: 0x8237;\n readonly RG8UI: 0x8238;\n readonly RG16I: 0x8239;\n readonly RG16UI: 0x823A;\n readonly RG32I: 0x823B;\n readonly RG32UI: 0x823C;\n readonly VERTEX_ARRAY_BINDING: 0x85B5;\n readonly R8_SNORM: 0x8F94;\n readonly RG8_SNORM: 0x8F95;\n readonly RGB8_SNORM: 0x8F96;\n readonly RGBA8_SNORM: 0x8F97;\n readonly SIGNED_NORMALIZED: 0x8F9C;\n readonly COPY_READ_BUFFER: 0x8F36;\n readonly COPY_WRITE_BUFFER: 0x8F37;\n readonly COPY_READ_BUFFER_BINDING: 0x8F36;\n readonly COPY_WRITE_BUFFER_BINDING: 0x8F37;\n readonly UNIFORM_BUFFER: 0x8A11;\n readonly UNIFORM_BUFFER_BINDING: 0x8A28;\n readonly UNIFORM_BUFFER_START: 0x8A29;\n readonly UNIFORM_BUFFER_SIZE: 0x8A2A;\n readonly MAX_VERTEX_UNIFORM_BLOCKS: 0x8A2B;\n readonly MAX_FRAGMENT_UNIFORM_BLOCKS: 0x8A2D;\n readonly MAX_COMBINED_UNIFORM_BLOCKS: 0x8A2E;\n readonly MAX_UNIFORM_BUFFER_BINDINGS: 0x8A2F;\n readonly MAX_UNIFORM_BLOCK_SIZE: 0x8A30;\n readonly MAX_COMBINED_VERTEX_UNIFORM_COMPONENTS: 0x8A31;\n readonly MAX_COMBINED_FRAGMENT_UNIFORM_COMPONENTS: 0x8A33;\n readonly UNIFORM_BUFFER_OFFSET_ALIGNMENT: 0x8A34;\n readonly ACTIVE_UNIFORM_BLOCKS: 0x8A36;\n readonly UNIFORM_TYPE: 0x8A37;\n readonly UNIFORM_SIZE: 0x8A38;\n readonly UNIFORM_BLOCK_INDEX: 0x8A3A;\n readonly UNIFORM_OFFSET: 0x8A3B;\n readonly UNIFORM_ARRAY_STRIDE: 0x8A3C;\n readonly UNIFORM_MATRIX_STRIDE: 0x8A3D;\n readonly UNIFORM_IS_ROW_MAJOR: 0x8A3E;\n readonly UNIFORM_BLOCK_BINDING: 0x8A3F;\n readonly UNIFORM_BLOCK_DATA_SIZE: 0x8A40;\n readonly UNIFORM_BLOCK_ACTIVE_UNIFORMS: 0x8A42;\n readonly UNIFORM_BLOCK_ACTIVE_UNIFORM_INDICES: 0x8A43;\n readonly UNIFORM_BLOCK_REFERENCED_BY_VERTEX_SHADER: 0x8A44;\n readonly UNIFORM_BLOCK_REFERENCED_BY_FRAGMENT_SHADER: 0x8A46;\n readonly INVALID_INDEX: 0xFFFFFFFF;\n readonly MAX_VERTEX_OUTPUT_COMPONENTS: 0x9122;\n readonly MAX_FRAGMENT_INPUT_COMPONENTS: 0x9125;\n readonly MAX_SERVER_WAIT_TIMEOUT: 0x9111;\n readonly OBJECT_TYPE: 0x9112;\n readonly SYNC_CONDITION: 0x9113;\n readonly SYNC_STATUS: 0x9114;\n readonly SYNC_FLAGS: 0x9115;\n readonly SYNC_FENCE: 0x9116;\n readonly SYNC_GPU_COMMANDS_COMPLETE: 0x9117;\n readonly UNSIGNALED: 0x9118;\n readonly SIGNALED: 0x9119;\n readonly ALREADY_SIGNALED: 0x911A;\n readonly TIMEOUT_EXPIRED: 0x911B;\n readonly CONDITION_SATISFIED: 0x911C;\n readonly WAIT_FAILED: 0x911D;\n readonly SYNC_FLUSH_COMMANDS_BIT: 0x00000001;\n readonly VERTEX_ATTRIB_ARRAY_DIVISOR: 0x88FE;\n readonly ANY_SAMPLES_PASSED: 0x8C2F;\n readonly ANY_SAMPLES_PASSED_CONSERVATIVE: 0x8D6A;\n readonly SAMPLER_BINDING: 0x8919;\n readonly RGB10_A2UI: 0x906F;\n readonly INT_2_10_10_10_REV: 0x8D9F;\n readonly TRANSFORM_FEEDBACK: 0x8E22;\n readonly TRANSFORM_FEEDBACK_PAUSED: 0x8E23;\n readonly TRANSFORM_FEEDBACK_ACTIVE: 0x8E24;\n readonly TRANSFORM_FEEDBACK_BINDING: 0x8E25;\n readonly TEXTURE_IMMUTABLE_FORMAT: 0x912F;\n readonly MAX_ELEMENT_INDEX: 0x8D6B;\n readonly TEXTURE_IMMUTABLE_LEVELS: 0x82DF;\n readonly TIMEOUT_IGNORED: -1;\n readonly MAX_CLIENT_WAIT_TIMEOUT_WEBGL: 0x9247;\n}\n\ninterface WebGL2RenderingContextOverloads {\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/bufferData) */\n bufferData(target: GLenum, size: GLsizeiptr, usage: GLenum): void;\n bufferData(target: GLenum, srcData: AllowSharedBufferSource | null, usage: GLenum): void;\n bufferData(target: GLenum, srcData: ArrayBufferView<ArrayBufferLike>, usage: GLenum, srcOffset: number, length?: GLuint): void;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/bufferSubData) */\n bufferSubData(target: GLenum, dstByteOffset: GLintptr, srcData: AllowSharedBufferSource): void;\n bufferSubData(target: GLenum, dstByteOffset: GLintptr, srcData: ArrayBufferView<ArrayBufferLike>, srcOffset: number, length?: GLuint): void;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/compressedTexImage2D) */\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<ArrayBufferLike>, srcOffset?: number, srcLengthOverride?: GLuint): void;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/compressedTexSubImage2D) */\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<ArrayBufferLike>, srcOffset?: number, srcLengthOverride?: GLuint): void;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/readPixels) */\n readPixels(x: GLint, y: GLint, width: GLsizei, height: GLsizei, format: GLenum, type: GLenum, dstData: ArrayBufferView<ArrayBufferLike> | 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<ArrayBufferLike>, dstOffset: number): void;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/texImage2D) */\n texImage2D(target: GLenum, level: GLint, internalformat: GLint, width: GLsizei, height: GLsizei, border: GLint, format: GLenum, type: GLenum, pixels: ArrayBufferView<ArrayBufferLike> | 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<ArrayBufferLike>, srcOffset: number): void;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/texSubImage2D) */\n texSubImage2D(target: GLenum, level: GLint, xoffset: GLint, yoffset: GLint, width: GLsizei, height: GLsizei, format: GLenum, type: GLenum, pixels: ArrayBufferView<ArrayBufferLike> | 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<ArrayBufferLike>, srcOffset: number): void;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/uniform) */\n uniform1fv(location: WebGLUniformLocation | null, data: Float32List, srcOffset?: number, srcLength?: GLuint): void;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/uniform) */\n uniform1iv(location: WebGLUniformLocation | null, data: Int32List, srcOffset?: number, srcLength?: GLuint): void;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/uniform) */\n uniform2fv(location: WebGLUniformLocation | null, data: Float32List, srcOffset?: number, srcLength?: GLuint): void;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/uniform) */\n uniform2iv(location: WebGLUniformLocation | null, data: Int32List, srcOffset?: number, srcLength?: GLuint): void;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/uniform) */\n uniform3fv(location: WebGLUniformLocation | null, data: Float32List, srcOffset?: number, srcLength?: GLuint): void;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/uniform) */\n uniform3iv(location: WebGLUniformLocation | null, data: Int32List, srcOffset?: number, srcLength?: GLuint): void;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/uniform) */\n uniform4fv(location: WebGLUniformLocation | null, data: Float32List, srcOffset?: number, srcLength?: GLuint): void;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/uniform) */\n uniform4iv(location: WebGLUniformLocation | null, data: Int32List, srcOffset?: number, srcLength?: GLuint): void;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/uniformMatrix) */\n uniformMatrix2fv(location: WebGLUniformLocation | null, transpose: GLboolean, data: Float32List, srcOffset?: number, srcLength?: GLuint): void;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/uniformMatrix) */\n uniformMatrix3fv(location: WebGLUniformLocation | null, transpose: GLboolean, data: Float32List, srcOffset?: number, srcLength?: GLuint): void;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/uniformMatrix) */\n uniformMatrix4fv(location: WebGLUniformLocation | null, transpose: GLboolean, data: Float32List, srcOffset?: number, srcLength?: GLuint): void;\n}\n\n/**\n * The **WebGLActiveInfo** interface is part of the WebGL API and represents the information returned by calling the WebGLRenderingContext.getActiveAttrib() and WebGLRenderingContext.getActiveUniform() methods.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLActiveInfo)\n */\ninterface WebGLActiveInfo {\n /**\n * The read-only **`WebGLActiveInfo.name`** property represents the name of the requested data returned by calling the WebGLRenderingContext.getActiveAttrib() or WebGLRenderingContext.getActiveUniform() methods.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLActiveInfo/name)\n */\n readonly name: string;\n /**\n * The read-only **`WebGLActiveInfo.size`** property is a Number representing the size of the requested data returned by calling the WebGLRenderingContext.getActiveAttrib() or WebGLRenderingContext.getActiveUniform() methods.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLActiveInfo/size)\n */\n readonly size: GLint;\n /**\n * The read-only **`WebGLActiveInfo.type`** property represents the type of the requested data returned by calling the WebGLRenderingContext.getActiveAttrib() or WebGLRenderingContext.getActiveUniform() methods.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLActiveInfo/type)\n */\n readonly type: GLenum;\n}\n\ndeclare var WebGLActiveInfo: {\n prototype: WebGLActiveInfo;\n new(): WebGLActiveInfo;\n};\n\n/**\n * The **WebGLBuffer** interface is part of the WebGL API and represents an opaque buffer object storing data such as vertices or colors.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLBuffer)\n */\ninterface WebGLBuffer {\n}\n\ndeclare var WebGLBuffer: {\n prototype: WebGLBuffer;\n new(): WebGLBuffer;\n};\n\n/**\n * The **WebGLContextEvent** 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.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLContextEvent)\n */\ninterface WebGLContextEvent extends Event {\n /**\n * The read-only **`WebGLContextEvent.statusMessage`** property contains additional event status information, or is an empty string if no additional information is available.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLContextEvent/statusMessage)\n */\n readonly statusMessage: string;\n}\n\ndeclare var WebGLContextEvent: {\n prototype: WebGLContextEvent;\n new(type: string, eventInit?: WebGLContextEventInit): WebGLContextEvent;\n};\n\n/**\n * The **WebGLFramebuffer** interface is part of the WebGL API and represents a collection of buffers that serve as a rendering destination.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLFramebuffer)\n */\ninterface WebGLFramebuffer {\n}\n\ndeclare var WebGLFramebuffer: {\n prototype: WebGLFramebuffer;\n new(): WebGLFramebuffer;\n};\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).\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLProgram)\n */\ninterface WebGLProgram {\n}\n\ndeclare var WebGLProgram: {\n prototype: WebGLProgram;\n new(): WebGLProgram;\n};\n\n/**\n * The **`WebGLQuery`** interface is part of the WebGL 2 API and provides ways to asynchronously query for information.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLQuery)\n */\ninterface WebGLQuery {\n}\n\ndeclare var WebGLQuery: {\n prototype: WebGLQuery;\n new(): WebGLQuery;\n};\n\n/**\n * The **WebGLRenderbuffer** interface is part of the WebGL API and represents a buffer that can contain an image, or that can be a source or target of a rendering operation.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderbuffer)\n */\ninterface WebGLRenderbuffer {\n}\n\ndeclare var WebGLRenderbuffer: {\n prototype: WebGLRenderbuffer;\n new(): WebGLRenderbuffer;\n};\n\n/**\n * The **`WebGLRenderingContext`** interface provides an interface to the OpenGL ES 2.0 graphics rendering context for the drawing surface of an HTML canvas element.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext)\n */\ninterface WebGLRenderingContext extends WebGLRenderingContextBase, WebGLRenderingContextOverloads {\n}\n\ndeclare var WebGLRenderingContext: {\n prototype: WebGLRenderingContext;\n new(): WebGLRenderingContext;\n readonly DEPTH_BUFFER_BIT: 0x00000100;\n readonly STENCIL_BUFFER_BIT: 0x00000400;\n readonly COLOR_BUFFER_BIT: 0x00004000;\n readonly POINTS: 0x0000;\n readonly LINES: 0x0001;\n readonly LINE_LOOP: 0x0002;\n readonly LINE_STRIP: 0x0003;\n readonly TRIANGLES: 0x0004;\n readonly TRIANGLE_STRIP: 0x0005;\n readonly TRIANGLE_FAN: 0x0006;\n readonly ZERO: 0;\n readonly ONE: 1;\n readonly SRC_COLOR: 0x0300;\n readonly ONE_MINUS_SRC_COLOR: 0x0301;\n readonly SRC_ALPHA: 0x0302;\n readonly ONE_MINUS_SRC_ALPHA: 0x0303;\n readonly DST_ALPHA: 0x0304;\n readonly ONE_MINUS_DST_ALPHA: 0x0305;\n readonly DST_COLOR: 0x0306;\n readonly ONE_MINUS_DST_COLOR: 0x0307;\n readonly SRC_ALPHA_SATURATE: 0x0308;\n readonly FUNC_ADD: 0x8006;\n readonly BLEND_EQUATION: 0x8009;\n readonly BLEND_EQUATION_RGB: 0x8009;\n readonly BLEND_EQUATION_ALPHA: 0x883D;\n readonly FUNC_SUBTRACT: 0x800A;\n readonly FUNC_REVERSE_SUBTRACT: 0x800B;\n readonly BLEND_DST_RGB: 0x80C8;\n readonly BLEND_SRC_RGB: 0x80C9;\n readonly BLEND_DST_ALPHA: 0x80CA;\n readonly BLEND_SRC_ALPHA: 0x80CB;\n readonly CONSTANT_COLOR: 0x8001;\n readonly ONE_MINUS_CONSTANT_COLOR: 0x8002;\n readonly CONSTANT_ALPHA: 0x8003;\n readonly ONE_MINUS_CONSTANT_ALPHA: 0x8004;\n readonly BLEND_COLOR: 0x8005;\n readonly ARRAY_BUFFER: 0x8892;\n readonly ELEMENT_ARRAY_BUFFER: 0x8893;\n readonly ARRAY_BUFFER_BINDING: 0x8894;\n readonly ELEMENT_ARRAY_BUFFER_BINDING: 0x8895;\n readonly STREAM_DRAW: 0x88E0;\n readonly STATIC_DRAW: 0x88E4;\n readonly DYNAMIC_DRAW: 0x88E8;\n readonly BUFFER_SIZE: 0x8764;\n readonly BUFFER_USAGE: 0x8765;\n readonly CURRENT_VERTEX_ATTRIB: 0x8626;\n readonly FRONT: 0x0404;\n readonly BACK: 0x0405;\n readonly FRONT_AND_BACK: 0x0408;\n readonly CULL_FACE: 0x0B44;\n readonly BLEND: 0x0BE2;\n readonly DITHER: 0x0BD0;\n readonly STENCIL_TEST: 0x0B90;\n readonly DEPTH_TEST: 0x0B71;\n readonly SCISSOR_TEST: 0x0C11;\n readonly POLYGON_OFFSET_FILL: 0x8037;\n readonly SAMPLE_ALPHA_TO_COVERAGE: 0x809E;\n readonly SAMPLE_COVERAGE: 0x80A0;\n readonly NO_ERROR: 0;\n readonly INVALID_ENUM: 0x0500;\n readonly INVALID_VALUE: 0x0501;\n readonly INVALID_OPERATION: 0x0502;\n readonly OUT_OF_MEMORY: 0x0505;\n readonly CW: 0x0900;\n readonly CCW: 0x0901;\n readonly LINE_WIDTH: 0x0B21;\n readonly ALIASED_POINT_SIZE_RANGE: 0x846D;\n readonly ALIASED_LINE_WIDTH_RANGE: 0x846E;\n readonly CULL_FACE_MODE: 0x0B45;\n readonly FRONT_FACE: 0x0B46;\n readonly DEPTH_RANGE: 0x0B70;\n readonly DEPTH_WRITEMASK: 0x0B72;\n readonly DEPTH_CLEAR_VALUE: 0x0B73;\n readonly DEPTH_FUNC: 0x0B74;\n readonly STENCIL_CLEAR_VALUE: 0x0B91;\n readonly STENCIL_FUNC: 0x0B92;\n readonly STENCIL_FAIL: 0x0B94;\n readonly STENCIL_PASS_DEPTH_FAIL: 0x0B95;\n readonly STENCIL_PASS_DEPTH_PASS: 0x0B96;\n readonly STENCIL_REF: 0x0B97;\n readonly STENCIL_VALUE_MASK: 0x0B93;\n readonly STENCIL_WRITEMASK: 0x0B98;\n readonly STENCIL_BACK_FUNC: 0x8800;\n readonly STENCIL_BACK_FAIL: 0x8801;\n readonly STENCIL_BACK_PASS_DEPTH_FAIL: 0x8802;\n readonly STENCIL_BACK_PASS_DEPTH_PASS: 0x8803;\n readonly STENCIL_BACK_REF: 0x8CA3;\n readonly STENCIL_BACK_VALUE_MASK: 0x8CA4;\n readonly STENCIL_BACK_WRITEMASK: 0x8CA5;\n readonly VIEWPORT: 0x0BA2;\n readonly SCISSOR_BOX: 0x0C10;\n readonly COLOR_CLEAR_VALUE: 0x0C22;\n readonly COLOR_WRITEMASK: 0x0C23;\n readonly UNPACK_ALIGNMENT: 0x0CF5;\n readonly PACK_ALIGNMENT: 0x0D05;\n readonly MAX_TEXTURE_SIZE: 0x0D33;\n readonly MAX_VIEWPORT_DIMS: 0x0D3A;\n readonly SUBPIXEL_BITS: 0x0D50;\n readonly RED_BITS: 0x0D52;\n readonly GREEN_BITS: 0x0D53;\n readonly BLUE_BITS: 0x0D54;\n readonly ALPHA_BITS: 0x0D55;\n readonly DEPTH_BITS: 0x0D56;\n readonly STENCIL_BITS: 0x0D57;\n readonly POLYGON_OFFSET_UNITS: 0x2A00;\n readonly POLYGON_OFFSET_FACTOR: 0x8038;\n readonly TEXTURE_BINDING_2D: 0x8069;\n readonly SAMPLE_BUFFERS: 0x80A8;\n readonly SAMPLES: 0x80A9;\n readonly SAMPLE_COVERAGE_VALUE: 0x80AA;\n readonly SAMPLE_COVERAGE_INVERT: 0x80AB;\n readonly COMPRESSED_TEXTURE_FORMATS: 0x86A3;\n readonly DONT_CARE: 0x1100;\n readonly FASTEST: 0x1101;\n readonly NICEST: 0x1102;\n readonly GENERATE_MIPMAP_HINT: 0x8192;\n readonly BYTE: 0x1400;\n readonly UNSIGNED_BYTE: 0x1401;\n readonly SHORT: 0x1402;\n readonly UNSIGNED_SHORT: 0x1403;\n readonly INT: 0x1404;\n readonly UNSIGNED_INT: 0x1405;\n readonly FLOAT: 0x1406;\n readonly DEPTH_COMPONENT: 0x1902;\n readonly ALPHA: 0x1906;\n readonly RGB: 0x1907;\n readonly RGBA: 0x1908;\n readonly LUMINANCE: 0x1909;\n readonly LUMINANCE_ALPHA: 0x190A;\n readonly UNSIGNED_SHORT_4_4_4_4: 0x8033;\n readonly UNSIGNED_SHORT_5_5_5_1: 0x8034;\n readonly UNSIGNED_SHORT_5_6_5: 0x8363;\n readonly FRAGMENT_SHADER: 0x8B30;\n readonly VERTEX_SHADER: 0x8B31;\n readonly MAX_VERTEX_ATTRIBS: 0x8869;\n readonly MAX_VERTEX_UNIFORM_VECTORS: 0x8DFB;\n readonly MAX_VARYING_VECTORS: 0x8DFC;\n readonly MAX_COMBINED_TEXTURE_IMAGE_UNITS: 0x8B4D;\n readonly MAX_VERTEX_TEXTURE_IMAGE_UNITS: 0x8B4C;\n readonly MAX_TEXTURE_IMAGE_UNITS: 0x8872;\n readonly MAX_FRAGMENT_UNIFORM_VECTORS: 0x8DFD;\n readonly SHADER_TYPE: 0x8B4F;\n readonly DELETE_STATUS: 0x8B80;\n readonly LINK_STATUS: 0x8B82;\n readonly VALIDATE_STATUS: 0x8B83;\n readonly ATTACHED_SHADERS: 0x8B85;\n readonly ACTIVE_UNIFORMS: 0x8B86;\n readonly ACTIVE_ATTRIBUTES: 0x8B89;\n readonly SHADING_LANGUAGE_VERSION: 0x8B8C;\n readonly CURRENT_PROGRAM: 0x8B8D;\n readonly NEVER: 0x0200;\n readonly LESS: 0x0201;\n readonly EQUAL: 0x0202;\n readonly LEQUAL: 0x0203;\n readonly GREATER: 0x0204;\n readonly NOTEQUAL: 0x0205;\n readonly GEQUAL: 0x0206;\n readonly ALWAYS: 0x0207;\n readonly KEEP: 0x1E00;\n readonly REPLACE: 0x1E01;\n readonly INCR: 0x1E02;\n readonly DECR: 0x1E03;\n readonly INVERT: 0x150A;\n readonly INCR_WRAP: 0x8507;\n readonly DECR_WRAP: 0x8508;\n readonly VENDOR: 0x1F00;\n readonly RENDERER: 0x1F01;\n readonly VERSION: 0x1F02;\n readonly NEAREST: 0x2600;\n readonly LINEAR: 0x2601;\n readonly NEAREST_MIPMAP_NEAREST: 0x2700;\n readonly LINEAR_MIPMAP_NEAREST: 0x2701;\n readonly NEAREST_MIPMAP_LINEAR: 0x2702;\n readonly LINEAR_MIPMAP_LINEAR: 0x2703;\n readonly TEXTURE_MAG_FILTER: 0x2800;\n readonly TEXTURE_MIN_FILTER: 0x2801;\n readonly TEXTURE_WRAP_S: 0x2802;\n readonly TEXTURE_WRAP_T: 0x2803;\n readonly TEXTURE_2D: 0x0DE1;\n readonly TEXTURE: 0x1702;\n readonly TEXTURE_CUBE_MAP: 0x8513;\n readonly TEXTURE_BINDING_CUBE_MAP: 0x8514;\n readonly TEXTURE_CUBE_MAP_POSITIVE_X: 0x8515;\n readonly TEXTURE_CUBE_MAP_NEGATIVE_X: 0x8516;\n readonly TEXTURE_CUBE_MAP_POSITIVE_Y: 0x8517;\n readonly TEXTURE_CUBE_MAP_NEGATIVE_Y: 0x8518;\n readonly TEXTURE_CUBE_MAP_POSITIVE_Z: 0x8519;\n readonly TEXTURE_CUBE_MAP_NEGATIVE_Z: 0x851A;\n readonly MAX_CUBE_MAP_TEXTURE_SIZE: 0x851C;\n readonly TEXTURE0: 0x84C0;\n readonly TEXTURE1: 0x84C1;\n readonly TEXTURE2: 0x84C2;\n readonly TEXTURE3: 0x84C3;\n readonly TEXTURE4: 0x84C4;\n readonly TEXTURE5: 0x84C5;\n readonly TEXTURE6: 0x84C6;\n readonly TEXTURE7: 0x84C7;\n readonly TEXTURE8: 0x84C8;\n readonly TEXTURE9: 0x84C9;\n readonly TEXTURE10: 0x84CA;\n readonly TEXTURE11: 0x84CB;\n readonly TEXTURE12: 0x84CC;\n readonly TEXTURE13: 0x84CD;\n readonly TEXTURE14: 0x84CE;\n readonly TEXTURE15: 0x84CF;\n readonly TEXTURE16: 0x84D0;\n readonly TEXTURE17: 0x84D1;\n readonly TEXTURE18: 0x84D2;\n readonly TEXTURE19: 0x84D3;\n readonly TEXTURE20: 0x84D4;\n readonly TEXTURE21: 0x84D5;\n readonly TEXTURE22: 0x84D6;\n readonly TEXTURE23: 0x84D7;\n readonly TEXTURE24: 0x84D8;\n readonly TEXTURE25: 0x84D9;\n readonly TEXTURE26: 0x84DA;\n readonly TEXTURE27: 0x84DB;\n readonly TEXTURE28: 0x84DC;\n readonly TEXTURE29: 0x84DD;\n readonly TEXTURE30: 0x84DE;\n readonly TEXTURE31: 0x84DF;\n readonly ACTIVE_TEXTURE: 0x84E0;\n readonly REPEAT: 0x2901;\n readonly CLAMP_TO_EDGE: 0x812F;\n readonly MIRRORED_REPEAT: 0x8370;\n readonly FLOAT_VEC2: 0x8B50;\n readonly FLOAT_VEC3: 0x8B51;\n readonly FLOAT_VEC4: 0x8B52;\n readonly INT_VEC2: 0x8B53;\n readonly INT_VEC3: 0x8B54;\n readonly INT_VEC4: 0x8B55;\n readonly BOOL: 0x8B56;\n readonly BOOL_VEC2: 0x8B57;\n readonly BOOL_VEC3: 0x8B58;\n readonly BOOL_VEC4: 0x8B59;\n readonly FLOAT_MAT2: 0x8B5A;\n readonly FLOAT_MAT3: 0x8B5B;\n readonly FLOAT_MAT4: 0x8B5C;\n readonly SAMPLER_2D: 0x8B5E;\n readonly SAMPLER_CUBE: 0x8B60;\n readonly VERTEX_ATTRIB_ARRAY_ENABLED: 0x8622;\n readonly VERTEX_ATTRIB_ARRAY_SIZE: 0x8623;\n readonly VERTEX_ATTRIB_ARRAY_STRIDE: 0x8624;\n readonly VERTEX_ATTRIB_ARRAY_TYPE: 0x8625;\n readonly VERTEX_ATTRIB_ARRAY_NORMALIZED: 0x886A;\n readonly VERTEX_ATTRIB_ARRAY_POINTER: 0x8645;\n readonly VERTEX_ATTRIB_ARRAY_BUFFER_BINDING: 0x889F;\n readonly IMPLEMENTATION_COLOR_READ_TYPE: 0x8B9A;\n readonly IMPLEMENTATION_COLOR_READ_FORMAT: 0x8B9B;\n readonly COMPILE_STATUS: 0x8B81;\n readonly LOW_FLOAT: 0x8DF0;\n readonly MEDIUM_FLOAT: 0x8DF1;\n readonly HIGH_FLOAT: 0x8DF2;\n readonly LOW_INT: 0x8DF3;\n readonly MEDIUM_INT: 0x8DF4;\n readonly HIGH_INT: 0x8DF5;\n readonly FRAMEBUFFER: 0x8D40;\n readonly RENDERBUFFER: 0x8D41;\n readonly RGBA4: 0x8056;\n readonly RGB5_A1: 0x8057;\n readonly RGBA8: 0x8058;\n readonly RGB565: 0x8D62;\n readonly DEPTH_COMPONENT16: 0x81A5;\n readonly STENCIL_INDEX8: 0x8D48;\n readonly DEPTH_STENCIL: 0x84F9;\n readonly RENDERBUFFER_WIDTH: 0x8D42;\n readonly RENDERBUFFER_HEIGHT: 0x8D43;\n readonly RENDERBUFFER_INTERNAL_FORMAT: 0x8D44;\n readonly RENDERBUFFER_RED_SIZE: 0x8D50;\n readonly RENDERBUFFER_GREEN_SIZE: 0x8D51;\n readonly RENDERBUFFER_BLUE_SIZE: 0x8D52;\n readonly RENDERBUFFER_ALPHA_SIZE: 0x8D53;\n readonly RENDERBUFFER_DEPTH_SIZE: 0x8D54;\n readonly RENDERBUFFER_STENCIL_SIZE: 0x8D55;\n readonly FRAMEBUFFER_ATTACHMENT_OBJECT_TYPE: 0x8CD0;\n readonly FRAMEBUFFER_ATTACHMENT_OBJECT_NAME: 0x8CD1;\n readonly FRAMEBUFFER_ATTACHMENT_TEXTURE_LEVEL: 0x8CD2;\n readonly FRAMEBUFFER_ATTACHMENT_TEXTURE_CUBE_MAP_FACE: 0x8CD3;\n readonly COLOR_ATTACHMENT0: 0x8CE0;\n readonly DEPTH_ATTACHMENT: 0x8D00;\n readonly STENCIL_ATTACHMENT: 0x8D20;\n readonly DEPTH_STENCIL_ATTACHMENT: 0x821A;\n readonly NONE: 0;\n readonly FRAMEBUFFER_COMPLETE: 0x8CD5;\n readonly FRAMEBUFFER_INCOMPLETE_ATTACHMENT: 0x8CD6;\n readonly FRAMEBUFFER_INCOMPLETE_MISSING_ATTACHMENT: 0x8CD7;\n readonly FRAMEBUFFER_INCOMPLETE_DIMENSIONS: 0x8CD9;\n readonly FRAMEBUFFER_UNSUPPORTED: 0x8CDD;\n readonly FRAMEBUFFER_BINDING: 0x8CA6;\n readonly RENDERBUFFER_BINDING: 0x8CA7;\n readonly MAX_RENDERBUFFER_SIZE: 0x84E8;\n readonly INVALID_FRAMEBUFFER_OPERATION: 0x0506;\n readonly UNPACK_FLIP_Y_WEBGL: 0x9240;\n readonly UNPACK_PREMULTIPLY_ALPHA_WEBGL: 0x9241;\n readonly CONTEXT_LOST_WEBGL: 0x9242;\n readonly UNPACK_COLORSPACE_CONVERSION_WEBGL: 0x9243;\n readonly BROWSER_DEFAULT_WEBGL: 0x9244;\n};\n\ninterface WebGLRenderingContextBase {\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/drawingBufferColorSpace) */\n drawingBufferColorSpace: PredefinedColorSpace;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/drawingBufferHeight) */\n readonly drawingBufferHeight: GLsizei;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/drawingBufferWidth) */\n readonly drawingBufferWidth: GLsizei;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/unpackColorSpace) */\n unpackColorSpace: PredefinedColorSpace;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/activeTexture) */\n activeTexture(texture: GLenum): void;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/attachShader) */\n attachShader(program: WebGLProgram, shader: WebGLShader): void;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/bindAttribLocation) */\n bindAttribLocation(program: WebGLProgram, index: GLuint, name: string): void;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/bindBuffer) */\n bindBuffer(target: GLenum, buffer: WebGLBuffer | null): void;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/bindFramebuffer) */\n bindFramebuffer(target: GLenum, framebuffer: WebGLFramebuffer | null): void;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/bindRenderbuffer) */\n bindRenderbuffer(target: GLenum, renderbuffer: WebGLRenderbuffer | null): void;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/bindTexture) */\n bindTexture(target: GLenum, texture: WebGLTexture | null): void;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/blendColor) */\n blendColor(red: GLclampf, green: GLclampf, blue: GLclampf, alpha: GLclampf): void;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/blendEquation) */\n blendEquation(mode: GLenum): void;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/blendEquationSeparate) */\n blendEquationSeparate(modeRGB: GLenum, modeAlpha: GLenum): void;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/blendFunc) */\n blendFunc(sfactor: GLenum, dfactor: GLenum): void;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/blendFuncSeparate) */\n blendFuncSeparate(srcRGB: GLenum, dstRGB: GLenum, srcAlpha: GLenum, dstAlpha: GLenum): void;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/checkFramebufferStatus) */\n checkFramebufferStatus(target: GLenum): GLenum;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/clear) */\n clear(mask: GLbitfield): void;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/clearColor) */\n clearColor(red: GLclampf, green: GLclampf, blue: GLclampf, alpha: GLclampf): void;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/clearDepth) */\n clearDepth(depth: GLclampf): void;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/clearStencil) */\n clearStencil(s: GLint): void;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/colorMask) */\n colorMask(red: GLboolean, green: GLboolean, blue: GLboolean, alpha: GLboolean): void;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/compileShader) */\n compileShader(shader: WebGLShader): void;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/copyTexImage2D) */\n copyTexImage2D(target: GLenum, level: GLint, internalformat: GLenum, x: GLint, y: GLint, width: GLsizei, height: GLsizei, border: GLint): void;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/copyTexSubImage2D) */\n copyTexSubImage2D(target: GLenum, level: GLint, xoffset: GLint, yoffset: GLint, x: GLint, y: GLint, width: GLsizei, height: GLsizei): void;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/createBuffer) */\n createBuffer(): WebGLBuffer;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/createFramebuffer) */\n createFramebuffer(): WebGLFramebuffer;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/createProgram) */\n createProgram(): WebGLProgram;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/createRenderbuffer) */\n createRenderbuffer(): WebGLRenderbuffer;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/createShader) */\n createShader(type: GLenum): WebGLShader | null;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/createTexture) */\n createTexture(): WebGLTexture;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/cullFace) */\n cullFace(mode: GLenum): void;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/deleteBuffer) */\n deleteBuffer(buffer: WebGLBuffer | null): void;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/deleteFramebuffer) */\n deleteFramebuffer(framebuffer: WebGLFramebuffer | null): void;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/deleteProgram) */\n deleteProgram(program: WebGLProgram | null): void;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/deleteRenderbuffer) */\n deleteRenderbuffer(renderbuffer: WebGLRenderbuffer | null): void;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/deleteShader) */\n deleteShader(shader: WebGLShader | null): void;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/deleteTexture) */\n deleteTexture(texture: WebGLTexture | null): void;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/depthFunc) */\n depthFunc(func: GLenum): void;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/depthMask) */\n depthMask(flag: GLboolean): void;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/depthRange) */\n depthRange(zNear: GLclampf, zFar: GLclampf): void;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/detachShader) */\n detachShader(program: WebGLProgram, shader: WebGLShader): void;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/disable) */\n disable(cap: GLenum): void;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/disableVertexAttribArray) */\n disableVertexAttribArray(index: GLuint): void;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/drawArrays) */\n drawArrays(mode: GLenum, first: GLint, count: GLsizei): void;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/drawElements) */\n drawElements(mode: GLenum, count: GLsizei, type: GLenum, offset: GLintptr): void;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/enable) */\n enable(cap: GLenum): void;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/enableVertexAttribArray) */\n enableVertexAttribArray(index: GLuint): void;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/finish) */\n finish(): void;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/flush) */\n flush(): void;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/framebufferRenderbuffer) */\n framebufferRenderbuffer(target: GLenum, attachment: GLenum, renderbuffertarget: GLenum, renderbuffer: WebGLRenderbuffer | null): void;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/framebufferTexture2D) */\n framebufferTexture2D(target: GLenum, attachment: GLenum, textarget: GLenum, texture: WebGLTexture | null, level: GLint): void;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/frontFace) */\n frontFace(mode: GLenum): void;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/generateMipmap) */\n generateMipmap(target: GLenum): void;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/getActiveAttrib) */\n getActiveAttrib(program: WebGLProgram, index: GLuint): WebGLActiveInfo | null;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/getActiveUniform) */\n getActiveUniform(program: WebGLProgram, index: GLuint): WebGLActiveInfo | null;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/getAttachedShaders) */\n getAttachedShaders(program: WebGLProgram): WebGLShader[] | null;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/getAttribLocation) */\n getAttribLocation(program: WebGLProgram, name: string): GLint;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/getBufferParameter) */\n getBufferParameter(target: GLenum, pname: GLenum): any;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/getContextAttributes) */\n getContextAttributes(): WebGLContextAttributes | null;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/getError) */\n getError(): GLenum;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/getExtension) */\n getExtension(extensionName: "ANGLE_instanced_arrays"): ANGLE_instanced_arrays | null;\n getExtension(extensionName: "EXT_blend_minmax"): EXT_blend_minmax | null;\n getExtension(extensionName: "EXT_color_buffer_float"): EXT_color_buffer_float | null;\n getExtension(extensionName: "EXT_color_buffer_half_float"): EXT_color_buffer_half_float | null;\n getExtension(extensionName: "EXT_float_blend"): EXT_float_blend | null;\n getExtension(extensionName: "EXT_frag_depth"): EXT_frag_depth | null;\n getExtension(extensionName: "EXT_sRGB"): EXT_sRGB | null;\n getExtension(extensionName: "EXT_shader_texture_lod"): EXT_shader_texture_lod | null;\n getExtension(extensionName: "EXT_texture_compression_bptc"): EXT_texture_compression_bptc | null;\n getExtension(extensionName: "EXT_texture_compression_rgtc"): EXT_texture_compression_rgtc | null;\n getExtension(extensionName: "EXT_texture_filter_anisotropic"): EXT_texture_filter_anisotropic | null;\n getExtension(extensionName: "KHR_parallel_shader_compile"): KHR_parallel_shader_compile | null;\n getExtension(extensionName: "OES_element_index_uint"): OES_element_index_uint | null;\n getExtension(extensionName: "OES_fbo_render_mipmap"): OES_fbo_render_mipmap | null;\n getExtension(extensionName: "OES_standard_derivatives"): OES_standard_derivatives | null;\n getExtension(extensionName: "OES_texture_float"): OES_texture_float | null;\n getExtension(extensionName: "OES_texture_float_linear"): OES_texture_float_linear | null;\n getExtension(extensionName: "OES_texture_half_float"): OES_texture_half_float | null;\n getExtension(extensionName: "OES_texture_half_float_linear"): OES_texture_half_float_linear | null;\n getExtension(extensionName: "OES_vertex_array_object"): OES_vertex_array_object | null;\n getExtension(extensionName: "OVR_multiview2"): OVR_multiview2 | 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_etc"): WEBGL_compressed_texture_etc | null;\n getExtension(extensionName: "WEBGL_compressed_texture_etc1"): WEBGL_compressed_texture_etc1 | null;\n getExtension(extensionName: "WEBGL_compressed_texture_pvrtc"): WEBGL_compressed_texture_pvrtc | null;\n getExtension(extensionName: "WEBGL_compressed_texture_s3tc"): WEBGL_compressed_texture_s3tc | null;\n getExtension(extensionName: "WEBGL_compressed_texture_s3tc_srgb"): WEBGL_compressed_texture_s3tc_srgb | null;\n getExtension(extensionName: "WEBGL_debug_renderer_info"): WEBGL_debug_renderer_info | null;\n getExtension(extensionName: "WEBGL_debug_shaders"): WEBGL_debug_shaders | null;\n getExtension(extensionName: "WEBGL_depth_texture"): WEBGL_depth_texture | 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_multi_draw"): WEBGL_multi_draw | null;\n getExtension(name: string): any;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/getFramebufferAttachmentParameter) */\n getFramebufferAttachmentParameter(target: GLenum, attachment: GLenum, pname: GLenum): any;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/getParameter) */\n getParameter(pname: GLenum): any;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/getProgramInfoLog) */\n getProgramInfoLog(program: WebGLProgram): string | null;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/getProgramParameter) */\n getProgramParameter(program: WebGLProgram, pname: GLenum): any;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/getRenderbufferParameter) */\n getRenderbufferParameter(target: GLenum, pname: GLenum): any;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/getShaderInfoLog) */\n getShaderInfoLog(shader: WebGLShader): string | null;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/getShaderParameter) */\n getShaderParameter(shader: WebGLShader, pname: GLenum): any;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/getShaderPrecisionFormat) */\n getShaderPrecisionFormat(shadertype: GLenum, precisiontype: GLenum): WebGLShaderPrecisionFormat | null;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/getShaderSource) */\n getShaderSource(shader: WebGLShader): string | null;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/getSupportedExtensions) */\n getSupportedExtensions(): string[] | null;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/getTexParameter) */\n getTexParameter(target: GLenum, pname: GLenum): any;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/getUniform) */\n getUniform(program: WebGLProgram, location: WebGLUniformLocation): any;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/getUniformLocation) */\n getUniformLocation(program: WebGLProgram, name: string): WebGLUniformLocation | null;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/getVertexAttrib) */\n getVertexAttrib(index: GLuint, pname: GLenum): any;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/getVertexAttribOffset) */\n getVertexAttribOffset(index: GLuint, pname: GLenum): GLintptr;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/hint) */\n hint(target: GLenum, mode: GLenum): void;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/isBuffer) */\n isBuffer(buffer: WebGLBuffer | null): GLboolean;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/isContextLost) */\n isContextLost(): boolean;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/isEnabled) */\n isEnabled(cap: GLenum): GLboolean;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/isFramebuffer) */\n isFramebuffer(framebuffer: WebGLFramebuffer | null): GLboolean;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/isProgram) */\n isProgram(program: WebGLProgram | null): GLboolean;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/isRenderbuffer) */\n isRenderbuffer(renderbuffer: WebGLRenderbuffer | null): GLboolean;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/isShader) */\n isShader(shader: WebGLShader | null): GLboolean;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/isTexture) */\n isTexture(texture: WebGLTexture | null): GLboolean;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/lineWidth) */\n lineWidth(width: GLfloat): void;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/linkProgram) */\n linkProgram(program: WebGLProgram): void;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/pixelStorei) */\n pixelStorei(pname: GLenum, param: GLint | GLboolean): void;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/polygonOffset) */\n polygonOffset(factor: GLfloat, units: GLfloat): void;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/renderbufferStorage) */\n renderbufferStorage(target: GLenum, internalformat: GLenum, width: GLsizei, height: GLsizei): void;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/sampleCoverage) */\n sampleCoverage(value: GLclampf, invert: GLboolean): void;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/scissor) */\n scissor(x: GLint, y: GLint, width: GLsizei, height: GLsizei): void;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/shaderSource) */\n shaderSource(shader: WebGLShader, source: string): void;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/stencilFunc) */\n stencilFunc(func: GLenum, ref: GLint, mask: GLuint): void;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/stencilFuncSeparate) */\n stencilFuncSeparate(face: GLenum, func: GLenum, ref: GLint, mask: GLuint): void;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/stencilMask) */\n stencilMask(mask: GLuint): void;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/stencilMaskSeparate) */\n stencilMaskSeparate(face: GLenum, mask: GLuint): void;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/stencilOp) */\n stencilOp(fail: GLenum, zfail: GLenum, zpass: GLenum): void;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/stencilOpSeparate) */\n stencilOpSeparate(face: GLenum, fail: GLenum, zfail: GLenum, zpass: GLenum): void;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/texParameter) */\n texParameterf(target: GLenum, pname: GLenum, param: GLfloat): void;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/texParameter) */\n texParameteri(target: GLenum, pname: GLenum, param: GLint): void;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/uniform) */\n uniform1f(location: WebGLUniformLocation | null, x: GLfloat): void;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/uniform) */\n uniform1i(location: WebGLUniformLocation | null, x: GLint): void;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/uniform) */\n uniform2f(location: WebGLUniformLocation | null, x: GLfloat, y: GLfloat): void;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/uniform) */\n uniform2i(location: WebGLUniformLocation | null, x: GLint, y: GLint): void;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/uniform) */\n uniform3f(location: WebGLUniformLocation | null, x: GLfloat, y: GLfloat, z: GLfloat): void;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/uniform) */\n uniform3i(location: WebGLUniformLocation | null, x: GLint, y: GLint, z: GLint): void;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/uniform) */\n uniform4f(location: WebGLUniformLocation | null, x: GLfloat, y: GLfloat, z: GLfloat, w: GLfloat): void;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/uniform) */\n uniform4i(location: WebGLUniformLocation | null, x: GLint, y: GLint, z: GLint, w: GLint): void;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/useProgram) */\n useProgram(program: WebGLProgram | null): void;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/validateProgram) */\n validateProgram(program: WebGLProgram): void;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/vertexAttrib) */\n vertexAttrib1f(index: GLuint, x: GLfloat): void;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/vertexAttrib) */\n vertexAttrib1fv(index: GLuint, values: Float32List): void;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/vertexAttrib) */\n vertexAttrib2f(index: GLuint, x: GLfloat, y: GLfloat): void;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/vertexAttrib) */\n vertexAttrib2fv(index: GLuint, values: Float32List): void;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/vertexAttrib) */\n vertexAttrib3f(index: GLuint, x: GLfloat, y: GLfloat, z: GLfloat): void;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/vertexAttrib) */\n vertexAttrib3fv(index: GLuint, values: Float32List): void;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/vertexAttrib) */\n vertexAttrib4f(index: GLuint, x: GLfloat, y: GLfloat, z: GLfloat, w: GLfloat): void;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/vertexAttrib) */\n vertexAttrib4fv(index: GLuint, values: Float32List): void;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/vertexAttribPointer) */\n vertexAttribPointer(index: GLuint, size: GLint, type: GLenum, normalized: GLboolean, stride: GLsizei, offset: GLintptr): void;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/viewport) */\n viewport(x: GLint, y: GLint, width: GLsizei, height: GLsizei): void;\n readonly DEPTH_BUFFER_BIT: 0x00000100;\n readonly STENCIL_BUFFER_BIT: 0x00000400;\n readonly COLOR_BUFFER_BIT: 0x00004000;\n readonly POINTS: 0x0000;\n readonly LINES: 0x0001;\n readonly LINE_LOOP: 0x0002;\n readonly LINE_STRIP: 0x0003;\n readonly TRIANGLES: 0x0004;\n readonly TRIANGLE_STRIP: 0x0005;\n readonly TRIANGLE_FAN: 0x0006;\n readonly ZERO: 0;\n readonly ONE: 1;\n readonly SRC_COLOR: 0x0300;\n readonly ONE_MINUS_SRC_COLOR: 0x0301;\n readonly SRC_ALPHA: 0x0302;\n readonly ONE_MINUS_SRC_ALPHA: 0x0303;\n readonly DST_ALPHA: 0x0304;\n readonly ONE_MINUS_DST_ALPHA: 0x0305;\n readonly DST_COLOR: 0x0306;\n readonly ONE_MINUS_DST_COLOR: 0x0307;\n readonly SRC_ALPHA_SATURATE: 0x0308;\n readonly FUNC_ADD: 0x8006;\n readonly BLEND_EQUATION: 0x8009;\n readonly BLEND_EQUATION_RGB: 0x8009;\n readonly BLEND_EQUATION_ALPHA: 0x883D;\n readonly FUNC_SUBTRACT: 0x800A;\n readonly FUNC_REVERSE_SUBTRACT: 0x800B;\n readonly BLEND_DST_RGB: 0x80C8;\n readonly BLEND_SRC_RGB: 0x80C9;\n readonly BLEND_DST_ALPHA: 0x80CA;\n readonly BLEND_SRC_ALPHA: 0x80CB;\n readonly CONSTANT_COLOR: 0x8001;\n readonly ONE_MINUS_CONSTANT_COLOR: 0x8002;\n readonly CONSTANT_ALPHA: 0x8003;\n readonly ONE_MINUS_CONSTANT_ALPHA: 0x8004;\n readonly BLEND_COLOR: 0x8005;\n readonly ARRAY_BUFFER: 0x8892;\n readonly ELEMENT_ARRAY_BUFFER: 0x8893;\n readonly ARRAY_BUFFER_BINDING: 0x8894;\n readonly ELEMENT_ARRAY_BUFFER_BINDING: 0x8895;\n readonly STREAM_DRAW: 0x88E0;\n readonly STATIC_DRAW: 0x88E4;\n readonly DYNAMIC_DRAW: 0x88E8;\n readonly BUFFER_SIZE: 0x8764;\n readonly BUFFER_USAGE: 0x8765;\n readonly CURRENT_VERTEX_ATTRIB: 0x8626;\n readonly FRONT: 0x0404;\n readonly BACK: 0x0405;\n readonly FRONT_AND_BACK: 0x0408;\n readonly CULL_FACE: 0x0B44;\n readonly BLEND: 0x0BE2;\n readonly DITHER: 0x0BD0;\n readonly STENCIL_TEST: 0x0B90;\n readonly DEPTH_TEST: 0x0B71;\n readonly SCISSOR_TEST: 0x0C11;\n readonly POLYGON_OFFSET_FILL: 0x8037;\n readonly SAMPLE_ALPHA_TO_COVERAGE: 0x809E;\n readonly SAMPLE_COVERAGE: 0x80A0;\n readonly NO_ERROR: 0;\n readonly INVALID_ENUM: 0x0500;\n readonly INVALID_VALUE: 0x0501;\n readonly INVALID_OPERATION: 0x0502;\n readonly OUT_OF_MEMORY: 0x0505;\n readonly CW: 0x0900;\n readonly CCW: 0x0901;\n readonly LINE_WIDTH: 0x0B21;\n readonly ALIASED_POINT_SIZE_RANGE: 0x846D;\n readonly ALIASED_LINE_WIDTH_RANGE: 0x846E;\n readonly CULL_FACE_MODE: 0x0B45;\n readonly FRONT_FACE: 0x0B46;\n readonly DEPTH_RANGE: 0x0B70;\n readonly DEPTH_WRITEMASK: 0x0B72;\n readonly DEPTH_CLEAR_VALUE: 0x0B73;\n readonly DEPTH_FUNC: 0x0B74;\n readonly STENCIL_CLEAR_VALUE: 0x0B91;\n readonly STENCIL_FUNC: 0x0B92;\n readonly STENCIL_FAIL: 0x0B94;\n readonly STENCIL_PASS_DEPTH_FAIL: 0x0B95;\n readonly STENCIL_PASS_DEPTH_PASS: 0x0B96;\n readonly STENCIL_REF: 0x0B97;\n readonly STENCIL_VALUE_MASK: 0x0B93;\n readonly STENCIL_WRITEMASK: 0x0B98;\n readonly STENCIL_BACK_FUNC: 0x8800;\n readonly STENCIL_BACK_FAIL: 0x8801;\n readonly STENCIL_BACK_PASS_DEPTH_FAIL: 0x8802;\n readonly STENCIL_BACK_PASS_DEPTH_PASS: 0x8803;\n readonly STENCIL_BACK_REF: 0x8CA3;\n readonly STENCIL_BACK_VALUE_MASK: 0x8CA4;\n readonly STENCIL_BACK_WRITEMASK: 0x8CA5;\n readonly VIEWPORT: 0x0BA2;\n readonly SCISSOR_BOX: 0x0C10;\n readonly COLOR_CLEAR_VALUE: 0x0C22;\n readonly COLOR_WRITEMASK: 0x0C23;\n readonly UNPACK_ALIGNMENT: 0x0CF5;\n readonly PACK_ALIGNMENT: 0x0D05;\n readonly MAX_TEXTURE_SIZE: 0x0D33;\n readonly MAX_VIEWPORT_DIMS: 0x0D3A;\n readonly SUBPIXEL_BITS: 0x0D50;\n readonly RED_BITS: 0x0D52;\n readonly GREEN_BITS: 0x0D53;\n readonly BLUE_BITS: 0x0D54;\n readonly ALPHA_BITS: 0x0D55;\n readonly DEPTH_BITS: 0x0D56;\n readonly STENCIL_BITS: 0x0D57;\n readonly POLYGON_OFFSET_UNITS: 0x2A00;\n readonly POLYGON_OFFSET_FACTOR: 0x8038;\n readonly TEXTURE_BINDING_2D: 0x8069;\n readonly SAMPLE_BUFFERS: 0x80A8;\n readonly SAMPLES: 0x80A9;\n readonly SAMPLE_COVERAGE_VALUE: 0x80AA;\n readonly SAMPLE_COVERAGE_INVERT: 0x80AB;\n readonly COMPRESSED_TEXTURE_FORMATS: 0x86A3;\n readonly DONT_CARE: 0x1100;\n readonly FASTEST: 0x1101;\n readonly NICEST: 0x1102;\n readonly GENERATE_MIPMAP_HINT: 0x8192;\n readonly BYTE: 0x1400;\n readonly UNSIGNED_BYTE: 0x1401;\n readonly SHORT: 0x1402;\n readonly UNSIGNED_SHORT: 0x1403;\n readonly INT: 0x1404;\n readonly UNSIGNED_INT: 0x1405;\n readonly FLOAT: 0x1406;\n readonly DEPTH_COMPONENT: 0x1902;\n readonly ALPHA: 0x1906;\n readonly RGB: 0x1907;\n readonly RGBA: 0x1908;\n readonly LUMINANCE: 0x1909;\n readonly LUMINANCE_ALPHA: 0x190A;\n readonly UNSIGNED_SHORT_4_4_4_4: 0x8033;\n readonly UNSIGNED_SHORT_5_5_5_1: 0x8034;\n readonly UNSIGNED_SHORT_5_6_5: 0x8363;\n readonly FRAGMENT_SHADER: 0x8B30;\n readonly VERTEX_SHADER: 0x8B31;\n readonly MAX_VERTEX_ATTRIBS: 0x8869;\n readonly MAX_VERTEX_UNIFORM_VECTORS: 0x8DFB;\n readonly MAX_VARYING_VECTORS: 0x8DFC;\n readonly MAX_COMBINED_TEXTURE_IMAGE_UNITS: 0x8B4D;\n readonly MAX_VERTEX_TEXTURE_IMAGE_UNITS: 0x8B4C;\n readonly MAX_TEXTURE_IMAGE_UNITS: 0x8872;\n readonly MAX_FRAGMENT_UNIFORM_VECTORS: 0x8DFD;\n readonly SHADER_TYPE: 0x8B4F;\n readonly DELETE_STATUS: 0x8B80;\n readonly LINK_STATUS: 0x8B82;\n readonly VALIDATE_STATUS: 0x8B83;\n readonly ATTACHED_SHADERS: 0x8B85;\n readonly ACTIVE_UNIFORMS: 0x8B86;\n readonly ACTIVE_ATTRIBUTES: 0x8B89;\n readonly SHADING_LANGUAGE_VERSION: 0x8B8C;\n readonly CURRENT_PROGRAM: 0x8B8D;\n readonly NEVER: 0x0200;\n readonly LESS: 0x0201;\n readonly EQUAL: 0x0202;\n readonly LEQUAL: 0x0203;\n readonly GREATER: 0x0204;\n readonly NOTEQUAL: 0x0205;\n readonly GEQUAL: 0x0206;\n readonly ALWAYS: 0x0207;\n readonly KEEP: 0x1E00;\n readonly REPLACE: 0x1E01;\n readonly INCR: 0x1E02;\n readonly DECR: 0x1E03;\n readonly INVERT: 0x150A;\n readonly INCR_WRAP: 0x8507;\n readonly DECR_WRAP: 0x8508;\n readonly VENDOR: 0x1F00;\n readonly RENDERER: 0x1F01;\n readonly VERSION: 0x1F02;\n readonly NEAREST: 0x2600;\n readonly LINEAR: 0x2601;\n readonly NEAREST_MIPMAP_NEAREST: 0x2700;\n readonly LINEAR_MIPMAP_NEAREST: 0x2701;\n readonly NEAREST_MIPMAP_LINEAR: 0x2702;\n readonly LINEAR_MIPMAP_LINEAR: 0x2703;\n readonly TEXTURE_MAG_FILTER: 0x2800;\n readonly TEXTURE_MIN_FILTER: 0x2801;\n readonly TEXTURE_WRAP_S: 0x2802;\n readonly TEXTURE_WRAP_T: 0x2803;\n readonly TEXTURE_2D: 0x0DE1;\n readonly TEXTURE: 0x1702;\n readonly TEXTURE_CUBE_MAP: 0x8513;\n readonly TEXTURE_BINDING_CUBE_MAP: 0x8514;\n readonly TEXTURE_CUBE_MAP_POSITIVE_X: 0x8515;\n readonly TEXTURE_CUBE_MAP_NEGATIVE_X: 0x8516;\n readonly TEXTURE_CUBE_MAP_POSITIVE_Y: 0x8517;\n readonly TEXTURE_CUBE_MAP_NEGATIVE_Y: 0x8518;\n readonly TEXTURE_CUBE_MAP_POSITIVE_Z: 0x8519;\n readonly TEXTURE_CUBE_MAP_NEGATIVE_Z: 0x851A;\n readonly MAX_CUBE_MAP_TEXTURE_SIZE: 0x851C;\n readonly TEXTURE0: 0x84C0;\n readonly TEXTURE1: 0x84C1;\n readonly TEXTURE2: 0x84C2;\n readonly TEXTURE3: 0x84C3;\n readonly TEXTURE4: 0x84C4;\n readonly TEXTURE5: 0x84C5;\n readonly TEXTURE6: 0x84C6;\n readonly TEXTURE7: 0x84C7;\n readonly TEXTURE8: 0x84C8;\n readonly TEXTURE9: 0x84C9;\n readonly TEXTURE10: 0x84CA;\n readonly TEXTURE11: 0x84CB;\n readonly TEXTURE12: 0x84CC;\n readonly TEXTURE13: 0x84CD;\n readonly TEXTURE14: 0x84CE;\n readonly TEXTURE15: 0x84CF;\n readonly TEXTURE16: 0x84D0;\n readonly TEXTURE17: 0x84D1;\n readonly TEXTURE18: 0x84D2;\n readonly TEXTURE19: 0x84D3;\n readonly TEXTURE20: 0x84D4;\n readonly TEXTURE21: 0x84D5;\n readonly TEXTURE22: 0x84D6;\n readonly TEXTURE23: 0x84D7;\n readonly TEXTURE24: 0x84D8;\n readonly TEXTURE25: 0x84D9;\n readonly TEXTURE26: 0x84DA;\n readonly TEXTURE27: 0x84DB;\n readonly TEXTURE28: 0x84DC;\n readonly TEXTURE29: 0x84DD;\n readonly TEXTURE30: 0x84DE;\n readonly TEXTURE31: 0x84DF;\n readonly ACTIVE_TEXTURE: 0x84E0;\n readonly REPEAT: 0x2901;\n readonly CLAMP_TO_EDGE: 0x812F;\n readonly MIRRORED_REPEAT: 0x8370;\n readonly FLOAT_VEC2: 0x8B50;\n readonly FLOAT_VEC3: 0x8B51;\n readonly FLOAT_VEC4: 0x8B52;\n readonly INT_VEC2: 0x8B53;\n readonly INT_VEC3: 0x8B54;\n readonly INT_VEC4: 0x8B55;\n readonly BOOL: 0x8B56;\n readonly BOOL_VEC2: 0x8B57;\n readonly BOOL_VEC3: 0x8B58;\n readonly BOOL_VEC4: 0x8B59;\n readonly FLOAT_MAT2: 0x8B5A;\n readonly FLOAT_MAT3: 0x8B5B;\n readonly FLOAT_MAT4: 0x8B5C;\n readonly SAMPLER_2D: 0x8B5E;\n readonly SAMPLER_CUBE: 0x8B60;\n readonly VERTEX_ATTRIB_ARRAY_ENABLED: 0x8622;\n readonly VERTEX_ATTRIB_ARRAY_SIZE: 0x8623;\n readonly VERTEX_ATTRIB_ARRAY_STRIDE: 0x8624;\n readonly VERTEX_ATTRIB_ARRAY_TYPE: 0x8625;\n readonly VERTEX_ATTRIB_ARRAY_NORMALIZED: 0x886A;\n readonly VERTEX_ATTRIB_ARRAY_POINTER: 0x8645;\n readonly VERTEX_ATTRIB_ARRAY_BUFFER_BINDING: 0x889F;\n readonly IMPLEMENTATION_COLOR_READ_TYPE: 0x8B9A;\n readonly IMPLEMENTATION_COLOR_READ_FORMAT: 0x8B9B;\n readonly COMPILE_STATUS: 0x8B81;\n readonly LOW_FLOAT: 0x8DF0;\n readonly MEDIUM_FLOAT: 0x8DF1;\n readonly HIGH_FLOAT: 0x8DF2;\n readonly LOW_INT: 0x8DF3;\n readonly MEDIUM_INT: 0x8DF4;\n readonly HIGH_INT: 0x8DF5;\n readonly FRAMEBUFFER: 0x8D40;\n readonly RENDERBUFFER: 0x8D41;\n readonly RGBA4: 0x8056;\n readonly RGB5_A1: 0x8057;\n readonly RGBA8: 0x8058;\n readonly RGB565: 0x8D62;\n readonly DEPTH_COMPONENT16: 0x81A5;\n readonly STENCIL_INDEX8: 0x8D48;\n readonly DEPTH_STENCIL: 0x84F9;\n readonly RENDERBUFFER_WIDTH: 0x8D42;\n readonly RENDERBUFFER_HEIGHT: 0x8D43;\n readonly RENDERBUFFER_INTERNAL_FORMAT: 0x8D44;\n readonly RENDERBUFFER_RED_SIZE: 0x8D50;\n readonly RENDERBUFFER_GREEN_SIZE: 0x8D51;\n readonly RENDERBUFFER_BLUE_SIZE: 0x8D52;\n readonly RENDERBUFFER_ALPHA_SIZE: 0x8D53;\n readonly RENDERBUFFER_DEPTH_SIZE: 0x8D54;\n readonly RENDERBUFFER_STENCIL_SIZE: 0x8D55;\n readonly FRAMEBUFFER_ATTACHMENT_OBJECT_TYPE: 0x8CD0;\n readonly FRAMEBUFFER_ATTACHMENT_OBJECT_NAME: 0x8CD1;\n readonly FRAMEBUFFER_ATTACHMENT_TEXTURE_LEVEL: 0x8CD2;\n readonly FRAMEBUFFER_ATTACHMENT_TEXTURE_CUBE_MAP_FACE: 0x8CD3;\n readonly COLOR_ATTACHMENT0: 0x8CE0;\n readonly DEPTH_ATTACHMENT: 0x8D00;\n readonly STENCIL_ATTACHMENT: 0x8D20;\n readonly DEPTH_STENCIL_ATTACHMENT: 0x821A;\n readonly NONE: 0;\n readonly FRAMEBUFFER_COMPLETE: 0x8CD5;\n readonly FRAMEBUFFER_INCOMPLETE_ATTACHMENT: 0x8CD6;\n readonly FRAMEBUFFER_INCOMPLETE_MISSING_ATTACHMENT: 0x8CD7;\n readonly FRAMEBUFFER_INCOMPLETE_DIMENSIONS: 0x8CD9;\n readonly FRAMEBUFFER_UNSUPPORTED: 0x8CDD;\n readonly FRAMEBUFFER_BINDING: 0x8CA6;\n readonly RENDERBUFFER_BINDING: 0x8CA7;\n readonly MAX_RENDERBUFFER_SIZE: 0x84E8;\n readonly INVALID_FRAMEBUFFER_OPERATION: 0x0506;\n readonly UNPACK_FLIP_Y_WEBGL: 0x9240;\n readonly UNPACK_PREMULTIPLY_ALPHA_WEBGL: 0x9241;\n readonly CONTEXT_LOST_WEBGL: 0x9242;\n readonly UNPACK_COLORSPACE_CONVERSION_WEBGL: 0x9243;\n readonly BROWSER_DEFAULT_WEBGL: 0x9244;\n}\n\ninterface WebGLRenderingContextOverloads {\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/bufferData) */\n bufferData(target: GLenum, size: GLsizeiptr, usage: GLenum): void;\n bufferData(target: GLenum, data: AllowSharedBufferSource | null, usage: GLenum): void;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/bufferSubData) */\n bufferSubData(target: GLenum, offset: GLintptr, data: AllowSharedBufferSource): void;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/compressedTexImage2D) */\n compressedTexImage2D(target: GLenum, level: GLint, internalformat: GLenum, width: GLsizei, height: GLsizei, border: GLint, data: ArrayBufferView<ArrayBufferLike>): void;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/compressedTexSubImage2D) */\n compressedTexSubImage2D(target: GLenum, level: GLint, xoffset: GLint, yoffset: GLint, width: GLsizei, height: GLsizei, format: GLenum, data: ArrayBufferView<ArrayBufferLike>): void;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/readPixels) */\n readPixels(x: GLint, y: GLint, width: GLsizei, height: GLsizei, format: GLenum, type: GLenum, pixels: ArrayBufferView<ArrayBufferLike> | null): void;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/texImage2D) */\n texImage2D(target: GLenum, level: GLint, internalformat: GLint, width: GLsizei, height: GLsizei, border: GLint, format: GLenum, type: GLenum, pixels: ArrayBufferView<ArrayBufferLike> | null): void;\n texImage2D(target: GLenum, level: GLint, internalformat: GLint, format: GLenum, type: GLenum, source: TexImageSource): void;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/texSubImage2D) */\n texSubImage2D(target: GLenum, level: GLint, xoffset: GLint, yoffset: GLint, width: GLsizei, height: GLsizei, format: GLenum, type: GLenum, pixels: ArrayBufferView<ArrayBufferLike> | null): void;\n texSubImage2D(target: GLenum, level: GLint, xoffset: GLint, yoffset: GLint, format: GLenum, type: GLenum, source: TexImageSource): void;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/uniform) */\n uniform1fv(location: WebGLUniformLocation | null, v: Float32List): void;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/uniform) */\n uniform1iv(location: WebGLUniformLocation | null, v: Int32List): void;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/uniform) */\n uniform2fv(location: WebGLUniformLocation | null, v: Float32List): void;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/uniform) */\n uniform2iv(location: WebGLUniformLocation | null, v: Int32List): void;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/uniform) */\n uniform3fv(location: WebGLUniformLocation | null, v: Float32List): void;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/uniform) */\n uniform3iv(location: WebGLUniformLocation | null, v: Int32List): void;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/uniform) */\n uniform4fv(location: WebGLUniformLocation | null, v: Float32List): void;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/uniform) */\n uniform4iv(location: WebGLUniformLocation | null, v: Int32List): void;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/uniformMatrix) */\n uniformMatrix2fv(location: WebGLUniformLocation | null, transpose: GLboolean, value: Float32List): void;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/uniformMatrix) */\n uniformMatrix3fv(location: WebGLUniformLocation | null, transpose: GLboolean, value: Float32List): void;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/uniformMatrix) */\n uniformMatrix4fv(location: WebGLUniformLocation | null, transpose: GLboolean, value: Float32List): void;\n}\n\n/**\n * The **`WebGLSampler`** interface is part of the WebGL 2 API and stores sampling parameters for WebGLTexture access inside of a shader.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLSampler)\n */\ninterface WebGLSampler {\n}\n\ndeclare var WebGLSampler: {\n prototype: WebGLSampler;\n new(): WebGLSampler;\n};\n\n/**\n * The **WebGLShader** is part of the WebGL API and can either be a vertex or a fragment shader.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLShader)\n */\ninterface WebGLShader {\n}\n\ndeclare var WebGLShader: {\n prototype: WebGLShader;\n new(): WebGLShader;\n};\n\n/**\n * The **WebGLShaderPrecisionFormat** interface is part of the WebGL API and represents the information returned by calling the WebGLRenderingContext.getShaderPrecisionFormat() method.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLShaderPrecisionFormat)\n */\ninterface WebGLShaderPrecisionFormat {\n /**\n * The read-only **`WebGLShaderPrecisionFormat.precision`** property returns the number of bits of precision that can be represented.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLShaderPrecisionFormat/precision)\n */\n readonly precision: GLint;\n /**\n * The read-only **`WebGLShaderPrecisionFormat.rangeMax`** property returns the base 2 log of the absolute value of the maximum value that can be represented.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLShaderPrecisionFormat/rangeMax)\n */\n readonly rangeMax: GLint;\n /**\n * The read-only **`WebGLShaderPrecisionFormat.rangeMin`** property returns the base 2 log of the absolute value of the minimum value that can be represented.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLShaderPrecisionFormat/rangeMin)\n */\n readonly rangeMin: GLint;\n}\n\ndeclare var WebGLShaderPrecisionFormat: {\n prototype: WebGLShaderPrecisionFormat;\n new(): WebGLShaderPrecisionFormat;\n};\n\n/**\n * The **`WebGLSync`** interface is part of the WebGL 2 API and is used to synchronize activities between the GPU and the application.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLSync)\n */\ninterface WebGLSync {\n}\n\ndeclare var WebGLSync: {\n prototype: WebGLSync;\n new(): WebGLSync;\n};\n\n/**\n * The **WebGLTexture** interface is part of the WebGL API and represents an opaque texture object providing storage and state for texturing operations.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLTexture)\n */\ninterface WebGLTexture {\n}\n\ndeclare var WebGLTexture: {\n prototype: WebGLTexture;\n new(): WebGLTexture;\n};\n\n/**\n * The **`WebGLTransformFeedback`** interface is part of the WebGL 2 API and enables transform feedback, which is the process of capturing primitives generated by vertex processing.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLTransformFeedback)\n */\ninterface WebGLTransformFeedback {\n}\n\ndeclare var WebGLTransformFeedback: {\n prototype: WebGLTransformFeedback;\n new(): WebGLTransformFeedback;\n};\n\n/**\n * The **WebGLUniformLocation** interface is part of the WebGL API and represents the location of a uniform variable in a shader program.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLUniformLocation)\n */\ninterface WebGLUniformLocation {\n}\n\ndeclare var WebGLUniformLocation: {\n prototype: WebGLUniformLocation;\n new(): WebGLUniformLocation;\n};\n\n/**\n * The **`WebGLVertexArrayObject`** interface is part of the WebGL 2 API, represents vertex array objects (VAOs) pointing to vertex array data, and provides names for different sets of vertex data.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLVertexArrayObject)\n */\ninterface WebGLVertexArrayObject {\n}\n\ndeclare var WebGLVertexArrayObject: {\n prototype: WebGLVertexArrayObject;\n new(): WebGLVertexArrayObject;\n};\n\n/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLVertexArrayObject) */\ninterface WebGLVertexArrayObjectOES {\n}\n\ninterface WebSocketEventMap {\n "close": CloseEvent;\n "error": Event;\n "message": MessageEvent;\n "open": Event;\n}\n\n/**\n * The `WebSocket` object provides the API for creating and managing a WebSocket connection to a server, as well as for sending and receiving data on the connection.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebSocket)\n */\ninterface WebSocket extends EventTarget {\n /**\n * The **`WebSocket.binaryType`** property controls the type of binary data being received over the WebSocket connection.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebSocket/binaryType)\n */\n binaryType: BinaryType;\n /**\n * The **`WebSocket.bufferedAmount`** read-only property returns the number of bytes of data that have been queued using calls to `send()` but not yet transmitted to the network.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebSocket/bufferedAmount)\n */\n readonly bufferedAmount: number;\n /**\n * The **`WebSocket.extensions`** read-only property returns the extensions selected by the server.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebSocket/extensions)\n */\n readonly extensions: string;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebSocket/close_event) */\n onclose: ((this: WebSocket, ev: CloseEvent) => any) | null;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebSocket/error_event) */\n onerror: ((this: WebSocket, ev: Event) => any) | null;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebSocket/message_event) */\n onmessage: ((this: WebSocket, ev: MessageEvent) => any) | null;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebSocket/open_event) */\n onopen: ((this: WebSocket, ev: Event) => any) | null;\n /**\n * The **`WebSocket.protocol`** read-only property returns the name of the sub-protocol the server selected; this will be one of the strings specified in the `protocols` parameter when creating the WebSocket object, or the empty string if no connection is established.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebSocket/protocol)\n */\n readonly protocol: string;\n /**\n * The **`WebSocket.readyState`** read-only property returns the current state of the WebSocket connection.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebSocket/readyState)\n */\n readonly readyState: number;\n /**\n * The **`WebSocket.url`** read-only property returns the absolute URL of the WebSocket as resolved by the constructor.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebSocket/url)\n */\n readonly url: string;\n /**\n * The **`WebSocket.close()`** method closes the already `CLOSED`, this method does nothing.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebSocket/close)\n */\n close(code?: number, reason?: string): void;\n /**\n * The **`WebSocket.send()`** method enqueues the specified data to be transmitted to the server over the WebSocket connection, increasing the value of `bufferedAmount` by the number of bytes needed to contain the data.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebSocket/send)\n */\n send(data: string | ArrayBufferLike | Blob | ArrayBufferView): void;\n readonly CONNECTING: 0;\n readonly OPEN: 1;\n readonly CLOSING: 2;\n readonly CLOSED: 3;\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 | URL, protocols?: string | string[]): WebSocket;\n readonly CONNECTING: 0;\n readonly OPEN: 1;\n readonly CLOSING: 2;\n readonly CLOSED: 3;\n};\n\n/**\n * The **`WebTransport`** interface of the WebTransport API provides functionality to enable a user agent to connect to an HTTP/3 server, initiate reliable and unreliable transport in either or both directions, and close the connection once it is no longer needed.\n * Available only in secure contexts.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransport)\n */\ninterface WebTransport {\n /**\n * The **`closed`** read-only property of the WebTransport interface returns a promise that resolves when the transport is closed.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransport/closed)\n */\n readonly closed: Promise<WebTransportCloseInfo>;\n /**\n * The **`datagrams`** read-only property of the WebTransport interface returns a WebTransportDatagramDuplexStream instance that can be used to send and receive datagrams — unreliable data transmission.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransport/datagrams)\n */\n readonly datagrams: WebTransportDatagramDuplexStream;\n /**\n * The **`incomingBidirectionalStreams`** read-only property of the WebTransport interface represents one or more bidirectional streams opened by the server.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransport/incomingBidirectionalStreams)\n */\n readonly incomingBidirectionalStreams: ReadableStream;\n /**\n * The **`incomingUnidirectionalStreams`** read-only property of the WebTransport interface represents one or more unidirectional streams opened by the server.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransport/incomingUnidirectionalStreams)\n */\n readonly incomingUnidirectionalStreams: ReadableStream;\n /**\n * The **`ready`** read-only property of the WebTransport interface returns a promise that resolves when the transport is ready to use.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransport/ready)\n */\n readonly ready: Promise<void>;\n /**\n * The **`close()`** method of the WebTransport interface closes an ongoing WebTransport session.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransport/close)\n */\n close(closeInfo?: WebTransportCloseInfo): void;\n /**\n * The **`createBidirectionalStream()`** method of the WebTransport interface asynchronously opens and returns a bidirectional stream.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransport/createBidirectionalStream)\n */\n createBidirectionalStream(options?: WebTransportSendStreamOptions): Promise<WebTransportBidirectionalStream>;\n /**\n * The **`createUnidirectionalStream()`** method of the WebTransport interface asynchronously opens a unidirectional stream.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransport/createUnidirectionalStream)\n */\n createUnidirectionalStream(options?: WebTransportSendStreamOptions): Promise<WritableStream>;\n}\n\ndeclare var WebTransport: {\n prototype: WebTransport;\n new(url: string | URL, options?: WebTransportOptions): WebTransport;\n};\n\n/**\n * The **`WebTransportBidirectionalStream`** interface of the WebTransport API represents a bidirectional stream created by a server or a client that can be used for reliable transport.\n * Available only in secure contexts.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransportBidirectionalStream)\n */\ninterface WebTransportBidirectionalStream {\n /**\n * The **`readable`** read-only property of the WebTransportBidirectionalStream interface returns a WebTransportReceiveStream instance that can be used to reliably read incoming data.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransportBidirectionalStream/readable)\n */\n readonly readable: ReadableStream;\n /**\n * The **`writable`** read-only property of the WebTransportBidirectionalStream interface returns a WebTransportSendStream instance that can be used to write outgoing data.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransportBidirectionalStream/writable)\n */\n readonly writable: WritableStream;\n}\n\ndeclare var WebTransportBidirectionalStream: {\n prototype: WebTransportBidirectionalStream;\n new(): WebTransportBidirectionalStream;\n};\n\n/**\n * The **`WebTransportDatagramDuplexStream`** interface of the WebTransport API represents a duplex stream that can be used for unreliable transport of datagrams between client and server.\n * Available only in secure contexts.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransportDatagramDuplexStream)\n */\ninterface WebTransportDatagramDuplexStream {\n /**\n * The **`incomingHighWaterMark`** property of the WebTransportDatagramDuplexStream interface gets or sets the high water mark for incoming chunks of data — this is the maximum size, in chunks, that the incoming ReadableStream\'s internal queue can reach before it is considered full.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransportDatagramDuplexStream/incomingHighWaterMark)\n */\n incomingHighWaterMark: number;\n /**\n * The **`incomingMaxAge`** property of the WebTransportDatagramDuplexStream interface gets or sets the maximum age for incoming datagrams, in milliseconds.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransportDatagramDuplexStream/incomingMaxAge)\n */\n incomingMaxAge: number | null;\n /**\n * The **`maxDatagramSize`** read-only property of the WebTransportDatagramDuplexStream interface returns the maximum allowable size of outgoing datagrams, in bytes, that can be written to WebTransportDatagramDuplexStream.writable.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransportDatagramDuplexStream/maxDatagramSize)\n */\n readonly maxDatagramSize: number;\n /**\n * The **`outgoingHighWaterMark`** property of the WebTransportDatagramDuplexStream interface gets or sets the high water mark for outgoing chunks of data — this is the maximum size, in chunks, that the outgoing WritableStream\'s internal queue can reach before it is considered full.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransportDatagramDuplexStream/outgoingHighWaterMark)\n */\n outgoingHighWaterMark: number;\n /**\n * The **`outgoingMaxAge`** property of the WebTransportDatagramDuplexStream interface gets or sets the maximum age for outgoing datagrams, in milliseconds.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransportDatagramDuplexStream/outgoingMaxAge)\n */\n outgoingMaxAge: number | null;\n /**\n * The **`readable`** read-only property of the WebTransportDatagramDuplexStream interface returns a ReadableStream instance that can be used to unreliably read incoming datagrams from the stream.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransportDatagramDuplexStream/readable)\n */\n readonly readable: ReadableStream;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransportDatagramDuplexStream/writable) */\n readonly writable: WritableStream;\n}\n\ndeclare var WebTransportDatagramDuplexStream: {\n prototype: WebTransportDatagramDuplexStream;\n new(): WebTransportDatagramDuplexStream;\n};\n\n/**\n * The **`WebTransportError`** interface of the WebTransport API represents an error related to the API, which can arise from server errors, network connection problems, or client-initiated abort operations (for example, arising from a WritableStream.abort() call).\n * Available only in secure contexts.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransportError)\n */\ninterface WebTransportError extends DOMException {\n /**\n * The **`source`** read-only property of the WebTransportError interface returns an enumerated value indicating the source of the error.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransportError/source)\n */\n readonly source: WebTransportErrorSource;\n /**\n * The **`streamErrorCode`** read-only property of the WebTransportError interface returns a number in the range 0-255 indicating the application protocol error code for this error, or `null` if one is not available.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransportError/streamErrorCode)\n */\n readonly streamErrorCode: number | null;\n}\n\ndeclare var WebTransportError: {\n prototype: WebTransportError;\n new(message?: string, options?: WebTransportErrorOptions): WebTransportError;\n};\n\n/**\n * The `WindowClient` interface of the ServiceWorker API represents the scope of a service worker client that is a document in a browsing context, controlled by an active worker.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WindowClient)\n */\ninterface WindowClient extends Client {\n /**\n * The **`focused`** read-only property of the the current client has focus.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WindowClient/focused)\n */\n readonly focused: boolean;\n /**\n * The **`visibilityState`** read-only property of the This value can be one of `\'hidden\'`, `\'visible\'`, or `\'prerender\'`.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WindowClient/visibilityState)\n */\n readonly visibilityState: DocumentVisibilityState;\n /**\n * The **`focus()`** method of the WindowClient interface gives user input focus to the current client and returns a ```js-nolint focus() ``` None.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WindowClient/focus)\n */\n focus(): Promise<WindowClient>;\n /**\n * The **`navigate()`** method of the WindowClient interface loads a specified URL into a controlled client page then returns a ```js-nolint navigate(url) ``` - `url` - : The location to navigate to.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WindowClient/navigate)\n */\n navigate(url: string | URL): Promise<WindowClient | null>;\n}\n\ndeclare var WindowClient: {\n prototype: WindowClient;\n new(): WindowClient;\n};\n\ninterface WindowOrWorkerGlobalScope {\n /**\n * Available only in secure contexts.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/caches)\n */\n readonly caches: CacheStorage;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/crossOriginIsolated) */\n readonly crossOriginIsolated: boolean;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/crypto) */\n readonly crypto: Crypto;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/indexedDB) */\n readonly indexedDB: IDBFactory;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/isSecureContext) */\n readonly isSecureContext: boolean;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/origin) */\n readonly origin: string;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/performance) */\n readonly performance: Performance;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/atob) */\n atob(data: string): string;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/btoa) */\n btoa(data: string): string;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/clearInterval) */\n clearInterval(id: number | undefined): void;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/clearTimeout) */\n clearTimeout(id: number | undefined): void;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/createImageBitmap) */\n createImageBitmap(image: ImageBitmapSource, options?: ImageBitmapOptions): Promise<ImageBitmap>;\n createImageBitmap(image: ImageBitmapSource, sx: number, sy: number, sw: number, sh: number, options?: ImageBitmapOptions): Promise<ImageBitmap>;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/fetch) */\n fetch(input: RequestInfo | URL, init?: RequestInit): Promise<Response>;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/queueMicrotask) */\n queueMicrotask(callback: VoidFunction): void;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/reportError) */\n reportError(e: any): void;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/setInterval) */\n setInterval(handler: TimerHandler, timeout?: number, ...arguments: any[]): number;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/setTimeout) */\n setTimeout(handler: TimerHandler, timeout?: number, ...arguments: any[]): number;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/structuredClone) */\n structuredClone<T = any>(value: T, options?: StructuredSerializeOptions): T;\n}\n\ninterface WorkerEventMap extends AbstractWorkerEventMap, MessageEventTargetEventMap {\n}\n\n/**\n * The **`Worker`** interface of the Web Workers API represents a background task that can be created via script, which can send messages back to its creator.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Worker)\n */\ninterface Worker extends EventTarget, AbstractWorker, MessageEventTarget<Worker> {\n /**\n * The **`postMessage()`** method of the Worker interface sends a message to the worker.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Worker/postMessage)\n */\n postMessage(message: any, transfer: Transferable[]): void;\n postMessage(message: any, options?: StructuredSerializeOptions): void;\n /**\n * The **`terminate()`** method of the Worker interface immediately terminates the Worker.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Worker/terminate)\n */\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(scriptURL: string | URL, options?: WorkerOptions): Worker;\n};\n\ninterface WorkerGlobalScopeEventMap {\n "error": ErrorEvent;\n "languagechange": Event;\n "offline": Event;\n "online": Event;\n "rejectionhandled": PromiseRejectionEvent;\n "unhandledrejection": PromiseRejectionEvent;\n}\n\n/**\n * The **`WorkerGlobalScope`** interface of the Web Workers API is an interface representing the scope of any worker.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WorkerGlobalScope)\n */\ninterface WorkerGlobalScope extends EventTarget, FontFaceSource, WindowOrWorkerGlobalScope {\n /**\n * The **`location`** read-only property of the WorkerGlobalScope interface returns the WorkerLocation associated with the worker.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WorkerGlobalScope/location)\n */\n readonly location: WorkerLocation;\n /**\n * The **`navigator`** read-only property of the WorkerGlobalScope interface returns the WorkerNavigator associated with the worker.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WorkerGlobalScope/navigator)\n */\n readonly navigator: WorkerNavigator;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WorkerGlobalScope/error_event) */\n onerror: ((this: WorkerGlobalScope, ev: ErrorEvent) => any) | null;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WorkerGlobalScope/languagechange_event) */\n onlanguagechange: ((this: WorkerGlobalScope, ev: Event) => any) | null;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WorkerGlobalScope/offline_event) */\n onoffline: ((this: WorkerGlobalScope, ev: Event) => any) | null;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WorkerGlobalScope/online_event) */\n ononline: ((this: WorkerGlobalScope, ev: Event) => any) | null;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WorkerGlobalScope/rejectionhandled_event) */\n onrejectionhandled: ((this: WorkerGlobalScope, ev: PromiseRejectionEvent) => any) | null;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WorkerGlobalScope/unhandledrejection_event) */\n onunhandledrejection: ((this: WorkerGlobalScope, ev: PromiseRejectionEvent) => any) | null;\n /**\n * The **`self`** read-only property of the WorkerGlobalScope interface returns a reference to the `WorkerGlobalScope` itself.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WorkerGlobalScope/self)\n */\n readonly self: WorkerGlobalScope & typeof globalThis;\n /**\n * The **`importScripts()`** method of the WorkerGlobalScope interface synchronously imports one or more scripts into the worker\'s scope.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WorkerGlobalScope/importScripts)\n */\n importScripts(...urls: (string | URL)[]): void;\n addEventListener<K extends keyof WorkerGlobalScopeEventMap>(type: K, listener: (this: WorkerGlobalScope, ev: WorkerGlobalScopeEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n removeEventListener<K extends keyof WorkerGlobalScopeEventMap>(type: K, listener: (this: WorkerGlobalScope, ev: WorkerGlobalScopeEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\ndeclare var WorkerGlobalScope: {\n prototype: WorkerGlobalScope;\n new(): WorkerGlobalScope;\n};\n\n/**\n * The **`WorkerLocation`** interface defines the absolute location of the script executed by the Worker.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WorkerLocation)\n */\ninterface WorkerLocation {\n /**\n * The **`hash`** property of a WorkerLocation object returns the URL.hash part of the worker\'s location.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WorkerLocation/hash)\n */\n readonly hash: string;\n /**\n * The **`host`** property of a WorkerLocation object returns the URL.host part of the worker\'s location.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WorkerLocation/host)\n */\n readonly host: string;\n /**\n * The **`hostname`** property of a WorkerLocation object returns the URL.hostname part of the worker\'s location.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WorkerLocation/hostname)\n */\n readonly hostname: string;\n /**\n * The **`href`** property of a WorkerLocation object returns a string containing the serialized URL for the worker\'s location.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WorkerLocation/href)\n */\n readonly href: string;\n toString(): string;\n /**\n * The **`origin`** property of a WorkerLocation object returns the worker\'s URL.origin.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WorkerLocation/origin)\n */\n readonly origin: string;\n /**\n * The **`pathname`** property of a WorkerLocation object returns the URL.pathname part of the worker\'s location.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WorkerLocation/pathname)\n */\n readonly pathname: string;\n /**\n * The **`port`** property of a WorkerLocation object returns the URL.port part of the worker\'s location.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WorkerLocation/port)\n */\n readonly port: string;\n /**\n * The **`protocol`** property of a WorkerLocation object returns the URL.protocol part of the worker\'s location.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WorkerLocation/protocol)\n */\n readonly protocol: string;\n /**\n * The **`search`** property of a WorkerLocation object returns the URL.search part of the worker\'s location.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WorkerLocation/search)\n */\n readonly search: string;\n}\n\ndeclare var WorkerLocation: {\n prototype: WorkerLocation;\n new(): WorkerLocation;\n};\n\n/**\n * The **`WorkerNavigator`** interface represents a subset of the Navigator interface allowed to be accessed from a Worker.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WorkerNavigator)\n */\ninterface WorkerNavigator extends NavigatorBadge, NavigatorConcurrentHardware, NavigatorID, NavigatorLanguage, NavigatorLocks, NavigatorOnLine, NavigatorStorage {\n /**\n * The read-only **`mediaCapabilities`** property of the WorkerNavigator interface references a MediaCapabilities object that can expose information about the decoding and encoding capabilities for a given format and output capabilities (as defined by the Media Capabilities API).\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WorkerNavigator/mediaCapabilities)\n */\n readonly mediaCapabilities: MediaCapabilities;\n /**\n * The **`permissions`** read-only property of the WorkerNavigator interface returns a Permissions object that can be used to query and update permission status of APIs covered by the Permissions API.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WorkerNavigator/permissions)\n */\n readonly permissions: Permissions;\n /**\n * The **`serviceWorker`** read-only property of the WorkerNavigator interface returns the ServiceWorkerContainer object for the associated document, which provides access to registration, removal, upgrade, and communication with the ServiceWorker.\n * Available only in secure contexts.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WorkerNavigator/serviceWorker)\n */\n readonly serviceWorker: ServiceWorkerContainer;\n}\n\ndeclare var WorkerNavigator: {\n prototype: WorkerNavigator;\n new(): WorkerNavigator;\n};\n\n/**\n * The **`WritableStream`** interface of the Streams API provides a standard abstraction for writing streaming data to a destination, known as a sink.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WritableStream)\n */\ninterface WritableStream<W = any> {\n /**\n * The **`locked`** read-only property of the WritableStream interface returns a boolean indicating whether the `WritableStream` is locked to a writer.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WritableStream/locked)\n */\n readonly locked: boolean;\n /**\n * The **`abort()`** method of the WritableStream interface aborts the stream, signaling that the producer can no longer successfully write to the stream and it is to be immediately moved to an error state, with any queued writes discarded.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WritableStream/abort)\n */\n abort(reason?: any): Promise<void>;\n /**\n * The **`close()`** method of the WritableStream interface closes the associated stream.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WritableStream/close)\n */\n close(): Promise<void>;\n /**\n * The **`getWriter()`** method of the WritableStream interface returns a new instance of WritableStreamDefaultWriter and locks the stream to that instance.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WritableStream/getWriter)\n */\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/**\n * The **`WritableStreamDefaultController`** interface of the Streams API represents a controller allowing control of a WritableStream\'s state.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WritableStreamDefaultController)\n */\ninterface WritableStreamDefaultController {\n /**\n * The read-only **`signal`** property of the WritableStreamDefaultController interface returns the AbortSignal associated with the controller.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WritableStreamDefaultController/signal)\n */\n readonly signal: AbortSignal;\n /**\n * The **`error()`** method of the with the associated stream to error.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WritableStreamDefaultController/error)\n */\n error(e?: any): void;\n}\n\ndeclare var WritableStreamDefaultController: {\n prototype: WritableStreamDefaultController;\n new(): WritableStreamDefaultController;\n};\n\n/**\n * The **`WritableStreamDefaultWriter`** interface of the Streams API 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.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WritableStreamDefaultWriter)\n */\ninterface WritableStreamDefaultWriter<W = any> {\n /**\n * The **`closed`** read-only property of the the stream errors or the writer\'s lock is released.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WritableStreamDefaultWriter/closed)\n */\n readonly closed: Promise<void>;\n /**\n * The **`desiredSize`** read-only property of the to fill the stream\'s internal queue.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WritableStreamDefaultWriter/desiredSize)\n */\n readonly desiredSize: number | null;\n /**\n * The **`ready`** read-only property of the that resolves when the desired size of the stream\'s internal queue transitions from non-positive to positive, signaling that it is no longer applying backpressure.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WritableStreamDefaultWriter/ready)\n */\n readonly ready: Promise<void>;\n /**\n * The **`abort()`** method of the the producer can no longer successfully write to the stream and it is to be immediately moved to an error state, with any queued writes discarded.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WritableStreamDefaultWriter/abort)\n */\n abort(reason?: any): Promise<void>;\n /**\n * The **`close()`** method of the stream.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WritableStreamDefaultWriter/close)\n */\n close(): Promise<void>;\n /**\n * The **`releaseLock()`** method of the corresponding stream.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WritableStreamDefaultWriter/releaseLock)\n */\n releaseLock(): void;\n /**\n * The **`write()`** method of the operation.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WritableStreamDefaultWriter/write)\n */\n write(chunk?: W): Promise<void>;\n}\n\ndeclare var WritableStreamDefaultWriter: {\n prototype: WritableStreamDefaultWriter;\n new<W = any>(stream: WritableStream<W>): WritableStreamDefaultWriter<W>;\n};\n\ninterface XMLHttpRequestEventMap extends XMLHttpRequestEventTargetEventMap {\n "readystatechange": Event;\n}\n\n/**\n * `XMLHttpRequest` (XHR) objects are used to interact with servers.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/XMLHttpRequest)\n */\ninterface XMLHttpRequest extends XMLHttpRequestEventTarget {\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/XMLHttpRequest/readystatechange_event) */\n onreadystatechange: ((this: XMLHttpRequest, ev: Event) => any) | null;\n /**\n * The **XMLHttpRequest.readyState** property returns the state an XMLHttpRequest client is in.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/XMLHttpRequest/readyState)\n */\n readonly readyState: number;\n /**\n * The XMLHttpRequest **`response`** property returns the response\'s body content as an ArrayBuffer, a Blob, a Document, a JavaScript Object, or a string, depending on the value of the request\'s XMLHttpRequest.responseType property.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/XMLHttpRequest/response)\n */\n readonly response: any;\n /**\n * The read-only XMLHttpRequest property **`responseText`** returns the text received from a server following a request being sent.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/XMLHttpRequest/responseText)\n */\n readonly responseText: string;\n /**\n * The XMLHttpRequest property **`responseType`** is an enumerated string value specifying the type of data contained in the response.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/XMLHttpRequest/responseType)\n */\n responseType: XMLHttpRequestResponseType;\n /**\n * The read-only **`XMLHttpRequest.responseURL`** property returns the serialized URL of the response or the empty string if the URL is `null`.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/XMLHttpRequest/responseURL)\n */\n readonly responseURL: string;\n /**\n * The read-only **`XMLHttpRequest.status`** property returns the numerical HTTP status code of the `XMLHttpRequest`\'s response.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/XMLHttpRequest/status)\n */\n readonly status: number;\n /**\n * The read-only **`XMLHttpRequest.statusText`** property returns a string containing the response\'s status message as returned by the HTTP server.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/XMLHttpRequest/statusText)\n */\n readonly statusText: string;\n /**\n * The **`XMLHttpRequest.timeout`** property is an `unsigned long` representing the number of milliseconds a request can take before automatically being terminated.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/XMLHttpRequest/timeout)\n */\n timeout: number;\n /**\n * The XMLHttpRequest `upload` property returns an XMLHttpRequestUpload object that can be observed to monitor an upload\'s progress.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/XMLHttpRequest/upload)\n */\n readonly upload: XMLHttpRequestUpload;\n /**\n * The **`XMLHttpRequest.withCredentials`** property is a boolean value that indicates whether or not cross-site `Access-Control` requests should be made using credentials such as cookies, authentication headers or TLS client certificates.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/XMLHttpRequest/withCredentials)\n */\n withCredentials: boolean;\n /**\n * The **`XMLHttpRequest.abort()`** method aborts the request if it has already been sent.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/XMLHttpRequest/abort)\n */\n abort(): void;\n /**\n * The XMLHttpRequest method **`getAllResponseHeaders()`** returns all the response headers, separated by CRLF, as a string, or returns `null` if no response has been received.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/XMLHttpRequest/getAllResponseHeaders)\n */\n getAllResponseHeaders(): string;\n /**\n * The XMLHttpRequest method **`getResponseHeader()`** returns the string containing the text of a particular header\'s value.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/XMLHttpRequest/getResponseHeader)\n */\n getResponseHeader(name: string): string | null;\n /**\n * The XMLHttpRequest method **`open()`** initializes a newly-created request, or re-initializes an existing one.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/XMLHttpRequest/open)\n */\n open(method: string, url: string | URL): void;\n open(method: string, url: string | URL, async: boolean, username?: string | null, password?: string | null): void;\n /**\n * The XMLHttpRequest method **`overrideMimeType()`** specifies a MIME type other than the one provided by the server to be used instead when interpreting the data being transferred in a request.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/XMLHttpRequest/overrideMimeType)\n */\n overrideMimeType(mime: string): void;\n /**\n * The XMLHttpRequest method **`send()`** sends the request to the server.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/XMLHttpRequest/send)\n */\n send(body?: XMLHttpRequestBodyInit | null): void;\n /**\n * The XMLHttpRequest method **`setRequestHeader()`** sets the value of an HTTP request header.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/XMLHttpRequest/setRequestHeader)\n */\n setRequestHeader(name: string, value: string): void;\n readonly UNSENT: 0;\n readonly OPENED: 1;\n readonly HEADERS_RECEIVED: 2;\n readonly LOADING: 3;\n readonly DONE: 4;\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 UNSENT: 0;\n readonly OPENED: 1;\n readonly HEADERS_RECEIVED: 2;\n readonly LOADING: 3;\n readonly DONE: 4;\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\n/**\n * `XMLHttpRequestEventTarget` is the interface that describes the event handlers shared on XMLHttpRequest and XMLHttpRequestUpload.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/XMLHttpRequestEventTarget)\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\n/**\n * The **`XMLHttpRequestUpload`** interface represents the upload process for a specific XMLHttpRequest.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/XMLHttpRequestUpload)\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\ndeclare namespace WebAssembly {\n interface CompileError extends Error {\n }\n\n var CompileError: {\n prototype: CompileError;\n new(message?: string): CompileError;\n (message?: string): CompileError;\n };\n\n /** [MDN Reference](https://developer.mozilla.org/docs/WebAssembly/Reference/JavaScript_interface/Global) */\n interface Global<T extends ValueType = ValueType> {\n value: ValueTypeMap[T];\n valueOf(): ValueTypeMap[T];\n }\n\n var Global: {\n prototype: Global;\n new<T extends ValueType = ValueType>(descriptor: GlobalDescriptor<T>, v?: ValueTypeMap[T]): Global<T>;\n };\n\n /** [MDN Reference](https://developer.mozilla.org/docs/WebAssembly/Reference/JavaScript_interface/Instance) */\n interface Instance {\n /** [MDN Reference](https://developer.mozilla.org/docs/WebAssembly/Reference/JavaScript_interface/Instance/exports) */\n readonly exports: Exports;\n }\n\n var Instance: {\n prototype: Instance;\n new(module: Module, importObject?: Imports): Instance;\n };\n\n interface LinkError extends Error {\n }\n\n var LinkError: {\n prototype: LinkError;\n new(message?: string): LinkError;\n (message?: string): LinkError;\n };\n\n /** [MDN Reference](https://developer.mozilla.org/docs/WebAssembly/Reference/JavaScript_interface/Memory) */\n interface Memory {\n /** [MDN Reference](https://developer.mozilla.org/docs/WebAssembly/Reference/JavaScript_interface/Memory/buffer) */\n readonly buffer: ArrayBuffer;\n /** [MDN Reference](https://developer.mozilla.org/docs/WebAssembly/Reference/JavaScript_interface/Memory/grow) */\n grow(delta: number): number;\n }\n\n var Memory: {\n prototype: Memory;\n new(descriptor: MemoryDescriptor): Memory;\n };\n\n /** [MDN Reference](https://developer.mozilla.org/docs/WebAssembly/Reference/JavaScript_interface/Module) */\n interface Module {\n }\n\n var Module: {\n prototype: Module;\n new(bytes: BufferSource): Module;\n /** [MDN Reference](https://developer.mozilla.org/docs/WebAssembly/Reference/JavaScript_interface/Module/customSections_static) */\n customSections(moduleObject: Module, sectionName: string): ArrayBuffer[];\n /** [MDN Reference](https://developer.mozilla.org/docs/WebAssembly/Reference/JavaScript_interface/Module/exports_static) */\n exports(moduleObject: Module): ModuleExportDescriptor[];\n /** [MDN Reference](https://developer.mozilla.org/docs/WebAssembly/Reference/JavaScript_interface/Module/imports_static) */\n imports(moduleObject: Module): ModuleImportDescriptor[];\n };\n\n interface RuntimeError extends Error {\n }\n\n var RuntimeError: {\n prototype: RuntimeError;\n new(message?: string): RuntimeError;\n (message?: string): RuntimeError;\n };\n\n /** [MDN Reference](https://developer.mozilla.org/docs/WebAssembly/Reference/JavaScript_interface/Table) */\n interface Table {\n /** [MDN Reference](https://developer.mozilla.org/docs/WebAssembly/Reference/JavaScript_interface/Table/length) */\n readonly length: number;\n /** [MDN Reference](https://developer.mozilla.org/docs/WebAssembly/Reference/JavaScript_interface/Table/get) */\n get(index: number): any;\n /** [MDN Reference](https://developer.mozilla.org/docs/WebAssembly/Reference/JavaScript_interface/Table/grow) */\n grow(delta: number, value?: any): number;\n /** [MDN Reference](https://developer.mozilla.org/docs/WebAssembly/Reference/JavaScript_interface/Table/set) */\n set(index: number, value?: any): void;\n }\n\n var Table: {\n prototype: Table;\n new(descriptor: TableDescriptor, value?: any): Table;\n };\n\n interface GlobalDescriptor<T extends ValueType = ValueType> {\n mutable?: boolean;\n value: T;\n }\n\n interface MemoryDescriptor {\n initial: number;\n maximum?: number;\n shared?: boolean;\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 ValueTypeMap {\n anyfunc: Function;\n externref: any;\n f32: number;\n f64: number;\n i32: number;\n i64: bigint;\n v128: never;\n }\n\n interface WebAssemblyInstantiatedSource {\n instance: Instance;\n module: Module;\n }\n\n type ImportExportKind = "function" | "global" | "memory" | "table";\n type TableKind = "anyfunc" | "externref";\n type ExportValue = Function | Global | Memory | Table;\n type Exports = Record<string, ExportValue>;\n type ImportValue = ExportValue | number;\n type Imports = Record<string, ModuleImports>;\n type ModuleImports = Record<string, ImportValue>;\n type ValueType = keyof ValueTypeMap;\n /** [MDN Reference](https://developer.mozilla.org/docs/WebAssembly/Reference/JavaScript_interface/compile_static) */\n function compile(bytes: BufferSource): Promise<Module>;\n /** [MDN Reference](https://developer.mozilla.org/docs/WebAssembly/Reference/JavaScript_interface/compileStreaming_static) */\n function compileStreaming(source: Response | PromiseLike<Response>): Promise<Module>;\n /** [MDN Reference](https://developer.mozilla.org/docs/WebAssembly/Reference/JavaScript_interface/instantiate_static) */\n function instantiate(bytes: BufferSource, importObject?: Imports): Promise<WebAssemblyInstantiatedSource>;\n function instantiate(moduleObject: Module, importObject?: Imports): Promise<Instance>;\n /** [MDN Reference](https://developer.mozilla.org/docs/WebAssembly/Reference/JavaScript_interface/instantiateStreaming_static) */\n function instantiateStreaming(source: Response | PromiseLike<Response>, importObject?: Imports): Promise<WebAssemblyInstantiatedSource>;\n /** [MDN Reference](https://developer.mozilla.org/docs/WebAssembly/Reference/JavaScript_interface/validate_static) */\n function validate(bytes: BufferSource): boolean;\n}\n\n/** The **`console`** object provides access to the debugging console (e.g., the Web console in Firefox). */\n/**\n * The **`console`** object provides access to the debugging console (e.g., the Web console in Firefox).\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/console)\n */\ninterface Console {\n /**\n * The **`console.assert()`** static method writes an error message to the console if the assertion is false.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/console/assert_static)\n */\n assert(condition?: boolean, ...data: any[]): void;\n /**\n * The **`console.clear()`** static method clears the console if possible.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/console/clear_static)\n */\n clear(): void;\n /**\n * The **`console.count()`** static method logs the number of times that this particular call to `count()` has been called.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/console/count_static)\n */\n count(label?: string): void;\n /**\n * The **`console.countReset()`** static method resets counter used with console/count_static.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/console/countReset_static)\n */\n countReset(label?: string): void;\n /**\n * The **`console.debug()`** static method outputs a message to the console at the \'debug\' log level.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/console/debug_static)\n */\n debug(...data: any[]): void;\n /**\n * The **`console.dir()`** static method displays a list of the properties of the specified JavaScript object.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/console/dir_static)\n */\n dir(item?: any, options?: any): void;\n /**\n * The **`console.dirxml()`** static method displays an interactive tree of the descendant elements of the specified XML/HTML element.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/console/dirxml_static)\n */\n dirxml(...data: any[]): void;\n /**\n * The **`console.error()`** static method outputs a message to the console at the \'error\' log level.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/console/error_static)\n */\n error(...data: any[]): void;\n /**\n * The **`console.group()`** static method creates a new inline group in the Web console log, causing any subsequent console messages to be indented by an additional level, until console/groupEnd_static is called.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/console/group_static)\n */\n group(...data: any[]): void;\n /**\n * The **`console.groupCollapsed()`** static method creates a new inline group in the console.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/console/groupCollapsed_static)\n */\n groupCollapsed(...data: any[]): void;\n /**\n * The **`console.groupEnd()`** static method exits the current inline group in the console.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/console/groupEnd_static)\n */\n groupEnd(): void;\n /**\n * The **`console.info()`** static method outputs a message to the console at the \'info\' log level.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/console/info_static)\n */\n info(...data: any[]): void;\n /**\n * The **`console.log()`** static method outputs a message to the console.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/console/log_static)\n */\n log(...data: any[]): void;\n /**\n * The **`console.table()`** static method displays tabular data as a table.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/console/table_static)\n */\n table(tabularData?: any, properties?: string[]): void;\n /**\n * The **`console.time()`** static method starts a timer you can use to track how long an operation takes.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/console/time_static)\n */\n time(label?: string): void;\n /**\n * The **`console.timeEnd()`** static method stops a timer that was previously started by calling console/time_static.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/console/timeEnd_static)\n */\n timeEnd(label?: string): void;\n /**\n * The **`console.timeLog()`** static method logs the current value of a timer that was previously started by calling console/time_static.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/console/timeLog_static)\n */\n timeLog(label?: string, ...data: any[]): void;\n timeStamp(label?: string): void;\n /**\n * The **`console.trace()`** static method outputs a stack trace to the console.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/console/trace_static)\n */\n trace(...data: any[]): void;\n /**\n * The **`console.warn()`** static method outputs a warning message to the console at the \'warning\' log level.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/console/warn_static)\n */\n warn(...data: any[]): void;\n}\n\ndeclare var console: Console;\n\ninterface AudioDataOutputCallback {\n (output: AudioData): void;\n}\n\ninterface EncodedAudioChunkOutputCallback {\n (output: EncodedAudioChunk, metadata?: EncodedAudioChunkMetadata): void;\n}\n\ninterface EncodedVideoChunkOutputCallback {\n (chunk: EncodedVideoChunk, metadata?: EncodedVideoChunkMetadata): void;\n}\n\ninterface FrameRequestCallback {\n (time: DOMHighResTimeStamp): void;\n}\n\ninterface LockGrantedCallback<T> {\n (lock: Lock | null): T;\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 QueuingStrategySize<T = any> {\n (chunk: T): number;\n}\n\ninterface ReportingObserverCallback {\n (reports: Report[], observer: ReportingObserver): void;\n}\n\ninterface TransformerFlushCallback<O> {\n (controller: TransformStreamDefaultController<O>): void | PromiseLike<void>;\n}\n\ninterface TransformerStartCallback<O> {\n (controller: TransformStreamDefaultController<O>): any;\n}\n\ninterface TransformerTransformCallback<I, O> {\n (chunk: I, controller: TransformStreamDefaultController<O>): void | PromiseLike<void>;\n}\n\ninterface UnderlyingSinkAbortCallback {\n (reason?: any): void | PromiseLike<void>;\n}\n\ninterface UnderlyingSinkCloseCallback {\n (): void | PromiseLike<void>;\n}\n\ninterface UnderlyingSinkStartCallback {\n (controller: WritableStreamDefaultController): any;\n}\n\ninterface UnderlyingSinkWriteCallback<W> {\n (chunk: W, controller: WritableStreamDefaultController): void | PromiseLike<void>;\n}\n\ninterface UnderlyingSourceCancelCallback {\n (reason?: any): void | PromiseLike<void>;\n}\n\ninterface UnderlyingSourcePullCallback<R> {\n (controller: ReadableStreamController<R>): void | PromiseLike<void>;\n}\n\ninterface UnderlyingSourceStartCallback<R> {\n (controller: ReadableStreamController<R>): any;\n}\n\ninterface VideoFrameOutputCallback {\n (output: VideoFrame): void;\n}\n\ninterface VoidFunction {\n (): void;\n}\n\ninterface WebCodecsErrorCallback {\n (error: DOMException): void;\n}\n\n/**\n * The **`name`** read-only property of the the Worker.Worker constructor can pass to get a reference to the DedicatedWorkerGlobalScope.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DedicatedWorkerGlobalScope/name)\n */\ndeclare var name: string;\n/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DedicatedWorkerGlobalScope/rtctransform_event) */\ndeclare var onrtctransform: ((this: DedicatedWorkerGlobalScope, ev: RTCTransformEvent) => any) | null;\n/**\n * The **`close()`** method of the DedicatedWorkerGlobalScope interface discards any tasks queued in the `DedicatedWorkerGlobalScope`\'s event loop, effectively closing this particular scope.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DedicatedWorkerGlobalScope/close)\n */\ndeclare function close(): void;\n/**\n * The **`postMessage()`** method of the DedicatedWorkerGlobalScope interface sends a message to the main thread that spawned it.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DedicatedWorkerGlobalScope/postMessage)\n */\ndeclare function postMessage(message: any, transfer: Transferable[]): void;\ndeclare function postMessage(message: any, options?: StructuredSerializeOptions): void;\n/**\n * The **`dispatchEvent()`** method of the EventTarget sends an Event to the object, (synchronously) invoking the affected event listeners in the appropriate order.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/EventTarget/dispatchEvent)\n */\ndeclare function dispatchEvent(event: Event): boolean;\n/**\n * The **`location`** read-only property of the WorkerGlobalScope interface returns the WorkerLocation associated with the worker.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WorkerGlobalScope/location)\n */\ndeclare var location: WorkerLocation;\n/**\n * The **`navigator`** read-only property of the WorkerGlobalScope interface returns the WorkerNavigator associated with the worker.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WorkerGlobalScope/navigator)\n */\ndeclare var navigator: WorkerNavigator;\n/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WorkerGlobalScope/error_event) */\ndeclare var onerror: ((this: DedicatedWorkerGlobalScope, ev: ErrorEvent) => any) | null;\n/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WorkerGlobalScope/languagechange_event) */\ndeclare var onlanguagechange: ((this: DedicatedWorkerGlobalScope, ev: Event) => any) | null;\n/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WorkerGlobalScope/offline_event) */\ndeclare var onoffline: ((this: DedicatedWorkerGlobalScope, ev: Event) => any) | null;\n/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WorkerGlobalScope/online_event) */\ndeclare var ononline: ((this: DedicatedWorkerGlobalScope, ev: Event) => any) | null;\n/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WorkerGlobalScope/rejectionhandled_event) */\ndeclare var onrejectionhandled: ((this: DedicatedWorkerGlobalScope, ev: PromiseRejectionEvent) => any) | null;\n/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WorkerGlobalScope/unhandledrejection_event) */\ndeclare var onunhandledrejection: ((this: DedicatedWorkerGlobalScope, ev: PromiseRejectionEvent) => any) | null;\n/**\n * The **`self`** read-only property of the WorkerGlobalScope interface returns a reference to the `WorkerGlobalScope` itself.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WorkerGlobalScope/self)\n */\ndeclare var self: WorkerGlobalScope & typeof globalThis;\n/**\n * The **`importScripts()`** method of the WorkerGlobalScope interface synchronously imports one or more scripts into the worker\'s scope.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WorkerGlobalScope/importScripts)\n */\ndeclare function importScripts(...urls: (string | URL)[]): void;\n/**\n * The **`dispatchEvent()`** method of the EventTarget sends an Event to the object, (synchronously) invoking the affected event listeners in the appropriate order.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/EventTarget/dispatchEvent)\n */\ndeclare function dispatchEvent(event: Event): boolean;\n/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/fonts) */\ndeclare var fonts: FontFaceSet;\n/**\n * Available only in secure contexts.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/caches)\n */\ndeclare var caches: CacheStorage;\n/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/crossOriginIsolated) */\ndeclare var crossOriginIsolated: boolean;\n/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/crypto) */\ndeclare var crypto: Crypto;\n/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/indexedDB) */\ndeclare var indexedDB: IDBFactory;\n/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/isSecureContext) */\ndeclare var isSecureContext: boolean;\n/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/origin) */\ndeclare var origin: string;\n/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/performance) */\ndeclare var performance: Performance;\n/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/atob) */\ndeclare function atob(data: string): string;\n/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/btoa) */\ndeclare function btoa(data: string): string;\n/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/clearInterval) */\ndeclare function clearInterval(id: number | undefined): void;\n/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/clearTimeout) */\ndeclare function clearTimeout(id: number | undefined): void;\n/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/createImageBitmap) */\ndeclare function createImageBitmap(image: ImageBitmapSource, options?: ImageBitmapOptions): Promise<ImageBitmap>;\ndeclare function createImageBitmap(image: ImageBitmapSource, sx: number, sy: number, sw: number, sh: number, options?: ImageBitmapOptions): Promise<ImageBitmap>;\n/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/fetch) */\ndeclare function fetch(input: RequestInfo | URL, init?: RequestInit): Promise<Response>;\n/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/queueMicrotask) */\ndeclare function queueMicrotask(callback: VoidFunction): void;\n/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/reportError) */\ndeclare function reportError(e: any): void;\n/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/setInterval) */\ndeclare function setInterval(handler: TimerHandler, timeout?: number, ...arguments: any[]): number;\n/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/setTimeout) */\ndeclare function setTimeout(handler: TimerHandler, timeout?: number, ...arguments: any[]): number;\n/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/structuredClone) */\ndeclare function structuredClone<T = any>(value: T, options?: StructuredSerializeOptions): T;\n/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DedicatedWorkerGlobalScope/cancelAnimationFrame) */\ndeclare function cancelAnimationFrame(handle: number): void;\n/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DedicatedWorkerGlobalScope/requestAnimationFrame) */\ndeclare function requestAnimationFrame(callback: FrameRequestCallback): number;\n/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DedicatedWorkerGlobalScope/message_event) */\ndeclare var onmessage: ((this: DedicatedWorkerGlobalScope, ev: MessageEvent) => any) | null;\n/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DedicatedWorkerGlobalScope/messageerror_event) */\ndeclare var onmessageerror: ((this: DedicatedWorkerGlobalScope, ev: MessageEvent) => any) | null;\ndeclare function addEventListener<K extends keyof DedicatedWorkerGlobalScopeEventMap>(type: K, listener: (this: DedicatedWorkerGlobalScope, ev: DedicatedWorkerGlobalScopeEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\ndeclare function addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\ndeclare function removeEventListener<K extends keyof DedicatedWorkerGlobalScopeEventMap>(type: K, listener: (this: DedicatedWorkerGlobalScope, ev: DedicatedWorkerGlobalScopeEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\ndeclare function removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\ntype AlgorithmIdentifier = Algorithm | string;\ntype AllowSharedBufferSource = ArrayBufferLike | ArrayBufferView<ArrayBufferLike>;\ntype BigInteger = Uint8Array<ArrayBuffer>;\ntype BlobPart = BufferSource | Blob | string;\ntype BodyInit = ReadableStream | XMLHttpRequestBodyInit;\ntype BufferSource = ArrayBufferView<ArrayBuffer> | ArrayBuffer;\ntype CSSKeywordish = string | CSSKeywordValue;\ntype CSSNumberish = number | CSSNumericValue;\ntype CSSPerspectiveValue = CSSNumericValue | CSSKeywordish;\ntype CSSUnparsedSegment = string | CSSVariableReferenceValue;\ntype CanvasImageSource = ImageBitmap | OffscreenCanvas | VideoFrame;\ntype CookieList = CookieListItem[];\ntype DOMHighResTimeStamp = number;\ntype EpochTimeStamp = number;\ntype EventListenerOrEventListenerObject = EventListener | EventListenerObject;\ntype FileSystemWriteChunkType = BufferSource | Blob | string | WriteParams;\ntype Float32List = Float32Array<ArrayBufferLike> | GLfloat[];\ntype FormDataEntryValue = File | string;\ntype GLbitfield = number;\ntype GLboolean = boolean;\ntype GLclampf = number;\ntype GLenum = number;\ntype GLfloat = number;\ntype GLint = number;\ntype GLint64 = number;\ntype GLintptr = number;\ntype GLsizei = number;\ntype GLsizeiptr = number;\ntype GLuint = number;\ntype GLuint64 = number;\ntype HashAlgorithmIdentifier = AlgorithmIdentifier;\ntype HeadersInit = [string, string][] | Record<string, string> | Headers;\ntype IDBValidKey = number | string | Date | BufferSource | IDBValidKey[];\ntype ImageBitmapSource = CanvasImageSource | Blob | ImageData;\ntype ImageBufferSource = AllowSharedBufferSource | ReadableStream;\ntype ImageDataArray = Uint8ClampedArray<ArrayBuffer>;\ntype Int32List = Int32Array<ArrayBufferLike> | GLint[];\ntype MessageEventSource = MessagePort | ServiceWorker;\ntype NamedCurve = string;\ntype OffscreenRenderingContext = OffscreenCanvasRenderingContext2D | ImageBitmapRenderingContext | WebGLRenderingContext | WebGL2RenderingContext;\ntype OnErrorEventHandler = OnErrorEventHandlerNonNull | null;\ntype PerformanceEntryList = PerformanceEntry[];\ntype PushMessageDataInit = BufferSource | string;\ntype ReadableStreamController<T> = ReadableStreamDefaultController<T> | ReadableByteStreamController;\ntype ReadableStreamReadResult<T> = ReadableStreamReadValueResult<T> | ReadableStreamReadDoneResult<T>;\ntype ReadableStreamReader<T> = ReadableStreamDefaultReader<T> | ReadableStreamBYOBReader;\ntype ReportList = Report[];\ntype RequestInfo = Request | string;\ntype TexImageSource = ImageBitmap | ImageData | OffscreenCanvas | VideoFrame;\ntype TimerHandler = string | Function;\ntype Transferable = OffscreenCanvas | ImageBitmap | MessagePort | MediaSourceHandle | ReadableStream | WritableStream | TransformStream | AudioData | VideoFrame | RTCDataChannel | ArrayBuffer;\ntype Uint32List = Uint32Array<ArrayBufferLike> | GLuint[];\ntype XMLHttpRequestBodyInit = Blob | BufferSource | FormData | URLSearchParams | string;\ntype AlphaOption = "discard" | "keep";\ntype AudioSampleFormat = "f32" | "f32-planar" | "s16" | "s16-planar" | "s32" | "s32-planar" | "u8" | "u8-planar";\ntype AvcBitstreamFormat = "annexb" | "avc";\ntype BinaryType = "arraybuffer" | "blob";\ntype BitrateMode = "constant" | "variable";\ntype CSSMathOperator = "clamp" | "invert" | "max" | "min" | "negate" | "product" | "sum";\ntype CSSNumericBaseType = "angle" | "flex" | "frequency" | "length" | "percent" | "resolution" | "time";\ntype CanvasDirection = "inherit" | "ltr" | "rtl";\ntype CanvasFillRule = "evenodd" | "nonzero";\ntype CanvasFontKerning = "auto" | "none" | "normal";\ntype CanvasFontStretch = "condensed" | "expanded" | "extra-condensed" | "extra-expanded" | "normal" | "semi-condensed" | "semi-expanded" | "ultra-condensed" | "ultra-expanded";\ntype CanvasFontVariantCaps = "all-petite-caps" | "all-small-caps" | "normal" | "petite-caps" | "small-caps" | "titling-caps" | "unicase";\ntype CanvasLineCap = "butt" | "round" | "square";\ntype CanvasLineJoin = "bevel" | "miter" | "round";\ntype CanvasTextAlign = "center" | "end" | "left" | "right" | "start";\ntype CanvasTextBaseline = "alphabetic" | "bottom" | "hanging" | "ideographic" | "middle" | "top";\ntype CanvasTextRendering = "auto" | "geometricPrecision" | "optimizeLegibility" | "optimizeSpeed";\ntype ClientTypes = "all" | "sharedworker" | "window" | "worker";\ntype CodecState = "closed" | "configured" | "unconfigured";\ntype ColorGamut = "p3" | "rec2020" | "srgb";\ntype ColorSpaceConversion = "default" | "none";\ntype CompressionFormat = "deflate" | "deflate-raw" | "gzip";\ntype CookieSameSite = "lax" | "none" | "strict";\ntype DocumentVisibilityState = "hidden" | "visible";\ntype EncodedAudioChunkType = "delta" | "key";\ntype EncodedVideoChunkType = "delta" | "key";\ntype EndingType = "native" | "transparent";\ntype FileSystemHandleKind = "directory" | "file";\ntype FontDisplay = "auto" | "block" | "fallback" | "optional" | "swap";\ntype FontFaceLoadStatus = "error" | "loaded" | "loading" | "unloaded";\ntype FontFaceSetLoadStatus = "loaded" | "loading";\ntype FrameType = "auxiliary" | "nested" | "none" | "top-level";\ntype GlobalCompositeOperation = "color" | "color-burn" | "color-dodge" | "copy" | "darken" | "destination-atop" | "destination-in" | "destination-out" | "destination-over" | "difference" | "exclusion" | "hard-light" | "hue" | "lighten" | "lighter" | "luminosity" | "multiply" | "overlay" | "saturation" | "screen" | "soft-light" | "source-atop" | "source-in" | "source-out" | "source-over" | "xor";\ntype HardwareAcceleration = "no-preference" | "prefer-hardware" | "prefer-software";\ntype HdrMetadataType = "smpteSt2086" | "smpteSt2094-10" | "smpteSt2094-40";\ntype IDBCursorDirection = "next" | "nextunique" | "prev" | "prevunique";\ntype IDBRequestReadyState = "done" | "pending";\ntype IDBTransactionDurability = "default" | "relaxed" | "strict";\ntype IDBTransactionMode = "readonly" | "readwrite" | "versionchange";\ntype ImageOrientation = "flipY" | "from-image" | "none";\ntype ImageSmoothingQuality = "high" | "low" | "medium";\ntype KeyFormat = "jwk" | "pkcs8" | "raw" | "spki";\ntype KeyType = "private" | "public" | "secret";\ntype KeyUsage = "decrypt" | "deriveBits" | "deriveKey" | "encrypt" | "sign" | "unwrapKey" | "verify" | "wrapKey";\ntype LatencyMode = "quality" | "realtime";\ntype LockMode = "exclusive" | "shared";\ntype MediaDecodingType = "file" | "media-source" | "webrtc";\ntype MediaEncodingType = "record" | "webrtc";\ntype MediaKeysRequirement = "not-allowed" | "optional" | "required";\ntype NotificationDirection = "auto" | "ltr" | "rtl";\ntype NotificationPermission = "default" | "denied" | "granted";\ntype OffscreenRenderingContextId = "2d" | "bitmaprenderer" | "webgl" | "webgl2" | "webgpu";\ntype OpusBitstreamFormat = "ogg" | "opus";\ntype PermissionName = "camera" | "geolocation" | "microphone" | "midi" | "notifications" | "persistent-storage" | "push" | "screen-wake-lock" | "storage-access";\ntype PermissionState = "denied" | "granted" | "prompt";\ntype PredefinedColorSpace = "display-p3" | "srgb";\ntype PremultiplyAlpha = "default" | "none" | "premultiply";\ntype PushEncryptionKeyName = "auth" | "p256dh";\ntype RTCDataChannelState = "closed" | "closing" | "connecting" | "open";\ntype RTCEncodedVideoFrameType = "delta" | "empty" | "key";\ntype ReadableStreamReaderMode = "byob";\ntype ReadableStreamType = "bytes";\ntype ReferrerPolicy = "" | "no-referrer" | "no-referrer-when-downgrade" | "origin" | "origin-when-cross-origin" | "same-origin" | "strict-origin" | "strict-origin-when-cross-origin" | "unsafe-url";\ntype RequestCache = "default" | "force-cache" | "no-cache" | "no-store" | "only-if-cached" | "reload";\ntype RequestCredentials = "include" | "omit" | "same-origin";\ntype RequestDestination = "" | "audio" | "audioworklet" | "document" | "embed" | "font" | "frame" | "iframe" | "image" | "manifest" | "object" | "paintworklet" | "report" | "script" | "sharedworker" | "style" | "track" | "video" | "worker" | "xslt";\ntype RequestMode = "cors" | "navigate" | "no-cors" | "same-origin";\ntype RequestPriority = "auto" | "high" | "low";\ntype RequestRedirect = "error" | "follow" | "manual";\ntype ResizeQuality = "high" | "low" | "medium" | "pixelated";\ntype ResponseType = "basic" | "cors" | "default" | "error" | "opaque" | "opaqueredirect";\ntype SecurityPolicyViolationEventDisposition = "enforce" | "report";\ntype ServiceWorkerState = "activated" | "activating" | "installed" | "installing" | "parsed" | "redundant";\ntype ServiceWorkerUpdateViaCache = "all" | "imports" | "none";\ntype TransferFunction = "hlg" | "pq" | "srgb";\ntype VideoColorPrimaries = "bt470bg" | "bt709" | "smpte170m";\ntype VideoEncoderBitrateMode = "constant" | "quantizer" | "variable";\ntype VideoMatrixCoefficients = "bt470bg" | "bt709" | "rgb" | "smpte170m";\ntype VideoPixelFormat = "BGRA" | "BGRX" | "I420" | "I420A" | "I422" | "I444" | "NV12" | "RGBA" | "RGBX";\ntype VideoTransferCharacteristics = "bt709" | "iec61966-2-1" | "smpte170m";\ntype WebGLPowerPreference = "default" | "high-performance" | "low-power";\ntype WebTransportCongestionControl = "default" | "low-latency" | "throughput";\ntype WebTransportErrorSource = "session" | "stream";\ntype WorkerType = "classic" | "module";\ntype WriteCommandType = "seek" | "truncate" | "write";\ntype XMLHttpRequestResponseType = "" | "arraybuffer" | "blob" | "document" | "json" | "text";\n',gi["lib.webworker.importscripts.d.ts"]='/*! *****************************************************************************\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/// <reference no-default-lib="true"/>\n\n/////////////////////////////\n/// WorkerGlobalScope APIs\n/////////////////////////////\n// These are only available in a Web Worker\ndeclare function importScripts(...urls: string[]): void;\n',gi["lib.webworker.iterable.d.ts"]='/*! *****************************************************************************\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/// <reference no-default-lib="true"/>\n\n/////////////////////////////\n/// Worker Iterable APIs\n/////////////////////////////\n\ninterface CSSNumericArray {\n [Symbol.iterator](): ArrayIterator<CSSNumericValue>;\n entries(): ArrayIterator<[number, CSSNumericValue]>;\n keys(): ArrayIterator<number>;\n values(): ArrayIterator<CSSNumericValue>;\n}\n\ninterface CSSTransformValue {\n [Symbol.iterator](): ArrayIterator<CSSTransformComponent>;\n entries(): ArrayIterator<[number, CSSTransformComponent]>;\n keys(): ArrayIterator<number>;\n values(): ArrayIterator<CSSTransformComponent>;\n}\n\ninterface CSSUnparsedValue {\n [Symbol.iterator](): ArrayIterator<CSSUnparsedSegment>;\n entries(): ArrayIterator<[number, CSSUnparsedSegment]>;\n keys(): ArrayIterator<number>;\n values(): ArrayIterator<CSSUnparsedSegment>;\n}\n\ninterface Cache {\n /**\n * The **`addAll()`** method of the Cache interface takes an array of URLs, retrieves them, and adds the resulting response objects to the given cache.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Cache/addAll)\n */\n addAll(requests: Iterable<RequestInfo>): Promise<void>;\n}\n\ninterface CanvasPath {\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/roundRect) */\n roundRect(x: number, y: number, w: number, h: number, radii?: number | DOMPointInit | Iterable<number | DOMPointInit>): void;\n}\n\ninterface CanvasPathDrawingStyles {\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/setLineDash) */\n setLineDash(segments: Iterable<number>): void;\n}\n\ninterface CookieStoreManager {\n /**\n * The **`subscribe()`** method of the CookieStoreManager interface subscribes a ServiceWorkerRegistration to cookie change events.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CookieStoreManager/subscribe)\n */\n subscribe(subscriptions: Iterable<CookieStoreGetOptions>): Promise<void>;\n /**\n * The **`unsubscribe()`** method of the CookieStoreManager interface stops the ServiceWorkerRegistration from receiving previously subscribed events.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CookieStoreManager/unsubscribe)\n */\n unsubscribe(subscriptions: Iterable<CookieStoreGetOptions>): Promise<void>;\n}\n\ninterface DOMStringList {\n [Symbol.iterator](): ArrayIterator<string>;\n}\n\ninterface FileList {\n [Symbol.iterator](): ArrayIterator<File>;\n}\n\ninterface FontFaceSet extends Set<FontFace> {\n}\n\ninterface FormDataIterator<T> extends IteratorObject<T, BuiltinIteratorReturn, unknown> {\n [Symbol.iterator](): FormDataIterator<T>;\n}\n\ninterface FormData {\n [Symbol.iterator](): FormDataIterator<[string, FormDataEntryValue]>;\n /** Returns an array of key, value pairs for every entry in the list. */\n entries(): FormDataIterator<[string, FormDataEntryValue]>;\n /** Returns a list of keys in the list. */\n keys(): FormDataIterator<string>;\n /** Returns a list of values in the list. */\n values(): FormDataIterator<FormDataEntryValue>;\n}\n\ninterface HeadersIterator<T> extends IteratorObject<T, BuiltinIteratorReturn, unknown> {\n [Symbol.iterator](): HeadersIterator<T>;\n}\n\ninterface Headers {\n [Symbol.iterator](): HeadersIterator<[string, string]>;\n /** Returns an iterator allowing to go through all key/value pairs contained in this object. */\n entries(): HeadersIterator<[string, string]>;\n /** Returns an iterator allowing to go through all keys of the key/value pairs contained in this object. */\n keys(): HeadersIterator<string>;\n /** Returns an iterator allowing to go through all values of the key/value pairs contained in this object. */\n values(): HeadersIterator<string>;\n}\n\ninterface IDBDatabase {\n /**\n * The **`transaction`** method of the IDBDatabase interface immediately returns a transaction object (IDBTransaction) containing the IDBTransaction.objectStore method, which you can use to access your object store.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBDatabase/transaction)\n */\n transaction(storeNames: string | Iterable<string>, mode?: IDBTransactionMode, options?: IDBTransactionOptions): IDBTransaction;\n}\n\ninterface IDBObjectStore {\n /**\n * The **`createIndex()`** method of the field/column defining a new data point for each database record to contain.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBObjectStore/createIndex)\n */\n createIndex(name: string, keyPath: string | Iterable<string>, options?: IDBIndexParameters): IDBIndex;\n}\n\ninterface ImageTrackList {\n [Symbol.iterator](): ArrayIterator<ImageTrack>;\n}\n\ninterface MessageEvent<T = any> {\n /** @deprecated */\n initMessageEvent(type: string, bubbles?: boolean, cancelable?: boolean, data?: any, origin?: string, lastEventId?: string, source?: MessageEventSource | null, ports?: Iterable<MessagePort>): void;\n}\n\ninterface StylePropertyMapReadOnlyIterator<T> extends IteratorObject<T, BuiltinIteratorReturn, unknown> {\n [Symbol.iterator](): StylePropertyMapReadOnlyIterator<T>;\n}\n\ninterface StylePropertyMapReadOnly {\n [Symbol.iterator](): StylePropertyMapReadOnlyIterator<[string, Iterable<CSSStyleValue>]>;\n entries(): StylePropertyMapReadOnlyIterator<[string, Iterable<CSSStyleValue>]>;\n keys(): StylePropertyMapReadOnlyIterator<string>;\n values(): StylePropertyMapReadOnlyIterator<Iterable<CSSStyleValue>>;\n}\n\ninterface SubtleCrypto {\n /**\n * The **`deriveKey()`** method of the SubtleCrypto interface can be used to derive a secret key from a master key.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SubtleCrypto/deriveKey)\n */\n deriveKey(algorithm: AlgorithmIdentifier | EcdhKeyDeriveParams | HkdfParams | Pbkdf2Params, baseKey: CryptoKey, derivedKeyType: AlgorithmIdentifier | AesDerivedKeyParams | HmacImportParams | HkdfParams | Pbkdf2Params, extractable: boolean, keyUsages: Iterable<KeyUsage>): Promise<CryptoKey>;\n /**\n * The **`generateKey()`** method of the SubtleCrypto interface is used to generate a new key (for symmetric algorithms) or key pair (for public-key algorithms).\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SubtleCrypto/generateKey)\n */\n generateKey(algorithm: "Ed25519" | { name: "Ed25519" }, extractable: boolean, keyUsages: ReadonlyArray<"sign" | "verify">): Promise<CryptoKeyPair>;\n generateKey(algorithm: RsaHashedKeyGenParams | EcKeyGenParams, extractable: boolean, keyUsages: ReadonlyArray<KeyUsage>): Promise<CryptoKeyPair>;\n generateKey(algorithm: AesKeyGenParams | HmacKeyGenParams | Pbkdf2Params, extractable: boolean, keyUsages: ReadonlyArray<KeyUsage>): Promise<CryptoKey>;\n generateKey(algorithm: AlgorithmIdentifier, extractable: boolean, keyUsages: Iterable<KeyUsage>): Promise<CryptoKeyPair | CryptoKey>;\n /**\n * The **`importKey()`** method of the SubtleCrypto interface imports a key: that is, it takes as input a key in an external, portable format and gives you a CryptoKey object that you can use in the Web Crypto API.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SubtleCrypto/importKey)\n */\n importKey(format: "jwk", keyData: JsonWebKey, algorithm: AlgorithmIdentifier | RsaHashedImportParams | EcKeyImportParams | HmacImportParams | AesKeyAlgorithm, extractable: boolean, keyUsages: ReadonlyArray<KeyUsage>): Promise<CryptoKey>;\n importKey(format: Exclude<KeyFormat, "jwk">, keyData: BufferSource, algorithm: AlgorithmIdentifier | RsaHashedImportParams | EcKeyImportParams | HmacImportParams | AesKeyAlgorithm, extractable: boolean, keyUsages: Iterable<KeyUsage>): Promise<CryptoKey>;\n /**\n * The **`unwrapKey()`** method of the SubtleCrypto interface \'unwraps\' a key.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SubtleCrypto/unwrapKey)\n */\n unwrapKey(format: KeyFormat, wrappedKey: BufferSource, unwrappingKey: CryptoKey, unwrapAlgorithm: AlgorithmIdentifier | RsaOaepParams | AesCtrParams | AesCbcParams | AesGcmParams, unwrappedKeyAlgorithm: AlgorithmIdentifier | RsaHashedImportParams | EcKeyImportParams | HmacImportParams | AesKeyAlgorithm, extractable: boolean, keyUsages: Iterable<KeyUsage>): Promise<CryptoKey>;\n}\n\ninterface URLSearchParamsIterator<T> extends IteratorObject<T, BuiltinIteratorReturn, unknown> {\n [Symbol.iterator](): URLSearchParamsIterator<T>;\n}\n\ninterface URLSearchParams {\n [Symbol.iterator](): URLSearchParamsIterator<[string, string]>;\n /** Returns an array of key, value pairs for every entry in the search params. */\n entries(): URLSearchParamsIterator<[string, string]>;\n /** Returns a list of keys in the search params. */\n keys(): URLSearchParamsIterator<string>;\n /** Returns a list of values in the search params. */\n values(): URLSearchParamsIterator<string>;\n}\n\ninterface WEBGL_draw_buffers {\n /**\n * The **`WEBGL_draw_buffers.drawBuffersWEBGL()`** method is part of the WebGL API and allows you to define the draw buffers to which all fragment colors are written.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WEBGL_draw_buffers/drawBuffersWEBGL)\n */\n drawBuffersWEBGL(buffers: Iterable<GLenum>): void;\n}\n\ninterface WEBGL_multi_draw {\n /**\n * The **`WEBGL_multi_draw.multiDrawArraysInstancedWEBGL()`** method of the WebGL API renders multiple primitives from array data.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WEBGL_multi_draw/multiDrawArraysInstancedWEBGL)\n */\n multiDrawArraysInstancedWEBGL(mode: GLenum, firstsList: Int32Array<ArrayBufferLike> | Iterable<GLint>, firstsOffset: number, countsList: Int32Array<ArrayBufferLike> | Iterable<GLsizei>, countsOffset: number, instanceCountsList: Int32Array<ArrayBufferLike> | Iterable<GLsizei>, instanceCountsOffset: number, drawcount: GLsizei): void;\n /**\n * The **`WEBGL_multi_draw.multiDrawArraysWEBGL()`** method of the WebGL API renders multiple primitives from array data.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WEBGL_multi_draw/multiDrawArraysWEBGL)\n */\n multiDrawArraysWEBGL(mode: GLenum, firstsList: Int32Array<ArrayBufferLike> | Iterable<GLint>, firstsOffset: number, countsList: Int32Array<ArrayBufferLike> | Iterable<GLsizei>, countsOffset: number, drawcount: GLsizei): void;\n /**\n * The **`WEBGL_multi_draw.multiDrawElementsInstancedWEBGL()`** method of the WebGL API renders multiple primitives from array data.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WEBGL_multi_draw/multiDrawElementsInstancedWEBGL)\n */\n multiDrawElementsInstancedWEBGL(mode: GLenum, countsList: Int32Array<ArrayBufferLike> | Iterable<GLsizei>, countsOffset: number, type: GLenum, offsetsList: Int32Array<ArrayBufferLike> | Iterable<GLsizei>, offsetsOffset: number, instanceCountsList: Int32Array<ArrayBufferLike> | Iterable<GLsizei>, instanceCountsOffset: number, drawcount: GLsizei): void;\n /**\n * The **`WEBGL_multi_draw.multiDrawElementsWEBGL()`** method of the WebGL API renders multiple primitives from array data.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WEBGL_multi_draw/multiDrawElementsWEBGL)\n */\n multiDrawElementsWEBGL(mode: GLenum, countsList: Int32Array<ArrayBufferLike> | Iterable<GLsizei>, countsOffset: number, type: GLenum, offsetsList: Int32Array<ArrayBufferLike> | Iterable<GLsizei>, offsetsOffset: number, drawcount: GLsizei): void;\n}\n\ninterface WebGL2RenderingContextBase {\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/clearBuffer) */\n clearBufferfv(buffer: GLenum, drawbuffer: GLint, values: Iterable<GLfloat>, srcOffset?: number): void;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/clearBuffer) */\n clearBufferiv(buffer: GLenum, drawbuffer: GLint, values: Iterable<GLint>, srcOffset?: number): void;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/clearBuffer) */\n clearBufferuiv(buffer: GLenum, drawbuffer: GLint, values: Iterable<GLuint>, srcOffset?: number): void;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/drawBuffers) */\n drawBuffers(buffers: Iterable<GLenum>): void;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/getActiveUniforms) */\n getActiveUniforms(program: WebGLProgram, uniformIndices: Iterable<GLuint>, pname: GLenum): any;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/getUniformIndices) */\n getUniformIndices(program: WebGLProgram, uniformNames: Iterable<string>): GLuint[] | null;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/invalidateFramebuffer) */\n invalidateFramebuffer(target: GLenum, attachments: Iterable<GLenum>): void;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/invalidateSubFramebuffer) */\n invalidateSubFramebuffer(target: GLenum, attachments: Iterable<GLenum>, x: GLint, y: GLint, width: GLsizei, height: GLsizei): void;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/transformFeedbackVaryings) */\n transformFeedbackVaryings(program: WebGLProgram, varyings: Iterable<string>, bufferMode: GLenum): void;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/uniform) */\n uniform1uiv(location: WebGLUniformLocation | null, data: Iterable<GLuint>, srcOffset?: number, srcLength?: GLuint): void;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/uniform) */\n uniform2uiv(location: WebGLUniformLocation | null, data: Iterable<GLuint>, srcOffset?: number, srcLength?: GLuint): void;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/uniform) */\n uniform3uiv(location: WebGLUniformLocation | null, data: Iterable<GLuint>, srcOffset?: number, srcLength?: GLuint): void;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/uniform) */\n uniform4uiv(location: WebGLUniformLocation | null, data: Iterable<GLuint>, srcOffset?: number, srcLength?: GLuint): void;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/uniformMatrix) */\n uniformMatrix2x3fv(location: WebGLUniformLocation | null, transpose: GLboolean, data: Iterable<GLfloat>, srcOffset?: number, srcLength?: GLuint): void;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/uniformMatrix) */\n uniformMatrix2x4fv(location: WebGLUniformLocation | null, transpose: GLboolean, data: Iterable<GLfloat>, srcOffset?: number, srcLength?: GLuint): void;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/uniformMatrix) */\n uniformMatrix3x2fv(location: WebGLUniformLocation | null, transpose: GLboolean, data: Iterable<GLfloat>, srcOffset?: number, srcLength?: GLuint): void;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/uniformMatrix) */\n uniformMatrix3x4fv(location: WebGLUniformLocation | null, transpose: GLboolean, data: Iterable<GLfloat>, srcOffset?: number, srcLength?: GLuint): void;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/uniformMatrix) */\n uniformMatrix4x2fv(location: WebGLUniformLocation | null, transpose: GLboolean, data: Iterable<GLfloat>, srcOffset?: number, srcLength?: GLuint): void;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/uniformMatrix) */\n uniformMatrix4x3fv(location: WebGLUniformLocation | null, transpose: GLboolean, data: Iterable<GLfloat>, srcOffset?: number, srcLength?: GLuint): void;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/vertexAttribI) */\n vertexAttribI4iv(index: GLuint, values: Iterable<GLint>): void;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/vertexAttribI) */\n vertexAttribI4uiv(index: GLuint, values: Iterable<GLuint>): void;\n}\n\ninterface WebGL2RenderingContextOverloads {\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/uniform) */\n uniform1fv(location: WebGLUniformLocation | null, data: Iterable<GLfloat>, srcOffset?: number, srcLength?: GLuint): void;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/uniform) */\n uniform1iv(location: WebGLUniformLocation | null, data: Iterable<GLint>, srcOffset?: number, srcLength?: GLuint): void;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/uniform) */\n uniform2fv(location: WebGLUniformLocation | null, data: Iterable<GLfloat>, srcOffset?: number, srcLength?: GLuint): void;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/uniform) */\n uniform2iv(location: WebGLUniformLocation | null, data: Iterable<GLint>, srcOffset?: number, srcLength?: GLuint): void;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/uniform) */\n uniform3fv(location: WebGLUniformLocation | null, data: Iterable<GLfloat>, srcOffset?: number, srcLength?: GLuint): void;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/uniform) */\n uniform3iv(location: WebGLUniformLocation | null, data: Iterable<GLint>, srcOffset?: number, srcLength?: GLuint): void;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/uniform) */\n uniform4fv(location: WebGLUniformLocation | null, data: Iterable<GLfloat>, srcOffset?: number, srcLength?: GLuint): void;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/uniform) */\n uniform4iv(location: WebGLUniformLocation | null, data: Iterable<GLint>, srcOffset?: number, srcLength?: GLuint): void;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/uniformMatrix) */\n uniformMatrix2fv(location: WebGLUniformLocation | null, transpose: GLboolean, data: Iterable<GLfloat>, srcOffset?: number, srcLength?: GLuint): void;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/uniformMatrix) */\n uniformMatrix3fv(location: WebGLUniformLocation | null, transpose: GLboolean, data: Iterable<GLfloat>, srcOffset?: number, srcLength?: GLuint): void;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/uniformMatrix) */\n uniformMatrix4fv(location: WebGLUniformLocation | null, transpose: GLboolean, data: Iterable<GLfloat>, srcOffset?: number, srcLength?: GLuint): void;\n}\n\ninterface WebGLRenderingContextBase {\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/vertexAttrib) */\n vertexAttrib1fv(index: GLuint, values: Iterable<GLfloat>): void;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/vertexAttrib) */\n vertexAttrib2fv(index: GLuint, values: Iterable<GLfloat>): void;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/vertexAttrib) */\n vertexAttrib3fv(index: GLuint, values: Iterable<GLfloat>): void;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/vertexAttrib) */\n vertexAttrib4fv(index: GLuint, values: Iterable<GLfloat>): void;\n}\n\ninterface WebGLRenderingContextOverloads {\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/uniform) */\n uniform1fv(location: WebGLUniformLocation | null, v: Iterable<GLfloat>): void;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/uniform) */\n uniform1iv(location: WebGLUniformLocation | null, v: Iterable<GLint>): void;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/uniform) */\n uniform2fv(location: WebGLUniformLocation | null, v: Iterable<GLfloat>): void;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/uniform) */\n uniform2iv(location: WebGLUniformLocation | null, v: Iterable<GLint>): void;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/uniform) */\n uniform3fv(location: WebGLUniformLocation | null, v: Iterable<GLfloat>): void;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/uniform) */\n uniform3iv(location: WebGLUniformLocation | null, v: Iterable<GLint>): void;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/uniform) */\n uniform4fv(location: WebGLUniformLocation | null, v: Iterable<GLfloat>): void;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/uniform) */\n uniform4iv(location: WebGLUniformLocation | null, v: Iterable<GLint>): void;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/uniformMatrix) */\n uniformMatrix2fv(location: WebGLUniformLocation | null, transpose: GLboolean, value: Iterable<GLfloat>): void;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/uniformMatrix) */\n uniformMatrix3fv(location: WebGLUniformLocation | null, transpose: GLboolean, value: Iterable<GLfloat>): void;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/uniformMatrix) */\n uniformMatrix4fv(location: WebGLUniformLocation | null, transpose: GLboolean, value: Iterable<GLfloat>): void;\n}\n';class vi{constructor(e,n){this._extraLibs=Object.create(null),this._languageService=si(this),this._ctx=e,this._compilerOptions=n.compilerOptions,this._extraLibs=n.extraLibs,this._inlayHintsOptions=n.inlayHintsOptions}getCompilationSettings(){return this._compilerOptions}getLanguageService(){return this._languageService}getExtraLibs(){return this._extraLibs}getScriptFileNames(){return this._ctx.getMirrorModels().map(e=>e.uri).filter(e=>!yi(e)).map(e=>e.toString()).concat(Object.keys(this._extraLibs))}_getModel(e){let n=this._ctx.getMirrorModels();for(let t=0;t<n.length;t++){const r=n[t].uri;if(r.toString()===e||r.toString(!0)===e)return n[t]}return null}getScriptVersion(e){let n=this._getModel(e);return n?n.version.toString():this.isDefaultLibFileName(e)?"1":e in this._extraLibs?String(this._extraLibs[e].version):""}async getScriptText(e){return this._getScriptText(e)}_getScriptText(e){let n,t=this._getModel(e);const r="lib."+e+".d.ts";if(t)n=t.getValue();else if(e in gi)n=gi[e];else if(r in gi)n=gi[r];else{if(!(e in this._extraLibs))return;n=this._extraLibs[e].content}return n}getScriptSnapshot(e){const n=this._getScriptText(e);if(void 0!==n)return{getText:(e,t)=>n.substring(e,t),getLength:()=>n.length,getChangeRange:()=>{}}}getScriptKind(e){switch(e.substr(e.lastIndexOf(".")+1)){case"ts":return pi.TS;case"tsx":return pi.TSX;case"js":return pi.JS;case"jsx":return pi.JSX;default:return this.getCompilationSettings().allowJs?pi.JS:pi.TS}}getCurrentDirectory(){return""}getDefaultLibFileName(e){switch(e.target){case 99:const n="lib.esnext.full.d.ts";if(n in gi||n in this._extraLibs)return n;case 7:case 6:case 5:case 4:case 3:case 2:default:const t=`lib.es${2013+(e.target||99)}.full.d.ts`;return t in gi||t in this._extraLibs?t:"lib.es6.d.ts";case 1:case 0:return"lib.d.ts"}}isDefaultLibFileName(e){return e===this.getDefaultLibFileName(this._compilerOptions)}readFile(e){return this._getScriptText(e)}fileExists(e){return void 0!==this._getScriptText(e)}async getLibFiles(){return gi}static clearFiles(e){const n=[];for(const t of e){const e={...t};if(e.file=e.file?{fileName:e.file.fileName}:void 0,t.relatedInformation){e.relatedInformation=[];for(const n of t.relatedInformation){const t={...n};t.file=t.file?{fileName:t.file.fileName}:void 0,e.relatedInformation.push(t)}}n.push(e)}return n}async getSyntacticDiagnostics(e){if(yi(e))return[];const n=this._languageService.getSyntacticDiagnostics(e);return vi.clearFiles(n)}async getSemanticDiagnostics(e){if(yi(e))return[];const n=this._languageService.getSemanticDiagnostics(e);return vi.clearFiles(n)}async getSuggestionDiagnostics(e){if(yi(e))return[];const n=this._languageService.getSuggestionDiagnostics(e);return vi.clearFiles(n)}async getCompilerOptionsDiagnostics(e){if(yi(e))return[];const n=this._languageService.getCompilerOptionsDiagnostics();return vi.clearFiles(n)}async getCompletionsAtPosition(e,n){if(!yi(e))return this._languageService.getCompletionsAtPosition(e,n,void 0)}async getCompletionEntryDetails(e,n,t){return this._languageService.getCompletionEntryDetails(e,n,t,void 0,void 0,void 0,void 0)}async getSignatureHelpItems(e,n,t){if(!yi(e))return this._languageService.getSignatureHelpItems(e,n,t)}async getQuickInfoAtPosition(e,n){if(!yi(e))return this._languageService.getQuickInfoAtPosition(e,n)}async getDocumentHighlights(e,n,t){if(!yi(e))return this._languageService.getDocumentHighlights(e,n,t)}async getDefinitionAtPosition(e,n){if(!yi(e))return this._languageService.getDefinitionAtPosition(e,n)}async getReferencesAtPosition(e,n){if(!yi(e))return this._languageService.getReferencesAtPosition(e,n)}async getNavigationTree(e){if(!yi(e))return this._languageService.getNavigationTree(e)}async getFormattingEditsForDocument(e,n){return yi(e)?[]:this._languageService.getFormattingEditsForDocument(e,n)}async getFormattingEditsForRange(e,n,t,r){return yi(e)?[]:this._languageService.getFormattingEditsForRange(e,n,t,r)}async getFormattingEditsAfterKeystroke(e,n,t,r){return yi(e)?[]:this._languageService.getFormattingEditsAfterKeystroke(e,n,t,r)}async findRenameLocations(e,n,t,r,o){if(!yi(e))return this._languageService.findRenameLocations(e,n,t,r,o)}async getRenameInfo(e,n,t){return yi(e)?{canRename:!1,localizedErrorMessage:"Cannot rename in lib file"}:this._languageService.getRenameInfo(e,n,t)}async getEmitOutput(e,n,t){if(yi(e))return{outputFiles:[],emitSkipped:!0};const r=this._languageService.getEmitOutput(e,n,t),o=r.diagnostics?vi.clearFiles(r.diagnostics):void 0;return{...r,diagnostics:o}}async getCodeFixesAtPosition(e,n,t,r,o){if(yi(e))return[];const i={};try{return this._languageService.getCodeFixesAtPosition(e,n,t,r,o,i)}catch{return[]}}async updateExtraLibs(e){this._extraLibs=e}async provideInlayHints(e,n,t){if(yi(e))return[];const r=this._inlayHintsOptions??{},o={start:n,length:t-n};try{return this._languageService.provideInlayHints(e,o,r)}catch{return[]}}}globalThis.ts=hi,self.onmessage=()=>{var e;e=(e,n)=>function(e,n){let t=vi;if(n.customWorkerPath)if("undefined"==typeof importScripts);else{self.importScripts(n.customWorkerPath);const e=self.customTSWorkerFactory;if(!e)throw new Error(`The script at ${n.customWorkerPath} does not add customTSWorkerFactory to self`);t=e(vi,_i,gi)}return new t(e,n)}(e,n),self.onmessage=n=>{ri(t=>e(t,n.data))}}}();
|